Search is not available for this dataset
repo_name string | path string | license string | full_code string | full_size int64 | uncommented_code string | uncommented_size int64 | function_only_code string | function_only_size int64 | is_commented bool | is_signatured bool | n_ast_errors int64 | ast_max_depth int64 | n_whitespaces int64 | n_ast_nodes int64 | n_ast_terminals int64 | n_ast_nonterminals int64 | loc int64 | cycloplexity int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ekarayel/HTF | Test/Framework/TestReporter.hs | lgpl-2.1 | reportTestResultHP :: ReportTestResult
reportTestResultHP ftr =
do reportHumanTestStartMessage Debug ftr
reportTestResultHS ftr
-- results and all tests | 164 | reportTestResultHP :: ReportTestResult
reportTestResultHP ftr =
do reportHumanTestStartMessage Debug ftr
reportTestResultHS ftr
-- results and all tests | 164 | reportTestResultHP ftr =
do reportHumanTestStartMessage Debug ftr
reportTestResultHS ftr
-- results and all tests | 125 | false | true | 0 | 7 | 28 | 29 | 13 | 16 | null | null |
ekmett/ghc | compiler/utils/IOEnv.hs | bsd-3-clause | -- | Atomically update the reference. Does not force the evaluation of the
-- new variable contents. For strict update, use 'atomicUpdMutVar''.
atomicUpdMutVar :: IORef a -> (a -> (a, b)) -> IOEnv env b
atomicUpdMutVar var upd = liftIO (atomicModifyIORef var upd) | 265 | atomicUpdMutVar :: IORef a -> (a -> (a, b)) -> IOEnv env b
atomicUpdMutVar var upd = liftIO (atomicModifyIORef var upd) | 119 | atomicUpdMutVar var upd = liftIO (atomicModifyIORef var upd) | 60 | true | true | 0 | 10 | 44 | 62 | 31 | 31 | null | null |
snoyberg/ghc | compiler/codeGen/StgCmmPrim.hs | bsd-3-clause | vecElemProjectCast dflags WordVec W16 = Just (mo_u_16ToWord dflags) | 69 | vecElemProjectCast dflags WordVec W16 = Just (mo_u_16ToWord dflags) | 69 | vecElemProjectCast dflags WordVec W16 = Just (mo_u_16ToWord dflags) | 69 | false | false | 0 | 7 | 9 | 22 | 10 | 12 | null | null |
DougBurke/swish | tests/GraphPartitionTest.hs | lgpl-2.1 | pp3r = PartitionedGraph [ ps2r, ps1, pb3r ] | 44 | pp3r = PartitionedGraph [ ps2r, ps1, pb3r ] | 44 | pp3r = PartitionedGraph [ ps2r, ps1, pb3r ] | 44 | false | false | 1 | 6 | 8 | 21 | 10 | 11 | null | null |
alexbiehl/hoop | hadoop-protos/src/Hadoop/Protos/ApplicationClientProtocol/ApplicationClientProtocolService.hs | mit | getClusterMetrics :: GetClusterMetrics
getClusterMetrics = P'.Method | 68 | getClusterMetrics :: GetClusterMetrics
getClusterMetrics = P'.Method | 68 | getClusterMetrics = P'.Method | 29 | false | true | 0 | 5 | 5 | 13 | 7 | 6 | null | null |
brendanhay/gogol | gogol-sqladmin/gen/Network/Google/SQLAdmin/Types/Product.hs | mpl-2.0 | -- | The full project ID of the source instance.
rbcProject :: Lens' RestoreBackupContext (Maybe Text)
rbcProject
= lens _rbcProject (\ s a -> s{_rbcProject = a}) | 164 | rbcProject :: Lens' RestoreBackupContext (Maybe Text)
rbcProject
= lens _rbcProject (\ s a -> s{_rbcProject = a}) | 115 | rbcProject
= lens _rbcProject (\ s a -> s{_rbcProject = a}) | 61 | true | true | 1 | 9 | 28 | 50 | 25 | 25 | null | null |
ssaavedra/liquidhaskell | benchmarks/unordered-containers-0.2.1.0/Data/HashMap/Base.hs | bsd-3-clause | -- | Create a 'BitmapIndexed' or 'Full' node.
bitmapIndexedOrFull :: Bitmap -> A.Array (HashMap k v) -> HashMap k v
bitmapIndexedOrFull b ary
| b == fullNodeMask = Full ary
| otherwise = BitmapIndexed b ary | 222 | bitmapIndexedOrFull :: Bitmap -> A.Array (HashMap k v) -> HashMap k v
bitmapIndexedOrFull b ary
| b == fullNodeMask = Full ary
| otherwise = BitmapIndexed b ary | 176 | bitmapIndexedOrFull b ary
| b == fullNodeMask = Full ary
| otherwise = BitmapIndexed b ary | 106 | true | true | 1 | 9 | 51 | 68 | 32 | 36 | null | null |
Newlifer/libstep | src/Data/EXPRESS/Parsers.hs | mit | -- supertype_factor { ANDOR supertype_factor } .
pSupertypeExpression :: Parser SupertypeExpression
pSupertypeExpression = undefined | 132 | pSupertypeExpression :: Parser SupertypeExpression
pSupertypeExpression = undefined | 83 | pSupertypeExpression = undefined | 32 | true | true | 0 | 5 | 13 | 15 | 8 | 7 | null | null |
bacchanalia/KitchenSink | KitchenSink/Qualified.hs | gpl-3.0 | -- |'TE.decodeUtf8'
t_decodeUtf8 = TE.decodeUtf8 | 48 | t_decodeUtf8 = TE.decodeUtf8 | 28 | t_decodeUtf8 = TE.decodeUtf8 | 28 | true | false | 0 | 5 | 4 | 9 | 5 | 4 | null | null |
carlohamalainen/ghc-mod | Language/Haskell/GhcMod/Info.hs | bsd-3-clause | listifySpans :: Typeable a => TypecheckedSource -> (Int, Int) -> [Located a]
listifySpans tcs lc = listifyStaged TypeChecker p tcs
where
p (L spn _) = G.isGoodSrcSpan spn && spn `G.spans` lc | 196 | listifySpans :: Typeable a => TypecheckedSource -> (Int, Int) -> [Located a]
listifySpans tcs lc = listifyStaged TypeChecker p tcs
where
p (L spn _) = G.isGoodSrcSpan spn && spn `G.spans` lc | 196 | listifySpans tcs lc = listifyStaged TypeChecker p tcs
where
p (L spn _) = G.isGoodSrcSpan spn && spn `G.spans` lc | 119 | false | true | 0 | 9 | 37 | 86 | 43 | 43 | null | null |
fmthoma/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | pure_RDR = nameRdrName pureAName | 47 | pure_RDR = nameRdrName pureAName | 47 | pure_RDR = nameRdrName pureAName | 47 | false | false | 0 | 5 | 18 | 9 | 4 | 5 | null | null |
CindyLinz/Haskell-HVG | src/HVG/Context2D.hs | bsd-3-clause | fill :: IO ()
fill = putStrLn "ctx.fill();" | 43 | fill :: IO ()
fill = putStrLn "ctx.fill();" | 43 | fill = putStrLn "ctx.fill();" | 29 | false | true | 0 | 7 | 7 | 25 | 10 | 15 | null | null |
spechub/Hets | Maude/Maude2DG.hs | gpl-2.0 | -- | checks if the target of the view is completely instantiated (to modules)
isInstantiated :: [Token] -> ModExp -> Bool
isInstantiated ths (ModExp modExp) = notElem (HasName.getName modExp) ths | 195 | isInstantiated :: [Token] -> ModExp -> Bool
isInstantiated ths (ModExp modExp) = notElem (HasName.getName modExp) ths | 117 | isInstantiated ths (ModExp modExp) = notElem (HasName.getName modExp) ths | 73 | true | true | 0 | 8 | 29 | 47 | 24 | 23 | null | null |
UweSchmidt/ppl2 | src/PPL2/CodeGen/Builder.hs | mit | builder2List :: Builder a -> [a]
builder2List = ($ []) . unBU | 61 | builder2List :: Builder a -> [a]
builder2List = ($ []) . unBU | 61 | builder2List = ($ []) . unBU | 28 | false | true | 0 | 8 | 11 | 38 | 18 | 20 | null | null |
phischu/fragnix | builtins/base/Foreign.C.Error.hs | bsd-3-clause | eRANGE = Errno (34) | 28 | eRANGE = Errno (34) | 28 | eRANGE = Errno (34) | 28 | false | false | 0 | 6 | 12 | 12 | 6 | 6 | null | null |
mainland/nikola | src/Data/Array/Nikola/Backend/C/Codegen.hs | bsd-3-clause | compileConst (Int8C n) = return $ ScalarCE [cexp|$int:(toInteger n)|] | 73 | compileConst (Int8C n) = return $ ScalarCE [cexp|$int:(toInteger n)|] | 73 | compileConst (Int8C n) = return $ ScalarCE [cexp|$int:(toInteger n)|] | 73 | false | false | 0 | 7 | 12 | 26 | 14 | 12 | null | null |
krakrjak/ImplicitCAD | Graphics/Implicit/ExtOpenScad/Parser/Lexer.hs | agpl-3.0 | matchOR :: GenParser Char st String
matchOR = P.reservedOp lexer "||" >> return "||" | 84 | matchOR :: GenParser Char st String
matchOR = P.reservedOp lexer "||" >> return "||" | 84 | matchOR = P.reservedOp lexer "||" >> return "||" | 48 | false | true | 0 | 7 | 13 | 32 | 15 | 17 | null | null |
snoyberg/hack-frontend-monadcgi | samples/hack_cgi_generic.hs | bsd-2-clause | monadToIO :: Reader String a -> IO a
monadToIO = return . (flip runReader) "This is a generic test" | 99 | monadToIO :: Reader String a -> IO a
monadToIO = return . (flip runReader) "This is a generic test" | 99 | monadToIO = return . (flip runReader) "This is a generic test" | 62 | false | true | 1 | 7 | 18 | 42 | 18 | 24 | null | null |
eklavya/Idris-dev | src/Idris/Reflection.hs | bsd-3-clause | reifyPlicity :: Term -> ElabD RPlicity
reifyPlicity (P (DCon _ _ _) n _)
| n == tacN "Explicit" = return RExplicit
| n == tacN "Implicit" = return RImplicit
| n == tacN "Constraint" = return RConstraint | 208 | reifyPlicity :: Term -> ElabD RPlicity
reifyPlicity (P (DCon _ _ _) n _)
| n == tacN "Explicit" = return RExplicit
| n == tacN "Implicit" = return RImplicit
| n == tacN "Constraint" = return RConstraint | 208 | reifyPlicity (P (DCon _ _ _) n _)
| n == tacN "Explicit" = return RExplicit
| n == tacN "Implicit" = return RImplicit
| n == tacN "Constraint" = return RConstraint | 169 | false | true | 0 | 9 | 43 | 99 | 44 | 55 | null | null |
scottgw/language-eiffel | Language/Eiffel/Parser.hs | bsd-3-clause | parseStmt :: Text -> Either ParseError Stmt
parseStmt = lexThenParse stmt "" | 77 | parseStmt :: Text -> Either ParseError Stmt
parseStmt = lexThenParse stmt "" | 77 | parseStmt = lexThenParse stmt "" | 33 | false | true | 0 | 7 | 12 | 30 | 13 | 17 | null | null |
rueshyna/gogol | gogol-games/gen/Network/Google/Resource/Games/Rooms/ReportStatus.hs | mpl-2.0 | -- | The preferred language to use for strings returned by this method.
rrsLanguage :: Lens' RoomsReportStatus (Maybe Text)
rrsLanguage
= lens _rrsLanguage (\ s a -> s{_rrsLanguage = a}) | 188 | rrsLanguage :: Lens' RoomsReportStatus (Maybe Text)
rrsLanguage
= lens _rrsLanguage (\ s a -> s{_rrsLanguage = a}) | 116 | rrsLanguage
= lens _rrsLanguage (\ s a -> s{_rrsLanguage = a}) | 64 | true | true | 0 | 9 | 31 | 48 | 25 | 23 | null | null |
teuffy/interactive-brokers | library/API/IB/Request.hs | bsd-3-clause | -- -----------------------------------------------------------------------------
createCancelMarketDataMsg :: Int -> Msg
createCancelMarketDataMsg tickerid = return $ ibMsg 1 CancelMktDataT [intDec tickerid] | 208 | createCancelMarketDataMsg :: Int -> Msg
createCancelMarketDataMsg tickerid = return $ ibMsg 1 CancelMktDataT [intDec tickerid] | 126 | createCancelMarketDataMsg tickerid = return $ ibMsg 1 CancelMktDataT [intDec tickerid] | 86 | true | true | 0 | 8 | 17 | 36 | 18 | 18 | null | null |
Zigazou/Sudoku | src/Sudoku/Cell.hs | gpl-3.0 | {-|
Given a `Cell`, it removes all the `Token`s from the given `Set` from this
`Cell` possible tokens. If there remains one and only one possible `Token`,
the `Cell` is automatically filled with this `Token`.
-}
removePossibles :: Cell -> Set Token -> Cell
removePossibles (Cell v ps) ts = Cell value possibles
where... | 518 | removePossibles :: Cell -> Set Token -> Cell
removePossibles (Cell v ps) ts = Cell value possibles
where possibles = Set.difference ps ts
value | Set.size possibles == 1 = Just $ Set.elemAt 0 possibles
| otherwise = v
{-|
Tells if a `Cell` is filled with a `Token` or not.
-} | 306 | removePossibles (Cell v ps) ts = Cell value possibles
where possibles = Set.difference ps ts
value | Set.size possibles == 1 = Just $ Set.elemAt 0 possibles
| otherwise = v
{-|
Tells if a `Cell` is filled with a `Token` or not.
-} | 261 | true | true | 0 | 12 | 118 | 96 | 46 | 50 | null | null |
amccausl/Swish | Swish/HaskellUtils/LookupMap.hs | lgpl-2.1 | reverseLookupMap :: (LookupEntryClass a1 b c, LookupEntryClass a2 c b)
=> LookupMap a1 -> LookupMap a2
reverseLookupMap (LookupMap es) = LookupMap (map reverseEntry es) | 174 | reverseLookupMap :: (LookupEntryClass a1 b c, LookupEntryClass a2 c b)
=> LookupMap a1 -> LookupMap a2
reverseLookupMap (LookupMap es) = LookupMap (map reverseEntry es) | 173 | reverseLookupMap (LookupMap es) = LookupMap (map reverseEntry es) | 65 | false | true | 0 | 10 | 29 | 68 | 32 | 36 | null | null |
antalsz/hs-to-coq | src/lib/HsToCoq/ConvertHaskell/Expr.hs | mit | convertTypedBinding _convHsTy AbsBinds{} = convUnsupported "[internal?] `AbsBinds'" | 86 | convertTypedBinding _convHsTy AbsBinds{} = convUnsupported "[internal?] `AbsBinds'" | 86 | convertTypedBinding _convHsTy AbsBinds{} = convUnsupported "[internal?] `AbsBinds'" | 86 | false | false | 0 | 5 | 9 | 20 | 8 | 12 | null | null |
cartazio/arithmoi | Math/NumberTheory/Recurrences/Bilinear.hs | mit | faulhaberPoly :: (GcdDomain a, Integral a) => Int -> [Ratio a]
-- Implementation by https://github.com/CarlEdman
faulhaberPoly p
= zipWith (*) ((0:)
$ reverse
$ take (p + 1) bernoulli)
$ map (% (fromIntegral p+1))
$ zipWith (*) (iterate negate (if odd p then 1 else -1))
$ binomial !! (p+1) | 302 | faulhaberPoly :: (GcdDomain a, Integral a) => Int -> [Ratio a]
faulhaberPoly p
= zipWith (*) ((0:)
$ reverse
$ take (p + 1) bernoulli)
$ map (% (fromIntegral p+1))
$ zipWith (*) (iterate negate (if odd p then 1 else -1))
$ binomial !! (p+1) | 252 | faulhaberPoly p
= zipWith (*) ((0:)
$ reverse
$ take (p + 1) bernoulli)
$ map (% (fromIntegral p+1))
$ zipWith (*) (iterate negate (if odd p then 1 else -1))
$ binomial !! (p+1) | 189 | true | true | 6 | 10 | 61 | 149 | 78 | 71 | null | null |
a143753/AOJ | DSL_1_A.hs | apache-2.0 | map' :: (String -> Int) -> [String] -> [Int]
map' f xs = foldl (\acc x -> acc ++ [f x]) [] xs | 93 | map' :: (String -> Int) -> [String] -> [Int]
map' f xs = foldl (\acc x -> acc ++ [f x]) [] xs | 93 | map' f xs = foldl (\acc x -> acc ++ [f x]) [] xs | 48 | false | true | 0 | 10 | 22 | 66 | 35 | 31 | null | null |
jyp/ling | Ling/Sequential.hs | bsd-3-clause | (!) :: Env -> Channel -> (Location, RSession)
env ! i = fromMaybe err (env ^. chans . at i)
where err = error $ "lookup/env " ++ show i ++ " in "
++ show (map unName (Map.keys (env ^. chans))) | 213 | (!) :: Env -> Channel -> (Location, RSession)
env ! i = fromMaybe err (env ^. chans . at i)
where err = error $ "lookup/env " ++ show i ++ " in "
++ show (map unName (Map.keys (env ^. chans))) | 213 | env ! i = fromMaybe err (env ^. chans . at i)
where err = error $ "lookup/env " ++ show i ++ " in "
++ show (map unName (Map.keys (env ^. chans))) | 167 | false | true | 1 | 12 | 62 | 112 | 54 | 58 | null | null |
chreekat/snowdrift | Model/Comment/Sql.hs | agpl-3.0 | exprClosedCommentIds :: SqlExpr (ValueList CommentId)
exprClosedCommentIds =
subList_select $
from $ \cc ->
return (cc ^. CommentClosingComment) | 156 | exprClosedCommentIds :: SqlExpr (ValueList CommentId)
exprClosedCommentIds =
subList_select $
from $ \cc ->
return (cc ^. CommentClosingComment) | 156 | exprClosedCommentIds =
subList_select $
from $ \cc ->
return (cc ^. CommentClosingComment) | 102 | false | true | 5 | 7 | 28 | 49 | 22 | 27 | null | null |
MichaelBurge/stockfighter-jailbreak | src/Api/Stockfighter/Jailbreak/Decompiler/AST.hs | bsd-3-clause | annotation :: Lens' Statement StatementAnnotation
annotation =
let getter = \case
(SExpression a _) -> a
(SLabel a _) -> a
(SGoto a _) -> a
(SAsm a _) -> a
(SBlock a _) -> a
(SVariable a _ _ _) -> a
(SFunction a _ _ _ _) -> a
(SIfElse a _ _ _) -> a
... | 1,077 | annotation :: Lens' Statement StatementAnnotation
annotation =
let getter = \case
(SExpression a _) -> a
(SLabel a _) -> a
(SGoto a _) -> a
(SAsm a _) -> a
(SBlock a _) -> a
(SVariable a _ _ _) -> a
(SFunction a _ _ _ _) -> a
(SIfElse a _ _ _) -> a
... | 1,077 | annotation =
let getter = \case
(SExpression a _) -> a
(SLabel a _) -> a
(SGoto a _) -> a
(SAsm a _) -> a
(SBlock a _) -> a
(SVariable a _ _ _) -> a
(SFunction a _ _ _ _) -> a
(SIfElse a _ _ _) -> a
(SReturn a _) -> a
(SWhile a _ _) -> a
... | 1,027 | false | true | 0 | 13 | 444 | 559 | 269 | 290 | null | null |
tjhunter/karps | haskell/src/Spark/Core/Internal/ColumnFunctions.hs | apache-2.0 | colOrigin :: Column ref a -> UntypedDataset
colOrigin = _cOrigin | 64 | colOrigin :: Column ref a -> UntypedDataset
colOrigin = _cOrigin | 64 | colOrigin = _cOrigin | 20 | false | true | 0 | 6 | 9 | 20 | 10 | 10 | null | null |
deciduously/Haskell-First-Principles-Exercises | 2-Defining and combining/9-Lists/code/myStd.hs | mit | myMaximum :: (Ord a) => [a] -> a
myMaximum = myMaximumBy compare | 64 | myMaximum :: (Ord a) => [a] -> a
myMaximum = myMaximumBy compare | 64 | myMaximum = myMaximumBy compare | 31 | false | true | 0 | 7 | 11 | 30 | 16 | 14 | null | null |
aisamanra/matterhorn | src/Events.hs | bsd-3-clause | onAppEvent (RespEvent f) = f | 28 | onAppEvent (RespEvent f) = f | 28 | onAppEvent (RespEvent f) = f | 28 | false | false | 0 | 6 | 4 | 16 | 7 | 9 | null | null |
prowdsponsor/ig-testapp | Handler/Subscriptions.hs | bsd-3-clause | postCreateSubscriptionR :: Handler RepHtml
postCreateSubscriptionR = do
((result, _), _) <- runFormPost tagForm
case result of
FormSuccess (TagN t) ->
defaultLayout $
catchW $ do
-- get callback url
render <- getUrlRender
let igcallback = r... | 610 | postCreateSubscriptionR :: Handler RepHtml
postCreateSubscriptionR = do
((result, _), _) <- runFormPost tagForm
case result of
FormSuccess (TagN t) ->
defaultLayout $
catchW $ do
-- get callback url
render <- getUrlRender
let igcallback = r... | 610 | postCreateSubscriptionR = do
((result, _), _) <- runFormPost tagForm
case result of
FormSuccess (TagN t) ->
defaultLayout $
catchW $ do
-- get callback url
render <- getUrlRender
let igcallback = render CallbackR
let params=Sub... | 566 | false | true | 0 | 18 | 193 | 141 | 67 | 74 | null | null |
lucasbraun/mt-rewrite | src/MtUtils.hs | bsd-3-clause | -- simply collapses multi-map to map by giving priority to select items (which are typically the last item added per key)
flattenProvenance :: Provenance -> Provenance
flattenProvenance prov = MM.fromList (map (\(k,as) -> (k, last as)) (MM.assocs prov)) | 253 | flattenProvenance :: Provenance -> Provenance
flattenProvenance prov = MM.fromList (map (\(k,as) -> (k, last as)) (MM.assocs prov)) | 131 | flattenProvenance prov = MM.fromList (map (\(k,as) -> (k, last as)) (MM.assocs prov)) | 85 | true | true | 0 | 11 | 37 | 63 | 34 | 29 | null | null |
dec9ue/jhc_copygc | src/E/LambdaLift.hs | gpl-2.0 | lambdaLift :: Program -> IO Program
lambdaLift prog@Program { progDataTable = dataTable, progCombinators = cs } = do
noLift <- calculateLiftees prog
let wp = fromList [ combIdent x | x <- cs ] :: IdSet
fc <- newIORef []
fm <- newIORef mempty
statRef <- newIORef mempty
let z comb = do
... | 8,466 | lambdaLift :: Program -> IO Program
lambdaLift prog@Program { progDataTable = dataTable, progCombinators = cs } = do
noLift <- calculateLiftees prog
let wp = fromList [ combIdent x | x <- cs ] :: IdSet
fc <- newIORef []
fm <- newIORef mempty
statRef <- newIORef mempty
let z comb = do
... | 8,466 | lambdaLift prog@Program { progDataTable = dataTable, progCombinators = cs } = do
noLift <- calculateLiftees prog
let wp = fromList [ combIdent x | x <- cs ] :: IdSet
fc <- newIORef []
fm <- newIORef mempty
statRef <- newIORef mempty
let z comb = do
(n,as,v) <- return $ combTriple c... | 8,429 | false | true | 19 | 33 | 3,324 | 2,932 | 1,446 | 1,486 | null | null |
ghc-android/ghc | compiler/nativeGen/PPC/Cond.hs | bsd-3-clause | condToSigned :: Cond -> Cond
condToSigned GU = GTT | 51 | condToSigned :: Cond -> Cond
condToSigned GU = GTT | 51 | condToSigned GU = GTT | 22 | false | true | 0 | 7 | 9 | 24 | 10 | 14 | null | null |
lynchronan/haskoin-crypto | src/Haskoin/Crypto/Point.hs | unlicense | -- Elliptic curve point addition
addPoint :: Point -> Point -> Point
addPoint InfPoint point = point | 100 | addPoint :: Point -> Point -> Point
addPoint InfPoint point = point | 67 | addPoint InfPoint point = point | 31 | true | true | 0 | 8 | 16 | 31 | 14 | 17 | null | null |
Cahu/krpc-hs | src/KRPCHS/RemoteTech.hs | gpl-3.0 | {-
- The names of the ground stations.
-}
getGroundStations :: RPCContext ([Data.Text.Text])
getGroundStations = do
let r = makeRequest "RemoteTech" "get_GroundStations" []
res <- sendRequest r
processResponse res | 228 | getGroundStations :: RPCContext ([Data.Text.Text])
getGroundStations = do
let r = makeRequest "RemoteTech" "get_GroundStations" []
res <- sendRequest r
processResponse res | 184 | getGroundStations = do
let r = makeRequest "RemoteTech" "get_GroundStations" []
res <- sendRequest r
processResponse res | 133 | true | true | 1 | 12 | 43 | 62 | 28 | 34 | null | null |
fmthoma/ghc | compiler/main/DynFlags.hs | bsd-3-clause | useInstead :: String -> TurnOnFlag -> DynP ()
useInstead flag turn_on
= deprecate ("Use -f" ++ no ++ flag ++ " instead")
where
no = if turn_on then "" else "no-" | 169 | useInstead :: String -> TurnOnFlag -> DynP ()
useInstead flag turn_on
= deprecate ("Use -f" ++ no ++ flag ++ " instead")
where
no = if turn_on then "" else "no-" | 169 | useInstead flag turn_on
= deprecate ("Use -f" ++ no ++ flag ++ " instead")
where
no = if turn_on then "" else "no-" | 123 | false | true | 1 | 9 | 38 | 67 | 32 | 35 | null | null |
pbogdan/react-flux-mui | react-flux-mui/src/React/Flux/Mui/Table/TableFooter.hs | bsd-3-clause | tableFooter_ ::
TableFooter
-> [PropertyOrHandler handler]
-> ReactElementM handler ()
-> ReactElementM handler ()
tableFooter_ args props =
foreign_ "TableFooter" (fromMaybe [] (toProps args) ++ props) | 215 | tableFooter_ ::
TableFooter
-> [PropertyOrHandler handler]
-> ReactElementM handler ()
-> ReactElementM handler ()
tableFooter_ args props =
foreign_ "TableFooter" (fromMaybe [] (toProps args) ++ props) | 215 | tableFooter_ args props =
foreign_ "TableFooter" (fromMaybe [] (toProps args) ++ props) | 89 | false | true | 0 | 10 | 38 | 74 | 35 | 39 | null | null |
aelve/guide | back/src/Guide/State.hs | bsd-3-clause | -- | Populate the database with info from the public DB.
importPublicDB :: PublicDB -> Acid.Update GlobalState ()
importPublicDB = put . fromPublicDB | 149 | importPublicDB :: PublicDB -> Acid.Update GlobalState ()
importPublicDB = put . fromPublicDB | 92 | importPublicDB = put . fromPublicDB | 35 | true | true | 1 | 8 | 22 | 36 | 16 | 20 | null | null |
noamz/linlam-gos | src/LamTri.hs | mit | -- and its corresponding lambda term...
petersenULT = snd (toULTc petersenRTM) | 78 | petersenULT = snd (toULTc petersenRTM) | 38 | petersenULT = snd (toULTc petersenRTM) | 38 | true | false | 1 | 7 | 10 | 20 | 8 | 12 | null | null |
yuttie/ghc-mod | Language/Haskell/GhcMod/CabalApi.hs | bsd-3-clause | cabalCppOptions :: FilePath -> IO [String]
cabalCppOptions dir = do
exist <- doesFileExist cabalMacro
if exist then
return ["-include", cabalMacro]
else
return []
where
cabalMacro = dir </> "dist/build/autogen/cabal_macros.h"
---------------------------------------------------------... | 410 | cabalCppOptions :: FilePath -> IO [String]
cabalCppOptions dir = do
exist <- doesFileExist cabalMacro
if exist then
return ["-include", cabalMacro]
else
return []
where
cabalMacro = dir </> "dist/build/autogen/cabal_macros.h"
---------------------------------------------------------... | 410 | cabalCppOptions dir = do
exist <- doesFileExist cabalMacro
if exist then
return ["-include", cabalMacro]
else
return []
where
cabalMacro = dir </> "dist/build/autogen/cabal_macros.h"
----------------------------------------------------------------
-- | Extracting all 'BuildInfo' fo... | 367 | false | true | 0 | 9 | 78 | 73 | 37 | 36 | null | null |
abyu/learning | haskell/listFuncs.hs | unlicense | myZip fn [] ys =[] | 18 | myZip fn [] ys =[] | 18 | myZip fn [] ys =[] | 18 | false | false | 0 | 6 | 4 | 17 | 8 | 9 | null | null |
kim/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types.hs | mpl-2.0 | -- | The root device name (for example, '/dev/sda1' or '/dev/xvda').
i1RootDeviceName :: Lens' Instance (Maybe Text)
i1RootDeviceName = lens _i1RootDeviceName (\s a -> s { _i1RootDeviceName = a }) | 196 | i1RootDeviceName :: Lens' Instance (Maybe Text)
i1RootDeviceName = lens _i1RootDeviceName (\s a -> s { _i1RootDeviceName = a }) | 127 | i1RootDeviceName = lens _i1RootDeviceName (\s a -> s { _i1RootDeviceName = a }) | 79 | true | true | 2 | 9 | 29 | 55 | 25 | 30 | null | null |
pmlodawski/aws-sdk-text-converter | test/Spec.hs | bsd-3-clause | testConvertNothingToUnit :: IO ()
testConvertNothingToUnit = fromNamedText "unit" Nothing @=? Just () | 101 | testConvertNothingToUnit :: IO ()
testConvertNothingToUnit = fromNamedText "unit" Nothing @=? Just () | 101 | testConvertNothingToUnit = fromNamedText "unit" Nothing @=? Just () | 67 | false | true | 0 | 7 | 11 | 30 | 14 | 16 | null | null |
soscpd/bee | root/tests/zguide/examples/Haskell/mtrelay.hs | mit | main :: IO ()
main = runZMQ step3 | 33 | main :: IO ()
main = runZMQ step3 | 33 | main = runZMQ step3 | 19 | false | true | 0 | 6 | 7 | 19 | 9 | 10 | null | null |
myfreeweb/stackage | Stackage/CompleteBuild.hs | mit | nightlySettings :: Text -- ^ day
-> BuildPlan
-> Settings
nightlySettings day plan' = Settings
{ planFile = nightlyPlanFile day
, buildDir = fpFromText $ "builds/stackage-nightly-" ++ day
, logDir = fpFromText $ "logs/stackage-nightly-" ++ day
, title = \ghcVer -> concat
... | 610 | nightlySettings :: Text -- ^ day
-> BuildPlan
-> Settings
nightlySettings day plan' = Settings
{ planFile = nightlyPlanFile day
, buildDir = fpFromText $ "builds/stackage-nightly-" ++ day
, logDir = fpFromText $ "logs/stackage-nightly-" ++ day
, title = \ghcVer -> concat
... | 610 | nightlySettings day plan' = Settings
{ planFile = nightlyPlanFile day
, buildDir = fpFromText $ "builds/stackage-nightly-" ++ day
, logDir = fpFromText $ "logs/stackage-nightly-" ++ day
, title = \ghcVer -> concat
[ "Stackage Nightly "
, day
, ", GHC "
, ghcVer
]
... | 520 | false | true | 0 | 10 | 209 | 159 | 90 | 69 | null | null |
gaetjen/FunFreakyPatMan | src/HasseTree.hs | mit | -- stop condition
addSetToSingletons (isH:isT) ht = addSetToSingletons isT (addItemToSingletons isH ht) | 103 | addSetToSingletons (isH:isT) ht = addSetToSingletons isT (addItemToSingletons isH ht) | 85 | addSetToSingletons (isH:isT) ht = addSetToSingletons isT (addItemToSingletons isH ht) | 85 | true | false | 0 | 7 | 11 | 32 | 16 | 16 | null | null |
kim/amazonka | amazonka-cloudfront/gen/Network/AWS/CloudFront/Types.hs | mpl-2.0 | -- | 'KeyPairIds' constructor.
--
-- The fields accessible through corresponding lenses are:
--
-- * 'kpiItems' @::@ ['Text']
--
-- * 'kpiQuantity' @::@ 'Int'
--
keyPairIds :: Int -- ^ 'kpiQuantity'
-> KeyPairIds
keyPairIds p1 = KeyPairIds
{ _kpiQuantity = p1
, _kpiItems = mempty
} | 308 | keyPairIds :: Int -- ^ 'kpiQuantity'
-> KeyPairIds
keyPairIds p1 = KeyPairIds
{ _kpiQuantity = p1
, _kpiItems = mempty
} | 146 | keyPairIds p1 = KeyPairIds
{ _kpiQuantity = p1
, _kpiItems = mempty
} | 84 | true | true | 0 | 6 | 72 | 41 | 27 | 14 | null | null |
chrisdone/haskell-diff | src/Data/Index.hs | bsd-3-clause | at (That (Ix p i) c) = at c <=< ix p i | 38 | at (That (Ix p i) c) = at c <=< ix p i | 38 | at (That (Ix p i) c) = at c <=< ix p i | 38 | false | false | 0 | 8 | 12 | 38 | 17 | 21 | null | null |
Mokosha/Lambency | lib/Lambency/Shader.hs | mit | genLitFragShader :: Light -> Material -> I.ShaderCode
genLitFragShader light mat = I.ShdrCode $ do
pos <- I.getInput3f "position"
norm <- I.getInput3f "normal"
diffuseColor <- getDiffuseColor mat
specularColor <- getSpecularColor mat <|> return Nothing
litFragment <- handleNormalMaps mat norm >>=
... | 843 | genLitFragShader :: Light -> Material -> I.ShaderCode
genLitFragShader light mat = I.ShdrCode $ do
pos <- I.getInput3f "position"
norm <- I.getInput3f "normal"
diffuseColor <- getDiffuseColor mat
specularColor <- getSpecularColor mat <|> return Nothing
litFragment <- handleNormalMaps mat norm >>=
... | 843 | genLitFragShader light mat = I.ShdrCode $ do
pos <- I.getInput3f "position"
norm <- I.getInput3f "normal"
diffuseColor <- getDiffuseColor mat
specularColor <- getSpecularColor mat <|> return Nothing
litFragment <- handleNormalMaps mat norm >>=
blinnPhongLighting light diffuseColor specular... | 789 | false | true | 0 | 14 | 183 | 248 | 112 | 136 | null | null |
fffej/sql-server-gen | src/Database/SqlServer/Create/Sequence.hs | bsd-2-clause | validMaximum :: Maybe NumericType -> Maybe Integer -> Bool
validMaximum x y = case numericBounds x of
Nothing -> True
Just (min', _) -> maybe True (> min') y | 161 | validMaximum :: Maybe NumericType -> Maybe Integer -> Bool
validMaximum x y = case numericBounds x of
Nothing -> True
Just (min', _) -> maybe True (> min') y | 161 | validMaximum x y = case numericBounds x of
Nothing -> True
Just (min', _) -> maybe True (> min') y | 102 | false | true | 4 | 7 | 32 | 69 | 34 | 35 | null | null |
koengit/induction-examples | List.hs | mit | count x (y:xs) | x == y = 1 + count x xs
| otherwise = count x xs | 83 | count x (y:xs) | x == y = 1 + count x xs
| otherwise = count x xs | 83 | count x (y:xs) | x == y = 1 + count x xs
| otherwise = count x xs | 83 | false | false | 0 | 8 | 36 | 51 | 23 | 28 | null | null |
bergmark/clay | src/Clay/Transform.hs | bsd-3-clause | scaleZ z = Transformation ("scaleZ(" <> value z <> ")") | 55 | scaleZ z = Transformation ("scaleZ(" <> value z <> ")") | 55 | scaleZ z = Transformation ("scaleZ(" <> value z <> ")") | 55 | false | false | 0 | 9 | 9 | 26 | 12 | 14 | null | null |
brendanhay/gogol | gogol-logging/gen/Network/Google/Resource/Logging/Sinks/Create.hs | mpl-2.0 | -- | JSONP
scCallback :: Lens' SinksCreate (Maybe Text)
scCallback
= lens _scCallback (\ s a -> s{_scCallback = a}) | 117 | scCallback :: Lens' SinksCreate (Maybe Text)
scCallback
= lens _scCallback (\ s a -> s{_scCallback = a}) | 106 | scCallback
= lens _scCallback (\ s a -> s{_scCallback = a}) | 61 | true | true | 0 | 9 | 21 | 48 | 25 | 23 | null | null |
forked-upstream-packages-for-ghcjs/ghc | compiler/codeGen/StgCmmPrim.hs | bsd-3-clause | emitPrimOp _ [res] IndexArrayArrayOp_ByteArray [obj,ix] = doReadPtrArrayOp res obj ix | 100 | emitPrimOp _ [res] IndexArrayArrayOp_ByteArray [obj,ix] = doReadPtrArrayOp res obj ix | 100 | emitPrimOp _ [res] IndexArrayArrayOp_ByteArray [obj,ix] = doReadPtrArrayOp res obj ix | 100 | false | false | 0 | 6 | 24 | 31 | 16 | 15 | null | null |
robdockins/edison | edison-core/src/Data/Edison/Seq/JoinList.hs | mit | strict s@(L _) = s | 18 | strict s@(L _) = s | 18 | strict s@(L _) = s | 18 | false | false | 0 | 8 | 4 | 18 | 9 | 9 | null | null |
felipecsl/show-do-milhao | src/Utils.hs | apache-2.0 | splitWhen :: (a -> Bool) -> [a] -> [[a]]
splitWhen = split . keepDelimsL . whenElt | 82 | splitWhen :: (a -> Bool) -> [a] -> [[a]]
splitWhen = split . keepDelimsL . whenElt | 82 | splitWhen = split . keepDelimsL . whenElt | 41 | false | true | 1 | 10 | 15 | 50 | 25 | 25 | null | null |
AntoineSavage/haskell | cabal_htf_tutorial/dist/build/autogen/Paths_HTF_tutorial.hs | gpl-2.0 | getLibexecDir = catchIO (getEnv "HTF_tutorial_libexecdir") (\_ -> return libexecdir) | 84 | getLibexecDir = catchIO (getEnv "HTF_tutorial_libexecdir") (\_ -> return libexecdir) | 84 | getLibexecDir = catchIO (getEnv "HTF_tutorial_libexecdir") (\_ -> return libexecdir) | 84 | false | false | 1 | 8 | 8 | 32 | 14 | 18 | null | null |
oldmanmike/ghc | compiler/specialise/Rules.hs | bsd-3-clause | ruleCheckBind env (Rec prs) = unionManyBags [ruleCheck env r | (_,r) <- prs] | 79 | ruleCheckBind env (Rec prs) = unionManyBags [ruleCheck env r | (_,r) <- prs] | 79 | ruleCheckBind env (Rec prs) = unionManyBags [ruleCheck env r | (_,r) <- prs] | 79 | false | false | 0 | 9 | 15 | 42 | 21 | 21 | null | null |
cwbriones/mal-hs | src/Main.hs | mit | str strings = (String . concat) <$> unbox strings []
where
unbox [] acc = return $ reverse acc
unbox (String s:strings) acc = unbox strings (s:acc)
unbox _ _ = throwError BadArgs | 192 | str strings = (String . concat) <$> unbox strings []
where
unbox [] acc = return $ reverse acc
unbox (String s:strings) acc = unbox strings (s:acc)
unbox _ _ = throwError BadArgs | 192 | str strings = (String . concat) <$> unbox strings []
where
unbox [] acc = return $ reverse acc
unbox (String s:strings) acc = unbox strings (s:acc)
unbox _ _ = throwError BadArgs | 192 | false | false | 0 | 8 | 46 | 94 | 45 | 49 | null | null |
mbakke/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | cpuPinningAll :: String
cpuPinningAll = "all" | 45 | cpuPinningAll :: String
cpuPinningAll = "all" | 45 | cpuPinningAll = "all" | 21 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
573/leksah | src/IDE/Find.hs | gpl-2.0 | orange = Color 64000 48000 0 | 28 | orange = Color 64000 48000 0 | 28 | orange = Color 64000 48000 0 | 28 | false | false | 1 | 5 | 5 | 16 | 6 | 10 | null | null |
juodaspaulius/clafer | src/Language/Clafer/Generator/Html.hs | mit | printDecl :: Decl-> Int -> Map.Map Span [Ir] -> Bool -> [(Span, String)] -> String
printDecl (Decl _ locids setExp) indent irMap html comments =
(concat $ intersperse "; " $ map printLocId locids) ++
(while html "<span class=\"keyword\">") ++ " : " ++ (while html "</span>") ++ printExp setExp indent irMap html comm... | 428 | printDecl :: Decl-> Int -> Map.Map Span [Ir] -> Bool -> [(Span, String)] -> String
printDecl (Decl _ locids setExp) indent irMap html comments =
(concat $ intersperse "; " $ map printLocId locids) ++
(while html "<span class=\"keyword\">") ++ " : " ++ (while html "</span>") ++ printExp setExp indent irMap html comm... | 428 | printDecl (Decl _ locids setExp) indent irMap html comments =
(concat $ intersperse "; " $ map printLocId locids) ++
(while html "<span class=\"keyword\">") ++ " : " ++ (while html "</span>") ++ printExp setExp indent irMap html comments
where
printLocId :: LocId -> String
printLocId (LocIdIdent _ (PosIde... | 345 | false | true | 0 | 13 | 81 | 184 | 90 | 94 | null | null |
brendanhay/gogol | gogol-compute/gen/Network/Google/Resource/Compute/RegionAutoscalers/Patch.hs | mpl-2.0 | -- | Name of the autoscaler to patch.
rapAutoscaler :: Lens' RegionAutoscalersPatch (Maybe Text)
rapAutoscaler
= lens _rapAutoscaler
(\ s a -> s{_rapAutoscaler = a}) | 173 | rapAutoscaler :: Lens' RegionAutoscalersPatch (Maybe Text)
rapAutoscaler
= lens _rapAutoscaler
(\ s a -> s{_rapAutoscaler = a}) | 135 | rapAutoscaler
= lens _rapAutoscaler
(\ s a -> s{_rapAutoscaler = a}) | 76 | true | true | 1 | 9 | 32 | 52 | 25 | 27 | null | null |
pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Util/EZConfig.hs | bsd-2-clause | parseKeySequence :: XConfig l -> ReadP [(KeyMask, KeySym)]
parseKeySequence c = sepBy1 (parseKeyCombo c) (many1 $ char ' ') | 123 | parseKeySequence :: XConfig l -> ReadP [(KeyMask, KeySym)]
parseKeySequence c = sepBy1 (parseKeyCombo c) (many1 $ char ' ') | 123 | parseKeySequence c = sepBy1 (parseKeyCombo c) (many1 $ char ' ') | 64 | false | true | 0 | 8 | 18 | 54 | 27 | 27 | null | null |
JacquesCarette/literate-scientific-software | code/drasil-data/Data/Drasil/Citations.hs | bsd-2-clause | parnas1972 = cArticle [dParnas]
"On the Criteria To Be Used in Decomposing Systems into Modules"
"Communications of the ACM" 1972
[pages [1053..1058]] "dParnas1972" | 170 | parnas1972 = cArticle [dParnas]
"On the Criteria To Be Used in Decomposing Systems into Modules"
"Communications of the ACM" 1972
[pages [1053..1058]] "dParnas1972" | 170 | parnas1972 = cArticle [dParnas]
"On the Criteria To Be Used in Decomposing Systems into Modules"
"Communications of the ACM" 1972
[pages [1053..1058]] "dParnas1972" | 170 | false | false | 0 | 8 | 28 | 38 | 17 | 21 | null | null |
alphalambda/codeworld | codeworld-auth/src/CodeWorld/Auth/Token.hs | apache-2.0 | parseHelper :: Signer -> Text -> Maybe (TokenType, Issuer, UTCTime, UTCTime, UserId, Map Text Value)
parseHelper signer j = do
jwt <- decodeAndVerifySignature signer j
let c = claims jwt
issuer <- (Issuer . stringOrURIToText) <$> iss c
issuedAt <- numericDateToUTCTime <$> iat c
expiresAt <- numericD... | 842 | parseHelper :: Signer -> Text -> Maybe (TokenType, Issuer, UTCTime, UTCTime, UserId, Map Text Value)
parseHelper signer j = do
jwt <- decodeAndVerifySignature signer j
let c = claims jwt
issuer <- (Issuer . stringOrURIToText) <$> iss c
issuedAt <- numericDateToUTCTime <$> iat c
expiresAt <- numericD... | 842 | parseHelper signer j = do
jwt <- decodeAndVerifySignature signer j
let c = claims jwt
issuer <- (Issuer . stringOrURIToText) <$> iss c
issuedAt <- numericDateToUTCTime <$> iat c
expiresAt <- numericDateToUTCTime <$> exp c
userId <- (UserId . Text.unpack . stringOrURIToText) <$> sub c
let ext... | 741 | false | true | 0 | 12 | 199 | 273 | 128 | 145 | null | null |
simonced/haskell-kata | email-parser-cabal/src/EmailParser/Lib.hs | gpl-3.0 | searchSpamFlag :: String -> Bool
searchSpamFlag content = content =~ "^X-Spam-Flag: YES" :: Bool | 96 | searchSpamFlag :: String -> Bool
searchSpamFlag content = content =~ "^X-Spam-Flag: YES" :: Bool | 96 | searchSpamFlag content = content =~ "^X-Spam-Flag: YES" :: Bool | 63 | false | true | 0 | 5 | 13 | 25 | 13 | 12 | null | null |
phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Tokens.hs | bsd-3-clause | gl_DOT3_RGB_ARB :: GLenum
gl_DOT3_RGB_ARB = 0x86AE | 50 | gl_DOT3_RGB_ARB :: GLenum
gl_DOT3_RGB_ARB = 0x86AE | 50 | gl_DOT3_RGB_ARB = 0x86AE | 24 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
tibbe/ghc | libraries/base/GHC/Event/Manager.hs | bsd-3-clause | wakeManager mgr = sendWakeup (emControl mgr) | 44 | wakeManager mgr = sendWakeup (emControl mgr) | 44 | wakeManager mgr = sendWakeup (emControl mgr) | 44 | false | false | 0 | 7 | 5 | 18 | 8 | 10 | null | null |
psibi/persistent | persistent/Database/Persist/Class/PersistStore.hs | mit | getEntity ::
( PersistStoreRead backend
, PersistRecordBackend e backend
, MonadIO m
) => Key e -> ReaderT backend m (Maybe (Entity e))
getEntity key = do
maybeModel <- get key
return $ fmap (key `Entity`) maybeModel
-- | Like 'insertEntity' but just returns the record instead of 'Entity'.
--
-... | 334 | getEntity ::
( PersistStoreRead backend
, PersistRecordBackend e backend
, MonadIO m
) => Key e -> ReaderT backend m (Maybe (Entity e))
getEntity key = do
maybeModel <- get key
return $ fmap (key `Entity`) maybeModel
-- | Like 'insertEntity' but just returns the record instead of 'Entity'.
--
-... | 334 | getEntity key = do
maybeModel <- get key
return $ fmap (key `Entity`) maybeModel
-- | Like 'insertEntity' but just returns the record instead of 'Entity'.
--
-- @since 2.6.1 | 182 | false | true | 0 | 11 | 77 | 94 | 48 | 46 | null | null |
Macil-dev/verhface-ll | src/Bindings/Verba/ErrorCodes.hs | unlicense | verr 33 = VerbaError 33 "E_DELETE_FILE" "Ошибка удаления файла" | 72 | verr 33 = VerbaError 33 "E_DELETE_FILE" "Ошибка удаления файла" | 72 | verr 33 = VerbaError 33 "E_DELETE_FILE" "Ошибка удаления файла" | 72 | false | false | 1 | 5 | 17 | 19 | 7 | 12 | null | null |
phadej/upper-bounds-builder | src/Distribution/PackDeps.hs | bsd-3-clause | combineDependencies :: [Dependency] -> [Dependency]
combineDependencies = fmap (uncurry Dependency) . Map.toList . Map.map simplifyVersionRange . Map.unionsWith unionVersionRanges . fmap depToSingletonMap | 205 | combineDependencies :: [Dependency] -> [Dependency]
combineDependencies = fmap (uncurry Dependency) . Map.toList . Map.map simplifyVersionRange . Map.unionsWith unionVersionRanges . fmap depToSingletonMap | 205 | combineDependencies = fmap (uncurry Dependency) . Map.toList . Map.map simplifyVersionRange . Map.unionsWith unionVersionRanges . fmap depToSingletonMap | 153 | false | true | 0 | 11 | 21 | 61 | 30 | 31 | null | null |
ganeti/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | -- | Node parameter names
ndExclusiveStorage :: String
ndExclusiveStorage = "exclusive_storage" | 96 | ndExclusiveStorage :: String
ndExclusiveStorage = "exclusive_storage" | 69 | ndExclusiveStorage = "exclusive_storage" | 40 | true | true | 0 | 4 | 11 | 12 | 7 | 5 | null | null |
li-zhirui/JSAnalyzer | JSParser.hs | mit | pJSFunction :: Parser JSVal
pJSFunction =
do begin <- getPosition
_ <- symbol "function"
(params, body) <- pFunctionPrincipalPart
end <- getPosition
return (JSFunction params body (convertPos begin) (convertPos end))
-- | parse a js value, it can be one of:
-- at... | 1,025 | pJSFunction :: Parser JSVal
pJSFunction =
do begin <- getPosition
_ <- symbol "function"
(params, body) <- pFunctionPrincipalPart
end <- getPosition
return (JSFunction params body (convertPos begin) (convertPos end))
-- | parse a js value, it can be one of:
-- at... | 1,025 | pJSFunction =
do begin <- getPosition
_ <- symbol "function"
(params, body) <- pFunctionPrincipalPart
end <- getPosition
return (JSFunction params body (convertPos begin) (convertPos end))
-- | parse a js value, it can be one of:
-- atom: an identifier for variab... | 997 | false | true | 0 | 12 | 218 | 115 | 67 | 48 | null | null |
mbakke/ganeti | src/Ganeti/UDSServer.hs | bsd-2-clause | prepareMsg (Ok result) = (True, result) | 39 | prepareMsg (Ok result) = (True, result) | 39 | prepareMsg (Ok result) = (True, result) | 39 | false | false | 0 | 6 | 5 | 22 | 11 | 11 | null | null |
beni55/http-types | Network/HTTP/Types/Header.hs | bsd-3-clause | renderByteRangesBuilder :: ByteRanges -> Blaze.Builder
renderByteRangesBuilder xs = Blaze.copyByteString "bytes=" `mappend`
mconcat (intersperse (Blaze.fromChar ',') (map renderByteRangeBuilder xs)) | 228 | renderByteRangesBuilder :: ByteRanges -> Blaze.Builder
renderByteRangesBuilder xs = Blaze.copyByteString "bytes=" `mappend`
mconcat (intersperse (Blaze.fromChar ',') (map renderByteRangeBuilder xs)) | 228 | renderByteRangesBuilder xs = Blaze.copyByteString "bytes=" `mappend`
mconcat (intersperse (Blaze.fromChar ',') (map renderByteRangeBuilder xs)) | 173 | false | true | 0 | 11 | 47 | 58 | 29 | 29 | null | null |
Megaleo/Minehack | src/Action.hs | bsd-3-clause | onAction (Action a (Just (c, (T.Tiles t1 _))) Move) = onAction $ Action a (Just (c,t1)) Move | 107 | onAction (Action a (Just (c, (T.Tiles t1 _))) Move) = onAction $ Action a (Just (c,t1)) Move | 107 | onAction (Action a (Just (c, (T.Tiles t1 _))) Move) = onAction $ Action a (Just (c,t1)) Move | 107 | false | false | 0 | 13 | 31 | 64 | 33 | 31 | null | null |
sgf-dma/sgf-xmonad-modules | src/Sgf/XMonad/Restartable.hs | bsd-3-clause | progLaunchKey :: LensA (Program a) [(ButtonMask, KeySym)]
progLaunchKey f z@(Program {_progLaunchKey = x})
= fmap (\x' -> z{_progLaunchKey = x'}) (f x) | 171 | progLaunchKey :: LensA (Program a) [(ButtonMask, KeySym)]
progLaunchKey f z@(Program {_progLaunchKey = x})
= fmap (\x' -> z{_progLaunchKey = x'}) (f x) | 171 | progLaunchKey f z@(Program {_progLaunchKey = x})
= fmap (\x' -> z{_progLaunchKey = x'}) (f x) | 113 | false | true | 0 | 10 | 41 | 78 | 43 | 35 | null | null |
lubomir/dot-race | fay-shared/Geometry.hs | bsd-3-clause | intersectsWithAnyBounded :: BoundedLine -> [BoundedLine] -> Bool
intersectsWithAnyBounded l = any (hasIntersectionBounded l) | 124 | intersectsWithAnyBounded :: BoundedLine -> [BoundedLine] -> Bool
intersectsWithAnyBounded l = any (hasIntersectionBounded l) | 124 | intersectsWithAnyBounded l = any (hasIntersectionBounded l) | 59 | false | true | 0 | 7 | 12 | 34 | 17 | 17 | null | null |
gridaphobe/target | bench/RBTreeCoverage.hs | mit | funs = [(T ((RBTree.add) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.add")
,(T ((RBTree.ins) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.ins")
,(T ((RBTree.remove) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree... | 1,523 | funs = [(T ((RBTree.add) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.add")
,(T ((RBTree.ins) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.ins")
,(T ((RBTree.remove) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree... | 1,523 | funs = [(T ((RBTree.add) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.add")
,(T ((RBTree.ins) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree.Char), "RBTree.ins")
,(T ((RBTree.remove) :: RBTree.Char-> RBTree.RBTree RBTree.Char -> RBTree.RBTree RBTree... | 1,523 | false | false | 0 | 12 | 206 | 282 | 153 | 129 | null | null |
merijn/transformers-supply | Control/Applicative/Supply.hs | bsd-3-clause | runSupplyT (More f) gen s = runSupplyT (f s) gen (gen s) | 56 | runSupplyT (More f) gen s = runSupplyT (f s) gen (gen s) | 56 | runSupplyT (More f) gen s = runSupplyT (f s) gen (gen s) | 56 | false | false | 0 | 7 | 11 | 38 | 18 | 20 | null | null |
vTurbine/ghc | compiler/basicTypes/DataCon.hs | bsd-3-clause | isSrcUnpacked _ = False | 23 | isSrcUnpacked _ = False | 23 | isSrcUnpacked _ = False | 23 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
skullzzz/behave | src/Main.hs | mit | s1 = sequenceNode [actionNode (* 3), conditionNode (even), actionNode (`div` 2)] | 87 | s1 = sequenceNode [actionNode (* 3), conditionNode (even), actionNode (`div` 2)] | 87 | s1 = sequenceNode [actionNode (* 3), conditionNode (even), actionNode (`div` 2)] | 87 | false | false | 0 | 8 | 17 | 40 | 23 | 17 | null | null |
uduki/hsQt | Qtc/Gui/QTreeWidget.hs | bsd-2-clause | sortColumn :: QTreeWidget a -> (()) -> IO (Int)
sortColumn x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTreeWidget_sortColumn cobj_x0 | 158 | sortColumn :: QTreeWidget a -> (()) -> IO (Int)
sortColumn x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTreeWidget_sortColumn cobj_x0 | 158 | sortColumn x0 ()
= withIntResult $
withObjectPtr x0 $ \cobj_x0 ->
qtc_QTreeWidget_sortColumn cobj_x0 | 110 | false | true | 0 | 8 | 31 | 59 | 29 | 30 | null | null |
mcschroeder/ghc | compiler/prelude/THNames.hs | bsd-3-clause | forallCIdKey = mkPreludeMiscIdUnique 373 | 45 | forallCIdKey = mkPreludeMiscIdUnique 373 | 45 | forallCIdKey = mkPreludeMiscIdUnique 373 | 45 | false | false | 0 | 5 | 8 | 9 | 4 | 5 | null | null |
pgj/bead | src/Bead/Controller/UserStories.hs | bsd-3-clause | userSubmissions :: Username -> AssignmentKey -> UserStory (Maybe UserSubmissionDesc)
userSubmissions s ak = logAction INFO msg $ do
authPerms userSubmissionDescPermissions
withUserAndPersist $ \u -> do
-- The admin can see the submission of students who are belonging to him
courses <- (map fst) <$> Persist.... | 876 | userSubmissions :: Username -> AssignmentKey -> UserStory (Maybe UserSubmissionDesc)
userSubmissions s ak = logAction INFO msg $ do
authPerms userSubmissionDescPermissions
withUserAndPersist $ \u -> do
-- The admin can see the submission of students who are belonging to him
courses <- (map fst) <$> Persist.... | 876 | userSubmissions s ak = logAction INFO msg $ do
authPerms userSubmissionDescPermissions
withUserAndPersist $ \u -> do
-- The admin can see the submission of students who are belonging to him
courses <- (map fst) <$> Persist.administratedCourses u
groups <- (map fst) <$> Persist.administratedGroups u
... | 791 | false | true | 0 | 17 | 171 | 228 | 107 | 121 | null | null |
yesodweb/persistent | persistent-test/src/ReadWriteTest.hs | mit | specsWith :: forall m. Runner SqlBackend m => RunDb SqlBackend m -> Spec
specsWith originalRunDb = describe "ReadWriteTest" $ do
let personFilters = [] :: [Filter Person]
describe "SqlReadBackend" $ do
let runDb :: RunDb SqlReadBackend m
runDb = changeBackend SqlReadBackend originalRunDb
... | 1,917 | specsWith :: forall m. Runner SqlBackend m => RunDb SqlBackend m -> Spec
specsWith originalRunDb = describe "ReadWriteTest" $ do
let personFilters = [] :: [Filter Person]
describe "SqlReadBackend" $ do
let runDb :: RunDb SqlReadBackend m
runDb = changeBackend SqlReadBackend originalRunDb
... | 1,917 | specsWith originalRunDb = describe "ReadWriteTest" $ do
let personFilters = [] :: [Filter Person]
describe "SqlReadBackend" $ do
let runDb :: RunDb SqlReadBackend m
runDb = changeBackend SqlReadBackend originalRunDb
it "type checks on all PersistStoreRead functions" $ do
... | 1,844 | false | true | 0 | 35 | 742 | 491 | 212 | 279 | null | null |
ComputationWithBoundedResources/ara-inference | doc/tpdb_trs/Haskell/basic_haskell/SLASHEQ_6.hs | mit | primEqInt (Neg Zero) (Pos Zero) = MyTrue | 40 | primEqInt (Neg Zero) (Pos Zero) = MyTrue | 40 | primEqInt (Neg Zero) (Pos Zero) = MyTrue | 40 | false | false | 0 | 7 | 6 | 23 | 11 | 12 | null | null |
creichert/postgresql-simple-migration | src/Main.hs | bsd-3-clause | parseCommand ("migrate":url:dir:_) = Just (Migrate url dir) | 59 | parseCommand ("migrate":url:dir:_) = Just (Migrate url dir) | 59 | parseCommand ("migrate":url:dir:_) = Just (Migrate url dir) | 59 | false | false | 0 | 9 | 6 | 35 | 17 | 18 | null | null |
binesiyu/ifl | ifpt-master/Parser.hs | mit | {-pOneOrMore p tks = pp p [] tks
where
pp p [] [] = []
pp p rs [] = [(rs, [])]
pp p rs tks = case res of
[] -> [(rs, tks)]
[(r', tks')] -> pp p (rs++[r']) tks'
where
res = p tks
-}
pZeroOrMore p = (pOneOrMore p) `pAlt` (pEmpty []) | 270 | pZeroOrMore p = (pOneOrMore p) `pAlt` (pEmpty []) | 49 | pZeroOrMore p = (pOneOrMore p) `pAlt` (pEmpty []) | 49 | true | false | 0 | 8 | 94 | 30 | 16 | 14 | null | null |
sampou-org/pfad | Code/Code30_Loopless.hs | bsd-3-clause | wop (Up (Node a legs)) cs = foldr wop cs' legs ++ [a] ++ foldr bop (reverse cs') legs
where cs' = if even (length (foldr bop [] legs)) then reverse cs else cs | 164 | wop (Up (Node a legs)) cs = foldr wop cs' legs ++ [a] ++ foldr bop (reverse cs') legs
where cs' = if even (length (foldr bop [] legs)) then reverse cs else cs | 164 | wop (Up (Node a legs)) cs = foldr wop cs' legs ++ [a] ++ foldr bop (reverse cs') legs
where cs' = if even (length (foldr bop [] legs)) then reverse cs else cs | 164 | false | false | 0 | 11 | 39 | 96 | 47 | 49 | null | null |
nyson/haste-gapi | Haste/GAPI/Request.hs | mit | -- | Runs the request eDSL from a concurrent context. Locking.
runRConc :: OAuth2Token -> RequestM () -> CIO ()
runRConc t r = void . unR $ validateToken t >> r | 160 | runRConc :: OAuth2Token -> RequestM () -> CIO ()
runRConc t r = void . unR $ validateToken t >> r | 97 | runRConc t r = void . unR $ validateToken t >> r | 48 | true | true | 1 | 9 | 31 | 56 | 25 | 31 | null | null |
DavidAlphaFox/ghc | libraries/containers/Data/Map/Base.hs | bsd-3-clause | {--------------------------------------------------------------------
Insertion
--------------------------------------------------------------------}
-- | /O(log n)/. Insert a new key and value in the map.
-- If the key is already present in the map, the associated value is
-- replaced with the supplied value. 'inser... | 1,041 | insert :: Ord k => k -> a -> Map k a -> Map k a
insert = go
where
go :: Ord k => k -> a -> Map k a -> Map k a
STRICT_1_OF_3(go)
go kx x Tip = singleton kx x
go kx x (Bin sz ky y l r) =
case compare kx ky of
LT -> balanceL ky y (go kx x l) r
GT -> balanceR ky y l (go kx ... | 390 | insert = go
where
go :: Ord k => k -> a -> Map k a -> Map k a
STRICT_1_OF_3(go)
go kx x Tip = singleton kx x
go kx x (Bin sz ky y l r) =
case compare kx ky of
LT -> balanceL ky y (go kx x l) r
GT -> balanceR ky y l (go kx x r)
EQ -> Bin sz kx x l r
#if __GLA... | 342 | true | true | 6 | 11 | 273 | 211 | 108 | 103 | null | null |
frantisekfarka/ghc-dsi | compiler/nativeGen/RegAlloc/Liveness.hs | bsd-3-clause | regLiveness _ (CmmProc info lbl live [])
| LiveInfo static mFirst _ _ <- info
= return $ CmmProc
(LiveInfo static mFirst (Just mapEmpty) Map.empty)
lbl live [] | 226 | regLiveness _ (CmmProc info lbl live [])
| LiveInfo static mFirst _ _ <- info
= return $ CmmProc
(LiveInfo static mFirst (Just mapEmpty) Map.empty)
lbl live [] | 226 | regLiveness _ (CmmProc info lbl live [])
| LiveInfo static mFirst _ _ <- info
= return $ CmmProc
(LiveInfo static mFirst (Just mapEmpty) Map.empty)
lbl live [] | 226 | false | false | 3 | 9 | 94 | 85 | 37 | 48 | null | null |
shachi04/HaskellTextAnalysis | wordfrequency.hs | mit | stripR :: Char -> String -> String
stripR x = reverse . dropWhile (==x) . reverse | 81 | stripR :: Char -> String -> String
stripR x = reverse . dropWhile (==x) . reverse | 81 | stripR x = reverse . dropWhile (==x) . reverse | 46 | false | true | 0 | 8 | 15 | 37 | 19 | 18 | null | null |
gridaphobe/ghc | iserv/Main.hs | bsd-3-clause | main :: IO ()
main = do
(arg0:arg1:rest) <- getArgs
let wfd1 = read arg0; rfd2 = read arg1
verbose <- case rest of
["-v"] -> return True
[] -> return False
_ -> die "iserv: syntax: iserv <write-fd> <read-fd> [-v]"
when verbose $ do
printf "GHC iserv starting (in: %d; out: %d)\n"
(fromInteg... | 727 | main :: IO ()
main = do
(arg0:arg1:rest) <- getArgs
let wfd1 = read arg0; rfd2 = read arg1
verbose <- case rest of
["-v"] -> return True
[] -> return False
_ -> die "iserv: syntax: iserv <write-fd> <read-fd> [-v]"
when verbose $ do
printf "GHC iserv starting (in: %d; out: %d)\n"
(fromInteg... | 727 | main = do
(arg0:arg1:rest) <- getArgs
let wfd1 = read arg0; rfd2 = read arg1
verbose <- case rest of
["-v"] -> return True
[] -> return False
_ -> die "iserv: syntax: iserv <write-fd> <read-fd> [-v]"
when verbose $ do
printf "GHC iserv starting (in: %d; out: %d)\n"
(fromIntegral rfd2 :: In... | 713 | false | true | 0 | 13 | 160 | 218 | 103 | 115 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.