_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 |
|---|---|---|---|---|---|---|---|---|
72a50791e69b60b61dd1e2975d35d3ff990274d1cf286a01fa10139cf0ee1141 | nomasystems/njson | njson.erl | Copyright 2022 Nomasystems , S.L.
%%
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% -2.0
%%
%% Unless required by applicable law or agreed to in writing, software
distri... | null | https://raw.githubusercontent.com/nomasystems/njson/7783fbcef3acdf14876ed1e5239a10fa597c5db8/src/njson.erl | erlang |
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
-2.0
Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing perm... | Copyright 2022 Nomasystems , S.L.
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
distributed under the License is distributed on an " AS IS " BASIS ,
-module(njson).
-include("njson.hrl").
-export([decode/1, encode/1, encode/2]).
-export_type([json/0]).
-spec decode(Binary) -> Json whe... |
b213259a83caeedbbce2b0dcb9e63e412874ebbcc2a28a53e4c1d26a13805590 | sile/taomp-sbcl | locked-queue.lisp | (defpackage locked-queue
(:use :common-lisp :util)
(:export make
enq
deq
queue))
(in-package :locked-queue)
(defstruct queue
(lock t :type mutex-lock:lock)
(not-full t :type condition:object)
(not-empty t :type condition:object)
(items #() :type vector)
(tail 0 :type fix... | null | https://raw.githubusercontent.com/sile/taomp-sbcl/6216891346160e613fae3bb73491bc8c8fbad1c4/c8/locked-queue.lisp | lisp | (defpackage locked-queue
(:use :common-lisp :util)
(:export make
enq
deq
queue))
(in-package :locked-queue)
(defstruct queue
(lock t :type mutex-lock:lock)
(not-full t :type condition:object)
(not-empty t :type condition:object)
(items #() :type vector)
(tail 0 :type fix... | |
2a819e498b85a6cf52b2c6a4d93b34ab25f6336349cde5756257df50a30dd2ae | conscell/hugs-android | PackageDescription.hs | # OPTIONS_GHC -cpp #
-----------------------------------------------------------------------------
-- |
-- Module : Distribution.PackageDescription
Copyright : 2003 - 2005
--
Maintainer : < >
-- Stability : alpha
-- Portability : portable
--
-- Package description and parsing.
All rights... | null | https://raw.githubusercontent.com/conscell/hugs-android/31e5861bc1a1dd9931e6b2471a9f45c14e3c6c7e/hugs/lib/hugs/packages/Cabal/Distribution/PackageDescription.hs | haskell | ---------------------------------------------------------------------------
|
Module : Distribution.PackageDescription
Stability : alpha
Portability : portable
Package description and parsing.
* Package descriptions
* Build information
** Supplementary build information
* Utilities
|Fix. Figure o... | # OPTIONS_GHC -cpp #
Copyright : 2003 - 2005
Maintainer : < >
All rights reserved .
Redistribution and use in source and binary forms , with or without
modification , are permitted provided that the following conditions are
met :
* Redistributions of source code must retain the above ... |
05f567371fb75c22ea8954d4ea01e6aee49b27c6db2485a790d3754685effb38 | haskell-tools/haskell-tools | TupleSectionReOrder_res.hs | # LANGUAGE TupleSections #
module Refactor.AutoCorrect.TupleSectionReOrder where
x = (,3) $ "x"
| null | https://raw.githubusercontent.com/haskell-tools/haskell-tools/b1189ab4f63b29bbf1aa14af4557850064931e32/src/builtin-refactorings/examples/Refactor/AutoCorrect/TupleSectionReOrder_res.hs | haskell | # LANGUAGE TupleSections #
module Refactor.AutoCorrect.TupleSectionReOrder where
x = (,3) $ "x"
| |
2d76573db20de9feea69afb4de72a289a28449159bc2fe3c4e894e3440e36938 | jcclinton/wow-emulator | unit_melee.erl | This is a World of Warcraft emulator written in erlang , supporting
client 1.12.x
%%
Copyright ( C ) 2014 < jamieclinton.com >
%%
%% 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 Found... | null | https://raw.githubusercontent.com/jcclinton/wow-emulator/21bc67bfc9eea131c447c67f7f889ba040dcdd79/src/unit_melee.erl | erlang |
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU G... | This is a World of Warcraft emulator written in erlang , supporting
client 1.12.x
Copyright ( C ) 2014 < jamieclinton.com >
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; either version 2 of the License , or
You should have received a copy... |
4c2bc5c854d4004f29def644e99f38858827cdc163d9a969436bae01dbfc1f3a | chris-taylor/Haskeme | Main.hs | module Main where
import System
import System.IO
import System.Info
import System.Console.GetOpt
import Control.Monad.Error
import Language.Compiler
import Language.Types
import Language . Variables
import qualified Language . Core as Core
import Paths_haskeme
-- Main
main :: IO ()
main = do
showWarning
... | null | https://raw.githubusercontent.com/chris-taylor/Haskeme/e9f9fc93c727c6127ac9e1d7e05f105a0fee4a38/src/Compiler/Main.hs | haskell | Main
Read cmd line args and process options
options =
[ Option ['v'] ["version"] (NoArg Version) "show version number" ]
libC <- compileLisp env stdlibFile "run" (Just "exec")
_ <- liftIO $ writeList outH $ map show libC
to do: delete intermediate files if req'd | module Main where
import System
import System.IO
import System.Info
import System.Console.GetOpt
import Control.Monad.Error
import Language.Compiler
import Language.Types
import Language . Variables
import qualified Language . Core as Core
import Paths_haskeme
main :: IO ()
main = do
showWarning
args <... |
92dd1540b019c25dfd1d068d5558bf3d367c82a35872dd502cc0c22b08bd7018 | afiniate/seresye | seresye_app.erl | SERESYE , a Swarm oriented ERlang Expert SYstem Engine
%%%
Copyright ( c ) 2005 - 2010 , ,
Copyright ( c ) 2011 Afiniate , Inc.
%%% All rights reserved.
%%%
You may use this file under the terms of the BSD License . See the
%%% license distributed with this project or
%%% -license.php
-module(seresye_app).... | null | https://raw.githubusercontent.com/afiniate/seresye/a5f484f5f85ad0a24acd7c5969e5a3b8daee2a80/src/seresye_app.erl | erlang |
All rights reserved.
license distributed with this project or
-license.php
Application callbacks
===================================================================
Application callbacks
=================================================================== | SERESYE , a Swarm oriented ERlang Expert SYstem Engine
Copyright ( c ) 2005 - 2010 , ,
Copyright ( c ) 2011 Afiniate , Inc.
You may use this file under the terms of the BSD License . See the
-module(seresye_app).
-behaviour(application).
-export([start/2, stop/1]).
start(_StartType, _StartArgs) ->
... |
0ee355d930b0dc33deaf2ab737caf21a460e13b42a9c61c36a9961f71f9fb624 | flora-pm/flora-server | Update.hs | # LANGUAGE OverloadedLists #
# LANGUAGE QuasiQuotes #
module Flora.Model.Package.Update where
import Control.Monad (unless, void)
import Data.Function ((&))
import Data.List qualified as List
import Data.Vector (Vector)
import Data.Vector qualified as Vector
import Database.PostgreSQL.Entity (Entity (fields), delete,... | null | https://raw.githubusercontent.com/flora-pm/flora-server/cbe5e3c2f5e4e9096c3edb1017828014ed1a5e32/src/core/Flora/Model/Package/Update.hs | haskell | # LANGUAGE OverloadedLists #
# LANGUAGE QuasiQuotes #
module Flora.Model.Package.Update where
import Control.Monad (unless, void)
import Data.Function ((&))
import Data.List qualified as List
import Data.Vector (Vector)
import Data.Vector qualified as Vector
import Database.PostgreSQL.Entity (Entity (fields), delete,... | |
ca02bbe64e825fd2610f103ba044155426046394b1528453783fe86bc4fcda68 | Elzair/nazghul | lost-halls-mech.scm | (kern-mk-map 'm_losthalls_cpassage 21 21 pal_expanded
(list
"rn rn rn rn rn r4 {{ {2 .. .. .. {4 {{ {{ ra rn rn rn rn rn rn "
"rn rn rn rn rn rc {{ {2 .. {8 .. .. {1 bb {{ r2 rn rn rn rn rn "
"rn rn rn rn rn {{ {{ {2 {4 {{ {2 .. .. {4 {{ ra rn rn rn rn rn "
"rn rn rn rn r8 {{ {3 .. .. {1 .. .. .. {4 {{ {{ rn r... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/lost-halls-mech.scm | scheme | map areas replaced by the various blitting ops
parameters to random number generators
critters
critter types, list of lists of (value, critter tag)
group types list of lists of
(randomnumber offset, type index, total value, number)
bats
rats
bats n rats
slime
spiders
goblins
spiders +qs
goblin war
trolls
goblin wa... | (kern-mk-map 'm_losthalls_cpassage 21 21 pal_expanded
(list
"rn rn rn rn rn r4 {{ {2 .. .. .. {4 {{ {{ ra rn rn rn rn rn rn "
"rn rn rn rn rn rc {{ {2 .. {8 .. .. {1 bb {{ r2 rn rn rn rn rn "
"rn rn rn rn rn {{ {{ {2 {4 {{ {2 .. .. {4 {{ ra rn rn rn rn rn "
"rn rn rn rn r8 {{ {3 .. .. {1 .. .. .. {4 {{ {{ rn r... |
9694245d2653aa5d54977b27c6696f615f68fa4e22cfc8aa4a6098e851e42711 | gillchristian/tailwind-purs | PureScript.hs | {-# LANGUAGE OverloadedStrings #-}
module PureScript where
import AvailableClasses
import qualified Data.Bifunctor as BiF
import Data.Char (isNumber)
import qualified Data.Maybe as Maybe
import qualified Data.String.Utils as List
import Data.Text (Text)
import qualified Data.Text as Text
import Text.Casing (camel)
im... | null | https://raw.githubusercontent.com/gillchristian/tailwind-purs/87474189c951320959797b7a77488343de203771/src/PureScript.hs | haskell | # LANGUAGE OverloadedStrings # |
module PureScript where
import AvailableClasses
import qualified Data.Bifunctor as BiF
import Data.Char (isNumber)
import qualified Data.Maybe as Maybe
import qualified Data.String.Utils as List
import Data.Text (Text)
import qualified Data.Text as Text
import Text.Casing (camel)
import Text.Parsec ((<|>))
import qua... |
dc92ade8dea94679130e14dabf0d309bcf0e35f209a3a59031952b842d04c62c | mfoemmel/erlang-otp | ssh_userreg.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/ssh/src/ssh_userreg.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 "
Description : User register for ssh_cli
... |
19a74d00ce681b255f1331d46619d69a33c0bed5ac5b2121d6d3bdd54bb3dfb2 | liqd/thentos | Main.hs | {-# LANGUAGE DataKinds #-}
{-# LANGUAGE OverloadedStrings #-}
# LANGUAGE ScopedTypeVariables #
# LANGUAGE ViewPatterns #
# OPTIONS_GHC -Wall #
module Main (main, runCaptchaBench) where
import Control.Concurrent (threadDelay)
import Database.PostgreSQL.Simple (Connection, query_, fromOnly)
import ... | null | https://raw.githubusercontent.com/liqd/thentos/f7d53d8e9d11956d2cc83efb5f5149876109b098/thentos-tests/bench/Main.hs | haskell | # LANGUAGE DataKinds #
# LANGUAGE OverloadedStrings #
print (resp, respBody)
| Like 'Data.Aeson.decode' but allows all JSON values instead of just
objects and arrays.
(criterion in particular) benchmarking or, preferably, factor it out into a separate package.
specific benchmarks
captchas
| Only wor... | # LANGUAGE ScopedTypeVariables #
# LANGUAGE ViewPatterns #
# OPTIONS_GHC -Wall #
module Main (main, runCaptchaBench) where
import Control.Concurrent (threadDelay)
import Database.PostgreSQL.Simple (Connection, query_, fromOnly)
import Data.Configifier ((>>.))
import Data.Functor.Infix ((<$$>))
import Data.Li... |
6b06e1e1b1a0d5901f88917ec6b07ae18c5afcc7ef3b2b3bd79ee6b5808289e2 | nasa/Common-Metadata-Repository | variable_ingest_test.clj | (ns cmr.system-int-test.ingest.variable-ingest-test
"CMR variable ingest integration tests.
For variable permissions tests, see `provider-ingest-permissions-test`."
(:require
[clojure.test :refer :all]
[cmr.common-app.test.side-api :as side]
[cmr.common.log :as log :refer (debug info warn error)]
[cmr... | null | https://raw.githubusercontent.com/nasa/Common-Metadata-Repository/7a217ca3758f9f7b2d894f31d0e23c42819cc3e0/system-int-test/test/cmr/system_int_test/ingest/variable_ingest_test.clj | clojure | same variable concept associated with a collection on a different provider.
still need token to ingest collection.
XXX write `update-concept-with-new-user-from-user-id`
"user id from user-id header"
{:user-id nil} nil))
Variable with concept-id ingest and update scenarios.
Verify that the accept header works
Ve... | (ns cmr.system-int-test.ingest.variable-ingest-test
"CMR variable ingest integration tests.
For variable permissions tests, see `provider-ingest-permissions-test`."
(:require
[clojure.test :refer :all]
[cmr.common-app.test.side-api :as side]
[cmr.common.log :as log :refer (debug info warn error)]
[cmr... |
9f629b29074b0d5b082ce9293dd3103ed694ab7120077a02366de6a8823d28d8 | rtoy/cmucl | scribe.lisp | ;;; -*- Log: hemlock.log; Package: Hemlock -*-
;;;
;;; **********************************************************************
This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
;;;
(ext:file-comment
"$Header: src/hemlock/scribe.l... | null | https://raw.githubusercontent.com/rtoy/cmucl/9b1abca53598f03a5b39ded4185471a5b8777dea/src/hemlock/scribe.lisp | lisp | -*- Log: hemlock.log; Package: Hemlock -*-
**********************************************************************
**********************************************************************
Variables.
eval-when
Characters that open a Scribe paren: #\[, #\{, #\(, #\<.
Characters that close a Scribe paren: #\],... | This code was written as part of the CMU Common Lisp project at
Carnegie Mellon University , and has been placed in the public domain .
(ext:file-comment
"$Header: src/hemlock/scribe.lisp $")
(in-package "HEMLOCK")
(defvar *scribe-para-break-table* (make-hash-table :test #'equal)
"A table of the Scribe co... |
3e6bec31c16b035a4d117c297854307db8c1d6723e5c456906ddfa7ead3ee77f | shirok/Gauche | test.scm | ;;
;; testing mt-random
;;
(use gauche.test)
(use gauche.collection)
(use scheme.list)
(use srfi.13)
(use gauche.uvector)
(test-start "mt-random")
(test-section "math.mt-random")
(use math.mt-random)
(test-module 'math.mt-random)
(define (value-in-range? range)
(^n (<= 0 n (- range 1))))
(define (make-random-se... | null | https://raw.githubusercontent.com/shirok/Gauche/e606bfe5a94b100d5807bca9c2bb95df94f60aa6/ext/mt-random/test.scm | scheme |
testing mt-random
------------------------------------------------------------------- |
(use gauche.test)
(use gauche.collection)
(use scheme.list)
(use srfi.13)
(use gauche.uvector)
(test-start "mt-random")
(test-section "math.mt-random")
(use math.mt-random)
(test-module 'math.mt-random)
(define (value-in-range? range)
(^n (<= 0 n (- range 1))))
(define (make-random-sequence class size generator... |
2668ec1f2fdeb37366ad952287315d0e07f13835c6a9d538f992a10072ca07b7 | jserot/lascar | main.ml | A clock described as a synchronized product of two automata :
one for the hours , the other for the minutes
one for the hours, the other for the minutes *)
open Utils
open Lascar
module H =
Lts.Make (Builtins.Int) (Builtins.String)
module M = H
let mk_state i = i
let mk_label p i = p ^ string_of_int i
... | null | https://raw.githubusercontent.com/jserot/lascar/79bd11cd0d47545bccfc3a3571f37af065915c83/examples/lts/clock/main.ml | ocaml | A clock described as a synchronized product of two automata :
one for the hours , the other for the minutes
one for the hours, the other for the minutes *)
open Utils
open Lascar
module H =
Lts.Make (Builtins.Int) (Builtins.String)
module M = H
let mk_state i = i
let mk_label p i = p ^ string_of_int i
... | |
8d213b0ada5ec117626d6b644c5bef323ed7cc750c4d2de439e9b7f71b4ea394 | agda/agda | Pattern.hs |
module Agda.Syntax.Internal.Pattern where
import Control.Arrow ( second )
import Control.Monad ( (>=>), forM )
import Control.Monad.State ( MonadState(..), State, evalState )
import Data.Maybe
import Data.Monoid
import qualified Data.List as List
import Agda.Syntax.Common
import Agda.Syntax.Internal
im... | null | https://raw.githubusercontent.com/agda/agda/467a4b9f9a6808ea5aaf3411a55c7bdcaf714d7d/src/full/Agda/Syntax/Internal/Pattern.hs | haskell | * Tools for clauses
| Translate the clause patterns to terms with free variables bound by the
clause telescope.
Precondition: no projection patterns.
| Translate the clause patterns to an elimination spine
with free variables bound by the clause telescope.
| Arity of a function, computed from clauses.
| ... |
module Agda.Syntax.Internal.Pattern where
import Control.Arrow ( second )
import Control.Monad ( (>=>), forM )
import Control.Monad.State ( MonadState(..), State, evalState )
import Data.Maybe
import Data.Monoid
import qualified Data.List as List
import Agda.Syntax.Common
import Agda.Syntax.Internal
im... |
114b726d4a854337f49867d953b7bdf62fe388ef6e382c4b00c58303670cdc68 | airalab/hs-web3 | Parser.hs | {-# LANGUAGE OverloadedStrings #-}
-- |
Module : Network . Polkadot . Metadata . Type .
Copyright : 2016 - 2021
-- License : Apache-2.0
--
-- Maintainer :
-- Stability : experimental
-- Portability : portable
--
-- This module parse and cleanup raw types given from runtime,
-- drop trai... | null | https://raw.githubusercontent.com/airalab/hs-web3/d143bd299852882e11db3fcd46945cc9ee6ab8b7/packages/polkadot/src/Network/Polkadot/Metadata/Type/Parser.hs | haskell | # LANGUAGE OverloadedStrings #
|
License : Apache-2.0
Maintainer :
Stability : experimental
Portability : portable
This module parse and cleanup raw types given from runtime,
drop traits, generics, etc.
| Render Metadata type to text.
This function strongly sanitize type identifiers and paths,
... |
Module : Network . Polkadot . Metadata . Type .
Copyright : 2016 - 2021
module Network.Polkadot.Metadata.Type.Parser
( fromText
, fromTextM
, toText
, sanitize
, sanitizeM
) where
import Control.Monad.Fail (MonadFail)
import Data.Tex... |
a0b4c668b6b1b0921a31e8c5558277e74bda2a04db1ec48f32074b2ac2041428 | UU-ComputerScience/uhc | Type.hs | module Type
( TVarId , TConId ,
MonoType ( TVar , TCon ) , arrow ,
PolyType ( All ) ,
freeTVarMono , freeTVarPoly )
(TVarId, TConId,
MonoType (TVar, TCon), arrow,
PolyType (All),
freeTVarMono, freeTVarPoly)
-}
where
import Parse
import Show... | null | https://raw.githubusercontent.com/UU-ComputerScience/uhc/f2b94a90d26e2093d84044b3832a9a3e3c36b129/EHC/test/benchmark/nofib/real/infer/Type.hs | haskell | 1.3
| The 'nubBy' function behaves just like 'nub', except it uses a
user-supplied equality predicate instead of the overloaded '=='
function.
stolen from HBC
'
'
'
'
'
stolen from HBC
'
'
'
'
'
ToDo: deriving (Eq)
end of too bad | module Type
( TVarId , TConId ,
MonoType ( TVar , TCon ) , arrow ,
PolyType ( All ) ,
freeTVarMono , freeTVarPoly )
(TVarId, TConId,
MonoType (TVar, TCon), arrow,
PolyType (All),
freeTVarMono, freeTVarPoly)
-}
where
import Parse
import Show... |
5c929eb2802c51c9ed4a3c894859bdb07588fc858ddb192a12a32d016d173f1f | racket/racket7 | cmdline.rkt | #lang racket/base
(require racket/cmdline)
(provide build-command-line
m32? win? mac? linux? ppc?
archives-dirs)
(define m32? 'unknown)
(define win? 'unknown)
(define linux? #f)
(define mac? 'unknown)
(define ppc? #f)
(define archives-dirs #f)
(define-syntax-rule (build-command-line c ...)
(let ... | null | https://raw.githubusercontent.com/racket/racket7/5dbb62c6bbec198b4a790f1dc08fef0c45c2e32b/racket/src/native-libs/cmdline.rkt | racket | #lang racket/base
(require racket/cmdline)
(provide build-command-line
m32? win? mac? linux? ppc?
archives-dirs)
(define m32? 'unknown)
(define win? 'unknown)
(define linux? #f)
(define mac? 'unknown)
(define ppc? #f)
(define archives-dirs #f)
(define-syntax-rule (build-command-line c ...)
(let ... | |
5c0f267e1115c5570285b280b5e9c2d479ed475e6f614a5f51ca13a9fb2d01fe | tisnik/clojure-examples | core_test.clj | ;
( C ) Copyright 2015 , 2020
;
; All rights reserved. This program and the accompanying materials
; are made available under the terms of the Eclipse Public License v1.0
; which accompanies this distribution, and is available at
-v10.html
;
; Contributors:
;
(ns seesaw9.core-test
(:require [c... | null | https://raw.githubusercontent.com/tisnik/clojure-examples/984af4a3e20d994b4f4989678ee1330e409fdae3/seesaw9/test/seesaw9/core_test.clj | clojure |
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
Contributors:
| ( C ) Copyright 2015 , 2020
-v10.html
(ns seesaw9.core-test
(:require [clojure.test :refer :all]
[seesaw9.core :refer :all]))
(deftest a-test
(testing "FIXME, I fail."
(is (= 0 1))))
|
d84c0df56ab2bb7f597cdb9c218d007356cacd02382faa0547e7cf01aca343f4 | exoscale/clojure-kubernetes-client | v1beta2_deployment_strategy.clj | (ns clojure-kubernetes-client.specs.v1beta2-deployment-strategy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1beta2-rolling-update-deployment :refer :all]
)
(:import (java.io File)))
(declare v1beta2-deployment-strategy-da... | null | https://raw.githubusercontent.com/exoscale/clojure-kubernetes-client/79d84417f28d048c5ac015c17e3926c73e6ac668/src/clojure_kubernetes_client/specs/v1beta2_deployment_strategy.clj | clojure | (ns clojure-kubernetes-client.specs.v1beta2-deployment-strategy
(:require [clojure.spec.alpha :as s]
[spec-tools.data-spec :as ds]
[clojure-kubernetes-client.specs.v1beta2-rolling-update-deployment :refer :all]
)
(:import (java.io File)))
(declare v1beta2-deployment-strategy-da... | |
0669f2d1e6549420ad75b2026d3442d303a6e51535bf3cad6dc91b9af7d6280a | jyh/metaprl | m_ra_state.mli |
* Lm_printf variables .
*
* ----------------------------------------------------------------
*
* @begin[license ]
* Copyright ( C ) 2002 , Caltech
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... | null | https://raw.githubusercontent.com/jyh/metaprl/51ba0bbbf409ecb7f96f5abbeb91902fdec47a19/theories/experimental/compile/m_ra_state.mli | ocaml |
* Debug liveness analysis.
* Lm_printf the register allocator.
* -*-
* Local Variables:
* Caml-master: "compile"
* End:
* -*-
|
* Lm_printf variables .
*
* ----------------------------------------------------------------
*
* @begin[license ]
* Copyright ( C ) 2002 , Caltech
*
* This program is free software ; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as publish... |
ec2ce8bea5e9ed86f8cae7e7a2fc71723f8ce74aeac6c78695c369ca7a135d85 | binsec/haunted | relse_memory.mli | open Relse_options
type index_t = Rel_expr.rel_bv
type value_t = Rel_expr.rel_bv
type t
val create : store_type:store_type -> t
val init_mem_at : addr:Bitvector.t -> size:int -> t -> unit
* [ address_belongs_to_init addr p ] Check if the address [ addr ]
belongs to the initialized memory locations of the symb... | null | https://raw.githubusercontent.com/binsec/haunted/f670f9a02fabc64e08c9f7b091b4a71d205d89a9/src/relse/relse_memory.mli | ocaml | * [store] If init is true, then the store is performed on a
initialization phase and is not part of the analyzed
program. [current_depth] is the current depth. [retire_depth] is
the depth at which the store should be retired. [size] is the
number of bytes to store.
* [select] is a memory select. [current_de... | open Relse_options
type index_t = Rel_expr.rel_bv
type value_t = Rel_expr.rel_bv
type t
val create : store_type:store_type -> t
val init_mem_at : addr:Bitvector.t -> size:int -> t -> unit
* [ address_belongs_to_init addr p ] Check if the address [ addr ]
belongs to the initialized memory locations of the symb... |
2f6b244026d3e788574ed1bc0c2816a43d39f554b2b3849997172bce21955686 | weblocks-framework/weblocks | string.lisp |
(in-package :weblocks)
(wexport '(humanize-name
attributize-name
string-whitespace-p
string-remove-left
string-remove-right
string-invert-case
remove-spurious-slashes)
'(t util))
(defgeneric humanize-name (name)
(:documentation "Convert obj... | null | https://raw.githubusercontent.com/weblocks-framework/weblocks/fe96152458c8eb54d74751b3201db42dafe1708b/src/utils/string.lisp | lisp | working with those pesky slashes
we just count them and return an appropriate subsequence |
(in-package :weblocks)
(wexport '(humanize-name
attributize-name
string-whitespace-p
string-remove-left
string-remove-right
string-invert-case
remove-spurious-slashes)
'(t util))
(defgeneric humanize-name (name)
(:documentation "Convert obj... |
abe91806a58a997e8f1dd638bc927b80540d13739f1b4d8b461cfa8794f3d333 | argp/bap | cat2.ml | (** Implementation of a cat-like tool: read each file whose name is
given on the command-line and print the contents to stdout.
Usage:
./cat2.byte *.ml
Variants based on function composition
*)
(*
For reference
write_lines : unit output -> string Enum.t -> unit
stdout : unit output
args ... | null | https://raw.githubusercontent.com/argp/bap/2f60a35e822200a1ec50eea3a947a322b45da363/batteries/examples/tools/cat2.ml | ocaml | * Implementation of a cat-like tool: read each file whose name is
given on the command-line and print the contents to stdout.
Usage:
./cat2.byte *.ml
Variants based on function composition
For reference
write_lines : unit output -> string Enum.t -> unit
stdout : unit output
args : unit... |
( * Variant 1
let _ =
write_lines stdout -| concat <| map lines_of (args ())
*)
Variant 2
let _ =
() |> args |> (File.lines_of |> map) |> concat |> (stdout |> IO.write_lines)
|
dfb02d3a9aa061ead3d7646e6b7ebdcd164a78708d033c167e22c283393a57f6 | gelisam/hyzzy | E4.hs | {-# LANGUAGE OverloadedStrings #-}
module Rooms.E4 where
import Hyzzy.Command
look :: Command
look = Command $ do
display "More foliage walls. This place is a maze..."
display ""
display "On the north is the paper-dispensing machine."
north :: Command
north = Command $ goToRoom "D4"
south :: Command
south... | null | https://raw.githubusercontent.com/gelisam/hyzzy/c5c861d5556ed3ca82fbb583d6928fac40d0d8df/games/maze/Rooms/E4.hs | haskell | # LANGUAGE OverloadedStrings #
1 2 3 4 5 6 7
+-+-+ +-+-+-+-+
A| | |
+ +-+-+-+-+-+ +
B| | | |
+ + +-+-+ + +-+
+ + +-+ +-+ + +
D| | | | |
+ + + + + + + +
E| | | *| | |
+ + +-+ + +-+ +
F| | | |
+ +-+-+ +-+-+ +
+-+-+-+-+-+-+-+ | module Rooms.E4 where
import Hyzzy.Command
look :: Command
look = Command $ do
display "More foliage walls. This place is a maze..."
display ""
display "On the north is the paper-dispensing machine."
north :: Command
north = Command $ goToRoom "D4"
south :: Command
south = Command $ goToRoom "F4"
west :... |
c55f5954778423f635613335690f53fcfc4a06729e7f4520ce96eae398a27671 | mirage/charrua | test_client.ml | let cstruct = Alcotest.of_pp Cstruct.hexdump_pp
let msgtype =
let module M = struct
type t = Dhcp_wire.msgtype
let pp fmt m = Format.fprintf fmt "%s" (Dhcp_wire.msgtype_to_string m)
let equal p q = (compare p q) = 0
end in
(module M : Alcotest.TESTABLE with type t = M.t)
module Defaults = struct
l... | null | https://raw.githubusercontent.com/mirage/charrua/35b70ce87ee84df4f2098bbd4cfc81c81e0edf87/test/client/test_client.ml | ocaml | TODO: it would be better to randomize a valid DHCP message; currently
* we're fuzz testing the Dhcp_wire parser's ability to handle random garbage
for now, any positive result is fine
these tests will programmatically put [Dhcp_client.t] into a particular
* state, then throw random input at it the specif... | let cstruct = Alcotest.of_pp Cstruct.hexdump_pp
let msgtype =
let module M = struct
type t = Dhcp_wire.msgtype
let pp fmt m = Format.fprintf fmt "%s" (Dhcp_wire.msgtype_to_string m)
let equal p q = (compare p q) = 0
end in
(module M : Alcotest.TESTABLE with type t = M.t)
module Defaults = struct
l... |
352d87bbdb316b78cee71bf17b7959405e675e0c64c78dd050a60ef5dbbdcecd | AmpersandTarski/Ampersand | Proof.hs | {-# LANGUAGE ConstraintKinds #-}
# LANGUAGE FlexibleContexts #
-- | Generate a proofs output document from a project.
module Ampersand.Commands.Proof
( proof,
ProtoOpts (..),
HasProtoOpts (..),
)
where
import Ampersand.Basics
import Ampersand.FSpec
import Ampersand.Misc.HasClasses
import qualified RIO.Tex... | null | https://raw.githubusercontent.com/AmpersandTarski/Ampersand/cb2306a09ce79d5609ccf8d3e28c0a1eb45feafe/src/Ampersand/Commands/Proof.hs | haskell | # LANGUAGE ConstraintKinds #
| Generate a proofs output document from a project.
| Generate a proofs output document from a project.
theDoc = plain (text "Aap") -- use for testing... | # LANGUAGE FlexibleContexts #
module Ampersand.Commands.Proof
( proof,
ProtoOpts (..),
HasProtoOpts (..),
)
where
import Ampersand.Basics
import Ampersand.FSpec
import Ampersand.Misc.HasClasses
import qualified RIO.Text as T
import System.Directory
import System.FilePath
import Text.Pandoc (def, handleErr... |
9ee400c1b1fb4aa0f6b94bd23c629f81b18c3d90f37f05f858ffd340c9d57083 | jgm/texmath | TeX.hs | # LANGUAGE GeneralizedNewtypeDeriving , ViewPatterns , GADTs , OverloadedStrings #
Copyright ( C ) 2014 < >
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 2 of the Licens... | null | https://raw.githubusercontent.com/jgm/texmath/0f95c7d61a76491d9dce219763323d6f3173df21/src/Text/TeXMath/Writers/TeX.hs | haskell | import Debug.Trace
tr' x = trace (show x) x
packages (amsmath and amssymb)
packages
this clause is meant to pair with delimitedImplicit in the tex reader:
use \operatorname* if convertible
do not render "invisible operators"
shouldn't happen because
double bar
Replace an array with a substack if appropriate.
... | # LANGUAGE GeneralizedNewtypeDeriving , ViewPatterns , GADTs , OverloadedStrings #
Copyright ( C ) 2014 < >
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 2 of the Licens... |
ce36a2c997fa9c6548570e77fe5111a0513d70c09d7065bcd0bd5dfee03506ef | imandra-ai/imandra-ros | std_msgs.ml | open Basic_types;;
type std_bool = {
bool_data : bool ;
}
type header = {
seq : uint32 ;
stamp : time ;
frame_id : string ;
}
type uInt16 = {
uInt16_data : uint16 ;
}
type uInt32 = {
uInt32_data : uint32 ;
}
type std_time = {
time_data : time ;
}
type uInt8 = {
uInt8_data : uint8 ;
}
type... | null | https://raw.githubusercontent.com/imandra-ai/imandra-ros/e1380c267ee319dd4f86c4b54e0b270bc0738796/imandra_model/src-messages/std_msgs.ml | ocaml | open Basic_types;;
type std_bool = {
bool_data : bool ;
}
type header = {
seq : uint32 ;
stamp : time ;
frame_id : string ;
}
type uInt16 = {
uInt16_data : uint16 ;
}
type uInt32 = {
uInt32_data : uint32 ;
}
type std_time = {
time_data : time ;
}
type uInt8 = {
uInt8_data : uint8 ;
}
type... | |
2c1f2a89ade692933e0c2a056faf433271801f565f20200686c21e0a3a37c120 | crategus/cl-cffi-gtk | gtk.array-list-store.lisp | ;;; ----------------------------------------------------------------------------
struct GtkTreeModelIface
;;;
struct GtkTreeModelIface {
;;; GTypeInterface g_iface;
;;;
;;; /* Signals */
;;; void (* row_changed) (GtkTreeModel *tree_model,
;;; GtkTree... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/gtk/gtk.array-list-store.lisp | lisp | ----------------------------------------------------------------------------
GTypeInterface g_iface;
/* Signals */
void (* row_changed) (GtkTreeModel *tree_model,
GtkTreePath *path,
GtkTreeIter *iter);
... | struct GtkTreeModelIface
struct GtkTreeModelIface {
(define-vtable ("GtkTreeModel" gtk-tree-model)
(:skip parent-instance (:pointer (:struct g-type-interface)))
(:skip tree-model-row-changed :pointer)
(:skip tree-model-row-inserted :pointer)
(:skip tree-model-row-has-child-toggled :pointer)
(:skip tree-m... |
455c0abe5be8dc7c7105fc0b09e458d2eb993c14bd4b888693162432ba7cd67a | rogerallen/hello_lwjgl | omega.clj | (ns hello-lwjgl.omega
(:import
(java.nio FloatBuffer IntBuffer)
(java.util List)
(org.lwjgl BufferUtils PointerBuffer)
(org.lwjgl.opencl CL CL10 CLUtil CLContextCallback CLDevice CLPlatform CLProgramCallback)
(org.lwjgl.system Configuration MemoryUtil)
))
Tried to follow this code , but it is app... | null | https://raw.githubusercontent.com/rogerallen/hello_lwjgl/683b3f622a17e613cd792ded918048bd6d2fb87e/src/hello_lwjgl/omega.clj | clojure |
Then found this code
-use-gpu-opencl-for-multithreaded.html
using that...
FIXME?
data & memory buffers
Create our program and kernel
Execute our kernel
I don't get it...
Read the results memory back into our result buffer
Print the result memory
| (ns hello-lwjgl.omega
(:import
(java.nio FloatBuffer IntBuffer)
(java.util List)
(org.lwjgl BufferUtils PointerBuffer)
(org.lwjgl.opencl CL CL10 CLUtil CLContextCallback CLDevice CLPlatform CLProgramCallback)
(org.lwjgl.system Configuration MemoryUtil)
))
Tried to follow this code , but it is app... |
f199053cf5d2868677a28b123ce1e894d847f1bf827b9c79b001b120d7a6ef56 | tarides/opam-monorepo | exec.mli | Copyright ( c ) 2018 Anil Madhavapeddy < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS... | null | https://raw.githubusercontent.com/tarides/opam-monorepo/9262e7f71d749520b7e046fbd90a4732a43866e9/lib/exec.mli | ocaml | * [git_add_and_commit ~repo ~message files] adds [files] to [repo] and commits them with
[message].
* Return whether the given repo is clean, ie return true if there is no uncommitted changes
* [git_checkout ~args ~repo branch] checks out the git repository in [repo] to branch [branch]
with the extra argument... | Copyright ( c ) 2018 Anil Madhavapeddy < >
*
* Permission to use , copy , modify , and distribute this software for any
* purpose with or without fee is hereby granted , provided that the above
* copyright notice and this permission notice appear in all copies .
*
* THE SOFTWARE IS PROVIDED " AS IS... |
7c4da46eed447d78076ed4a015601247e49f8b9e12bf420f384a3da9b2a75eb7 | change-metrics/monocle | Servant.hs | # LANGUAGE AllowAmbiguousTypes #
module Effectful.Servant (runWarpServerSettingsContext, hoistEff) where
import Control.Monad.Except qualified
import Data.Kind (Type)
import Data.Void (Void)
import Effectful
import Effectful.Dispatch.Static qualified
import Effectful.Dispatch.Static.Primitive qualified
import Effectf... | null | https://raw.githubusercontent.com/change-metrics/monocle/55331ae0e26b85f4ebcfb0ad97bcf61a4478563f/src/Effectful/Servant.hs | haskell | # LANGUAGE AllowAmbiguousTypes #
module Effectful.Servant (runWarpServerSettingsContext, hoistEff) where
import Control.Monad.Except qualified
import Data.Kind (Type)
import Data.Void (Void)
import Effectful
import Effectful.Dispatch.Static qualified
import Effectful.Dispatch.Static.Primitive qualified
import Effectf... | |
8211b02efc7f9deb98749cec9fbb0e62e0401df184c5390edb5ffe007ba8122a | shayne-fletcher/zen | mini_c.ml | module C = struct
type ctype =
| Void | Int | Float | Pointer of ctype
type expr =
| Intconst of int (* int constants *)
| Floatconst of int (* float constants *)
| Variable of string (* variable *)
| Apply of expr * expr list (* function call *)
... | null | https://raw.githubusercontent.com/shayne-fletcher/zen/10a1d0b9bf261bb133918dd62fb1593c3d4d21cb/ocaml/mini-c/mini_c.ml | ocaml | int constants
float constants
variable
function call
var = expr
*expr, !expr, etc
expr + expr, etc
expr;
return expr;
{decls; stmts; } | module C = struct
type ctype =
| Void | Int | Float | Pointer of ctype
type expr =
type statement =
if ( cond ) stmt ; else stmt ;
| For of expr * expr * expr * statement
for ( init ; cond ; step ) stmt ;
| Block of (string * ctype) list * statement list
type term =
| Var_decl of ctype
| Fun_d... |
344488f4128fd82298a07a82d3fc26b460ee4dc61f916bb31439f3184da82025 | per1234/batch-smart-resize | batch-smart-resize.scm | ; -smart-resize
(define (script-fu-batch-smart-resize sourcePath destinationPath filenameModifier outputType outputQuality maxWidth maxHeight pad padColor . JPEGDCT)
(define (smart-resize fileCount sourceFiles)
(let*
(
(filename (car sourceFiles))
(image (car (gimp-file-load RUN-NONINTERACTI... | null | https://raw.githubusercontent.com/per1234/batch-smart-resize/af356da20e6cbcb0c25c77c0ae4c5530dbc7ff11/batch-smart-resize.scm | scheme | -smart-resize
crop to mask if one exists
image manipulation
get cropped source image dimensions
don't resize image to larger than original dimensions
scale image to the output dimensions
pad
resize canvas to to maximum dimensions and center the image
add background layer
create background layer
save the current backgr... | (define (script-fu-batch-smart-resize sourcePath destinationPath filenameModifier outputType outputQuality maxWidth maxHeight pad padColor . JPEGDCT)
(define (smart-resize fileCount sourceFiles)
(let*
(
(filename (car sourceFiles))
(image (car (gimp-file-load RUN-NONINTERACTIVE filename file... |
f7bce307034e47b9dfe0764e1b6771886320d823e7eaf6a3b51bb73498d64561 | tek/ribosome | MenuState.hs | module Ribosome.Menu.Class.MenuState where
import Data.Trie (Trie)
import qualified Ribosome.Menu.Class.MenuMode as MenuMode
import Ribosome.Menu.Class.MenuMode (MenuMode)
import Ribosome.Menu.Data.Entry (Entries)
import Ribosome.Menu.Data.MenuItem (Items)
import Ribosome.Menu.Data.State (Core, MenuQuery, Modal)
impo... | null | https://raw.githubusercontent.com/tek/ribosome/97b126617ab7f266c7b10e5900efb07c3a12f22b/packages/menu/lib/Ribosome/Menu/Class/MenuState.hs | haskell | module Ribosome.Menu.Class.MenuState where
import Data.Trie (Trie)
import qualified Ribosome.Menu.Class.MenuMode as MenuMode
import Ribosome.Menu.Class.MenuMode (MenuMode)
import Ribosome.Menu.Data.Entry (Entries)
import Ribosome.Menu.Data.MenuItem (Items)
import Ribosome.Menu.Data.State (Core, MenuQuery, Modal)
impo... | |
56db735a272f4fad9765c382283217357397c6d3941ac7a3d61d6512af130e3b | c-cube/trustee | Cname.ml |
open Sigs
type t = {
name: string;
chash : Chash.t;
}
let make name chash : t = {name; chash}
let name self = self.name
let chash self = self.chash
let chasher ctx self =
Chash.string ctx self.name;
Chash.sub ctx self.chash
let pp_name out self = Fmt.string out self.name
let pp out self = Fmt.fprintf out "... | null | https://raw.githubusercontent.com/c-cube/trustee/397841b8ff813255f5643fef43a7187e81db21f5/src/core/Cname.ml | ocaml |
open Sigs
type t = {
name: string;
chash : Chash.t;
}
let make name chash : t = {name; chash}
let name self = self.name
let chash self = self.chash
let chasher ctx self =
Chash.string ctx self.name;
Chash.sub ctx self.chash
let pp_name out self = Fmt.string out self.name
let pp out self = Fmt.fprintf out "... | |
458f0e54f18069dbb926a495ca661fa9a45974564529e92704c00d9c44a51ada | yi-editor/yi | Main.hs | -- This example requires manual rebuild (as opposed to dynamic ones, automatically rebuilding the
-- config upon changes). This config is useful for distribution of the editor in binary form as such
-- a build have almost all libraries statically linked in.
-- Here's a building example with "stack":
1 . Edit " stack.... | null | https://raw.githubusercontent.com/yi-editor/yi/58c239e3a77cef8f4f77e94677bd6a295f585f5f/example-configs/yi-vim-pango-static/Main.hs | haskell | This example requires manual rebuild (as opposed to dynamic ones, automatically rebuilding the
config upon changes). This config is useful for distribution of the editor in binary form as such
a build have almost all libraries statically linked in.
Here's a building example with "stack":
configured correctly)
... | 1 . Edit " stack.yaml " file so that " location : " would point to the root of the source code
2 . with : " stack install "
3 . with " stack exec " ( or just " yi - vim - pango " if you have $ PATH
( You have to rebuild for this to have effect ) .
import Control.Monad.State.Lazy
import Data.List
imp... |
913cce597118afadde6c27535858d41bef93c75457a0af63f3810fae40eba0ca | jessealama/laramie | info.rkt | #lang info
(define collection "tests")
(define deps '())
(define build-deps '("base"
"rackunit-lib"
"typed-racket-lib"
"laramie-lib"))
(define update-implies '("laramie-lib"))
| null | https://raw.githubusercontent.com/jessealama/laramie/2b21645c87d6ee2690478b04c56ba6dcf6dfcb57/laramie-test/info.rkt | racket | #lang info
(define collection "tests")
(define deps '())
(define build-deps '("base"
"rackunit-lib"
"typed-racket-lib"
"laramie-lib"))
(define update-implies '("laramie-lib"))
| |
4c37eb3200b7aacd22fc3ba8f8358c4e081ba008b0b36211e77d4a56d8c75601 | MLstate/opalang | traverse.ml |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... | null | https://raw.githubusercontent.com/MLstate/opalang/424b369160ce693406cece6ac033d75d85f5df4f/ocamllib/libbase/traverse.ml | ocaml | depends
--
could be simplified using wrap
This internal module generates function find*, find_map* and *exists* from an iteration function
* When an object is found, the execution is stopped (just like if you had raised an exception)
FIRST VERSION
An optimisation ; no idea if it's really worth it
Higher-o... |
Copyright © 2011 MLstate
This file is part of .
is free software : you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License , version 3 , as published by
the Free Software Foundation .
is distributed in the hope that it will be useful , ... |
d3c51d766fa7a44e280c7d8890e8abdc14f4e43dd79aea3c76e58438c9145c8b | bertschneider/clj-geoip | handler.clj | (ns de.bertschneider.clj-geoip.handler
"GeoIP ring handler."
(:require [de.bertschneider.clj-geoip.core :as geoip]))
(defn geoip-handler
"GeoIP ring handler to add location information to the request map."
[handler]
(let [lookup-service (geoip/multi-lookup-service)]
(fn [request]
(let [ip (:remote-... | null | https://raw.githubusercontent.com/bertschneider/clj-geoip/328db65bc0703cfc69e13ea689ab251d9c9af9e3/src/de/bertschneider/clj_geoip/handler.clj | clojure | (ns de.bertschneider.clj-geoip.handler
"GeoIP ring handler."
(:require [de.bertschneider.clj-geoip.core :as geoip]))
(defn geoip-handler
"GeoIP ring handler to add location information to the request map."
[handler]
(let [lookup-service (geoip/multi-lookup-service)]
(fn [request]
(let [ip (:remote-... | |
563e9f310e331c013731d4f448dc09982fb7264b6260d759516f3106e42b0d6d | tallaproject/talla | talla_dir_http.erl | %%%
Copyright ( c ) 2016 The Talla Authors . All rights reserved .
%%% Use of this source code is governed by a BSD-style
%%% license that can be found in the LICENSE file.
%%%
%%% ----------------------------------------------------------------------------
@author < >
%%% @doc HTTP Utilities.
%%% @end
%%% -----... | null | https://raw.githubusercontent.com/tallaproject/talla/72cfbd8f48705a7a390cac2b8310ab7550c21c15/apps/talla_dir/src/talla_dir_http.erl | erlang |
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
----------------------------------------------------------------------------
@doc HTTP Utilities.
@end
----------------------------------------------------------------------------
API. | Copyright ( c ) 2016 The Talla Authors . All rights reserved .
@author < >
-module(talla_dir_http).
-export([authorities_url_path/0]).
-spec authorities_url_path() -> string().
authorities_url_path() ->
Authorities = talla_core_config:authorities(),
IDs = lists:sort(lists:map(fun (V3Identity) ->
... |
bcc9f130f1302beaad9bd90c69f01c4aa9ef8937ca4a934f09b803353c8bf966 | ygmpkk/house | PacketParsing.hs | module Net.PacketParsing(
PacketParser,InPacket,doParse,parseInPacket,( #!),( # ),(<# ),
Parse(..),
bytes,bits,word8,word16,word32,check8,check16,check,lift,therest,trunc,
Unparse(..),OutPacket,doUnparse
) where
import Control.Monad(liftM,MonadPlus(..))
import Net.Packet
import Kernel.Bits
import Monad.Util
... | null | https://raw.githubusercontent.com/ygmpkk/house/1ed0eed82139869e85e3c5532f2b579cf2566fa2/kernel/Net/PacketParsing.hs | haskell | No Unicode!!
Could be more efficient for aligned bytes...
------------------------------------------------------------------------------
!! | module Net.PacketParsing(
PacketParser,InPacket,doParse,parseInPacket,( #!),( # ),(<# ),
Parse(..),
bytes,bits,word8,word16,word32,check8,check16,check,lift,therest,trunc,
Unparse(..),OutPacket,doUnparse
) where
import Control.Monad(liftM,MonadPlus(..))
import Net.Packet
import Kernel.Bits
import Monad.Util
... |
cf1593665395f2a8283758f374d958168b05f407808df04b5fb666657c5da057 | kupl/LearnML | original.ml | let rec _contains (lst : 'a list) value : bool =
match lst with
| [] -> false
| hd :: tl -> if hd = value then true else _contains tl value
let rec uniq (lst : 'c list) : 'b list =
match lst with
| [] -> []
| hd :: tl -> if _contains tl hd then uniq tl else hd :: uniq tl
| null | https://raw.githubusercontent.com/kupl/LearnML/c98ef2b95ef67e657b8158a2c504330e9cfb7700/result/cafe2/uniq/sub31/original.ml | ocaml | let rec _contains (lst : 'a list) value : bool =
match lst with
| [] -> false
| hd :: tl -> if hd = value then true else _contains tl value
let rec uniq (lst : 'c list) : 'b list =
match lst with
| [] -> []
| hd :: tl -> if _contains tl hd then uniq tl else hd :: uniq tl
| |
e8d24c973c17bea347c46c8895cf8ae00d8a2b17d9e507f508e495f9ee6c6d95 | igorhvr/bedlam | scaglob.scm | ;;; "scaglob.scm" syntax-case initializations
Copyright ( C ) 1992
;;;
;;; Permission to copy this software, in whole or in part, to use this
;;; software for any lawful purpose, and to redistribute this software
;;; is granted subject to the restriction that all copies made of this
;;; software must include this ... | null | https://raw.githubusercontent.com/igorhvr/bedlam/b62e0d047105bb0473bdb47c58b23f6ca0f79a4e/iasylum/slib/3b2/scaglob.scm | scheme | "scaglob.scm" syntax-case initializations
Permission to copy this software, in whole or in part, to use this
software for any lawful purpose, and to redistribute this software
is granted subject to the restriction that all copies made of this
software must include this copyright notice in full. This software
IN... | Copyright ( C ) 1992
is provided AS IS , with NO WARRANTY , EITHER EXPRESS OR IMPLIED ,
NATURE WHATSOEVER .
From : < >
92/06/18
(define expand-syntax #f)
(define syntax-dispatch #f)
(define generate-temporaries #f)
(define identifier? #f)
(define syntax-error #f)
(define syntax-object->datu... |
ce39228961610cc2cff4a6653639bf7a18b7b2bf36168db9b730c9148913cbb4 | charlieg/Sparser | delete.lisp | ;;; -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
copyright ( c ) 1990,1991,1992,1993,1994 -- all rights reserved
;;;
;;; File: "delete"
Module : " objects;chart : generics : "
Version : 0.2 August 1994
0.1 ( 1/9/90 v1.7 ) Switched Delete / linguistic - object from using
;; ... | null | https://raw.githubusercontent.com/charlieg/Sparser/b9bb7d01d2e40f783f3214fc104062db3d15e608/Sparser/code/s/objects/chart/generics/delete.lisp | lisp | -*- Mode:LISP; Syntax:Common-Lisp; Package:SPARSER -*-
File: "delete"
the obsolete routine flush/word in favor of the uncataloging
------------------
generic deletion
------------------
----------------------------------------------------------
deleting the elements of rules if no more rules use them
... | copyright ( c ) 1990,1991,1992,1993,1994 -- all rights reserved
Module : " objects;chart : generics : "
Version : 0.2 August 1994
0.1 ( 1/9/90 v1.7 ) Switched Delete / linguistic - object from using
0.2 ( 2/5/91 v1.8 ) In Flush - unsupporte - terms ... put in a hook for
the case o... |
ca3ae69cffa5f90d477e562e0eb8efd79a92b826f34bded3e0d4ac26b548dabf | dparis/cooler | workbench.clj | (ns workbench
(:require [clojure.pprint :refer [pprint]]
[cooler.core :as c]
[cooler.rate-limiter.core :as crl]
[cooler.store.core :as cst]
[cooler.store.redis :as csr]
[eftest.runner :as eft]
[repl]
[schema.core :as s]
[t... | null | https://raw.githubusercontent.com/dparis/cooler/38b2efb3c4efb32d1b3d03c70176f690555f94d1/dev/workbench.clj | clojure | Enable schema validation for all functions while in dev
Functions | (ns workbench
(:require [clojure.pprint :refer [pprint]]
[cooler.core :as c]
[cooler.rate-limiter.core :as crl]
[cooler.store.core :as cst]
[cooler.store.redis :as csr]
[eftest.runner :as eft]
[repl]
[schema.core :as s]
[t... |
fb802459b218b6943304bc36fc12c31389e59578dbe0296549ff3caf311c2284 | chef/chef-server | bifrost_wm_named_resources.erl | -module(bifrost_wm_named_resources).
-include("bifrost_wm_rest_endpoint.hrl").
-include_lib("stats_hero/include/stats_hero.hrl").
-export([delete_resource/2,
to_json/2]).
init(Config) ->
bifrost_wm_base:init(?MODULE, Config).
allowed_methods(Req, State) ->
{['GET', 'DELETE'], Req, State}.
validate... | null | https://raw.githubusercontent.com/chef/chef-server/6d31841ecd73d984d819244add7ad6ebac284323/src/oc_bifrost/apps/bifrost/src/bifrost_wm_named_resources.erl | erlang | maybe move this to bifrost_wm_util? At the moment, however, this is the
only place it's used; there's no other way to directly get group membership | -module(bifrost_wm_named_resources).
-include("bifrost_wm_rest_endpoint.hrl").
-include_lib("stats_hero/include/stats_hero.hrl").
-export([delete_resource/2,
to_json/2]).
init(Config) ->
bifrost_wm_base:init(?MODULE, Config).
allowed_methods(Req, State) ->
{['GET', 'DELETE'], Req, State}.
validate... |
01f161522161bd01be784a20b614d9b41583ba006524ff0b2912c9c742525419 | screenshotbot/screenshotbot-oss | test-nibble.lisp | (defpackage :nibble/test-nibble
(:use #:cl
#:fiveam)
(:import-from #:nibble
#:nibble-url
#:nibble-current-user
#:defnibble
#:nibble-plugin
#:nibble
#:render-nibble)
(:local-nicknames (#:a #:alexandria)))
(in-pa... | null | https://raw.githubusercontent.com/screenshotbot/screenshotbot-oss/e7b5793b5e8d2916d61aecbc0e857c7947934674/src/nibble/test-nibble.lisp | lisp | (defpackage :nibble/test-nibble
(:use #:cl
#:fiveam)
(:import-from #:nibble
#:nibble-url
#:nibble-current-user
#:defnibble
#:nibble-plugin
#:nibble
#:render-nibble)
(:local-nicknames (#:a #:alexandria)))
(in-pa... | |
3478d98b092ce689f9434e7b4bc1a042b1d3e0d1b85d71fca3fe60df874ad781 | ocramz/taco-hs | Internal.hs | module Data.Tensor.Internal
-- (
-- csPtrV
-- -- , compressCOO
-- )
(module TIV)
where
import Control . Monad . Primitive
-- import qualified Data.Vector as V
-- import qualified Data.Dim as D
import qualified Data . Variance as DV
-- import Data.Shape.Types
import Data.Tensor.Internal.Vector as TIV... | null | https://raw.githubusercontent.com/ocramz/taco-hs/19d208e2ddc628835a816568cd32029fb0b85048/src/Data/Tensor/Internal.hs | haskell | (
csPtrV
-- , compressCOO
)
import qualified Data.Vector as V
import qualified Data.Dim as D
import Data.Shape.Types | module Data.Tensor.Internal
(module TIV)
where
import Control . Monad . Primitive
import qualified Data . Variance as DV
import Data.Tensor.Internal.Vector as TIV
|
d67de8204ae04810019c92263a858a935f6618652079d5d160b22b2b2250033d | potapenko/playphraseme-site | model.cljs | (ns playphraseme.model
(:require [re-frame.core :refer [dispatch subscribe reg-event-db reg-sub]]
[playphraseme.common.config :as config]
[playphraseme.common.localstorage :as localstorage])
(:require-macros [re-frame-macros.core :as mcr]))
(mcr/reg-sub-event :layout nil)
(mcr/reg-sub-event... | null | https://raw.githubusercontent.com/potapenko/playphraseme-site/d50a62a6bc8f463e08365dca96b3a6e5dde4fb12/src/cljs/playphraseme/model.cljs | clojure | (ns playphraseme.model
(:require [re-frame.core :refer [dispatch subscribe reg-event-db reg-sub]]
[playphraseme.common.config :as config]
[playphraseme.common.localstorage :as localstorage])
(:require-macros [re-frame-macros.core :as mcr]))
(mcr/reg-sub-event :layout nil)
(mcr/reg-sub-event... | |
f7de77d0f97ee03456900c3c144e0f01a05a6b1cafc6fc0cfe4a38e44233ce65 | eponai/sulolive | state.cljs | (ns sulo-native.state
(:require [om.next :as om]
[re-natal.support :as sup]))
(defonce app-state (atom {:app/msg "Hello Clojure in iOS and Android!"}))
(defmulti read om/dispatch)
(defmethod read :default
[{:keys [state]} k _]
(let [st @state]
(if-let [[_ v] (find s... | null | https://raw.githubusercontent.com/eponai/sulolive/7a70701bbd3df6bbb92682679dcedb53f8822c18/sulo-native/src/sulo_native/state.cljs | clojure | (ns sulo-native.state
(:require [om.next :as om]
[re-natal.support :as sup]))
(defonce app-state (atom {:app/msg "Hello Clojure in iOS and Android!"}))
(defmulti read om/dispatch)
(defmethod read :default
[{:keys [state]} k _]
(let [st @state]
(if-let [[_ v] (find s... | |
fb967f264ddfa02c8451cf22c2db98f79eece3fa906ed9fb1f082bba1b710331 | xclerc/ocamljava | javatoploop.ml |
* This file is part of compiler .
* Copyright ( C ) 2007 - 2015 .
* Original file ( toplevel / opttoploop.ml in the OCaml source
* distribution ) is Copyright ( C ) INRIA .
*
* compiler is free software ; you can redistribute it and/or modify
* it under the terms of the Q Public License as ... | null | https://raw.githubusercontent.com/xclerc/ocamljava/8330bfdfd01d0c348f2ba2f0f23d8f5a8f6015b1/compiler/toplevel/javatoploop.ml | ocaml | The interactive toplevel loop
to avoid warning, as value are not created by OCaml code
Return the value referred to by a path
To print values
Hooks for parsing functions
Hooks for initialization
Load in-core and execute a lambda term
note: under windows, cannot remove a loaded dll
(should remember t... |
* This file is part of compiler .
* Copyright ( C ) 2007 - 2015 .
* Original file ( toplevel / opttoploop.ml in the OCaml source
* distribution ) is Copyright ( C ) INRIA .
*
* compiler is free software ; you can redistribute it and/or modify
* it under the terms of the Q Public License as ... |
a0b3d1503655cf04dff03601fb8ceb49305f5979a784deb055b5334f9078c4c6 | askvortsov1/hardcaml-mips | test_cpu_uart.ml | open Hardcaml
open Hardcaml_waveterm
open Mips.Cpu
module Simulator = Cyclesim.With_interface (I) (O)
let waves program run =
let scope = Scope.create ~flatten_design:true () in
let sim = Simulator.create (circuit_impl program scope) in
let waves, sim = Waveform.create sim in
let inputs = Cyclesim.inputs sim i... | null | https://raw.githubusercontent.com/askvortsov1/hardcaml-mips/a02b93327780093ddaf01ef6681dd38e77899ed6/test/test_cpu_uart.ml | ocaml | (0) lui $s0 0xFFFF
(8) addi $s1 $zero 0x0030
Transmit first "word"
"\n"
Wait for word to be transmitted back
Transmit second word
"a"
"r"
"t"
Wait for word to be transmitted back, conclude program | open Hardcaml
open Hardcaml_waveterm
open Mips.Cpu
module Simulator = Cyclesim.With_interface (I) (O)
let waves program run =
let scope = Scope.create ~flatten_design:true () in
let sim = Simulator.create (circuit_impl program scope) in
let waves, sim = Waveform.create sim in
let inputs = Cyclesim.inputs sim i... |
c78c1d35a664b74e17b197f30db86c94f9ac78fc5f9ac02655695c32f8034f38 | evrim/core-server | protocol.lisp | Core Server : Web Application Server
Copyright ( C ) 2006 - 2008 , Aycan iRiCAN
;; 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 opti... | null | https://raw.githubusercontent.com/evrim/core-server/200ea8151d2f8d81b593d605b183a9cddae1e82d/src/protocol.lisp | lisp | This program is free software: you can redistribute it and/or modify
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public L... | Core Server : Web Application Server
Copyright ( C ) 2006 - 2008 , Aycan iRiCAN
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
(in-package :tr.g... |
58ff83856805829d9346956d087c85e6f4e22278ee938a766587bba615c369f2 | jakemcc/sicp-study | ex2_42.clj | (use 'clojure.test)
(defn accumulate [op initial sq] (if (empty? sq)
initial
(op (first sq)
(accumulate op initial (rest sq)))))
(defn flatmap [proc sq]
(accumulate concat nil (map proc sq)))
(defn enumerate-interval [low high]
(loop [cur high
res nil]
(if (< cur low)
... | null | https://raw.githubusercontent.com/jakemcc/sicp-study/3b9e3d6c8cc30ad92b0d9bbcbbbfe36a8413f89d/clojure/section2.2/ex2_42.clj | clojure | (use 'clojure.test)
(defn accumulate [op initial sq] (if (empty? sq)
initial
(op (first sq)
(accumulate op initial (rest sq)))))
(defn flatmap [proc sq]
(accumulate concat nil (map proc sq)))
(defn enumerate-interval [low high]
(loop [cur high
res nil]
(if (< cur low)
... | |
a0a6c2d0cd3e6e4d072e7f1863740a74c76f36b07cb87eb0f27ef6b662024dc4 | yesodweb/wai | ReadInt.hs | {-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE BangPatterns #-}
Copyright : < >
-- License : BSD3
module Network.Wai.Handler.Warp.ReadInt (
readInt
, readInt64
) where
import qualified Data.ByteString as S
import Network.Wai.Handler.Warp.Imports hiding (readInt)
# INLINE readInt #
readIn... | null | https://raw.githubusercontent.com/yesodweb/wai/e79e2461737af653c9070d33057bae80f77d7211/warp/Network/Wai/Handler/Warp/ReadInt.hs | haskell | # LANGUAGE OverloadedStrings #
# LANGUAGE BangPatterns #
License : BSD3
This function is used to parse the Content-Length field of HTTP headers and
is a performance hot spot. It should only be replaced with something
significantly and provably faster.
Int and Integer. |
Copyright : < >
module Network.Wai.Handler.Warp.ReadInt (
readInt
, readInt64
) where
import qualified Data.ByteString as S
import Network.Wai.Handler.Warp.Imports hiding (readInt)
# INLINE readInt #
readInt :: Integral a => ByteString -> a
readInt bs = fromIntegral $ readInt64 bs
It needs t... |
e335227826ffa9c56d0e5c42bc99ac9b273c9043179c89e72e32ee2e61fecb49 | SnootyMonkey/Falkland-CMS | category_delete.clj | (ns fcms.unit.resources.taxonomy.category-delete) | null | https://raw.githubusercontent.com/SnootyMonkey/Falkland-CMS/bd653c23dd458609b652dfac3f0f2f11526f00d1/test/fcms/unit/resources/taxonomy/category_delete.clj | clojure | (ns fcms.unit.resources.taxonomy.category-delete) | |
e78dc16cb14311a250a48e7984ed67b5828a4faf03baff01d303a92b9ba40762 | georgjz/raylib-gambit-scheme | transform.scm | ;;;-----------------------------------------------------------------------------
This file is the interface to the struct Transform in raylib .
;;;-----------------------------------------------------------------------------
(c-declare #<<c-declare-end
#include "raylib.h"
Transform MakeTransform( Vector3 translati... | null | https://raw.githubusercontent.com/georgjz/raylib-gambit-scheme/df7ea6db54a3196d13c66dac4909c64cea6e5a88/src/raylibbinding/structs/transform.scm | scheme | -----------------------------------------------------------------------------
-----------------------------------------------------------------------------
/* return allocation error */
}
}
| This file is the interface to the struct Transform in raylib .
(c-declare #<<c-declare-end
#include "raylib.h"
Transform MakeTransform( Vector3 translation, Quaternion rotation, Vector3 scale )
{
}
___SCMOBJ SCMOBJ_to_TRANSFORM( ___PSD ___SCMOBJ src, Transform *dst, int arg_num )
{
if ( !___PAIRP( src ) )
els... |
0bc5884e969adda5e182a147882760cc3ccbdd8136ee0aa9d43e5b17f9292fd0 | tsloughter/kuberl | kuberl_v1beta1_token_review_status.erl | -module(kuberl_v1beta1_token_review_status).
-export([encode/1]).
-export_type([kuberl_v1beta1_token_review_status/0]).
-type kuberl_v1beta1_token_review_status() ::
#{ 'audiences' => list(),
'authenticated' => boolean(),
'error' => binary(),
'user' => kuberl_v1beta1_user_info:kuberl_v1beta1... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1beta1_token_review_status.erl | erlang | -module(kuberl_v1beta1_token_review_status).
-export([encode/1]).
-export_type([kuberl_v1beta1_token_review_status/0]).
-type kuberl_v1beta1_token_review_status() ::
#{ 'audiences' => list(),
'authenticated' => boolean(),
'error' => binary(),
'user' => kuberl_v1beta1_user_info:kuberl_v1beta1... | |
343a2770d051fbef0d99df756a3dd28c0cc977eb69004736089c4be580c60f15 | ghollisjr/cl-ana | lfields.lisp | (require 'cl-ana)
(in-package :cl-ana)
(defproject lfields
"/home/ghollisjr/test/makeres-table/lfields/"
(list #'macrotrans #'tabletrans)
(fixed-cache 5))
(setf *print-progress* 10)
(defres (bootstrap src)
(with-open-hdf-file (file (work-path "src.h5")
:direction :output
... | null | https://raw.githubusercontent.com/ghollisjr/cl-ana/5cb4c0b0c9c4957452ad2a769d6ff9e8d5df0b10/makeres-table/tests/lfields.lisp | lisp | (require 'cl-ana)
(in-package :cl-ana)
(defproject lfields
"/home/ghollisjr/test/makeres-table/lfields/"
(list #'macrotrans #'tabletrans)
(fixed-cache 5))
(setf *print-progress* 10)
(defres (bootstrap src)
(with-open-hdf-file (file (work-path "src.h5")
:direction :output
... | |
934dbd9538029c2c73b838044f403e5758ce9bccfb7e372d03815b2a41052965 | contivero/hasmin | Position.hs | {-# LANGUAGE OverloadedStrings #-}
-----------------------------------------------------------------------------
-- |
Module : Hasmin . . Position
Copyright : ( c ) 2017
-- License : BSD3
-- Stability : experimental
-- Portability : unknown
--
Parsers for CSS \<position > values .
--
----------... | null | https://raw.githubusercontent.com/contivero/hasmin/2a7604159b51e69c5e9c564dce53cb3ab09ae22b/src/Hasmin/Parser/Position.hs | haskell | # LANGUAGE OverloadedStrings #
---------------------------------------------------------------------------
|
License : BSD3
Stability : experimental
Portability : unknown
---------------------------------------------------------------------------
| Parser for <-values-3/#position \<position\>>.
Used for t... | Module : Hasmin . . Position
Copyright : ( c ) 2017
Parsers for CSS \<position > values .
module Hasmin.Parser.Position where
import Control.Applicative ((<|>), optional)
import Data.Functor (($>))
import Data.Attoparsec.Text (Parser)
import qualified Data.Attoparsec.Text as A
import qualified Data.... |
e15e962986fe97aabe746b9512debc355e4d33fce6214c30da0317265a91d072 | ArulselvanMadhavan/haskell-first-principles | Listy.hs | module Listy where
newtype Listy a =
Listy [a]
deriving (Eq, Show)
| null | https://raw.githubusercontent.com/ArulselvanMadhavan/haskell-first-principles/06e0c71c502848c8e75c8109dd49c0954d815bba/orphan-instance/Listy.hs | haskell | module Listy where
newtype Listy a =
Listy [a]
deriving (Eq, Show)
| |
a1d25583491420b6ff6d9aa0289e493185d9e404de527d6107f191acae46c5c1 | hexlet-codebattle/battle_asserts | word_positions.clj | (ns battle-asserts.issues.word-positions
(:require [clojure.string :as s]
[clojure.test.check.generators :as gen]
[faker.generate :as faker]))
(def level :easy)
(def tags ["strings" "collections"])
(def description
{:en "Given a sentence and a word, find all the positions in which the wor... | null | https://raw.githubusercontent.com/hexlet-codebattle/battle_asserts/b9794efd779b96e7b1e8fb8ec4aa777d5a056831/src/battle_asserts/issues/word_positions.clj | clojure | (ns battle-asserts.issues.word-positions
(:require [clojure.string :as s]
[clojure.test.check.generators :as gen]
[faker.generate :as faker]))
(def level :easy)
(def tags ["strings" "collections"])
(def description
{:en "Given a sentence and a word, find all the positions in which the wor... | |
e315e144db276143e87a59862e9a6f443d5e0a0bfa7bfc96b3f1184a2e7b8863 | let-def/ocaml-recovery-parser | location.ml | type t = {
loc_start: Lexing.position;
loc_end: Lexing.position;
loc_ghost: bool;
}
let none =
let pos = { Lexing.dummy_pos with Lexing.pos_fname = "_none_" } in
{ loc_start = pos; loc_end = pos; loc_ghost = false }
type 'a loc = {
txt : 'a;
loc : t;
}
let mkloc txt loc = { txt; loc }
let mknoloc txt =... | null | https://raw.githubusercontent.com/let-def/ocaml-recovery-parser/87a87a25c9436f2e3187b82ec59a5f75c0e2446b/lib/location.ml | ocaml | type t = {
loc_start: Lexing.position;
loc_end: Lexing.position;
loc_ghost: bool;
}
let none =
let pos = { Lexing.dummy_pos with Lexing.pos_fname = "_none_" } in
{ loc_start = pos; loc_end = pos; loc_ghost = false }
type 'a loc = {
txt : 'a;
loc : t;
}
let mkloc txt loc = { txt; loc }
let mknoloc txt =... | |
7c564b5b6bf024a6681bcfb52d21789ea5d26a71a6feda50a1f395b3f3b45af4 | gedge-platform/gedge-platform | rabbit_mgmt_wm_topic_permissions_vhost.erl | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
%%
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
%%
-module(rabbit_mgmt_wm_topic_permissions_vhost).
... | null | https://raw.githubusercontent.com/gedge-platform/gedge-platform/97c1e87faf28ba2942a77196b6be0a952bff1c3e/gs-broker/broker-server/deps/rabbitmq_management/src/rabbit_mgmt_wm_topic_permissions_vhost.erl | erlang |
-------------------------------------------------------------------- | This Source Code Form is subject to the terms of the Mozilla Public
License , v. 2.0 . If a copy of the MPL was not distributed with this
file , You can obtain one at /.
Copyright ( c ) 2007 - 2021 VMware , Inc. or its affiliates . All rights reserved .
-module(rabbit_mgmt_wm_topic_permissions_vhost).
-expo... |
29d5fc02fdf69d72cf8b7fc8c3f50cba3a1ccb5fc861c5e419b362e574f9dd9c | Elzair/nazghul | moongate-clearing.scm | (kern-load "gregor.scm")
;;-----------------------------------------------------------------------------
;; Make some chests containing items to get the player started.
These will be placed on the map in the shrine room in the SW .
;;-----------------------------------------------------------------------------
(def... | null | https://raw.githubusercontent.com/Elzair/nazghul/8f3a45ed6289cd9f469c4ff618d39366f2fbc1d8/worlds/haxima-1.002/moongate-clearing.scm | scheme | -----------------------------------------------------------------------------
Make some chests containing items to get the player started.
-----------------------------------------------------------------------------
trap
Gold
Reagents
Items
Arms
Hints/instructions
----------------------------------------------... | (kern-load "gregor.scm")
These will be placed on the map in the shrine room in the SW .
(define supplies_chest
(mk-chest
'(
Food
(10 t_food)
(10 t_gold_coins)
(10 sulphorous_ash)
(10 ginseng)
(10 garlic)
(10 spider_silk)
(6 blood_moss)
(6 black_pearl)
(3 nightshade)... |
4568e8e7389bc853c54a0d1284e420f4b9f2f87c9d0cf9d2e919f1f2caf98b5e | ragkousism/Guix-on-Hurd | tor.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2013 , 2014 , 2015 < >
Copyright © 2014 , 2015 < >
Copyright © 2016 < >
Copyright © 2016 , 2017 ng0 < >
Copyright © 2017 < >
;;;
;;; This file is part of GNU Guix.
;;;
GNU is free software ; you can redistribute it and/or mo... | null | https://raw.githubusercontent.com/ragkousism/Guix-on-Hurd/e951bb2c0c4961dc6ac2bda8f331b9c4cee0da95/gnu/packages/tor.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 © 2013 , 2014 , 2015 < >
Copyright © 2014 , 2015 < >
Copyright © 2016 < >
Copyright © 2016 , 2017 ng0 < >
Copyright © 2017 < >
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 . ... |
7a2faa439d4923d0a474cf355fe7e965cd037c8bec3ed17c60aa787fd73149c4 | trptcolin/tictactoe-clojure | main.clj | (ns tictactoe.console
(:use [tictactoe.console :only [console-play]]))
(console-play) | null | https://raw.githubusercontent.com/trptcolin/tictactoe-clojure/758fbfaad5bf1075bb8a71fe852848467ea5b142/main.clj | clojure | (ns tictactoe.console
(:use [tictactoe.console :only [console-play]]))
(console-play) | |
205f6fc525ac4236edc769c3be1e3d010a33f6062f6f0e43edfadda2a867f1a9 | jkk/formative | core.cljc | (ns formative.core
(:require [formative.render :as r]
formative.render.table
formative.render.div
formative.render.bootstrap
formative.render.bootstrap3
formative.render.inline
[formative.util :as fu]
[clojure.walk :refer [stringify-k... | null | https://raw.githubusercontent.com/jkk/formative/e1b69161c05438a48d3186bd2eb5126377ffe2e3/src/formative/core.cljc | clojure | must be longer in this case
Field values
Emulate HTTP methods
CSRF protection
Attach :cancel-href to submit button
Add submit if not already present
Problems
true by default.
see below for format
see below for format
see below for format
false to use
defaults to a space
by | (ns formative.core
(:require [formative.render :as r]
formative.render.table
formative.render.div
formative.render.bootstrap
formative.render.bootstrap3
formative.render.inline
[formative.util :as fu]
[clojure.walk :refer [stringify-k... |
2886dab5e1ff9791150cb4f9ce9c0cee190393ff9330b765ef9f5474345976ce | tsloughter/kuberl | kuberl_v1_persistent_volume_claim_volume_source.erl | -module(kuberl_v1_persistent_volume_claim_volume_source).
-export([encode/1]).
-export_type([kuberl_v1_persistent_volume_claim_volume_source/0]).
-type kuberl_v1_persistent_volume_claim_volume_source() ::
#{ 'claimName' := binary(),
'readOnly' => boolean()
}.
encode(#{ 'claimName' := ClaimName,
... | null | https://raw.githubusercontent.com/tsloughter/kuberl/f02ae6680d6ea5db6e8b6c7acbee8c4f9df482e2/gen/kuberl_v1_persistent_volume_claim_volume_source.erl | erlang | -module(kuberl_v1_persistent_volume_claim_volume_source).
-export([encode/1]).
-export_type([kuberl_v1_persistent_volume_claim_volume_source/0]).
-type kuberl_v1_persistent_volume_claim_volume_source() ::
#{ 'claimName' := binary(),
'readOnly' => boolean()
}.
encode(#{ 'claimName' := ClaimName,
... | |
01e38c33f6540245dfe29bb51822936b06d8ac812d13bde039b15631fd18cda0 | triffon/fp-2021-22 | class.06.rkt | #lang racket
(define (atom? x)
(not (list? x)))
(define (list? x)
(or (null? x)
(and (pair? x)
(list? (cdr x)))))
(define (atom?2 x)
(and (not (null? x))
(not (pair? x))))
;(define (add . l)
; (foldr + 0 l))
(define (add2 x . l)
(if (null? l)
x
(+ x (apply add2 l))))
( ... | null | https://raw.githubusercontent.com/triffon/fp-2021-22/fd534461df12a9a6af72b644ba4211474b33fff3/exercises/6/06-data-structures/class.06.rkt | racket | (define (add . l)
(foldr + 0 l))
абстракция за матрица
(define (transpose m)
)
задачи
(get-first-row example-matrix1)
(error "матрицата е изчерпана"))
(null? tree))
(define (leaf? tree)
(and (not (empty-tree? tree))
(empty-tree? (left-tree tree))
(empty-tree? (right-tree tree))))
(cons (root-tree... | #lang racket
(define (atom? x)
(not (list? x)))
(define (list? x)
(or (null? x)
(and (pair? x)
(list? (cdr x)))))
(define (atom?2 x)
(and (not (null? x))
(not (pair? x))))
(define (add2 x . l)
(if (null? l)
x
(+ x (apply add2 l))))
( ( lambda x ( + 2 x ) ) 10 6 5 4 ' osh... |
475ae2b490764a660667a2371d0131c30cbcf6164a9e0804394f14812c297dd7 | CodyReichert/qi | package.lisp | (defpackage :archive
(:use :cl #+(and lispworks (not win32)) :sys)
(:export ;; types
#:archive #:tar-archive #:odc-cpio-archive #:svr4-cpio-archive
;; creating
#:open-archive #:close-archive
;; conditions
#:archive-error
#:tar-error
#:in... | null | https://raw.githubusercontent.com/CodyReichert/qi/9cf6d31f40e19f4a7f60891ef7c8c0381ccac66f/dependencies/archive-latest/package.lisp | lisp | types
creating
conditions
entry slot readers
entry tests
reading archives
writing archives
convenience macros
external support | (defpackage :archive
(:use :cl #+(and lispworks (not win32)) :sys)
#:archive #:tar-archive #:odc-cpio-archive #:svr4-cpio-archive
#:open-archive #:close-archive
#:archive-error
#:tar-error
#:invalid-tar-checksum-error #:unhandled-error
#:unhandled-re... |
503d88d3df74d4dcf46474df4a6339802e93803973a013db001b4d64463332c6 | fulcro-legacy/fulcro3 | indexing.cljc | (ns com.fulcrologic.fulcro.algorithms.indexing
"Functions that implement the query and component indexing."
(:require
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.do-not-use :as util]
[com.fulcrologic.fulcro.algorithms.denormalize :as fdn]
[ghostwheel.core :as gw :... | null | https://raw.githubusercontent.com/fulcro-legacy/fulcro3/5d1b9ab274406afd68b792192d5a783f29963314/src/main/com/fulcrologic/fulcro/algorithms/indexing.cljc | clojure | (ns com.fulcrologic.fulcro.algorithms.indexing
"Functions that implement the query and component indexing."
(:require
[com.fulcrologic.fulcro.components :as comp]
[com.fulcrologic.fulcro.algorithms.do-not-use :as util]
[com.fulcrologic.fulcro.algorithms.denormalize :as fdn]
[ghostwheel.core :as gw :... | |
3a91553e97b31649dda50b3b9abcbf5df4415587f8aacf09d2c52e9a6d5ecfea | dancrossnyc/multics | supdup.ctl.lisp | ;;; ***********************************************************
;;; * *
* Copyright , ( C ) Honeywell Information Systems Inc. , 1982 *
;;; * *
* Copyright ( c ) 1978 by Massachusetts Institute of ... | null | https://raw.githubusercontent.com/dancrossnyc/multics/dc291689edf955c660e57236da694630e2217151/library_dir_dir/system_library_unbundled/source/bound_emacs_ctls_.s.archive/supdup.ctl.lisp | lisp | ***********************************************************
* *
* *
* *
***********************************************************
-*-LISP-*-
... | * Copyright , ( C ) Honeywell Information Systems Inc. , 1982 *
* Copyright ( c ) 1978 by Massachusetts Institute of *
* Technology and Honeywell Information Systems , Inc. *
From PYZCTL .
From old aitvctl , from dm2500ctl .
Define the old % TD codes .
(declare (eval (read)))
(do x (r... |
65f97783730cb34c59a13df058baa89bb3430b12a47bdfb0bc3e28de261f7887 | facebookarchive/duckling_old | duration.clj | ; Durations / Periods
(
"second (unit-of-duration)"
#"(?i)sek(unde)?n?"
{:dim :unit-of-duration
:grain :second}
"minute (unit-of-duration)"
#"(?i)min(ute)?n?"
{:dim :unit-of-duration
:grain :minute}
"hour (unit-of-duration)"
#"(?i)stunden?"
{:dim :unit-of-duration
:grain :hour}
"day (un... | null | https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/de/rules/duration.clj | clojure | Durations / Periods
duration can't be negative...
would need to add fields at some point
but allowing a space creates many false positive
duration can't be negative...
duration can't be negative...
about
sharp |
(
"second (unit-of-duration)"
#"(?i)sek(unde)?n?"
{:dim :unit-of-duration
:grain :second}
"minute (unit-of-duration)"
#"(?i)min(ute)?n?"
{:dim :unit-of-duration
:grain :minute}
"hour (unit-of-duration)"
#"(?i)stunden?"
{:dim :unit-of-duration
:grain :hour}
"day (unit-of-duration)"
#"(... |
cdc6b6bd591fc235ea63992875830be57b1c2b9756742b8996962edc18b3989f | clash-lang/ghc-typelits-knownnat | KnownNat.hs | |
Copyright : ( C ) 2016 , University of Twente ,
2017 - 2018 , QBayLogic B.V. ,
2017 , Google Inc.
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Some \"magic\ " classes and instances to get the " GHC.TypeLits . KnownNat . Solver "
t... | null | https://raw.githubusercontent.com/clash-lang/ghc-typelits-knownnat/1bc4ee33e005e96d1f7785c715588a289707cd48/src-ghc-9.4/GHC/TypeLits/KnownNat.hs | haskell | # LANGUAGE CPP #
# LANGUAGE DataKinds #
# LANGUAGE MagicHash #
# LANGUAGE ScopedTypeVariables #
# LANGUAGE TemplateHaskell #
# LANGUAGE TypeOperators #
# LANGUAGE BangPatterns #
# OPTIONS_GHC -Wno-unused-top-binds -fexpose-all-unfoldings #
# OPTIONS_HADDOCK show... | |
Copyright : ( C ) 2016 , University of Twente ,
2017 - 2018 , QBayLogic B.V. ,
2017 , Google Inc.
License : BSD2 ( see the file LICENSE )
Maintainer : < >
Some \"magic\ " classes and instances to get the " GHC.TypeLits . KnownNat . Solver "
t... |
e6b9bf2fdcb967f9bfe279ad82229c53cb07080d8241eb581aac67ecf10fcba1 | amnh/poy5 | sadmanOutput.ml | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2014 , , , Ward Wheeler ,
and the American Museum of Natural History .
(* *)
(* This program is free softwa... | null | https://raw.githubusercontent.com/amnh/poy5/da563a2339d3fa9c0110ae86cc35fad576f728ab/src/sadmanOutput.ml | ocaml |
This program is free software; you can redistribute it and/or modify
(at your option) any later version.
This progra... | POY 5.1.1 . A phylogenetic analysis program using Dynamic Homologies .
Copyright ( C ) 2014 , , , Ward Wheeler ,
and the American Museum of Natural History .
it under the terms of the GNU General Public License as published by
the Free Software Foundation ; ... |
c9b169df091b12eab6a024f6da8e1d7374ea6a519ee7fae1530cf770aa686478 | swisscom-bigdata/metabase-teradata-driver | deduplicate.clj | (ns metabase.driver.sql.util.deduplicate
"Utility function for de-duplication as used by Oracle and Teradata drivers. Extracted from Oracle driver"
(:require [clojure.string :as str]))
(defn- increment-identifier-suffix
"Add an appropriate suffix to a keyword IDENTIFIER to make it distinct from previous usages o... | null | https://raw.githubusercontent.com/swisscom-bigdata/metabase-teradata-driver/80cada1a416f74c29f8817d8d07b14d5d821bc3c/src/metabase/driver/sql/util/deduplicate.clj | clojure | -> :my_col_2
-> :my_col_3"
if identifier already has an alias like col_2 then increment it to col_3
otherwise if it's something like :table.col replace with [:table.col :col]
otherwise we can actually deduplicate things
if not more cols are left to deduplicate, we're done
otherwise if we haven't seen it record i... | (ns metabase.driver.sql.util.deduplicate
"Utility function for de-duplication as used by Oracle and Teradata drivers. Extracted from Oracle driver"
(:require [clojure.string :as str]))
(defn- increment-identifier-suffix
"Add an appropriate suffix to a keyword IDENTIFIER to make it distinct from previous usages o... |
df3ca8dc245d2ef72d51f98fb86fc1b7c1aaf10f78ee94c1301038070f977406 | crategus/cl-cffi-gtk | event-handler.lisp | ;;;; Example Event Handler
;;;;
;;;; In this example an event handler ist installed. The event handler
;;;; prints the event on the terminal and passes the event to the
;;;; GTK+ event handler.
(in-package #:gtk-example)
(defun my-event-handler (event)
(format t "~&in MY-EVENT-HANDLER~%")
(format t "~a~%" event)
... | null | https://raw.githubusercontent.com/crategus/cl-cffi-gtk/22156e3e2356f71a67231d9868abcab3582356f3/demo/gtk-example/event-handler.lisp | lisp | Example Event Handler
In this example an event handler ist installed. The event handler
prints the event on the terminal and passes the event to the
GTK+ event handler.
Pass the event to the GTK+ event handler
Install the new event handler
Show the window.
Install gtk-main-do-event as the event handler |
(in-package #:gtk-example)
(defun my-event-handler (event)
(format t "~&in MY-EVENT-HANDLER~%")
(format t "~a~%" event)
(gtk-main-do-event event))
(defun example-event-handler ()
(within-main-loop
(let ((window (make-instance 'gtk-window
:title "Example Event Handler"
... |
d9ffed411902246367180f32bc89c21074d4fa11764fd730066a1c1b960cec64 | facebookarchive/duckling_old | duration.clj | ; Durations / Periods
(
"second (unit-of-duration)"
#"(?i)sec(onde)?n?"
{:dim :unit-of-duration
:grain :second}
"minute (unit-of-duration)"
#"(?i)min|minuut|minuten"
{:dim :unit-of-duration
:grain :minute}
"hour (unit-of-duration)"
#"(?i)uur"
{:dim :unit-of-duration
:grain :hour}
"day (... | null | https://raw.githubusercontent.com/facebookarchive/duckling_old/bf5bb9758c36313b56e136a28ba401696eeff10b/resources/languages/nl/rules/duration.clj | clojure | Durations / Periods
duration can't be negative...
would need to add fields at some point
but allowing a space creates many false positive
duration can't be negative...
duration can't be negative...
about
sharp |
(
"second (unit-of-duration)"
#"(?i)sec(onde)?n?"
{:dim :unit-of-duration
:grain :second}
"minute (unit-of-duration)"
#"(?i)min|minuut|minuten"
{:dim :unit-of-duration
:grain :minute}
"hour (unit-of-duration)"
#"(?i)uur"
{:dim :unit-of-duration
:grain :hour}
"day (unit-of-duration)"
#... |
1026955538a5c0016bd65f5ee2c1a94d4af58c0dd05e4e8eea02bd8a1199ec42 | LexiFi/menhir | Compatibility.mli | (******************************************************************************)
(* *)
(* *)
... | null | https://raw.githubusercontent.com/LexiFi/menhir/794e64e7997d4d3f91d36dd49aaecc942ea858b7/src/Compatibility.mli | ocaml | ****************************************************************************
file LICEN... |
, Paris
, PPS , Université Paris Diderot
. All rights reserved . This file is distributed under the
terms of the GNU General Public License version 2 , as... |
05f150fc9f408662f4e1b846aeaad719a409aa96aed2ea0f2b6cf5255742038b | ngless-toolkit/ngless | Parallel.hs | Copyright 2016 - 2022 NGLess Authors
- License : MIT
- License: MIT
-}
# LANGUAGE FlexibleContexts , CPP #
module StandardModules.Parallel
( loadModule
, pasteCounts
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Lazy ... | null | https://raw.githubusercontent.com/ngless-toolkit/ngless/f8e933e47581290965bd37894021738915bfd228/NGLess/StandardModules/Parallel.hs | haskell | Beware that addition of characters here can lead to lock collisions
as is "project/sample" clashes with "project_sample" but ... uncommon case
| Remove '/' and '\' from filenames
Keep a map of 'sane -> original' names used for locks to backtrace
what file was locked and return the unsanitized name
See also -toolk... | Copyright 2016 - 2022 NGLess Authors
- License : MIT
- License: MIT
-}
# LANGUAGE FlexibleContexts , CPP #
module StandardModules.Parallel
( loadModule
, pasteCounts
) where
import qualified Data.ByteString as B
import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Lazy ... |
443b20337f2d01ab67f550ab61431c296aaf7da3ef22ba2722e51c3ce707043a | tmfg/mmtis-national-access-point | kalkati_to_gtfs_test.clj | (ns ote.gtfs.kalkati-to-gtfs-test
(:require [ote.gtfs.kalkati-to-gtfs :as sut]
[clojure.test :as t :refer [deftest is testing]]
[clojure.java.io :as io]
[ote.util.zip :as zip-file]
[ote.gtfs.parse :as gtfs-parse]
[ote.gtfs.spec :as gtfs-spec]))
(defn- kalka... | null | https://raw.githubusercontent.com/tmfg/mmtis-national-access-point/a86cc890ffa1fe4f773083be5d2556e87a93d975/ote/test/clj/ote/gtfs/kalkati_to_gtfs_test.clj | clojure | A trivial smoke test to check basic functionality | (ns ote.gtfs.kalkati-to-gtfs-test
(:require [ote.gtfs.kalkati-to-gtfs :as sut]
[clojure.test :as t :refer [deftest is testing]]
[clojure.java.io :as io]
[ote.util.zip :as zip-file]
[ote.gtfs.parse :as gtfs-parse]
[ote.gtfs.spec :as gtfs-spec]))
(defn- kalka... |
9b5d221c3f87c018ffb5423415e22197bdb06bf81768c89322fc750012c5fd96 | PrecursorApp/precursor | overlay.cljs | (ns ^:figwheel-always frontend.components.overlay
(:require [cemerick.url :as url]
[cljs.core.async :as async :refer (<!)]
[clojure.set :as set]
[clojure.string :as str]
[datascript.core :as d]
[frontend.analytics :as analytics]
[frontend.async :... | null | https://raw.githubusercontent.com/PrecursorApp/precursor/30202e40365f6883c4767e423d6299f0d13dc528/src-cljs/frontend/components/overlay.cljs | clojure | focus-id lets us trigger a focus from outside of the component
send cursor to end of input
Select the text if it doesn't have a title, otherwise put cursor at end of input.
TODO: better way to check if state changed
TODO: should this use the permissions model? Would have to send some
info about the document... | (ns ^:figwheel-always frontend.components.overlay
(:require [cemerick.url :as url]
[cljs.core.async :as async :refer (<!)]
[clojure.set :as set]
[clojure.string :as str]
[datascript.core :as d]
[frontend.analytics :as analytics]
[frontend.async :... |
0975694e0574d00d7b6e3bb22cb323d79e117743d2e37155ffbfab2395d203a1 | bcc32/advent-of-code | a.ml | open! Core
let () =
let lines =
In_channel.with_file
(Sys.get_argv ()).(1)
~f:(fun file ->
In_channel.input_lines file
|> List.map ~f:(fun line ->
let word = String.split line ~on:' ' |> List.hd_exn in
( word
, match String.split line ~on:'>' with
... | null | https://raw.githubusercontent.com/bcc32/advent-of-code/653c0f130e2fb2f599d4e76804e02af54c9bb19f/2017/07/a.ml | ocaml | open! Core
let () =
let lines =
In_channel.with_file
(Sys.get_argv ()).(1)
~f:(fun file ->
In_channel.input_lines file
|> List.map ~f:(fun line ->
let word = String.split line ~on:' ' |> List.hd_exn in
( word
, match String.split line ~on:'>' with
... | |
430e8d0f9da0e719389cad7dffa37cff3853fd85e9f35dd6f40ad37f2984a386 | artyom-poptsov/guile-smc | state.scm | state.scm -- An FSM state .
Copyright ( C ) 2021 < >
;;
;; 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.
;;
... | null | https://raw.githubusercontent.com/artyom-poptsov/guile-smc/70c2ca196e160df31ee5e6e161d56ef8f771e627/modules/smc/core/state.scm | scheme |
This program is free software: you can redistribute it and/or modify
(at your option) any later version.
The program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public ... | state.scm -- An FSM state .
Copyright ( C ) 2021 < >
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
An abstract FSM state implementation .
... |
8f417310e4b7d4d00a3397ec8151efc2d88c6f98875759e1f055a9d2ab1f4698 | kind2-mc/kind2 | certifChecker.ml | This file is part of the Kind 2 model checker .
Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa
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 a... | null | https://raw.githubusercontent.com/kind2-mc/kind2/92b6acd6de4c79095ebbedae447c44d2b5411632/src/certif/certifChecker.ml | ocaml | ***********************************************
Hard coded options for certificate generation
***********************************************
**************************
Global hconsed constants
**************************
*******************
Utility functions
*******************
Hashtable from activation literal ... | This file is part of the Kind 2 model checker .
Copyright ( c ) 2014 by the Board of Trustees of the University of Iowa
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 a... |
deac4e9625ffda6c88077e86c4680a0e10222d4c974fb1f0a4cdf8c9963beaaa | c4-project/c4f | accessor.ml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | null | https://raw.githubusercontent.com/c4-project/c4f/8939477732861789abc807c8c1532a302b2848a5/lib/utils/src/accessor.ml | ocaml | This file is part of c4f .
Copyright ( c ) 2018 - 2022 C4 Project
c4 t itself is licensed under the MIT License . See the LICENSE file in the
project root for more information .
Parts of c4 t are based on code from the Herdtools7 project
( ) : see the LICENSE.herd file in the
project... | |
4af4c438acd96428a29e2d0fa3373d063199772f44d76fc8614b5b4a5055751f | input-output-hk/plutus | Common.hs | -- editorconfig-checker-disable-file
# LANGUAGE TypeApplications #
module PlutusIR.Generators.QuickCheck.Common where
import PlutusCore.Generators.QuickCheck.Common
import PlutusCore.Generators.QuickCheck.Substitutions
import PlutusCore.Generators.QuickCheck.Unification
import PlutusCore.Default
import PlutusCore.Na... | null | https://raw.githubusercontent.com/input-output-hk/plutus/febabc4e20f7b57b9ceda576f2b1268966712ff6/plutus-core/testlib/PlutusIR/Generators/QuickCheck/Common.hs | haskell | editorconfig-checker-disable-file
| Compute the datatype declarations that escape from a term.
| Try to infer the type of an expression in a given type and term context.
NOTE: one can't just use out-of-the-box type inference here because the
`inferType` algorithm happy renames things.
CODE REVIEW: this algorithm ... | # LANGUAGE TypeApplications #
module PlutusIR.Generators.QuickCheck.Common where
import PlutusCore.Generators.QuickCheck.Common
import PlutusCore.Generators.QuickCheck.Substitutions
import PlutusCore.Generators.QuickCheck.Unification
import PlutusCore.Default
import PlutusCore.Name
import PlutusCore.Quote (runQuoteT... |
5d12a2a87a59839d09f5122421c0aaf4bfd249b64d82d9fa1fb8a1960a8d8d61 | antono/guix-debian | bdw-gc.scm | ;;; GNU Guix --- Functional package management for GNU
Copyright © 2012 , 2013 , 2014 < >
;;;
;;; 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... | null | https://raw.githubusercontent.com/antono/guix-debian/85ef443788f0788a62010a942973d4f7714d10b4/gnu/packages/bdw-gc.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 © 2012 , 2013 , 2014 < >
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 bdw-gc)
#:use-module (guix licenses)
#:use-module (guix packages)
... |
8e2c3c5f6d5956931e1f27456192b93f4fb3c4fc4edb2dc1f01d5c93c08cab8b | oscoin/oscoin | Crypto.hs | # LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Oscoin.Test.Crypto
( IsCrypto
, Dict(..)
, Hashable
, HasHashing
, upperBoundBytes
) where
import Oscoin.Prelude
import Oscoin.Crypto
import Oscoin.Crypto.Address
import Oscoi... | null | https://raw.githubusercontent.com/oscoin/oscoin/2eb5652c9999dd0f30c70b3ba6b638156c74cdb1/test/Oscoin/Test/Crypto.hs | haskell | Ad-hoc instances for testing purposes
Sums the `Word64` together.
| A typeclass for estimating the serialised size in bytes of certain
data structures.
| The maximum (estimated) size in bytes.
| Kitchen-sink for all the constraints our cryptography must abide to.
DummySeal ~ Text
DummySeal ~ Text | # LANGUAGE UndecidableInstances #
# OPTIONS_GHC -fno - warn - orphans #
module Oscoin.Test.Crypto
( IsCrypto
, Dict(..)
, Hashable
, HasHashing
, upperBoundBytes
) where
import Oscoin.Prelude
import Oscoin.Crypto
import Oscoin.Crypto.Address
import Oscoi... |
144a459bd7393247122d3df6a7d5040d01763035b8bb303f83091e15a390c8e5 | static-analysis-engineering/codehawk | jCHParseCode.mli | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... | null | https://raw.githubusercontent.com/static-analysis-engineering/codehawk/98ced4d5e6d7989575092df232759afc2cb851f6/CodeHawk/CHJ/jchlib/jCHParseCode.mli | ocaml | jchlib | = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
CodeHawk Java Analyzer
Author : ------------------------------------------------------------------------------
The MIT License ( MIT )
Copy... |
d81b4d3b6ebd84526fe663ef2403d21946f1f1c813274d5f54ac344001e5b49c | clojure/clojure-api-doc | collect.clj | (use 'autodoc-collect.collect-info)
(collect-info-to-file
Clojure repo directory
"../../repo/"
Relative path in repo to Clojure source
"src/clj"
;; Analyze these namespaces
"clojure.core:clojure.core.protocols:clojure.core.reducers:clojure.core.server:clojure.data:clojure.datafy:clojure.edn:clojure.insp... | null | https://raw.githubusercontent.com/clojure/clojure-api-doc/14fe4b4d4ce3b3f7c470fee9d0f2ff52bc28618c/config/master/collect.clj | clojure | Analyze these namespaces
Skip these namespaces
Trim prefix - don't set
Output analysis data file
Branch name | (use 'autodoc-collect.collect-info)
(collect-info-to-file
Clojure repo directory
"../../repo/"
Relative path in repo to Clojure source
"src/clj"
"clojure.core:clojure.core.protocols:clojure.core.reducers:clojure.core.server:clojure.data:clojure.datafy:clojure.edn:clojure.inspector:clojure.instant:clojure.j... |
7768a5647e111fc270deffeb5d6c4a662a1033f80a7fda718743005f73e36505 | facebookarchive/pfff | matching_php.ml |
*
* Copyright ( C ) 2010 - 2012 Facebook
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file... | null | https://raw.githubusercontent.com/facebookarchive/pfff/ec21095ab7d445559576513a63314e794378c367/lang_php/matcher/matching_php.ml | ocaml | ***************************************************************************
Prelude
***************************************************************************
***************************************************************************
Wrappers
***********************************************************************... |
*
* Copyright ( C ) 2010 - 2012 Facebook
*
* This library is free software ; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as published by the Free Software Foundation , with the
* special exception on linking described in file... |
7e328f94ae94fc089bc23cd3c6733df685142d435580e6331ee180e7c1c2fc79 | lipas-liikuntapaikat/lipas | projection.cljs | (ns lipas.ui.map.projection
" Loading this namespace causes side-effects to global OpenLayers
object (js/ol)."
(:require
["proj4" :as proj4]
["ol/proj/proj4" :refer [register]]
["ol/proj" :as proj]
["ol/extent" :as extent]))
(def epsg3067-extent #js[-548576.0 6291456.0 1548576.0 8388608.0])
(def eps... | null | https://raw.githubusercontent.com/lipas-liikuntapaikat/lipas/779934b723ec1e0cf52d6a7778b0b7e9f5d15c6b/webapp/src/cljs/lipas/ui/map/projection.cljs | clojure | (ns lipas.ui.map.projection
" Loading this namespace causes side-effects to global OpenLayers
object (js/ol)."
(:require
["proj4" :as proj4]
["ol/proj/proj4" :refer [register]]
["ol/proj" :as proj]
["ol/extent" :as extent]))
(def epsg3067-extent #js[-548576.0 6291456.0 1548576.0 8388608.0])
(def eps... | |
f86162f150d6559de8fd0fa276c4f5c0288c523aaa11609d13d239063432eed6 | dyzsr/ocaml-selectml | outcometree.mli | (**************************************************************************)
(* *)
(* OCaml *)
(* *)
, ... | null | https://raw.githubusercontent.com/dyzsr/ocaml-selectml/875544110abb3350e9fb5ec9bbadffa332c270d2/typing/outcometree.mli | ocaml | ************************************************************************
OCaml
... | , projet Cristal , INRIA Rocquencourt
Copyright 2001 Institut National de Recherche en Informatique et
the GNU Lesser General Public License version 2.1 , with the
These types represent messages that the toplevel displays as normal
results or errors . The real display... |
a2090af0b3fc3fa5a34ee016373eb5d883b107645a410314ddb91db0eb9bb60e | abcdw/clj-deps-make | core.clj | (ns app.server.core)
(defn -main []
(println "hello"))
| null | https://raw.githubusercontent.com/abcdw/clj-deps-make/9647c3ef41fd294df42cbed5771762e553c64e4e/src/clj/app/server/core.clj | clojure | (ns app.server.core)
(defn -main []
(println "hello"))
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.