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
mrb/tee-io
src/Settings.hs
mit
-- | Raw bytes at compile time of @config/settings.yml@ configSettingsYmlBS :: ByteString configSettingsYmlBS = $(embedFile configSettingsYml)
142
configSettingsYmlBS :: ByteString configSettingsYmlBS = $(embedFile configSettingsYml)
86
configSettingsYmlBS = $(embedFile configSettingsYml)
52
true
true
0
7
15
19
10
9
null
null
databrary/databrary
src/Controller/Volume.hs
agpl-3.0
cacheVolumeTopContainer :: Volume -> StateT VolumeCache Handler Container cacheVolumeTopContainer vol = do vc <- get fromMaybeM (do t <- lookupVolumeTopContainer vol put vc{ volumeCacheTopContainer = Just t } return t) (volumeCacheTopContainer vc)
267
cacheVolumeTopContainer :: Volume -> StateT VolumeCache Handler Container cacheVolumeTopContainer vol = do vc <- get fromMaybeM (do t <- lookupVolumeTopContainer vol put vc{ volumeCacheTopContainer = Just t } return t) (volumeCacheTopContainer vc)
267
cacheVolumeTopContainer vol = do vc <- get fromMaybeM (do t <- lookupVolumeTopContainer vol put vc{ volumeCacheTopContainer = Just t } return t) (volumeCacheTopContainer vc)
193
false
true
0
14
51
82
37
45
null
null
beni55/logging-facade
logging-facade-hslogger/src/System/Logging/Facade/HsLogger.hs
mit
channelFromLocation :: Location -> String channelFromLocation loc = package ++ "." ++ locationModule loc where package = stripVersion (locationPackage loc) -- | Strip version string from given package name. -- -- The package name @main@ is returned verbatim. If the package name is not -- @main@, we assume that ...
653
channelFromLocation :: Location -> String channelFromLocation loc = package ++ "." ++ locationModule loc where package = stripVersion (locationPackage loc) -- | Strip version string from given package name. -- -- The package name @main@ is returned verbatim. If the package name is not -- @main@, we assume that ...
653
channelFromLocation loc = package ++ "." ++ locationModule loc where package = stripVersion (locationPackage loc) -- | Strip version string from given package name. -- -- The package name @main@ is returned verbatim. If the package name is not -- @main@, we assume that there is always a version string, delimite...
611
false
true
4
7
112
69
40
29
null
null
ghc-android/ghc
compiler/main/HscMain.hs
bsd-3-clause
hscGenHardCode :: HscEnv -> CgGuts -> ModSummary -> FilePath -> IO (FilePath, Maybe FilePath) -- ^ @Just f@ <=> _stub.c is f hscGenHardCode hsc_env cgguts mod_summary output_filename = do let CgGuts{ -- This is the last use of the ModGuts in a compilation. -- From now on, we j...
2,709
hscGenHardCode :: HscEnv -> CgGuts -> ModSummary -> FilePath -> IO (FilePath, Maybe FilePath) hscGenHardCode hsc_env cgguts mod_summary output_filename = do let CgGuts{ -- This is the last use of the ModGuts in a compilation. -- From now on, we just use the bits we need. ...
2,678
hscGenHardCode hsc_env cgguts mod_summary output_filename = do let CgGuts{ -- This is the last use of the ModGuts in a compilation. -- From now on, we just use the bits we need. cg_module = this_mod, cg_binds = core_binds, cg_t...
2,569
true
true
0
14
951
340
180
160
null
null
hsyl20/ViperVM
haskus-system/src/lib/Haskus/Arch/X86_64/Linux/SyscallTable.hs
bsd-3-clause
makeSyscalls :: String -> Q [Dec] makeSyscalls str = case runParser parseLines "syscalls table" str of Right entries -> return (concatMap makeSyscall entries) Left err -> fail (show err)
206
makeSyscalls :: String -> Q [Dec] makeSyscalls str = case runParser parseLines "syscalls table" str of Right entries -> return (concatMap makeSyscall entries) Left err -> fail (show err)
206
makeSyscalls str = case runParser parseLines "syscalls table" str of Right entries -> return (concatMap makeSyscall entries) Left err -> fail (show err)
172
false
true
0
10
48
73
34
39
null
null
hjwylde/werewolf
app/Game/Werewolf/Variant/Standard/Command.hs
bsd-3-clause
necromancerCommandsText :: Text necromancerCommandsText = [iFile|variant/standard/command/help/necromancer-commands.txt|]
121
necromancerCommandsText :: Text necromancerCommandsText = [iFile|variant/standard/command/help/necromancer-commands.txt|]
121
necromancerCommandsText = [iFile|variant/standard/command/help/necromancer-commands.txt|]
89
false
true
0
6
5
22
11
11
null
null
abhin4v/combinatorrent
src/Torrent.hs
bsd-2-clause
mkPeerId :: StdGen -> PeerId mkPeerId gen = header ++ take (20 - length header) ranString where randomList :: Int -> StdGen -> [Int] randomList n = take n . unfoldr (Just . random) rs = randomList 10 gen ranString = concatMap (\i -> showHex (abs i) "") rs header = "-CT" ++ protoVersion...
327
mkPeerId :: StdGen -> PeerId mkPeerId gen = header ++ take (20 - length header) ranString where randomList :: Int -> StdGen -> [Int] randomList n = take n . unfoldr (Just . random) rs = randomList 10 gen ranString = concatMap (\i -> showHex (abs i) "") rs header = "-CT" ++ protoVersion...
327
mkPeerId gen = header ++ take (20 - length header) ranString where randomList :: Int -> StdGen -> [Int] randomList n = take n . unfoldr (Just . random) rs = randomList 10 gen ranString = concatMap (\i -> showHex (abs i) "") rs header = "-CT" ++ protoVersion ++ "-"
298
false
true
8
10
89
158
69
89
null
null
phischu/fragnix
tests/packages/scotty/Data.Vector.Fusion.Bundle.Monadic.hs
bsd-3-clause
fold1M = foldl1M
16
fold1M = foldl1M
16
fold1M = foldl1M
16
false
false
1
5
2
10
3
7
null
null
JBons/Haskell-wordcount
src/wordcounters/ascii.hs
gpl-3.0
simpleCounts :: B.ByteString -> [(String, Int)] simpleCounts = map (\seq -> (head seq, length seq)).group.sort.prepare
118
simpleCounts :: B.ByteString -> [(String, Int)] simpleCounts = map (\seq -> (head seq, length seq)).group.sort.prepare
118
simpleCounts = map (\seq -> (head seq, length seq)).group.sort.prepare
70
false
true
0
12
14
55
30
25
null
null
dschalk/score2
.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.2.0.1/build/server/autogen/Paths_score2.hs
mit
datadir = "/home/z/score2/.stack-work/install/x86_64-linux-tinfo6/9e385e3143b55f45cec39a3c7c3ab7365c835099f9ff7d5a4c87e1c7a2690a57/8.4.4/share/x86_64-linux-ghc-8.4.4/score2-0.1.0.0"
184
datadir = "/home/z/score2/.stack-work/install/x86_64-linux-tinfo6/9e385e3143b55f45cec39a3c7c3ab7365c835099f9ff7d5a4c87e1c7a2690a57/8.4.4/share/x86_64-linux-ghc-8.4.4/score2-0.1.0.0"
184
datadir = "/home/z/score2/.stack-work/install/x86_64-linux-tinfo6/9e385e3143b55f45cec39a3c7c3ab7365c835099f9ff7d5a4c87e1c7a2690a57/8.4.4/share/x86_64-linux-ghc-8.4.4/score2-0.1.0.0"
184
false
false
0
4
5
6
3
3
null
null
valderman/haste-app
src/Haste/App/Sandbox.hs
mit
-- | Initialize a sandbox by loading the given dependencies and then running -- the given initialization function. Dependencies are loaded in order, -- in case some of them depend on each other. -- Use this for the @init@ method when creating @Node@ instances for -- sandboxes: -- -- > instance Node (Sandbox Som...
947
withDepends :: CIO env -> [URL] -> Proxy (m :: * -> *) -> CIO env withDepends extraInit deps _ = do v <- newEmptyMVar addScript v deps takeMVar v where addScript v (url:us) = do e <- newElem "script" appendChild documentBody e e `onEvent` Load $ \_ -> addScript v us setProp e "...
514
withDepends extraInit deps _ = do v <- newEmptyMVar addScript v deps takeMVar v where addScript v (url:us) = do e <- newElem "script" appendChild documentBody e e `onEvent` Load $ \_ -> addScript v us setProp e "src" url addScript v _ = do extraInit >>= putMVar v -- ...
448
true
true
1
11
219
175
87
88
null
null
lefant/kurt
src/Kurt/GoEngine.hs
gpl-3.0
updateTreeResult :: LoopState -> Result -> LoopState updateTreeResult (!loc, !raveMap) (!score, !playedMoves, !path) = (loc', raveMap') where raveMap' = updateRaveMap raveMap (rateScore score) $ drop (length playedMoves `div` 3) playedMoves loc' = backpropagate (rateScore score) updateNodeValue $ ge...
334
updateTreeResult :: LoopState -> Result -> LoopState updateTreeResult (!loc, !raveMap) (!score, !playedMoves, !path) = (loc', raveMap') where raveMap' = updateRaveMap raveMap (rateScore score) $ drop (length playedMoves `div` 3) playedMoves loc' = backpropagate (rateScore score) updateNodeValue $ ge...
334
updateTreeResult (!loc, !raveMap) (!score, !playedMoves, !path) = (loc', raveMap') where raveMap' = updateRaveMap raveMap (rateScore score) $ drop (length playedMoves `div` 3) playedMoves loc' = backpropagate (rateScore score) updateNodeValue $ getLeaf loc path
281
false
true
0
11
59
114
58
56
null
null
olsner/ghc
compiler/rename/RnBinds.hs
bsd-3-clause
rnMatchGroup :: Outputable (body RdrName) => HsMatchContext Name -> (Located (body RdrName) -> RnM (Located (body Name), FreeVars)) -> MatchGroup RdrName (Located (body RdrName)) -> RnM (MatchGroup Name (Located (body Name)), FreeVars) rnMatchGroup ctxt rnBody (MG { mg_alts = L _ ...
586
rnMatchGroup :: Outputable (body RdrName) => HsMatchContext Name -> (Located (body RdrName) -> RnM (Located (body Name), FreeVars)) -> MatchGroup RdrName (Located (body RdrName)) -> RnM (MatchGroup Name (Located (body Name)), FreeVars) rnMatchGroup ctxt rnBody (MG { mg_alts = L _ ...
586
rnMatchGroup ctxt rnBody (MG { mg_alts = L _ ms, mg_origin = origin }) = do { empty_case_ok <- xoptM LangExt.EmptyCase ; when (null ms && not empty_case_ok) (addErr (emptyCaseErr ctxt)) ; (new_ms, ms_fvs) <- mapFvRn (rnMatch ctxt rnBody) ms ; return (mkMatchGroup origin new_ms, ms_fvs) }
311
false
true
0
15
140
239
119
120
null
null
apyrgio/ganeti
src/Ganeti/JSON.hs
bsd-2-clause
nestedAccessByKey :: [String] -> J.JSValue -> J.Result J.JSValue nestedAccessByKey keys json = case keys of [] -> return json k:ks -> case json of J.JSObject obj -> J.valFromObj k obj >>= nestedAccessByKey ks _ -> J.Error $ "Cannot access non-object with key '" ++ k ++ "'" -- | Same as `...
427
nestedAccessByKey :: [String] -> J.JSValue -> J.Result J.JSValue nestedAccessByKey keys json = case keys of [] -> return json k:ks -> case json of J.JSObject obj -> J.valFromObj k obj >>= nestedAccessByKey ks _ -> J.Error $ "Cannot access non-object with key '" ++ k ++ "'" -- | Same as `...
427
nestedAccessByKey keys json = case keys of [] -> return json k:ks -> case json of J.JSObject obj -> J.valFromObj k obj >>= nestedAccessByKey ks _ -> J.Error $ "Cannot access non-object with key '" ++ k ++ "'" -- | Same as `nestedAccessByKey`, but accessing with a dotted string instead --...
362
false
true
0
14
94
112
55
57
null
null
7ocb/fuse_adb_fs
tests/Tests.hs
gpl-3.0
groupId :: GroupID groupId = fromIntegral (4 :: Integer)
56
groupId :: GroupID groupId = fromIntegral (4 :: Integer)
56
groupId = fromIntegral (4 :: Integer)
37
false
true
0
6
8
26
12
14
null
null
yihuang/cabal-install
Distribution/Client/Targets.hs
bsd-3-clause
readPackageTarget :: Verbosity -> PackageTarget (PackageLocation FilePath) -> IO (PackageTarget AvailablePackage) readPackageTarget verbosity target = case target of PackageTargetNamed pkgname constraints userTarget -> return (PackageTargetNamed pkgname constraints userTar...
3,599
readPackageTarget :: Verbosity -> PackageTarget (PackageLocation FilePath) -> IO (PackageTarget AvailablePackage) readPackageTarget verbosity target = case target of PackageTargetNamed pkgname constraints userTarget -> return (PackageTargetNamed pkgname constraints userTar...
3,599
readPackageTarget verbosity target = case target of PackageTargetNamed pkgname constraints userTarget -> return (PackageTargetNamed pkgname constraints userTarget) PackageTargetNamedFuzzy pkgname constraints userTarget -> return (PackageTargetNamedFuzzy pkgname constraints userTarget) Package...
3,449
false
true
17
16
1,169
691
346
345
null
null
brendanhay/gogol
gogol-androiddeviceprovisioning/gen/Network/Google/AndroidDeviceProvisioning/Types/Product.hs
mpl-2.0
-- | Found devices. fdbdirDevices :: Lens' FindDevicesByDeviceIdentifierResponse [Device] fdbdirDevices = lens _fdbdirDevices (\ s a -> s{_fdbdirDevices = a}) . _Default . _Coerce
199
fdbdirDevices :: Lens' FindDevicesByDeviceIdentifierResponse [Device] fdbdirDevices = lens _fdbdirDevices (\ s a -> s{_fdbdirDevices = a}) . _Default . _Coerce
179
fdbdirDevices = lens _fdbdirDevices (\ s a -> s{_fdbdirDevices = a}) . _Default . _Coerce
109
true
true
0
11
43
53
28
25
null
null
dysinger/amazonka
amazonka-iam/gen/Network/AWS/IAM/GetAccountAuthorizationDetails.hs
mpl-2.0
-- | A list containing information about IAM roles. gaadrRoleDetailList :: Lens' GetAccountAuthorizationDetailsResponse [RoleDetail] gaadrRoleDetailList = lens _gaadrRoleDetailList (\s a -> s { _gaadrRoleDetailList = a }) . _List
241
gaadrRoleDetailList :: Lens' GetAccountAuthorizationDetailsResponse [RoleDetail] gaadrRoleDetailList = lens _gaadrRoleDetailList (\s a -> s { _gaadrRoleDetailList = a }) . _List
189
gaadrRoleDetailList = lens _gaadrRoleDetailList (\s a -> s { _gaadrRoleDetailList = a }) . _List
108
true
true
0
10
40
47
26
21
null
null
vbalalla/financial_contract_language
calender.hs
mit
name :: Contract -> Name name (Contract n t) = n
48
name :: Contract -> Name name (Contract n t) = n
48
name (Contract n t) = n
23
false
true
0
7
10
26
13
13
null
null
bgamari/build-it
Build.hs
bsd-3-clause
runAndPackageBuild :: BuildEnv -> Build -> IO FilePath runAndPackageBuild env@(BuildEnv {..}) build = do result <- runBuild env build let artifact_dir = scratchDir </> buildName fname = artifact_dir </> "build.json" BSL.writeFile fname $ encode result let artifact_paths = "build.json" : [ path ...
705
runAndPackageBuild :: BuildEnv -> Build -> IO FilePath runAndPackageBuild env@(BuildEnv {..}) build = do result <- runBuild env build let artifact_dir = scratchDir </> buildName fname = artifact_dir </> "build.json" BSL.writeFile fname $ encode result let artifact_paths = "build.json" : [ path ...
705
runAndPackageBuild env@(BuildEnv {..}) build = do result <- runBuild env build let artifact_dir = scratchDir </> buildName fname = artifact_dir </> "build.json" BSL.writeFile fname $ encode result let artifact_paths = "build.json" : [ path | step <- Resul...
650
false
true
4
14
238
180
89
91
null
null
m0ar/safe-streaming
src/Streaming/Prelude.hs
bsd-3-clause
sumToEither ::Sum (LOf a) (LOf b) r -> LOf (Either a b) r sumToEither s = case s of InL (a :> r) -> Left a :> r InR (b :> r) -> Right b :> r
147
sumToEither ::Sum (LOf a) (LOf b) r -> LOf (Either a b) r sumToEither s = case s of InL (a :> r) -> Left a :> r InR (b :> r) -> Right b :> r
147
sumToEither s = case s of InL (a :> r) -> Left a :> r InR (b :> r) -> Right b :> r
88
false
true
4
8
43
96
48
48
null
null
li-zhirui/EoplLangs
src/CallByNeed/Parser.hs
bsd-3-clause
constExpr :: Parser Expression constExpr = ConstExpr . ExprNum <$> signedInteger
80
constExpr :: Parser Expression constExpr = ConstExpr . ExprNum <$> signedInteger
80
constExpr = ConstExpr . ExprNum <$> signedInteger
49
false
true
0
6
10
22
11
11
null
null
brendanhay/gogol
gogol-bigquery/gen/Network/Google/BigQuery/Types/Product.hs
mpl-2.0
-- | Required unless argument_kind = ANY_TYPE. aDataType :: Lens' Argument (Maybe StandardSQLDataType) aDataType = lens _aDataType (\ s a -> s{_aDataType = a})
161
aDataType :: Lens' Argument (Maybe StandardSQLDataType) aDataType = lens _aDataType (\ s a -> s{_aDataType = a})
114
aDataType = lens _aDataType (\ s a -> s{_aDataType = a})
58
true
true
0
9
25
48
25
23
null
null
joelburget/haste-compiler
libraries/haste-lib/src/Haste/App/Client.hs
bsd-3-clause
runClient_ :: URL -> Client () -> IO () runClient_ url (Client m) = concurrent $ do mv <- liftIO $ newIORef [] n <- liftIO $ newIORef 0 let errhandler = error "WebSockets connection died for some reason!" openWS blob = do wsvar <- get csSendBlob liftCIO $ do _ <- take...
1,499
runClient_ :: URL -> Client () -> IO () runClient_ url (Client m) = concurrent $ do mv <- liftIO $ newIORef [] n <- liftIO $ newIORef 0 let errhandler = error "WebSockets connection died for some reason!" openWS blob = do wsvar <- get csSendBlob liftCIO $ do _ <- take...
1,499
runClient_ url (Client m) = concurrent $ do mv <- liftIO $ newIORef [] n <- liftIO $ newIORef 0 let errhandler = error "WebSockets connection died for some reason!" openWS blob = do wsvar <- get csSendBlob liftCIO $ do _ <- takeMVar wsvar w <- withBinaryWe...
1,459
false
true
6
24
575
462
224
238
null
null
ant1441/stack
src/main/Main.hs
bsd-3-clause
hSetTranslit :: Handle -> IO () hSetTranslit h = do menc <- hGetEncoding h case fmap textEncodingName menc of Just name | '/' `notElem` name -> do enc' <- mkTextEncoding $ name ++ "//TRANSLIT" hSetEncoding h enc' _ -> return () -- | Commandline dispatcher.
319
hSetTranslit :: Handle -> IO () hSetTranslit h = do menc <- hGetEncoding h case fmap textEncodingName menc of Just name | '/' `notElem` name -> do enc' <- mkTextEncoding $ name ++ "//TRANSLIT" hSetEncoding h enc' _ -> return () -- | Commandline dispatcher.
319
hSetTranslit h = do menc <- hGetEncoding h case fmap textEncodingName menc of Just name | '/' `notElem` name -> do enc' <- mkTextEncoding $ name ++ "//TRANSLIT" hSetEncoding h enc' _ -> return () -- | Commandline dispatcher.
287
false
true
0
15
107
101
46
55
null
null
graninas/Andromeda
src/Andromeda/Types/Physics/Temperature.hs
bsd-3-clause
zeroPascal = toPascal 0.0
25
zeroPascal = toPascal 0.0
25
zeroPascal = toPascal 0.0
25
false
false
0
5
3
9
4
5
null
null
karamellpelle/grid
source/OpenGL/ES2/Values.hs
gpl-3.0
gl_LOW_INT :: GLenum gl_LOW_INT = 0x8DF3
61
gl_LOW_INT :: GLenum gl_LOW_INT = 0x8DF3
61
gl_LOW_INT = 0x8DF3
40
false
true
0
4
26
11
6
5
null
null
andorp/hs-bluesnap
src/Bluesnap/API/Response.hs
gpl-3.0
elementToXMLManual_recurring_info :: Manual_recurring_info -> [Content ()] elementToXMLManual_recurring_info = schemaTypeToXML "manual-recurring-info"
150
elementToXMLManual_recurring_info :: Manual_recurring_info -> [Content ()] elementToXMLManual_recurring_info = schemaTypeToXML "manual-recurring-info"
150
elementToXMLManual_recurring_info = schemaTypeToXML "manual-recurring-info"
75
false
true
0
8
9
26
13
13
null
null
haskell-distributed/distributed-process-extras
tests/TestPrimitives.hs
bsd-3-clause
testLinkingWithAbnormalExits :: TestResult (Maybe Bool) -> Process () testLinkingWithAbnormalExits result = do testPid <- getSelfPid pid <- spawnLocal $ do worker <- spawnLocal $ do "finish" <- expect return () linkOnFailure worker send testPid worker () <- expect return () worke...
819
testLinkingWithAbnormalExits :: TestResult (Maybe Bool) -> Process () testLinkingWithAbnormalExits result = do testPid <- getSelfPid pid <- spawnLocal $ do worker <- spawnLocal $ do "finish" <- expect return () linkOnFailure worker send testPid worker () <- expect return () worke...
819
testLinkingWithAbnormalExits result = do testPid <- getSelfPid pid <- spawnLocal $ do worker <- spawnLocal $ do "finish" <- expect return () linkOnFailure worker send testPid worker () <- expect return () workerPid <- expect :: Process ProcessId ref <- monitor pid kill worke...
749
false
true
4
17
226
283
126
157
null
null
adinapoli/threads-supervisor
test/Tests.hs
mit
assertContainsNRestartMsg :: Int -> [SupervisionEvent] -> IOProperty () assertContainsNRestartMsg n e = lift $ assertContainsNMsg matches n e where matches ChildRestarted{} = True matches _ = False --------------------------------------------------------------------------------
289
assertContainsNRestartMsg :: Int -> [SupervisionEvent] -> IOProperty () assertContainsNRestartMsg n e = lift $ assertContainsNMsg matches n e where matches ChildRestarted{} = True matches _ = False --------------------------------------------------------------------------------
289
assertContainsNRestartMsg n e = lift $ assertContainsNMsg matches n e where matches ChildRestarted{} = True matches _ = False --------------------------------------------------------------------------------
217
false
true
1
8
38
67
33
34
null
null
shmookey/pure
src/Rel/Log.hs
bsd-3-clause
-- Utility functions log :: ResultR Log m => Level -> String -> m () log l msg = inLevel l >>= \r -> case r of True -> message $ (sqbr $ padShow l) ++ " " ++ msg False -> return ()
196
log :: ResultR Log m => Level -> String -> m () log l msg = inLevel l >>= \r -> case r of True -> message $ (sqbr $ padShow l) ++ " " ++ msg False -> return ()
174
log l msg = inLevel l >>= \r -> case r of True -> message $ (sqbr $ padShow l) ++ " " ++ msg False -> return ()
126
true
true
0
15
59
94
46
48
null
null
matthiasgoergens/redgrep
src/DDup.hs
bsd-3-clause
d :: (Uni r, Bifunctor r, RE r) => Char -> D (NF r) f s -> r f s d char (D r _ _) = flattenForget $ r char
106
d :: (Uni r, Bifunctor r, RE r) => Char -> D (NF r) f s -> r f s d char (D r _ _) = flattenForget $ r char
106
d char (D r _ _) = flattenForget $ r char
41
false
true
0
10
30
84
40
44
null
null
haskell/haddock
haddock-api/src/Haddock/GhcUtils.hs
bsd-2-clause
tyCoFVsOfType' (FunTy _ w arg res) a b c = (tyCoFVsOfType' w `unionFV` tyCoFVsOfType' res `unionFV` tyCoFVsOfType' arg) a b c
212
tyCoFVsOfType' (FunTy _ w arg res) a b c = (tyCoFVsOfType' w `unionFV` tyCoFVsOfType' res `unionFV` tyCoFVsOfType' arg) a b c
212
tyCoFVsOfType' (FunTy _ w arg res) a b c = (tyCoFVsOfType' w `unionFV` tyCoFVsOfType' res `unionFV` tyCoFVsOfType' arg) a b c
212
false
false
0
9
107
58
29
29
null
null
EDmitry/ircbot-hs
GitLab.hs
mit
processQueue :: TQueue CommitHook -> Bot () processQueue queue = forever $ do hook <- liftIO $ atomically $ readTQueue queue case commits hook of [] -> liftIO $ putStrLn ("Malformed hook: " <> show hook) otherwise ...
697
processQueue :: TQueue CommitHook -> Bot () processQueue queue = forever $ do hook <- liftIO $ atomically $ readTQueue queue case commits hook of [] -> liftIO $ putStrLn ("Malformed hook: " <> show hook) otherwise ...
697
processQueue queue = forever $ do hook <- liftIO $ atomically $ readTQueue queue case commits hook of [] -> liftIO $ putStrLn ("Malformed hook: " <> show hook) otherwise -> asks (chan . botSettings) >>= (`privmsg` ...
653
false
true
1
15
260
240
113
127
null
null
rethab/combinatorrent
src/Data/Queue.hs
bsd-2-clause
pop (Queue (e : es) back) = Just (e, Queue es back)
51
pop (Queue (e : es) back) = Just (e, Queue es back)
51
pop (Queue (e : es) back) = Just (e, Queue es back)
51
false
false
0
8
11
39
19
20
null
null
hesiod/OpenGL
src/Graphics/Rendering/OpenGL/GL/Colors.hs
bsd-3-clause
-------------------------------------------------------------------------------- colorMaterial :: StateVar (Maybe (Face, ColorMaterialParameter)) colorMaterial = makeStateVarMaybe (return CapColorMaterial) (liftM2 (,) (getEnum1 unmarshalFace GetColorMaterialFace) (getEnum1 unm...
516
colorMaterial :: StateVar (Maybe (Face, ColorMaterialParameter)) colorMaterial = makeStateVarMaybe (return CapColorMaterial) (liftM2 (,) (getEnum1 unmarshalFace GetColorMaterialFace) (getEnum1 unmarshalColorMaterialParameter GetColorMaterialParameter)) (\(face, param) -> ...
434
colorMaterial = makeStateVarMaybe (return CapColorMaterial) (liftM2 (,) (getEnum1 unmarshalFace GetColorMaterialFace) (getEnum1 unmarshalColorMaterialParameter GetColorMaterialParameter)) (\(face, param) -> glColorMaterial (marshalFace face) ...
369
true
true
0
10
117
100
53
47
null
null
lambdageek/insomnia
src/Insomnia/Typecheck/MayAscribe.hs
bsd-3-clause
checkModuleTypeNF :: Path -> ModuleTypeNF -> ModuleTypeNF -> TC () checkModuleTypeNF pmod mod1 mod2 = case (mod1, mod2) of (SigMTNF sigv1, SigMTNF sigv2) -> checkSigV pmod sigv1 sigv2 (FunMTNF bnd1, FunMTNF bnd2) -> U.lunbind2 bnd1 bnd2 $ \ m -> case m of ...
1,001
checkModuleTypeNF :: Path -> ModuleTypeNF -> ModuleTypeNF -> TC () checkModuleTypeNF pmod mod1 mod2 = case (mod1, mod2) of (SigMTNF sigv1, SigMTNF sigv2) -> checkSigV pmod sigv1 sigv2 (FunMTNF bnd1, FunMTNF bnd2) -> U.lunbind2 bnd1 bnd2 $ \ m -> case m of ...
1,001
checkModuleTypeNF pmod mod1 mod2 = case (mod1, mod2) of (SigMTNF sigv1, SigMTNF sigv2) -> checkSigV pmod sigv1 sigv2 (FunMTNF bnd1, FunMTNF bnd2) -> U.lunbind2 bnd1 bnd2 $ \ m -> case m of Just (tele1, body1, tele2, body2) -> do checkTelescopeNF pmod tele1 tele2 $ do _body' <- ...
892
false
true
0
20
341
242
118
124
null
null
iu-parfunc/containers
tests/set-properties.hs
bsd-3-clause
---------------------------------------------------------------- -- Unit tests ---------------------------------------------------------------- test_lookupLT :: Assertion test_lookupLT = do lookupLT 3 (fromList [3, 5]) @?= Nothing lookupLT 5 (fromList [3, 5]) @?= Just 3
279
test_lookupLT :: Assertion test_lookupLT = do lookupLT 3 (fromList [3, 5]) @?= Nothing lookupLT 5 (fromList [3, 5]) @?= Just 3
134
test_lookupLT = do lookupLT 3 (fromList [3, 5]) @?= Nothing lookupLT 5 (fromList [3, 5]) @?= Just 3
107
true
true
0
11
34
65
34
31
null
null
fugyk/cabal
cabal-install/Distribution/Client/Setup.hs
bsd-3-clause
allowNewerParser :: ReadE AllowNewer allowNewerParser = ReadE $ \s -> case s of "" -> Right AllowNewerNone "False" -> Right AllowNewerNone "True" -> Right AllowNewerAll _ -> case readPToMaybe pkgsParser s of Just pkgs -> Right . AllowNewerSome $ pkgs Nothing -> Left...
426
allowNewerParser :: ReadE AllowNewer allowNewerParser = ReadE $ \s -> case s of "" -> Right AllowNewerNone "False" -> Right AllowNewerNone "True" -> Right AllowNewerAll _ -> case readPToMaybe pkgsParser s of Just pkgs -> Right . AllowNewerSome $ pkgs Nothing -> Left...
426
allowNewerParser = ReadE $ \s -> case s of "" -> Right AllowNewerNone "False" -> Right AllowNewerNone "True" -> Right AllowNewerAll _ -> case readPToMaybe pkgsParser s of Just pkgs -> Right . AllowNewerSome $ pkgs Nothing -> Left ("Cannot parse the list of packages:...
389
false
true
0
15
118
125
60
65
null
null
kim/amazonka
amazonka-cloudsearch/gen/Network/AWS/CloudSearch/UpdateScalingParameters.hs
mpl-2.0
uspScalingParameters :: Lens' UpdateScalingParameters ScalingParameters uspScalingParameters = lens _uspScalingParameters (\s a -> s { _uspScalingParameters = a })
167
uspScalingParameters :: Lens' UpdateScalingParameters ScalingParameters uspScalingParameters = lens _uspScalingParameters (\s a -> s { _uspScalingParameters = a })
167
uspScalingParameters = lens _uspScalingParameters (\s a -> s { _uspScalingParameters = a })
95
false
true
0
9
21
39
21
18
null
null
purcell/adventofcode2016
src/Day19.hs
bsd-3-clause
runElvesA es | S.length es >= 2 = runElvesA (S.drop 2 es S.>< S.take 1 es)
76
runElvesA es | S.length es >= 2 = runElvesA (S.drop 2 es S.>< S.take 1 es)
76
runElvesA es | S.length es >= 2 = runElvesA (S.drop 2 es S.>< S.take 1 es)
76
false
false
0
10
17
50
22
28
null
null
BlackBrane/ansigraph
src/System/Console/Ansigraph/Internal/Horizontal.hs
mit
-- | ANSI based display for positive real vectors. Primarily invoked via 'graph', 'graphWith', -- 'animate', 'animateWith'. displayPV :: MonadIO m => GraphSettings -> [Double] -> m () displayPV s l = let (rp,_) = renderRV l rcol = realColors s in colorStrLn rcol rp
289
displayPV :: MonadIO m => GraphSettings -> [Double] -> m () displayPV s l = let (rp,_) = renderRV l rcol = realColors s in colorStrLn rcol rp
163
displayPV s l = let (rp,_) = renderRV l rcol = realColors s in colorStrLn rcol rp
103
true
true
0
10
68
79
38
41
null
null
brendanhay/gogol
gogol-partners/gen/Network/Google/Partners/Types/Product.hs
mpl-2.0
-- | Creates a value of 'LogMessageRequest' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'lmrRequestMetadata' -- -- * 'lmrClientInfo' -- -- * 'lmrDetails' -- -- * 'lmrLevel' logMessageRequest :: LogMessageRequest logMessageReque...
472
logMessageRequest :: LogMessageRequest logMessageRequest = LogMessageRequest' { _lmrRequestMetadata = Nothing , _lmrClientInfo = Nothing , _lmrDetails = Nothing , _lmrLevel = Nothing }
210
logMessageRequest = LogMessageRequest' { _lmrRequestMetadata = Nothing , _lmrClientInfo = Nothing , _lmrDetails = Nothing , _lmrLevel = Nothing }
167
true
true
1
7
94
55
35
20
null
null
technogeeky/cyclotomic
src/Data/Complex/Cyclotomic.hs
gpl-3.0
-- silver ratio - 1 (aka, we're setting 1 equal to the silver ratio) -- ^ -- >>> toReal $ sqrt2 -- Just 1.414213562373095 -- ^ -- >>> toComplex2 $ sqrt2 -- 1.414213562373095 :+ (-2.220446049250313e-16) -- it :: Complex Double -- (0.00 secs, 522012 bytes) -- we can view this strange thing in two ways (if either is ...
385
light = negate (1 /(-12)) + (1/(-12)) * ir23
46
light = negate (1 /(-12)) + (1/(-12)) * ir23
46
true
false
0
11
79
53
34
19
null
null
danchoi/dsvt
Template.hs
mit
templateLine :: Bool -> String -> Context -> IO String templateLine indent rawHTML context = do let indent' = if indent then yes else no (_,res) <- runIOSLA (processTemplate indent' rawHTML) (initialState context) undefined return $ concat res
255
templateLine :: Bool -> String -> Context -> IO String templateLine indent rawHTML context = do let indent' = if indent then yes else no (_,res) <- runIOSLA (processTemplate indent' rawHTML) (initialState context) undefined return $ concat res
255
templateLine indent rawHTML context = do let indent' = if indent then yes else no (_,res) <- runIOSLA (processTemplate indent' rawHTML) (initialState context) undefined return $ concat res
200
false
true
0
10
49
94
46
48
null
null
laszlopandy/elm-compiler
src/Validate.hs
bsd-3-clause
expression :: Source.Expr -> Result.Result wrn Error.Error Valid.Expr expression (A.A ann sourceExpression) = A.A ann <$> case sourceExpression of Var x -> return (Var x) Lambda pattern body -> Lambda <$> validatePattern pattern <*> expression body Binop op left...
2,282
expression :: Source.Expr -> Result.Result wrn Error.Error Valid.Expr expression (A.A ann sourceExpression) = A.A ann <$> case sourceExpression of Var x -> return (Var x) Lambda pattern body -> Lambda <$> validatePattern pattern <*> expression body Binop op left...
2,282
expression (A.A ann sourceExpression) = A.A ann <$> case sourceExpression of Var x -> return (Var x) Lambda pattern body -> Lambda <$> validatePattern pattern <*> expression body Binop op leftExpr rightExpr -> Binop op <$> expression leftExpr ...
2,212
false
true
2
17
902
663
301
362
null
null
ksaveljev/vindinium-bot
Fao/Pathfinding.hs
mit
-- grab an item from PSQueue with minimal priority -- and update priority of its neighbours extractMin :: Graph -> Distance -> (Binding Vertex Priority, Queue) -> ((Vertex, Cost, Vertex), Queue) extractMin graph dist (destination :-> Priority cost source, queue) = ((destination, cost, source), relaxList queue adj) wh...
484
extractMin :: Graph -> Distance -> (Binding Vertex Priority, Queue) -> ((Vertex, Cost, Vertex), Queue) extractMin graph dist (destination :-> Priority cost source, queue) = ((destination, cost, source), relaxList queue adj) where adj = [(neighbour, Priority (cost + dist destination neighbour) destination) | neigh...
392
extractMin graph dist (destination :-> Priority cost source, queue) = ((destination, cost, source), relaxList queue adj) where adj = [(neighbour, Priority (cost + dist destination neighbour) destination) | neighbour <- graph destination] -- update priority of a given key in PSQueue
289
true
true
0
10
78
139
77
62
null
null
brendanhay/gogol
gogol-dfareporting/gen/Network/Google/Resource/DFAReporting/Files/List.hs
mpl-2.0
-- | The scope that defines which results are returned. flScope :: Lens' FilesList FilesListScope flScope = lens _flScope (\ s a -> s{_flScope = a})
148
flScope :: Lens' FilesList FilesListScope flScope = lens _flScope (\ s a -> s{_flScope = a})
92
flScope = lens _flScope (\ s a -> s{_flScope = a})
50
true
true
0
9
25
40
22
18
null
null
ezyang/ghc
compiler/simplCore/OccurAnal.hs
bsd-3-clause
oneShotGroup :: OccEnv -> [CoreBndr] -> ( OccEnv , [CoreBndr] ) -- The result binders have one-shot-ness set that they might not have had originally. -- This happens in (build (\c n -> e)). Here the occurrence analyser -- linearity context knows that c,n are one-sho...
1,266
oneShotGroup :: OccEnv -> [CoreBndr] -> ( OccEnv , [CoreBndr] ) oneShotGroup env@(OccEnv { occ_one_shots = ctxt }) bndrs = go ctxt bndrs [] where go ctxt [] rev_bndrs = ( env { occ_one_shots = ctxt, occ_encl = OccVanilla } , reverse rev_bndrs ) go [] bndrs rev_bnd...
915
oneShotGroup env@(OccEnv { occ_one_shots = ctxt }) bndrs = go ctxt bndrs [] where go ctxt [] rev_bndrs = ( env { occ_one_shots = ctxt, occ_encl = OccVanilla } , reverse rev_bndrs ) go [] bndrs rev_bndrs = ( env { occ_one_shots = [], occ_encl = OccVanilla } , reverse rev_bndrs ++...
822
true
true
5
10
379
233
130
103
null
null
phischu/fragnix
tests/packages/scotty/Text.PrettyPrint.HughesPJ.hs
bsd-3-clause
-- | Apply 'quotes' to 'Doc' if boolean is true. maybeQuotes :: Bool -> Doc -> Doc maybeQuotes False = id
105
maybeQuotes :: Bool -> Doc -> Doc maybeQuotes False = id
56
maybeQuotes False = id
22
true
true
0
6
20
23
12
11
null
null
Athas/X11
Graphics/X11/Xlib/Region.hs
bsd-3-clause
-- | interface to the X11 library function @XUnionRectWithRegion()@. unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt unionRectWithRegion rect src dest = with rect $ \ rect_ptr -> withRegion src $ \ src_ptr -> withRegion dest $ \ dest_ptr -> xUnionRectWithRegion rect_p...
339
unionRectWithRegion :: Rectangle -> Region -> Region -> IO CInt unionRectWithRegion rect src dest = with rect $ \ rect_ptr -> withRegion src $ \ src_ptr -> withRegion dest $ \ dest_ptr -> xUnionRectWithRegion rect_ptr src_ptr dest_ptr
270
unionRectWithRegion rect src dest = with rect $ \ rect_ptr -> withRegion src $ \ src_ptr -> withRegion dest $ \ dest_ptr -> xUnionRectWithRegion rect_ptr src_ptr dest_ptr
202
true
true
0
11
81
77
38
39
null
null
dreamersdw/fusion
Main.hs
mit
render :: Game -> Picture render g = Translate (- totalWidth / 2) (- totalWidth / 2) $ Pictures $ grid size : cards where cards = [paste e | e <- assocs (state g)] shift n = sep * (fromIntegral n) + border * ((fromIntegral n)-1) paste ((x, y), Just n) = Translate (shift y) (shift x...
374
render :: Game -> Picture render g = Translate (- totalWidth / 2) (- totalWidth / 2) $ Pictures $ grid size : cards where cards = [paste e | e <- assocs (state g)] shift n = sep * (fromIntegral n) + border * ((fromIntegral n)-1) paste ((x, y), Just n) = Translate (shift y) (shift x...
374
render g = Translate (- totalWidth / 2) (- totalWidth / 2) $ Pictures $ grid size : cards where cards = [paste e | e <- assocs (state g)] shift n = sep * (fromIntegral n) + border * ((fromIntegral n)-1) paste ((x, y), Just n) = Translate (shift y) (shift x) $ card n pa...
348
false
true
0
12
120
186
95
91
null
null
fffej/HS-Poker
LookupPatternMatch.hs
bsd-3-clause
getValueFromProduct 128877 = 4621
33
getValueFromProduct 128877 = 4621
33
getValueFromProduct 128877 = 4621
33
false
false
0
5
3
9
4
5
null
null
emc2/saltlang
src/salt/Language/Salt/Surface/AST.hs
bsd-3-clause
patternDot As { asName = sym, asPat = pat } = do namestr <- name sym nodeid <- getNodeID (patnode, patname) <- patternDot pat return (patnode <!> dquoted (string nodeid) <+> brackets (string "label = " <> dquoted (string "As | " <> strin...
640
patternDot As { asName = sym, asPat = pat } = do namestr <- name sym nodeid <- getNodeID (patnode, patname) <- patternDot pat return (patnode <!> dquoted (string nodeid) <+> brackets (string "label = " <> dquoted (string "As | " <> strin...
640
patternDot As { asName = sym, asPat = pat } = do namestr <- name sym nodeid <- getNodeID (patnode, patname) <- patternDot pat return (patnode <!> dquoted (string nodeid) <+> brackets (string "label = " <> dquoted (string "As | " <> strin...
640
false
false
0
25
268
190
88
102
null
null
myShoggoth/shakespeare
Text/Hamlet/Parse.hs
mit
xhtmlCloseStyle :: String -> CloseStyle xhtmlCloseStyle s = if Set.member s htmlEmptyTags then CloseInside else CloseSeparate
145
xhtmlCloseStyle :: String -> CloseStyle xhtmlCloseStyle s = if Set.member s htmlEmptyTags then CloseInside else CloseSeparate
145
xhtmlCloseStyle s = if Set.member s htmlEmptyTags then CloseInside else CloseSeparate
105
false
true
0
7
35
33
17
16
null
null
brendanhay/gogol
gogol-vision/gen/Network/Google/Vision/Types/Product.hs
mpl-2.0
-- | Additional information detected for the block. gcvvb1Property :: Lens' GoogleCloudVisionV1p4beta1Block (Maybe GoogleCloudVisionV1p4beta1TextAnnotationTextProperty) gcvvb1Property = lens _gcvvb1Property (\ s a -> s{_gcvvb1Property = a})
248
gcvvb1Property :: Lens' GoogleCloudVisionV1p4beta1Block (Maybe GoogleCloudVisionV1p4beta1TextAnnotationTextProperty) gcvvb1Property = lens _gcvvb1Property (\ s a -> s{_gcvvb1Property = a})
196
gcvvb1Property = lens _gcvvb1Property (\ s a -> s{_gcvvb1Property = a})
79
true
true
1
9
32
51
25
26
null
null
wavewave/madgraph-auto-dataset
src/HEP/Automation/MadGraph/Dataset/Set20110704set1.hs
gpl-3.0
webdavdir :: WebDAVRemoteDir webdavdir = WebDAVRemoteDir "paper3/jetenergy"
76
webdavdir :: WebDAVRemoteDir webdavdir = WebDAVRemoteDir "paper3/jetenergy"
75
webdavdir = WebDAVRemoteDir "paper3/jetenergy"
46
false
true
0
6
7
20
8
12
null
null
arnizamani/GslcTagger
gslctagger.hs
gpl-3.0
readInt :: ReadP Int readInt = do skipSpaces char '(' skipSpaces int <- readS_to_P (readsPrec 10) skipSpaces char ')' skipSpaces return int
171
readInt :: ReadP Int readInt = do skipSpaces char '(' skipSpaces int <- readS_to_P (readsPrec 10) skipSpaces char ')' skipSpaces return int
171
readInt = do skipSpaces char '(' skipSpaces int <- readS_to_P (readsPrec 10) skipSpaces char ')' skipSpaces return int
150
false
true
0
10
53
60
24
36
null
null
qnikst/distributed-process-tests
src/Control/Distributed/Process/Tests/Mx.hs
bsd-3-clause
testAgentTableDelete :: Int -> TestResult (Maybe Int, Maybe Int, Maybe Int) -> Process () testAgentTableDelete val result = let tId = (MxAgentId "agent-3") tKey = "key-3" in do mxSet tId tKey val get1 <- mxGet tId tKey mxDropTable tId get2 <- mxGet tId ...
410
testAgentTableDelete :: Int -> TestResult (Maybe Int, Maybe Int, Maybe Int) -> Process () testAgentTableDelete val result = let tId = (MxAgentId "agent-3") tKey = "key-3" in do mxSet tId tKey val get1 <- mxGet tId tKey mxDropTable tId get2 <- mxGet tId ...
410
testAgentTableDelete val result = let tId = (MxAgentId "agent-3") tKey = "key-3" in do mxSet tId tKey val get1 <- mxGet tId tKey mxDropTable tId get2 <- mxGet tId tKey mxSet tId tKey val get3 <- mxGet tId tKey stash result (get1, get2, get3)
278
false
true
0
10
136
151
69
82
null
null
kadena-io/pact
src-tool/Pact/Analyze/Parse/Prop.hs
bsd-3-clause
expectColumnType _ _ _ = throwError "table and column names must be statically knowable"
90
expectColumnType _ _ _ = throwError "table and column names must be statically knowable"
90
expectColumnType _ _ _ = throwError "table and column names must be statically knowable"
90
false
false
0
5
15
16
7
9
null
null
glutamate/paskell
Paskell/Pask.hs
bsd-3-clause
prints s = "print" $>> [estr s]
31
prints s = "print" $>> [estr s]
31
prints s = "print" $>> [estr s]
31
false
false
0
7
6
19
9
10
null
null
ctford/Idris-Elba-dev
src/IRTS/CodegenJavaScript.hs
bsd-3-clause
removeAllocations (JSNew con args) = JSNew con $ map removeAllocations args
77
removeAllocations (JSNew con args) = JSNew con $ map removeAllocations args
77
removeAllocations (JSNew con args) = JSNew con $ map removeAllocations args
77
false
false
0
7
12
29
13
16
null
null
juhp/stack
test/integration/tests/3520-revision-matching/Main.hs
bsd-3-clause
main :: IO () main = do putStrLn "Test disabled due to switch to pantry" {- copyFile "bad-stack.yaml" "stack.yaml" stackErrStderr ["build", "--dry-run"] $ \msg -> unless ("legacy 00-index.tar.gz" `isInfixOf` msg) $ error "Expected a warning about 00-index usage" copyFile "good-stack.yaml" "stack.yam...
358
main :: IO () main = do putStrLn "Test disabled due to switch to pantry" {- copyFile "bad-stack.yaml" "stack.yaml" stackErrStderr ["build", "--dry-run"] $ \msg -> unless ("legacy 00-index.tar.gz" `isInfixOf` msg) $ error "Expected a warning about 00-index usage" copyFile "good-stack.yaml" "stack.yam...
358
main = do putStrLn "Test disabled due to switch to pantry" {- copyFile "bad-stack.yaml" "stack.yaml" stackErrStderr ["build", "--dry-run"] $ \msg -> unless ("legacy 00-index.tar.gz" `isInfixOf` msg) $ error "Expected a warning about 00-index usage" copyFile "good-stack.yaml" "stack.yaml" stack ["b...
344
false
true
0
8
68
29
12
17
null
null
hazel-el/hazel
Hazel/Parser/OWL/Functional.hs
gpl-3.0
objectUnionOf :: Parser ClassExpression objectUnionOf = bracketed "ObjectUnionOf" $ ObjectUnionOf <$> classExpression <*> classExpression <*> many' classExpression
239
objectUnionOf :: Parser ClassExpression objectUnionOf = bracketed "ObjectUnionOf" $ ObjectUnionOf <$> classExpression <*> classExpression <*> many' classExpression
239
objectUnionOf = bracketed "ObjectUnionOf" $ ObjectUnionOf <$> classExpression <*> classExpression <*> many' classExpression
199
false
true
8
6
92
48
22
26
null
null
pascal-knodel/haskell-craft
_/links/E'3''7.hs
mit
-- "==" has higher precedence than "||". -- GHCi> quickCheck prop_or -- Ex. 3.5: prop_nAnd :: Bool -> Bool -> Bool prop_nAnd a b = not ( a Prelude.&& b ) == a `nAnd` b
176
prop_nAnd :: Bool -> Bool -> Bool prop_nAnd a b = not ( a Prelude.&& b ) == a `nAnd` b
89
prop_nAnd a b = not ( a Prelude.&& b ) == a `nAnd` b
55
true
true
0
9
43
49
27
22
null
null
luisgepeto/HaskellLearning
08 Own Types/09_functor_typeclass.hs
mit
--maybe can also be a functor -- instance Functor Maybe where -- fmap f (Just x) = Just (f x) -- fmap f Nothing = Nothing demo3 = fmap (++ " HEY GUYS IM INSIDE THE JUST") (Just "Something serious.")
208
demo3 = fmap (++ " HEY GUYS IM INSIDE THE JUST") (Just "Something serious.")
76
demo3 = fmap (++ " HEY GUYS IM INSIDE THE JUST") (Just "Something serious.")
76
true
false
1
7
49
29
15
14
null
null
sebfisch/haskell-regexp
src/Text/RegExp/Data.hs
bsd-3-clause
-- | Matches the given symbol. -- sym :: (Eq c, Show c) => c -> RegExp c sym c = psym (show c) (c==)
101
sym :: (Eq c, Show c) => c -> RegExp c sym c = psym (show c) (c==)
66
sym c = psym (show c) (c==)
27
true
true
0
8
25
59
29
30
null
null
TomMD/ghc
compiler/main/DynFlags.hs
bsd-3-clause
wayOptc _ WayDyn = []
28
wayOptc _ WayDyn = []
28
wayOptc _ WayDyn = []
28
false
false
1
6
11
15
6
9
null
null
brendanhay/gogol
gogol-testing/gen/Network/Google/Testing/Types/Product.hs
mpl-2.0
-- | Specifies the API Level on which the application is designed to run. apkmTargetSdkVersion :: Lens' APKManifest (Maybe Int32) apkmTargetSdkVersion = lens _apkmTargetSdkVersion (\ s a -> s{_apkmTargetSdkVersion = a}) . mapping _Coerce
251
apkmTargetSdkVersion :: Lens' APKManifest (Maybe Int32) apkmTargetSdkVersion = lens _apkmTargetSdkVersion (\ s a -> s{_apkmTargetSdkVersion = a}) . mapping _Coerce
177
apkmTargetSdkVersion = lens _apkmTargetSdkVersion (\ s a -> s{_apkmTargetSdkVersion = a}) . mapping _Coerce
121
true
true
1
8
47
57
28
29
null
null
jwiegley/ghc-release
libraries/containers/Data/Sequence.hs
gpl-3.0
lookupDigit i (Two a b) | i < sa = Place i a | otherwise = Place (i - sa) b where sa = size a
115
lookupDigit i (Two a b) | i < sa = Place i a | otherwise = Place (i - sa) b where sa = size a
115
lookupDigit i (Two a b) | i < sa = Place i a | otherwise = Place (i - sa) b where sa = size a
115
false
false
1
8
47
64
30
34
null
null
romanb/amazonka
amazonka-sns/gen/Network/AWS/SNS/ListSubscriptions.hs
mpl-2.0
-- | 'ListSubscriptionsResponse' constructor. -- -- The fields accessible through corresponding lenses are: -- -- * 'lsrNextToken' @::@ 'Maybe' 'Text' -- -- * 'lsrSubscriptions' @::@ ['Subscription'] -- listSubscriptionsResponse :: ListSubscriptionsResponse listSubscriptionsResponse = ListSubscriptionsResponse { _l...
384
listSubscriptionsResponse :: ListSubscriptionsResponse listSubscriptionsResponse = ListSubscriptionsResponse { _lsrSubscriptions = mempty , _lsrNextToken = Nothing }
181
listSubscriptionsResponse = ListSubscriptionsResponse { _lsrSubscriptions = mempty , _lsrNextToken = Nothing }
126
true
true
0
6
57
33
23
10
null
null
bendyworks/haskbot-plugins
haskbot-core-0.2/src/Network/Haskbot/Plugin.hs
mit
-- internal functions runPlugin :: Plugin -> SlashCom -> HaskbotM () runPlugin p slashCom = do reply <- plHandler p slashCom case reply of Just r -> addToSendQueue r _ -> return ()
198
runPlugin :: Plugin -> SlashCom -> HaskbotM () runPlugin p slashCom = do reply <- plHandler p slashCom case reply of Just r -> addToSendQueue r _ -> return ()
175
runPlugin p slashCom = do reply <- plHandler p slashCom case reply of Just r -> addToSendQueue r _ -> return ()
128
true
true
0
12
50
77
34
43
null
null
bamboo/idris-cil
src/IRTS/Cil/MaxStack.hs
bsd-3-clause
netStackChange _ Ldfld { } = 0
35
netStackChange _ Ldfld { } = 0
35
netStackChange _ Ldfld { } = 0
35
false
false
0
6
11
15
7
8
null
null
glguy/irc-core
lib/src/Irc/RawIrcMsg.hs
isc
unescapeTagVal :: Text -> Text unescapeTagVal = Text.pack . aux . Text.unpack where aux ('\\':':':xs) = ';':aux xs aux ('\\':'s':xs) = ' ':aux xs aux ('\\':'\\':xs) = '\\':aux xs aux ('\\':'r':xs) = '\r':aux xs aux ('\\':'n':xs) = '\n':aux xs aux (x:xs) = x : aux xs aux "" ...
326
unescapeTagVal :: Text -> Text unescapeTagVal = Text.pack . aux . Text.unpack where aux ('\\':':':xs) = ';':aux xs aux ('\\':'s':xs) = ' ':aux xs aux ('\\':'\\':xs) = '\\':aux xs aux ('\\':'r':xs) = '\r':aux xs aux ('\\':'n':xs) = '\n':aux xs aux (x:xs) = x : aux xs aux "" ...
326
unescapeTagVal = Text.pack . aux . Text.unpack where aux ('\\':':':xs) = ';':aux xs aux ('\\':'s':xs) = ' ':aux xs aux ('\\':'\\':xs) = '\\':aux xs aux ('\\':'r':xs) = '\r':aux xs aux ('\\':'n':xs) = '\n':aux xs aux (x:xs) = x : aux xs aux "" = ""
295
false
true
0
7
97
170
85
85
null
null
ckirkendall/hlisp
Functions.hs
gpl-2.0
lispIf _ _ = throwIO (CodeError "invalid if syntax")
52
lispIf _ _ = throwIO (CodeError "invalid if syntax")
52
lispIf _ _ = throwIO (CodeError "invalid if syntax")
52
false
false
0
7
8
20
9
11
null
null
flipstone/orville
orville-postgresql-libpq/test/Test/MarshallError.hs
mit
prop_renderMissingErrorDetailsWithFullDetails :: Property.NamedProperty prop_renderMissingErrorDetailsWithFullDetails = Property.singletonNamedProperty "Render missing column error with full details" $ let rendered = MarshallError.renderMarshallError ErrorDetailLevel.maximalErrorDetailLevel ...
540
prop_renderMissingErrorDetailsWithFullDetails :: Property.NamedProperty prop_renderMissingErrorDetailsWithFullDetails = Property.singletonNamedProperty "Render missing column error with full details" $ let rendered = MarshallError.renderMarshallError ErrorDetailLevel.maximalErrorDetailLevel ...
540
prop_renderMissingErrorDetailsWithFullDetails = Property.singletonNamedProperty "Render missing column error with full details" $ let rendered = MarshallError.renderMarshallError ErrorDetailLevel.maximalErrorDetailLevel exampleMissingColumnError in rendered === "Un...
468
false
true
0
11
128
46
22
24
null
null
ndmitchell/extra
src/Data/Tuple/Extra.hs
bsd-3-clause
-- | Converts a curried function to a function on a triple. uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d) uncurry3 f ~(a,b,c) = f a b c
140
uncurry3 :: (a -> b -> c -> d) -> ((a, b, c) -> d) uncurry3 f ~(a,b,c) = f a b c
80
uncurry3 f ~(a,b,c) = f a b c
29
true
true
0
9
34
69
38
31
null
null
GaloisInc/saw-script
src/SAWScript/Builtins.hs
bsd-3-clause
goal_insert :: Theorem -> ProofScript () goal_insert thm = do sc <- SV.scriptTopLevel getSharedContext execTactic (tacticCut sc thm)
139
goal_insert :: Theorem -> ProofScript () goal_insert thm = do sc <- SV.scriptTopLevel getSharedContext execTactic (tacticCut sc thm)
139
goal_insert thm = do sc <- SV.scriptTopLevel getSharedContext execTactic (tacticCut sc thm)
98
false
true
0
9
24
49
22
27
null
null
jwiegley/ghc-release
libraries/Cabal/cabal/Distribution/Simple/Program/Db.hs
gpl-3.0
-- |User-specify this path. Basically override any path information -- for this program in the configuration. If it's not a known -- program ignore it. -- userSpecifyPath :: String -- ^Program name -> FilePath -- ^user-specified path to the program -> ProgramDb -> ProgramDb userSpecif...
437
userSpecifyPath :: String -- ^Program name -> FilePath -- ^user-specified path to the program -> ProgramDb -> ProgramDb userSpecifyPath name path = updateUnconfiguredProgs $ flip Map.update name $ \(prog, _, args) -> Just (prog, Just path, args)
281
userSpecifyPath name path = updateUnconfiguredProgs $ flip Map.update name $ \(prog, _, args) -> Just (prog, Just path, args)
127
true
true
0
9
99
78
44
34
null
null
hpacheco/HAAP
examples/plab/svn/2017li1g183/src/BotHugo183.hs
mit
colideT4Batota :: Bool -> Jogo -> Tempo -> Tempo -> Int -> Maybe Carro colideT4Batota doAtualiza jogo tempo tick p = fmap (getCarro p) $ colideT4 doAtualiza Nothing jogo tempo tick p
182
colideT4Batota :: Bool -> Jogo -> Tempo -> Tempo -> Int -> Maybe Carro colideT4Batota doAtualiza jogo tempo tick p = fmap (getCarro p) $ colideT4 doAtualiza Nothing jogo tempo tick p
182
colideT4Batota doAtualiza jogo tempo tick p = fmap (getCarro p) $ colideT4 doAtualiza Nothing jogo tempo tick p
111
false
true
0
10
31
71
34
37
null
null
blanu/arbre
Arbre/Native.hs
gpl-2.0
mult params = integerError params
33
mult params = integerError params
33
mult params = integerError params
33
false
false
0
5
4
12
5
7
null
null
mauriciofierrom/cis194-homework
homework03/test.hs
mit
helperFunc :: Int -> [a] -> [a] helperFunc _ [] = []
52
helperFunc :: Int -> [a] -> [a] helperFunc _ [] = []
52
helperFunc _ [] = []
20
false
true
0
9
11
40
19
21
null
null
MedeaMelana/JsonGrammar
Language/JsonGrammar.hs
bsd-3-clause
rawProp :: String -> Iso (Object :- t) (Object :- Value :- t) rawProp name = Iso from to where textName = fromString name from (o :- r) = do value <- M.lookup textName o return (M.delete textName o :- value :- r) to (o :- value :- r) = do guard (notMember textName o) return (M.inse...
385
rawProp :: String -> Iso (Object :- t) (Object :- Value :- t) rawProp name = Iso from to where textName = fromString name from (o :- r) = do value <- M.lookup textName o return (M.delete textName o :- value :- r) to (o :- value :- r) = do guard (notMember textName o) return (M.inse...
385
rawProp name = Iso from to where textName = fromString name from (o :- r) = do value <- M.lookup textName o return (M.delete textName o :- value :- r) to (o :- value :- r) = do guard (notMember textName o) return (M.insert textName value o :- r) -- | Expect a specific key/value pa...
323
false
true
1
12
107
177
81
96
null
null
rueshyna/gogol
gogol-containerbuilder/gen/Network/Google/Resource/Cloudbuild/Projects/Builds/Cancel.hs
mpl-2.0
-- | Creates a value of 'ProjectsBuildsCancel' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'pbcXgafv' -- -- * 'pbcUploadProtocol' -- -- * 'pbcPp' -- -- * 'pbcAccessToken' -- -- * 'pbcUploadType' -- -- * 'pbcPayload' -- -- * 'pbcBea...
929
projectsBuildsCancel :: CancelBuildRequest -- ^ 'pbcPayload' -> Text -- ^ 'pbcId' -> Text -- ^ 'pbcProjectId' -> ProjectsBuildsCancel projectsBuildsCancel pPbcPayload_ pPbcId_ pPbcProjectId_ = ProjectsBuildsCancel' { _pbcXgafv = Nothing , _pbcUploadProtocol = Nothing , _pbcPp = True ...
538
projectsBuildsCancel pPbcPayload_ pPbcId_ pPbcProjectId_ = ProjectsBuildsCancel' { _pbcXgafv = Nothing , _pbcUploadProtocol = Nothing , _pbcPp = True , _pbcAccessToken = Nothing , _pbcUploadType = Nothing , _pbcPayload = pPbcPayload_ , _pbcBearerToken = Nothing , _pbcId = pPbcId_ ...
388
true
true
0
7
198
118
82
36
null
null
Potregon/while
src/Helper/AST.hs
gpl-3.0
astToDot :: AST -> DotGraph Node astToDot ast = graphToDot nonClusteredParams{ fmtNode = fn, globalAttributes = ga } $ evalState (commandToGraph ast empty) 0 where ga :: [GlobalAttributes] ga = [ NodeAttrs [ Attr.Shape Attr.Ellipse , Attr.LabelJust Attr.J...
5,696
astToDot :: AST -> DotGraph Node astToDot ast = graphToDot nonClusteredParams{ fmtNode = fn, globalAttributes = ga } $ evalState (commandToGraph ast empty) 0 where ga :: [GlobalAttributes] ga = [ NodeAttrs [ Attr.Shape Attr.Ellipse , Attr.LabelJust Attr.J...
5,696
astToDot ast = graphToDot nonClusteredParams{ fmtNode = fn, globalAttributes = ga } $ evalState (commandToGraph ast empty) 0 where ga :: [GlobalAttributes] ga = [ NodeAttrs [ Attr.Shape Attr.Ellipse , Attr.LabelJust Attr.JLeft , Attr.Fon...
5,663
false
true
184
10
2,147
2,036
1,094
942
null
null
nfjinjing/luka
vendor/libffi-0.1/examples/MemSpeed.hs
bsd-3-clause
timeItEnd :: TimeIt -> IO (Double, Double) timeItEnd (startCPU, startClock) = do stopCPU <- getCPUTime stopClock <- getClockTime let cpuTime = (fromIntegral (stopCPU - startCPU) / 10^12) clockTime = (timeDiffToSec $ diffClockTimes stopClock startClock) return (cpuTime, clockT...
551
timeItEnd :: TimeIt -> IO (Double, Double) timeItEnd (startCPU, startClock) = do stopCPU <- getCPUTime stopClock <- getClockTime let cpuTime = (fromIntegral (stopCPU - startCPU) / 10^12) clockTime = (timeDiffToSec $ diffClockTimes stopClock startClock) return (cpuTime, clockT...
551
timeItEnd (startCPU, startClock) = do stopCPU <- getCPUTime stopClock <- getClockTime let cpuTime = (fromIntegral (stopCPU - startCPU) / 10^12) clockTime = (timeDiffToSec $ diffClockTimes stopClock startClock) return (cpuTime, clockTime) where timeDiffToSec td ...
502
false
true
0
15
139
147
74
73
null
null
GaloisInc/sk-dev-platform
libs/lobster/testsrc/Symbion.hs
bsd-3-clause
gb :: LGraph Char gb = mkLGraph show [] [('a','b')]
51
gb :: LGraph Char gb = mkLGraph show [] [('a','b')]
51
gb = mkLGraph show [] [('a','b')]
33
false
true
0
7
9
32
17
15
null
null
gridaphobe/ghc
compiler/hsSyn/HsExpr.hs
bsd-3-clause
hsExprNeedsParens (HsLit {}) = False
45
hsExprNeedsParens (HsLit {}) = False
45
hsExprNeedsParens (HsLit {}) = False
45
false
false
0
7
13
16
8
8
null
null
qpliu/esolang
flower/hs/Parse.hs
gpl-3.0
resolve :: Unresolved -> Either [ParseError] [Definition] resolve (Unresolved definitions) = do arity <- arities definitions case partitionEithers (map (resolveAndCheck arity) definitions) of ([],definitions) -> Right definitions (errors,_) -> Left (concat errors) where resolveAndCheck ari...
534
resolve :: Unresolved -> Either [ParseError] [Definition] resolve (Unresolved definitions) = do arity <- arities definitions case partitionEithers (map (resolveAndCheck arity) definitions) of ([],definitions) -> Right definitions (errors,_) -> Left (concat errors) where resolveAndCheck ari...
534
resolve (Unresolved definitions) = do arity <- arities definitions case partitionEithers (map (resolveAndCheck arity) definitions) of ([],definitions) -> Right definitions (errors,_) -> Left (concat errors) where resolveAndCheck arity definition = resolveUndetermined arity definiti...
476
false
true
0
12
127
157
75
82
null
null
hvr/unordered-containers
tests/HashSetProperties.hs
bsd-3-clause
Eq :: [Key] -> [Key] -> Bool pEq xs = (Set.fromList xs ==) `eq` (S.fromList xs ==)
83
pEq :: [Key] -> [Key] -> Bool pEq xs = (Set.fromList xs ==) `eq` (S.fromList xs ==)
83
pEq xs = (Set.fromList xs ==) `eq` (S.fromList xs ==)
53
false
true
0
8
17
55
30
25
null
null
ezyang/ghc
compiler/typecheck/TcGenGenerics.hs
bsd-3-clause
wrapArg_P :: GenericKind -> RdrName -> Type -> LPat GhcPs wrapArg_P Gen0 v ty = mkM1_P (nlParPat $ boxRepRDR ty `nlConVarPat` [v])
130
wrapArg_P :: GenericKind -> RdrName -> Type -> LPat GhcPs wrapArg_P Gen0 v ty = mkM1_P (nlParPat $ boxRepRDR ty `nlConVarPat` [v])
130
wrapArg_P Gen0 v ty = mkM1_P (nlParPat $ boxRepRDR ty `nlConVarPat` [v])
72
false
true
0
9
21
55
28
27
null
null
YLiLarry/parser241-production-rule
src/Parser241/Parser/ProductionRule/Internal/Maker.hs
bsd-3-clause
_ |/ _ = error "(|/) can only be used in |/ Null"
49
_ |/ _ = error "(|/) can only be used in |/ Null"
49
_ |/ _ = error "(|/) can only be used in |/ Null"
49
false
false
0
5
12
15
6
9
null
null
vladimir-ipatov/ganeti
src/Ganeti/HTools/CLI.hs
gpl-2.0
oPrintInsts :: OptType oPrintInsts = (Option "" ["print-instances"] (NoArg (\ opts -> Ok opts { optShowInsts = True })) "print the final instance map", OptComplNone)
176
oPrintInsts :: OptType oPrintInsts = (Option "" ["print-instances"] (NoArg (\ opts -> Ok opts { optShowInsts = True })) "print the final instance map", OptComplNone)
176
oPrintInsts = (Option "" ["print-instances"] (NoArg (\ opts -> Ok opts { optShowInsts = True })) "print the final instance map", OptComplNone)
153
false
true
0
14
35
61
31
30
null
null
GaloisInc/galua
galua-jit/src/Galua/Micro/Type/Pretty.hs
mit
ppOpts :: [Doc] -> Doc ppOpts [] = text "⊥"
43
ppOpts :: [Doc] -> Doc ppOpts [] = text "⊥"
43
ppOpts [] = text "⊥"
20
false
true
0
6
9
26
13
13
null
null
HairyDude/pdxparse
src/EU4/Common.hs
mit
-- | Handlers for statements where RHS is irrelevant (usually "yes") handlersRhsIrrelevant :: (EU4Info g, Monad m) => Trie (StatementHandler g m) handlersRhsIrrelevant = Tr.fromList [("add_cardinal" , const (msgToPP MsgAddCardinal)) ,("add_estate_burghers_loyalty_effect", const (msgToPP (MsgAd...
6,538
handlersRhsIrrelevant :: (EU4Info g, Monad m) => Trie (StatementHandler g m) handlersRhsIrrelevant = Tr.fromList [("add_cardinal" , const (msgToPP MsgAddCardinal)) ,("add_estate_burghers_loyalty_effect", const (msgToPP (MsgAddEstateLoyaltyEffect "burghers"))) ,("add_estate_church_loyal...
6,469
handlersRhsIrrelevant = Tr.fromList [("add_cardinal" , const (msgToPP MsgAddCardinal)) ,("add_estate_burghers_loyalty_effect", const (msgToPP (MsgAddEstateLoyaltyEffect "burghers"))) ,("add_estate_church_loyalty_effect", const (msgToPP (MsgAddEstateLoyaltyEffect "clergy"))) ,("...
6,392
true
true
0
12
1,060
1,388
771
617
null
null
mzero/barley
seed/lib/Tutorial.hs
apache-2.0
-- | A assoc list that maps URLs in the tutorial to the previous and next URLs -- in the list pagePrevNext :: [(String, (Maybe Step, Maybe Step))] pagePrevNext = zip stepUrls $ zip prevList nextList where prevList = Nothing : justSteps nextList = tail justSteps ++ [Nothing] justSteps = map Just steps
315
pagePrevNext :: [(String, (Maybe Step, Maybe Step))] pagePrevNext = zip stepUrls $ zip prevList nextList where prevList = Nothing : justSteps nextList = tail justSteps ++ [Nothing] justSteps = map Just steps
221
pagePrevNext = zip stepUrls $ zip prevList nextList where prevList = Nothing : justSteps nextList = tail justSteps ++ [Nothing] justSteps = map Just steps
168
true
true
0
8
66
83
44
39
null
null
frontrowed/stratosphere
library-gen/Stratosphere/Resources/SageMakerEndpoint.hs
mit
-- | http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-endpoint.html#cfn-sagemaker-endpoint-endpointconfigname smeEndpointConfigName :: Lens' SageMakerEndpoint (Val Text) smeEndpointConfigName = lens _sageMakerEndpointEndpointConfigName (\s a -> s { _sageMakerEndpointEndpointConfigNam...
328
smeEndpointConfigName :: Lens' SageMakerEndpoint (Val Text) smeEndpointConfigName = lens _sageMakerEndpointEndpointConfigName (\s a -> s { _sageMakerEndpointEndpointConfigName = a })
182
smeEndpointConfigName = lens _sageMakerEndpointEndpointConfigName (\s a -> s { _sageMakerEndpointEndpointConfigName = a })
122
true
true
1
9
21
51
25
26
null
null
TOSPIO/yi
src/library/Yi/Paths.hs
gpl-2.0
-- | Given a path relative to application data directory, -- this function finds a path to a given data file. getDataPath :: (MonadBase IO m) => FilePath -> m FilePath getDataPath fp = liftM (</> fp) getDataDir
212
getDataPath :: (MonadBase IO m) => FilePath -> m FilePath getDataPath fp = liftM (</> fp) getDataDir
100
getDataPath fp = liftM (</> fp) getDataDir
42
true
true
0
7
39
43
23
20
null
null
GaloisInc/saw-script
saw-core/src/Verifier/SAW/Conversion.hs
bsd-3-clause
append_bvNat :: Conversion append_bvNat = globalConv "Prelude.append" Prim.append_bv
84
append_bvNat :: Conversion append_bvNat = globalConv "Prelude.append" Prim.append_bv
84
append_bvNat = globalConv "Prelude.append" Prim.append_bv
57
false
true
0
6
7
18
9
9
null
null
fumieval/machines
src/Data/Machine/Type.hs
bsd-3-clause
-------------------------------------------------------------------------------- -- Deconstruction -------------------------------------------------------------------------------- --- | Convert a 'Machine' back into a 'Plan'. The first value the --- machine yields that is tagged with the 'Left' data constructor is ---...
1,024
deconstruct :: Monad m => MachineT m k (Either a o) -> PlanT k o m a deconstruct m = PlanT $ \r y a f -> let aux k = runPlanT (deconstruct k) r y a f in runMachineT m >>= \v -> case v of Stop -> f Yield (Left o) _ -> r o Yield (Right o) k -> y o (aux k) Await g fk h -> a (aux . g) fk (a...
487
deconstruct m = PlanT $ \r y a f -> let aux k = runPlanT (deconstruct k) r y a f in runMachineT m >>= \v -> case v of Stop -> f Yield (Left o) _ -> r o Yield (Right o) k -> y o (aux k) Await g fk h -> a (aux . g) fk (aux h) -- | Use a predicate to mark a yielded value as the terminal v...
418
true
true
0
16
209
210
106
104
null
null