_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
cc05986abf77ec9d2d83636894468ae0e22522a5143565ebc6d1b3d6920b39d8
earl-ducaine/cl-garnet
virt2.lisp
(declaim (optimize (speed 3) (safety 0))) (declaim (fixnum *xsize*)) (defvar *xsize* 1000) (declaim (fixnum *ysize*)) (defvar *ysize* 900) (defvar *step* 5) (defparameter *rect-count* 4000) (defvar *w*) (defvar *w-virt-agg*) (defstruct rect-item (x 0 :type (integer 0 1024)) (y 0 :type (integer 0 1024)) colo...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/src/contrib/virtual-agg/virt2.lisp
lisp
(:line-style nil) (:double-buffered-p t)
(declaim (optimize (speed 3) (safety 0))) (declaim (fixnum *xsize*)) (defvar *xsize* 1000) (declaim (fixnum *ysize*)) (defvar *ysize* 900) (defvar *step* 5) (defparameter *rect-count* 4000) (defvar *w*) (defvar *w-virt-agg*) (defstruct rect-item (x 0 :type (integer 0 1024)) (y 0 :type (integer 0 1024)) colo...
e3ec07ed23fec6602189cae5c6a8b8ce1718983c787b1ff89e067ef2948acef2
fbellomi/crossclj
utils.clj
Copyright ( c ) , Rich Hickey & contributors . ;; The use and distribution terms for this software are covered by the ;; Eclipse Public License 1.0 (-1.0.php) ;; which can be found in the file epl-v10.html at the root of this distribution. ;; By using this software in any fashion, you are agreeing to be b...
null
https://raw.githubusercontent.com/fbellomi/crossclj/7630270ebe9ea3df89fe3d877b2571e6eae1062b/src/cloned/clojure/tools/analyzer/jvm/utils.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) , Rich Hickey & contributors . (ns cloned.clojure.tools.analyzer.jvm.utils (:require [cloned.clojure.tools.analyzer.utils :as u] [cloned.clojure.tools.analyzer.env :as env] [cloned.clojure.reflect :as reflect] [clojure.string :as s] [clojure.core....
e6a04c77c97cbb42e2caf7c90decb857c51c7c154bd29d3027a9a617b76cc335
LPCIC/matita
http_getter_wget.ml
Copyright ( C ) 2000 - 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of ...
null
https://raw.githubusercontent.com/LPCIC/matita/794ed25e6e608b2136ce7fa2963bca4115c7e175/matita/components/getter/http_getter_wget.ml
ocaml
Copyright ( C ) 2000 - 2005 , HELM Team . * * This file is part of HELM , an Hypertextual , Electronic * Library of Mathematics , developed at the Computer Science * Department , University of Bologna , Italy . * * is free software ; you can redistribute it and/or * modify it under the terms of ...
8c6e9827ca5bc60e607a6b3f449c037324d684b8d858070858c4c62ac134b342
david-vanderson/warp
testing.rkt
#lang racket/base (require racket/math racket/class racket/draw) (require "../defs.rkt" "../utils.rkt" "../ships.rkt" "../order.rkt" "../physics.rkt" "../effect.rkt" "../upgrade.rkt") (provide (all-defined-out)) (define (testing-scenario oldspa...
null
https://raw.githubusercontent.com/david-vanderson/warp/cdc1d0bd942780fb5360dc6a34a2a06cf9518408/scenarios/testing.rkt
racket
only care about orders return a list of changes new player (for ((i 10))
#lang racket/base (require racket/math racket/class racket/draw) (require "../defs.rkt" "../utils.rkt" "../ships.rkt" "../order.rkt" "../physics.rkt" "../effect.rkt" "../upgrade.rkt") (provide (all-defined-out)) (define (testing-scenario oldspa...
e8d937353a25b933fa79553f401adcd0f72add6710eee75154934b35763b207f
haskell-servant/servant-swagger
Test.hs
-- | -- Module: Servant.Swagger.Test License : BSD3 Maintainer : < > -- Stability: experimental -- -- Automatic tests for servant API against Swagger spec. module Servant.Swagger.Test ( validateEveryToJSON, validateEveryToJSONWithPatternChecker, ) where import Servant.Swagger.Interna...
null
https://raw.githubusercontent.com/haskell-servant/servant-swagger/1909e44e965dca24cb1f5cee4b08c0781dfdbff6/src/Servant/Swagger/Test.hs
haskell
| Module: Servant.Swagger.Test Stability: experimental Automatic tests for servant API against Swagger spec.
License : BSD3 Maintainer : < > module Servant.Swagger.Test ( validateEveryToJSON, validateEveryToJSONWithPatternChecker, ) where import Servant.Swagger.Internal.Test
a40e652ec5a494b889b5db57d51fd075b5925bbb3812db43e6472c599b05f1c0
penpot/penpot
group.cljs
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) KALEIDOS INC (ns app.main.ui.workspace.shapes.group (:require [app.main.data.workspace :as dw] [app.main.refs :as r...
null
https://raw.githubusercontent.com/penpot/penpot/7303d311d5f23d515fa3fcdc6cd13cf7f429d1fe/frontend/src/app/main/ui/workspace/shapes/group.cljs
clojure
Copyright (c) KALEIDOS INC
This Source Code Form is subject to the terms of the Mozilla Public License , v. 2.0 . If a copy of the MPL was not distributed with this file , You can obtain one at /. (ns app.main.ui.workspace.shapes.group (:require [app.main.data.workspace :as dw] [app.main.refs :as refs] [app.main.store :as st] ...
0ea805067d5cbd504b74e27cfcf13b79a9a1ec6855e01db72df9b96574bacae7
biocaml/biocaml
lines.ml
open CFStream include Biocaml_unix.Lines let file_mapper inbed outbed ~f = In_channel.with_file inbed ~f:(fun ic -> Out_channel.with_file outbed ~f:(fun oc -> read ic |> Stream.concat_map ~f:(fun x -> Stream.of_list (f x)) |> write oc)) ;;
null
https://raw.githubusercontent.com/biocaml/biocaml/ac619539fed348747d686b8f628e80c1bb8bfc59/lib/ez/lines.ml
ocaml
open CFStream include Biocaml_unix.Lines let file_mapper inbed outbed ~f = In_channel.with_file inbed ~f:(fun ic -> Out_channel.with_file outbed ~f:(fun oc -> read ic |> Stream.concat_map ~f:(fun x -> Stream.of_list (f x)) |> write oc)) ;;
75b307af41f533a737aa58772bf89db02806fcb0f3a609b9f89af203d9b10941
bsaleil/lc
lists.scm
;;--------------------------------------------------------------------------- ;; Copyright ( c ) 2015 , . All rights reserved . ;; ;; Redistribution and use in source and binary forms, with or without ;; modification, are permitted provided that the following conditions are ;; met: ;; 1. Redistributions of so...
null
https://raw.githubusercontent.com/bsaleil/lc/ee7867fd2bdbbe88924300e10b14ea717ee6434b/unit-tests/lists.scm
scheme
--------------------------------------------------------------------------- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list ...
Copyright ( c ) 2015 , . All rights reserved . THIS SOFTWARE IS PROVIDED ` ` AS IS '' AND ANY EXPRESS OR INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT THEORY OF LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT (println (cons 1 2)) (println (length (cons 1 '())...
27ee7200b5e3f61eca41e0ec0f0e98d6823de62219cce627bd85c1869898ad58
mirage/mirage
action.ml
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * Copyright ( c ) 2019 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided...
null
https://raw.githubusercontent.com/mirage/mirage/59101cd795e741982a0a4580c113072339e1389b/lib/functoria/action.ml
ocaml
(simple) virtual environment
* Copyright ( c ) 2013 - 2020 < > * Copyright ( c ) 2013 - 2020 Anil Madhavapeddy < > * Copyright ( c ) 2015 - 2020 < > * Copyright ( c ) 2019 - 2020 < > * * Permission to use , copy , modify , and distribute this software for any * purpose with or without fee is hereby granted , provided...
b4f8af5fe547df4279dc1d54c1b03aa750c3d98370435e1780d467391d008e35
vmchale/kempe
Spec.hs
{-# LANGUAGE OverloadedStrings #-} module Main (main) where import Abi import Backend import Parser import Test.Tasty import Type main :: IO () main = defaultMain $ testGroup "Kempe compiler tests" [ parserTests , typeTests , backendTests ...
null
https://raw.githubusercontent.com/vmchale/kempe/05ed82ad51704c092e9cb60ff3d034e4e4bb7407/test/Spec.hs
haskell
# LANGUAGE OverloadedStrings #
module Main (main) where import Abi import Backend import Parser import Test.Tasty import Type main :: IO () main = defaultMain $ testGroup "Kempe compiler tests" [ parserTests , typeTests , backendTests , backendGolden ]
ade127114cbc456e5a96678acaa2028f5a1a1723040e1d1898295985f3b3ac90
couchbase/couchdb
couch_replication_notifier.erl
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 distributed under the License is distributed on an " A...
null
https://raw.githubusercontent.com/couchbase/couchdb/8a75fd2faa89f95158de1776354ceccf3e762753/src/couchdb/couch_replication_notifier.erl
erlang
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 WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations...
Licensed under the Apache License , Version 2.0 ( the " License " ) ; you may not distributed under the License is distributed on an " AS IS " BASIS , WITHOUT -module(couch_replication_notifier). -behaviour(gen_event). -export([start_link/1, stop/1, notify/1]). -export([init/1, terminate/2, code_change/3]). -ex...
c948cbeb175c6b78befc576aff65f4430d054aeeae3c16a18cd68bdd4c609c30
ghollisjr/cl-ana
metric-non-si.lisp
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 ;;;; This file is part of cl - ana . ;;;; ;;;; cl-ana is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the ...
null
https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/quantity/metric-non-si.lisp
lisp
cl-ana is free software: you can redistribute it and/or modify it (at your option) any later version. cl-ana is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public Lice...
cl - ana is a Common Lisp data analysis library . Copyright 2013 , 2014 This file is part of cl - ana . under the terms of the GNU General Public License as published by the Free Software Foundation , either version 3 of the License , or You should have received a copy of the GNU General Public License ...
0f2c888d19fcb2ddf8222e0453f6d87c8af625092778543556152516cd14bf05
Copilot-Language/copilot
Main.hs
-- | Test copilot-core. module Main where -- External imports import Test.Framework (Test, defaultMain) Internal library modules being tested import qualified Test.Copilot.Core.Type import qualified Test.Copilot.Core.Type.Array -- | Run all unit tests on copilot-core. main :: IO () main = defaultMain tests -- | A...
null
https://raw.githubusercontent.com/Copilot-Language/copilot/33ccd9fdb93d6d7b165c80cc542fe36cf1c397f0/copilot-core/tests/Main.hs
haskell
| Test copilot-core. External imports | Run all unit tests on copilot-core. | All unit tests in copilot-core.
module Main where import Test.Framework (Test, defaultMain) Internal library modules being tested import qualified Test.Copilot.Core.Type import qualified Test.Copilot.Core.Type.Array main :: IO () main = defaultMain tests tests :: [Test.Framework.Test] tests = [ Test.Copilot.Core.Type.tests , Test.Copilot.Co...
12a96a699a1864685a45a63f1b69963ce382b9a9a395e394722677c009a322b1
utkarshkukreti/reaml
Counter.ml
module R = Reaml module Counter = struct type props = { initial : int } let[@reaml.component "Counter"] make { initial } = let[@reaml] count, setCount = R.useState initial in R.div [] [ R.button [ R.onClick (fun _ -> setCount (count - 1)) ] [ R.string "-" ]; R.string " "; R.i...
null
https://raw.githubusercontent.com/utkarshkukreti/reaml/5640a36293ba2a765171225deddb644f4d6c5d26/examples/Counter.ml
ocaml
module R = Reaml module Counter = struct type props = { initial : int } let[@reaml.component "Counter"] make { initial } = let[@reaml] count, setCount = R.useState initial in R.div [] [ R.button [ R.onClick (fun _ -> setCount (count - 1)) ] [ R.string "-" ]; R.string " "; R.i...
55a68f66c6057eca4a833cfe7be5e209761b32c57f4ea1939cad1e4cc71c99ae
soulomoon/SICP
Exercise 2.51.scm
Exercise 2.51 : Define the below operation for painters . Below takes two painters as arguments . The resulting painter , given a frame , draws with the first painter in the bottom of the frame and with the second painter in the top . Define below in two different ways — first by writing a procedure that is analogous...
null
https://raw.githubusercontent.com/soulomoon/SICP/1c6cbf5ecf6397eaeb990738a938d48c193af1bb/Chapter2/Exercise%202.51.scm
scheme
leg triangle new origin new end of edge1 new end of edge2 new origin new end of edge1 new end of edge2 new origin new end of edge1 new end of edge2 new origin new end of edge1 new end of edge2
Exercise 2.51 : Define the below operation for painters . Below takes two painters as arguments . The resulting painter , given a frame , draws with the first painter in the bottom of the frame and with the second painter in the top . Define below in two different ways — first by writing a procedure that is analogous...
da7ada9026b6b28de8a581fe23d34511398cf0757cd396094488983dec868959
quan-nh/adventofcode
day9.clj
(ns adventofcode2016.day9 (:require [clojure.java.io :as io])) (def input (slurp (io/resource "2016/day9"))) (def regex #"^([A-Z]*)\((\d+)x(\d+)\)(.*)$") (defn decompress-length [s] (if-let [[_ left chars times remain] (re-matches regex s)] (+ (count left) (* (Integer. chars) (Integer. times)) ...
null
https://raw.githubusercontent.com/quan-nh/adventofcode/98542934a121d1df85dd271d28fedc1f25b98206/src/adventofcode2016/day9.clj
clojure
(ns adventofcode2016.day9 (:require [clojure.java.io :as io])) (def input (slurp (io/resource "2016/day9"))) (def regex #"^([A-Z]*)\((\d+)x(\d+)\)(.*)$") (defn decompress-length [s] (if-let [[_ left chars times remain] (re-matches regex s)] (+ (count left) (* (Integer. chars) (Integer. times)) ...
ac0ba87e405460318745f95b94f9f3bc2405089e0ef416841d38158592a47279
GillianPlatform/Gillian
LVar.ml
open Allocators include Make_with_prefix (Basic ()) (struct let prefix = Names.lvar_prefix end)
null
https://raw.githubusercontent.com/GillianPlatform/Gillian/12f0d50bb3c407bfbce34cc5c08f5d60c71466be/GillianCore/GIL_Syntax/LVar.ml
ocaml
open Allocators include Make_with_prefix (Basic ()) (struct let prefix = Names.lvar_prefix end)
7ada41aa7a60c227199af785dbc03ed22c12eb6fb7536bb1b4fccb9869407a8a
adaliu-gh/htdp
526-527.rkt
(require 2htdp/image) (define COLOR 'red) (define MT (empty-scene 400 400)) (define A (make-posn 200 50)) (define B (make-posn 27 350)) (define C (make-posn 373 350)) ;;========================= 526 ;; Image Posn Posn Posn -> Image ;; add the black triangle a, b, c to scene (define (add-triangle scene a b c) Im...
null
https://raw.githubusercontent.com/adaliu-gh/htdp/a0fca8af2ae8bdcef40d56f6f45021dd92df2995/31-34%20Accumulators/526-527.rkt
racket
========================= Image Posn Posn Posn -> Image add the black triangle a, b, c to scene add a list of lines to img Posn Posn -> Boolean Posn Posn Posn -> Boolean is the triangle a, b, c too small to be divided Posn Posn -> Posn determine the midpoint between a and b Image Posn Posn Posn -> Image gener...
(require 2htdp/image) (define COLOR 'red) (define MT (empty-scene 400 400)) (define A (make-posn 200 50)) (define B (make-posn 27 350)) (define C (make-posn 373 350)) 526 (define (add-triangle scene a b c) Image [ List - of ( list ) ] - > Image (define (add-triangle/line img lol) (cond ...
0a9de0c55c6f899febbbc9ff34be369625383c052d8a498fa1f01e370edc49b1
semilin/layoup
fck.lisp
(MAKE-LAYOUT :NAME "fck" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
null
https://raw.githubusercontent.com/semilin/layoup/27ec9ba9a9388cd944ac46206d10424e3ab45499/data/layouts/fck.lisp
lisp
(MAKE-LAYOUT :NAME "fck" :MATRIX (APPLY #'KEY-MATRIX 'NIL) :SHIFT-MATRIX NIL :KEYBOARD NIL)
4f96b3c3d694403e244fe771bb3471a1a6c6b97339f9188bc56db2f75996476d
shirok/Gauche-lisp15
runtime.scm
;;; ;;; LISP1.5.runtime ;;; This module adds enough support to run LISP1.5 evaluator shown in ;; Appendix B. (define-module LISP1.5.runtime (use util.match) (export $TOPLEVELS CAR CDR CONS ATOM EQ QUOTE COND CALLSUBR T F NIL ERROR LAMBDA $scheme->lisp $lisp->scheme) ) (select-mo...
null
https://raw.githubusercontent.com/shirok/Gauche-lisp15/d40163e6aa473608dd38a23f9cb67f13af676722/LISP1/5/runtime.scm
scheme
LISP1.5.runtime Appendix B. LISP symbols property list. Helper functions The "basement"---primitives that are used to run eval in the ground floor We don't check whether the argument is an atom--thus we allow them to go through symbol's property list. extension
This module adds enough support to run LISP1.5 evaluator shown in (define-module LISP1.5.runtime (use util.match) (export $TOPLEVELS CAR CDR CONS ATOM EQ QUOTE COND CALLSUBR T F NIL ERROR LAMBDA $scheme->lisp $lisp->scheme) ) (select-module LISP1.5.runtime) LISP symbols are G...
cd7729bc7312f19169ab57ea937ae5e351027427d0b24ccf2e4f3ad59d88554a
shirok/Gauche
system.scm
;; ;; test for system related procedures ;; #!no-fold-case (use gauche.test) (use gauche.config) (use scheme.list) (use srfi.13) (test-start "system") ;;------------------------------------------------------------------- (test-section "system") test this first , so that we can use system commands to verify our re...
null
https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/test/system.scm
scheme
test for system related procedures ------------------------------------------------------------------- shorthand of normalizing pathname. this doesn't do anything on some common operations via command for it may be confused by symlinks. which is IMHO a bad decision (the behavior is /bin/pwd -L in --------------...
#!no-fold-case (use gauche.test) (use gauche.config) (use scheme.list) (use srfi.13) (test-start "system") (test-section "system") test this first , so that we can use system commands to verify our results . (test* "system" #t (begin (sys-system ":") #t)) (test* "system" #t (begin (sys-system "") #t)) unix , ...
bccad77bcd0d7685ec6b233452280324436dfc20d579a61101682c67a1d5d847
hugit-project/hugit
util.cljs
(ns hugit.util (:require [re-frame.core :as rf])) (defn <sub [query] (rf/subscribe [:get-in query])) (defn evt> [event] (rf/dispatch event)) (defn toast> [& msgs] (rf/dispatch-sync (vec (cons :toast msgs)))) (defn timeout [ms] (js/Promise. (fn [resolve] (js/setTimeout #(resolve ms) ...
null
https://raw.githubusercontent.com/hugit-project/hugit/15c750ed633a229b517ffe0f3e8462197e0e3b06/src/hugit/util.cljs
clojure
(ns hugit.util (:require [re-frame.core :as rf])) (defn <sub [query] (rf/subscribe [:get-in query])) (defn evt> [event] (rf/dispatch event)) (defn toast> [& msgs] (rf/dispatch-sync (vec (cons :toast msgs)))) (defn timeout [ms] (js/Promise. (fn [resolve] (js/setTimeout #(resolve ms) ...
755613b9ae04743cc8cb34079279136981869e3135a7dceb580b1481052d83d9
ndpar/erlang
trees_test.erl
%% [ CT1 ] , p.169 . %% Exercise 7-5: Binary Trees %% -module(trees_test). -include("Trees.hrl"). -include_lib("eunit/include/eunit.hrl"). sum_undefined_tree_test() -> ?assertEqual(0, trees:sum(undefined)). sum_balanced_tree_test() -> Tree = #bintree{value = 5, left = #bintree{value = 6}, right = #bintree{valu...
null
https://raw.githubusercontent.com/ndpar/erlang/e215841a1d370e0fc5eb6b9ff40ea7ae78fc8763/lib/examples/test/trees_test.erl
erlang
Exercise 7-5: Binary Trees
[ CT1 ] , p.169 . -module(trees_test). -include("Trees.hrl"). -include_lib("eunit/include/eunit.hrl"). sum_undefined_tree_test() -> ?assertEqual(0, trees:sum(undefined)). sum_balanced_tree_test() -> Tree = #bintree{value = 5, left = #bintree{value = 6}, right = #bintree{value = 9}}, ?assertEqual(20, trees:su...
544969407bb1c2ea44a7d598804a07dbb8cadb2e1901205281569b0b12545de4
tjammer/schmu
types.mli
module Strtbl : Hashtbl.S module Smap : Map.S with type key = string module Sset : Set.S with type elt = string type typ = | Tint | Tbool | Tunit | Tu8 | Tfloat | Ti32 | Tf32 | Tvar of tv ref | Qvar of string | Tfun of param list * typ * fun_kind | Talias of Path.t * typ | Trecord of typ list *...
null
https://raw.githubusercontent.com/tjammer/schmu/aa6b8a58b64119b003ba5a2bc92c587138622a9f/lib/typing/types.mli
ocaml
* Follows links and aliases * Same as [Cleaned_types.is_struct] * Normal version, will name type vars starting from 'a * Version with literal type vars (for annotations) * Version using the subst table created during comparison with annot
module Strtbl : Hashtbl.S module Smap : Map.S with type key = string module Sset : Set.S with type elt = string type typ = | Tint | Tbool | Tunit | Tu8 | Tfloat | Ti32 | Tf32 | Tvar of tv ref | Qvar of string | Tfun of param list * typ * fun_kind | Talias of Path.t * typ | Trecord of typ list *...
7bfae4b3ac9ade91212dea4750c7f755b220e7631de5d2ea264f599639be0afd
census-instrumentation/opencensus-erlang
oc_span_SUITE.erl
%%% --------------------------------------------------------------------------- %%% @doc %%% @end %%% --------------------------------------------------------------------------- -module(oc_span_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -include...
null
https://raw.githubusercontent.com/census-instrumentation/opencensus-erlang/7fb276ff73d677c00458922c9180df634f45e018/test/oc_span_SUITE.erl
erlang
--------------------------------------------------------------------------- @doc @end ---------------------------------------------------------------------------
-module(oc_span_SUITE). -compile(export_all). -include_lib("eunit/include/eunit.hrl"). -include_lib("common_test/include/ct.hrl"). -include("opencensus.hrl"). all() -> [modifications]. init_per_suite(Config) -> Config. end_per_suite(_Config) -> ok. init_per_testcase(_, Config) -> Config. end_per...
6edc9e478d3190ce2172d8388a43bf8bea2eb8b9b7391bcf3ca1a83701402045
pigworker/LEOG
Ty.hs
# LANGUAGE LambdaCase , GADTs , PatternGuards , DataKinds # module Ty where import Control.Monad import Bwd import Th import Tm import Va import Debug.Trace truce = const id ------------------------------------------------------------------------------ -- the monad of knowing the types of the free variables and so...
null
https://raw.githubusercontent.com/pigworker/LEOG/fdd426fa5d7781568421fc2a5ee29e9142244918/src/Ty.hs
haskell
---------------------------------------------------------------------------- the monad of knowing the types of the free variables and sometimes barfing ---------------------------------------------------------------------------- a context is a snoc-list of types for the variables in scope those types are scoped over...
# LANGUAGE LambdaCase , GADTs , PatternGuards , DataKinds # module Ty where import Control.Monad import Bwd import Th import Tm import Va import Debug.Trace truce = const id type Cx = Bwd Type newtype TC x = TC {tc :: Cx -> Maybe x} instance Monad TC where return x = TC $ \ _ -> Just x TC a >>= k = TC $ \ ga...
2bf10e0f63ab578a81cd17f89572c4fa0ff78a1bbbe4918a814fc6c4ed512175
mariachris/Concuerror
timers_afters_exits_crashes.erl
-module(timers_afters_exits_crashes). -export([scenarios/0]). -export([my_start_timer/0, my_exit_ok/0, my_exit_bad/0, child_crashes/0, both_crash/0]). scenarios() -> [{N,P,R} || {N,P} <- [{my_start_timer, inf}, {my_exit_ok, inf}, ...
null
https://raw.githubusercontent.com/mariachris/Concuerror/87e63f10ac615bf2eeac5b0916ef54d11a933e0b/testsuite/suites/resources/src/timers_afters_exits_crashes.erl
erlang
-module(timers_afters_exits_crashes). -export([scenarios/0]). -export([my_start_timer/0, my_exit_ok/0, my_exit_bad/0, child_crashes/0, both_crash/0]). scenarios() -> [{N,P,R} || {N,P} <- [{my_start_timer, inf}, {my_exit_ok, inf}, ...
c91a7f88d5b2431382f996a81e659c74e7395476e7c2f78a50c66e869675603e
geophf/1HaskellADay
Exercise.hs
{-# LANGUAGE OverloadedStrings #-} module Y2021.M06.D01.Exercise where import qualified Data.ByteString.Char8 as B import Data.Time import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.Types (Query(Query)) import Store.SQL.Util.TaggedTypes import Store.SQL.Connection - What is ' today ' ? When an...
null
https://raw.githubusercontent.com/geophf/1HaskellADay/aca652177e8f553761e00093904e8b933c00851a/exercises/HAD/Y2021/M06/D01/Exercise.hs
haskell
# LANGUAGE OverloadedStrings # } } rewrite 'today' in terms of 'latest.'
module Y2021.M06.D01.Exercise where import qualified Data.ByteString.Char8 as B import Data.Time import Database.PostgreSQL.Simple import Database.PostgreSQL.Simple.Types (Query(Query)) import Store.SQL.Util.TaggedTypes import Store.SQL.Connection - What is ' today ' ? When analyzing data , this can be a thorny...
b6dbcb71b97195bfd2a16dfb6a13504a67a9f4a9668b6fbe65cde81fa04b1df4
achirkin/vulkan
Surface.hs
# OPTIONS_HADDOCK ignore - exports # {-# LANGUAGE DataKinds #-} # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # {-# LANGUAGE PatternSynonyms #-} # LANGUAGE StandaloneDeriving # {-# LANGUAGE Strict ...
null
https://raw.githubusercontent.com/achirkin/vulkan/b2e0568c71b5135010f4bba939cd8dcf7a05c361/vulkan-api/src-gen/Graphics/Vulkan/Types/Enum/Surface.hs
haskell
# LANGUAGE DataKinds # # LANGUAGE PatternSynonyms # # LANGUAGE Strict # # LANGUAGE TypeSynonymInstances # | bitpos = @0@ | bitpos = @0@ | bitpos = @5@
# OPTIONS_HADDOCK ignore - exports # # LANGUAGE FlexibleInstances # # LANGUAGE GeneralizedNewtypeDeriving # # LANGUAGE KindSignatures # # LANGUAGE StandaloneDeriving # module Graphics.Vulkan.Types.Enum.Surface (VkSurfaceCounterBitmaskEXT(VkSurfaceCounterBitmaskEXT, ...
1b0868fb07d3eaac264ccdc5f203e7e885cd248048f52de2db9668a70b895da4
jordanthayer/ocaml-search
wrchar.ml
(* char utility code *) let white_p = function ' ' | '\t' | '\n' | '\012' | '\r' -> true | _ -> false let non_white_p c = not (white_p c) let is_digit = function '0'..'9' -> true | _ -> false let is_letter = function 'a'..'z' | 'A'..'Z' -> true | _ -> false let is_capital = function ...
null
https://raw.githubusercontent.com/jordanthayer/ocaml-search/57cfc85417aa97ee5d8fbcdb84c333aae148175f/wrutils/wrchar.ml
ocaml
char utility code
let white_p = function ' ' | '\t' | '\n' | '\012' | '\r' -> true | _ -> false let non_white_p c = not (white_p c) let is_digit = function '0'..'9' -> true | _ -> false let is_letter = function 'a'..'z' | 'A'..'Z' -> true | _ -> false let is_capital = function 'A'..'Z' -> true |...
56d2a34495171fe8f48fc25c5d4662fa29d763e55be2de0f95571ee9b108758e
winks/multiplex
util.clj
(ns multiplex.test.util (:require [multiplex.config :as config]) (:use [multiplex.util]) (:use [clojure.test])) (deftest test-video-info-imgur-1 (let [info (video-info "")] (is (= "imgur-gifv" (:site info))) (is (= "foo" (:code info))))) (deftest test-video-info-imgur-2 (let [info (video-info "")] ...
null
https://raw.githubusercontent.com/winks/multiplex/79e6e64f4cf8d6c9eaeceb5119b73ecaaa60e47f/test/multiplex/test/util.clj
clojure
(ns multiplex.test.util (:require [multiplex.config :as config]) (:use [multiplex.util]) (:use [clojure.test])) (deftest test-video-info-imgur-1 (let [info (video-info "")] (is (= "imgur-gifv" (:site info))) (is (= "foo" (:code info))))) (deftest test-video-info-imgur-2 (let [info (video-info "")] ...
957a2e87d1cd645d2469b77819f36f03e6b1ebb72784e09491b66bb172c1ae22
logicmoo/logicmoo_nlu
airdb1.lsp
;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % ;;; % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % %...
null
https://raw.githubusercontent.com/logicmoo/logicmoo_nlu/c066897f55b3ff45aa9155ebcf799fda9741bf74/ext/nlp_book/lisp/airdb1.lsp
lisp
% % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % (located COMPANY COUNTRY) (bought COMPANY COMPANY) (subsidiary COMPANY COMPANY)
% Example code from the book " Natural Language Processing in LISP " % % published by % % Copyright ( c ) 1989 , . % airdb1.lsp [ Chapter 9 ] example database about airline companies (defvar database) (setq database '((located Air_Ca...
e3b68580f00c49b6f00143371a542cb82cd073c646f6eacd9a3c2b3f5a1a2d45
music-suite/music-suite
Position.hs
# OPTIONS_GHC -fno - warn - unused - imports -fno - warn - redundant - constraints # -fno-warn-redundant-constraints #-} -- | -- Provides a way to query a value for its 'position'. module Music.Time.Position ( module Music.Time.Duration, * The HasPosition class HasPosition (..), HasPosition1 (..), ...
null
https://raw.githubusercontent.com/music-suite/music-suite/7f01fd62334c66418043b7a2d662af127f98685d/src/Music/Time/Position.hs
haskell
| Provides a way to query a value for its 'position'. * Position and Era ** Specific positions * Moving * Transforming * Transforming relative a position | Class of values that have a position in time. ==== Laws [/duration-position/] [/transform-position/] For 'Transformable' instances: @'_era' ...
# OPTIONS_GHC -fno - warn - unused - imports -fno - warn - redundant - constraints # -fno-warn-redundant-constraints #-} module Music.Time.Position ( module Music.Time.Duration, * The HasPosition class HasPosition (..), HasPosition1 (..), _position, _position1, position, era, se...
93ab0cabe4862c4b4ae4110c83e81f23af4fcfff0070e01d17bc5af6fcbfae8e
grin-compiler/ghc-wpc-sample-programs
StateListArrow.hs
# LANGUAGE MultiParamTypeClasses , FlexibleInstances # -- ------------------------------------------------------------ | Module : Control . Arrow . StateListArrow Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( uwe\@fh-wedel.de ) Stability : experimental ...
null
https://raw.githubusercontent.com/grin-compiler/ghc-wpc-sample-programs/0e3a9b8b7cc3fa0da7c77fb7588dd4830fb087f7/hxt-9.3.1.18/src/Control/Arrow/StateListArrow.hs
haskell
------------------------------------------------------------ ------------------------------------------------------------ ------------------------------------------------------------ | list arrow combined with a state # INLINE id # just for efficiency just for efficiency just for efficiency # INLINE (>>.) # jus...
# LANGUAGE MultiParamTypeClasses , FlexibleInstances # | Module : Control . Arrow . StateListArrow Copyright : Copyright ( C ) 2010 License : MIT Maintainer : ( uwe\@fh-wedel.de ) Stability : experimental Portability : portable Implementation of list arrows with...
1a6bbe2c5b25d621df914cb67b5f3fc3922bf25aa27669a0b0d0abe5f48e2761
pariyatti/kosa
open_uri_test.clj
(ns kuti.storage.open-uri-test (:require [clojure.test :refer :all] [kuti.storage.open-uri :as sut])) (deftest failed-download-throws-exception (testing "catching the exception early makes txt error handling complicated; just bomb" (is (thrown-with-msg? clojure.lang.ExceptionInfo ...
null
https://raw.githubusercontent.com/pariyatti/kosa/db64441ab699fce23511dc50ac6590b3e2b2b96d/test/kuti/storage/open_uri_test.clj
clojure
(ns kuti.storage.open-uri-test (:require [clojure.test :refer :all] [kuti.storage.open-uri :as sut])) (deftest failed-download-throws-exception (testing "catching the exception early makes txt error handling complicated; just bomb" (is (thrown-with-msg? clojure.lang.ExceptionInfo ...
9f688c51206b6d7189e3e364918788014c3104fbb99da5ea56bf7244e42f02ac
ryszard/Cl-Couch
query.lisp
(in-package :cl-couchdb-view-server) (export '(query query-view query-view*)) Interface for querying views (defun prepare-keys (keys) "Prepare a plist to be send to server as query parameters \(put strings in quotes and escape them)." (mapcar (lambda (_) (if (keywordp _) _ (json _))) keys)) (defun query-wrapp...
null
https://raw.githubusercontent.com/ryszard/Cl-Couch/de6900e38395dac3ddce53876b05d5e24c8d8f52/view-server/query.lisp
lisp
This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute i...
(in-package :cl-couchdb-view-server) (export '(query query-view query-view*)) Interface for querying views (defun prepare-keys (keys) "Prepare a plist to be send to server as query parameters \(put strings in quotes and escape them)." (mapcar (lambda (_) (if (keywordp _) _ (json _))) keys)) (defun query-wrapp...
2c5e1f06bb15a0f8614fc807977266d4dab1d36c1a84c352a2fc40c473148e1d
ucsd-progsys/liquidhaskell
Inc2.hs
{-@ LIQUID "--expect-any-error" @-} ISSUE # 671 -- | ISSUE would be nice to have error reported at ` x-1 ` and NOT the ` inc ` note that the right place gets shown if you comment out the ` inc 0 = 1 ` module Inc2 where @ inc : : x : Int - > { v : Int | v > x } @ inc :: Int -> Int inc 0 = 1 inc x = x - 1
null
https://raw.githubusercontent.com/ucsd-progsys/liquidhaskell/f46dbafd6ce1f61af5b56f31924c21639c982a8a/tests/neg/Inc2.hs
haskell
@ LIQUID "--expect-any-error" @
ISSUE # 671 | ISSUE would be nice to have error reported at ` x-1 ` and NOT the ` inc ` note that the right place gets shown if you comment out the ` inc 0 = 1 ` module Inc2 where @ inc : : x : Int - > { v : Int | v > x } @ inc :: Int -> Int inc 0 = 1 inc x = x - 1
c4207337a967ecd93079ce4df668f871101c43ca2d3be0d5ad5e9c861981e4e1
tomgr/libcspm
Compressor.hs
| Traverses the AST filling in all the type information , ensuring that each -- type is fully compressed. # LANGUAGE FlexibleInstances # module CSPM.TypeChecker.Compressor( Compressable, mcompress ) where import CSPM.Syntax.AST import CSPM.Syntax.Literals import CSPM.Syntax.Types import CSPM.TypeChecker.Monad im...
null
https://raw.githubusercontent.com/tomgr/libcspm/24d1b41954191a16e3b5e388e35f5ba0915d671e/src/CSPM/TypeChecker/Compressor.hs
haskell
type is fully compressed. | Map compress. TODO: do we want to do this?
| Traverses the AST filling in all the type information , ensuring that each # LANGUAGE FlexibleInstances # module CSPM.TypeChecker.Compressor( Compressable, mcompress ) where import CSPM.Syntax.AST import CSPM.Syntax.Literals import CSPM.Syntax.Types import CSPM.TypeChecker.Monad import Util.Annotated import Ut...
318306d42ac3682b214a227dec944f4f8c11524d096bed120083fb2818d247f5
smart-chain-fr/tokenomia
Simulation.hs
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # {-# LANGUAGE LambdaCase #-} # LANGUAGE DuplicateRecordFields # {-# LANGUAGE RankNTypes #-} # LANGUAGE ScopedTypeVariables # {-# LANGUAGE OverloadedStrings #-} # LANGUAGE FlexibleContexts # module Tokenomia.Tokenomic.CLAP.Simulation where import ...
null
https://raw.githubusercontent.com/smart-chain-fr/tokenomia/3b741249ba9fe5a30cb3fb997223c8e6b13bcdf8/src/Tokenomia/Tokenomic/CLAP/Simulation.hs
haskell
# LANGUAGE LambdaCase # # LANGUAGE RankNTypes # # LANGUAGE OverloadedStrings # ( singleton ) awaitTxConfirmed, submitTx, Contract, tell) import Data.Semigroup (Last (..)) ( mintContract, CLAPMonetaryPolicyError ) ( vestingContract, Vesting...
# LANGUAGE TypeApplications # # LANGUAGE DataKinds # # LANGUAGE DuplicateRecordFields # # LANGUAGE ScopedTypeVariables # # LANGUAGE FlexibleContexts # module Tokenomia.Tokenomic.CLAP.Simulation where import Control . Monad ( void ) import Control . . Freer . Error ...
ef5b6b101446b52f0605ed7e870a105776a0242a44df937a02da23546a60247f
racket/typed-racket
pr10594.rkt
#; (exn-pred exn:fail:contract? #rx"string-append") #lang scheme/load (module T typed/racket/optional (define-struct: [a] thing ([get : a])) (: thing->string ((thing String) -> String)) (define (thing->string x) (string-append "foo" (thing-get x))) (provide (all-defined-out))) (module U scheme (requ...
null
https://raw.githubusercontent.com/racket/typed-racket/1dde78d165472d67ae682b68622d2b7ee3e15e1e/typed-racket-test/fail/optional/pr10594.rkt
racket
(exn-pred exn:fail:contract? #rx"string-append") #lang scheme/load (module T typed/racket/optional (define-struct: [a] thing ([get : a])) (: thing->string ((thing String) -> String)) (define (thing->string x) (string-append "foo" (thing-get x))) (provide (all-defined-out))) (module U scheme (require...
abfcac084b57674777c7306ace38a912ed48a1995f2d874dd85ac238a5d184de
pbv/codex
LdapAuth.hs
# LANGUAGE RecordWildCards # {-# LANGUAGE OverloadedStrings #-} module Codex.LdapAuth ( LdapConf, getLdapConf, ldapAuth ) where import Control.Monad import Data.ByteString.UTF8 (ByteString) import qualified Data.ByteString.UTF8 as B import Data.Text(Text) import qualified Data.Te...
null
https://raw.githubusercontent.com/pbv/codex/1a5a81965b12f834b436e2165c07120360aded99/src/Codex/LdapAuth.hs
haskell
# LANGUAGE OverloadedStrings # | LDAP configuration ^ LDAP server URI ^ DN search base ^ attributes to keep user meta attributes | attempt LDAP bind, check user password and search LDAP entries | convert LDAP entries into user attributes | update or create a user with given attributes allow insecureTlsSettings...
# LANGUAGE RecordWildCards # module Codex.LdapAuth ( LdapConf, getLdapConf, ldapAuth ) where import Control.Monad import Data.ByteString.UTF8 (ByteString) import qualified Data.ByteString.UTF8 as B import Data.Text(Text) import qualified Data.Text as T import Data.Has...
63cc2f88b4bf8a0742018710bffe87ba8a3223be2404faa792780903faa9629d
haskell-opengl/OpenGLRaw
ES3Compatibility.hs
# LANGUAGE PatternSynonyms # -------------------------------------------------------------------------------- -- | -- Module : Graphics.GL.ARB.ES3Compatibility Copyright : ( c ) 2019 -- License : BSD3 -- Maintainer : < > -- Stability : stable -- Portability : portable -- ---------------...
null
https://raw.githubusercontent.com/haskell-opengl/OpenGLRaw/57e50c9d28dfa62d6a87ae9b561af28f64ce32a0/src/Graphics/GL/ARB/ES3Compatibility.hs
haskell
------------------------------------------------------------------------------ | Module : Graphics.GL.ARB.ES3Compatibility License : BSD3 Stability : stable Portability : portable ------------------------------------------------------------------------------ * Extension Support * Enums
# LANGUAGE PatternSynonyms # Copyright : ( c ) 2019 Maintainer : < > module Graphics.GL.ARB.ES3Compatibility ( glGetARBES3Compatibility, gl_ARB_ES3_compatibility, pattern GL_ANY_SAMPLES_PASSED_CONSERVATIVE, pattern GL_COMPRESSED_R11_EAC, pattern GL_COMPRESSED_RG11_EAC, pattern GL_COMPRESS...
595341b4fe2929f776b389ab611f8bbe6fe8687ad7033f22d7c6826cd23a2c36
essen/egs
egs_login.erl
@author < > 2010 - 2011 . %% @doc Log in and authentication callback module. %% This file is part of EGS . %% EGS is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the ...
null
https://raw.githubusercontent.com/essen/egs/ceea04c3b438cee9a8470f2abc6297429bf347c5/apps/egs/src/egs_login.erl
erlang
@doc Log in and authentication callback module. License, or (at your option) any later version. but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. @doc We don't expect any message here...
@author < > 2010 - 2011 . This file is part of EGS . EGS is free software : you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation , either version 3 of the EGS is distributed in the hope that it will be useful ,...
875ced27937ad7374f917b43bf0461f7ff0b3540b1ef52fb26cd5736af88553c
anonymous-admin/anonymous
writer.erl
-module(writer). -export([write_pieces/6,write_Lpiece/5,write_files/7,write_file/5]). -record (files_data,{filename,path,size,passed_bytes}). -include("defs.hrl"). write_files(DefPath,Bin_Piece,Piece_index,PieceSize,Files_dict,N,false)-> % it is not the last piece %% io:format("in the write files funct...
null
https://raw.githubusercontent.com/anonymous-admin/anonymous/0d178f8f02dce74d5f76d78f81f70da9229a77cd/run%20Torrent%20client/writer.erl
erlang
it is not the last piece io:format("in the write files function ~n"), io:format("DefPath: ~p~n",[DefPath]), io:format("Bin_Piece: ~p~n",[Bin_Piece]), io:format("Piece_index: ~p~n",[Piece_index]), io:format("PieceSize: ~p~n",[PieceSize]), io:format("Files_dict: ~p~n",[Files_dict]), io:format("N: ~p~n",[N]), it ...
-module(writer). -export([write_pieces/6,write_Lpiece/5,write_files/7,write_file/5]). -record (files_data,{filename,path,size,passed_bytes}). -include("defs.hrl"). write_pieces(DefPath,Bin_Piece,Piece_index,PieceSize,Files_dict,N); . {ok,Rec} = dict:find(dict:size(Files_dict),Files_dict), ...
6b5bac263205bd9a5d91335002b03c049bd0621bd337d6c334adfbf208f95434
cxphoe/SICP-solutions
5.22.rkt
(load "machine-model.rkt") (define append-machine (make-machine (list (list 'null? null?) (list 'car car) (list 'cons cons) (list 'display display) (list 'cdr cdr)) '(controller (assign continue (label append-done)) append-loop (test (op null?) (reg seq1)) (branch (label afte...
null
https://raw.githubusercontent.com/cxphoe/SICP-solutions/d35bb688db0320f6efb3b3bde1a14ce21da319bd/Chapter%205-Computing%20with%20Register%20Machines/1%7E4/5.22.rkt
racket
(load "machine-model.rkt") (define append-machine (make-machine (list (list 'null? null?) (list 'car car) (list 'cons cons) (list 'display display) (list 'cdr cdr)) '(controller (assign continue (label append-done)) append-loop (test (op null?) (reg seq1)) (branch (label afte...
0fd4c1123bf4398a296f8fded9b1d441ce8abfee2a253c2931673d5dc4a21b7a
mgritter/aoc-lh
Parse.hs
module Parse (parseLine) where import Text.ParserCombinators.Parsec import Control.Monad parseNumber :: Parser Int parseNumber = (liftM read) $ many1 digit parseCoord :: Parser (Int,Int) parseCoord = do x <- parseNumber _ <- char ',' y <- parseNumber return $ (y,x) parseList :: Parser [(Int,Int)] parseLis...
null
https://raw.githubusercontent.com/mgritter/aoc-lh/71eddc4327820d783c35eb26a5f482963a118a57/2022/day14/Parse.hs
haskell
module Parse (parseLine) where import Text.ParserCombinators.Parsec import Control.Monad parseNumber :: Parser Int parseNumber = (liftM read) $ many1 digit parseCoord :: Parser (Int,Int) parseCoord = do x <- parseNumber _ <- char ',' y <- parseNumber return $ (y,x) parseList :: Parser [(Int,Int)] parseLis...
51b203e113231b071199491f41a94b55dcd824897c00354d56e9e150f5be5483
WhatsApp/eqwalizer
fun_stats.erl
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . %%% This source code is licensed under the Apache 2.0 license found in %%% the LICENSE file in the root directory of this source tree. -module(fun_stats). % wy = well_typed yes % wn = well-typed no % ey = exported yes % en = exported no ...
null
https://raw.githubusercontent.com/WhatsApp/eqwalizer/9935940d71ef65c7bf7a9dfad77d89c0006c288e/eqwalizer/test_projects/check/src/fun_stats.erl
erlang
the LICENSE file in the root directory of this source tree. wy = well_typed yes wn = well-typed no ey = exported yes en = exported no sy = specced yes sn = specced no should be ignored in stats
Copyright ( c ) Meta Platforms , Inc. and affiliates . All rights reserved . This source code is licensed under the Apache 2.0 license found in -module(fun_stats). -export([ wy_ey_sy/0, wy_ey_sn/0, wn_ey_sy/0, wn_ey_sn/0, spec_dep/1 ]). -export_type([alias/0]). -include("my_header.hrl"). -spec wy_e...
1ae03c655149513e8f82520b8c42728ba08dd19c6cde9a3572eb4f66b2c74711
joneshf/open-source
Dhall.hs
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # {-# LANGUAGE PackageImports #-} # LANGUAGE TypeApplications # module Shake.Dhall (rules) where import "mtl" Control.Monad.Reader (ReaderT, asks, lift) import "shake" Development.Shake ( CmdOption(Traced) , Rules , cmd_ , copyFileChanged ,...
null
https://raw.githubusercontent.com/joneshf/open-source/e3412fc68c654d89a8d3af4e12ac19c70e3055ec/Shake/Dhall.hs
haskell
# LANGUAGE PackageImports #
# LANGUAGE DataKinds # # LANGUAGE FlexibleContexts # # LANGUAGE TypeApplications # module Shake.Dhall (rules) where import "mtl" Control.Monad.Reader (ReaderT, asks, lift) import "shake" Development.Shake ( CmdOption(Traced) , Rules , cmd_ , copyFileChanged , need , needed , (%>) ...
f8dba866956b070baa12c9fd8072a199a51cddbd0d28426ee7ac2a55dd89c0b9
ijvcms/chuanqi_dev
log_instance.erl
%%%------------------------------------------------------------------- %%% @author qhb ( C ) 2016 , < COMPANY > %%% @doc %%% %%% @end Created : 27 . 六月 2016 下午6:19 %%%------------------------------------------------------------------- -module(log_instance). -include("record.hrl"). -include("cache.hrl"). -include("...
null
https://raw.githubusercontent.com/ijvcms/chuanqi_dev/7742184bded15f25be761c4f2d78834249d78097/server/trunk/server/src/business/log/log_instance.erl
erlang
------------------------------------------------------------------- @author qhb @doc @end ------------------------------------------------------------------- API Gen API
( C ) 2016 , < COMPANY > Created : 27 . 六月 2016 下午6:19 -module(log_instance). -include("record.hrl"). -include("cache.hrl"). -include("config.hrl"). -include("db_record.hrl"). -export([ on_player_enter/2, on_player_exit/2, on_end_player_exit/1, log_enter_time/2, log_instance_activity/3, log_instance_single/...
5c823bd6827a797235922e70478ca89113cde05f528efcdce3976c7ae1d66c84
brunjlar/protop
Objects.hs
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # {-# LANGUAGE GADTs #-} # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # -- | This module defines /objects/ as instances of the typeclass ' ' . Basically , an object is just a type with an associated /setoid/ ( i.e. an instance of ' ' ) . module P...
null
https://raw.githubusercontent.com/brunjlar/protop/9f520aeb4dd9baf9ebed8751584e33e3a3e23df6/src/Protop/Core/Objects.hs
haskell
# LANGUAGE GADTs # | This module defines /objects/ as instances of the typeclass
# LANGUAGE TypeFamilies # # LANGUAGE FlexibleContexts # # LANGUAGE ScopedTypeVariables # # LANGUAGE TypeOperators # ' ' . Basically , an object is just a type with an associated /setoid/ ( i.e. an instance of ' ' ) . module Protop.Core.Objects ( IsObject(..) , Object(..) ) where import Data.Function...
3f451da034a1155f369f616b8432b0d65aaed9755ee12eca2f1e400bad1d8182
smanek/trivial-lisp-webapp
package.lisp
$ I d : package.lisp 392 2008 - 07 - 27 16:59:36Z ehuelsmann $ ;;;; $URL: svn-lisp.net/project/usocket/svn/usocket/trunk/package.lisp $ ;;;; See the LICENSE file for licensing information. #+lispworks (cl:require "comm") (cl:eval-when (:execute :load-toplevel :compile-toplevel) (cl:defpackage :usocket (:us...
null
https://raw.githubusercontent.com/smanek/trivial-lisp-webapp/36816c17ea378822e02a123c1be960fd9ce3e29d/aux/usocket-svn/package.lisp
lisp
$URL: svn-lisp.net/project/usocket/svn/usocket/trunk/package.lisp $ See the LICENSE file for licensing information. socket constructors and methods waiting for input-ready state (select() like) convenience macros socket object and accessors Network utility functions conditions errors conditions regarding usoc...
$ I d : package.lisp 392 2008 - 07 - 27 16:59:36Z ehuelsmann $ #+lispworks (cl:require "comm") (cl:eval-when (:execute :load-toplevel :compile-toplevel) (cl:defpackage :usocket (:use :cl) (:export #:*wildcard-host* #:*auto-port* #:socket-listen #:socket-accept ...
6a8a6c091747722d5ebab46357eee8bc6076f060e6ca26dc1d28391291e00839
ryanpbrewster/haskell
Math.hs
module Util.Math ( binomial , coinCombos , coinCombosP , factorial , fromIntegerDigits , fromIntegerDigitsBy , fullCoinCombos , fromContinuedFraction , integerDigits , integerDigitsBy , pascalTriangle , powerMod , primitiveTriples , reverseDigits , reverseDigitsBy ) where import Data.Li...
null
https://raw.githubusercontent.com/ryanpbrewster/haskell/6edd0afe234008a48b4871032dedfd143ca6e412/project-euler/src/Util/Math.hs
haskell
binomial n k == n!/k!(n-k)! proper coin combos. Can only use each coin once Returns a (n,d) pair which represents n/d in reduced form.
module Util.Math ( binomial , coinCombos , coinCombosP , factorial , fromIntegerDigits , fromIntegerDigitsBy , fullCoinCombos , fromContinuedFraction , integerDigits , integerDigitsBy , pascalTriangle , powerMod , primitiveTriples , reverseDigits , reverseDigitsBy ) where import Data.Li...
abb116f45bc3adfc63f98615a4741dcb7ddc94943a08c610448db7fd43887026
typelead/eta
PolyRec.hs
An example of RelaxedPolyRec in action which came up on Haskell Cafe June 2010 ( Job Vranish ) module Foo where import Data.Maybe -- The fixed point datatype data Y f = Y (f (Y f)) -- Silly dummy function maybeToInt :: Maybe a -> Int maybeToInt = length . maybeToList --------------------------- -- f and g are ...
null
https://raw.githubusercontent.com/typelead/eta/97ee2251bbc52294efbf60fa4342ce6f52c0d25c/tests/suite/typecheck/compile/PolyRec.hs
haskell
The fixed point datatype Silly dummy function ------------------------- f and g are mutually recursive Even though f has a totally monomorphic g :: Functor f => (f Int -> b) -> f (Y Maybe) -> b
An example of RelaxedPolyRec in action which came up on Haskell Cafe June 2010 ( Job Vranish ) module Foo where import Data.Maybe data Y f = Y (f (Y f)) maybeToInt :: Maybe a -> Int maybeToInt = length . maybeToList signature , g has a very polymorphic one f :: Y Maybe -> Int f (Y x) = g maybeToInt x Wit...
5a1c75eb9d19ee01b50cca1f4bb22c06ae18d90b992ecaa267b5bb93c6c05cbf
OCamlPro/ocp-build
buildActionsWarnings.ml
(**************************************************************************) (* *) (* Typerex Tools *) (* *) Copyrigh...
null
https://raw.githubusercontent.com/OCamlPro/ocp-build/b29be2f23ebe8db4bd3f16e035770b038876b9bc/tools/ocp-build/actions/buildActionsWarnings.ml
ocaml
************************************************************************ Typerex Tools ...
Copyright 2011 - 2017 OCamlPro SAS the GNU General Public License version 3 described in the file open Ezcmd.V2 open EZCMD.TYPES open OcpCompat open BuildOCPTypes type print_warnings = | PrintWarningsAlways | PrintWarningsIfChanged | PrintWarningsNever let warnin...
e614af6dc32749665e391b8a6936df50363a45fe74f8629bb35713c9d7e580ec
chuchao333/6.945
load.scm
On The Fringes of Fun with Control Structures (load "same-fringe") ;; Communication among Threads (load "conspire") (load "try-two-ways") ':have-fun!
null
https://raw.githubusercontent.com/chuchao333/6.945/c50bb28aadf0c3fcda3c8e56b4a61b9a2d582552/ps8/code/load.scm
scheme
Communication among Threads
On The Fringes of Fun with Control Structures (load "same-fringe") (load "conspire") (load "try-two-ways") ':have-fun!
eec9afb7e6d215f5c954f6acdc6ed9bf85558ec7b69d1c981e42ec18d744a569
cedlemo/OCaml-GI-ctypes-bindings-generator
Input_stream.mli
open Ctypes type t val t_typ : t typ val clear_pending : t -> unit val close : t -> Cancellable.t ptr option -> (bool, Error.t structure ptr option) result Not implemented g_input_stream_close_async type callback not implemented (*Not implemented g_input_stream_close_finish type interface not implemented*) val ha...
null
https://raw.githubusercontent.com/cedlemo/OCaml-GI-ctypes-bindings-generator/21a4d449f9dbd6785131979b91aa76877bad2615/tools/Gio/Input_stream.mli
ocaml
Not implemented g_input_stream_close_finish type interface not implemented Not implemented g_input_stream_read type C Array type for Types.Array tag not implemented Not implemented g_input_stream_read_all type C Array type for Types.Array tag not implemented Not implemented g_input_stream_read_all_async type C Array ty...
open Ctypes type t val t_typ : t typ val clear_pending : t -> unit val close : t -> Cancellable.t ptr option -> (bool, Error.t structure ptr option) result Not implemented g_input_stream_close_async type callback not implemented val has_pending : t -> bool val is_closed : t -> bool val read_bytes : t -> Uns...
59b36e08cd7f6097076ad48c6911f6ca5457ba73445ba4b5ed03ebb0831d94d6
zachjs/sv2v
ParamNoDefault.hs
sv2v - Author : < > - - Conversion for parameters without default values - - This conversion ensures that any parameters which do n't have a default value - are always given an explicit value wherever that module or interface is used . - - Parameters are given a fake default value if they d...
null
https://raw.githubusercontent.com/zachjs/sv2v/30acc3e3f93e1a14d5de1720e04aaea5cd97d036/src/Convert/ParamNoDefault.hs
haskell
writes down the parameters for a part parameter types are rewritten separately, so no fake default here check for instances missing values for parameters without defaults whether a given parameter is unspecified in the given parameter bindings
sv2v - Author : < > - - Conversion for parameters without default values - - This conversion ensures that any parameters which do n't have a default value - are always given an explicit value wherever that module or interface is used . - - Parameters are given a fake default value if they d...
81677c3020dbc956da0cadbd5344401c147b93e01f285fab60dee0a3ee03256c
cyverse-archive/DiscoveryEnvironmentBackend
callbacks.clj
(ns donkey.routes.callbacks (:use [compojure.core] [donkey.util :only [optional-routes flagged-routes]]) (:require [donkey.services.callbacks :as svc] [donkey.util.config :as config])) (defn- de-callback-routes "Callback routes used by the DE." [] (optional-routes [config/app-routes-en...
null
https://raw.githubusercontent.com/cyverse-archive/DiscoveryEnvironmentBackend/7f6177078c1a1cb6d11e62f12cfe2e22d669635b/services/Donkey/src/donkey/routes/callbacks.clj
clojure
(ns donkey.routes.callbacks (:use [compojure.core] [donkey.util :only [optional-routes flagged-routes]]) (:require [donkey.services.callbacks :as svc] [donkey.util.config :as config])) (defn- de-callback-routes "Callback routes used by the DE." [] (optional-routes [config/app-routes-en...
6db7e0fcad227b686bbdb6781a8967b067e0b921f8a0d4a8ef9b2b079448cc5a
earl-ducaine/cl-garnet
framed-text-pix.lisp
(when (boundp 'win) (opal:destroy win)) (create-instance 'win inter:interactor-window (:left 800) (:top 300) (:height 60) (:width 170) (:aggregate (create-instance 'agg opal:aggregate))) (create-instance 'FRAMED-TEXT opal:aggregadget (:left 20) (:top 20) (:parts `((:frame ,opal:rectangl...
null
https://raw.githubusercontent.com/earl-ducaine/cl-garnet/f0095848513ba69c370ed1dc51ee01f0bb4dd108/doc/src/aggregadgets/garnet-code/framed-text-pix.lisp
lisp
(when (boundp 'win) (opal:destroy win)) (create-instance 'win inter:interactor-window (:left 800) (:top 300) (:height 60) (:width 170) (:aggregate (create-instance 'agg opal:aggregate))) (create-instance 'FRAMED-TEXT opal:aggregadget (:left 20) (:top 20) (:parts `((:frame ,opal:rectangl...
002a1d0568593b441baf5860a79896c010f1bcf30c0979431bed787a7dfe9778
ludat/conferer
Files.hs
-- | Copyright : ( c ) 2019 -- License: MPL-2.0 Maintainer : < > -- Stability: stable -- Portability: portable -- -- Public API module providing some helper functions related to files # LANGUAGE TypeApplications # module Conferer.Source.Files where import Data.Maybe (fromMaybe) import System.FilePath impor...
null
https://raw.githubusercontent.com/ludat/conferer/3c2d794a0e109626abb314e802971121dac7d7f9/packages/conferer/src/Conferer/Source/Files.hs
haskell
| License: MPL-2.0 Stability: stable Portability: portable Public API module providing some helper functions related to files | Helper function to get a file from the config specifying the extension and using current env
Copyright : ( c ) 2019 Maintainer : < > # LANGUAGE TypeApplications # module Conferer.Source.Files where import Data.Maybe (fromMaybe) import System.FilePath import Conferer.Config import Conferer.FromConfig getFilePathFromEnv :: Key -> String -> Config -> IO FilePath getFilePathFromEnv key extension conf...
4e671b9bdd9c40fdb45b1b8c81e9f3d92275371128daa934025d5b912ab2786e
BartMassey/advent-of-code-2015
soln.hs
Copyright © 2015 [ This program is licensed under the " MIT License " ] -- Please see the file COPYING in the source -- distribution of this software for license terms. import qualified Data.Map.Strict as M import qualified Data.Set as S import Soln -- | Map from molecule (don't ask) to list of molecules. typ...
null
https://raw.githubusercontent.com/BartMassey/advent-of-code-2015/16bb3eca7852f1b0d2bfb9dbbe2da587642444f4/19/soln.hs
haskell
Please see the file COPYING in the source distribution of this software for license terms. | Map from molecule (don't ask) to list of molecules. | Insert a new molecule in the list of productions for a given molecule. | Read a molecule. | Read a rule. | Read a machine specification, both rules and input. | Exp...
Copyright © 2015 [ This program is licensed under the " MIT License " ] import qualified Data.Map.Strict as M import qualified Data.Set as S import Soln type TransMap = M.Map [String] [[String]] insertMulti :: [String] -> [String] -> TransMap -> TransMap insertMulti k v m = M.insertWith (\[new] old -> ne...
8638da5ac1bd8a41a1f3b8e796ef279ab033434a1f2e2a4f00561ddd6abe2a77
lambdageek/centrinel
Types.hs
-- | Types for the analysis reports module Centrinel.Report.Types (Message(..), module Centrinel.Types) where import Centrinel.Types data Message = Normal ![CentrinelAnalysisError] | Abnormal !CentrinelFatalError
null
https://raw.githubusercontent.com/lambdageek/centrinel/412b620b77c6cb569811fec845b89d04585c1332/src/Centrinel/Report/Types.hs
haskell
| Types for the analysis reports
module Centrinel.Report.Types (Message(..), module Centrinel.Types) where import Centrinel.Types data Message = Normal ![CentrinelAnalysisError] | Abnormal !CentrinelFatalError
22f036ad1d1dc4965324400d8e9d9663984ac13fc6a483539bf19a332633413a
arcadia-unity/catcon
shell.clj
Copyright ( c ) . All rights reserved . ; The use and distribution terms for this software are covered by the ; Eclipse Public License 1.0 (-1.0.php) ; which can be found in the file epl-v10.html at the root of this distribution. ; By using this software in any fashion, you are agreeing to be bound by ; ...
null
https://raw.githubusercontent.com/arcadia-unity/catcon/6c69f424d3c14639ff11a3ea7d9da6aa81328f8a/Arcadia/Internal/clojure/clr/shell.clj
clojure
The use and distribution terms for this software are covered by the Eclipse Public License 1.0 (-1.0.php) which can be found in the file epl-v10.html at the root of this distribution. By using this software in any fashion, you are agreeing to be bound by the terms of this license. You must not remove ...
Copyright ( c ) . All rights reserved . (ns ^{:author "Shawn Hoover", :doc "Conveniently launch a sub-process providing its stdin and collecting its stdout. Ported from clojure.java.shell, written by Chris Houser and Stuart Halloway."} clojure.clr.shell (:use [clojure.clr.io :only (copy string->encoding...
a7411e5c355638bbd25cf51a183ec189897da707537b6b7b66913da192f9050d
denisidoro/beavr
text.cljs
(ns beavr.text (:require [clojure.string :as str])) (defn grep [text substr] (->> text str/split-lines (filter #(str/includes? % substr)))) (defn first-column [x] (->> (str/split x " ") first)) (defn with-leading-space [x] (str x " ")) (defn quoted [x] (let [x' (str x)] (...
null
https://raw.githubusercontent.com/denisidoro/beavr/dad257d8eb8a29bd51ef928a8c1f09984ab3fc30/src/beavr/text.cljs
clojure
(ns beavr.text (:require [clojure.string :as str])) (defn grep [text substr] (->> text str/split-lines (filter #(str/includes? % substr)))) (defn first-column [x] (->> (str/split x " ") first)) (defn with-leading-space [x] (str x " ")) (defn quoted [x] (let [x' (str x)] (...
4879d66ce1b02d53fb1a23719df02dc2c508b90fe8d8b9e570fdd9cc68dd0138
kelsey-sorrels/robinson
monstergen.clj
;; Functions for generating random monsters (ns robinson.monstergen (:require [robinson.common :as rc] [robinson.dynamiccharacterproperties :as dcp] [robinson.characterevents :as ce] [taoensso.timbre :as log] [robinson.random :as rr] [clojure.core.match :ref...
null
https://raw.githubusercontent.com/kelsey-sorrels/robinson/337fd2646882708331257d1f3db78a3074ccc67a/src/robinson/monstergen.clj
clojure
Functions for generating random monsters multi methods for DynamicMonsterProperties default methods for DynamicMonsterProperties Monster protocol race base-xp name-plural pos | level | | | hp | | | ...
(ns robinson.monstergen (:require [robinson.common :as rc] [robinson.dynamiccharacterproperties :as dcp] [robinson.characterevents :as ce] [taoensso.timbre :as log] [robinson.random :as rr] [clojure.core.match :refer [match]])) (defn dispatch-on-npc-race [...
e71fc76ba8ec03fd2b3982c22c61ab4e653f17beae35b6a60cc8953b78044c3d
ruhler/smten
Z3.hs
# LANGUAGE NoImplicitPrelude # -- | This module provides the z3 solver for smten. module Smten.Search.Solver.Z3 (z3) where import Smten.Plugin.Annotations import Smten.Prelude import Smten.Search.Prim # ANN module PrimitiveModule # -- | The z3 smten solver. z3 :: Solver z3 = primitive "Smten.Symbolic.Solver.Z3.z3" ...
null
https://raw.githubusercontent.com/ruhler/smten/16dd37fb0ee3809408803d4be20401211b6c4027/smten-lib/Smten/Search/Solver/Z3.hs
haskell
| This module provides the z3 solver for smten. | The z3 smten solver.
# LANGUAGE NoImplicitPrelude # module Smten.Search.Solver.Z3 (z3) where import Smten.Plugin.Annotations import Smten.Prelude import Smten.Search.Prim # ANN module PrimitiveModule # z3 :: Solver z3 = primitive "Smten.Symbolic.Solver.Z3.z3"
64da23064e79b581023f361252d0ff598589f5dff61b6c9cc2520dcb5b78b4ae
scalaris-team/scalaris
api_json_rt.erl
2012 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % -2.0 % % Unless required by applicable law or agreed to in writing, software distribut...
null
https://raw.githubusercontent.com/scalaris-team/scalaris/feb894d54e642bb3530e709e730156b0ecc1635f/src/json/api_json_rt.erl
erlang
you may not use this file except in compliance with the License. You may obtain a copy of the License at -2.0 Unless required by applicable law or agreed to in writing, software WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language gov...
2012 Zuse Institute Berlin Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , @author < > -module(api_json_rt). -author(''). -export([handler/2]). for : -export([get_replication_factor/0]). -include("scalaris...
f66f30acfb6944ff478aa1decbff0cbdd575d8334b1679b940c724ac379ba3f6
zk/nsfw
log.cljc
(ns nsfw.log)
null
https://raw.githubusercontent.com/zk/nsfw/ea07ba20cc5453b34a56b34c9d8738bf9bf8e92f/src/cljc/nsfw/log.cljc
clojure
(ns nsfw.log)
5edd750be39822da1133ca6efae40a8d1b9931c0bc84921b494cd36927bf8613
hjcapple/reading-sicp
exercise_2_44.scm
#lang racket (require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1))) P90 - [ 练习 2.44 , 图形语言 ] (define (right-split painter n) (if (= n 0) painter (let ((smaller (right-split painter (- n 1)))) (beside painter (below smaller smaller))))) (define (up-split painter n) (if (= n 0) painte...
null
https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_2/exercise_2_44.scm
scheme
#lang racket (require (planet "sicp.ss" ("soegaard" "sicp.plt" 2 1))) P90 - [ 练习 2.44 , 图形语言 ] (define (right-split painter n) (if (= n 0) painter (let ((smaller (right-split painter (- n 1)))) (beside painter (below smaller smaller))))) (define (up-split painter n) (if (= n 0) painte...
b08bbcaec8d68dea38504feedbaeb42c3a6a3de15ef8874b0128f17652ead170
Frama-C/Frama-C-snapshot
Splitter.ml
(**************************************************************************) (* *) This file is part of WP plug - in of Frama - C. (* *) Copyrigh...
null
https://raw.githubusercontent.com/Frama-C/Frama-C-snapshot/639a3647736bf8ac127d00ebe4c4c259f75f9b87/src/plugins/wp/Splitter.ml
ocaml
************************************************************************ alternatives) ...
This file is part of WP plug - in of Frama - C. Copyright ( C ) 2007 - 2019 CEA ( Commissariat a l'energie atomique et aux energies Lesser General Public License as published by the Free Software Foundation ,...
827db528cf9bc56554667f18aefe4b9e7bb03343ed674ac9a5c6895a0ca9d37a
alexanderkiel/phrase
doo_runner.cljs
(ns phrase.doo-runner (:require [doo.runner :refer-macros [doo-tests]] [phrase.alpha-test])) (doo-tests 'phrase.alpha-test)
null
https://raw.githubusercontent.com/alexanderkiel/phrase/a941b8ba64623baa5ffeb470b3d3e7c7889babff/test/cljs/phrase/doo_runner.cljs
clojure
(ns phrase.doo-runner (:require [doo.runner :refer-macros [doo-tests]] [phrase.alpha-test])) (doo-tests 'phrase.alpha-test)
4c1acd02e40241b350df96c9ddb011eb64fc003fc48c86c2851d89b9dfc77120
rblaze/haskell-dbus
Introspection.hs
{-# LANGUAGE OverloadedStrings #-} Copyright ( C ) 2010 - 2012 < > -- 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 agre...
null
https://raw.githubusercontent.com/rblaze/haskell-dbus/bed5bb9590fa194c17fc127fc4c03051ad8e68da/tests/DBusTests/Introspection.hs
haskell
# LANGUAGE OverloadedStrings # 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 s...
Copyright ( C ) 2010 - 2012 < > Licensed under the Apache License , Version 2.0 ( the " License " ) ; distributed under the License is distributed on an " AS IS " BASIS , module DBusTests.Introspection (test_Introspection) where import Control.Applicative ((<$>), (<*>)) import Control.Monad (liftM, liftM2) i...
6914b4cd59afd52dff6bee64cfa3620e9192d9a9e9f0da25fd7bf40947db2903
yetanalytics/datasim
path_test.clj
(ns com.yetanalytics.datasim.json.path-test (:require [clojure.test :refer :all] [com.yetanalytics.datasim.json.path :refer :all] [blancas.kern.core :as k] [clojure.java.io :as io] [cheshire.core :as json] [clojure.test.check :as tc] [clojure.spe...
null
https://raw.githubusercontent.com/yetanalytics/datasim/0047cb3123e32b72380ea31ec98a26ef85543b63/src/test/com/yetanalytics/datasim/json/path_test.clj
clojure
selections from cmi5 Language tag edge case selections from cmi5
(ns com.yetanalytics.datasim.json.path-test (:require [clojure.test :refer :all] [com.yetanalytics.datasim.json.path :refer :all] [blancas.kern.core :as k] [clojure.java.io :as io] [cheshire.core :as json] [clojure.test.check :as tc] [clojure.spe...
55600171ee28d1b1bb3aafb262d9c981b637cd90bf969f17c1ca57f3f09de1ec
clojure-interop/java-jdk
TableCellEditor.clj
(ns javax.swing.table.TableCellEditor "This interface defines the method any object that would like to be an editor of values for components such as JListBox, JComboBox, JTree, or JTable needs to implement." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.table TableCellEditor])) (de...
null
https://raw.githubusercontent.com/clojure-interop/java-jdk/8d7a223e0f9a0965eb0332fad595cf7649d9d96e/javax.swing/src/javax/swing/table/TableCellEditor.clj
clojure
can be null - `javax.swing.JTable` it is up to the specific editor to interpret and draw the value. For example, if value is the string \"true\", it could be rendered as a string or it could be rendered as a check box that is checked. null is a valid value - `java.lang.Object`
(ns javax.swing.table.TableCellEditor "This interface defines the method any object that would like to be an editor of values for components such as JListBox, JComboBox, JTree, or JTable needs to implement." (:refer-clojure :only [require comment defn ->]) (:import [javax.swing.table TableCellEditor])) (de...
3b98ab9661e019a177c6054d991ea7c6781fd3fc90b1d0f6affe43dfe83b1004
samoht/ocaml-wget
main.ml
* Copyright ( C ) 2012 < > * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LICENSE . ...
null
https://raw.githubusercontent.com/samoht/ocaml-wget/884c0f40aaed2e5a03ddfee913408fe2134c2bee/src/main.ml
ocaml
* Copyright ( C ) 2012 < > * * This program is free software ; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published * by the Free Software Foundation ; version 2.1 only . with the special * exception on linking described in file LICENSE . ...
49e8654807332a866766d2d67a25bbc77c3c80a53e6bb75c28b66be4c365ff1d
AdaCore/why3
doc_lexer.mli
(********************************************************************) (* *) The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University (* ...
null
https://raw.githubusercontent.com/AdaCore/why3/4441127004d53cf2cb0f722fed4a930ccf040ee4/src/why3doc/doc_lexer.mli
ocaml
****************************************************************** This software is distributed under the terms of the GNU Lesser on linking described in file LICENSE. ...
The Why3 Verification Platform / The Why3 Development Team Copyright 2010 - 2022 -- Inria - CNRS - Paris - Saclay University General Public License version 2.1 , with the special exception val do_file : Format.formatter -> string -> unit val extract_header : string -> string
c6c5d149cc9804ca13ca0afdb7c6c18f1f49875fadee4c0180f8f3b06b51a349
tfausak/rattletrap
Epic.hs
module Rattletrap.Type.RemoteId.Epic where import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.Str as Str import qualified Rattletrap.Utility.Json as Json newtype Epic = Epic Str.Str deriving (Eq, S...
null
https://raw.githubusercontent.com/tfausak/rattletrap/4d6e3cc0aa0f45beaf189255943f0d824c80a7df/src/lib/Rattletrap/Type/RemoteId/Epic.hs
haskell
module Rattletrap.Type.RemoteId.Epic where import qualified Rattletrap.BitGet as BitGet import qualified Rattletrap.BitPut as BitPut import qualified Rattletrap.Schema as Schema import qualified Rattletrap.Type.Str as Str import qualified Rattletrap.Utility.Json as Json newtype Epic = Epic Str.Str deriving (Eq, S...
43c1664515fe3d50b21bdbd0d2243c5e62a1d84d804ee3a91dfbb7786329e449
bmeurer/ocaml-arm
string.mli
(***********************************************************************) (* *) (* OCaml *) (* *) , projet ...
null
https://raw.githubusercontent.com/bmeurer/ocaml-arm/43f7689c76a349febe3d06ae7a4fc1d52984fd8b/stdlib/string.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 GNU Library General Public License , with $ Id$ * String operations . Giv...
5b1eebf3c1f815cc2b48c54369973c113e74c92b6222a01affdccf5607c21934
anton-k/processing-for-haskell
Primitive2D.hs
module Graphics.Proc.Core.Vector.Primitive2D( triangle, quad, line, linePath, point, pointPath, polygon, ) where import Graphics.Proc.Core import Graphics.Rendering.OpenGL hiding (get, rect) | A triangle is a plane created by connecting three points . -- -- processing docs: <> triangle :: IsPoint p => p -> p ...
null
https://raw.githubusercontent.com/anton-k/processing-for-haskell/861ccd417220eb24fc36a68074a771e417e991df/src/Graphics/Proc/Core/Vector/Primitive2D.hs
haskell
processing docs: <> proceed clockwise or counter-clockwise around the defined shape. processing docs: <> | Draws a polygon. processing docs: <> | Draws a sequence of points. processing docs: <> | Draws a line-path (sequence of line segments). -------------------------------------------------
module Graphics.Proc.Core.Vector.Primitive2D( triangle, quad, line, linePath, point, pointPath, polygon, ) where import Graphics.Proc.Core import Graphics.Rendering.OpenGL hiding (get, rect) | A triangle is a plane created by connecting three points . triangle :: IsPoint p => p -> p -> p -> Draw triangle p1 p...
f57d4ef06a4e1250650f3a6525ca9d8c6f242e0166a7e17eb801e384053ef14f
sosy-lab/tbf
formatlex.ml
# 38 "src/formatlex.mll" open Formatparse exception Eof exception InternalError of string module H = Hashtbl module E = Errormsg (* ** Keyword hashtable *) let keywords = H.create 211 (* ** Useful primitives *) let scan_ident id = try H.find keywords id with Not_found -> IDENT id (* default to variable name *)...
null
https://raw.githubusercontent.com/sosy-lab/tbf/18d08d6cee6fbfbad4d4ebfa7aed235521edec2b/tbf/tools/crest/cil/_build/src/formatlex.ml
ocaml
** Keyword hashtable ** Useful primitives default to variable name ** Buffer processor ** Error handling ** ** escape character management ** This function converst the "Hi" in L"Hi" to { L'H', L'i', L'\0' }
# 38 "src/formatlex.mll" open Formatparse exception Eof exception InternalError of string module H = Hashtbl module E = Errormsg let keywords = H.create 211 let scan_ident id = try H.find keywords id let init ~(prog: string) : Lexing.lexbuf = H.clear keywords; Lexerhack.currentPattern := prog; List.iter...
df604636fa6414191df231d7faaa5daa35a24249b310a5b067c38e276a2ea28b
returntocorp/sexp-fmt
Main.ml
(* Entry point. *) open Printf let run () = Sexp_fmt.Parse.channel stdin |> Sexp_fmt.Print.to_channel stdout let main () = match Sys.argv with | [| _ |] -> run () | _ -> eprintf "\ %s - pretty-print a lisp-like S-expression. Usage: ./sexp < input " (Filename.basename Sys.argv.(0)) let () ...
null
https://raw.githubusercontent.com/returntocorp/sexp-fmt/9895086949bdbb1c981598414f9267279de835cc/src/bin/Main.ml
ocaml
Entry point.
open Printf let run () = Sexp_fmt.Parse.channel stdin |> Sexp_fmt.Print.to_channel stdout let main () = match Sys.argv with | [| _ |] -> run () | _ -> eprintf "\ %s - pretty-print a lisp-like S-expression. Usage: ./sexp < input " (Filename.basename Sys.argv.(0)) let () = main ()
5af9d13f0f51764da6cdea91f9c5438b89e32024144670391e7dc432e76af8ba
grin-compiler/grin
UpdateElimination.hs
# LANGUAGE LambdaCase , TupleSections # module Transformations.Optimising.UpdateElimination where import Data.Functor.Foldable as Foldable import Grin.Grin updateElimination :: Exp -> Exp updateElimination = ana builder where builder :: Exp -> ExpF Exp builder = \case EBind (SFetch fetchLoc) fetchVal ...
null
https://raw.githubusercontent.com/grin-compiler/grin/44ac2958810ecee969c8028d2d2a082d47fba51b/grin/src/Transformations/Optimising/UpdateElimination.hs
haskell
# LANGUAGE LambdaCase , TupleSections # module Transformations.Optimising.UpdateElimination where import Data.Functor.Foldable as Foldable import Grin.Grin updateElimination :: Exp -> Exp updateElimination = ana builder where builder :: Exp -> ExpF Exp builder = \case EBind (SFetch fetchLoc) fetchVal ...
50d80256fcd3d1715899af2e90810af2f1f48f4272c22a2511c04993e591fa52
DSLsofMath/DSLsofMath
Ex1.hs
{-# LANGUAGE GADTs #-} An * abelian monoid * is a set M together with a constant ( nullary operation ) zero : M and a binary operation oplus : M - > M - > M such that : * zero is a unit of oplus * oplus is associative * oplus is commutative An *abelian monoid* is a set M together with a constant (nullary ...
null
https://raw.githubusercontent.com/DSLsofMath/DSLsofMath/216464afda03c54709fae39e626ca19e8053444e/Exam/2016-08/Ex1.hs
haskell
# LANGUAGE GADTs # iv. Define a general evaluator for AbMonoidExp expressions on the basis of an assignment function.
An * abelian monoid * is a set M together with a constant ( nullary operation ) zero : M and a binary operation oplus : M - > M - > M such that : * zero is a unit of oplus * oplus is associative * oplus is commutative An *abelian monoid* is a set M together with a constant (nullary operation) zero : M and...
1a83bf056a7978fd7b36148bfb0abb10828dcb9598b8bddd96d373e026f850e6
tonyrog/deep
nist.erl
@author < > ( C ) 2017 , %%% @doc %%% Read nist data %%% @end Created : 15 Aug 2017 by < > -module(nist). -export([open_image_file/0, open_image_file/1]). -export([info_image_keys/0]). -export([info_image_file/1, info_image_file/2]). -export([close_image_file/1]). -export([read_next_image/1]). -expo...
null
https://raw.githubusercontent.com/tonyrog/deep/42cb2b37d8dbf2cd6a522e55618ae958753b9544/src/nist.erl
erlang
@doc Read nist data @end generate a column major column vector, transpose will only change from row-major to column-major order.
@author < > ( C ) 2017 , Created : 15 Aug 2017 by < > -module(nist). -export([open_image_file/0, open_image_file/1]). -export([info_image_keys/0]). -export([info_image_file/1, info_image_file/2]). -export([close_image_file/1]). -export([read_next_image/1]). -export([read_image/2]). -export([read_image_...
10a50d87523aba07397dc1422f697085c98f6d8e7e3989818c96c0c49d1e3705
bobzhang/fan
a_poly.ml
type u = [ `a | `b | `c] let f (x:u) = match x with | `aa -> 3 | `bb -> 2 | `cc -> 3 | _ -> 1
null
https://raw.githubusercontent.com/bobzhang/fan/7ed527d96c5a006da43d3813f32ad8a5baa31b7f/src/todoml/test/a_poly.ml
ocaml
type u = [ `a | `b | `c] let f (x:u) = match x with | `aa -> 3 | `bb -> 2 | `cc -> 3 | _ -> 1
def076f506b7b6704fddaf2b7fd90ea14c4cb4a4870ed006a629afbdd1ca00d4
MyDataFlow/ttalk-server
s2s_SUITE.erl
%%%=================================================================== ( C ) 2012 , Erlang Solutions Ltd. %%% @doc Suite for testing s2s connection %%% @end %%%=================================================================== -module(s2s_SUITE). -compile(export_all). -include_lib("escalus/include/escalus.hrl"). ...
null
https://raw.githubusercontent.com/MyDataFlow/ttalk-server/07a60d5d74cd86aedd1f19c922d9d3abf2ebf28d/test/ejabberd_tests/tests/s2s_SUITE.erl
erlang
=================================================================== @doc Suite for testing s2s connection @end =================================================================== =================================================================== Suite configuration ==================================================...
( C ) 2012 , Erlang Solutions Ltd. -module(s2s_SUITE). -compile(export_all). -include_lib("escalus/include/escalus.hrl"). -include_lib("common_test/include/ct.hrl"). -record(s2s_opts, { node1_s2s_certfile = undefined, node1_s2s_use_starttls = undefined, node2_s2s_certfile = undefined...
f546721cf5cdf25f6e92cbfdda7572441f2872fef623736c454188c37e50a405
patricoferris/ocaml-multicore-monorepo
test.ml
let () = Alcotest.run "graphql-server" [ "schema", Schema_test.suite; "arguments", Argument_test.suite; "variables", Variable_test.suite; "introspection", Introspection_test.suite; "errors", Error_test.suite; "custom_errors", Custom_error_test.suite; "abstract", Abstract_test.suite; "d...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-graphql-server/graphql/test/test.ml
ocaml
let () = Alcotest.run "graphql-server" [ "schema", Schema_test.suite; "arguments", Argument_test.suite; "variables", Variable_test.suite; "introspection", Introspection_test.suite; "errors", Error_test.suite; "custom_errors", Custom_error_test.suite; "abstract", Abstract_test.suite; "d...
2d774ad1ea4f0c36e64d334b69165d5079f4f920c7760edd8ea3fbdcfef01c5c
mentat-collective/emmy
noether.cljc
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.mechanics.noether (:refer-clojure :exclude [partial]) (:require [emmy.calculus.derivative :refer [D partial]] [emmy.function :as f] [emmy.generic :as g])) ;; ## Noether Theorem Support ;; F-tilde is a parametric coordinate transformation that ...
null
https://raw.githubusercontent.com/mentat-collective/emmy/535b237a8e3fd7067b9c0ade8b2a4b3419f9f132/src/emmy/mechanics/noether.cljc
clojure
## Noether Theorem Support F-tilde is a parametric coordinate transformation that given parameters takes a state and returns transformed coordinates. F-tilde may take an arbitrary selector: It takes a state and returns the coordinates. The hypothesis of transformation for all values of the parameters.
#_"SPDX-License-Identifier: GPL-3.0" (ns emmy.mechanics.noether (:refer-clojure :exclude [partial]) (:require [emmy.calculus.derivative :refer [D partial]] [emmy.function :as f] [emmy.generic :as g])) number of real - valued parameters . F - tilde applied to zeros is the coordinate No...
6d2eb0ae87ee20a00d609165899f5e3aafee547c53cd62cccde305a9098afde9
ppaml-op3/insomnia
Expr.hs
# LANGUAGE OverloadedStrings , ViewPatterns # -- | Type checking (and inference) for core language expressions. module Insomnia.Typecheck.Expr where import Control.Lens import Control.Applicative ((<$>)) import Control.Monad (forM, when, unless, void, zipWithM) import Data.Monoid (Monoid(..), (<>), Endo(..)) import ...
null
https://raw.githubusercontent.com/ppaml-op3/insomnia/5fc6eb1d554e8853d2fc929a957c7edce9e8867d/src/Insomnia/Typecheck/Expr.hs
haskell
| Type checking (and inference) for core language expressions. # SOURCE # if any of the bindings perform a sampling operation, the body had better be a distribution of some sort | check that the give clause scrutenized the given type and returns a result of the expected result type. data type of the constructor a...
# LANGUAGE OverloadedStrings , ViewPatterns # module Insomnia.Typecheck.Expr where import Control.Lens import Control.Applicative ((<$>)) import Control.Monad (forM, when, unless, void, zipWithM) import Data.Monoid (Monoid(..), (<>), Endo(..)) import qualified Unbound.Generics.LocallyNameless as U import Insomnia.C...
6c02fe435e745ba07cd691f01d683faf94b8ca5e73e63f21103f3af98fbb235a
keechma/keechma-next
event_test.cljs
(ns keechma.next.core.event-test (:require [cljs.test :refer-macros [deftest is]] [keechma.next.controller :as ctrl] [keechma.next.core :refer [start! dispatch get-derived-state]] [keechma.next.event :as event])) (def vec-conj (fnil conj [])) (derive ::event-producer :keechma/controller) (defmethod ctr...
null
https://raw.githubusercontent.com/keechma/keechma-next/634c132ba9fe03b3eab9b0c41b9e51ff25529121/test/keechma/next/core/event_test.cljs
clojure
(ns keechma.next.core.event-test (:require [cljs.test :refer-macros [deftest is]] [keechma.next.controller :as ctrl] [keechma.next.core :refer [start! dispatch get-derived-state]] [keechma.next.event :as event])) (def vec-conj (fnil conj [])) (derive ::event-producer :keechma/controller) (defmethod ctr...
ab3eeec4efe690d0c961ca456a01048df515c7fdcf5419fe236d5cbd5c6344eb
static-analysis-engineering/codehawk
bCHDoubleword.mli
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
null
https://raw.githubusercontent.com/static-analysis-engineering/codehawk/87db5929b4e589511d644f84defd1b0a722a05b9/CodeHawk/CHB/bchlib/bCHDoubleword.mli
ocaml
chutil bchlib * doubleword representation for negative one. * converts an integer to doubleword.
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = CodeHawk Binary Analyzer Author : ------------------------------------------------------------------------------ The MIT License ( MIT ) Co...
9ec3441c4458ff1d75b1f350e476292e87b4e44947f023333f7a051f78649707
pirapira/bamboo
syntax.ml
type typ = | VoidType | Uint256Type | Uint8Type | Bytes32Type | AddressType | BoolType | ReferenceType of typ list (** pointer to [typ list] on memory *) | TupleType of typ list | MappingType of typ * typ | ContractArchType of string (* type of [bid(...)] where bid is a contract *) | Contrac...
null
https://raw.githubusercontent.com/pirapira/bamboo/1cca98e0b6d2579fe32885e66aafd0f5e25d9eb5/src/ast/syntax.ml
ocaml
* pointer to [typ list] on memory type of [bid(...)] where bid is a contract type of [b] declared as [bid b] in bytes XXX: this is just 32 I think address as word TODO: message_reentrance_info should contain a continuation!
type typ = | VoidType | Uint256Type | Uint8Type | Bytes32Type | AddressType | BoolType | ReferenceType of | TupleType of typ list | MappingType of typ * typ let rec string_of_typ t = match t with | VoidType -> "void" | Uint256Type -> "uint256" | Uint8Type -> "uint8" | Bytes32Type -> "bytes3...
4be940ee70fcebf2e2286cfc148f3c90eecca29f19bcf39a441ade87ed7db235
patricoferris/ocaml-multicore-monorepo
respd.ml
module Writer = Serialize.Writer type error = [ `Malformed_response of string | `Invalid_response_body_length of Response.t | `Exn of exn ] module Request_state = struct type t = | Uninitialized | Awaiting_response | Received_response of Response.t * Body.Reader.t | Upgraded of Response.t ...
null
https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/dream/src/vendor/httpaf/lib/respd.ml
ocaml
TODO(anmonteiro): Not entirely sure this is possible in the client. XXX(seliopou): Once additional logging support is added, log the error * in case it is not spurious. XXX(anmonteiro): Connections that have been upgraded "require output" * forever, but outside the HTTP layer, meaning they're permanently...
module Writer = Serialize.Writer type error = [ `Malformed_response of string | `Invalid_response_body_length of Response.t | `Exn of exn ] module Request_state = struct type t = | Uninitialized | Awaiting_response | Received_response of Response.t * Body.Reader.t | Upgraded of Response.t ...
35664ab37128fbb37c0986427b13d3193ce9811bd9d4c9f8660f3aba3cc08106
evolutics/haskell-formatter
Source.hs
| Description : Facade for HSE without location handling See also " Language . Haskell . Formatter . Location " . Description : Facade for HSE without location handling See also "Language.Haskell.Formatter.Location". -} module Language.Haskell.Formatter.Source (Comments.Comment, ExactPrint.exactPrint, Ex...
null
https://raw.githubusercontent.com/evolutics/haskell-formatter/3919428e312db62b305de4dd1c84887e6cfa9478/src/library/Language/Haskell/Formatter/Source.hs
haskell
| Description : Facade for HSE without location handling See also " Language . Haskell . Formatter . Location " . Description : Facade for HSE without location handling See also "Language.Haskell.Formatter.Location". -} module Language.Haskell.Formatter.Source (Comments.Comment, ExactPrint.exactPrint, Ex...
c2f11e13c63bed4ac25cbe9beda7799eb4b9db4a047e55b7657b6d4d67292281
iconnect/api-tools
Migration.hs
# LANGUAGE CPP # {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE DeriveDataTypeable #-} # OPTIONS_GHC -fno - warn - unused - binds # module Data.API.Test.Migration ( migrationTests ...
null
https://raw.githubusercontent.com/iconnect/api-tools/77a8cd4c11b6e1df078e57c8a0c48b8fef3e26e4/tests/Data/API/Test/Migration.hs
haskell
# LANGUAGE OverloadedStrings # # LANGUAGE QuasiQuotes # # LANGUAGE TemplateHaskell # # LANGUAGE DeriveDataTypeable # Test of a whole-database migration: copy data between tables Test of a single-record migration: copy the value in the id field Test of a single-field migrati...
# LANGUAGE CPP # # OPTIONS_GHC -fno - warn - unused - binds # module Data.API.Test.Migration ( migrationTests ) where import Data.API.Changes import Data.API.PP import Data.API.Tools import Data.API.Test.MigrationData import Data.API....
2a933167cf5140b8d6f4d2ed1b3b7539c687b78e72b502eb8699d063e1eb1035
lamdu/hypertypes
TypeSig.hs
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # -- | Type signatures module Hyper.Syntax.TypeSig ( TypeSig (..) , tsType , tsTerm , W_TypeSig (..) ) where import Generics.Constraints (Constraints) import Hyper import Hyper...
null
https://raw.githubusercontent.com/lamdu/hypertypes/161142e0d9f503194b85fb6f5b2a5907a1ae3783/src/Hyper/Syntax/TypeSig.hs
haskell
| Type signatures
# LANGUAGE FlexibleContexts # # LANGUAGE FlexibleInstances # # LANGUAGE TemplateHaskell # # LANGUAGE UndecidableInstances # module Hyper.Syntax.TypeSig ( TypeSig (..) , tsType , tsTerm , W_TypeSig (..) ) where import Generics.Constraints (Constraints) import Hyper import Hyper.Infer import Hyper.S...
0486afb2ed47264134e0cf35b0f87f345ef5f810533d0f86283cbe89d059fdd5
infi-nl/alibi
queries_test.clj
(ns alibi.datasource.sqlite.queries-test (:require [alibi.domain.query-handler :refer [handle]] [alibi.domain.project :as project] [clojure.test :refer [deftest is use-fixtures]] [alibi.datasource.sqlite.fixtures :refer [sqlite-fixture *db* make-project make-task make-entry]] [alibi.infra.dat...
null
https://raw.githubusercontent.com/infi-nl/alibi/00e97340ebff483f0ecbb3eef929a4052adbc78b/test/alibi/datasource/sqlite/queries_test.clj
clojure
(ns alibi.datasource.sqlite.queries-test (:require [alibi.domain.query-handler :refer [handle]] [alibi.domain.project :as project] [clojure.test :refer [deftest is use-fixtures]] [alibi.datasource.sqlite.fixtures :refer [sqlite-fixture *db* make-project make-task make-entry]] [alibi.infra.dat...
4d5676330181684e586645dd545ce6006879e7cdcb641c7a19375bd343757d1c
restyled-io/restyled.io
CreateJob.hs
# LANGUAGE DuplicateRecordFields # module Restyled.Api.CreateJob ( ApiCreateJob(..) , ApiCreateJobErrors , repoNotFound , createJob ) where import Restyled.Prelude import Control.Monad.Validate import Restyled.Api.Job (ApiJob, apiJob) import Restyled.Models.DB import Restyled.Settings data ApiCr...
null
https://raw.githubusercontent.com/restyled-io/restyled.io/42842ea0bf114342e95ea9c5df19c92dbc8f7d4c/src/Restyled/Api/CreateJob.hs
haskell
# LANGUAGE DuplicateRecordFields # module Restyled.Api.CreateJob ( ApiCreateJob(..) , ApiCreateJobErrors , repoNotFound , createJob ) where import Restyled.Prelude import Control.Monad.Validate import Restyled.Api.Job (ApiJob, apiJob) import Restyled.Models.DB import Restyled.Settings data ApiCr...
40aa1ca57e8eea807a2dff85fc144ef21347f9b6b6a798d4952ecbf0c8021784
parsonsmatt/ghc-cache-buster
QuuzDep.hs
# language QuasiQuotes # module GCB.Types.QuuzDep where import GCB.Prelude import GCB.Types.Quuz data QuuzDep = QuuzDep { quuzDepQuuz :: Quuz , quuzDepInt :: Int } quuzDep :: QuuzDep quuzDep = QuuzDep { quuzDepQuuz = let Right q = mkQuuz "asdfasdf" in q , quuzDepInt = 3...
null
https://raw.githubusercontent.com/parsonsmatt/ghc-cache-buster/1ee284c4ce1be7818ccec2eea7c12b638c477723/src/GCB/Types/QuuzDep.hs
haskell
# language QuasiQuotes # module GCB.Types.QuuzDep where import GCB.Prelude import GCB.Types.Quuz data QuuzDep = QuuzDep { quuzDepQuuz :: Quuz , quuzDepInt :: Int } quuzDep :: QuuzDep quuzDep = QuuzDep { quuzDepQuuz = let Right q = mkQuuz "asdfasdf" in q , quuzDepInt = 3...
49aeb1813e3952076cf19e24f54b6f91d8b155fb1950960259b3a1b5f6433bbb
macchiato-framework/examples
app.cljs
(ns ^:figwheel-always guestbook.app (:require [guestbook.core :as core] [cljs.nodejs :as node] [mount.core :as mount])) (mount/in-cljc-mode) (cljs.nodejs/enable-util-print!) (.on js/process "uncaughtException" #(js/console.error %)) (set! *main-cli-fn* core/server)
null
https://raw.githubusercontent.com/macchiato-framework/examples/946bdf1a04f5ef787fc83affdcbf6603bbf29b5c/guestbook/env/dev/guestbook/app.cljs
clojure
(ns ^:figwheel-always guestbook.app (:require [guestbook.core :as core] [cljs.nodejs :as node] [mount.core :as mount])) (mount/in-cljc-mode) (cljs.nodejs/enable-util-print!) (.on js/process "uncaughtException" #(js/console.error %)) (set! *main-cli-fn* core/server)