_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 |
|---|---|---|---|---|---|---|---|---|
6d6176205398c977edbeb117b83ccad7d23b7b678f1297a82ec0fc439ca70c37 | samrocketman/home | circle-mosaic.scm | Circle-mosaic.scm for GIMP2.2 & GIMP1.2
; " " "Outline"
; Copyright (C) 2005
; -------------------------------------------------------------------------------------------
(define (script-... | null | https://raw.githubusercontent.com/samrocketman/home/63a8668a71dc594ea9ed76ec56bf8ca43b2a86ca/dotfiles/.gimp/scripts/circle-mosaic.scm | scheme | " " "Outline"
Copyright (C) 2005
------------------------------------------------------------------------------------------- | Circle-mosaic.scm for GIMP2.2 & GIMP1.2
(define (script-fu-circle-mosaic image drawable size outline)
(let* ((width (car (gimp-drawable-width drawable)))
(height (car (gimp-drawable-height drawable)))
(type (car (gimp-drawable-type drawable)))
(alpha (car (gimp-drawable-has-alpha drawable)))... |
81d03d10c47f2af7eb80721c89048748620d35850ea0ab17fa033afba56a2d68 | thoughtstem/morugamu | testing-numbers.rkt | #lang racket
(require 2htdp/image)
;Called by the number-all function...takes in a pair (image, number) and then puts the number on the image
(define rwidth 500)
(define rheight 350)
(overlay/offset (text "12" 30 "black")
(+ (-(/ (image-width (rectangle rwidth rheight "solid" "red")) 2)) 25) ;x-o... | null | https://raw.githubusercontent.com/thoughtstem/morugamu/a9095ddebe364adffb036c3faed95c873a4d9f3c/print/testing-numbers.rkt | racket | Called by the number-all function...takes in a pair (image, number) and then puts the number on the image
x-offset
y-offset
(define (number-all pairs)
(map place-num (pair-with-index pairs))) | #lang racket
(require 2htdp/image)
(define rwidth 500)
(define rheight 350)
(overlay/offset (text "12" 30 "black")
(rectangle rwidth rheight "solid" "red")
)
( place - num ( list ( rectangle 400 500 " solid " " red " ) 12 ) )
|
1ede017c8f9c1acffe141ed0b1bd3038419bf5905a2d46fe6b74c14a5ddf61db | gethop-dev/esignatures.docusign | oauth.clj | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
;; file, You can obtain one at /
(ns dev.gethop.esignatures.docusign.oauth
(:require [buddy.sign.jwt :as jwt]
[clojure.string :as str]
[dev.gethop.esig... | null | https://raw.githubusercontent.com/gethop-dev/esignatures.docusign/4ccf4eea6a25df2cb2070495cef907d9a79b2e5d/src/dev/gethop/esignatures/docusign/oauth.clj | clojure | file, You can obtain one at / | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
(ns dev.gethop.esignatures.docusign.oauth
(:require [buddy.sign.jwt :as jwt]
[clojure.string :as str]
[dev.gethop.esignatures.util :as util])
(:impor... |
7825f0e5d9fce09977dda1f0a614373b9d8155678a67364f687214fd29ff31e6 | facebookarchive/pfff | unsugar_php.mli |
(* post: the Self and Parent constructors are not anymore possible cases *)
val unsugar_self_parent_any: Ast_php.any -> Ast_php.any
(* special cases *)
val unsugar_self_parent_program: Ast_php.program -> Ast_php.program
| null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/analyze/foundation/unsugar_php.mli | ocaml | post: the Self and Parent constructors are not anymore possible cases
special cases |
val unsugar_self_parent_any: Ast_php.any -> Ast_php.any
val unsugar_self_parent_program: Ast_php.program -> Ast_php.program
|
c57fddca9eeb1a92ded8e7d7fd7b91230fcfa790fdcbcf13f3fb6800b58643e3 | binsec/haunted | trace_type.ml | (**************************************************************************)
This file is part of BINSEC .
(* *)
Copyright ( C ) 2016 - 2019
CEA ( Co... | null | https://raw.githubusercontent.com/binsec/haunted/7ffc5f4072950fe138f53fe953ace98fff181c73/src/dynamic/base/trace_type.ml | ocaml | ************************************************************************
alternatives)
you can redistribute it an... | This file is part of BINSEC .
Copyright ( C ) 2016 - 2019
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Software
Foundation , ve... |
6f90b3a83a4e6244f14530e4ad88365ba2d53d8db2e0ae02895d61d12e9b3207 | yesodweb/yesod | WaiSubsite.hs | # LANGUAGE CPP , QuasiQuotes , TemplateHaskell , TypeFamilies , MultiParamTypeClasses , OverloadedStrings , ViewPatterns #
module YesodCoreTest.WaiSubsite
( specs
, Widget
, resourcesY
) where
import YesodCoreTest.YesodTest
import Yesod.Core
import qualified Network.HTTP.Types as H
import Data.ByteStri... | null | https://raw.githubusercontent.com/yesodweb/yesod/c59993ff287b880abbf768f1e3f56ae9b19df51e/yesod-core/test/YesodCoreTest/WaiSubsite.hs | haskell | # LANGUAGE CPP , QuasiQuotes , TemplateHaskell , TypeFamilies , MultiParamTypeClasses , OverloadedStrings , ViewPatterns #
module YesodCoreTest.WaiSubsite
( specs
, Widget
, resourcesY
) where
import YesodCoreTest.YesodTest
import Yesod.Core
import qualified Network.HTTP.Types as H
import Data.ByteStri... | |
7555db3a2a3a3bfe46241fbc34e2b272c01a2f50cce920a607f41229085cdfa2 | ghosthamlet/algorithm-data-structure | queue_test.clj | (ns algorithm-data-structure.data-structures.queue-test
(:require [algorithm-data-structure.data-structures.queue :as q]
[algorithm-data-structure.data-structures.linked-list :as ll]
[clojure.test :refer :all]))
(def queue (q/create))
(deftest create-test
(is (= {:linked-list (ll/create)}
... | null | https://raw.githubusercontent.com/ghosthamlet/algorithm-data-structure/017f41a79d8b1d62ff5a6cceffa1b0f0ad3ead6b/test/algorithm_data_structure/data_structures/queue_test.clj | clojure | (ns algorithm-data-structure.data-structures.queue-test
(:require [algorithm-data-structure.data-structures.queue :as q]
[algorithm-data-structure.data-structures.linked-list :as ll]
[clojure.test :refer :all]))
(def queue (q/create))
(deftest create-test
(is (= {:linked-list (ll/create)}
... | |
d2fe06902d38918ebc032a9716125719311eb3662e6b7dceb7270d6c6893e81b | petertseng/adventofcode-hs-2015 | 07_logic_gates.hs | import AdventOfCode (readInputFile)
import Data.Bits ((.&.), (.|.), complement, shiftL, shiftR)
import Data.Char (isDigit, isLower)
import Data.Function (on)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (fromMaybe)
import Data.Word (Word16)
data Input = Name String | Constant Word16
data ... | null | https://raw.githubusercontent.com/petertseng/adventofcode-hs-2015/0c97d3a983f55e328ada9a7fad730fccffcff5d7/bin/07_logic_gates.hs | haskell | import AdventOfCode (readInputFile)
import Data.Bits ((.&.), (.|.), complement, shiftL, shiftR)
import Data.Char (isDigit, isLower)
import Data.Function (on)
import Data.Map (Map)
import qualified Data.Map as Map
import Data.Maybe (fromMaybe)
import Data.Word (Word16)
data Input = Name String | Constant Word16
data ... | |
3b2d945d992b8d77cb2774e4101129866a04037e42099b8a3410db016656c9bb | mpickering/apply-refact | Lambda28.hs | f = \y -> nub $ reverse y where | null | https://raw.githubusercontent.com/mpickering/apply-refact/a4343ea0f4f9d8c2e16d6b16b9068f321ba4f272/tests/examples/Lambda28.hs | haskell | f = \y -> nub $ reverse y where | |
9b973a44c17aa882af9eec46d1a6161dab46d0f00b2cbfabd2906e893416aeda | lazy-cat-io/tenet | data_readers.clj | {tenet tenet.response/vec->response}
| null | https://raw.githubusercontent.com/lazy-cat-io/tenet/4be13d902ac4768c55fd11ab4f3a613640a1a7ce/src/main/clojure/data_readers.clj | clojure | {tenet tenet.response/vec->response}
| |
bb7ac129553e46575497657918e85dca40503c417f353f43c6151b5e389cec38 | marianoguerra/flaviodb | flavio.erl | -module(flavio).
-include("flavio.hrl").
-include_lib("riak_core/include/riak_core_vnode.hrl").
-export([ping/0, add/2, stats/0, post_msg/3, get_msgs/4, list_streams/1,
list_users/0]).
-ignore_xref([ping/0, add/2, stats/0]).
%% Public API
%% @doc Pings a random vnode to make sure communication is functional
pin... | null | https://raw.githubusercontent.com/marianoguerra/flaviodb/0ca0c07e6c3f94b6c5b1e0891325fac4c7c12a6b/src/flavio.erl | erlang | Public API
@doc Pings a random vnode to make sure communication is functional
Private API | -module(flavio).
-include("flavio.hrl").
-include_lib("riak_core/include/riak_core_vnode.hrl").
-export([ping/0, add/2, stats/0, post_msg/3, get_msgs/4, list_streams/1,
list_users/0]).
-ignore_xref([ping/0, add/2, stats/0]).
ping() ->
DocIdx = riak_core_util:chash_key({<<"ping">>, term_to_binary(now())}),
... |
f8309ccdfecab68c26d1a5688c5d242a589371811cca5d4532b62e390e7b1bd3 | incoherentsoftware/defect-process | BlobProjectile.hs | module Enemy.All.Boss.BlobProjectile
( mkBlobProjectile
) where
import Control.Monad.IO.Class (MonadIO)
import Data.Maybe (fromMaybe)
import qualified Data.Set as S
import Attack
import Attack.Hit
import Collision
import Configs.All.Enemy
import Configs.All.Enemy.Boss
import Constants
import Enemy... | null | https://raw.githubusercontent.com/incoherentsoftware/defect-process/8797aad1d93bff5aadd7226c39a48f45cf76746e/src/Enemy/All/Boss/BlobProjectile.hs | haskell | crude wall/non-ground check | module Enemy.All.Boss.BlobProjectile
( mkBlobProjectile
) where
import Control.Monad.IO.Class (MonadIO)
import Data.Maybe (fromMaybe)
import qualified Data.Set as S
import Attack
import Attack.Hit
import Collision
import Configs.All.Enemy
import Configs.All.Enemy.Boss
import Constants
import Enemy... |
63cc85d8185a1a4ae82ccae89d1a71e14564490f122cc8711b643276b69d8124 | arttuka/reagent-material-ui | deps.cljs | {:npm-deps
{"@mui/material" "5.11.12"
"@emotion/react" "^11.0.0"
"@emotion/styled" "^11.0.0"
"react" "^17.0.0"
"react-dom" "^17.0.0"}}
| null | https://raw.githubusercontent.com/arttuka/reagent-material-ui/4fc4b44891919d2b84160eb411d52227dd89e0a5/deps.cljs | clojure | {:npm-deps
{"@mui/material" "5.11.12"
"@emotion/react" "^11.0.0"
"@emotion/styled" "^11.0.0"
"react" "^17.0.0"
"react-dom" "^17.0.0"}}
| |
10efa67014b8cb2e4ea20fabd5e1507c417ecc3a5fb838e683b94458c4b7c6d1 | yetanalytics/xapipe | oauth.clj | (ns com.yetanalytics.xapipe.client.oauth
"OAuth Client Credentials Grant Support"
(:require
[clj-http.client :as client]
[clojure.core.async :as a]
[clojure.spec.alpha :as s]
[clojure.string :as cs]
[clojure.tools.logging :as log]))
Derive token URLs from OAuth2 endpoint / OIDC Issuer
(s/fdef toke... | null | https://raw.githubusercontent.com/yetanalytics/xapipe/c2c0a41590138a2a8c7bfedc46fd6e02dae4b263/src/lib/com/yetanalytics/xapipe/client/oauth.clj | clojure | If a token is already cached, return it
If not, go get it
update the cache
return to the user
later, remove from cache when expired
don't go negative if exp is super 1s or below
for some weird reason
Exceptions are wrapped and returned
return promise chan | (ns com.yetanalytics.xapipe.client.oauth
"OAuth Client Credentials Grant Support"
(:require
[clj-http.client :as client]
[clojure.core.async :as a]
[clojure.spec.alpha :as s]
[clojure.string :as cs]
[clojure.tools.logging :as log]))
Derive token URLs from OAuth2 endpoint / OIDC Issuer
(s/fdef toke... |
6414d5c59a50467b9271ee2f7b62dddd76eee8ed9dbaa658c0d916475e76dc4f | danabr/merkel | merkel_im.erl | -module(merkel_im).
-export([from_lambda/1]).
-define(OCAML_TRUE, "1a").
% -record(state, #{ mod = error(module_name_not_defined)
% , funs = []
% , exports = []
% }).
from_lambda(["setglobal", _ModName, In]) ->
Funs = functions(In),
CFuns = [ {cerl:c_fname(module_... | null | https://raw.githubusercontent.com/danabr/merkel/76545d07d74993798f83202235ffd34428f55602/src/merkel_im.erl | erlang | -record(state, #{ mod = error(module_name_not_defined)
, funs = []
, exports = []
}).
It is probably smarter to get the exports from makeblock.
Ocaml string concatenation
Externals are not handled that neatly...
Tuple access
Ignore?
Tuple construction
Assume st... | -module(merkel_im).
-export([from_lambda/1]).
-define(OCAML_TRUE, "1a").
from_lambda(["setglobal", _ModName, In]) ->
Funs = functions(In),
CFuns = [ {cerl:c_fname(module_info, 0),
cerl:c_fun([],
cerl:c_call(cerl:abstract(erlang),
cerl:abstract(get_module_info... |
cc4cad49f2b97d1089e55c65878780479b5ca0ae56e070ae05e144925d2de6f7 | typeable/compaREST | SecurityRequirement.hs | # LANGUAGE PartialTypeSignatures #
# OPTIONS_GHC -Wno - orphans #
module Data.OpenApi.Compare.Validate.SecurityRequirement
( Issue (..),
)
where
import Control.Comonad
import Control.Monad
import Control.Monad.Writer
import Data.Bifunctor
import Data.Either
import Data.Foldable
import Data.Functor
import Data.HLi... | null | https://raw.githubusercontent.com/typeable/compaREST/5727f6bf83ce59a81293837e593822c4a66fcc0b/src/Data/OpenApi/Compare/Validate/SecurityRequirement.hs | haskell | [(key, scopes)] | # LANGUAGE PartialTypeSignatures #
# OPTIONS_GHC -Wno - orphans #
module Data.OpenApi.Compare.Validate.SecurityRequirement
( Issue (..),
)
where
import Control.Comonad
import Control.Monad
import Control.Monad.Writer
import Data.Bifunctor
import Data.Either
import Data.Foldable
import Data.Functor
import Data.HLi... |
71419c959173c51be7e556a815d2116e89d14af52683a4d8d9621b351453715b | fission-codes/ipfs-haskell | Class.hs | module Network.IPFS.Remote.Class
( MonadRemoteIPFS
, runRemote
, ipfsAdd
, ipfsCat
, ipfsStat
, ipfsPin
, ipfsUnpin
) where
import Network.IPFS.Prelude
import qualified RIO.ByteString.Lazy as Lazy
import Servant.Client
import Network.IPFS.Types as IPFS
impo... | null | https://raw.githubusercontent.com/fission-codes/ipfs-haskell/d7c72ac271f7b72dce8abc1969f6256bcbcb2be0/library/Network/IPFS/Remote/Class.hs | haskell | defaults | module Network.IPFS.Remote.Class
( MonadRemoteIPFS
, runRemote
, ipfsAdd
, ipfsCat
, ipfsStat
, ipfsPin
, ipfsUnpin
) where
import Network.IPFS.Prelude
import qualified RIO.ByteString.Lazy as Lazy
import Servant.Client
import Network.IPFS.Types as IPFS
impo... |
2ae373860e74cda5842de05fc6fbecf9c1801ab2de1308b84a0ac531bb88f338 | den1k/vimsical | diff_test.cljc | (ns vimsical.vcs.data.gen.diff-test
#?@(:clj
[(:require
[clojure.test :as t :refer [deftest is]]
[orchestra.spec.test :as st]
[vimsical.common.test :refer [diff= uuid uuid-gen uuid-fixture]]
[vimsical.vcs.core :as vcs]
[vimsical.vcs.data.gen.diff :as sut]
[vimsica... | null | https://raw.githubusercontent.com/den1k/vimsical/1e4a1f1297849b1121baf24bdb7a0c6ba3558954/test/vcs/vimsical/vcs/data/gen/diff_test.cljc | clojure | NOTE can't really track the uuids used for deltas since we update the whole
Assertion is trivial but rely on the deltas spec to check for the topo | (ns vimsical.vcs.data.gen.diff-test
#?@(:clj
[(:require
[clojure.test :as t :refer [deftest is]]
[orchestra.spec.test :as st]
[vimsical.common.test :refer [diff= uuid uuid-gen uuid-fixture]]
[vimsical.vcs.core :as vcs]
[vimsical.vcs.data.gen.diff :as sut]
[vimsica... |
550eeb43dd19220f77f12b21c0a89d0afbb5ca6a92f50b61bf063ce053a676a6 | srid/reflex-dom-pandoc | Footnotes.hs | # LANGUAGE LambdaCase #
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Reflex.Dom.Pandoc.Footnotes where
import Control.Monad.Reader
import Data.List (nub, sortOn)
import Data.Map (Map)
import Data.Text (Text)
import qualified Data.Map as Map
import qualified ... | null | https://raw.githubusercontent.com/srid/reflex-dom-pandoc/63ff62ee9c7f4a8c231db16bb91b858c8a39aebd/src/Reflex/Dom/Pandoc/Footnotes.hs | haskell | # LANGUAGE OverloadedStrings #
FIXME: This should appear inline if the footnote is a single paragraph.
#data-nosnippet-attr | # LANGUAGE LambdaCase #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TypeApplications #
module Reflex.Dom.Pandoc.Footnotes where
import Control.Monad.Reader
import Data.List (nub, sortOn)
import Data.Map (Map)
import Data.Text (Text)
import qualified Data.Map as Map
import qualified Data.Text as T
import Reflex.Dom.Co... |
02ca2a9253984342e915c7754e46ef4db5a37fa70f327c0df524de5800c00ab4 | cacheaudit/cacheaudit | x86Print.mli | Copyright ( c ) 2013 - 2015 , IMDEA Software Institute .
(* See ../LICENSE for authorship and licensing information *)
Copyright ( c ) 2005 , Regents of the University of California
* All rights reserved .
*
* Author :
*
* Redistribution and use in source and binary forms , with or w... | null | https://raw.githubusercontent.com/cacheaudit/cacheaudit/f0b52f85771ee31fed2a0a84a7e767a9d19e4b15/x86_frontend/x86Print.mli | ocaml | See ../LICENSE for authorship and licensing information
* Pretty-printing
* The type of a method for printing an ['a] | Copyright ( c ) 2013 - 2015 , IMDEA Software Institute .
Copyright ( c ) 2005 , Regents of the University of California
* All rights reserved .
*
* Author :
*
* Redistribution and use in source and binary forms , with or without
* modification , are permitted provided that the followi... |
da84dd3872f0d23d018a224a35a8a3e41a1a648f05722276bf86688edb70034c | cardano-foundation/dab | Api.hs |
module ChainWatcher.Api where
import ChainWatcher.Types
import Servant
import Servant.API.EventStream
type API =
Summary "Check health"
:> "healthcheck"
:> Get '[JSON] Bool
:<|>
"sse"
:> Capture "client_id" ClientId
:> ServerSentEvents
:<|>
"clients"
:> ... | null | https://raw.githubusercontent.com/cardano-foundation/dab/b650c175254dc9d013ebe970aecb4f9124d6d2e2/chain-watcher/src/ChainWatcher/Api.hs | haskell |
module ChainWatcher.Api where
import ChainWatcher.Types
import Servant
import Servant.API.EventStream
type API =
Summary "Check health"
:> "healthcheck"
:> Get '[JSON] Bool
:<|>
"sse"
:> Capture "client_id" ClientId
:> ServerSentEvents
:<|>
"clients"
:> ... | |
a428adf0f4aaaa5eedec869a369d1477dd1d4e6d649570b4935a1d850f3261df | kovasb/codn | utils.clj | (ns codn.parser.utils
(:require codn.parser.ExceptionInfo) ;; force loading
(:refer-clojure :exclude [char]))
(defn char [x]
(when x
(clojure.core/char x)))
;; getColumnNumber and *default-data-reader-fn* are available only since clojure-1.5.0-beta1
(def >=clojure-1-5-alpha*?
(let [{:keys [minor qualifier... | null | https://raw.githubusercontent.com/kovasb/codn/30bdf62d2b4b7f57acf984dbecbf7e50f47c1b44/src/codn/parser/utils.clj | clojure | force loading
getColumnNumber and *default-data-reader-fn* are available only since clojure-1.5.0-beta1
ch)) | (ns codn.parser.utils
(:refer-clojure :exclude [char]))
(defn char [x]
(when x
(clojure.core/char x)))
(def >=clojure-1-5-alpha*?
(let [{:keys [minor qualifier]} *clojure-version*]
(or (and (= minor 5)
(not= "alpha"
(when qualifier
(subs qualifier 0 (... |
5b7e6acdd25492c5840083ca37224439c8b9c047bcf0235cbb76476051fe54e7 | dradtke/Lisp-Text-Editor | utils.lisp | ;;;; -*- Mode: lisp; indent-tabs-mode: nil -*-
;;;
;;; utils.lisp --- Various utilities.
;;;
Copyright ( C ) 2005 - 2008 , loliveira(@)common - lisp.net >
;;;
;;; Permission is hereby granted, free of charge, to any person
;;; obtaining a copy of this software and associated documentation
files ( the " Software... | null | https://raw.githubusercontent.com/dradtke/Lisp-Text-Editor/b0947828eda82d7edd0df8ec2595e7491a633580/quicklisp/dists/quicklisp/software/cffi_0.10.6/src/utils.lisp | lisp | -*- Mode: lisp; indent-tabs-mode: nil -*-
utils.lisp --- Various utilities.
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
restriction, including without limitation the rights to use, copy,
modify, merge, publish, distribute, sublicens... | Copyright ( C ) 2005 - 2008 , loliveira(@)common - lisp.net >
files ( the " Software " ) , to deal in the Software without
of the Software , and to permit persons to whom the Software is
included in all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY ... |
5d668f969bf565845b53efb03ac0ea3c05ad04fe360d348d9b346ed8c4c4adb7 | dym/movitz | compiler-types.lisp | ;;;;------------------------------------------------------------------
;;;;
Copyright ( C ) 2001 , 2003 - 2005 ,
Department of Computer Science , University of Tromso , Norway .
;;;;
;;;; For distribution policy, see the accompanying file COPYING.
;;;;
;;;; Filename: compiler-types.lisp
;;;; Descri... | null | https://raw.githubusercontent.com/dym/movitz/56176e1ebe3eabc15c768df92eca7df3c197cb3d/compiler-types.lisp | lisp | ------------------------------------------------------------------
For distribution policy, see the accompanying file COPYING.
Filename: compiler-types.lisp
Description: Compile-time type computation and manipulation.
-------------------------------------------------... | Copyright ( C ) 2001 , 2003 - 2005 ,
Department of Computer Science , University of Tromso , Norway .
Author : < >
Created at : We d Sep 10 00:40:07 2003
$ I d : compiler - types.lisp , v 1.27 2008 - 04 - 27 19:14:54 ffjeld Exp $
(in-package movitz)
(defun type-specifier-num-values (ty... |
bb986ac7c5b89b59704823715a415bb747c3333ef4f96ddad59b04c66ffccf4a | pirapira/coq2rust | functional_principles_proofs.ml | open Printer
open Errors
open Util
open Term
open Vars
open Context
open Namegen
open Names
open Declarations
open Declareops
open Pp
open Tacmach
open Proof_type
open Tacticals
open Tactics
open Indfun_common
open Libnames
open Globnames
open Misctypes
let = Pp.msgnl
let observe =
if do_observe ( )
the... | null | https://raw.githubusercontent.com/pirapira/coq2rust/22e8aaefc723bfb324ca2001b2b8e51fcc923543/plugins/funind/functional_principles_proofs.ml | ocaml | msgnl (goal ++ fnl () ++ (str s)++(str " ")++(str "finished"));
observe (str "is_trivial_eq " ++ Printer.pr_lconstr t ++ (if res then str " true" else str " false"));
observe_tac msg
observe_tac "change_hyp_with_using thin"
observe_tac "change_hyp_with_using rename "
introducing context
Reductionops.loca... | open Printer
open Errors
open Util
open Term
open Vars
open Context
open Namegen
open Names
open Declarations
open Declareops
open Pp
open Tacmach
open Proof_type
open Tacticals
open Tactics
open Indfun_common
open Libnames
open Globnames
open Misctypes
let = Pp.msgnl
let observe =
if do_observe ( )
the... |
59ec690e8cd9fcca8264f7dc9b84e50d9e0e6f5e37e7c8ab781cd9cedc7ebf01 | goldfirere/singletons | FunctorLikeDeriving.hs | Ensure that we can derive Functor , Foldable , and using only
-- an import of Data.Singletons.TH
module FunctorLikeDeriving where
import Data.Kind
import Data.Singletons.Base.TH
$(singletons [d|
data T x a
= MkT1 x a (Maybe a) (Maybe (Maybe a))
| MkT2 (Maybe x)
deriving (Functor, Foldable, Traversabl... | null | https://raw.githubusercontent.com/goldfirere/singletons/a169d3f6c0c8e962ea2983f60ed74e507bca9b2b/singletons-base/tests/compile-and-dump/Singletons/FunctorLikeDeriving.hs | haskell | an import of Data.Singletons.TH | Ensure that we can derive Functor , Foldable , and using only
module FunctorLikeDeriving where
import Data.Kind
import Data.Singletons.Base.TH
$(singletons [d|
data T x a
= MkT1 x a (Maybe a) (Maybe (Maybe a))
| MkT2 (Maybe x)
deriving (Functor, Foldable, Traversable)
data Empty (a :: Type)
de... |
a858abd93b30dec1e0ad781117555619810455a084927f9e1b12f6510d272e37 | nachivpn/mt | b5.erl | -module(b5).
% defined twice! the type checker should reject this, not compiler
foo5(X,Y) -> X.
foo5(X,Y) -> Y. | null | https://raw.githubusercontent.com/nachivpn/mt/fcffbcb770cfe0b19c189e6c8ce2ccab61062195/test/bad/b5.erl | erlang | defined twice! the type checker should reject this, not compiler | -module(b5).
foo5(X,Y) -> X.
foo5(X,Y) -> Y. |
3c3bbfd5159a2196dd9731e4d4f41ff2f6e25b5aae391b5143000e4f06b9cadc | ocaml-multicore/ocaml-tsan | stack.ml | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
... | null | https://raw.githubusercontent.com/ocaml-multicore/ocaml-tsan/f54002470cc6ab780963cc81b11a85a820a40819/stdlib/stack.ml | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 1996 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
type 'a t = { mutable c : 'a list; mutable len : int; }
exception Empty
let create () = { c = []; len =... |
f5d6d20a305c520e9663f22917bf65026bfc815dac2f62d279af7322a8fc9903 | fujita-y/ypsilon | repl.scm | #!nobacktrace
(define-library (scheme repl)
(import (core primitives))
(export interaction-environment))
| null | https://raw.githubusercontent.com/fujita-y/ypsilon/f742470e2810aabb7a7c898fd6c07227c14a725f/sitelib/scheme/repl.scm | scheme | #!nobacktrace
(define-library (scheme repl)
(import (core primitives))
(export interaction-environment))
| |
07c1ba543d93d7070087df316cabd947d22f5965390d9146be4620743952fdd8 | D00mch/DartClojure | integration_test.cljc | (ns dumch.integration-test
(:require #?(:cljs [clojure.edn :refer [read-string]])
[clojure.test :refer [deftest is testing]]
[dumch.convert :refer [convert]]
[dumch.improve :refer [simplify]]
[dumch.parse :refer [dart->clojure widget-parser]]
[instaparse.cor... | null | https://raw.githubusercontent.com/D00mch/DartClojure/07de92ea08f6bf44262e22c3d7d469f5bfbe284f/test/dumch/integration_test.cljc | clojure | (ns dumch.integration-test
(:require #?(:cljs [clojure.edn :refer [read-string]])
[clojure.test :refer [deftest is testing]]
[dumch.convert :refer [convert]]
[dumch.improve :refer [simplify]]
[dumch.parse :refer [dart->clojure widget-parser]]
[instaparse.cor... | |
2e96dfac621d663c7d517f8ada93af2ce37926c798f0d79980882350cc5a08b0 | dardoria/ponon | package.lisp |
;;; -*- Mode: Lisp; indent-tabs-mode: nil -*-
;;;
;;; package.lisp --- Ponon package definition and exports
;;;
Copyright ( c ) 2010 , Boian Tzonev < >
;;;
;;; Permission is hereby granted, free of charge, to any person obtaining a copy
;;; of this software and associated documentation files (the "Software"), to de... | null | https://raw.githubusercontent.com/dardoria/ponon/f62d285da2a9a86c9f2dff8578bde61f52b97ab9/package.lisp | lisp | -*- Mode: Lisp; indent-tabs-mode: nil -*-
package.lisp --- Ponon package definition and exports
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
to use, copy, modify, merge, publish, distribute, sublicense,... |
Copyright ( c ) 2010 , Boian Tzonev < >
in the Software without restriction , including without limitation the rights
copies of the Software , and to permit persons to whom the Software is
all copies or substantial portions of the Software .
THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND ... |
79c044298c46642f1daf03fc8e586a997f7b7d1b3b22bf3a82becc22772334fe | mirage/conan | number.ml | type t = Int of int64 | Float of float
let int64 v = Int v
let float v = Float v
let pp ppf = function
| Int v -> Format.fprintf ppf "%Ld" v
| Float v -> Format.fprintf ppf "%f" v
let to_float = function Int v -> Int64.to_float v | Float v -> v
(* TODO(dinosaure): check with 32bits/64bits platform. *)
let to_in... | null | https://raw.githubusercontent.com/mirage/conan/fb144c7785ff0aa4ec6d8c87e58ca2a0c2d328db/src/number.ml | ocaml | TODO(dinosaure): check with 32bits/64bits platform.
XXX(dinosaure): [literal] can not be empty (see [lexer.mll]). | type t = Int of int64 | Float of float
let int64 v = Int v
let float v = Float v
let pp ppf = function
| Int v -> Format.fprintf ppf "%Ld" v
| Float v -> Format.fprintf ppf "%f" v
let to_float = function Int v -> Int64.to_float v | Float v -> v
let to_int = function Int v -> Int64.to_int v | Float v -> Float.to... |
a0989644e46888cb3e80c1f021f636fe15be69a9bd221fb7986aaf1012a289a4 | racket/racket7 | compile.rkt | #lang racket/base
(require "../parse/ast.rkt"
"../common/range.rkt"
"match.rkt")
Compile to a - style interpretation of a regular expression ,
;; where sequences are implemented by record chaining. Backtracking
;; is implemented by a stack of of success continuations as needed.
's implementati... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/regexp/match/compile.rkt | racket | where sequences are implemented by record chaining. Backtracking
is implemented by a stack of of success continuations as needed.
to closures, instead. A function like `byte-matcher` allocates a
closure to implement byte matching. Matcher-creation functions
usually take a closure to use as the next step, so the cl... | #lang racket/base
(require "../parse/ast.rkt"
"../common/range.rkt"
"match.rkt")
Compile to a - style interpretation of a regular expression ,
's implementation in C dispatches on records , but we compile
(provide compile)
(define (compile rx)
(let compile ([rx rx] [next-m done-m])
(de... |
66eb5adda178e7c9ced6a50a5c88c6cedf174805e9caad765eebcdf8390dcd67 | hcvst/erlang-dns | ed_extension_sup.erl | %%%----------------------------------------------------------------------------
@doc Erlang DNS ( EDNS ) root supervisor
@author v. Stockhausen < >
%%% @end
%%%----------------------------------------------------------------------------
-module(ed_extension_sup).
-behaviour(supervisor).
%% API
-export([start_... | null | https://raw.githubusercontent.com/hcvst/erlang-dns/cac34b16d565d228a11acfad670d7bba321a3ddc/src/ed_extension_sup.erl | erlang | ----------------------------------------------------------------------------
@end
----------------------------------------------------------------------------
API
behaviour callbacks
============================================================================
API
====================================================... | @doc Erlang DNS ( EDNS ) root supervisor
@author v. Stockhausen < >
-module(ed_extension_sup).
-behaviour(supervisor).
-export([start_link/0]).
-export([init/1]).
-define(SERVER, ?MODULE).
-define(EXTENSIONS_PATH, "priv/extensions/*/*.erl").
-define(CHILD(M), {M, {M, start_link, []}, permanent, 5000, work... |
c5daa3f96b1e7db892a6a9d4fb4599216023c5519b82979de9241855160eca2b | kana-sama/sicp | 2.27 - deep reverse.scm | (define (deep-reverse seq)
(define (try-reverse x)
(if (list? x) (deep-reverse x) x))
(let loop ((seq seq) (result '()))
(if (null? seq)
result
(loop (cdr seq) (cons (try-reverse (car seq)) result)))))
(define (deep-reverse* seq)
(let loop ((seq seq) (result '()))
(cond ((null? seq) resul... | null | https://raw.githubusercontent.com/kana-sama/sicp/fc637d4b057cfcae1bae3d72ebc08e1af52e619d/2/2.27%20-%20deep%20reverse.scm | scheme | (define (deep-reverse seq)
(define (try-reverse x)
(if (list? x) (deep-reverse x) x))
(let loop ((seq seq) (result '()))
(if (null? seq)
result
(loop (cdr seq) (cons (try-reverse (car seq)) result)))))
(define (deep-reverse* seq)
(let loop ((seq seq) (result '()))
(cond ((null? seq) resul... | |
5558d68f6cc232e500f2de19768ff2adf22a4aa214c2e42e3cbf9a09b85953dd | maralorn/haskell-taskwarrior | UDA.hs | -- | User defined attributes are stored in a 'Map' from 'Text' to json 'Value's because we have no type information about them.
module Taskwarrior.UDA (
UDA,
) where
import Data.Aeson (Value)
import Data.Map.Strict (Map)
import Data.Text (Text)
-- | A field will in practice only be a number or a string.
type UDA = ... | null | https://raw.githubusercontent.com/maralorn/haskell-taskwarrior/dfd5eea3148b5ef408e5ccd63980f3d49d481bc9/src/Taskwarrior/UDA.hs | haskell | | User defined attributes are stored in a 'Map' from 'Text' to json 'Value's because we have no type information about them.
| A field will in practice only be a number or a string. | module Taskwarrior.UDA (
UDA,
) where
import Data.Aeson (Value)
import Data.Map.Strict (Map)
import Data.Text (Text)
type UDA = Map Text Value
|
05350f55effc887e2c777a731ddcb1e01b0de2889b026cc64df886f6ced03ef5 | boomerang-lang/boomerang | src2f.ml | open Hbase.Src2fcl
let () =
if Array.length Sys.argv == 3 then
(wholename := Array.get Sys.argv 1;
basename := Array.get Sys.argv 2;
emit "# 1 \""; emit !wholename;
emit "\"\n"; lex (Lexing.from_channel (open_in !wholename)))
else
(basename := "tex/f";
lex (Lexing.from_channel stdin));... | null | https://raw.githubusercontent.com/boomerang-lang/boomerang/b42c2bfc72030bbe5c32752c236c0aad3b17d149/tools/src2f.ml | ocaml | open Hbase.Src2fcl
let () =
if Array.length Sys.argv == 3 then
(wholename := Array.get Sys.argv 1;
basename := Array.get Sys.argv 2;
emit "# 1 \""; emit !wholename;
emit "\"\n"; lex (Lexing.from_channel (open_in !wholename)))
else
(basename := "tex/f";
lex (Lexing.from_channel stdin));... | |
34bf1721efb0b3f2548e06891da43be863e222f08c58f5828227b12a881e6e9a | GNOME/aisleriot | maze.scm | ; AisleRiot - maze.scm
Copyright ( C ) 2000 < >
;
; This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
; (at your option) any later version.
;
; This progra... | null | https://raw.githubusercontent.com/GNOME/aisleriot/5b04e58ba5f8df8223a3830d2c61325527d52237/games/maze.scm | scheme | AisleRiot - maze.scm
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See t... | Copyright ( C ) 2000 < >
it under the terms of the GNU General Public License as published by
the Free Software Foundation , either version 3 of the License , or
You should have received a copy of the GNU General Public License
(use-modules (aisleriot interface) (aisleriot api))
(define card '())
(define ... |
d0395a7e266e1e4ff02bbde34db66ed6a164a504cacb27dd4897ce8f0bb67ed7 | weavejester/clucy | core.clj | (ns clucy.core
(:import (java.io StringReader File)
(org.apache.lucene.analysis Analyzer TokenStream)
(org.apache.lucene.analysis.standard StandardAnalyzer)
(org.apache.lucene.document Document Field Field$Index Field$Store)
(org.apache.lucene.index IndexWriter IndexReader ... | null | https://raw.githubusercontent.com/weavejester/clucy/8c0d1b6d087db6a4ab3efe9aa66e535fa88d2aed/src/clucy/core.clj | clojure | flag to indicate a default "_content" field should be maintained
so that we can highlight :_content | (ns clucy.core
(:import (java.io StringReader File)
(org.apache.lucene.analysis Analyzer TokenStream)
(org.apache.lucene.analysis.standard StandardAnalyzer)
(org.apache.lucene.document Document Field Field$Index Field$Store)
(org.apache.lucene.index IndexWriter IndexReader ... |
721a47c27f6636f9e84c4c530376ea6cee09ff3dd95c9a0ab20317731e493d2a | mzp/coq-ide-for-ios | libtypes.mli | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/coqlib/toplevel/libtypes.mli | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
i
i
results are the reference of th... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
$ Id:$
open Term
* Per... |
b9e9580d8bf4fa758a293d7ed26ee5f40e773755789ca9f50d8f3523f389a317 | rowangithub/DOrder | color.ml | (**************************************************************************)
(* *)
: a generic graph library for OCaml
Copyright ( C ) 2004 - 2007
, and
(* ... | null | https://raw.githubusercontent.com/rowangithub/DOrder/e0d5efeb8853d2a51cc4796d7db0f8be3185d7df/external/ocamlgraph/examples/color.ml | ocaml | ************************************************************************
This software is free software; you can redistribute it and/or
described in file LICENSE.... | : a generic graph library for OCaml
Copyright ( C ) 2004 - 2007
, and
modify it under the terms of the GNU Library General Public
License version 2 , with the special exception on linking
4 - col... |
3cb9b3e5a2e6621a21f4233bb15ec05203eba7a42dfb544dd1fe18f15760bb61 | dalaing/little-languages | Test.hs | module Main where
import Data.Maybe (isJust, isNothing, catMaybes)
import Control.Monad.Except (runExcept)
import Text.Trifecta.Rendering (Span)
import Test.Tasty
import Test.Tasty.QuickCheck
import Term
import Term.Gen
import Term.Parse
import Term.Pretty
import Term.Eval.Value
import Term.Eval.SmallStep
import T... | null | https://raw.githubusercontent.com/dalaing/little-languages/9f089f646a5344b8f7178700455a36a755d29b1f/code/old/multityped/old-stlc-b/tests/Test.hs | haskell | module Main where
import Data.Maybe (isJust, isNothing, catMaybes)
import Control.Monad.Except (runExcept)
import Text.Trifecta.Rendering (Span)
import Test.Tasty
import Test.Tasty.QuickCheck
import Term
import Term.Gen
import Term.Parse
import Term.Pretty
import Term.Eval.Value
import Term.Eval.SmallStep
import T... | |
42a89cb01746d3ad2757da03cfa49fd2d53321567711b18aa7c4337df654e17f | alanz/ghc-exactprint | CExpected.hs | module CExpected where
-- Test for refactor of if to case
-- The comments on the then and else legs should be preserved
foo x = case (odd x) of
True -> -- This is an odd result
bob x 1
False -> -- This is an even result
bob x 2
bob x y = x + y
| null | https://raw.githubusercontent.com/alanz/ghc-exactprint/b6b75027811fa4c336b34122a7a7b1a8df462563/tests/examples/ghc710/CExpected.hs | haskell | Test for refactor of if to case
The comments on the then and else legs should be preserved
This is an odd result
This is an even result | module CExpected where
foo x = case (odd x) of
bob x 1
bob x 2
bob x y = x + y
|
2121efc21f82903d3e76686ee68961f9ef55d96290859cec482b9532907231d1 | heraldry/heraldicon | fir_tree_topped.cljs | (ns heraldicon.heraldry.line.type.fir-tree-topped
(:require
[heraldicon.options :as options]))
(def pattern
{:display-name :string.line.type/fir-tree-topped
:function (fn [{:keys [eccentricity height width]}
_line-options]
(let [dx (/ width 16)
dy (* dx h... | null | https://raw.githubusercontent.com/heraldry/heraldicon/7bf4dd4149e1f69c9e4f9a0b6b826f73f532a01d/src/heraldicon/heraldry/line/type/fir_tree_topped.cljs | clojure | (ns heraldicon.heraldry.line.type.fir-tree-topped
(:require
[heraldicon.options :as options]))
(def pattern
{:display-name :string.line.type/fir-tree-topped
:function (fn [{:keys [eccentricity height width]}
_line-options]
(let [dx (/ width 16)
dy (* dx h... | |
e83886ecec4b3c230f696f6e5930f8e2160954df7fff5b24ea5c4a3823dd1882 | patricoferris/ocaml-multicore-monorepo | caqti_heap.ml | Copyright ( C ) 2014 - -2016 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | null | https://raw.githubusercontent.com/patricoferris/ocaml-multicore-monorepo/22b441e6727bc303950b3b37c8fbc024c748fe55/duniverse/ocaml-caqti/lib/caqti_heap.ml | ocaml | Copyright ( C ) 2014 - -2016 Petter A. Urkedal < >
*
* This library is free software ; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , either version 3 of the License , or ( at your
* option ) any la... | |
6bb11565b18bec9714d40d042315caebff55cf4fe07dabd0c6777ada63b69c0b | rabbitmq/rabbitmq-peer-discovery-etcd | rabbitmq_peer_discovery_etcd_app.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbitmq_peer_discovery_etcd_app).
%%
%%... | null | https://raw.githubusercontent.com/rabbitmq/rabbitmq-peer-discovery-etcd/3f2f292137a55f22881398e7ef045ca748920ecf/src/rabbitmq_peer_discovery_etcd_app.erl | erlang |
API
| This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2020 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbitmq_peer_discovery_etcd_app).
-behaviour... |
1c21fa1dcd73a3a8e41cdb0a46fc67beaf13c1ae04ef326a5bcfc1fe44ef771e | flyspeck/flyspeck | iter.ml | (* ========================================================================= *)
(* Iterated application of a function, ITER n f x = f^n(x). *)
(* *)
( c ) , and , 2008 .
(* ==================================... | null | https://raw.githubusercontent.com/flyspeck/flyspeck/05bd66666b4b641f49e5131a37830f4881f39db9/azure/hol-light-nat/Library/iter.ml | ocaml | =========================================================================
Iterated application of a function, ITER n f x = f^n(x).
=========================================================================
---------------... | ( c ) , and , 2008 .
open Hol_core
let ITER = define
`(!f. ITER 0 f x = x) /\
(!f n. ITER (SUC n) f x = f (ITER n f x))`;;
let ITER_POINTLESS = prove
(`(!f. ITER 0 f = I) /\
(!f n. ITER (SUC n) f = f o ITER n f)`,
REWRITE_TAC [FUN_EQ_THM; I_THM; o_THM; ITER]);;
let ITER_ALT = pro... |
fcddbda3170727773cc851005f3dfb4a4da29a5f18034b453b797fb8e0a0ab09 | xvw/preface | try.ml | module Invariant_suite =
Preface.Qcheck.Invariant.Suite (Req.Try) (Preface.Try.Invariant) (Sample.Int)
(Sample.String)
(Sample.Float)
module Functor_suite =
Preface.Qcheck.Functor.Suite (Req.Try) (Preface.Try.Functor) (Sample.Int)
(Sample.String)
(Sample.Float)
module Alt_suite =
Preface.Qcheck.... | null | https://raw.githubusercontent.com/xvw/preface/84a297e1ee2967ad4341dca875da8d2dc6d7638c/test/preface_laws_test/try.ml | ocaml | module Invariant_suite =
Preface.Qcheck.Invariant.Suite (Req.Try) (Preface.Try.Invariant) (Sample.Int)
(Sample.String)
(Sample.Float)
module Functor_suite =
Preface.Qcheck.Functor.Suite (Req.Try) (Preface.Try.Functor) (Sample.Int)
(Sample.String)
(Sample.Float)
module Alt_suite =
Preface.Qcheck.... | |
c060cfa5c4eca1b7c4243d965b942599840856036aeffae489deccf31877862a | MiroChiong/excel_reader | excel_reader.erl | -module(excel_reader).
%%%-------------------------------------------------------------------
@author
( C ) 2017 , Lilith Games
%%% @doc
读取Excel文件
%%% @end
Created : 09 . 三月 2017 16:13
%%%-------------------------------------------------------------------
-author("").
-include("excel_reader.hrl").
%% API e... | null | https://raw.githubusercontent.com/MiroChiong/excel_reader/83ae9524ef9e5da014005a50da1e8e9ce218d533/src/excel_reader.erl | erlang | -------------------------------------------------------------------
@doc
@end
-------------------------------------------------------------------
API exports
====================================================================
API functions
====================================================================
======... | -module(excel_reader).
@author
( C ) 2017 , Lilith Games
读取Excel文件
Created : 09 . 三月 2017 16:13
-author("").
-include("excel_reader.hrl").
-export([open/1]).
open(File) when is_list(File) ->
case check_extension(File) of
true ->
do_open(File);
false ->
{error, b... |
1bc5d1ded770d8a2e79622161836dc8c1c78a5ede426f13e26f6721b3d871017 | bendoerr/real-world-haskell | filter.hs | -- Example of using a filter with interact
--
main = interact (unlines . filter (elem 'a') . lines)
| null | https://raw.githubusercontent.com/bendoerr/real-world-haskell/fa43aa59e42a162f5d2d5655b274b964ebeb8f0a/ch07/filter.hs | haskell | Example of using a filter with interact
| main = interact (unlines . filter (elem 'a') . lines)
|
b737ae9ed0abcd4c81c5f26b3eabd774124d4ba5b0523a0fcd99f2d67d45f573 | LdBeth/CLFSWM | reboot-halt.lisp | ;;; --------------------------------------------------------------------------
;;; CLFSWM - FullScreen Window Manager
;;;
;;; --------------------------------------------------------------------------
;;; Documentation: Reboot and halt menu
;;; --------------------------------------------------------------------------
... | null | https://raw.githubusercontent.com/LdBeth/CLFSWM/4e936552d1388718d2947a5f6ca3eada19643e75/contrib/reboot-halt.lisp | lisp | --------------------------------------------------------------------------
CLFSWM - FullScreen Window Manager
--------------------------------------------------------------------------
Documentation: Reboot and halt menu
--------------------------------------------------------------------------
This program is... | ( C ) 2015 < >
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
Foundation , Inc. , 59 Temple Place - Suite 330 , Boston , MA 02111 - 1307 , USA .
(in-package :clfswm)
(format t "Loading Reboot/Halt code... ")
(defconfig... |
c56e965ef4e5f9381f324e9ff4e0371a131e4c6fc4569f1e77a971b564dfc81f | manuel-serrano/hop | editor.scm | ;*=====================================================================*/
* serrano / prgm / project / hop/2.0.x / widget / editor.scm * /
;* ------------------------------------------------------------- */
* Author : * /
* Creation : ... | null | https://raw.githubusercontent.com/manuel-serrano/hop/481cb10478286796addd2ec9ee29c95db27aa390/widget/editor.scm | scheme | *=====================================================================*/
* ------------------------------------------------------------- */
* ------------------------------------------------------------- */
* The HOP implementation of <EDITOR>. */
*===========================... | * serrano / prgm / project / hop/2.0.x / widget / editor.scm * /
* Author : * /
* Creation : Sat Apr 8 13:15:13 2006 * /
* Last change : Sat Jun 20 07:51:58 2009 ( serrano ) * /
(module __... |
eebac3213fc3d7f644ebf694a842bd10ee9206974dc670ffe72ac27079463186 | DestyNova/advent_of_code_2021 | Part1.hs | module Main where
import Text.Parsec
import Data.List (maximumBy)
import Debug.Trace (trace)
import Data.Ord (comparing)
data Val = Const Int | Reg Char deriving (Eq,Show)
data Insn = Inp Val | Add Val Val | Mul Val Val | Div Val Val | Mod Val Val | Eql Val Val deriving (Eq,Show)
data ALU = ALU { stateW :: Int, state... | null | https://raw.githubusercontent.com/DestyNova/advent_of_code_2021/82fb794186545b5d94aef3c0a93c1c9164f173fa/day24/Part1.hs | haskell | print prog
print $ solve prog
search ((c1,c2):ps) zs (d:acc) = res
where res = case (d,findWZ c1 c2 zs) of
(0,[]) -> []
ps <- testLoad
findWZ' c1 c2 zs = [(w, lower,upper) | let mz = minimum zs,
checkW w z c1 c2 ,
]
-- res `elem` zs]
getBounds w... | module Main where
import Text.Parsec
import Data.List (maximumBy)
import Debug.Trace (trace)
import Data.Ord (comparing)
data Val = Const Int | Reg Char deriving (Eq,Show)
data Insn = Inp Val | Add Val Val | Mul Val Val | Div Val Val | Mod Val Val | Eql Val Val deriving (Eq,Show)
data ALU = ALU { stateW :: Int, state... |
a60858ce7554f29e3b506ff2eec384a7d2950feda97929f6f1d6a9c571ec9c41 | ThomasHintz/keep-the-records | test-db-threads.scm | (use test srfi-18 srfi-1)
(load "src/utils/misc-utils") (import misc-utils)
(load "src/db/db-interface") (import db-interface)
(load "src/utils/threading-extras") (import threading-extras)
(define (do-test)
(let ((k (number->string (random 10000))))
(db:store "v" k)
(db:read k)))
(define (run-times test tim... | null | https://raw.githubusercontent.com/ThomasHintz/keep-the-records/c20e648e831bed2ced3f2f74bfc590dc06b5f076/tests/test-db-threads.scm | scheme | (use test srfi-18 srfi-1)
(load "src/utils/misc-utils") (import misc-utils)
(load "src/db/db-interface") (import db-interface)
(load "src/utils/threading-extras") (import threading-extras)
(define (do-test)
(let ((k (number->string (random 10000))))
(db:store "v" k)
(db:read k)))
(define (run-times test tim... | |
e8bc37ab8db35594dcc8fb8481a676f018dc5a53318fc55a01ca0534a4ffb546 | YoshikuniJujo/test_haskell | Taocp.hs | # , LambdaCase #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module QuickSort.Taocp (quicksort, quicksortM) where
import Control.Monad
import Control.Monad.ST
import Data.Array.ST
import Data.Bool
import StraightInsertionSort
quicksort :: (Ord a, Bounded a) => [a] -> [a]
quicksort = quicksortM 32
quicksortM :: (Ord... | null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/56311ed35f6bf0c438694446b4c9c8f591e5b6ef/tribial/mastodon/quicksort/src/QuickSort/Taocp.hs | haskell | # , LambdaCase #
# OPTIONS_GHC -Wall -fno - warn - tabs #
module QuickSort.Taocp (quicksort, quicksortM) where
import Control.Monad
import Control.Monad.ST
import Data.Array.ST
import Data.Bool
import StraightInsertionSort
quicksort :: (Ord a, Bounded a) => [a] -> [a]
quicksort = quicksortM 32
quicksortM :: (Ord... | |
3738397f8726e6ddfda95eaf142f959448389304a5ab466584b1ca2efce26a16 | mzp/coq-ide-for-ios | polynom.ml | (************************************************************************)
v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | null | https://raw.githubusercontent.com/mzp/coq-ide-for-ios/4cdb389bbecd7cdd114666a8450ecf5b5f0391d3/CoqIDE/coq-8.2pl2/plugins/nsatz/polynom.ml | ocaml | **********************************************************************
// * This file is distributed under the terms of the
* GNU Lesser General Public License Version 2.1
**********************************************************************
Recursive polynomials: R[x1]...[xn]... | v * The Coq Proof Assistant / The Coq Development Team
< O _ _ _ , , * INRIA - CNRS - LIX - LRI - PPS - Copyright 1999 - 2010
\VV/ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
open Utile
open Util
1 . C... |
bea0f5b3e3fc1ac301da44769551d3285ab9568c62293f15619bb238b37f5fe7 | plum-umd/adapton.ocaml | engine.ml | * Engine ( previously Grifola ): Clean rewrite of the original Adapton module .
( Named after this : ) .
Changelog ( compared to Yit 's original version , circa PLDI 2014 ):
= = = = = = = = =
- New representation of unevaluated thunks
( Cache - on - force , not cache - on - create , as... | null | https://raw.githubusercontent.com/plum-umd/adapton.ocaml/a8e642ac1cc113b33e1837da960940c2dfcfa772/src/core/engine.ml | ocaml | Abstract suspension: Memoized function paired with an argument.
Error if thunk is not nominal.
Error if thunk is not generative.
Incoming creation edges
Incoming force edges
susp_state does not point back at its node.
Invariant: Freshly sanitized.
For garbage collection:
Each node stores its out... | * Engine ( previously Grifola ): Clean rewrite of the original Adapton module .
( Named after this : ) .
Changelog ( compared to Yit 's original version , circa PLDI 2014 ):
= = = = = = = = =
- New representation of unevaluated thunks
( Cache - on - force , not cache - on - create , as... |
99fe644e344703b6c325d05e9954d65a16b320e5cdf6a25c60c3b462e4fa4206 | Opetushallitus/ataru | arvosanat_taulukko.cljs | (ns ataru.hakija.arvosanat.components.arvosanat-taulukko
(:require [ataru.hakija.arvosanat.components.arvosanat-taulukko-otsikkorivi :as ato]
[ataru.hakija.schema.render-field-schema :as render-field-schema]
[re-frame.core :as re-frame]
[schema.core :as s]))
(s/defn arvosanat-taul... | null | https://raw.githubusercontent.com/Opetushallitus/ataru/2d8ef1d3f972621e301a3818567d4e11219d2e82/src/cljs/ataru/hakija/arvosanat/components/arvosanat_taulukko.cljs | clojure | (ns ataru.hakija.arvosanat.components.arvosanat-taulukko
(:require [ataru.hakija.arvosanat.components.arvosanat-taulukko-otsikkorivi :as ato]
[ataru.hakija.schema.render-field-schema :as render-field-schema]
[re-frame.core :as re-frame]
[schema.core :as s]))
(s/defn arvosanat-taul... | |
3da28b1c30a389655b8772d0f0a1a7d3ac1cdb5291bffb0a078bba22c61b1c92 | webyrd/n-grams-for-synthesis | default.scm | ;;; The default comparator
;;; Standard comparators and their functions
;; The unknown-object comparator, used as a fallback to everything else
;; Everything compares exactly the same and hashes to 0
(define unknown-object-comparator
(make-comparator
(lambda (obj) #t)
(lambda (a b) #t)
(lambda (a b) #f)... | null | https://raw.githubusercontent.com/webyrd/n-grams-for-synthesis/b53b071e53445337d3fe20db0249363aeb9f3e51/datasets/srfi/srfi-146/srfi/128/default.scm | scheme | The default comparator
Standard comparators and their functions
The unknown-object comparator, used as a fallback to everything else
Everything compares exactly the same and hashes to 0
Register a new comparator for use by the default comparator.
Return ordinal for object types: null sorts before pairs, which sor... |
(define unknown-object-comparator
(make-comparator
(lambda (obj) #t)
(lambda (a b) #t)
(lambda (a b) #f)
(lambda (obj) 0)))
Next index for added comparator
(define first-comparator-index 9)
(define *next-comparator-index* 9)
(define *registered-comparators* (list unknown-object-comparator))
(de... |
c45b6171a2a7eff141563b4189b963cf560f48b5966d41c280a79ec408398a05 | cirfi/sicp-my-solutions | 1.31.scm | ;;; recursive product
(define (product term a next b)
(cond ((> a b) 1)
(else (* (term a)
(product term (next a) next b)))))
;;; factorial
(define (fac n)
(define (fac-term x)
x)
(define (inc x)
(+ x 1))
(product fac-term 1 inc n))
;;; pi
( 2 * 4)/(3 * 3 ) = 1 - 1/(3 * 3 )
( 4 * 6)/(5 * 5 ) = ... | null | https://raw.githubusercontent.com/cirfi/sicp-my-solutions/4b6cc17391aa2c8c033b42b076a663b23aa022de/ch1/1.31.scm | scheme | recursive product
factorial
pi
iterative product | (define (product term a next b)
(cond ((> a b) 1)
(else (* (term a)
(product term (next a) next b)))))
(define (fac n)
(define (fac-term x)
x)
(define (inc x)
(+ x 1))
(product fac-term 1 inc n))
( 2 * 4)/(3 * 3 ) = 1 - 1/(3 * 3 )
( 4 * 6)/(5 * 5 ) = 1 - 1/(5 * 5 )
(define (guess-pi b)
(defi... |
1eeff76a7c7dca6412365bff03e1eadb4204611d5112a93fcfc13a57686d034d | quil/quil-examples | 31_oo_circles.clj | (ns quil-sketches.gen-art.31-oo_circles
(:require [quil.core :refer :all]
[quil.helpers.calc :refer [mod-range]]))
;; Example 31 - OO Circles
Taken from Listing 6.4 , p117
int _ num = 10 ;
;; Circle[] _circleArr = {};
;; void setup() {
size(500 , 300 ) ;
) ;
;; smooth();
;; strokeWeigh... | null | https://raw.githubusercontent.com/quil/quil-examples/9ff9d5578d93682af29d9a080b917a19f8deafc8/src/quil_sketches/gen_art/31_oo_circles.clj | clojure | Example 31 - OO Circles
Circle[] _circleArr = {};
void setup() {
smooth();
strokeWeight(1);
fill(150, 50);
drawCircles();
}
void draw() {
for(int i = 0; i < _circleArr.length; i++) {
Circle thisCirc = _circleArr[i];
thisCirc.updateMe();
}
}
drawCircles();
}
void drawCircles() ... | (ns quil-sketches.gen-art.31-oo_circles
(:require [quil.core :refer :all]
[quil.helpers.calc :refer [mod-range]]))
Taken from Listing 6.4 , p117
void ( ) {
class Circle {
(def num-circles 10)
(defn mk-circle []
{:x (random (width))
:y (random (height))
:radius (... |
0ae1d4ccffdb9a54fbdadb7851f8cf0c83650ffba29ae2cc440831623ca1e2d1 | vouillon/osm | bitvect.mli | OSM tools
* Copyright ( C ) 2013
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your opti... | null | https://raw.githubusercontent.com/vouillon/osm/a42d1bcc82a4ad73c26c81ac7a75f9f1c7470344/generic/bitvect.mli | ocaml | OSM tools
* Copyright ( C ) 2013
*
* This program is free software ; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation , with linking exception ;
* either version 2.1 of the License , or ( at your opti... | |
119d2a3f119e60483db51a5e7804207564b37d2fed7992d937b44170a14f053a | jrslepak/Remora | dependent-lang.rkt | #lang racket
(require rackunit
redex
"language.rkt")
(provide Dependent
type-of kind-of sort-of
type-env-update kind-env-update sort-env-update
type/type-sub idx/type-sub idx/idx-sub
shadow
canonicalize-type)
(define-extended-language Dependent Arrays
;... | null | https://raw.githubusercontent.com/jrslepak/Remora/1a831dec554df9a7ef3eeb10f0d22036f1f86dbd/semantics/dependent-lang.rkt | racket | may also want to add a type annotation to array syntax
(A type (num ...) (el-expr ...)), etc.
include bits from untyped language, but not boxing
type abstraction
type application
construction of dependent sum
let-like binding to destruct a dependent sum
index abstraction
index application
allow a type annotat... | #lang racket
(require rackunit
redex
"language.rkt")
(provide Dependent
type-of kind-of sort-of
type-env-update kind-env-update sort-env-update
type/type-sub idx/type-sub idx/idx-sub
shadow
canonicalize-type)
(define-extended-language Dependent Arrays
... |
0cce36f7f0bea6b423d82580e1a75e921e64fa2c16ddb0a726dad2145de48b81 | mbutterick/fontland | index.rkt | #lang racket
(require rackunit racket/runtime-path fontland)
#|
approximates
|#
(define-runtime-path open-sans-ttf "data/OpenSans/OpenSans-Regular.ttf")
(define-runtime-path source-sans-otf "data/SourceSansPro/SourceSansPro-Regular.otf")
(define-runtime-path mada-ttf "data/Mada/Mada-Regular.subset1.ttf")
(test-case... | null | https://raw.githubusercontent.com/mbutterick/fontland/e50e4c82f58e2014d64e87a14c1d29b546fb393b/fontland/test/index.rkt | racket |
approximates
(test-case | #lang racket
(require rackunit racket/runtime-path fontland)
(define-runtime-path open-sans-ttf "data/OpenSans/OpenSans-Regular.ttf")
(define-runtime-path source-sans-otf "data/SourceSansPro/SourceSansPro-Regular.otf")
(define-runtime-path mada-ttf "data/Mada/Mada-Regular.subset1.ttf")
(test-case
"should open a fon... |
6127058d85b9c5a8f5fd34c8e87766ea98eeb4d298a366e7a2f764c873389fc1 | Quid2/zm | K07b1b045ac3c.hs | {-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
module Test.ZM.ADT.ADTRef.K07b1b045ac3c (ADTRef(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Word8.Kb1f46a49c8f8
data ADTRef a = Var Test.ZM... | null | https://raw.githubusercontent.com/Quid2/zm/02c0514777a75ac054bfd6251edd884372faddea/test/Test/ZM/ADT/ADTRef/K07b1b045ac3c.hs | haskell | # LANGUAGE DeriveAnyClass #
# LANGUAGE DeriveGeneric # | module Test.ZM.ADT.ADTRef.K07b1b045ac3c (ADTRef(..)) where
import qualified Prelude(Eq,Ord,Show)
import qualified GHC.Generics
import qualified Flat
import qualified Data.Model
import qualified Test.ZM.ADT.Word8.Kb1f46a49c8f8
data ADTRef a = Var Test.ZM.ADT.Word8.Kb1f46a49c8f8.Word8
| Rec
... |
5547785c46e7810bc1911dd4aa6582927b6fa6d52ae9bc89d6ee15926f099250 | kupl/LearnML | original.ml | type formula =
| True
| False
| Not of formula
| AndAlso of (formula * formula)
| OrElse of (formula * formula)
| Imply of (formula * formula)
| Equal of (exp * exp)
and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp)
let rec eval (f : formula) : bool =
let rec evalexp (f1 : exp) : int =... | null | https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/formula/sub41/original.ml | ocaml | type formula =
| True
| False
| Not of formula
| AndAlso of (formula * formula)
| OrElse of (formula * formula)
| Imply of (formula * formula)
| Equal of (exp * exp)
and exp = Num of int | Plus of (exp * exp) | Minus of (exp * exp)
let rec eval (f : formula) : bool =
let rec evalexp (f1 : exp) : int =... | |
6f77154b870c992561327e5968718ad57af21b21edbe6a357093ae513207d3aa | bufferswap/ViralityEngine | keyboard.lisp | (in-package #:virality)
(u:define-constant +key-names+
#(:unknown nil nil nil :a :b :c :d :e :f :g :h :i :j :k :l :m :n :o :p :q :r
:s :t :u :v :w :x :y :z :1 :2 :3 :4 :5 :6 :7 :8 :9 :0 :return :escape
:backspace :tab :space :minus :equals :leftbracket :rightbracket
:backslash :nonushash :semicol... | null | https://raw.githubusercontent.com/bufferswap/ViralityEngine/df7bb4dffaecdcb6fdcbfa618031a5e1f85f4002/src/input/keyboard.lisp | lisp | (in-package #:virality)
(u:define-constant +key-names+
#(:unknown nil nil nil :a :b :c :d :e :f :g :h :i :j :k :l :m :n :o :p :q :r
:s :t :u :v :w :x :y :z :1 :2 :3 :4 :5 :6 :7 :8 :9 :0 :return :escape
:backspace :tab :space :minus :equals :leftbracket :rightbracket
:backslash :nonushash :semicol... | |
f390985145cf8e0914a7ae3c4ad6d7707bb226599d7d147ecfa951ed75bd902b | TrustInSoft/tis-interpreter | outputs.ml | Modified by TrustInSoft
(**************************************************************************)
(* *)
This file is part of Frama - C.
(* ... | null | https://raw.githubusercontent.com/TrustInSoft/tis-interpreter/33132ce4a825494ea48bf2dd6fd03a56b62cc5c3/src/plugins/inout/outputs.ml | ocaml | ************************************************************************
alternatives)
... | Modified by TrustInSoft
This file is part of Frama - C.
Copyright ( C ) 2007 - 2015
CEA ( Commissariat à l'énergie atomique et aux énergies
Lesser General Public License as published by the Free Softwa... |
7d2423bc0895d395c64604761ca982c83469790298bb288596811db755c11cb9 | leo-project/leofs | leo_storage_handler_del_directory.erl | %%======================================================================
%%
LeoStorage
%%
Copyright ( c ) 2012 - 2018 Rakuten , Inc.
%%
This file is provided to you under the Apache License ,
%% Version 2.0 (the "License"); you may not use this file
except in compliance with the License . You may obtain
%% a ... | null | https://raw.githubusercontent.com/leo-project/leofs/4ff701e0f4a4cf39a968dbe078b9c2412a22f995/apps/leo_storage/src/leo_storage_handler_del_directory.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 permis... | LeoStorage
Copyright ( c ) 2012 - 2018 Rakuten , Inc.
This file is provided to you under the Apache License ,
except in compliance with the License . You may obtain
software distributed under the License is distributed on an
" AS IS " BASIS , WITHOUT WARRANTIES OR CONDITIONS OF ANY
Leo Storage - Deletio... |
3f14509ca021f350dda88d389d73c6da56dcaa0b9975b02913bb9f18d7ae1cc2 | lingnand/VIMonad | Plane.hs | -----------------------------------------------------------------------------
-- |
Module : XMonad . Actions . Plane
Copyright : ( c ) < > ,
< >
-- License : BSD3-style (see LICENSE)
--
Maintainer : < >
-- Stability : unstable
-- Portability : unportab... | null | https://raw.githubusercontent.com/lingnand/VIMonad/048e419fc4ef57a5235dbaeef8890faf6956b574/XMonadContrib/XMonad/Actions/Plane.hs | haskell | ---------------------------------------------------------------------------
|
License : BSD3-style (see LICENSE)
Stability : unstable
Portability : unportable
This module has functions to navigate through workspaces in a bidimensional
manner. It allows the organization of workspaces in lines, and prov... | Module : XMonad . Actions . Plane
Copyright : ( c ) < > ,
< >
Maintainer : < >
functions to move and shift windows in all four directions ( left , up , right
the idea of applying this approach to XMonad .
module XMonad.Actions.Plane
(
Direction (.... |
38d27260406f1075c8f17aa6f4c18bb95d3c3f12fd85880d023489691826b126 | CoNarrative/precept-devtools | schema.cljc | (ns precept-devtools.schema
(:require [precept.schema :refer [attribute]]))
Attribute names are pluralized for one - to - many rels and
singular for one - to - one .
; This informs us of the arity of an attribute.
; Once in the session all facts refer to a single value
; so it can still be confusing, but hope... | null | https://raw.githubusercontent.com/CoNarrative/precept-devtools/0c69c090db2159c4d1f5ce783cecd9d5426c5fe0/src/cljc/precept_devtools/schema.cljc | clojure | This informs us of the arity of an attribute.
Once in the session all facts refer to a single value
so it can still be confusing, but hopefully less confusing
User
(attribute :state/added
:db/isComponent true
:db/cardinality :db.cardinality/many)
(attribute :state/removed
:db/isComponent true
:db/cardinal... | (ns precept-devtools.schema
(:require [precept.schema :refer [attribute]]))
Attribute names are pluralized for one - to - many rels and
singular for one - to - one .
(defn mk-db-schema []
[
(attribute :user/id
:db.type/uuid
:db/unique :db.unique/identity)
State
(attribute :state/id
:... |
2a2fe10c19a9e440569b510de5afad463a2524098903a19d48d28cf1920f80c0 | yminer/libml | inputVisitor.mli | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[ LibML - Machine Learning Library ]
Copyright ( C ) 2002 - 2003 LAGACHERIE
This program is free software ; you can redistribute it and/or
modify it under the te... | null | https://raw.githubusercontent.com/yminer/libml/1475dd87c2c16983366fab62124e8bbfbbf2161b/src/nn/input/inputVisitor.mli | ocaml | *
The generic visit method.
| * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
[ LibML - Machine Learning Library ]
Copyright ( C ) 2002 - 2003 LAGACHERIE
This program is free software ; you can redistribute it and/or
modify it under the te... |
e04405b8188a1e83459165f1dad58398db6778220603b608a1d2220e5f81a9e7 | trivial-garbage/trivial-garbage | trivial-garbage.lisp | -*- Mode : LISP ; Syntax : ANSI - Common - lisp ; Base : 10 -*-
The above modeline is required for . Do not change .
;;
;;; trivial-garbage.lisp --- Trivial Garbage!
;;;
This software is placed in the public domain by
;;; <> and is provided with absolutely no
;;; warranty.
#+xcvb (module ())
(defpackage #:tr... | null | https://raw.githubusercontent.com/trivial-garbage/trivial-garbage/b3af9c0c25d4d4c271545f1420e5ea5d1c892427/trivial-garbage.lisp | lisp | Syntax : ANSI - Common - lisp ; Base : 10 -*-
trivial-garbage.lisp --- Trivial Garbage!
<> and is provided with absolutely no
warranty.
Weak Pointers
Weak Hash-tables
and weak values but it's not obvious whether it's an OR or an AND
relation. TODO: figure that out.
it's necessary to shadow-import it. For exa... | The above modeline is required for . Do not change .
This software is placed in the public domain by
#+xcvb (module ())
(defpackage #:trivial-garbage
(:use #:cl)
(:shadow #:make-hash-table)
(:nicknames #:tg)
(:export #:gc
#:make-weak-pointer
#:weak-pointer-value
#:weak-... |
ffc0c3bea2a6f7b878b64ed36ad6d244570713a31ca0f501caecff007f566840 | lasp-lang/partisan | format_status_server.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2017 - 2021 . All Rights Reserved .
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicab... | null | https://raw.githubusercontent.com/lasp-lang/partisan/e37ca042f82f4a9d91747dcd8ecd0d3da17667ec/test/otp/format_status_server.erl | erlang |
%CopyrightBegin%
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific lan... | Copyright Ericsson AB 2017 - 2021 . 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(format_status_server).
-behaviour(partisan_gen_server).
-export([start/1]).
-export([init/1, handle_call/3... |
376447236b9f38eea086c8bf9690f1573d1d0ad5160bd80771170c7cfbed2537 | parof/wstat | MonadicBuilder.hs | module Tools.MonadicBuilder (CfgFactoryWithArgs, CfgMethodWithArgs(..), cfgBuilderWithArgs) where
import SyntacticStructure.WhileGrammar
import Tools.StateTransitions
type CfgFactoryWithArgs a b = [CfgMethodWithArgs a b]
data CfgMethodWithArgs a b =
ASSIGN (b -> Stmt -> Label -> Label -> a) |
ASSERT (b -> St... | null | https://raw.githubusercontent.com/parof/wstat/369cf5d1d92ef235049c29ad2f1cc6fd53747754/src/Tools/MonadicBuilder.hs | haskell | module Tools.MonadicBuilder (CfgFactoryWithArgs, CfgMethodWithArgs(..), cfgBuilderWithArgs) where
import SyntacticStructure.WhileGrammar
import Tools.StateTransitions
type CfgFactoryWithArgs a b = [CfgMethodWithArgs a b]
data CfgMethodWithArgs a b =
ASSIGN (b -> Stmt -> Label -> Label -> a) |
ASSERT (b -> St... | |
940a55518779278133c5f75dab495c6119f3a6752903f07da041bb41a292c3a6 | facebook/infer | TextualParser.ml |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... | null | https://raw.githubusercontent.com/facebook/infer/6386e1383f0a95e369f58ff07626f367fcbaad5e/infer/src/textual/TextualParser.ml | ocaml | even if twice_declared_errors is not empty we can continue the other verifications |
* Copyright ( c ) Facebook , Inc. and its affiliates .
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree .
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
... |
fff6300574692fafaa38ff25127b04fc0385db62972a98f679761d0d31558010 | ostera/serde.ml | unimplemented.ml | open Error
open Intf
let deserialize_any :
type value.
'state ->
(module Deserializer_intf with type state = 'state) ->
(module Visitor_intf with type value = value) ->
(value, 'error de_error) result =
fun _ _ _ -> Error.unimplemented "deserialize_any"
let deserialize_bool :
type value.
... | null | https://raw.githubusercontent.com/ostera/serde.ml/61b2ee741b94a54529a0addef1a7c084fe4681fd/serde/de/unimplemented.ml | ocaml | open Error
open Intf
let deserialize_any :
type value.
'state ->
(module Deserializer_intf with type state = 'state) ->
(module Visitor_intf with type value = value) ->
(value, 'error de_error) result =
fun _ _ _ -> Error.unimplemented "deserialize_any"
let deserialize_bool :
type value.
... | |
03c795229121b404ac61cca75a77cbca6b8418649c4882659463521d7ec28ac6 | conreality/conreality | version.mli | (* This is free and unencumbered software released into the public domain. *)
val string : string
val major : int
val minor : int
val patch : int
| null | https://raw.githubusercontent.com/conreality/conreality/e03328ef1f0056b58e4ffe181a279a1dc776e094/src/consensus/version.mli | ocaml | This is free and unencumbered software released into the public domain. |
val string : string
val major : int
val minor : int
val patch : int
|
da2dedcd04cc4ff77cc88ee52976d9a9ed49006afce12a0b5589798d1b333ef2 | timothypratley/leaderboardx | pagerank.cljc | (ns algopop.leaderboardx.graph.pagerank)
(defn normalize-vector
"Returns a proportional vector of sum 1"
[v]
(let [sum (reduce + v)]
(if (zero? sum)
v
(for [x v]
(/ x sum)))))
(defn transpose [g]
(apply map vector g))
(defn normalize-matrix
"Returns a normalized matrix such that eve... | null | https://raw.githubusercontent.com/timothypratley/leaderboardx/ad1719b3bb49fb7ab495ed833f1a451ebb3aec4d/src/algopop/leaderboardx/graph/pagerank.cljc | clojure | some datascript specific translation | (ns algopop.leaderboardx.graph.pagerank)
(defn normalize-vector
"Returns a proportional vector of sum 1"
[v]
(let [sum (reduce + v)]
(if (zero? sum)
v
(for [x v]
(/ x sum)))))
(defn transpose [g]
(apply map vector g))
(defn normalize-matrix
"Returns a normalized matrix such that eve... |
d14be81b26a1c689e595249f9ed029f096cda8024e4b086425ad65bf13f9728f | kivra/merlin | merlin_in_transform.erl | -module(merlin_in_transform).
-include("merlin_quote.hrl").
-include("log.hrl").
-export([
parse_transform/2
]).
parse_transform(Forms, _Options) ->
File = merlin_lib:file(Forms),
merlin:return(merlin:transform(Forms, fun transformer/3, File)).
transformer(enter, ?QQ("_@Needle and merlin_in_transform:'I... | null | https://raw.githubusercontent.com/kivra/merlin/1c3ff256d152d3e49c66e08faf933a3b14f96274/src/merlin_in_transform.erl | erlang | -module(merlin_in_transform).
-include("merlin_quote.hrl").
-include("log.hrl").
-export([
parse_transform/2
]).
parse_transform(Forms, _Options) ->
File = merlin_lib:file(Forms),
merlin:return(merlin:transform(Forms, fun transformer/3, File)).
transformer(enter, ?QQ("_@Needle and merlin_in_transform:'I... | |
b63c3686c65a9904d7e9ff8a9b69a59582f0afd4aa90d4bdfaf2fc0c02d39416 | zalora/aws-ec2 | ConfigureHealthCheck.hs | # LANGUAGE TypeFamilies
, MultiParamTypeClasses
, FlexibleInstances
, OverloadedStrings
, TemplateHaskell
, RecordWildCards
#
, MultiParamTypeClasses
, FlexibleInstances
, OverloadedStrings
, Templa... | null | https://raw.githubusercontent.com/zalora/aws-ec2/60b7ad4464edf3c69da8c2f023db4ba2fa7ffc48/src/Aws/Elb/Commands/ConfigureHealthCheck.hs | haskell | ^ must be less than `hc_interval' | # LANGUAGE TypeFamilies
, MultiParamTypeClasses
, FlexibleInstances
, OverloadedStrings
, TemplateHaskell
, RecordWildCards
#
, MultiParamTypeClasses
, FlexibleInstances
, OverloadedStrings
, Templa... |
3ba4470cd6173c7c36608f564bb68c13d94ae857c1907eef76377f4ceeeb2828 | ComputeSoftware/gcp-api | client.clj | (ns compute.gcp.impl.client
(:require
[clojure.core.async :as async]
[cognitect.anomalies :as anom]
[compute.gcp.impl.request :as request]
[compute.gcp.impl.response :as response]
[compute.gcp.protocols :as proto]
[compute.gcp.retry :as retry]))
(defprotocol ClientSPI
(-get-info [_] "Intend... | null | https://raw.githubusercontent.com/ComputeSoftware/gcp-api/24204927554a3e3b69ef2917f139b53f05def52e/src/compute/gcp/impl/client.clj | clojure | (ns compute.gcp.impl.client
(:require
[clojure.core.async :as async]
[cognitect.anomalies :as anom]
[compute.gcp.impl.request :as request]
[compute.gcp.impl.response :as response]
[compute.gcp.protocols :as proto]
[compute.gcp.retry :as retry]))
(defprotocol ClientSPI
(-get-info [_] "Intend... | |
40333829bdebbc181ad458c01316287c065cfa88ecf2615002f246fbe75b5285 | fakedata-haskell/fakedata | Room.hs | {-# LANGUAGE OverloadedStrings #-}
# LANGUAGE TemplateHaskell #
module Faker.Provider.Room where
import Config
import Control.Monad.Catch
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Monoid ((<>))
import Data.Yaml
import Faker
import Faker.Internal
import Faker.Provider.TH
import Language.Haskell.T... | null | https://raw.githubusercontent.com/fakedata-haskell/fakedata/7b0875067386e9bb844c8b985c901c91a58842ff/src/Faker/Provider/Room.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE TemplateHaskell #
module Faker.Provider.Room where
import Config
import Control.Monad.Catch
import Data.Text (Text)
import Data.Vector (Vector)
import Data.Monoid ((<>))
import Data.Yaml
import Faker
import Faker.Internal
import Faker.Provider.TH
import Language.Haskell.TH
parseRoom :: FromJSON a => Fake... |
0b0a4059d434fd6a2dcc1fea2048f0b13949130e7852811aabbdafd2256d0e71 | opennars/Narjure | concept_manager.clj | (ns narjure.memory-management.concept-manager
(:require
[co.paralleluniverse.pulsar
[core :refer :all]
[actors :refer :all]]
[clojure.java.io :as io]
[narjure.global-atoms :refer [c-bag nars-time nars-id]]
[narjure.memory-management.concept :as c]
[narjure.bag :as b]
[narjure.default... | null | https://raw.githubusercontent.com/opennars/Narjure/cd5a72e6777fc47271d721fef8362aa2dad664ca/src/narjure/memory_management/concept_manager.clj | clojure | actor name
for lense output
for lense output filtering
we also reset concept display here
since concept actor startup is not
a place where it can be done | (ns narjure.memory-management.concept-manager
(:require
[co.paralleluniverse.pulsar
[core :refer :all]
[actors :refer :all]]
[clojure.java.io :as io]
[narjure.global-atoms :refer [c-bag nars-time nars-id]]
[narjure.memory-management.concept :as c]
[narjure.bag :as b]
[narjure.default... |
4b8aa12b385aee7bcde54fba4fd3e7560d611736be5170d8450a8238c9fa0e05 | gebi/jungerl | proc_reg.erl | %%%-------------------------------------------------------------------
%%% File : proc_reg.erl
Author : < etxuwig@wsb221 >
%%% Description :
%%%
Created : 2 Jul 2004 by < etxuwig@wsb221 >
%%%-------------------------------------------------------------------
-module(proc_reg).
-behaviour(gen_server).
-... | null | https://raw.githubusercontent.com/gebi/jungerl/8f5c102295dbe903f47d79fd64714b7de17026ec/lib/proc_reg/src/proc_reg.erl | erlang | -------------------------------------------------------------------
File : proc_reg.erl
Description :
-------------------------------------------------------------------
Safe because of Check
- race condition; pid just died, but proc_reg has not yet
been notified. This is not necessarily an uncommon case, e... | Author : < etxuwig@wsb221 >
Created : 2 Jul 2004 by < etxuwig@wsb221 >
-module(proc_reg).
-behaviour(gen_server).
-export([reg/2,
unreg/1,
where/1,
send/2]).
-export([start_link/0]).
-export([init/1,
handle_call/3,
handle_cast/2,
handle_info/2,
terminate/2,
code_change/3]).
reg(Id, Pid)... |
3ac158f580101b7b7b88f8418b0de3008a39b313cb082086fd480d5cbc5a6149 | shriram/mystery-languages | semantics.rkt | #lang racket
(require [for-syntax syntax/parse] mystery-languages/utils mystery-languages/common)
(require [for-syntax racket])
(require [rename-in racket [begin racket:begin]])
(provide #%module-begin #%top-interaction
#%datum #%top)
(provide + - * /
< <= > >=
= <>
defvar
... | null | https://raw.githubusercontent.com/shriram/mystery-languages/8c8d6065a6e34f484f1a6f509ebb31a5b9ff0cc1/mut-vars/L2/semantics.rkt | racket | NOTE: this would break recursion if defvar were recursive
make up a box for the receiver to mutate | #lang racket
(require [for-syntax syntax/parse] mystery-languages/utils mystery-languages/common)
(require [for-syntax racket])
(require [rename-in racket [begin racket:begin]])
(provide #%module-begin #%top-interaction
#%datum #%top)
(provide + - * /
< <= > >=
= <>
defvar
... |
460601a6e489cdf7b8a7fb3b009c52ece6079bb7d2818925decfd87b59ca1710 | kompendium-ano/factom-haskell-client | DirectoryBlockHeader.hs | # LANGUAGE DeriveGeneric #
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
{-# LANGUAGE TypeOperators #-}
module Factom.RPC.Types.DirectoryBlockHeader where
import Control.Applicative
import C... | null | https://raw.githubusercontent.com/kompendium-ano/factom-haskell-client/87a73bb9079859f6223f8259da0dc9da568d1233/src/Factom/RPC/Types/DirectoryBlockHeader.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE RecordWildCards #
# LANGUAGE TypeOperators #
------------------------------------------------------------------------------ | # LANGUAGE DeriveGeneric #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
module Factom.RPC.Types.DirectoryBlockHeader where
import Control.Applicative
import Control.Monad (forM_, join, mzero)
import Data.Aeson (FromJSON ... |
8e447f5513dfdf708784f1e5cf02c98245aaba1c65fa506ffebb3584123b5d2b | szos/My-Stumpwm-Init | keybindings.lisp | (in-package :stumpwm)
(defmacro define-keymap (keymap-to-exit &body bindings)
"this macro defines a small local keymap based on the bindings variable.
This macro also takes a variable keymap-to-exit. This variable adds in
functionality similar to define-interactive-keymap to exit the map on a keypress.
for example... | null | https://raw.githubusercontent.com/szos/My-Stumpwm-Init/c0acd5a98671f0d95290fbdef0dbac58fd64c494/keybindings.lisp | lisp | (in-package :stumpwm)
(defmacro define-keymap (keymap-to-exit &body bindings)
"this macro defines a small local keymap based on the bindings variable.
This macro also takes a variable keymap-to-exit. This variable adds in
functionality similar to define-interactive-keymap to exit the map on a keypress.
for example... | |
bafd8ee491aba82140b8373a6d5a5a33ca5a4b8dab440e707ff39eb72958efb5 | GaloisInc/semmc | Equivalence.hs | # LANGUAGE FlexibleContexts #
{-# LANGUAGE GADTs #-}
# LANGUAGE KindSignatures #
# LANGUAGE LambdaCase #
# LANGUAGE PolyKinds #
{-# LANGUAGE RankNTypes #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeApplications #
# LANGUAGE UndecidableInstances #
module SemMC.Formula.Equivalence
... | null | https://raw.githubusercontent.com/GaloisInc/semmc/3d9bc90f92a7f7ef59ff4943369dea9c0eb4b3ae/semmc/src/SemMC/Formula/Equivalence.hs | haskell | # LANGUAGE GADTs #
# LANGUAGE RankNTypes #
| The result of an equivalence check.
equisatisfiable).
counterexample to their equivalence.
^ The solver timed out
^ Only check equivalence of memory at these addresses.
predicate. The counterexample values are 'Elt's.
^ This predicate must hold of the resulting equati... | # LANGUAGE FlexibleContexts #
# LANGUAGE KindSignatures #
# LANGUAGE LambdaCase #
# LANGUAGE PolyKinds #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE StandaloneDeriving #
# LANGUAGE TypeApplications #
# LANGUAGE UndecidableInstances #
module SemMC.Formula.Equivalence
( EquivalenceResult(..)
, checkSat
, formulas... |
59990c334f7e3582fcb906a9bbfb3eecbb1d9d94cc3f35b9da85ee17f5ce2773 | mfoemmel/erlang-otp | wxFileDialog.erl | %%
%% %CopyrightBegin%
%%
Copyright Ericsson AB 2008 - 2009 . All Rights Reserved .
%%
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
%% compliance with the License. You should have received a copy of the
%% Erlang Pub... | null | https://raw.githubusercontent.com/mfoemmel/erlang-otp/9c6fdd21e4e6573ca6f567053ff3ac454d742bc2/lib/wx/src/gen/wxFileDialog.erl | erlang |
%CopyrightBegin%
compliance with the License. You should have received a copy of the
Erlang Public License along with this software. If not, it can be
retrieved online at /.
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limita... | Copyright Ericsson AB 2008 - 2009 . All Rights Reserved .
The contents of this file are subject to the Erlang Public License ,
Version 1.1 , ( the " License " ) ; you may not use this file except in
Software distributed under the License is distributed on an " AS IS "
-module(wxFileDialog).
-include("wxe.hrl"... |
b9eb221359bdbde64dbee61d84479d9b8859135efbcacb42c43fa5314b316754 | replomancer/Swordfight | board.clj | (ns swordfight.board
(:require [clojure.set :refer [map-invert]]))
(def initial-board [[\r \n \b \q \k \b \n \r]
[\p \p \p \p \p \p \p \p]
[\. \. \. \. \. \. \. \.]
[\. \. \. \. \. \. \. \.]
[\. \. \. \. \. \. \. \.]
... | null | https://raw.githubusercontent.com/replomancer/Swordfight/4ac956d0c9076792774dd05db3f258a8c713c49c/src/swordfight/board.clj | clojure | ignore promotions, just move | (ns swordfight.board
(:require [clojure.set :refer [map-invert]]))
(def initial-board [[\r \n \b \q \k \b \n \r]
[\p \p \p \p \p \p \p \p]
[\. \. \. \. \. \. \. \.]
[\. \. \. \. \. \. \. \.]
[\. \. \. \. \. \. \. \.]
... |
93986a3d12eb8aabef53809f7a093283654772f9de2e667c95165582407ffc37 | Eonblast/Trinity | hello_SUITE.erl | %%%-------------------------------------------------------------------
%%% File : erlang-arcana/b_hellotest2/test/hello_SUITE.erl
Descr : Complete skeleton of a Common Test test suite
Author :
Source : Erlang docs ' small suite sample '
www.erlang.org/doc/apps/common_test/example_chap... | null | https://raw.githubusercontent.com/Eonblast/Trinity/15bcc0fa0997d7dd360f1542493e63208645bd88/b_hellotest2/test/hello_SUITE.erl | erlang | -------------------------------------------------------------------
File : erlang-arcana/b_hellotest2/test/hello_SUITE.erl
Enhanced : 12/12/2011 hd
Requires : Erlang 14B (prior may not have ct_run)
-------------------------------------------------------------------
---------------------------------------------... | Descr : Complete skeleton of a Common Test test suite
Author :
Source : Erlang docs ' small suite sample '
www.erlang.org/doc/apps/common_test/example_chapter.html
Adapted : 06/13/2011 hd
Run : ( from erlang - arcana / b_hellotest2 )
or : ct_run -dir test ( from erlang - arcana /... |
8dcb1791881dbcba41de1126f6661377eeba387483d0b6e0af10a96770ab28f2 | aharisu/Gauche-CV | unit-extend.scm | (use gauche.cgen.unit)
(select-module gauche.cgen.unit)
(export <cgen-unit-stub> cgen-emit-stub cgen-stub)
(define-class <cgen-unit-stub> (<cgen-unit>)
((stub-file :init-keyword :stub-file :init-value #f)
(stub-preamble :init-keyword :stub-preamble
:init-value '(";; Generated by gauche.cgen $Re... | null | https://raw.githubusercontent.com/aharisu/Gauche-CV/5e4c51501431c72270765121ea4d92693f11d60b/script/unit-extend.scm | scheme | A kludge for emitting cpp-condition only when necessary. | (use gauche.cgen.unit)
(select-module gauche.cgen.unit)
(export <cgen-unit-stub> cgen-emit-stub cgen-stub)
(define-class <cgen-unit-stub> (<cgen-unit>)
((stub-file :init-keyword :stub-file :init-value #f)
(stub-preamble :init-keyword :stub-preamble
:init-value '(";; Generated by gauche.cgen $Re... |
66bba049b88c65c20fcdb96336516c8b8a3cab5e903cb28f10eb18f554f50802 | YoshikuniJujo/test_haskell | Middle.hs | # OPTIONS_GHC -Wall -fno - warn - tabs #
module Gpu.Vulkan.Semaphore.Middle (
-- * Type
S,
-- * Create and Destroy
create, destroy, CreateInfo(..), CreateFlags ) where
import Gpu.Vulkan.Semaphore.Middle.Internal
| null | https://raw.githubusercontent.com/YoshikuniJujo/test_haskell/27ccc38bc7eff9fe68d0aff14fa853826ffc73f6/themes/gui/vulkan/try-vulkan-middle/src/Gpu/Vulkan/Semaphore/Middle.hs | haskell | * Type
* Create and Destroy | # OPTIONS_GHC -Wall -fno - warn - tabs #
module Gpu.Vulkan.Semaphore.Middle (
S,
create, destroy, CreateInfo(..), CreateFlags ) where
import Gpu.Vulkan.Semaphore.Middle.Internal
|
cae79f842504aa5cbaa6767bc342a5cdbe1649bf49b0ad0584d5c443ede4538d | haroldcarr/learn-haskell-coq-ml-etc | TrieSpec.hs | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
{-# LANGUAGE OverloadedStrings #-}
module TrieSpec
(spec)
where
import PPrelude
import Trie
import TrieInternal
import TrieMapDB
import Testing
import Control.Monad
import Control.M... | null | https://raw.githubusercontent.com/haroldcarr/learn-haskell-coq-ml-etc/b4e83ec7c7af730de688b7376497b9f49dc24a0e/haskell/playpen/blockchain/ben-kirwin-merkle/test/TrieSpec.hs | haskell | # LANGUAGE OverloadedStrings # | # LANGUAGE DeriveGeneric #
# LANGUAGE FlexibleInstances #
module TrieSpec
(spec)
where
import PPrelude
import Trie
import TrieInternal
import TrieMapDB
import Testing
import Control.Monad
import Control.Monad.State
import Data.Ae... |
70c50c66b4b16b462cb9693a58fe5c745f3a222aa2d99ca517aa0bb39284d50f | ricardobcl/DottedDB | dotted_db_storage.erl | -module(dotted_db_storage).
-behaviour(gen_server).
-include("dotted_db.hrl").
-include_lib("rkvs/include/rkvs.hrl").
-export([
open/1,
open/2,
open/3,
close/1,
% destroy/1,
get/2,
put/3,
delete/2,
write_batch/... | null | https://raw.githubusercontent.com/ricardobcl/DottedDB/e3b96a9ec77439af90f94a80b875a01732c1425e/src/dotted_db_storage.erl | erlang | destroy/1,
gen_server callbacks
@doc Start the server and open the storage, which by default is an ETS backend.
@doc close a storage
@doc close a storage and remove all the data
-spec destroy(storage()) -> ok | {error, any()}.
destroy(Storage) ->
gen_server:cast(Storage, destroy).
@doc get the value associ... | -module(dotted_db_storage).
-behaviour(gen_server).
-include("dotted_db.hrl").
-include_lib("rkvs/include/rkvs.hrl").
-export([
open/1,
open/2,
open/3,
close/1,
get/2,
put/3,
delete/2,
write_batch/2,
fold/3,
... |
d89140eefa94c61032e9dbedfb28b10e8feb5ccf038898ea272feeae2fbe4b7e | wireless-net/erlang-nommu | xpath_abbrev.erl | %%%-------------------------------------------------------------------
%%% File : xpath_abbrev.erl
Author : < bertil@finrod >
%%% Description :
%%%
Created : 17 Jan 2006 by < bertil@finrod >
%%%-------------------------------------------------------------------
-module(xpath_abbrev).
-export([test/0, che... | null | https://raw.githubusercontent.com/wireless-net/erlang-nommu/79f32f81418e022d8ad8e0e447deaea407289926/lib/xmerl/test/xmerl_SUITE_data/xpath/xpath_abbrev.erl | erlang | -------------------------------------------------------------------
File : xpath_abbrev.erl
Description :
-------------------------------------------------------------------
Element name using regular namespace and context namespace declaration.
Attribute name using regular namespace and context namespace decl... | Author : < bertil@finrod >
Created : 17 Jan 2006 by < bertil@finrod >
-module(xpath_abbrev).
-export([test/0, check_node_set/2, ticket_6873/0, ticket_7496/0, functions/0]).
-export([namespaces/0]).
-include("test_server.hrl").
-include_lib("xmerl/include/xmerl.hrl").
test() ->
?line {E,_} = xmerl_scan:... |
19bc887dc61feac50327aceea4f1df5539c6639fc8aa4fd5a41fa5c33c23e32d | AmpersandTarski/Ampersand | ValidateSQL.hs | module Ampersand.Prototype.ValidateSQL (validateRulesSQL) where
import Ampersand.ADL1
import Ampersand.Basics
import Ampersand.Core.ShowAStruct
import Ampersand.FSpec
import Ampersand.Prototype.PHP
import qualified RIO.List as L
import qualified RIO.NonEmpty as NE
import qualified RIO.Set as Set
Validate the genera... | null | https://raw.githubusercontent.com/AmpersandTarski/Ampersand/8a1c00e3b0aeccd7ea6283b20097a8b73310b138/src/Ampersand/Prototype/ValidateSQL.hs | haskell | functions for extracting all terms from the context
we check the complement of the rule, since that is the term evaluated in the prototype
a ValidationExp is an expression together with the place in the context where we
obtained it from (e.g. rule/interface/..)
validate a single term and report the results
total ... | module Ampersand.Prototype.ValidateSQL (validateRulesSQL) where
import Ampersand.ADL1
import Ampersand.Basics
import Ampersand.Core.ShowAStruct
import Ampersand.FSpec
import Ampersand.Prototype.PHP
import qualified RIO.List as L
import qualified RIO.NonEmpty as NE
import qualified RIO.Set as Set
Validate the genera... |
6378408ba486f3aa28c9ff6075f9d7b710f807bf60b877792e42db153a6fc6ae | lispbuilder/lispbuilder | audio-mixer.lisp |
(in-package #:sdl-examples)
(defun mixer-test ()
(let ((sample nil)
(status ""))
Initialize SDL
(sdl:with-init ()
(sdl:window 400 20 :title-caption "WAV playback" :icon-caption "WAV playback")
(setf (sdl:frame-rate) 30)
(sdl:initialise-default-font)
;; Open the audio device. U... | null | https://raw.githubusercontent.com/lispbuilder/lispbuilder/589b3c6d552bbec4b520f61388117d6c7b3de5ab/lispbuilder-sdl/examples/audio-mixer.lisp | lisp | Open the audio device. Use a smaller buffer size to reduce latency
(sdl:close-audio)
Start playing the audio stream
(aref num 0)))
(defun conv (x)
(if (>= x #x8000)
x))
(lambda (bit integer) (logand integer (lognot (ash -1
bit))))
(- (logand integer (lognot (ash -1 bit))) ...)
for for acro... |
(in-package #:sdl-examples)
(defun mixer-test ()
(let ((sample nil)
(status ""))
Initialize SDL
(sdl:with-init ()
(sdl:window 400 20 :title-caption "WAV playback" :icon-caption "WAV playback")
(setf (sdl:frame-rate) 30)
(sdl:initialise-default-font)
(unless (sdl:open-audio)
... |
da944aeaad726616862b505d1affd1fd4bf02e980470784d44b819089301d157 | jellelicht/guix | abduco.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2015 , 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 as published by
the Free Software Foundation ; either version 3 of t... | null | https://raw.githubusercontent.com/jellelicht/guix/83cfc9414fca3ab57c949e18c1ceb375a179b59c/gnu/packages/abduco.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 , 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 abduco)
#:use-module (guix build-system gnu)
#:use-module (guix download)
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.