_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 |
|---|---|---|---|---|---|---|---|---|
f343fe8f3ec916380b33b27dcec83b01cf6e6fb9a57af078580a7531f65d1797 | broadinstitute/firecloud-ui | delete_notebook.cljs | (ns broadfcui.page.workspace.notebooks.delete-notebook
(:require
[dmohs.react :as react]
[broadfcui.common.components :as comps]
[broadfcui.common.input :as input]
[broadfcui.common.style :as style]
[broadfcui.components.blocker :refer [blocker]]
[broadfcui.components.modals :as modals]
[broadfcu... | null | https://raw.githubusercontent.com/broadinstitute/firecloud-ui/8eb077bc137ead105db5665a8fa47a7523145633/src/cljs/main/broadfcui/page/workspace/notebooks/delete_notebook.cljs | clojure | (ns broadfcui.page.workspace.notebooks.delete-notebook
(:require
[dmohs.react :as react]
[broadfcui.common.components :as comps]
[broadfcui.common.input :as input]
[broadfcui.common.style :as style]
[broadfcui.components.blocker :refer [blocker]]
[broadfcui.components.modals :as modals]
[broadfcu... | |
64c7a4d16bc7107a9e8700ae2f14119da9db16fa47a5f3f86eaa402c9d805456 | spwhitton/consfigurator | ssh.lisp | ;;; Consfigurator -- Lisp declarative configuration management system
Copyright ( C ) 2021 < >
;;; This file 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 , or ( at your option )
;... | null | https://raw.githubusercontent.com/spwhitton/consfigurator/29eaefe485bac9a36b14e51ac65771bb3e70401a/src/property/ssh.lisp | lisp | Consfigurator -- Lisp declarative configuration management system
This file is free software; you can redistribute it and/or modify
either version 3 , or ( at your option )
any later version.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty o... |
Copyright ( C ) 2021 < >
it under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
(in-package :consfigurator.property.ssh)
(named-readtables:in-readtable :consfigurator)
(defprop authorized-keys :posix (&rest keys)
"Permits... |
63d83f7fc1cdc2ac00c7f386defa45fa61e55468caac36858c6d50e9ba2b36f1 | serokell/ariadne | Button.hs | module Ariadne.UI.Vty.Widget.Form.Button
( initButtonWidget
) where
import Control.Lens (makeLensesWith)
import qualified Brick as B
import Ariadne.UI.Vty.Keyboard
import Ariadne.UI.Vty.Widget
import Ariadne.Util
data ButtonWidgetState =
ButtonWidgetState
{ buttonWidgetTitle :: !Text
}
make... | null | https://raw.githubusercontent.com/serokell/ariadne/5f49ee53b6bbaf332cb6f110c75f7b971acdd452/ui/vty-lib/src/Ariadne/UI/Vty/Widget/Form/Button.hs | haskell | module Ariadne.UI.Vty.Widget.Form.Button
( initButtonWidget
) where
import Control.Lens (makeLensesWith)
import qualified Brick as B
import Ariadne.UI.Vty.Keyboard
import Ariadne.UI.Vty.Widget
import Ariadne.Util
data ButtonWidgetState =
ButtonWidgetState
{ buttonWidgetTitle :: !Text
}
make... | |
70e4a954b02f347c5f36335689050c45bf425444e303ba4c086eebbcffffbc62 | peak6/mmd_core | mmd_encode.erl | -module(mmd_encode).
-include("mmd.hrl").
-compile([export_all]).
encode_message_to_binary(Data) ->
iolist_to_binary(encode_message(Data)).
encode(Msg) -> encode_message(Msg).
encode_message(C=#channel_create{type=call}) ->
encode_message(C#channel_create{type=$C});
encode_message(#channel_create{service=Sv... | null | https://raw.githubusercontent.com/peak6/mmd_core/f90469ea9eac8cd607aa6ec5b9ad6ff003a35572/src/mmd_encode.erl | erlang | Tagged types
exact types
inferred types
Note: This does NOT prefix with a type specifier, it's up to the caller
to do that.
It is assumed that you are passing the right params here, there are no
validity checks | -module(mmd_encode).
-include("mmd.hrl").
-compile([export_all]).
encode_message_to_binary(Data) ->
iolist_to_binary(encode_message(Data)).
encode(Msg) -> encode_message(Msg).
encode_message(C=#channel_create{type=call}) ->
encode_message(C#channel_create{type=$C});
encode_message(#channel_create{service=Sv... |
993751cb51f5b7a7cfedd6dfc01cedcd9f24e47e950e74beb4ff329b4e73c3d3 | ocaml/ocaml | htbl.ml | (* TEST
*)
(* Hashtable operations, using maps as a reference *)
open Printf
module Test(H: Hashtbl.SeededS) (M: Map.S with type key = H.key) = struct
let incl_mh m h =
try
M.iter
(fun k d ->
let d' = H.find h k in if d <> d' then raise Exit)
m;
true
with Exit | Not_f... | null | https://raw.githubusercontent.com/ocaml/ocaml/dd339de1b1d37f62734df977bed788f22984bb94/testsuite/tests/lib-hashtbl/htbl.ml | ocaml | TEST
Hashtable operations, using maps as a reference
Insert all data with H.add
Remove some of the data
Specific functorial hashes
Specific weak functorial hashes
Instantiating the test
Data set: strings from a file, associated with their line number
Data set: fixed strings
Data set: random integers ... |
open Printf
module Test(H: Hashtbl.SeededS) (M: Map.S with type key = H.key) = struct
let incl_mh m h =
try
M.iter
(fun k d ->
let d' = H.find h k in if d <> d' then raise Exit)
m;
true
with Exit | Not_found -> false
let domain_hm h m =
try
H.iter
... |
ab216db97882b444c769705735652ed7f6aa850f0a434b2ab610a3b05bab7091 | cark/cark.behavior-tree | context.cljc | (ns cark.behavior-tree.context
"The context map contain all the (live and static) data of a behavior tree.
It has a notably flat structure, where database, static tree and dynamic extent are
merged into it. So that the context also is the database and the tree, as well as other keys
merged into these.
This... | null | https://raw.githubusercontent.com/cark/cark.behavior-tree/4e229fcc2ed3af3c66e74d2c51dda6684927d254/src/main/cark/behavior_tree/context.cljc | clojure | (ns cark.behavior-tree.context
"The context map contain all the (live and static) data of a behavior tree.
It has a notably flat structure, where database, static tree and dynamic extent are
merged into it. So that the context also is the database and the tree, as well as other keys
merged into these.
This... | |
70937b81d8104c2c09569e35b22a7801bf6d022950cc30609f09da831c05cd03 | cmonty/brainiac | loader.clj | (ns brainiac.test.loader
(:require [brainiac.plugin :as brainiac])
(:use [clojure.test]
[clojure.contrib.mock]
[brainiac.loader]))
(deftest test-read-config-file
(expect [brainiac/schedule (returns nil)]
(testing "reading a config file"
(let [config (read-config-file "test/brainiac/test... | null | https://raw.githubusercontent.com/cmonty/brainiac/f0e1e1e112e1b10f3f135d959c34aa8b7f2ca086/test/brainiac/test/loader.clj | clojure | (ns brainiac.test.loader
(:require [brainiac.plugin :as brainiac])
(:use [clojure.test]
[clojure.contrib.mock]
[brainiac.loader]))
(deftest test-read-config-file
(expect [brainiac/schedule (returns nil)]
(testing "reading a config file"
(let [config (read-config-file "test/brainiac/test... | |
f5cd56a9bb9847c925e67cbf9ffb7dd5ef60767ffedb98b72e8966ea87ccc749 | thheller/shadow-cljs | mixed.cljc | (ns demo.mixed
#?(:cljs (:require-macros [demo.mixed])))
CLJ can not compile JS only code
(defn cljs-only []
(js/console.log "cljs-only doesn't compile in CLJ"))
;; so it needs to put into a reader conditional
#?(:cljs
(defn cljs-only []
(js/console.log "now CLJ is happy")))
this will compile fine i... | null | https://raw.githubusercontent.com/thheller/shadow-cljs/ba0a02aec050c6bc8db1932916009400f99d3cce/src/dev/demo/mixed.cljc | clojure | so it needs to put into a reader conditional
so it does not need a reader conditional | (ns demo.mixed
#?(:cljs (:require-macros [demo.mixed])))
CLJ can not compile JS only code
(defn cljs-only []
(js/console.log "cljs-only doesn't compile in CLJ"))
#?(:cljs
(defn cljs-only []
(js/console.log "now CLJ is happy")))
this will compile fine in CLJ and CLJS
(defn this-is-shared []
:foo)
... |
409167f03170251aa9eb803a26db7dc4f3495860dd71e2b78cfd73fd89528da5 | INRIA/zelus | zparsetree.ml | (***********************************************************************)
(* *)
(* *)
(* Zelus, a synchronous language for hybrid systems *)
(* ... | null | https://raw.githubusercontent.com/INRIA/zelus/685428574b0f9100ad5a41bbaa416cd7a2506d5e/compiler/parsing/zparsetree.ml | ocaml | *********************************************************************
Zelus, a synchronous language for hybrid systems
... | ( c ) 2020 Paris ( see the file )
Automatique . All rights reserved . This file is distributed under
the terms of the INRIA Non - Commercial License Agreement ( see the
open Zlocation
type kind = | S | AS | A | C | AD | D | P
P
|
D C
\ /
A... |
2fe6f101ac0d20fa8a92cf0a059f12e5e34cd80d85249ed6d08b6d2143863ffa | ragkousism/Guix-on-Hurd | kde-frameworks.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 < >
Copyright © 2016 < >
Copyright © 2016 < >
Copyright © 2016 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or modify it
under the terms of the GNU General Public License... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/kde-frameworks.scm | scheme | GNU Guix --- Functional package management for GNU
This file is part of GNU Guix.
you can redistribute it and/or modify it
either version 3 of the License , or ( at
your option) any later version.
GNU Guix is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied wa... | Copyright © 2015 < >
Copyright © 2016 < >
Copyright © 2016 < >
Copyright © 2016 < >
under the terms of the GNU General Public License as published by
You should have received a copy of the GNU General Public License
along with GNU . If not , see < / > .
(define-module (gnu packages kde-fra... |
a4f9ce27de4978b4cf7ea6a9aafd4ae232e75320725a1863e623e24e44982838 | bytekid/mkbtt | cp.ml | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either ve... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/processors/src/transformation/cp.ml | ocaml | ** OPENS *******************************************************************
** MODULES *****************************************************************
** TYPES *******************************************************************
** GLOBALS *****************************************************************
** FUNCTIONS... | Copyright 2008 , Christian Sternagel ,
* GNU Lesser General Public License
*
* This file is part of TTT2 .
*
* TTT2 is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either ve... |
4157ddb2ef5452e22d33cfc9fb71f796c3af1bae55af2e4024e091f0976247d4 | dnaeon/cl-migratum | create.lisp | Copyright ( c ) 2020 - 2022 Nikolov < >
;; 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 source code must retain the above copyright
;; notice, this lis... | null | https://raw.githubusercontent.com/dnaeon/cl-migratum/31ceaf4ff66ae3c124d95673bb0d5d61e87588ba/src/cli/create.lisp | lisp | All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
notice, this list of conditions and the following disclaimer
in this position and unchanged.
notice, this list of conditions and the fo... | Copyright ( c ) 2020 - 2022 Nikolov < >
1 . Redistributions of source code must retain the above copyright
2 . Redistributions in binary form must reproduce the above copyright
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S ) ` ` AS IS '' AND ANY EXPRESS OR
INCIDENTAL , SPECIAL , EXEMPLARY , OR CONSEQUENTIAL ... |
a7dfd538c9f6b0f09227cb73a8cc61a860f2abcc075eb390b75acedbf6400012 | glebec/haskell-programming-allen-moronuki | 01-exercises.hs | module Chapter2Exercises where
2.5 Exercises
2.5:1 Given the following lines of code as they might appear in a source file , how would you change them to use them directly in the REPL ?
half x = x / 2
square x = x * x
These seem to work as - is in the REPL . let ` or not does n't seem to make any difference... | null | https://raw.githubusercontent.com/glebec/haskell-programming-allen-moronuki/99bd232f523e426d18a5e096f1cf771228c55f52/02-hello-haskell/01-exercises.hs | haskell | Here they are sectioned and point-free, for fun:
can we assign lambdas to a var? I assume so, let's check. Yep:
naturally, we get more precision out of `pi`.
-----------------
a)
b)
yes
a)
b)
no
b)
yes
---------------------
---------------------
5
25
30
6
Rewrite with where clauses:
y = negate x... | module Chapter2Exercises where
2.5 Exercises
2.5:1 Given the following lines of code as they might appear in a source file , how would you change them to use them directly in the REPL ?
half x = x / 2
square x = x * x
These seem to work as - is in the REPL . let ` or not does n't seem to make any difference... |
adca862ea9505e02905612d28898d2db076aeece28a60aa639c0028a8bf8d85b | jumarko/clojure-experiments | ch02_functions.clj | (ns clojure-experiments.books.clojure-essential-reference.ch02-functions)
;;;
(defn with-metas
"This function has metadata both at the beginning and the end"
{:my-doc "special docs"}
;; notice that the function body must be wrapped in () otherwise the metadata would be returned
([x]
(inc x))
{:machine-do... | null | https://raw.githubusercontent.com/jumarko/clojure-experiments/f0f9c091959e7f54c3fb13d0585a793ebb09e4f9/src/clojure_experiments/books/clojure_essential_reference/ch02_functions.clj | clojure |
notice that the function body must be wrapped in () otherwise the metadata would be returned
=> {:ns #namespace[clojure-experiments.experiments],
:name with-metas,
:machine-doc "more special docs",
:file
"/Users/jumar/workspace/clojure/clojure-experiments/src/clojure_experiments/experiments.clj"... | (ns clojure-experiments.books.clojure-essential-reference.ch02-functions)
(defn with-metas
"This function has metadata both at the beginning and the end"
{:my-doc "special docs"}
([x]
(inc x))
{:machine-doc "more special docs"})
#_(meta #'with-metas)
: column 1 ,
: line 1186 ,
(println "Cr... |
dbbea1abf159eb295b4f1ec71219d1a346aa79dd5c50e19312d7cf88896530ca | lazy-cat-io/metaverse | rss.cljs | (ns metaverse.common.rss
(:require
["feed-reader" :rename {read get-feed}]
[metaverse.common.logger :as log :include-macros true]
[tenet.response :as r]))
(defn fetch
([url]
(fetch url {}))
([url {:keys [on-success on-failure]
:or {on-success identity
on-failure identit... | null | https://raw.githubusercontent.com/lazy-cat-io/metaverse/2e5754967ac0e4219197da3ff6937b666d2d26fa/src/main/clojure/metaverse/common/rss.cljs | clojure | (ns metaverse.common.rss
(:require
["feed-reader" :rename {read get-feed}]
[metaverse.common.logger :as log :include-macros true]
[tenet.response :as r]))
(defn fetch
([url]
(fetch url {}))
([url {:keys [on-success on-failure]
:or {on-success identity
on-failure identit... | |
93975fb642be2451f0c68b24a9d12e108883cecfe41c76efc92d60679f1249c4 | webyrd/normalization-by-evaluation | nbe-untagged-full.scm | (load "../faster-miniKanren/mk-vicare.scm")
(load "../faster-miniKanren/mk.scm")
(load "../faster-miniKanren/test-check.scm")
TODO the code in this file is still being massaged ...
;; This code was adapted from
` Barliman / cocoa / Barliman / mk - and - rel - interp / interp - simple.scm ` from
` `
The defi... | null | https://raw.githubusercontent.com/webyrd/normalization-by-evaluation/dc4804132b72d2eeecefc329689abb38c596b71a/miniKanren-version/naive/nbe-untagged-full.scm | scheme | This code was adapted from
interpreters.
Observation:
`unevalo` and `evalo` should differ in terms of shadowing behavior:
because of alpha-renaming, normal form expressions should
never have shadowing. Might be able to play some interesting games
based on this behavior.
add neutral terms, and uneval these te... | (load "../faster-miniKanren/mk-vicare.scm")
(load "../faster-miniKanren/mk.scm")
(load "../faster-miniKanren/test-check.scm")
TODO the code in this file is still being massaged ...
` Barliman / cocoa / Barliman / mk - and - rel - interp / interp - simple.scm ` from
` `
The definition of ' letrec ' is based ... |
4dfd12d05ec61b0aef94a1eba9548646bdb7d5596db01dd32890c4a80df4ba0b | cxxxr/valtan | build.lisp | (defparameter *known-function-names*
(let ((file (asdf:system-relative-pathname :valtan "./kernel/lisp.js")))
(with-open-file (in file)
(loop :for line := (read-line in nil nil)
:while line
:when (eql 0 (search "registerFunction(" line))
:collect (let* ((start (position #... | null | https://raw.githubusercontent.com/cxxxr/valtan/ec3164d42b86869357dc185b747c5dfba25c0a3c/kipple/build.lisp | lisp | (defparameter *known-function-names*
(let ((file (asdf:system-relative-pathname :valtan "./kernel/lisp.js")))
(with-open-file (in file)
(loop :for line := (read-line in nil nil)
:while line
:when (eql 0 (search "registerFunction(" line))
:collect (let* ((start (position #... | |
105394d7968412240b55019503353d7c81b4ab8b36c06c131f89833ecb94f96e | camsaul/methodical | user.clj | (ns user
(:require
[environ.core :as env]
[humane-are.core :as humane-are]
[pjstadig.humane-test-output :as humane-test-output]))
(when-not (get env/env :inhumane-test-output)
(humane-test-output/activate!))
(humane-are/install!)
| null | https://raw.githubusercontent.com/camsaul/methodical/818f8b46743214bfe612a10e9303c393b99149b5/dev/user.clj | clojure | (ns user
(:require
[environ.core :as env]
[humane-are.core :as humane-are]
[pjstadig.humane-test-output :as humane-test-output]))
(when-not (get env/env :inhumane-test-output)
(humane-test-output/activate!))
(humane-are/install!)
| |
6787d5bbd40a12c6033b6b2716c89435507c958ed9b3cd4b08fe5736193a2a2f | emqx/emqx | emqx_dashboard_token.erl | %%--------------------------------------------------------------------
Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy o... | null | https://raw.githubusercontent.com/emqx/emqx/dbc10c2eed3df314586c7b9ac6292083204f1f68/apps/emqx_dashboard/src/emqx_dashboard_token.erl | erlang | --------------------------------------------------------------------
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express ... | Copyright ( c ) 2020 - 2023 EMQ Technologies Co. , Ltd. All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(emqx_dashboard_token).
-include("emqx_dashboard.hrl").
-export([
sign/2,
verif... |
95431c25ae8c5339c359212de0315846bc68fa78227109a4863dd897a6fa0534 | avatar29A/hs-aitubots-api | SimpleCatalog.hs | # LANGUAGE DuplicateRecordFields #
# LANGUAGE RecordWildCards #
{-# LANGUAGE OverloadedStrings #-}
module Aitu.Bot.Forms.Content.SimpleCatalog
( SimpleCatalog(..)
, SimpleCatalogItem(..)
)
where
import Data.Aeson hiding ( Options )
import Data.Text
import Aitu.Bo... | null | https://raw.githubusercontent.com/avatar29A/hs-aitubots-api/9cc3fd1e4e9e81491628741a6bbb68afbb85704e/src/Aitu/Bot/Forms/Content/SimpleCatalog.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DuplicateRecordFields #
# LANGUAGE RecordWildCards #
module Aitu.Bot.Forms.Content.SimpleCatalog
( SimpleCatalog(..)
, SimpleCatalogItem(..)
)
where
import Data.Aeson hiding ( Options )
import Data.Text
import Aitu.Bot.Forms.Options ( Options
... |
6cd354061b4317728d769a29c4d1fc5c22fc75e648c07de005b063b176c19dbc | wadehennessey/wcl | cl-macros.lisp | ( C ) Copyright 1990 - 2014 by . All rights reserved .
(defmacro defmacro (name lambda-list &body body)
`(define-macro ',name
,(parse-macro-definition name lambda-list nil body)))
(defmacro deftype (name lambda-list &body body)
`(define-type
',name
,(parse-macro-definition name lambda-list '* bo... | null | https://raw.githubusercontent.com/wadehennessey/wcl/841316ffe06743d4c14b4ed70819bdb39158df6a/src/cl/decls/cl-macros.lisp | lisp | HEY! fix index
This is from SPICE
SPICE code. Rewrite to call DELETE-PROPERTY.
HEY! change to use (end . result) no the destructuring-bind works.
loop inversion
no step form?
HEY! Unify with above?
loop inversion
no step form?
(,var 0 (+ ,var 1)))
((= ,var ,limit) ,result)
(declare (fixnum ,limi... | ( C ) Copyright 1990 - 2014 by . All rights reserved .
(defmacro defmacro (name lambda-list &body body)
`(define-macro ',name
,(parse-macro-definition name lambda-list nil body)))
(defmacro deftype (name lambda-list &body body)
`(define-type
',name
,(parse-macro-definition name lambda-list '* bo... |
16496f923e21fd864ae851e58cc1384d6852f1026cdf2cb52fcd652d42b5571b | coq-community/coqffi | raise.mli | val unwrap : 'a option -> 'a [@@may_raise] [@@pure]
val print : string -> unit [@@may_raise]
| null | https://raw.githubusercontent.com/coq-community/coqffi/9307403abe0919665cd38dcc8f71582e950aa7c1/examples/src/raise.mli | ocaml | val unwrap : 'a option -> 'a [@@may_raise] [@@pure]
val print : string -> unit [@@may_raise]
| |
7c1e6b14550fc61bca144127fe8d2787135cacde1b8bb0d77c1f7e823fecaa64 | nuprl/gradual-typing-performance | shadow-south.rkt | #lang racket/base
(provide shadow-south)
(require racket/draw racket/runtime-path)
(define-runtime-path shadow-south-img "shadow-south.png")
(define shadow-south (read-bitmap shadow-south-img))
| null | https://raw.githubusercontent.com/nuprl/gradual-typing-performance/35442b3221299a9cadba6810573007736b0d65d4/pre-benchmark/ecoop/htdp-lib/2htdp/planetcute/shadow-south.rkt | racket | #lang racket/base
(provide shadow-south)
(require racket/draw racket/runtime-path)
(define-runtime-path shadow-south-img "shadow-south.png")
(define shadow-south (read-bitmap shadow-south-img))
| |
577609c51d9fb964bcad821a9b056571a1f56c69977dbe5dfb74ce276f0ea3e8 | herd/herdtools7 | int32Value.ml | (****************************************************************************)
(* the diy toolsuite *)
(* *)
, University College London , UK .
, INRIA Par... | null | https://raw.githubusercontent.com/herd/herdtools7/b22ec02af1300a45e2b646cce4253ecd4fa7f250/lib/int32Value.ml | ocaml | **************************************************************************
the diy toolsuite
en Automatique and ... | , University College London , UK .
, INRIA Paris - Rocquencourt , France .
Copyright 2017 - present Institut National de Recherche en Informatique et
This software is governed by the CeCILL - B license under French law and
modify and/ or redistribu... |
12292a29cb3645c76f7081955c446e926b6dacb3bb8864de0933fb86877ade2b | ghc/packages-base | String.hs | # LANGUAGE Trustworthy #
# LANGUAGE CPP , NoImplicitPrelude #
-----------------------------------------------------------------------------
-- |
-- Module : Foreign.C.String
Copyright : ( c ) The FFI task force 2001
-- License : BSD-style (see the file libraries/base/LICENSE)
--
Maintainer :
... | null | https://raw.githubusercontent.com/ghc/packages-base/52c0b09036c36f1ed928663abb2f295fd36a88bb/Foreign/C/String.hs | haskell | ---------------------------------------------------------------------------
|
Module : Foreign.C.String
License : BSD-style (see the file libraries/base/LICENSE)
Stability : provisional
Portability : portable
determined by the current locale. As a consequence, no guarantees
corresponding C st... | # LANGUAGE Trustworthy #
# LANGUAGE CPP , NoImplicitPrelude #
Copyright : ( c ) The FFI task force 2001
Maintainer :
Utilities for primitive marshalling of C strings .
The marshalling converts each character , representing a Unicode
code point , to one or more bytes in a manner that , by default ,... |
c0b5a37106840fd411d16e996f6193f4a9c03d722b59a91e0e778b2c8541ae35 | erlangonrails/devdb | merkerl.erl | %% -------------------------------------------------------------------
%%
merkerl : simple in - memory Trees
%%
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved .
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
exce... | null | https://raw.githubusercontent.com/erlangonrails/devdb/0e7eaa6bd810ec3892bfc3d933439560620d0941/dev/riak_core/src/merkerl.erl | erlang | -------------------------------------------------------------------
Version 2.0 (the "License"); you may not use this file
a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing,
KIND, either express or implied. See the License for the
specific language governing permissi... | merkerl : simple in - memory Trees
Copyright ( c ) 2007 - 2010 Basho Technologies , Inc. All Rights Reserved .
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WIT... |
9129c3f019ed8eb7faa3f01e4a9edf1ced21f0a5816618410354c78ca2bd1291 | haskell/cabal | cabal.test.hs | import Test.Cabal.Prelude
Invalid local paths .
main = cabalTest $
fails $ cabal "check" []
| null | https://raw.githubusercontent.com/haskell/cabal/1cfe7c4c7257aa7ae450209d34b4a359e6703a10/cabal-testsuite/PackageTests/Check/PackageFiles/LocalPaths/cabal.test.hs | haskell | import Test.Cabal.Prelude
Invalid local paths .
main = cabalTest $
fails $ cabal "check" []
| |
a59be8a9163aead344d2c557ff61504cde46342c2cc09a369db93fa63eeeb119 | ZHaskell/stdio | Base.hs | # LANGUAGE MagicHash , UnboxedTuples #
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE UnliftedFFITypes #-}
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE PatternSynonyms #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE CPP #
|
Module : Std . Data . Text . Base
Description : U... | null | https://raw.githubusercontent.com/ZHaskell/stdio/7887b9413dc9feb957ddcbea96184f904cf37c12/std-data/Std/Data/Text/Base.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE UnliftedFFITypes #
# LANGUAGE DeriveDataTypeable #
* Text type
* Building text
* Basic creating
* Conversion between list
* Conversion between codepoint vector
* Basic interface
** Special folds
** normalization
** Case conversion
$case
** Unicode category
* Misc
^ Ext... | # LANGUAGE MagicHash , UnboxedTuples #
# LANGUAGE PatternSynonyms #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE CPP #
|
Module : Std . Data . Text . Base
Description : Unicode text processing
Copyright : ( c ) , 2017 - 2018
License : BSD
Maintainer : ... |
cef87a56dc398339584d6caea501c06eee7a57fa4fc433724754ddb39ba6d3b1 | DavidAlphaFox/aiutp | aiutp_acceptor.erl | %%%-------------------------------------------------------------------
@author < >
( C ) 2020 ,
%%% @doc
%%%
%%% @end
Created : 27 May 2020 by < >
%%%-------------------------------------------------------------------
-module(aiutp_acceptor).
-behaviour(gen_server).
-include("aiutp.hrl").
%% API
-expor... | null | https://raw.githubusercontent.com/DavidAlphaFox/aiutp/d01f7b0875b6bbf05dc05a0be336ebe44345b5af/src/aiutp_acceptor.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API
gen_server callbacks
===================================================================
API
===================================================================
---... | @author < >
( C ) 2020 ,
Created : 27 May 2020 by < >
-module(aiutp_acceptor).
-behaviour(gen_server).
-include("aiutp.hrl").
-export([start_link/4]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2,
terminate/2, code_change/3, format_status/2]).
-export([accept/2,incoming/2]).
... |
372a5de7a823fd4428562ee0f736ffbfed95785b2be1466040a80aaf11bbf807 | l29ah/hyborg | Cache.hs | module Cache where
import Conduit
import Data.ByteString (ByteString)
import qualified Data.Conduit.List as CL
import Data.Conduit.Serialization.Binary
import qualified Data.HashMap.Strict as HM
import Data.MessagePack
import Data.String.Class
import System.Environment.XDG.BaseDir
import System.IO
import RPC
import T... | null | https://raw.githubusercontent.com/l29ah/hyborg/9c7865f3edb949676fc9122d79aa652bda6a1255/Cache.hs | haskell | module Cache where
import Conduit
import Data.ByteString (ByteString)
import qualified Data.Conduit.List as CL
import Data.Conduit.Serialization.Binary
import qualified Data.HashMap.Strict as HM
import Data.MessagePack
import Data.String.Class
import System.Environment.XDG.BaseDir
import System.IO
import RPC
import T... | |
a02aa5facf6b2b591f5b5cff34d655f8a3ef1cd9fb76cf2354e2b8896710ae5b | arachne-framework/arachne-http | config.clj | (ns arachne.http.config
"Utilities for working with HTTP entities in a configuration"
(:require [arachne.core.config :as cfg]
[clojure.set :as set]
[clojure.string :as str]))
(def route-rules
"Datalog rule to recursively associate parent and child route segments in a routing tree.
Prov... | null | https://raw.githubusercontent.com/arachne-framework/arachne-http/133e45cc0692b3f0efc552580a3ee3fd9fc6e985/src/arachne/http/config.clj | clojure | (ns arachne.http.config
"Utilities for working with HTTP entities in a configuration"
(:require [arachne.core.config :as cfg]
[clojure.set :as set]
[clojure.string :as str]))
(def route-rules
"Datalog rule to recursively associate parent and child route segments in a routing tree.
Prov... | |
f63fb3233ac16aa580ec60ae98a8391097f899865f6eedceac5a08ed82536c6b | facebookarchive/pfff | thread.ml | (***********************************************************************)
(* *)
(* OCaml *)
(* *)
and , projet Cris... | null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/external/stdlib/thread.ml | ocaml | *********************************************************************
OCaml
... | and , 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$
type t
external thread_initialize : un... |
d49d0843ecdc467e08a459bda28a03a8ef4af595b7b222f438c25bed4e29b5fb | input-output-hk/plutus | Class.hs | # LANGUAGE FlexibleInstances #
{-# LANGUAGE TypeFamilies #-}
module Data.RandomAccessList.Class
( RandomAccessList (..)
, Data.RandomAccessList.Class.head
, Data.RandomAccessList.Class.tail
, AsRAL (..)
) where
import Data.Kind
import Data.List qualified as List
import Data.List.Extra qualifie... | null | https://raw.githubusercontent.com/input-output-hk/plutus/892d9b03a67e3b9f8c452784ab4e758ff3eb2781/plutus-core/index-envs/src/Data/RandomAccessList/Class.hs | haskell | # LANGUAGE TypeFamilies #
| Typeclass for various types implementing the "signature" of a random-access list.
A true random-access list should have good asymptotic behaviour for these methods also,
but for convenience we also provide implementations for e.g. '[a]', which has bad
lookup performance.
| The typ... | # LANGUAGE FlexibleInstances #
module Data.RandomAccessList.Class
( RandomAccessList (..)
, Data.RandomAccessList.Class.head
, Data.RandomAccessList.Class.tail
, AsRAL (..)
) where
import Data.Kind
import Data.List qualified as List
import Data.List.Extra qualified as List
import Data.Maybe (fromJu... |
2ebc95d3a5439e18c4b41e68bb03e3869d4b130b8971d463d8eb1f01646e2f4e | cbaggers/varjo | symbol-macros.lisp | (in-package :varjo.tests)
(5am:in-suite symbol-macro-tests)
;;------------------------------------------------------------
;; Tests
(5am:def-test symbol-macros-0 (:suite symbol-macro-tests)
(glsl-contains-p "vec4\\(10.0f,10.0f,0.0f,0.0f\\)"
(compile-vert () :410 nil
(symbol-macrolet ((x 10f0))
(v!... | null | https://raw.githubusercontent.com/cbaggers/varjo/9e77f30220053155d2ef8870ceba157f75e538d4/tests/symbol-macros.lisp | lisp | ------------------------------------------------------------
Tests | (in-package :varjo.tests)
(5am:in-suite symbol-macro-tests)
(5am:def-test symbol-macros-0 (:suite symbol-macro-tests)
(glsl-contains-p "vec4\\(10.0f,10.0f,0.0f,0.0f\\)"
(compile-vert () :410 nil
(symbol-macrolet ((x 10f0))
(v! x x 0f0 0f0)))))
(5am:def-test symbol-macros-1 (:suite symbol-macro-te... |
d157be7b57d95150742e0ec4f88c94ea03cae1cdd0317877d77db175b13a99e0 | tsloughter/kuberl | kuberl_v1_non_resource_rule.erl | -module(kuberl_v1_non_resource_rule).
-export([encode/1]).
-export_type([kuberl_v1_non_resource_rule/0]).
-type kuberl_v1_non_resource_rule() ::
#{ 'nonResourceURLs' => list(),
'verbs' := list()
}.
encode(#{ 'nonResourceURLs' := NonResourceURLs,
'verbs' := Verbs
}) ->
#{ 'nonRe... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_non_resource_rule.erl | erlang | -module(kuberl_v1_non_resource_rule).
-export([encode/1]).
-export_type([kuberl_v1_non_resource_rule/0]).
-type kuberl_v1_non_resource_rule() ::
#{ 'nonResourceURLs' => list(),
'verbs' := list()
}.
encode(#{ 'nonResourceURLs' := NonResourceURLs,
'verbs' := Verbs
}) ->
#{ 'nonRe... | |
dec6110b07ae23f07df0cd17223455ac2367d4095b30266a13545dec4de4d7d3 | janegca/htdp2e | Exercise-277-words-on-line.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-277-words-on-line) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t c... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/03-Intermezzo-Scope/Exercise-277-words-on-line.rkt | racket | about the language level of this file in a form that our tools can easily process.
nested list in a list of list of strings. Using the notation from
Abstraction, the function’s signature, purpose and header can be
formulated like this:
[List-of [List-of String]] -> [List-of Number]
determines the number of words... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname Exercise-277-words-on-line) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f ())))
Exercise 277 .
Figure 45 displays... |
ea6b9bdb1adcab37ddf31709000752a474a7cf80e56056b43e51a9b2939e9a1f | imandra-ai/ocaml-cimgui | imgui_opengl3_types_f.ml |
module Make(Types : Cstubs_structs.TYPE) = struct
open! Types
(* TODO: just remove? *)
end
| null | https://raw.githubusercontent.com/imandra-ai/ocaml-cimgui/55c71078705099ea60d91630610f6d750fd07abb/src/sys/opengl3/imgui_opengl3_types_f.ml | ocaml | TODO: just remove? |
module Make(Types : Cstubs_structs.TYPE) = struct
open! Types
end
|
6c6e33a0bab5bad9ca8b212114d24fbc6c95bb43ef4194cae8cd6540ed03ccb1 | rtoy/cmucl | streams.lisp | -*- Log : hemlock.log ; Package : Hemlock - Internals -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/hem... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/hemlock/streams.lisp | lisp | Package : Hemlock - Internals -*-
**********************************************************************
**********************************************************************
This file contains definitions of various types of streams used
difficulty.
The mark we insert at.
The region we read from.
... | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/hemlock/streams.lisp $")
in Hemlock . They are implementation dependant , but should be
portable to all implementations based on Spice Lisp ... |
ee72f4730b30b91555140dc035fbb49b9f6fe76dbae5e9f27e9bf025d8b099ca | input-output-hk/cardano-wallet | Pool.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE DeriveGeneric #
# LANGUAGE NamedFieldPuns #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
-- |
Copyright : © 2021
-- License: Apache-2.0
--
-- An address pool caches a collection of addresses.
-- The purpose of this data structure is ... | null | https://raw.githubusercontent.com/input-output-hk/cardano-wallet/7b541e0b11fdd69b30d94104dbd5fa633ff1d5c3/lib/wallet/src/Cardano/Wallet/Address/Pool.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE RankNTypes #
|
License: Apache-2.0
An address pool caches a collection of addresses.
The purpose of this data structure is to aid in BIP-44 style
address discovery with an address gap.
* Address Discovery
* Internal
-----------------------------------------------------------... | # LANGUAGE DeriveGeneric #
# LANGUAGE NamedFieldPuns #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeFamilies #
Copyright : © 2021
module Cardano.Wallet.Address.Pool
( Pool
, addressFromIx
, addresses
, usedAddresses
, gap
, lookup
, size
, successor
, new
, load
, upda... |
003b15a541cdc5441fd5f996326479db5f79dc66ca618a0d4322ed9e61ad6d03 | erlang/corba | orber_ifr_wstringdef.erl | %%--------------------------------------------------------------------
%%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain ... | null | https://raw.githubusercontent.com/erlang/corba/396df81473a386d0315bbba830db6f9d4b12a04f/lib/orber/src/orber_ifr_wstringdef.erl | erlang | --------------------------------------------------------------------
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY... | Copyright Ericsson AB 2000 - 2016 . All Rights Reserved .
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
File : orber_ifr_wstringdef.erl
-module(orber_ifr_wstringdef).
-export(['_get_def_kind'/1,
destroy/1,
not in... |
b55c847c28a7cc7ce9609fb8f286cef49cc22cf8829befa304376b68f6f32ad2 | TrustInSoft/tis-kernel | loop.mli | (**************************************************************************)
(* *)
This file is part of .
(* *)
is a fork of Frama - C. Al... | null | https://raw.githubusercontent.com/TrustInSoft/tis-kernel/748d28baba90c03c0f5f4654d2e7bb47dfbe4e7d/src/kernel_services/analysis/loop.mli | ocaml | ************************************************************************
... | This file is part of .
is a fork of Frama - C. All the differences are :
Copyright ( C ) 2016 - 2017
is released under GPLv2
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015 ... |
2b7c44150287e72093cffa8bffbb7557f3b366b6c9aaed13b85fdc338f74e2f2 | WorksHub/client | numbers.cljc | (ns wh.common.numbers)
(defn parse-int
"Parse a string as integer, returning nil if it wasn't possible."
[s]
#?(:clj (try
(Integer/parseInt s)
(catch Exception _ nil))
:cljs (when (and (string? s) (re-find #"^[-+]?\d+$" s))
(let [res (js/parseInt s)]
(when... | null | https://raw.githubusercontent.com/WorksHub/client/e284edc012cbf32bf23f31ba24e8691aba94e117/common/src/wh/common/numbers.cljc | clojure | Strings have to be parsed with parseInt | (ns wh.common.numbers)
(defn parse-int
"Parse a string as integer, returning nil if it wasn't possible."
[s]
#?(:clj (try
(Integer/parseInt s)
(catch Exception _ nil))
:cljs (when (and (string? s) (re-find #"^[-+]?\d+$" s))
(let [res (js/parseInt s)]
(when... |
263bd72fb1bd550abcb74954c8bcd5ed6c8b9eb15b68854e016f3280aff373ca | gebi/jungerl | passwd_checker.erl | %%%-------------------------------------------------------------------
Created : 1 Dec 2006 by Tobbe < >
Desc . : A ( pro - active ) password checker .
%%%
@author < >
%%%
%%% @doc <b>passwd_checker</b> is a pro-active password checker.
It makes use of a tiny port program that uses .
%%%
%%% ... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/yfront/src/passwd_checker.erl | erlang | -------------------------------------------------------------------
@doc <b>passwd_checker</b> is a pro-active password checker.
Download the dictionaries you want to use, e.g see:
create-cracklib-dict /usr/share/dict/*
On RedHat:
mkdict /usr/share/dict/* | packer /usr/lib/cr... | Created : 1 Dec 2006 by Tobbe < >
Desc . : A ( pro - active ) password checker .
@author < >
It makes use of a tiny port program that uses .
Then rebuild the dictionary , on :
On Ubuntu / Debian , see the man page for . You 'll
to : CRACKLIB_DICTPATH=/var / ca... |
bac4e99ee6cbd4b597c291c46ae2be0165241ebabc3a4c4cc4b892c7b59eb5c3 | jacquev6/General | Integer.ml | module Operators = struct
module type S0 = sig
type t
include RealNumber.Operators.S0 with type t := t
end
end
module type S0 = sig
type t
module O: Operators.S0 with type t := t
include RealNumber.S0 with type t := t and module O := O
include Traits.PredSucc.S0 with type t := t
end
module Tests_ ... | null | https://raw.githubusercontent.com/jacquev6/General/5237123668e939c0cb83aa3e1c4756473336bc7e/src/Generated/Concepts/Integer.ml | ocaml | module Operators = struct
module type S0 = sig
type t
include RealNumber.Operators.S0 with type t := t
end
end
module type S0 = sig
type t
module O: Operators.S0 with type t := t
include RealNumber.S0 with type t := t and module O := O
include Traits.PredSucc.S0 with type t := t
end
module Tests_ ... | |
49ecf4c107da4d47133201e54fb85fac12a536eb8024fad04f75c944c6f622a9 | larcenists/larceny | ilists.body2.scm | ;;; SRFI-116 ilist-processing library -*- Scheme -*-
;;; Sample implementation
;;;
Copyright ( c ) 1998 , 1999 by .
Modifications Copyright ( c ) 2014 by .
;;; You may do as you please with
;;; this code as long as you do not remove either copyright notice
;;; or hold us liable for its use. Please send bug ... | null | https://raw.githubusercontent.com/larcenists/larceny/fef550c7d3923deb7a5a1ccd5a628e54cf231c75/lib/SRFI/srfi/116/ilists.body2.scm | scheme | SRFI-116 ilist-processing library -*- Scheme -*-
Sample implementation
You may do as you please with
this code as long as you do not remove either copyright notice
or hold us liable for its use. Please send bug reports to
<>.
carefully considering the functions provided by the libraries found in
rich toolk... | Copyright ( c ) 1998 , 1999 by .
Modifications Copyright ( c ) 2014 by .
This is a library of ilist- and ipair - processing functions . I wrote it after
R4RS / R5RS Scheme , MIT Scheme , Gambit , RScheme , MzScheme , slib , Common
Lisp , Bigloo , guile , T , APL and the SML standard basis . It is a prett... |
cac8591844984a9354fd1ca1fcd845ab6a9d33718fa96a563ef8cda59525efb9 | fstamour/breeze | xref-test.lisp | (in-package #:common-lisp-user)
(uiop:define-package #:breeze.xref.test
(:documentation "Tests for breeze.xref.")
(:mix #:breeze.xref #:cl #:alexandria)
(:import-from #:breeze.test
#:deftest
#:is))
(in-package #:breeze.xref.test)
(deftest test-calls-who
(is (equalp '(dum:mul... | null | https://raw.githubusercontent.com/fstamour/breeze/eb25eccd91481e907d31b2cd8afdc2a5eaf4265b/scratch-files/xref-test.lisp | lisp | (breeze.xref::function-without-test) | (in-package #:common-lisp-user)
(uiop:define-package #:breeze.xref.test
(:documentation "Tests for breeze.xref.")
(:mix #:breeze.xref #:cl #:alexandria)
(:import-from #:breeze.test
#:deftest
#:is))
(in-package #:breeze.xref.test)
(deftest test-calls-who
(is (equalp '(dum:mul... |
7e7a4cfba8ec9b3c5440422290b98ca1fbeab028e931910d7e809e3fde20c5f7 | grin-compiler/ghc-whole-program-compiler-project | Interpreter.hs | # LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings #
# LANGUAGE ForeignFunctionInterface #
module Stg.Interpreter where
import GHC.Stack
import qualified GHC.Exts as Exts
import Foreign.Ptr
import Control.Concurrent
import Control.Concurrent.MVar
import qualified Control.Concurrent.Chan.Unagi.Bounded as Una... | null | https://raw.githubusercontent.com/grin-compiler/ghc-whole-program-compiler-project/f5c58f7ed82c23a79991e9f6e0cf4e0370d7c18b/external-stg-interpreter/lib/Stg/Interpreter.hs | haskell | ^ @Int#@ - according to target machine
^ @Int64#@ - exactly 64 bits
^ @Word#@ - according to target machine
^ @Word64#@ - exactly 64 bits
^ @Int#@ - according to target machine
^ @Int64#@ - exactly 64 bits
^ @Word#@ - according to target machine
^ @Word64#@ - exactly 64 bits
HINT : needed for the async exc... | # LANGUAGE RecordWildCards , LambdaCase , OverloadedStrings #
# LANGUAGE ForeignFunctionInterface #
module Stg.Interpreter where
import GHC.Stack
import qualified GHC.Exts as Exts
import Foreign.Ptr
import Control.Concurrent
import Control.Concurrent.MVar
import qualified Control.Concurrent.Chan.Unagi.Bounded as Una... |
3b8389acc26d965af15fb37504f9a9fea27cfbedfaab7f2de15e0b6562168cf0 | janegca/htdp2e | Exercise-037-SampleWorldV3.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-037-SampleWorldV3) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp... | null | https://raw.githubusercontent.com/janegca/htdp2e/2d50378135edc2b8b1816204021f8763f8b2707b/01-FixedSizeData/Exercise-037-SampleWorldV3.rkt | racket | about the language level of this file in a form that our tools can easily process.
Then assemble all the function definitions, including their tests. When your
program runs to your satisfaction, add a tree to scenery (use given defintion)
Also add a clause to the big-bang expression that stops the animation when
... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-beginner-reader.ss" "lang")((modname Exercise-037-SampleWorldV3) (read-case-sensitive #t) (teachpacks ((lib "image.rkt" "teachpack" "2htdp") (lib "universe.rkt" "teachpack" "2htdp") (lib "batch-io.rkt" "teachpack" "2htdp")))... |
7d4e87ed9a589aac0369a6fbc589cec740a29eadddb278ca5bd4e365be9d085e | nervous-systems/shapeshiftr | munge.cljc | (ns ^:no-doc shapeshiftr.munge
(:require [clojure.string :as str]
[shapeshiftr.util :as u]
[clojure.walk :as walk]
[camel-snake-kebab.extras :as csk.extras]
[camel-snake-kebab.core :as csk]))
(defn str->number [s]
#? (:clj (bigdec s)
:cljs (js/parseFloat s)))
... | null | https://raw.githubusercontent.com/nervous-systems/shapeshiftr/a783382b9061ce23d234927c9c40b0e7e3f79137/src/shapeshiftr/munge.cljc | clojure | (ns ^:no-doc shapeshiftr.munge
(:require [clojure.string :as str]
[shapeshiftr.util :as u]
[clojure.walk :as walk]
[camel-snake-kebab.extras :as csk.extras]
[camel-snake-kebab.core :as csk]))
(defn str->number [s]
#? (:clj (bigdec s)
:cljs (js/parseFloat s)))
... | |
45e20c4f1fb3dfdb8671d8ce0264252c44574cf856906bbd42b3cfbaf2c3f11b | TrustInSoft/tis-interpreter | mergecil.ml | Modified by TrustInSoft
(****************************************************************************)
(* *)
Copyright ( C ) 2001 - 2003
< >
(* Scott M... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/kernel_internals/typing/mergecil.ml | ocaml | **************************************************************************
Scott McPeak <>
All rights reserved.
... | Modified by TrustInSoft
Copyright ( C ) 2001 - 2003
< >
< >
< >
1 . Redistributions of source code must retain the above copyright ... |
7226a97a0a8cb6977a08af7b822295601f5a235bf65a03f1fbd240cd1b4beaa7 | heraldry/heraldicon | semy.cljs | (ns heraldicon.reader.blazonry.transform.semy
(:require
[heraldicon.reader.blazonry.transform.fimbriation :refer [add-fimbriation]]
[heraldicon.reader.blazonry.transform.shared :refer [ast->hdn transform-first]]
[heraldicon.reader.blazonry.transform.tincture-modifier :refer [add-tincture-modifiers]]))
(defn... | null | https://raw.githubusercontent.com/heraldry/heraldicon/f3298ed0b3394f8db78c4e5e548adc61cd9a256d/src/heraldicon/reader/blazonry/transform/semy.cljs | clojure | (ns heraldicon.reader.blazonry.transform.semy
(:require
[heraldicon.reader.blazonry.transform.fimbriation :refer [add-fimbriation]]
[heraldicon.reader.blazonry.transform.shared :refer [ast->hdn transform-first]]
[heraldicon.reader.blazonry.transform.tincture-modifier :refer [add-tincture-modifiers]]))
(defn... | |
623527b045dfef26c7853345b135e04303083dd07627b79060e9fa9620e93044 | marick/fp-oo | superclass.clj |
Exercise 1
(def superclass-from-instance
(fn [instance]
(assert (map? instance))
(eval (:__superclass_symbol__ (class-from-instance instance)))))
(def send-super
(fn [instance message & args]
(apply-message-to (superclass-from-instance instance)
instance mes... | null | https://raw.githubusercontent.com/marick/fp-oo/434937826d794d6fe02b3e9a62cf5b4fbc314412/old-code/solutions/superclass.clj | clojure | Here is the original:
If (message (method-cache class)) comes back nil, we *could* apply
a different method, looking up `method-missing` in the
method-cache. That could look like this:
That looks kind of ugly to me, just due to sheer length. Also,
having to wrap the args argument in order to defeat the way `apply... |
Exercise 1
(def superclass-from-instance
(fn [instance]
(assert (map? instance))
(eval (:__superclass_symbol__ (class-from-instance instance)))))
(def send-super
(fn [instance message & args]
(apply-message-to (superclass-from-instance instance)
instance mes... |
969e2eebc38d8ae6003941cdf809a445f75440a7b6522646b97254f4b944051b | erlang/rebar3 | ec_assoc_list.erl | %%% vi:ts=4 sw=4 et
%%%-------------------------------------------------------------------
@author < >
2011 Erlware , LLC .
%%% @doc
%%% provides an implementation of ec_dictionary using an association
%%% list as a basy
%%% see ec_dictionary
%%% @end
%%%-------------------------------------------------------... | null | https://raw.githubusercontent.com/erlang/rebar3/048412ed4593e19097f4fa91747593aac6706afb/vendor/erlware_commons/src/ec_assoc_list.erl | erlang | vi:ts=4 sw=4 et
-------------------------------------------------------------------
@doc
provides an implementation of ec_dictionary using an association
list as a basy
see ec_dictionary
@end
-------------------------------------------------------------------
API
===============================================... | @author < >
2011 Erlware , LLC .
-module(ec_assoc_list).
-behaviour(ec_dictionary).
-export([new/0,
has_key/2,
get/2,
get/3,
add/3,
remove/2,
has_value/2,
size/1,
to_list/1,
from_list/1,
keys/1]).
-export_type([dictiona... |
246ae991c8f470ca04cccc9e539c122b0c7aec040d7c4763c00ae73e552f31ac | master/ejabberd | mod_vcard_ldap.erl | %%%----------------------------------------------------------------------
%%% File : mod_vcard_ldap.erl
Author : < >
Purpose : Support for VCards from LDAP storage .
Created : 2 Jan 2003 by < >
%%%
%%%
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
%%%
%%% This program is free software; you c... | null | https://raw.githubusercontent.com/master/ejabberd/9c31874d5a9d1852ece1b8ae70dd4b7e5eef7cf7/src/mod_vcard_ldap.erl | erlang | ----------------------------------------------------------------------
File : mod_vcard_ldap.erl
This program is free software; you can redistribute it and/or
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without eve... | Author : < >
Purpose : Support for VCards from LDAP storage .
Created : 2 Jan 2003 by < >
ejabberd , Copyright ( C ) 2002 - 2012 ProcessOne
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation ; either version 2 of the
You should have receiv... |
858eea3daa8ec875bb814f0f1879a9713990caab94ebb74f8edc69bb57e064ea | wellposed/numerical | Locality.hs |
# LANGUAGE DataKinds #
{-# LANGUAGE DeriveDataTypeable #-}
# LANGUAGE CPP #
# LANGUAGE TypeFamilies #
# LANGUAGE StandaloneDeriving #
module Numerical.Array.Locality(Locality(..),LocalityMax,LocalityMin) where
import Data.Data
data Locality = Contiguous | Strided | InnerContiguous
deriving (Eq,Show,Read,Typea... | null | https://raw.githubusercontent.com/wellposed/numerical/6b458232760b20674487bd9f8442b0991ce59423/src/Numerical/Array/Locality.hs | haskell | # LANGUAGE DeriveDataTypeable # |
# LANGUAGE DataKinds #
# LANGUAGE CPP #
# LANGUAGE TypeFamilies #
# LANGUAGE StandaloneDeriving #
module Numerical.Array.Locality(Locality(..),LocalityMax,LocalityMin) where
import Data.Data
data Locality = Contiguous | Strided | InnerContiguous
deriving (Eq,Show,Read,Typeable,Data)
#if defined(__GLASGOW_HAS... |
0fe443d4dd31e43046346a3f41a0ba3ff638062fd8738b6841147750d91b7b1c | Practical-Formal-Methods/adiff | TravMonad.hs | # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts , FlexibleInstances ,
PatternGuards , RankNTypes , ScopedTypeVariables #
PatternGuards, RankNTypes, ScopedTypeVariables #-}
-----------------------------------------------------------------------------
-- |
-- Module ... | null | https://raw.githubusercontent.com/Practical-Formal-Methods/adiff/c18872faf3e31572437686d766f9972e00274588/language-c-extensible/src/Language/C/Analysis/TravMonad.hs | haskell | ---------------------------------------------------------------------------
|
Module : Language.C.Analysis.TravMonad
License : BSD-style
Maintainer :
Stability : alpha
name generation facilities.
Furthermore, the user may provide callbacks to handle declarations and definitions.
--------------... | # LANGUAGE MultiParamTypeClasses , TypeSynonymInstances , FlexibleContexts , FlexibleInstances ,
PatternGuards , RankNTypes , ScopedTypeVariables #
PatternGuards, RankNTypes, ScopedTypeVariables #-}
Copyright : ( c ) 2008
Portability : ghc
Monad for of the C AST .
For the t... |
46451ba0828ab0cbf2c26a49ee16ddcd1d6b2772c2758fc1be1eddbd2c957f0d | patricoferris/jsoo-p5 | index.ml | open P5
let setup () = Canvas.create 800 800 |> ignore
let draw () =
Color.fill (Color.make 255 0 0);
Shape.rect 50. 50. 50. 50.
let () = Sketch.run ~setup ~draw ()
| null | https://raw.githubusercontent.com/patricoferris/jsoo-p5/743dccce67cd8d942e3028a526046f20c08306be/examples/0-red-square/index.ml | ocaml | open P5
let setup () = Canvas.create 800 800 |> ignore
let draw () =
Color.fill (Color.make 255 0 0);
Shape.rect 50. 50. 50. 50.
let () = Sketch.run ~setup ~draw ()
| |
c32751210b39519faf7451de946622ab7f9fd3086c6947800688cdda8496bdde | evturn/programming-in-haskell | 13.04-sequencing-parsers.hs | import Control.Applicative
import Data.Char
newtype Parser a = P (String -> [(a, String)])
| Removes the ` P ` dummy constructor from the ` Parser ` type and applies it to
-- an input string.
parse :: Parser a -> String -> [(a, String)]
parse (P p) inp = p inp
| Fails if the input string is e... | null | https://raw.githubusercontent.com/evturn/programming-in-haskell/0af2c48c8221b5bcd052492e2be2b79635f6994c/13-monadic-parsing/13.04-sequencing-parsers.hs | haskell | an input string.
character as the result value.
| Applies a function to the result value of a parser if the parser succeeds,
and propagates the failure otherwise.
| The `pure` function transforms a value into a parser that always succeeds
with this value as its result without consuming any of the input string.
|... | import Control.Applicative
import Data.Char
newtype Parser a = P (String -> [(a, String)])
| Removes the ` P ` dummy constructor from the ` Parser ` type and applies it to
parse :: Parser a -> String -> [(a, String)]
parse (P p) inp = p inp
| Fails if the input string is empty , otherwise suc... |
52dec0f8ff27d1c6c8ae290cbafc204d1a7ef4a1d0fccd994b3486ec2ae10e13 | kizzx2/haskell-qrcode | Spec.hs | {-# OPTIONS_HADDOCK hide #-}
module Codec.Binary.QRCode.Spec where
import Data.Maybe
import Codec.Binary.QRCode.GaloisField
data Mode = Numeric -- ^ @0123456789@
| @0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $ % * + -.:.@
--
-- Input alphabets are automatically converted to upper case.
| ... | null | https://raw.githubusercontent.com/kizzx2/haskell-qrcode/be06628d4cb77381c55a788c11c1695ebe432c28/Codec/Binary/QRCode/Spec.hs | haskell | # OPTIONS_HADDOCK hide #
^ @0123456789@
Input alphabets are automatically converted to upper case.
Decreasing degree of x
Annex A Error detection and correction generator polynomials
(x^7) + (a^87)(x^6) + (a^146)(x^4) + ... + (a^21) | module Codec.Binary.QRCode.Spec where
import Data.Maybe
import Codec.Binary.QRCode.GaloisField
| @0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $ % * + -.:.@
| Alphanumeric
| EightBit
| Kanji
deriving (Show, Eq)
newtype Version = Version Int deriving (Show, Eq)
^ Error recovery u... |
280c7712b61d9dd78dcccd01bfd1def951878102abf3f094dcf81feee88761ed | SquircleSpace/shcl | support.lisp | Copyright 2017
;;
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 Li... | null | https://raw.githubusercontent.com/SquircleSpace/shcl/cc8d3c841b8b64b6715bf8f238fb19cd6093a793/core/support.lisp | lisp |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing per... | Copyright 2017
distributed under the License is distributed on an " AS IS " BASIS ,
(defpackage :shcl/core/support
(:use :common-lisp :cffi :shcl/core/utility :shcl/core/posix-types)
(:import-from :bordeaux-threads #:make-lock #:with-lock-held)
(:export
#:wifexited #:wifstopped #:wifsignaled #:wexitstat... |
c8c475f5424ab9ca007175e8f5f84b9489e866625a72b8a9a7656abc637574eb | nubank/vessel | data_readers.cljc | {lib4/usd lib4.money/bigdec->money}
| null | https://raw.githubusercontent.com/nubank/vessel/40036928d20cfd07b31b99bb2389d5421c49d26d/test/resources/lib4/data_readers.cljc | clojure | {lib4/usd lib4.money/bigdec->money}
| |
e778494897d3060888e16d7cd232bd46a7e50e38b993b11bf51f4354ef1d30c5 | mejgun/haskell-tdlib | GetUserSupportInfo.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
module TD.Query.GetUserSupportInfo where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
-- |
Returns support information for the given user ; for Telegram support only @user_id User identifier
data GetUserSupportInfo = Get... | null | https://raw.githubusercontent.com/mejgun/haskell-tdlib/c9fe0a631abbb042d630817cf648ceae2fe2dad8/src/TD/Query/GetUserSupportInfo.hs | haskell | # LANGUAGE OverloadedStrings #
|
|
| |
module TD.Query.GetUserSupportInfo where
import qualified Data.Aeson as A
import qualified Data.Aeson.Types as T
import qualified Utils as U
Returns support information for the given user ; for Telegram support only @user_id User identifier
data GetUserSupportInfo = GetUserSupportInfo
user_id :: Maybe Int
}
... |
54e40cc7784e07fc6e499d825602175aa2caae451de8b633da8870be9708f067 | kelamg/HtDP2e-workthrough | ex451.rkt | The first three lines of this file were inserted by . They record metadata
;; about the language level of this file in a form that our tools can easily process.
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex451) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-... | null | https://raw.githubusercontent.com/kelamg/HtDP2e-workthrough/ec05818d8b667a3c119bea8d1d22e31e72e0a958/HtDP/Generative-Recursion/ex451.rkt | racket | about the language level of this file in a form that our tools can easily process.
A Table is a structure:
(make-table N [N -> Number])
N -> Number
Table N -> Number
looks up the ith value in array of t
Table -> N
finds the smallest index for a root of the table using linear search
assume: table is monotonic... | The first three lines of this file were inserted by . They record metadata
#reader(lib "htdp-intermediate-lambda-reader.ss" "lang")((modname ex451) (read-case-sensitive #t) (teachpacks ()) (htdp-settings #(#t constructor repeating-decimal #f #t none #f () #f)))
(define-struct table [length array])
(define table1 (... |
805b58bd5067a71c956aaa927960933e874e66515ee8d9aaa0fe992a28407470 | Wikia/vignette | local.clj | (ns vignette.storage.local
(:require [clojure.java.io :as io]
[clojure.java.shell :as sh]
[pantomime.mime :refer [mime-type-of]]
[vignette.media-types :as mt]
[digest]
[vignette.storage.protocols :refer :all]
[vignette.util.filesystem :refer :all... | null | https://raw.githubusercontent.com/Wikia/vignette/4797aeffc0a01dcfe1e1f661b2d2649d44ddb1d0/src/vignette/storage/local.clj | clojure | TODO: when the logger has a closure port, we should create an exception that has context that we can log w/ exceptions | (ns vignette.storage.local
(:require [clojure.java.io :as io]
[clojure.java.shell :as sh]
[pantomime.mime :refer [mime-type-of]]
[vignette.media-types :as mt]
[digest]
[vignette.storage.protocols :refer :all]
[vignette.util.filesystem :refer :all... |
6f690e6e85361c708d3f8fbb7d83d0de3c7ec7fdadb166e1fd98ff1283a90730 | bytekid/mkbtt | interfaceTTT.mli | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... | null | https://raw.githubusercontent.com/bytekid/mkbtt/c2f8e0615389b52eabd12655fe48237aa0fe83fd/src/mascott/src/interfaceTTT.mli | ocaml | ** VALUES ************************************************************ | Copyright 2010
* GNU Lesser General Public License
*
* This file is part of MKBtt .
*
* is free software : you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the
* Free Software Foundation , either version 3 of the License , or (... |
255292661559df5f141b524760200ef8ef3ba9f9daad24003f74f5cf11ab8966 | istathar/vaultaire | Setup.hs | --
Common Haskell build tools
--
Copyright © 2013 - 2014 Operational Dynamics Consulting , Pty Ltd and Others
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
the 3 - cla... | null | https://raw.githubusercontent.com/istathar/vaultaire/75603ea614b125568ca871e88280bd29b3aef4ba/Setup.hs | haskell |
The code in this file, and the program it is a part of, is
made available to you by its authors as open source software:
you can redistribute it and/or modify it under the terms of
| Common Haskell build tools
Copyright © 2013 - 2014 Operational Dynamics Consulting , Pty Ltd and Others
the 3 - clause BSD licence .
import Data.Char (toUpper)
import Distribution.PackageDescription (PackageDescription (..))
import Distribution.Simple
import Distribution.Simple.LocalBuildInfo (LocalBuildInfo)
im... |
d59aa19cba216edcd6ea26ef1063152fb29f7de319345c29e5ba07ae2aea8ce7 | GlideAngle/flare-timing | MaskLeadMain.hs | {-# OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin #-}
import System.Environment (getProgName)
import System.Console.CmdArgs.Implicit (cmdArgs)
import Formatting ((%), fprint)
import Formatting.Clock (timeSpecs)
import System.Clock (getTime, Clock(Monotonic))
import Control.Exception.Safe (catchIO)
import System.Dir... | null | https://raw.githubusercontent.com/GlideAngle/flare-timing/34873946be9b93c37048ed118ef5b4649c71d630/lang-haskell/flare-timing/prod-apps/mask-lead/MaskLeadMain.hs | haskell | # OPTIONS_GHC -fplugin Data.UnitsOfMeasure.Plugin # |
import System.Environment (getProgName)
import System.Console.CmdArgs.Implicit (cmdArgs)
import Formatting ((%), fprint)
import Formatting.Clock (timeSpecs)
import System.Clock (getTime, Clock(Monotonic))
import Control.Exception.Safe (catchIO)
import System.Directory (getCurrentDirectory)
import Flight.Route (Optima... |
a32f94e444953d167d9942e6914b4be26511965d643bef5e1e479a7758c0fa89 | dbuenzli/topkg | topkg_fexts.ml | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... | null | https://raw.githubusercontent.com/dbuenzli/topkg/5a2283b35bdbc7da88941fe79531185d27566d9b/src/topkg_fexts.ml | ocaml | ---------------------------------------------------------------------------
Copyright ( c ) 2016 . All rights reserved .
Distributed under the ISC license , see terms at the end of the file .
% % NAME%% % % ---------------------------------------------------------------------------
Copyright (c) ... | |
34aff665b6f5fb5a39ca659f5eb2a17654c051bb1e8c6e576b606f927d251f52 | xvw/preface | util.mli | (** Utility to facilitate the writing of a test suite. *)
val pp_of_print : ('a -> string) -> Format.formatter -> 'a -> unit
val with_alcotest :
?colors:bool
-> ?verbose:bool
-> ?long:bool
-> count:int
-> (string * (count:int -> QCheck2.Test.t list)) list
-> (string * unit Alcotest.test_case list) list... | null | https://raw.githubusercontent.com/xvw/preface/84a297e1ee2967ad4341dca875da8d2dc6d7638c/test/preface_laws_test/util.mli | ocaml | * Utility to facilitate the writing of a test suite. |
val pp_of_print : ('a -> string) -> Format.formatter -> 'a -> unit
val with_alcotest :
?colors:bool
-> ?verbose:bool
-> ?long:bool
-> count:int
-> (string * (count:int -> QCheck2.Test.t list)) list
-> (string * unit Alcotest.test_case list) list
|
68e56b2a8dd4ddb2980343d1592fd3c8468ec307d284365c6046f291a26f2449 | public-law/oregon-law-parser | StringOps.hs | module StringOps(cleanUp, firstMatch, join, fixHyphenation, fixWhitespace) where
import Control.Arrow.Unicode
import Data.List (isSuffixOf)
import Data.String.Utils (replace, split)
import Text.Regex.TDFA
cleanUp ∷ String → String
cleanUp a_string =
let sente... | null | https://raw.githubusercontent.com/public-law/oregon-law-parser/320c2d0f9afcc2a5099532e0f5f74d55fe2cba57/analyze/src/StringOps.hs | haskell |
More-conventional function names
| module StringOps(cleanUp, firstMatch, join, fixHyphenation, fixWhitespace) where
import Control.Arrow.Unicode
import Data.List (isSuffixOf)
import Data.String.Utils (replace, split)
import Text.Regex.TDFA
cleanUp ∷ String → String
cleanUp a_string =
let sente... |
3de1b55733543350dd1ee6f280d9007c86c912730bed2d3a23540d93e83da120 | mewa/clojure-k8s | authorization_v_.clj | (ns kubernetes.api.authorization-v-
(:require [kubernetes.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn create-authorization-v1-namespaced-local-subject-access-review-with-http-info
"
create a LocalSubjectAccessReview"
([namespace body ] (create-authori... | null | https://raw.githubusercontent.com/mewa/clojure-k8s/a7e8d82f0e0bc47e5678c72d7d9b8216080ccffc/src/kubernetes/api/authorization_v_.clj | clojure | (ns kubernetes.api.authorization-v-
(:require [kubernetes.core :refer [call-api check-required-params with-collection-format]])
(:import (java.io File)))
(defn create-authorization-v1-namespaced-local-subject-access-review-with-http-info
"
create a LocalSubjectAccessReview"
([namespace body ] (create-authori... | |
96825f7a5ff50160216f5e0477bf90fe8bade222e70414a9c9d29cdd9ac3a151 | spechub/Hets | AbstractState.hs | # LANGUAGE ExistentialQuantification , DeriveDataTypeable , StandaloneDeriving #
|
Module : ./Proofs / AbstractState.hs
Description : State data structure used by the goal management GUI .
Copyright : ( c ) Uni Bremen 2005 - 2007
License : GPLv2 or higher , see LICENSE.txt
Maintainer ... | null | https://raw.githubusercontent.com/spechub/Hets/65413446b056dfc965a75e9076eaf78b2ec550e7/Proofs/AbstractState.hs | haskell | * Provers
| provers and consistency checkers for specific logics
| provers and consistency checkers for specific logics
| called whenever the "Prove" button is clicked
| called whenever the "More fine grained selection" button is clicked
| called whenever a (de-)selection occured for updating sublogic
|
Repres... | # LANGUAGE ExistentialQuantification , DeriveDataTypeable , StandaloneDeriving #
|
Module : ./Proofs / AbstractState.hs
Description : State data structure used by the goal management GUI .
Copyright : ( c ) Uni Bremen 2005 - 2007
License : GPLv2 or higher , see LICENSE.txt
Maintainer ... |
24daaf51ea6b7283efa9ce9bd2b317b815fa5e4a01b0db184eb284c3532e0c54 | cardmagic/lucash | dummy-interface.scm | Copyright ( c ) 1993 - 2001 by and . See file COPYING .
; Interfaces are ignored. Only dependencies are significant.
(define (make-indirect-interface name thunk)
(thunk))
(define (make-simple-interface name items)
(cons 'export items))
(define (make-compound-interface name . sigs)
(cons 'compound-inter... | null | https://raw.githubusercontent.com/cardmagic/lucash/0452d410430d12140c14948f7f583624f819cdad/reference/scsh-0.6.6/scheme/alt/dummy-interface.scm | scheme | Interfaces are ignored. Only dependencies are significant.
Types | Copyright ( c ) 1993 - 2001 by and . See file COPYING .
(define (make-indirect-interface name thunk)
(thunk))
(define (make-simple-interface name items)
(cons 'export items))
(define (make-compound-interface name . sigs)
(cons 'compound-interface sigs))
(define :value ':value)
(define :syntax ':syntax)... |
741d0425b6b975bfdf40b737835621baf8f59f2cdd518bb5cfb9bfb99b659f86 | xavi/noir-auth-app | users.clj | (ns noir-auth-app.views.users
(:use [compojure.core :only (defroutes GET POST)]
[shoreleave.middleware.rpc :only (defremote)])
(:require [net.cgrand.enlive-html :as h]
[noir.session :as session]
[noir.validation :as vali]
[noir.response :as resp]
[noir-auth-ap... | null | https://raw.githubusercontent.com/xavi/noir-auth-app/a60be4c30b7b40ce282c53b6abeda06d0d5a874f/src/noir_auth_app/views/users.clj | clojure | -clojure/lib-noir/blob/master/src/noir/validation.clj
#customizing-error-messages-css
(= lowercase_username "admin")
Notice that the rest param (the param after the &) is destructured
([interpolation-map] instead of simply interpolation-map). That's to get a
with a sequence containing the "arguments that exceed th... | (ns noir-auth-app.views.users
(:use [compojure.core :only (defroutes GET POST)]
[shoreleave.middleware.rpc :only (defremote)])
(:require [net.cgrand.enlive-html :as h]
[noir.session :as session]
[noir.validation :as vali]
[noir.response :as resp]
[noir-auth-ap... |
b32ade46a88ca4f4c5ace568d50cacc3c81246f4d6f172c8cf9dd82e412dc0af | merijn/validated-literals | Even.hs | # LANGUAGE DeriveGeneric #
{-# LANGUAGE DeriveLift #-}
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
module Even where
import Control.DeepSeq (NFData)
import GHC.Generics (Generic)
import ValidLiterals
newtype Even = Even Integer deriving (Show, Generic, Lift)
instance NFData Even
instance Integ... | null | https://raw.githubusercontent.com/merijn/validated-literals/96662bfc3fe0703f36fa91de047a4e3b5b039e09/examples/Even.hs | haskell | # LANGUAGE DeriveLift # | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
# LANGUAGE MultiParamTypeClasses #
module Even where
import Control.DeepSeq (NFData)
import GHC.Generics (Generic)
import ValidLiterals
newtype Even = Even Integer deriving (Show, Generic, Lift)
instance NFData Even
instance Integral a => Validate a Even whe... |
0911df094a7c79a23aadca10e647c901696499dabb765bccab188f1263f153e0 | shirok/Gauche | syslog.scm | ;;;
;;; syslog - syslog interface
;;;
Copyright ( c ) 2000 - 2022 < >
;;;
;;; 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 copyrigh... | null | https://raw.githubusercontent.com/shirok/Gauche/b773899dbe0b2955e1c4f1daa066da874070c1e4/ext/syslog/syslog.scm | scheme |
syslog - syslog interface
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 of conditions and the following disclaimer.
... | Copyright ( c ) 2000 - 2022 < >
" AS IS " AND ANY EXPRESS OR IMPLIED WARRANTIES , INCLUDING , BUT NOT
SPECIAL , EXEMPLARY , OR CONSEQUENTIAL DAMAGES ( INCLUDING , BUT NOT LIMITED
LIABILITY , WHETHER IN CONTRACT , STRICT LIABILITY , OR TORT ( INCLUDING
#!no-fold-case
(define-module gauche.syslog... |
e60091ff0cdc1803cf4966963bdfea5c24fedf1e3b72fac8c46a3544842d13ad | tweag/webauthn | Decode.hs | # LANGUAGE DataKinds #
# LANGUAGE RecordWildCards #
-- | Stability: experimental
-- This module contains functions to further decode
[ FIDO Metadata Statement]( / specs / mds / fido - metadata - statement - v3.0 - ps-20210518.html )
IDL types defined in ' Crypto . WebAuthn . Metadata . Statement . IDL ' into the ... | null | https://raw.githubusercontent.com/tweag/webauthn/349a2b408a79107d9f07c017b72b03c9c306e5fa/src/Crypto/WebAuthn/Metadata/Statement/Decode.hs | haskell | | Stability: experimental
This module contains functions to further decode
| Decodes an 'M.AAGUID' from an [aaguid](-metadata-statement-v3.0-ps-20210518.html#dom-metadatastatement-aaguid) field of a metadata statement or an [aaguid](-metadata-service-v3.0-ps-20210518.html#dom-metadatablobpayloadentry-aaguid) field o... | # LANGUAGE DataKinds #
# LANGUAGE RecordWildCards #
[ FIDO Metadata Statement]( / specs / mds / fido - metadata - statement - v3.0 - ps-20210518.html )
IDL types defined in ' Crypto . WebAuthn . Metadata . Statement . IDL ' into the - specific types defined in ' Crypto . WebAuthn . Metadata . Statement . Types '
... |
dd82614399106283de5218492873fa7a79249601eb6d7813229a8b3778c6f6de | tisnik/clojure-examples | core.clj | (ns git-test9.core
(:gen-class))
(require '[clj-jgit.porcelain :as jgit])
(require '[clj-jgit.querying :as jgit-query])
(require '[hozumi.rm-rf :as rm-rf])
(def repository-url
"Adresa GIT repositare vcetne specifikace protokolu."
"")
(def directory-name
"Jmeno adresare, do ktereho se GIT repositar n... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/git-test9/src/git_test9/core.clj | clojure | (ns git-test9.core
(:gen-class))
(require '[clj-jgit.porcelain :as jgit])
(require '[clj-jgit.querying :as jgit-query])
(require '[hozumi.rm-rf :as rm-rf])
(def repository-url
"Adresa GIT repositare vcetne specifikace protokolu."
"")
(def directory-name
"Jmeno adresare, do ktereho se GIT repositar n... | |
566515a08db3778761f459d8163fad5536aaad41eeafdf8a4473abf8ac022882 | pkel/cpr | cpr_gym_engine.ml | open Intf
open Python_lib
open Python_lib.Let_syntax
type 'a capsule = 'a Defunc.Of_python.t * ('a -> pyobject) * (pyobject -> 'a)
let encapsulate : type a. string -> a capsule =
fun name ->
let b, c = Py.Capsule.make name in
let a = Defunc.Of_python.create ~type_name:name ~conv:c in
a, b, c
;;
type protocol ... | null | https://raw.githubusercontent.com/pkel/cpr/77130b3f4ce1e2294c4c49cb3dbb001980d0bfad/simulator/gym/cpr_gym_engine.ml | ocaml | open Intf
open Python_lib
open Python_lib.Let_syntax
type 'a capsule = 'a Defunc.Of_python.t * ('a -> pyobject) * (pyobject -> 'a)
let encapsulate : type a. string -> a capsule =
fun name ->
let b, c = Py.Capsule.make name in
let a = Defunc.Of_python.create ~type_name:name ~conv:c in
a, b, c
;;
type protocol ... | |
b106ab48332ce6cb1a77a55c6b6e509eb941abd728456a52390cdb757d0f63bd | ghc/nofib | Main.hs | and contraint solver
See Proceedings of WAAAPL ' 99
See Proceedings of WAAAPL '99
-}
import Prelude hiding (Maybe(Just,Nothing))
import Data.List
import System.Environment
import Control.Monad (forM_)
-----------------------------
-- The main program
-----------------------------
main = forM_ [1..240]... | null | https://raw.githubusercontent.com/ghc/nofib/f34b90b5a6ce46284693119a06d1133908b11856/spectral/constraints/Main.hs | haskell | ---------------------------
The main program
---------------------------
---------------------------
---------------------------
-----------------------------
-----------------------------
------------------------------------------------
------------------------------------------------
--------------------------------... | and contraint solver
See Proceedings of WAAAPL ' 99
See Proceedings of WAAAPL '99
-}
import Prelude hiding (Maybe(Just,Nothing))
import Data.List
import System.Environment
import Control.Monad (forM_)
main = forM_ [1..240] $ const $ do
[arg] <- getArgs
let
n = read arg :: Int
try algorithm... |
b053b76fe815579b55834ad4f7669ababf7e1af1a6a2324ae57942706df2343c | cracauer/sbcl-ita | alien.impure.lisp | ;;;; This file is for compiler tests which have side effects (e.g.
executing DEFUN ) but which do n't need any special side - effecting
environmental stuff ( e.g. DECLAIM of particular optimization
;;;; settings). Similar tests which *do* expect special settings may
be in files compiler-1.impure.lisp , compiler-2... | null | https://raw.githubusercontent.com/cracauer/sbcl-ita/f85a8cf0d1fb6e8c7b258e898b7af3233713e0b9/tests/alien.impure.lisp | lisp | This file is for compiler tests which have side effects (e.g.
settings). Similar tests which *do* expect special settings may
more information.
files (like this one) were written from scratch after the fork
This software is in the public domain and is provided with
absolutely no warranty. See the COPYING and CR... | executing DEFUN ) but which do n't need any special side - effecting
environmental stuff ( e.g. DECLAIM of particular optimization
be in files compiler-1.impure.lisp , compiler-2.impure.lisp , etc .
This software is part of the SBCL system . See the README file for
While most of SBCL is derived from the CMU ... |
35885404be2e67c33b66a9e051b0999651aceaf902781d027968d363b1318f9c | andrewthad/packed | Parser.hs | {-# LANGUAGE BangPatterns #-}
# LANGUAGE BinaryLiterals #
# LANGUAGE MagicHash #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
{-# LANGUAGE TypeInType #-}
# LANGUAGE UnboxedSums #
# LANGUAGE UnboxedTuples #
module Parser
* Streaming Parsers
byteParserArtificalA
, byteParserArtificalB
, bytePar... | null | https://raw.githubusercontent.com/andrewthad/packed/72437b5f99fbe745897a0a27cae72565c9727781/test/Parser.hs | haskell | # LANGUAGE BangPatterns #
# LANGUAGE RankNTypes #
# LANGUAGE TypeInType #
* Fixed Parsers
from common directory
# UNPACK # | # LANGUAGE BinaryLiterals #
# LANGUAGE MagicHash #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE UnboxedSums #
# LANGUAGE UnboxedTuples #
module Parser
* Streaming Parsers
byteParserArtificalA
, byteParserArtificalB
, byteParserArtificalDelta
, byteParserArtificalKappa
, byteParserFailureGamma
, bytePars... |
a0b751e817243ab2547e16f14687396f80f123c5f901b2c53995e5cc25ffc7d9 | johannesgerer/blazeT | Attributes.hs | -- !! DO NOT EDIT
|
( Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@ )
This module simply reexports the corresponding @blaze - html@ module .
(Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@)
This module simply reexports the corresponding @blaze-html@ module.
-}
mo... | null | https://raw.githubusercontent.com/johannesgerer/blazeT/4dc7c9b2b700d43e6b8550b218b6c67bdf20f565/src/Text/BlazeT/Html4/Strict/Attributes.hs | haskell | !! DO NOT EDIT | |
( Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@ )
This module simply reexports the corresponding @blaze - html@ module .
(Automatically generated by @src\/Util\/GenerateHtmlTCombinators.hs:49@)
This module simply reexports the corresponding @blaze-html@ module.
-}
module Text.BlazeT.H... |
fb8e3b3ecfe8ba426c62f71c48970d5ea4a81efd71c077f644977f49a1a07981 | Idorobots/spartan | utils.rkt | #lang racket
;; Various utilities
(provide empty? every? some? sorted? tagged-list? symbol<?
last concat uniq offset iota
id partial flip constantly
array array-ref array-assign!
->)
;; Basic definitions making Scheme less-of-a-Scheme:
(define (empty? lst)
(null? lst))
(define ... | null | https://raw.githubusercontent.com/Idorobots/spartan/a2c56067f7d4e981fbfa6e64c2d1f980b52d1068/src/compiler/utils/utils.rkt | racket | Various utilities
Basic definitions making Scheme less-of-a-Scheme:
Mutable arrays:
Other stuff | #lang racket
(provide empty? every? some? sorted? tagged-list? symbol<?
last concat uniq offset iota
id partial flip constantly
array array-ref array-assign!
->)
(define (empty? lst)
(null? lst))
(define (every? p lst)
(foldl (lambda (el acc)
(and (p el) acc))
... |
9db254a9921c3c86938f58984987ecb031d669a1683730edc5231ba1b9fd319c | Gopiandcode/LibreRef | gui.ml | (* * License *)
LibreRef is a free as in freedom digital referencing tool for artists .
Copyright ( C ) < 2021 > < Kiran >
This program 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... | null | https://raw.githubusercontent.com/Gopiandcode/LibreRef/bf6d35e1838e63e30e9fc2455d567cffc84a7323/gui.ml | ocaml | * License
* Definitions
** Module Types
** Constants
** Implementations
*** Utils
*** Settings
-ref/-/tree/master
*** Dialogs
**** Helpers
**** Handlers
**** Right click
*** Main UI
let icon_surface = let _, _, _, logo = logo in logo
, _
TODO: Set copy or link based on preferences
... |
LibreRef is a free as in freedom digital referencing tool for artists .
Copyright ( C ) < 2021 > < Kiran >
This program 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 , ei... |
a2b688f4a4f355924b8936d6a04ffdc556196abd255b6df7d81383fd008b7aea | charlieg/Sparser | pronouns2.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright ( c ) 1992,1993,1994,1995 -- all rights reserved
;;;
;;; File: "pronouns"
;;; Module: "analyzers;psp:"
Version : 2.0 August 1995
1.0 ( 9/7/92 v2.3 ) flushed out of date field references
1.1 ( 5/14/93 ) changed to using... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/grammar/rules/edges/pronouns2.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
File: "pronouns"
Module: "analyzers;psp:" | copyright ( c ) 1992,1993,1994,1995 -- all rights reserved
Version : 2.0 August 1995
1.0 ( 9/7/92 v2.3 ) flushed out of date field references
1.1 ( 5/14/93 ) changed to using Set - used - by as a field - setter
2.0 ( 8/30/95 ) moved the used - in after complete
(in-package :sparser)
(defun mak... |
075dc0594abbe66976faaf583358a8e6ab636938f88dc9ef72357cbf5dbd0ec9 | cdepillabout/yahoo-finance-api | Types.hs | |
Module : Web . Yahoo . Finance . YQL.Internal . Types
Description : Internal data types and type class instances .
Copyright : ( c ) , 2016
License : BSD3
This is an internal module . Use at your own risk .
Module : Web.Yahoo.Finance.YQL.Internal.Types
Description : Internal data t... | null | https://raw.githubusercontent.com/cdepillabout/yahoo-finance-api/521177f2a910781cb77ce1e7f1a08c6c87601653/src/Web/Yahoo/Finance/YQL/Internal/Types.hs | haskell | # LANGUAGE DeriveGeneric #
# LANGUAGE DataKinds #
# LANGUAGE DeriveDataTypeable #
# LANGUAGE OverloadedStrings #
# LANGUAGE TypeOperators #
"select * from yahoo.finance.quotes where symbol in (\"GOOG\",\"YHOO\")"
"select * from yahoo.finance.quotes where s... | |
Module : Web . Yahoo . Finance . YQL.Internal . Types
Description : Internal data types and type class instances .
Copyright : ( c ) , 2016
License : BSD3
This is an internal module . Use at your own risk .
Module : Web.Yahoo.Finance.YQL.Internal.Types
Description : Internal data t... |
80a3932703168a8cf165c902192e19a65d59fd9bc17293b8560f3f5aa2a43f58 | ghcjs/ghcjs | arr010.hs | -- !!! Array - accumulated arrays
--
--
module Main(main) where
import Data.Array
import Data.Ix
hist :: (Ix a, Num b) => (a,a) -> [a] -> Array a b
hist bnds is = accumArray (+) 0 bnds [(i,1) | i <- is , inRange bnds i]
main =
let
a1 = hist (0,10) (concat $ take 2 $ repeat [1..20])
in
print a1
| null | https://raw.githubusercontent.com/ghcjs/ghcjs/e4cd4232a31f6371c761acd93853702f4c7ca74c/test/ghc/array/arr010.hs | haskell | !!! Array - accumulated arrays
| module Main(main) where
import Data.Array
import Data.Ix
hist :: (Ix a, Num b) => (a,a) -> [a] -> Array a b
hist bnds is = accumArray (+) 0 bnds [(i,1) | i <- is , inRange bnds i]
main =
let
a1 = hist (0,10) (concat $ take 2 $ repeat [1..20])
in
print a1
|
154b67a0196b4dd9c3ca32766afd441293e39f70cdd274ffa5fcecc86785721f | G-Corp/rfile | rfile_aws.erl | % @hidden
-module(rfile_aws).
-behaviour(rfile_storage).
-compile([{parse_transform, lager_transform}]).
-include_lib("erlcloud/include/erlcloud_aws.hrl").
-export([
ls/2
, cp/3
, rm/2
, diff/3
]).
-export([
copy_file_s3_to_s3/6
, copy_directory_s3_to_s3/6
... | null | https://raw.githubusercontent.com/G-Corp/rfile/64464534904c026211f23ab735ea6b15ea17401c/src/rfile_aws.erl | erlang | @hidden
--------------------------------------------------------------------------------------------------------------------- | -module(rfile_aws).
-behaviour(rfile_storage).
-compile([{parse_transform, lager_transform}]).
-include_lib("erlcloud/include/erlcloud_aws.hrl").
-export([
ls/2
, cp/3
, rm/2
, diff/3
]).
-export([
copy_file_s3_to_s3/6
, copy_directory_s3_to_s3/6
])... |
a1e686845a86f6e00944b3df7298e161aa880efabc58f7f68f58e0a536b47efc | qitab/ace.core | macro.lisp | Copyright 2020 Google LLC
;;;
Use of this source code is governed by an MIT - style
;;; license that can be found in the LICENSE file or at
;;; .
Utilities that deal with function definition , lambda body , declarations , ...
;;; The package is designed to be used in other packages.
;;;
;;; defun! - defines a fu... | null | https://raw.githubusercontent.com/qitab/ace.core/e6eb21ff67b0c5eaec21c9b543b6dce18d7c8e6d/macro.lisp | lisp |
license that can be found in the LICENSE file or at
.
The package is designed to be used in other packages.
defun! - defines a function available also at compile-time.
eval-always - wraps the body in (eval-when (:compile-toplevel :load-toplevel :execute) ...).
find-declaration - searches for a declaration in th... | Copyright 2020 Google LLC
Use of this source code is governed by an MIT - style
Utilities that deal with function definition , lambda body , declarations , ...
(defpackage #:ace.core.macro
(:use #:cl #:ace.core)
(:export
#:1st-or-atom
#:2nd-or-atom
#:declaim-foldable
#:declaim-known
#:defun!
... |
af0deba3a3768f72edf39b4721d5a5adba74f7a895eaea41736a3b3138fe90f5 | bonniee/svg-puzzle-gen | core.clj | (ns puzzle.core
(:require [puzzle.strings :as strings])
(:require [puzzle.svg :as svg])
(:require [puzzle.squiggle :as squiggle])
(:require [puzzle.circular-coords :as circular-coords])
(:require [puzzle.grid-coords :as grid-coords])
(:require [puzzle.point :refer :all])
(:require [puzzle.whimsy :as whims... | null | https://raw.githubusercontent.com/bonniee/svg-puzzle-gen/f6250c24ab0fdf5cbb9383489b6e350f101ad256/src/puzzle/core.clj | clojure | Global variables for SVG dimensions
For use with voronoi edges
TODO: duplicate set insertion bug here
Sets up coordinates for puzzle piece anchor points | (ns puzzle.core
(:require [puzzle.strings :as strings])
(:require [puzzle.svg :as svg])
(:require [puzzle.squiggle :as squiggle])
(:require [puzzle.circular-coords :as circular-coords])
(:require [puzzle.grid-coords :as grid-coords])
(:require [puzzle.point :refer :all])
(:require [puzzle.whimsy :as whims... |
4b616311d8997627e364ee64b1418208b6bb6259c31c976dc2ad928b0fe46bca | GaloisInc/jvm-verifier | Codebase.hs | |
Module : Verifier . Java .
Description :
License : BSD3
Stability : stable
Point - of - contact :
Module : Verifier.Java.Codebase
Description :
License : BSD3
Stability : stable
Point-of-contact : jhendrix
-}
# OPTIONS_GHC -fno - warn -... | null | https://raw.githubusercontent.com/GaloisInc/jvm-verifier/3905dda18d0bdd5c595eef49804780f4a48c22f5/src/Verifier/Java/Codebase.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE DoAndIfThenElse #
^ Maps class names to lazily loaded classes in JARs
^ Maps class names to the list of classes that are direct subclasses, and
interfaces to list of classes that directly implement them.
| Loads Java classes directly beneath given path. Also loads jar indi... | |
Module : Verifier . Java .
Description :
License : BSD3
Stability : stable
Point - of - contact :
Module : Verifier.Java.Codebase
Description :
License : BSD3
Stability : stable
Point-of-contact : jhendrix
-}
# OPTIONS_GHC -fno - warn -... |
063de4498ac107fa604049316e042ea5d8d2b9b6be371e52541876fa9d6679bf | puppetlabs/trapperkeeper | config_test.clj | (ns puppetlabs.trapperkeeper.config-test
(:import (java.io StringReader FileNotFoundException))
(:require [clojure.test :refer :all]
[puppetlabs.trapperkeeper.testutils.bootstrap :refer [bootstrap-services-with-cli-data with-app-with-cli-data]]
[puppetlabs.trapperkeeper.app :refer [get-servi... | null | https://raw.githubusercontent.com/puppetlabs/trapperkeeper/3e5e7e286287d75e7fdf7eb1dabb2fa534091329/test/puppetlabs/trapperkeeper/config_test.clj | clojure | NOTE: other individual file formats are tested in `typesafe-test` | (ns puppetlabs.trapperkeeper.config-test
(:import (java.io StringReader FileNotFoundException))
(:require [clojure.test :refer :all]
[puppetlabs.trapperkeeper.testutils.bootstrap :refer [bootstrap-services-with-cli-data with-app-with-cli-data]]
[puppetlabs.trapperkeeper.app :refer [get-servi... |
835c974531e7a025e886fdef1636ff3b79d30a96483a2e1bec2f5092b05a8aee | garrigue/lablgl | shape_test.ml | #!/usr/bin/env lablglut
Copyright ( c ) 1994 .
(* This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. *)
Ported to lablglut by Issac Trotts on Sat Aug 10 13:41:10 MDT 2002 .
open... | null | https://raw.githubusercontent.com/garrigue/lablgl/d76e4ac834b6d803e7a6c07c3b71bff0e534614f/LablGlut/examples/glut3.7/test/shape_test.ml | ocaml | This program is freely distributable without licensing fees
and is provided without guarantee or warrantee expressed or
implied. This program is -not- in the public domain. | #!/usr/bin/env lablglut
Copyright ( c ) 1994 .
Ported to lablglut by Issac Trotts on Sat Aug 10 13:41:10 MDT 2002 .
open Printf
let w = ref 0 and h = ref 0
let light_diffuse = (1.0, 1.0, 1.0, 1.0)
let light_position = (1.0, 1.0, 1.0, 1.0)
let qobj = ref None
reshape has to have arguments labled w and... |
a0086370d62cb35b0cd12b6c3e04b73693a0d0bc48318d3df9ed155ff38af456 | well-typed/optics | Coerce.hs | -- |
Module : Optics . Coerce
Description : Operators to ' coerce ' the type parameters of ' Optic ' .
--
-- This module defines operations to 'coerce' the type parameters of optics to
-- a representationally equal type. For example, if we have
--
-- > newtype MkInt = MkInt Int
--
-- and
--
-- > l :: Lens' S Int
-... | null | https://raw.githubusercontent.com/well-typed/optics/7cc3f9c334cdf69feaf10f58b11d3dbe2f98812c/optics-core/src/Optics/Coerce.hs | haskell | |
This module defines operations to 'coerce' the type parameters of optics to
a representationally equal type. For example, if we have
> newtype MkInt = MkInt Int
and
> l :: Lens' S Int
then
| Lift 'coerce' to the @s@ parameter of an optic.
| Lift 'coerce' to the @t@ parameter of an optic.
| Lift 'coe... | Module : Optics . Coerce
Description : Operators to ' coerce ' the type parameters of ' Optic ' .
> coerceA @Int @MkInt l : : Lens ' S MkInt
module Optics.Coerce
( coerceS
, coerceT
, coerceA
, coerceB
) where
import Data.Coerce
import Data.Profunctor.Indexed
import Optics.Internal.Optic
coerceS
:... |
e072ddb754f703a2e8539efe65767a057ecd0b1fe772b89493883bf806cdbf81 | hjcapple/reading-sicp | ch5-eceval-compiler.scm | #lang sicp
;;;;EXPLICIT-CONTROL EVALUATOR FROM SECTION 5.4 OF
;;;; STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS
;;;; MODIFIED TO SUPPORT COMPILED CODE (AS IN SECTION 5.5.7)
;;;;Changes to basic evaluator machine are
( 1 ) some new eceval controller code for the driver and apply - dispatch ;
( 2 ) some additi... | null | https://raw.githubusercontent.com/hjcapple/reading-sicp/7051d55dde841c06cf9326dc865d33d656702ecc/chapter_5/ch5-eceval-compiler.scm | scheme | EXPLICIT-CONTROL EVALUATOR FROM SECTION 5.4 OF
STRUCTURE AND INTERPRETATION OF COMPUTER PROGRAMS
MODIFIED TO SUPPORT COMPILED CODE (AS IN SECTION 5.5.7)
Changes to basic evaluator machine are
Explicit-control evaluator.
support it needs (including the register-machine simulator)
To resume the machine without re... | #lang sicp
( 3 ) support for compiled code to call interpreted code ( exercise 5.47 ) --
( new register and 1 new instruction at start )
( 4 ) new startup aid start - eceval
To use it , load " load-eceval-compiler.scm " , which loads this file and the
To start , can use compile - and - go as in sectio... |
b7d280e4f37cdfa5ef0248b285a8b3d9a7b180753b8f51ae345f68c19c961f4b | acieroid/scala-am | case.scm | (define loop
(lambda (i l)
(case 6
((1 2 3 4 5) #f)
((6)
(if (< i l)
(loop (+ 1 i) l)
l)))))
(loop 0 20000) | null | https://raw.githubusercontent.com/acieroid/scala-am/13ef3befbfc664b77f31f56847c30d60f4ee7dfe/test/R5RS/sigscheme/case.scm | scheme | (define loop
(lambda (i l)
(case 6
((1 2 3 4 5) #f)
((6)
(if (< i l)
(loop (+ 1 i) l)
l)))))
(loop 0 20000) | |
3447cfd5df6e0ca00d3aa135dc83dd50a2e98ffa0a46204ed2e45e87a41a4a8c | target/theta-idl | Types.hs | {-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DeriveLift #-}
{-# LANGUAGE DeriveTraversable #-}
{-# LANGUAGE DerivingStrategies #-}
# LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE General... | null | https://raw.githubusercontent.com/target/theta-idl/2bda6a8836817f8d782c2165d7f250fe296b97c2/theta/src/Theta/Types.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric #
# LANGUAGE DeriveLift #
# LANGUAGE DeriveTraversable #
# LANGUAGE DerivingStrategies #
# LANGUAGE OverloadedStrings #
# LANGUAGE ParallelListComp #
# LANGUAGE QuasiQuotes #
... | # LANGUAGE FlexibleContexts #
# LANGUAGE FlexibleInstances #
# LANGUAGE GeneralizedNewtypeDeriving #
# LANGUAGE LambdaCase #
# LANGUAGE NamedFieldPuns #
# LANGUAGE OverloadedLists #
# LANGUAGE TypeApplications #
# LANGUAGE TypeFamilies ... |
7e9a71dc9d88e0f4b519e587d37043e2479ea2f2a98efd1841ae3da7bdd85f74 | hemmi/coq2scala | modops.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/hemmi/coq2scala/d10f441c18146933a99bf2088116bd213ac3648d/coq-8.4pl2/checker/modops.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
Various operations on modules a... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2012
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Util
open Names
open Uni... |
c2da3c641c1be9773f6719b8abfebf03583a2debf98830fcf42b186fa277601c | rtrusso/scp | labels.scm | ;; scheme/compiler/labels.scm
;;
;; Utility routines for remapping scheme symbols to sasm labels.
(define (get-entry-symbol need-symbol)
(string->symbol (string-append "$scheme-entry:"
(symbol->string need-symbol))))
(define (make-sasm-label-for-global global-sym)
(define... | null | https://raw.githubusercontent.com/rtrusso/scp/2051e76df14bd36aef81aba519ffafa62b260f5c/src/scheme/compiler/labels.scm | scheme | scheme/compiler/labels.scm
Utility routines for remapping scheme symbols to sasm labels.
|
(define (get-entry-symbol need-symbol)
(string->symbol (string-append "$scheme-entry:"
(symbol->string need-symbol))))
(define (make-sasm-label-for-global global-sym)
(define (remap-character c)
(case c
((#\-) "-Da")
((#\_) "-Us")
((#\\) "-Bs")
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.