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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ddssff/lens | src/Numeric/Lens.hs | bsd-3-clause | -- | @'exponentiating' n = 'iso' (**n) (**recip n)@
--
-- Note: This errors for n = 0
--
-- >>> au (_Wrapping Sum . from (exponentiating 2)) (foldMapOf each) (3,4) == 5
-- True
exponentiating :: (Floating a, Eq a) => a -> Iso' a a
exponentiating 0 = error "Numeric.Lens.exponentiating: exponent 0" | 297 | exponentiating :: (Floating a, Eq a) => a -> Iso' a a
exponentiating 0 = error "Numeric.Lens.exponentiating: exponent 0" | 120 | exponentiating 0 = error "Numeric.Lens.exponentiating: exponent 0" | 66 | true | true | 0 | 7 | 53 | 47 | 26 | 21 | null | null |
brendanhay/gogol | gogol-play-moviespartner/gen/Network/Google/PlayMoviesPartner/Types/Product.hs | mpl-2.0 | -- | Value representing the rating reason. Rating reasons should be formatted
-- as per [EMA ratings spec](http:\/\/www.movielabs.com\/md\/ratings\/) and
-- comma-separated for inclusion of multiple reasons. Example: \"L, S, V\"
aRatingReason :: Lens' Avail (Maybe Text)
aRatingReason
= lens _aRatingReason
(\ s ... | 347 | aRatingReason :: Lens' Avail (Maybe Text)
aRatingReason
= lens _aRatingReason
(\ s a -> s{_aRatingReason = a}) | 118 | aRatingReason
= lens _aRatingReason
(\ s a -> s{_aRatingReason = a}) | 76 | true | true | 0 | 9 | 54 | 50 | 27 | 23 | null | null |
bjornars/HKeePass | src/Keepass.hs | bsd-3-clause | parseEntries' nentries entry = do
(ktype, kint, kdata) <- getLineData
case ktype of
2 -> parseEntries' nentries $ KEGroupId (fromIntegral kint) : entry
4 -> parseEntries' nentries $ KETitle (C8.unpack kdata) : entry
5 -> parseEntries' nentries $ KEUrl (C8.unpack kdata) : entry
6... | 643 | parseEntries' nentries entry = do
(ktype, kint, kdata) <- getLineData
case ktype of
2 -> parseEntries' nentries $ KEGroupId (fromIntegral kint) : entry
4 -> parseEntries' nentries $ KETitle (C8.unpack kdata) : entry
5 -> parseEntries' nentries $ KEUrl (C8.unpack kdata) : entry
6... | 643 | parseEntries' nentries entry = do
(ktype, kint, kdata) <- getLineData
case ktype of
2 -> parseEntries' nentries $ KEGroupId (fromIntegral kint) : entry
4 -> parseEntries' nentries $ KETitle (C8.unpack kdata) : entry
5 -> parseEntries' nentries $ KEUrl (C8.unpack kdata) : entry
6... | 643 | false | false | 0 | 15 | 160 | 237 | 113 | 124 | null | null |
nushio3/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | breakpointAutoJumpName :: Name
breakpointAutoJumpName
= mkInternalName
breakpointAutoJumpIdKey
(mkOccNameFS varName (fsLit "breakpointAutoJump"))
noSrcSpan | 183 | breakpointAutoJumpName :: Name
breakpointAutoJumpName
= mkInternalName
breakpointAutoJumpIdKey
(mkOccNameFS varName (fsLit "breakpointAutoJump"))
noSrcSpan | 183 | breakpointAutoJumpName
= mkInternalName
breakpointAutoJumpIdKey
(mkOccNameFS varName (fsLit "breakpointAutoJump"))
noSrcSpan | 152 | false | true | 0 | 8 | 39 | 37 | 16 | 21 | null | null |
hackern/halfs | test/fuse/src/Halfs.hs | bsd-3-clause | halfsSyncDirectory :: HalfsCapable b t r l m =>
HalfsSpecific b r l m
-> FilePath -> System.Fuse.SyncType
-> m Errno
halfsSyncDirectory HS{ hspLogger = _log, hspState = _fs } _fp _syncType = do
_ <- error "halfsSyncDirectory: Not Yet Implemented." -- TODO
... | 333 | halfsSyncDirectory :: HalfsCapable b t r l m =>
HalfsSpecific b r l m
-> FilePath -> System.Fuse.SyncType
-> m Errno
halfsSyncDirectory HS{ hspLogger = _log, hspState = _fs } _fp _syncType = do
_ <- error "halfsSyncDirectory: Not Yet Implemented." -- TODO
... | 333 | halfsSyncDirectory HS{ hspLogger = _log, hspState = _fs } _fp _syncType = do
_ <- error "halfsSyncDirectory: Not Yet Implemented." -- TODO
return eNOSYS | 156 | false | true | 0 | 9 | 108 | 92 | 45 | 47 | null | null |
brendanhay/gogol | gogol-shopping-content/gen/Network/Google/Resource/Content/Orders/Refunditem.hs | mpl-2.0 | -- | The ID of the order to refund.
orrOrderId :: Lens' OrdersRefunditem Text
orrOrderId
= lens _orrOrderId (\ s a -> s{_orrOrderId = a}) | 139 | orrOrderId :: Lens' OrdersRefunditem Text
orrOrderId
= lens _orrOrderId (\ s a -> s{_orrOrderId = a}) | 103 | orrOrderId
= lens _orrOrderId (\ s a -> s{_orrOrderId = a}) | 61 | true | true | 1 | 9 | 26 | 46 | 22 | 24 | null | null |
sdiehl/ghc | compiler/coreSyn/CoreSyn.hs | bsd-3-clause | isStableSource :: UnfoldingSource -> Bool
-- Keep the unfolding template
isStableSource InlineCompulsory = True | 113 | isStableSource :: UnfoldingSource -> Bool
isStableSource InlineCompulsory = True | 82 | isStableSource InlineCompulsory = True | 40 | true | true | 0 | 5 | 15 | 23 | 11 | 12 | null | null |
vTurbine/ghc | compiler/utils/FastString.hs | bsd-3-clause | bucket_match :: [FastString] -> Int -> Ptr Word8 -> IO (Maybe FastString)
bucket_match [] _ _ = return Nothing | 110 | bucket_match :: [FastString] -> Int -> Ptr Word8 -> IO (Maybe FastString)
bucket_match [] _ _ = return Nothing | 110 | bucket_match [] _ _ = return Nothing | 36 | false | true | 0 | 10 | 18 | 50 | 24 | 26 | null | null |
ribag/ganeti-experiments | src/Ganeti/Objects.hs | gpl-2.0 | -- | Conversion from IP family to IP version. This is needed because
-- Python uses both, depending on context.
ipFamilyToVersion :: IpFamily -> Int
ipFamilyToVersion IpFamilyV4 = C.ip4Version | 192 | ipFamilyToVersion :: IpFamily -> Int
ipFamilyToVersion IpFamilyV4 = C.ip4Version | 80 | ipFamilyToVersion IpFamilyV4 = C.ip4Version | 43 | true | true | 0 | 5 | 28 | 22 | 12 | 10 | null | null |
TomMD/cryptol | src/Cryptol/Parser/AST.hs | bsd-3-clause | isPrefixOp _ = Nothing | 58 | isPrefixOp _ = Nothing | 58 | isPrefixOp _ = Nothing | 58 | false | false | 0 | 4 | 39 | 10 | 4 | 6 | null | null |
coreyoconnor/bind-marshal | test/verify_bind_rules_proto_2.hs | bsd-3-clause | force_17 :: ( T17A0 pre_m, T17A1 post_m, ReifyM pre_m, ReifyM post_m ) => Dyn pre_m post_m SZ () -> Test ()
force_17 = assert_ops_are [SB 1, SB 1, SB 1] | 152 | force_17 :: ( T17A0 pre_m, T17A1 post_m, ReifyM pre_m, ReifyM post_m ) => Dyn pre_m post_m SZ () -> Test ()
force_17 = assert_ops_are [SB 1, SB 1, SB 1] | 152 | force_17 = assert_ops_are [SB 1, SB 1, SB 1] | 44 | false | true | 0 | 8 | 29 | 79 | 39 | 40 | null | null |
fmthoma/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey | 94 | integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey | 94 | integerToIntName = varQual gHC_INTEGER_TYPE (fsLit "integerToInt") integerToIntIdKey | 94 | false | false | 0 | 7 | 16 | 19 | 9 | 10 | null | null |
mydaum/cabal | cabal-install/tests/UnitTests/Distribution/Client/Targets.hs | bsd-3-clause | readUserConstraintsTest :: String -> [UserConstraint] -> Assertion
readUserConstraintsTest str ucs =
assertEqual ("Couldn't read constraints: '" ++ str ++ "'") expected actual
where
expected = [ucs]
actual = [ x | (x, ys) <- readP_to_S (parseCommaList parse) str
, all isSpace ys] | 313 | readUserConstraintsTest :: String -> [UserConstraint] -> Assertion
readUserConstraintsTest str ucs =
assertEqual ("Couldn't read constraints: '" ++ str ++ "'") expected actual
where
expected = [ucs]
actual = [ x | (x, ys) <- readP_to_S (parseCommaList parse) str
, all isSpace ys] | 313 | readUserConstraintsTest str ucs =
assertEqual ("Couldn't read constraints: '" ++ str ++ "'") expected actual
where
expected = [ucs]
actual = [ x | (x, ys) <- readP_to_S (parseCommaList parse) str
, all isSpace ys] | 246 | false | true | 1 | 11 | 74 | 100 | 51 | 49 | null | null |
clarissalittler/cs311 | DFALang.hs | mit | parseFile :: Parser ([(Decl, Exp)] , Dfa)
parseFile = do
ds <- many1 parseDecl
d <- parseRun
return (ds, d) | 113 | parseFile :: Parser ([(Decl, Exp)] , Dfa)
parseFile = do
ds <- many1 parseDecl
d <- parseRun
return (ds, d) | 113 | parseFile = do
ds <- many1 parseDecl
d <- parseRun
return (ds, d) | 71 | false | true | 0 | 8 | 25 | 58 | 30 | 28 | null | null |
kgadek/evil-pareto-tests | src_old/Main2.hs | bsd-3-clause | generatePopulation :: (Individual a x y) => Int -> R.GenST s -> ST s (V.Vector (a x y No))
generatePopulation size gen = V.fromList <$> replicateM size (newIndividual gen) | 171 | generatePopulation :: (Individual a x y) => Int -> R.GenST s -> ST s (V.Vector (a x y No))
generatePopulation size gen = V.fromList <$> replicateM size (newIndividual gen) | 171 | generatePopulation size gen = V.fromList <$> replicateM size (newIndividual gen) | 80 | false | true | 0 | 12 | 28 | 86 | 41 | 45 | null | null |
michalkonecny/aern | aern-mpfr-rounded/demos/Minimal.hs | bsd-3-clause | shouldShowInternals = (Just 100, False) | 39 | shouldShowInternals = (Just 100, False) | 39 | shouldShowInternals = (Just 100, False) | 39 | false | false | 1 | 6 | 4 | 18 | 8 | 10 | null | null |
elieux/ghc | compiler/prelude/PrelNames.hs | bsd-3-clause | dATA_EITHER = mkBaseModule (fsLit "Data.Either") | 52 | dATA_EITHER = mkBaseModule (fsLit "Data.Either") | 52 | dATA_EITHER = mkBaseModule (fsLit "Data.Either") | 52 | false | false | 0 | 7 | 8 | 15 | 7 | 8 | null | null |
jkr/pandoc-citeproc | src/Text/CSL/Pandoc.hs | bsd-3-clause | -- | Process a 'Pandoc' document by adding citations formatted
-- according to a CSL style. Add a bibliography (if one is called
-- for) at the end of the document.
processCites :: Style -> [Reference] -> Pandoc -> Pandoc
processCites style refs (Pandoc m1 b1) =
let metanocites = lookupMeta "nocite" m1
nocit... | 1,344 | processCites :: Style -> [Reference] -> Pandoc -> Pandoc
processCites style refs (Pandoc m1 b1) =
let metanocites = lookupMeta "nocite" m1
nocites = mkNociteWildcards refs . query getCitation <$> metanocites
Pandoc m2 b2 = evalState (walkM setHashes $ Pandoc (deleteMeta "nocite" m1) b1) 1
g... | 1,178 | processCites style refs (Pandoc m1 b1) =
let metanocites = lookupMeta "nocite" m1
nocites = mkNociteWildcards refs . query getCitation <$> metanocites
Pandoc m2 b2 = evalState (walkM setHashes $ Pandoc (deleteMeta "nocite" m1) b1) 1
grps = query getCitation (Pandoc m2 b2) ++ fromMa... | 1,121 | true | true | 4 | 16 | 432 | 385 | 183 | 202 | null | null |
ProLambda/Times | Skeleton/Home.hs | gpl-3.0 | world :: MVar PageCache
-> ScottyM ()
world w = get "/world" $ do
web <- liftIO $ readMVar w
html web | 127 | world :: MVar PageCache
-> ScottyM ()
world w = get "/world" $ do
web <- liftIO $ readMVar w
html web | 127 | world w = get "/world" $ do
web <- liftIO $ readMVar w
html web | 83 | false | true | 0 | 10 | 47 | 53 | 23 | 30 | null | null |
dpieroux/euler | 0/0059.hs | mit | main = print $ sum decodedMsg | 29 | main = print $ sum decodedMsg | 29 | main = print $ sum decodedMsg | 29 | false | false | 3 | 5 | 5 | 18 | 6 | 12 | null | null |
olorin/amazonka | amazonka-s3/gen/Network/AWS/S3/Types/Product.hs | mpl-2.0 | -- | One or more headers in the response that you want customers to be able
-- to access from their applications (for example, from a JavaScript
-- XMLHttpRequest object).
crExposeHeaders :: Lens' CORSRule [Text]
crExposeHeaders = lens _crExposeHeaders (\ s a -> s{_crExposeHeaders = a}) . _Default . _Coerce | 308 | crExposeHeaders :: Lens' CORSRule [Text]
crExposeHeaders = lens _crExposeHeaders (\ s a -> s{_crExposeHeaders = a}) . _Default . _Coerce | 136 | crExposeHeaders = lens _crExposeHeaders (\ s a -> s{_crExposeHeaders = a}) . _Default . _Coerce | 95 | true | true | 0 | 11 | 49 | 53 | 30 | 23 | null | null |
duairc/snap-extensions | src/Snap/Extension/Utils.hs | bsd-3-clause | ------------------------------------------------------------------------------
-- | A version of 'readProcessExitCode' which operates on 'ByteString's. More
-- or less stolen from Heist.
readProcessWithExitCode'
:: FilePath
-> [String]
-> ByteString
-> IO (ExitCode, ByteString, ByteString)
readProcessWi... | 1,061 | readProcessWithExitCode'
:: FilePath
-> [String]
-> ByteString
-> IO (ExitCode, ByteString, ByteString)
readProcessWithExitCode' cmd args input = do
(Just inh, Just outh, Just errh, pid) <- createProcess (proc cmd args)
{ std_in = CreatePipe
, std_out = CreatePipe
, std_err ... | 874 | readProcessWithExitCode' cmd args input = do
(Just inh, Just outh, Just errh, pid) <- createProcess (proc cmd args)
{ std_in = CreatePipe
, std_out = CreatePipe
, std_err = CreatePipe
}
outM <- newEmptyMVar
errM <- newEmptyMVar
sync <- newEmptyMVar
forkIO $ do
... | 754 | true | true | 0 | 13 | 295 | 307 | 142 | 165 | null | null |
Twinside/pandoc | src/Text/Pandoc/Writers/Docx.hs | gpl-2.0 | copyChildren :: Archive -> Archive -> String -> Integer -> [String] -> IO Entry
copyChildren refArchive distArchive path timestamp elNames = do
ref <- parseXml refArchive distArchive path
dist <- parseXml distArchive distArchive path
return $ toEntry path timestamp $ renderXml dist{
elContent = elContent d... | 709 | copyChildren :: Archive -> Archive -> String -> Integer -> [String] -> IO Entry
copyChildren refArchive distArchive path timestamp elNames = do
ref <- parseXml refArchive distArchive path
dist <- parseXml distArchive distArchive path
return $ toEntry path timestamp $ renderXml dist{
elContent = elContent d... | 709 | copyChildren refArchive distArchive path timestamp elNames = do
ref <- parseXml refArchive distArchive path
dist <- parseXml distArchive distArchive path
return $ toEntry path timestamp $ renderXml dist{
elContent = elContent dist ++ copyContent ref
}
where
strName QName{qName=name, qPrefix=prefi... | 629 | false | true | 1 | 12 | 148 | 237 | 120 | 117 | null | null |
Fulkerson/HBot | HBot.hs | mit | ---------------------------------- Api calls ----------------------------------
get_server_time:: IO (Either String (KrakenResponse KrakenTimestamp))
get_server_time = eitherDecode <$> call where
call = simpleHttp "https://api.kraken.com/0/public/Time" | 254 | get_server_time:: IO (Either String (KrakenResponse KrakenTimestamp))
get_server_time = eitherDecode <$> call where
call = simpleHttp "https://api.kraken.com/0/public/Time" | 174 | get_server_time = eitherDecode <$> call where
call = simpleHttp "https://api.kraken.com/0/public/Time" | 104 | true | true | 0 | 9 | 21 | 43 | 22 | 21 | null | null |
linusyang/barrelfish | hake/RuleDefs.hs | mit | makeDependArch :: Options -> String -> String -> String -> String -> HRule
makeDependArch opts phase src objfile depfile =
Rules [ Rule (makeDependArchSub opts phase src objfile depfile),
Include (Out (optArch opts) depfile)
] | 252 | makeDependArch :: Options -> String -> String -> String -> String -> HRule
makeDependArch opts phase src objfile depfile =
Rules [ Rule (makeDependArchSub opts phase src objfile depfile),
Include (Out (optArch opts) depfile)
] | 252 | makeDependArch opts phase src objfile depfile =
Rules [ Rule (makeDependArchSub opts phase src objfile depfile),
Include (Out (optArch opts) depfile)
] | 177 | false | true | 0 | 11 | 60 | 85 | 42 | 43 | null | null |
alexander-at-github/eta | compiler/ETA/TypeCheck/TcType.hs | bsd-3-clause | tcSplitFunTysN
:: TcRhoType
-> Arity -- N: Number of desired args
-> ([TcSigmaType], -- Arg types (N or fewer)
TcSigmaType) -- The rest of the type
tcSplitFunTysN ty n_args
| n_args == 0
= ([], ty)
| Just (arg,res) <- tcSplitFunTy_maybe ty
= case t... | 419 | tcSplitFunTysN
:: TcRhoType
-> Arity -- N: Number of desired args
-> ([TcSigmaType], -- Arg types (N or fewer)
TcSigmaType)
tcSplitFunTysN ty n_args
| n_args == 0
= ([], ty)
| Just (arg,res) <- tcSplitFunTy_maybe ty
= case tcSplitFunTysN res (n_args - 1) o... | 387 | tcSplitFunTysN ty n_args
| n_args == 0
= ([], ty)
| Just (arg,res) <- tcSplitFunTy_maybe ty
= case tcSplitFunTysN res (n_args - 1) of
(args, res) -> (arg:args, res)
| otherwise
= ([], ty) | 207 | true | true | 0 | 10 | 143 | 145 | 75 | 70 | null | null |
olsner/ghc | compiler/stgSyn/CoreToStg.hs | bsd-3-clause | coreToStgExpr e = pprPanic "coreToStgExpr" (ppr e) | 50 | coreToStgExpr e = pprPanic "coreToStgExpr" (ppr e) | 50 | coreToStgExpr e = pprPanic "coreToStgExpr" (ppr e) | 50 | false | false | 1 | 7 | 6 | 23 | 9 | 14 | null | null |
flowbox-public/hint | src/Hint/Context.hs | bsd-3-clause | allModulesInContext :: MonadInterpreter m => m ([ModuleName], [ModuleName])
allModulesInContext = runGhc Compat.getContextNames | 127 | allModulesInContext :: MonadInterpreter m => m ([ModuleName], [ModuleName])
allModulesInContext = runGhc Compat.getContextNames | 127 | allModulesInContext = runGhc Compat.getContextNames | 51 | false | true | 0 | 8 | 11 | 38 | 20 | 18 | null | null |
archaephyrryx/CCG-Project | src/Filter.hs | bsd-3-clause | selectForm :: (Monad m) => Form T.Text m Selection
selectForm = Selection
<$> "colorFilter" .: choice (map (\x -> (x, (T.pack $ show x))) (Wild:spect)) Nothing | 163 | selectForm :: (Monad m) => Form T.Text m Selection
selectForm = Selection
<$> "colorFilter" .: choice (map (\x -> (x, (T.pack $ show x))) (Wild:spect)) Nothing | 163 | selectForm = Selection
<$> "colorFilter" .: choice (map (\x -> (x, (T.pack $ show x))) (Wild:spect)) Nothing | 112 | false | true | 0 | 14 | 29 | 83 | 44 | 39 | null | null |
punitrathore/haskell-first-principles | src/Programmer.hs | bsd-3-clause | convert3 :: Quantum -> Bool
convert3 Yes = True | 47 | convert3 :: Quantum -> Bool
convert3 Yes = True | 47 | convert3 Yes = True | 19 | false | true | 0 | 5 | 8 | 18 | 9 | 9 | null | null |
kavigupta/N-programming-language | src/Interpreter.hs | gpl-3.0 | interpret Definition = do
top <- pop
next <- pop
top =:= next | 73 | interpret Definition = do
top <- pop
next <- pop
top =:= next | 73 | interpret Definition = do
top <- pop
next <- pop
top =:= next | 73 | false | false | 0 | 7 | 24 | 30 | 13 | 17 | null | null |
Zigazou/containers | Data/Sequence.hs | bsd-3-clause | cycleNMiddle n
(Rigid s pr (SingleTh q) sf)
= deep
(Two q sf)
(runIdentity $ applicativeTree n s (Identity converted))
(Two pr q)
where converted = node3 pr q sf
| 218 | cycleNMiddle n
(Rigid s pr (SingleTh q) sf)
= deep
(Two q sf)
(runIdentity $ applicativeTree n s (Identity converted))
(Two pr q)
where converted = node3 pr q sf
| 218 | cycleNMiddle n
(Rigid s pr (SingleTh q) sf)
= deep
(Two q sf)
(runIdentity $ applicativeTree n s (Identity converted))
(Two pr q)
where converted = node3 pr q sf
| 218 | false | false | 0 | 10 | 86 | 87 | 42 | 45 | null | null |
egison/egison | hs-src/Language/Egison/Math/Expr.hs | mit | zeroM :: ScalarM -> p -> ()
zeroM ScalarM _ = () | 48 | zeroM :: ScalarM -> p -> ()
zeroM ScalarM _ = () | 48 | zeroM ScalarM _ = () | 20 | false | true | 0 | 9 | 11 | 34 | 15 | 19 | null | null |
quixoftic/Sxcrape | src/ParseEventDoc.hs | bsd-3-clause | parseArtistURL :: XMLDoc -> Maybe T.Text
parseArtistURL = liftM (fromAttrib "href" . head . dropWhile (~/= s "<a>")) . listToMaybe . sections (~== (TagText (s "Online"))) | 170 | parseArtistURL :: XMLDoc -> Maybe T.Text
parseArtistURL = liftM (fromAttrib "href" . head . dropWhile (~/= s "<a>")) . listToMaybe . sections (~== (TagText (s "Online"))) | 170 | parseArtistURL = liftM (fromAttrib "href" . head . dropWhile (~/= s "<a>")) . listToMaybe . sections (~== (TagText (s "Online"))) | 129 | false | true | 0 | 12 | 25 | 74 | 37 | 37 | null | null |
MichaelXavier/Seraph | test/Seraph/ProcessSpec.hs | bsd-2-clause | -------------------------------------------------------------------------------
runSeraphProcessTest' :: ProcState -> SeraphProcessM a -> ProcState
runSeraphProcessTest' ps m = execState (runSeraphProcessTest m) ps | 214 | runSeraphProcessTest' :: ProcState -> SeraphProcessM a -> ProcState
runSeraphProcessTest' ps m = execState (runSeraphProcessTest m) ps | 134 | runSeraphProcessTest' ps m = execState (runSeraphProcessTest m) ps | 66 | true | true | 0 | 7 | 16 | 39 | 19 | 20 | null | null |
moonKimura/vector-0.10.9.1 | Data/Vector/Fusion/Stream/Monadic.hs | bsd-3-clause | snoc s x = s ++ singleton x | 27 | snoc s x = s ++ singleton x | 27 | snoc s x = s ++ singleton x | 27 | false | false | 3 | 5 | 7 | 24 | 8 | 16 | null | null |
phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Tokens.hs | bsd-3-clause | gl_MINOR_VERSION :: GLenum
gl_MINOR_VERSION = 0x821C | 52 | gl_MINOR_VERSION :: GLenum
gl_MINOR_VERSION = 0x821C | 52 | gl_MINOR_VERSION = 0x821C | 25 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
dimara/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | -- | 60 seconds
oobTimeout :: Int
oobTimeout = 60 | 49 | oobTimeout :: Int
oobTimeout = 60 | 33 | oobTimeout = 60 | 15 | true | true | 0 | 6 | 9 | 19 | 8 | 11 | null | null |
diku-dk/futhark | src/Futhark/IR/Prop.hs | isc | safeExp WithAcc {} = True | 25 | safeExp WithAcc {} = True | 25 | safeExp WithAcc {} = True | 25 | false | false | 0 | 5 | 4 | 14 | 6 | 8 | null | null |
dcreager/cabal | Distribution/Make.hs | bsd-3-clause | installAction :: InstallFlags -> [String] -> IO ()
installAction flags args = do
noExtraFlags args
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["install"]
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["register"] | 243 | installAction :: InstallFlags -> [String] -> IO ()
installAction flags args = do
noExtraFlags args
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["install"]
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["register"] | 243 | installAction flags args = do
noExtraFlags args
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["install"]
rawSystemExit (fromFlag $ installVerbosity flags) "make" ["register"] | 192 | false | true | 0 | 10 | 34 | 84 | 40 | 44 | null | null |
scslab/iterIO | Data/IterIO/HttpRoute.hs | bsd-3-clause | popPath :: Bool -> HttpReq s -> HttpReq s
popPath isParm req =
case reqPathLst req of
h:t -> req { reqPathLst = t
, reqPathCtx = reqPathCtx req ++ [h]
, reqPathParams = if isParm then h : reqPathParams req
else reqPathParams req
... | 750 | popPath :: Bool -> HttpReq s -> HttpReq s
popPath isParm req =
case reqPathLst req of
h:t -> req { reqPathLst = t
, reqPathCtx = reqPathCtx req ++ [h]
, reqPathParams = if isParm then h : reqPathParams req
else reqPathParams req
... | 750 | popPath isParm req =
case reqPathLst req of
h:t -> req { reqPathLst = t
, reqPathCtx = reqPathCtx req ++ [h]
, reqPathParams = if isParm then h : reqPathParams req
else reqPathParams req
}
_ -> error "Data.... | 708 | false | true | 0 | 12 | 226 | 116 | 62 | 54 | null | null |
HJvT/com | System/Win32/Com/ClassFactory.hs | bsd-3-clause | createClassFactory :: (IID (IUnknown ()) -> IO (IUnknown ()))
-> IO (IClassFactory ())
createClassFactory mkInst = do
lcount <- newIORef 0
let cf_state = ClassFactory mkInst lcount
createComInstance ""
cf_state (return ())
[mkIface iidIClassFactory i... | 432 | createClassFactory :: (IID (IUnknown ()) -> IO (IUnknown ()))
-> IO (IClassFactory ())
createClassFactory mkInst = do
lcount <- newIORef 0
let cf_state = ClassFactory mkInst lcount
createComInstance ""
cf_state (return ())
[mkIface iidIClassFactory i... | 432 | createClassFactory mkInst = do
lcount <- newIORef 0
let cf_state = ClassFactory mkInst lcount
createComInstance ""
cf_state (return ())
[mkIface iidIClassFactory iClassFactory_vtbl]
iidIClassFactory
where
guidIClassFactory = iidToGUID iidIClassF... | 326 | false | true | 1 | 12 | 134 | 130 | 58 | 72 | null | null |
diku-kmc/repg | src/KMC/SymbolicSST.hs | mit | updateAbstractValuation :: (Ord var, Function func, Rng func ~ [delta]) =>
AbstractValuation var delta
-> RegisterUpdate var func
-> AbstractValuation var delta
updateAbstractValuation rho kappa = M.union (M.mapMaybe (liftAbstractValuation rho) ... | 330 | updateAbstractValuation :: (Ord var, Function func, Rng func ~ [delta]) =>
AbstractValuation var delta
-> RegisterUpdate var func
-> AbstractValuation var delta
updateAbstractValuation rho kappa = M.union (M.mapMaybe (liftAbstractValuation rho) ... | 330 | updateAbstractValuation rho kappa = M.union (M.mapMaybe (liftAbstractValuation rho) kappa) rho | 94 | false | true | 0 | 9 | 106 | 91 | 44 | 47 | null | null |
cmc-haskell-2016/fluids | src/Const.hs | bsd-3-clause | -- Коэффициент поверхностного натяжения.
surfTens::Fractional a => a
surfTens = 0.0008 | 86 | surfTens::Fractional a => a
surfTens = 0.0008 | 45 | surfTens = 0.0008 | 17 | true | true | 0 | 7 | 10 | 27 | 11 | 16 | null | null |
gridaphobe/ghc | compiler/main/DynFlags.hs | bsd-3-clause | setInteractivePrint f d = d{ interactivePrint = Just f} | 55 | setInteractivePrint f d = d{ interactivePrint = Just f} | 55 | setInteractivePrint f d = d{ interactivePrint = Just f} | 55 | false | false | 0 | 7 | 8 | 22 | 11 | 11 | null | null |
spechub/Hets | Maude/PreComorphism.hs | gpl-2.0 | cond2formula :: IdMap -> MAS.Condition -> CAS.CASLFORMULA
cond2formula im (MAS.EqCond t t') = CAS.mkStEq ct ct'
where ct = maudeTerm2caslTerm im t
ct' = maudeTerm2caslTerm im t' | 197 | cond2formula :: IdMap -> MAS.Condition -> CAS.CASLFORMULA
cond2formula im (MAS.EqCond t t') = CAS.mkStEq ct ct'
where ct = maudeTerm2caslTerm im t
ct' = maudeTerm2caslTerm im t' | 197 | cond2formula im (MAS.EqCond t t') = CAS.mkStEq ct ct'
where ct = maudeTerm2caslTerm im t
ct' = maudeTerm2caslTerm im t' | 139 | false | true | 0 | 8 | 46 | 67 | 33 | 34 | null | null |
rkday/github-dashboard | github-dashboard.hs | mit | otPRs :: Either a [Issue] -> Either a [Issue]
notPRs (Right issues) = Right (filter (not . isPullRequest) issues)
| 114 | notPRs :: Either a [Issue] -> Either a [Issue]
notPRs (Right issues) = Right (filter (not . isPullRequest) issues) | 114 | notPRs (Right issues) = Right (filter (not . isPullRequest) issues) | 67 | false | true | 0 | 9 | 19 | 58 | 29 | 29 | null | null |
ksaveljev/hake-2 | src/Render/Fast/Polygon.hs | bsd-3-clause | getPolyS1 :: GLPolyReference -> Int -> Quake Float
getPolyS1 = getPolygonBufferValue 0 | 86 | getPolyS1 :: GLPolyReference -> Int -> Quake Float
getPolyS1 = getPolygonBufferValue 0 | 86 | getPolyS1 = getPolygonBufferValue 0 | 35 | false | true | 0 | 7 | 11 | 25 | 12 | 13 | null | null |
kim/amazonka | amazonka-redshift/gen/Network/AWS/Redshift/Types.hs | mpl-2.0 | -- | The destination region that snapshots are automatically copied to when
-- cross-region snapshot copy is enabled.
cscsDestinationRegion :: Lens' ClusterSnapshotCopyStatus (Maybe Text)
cscsDestinationRegion =
lens _cscsDestinationRegion (\s a -> s { _cscsDestinationRegion = a }) | 286 | cscsDestinationRegion :: Lens' ClusterSnapshotCopyStatus (Maybe Text)
cscsDestinationRegion =
lens _cscsDestinationRegion (\s a -> s { _cscsDestinationRegion = a }) | 168 | cscsDestinationRegion =
lens _cscsDestinationRegion (\s a -> s { _cscsDestinationRegion = a }) | 98 | true | true | 0 | 9 | 40 | 47 | 26 | 21 | null | null |
bgold-cosmos/Tidal | src/Sound/Tidal/Params.hs | gpl-3.0 | cc :: Pattern String -> ControlPattern
cc = grp [mF "ccn", mF "ccv"] | 68 | cc :: Pattern String -> ControlPattern
cc = grp [mF "ccn", mF "ccv"] | 68 | cc = grp [mF "ccn", mF "ccv"] | 29 | false | true | 0 | 7 | 12 | 40 | 17 | 23 | null | null |
ctford/Idris-Elba-dev | src/IRTS/CodegenJavaScript.hs | bsd-3-clause | inlineJS (JSApp (JSIdent "__IDR__mEVAL0") [val])
| isJSConstant val = val | 75 | inlineJS (JSApp (JSIdent "__IDR__mEVAL0") [val])
| isJSConstant val = val | 75 | inlineJS (JSApp (JSIdent "__IDR__mEVAL0") [val])
| isJSConstant val = val | 75 | false | false | 0 | 9 | 11 | 35 | 16 | 19 | null | null |
sapek/pandoc | src/Text/Pandoc/Writers/ICML.hs | gpl-2.0 | -- | The monospaced font to use as default.
monospacedFont :: Doc
monospacedFont = inTags False "AppliedFont" [("type", "string")] $ text "Courier New" | 151 | monospacedFont :: Doc
monospacedFont = inTags False "AppliedFont" [("type", "string")] $ text "Courier New" | 107 | monospacedFont = inTags False "AppliedFont" [("type", "string")] $ text "Courier New" | 85 | true | true | 0 | 8 | 22 | 35 | 19 | 16 | null | null |
Bodigrim/katas | src/haskell/8-Number-toString.hs | bsd-2-clause | a = show 123 | 12 | a = show 123 | 12 | a = show 123 | 12 | false | false | 1 | 5 | 3 | 12 | 4 | 8 | null | null |
mrmonday/Idris-dev | src/IRTS/CodegenC.hs | bsd-3-clause | doOp v (LSLe (ATInt (ITFixed ty))) [x, y] = bitOp v "SLte" ty [x, y] | 68 | doOp v (LSLe (ATInt (ITFixed ty))) [x, y] = bitOp v "SLte" ty [x, y] | 68 | doOp v (LSLe (ATInt (ITFixed ty))) [x, y] = bitOp v "SLte" ty [x, y] | 68 | false | false | 0 | 11 | 14 | 52 | 27 | 25 | null | null |
beni55/hermit | src/HERMIT/Core.hs | bsd-2-clause | leftSibling :: Crumb -> Maybe Crumb
leftSibling = \case
ProgCons_Tail -> Just ProgCons_Head
Rec_Def n | n > 0 -> Just (Rec_Def (n-1))
App_Arg -> Just App_Fun
Let_Body -> Just Let_Bind
Case_Alt n... | 618 | leftSibling :: Crumb -> Maybe Crumb
leftSibling = \case
ProgCons_Tail -> Just ProgCons_Head
Rec_Def n | n > 0 -> Just (Rec_Def (n-1))
App_Arg -> Just App_Fun
Let_Body -> Just Let_Bind
Case_Alt n... | 618 | leftSibling = \case
ProgCons_Tail -> Just ProgCons_Head
Rec_Def n | n > 0 -> Just (Rec_Def (n-1))
App_Arg -> Just App_Fun
Let_Body -> Just Let_Bind
Case_Alt n | n == 0 -> Just Case_Scrutinee
... | 582 | false | true | 0 | 13 | 275 | 141 | 66 | 75 | null | null |
sherwoodwang/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxSTC_APDL_WORD :: Int
wxSTC_APDL_WORD = 6 | 42 | wxSTC_APDL_WORD :: Int
wxSTC_APDL_WORD = 6 | 42 | wxSTC_APDL_WORD = 6 | 19 | false | true | 0 | 6 | 5 | 18 | 7 | 11 | null | null |
phaazon/OpenGLRaw | src/Graphics/Rendering/OpenGL/Raw/Tokens.hs | bsd-3-clause | gl_OPERAND1_ALPHA :: GLenum
gl_OPERAND1_ALPHA = 0x8599 | 54 | gl_OPERAND1_ALPHA :: GLenum
gl_OPERAND1_ALPHA = 0x8599 | 54 | gl_OPERAND1_ALPHA = 0x8599 | 26 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
pegurnee/2015-01-341 | haskell/babySteps.hs | mit | boombBangs xs = [if x < 10
then "BOOM!"
else "BANG!" | x <- xs, odd x] | 88 | boombBangs xs = [if x < 10
then "BOOM!"
else "BANG!" | x <- xs, odd x] | 88 | boombBangs xs = [if x < 10
then "BOOM!"
else "BANG!" | x <- xs, odd x] | 88 | false | false | 0 | 7 | 34 | 39 | 20 | 19 | null | null |
parvmor/codeworld | funblocks-server/src/Util.hs | apache-2.0 | ensureProjectDir :: BuildMode -> Text -> FilePath -> ProjectId -> IO ()
ensureProjectDir mode userId path projectId = do
ensureUserProjectDir mode userId
createDirectoryIfMissing False (dropFileName f)
where f = userProjectDir mode userId </> path </> projectFile projectId | 283 | ensureProjectDir :: BuildMode -> Text -> FilePath -> ProjectId -> IO ()
ensureProjectDir mode userId path projectId = do
ensureUserProjectDir mode userId
createDirectoryIfMissing False (dropFileName f)
where f = userProjectDir mode userId </> path </> projectFile projectId | 283 | ensureProjectDir mode userId path projectId = do
ensureUserProjectDir mode userId
createDirectoryIfMissing False (dropFileName f)
where f = userProjectDir mode userId </> path </> projectFile projectId | 211 | false | true | 1 | 11 | 46 | 95 | 41 | 54 | null | null |
nushio3/Paraiso | examples-old/GA/HydroMain.hs | bsd-3-clause | cpuSetup :: Native.Setup Vec2 Int
cpuSetup = gpuSetup {
Native.language = Native.CPlusPlus,
Native.directory = "./dist-cpp/" } | 154 | cpuSetup :: Native.Setup Vec2 Int
cpuSetup = gpuSetup {
Native.language = Native.CPlusPlus,
Native.directory = "./dist-cpp/" } | 154 | cpuSetup = gpuSetup {
Native.language = Native.CPlusPlus,
Native.directory = "./dist-cpp/" } | 120 | false | true | 0 | 7 | 43 | 38 | 21 | 17 | null | null |
joelburget/react-haskell | src/React/Style.hs | mit | backgroundToStyle (BackgroundImage i) = Style
(H.singleton "background-image" (String i)) | 93 | backgroundToStyle (BackgroundImage i) = Style
(H.singleton "background-image" (String i)) | 93 | backgroundToStyle (BackgroundImage i) = Style
(H.singleton "background-image" (String i)) | 93 | false | false | 0 | 8 | 12 | 35 | 16 | 19 | null | null |
holzensp/ghc | compiler/cmm/CLabel.hs | bsd-3-clause | -- | Check whether a label is a local temporary for native code generation
isAsmTemp :: CLabel -> Bool
isAsmTemp (AsmTempLabel _) = True | 150 | isAsmTemp :: CLabel -> Bool
isAsmTemp (AsmTempLabel _) = True | 75 | isAsmTemp (AsmTempLabel _) = True | 46 | true | true | 0 | 6 | 37 | 29 | 14 | 15 | null | null |
bitemyapp/tandoori | src/Tandoori/Typing/Repr.hs | bsd-3-clause | fromHsType' (GHC.HsOpTy lty1 (L _ op) lty2) = do τ1 <- fromHsType' $ unLoc lty1
τ' <- fromHsType' $ GHC.HsTyVar op
τ2 <- fromHsType' $ unLoc lty2
return $ TyApp (TyA... | 332 | fromHsType' (GHC.HsOpTy lty1 (L _ op) lty2) = do τ1 <- fromHsType' $ unLoc lty1
τ' <- fromHsType' $ GHC.HsTyVar op
τ2 <- fromHsType' $ unLoc lty2
return $ TyApp (TyA... | 332 | fromHsType' (GHC.HsOpTy lty1 (L _ op) lty2) = do τ1 <- fromHsType' $ unLoc lty1
τ' <- fromHsType' $ GHC.HsTyVar op
τ2 <- fromHsType' $ unLoc lty2
return $ TyApp (TyA... | 332 | false | false | 0 | 10 | 188 | 94 | 42 | 52 | null | null |
jean-edouard/manager | updatemgr/UpdateMgr/Logic.hs | gpl-2.0 | currentUpdateMeta :: Update Meta
currentUpdateMeta = do
unlessM haveMeta (throwError $ localE MissingMetadata)
repo_meta <- fileContents xcRepoMetaPath
packages_meta <- fileContents xcPackagesMetaPath
case parseMeta (repo_meta, packages_meta) of
Nothing -> throwError $ localE MalformedMetadata
Just m -... | 330 | currentUpdateMeta :: Update Meta
currentUpdateMeta = do
unlessM haveMeta (throwError $ localE MissingMetadata)
repo_meta <- fileContents xcRepoMetaPath
packages_meta <- fileContents xcPackagesMetaPath
case parseMeta (repo_meta, packages_meta) of
Nothing -> throwError $ localE MalformedMetadata
Just m -... | 330 | currentUpdateMeta = do
unlessM haveMeta (throwError $ localE MissingMetadata)
repo_meta <- fileContents xcRepoMetaPath
packages_meta <- fileContents xcPackagesMetaPath
case parseMeta (repo_meta, packages_meta) of
Nothing -> throwError $ localE MalformedMetadata
Just m -> return m | 297 | false | true | 0 | 12 | 53 | 99 | 43 | 56 | null | null |
k16shikano/wikipepub | QNDA/Counter.hs | mit | Section :: CounterState -> String
getSection (_,n,_,_,_,_) = show n
n | 70 | getSection :: CounterState -> String
getSection (_,n,_,_,_,_) = show n | 70 | getSection (_,n,_,_,_,_) = show n | 33 | false | true | 0 | 8 | 11 | 48 | 24 | 24 | null | null |
bitemyapp/ghc | compiler/rename/RnBinds.hs | bsd-3-clause | -- renames the left-hand sides
-- generic version used both at the top level and for local binds
-- does some error checking, but not what gets done elsewhere at the top level
rnValBindsLHS :: NameMaker
-> HsValBinds RdrName
-> RnM (HsValBindsLR Name RdrName)
rnValBindsLHS topP (ValBindsIn m... | 564 | rnValBindsLHS :: NameMaker
-> HsValBinds RdrName
-> RnM (HsValBindsLR Name RdrName)
rnValBindsLHS topP (ValBindsIn mbinds sigs)
= do { mbinds' <- mapBagM (wrapLocM (rnBindLHS topP doc)) mbinds
; return $ ValBindsIn mbinds' sigs }
where
bndrs = collectHsBindsBinders mbinds
... | 388 | rnValBindsLHS topP (ValBindsIn mbinds sigs)
= do { mbinds' <- mapBagM (wrapLocM (rnBindLHS topP doc)) mbinds
; return $ ValBindsIn mbinds' sigs }
where
bndrs = collectHsBindsBinders mbinds
doc = text "In the binding group for:" <+> pprWithCommas ppr bndrs | 276 | true | true | 0 | 12 | 132 | 118 | 58 | 60 | null | null |
IreneKnapp/legal-emulator | DummyFrontEnd/Main.hs | mit | main :: IO ()
main = do
game <- withCString "smb1.nes" (\cString -> emulatorLoadGame cString)
nameCString <- gameName game
name <- peekCString nameCString
stringFree nameCString
putStrLn name
gamestate <- gamePowerOnState game
gamestate' <- gamestateFrameForward gamestate nullPtr
gamestateFree gamestate... | 1,118 | main :: IO ()
main = do
game <- withCString "smb1.nes" (\cString -> emulatorLoadGame cString)
nameCString <- gameName game
name <- peekCString nameCString
stringFree nameCString
putStrLn name
gamestate <- gamePowerOnState game
gamestate' <- gamestateFrameForward gamestate nullPtr
gamestateFree gamestate... | 1,118 | main = do
game <- withCString "smb1.nes" (\cString -> emulatorLoadGame cString)
nameCString <- gameName game
name <- peekCString nameCString
stringFree nameCString
putStrLn name
gamestate <- gamePowerOnState game
gamestate' <- gamestateFrameForward gamestate nullPtr
gamestateFree gamestate
gamestate <... | 1,104 | false | true | 0 | 17 | 291 | 315 | 134 | 181 | null | null |
rahulmutt/ghcvm | compiler/Eta/Main/GhcMake.hs | bsd-3-clause | hscSourceToIsBoot _ = NotBoot | 29 | hscSourceToIsBoot _ = NotBoot | 29 | hscSourceToIsBoot _ = NotBoot | 29 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
oldmanmike/ghc | compiler/profiling/CostCentre.hs | bsd-3-clause | mkAllCafsCC :: Module -> SrcSpan -> CostCentre
mkAllCafsCC m loc = AllCafsCC { cc_mod = m, cc_loc = loc } | 105 | mkAllCafsCC :: Module -> SrcSpan -> CostCentre
mkAllCafsCC m loc = AllCafsCC { cc_mod = m, cc_loc = loc } | 105 | mkAllCafsCC m loc = AllCafsCC { cc_mod = m, cc_loc = loc } | 58 | false | true | 0 | 6 | 19 | 38 | 21 | 17 | null | null |
bartolkaruza/software-testing-2014-group-W1 | week6/Lab6-bench.hs | apache-2.0 | base3 = 3 | 9 | base3 = 3 | 9 | base3 = 3 | 9 | false | false | 0 | 4 | 2 | 6 | 3 | 3 | null | null |
Vlix/wechat | Web/WeChat/JSONPrint.hs | mit | outJSON :: OutMessageContent -> [Pair]
outJSON (OutText cont) = mediaJSON "text" ["content" .= cont] | 100 | outJSON :: OutMessageContent -> [Pair]
outJSON (OutText cont) = mediaJSON "text" ["content" .= cont] | 100 | outJSON (OutText cont) = mediaJSON "text" ["content" .= cont] | 61 | false | true | 0 | 7 | 13 | 39 | 20 | 19 | null | null |
basvandijk/explicit-iomodes | System/IO/ExplicitIOModes.hs | bsd-3-clause | -- ** Text ouput
-- | Wraps: @System.IO.'SIO.hPutChar'@.
hPutChar ∷ WriteModes ioMode ⇒ Handle ioMode → Char → IO ()
hPutChar = wrap SIO.hPutChar | 146 | hPutChar ∷ WriteModes ioMode ⇒ Handle ioMode → Char → IO ()
hPutChar = wrap SIO.hPutChar | 88 | hPutChar = wrap SIO.hPutChar | 28 | true | true | 0 | 10 | 24 | 47 | 21 | 26 | null | null |
spechub/Hets | Isabelle/IsaSign.hs | gpl-2.0 | mkSenAux :: Bool -> MetaTerm -> Sentence
mkSenAux b t = Sentence
{ isSimp = False
, isRefuteAux = b
, thmProof = Nothing
, metaTerm = t } | 153 | mkSenAux :: Bool -> MetaTerm -> Sentence
mkSenAux b t = Sentence
{ isSimp = False
, isRefuteAux = b
, thmProof = Nothing
, metaTerm = t } | 153 | mkSenAux b t = Sentence
{ isSimp = False
, isRefuteAux = b
, thmProof = Nothing
, metaTerm = t } | 112 | false | true | 0 | 8 | 44 | 59 | 31 | 28 | null | null |
yangsiwei880813/CS644 | src/TypeLinking.hs | gpl-2.0 | forwardSYMInExpr :: String -> Expression -> Bool
forwardSYMInExpr nm (Unary op expr _) = forwardSYMInExpr nm expr | 113 | forwardSYMInExpr :: String -> Expression -> Bool
forwardSYMInExpr nm (Unary op expr _) = forwardSYMInExpr nm expr | 113 | forwardSYMInExpr nm (Unary op expr _) = forwardSYMInExpr nm expr | 64 | false | true | 0 | 7 | 16 | 39 | 19 | 20 | null | null |
airobert/yices_haskell | Main.hs | bsd-3-clause | --var_list_m = (map (\x -> map (\y -> VarE (x ++ " " ++ y)) w) m)
var_list_w =
let list = map fromIntegral [1..n] in
let f ll index = map (\l -> l !! (index-1)) ll in
map (f var_list_m) list | 202 | var_list_w =
let list = map fromIntegral [1..n] in
let f ll index = map (\l -> l !! (index-1)) ll in
map (f var_list_m) list | 136 | var_list_w =
let list = map fromIntegral [1..n] in
let f ll index = map (\l -> l !! (index-1)) ll in
map (f var_list_m) list | 136 | true | false | 1 | 16 | 54 | 84 | 39 | 45 | null | null |
haskell-opengl/OpenGLRaw | src/Graphics/GL/Functions/F28.hs | bsd-3-clause | ptr_glUniform4i64vNV :: FunPtr (GLint -> GLsizei -> Ptr GLint64EXT -> IO ())
ptr_glUniform4i64vNV = unsafePerformIO $ getCommand "glUniform4i64vNV" | 147 | ptr_glUniform4i64vNV :: FunPtr (GLint -> GLsizei -> Ptr GLint64EXT -> IO ())
ptr_glUniform4i64vNV = unsafePerformIO $ getCommand "glUniform4i64vNV" | 147 | ptr_glUniform4i64vNV = unsafePerformIO $ getCommand "glUniform4i64vNV" | 70 | false | true | 0 | 11 | 17 | 44 | 21 | 23 | null | null |
kaoskorobase/hsc3-server | Sound/SC3/Server/State/Monad/Command.hs | gpl-2.0 | g_new_ :: (MonadServer m, MonadIdAllocator m) => AddAction -> Request m Group
g_new_ a = rootNode >>= g_new a | 109 | g_new_ :: (MonadServer m, MonadIdAllocator m) => AddAction -> Request m Group
g_new_ a = rootNode >>= g_new a | 109 | g_new_ a = rootNode >>= g_new a | 31 | false | true | 0 | 7 | 18 | 45 | 22 | 23 | null | null |
MP2E/XMonadContrib | XMonad/Layout/BinarySpacePartition.hs | bsd-3-clause | goUp (t, LeftCrumb x r:cs) = Just (Node x t r, cs) | 50 | goUp (t, LeftCrumb x r:cs) = Just (Node x t r, cs) | 50 | goUp (t, LeftCrumb x r:cs) = Just (Node x t r, cs) | 50 | false | false | 0 | 7 | 11 | 41 | 20 | 21 | null | null |
Proclivis/wxHaskell | wxcore/src/haskell/Graphics/UI/WXCore/WxcDefs.hs | lgpl-2.1 | wxSP_3D :: Int
wxSP_3D = 768 | 28 | wxSP_3D :: Int
wxSP_3D = 768 | 28 | wxSP_3D = 768 | 13 | false | true | 0 | 4 | 5 | 11 | 6 | 5 | null | null |
spaceships/garbled-circuits | test/TestObliviousTransfer.hs | apache-2.0 | prop_decModeCorrect :: Property
prop_decModeCorrect = testMode setupDec | 71 | prop_decModeCorrect :: Property
prop_decModeCorrect = testMode setupDec | 71 | prop_decModeCorrect = testMode setupDec | 39 | false | true | 0 | 5 | 6 | 14 | 7 | 7 | null | null |
ekmett/wxHaskell | wxdirect/src/DeriveTypes.hs | lgpl-2.1 | -- | Argument names that correspond to a certain object.
objects :: Map.Map String String
objects
= Map.fromList
[ ("submenu", "wxMenu")
, ("handler", "wxEvtHandler")
, ("dc", "wxDC")
, ("_prc", "wxProcess")
, ("ctrl", "wxControl")
, ("win", "wxWindow")
, ("_wnd", ... | 1,146 | objects :: Map.Map String String
objects
= Map.fromList
[ ("submenu", "wxMenu")
, ("handler", "wxEvtHandler")
, ("dc", "wxDC")
, ("_prc", "wxProcess")
, ("ctrl", "wxControl")
, ("win", "wxWindow")
, ("_wnd", "wxWindow")
, ("_prt", "wxWindow")
, ("parent... | 1,089 | objects
= Map.fromList
[ ("submenu", "wxMenu")
, ("handler", "wxEvtHandler")
, ("dc", "wxDC")
, ("_prc", "wxProcess")
, ("ctrl", "wxControl")
, ("win", "wxWindow")
, ("_wnd", "wxWindow")
, ("_prt", "wxWindow")
, ("parent", "wxWindow")
, ("_par", ... | 1,056 | true | true | 1 | 6 | 363 | 309 | 200 | 109 | null | null |
edsko/ChinesePodAPI | src/Servant/ChinesePod/Analysis.hs | bsd-3-clause | showWithState' :: Pretty a => (State -> a) -> IO ()
showWithState' f = getState >>= putStrLn . pretty' . f | 106 | showWithState' :: Pretty a => (State -> a) -> IO ()
showWithState' f = getState >>= putStrLn . pretty' . f | 106 | showWithState' f = getState >>= putStrLn . pretty' . f | 54 | false | true | 0 | 9 | 20 | 54 | 25 | 29 | null | null |
TakeLab/gpkex | runGP.hs | bsd-3-clause | newFileName fs = replicate (4 - length mnr) '0' ++ mnr ++ ".txt"
where nrs = map (\f -> read $ take 4 f) fs :: [Int]
mnr = show $ 1 + maximum nrs | 155 | newFileName fs = replicate (4 - length mnr) '0' ++ mnr ++ ".txt"
where nrs = map (\f -> read $ take 4 f) fs :: [Int]
mnr = show $ 1 + maximum nrs | 155 | newFileName fs = replicate (4 - length mnr) '0' ++ mnr ++ ".txt"
where nrs = map (\f -> read $ take 4 f) fs :: [Int]
mnr = show $ 1 + maximum nrs | 155 | false | false | 3 | 10 | 44 | 75 | 38 | 37 | null | null |
cpettitt/haskell-ptree | Data/PTree.hs | mit | mapWithKey f (Node k v c) = Node k v' c'
where
v' = case v of
Nothing -> Nothing
Just x -> Just (f k x)
c' = IM.map (mapWithKey f) c
{--------------------------------------------------------------------
Fold
----------------------------------------------------------------... | 368 | mapWithKey f (Node k v c) = Node k v' c'
where
v' = case v of
Nothing -> Nothing
Just x -> Just (f k x)
c' = IM.map (mapWithKey f) c
{--------------------------------------------------------------------
Fold
----------------------------------------------------------------... | 368 | mapWithKey f (Node k v c) = Node k v' c'
where
v' = case v of
Nothing -> Nothing
Just x -> Just (f k x)
c' = IM.map (mapWithKey f) c
{--------------------------------------------------------------------
Fold
----------------------------------------------------------------... | 368 | false | false | 2 | 10 | 93 | 95 | 42 | 53 | null | null |
opentower/carnap | Carnap-Server/Util/Database.hs | gpl-3.0 | documentsByInstructorIdent ident = runDB $ do muent <- getBy $ UniqueUser ident
case entityKey <$> muent of
Just uid -> selectList [DocumentCreator ==. uid] []
Nothing -> ret... | 429 | documentsByInstructorIdent ident = runDB $ do muent <- getBy $ UniqueUser ident
case entityKey <$> muent of
Just uid -> selectList [DocumentCreator ==. uid] []
Nothing -> ret... | 429 | documentsByInstructorIdent ident = runDB $ do muent <- getBy $ UniqueUser ident
case entityKey <$> muent of
Just uid -> selectList [DocumentCreator ==. uid] []
Nothing -> ret... | 429 | false | false | 0 | 13 | 221 | 73 | 34 | 39 | null | null |
Cahu/krpc-hs | src/KRPCHS/SpaceCenter.hs | gpl-3.0 | setControlResourceHarvestersActive :: KRPCHS.SpaceCenter.Control -> Bool -> RPCContext ()
setControlResourceHarvestersActive thisArg valueArg = do
let r = makeRequest "SpaceCenter" "Control_set_ResourceHarvestersActive" [makeArgument 0 thisArg, makeArgument 1 valueArg]
res <- sendRequest r
processResponse r... | 444 | setControlResourceHarvestersActive :: KRPCHS.SpaceCenter.Control -> Bool -> RPCContext ()
setControlResourceHarvestersActive thisArg valueArg = do
let r = makeRequest "SpaceCenter" "Control_set_ResourceHarvestersActive" [makeArgument 0 thisArg, makeArgument 1 valueArg]
res <- sendRequest r
processResponse r... | 444 | setControlResourceHarvestersActive thisArg valueArg = do
let r = makeRequest "SpaceCenter" "Control_set_ResourceHarvestersActive" [makeArgument 0 thisArg, makeArgument 1 valueArg]
res <- sendRequest r
processResponse res
{-
- The state of the right translational control.
- A value between -1 and 1.
- E... | 354 | false | true | 0 | 12 | 73 | 81 | 38 | 43 | null | null |
ulricha/algebra-sql | src/Database/Algebra/Table/Construct.hs | bsd-3-clause | -- | Construct a literal table with multiple columns and rows
litTable' :: MonadState (BuildState TableAlgebra) m => [[AVal]] -> [(String, ATy)] -> m AlgNode
litTable' v s = insert $ NullaryOp $ LitTable (v, s) | 210 | litTable' :: MonadState (BuildState TableAlgebra) m => [[AVal]] -> [(String, ATy)] -> m AlgNode
litTable' v s = insert $ NullaryOp $ LitTable (v, s) | 148 | litTable' v s = insert $ NullaryOp $ LitTable (v, s) | 52 | true | true | 0 | 9 | 35 | 75 | 40 | 35 | null | null |
juhp/haskal | src/Haskal/Shell.hs | gpl-2.0 | -- | Create a new process in the given job. Add it to the list of
-- processes controlled by the shell.
addProcess :: Job -> ProcessID -> Shell Process
addProcess job pid = modify (shellProcs_u $ Map.insert pid proc) >> return proc
where
proc = Process { processID = pid
, processJob = jo... | 507 | addProcess :: Job -> ProcessID -> Shell Process
addProcess job pid = modify (shellProcs_u $ Map.insert pid proc) >> return proc
where
proc = Process { processID = pid
, processJob = jobID job
, processStatus = Nothing
}
-- | Create a new job with a ... | 403 | addProcess job pid = modify (shellProcs_u $ Map.insert pid proc) >> return proc
where
proc = Process { processID = pid
, processJob = jobID job
, processStatus = Nothing
}
-- | Create a new job with a given command line. Do _not_ add to the
-- set o... | 355 | true | true | 0 | 10 | 155 | 86 | 46 | 40 | null | null |
piyush-kurur/yesod | yesod-static/Yesod/Static.hs | mit | cachedETagLookupDevel :: Prelude.FilePath -> IO ETagLookup
cachedETagLookupDevel dir = do
etags <- mkHashMap dir
mtimeVar <- newIORef (M.empty :: M.Map F.FilePath EpochTime)
return $ \f ->
case M.lookup f etags of
Nothing -> return Nothing
Just checksum -> do
fs <- getFileSta... | 653 | cachedETagLookupDevel :: Prelude.FilePath -> IO ETagLookup
cachedETagLookupDevel dir = do
etags <- mkHashMap dir
mtimeVar <- newIORef (M.empty :: M.Map F.FilePath EpochTime)
return $ \f ->
case M.lookup f etags of
Nothing -> return Nothing
Just checksum -> do
fs <- getFileSta... | 653 | cachedETagLookupDevel dir = do
etags <- mkHashMap dir
mtimeVar <- newIORef (M.empty :: M.Map F.FilePath EpochTime)
return $ \f ->
case M.lookup f etags of
Nothing -> return Nothing
Just checksum -> do
fs <- getFileStatus $ F.encodeString f
let newt = modificationTim... | 594 | false | true | 0 | 22 | 195 | 221 | 101 | 120 | null | null |
dmjio/CompactMap | src/Data/CompactMap/Index.hs | bsd-3-clause | lookupNearest :: (Ord a, Binary a) => Ptr IndexItem
-> a -> IO (Direction, Ptr IndexItem)
lookupNearest start e
= walkTree start $ \keyCursor ->
do idxElem <- getElement (keyCursor `plusPtr` intSize)
case compare e idxElem of
LT -> return Left
GT -> return Right
... | 348 | lookupNearest :: (Ord a, Binary a) => Ptr IndexItem
-> a -> IO (Direction, Ptr IndexItem)
lookupNearest start e
= walkTree start $ \keyCursor ->
do idxElem <- getElement (keyCursor `plusPtr` intSize)
case compare e idxElem of
LT -> return Left
GT -> return Right
... | 348 | lookupNearest start e
= walkTree start $ \keyCursor ->
do idxElem <- getElement (keyCursor `plusPtr` intSize)
case compare e idxElem of
LT -> return Left
GT -> return Right
EQ -> return Stop
| 244 | false | true | 2 | 11 | 116 | 129 | 61 | 68 | null | null |
murukeshm/scratchpad | haskell/Parser2.hs | gpl-2.0 | name = (alpha <:*> greedy (alpha <|> digit)) | 44 | name = (alpha <:*> greedy (alpha <|> digit)) | 44 | name = (alpha <:*> greedy (alpha <|> digit)) | 44 | false | false | 1 | 10 | 7 | 27 | 12 | 15 | null | null |
akegalj/snowdrift | Model/Project.hs | agpl-3.0 | projectComputeShareValue :: [Int64] -> Milray
projectComputeShareValue patronPledgeLevel =
Milray 10 $* (fromIntegral $ length $ filter (/= 0) patronPledgeLevel) | 165 | projectComputeShareValue :: [Int64] -> Milray
projectComputeShareValue patronPledgeLevel =
Milray 10 $* (fromIntegral $ length $ filter (/= 0) patronPledgeLevel) | 165 | projectComputeShareValue patronPledgeLevel =
Milray 10 $* (fromIntegral $ length $ filter (/= 0) patronPledgeLevel) | 119 | false | true | 0 | 9 | 22 | 48 | 25 | 23 | null | null |
nomeata/darcs-mirror-arbtt | src/LeftFold.hs | gpl-2.0 | runOnGroups :: (x -> x -> Bool) -> LeftFold x y -> LeftFold y z -> LeftFold x z
runOnGroups eq _ (Pure ox) = Pure ox | 116 | runOnGroups :: (x -> x -> Bool) -> LeftFold x y -> LeftFold y z -> LeftFold x z
runOnGroups eq _ (Pure ox) = Pure ox | 116 | runOnGroups eq _ (Pure ox) = Pure ox | 36 | false | true | 0 | 11 | 26 | 69 | 32 | 37 | null | null |
eijian/deeplearning | src/Parser.hs | bsd-3-clause | trainpart :: Parser Config
trainpart = do
_ <- string "training:"
_ <- eoline
_ <- many1 space
im <- image
ch <- intparam rChannelin
cl <- intparam rClass
lr <- learningrate
bs <- intparam rBatchsize
ts <- intparam rTestsize
rp <- intparam rRepeat
sp <- intparam rSavepoint
return (im, ch, cl, lr... | 337 | trainpart :: Parser Config
trainpart = do
_ <- string "training:"
_ <- eoline
_ <- many1 space
im <- image
ch <- intparam rChannelin
cl <- intparam rClass
lr <- learningrate
bs <- intparam rBatchsize
ts <- intparam rTestsize
rp <- intparam rRepeat
sp <- intparam rSavepoint
return (im, ch, cl, lr... | 337 | trainpart = do
_ <- string "training:"
_ <- eoline
_ <- many1 space
im <- image
ch <- intparam rChannelin
cl <- intparam rClass
lr <- learningrate
bs <- intparam rBatchsize
ts <- intparam rTestsize
rp <- intparam rRepeat
sp <- intparam rSavepoint
return (im, ch, cl, lr, bs, ts, rp, sp) | 310 | false | true | 0 | 8 | 80 | 145 | 66 | 79 | null | null |
ddssff/pandoc | src/Text/Pandoc/Readers/LaTeX.hs | gpl-2.0 | dot 'e' = "ė" | 13 | dot 'e' = "ė" | 13 | dot 'e' = "ė" | 13 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
ailiev/faerieplay-compiler | Faerieplay/Bnfc/Sfdl/Skel.hs | bsd-3-clause | transProg :: Prog -> Result
transProg x = case x of
Prog id decs -> failure x | 80 | transProg :: Prog -> Result
transProg x = case x of
Prog id decs -> failure x | 80 | transProg x = case x of
Prog id decs -> failure x | 52 | false | true | 2 | 5 | 19 | 35 | 17 | 18 | null | null |
thumphries/weather | src/Parser.hs | bsd-3-clause | mkEntry :: UTCTime -> (Natural, Natural) -> Integer -> Station -> LogEntry
mkEntry time (lx, ly) temp sta = LogEntry time
$ mkMeasure sta (fromIntegral lx, fromIntegral ly) (fromIntegral temp) | 194 | mkEntry :: UTCTime -> (Natural, Natural) -> Integer -> Station -> LogEntry
mkEntry time (lx, ly) temp sta = LogEntry time
$ mkMeasure sta (fromIntegral lx, fromIntegral ly) (fromIntegral temp) | 194 | mkEntry time (lx, ly) temp sta = LogEntry time
$ mkMeasure sta (fromIntegral lx, fromIntegral ly) (fromIntegral temp) | 119 | false | true | 2 | 8 | 31 | 81 | 41 | 40 | null | null |
dimara/ganeti | src/Ganeti/Types.hs | bsd-2-clause | diskTemplateToStorageType DTFile = StorageFile | 46 | diskTemplateToStorageType DTFile = StorageFile | 46 | diskTemplateToStorageType DTFile = StorageFile | 46 | false | false | 0 | 4 | 3 | 10 | 4 | 6 | null | null |
aslatter/xhb | Graphics/XHB/Connection/Internal.hs | bsd-3-clause | extSequence :: Connection -> STM SequenceId
nextSequence c = do
let tv = conn_next_sequence c
seq <- readTVar tv
writeTVar tv (seq + 1)
return seq
-- Locks the handle for use by the passed in function. Intended for
-- write access only.
--
-- NOTE: the read loop has a separate reference to the handle,
-- so i... | 351 | nextSequence :: Connection -> STM SequenceId
nextSequence c = do
let tv = conn_next_sequence c
seq <- readTVar tv
writeTVar tv (seq + 1)
return seq
-- Locks the handle for use by the passed in function. Intended for
-- write access only.
--
-- NOTE: the read loop has a separate reference to the handle,
-- so ... | 351 | nextSequence c = do
let tv = conn_next_sequence c
seq <- readTVar tv
writeTVar tv (seq + 1)
return seq
-- Locks the handle for use by the passed in function. Intended for
-- write access only.
--
-- NOTE: the read loop has a separate reference to the handle,
-- so it will not be blocked by this. | 306 | false | true | 1 | 10 | 75 | 69 | 33 | 36 | null | null |
gnn/Hets | SoftFOL/ProveSPASS.hs | gpl-2.0 | spassProver :: Prover Sign Sentence SoftFOLMorphism () ProofTree
spassProver = mkAutomaticProver spassName spassName () spassProveGUI
spassProveCMDLautomaticBatch | 164 | spassProver :: Prover Sign Sentence SoftFOLMorphism () ProofTree
spassProver = mkAutomaticProver spassName spassName () spassProveGUI
spassProveCMDLautomaticBatch | 164 | spassProver = mkAutomaticProver spassName spassName () spassProveGUI
spassProveCMDLautomaticBatch | 99 | false | true | 0 | 6 | 17 | 38 | 18 | 20 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.