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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
isomorphism/hackage2 | Distribution/Server/Packages/Preferred.hs | bsd-3-clause | alterPreferredInfo :: PackageName -> (PreferredInfo -> PreferredInfo) -> Update PreferredVersions ()
alterPreferredInfo name func = modify $ \p -> p { preferredMap = Map.alter (res . func . fromMaybe emptyPreferredInfo) name $ preferredMap p }
where res (PreferredInfo [] [] _) = Nothing
res (PreferredInfo ran... | 398 | alterPreferredInfo :: PackageName -> (PreferredInfo -> PreferredInfo) -> Update PreferredVersions ()
alterPreferredInfo name func = modify $ \p -> p { preferredMap = Map.alter (res . func . fromMaybe emptyPreferredInfo) name $ preferredMap p }
where res (PreferredInfo [] [] _) = Nothing
res (PreferredInfo ran... | 398 | alterPreferredInfo name func = modify $ \p -> p { preferredMap = Map.alter (res . func . fromMaybe emptyPreferredInfo) name $ preferredMap p }
where res (PreferredInfo [] [] _) = Nothing
res (PreferredInfo ranges depr _) = Just (PreferredInfo ranges depr $ consolidateRanges ranges depr) | 297 | false | true | 1 | 13 | 66 | 145 | 72 | 73 | null | null |
snoyberg/ghc | compiler/typecheck/TcEvidence.hs | bsd-3-clause | evVarsOfTerm (EvLit _) = emptyVarSet | 47 | evVarsOfTerm (EvLit _) = emptyVarSet | 47 | evVarsOfTerm (EvLit _) = emptyVarSet | 47 | false | false | 0 | 7 | 15 | 15 | 7 | 8 | null | null |
kernelim/leveldb-haskell | src/Database/LevelDB/Internal.hs | bsd-3-clause | mkCreateFilterFun :: ([ByteString] -> ByteString) -> CreateFilterFun
mkCreateFilterFun f = f'
where
f' _ ks ks_lens n_ks flen = do
let n_ks' = fromInteger . toInteger $ n_ks
ks' <- peekArray n_ks' ks
ks_lens' <- peekArray n_ks' ks_lens
keys <- mapM bstr (zip ks' ks_lens')
... | 519 | mkCreateFilterFun :: ([ByteString] -> ByteString) -> CreateFilterFun
mkCreateFilterFun f = f'
where
f' _ ks ks_lens n_ks flen = do
let n_ks' = fromInteger . toInteger $ n_ks
ks' <- peekArray n_ks' ks
ks_lens' <- peekArray n_ks' ks_lens
keys <- mapM bstr (zip ks' ks_lens')
... | 519 | mkCreateFilterFun f = f'
where
f' _ ks ks_lens n_ks flen = do
let n_ks' = fromInteger . toInteger $ n_ks
ks' <- peekArray n_ks' ks
ks_lens' <- peekArray n_ks' ks_lens
keys <- mapM bstr (zip ks' ks_lens')
let res = f keys
poke flen (fromIntegral . BS.length ... | 450 | false | true | 0 | 11 | 149 | 194 | 93 | 101 | null | null |
diflying/logitext | ClassicalFOL.hs | bsd-3-clause | commaSep1 :: ParsecT String u Identity a -> ParsecT String u Identity [a]
commaSep1 = P.commaSep1 lexer | 104 | commaSep1 :: ParsecT String u Identity a -> ParsecT String u Identity [a]
commaSep1 = P.commaSep1 lexer | 104 | commaSep1 = P.commaSep1 lexer | 30 | false | true | 0 | 8 | 17 | 47 | 21 | 26 | null | null |
formrre/yi | yi-core/src/Yi/Buffer/Undo.hs | gpl-2.0 | asRedo :: (URList -> t -> (t, (URList, S.Seq Update))) -> URList -> t
-> (t, (URList, S.Seq Update))
asRedo f ur x = let (y,(ur',rs)) = f (swapUndoRedo ur) x
in (y,(swapUndoRedo ur',rs))
where
swapUndoRedo :: URList -> URList
swapUndoRedo (URList us rs) = URList rs us
-- | undoIsAtSave... | 649 | asRedo :: (URList -> t -> (t, (URList, S.Seq Update))) -> URList -> t
-> (t, (URList, S.Seq Update))
asRedo f ur x = let (y,(ur',rs)) = f (swapUndoRedo ur) x
in (y,(swapUndoRedo ur',rs))
where
swapUndoRedo :: URList -> URList
swapUndoRedo (URList us rs) = URList rs us
-- | undoIsAtSave... | 649 | asRedo f ur x = let (y,(ur',rs)) = f (swapUndoRedo ur) x
in (y,(swapUndoRedo ur',rs))
where
swapUndoRedo :: URList -> URList
swapUndoRedo (URList us rs) = URList rs us
-- | undoIsAtSavedFilePoint. @True@ if the undo list is at a SavedFilePoint indicating
-- that the buffer has not been modi... | 541 | false | true | 4 | 11 | 147 | 174 | 90 | 84 | null | null |
bgamari/text | src/Data/Text/Lazy.hs | bsd-2-clause | -- | /O(n)/ Joins lines, after appending a terminating newline to
-- each.
unlines :: [Text] -> Text
unlines = concat . L.map (`snoc` '\n') | 139 | unlines :: [Text] -> Text
unlines = concat . L.map (`snoc` '\n') | 64 | unlines = concat . L.map (`snoc` '\n') | 38 | true | true | 0 | 7 | 24 | 35 | 21 | 14 | null | null |
nc6/tabula | tabula.hs | gpl-3.0 | ensureDataDir :: IO FilePath
ensureDataDir = do
workDir <- getAppUserDataDirectory "tabula"
createDirectoryIfMissing False workDir
return workDir | 159 | ensureDataDir :: IO FilePath
ensureDataDir = do
workDir <- getAppUserDataDirectory "tabula"
createDirectoryIfMissing False workDir
return workDir | 157 | ensureDataDir = do
workDir <- getAppUserDataDirectory "tabula"
createDirectoryIfMissing False workDir
return workDir | 128 | false | true | 0 | 8 | 29 | 38 | 16 | 22 | null | null |
tmcdonell/accelerate-ray | Scene/State.hs | bsd-3-clause | -- | Advance the world forward in time
--
advanceState :: Float -> State -> State
advanceState dt state
= setTime (get stateTime state + dt)
$ move stateLightDelta stateLightVert zz
$ move stateLightDelta stateLightHoriz xx
$ move stateEyeDelta stateEyeVert zz
$ move stateEyeDelta stateEyeHoriz xx
$ state... | 808 | advanceState :: Float -> State -> State
advanceState dt state
= setTime (get stateTime state + dt)
$ move stateLightDelta stateLightVert zz
$ move stateLightDelta stateLightHoriz xx
$ move stateEyeDelta stateEyeVert zz
$ move stateEyeDelta stateEyeHoriz xx
$ state
where
speed = get stateMoveS... | 766 | advanceState dt state
= setTime (get stateTime state + dt)
$ move stateLightDelta stateLightVert zz
$ move stateLightDelta stateLightHoriz xx
$ move stateEyeDelta stateEyeVert zz
$ move stateEyeDelta stateEyeHoriz xx
$ state
where
speed = get stateMoveSpeed state
move eye f d = case get f... | 726 | true | true | 13 | 14 | 276 | 373 | 176 | 197 | null | null |
yusent/cfdis | src/CFDI/Types/Currency.hs | mit | decimalPlaces CUR_ZWL = 2 | 25 | decimalPlaces CUR_ZWL = 2 | 25 | decimalPlaces CUR_ZWL = 2 | 25 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
fmapfmapfmap/amazonka | amazonka-codepipeline/gen/Network/AWS/CodePipeline/CreatePipeline.hs | mpl-2.0 | -- | Creates a value of 'CreatePipelineResponse' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'cprsPipeline'
--
-- * 'cprsResponseStatus'
createPipelineResponse
:: Int -- ^ 'cprsResponseStatus'
-> CreatePipelineResponse
crea... | 466 | createPipelineResponse
:: Int -- ^ 'cprsResponseStatus'
-> CreatePipelineResponse
createPipelineResponse pResponseStatus_ =
CreatePipelineResponse'
{ _cprsPipeline = Nothing
, _cprsResponseStatus = pResponseStatus_
} | 240 | createPipelineResponse pResponseStatus_ =
CreatePipelineResponse'
{ _cprsPipeline = Nothing
, _cprsResponseStatus = pResponseStatus_
} | 150 | true | true | 0 | 6 | 82 | 40 | 26 | 14 | null | null |
rahulmutt/ghcvm | compiler/Eta/DeSugar/DsArrows.hs | bsd-3-clause | dsLCmd :: DsCmdEnv -> IdSet -> Type -> Type -> LHsCmd Id -> [Id]
-> DsM (CoreExpr, IdSet)
dsLCmd ids local_vars stk_ty res_ty cmd env_ids
= dsCmd ids local_vars stk_ty res_ty (unLoc cmd) env_ids | 203 | dsLCmd :: DsCmdEnv -> IdSet -> Type -> Type -> LHsCmd Id -> [Id]
-> DsM (CoreExpr, IdSet)
dsLCmd ids local_vars stk_ty res_ty cmd env_ids
= dsCmd ids local_vars stk_ty res_ty (unLoc cmd) env_ids | 203 | dsLCmd ids local_vars stk_ty res_ty cmd env_ids
= dsCmd ids local_vars stk_ty res_ty (unLoc cmd) env_ids | 106 | false | true | 0 | 12 | 42 | 82 | 41 | 41 | null | null |
emmanueltouzery/cigale-timesheet | src/WebGui/Config.hs | mit | editConfigItem :: MonadWidget t m => Maybe (PluginConfig, ConfigItem) -> Dynamic t (Map Text [Text])
-> m (EditConfigItemRender t)
editConfigItem Nothing _ = return (constDyn "", Map.empty) | 204 | editConfigItem :: MonadWidget t m => Maybe (PluginConfig, ConfigItem) -> Dynamic t (Map Text [Text])
-> m (EditConfigItemRender t)
editConfigItem Nothing _ = return (constDyn "", Map.empty) | 204 | editConfigItem Nothing _ = return (constDyn "", Map.empty) | 58 | false | true | 0 | 12 | 41 | 85 | 41 | 44 | null | null |
Mahdi89/eTeak | src/ParseTree.hs | bsd-3-clause | cmdPos (OutputCmd pos _ _) = pos | 32 | cmdPos (OutputCmd pos _ _) = pos | 32 | cmdPos (OutputCmd pos _ _) = pos | 32 | false | false | 0 | 7 | 6 | 19 | 9 | 10 | null | null |
creichert/wai | warp/Network/Wai/Handler/Warp/MultiMap.hs | mit | pruneWith :: MMap v
-> (v -> IO Bool)
-> IO (MMap v)
pruneWith m action = I.fromAscList <$> go (I.toDescList m) []
where
go [] acc = return acc
go ((k,s):kss) acc = do
mt <- prune action s
case mt of
Nothing -> go kss acc
Just t -> go kss (... | 454 | pruneWith :: MMap v
-> (v -> IO Bool)
-> IO (MMap v)
pruneWith m action = I.fromAscList <$> go (I.toDescList m) []
where
go [] acc = return acc
go ((k,s):kss) acc = do
mt <- prune action s
case mt of
Nothing -> go kss acc
Just t -> go kss (... | 454 | pruneWith m action = I.fromAscList <$> go (I.toDescList m) []
where
go [] acc = return acc
go ((k,s):kss) acc = do
mt <- prune action s
case mt of
Nothing -> go kss acc
Just t -> go kss ((k,t) : acc)
-----------------------------------------------------------... | 381 | false | true | 0 | 13 | 151 | 167 | 82 | 85 | null | null |
sheyll/haskell-kurs-audio-demo | src/Main.hs | bsd-3-clause | pling = amp (fade 15) (sine 1200) | 33 | pling = amp (fade 15) (sine 1200) | 33 | pling = amp (fade 15) (sine 1200) | 33 | false | false | 0 | 7 | 6 | 23 | 11 | 12 | null | null |
matthewSorensen/himpress | Himpress/Transitions.hs | bsd-3-clause | sizeOf (x,_) R = ( x,0,0) | 29 | sizeOf (x,_) R = ( x,0,0) | 29 | sizeOf (x,_) R = ( x,0,0) | 29 | false | false | 1 | 6 | 9 | 28 | 15 | 13 | null | null |
snowleopard/shaking-up-ghc | src/Builder.hs | bsd-3-clause | systemBuilderPath :: Builder -> Action FilePath
systemBuilderPath builder = case builder of
Alex -> fromKey "alex"
Ar _ Stage0 -> fromKey "system-ar"
Ar _ _ -> fromKey "ar"
Autoreconf _ -> fromKey "autoreconf"
Cc _ Stage0 -> fromKey "system-cc"
Cc _ _ -> f... | 2,063 | systemBuilderPath :: Builder -> Action FilePath
systemBuilderPath builder = case builder of
Alex -> fromKey "alex"
Ar _ Stage0 -> fromKey "system-ar"
Ar _ _ -> fromKey "ar"
Autoreconf _ -> fromKey "autoreconf"
Cc _ Stage0 -> fromKey "system-cc"
Cc _ _ -> f... | 2,063 | systemBuilderPath builder = case builder of
Alex -> fromKey "alex"
Ar _ Stage0 -> fromKey "system-ar"
Ar _ _ -> fromKey "ar"
Autoreconf _ -> fromKey "autoreconf"
Cc _ Stage0 -> fromKey "system-cc"
Cc _ _ -> fromKey "cc"
-- We can't ask configure for th... | 2,015 | false | true | 27 | 18 | 762 | 480 | 235 | 245 | null | null |
treeowl/cassava | tests/UnitTests.hs | bsd-3-clause | recordsToList (S.Cons (Right x) rs) = case recordsToList rs of
l@(Left _) -> l
(Right xs) -> Right (x : xs) | 115 | recordsToList (S.Cons (Right x) rs) = case recordsToList rs of
l@(Left _) -> l
(Right xs) -> Right (x : xs) | 115 | recordsToList (S.Cons (Right x) rs) = case recordsToList rs of
l@(Left _) -> l
(Right xs) -> Right (x : xs) | 115 | false | false | 0 | 10 | 28 | 69 | 34 | 35 | null | null |
pshendry/project-euler-solutions | 0009/solution.hs | mit | main = putStrLn $ show solve | 28 | main = putStrLn $ show solve | 28 | main = putStrLn $ show solve | 28 | false | false | 3 | 5 | 5 | 18 | 6 | 12 | null | null |
ezyang/ghc | compiler/utils/Outputable.hs | bsd-3-clause | initSDocContext :: DynFlags -> PprStyle -> SDocContext
initSDocContext dflags sty = SDC
{ sdocStyle = sty
, sdocLastColour = Col.colReset
, sdocDynFlags = dflags
} | 171 | initSDocContext :: DynFlags -> PprStyle -> SDocContext
initSDocContext dflags sty = SDC
{ sdocStyle = sty
, sdocLastColour = Col.colReset
, sdocDynFlags = dflags
} | 171 | initSDocContext dflags sty = SDC
{ sdocStyle = sty
, sdocLastColour = Col.colReset
, sdocDynFlags = dflags
} | 116 | false | true | 0 | 8 | 32 | 50 | 27 | 23 | null | null |
acowley/ghc | compiler/rename/RnTypes.hs | bsd-3-clause | rnLHsMaybeKind :: HsDocContext -> Maybe (LHsKind RdrName)
-> RnM (Maybe (LHsKind Name), FreeVars)
rnLHsMaybeKind _ Nothing
= return (Nothing, emptyFVs) | 170 | rnLHsMaybeKind :: HsDocContext -> Maybe (LHsKind RdrName)
-> RnM (Maybe (LHsKind Name), FreeVars)
rnLHsMaybeKind _ Nothing
= return (Nothing, emptyFVs) | 170 | rnLHsMaybeKind _ Nothing
= return (Nothing, emptyFVs) | 55 | false | true | 0 | 12 | 38 | 64 | 31 | 33 | null | null |
romanb/aws | Aws/DynamoDb/Core.hs | bsd-3-clause | renderCondOp :: CondOp -> T.Text
renderCondOp c = case c of
DEq{} -> "EQ"
NotEq{} -> "NE"
DLE{} -> "LE"
DLT{} -> "LT"
DGE{} -> "GE"
DGT{} -> "GT"
NotNull -> "NOT_NULL"
IsNull -> "NULL"
Contains{} -> "CONTAINS"
NotContains{} -> "NOT_CONTAINS"
Begins{} -> "BEGINS_WITH"
In{}... | 355 | renderCondOp :: CondOp -> T.Text
renderCondOp c = case c of
DEq{} -> "EQ"
NotEq{} -> "NE"
DLE{} -> "LE"
DLT{} -> "LT"
DGE{} -> "GE"
DGT{} -> "GT"
NotNull -> "NOT_NULL"
IsNull -> "NULL"
Contains{} -> "CONTAINS"
NotContains{} -> "NOT_CONTAINS"
Begins{} -> "BEGINS_WITH"
In{}... | 355 | renderCondOp c = case c of
DEq{} -> "EQ"
NotEq{} -> "NE"
DLE{} -> "LE"
DLT{} -> "LT"
DGE{} -> "GE"
DGT{} -> "GT"
NotNull -> "NOT_NULL"
IsNull -> "NULL"
Contains{} -> "CONTAINS"
NotContains{} -> "NOT_CONTAINS"
Begins{} -> "BEGINS_WITH"
In{} -> "IN"
Between{} -> "BETWEE... | 322 | false | true | 0 | 8 | 101 | 152 | 74 | 78 | null | null |
Shimuuar/statistics | Statistics/Distribution.hs | bsd-2-clause | genContinuous :: (ContDistr d, PrimMonad m) => d -> Gen (PrimState m) -> m Double
genContinuous d gen = do
x <- uniform gen
return $! quantile d x
-- | Backwards compatibility with genContinuous. | 200 | genContinuous :: (ContDistr d, PrimMonad m) => d -> Gen (PrimState m) -> m Double
genContinuous d gen = do
x <- uniform gen
return $! quantile d x
-- | Backwards compatibility with genContinuous. | 200 | genContinuous d gen = do
x <- uniform gen
return $! quantile d x
-- | Backwards compatibility with genContinuous. | 118 | false | true | 0 | 10 | 39 | 74 | 35 | 39 | null | null |
beni55/cryptol | src/Cryptol/TypeCheck/Solver/Numeric/SimplifyExpr.hs | bsd-3-clause | signed :: Sign -> Integer -> Integer
signed s = case s of
Pos -> id
Neg -> negate | 107 | signed :: Sign -> Integer -> Integer
signed s = case s of
Pos -> id
Neg -> negate | 107 | signed s = case s of
Pos -> id
Neg -> negate | 70 | false | true | 0 | 7 | 44 | 38 | 19 | 19 | null | null |
aztek/voogie | src/Voogie/Parse.hs | gpl-3.0 | whiteSpace :: Parser ()
whiteSpace = Token.whiteSpace lexer | 59 | whiteSpace :: Parser ()
whiteSpace = Token.whiteSpace lexer | 59 | whiteSpace = Token.whiteSpace lexer | 35 | false | true | 0 | 7 | 7 | 27 | 11 | 16 | null | null |
matterhorn-chat/matterhorn | src/Matterhorn/Types/Messages.hs | bsd-3-clause | isReactable :: Message -> Bool
isReactable m =
isJust (messagePostId m) &&
case _mType m of
CP NormalPost -> True
CP Emote -> True
_ -> False | 167 | isReactable :: Message -> Bool
isReactable m =
isJust (messagePostId m) &&
case _mType m of
CP NormalPost -> True
CP Emote -> True
_ -> False | 167 | isReactable m =
isJust (messagePostId m) &&
case _mType m of
CP NormalPost -> True
CP Emote -> True
_ -> False | 136 | false | true | 0 | 9 | 52 | 68 | 30 | 38 | null | null |
alphaHeavy/hlint | data/Default.hs | gpl-2.0 | error "Evaluate" = snd (x,y) ==> y | 34 | error "Evaluate" = snd (x,y) ==> y | 34 | error "Evaluate" = snd (x,y) ==> y | 34 | false | false | 2 | 6 | 6 | 26 | 11 | 15 | null | null |
homam/fsm-conversational-ui | src/QnA51.hs | bsd-3-clause | n1 :: Node () Bool Bool
n1 = Node doYouKnowYourSizeQ (const id) | 63 | n1 :: Node () Bool Bool
n1 = Node doYouKnowYourSizeQ (const id) | 63 | n1 = Node doYouKnowYourSizeQ (const id) | 39 | false | true | 0 | 7 | 11 | 37 | 16 | 21 | null | null |
pseudonom/angler | Etym.hs | gpl-3.0 | loadEtyms :: FilePath -> IO (HashMap Target Origin)
loadEtyms = (toHash . fromRight' <$>) . loadVec | 99 | loadEtyms :: FilePath -> IO (HashMap Target Origin)
loadEtyms = (toHash . fromRight' <$>) . loadVec | 99 | loadEtyms = (toHash . fromRight' <$>) . loadVec | 47 | false | true | 0 | 8 | 15 | 38 | 20 | 18 | null | null |
thumphries/cryptopals | test/Test/Set1.hs | bsd-3-clause | prop_unBase64Triple_no_fail x y z = unBase64Triple x y z /= ('*', '*', '*', '*') | 80 | prop_unBase64Triple_no_fail x y z = unBase64Triple x y z /= ('*', '*', '*', '*') | 80 | prop_unBase64Triple_no_fail x y z = unBase64Triple x y z /= ('*', '*', '*', '*') | 80 | false | false | 0 | 6 | 13 | 36 | 19 | 17 | null | null |
janrain/riak-haskell-client | src/Network/Riak/Resolvable/Internal.hs | apache-2.0 | get :: (Resolvable a) => Get a
-> (Connection -> Bucket -> Key -> R -> IO (Maybe (a, VClock)))
get doGet conn bucket key r =
fmap (first resolveMany) `fmap` doGet conn bucket key r | 188 | get :: (Resolvable a) => Get a
-> (Connection -> Bucket -> Key -> R -> IO (Maybe (a, VClock)))
get doGet conn bucket key r =
fmap (first resolveMany) `fmap` doGet conn bucket key r | 188 | get doGet conn bucket key r =
fmap (first resolveMany) `fmap` doGet conn bucket key r | 89 | false | true | 0 | 15 | 43 | 96 | 49 | 47 | null | null |
brownsys/pane | src/NIB2.hs | bsd-3-clause | determineSpeed :: OF.Port -> PortSpeed
determineSpeed ofport =
case OF.portCurrentFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> case OF.portAdvertisedFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> SpeedUnknown
-- Helper function for addPort and m... | 431 | determineSpeed :: OF.Port -> PortSpeed
determineSpeed ofport =
case OF.portCurrentFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> case OF.portAdvertisedFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> SpeedUnknown
-- Helper function for addPort and m... | 431 | determineSpeed ofport =
case OF.portCurrentFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> case OF.portAdvertisedFeatures ofport of
Just pf -> highestPortSpeed pf
Nothing -> SpeedUnknown
-- Helper function for addPort and modifyPort
-- since both are very simila... | 392 | false | true | 0 | 11 | 101 | 83 | 38 | 45 | null | null |
Ongy/pulseaudio | src/Sound/Pulse/Context.hs | lgpl-3.0 | getContextState :: Context -> IO ContextState
getContextState = fmap contextStateFromInt . pa_context_get_state | 111 | getContextState :: Context -> IO ContextState
getContextState = fmap contextStateFromInt . pa_context_get_state | 111 | getContextState = fmap contextStateFromInt . pa_context_get_state | 65 | false | true | 0 | 7 | 11 | 31 | 13 | 18 | null | null |
gchrupala/morfette | src/GramLab/Binomial.hs | bsd-2-clause | divv a b | trace (show (a,b)) False = undefined | 47 | divv a b | trace (show (a,b)) False = undefined | 47 | divv a b | trace (show (a,b)) False = undefined | 47 | false | false | 0 | 11 | 9 | 34 | 16 | 18 | null | null |
noteed/covered | bin/covered.hs | bsd-3-clause | showTotalSummary :: ModuleSummary -> String
showTotalSummary modSummary =
"<tr style=\"background: #e0e0e0\">\n" ++
"<th align=left> Program Coverage Total</tt></th>\n" ++
showSummary (topFunTicked modSummary) (topFunTotal modSummary) ++
showSummary (altTicked modSummary) (altTotal modSummary) ++
... | 393 | showTotalSummary :: ModuleSummary -> String
showTotalSummary modSummary =
"<tr style=\"background: #e0e0e0\">\n" ++
"<th align=left> Program Coverage Total</tt></th>\n" ++
showSummary (topFunTicked modSummary) (topFunTotal modSummary) ++
showSummary (altTicked modSummary) (altTotal modSummary) ++
... | 393 | showTotalSummary modSummary =
"<tr style=\"background: #e0e0e0\">\n" ++
"<th align=left> Program Coverage Total</tt></th>\n" ++
showSummary (topFunTicked modSummary) (topFunTotal modSummary) ++
showSummary (altTicked modSummary) (altTotal modSummary) ++
showSummary (expTicked modSummary) (expTot... | 349 | false | true | 0 | 11 | 50 | 89 | 43 | 46 | null | null |
oldmanmike/ghc | compiler/nativeGen/X86/Ppr.hs | bsd-3-clause | pprAddr (AddrBaseIndex base index displacement)
= sdocWithPlatform $ \platform ->
let
pp_disp = ppr_disp displacement
pp_off p = pp_disp <> char '(' <> p <> char ')'
pp_reg r = pprReg (archWordFormat (target32Bit platform)) r
in
case (base, index) of
(EABaseNone, EAIndexNon... | 875 | pprAddr (AddrBaseIndex base index displacement)
= sdocWithPlatform $ \platform ->
let
pp_disp = ppr_disp displacement
pp_off p = pp_disp <> char '(' <> p <> char ')'
pp_reg r = pprReg (archWordFormat (target32Bit platform)) r
in
case (base, index) of
(EABaseNone, EAIndexNon... | 875 | pprAddr (AddrBaseIndex base index displacement)
= sdocWithPlatform $ \platform ->
let
pp_disp = ppr_disp displacement
pp_off p = pp_disp <> char '(' <> p <> char ')'
pp_reg r = pprReg (archWordFormat (target32Bit platform)) r
in
case (base, index) of
(EABaseNone, EAIndexNon... | 875 | false | false | 1 | 18 | 279 | 289 | 142 | 147 | null | null |
balangs/eTeak | src/BalsaParser.hs | bsd-3-clause | constantDecl :: BalsaParser [Binding Decl]
constantDecl = do
pos <- keyword "constant"
(_, n) <- identifier
keyword "="
v <- expr
return [otherBinding n $ constDecl pos v] | 215 | constantDecl :: BalsaParser [Binding Decl]
constantDecl = do
pos <- keyword "constant"
(_, n) <- identifier
keyword "="
v <- expr
return [otherBinding n $ constDecl pos v] | 211 | constantDecl = do
pos <- keyword "constant"
(_, n) <- identifier
keyword "="
v <- expr
return [otherBinding n $ constDecl pos v] | 168 | false | true | 0 | 10 | 71 | 79 | 35 | 44 | null | null |
pjones/xmonad-test | vendor/xmonad-contrib/XMonad/Util/Loggers.hs | bsd-2-clause | -- | Create a 'Logger' from an arbitrary shell command.
logCmd :: String -> Logger
logCmd c = io $ do (_, out, _, _) <- runInteractiveCommand c
fmap Just (hGetLine out) `E.catch` econst Nothing
-- no need to waitForProcess, we ignore SIGCHLD
-- | Get a count of filtered files in a... | 398 | logCmd :: String -> Logger
logCmd c = io $ do (_, out, _, _) <- runInteractiveCommand c
fmap Just (hGetLine out) `E.catch` econst Nothing
-- no need to waitForProcess, we ignore SIGCHLD
-- | Get a count of filtered files in a directory.
-- See 'maildirUnread' and 'maildirNew' sour... | 342 | logCmd c = io $ do (_, out, _, _) <- runInteractiveCommand c
fmap Just (hGetLine out) `E.catch` econst Nothing
-- no need to waitForProcess, we ignore SIGCHLD
-- | Get a count of filtered files in a directory.
-- See 'maildirUnread' and 'maildirNew' source for usage examples. | 315 | true | true | 0 | 12 | 101 | 77 | 40 | 37 | null | null |
jasonzoladz/persistent | persistent-sqlite/Database/Persist/Sqlite.hs | mit | -- | Allow control of WAL settings when wrapping
wrapConnectionWal :: Bool -- ^ enable WAL?
-> Sqlite.Connection
-> LogFunc
-> IO SqlBackend
wrapConnectionWal enableWal conn logFunc = do
when enableWal $ do
-- Turn on the write-ahead log
-- https... | 1,558 | wrapConnectionWal :: Bool -- ^ enable WAL?
-> Sqlite.Connection
-> LogFunc
-> IO SqlBackend
wrapConnectionWal enableWal conn logFunc = do
when enableWal $ do
-- Turn on the write-ahead log
-- https://github.com/yesodweb/persistent/issues/363
... | 1,509 | wrapConnectionWal enableWal conn logFunc = do
when enableWal $ do
-- Turn on the write-ahead log
-- https://github.com/yesodweb/persistent/issues/363
turnOnWal <- Sqlite.prepare conn "PRAGMA journal_mode=WAL;"
_ <- Sqlite.step turnOnWal
Sqlite.reset conn turnOnWal
Sql... | 1,363 | true | true | 0 | 12 | 459 | 302 | 157 | 145 | null | null |
keithodulaigh/Hets | Logic/Logic.hs | gpl-2.0 | basicSpecSyntaxes :: Syntax lid basic_spec symbol symb_items symb_map_items
=> lid -> [String]
basicSpecSyntaxes = Map.keys . serializations . language_name | 158 | basicSpecSyntaxes :: Syntax lid basic_spec symbol symb_items symb_map_items
=> lid -> [String]
basicSpecSyntaxes = Map.keys . serializations . language_name | 158 | basicSpecSyntaxes = Map.keys . serializations . language_name | 61 | false | true | 0 | 7 | 20 | 43 | 22 | 21 | null | null |
Ming-Tang/FP15 | src/FP15/Modules.hs | mit | mkImport, mkImportQual :: ModuleName -> Import
mkImport m = Import m Unqual Nothing Nothing | 91 | mkImport, mkImportQual :: ModuleName -> Import
mkImport m = Import m Unqual Nothing Nothing | 91 | mkImport m = Import m Unqual Nothing Nothing | 44 | false | true | 0 | 5 | 13 | 29 | 15 | 14 | null | null |
pparkkin/eta | compiler/ETA/CodeGen/Prim.hs | bsd-3-clause | simpleOp EqStablePtrOp = Just $ intCompOp if_icmpeq | 60 | simpleOp EqStablePtrOp = Just $ intCompOp if_icmpeq | 60 | simpleOp EqStablePtrOp = Just $ intCompOp if_icmpeq | 60 | false | false | 0 | 6 | 15 | 16 | 7 | 9 | null | null |
armoredsoftware/protocol | demos/demo2/Measurer.hs | bsd-3-clause | process :: LibXenVChan -> IO ()
process chan = do
ctrlWait chan
ed :: EvidenceDescriptor <- receive chan
let ep = measure ed
send chan ep
return () | 157 | process :: LibXenVChan -> IO ()
process chan = do
ctrlWait chan
ed :: EvidenceDescriptor <- receive chan
let ep = measure ed
send chan ep
return () | 157 | process chan = do
ctrlWait chan
ed :: EvidenceDescriptor <- receive chan
let ep = measure ed
send chan ep
return () | 125 | false | true | 0 | 11 | 37 | 76 | 31 | 45 | null | null |
plclub/lngen | src/CoqLNOutputThmSubst.hs | mit | {- | @subxt u x (close_rec k y e) = close_rec k y (subst u x e)@
when @x <> y@ and @y `notin` fv u@ and @degree k u@. -}
subst_close_rec :: ASTAnalysis -> [NtRoot] -> M String
subst_close_rec aaa nt1s =
do { thms <- processNt1Nt2Mv2' aaa nt1s thm
; names <- processNt1Nt2Mv2' aaa nt1s name
... | 2,265 | subst_close_rec :: ASTAnalysis -> [NtRoot] -> M String
subst_close_rec aaa nt1s =
do { thms <- processNt1Nt2Mv2' aaa nt1s thm
; names <- processNt1Nt2Mv2' aaa nt1s name
; types <- processNt1 aaa nt1s ntType
; let proof = repeat (mutPfStart Prop types ++ defaultSimp ++ ".")
; mu... | 2,138 | subst_close_rec aaa nt1s =
do { thms <- processNt1Nt2Mv2' aaa nt1s thm
; names <- processNt1Nt2Mv2' aaa nt1s name
; types <- processNt1 aaa nt1s ntType
; let proof = repeat (mutPfStart Prop types ++ defaultSimp ++ ".")
; mutualLemmaText2 Resolve NoRewrite NoHide [hintDb] Prop n... | 2,083 | true | true | 13 | 14 | 1,083 | 551 | 269 | 282 | null | null |
AlexanderPankiv/ghc | compiler/llvmGen/LlvmCodeGen/Base.hs | bsd-3-clause | -- | Gets metadata node for given unique
getUniqMeta :: Unique -> LlvmM (Maybe Int)
getUniqMeta s = getEnv (flip lookupUFM s . envUniqMeta) | 139 | getUniqMeta :: Unique -> LlvmM (Maybe Int)
getUniqMeta s = getEnv (flip lookupUFM s . envUniqMeta) | 98 | getUniqMeta s = getEnv (flip lookupUFM s . envUniqMeta) | 55 | true | true | 0 | 8 | 23 | 43 | 21 | 22 | null | null |
KommuSoft/dep-software | Dep.Ui.Utils.hs | gpl-3.0 | linC 160 = '\x2513' | 19 | linC 160 = '\x2513' | 19 | linC 160 = '\x2513' | 19 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
beni55/binary | src/Data/Binary/Builder.hs | bsd-3-clause | shiftr_w16 (W16# w) (I# i) = W16# (w `uncheckedShiftRL#` i) | 61 | shiftr_w16 (W16# w) (I# i) = W16# (w `uncheckedShiftRL#` i) | 61 | shiftr_w16 (W16# w) (I# i) = W16# (w `uncheckedShiftRL#` i) | 61 | false | false | 0 | 7 | 11 | 37 | 18 | 19 | null | null |
penguinland/nlp | IntegrationTest.hs | gpl-3.0 | testPrepositionalPhraseAmbig :: Test
testPrepositionalPhraseAmbig =
TestCase $ assertBool "Ambiguous prepositional phrase"
(isAmbiguousSentence "the dog eats a carrot in my refrigerator.") | 200 | testPrepositionalPhraseAmbig :: Test
testPrepositionalPhraseAmbig =
TestCase $ assertBool "Ambiguous prepositional phrase"
(isAmbiguousSentence "the dog eats a carrot in my refrigerator.") | 200 | testPrepositionalPhraseAmbig =
TestCase $ assertBool "Ambiguous prepositional phrase"
(isAmbiguousSentence "the dog eats a carrot in my refrigerator.") | 163 | false | true | 0 | 8 | 31 | 26 | 13 | 13 | null | null |
urbanslug/ghc | compiler/cmm/CLabel.hs | bsd-3-clause | needsCDecl (RtsLabel _) = False | 47 | needsCDecl (RtsLabel _) = False | 47 | needsCDecl (RtsLabel _) = False | 47 | false | false | 0 | 7 | 20 | 15 | 7 | 8 | null | null |
SKA-ScienceDataProcessor/RC | MS1/dna/DNA/Compiler/CH.hs | apache-2.0 | compileNode (ScatterGather (SG (st,merge,outs) worker scatter)) = do
masterNm <- HS.Ident <$> fresh "actor"
workerNm <- HS.Ident <$> fresh "actor"
pids <- HS.Ident <$> fresh "pids"
-- Compile expressions
exprSt <- compileExpr (Env pids None) st
exprMerge <- compileExpr (Env pids None) merge
exp... | 1,218 | compileNode (ScatterGather (SG (st,merge,outs) worker scatter)) = do
masterNm <- HS.Ident <$> fresh "actor"
workerNm <- HS.Ident <$> fresh "actor"
pids <- HS.Ident <$> fresh "pids"
-- Compile expressions
exprSt <- compileExpr (Env pids None) st
exprMerge <- compileExpr (Env pids None) merge
exp... | 1,218 | compileNode (ScatterGather (SG (st,merge,outs) worker scatter)) = do
masterNm <- HS.Ident <$> fresh "actor"
workerNm <- HS.Ident <$> fresh "actor"
pids <- HS.Ident <$> fresh "pids"
-- Compile expressions
exprSt <- compileExpr (Env pids None) st
exprMerge <- compileExpr (Env pids None) merge
exp... | 1,218 | false | false | 0 | 15 | 376 | 380 | 200 | 180 | null | null |
nikki-and-the-robots/nikki | src/test/Sorts/Tiles/Baking/Tests.hs | lgpl-3.0 | saveFailed now paired = do
let save debugMode filename paired = do
pix <- renderToPixmap debugMode now paired
saveQPixmap pix filename 100
saveIter debugMode filenamePattern paired =
forM_ (zip (tail $ inits paired) [1 :: Int ..]) $ \ (iterPaired, i) ->
sa... | 714 | saveFailed now paired = do
let save debugMode filename paired = do
pix <- renderToPixmap debugMode now paired
saveQPixmap pix filename 100
saveIter debugMode filenamePattern paired =
forM_ (zip (tail $ inits paired) [1 :: Int ..]) $ \ (iterPaired, i) ->
sa... | 714 | saveFailed now paired = do
let save debugMode filename paired = do
pix <- renderToPixmap debugMode now paired
saveQPixmap pix filename 100
saveIter debugMode filenamePattern paired =
forM_ (zip (tail $ inits paired) [1 :: Int ..]) $ \ (iterPaired, i) ->
sa... | 714 | false | false | 0 | 16 | 186 | 179 | 84 | 95 | null | null |
Teaspot-Studio/Urho3D-Haskell | src/Graphics/Urho3D/UI/FileSelector.hs | mit | fileSelectorGetFileList :: (Parent FileSelector a, Pointer ptr a, MonadIO m)
=> ptr -- ^ Pointer to fileSelector or ascentor
-> m (Ptr ListView)
fileSelectorGetFileList p = liftIO $ do
let ptr = parentPointer p
[C.exp| ListView* {$(FileSelector* ptr)->GetFileList()} |]
-- | Return path editor.
-- LineEdit* Get... | 358 | fileSelectorGetFileList :: (Parent FileSelector a, Pointer ptr a, MonadIO m)
=> ptr -- ^ Pointer to fileSelector or ascentor
-> m (Ptr ListView)
fileSelectorGetFileList p = liftIO $ do
let ptr = parentPointer p
[C.exp| ListView* {$(FileSelector* ptr)->GetFileList()} |]
-- | Return path editor.
-- LineEdit* Get... | 358 | fileSelectorGetFileList p = liftIO $ do
let ptr = parentPointer p
[C.exp| ListView* {$(FileSelector* ptr)->GetFileList()} |]
-- | Return path editor.
-- LineEdit* GetPathEdit() const { return pathEdit_; } | 209 | false | true | 0 | 11 | 60 | 81 | 42 | 39 | null | null |
bitemyapp/ganeti | src/Ganeti/Constants.hs | bsd-2-clause | cvEnodesharedfilestoragepathunusable :: (String, String, String)
cvEnodesharedfilestoragepathunusable =
("node",
Types.cVErrorCodeToRaw CvENODESHAREDFILESTORAGEPATHUNUSABLE,
"Shared file storage path unusable") | 218 | cvEnodesharedfilestoragepathunusable :: (String, String, String)
cvEnodesharedfilestoragepathunusable =
("node",
Types.cVErrorCodeToRaw CvENODESHAREDFILESTORAGEPATHUNUSABLE,
"Shared file storage path unusable") | 218 | cvEnodesharedfilestoragepathunusable =
("node",
Types.cVErrorCodeToRaw CvENODESHAREDFILESTORAGEPATHUNUSABLE,
"Shared file storage path unusable") | 153 | false | true | 0 | 7 | 22 | 34 | 20 | 14 | null | null |
pdmurray/haskell-book-ex | src/ch9/Exercises9.12.hs | bsd-3-clause | myReverse (x:xs) = myReverse xs ++ [x] | 38 | myReverse (x:xs) = myReverse xs ++ [x] | 38 | myReverse (x:xs) = myReverse xs ++ [x] | 38 | false | false | 2 | 6 | 6 | 28 | 13 | 15 | null | null |
anttisalonen/freekick | haskell/libfreekick/Freekick/Libsoccer/Database.hs | agpl-3.0 | parsePlayer :: Node -> Player
parsePlayer n = Player idnum_ per personalit skls post contract
where idnum_ = read $ fromMaybe "-1" $ lookup "id" $ eAttrs n
per = parsePersonal $ fromMaybe nullNode $ findNodeByName (eChildren n) "personal"
personalit = parsePersonality $ fromMayb... | 755 | parsePlayer :: Node -> Player
parsePlayer n = Player idnum_ per personalit skls post contract
where idnum_ = read $ fromMaybe "-1" $ lookup "id" $ eAttrs n
per = parsePersonal $ fromMaybe nullNode $ findNodeByName (eChildren n) "personal"
personalit = parsePersonality $ fromMayb... | 755 | parsePlayer n = Player idnum_ per personalit skls post contract
where idnum_ = read $ fromMaybe "-1" $ lookup "id" $ eAttrs n
per = parsePersonal $ fromMaybe nullNode $ findNodeByName (eChildren n) "personal"
personalit = parsePersonality $ fromMaybe nullNode $ findNodeByName (e... | 725 | false | true | 18 | 8 | 192 | 244 | 103 | 141 | null | null |
nevrenato/Hets_Fork | Comorphisms/HasCASL2IsabelleHOL.hs | gpl-2.0 | termIsVar :: As.Term -> Bool
termIsVar t = case t of
QualVar _ -> True
TypedTerm tr _ _ _ -> termIsVar tr
TupleTerm ts _ -> and (map termIsVar ts)
_ -> False | 203 | termIsVar :: As.Term -> Bool
termIsVar t = case t of
QualVar _ -> True
TypedTerm tr _ _ _ -> termIsVar tr
TupleTerm ts _ -> and (map termIsVar ts)
_ -> False | 203 | termIsVar t = case t of
QualVar _ -> True
TypedTerm tr _ _ _ -> termIsVar tr
TupleTerm ts _ -> and (map termIsVar ts)
_ -> False | 174 | false | true | 0 | 10 | 79 | 85 | 38 | 47 | null | null |
rueshyna/gogol | gogol-youtube/gen/Network/Google/YouTube/Types/Product.hs | mpl-2.0 | -- | Creates a value of 'LiveStreamContentDetails' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'lscdClosedCaptionsIngestionURL'
--
-- * 'lscdIsReusable'
liveStreamContentDetails
:: LiveStreamContentDetails
liveStreamContentDeta... | 441 | liveStreamContentDetails
:: LiveStreamContentDetails
liveStreamContentDetails =
LiveStreamContentDetails'
{ _lscdClosedCaptionsIngestionURL = Nothing
, _lscdIsReusable = Nothing
} | 199 | liveStreamContentDetails =
LiveStreamContentDetails'
{ _lscdClosedCaptionsIngestionURL = Nothing
, _lscdIsReusable = Nothing
} | 142 | true | true | 0 | 6 | 72 | 32 | 22 | 10 | null | null |
pawel-n/fingertree-tf | Data/FingerTree.hs | bsd-3-clause | addDigits0 m1 (Three a b c) (Four d e f g) m2 =
appendTree3 m1 (node3 a b c) (node2 d e) (node2 f g) m2 | 107 | addDigits0 m1 (Three a b c) (Four d e f g) m2 =
appendTree3 m1 (node3 a b c) (node2 d e) (node2 f g) m2 | 107 | addDigits0 m1 (Three a b c) (Four d e f g) m2 =
appendTree3 m1 (node3 a b c) (node2 d e) (node2 f g) m2 | 107 | false | false | 0 | 7 | 29 | 74 | 36 | 38 | null | null |
SWP-Ubau-SoSe2014-Haskell/SWPSoSe14 | src/RailEditor/Interpreter.hs | mit | perform tac _ IDT.Append = do
cnt <- readIORef (TAC.context tac)
if null (TAC.dataStack cnt) || null (tail $ TAC.dataStack cnt)
then showError tac "Not enough elements on stack"
else do
let (e1:e2:xs) = TAC.dataStack cnt
if not (isString e1) || not (isString e2)
then showError tac "Wro... | 541 | perform tac _ IDT.Append = do
cnt <- readIORef (TAC.context tac)
if null (TAC.dataStack cnt) || null (tail $ TAC.dataStack cnt)
then showError tac "Not enough elements on stack"
else do
let (e1:e2:xs) = TAC.dataStack cnt
if not (isString e1) || not (isString e2)
then showError tac "Wro... | 541 | perform tac _ IDT.Append = do
cnt <- readIORef (TAC.context tac)
if null (TAC.dataStack cnt) || null (tail $ TAC.dataStack cnt)
then showError tac "Not enough elements on stack"
else do
let (e1:e2:xs) = TAC.dataStack cnt
if not (isString e1) || not (isString e2)
then showError tac "Wro... | 541 | false | false | 0 | 18 | 142 | 222 | 107 | 115 | null | null |
cbrghostrider/Hacking | codeJam/2013/osmos/osmos.hs | mit | processInput :: String -> String
processInput = unlines . writeOutput . zip [1..] . map solveProblem . parseProblem . tail . lines | 130 | processInput :: String -> String
processInput = unlines . writeOutput . zip [1..] . map solveProblem . parseProblem . tail . lines | 130 | processInput = unlines . writeOutput . zip [1..] . map solveProblem . parseProblem . tail . lines | 97 | false | true | 0 | 11 | 21 | 48 | 24 | 24 | null | null |
olorin/amazonka | amazonka-ec2/gen/Network/AWS/EC2/Types/Product.hs | mpl-2.0 | -- | A description of the task.
iitdDescription :: Lens' ImportInstanceTaskDetails (Maybe Text)
iitdDescription = lens _iitdDescription (\ s a -> s{_iitdDescription = a}) | 170 | iitdDescription :: Lens' ImportInstanceTaskDetails (Maybe Text)
iitdDescription = lens _iitdDescription (\ s a -> s{_iitdDescription = a}) | 138 | iitdDescription = lens _iitdDescription (\ s a -> s{_iitdDescription = a}) | 74 | true | true | 0 | 9 | 23 | 46 | 25 | 21 | null | null |
hvr/time | test/Test/TestParseTime.hs | bsd-3-clause | localTimeFormats' :: [FormatString LocalTime]
localTimeFormats' = map FormatString $
concat [ [df ++ " " ++ tf, tf ++ " " ++ df] | FormatString df <- dayFormats,
FormatString tf <- timeOfDayFormats] | 251 | localTimeFormats' :: [FormatString LocalTime]
localTimeFormats' = map FormatString $
concat [ [df ++ " " ++ tf, tf ++ " " ++ df] | FormatString df <- dayFormats,
FormatString tf <- timeOfDayFormats] | 251 | localTimeFormats' = map FormatString $
concat [ [df ++ " " ++ tf, tf ++ " " ++ df] | FormatString df <- dayFormats,
FormatString tf <- timeOfDayFormats] | 205 | false | true | 0 | 10 | 84 | 74 | 37 | 37 | null | null |
snowleopard/alga | src/Algebra/Graph/Labelled/AdjacencyMap.hs | mit | -- | The list of edges of a graph, sorted lexicographically with respect to
-- pairs of connected vertices (i.e. edge-labels are ignored when sorting).
-- Complexity: /O(n + m)/ time and /O(m)/ memory.
--
-- @
-- edgeList 'empty' == []
-- edgeList ('vertex' x) == []
-- edgeList ('edge' e x y) == if e == 'zero'... | 485 | edgeList :: AdjacencyMap e a -> [(e, a, a)]
edgeList (AM m) =
[ (e, x, y) | (x, ys) <- Map.toAscList m, (y, e) <- Map.toAscList ys ] | 136 | edgeList (AM m) =
[ (e, x, y) | (x, ys) <- Map.toAscList m, (y, e) <- Map.toAscList ys ] | 92 | true | true | 0 | 9 | 106 | 104 | 60 | 44 | null | null |
UCSD-PL/RefScript | src/Language/Rsc/Typecheck/Types.hs | bsd-3-clause | mutRelatedBVar (BTV _ _ (Just m)) = mutRelated m | 48 | mutRelatedBVar (BTV _ _ (Just m)) = mutRelated m | 48 | mutRelatedBVar (BTV _ _ (Just m)) = mutRelated m | 48 | false | false | 0 | 9 | 8 | 28 | 13 | 15 | null | null |
brendanhay/gogol | gogol-appengine/gen/Network/Google/AppEngine/Types/Product.hs | mpl-2.0 | -- | Path to the yaml file used in deployment, used to determine runtime
-- configuration details.Required for flexible environment builds.See
-- https:\/\/cloud.google.com\/appengine\/docs\/standard\/python\/config\/appref
-- for more details.
cboAppYamlPath :: Lens' CloudBuildOptions (Maybe Text)
cboAppYamlPath
= l... | 379 | cboAppYamlPath :: Lens' CloudBuildOptions (Maybe Text)
cboAppYamlPath
= lens _cboAppYamlPath
(\ s a -> s{_cboAppYamlPath = a}) | 134 | cboAppYamlPath
= lens _cboAppYamlPath
(\ s a -> s{_cboAppYamlPath = a}) | 79 | true | true | 1 | 9 | 51 | 55 | 28 | 27 | null | null |
snoyberg/ghc | compiler/prelude/TysWiredIn.hs | bsd-3-clause | constraintKindTyConName :: Name
constraintKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Constraint") constraintKindTyConKey constraintKindTyCon | 163 | constraintKindTyConName :: Name
constraintKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Constraint") constraintKindTyConKey constraintKindTyCon | 163 | constraintKindTyConName = mkWiredInTyConName UserSyntax gHC_TYPES (fsLit "Constraint") constraintKindTyConKey constraintKindTyCon | 131 | false | true | 0 | 7 | 13 | 28 | 14 | 14 | null | null |
andreagenso/java2scala | src/J2s/Parser.hs | apache-2.0 | pZZSwitchBlock = (\ll ls -> AGS.sem_SwitchBlock_SwitchBlockAll ls ll ) <$> pFoldr1 (AGS.sem_SwitchLabels_Cons,AGS.sem_SwitchLabels_Nil) pSwitchLabel <* pSpecialSimbol "}"
<|> (\l -> AGS.sem_SwitchBlock_SwitchBlockGroups l) <$ pSpecialSimbol "}" | 263 | pZZSwitchBlock = (\ll ls -> AGS.sem_SwitchBlock_SwitchBlockAll ls ll ) <$> pFoldr1 (AGS.sem_SwitchLabels_Cons,AGS.sem_SwitchLabels_Nil) pSwitchLabel <* pSpecialSimbol "}"
<|> (\l -> AGS.sem_SwitchBlock_SwitchBlockGroups l) <$ pSpecialSimbol "}" | 263 | pZZSwitchBlock = (\ll ls -> AGS.sem_SwitchBlock_SwitchBlockAll ls ll ) <$> pFoldr1 (AGS.sem_SwitchLabels_Cons,AGS.sem_SwitchLabels_Nil) pSwitchLabel <* pSpecialSimbol "}"
<|> (\l -> AGS.sem_SwitchBlock_SwitchBlockGroups l) <$ pSpecialSimbol "}" | 263 | false | false | 4 | 10 | 42 | 79 | 39 | 40 | null | null |
brendanhay/gogol | gogol-dataproc/gen/Network/Google/Dataproc/Types/Product.hs | mpl-2.0 | -- | Optional. Corresponds to the label key of reservation resource.
raKey :: Lens' ReservationAffinity (Maybe Text)
raKey = lens _raKey (\ s a -> s{_raKey = a}) | 161 | raKey :: Lens' ReservationAffinity (Maybe Text)
raKey = lens _raKey (\ s a -> s{_raKey = a}) | 92 | raKey = lens _raKey (\ s a -> s{_raKey = a}) | 44 | true | true | 0 | 9 | 27 | 46 | 25 | 21 | null | null |
blanu/arbre | Arbre/Print.hs | gpl-2.0 | printClosureContext :: Views -> String -> Expression -> String
printClosureContext views ind (Closure lex dyn self value block) =
"{" ++ printMapping Lex lex ++ ", " ++ printMapping Dyn dyn ++ ", " ++ printMapping Self self ++ "," ++ printMapping Value value ++ "|" ++ printNestedBlock views ind block ++ "}" | 310 | printClosureContext :: Views -> String -> Expression -> String
printClosureContext views ind (Closure lex dyn self value block) =
"{" ++ printMapping Lex lex ++ ", " ++ printMapping Dyn dyn ++ ", " ++ printMapping Self self ++ "," ++ printMapping Value value ++ "|" ++ printNestedBlock views ind block ++ "}" | 310 | printClosureContext views ind (Closure lex dyn self value block) =
"{" ++ printMapping Lex lex ++ ", " ++ printMapping Dyn dyn ++ ", " ++ printMapping Self self ++ "," ++ printMapping Value value ++ "|" ++ printNestedBlock views ind block ++ "}" | 247 | false | true | 0 | 15 | 54 | 111 | 53 | 58 | null | null |
locaweb/leela | src/warpdrive/src/Leela/Data/EventTree.hs | apache-2.0 | detach :: Distribution a b -> Distribution b c -> IO ()
detach src dst = atomicModifyIORef' (dClients src) (\list -> (delete (dSource dst) list, ())) | 149 | detach :: Distribution a b -> Distribution b c -> IO ()
detach src dst = atomicModifyIORef' (dClients src) (\list -> (delete (dSource dst) list, ())) | 149 | detach src dst = atomicModifyIORef' (dClients src) (\list -> (delete (dSource dst) list, ())) | 93 | false | true | 0 | 11 | 25 | 77 | 38 | 39 | null | null |
urbanslug/ghc | compiler/prelude/TysWiredIn.hs | bsd-3-clause | unitTy :: Type
unitTy = mkTupleTy Boxed [] | 42 | unitTy :: Type
unitTy = mkTupleTy Boxed [] | 42 | unitTy = mkTupleTy Boxed [] | 27 | false | true | 0 | 6 | 7 | 26 | 10 | 16 | null | null |
jean-edouard/manager | xenmgr/Vm/Config.hs | gpl-2.0 | vmRunOnStateChange = property "run-on-state-change" | 51 | vmRunOnStateChange = property "run-on-state-change" | 51 | vmRunOnStateChange = property "run-on-state-change" | 51 | false | false | 0 | 5 | 3 | 9 | 4 | 5 | null | null |
randen/haddock | haddock-api/src/Haddock/Backends/LaTeX.hs | bsd-2-clause | -- btype in ParseIface.y in GHC
-- Used for LH arg of (->)
pREC_OP = (2 :: Int) | 104 | pREC_OP = (2 :: Int) | 21 | pREC_OP = (2 :: Int) | 21 | true | false | 1 | 5 | 42 | 17 | 9 | 8 | null | null |
kmate/HaRe | old/testing/duplication/WhereIn1_AstOut.hs | bsd-3-clause | ram = (let fred = (let x = 5 in x) in fred + x) + 1 | 51 | ram = (let fred = (let x = 5 in x) in fred + x) + 1 | 51 | ram = (let fred = (let x = 5 in x) in fred + x) + 1 | 51 | false | false | 1 | 15 | 16 | 46 | 21 | 25 | null | null |
randen/haddock | haddock-api/src/Haddock/Interface/Create.hs | bsd-2-clause | seqList (x : xs) = x `seq` seqList xs | 37 | seqList (x : xs) = x `seq` seqList xs | 37 | seqList (x : xs) = x `seq` seqList xs | 37 | false | false | 0 | 7 | 8 | 25 | 13 | 12 | null | null |
plaprade/haskoin | haskoin-core/test/Network/Haskoin/Crypto/Mnemonic/Tests.hs | unlicense | binWordsToBS :: Serialize a => [a] -> BS.ByteString
binWordsToBS = foldr f BS.empty
where
f b a = a `BS.append` encode b
{- Encode mnemonic -} | 149 | binWordsToBS :: Serialize a => [a] -> BS.ByteString
binWordsToBS = foldr f BS.empty
where
f b a = a `BS.append` encode b
{- Encode mnemonic -} | 149 | binWordsToBS = foldr f BS.empty
where
f b a = a `BS.append` encode b
{- Encode mnemonic -} | 97 | false | true | 0 | 7 | 32 | 58 | 30 | 28 | null | null |
adityagupta1089/Project-Euler-Haskell | src/problems/Problem429.hs | bsd-3-clause | main :: IO ()
-- 4! = 4*3*2*1 = 2^3.3
-- d=1,2^3,3,2^3.3
-- 10^8!=1.2.3...10^8
-- if x = p1^a1.p2^a2...pn^an then unitary divisors = pi1^ai1.pi2^ai2...pik^aik for 0<=k<=n
-- sum of squares = (1+p1^2a1)(1+p2^2a2)..(1+pn^2an)
-- e.g. 4! = 2^3.3^1, ans = (1+2^6)(1+3^2)=65*10=650
main = print $ foldl1 (\a b -> mod (a * b) ... | 488 | main :: IO ()
main = print $ foldl1 (\a b -> mod (a * b) pp) $ map
(\p -> (+ 1) $ modpow
(fromIntegral p)
(fromIntegral $ 2 * sum (map (div n) $ takeWhile (<= n) $ iterate (* p) p))
pp
)
ps | 225 | main = print $ foldl1 (\a b -> mod (a * b) pp) $ map
(\p -> (+ 1) $ modpow
(fromIntegral p)
(fromIntegral $ 2 * sum (map (div n) $ takeWhile (<= n) $ iterate (* p) p))
pp
)
ps | 211 | true | true | 0 | 17 | 118 | 140 | 75 | 65 | null | null |
alphalambda/codeworld | codeworld-requirements/src/CodeWorld/Requirements/Checker/Types.hs | apache-2.0 | getStage (AllOf _) = Multiple | 29 | getStage (AllOf _) = Multiple | 29 | getStage (AllOf _) = Multiple | 29 | false | false | 0 | 6 | 4 | 16 | 7 | 9 | null | null |
AlexanderPankiv/ghc | compiler/llvmGen/LlvmCodeGen/CodeGen.hs | bsd-3-clause | -- -----------------------------------------------------------------------------
-- * Misc
--
-- | Find CmmRegs that get assigned and allocate them on the stack
--
-- Any register that gets written needs to be allcoated on the
-- stack. This avoids having to map a CmmReg to an equivalent SSA form
-- and avoids having ... | 2,107 | funPrologue :: LiveGlobalRegs -> [CmmBlock] -> LlvmM StmtData
funPrologue live cmmBlocks = do
trash <- getTrashRegs
let getAssignedRegs :: CmmNode O O -> [CmmReg]
getAssignedRegs (CmmAssign reg _) = [reg]
-- Calls will trash all registers. Unfortunately, this needs them to
-- be stack-allocated ... | 1,473 | funPrologue live cmmBlocks = do
trash <- getTrashRegs
let getAssignedRegs :: CmmNode O O -> [CmmReg]
getAssignedRegs (CmmAssign reg _) = [reg]
-- Calls will trash all registers. Unfortunately, this needs them to
-- be stack-allocated in the first place.
getAssignedRegs (CmmUnsafeForeignCal... | 1,411 | true | true | 0 | 22 | 542 | 448 | 228 | 220 | null | null |
merijn/parsers | src/Text/Parser/Token.hs | bsd-3-clause | floating :: TokenParsing m => m Scientific
floating = decimal <**> fractExponent | 80 | floating :: TokenParsing m => m Scientific
floating = decimal <**> fractExponent | 80 | floating = decimal <**> fractExponent | 37 | false | true | 0 | 6 | 11 | 25 | 12 | 13 | null | null |
li-zhirui/EoplLangs | src/CheckedLang/Parser.hs | bsd-3-clause | typedParam :: Parser (String, Type)
typedParam = do
name <- identifier
colon
typ <- typeName
return (name, typ)
-- | LetrecExpr ::= letrec {Type Identifier ({Identifier : Type}*(,)) = Expression} in Expression | 218 | typedParam :: Parser (String, Type)
typedParam = do
name <- identifier
colon
typ <- typeName
return (name, typ)
-- | LetrecExpr ::= letrec {Type Identifier ({Identifier : Type}*(,)) = Expression} in Expression | 218 | typedParam = do
name <- identifier
colon
typ <- typeName
return (name, typ)
-- | LetrecExpr ::= letrec {Type Identifier ({Identifier : Type}*(,)) = Expression} in Expression | 182 | false | true | 0 | 9 | 40 | 56 | 26 | 30 | null | null |
headprogrammingczar/cabal | Cabal/Distribution/Simple/Setup.hs | bsd-3-clause | buildVerbose :: BuildFlags -> Verbosity
buildVerbose = fromFlagOrDefault normal . buildVerbosity | 96 | buildVerbose :: BuildFlags -> Verbosity
buildVerbose = fromFlagOrDefault normal . buildVerbosity | 96 | buildVerbose = fromFlagOrDefault normal . buildVerbosity | 56 | false | true | 0 | 6 | 10 | 22 | 11 | 11 | null | null |
mudphone/HaskellBook | src/Monoids.hs | mit | twoGen :: (Arbitrary a, Arbitrary b) => Gen (Two a b)
twoGen = do
a <- arbitrary
b <- arbitrary
return $ Two a b | 118 | twoGen :: (Arbitrary a, Arbitrary b) => Gen (Two a b)
twoGen = do
a <- arbitrary
b <- arbitrary
return $ Two a b | 118 | twoGen = do
a <- arbitrary
b <- arbitrary
return $ Two a b | 64 | false | true | 0 | 9 | 30 | 69 | 31 | 38 | null | null |
rjregenold/morse | src/Morse/Web/Views.hs | mit | -- | Comment combinator. `if` is included, so only condition is needed.
comment :: String -> Html -> Html
comment cond = Parent "comment" (ss cond') "<![endif]-->"
where cond' = "<!--[if " ++ cond ++ " ]"
ss s = StaticString (s ++) (C8.pack s) (T.pack s) | 264 | comment :: String -> Html -> Html
comment cond = Parent "comment" (ss cond') "<![endif]-->"
where cond' = "<!--[if " ++ cond ++ " ]"
ss s = StaticString (s ++) (C8.pack s) (T.pack s) | 192 | comment cond = Parent "comment" (ss cond') "<![endif]-->"
where cond' = "<!--[if " ++ cond ++ " ]"
ss s = StaticString (s ++) (C8.pack s) (T.pack s) | 158 | true | true | 4 | 8 | 56 | 101 | 45 | 56 | null | null |
beni55/HaskellNet | src/Network/HaskellNet/IMAP/Parsers.hs | bsd-3-clause | space :: Parser RespDerivs Char
space = char ' ' | 50 | space :: Parser RespDerivs Char
space = char ' ' | 50 | space = char ' ' | 18 | false | true | 1 | 5 | 11 | 24 | 9 | 15 | null | null |
GaloisInc/saw-script | saw-core/src/Verifier/SAW/UntypedAST.hs | bsd-3-clause | moduleName :: Module -> ModuleName
moduleName (Module (PosPair _ mnm) _ _) = mnm | 80 | moduleName :: Module -> ModuleName
moduleName (Module (PosPair _ mnm) _ _) = mnm | 80 | moduleName (Module (PosPair _ mnm) _ _) = mnm | 45 | false | true | 0 | 9 | 13 | 36 | 18 | 18 | null | null |
tsahyt/indexed-set | src/Data/Set/Indexed.hs | lgpl-3.0 | -- | /O(log n)/. Retrieves the minimal key of the set, and the set stripped of
-- that element.
minView :: Set (n + 1) a -> (a, Set n a)
minView x = case S.minView (coerce x) of Just x' -> fmap ISet x'
| 202 | minView :: Set (n + 1) a -> (a, Set n a)
minView x = case S.minView (coerce x) of Just x' -> fmap ISet x'
| 106 | minView x = case S.minView (coerce x) of Just x' -> fmap ISet x'
| 65 | true | true | 0 | 8 | 45 | 72 | 36 | 36 | null | null |
mcschroeder/ghc | compiler/hsSyn/HsUtils.hs | bsd-3-clause | collectLocalBinders :: HsLocalBindsLR idL idR -> [idL]
collectLocalBinders (HsValBinds binds) = collectHsIdBinders binds | 120 | collectLocalBinders :: HsLocalBindsLR idL idR -> [idL]
collectLocalBinders (HsValBinds binds) = collectHsIdBinders binds | 120 | collectLocalBinders (HsValBinds binds) = collectHsIdBinders binds | 65 | false | true | 0 | 7 | 12 | 35 | 17 | 18 | null | null |
oden-lang/oden | src/Oden/Environment.hs | mit | addImplementation :: Ord i => i -> Environment b i -> Environment b i
addImplementation impl (Environment bindings' impls) =
Environment bindings' (impl `Set.insert` impls) | 174 | addImplementation :: Ord i => i -> Environment b i -> Environment b i
addImplementation impl (Environment bindings' impls) =
Environment bindings' (impl `Set.insert` impls) | 174 | addImplementation impl (Environment bindings' impls) =
Environment bindings' (impl `Set.insert` impls) | 104 | false | true | 0 | 11 | 26 | 71 | 33 | 38 | null | null |
diminishedprime/.org | programmey_stuff/write_yourself_a_scheme/ch_06/wyas/app/Eval.hs | mit | cond (a : _) = throwError $ NumArgs 2 [a] | 41 | cond (a : _) = throwError $ NumArgs 2 [a] | 41 | cond (a : _) = throwError $ NumArgs 2 [a] | 41 | false | false | 0 | 7 | 9 | 29 | 14 | 15 | null | null |
bitemyapp/hoq | src/TypeChecking/Expressions/Utils.hs | gpl-2.0 | coverageErrorMsg :: Posn -> Maybe [Posn] -> [Error]
coverageErrorMsg pos Nothing = [Error Coverage $ emsgLC pos "Incomplete pattern matching" enull] | 148 | coverageErrorMsg :: Posn -> Maybe [Posn] -> [Error]
coverageErrorMsg pos Nothing = [Error Coverage $ emsgLC pos "Incomplete pattern matching" enull] | 148 | coverageErrorMsg pos Nothing = [Error Coverage $ emsgLC pos "Incomplete pattern matching" enull] | 96 | false | true | 0 | 8 | 20 | 50 | 25 | 25 | null | null |
wilbowma/accelerate | Data/Array/Accelerate/Language.hs | bsd-3-clause | -- |Backward permutation
--
backpermute :: (Shape ix, Shape ix', Elt a)
=> Exp ix' -- ^shape of the result array
-> (Exp ix' -> Exp ix) -- ^permutation
-> Acc (Array ix a) -- ^permuted array
-> Acc (Array ix' a)
backpermute = Acc $$$ Backper... | 324 | backpermute :: (Shape ix, Shape ix', Elt a)
=> Exp ix' -- ^shape of the result array
-> (Exp ix' -> Exp ix) -- ^permutation
-> Acc (Array ix a) -- ^permuted array
-> Acc (Array ix' a)
backpermute = Acc $$$ Backpermute | 295 | backpermute = Acc $$$ Backpermute | 33 | true | true | 0 | 11 | 125 | 91 | 47 | 44 | null | null |
zmthy/http-media | src/Network/HTTP/Media/Utils.hs | mit | ------------------------------------------------------------------------------
-- | Equivalent to 'Data.ByteString.break' (on equality against the given
-- character), but leaves out the byte that the string is broken on.
breakChar :: Char -> ByteString -> Maybe (ByteString, ByteString)
breakChar c = safeTail . BS.brea... | 577 | breakChar :: Char -> ByteString -> Maybe (ByteString, ByteString)
breakChar c = safeTail . BS.break (== c)
where
safeTail (a, b)
| BS.null b = Nothing
| otherwise = Just (a, BS.tail b)
------------------------------------------------------------------------------
-- | Trims tab and space charact... | 355 | breakChar c = safeTail . BS.break (== c)
where
safeTail (a, b)
| BS.null b = Nothing
| otherwise = Just (a, BS.tail b)
------------------------------------------------------------------------------
-- | Trims tab and space characters from both ends of a ByteString. | 289 | true | true | 0 | 9 | 94 | 99 | 52 | 47 | null | null |
dchagniot/threadscopeRestServer | src/Events/ReadEvents.hs | bsd-3-clause | buildEventLog :: ProgressView -> Either FilePath String
-> IO (HECs, String, Int, Double)
buildEventLog progress from =
case from of
Right test -> build test (testTrace test)
Left filename -> do
-- FIXME
--stopPulse <- ProgressView.startPulse progress
fmt <- readEventLogFr... | 7,184 | buildEventLog :: ProgressView -> Either FilePath String
-> IO (HECs, String, Int, Double)
buildEventLog progress from =
case from of
Right test -> build test (testTrace test)
Left filename -> do
-- FIXME
--stopPulse <- ProgressView.startPulse progress
fmt <- readEventLogFr... | 7,184 | buildEventLog progress from =
case from of
Right test -> build test (testTrace test)
Left filename -> do
-- FIXME
--stopPulse <- ProgressView.startPulse progress
fmt <- readEventLogFromFile filename
--stopPulse
case fmt of
Left err -> fail err --FIXME: report error ... | 7,080 | false | true | 48 | 15 | 2,297 | 1,660 | 905 | 755 | null | null |
cartazio/omega | src/Parser/ParseToken.hs | bsd-3-clause | lign :: Parser a -> Parser b -> Parser [a]
align p stop =
do { x <- p
; whiteSpace
; (do { try layoutSep; xs <- align p stop; return (x:xs)}) <|>
(do { try layoutEnd; stop; return[x]}) <|>
-- removing indentation happens automatically
-- in function "update" (in Parser.hs), if w... | 383 | align :: Parser a -> Parser b -> Parser [a]
align p stop =
do { x <- p
; whiteSpace
; (do { try layoutSep; xs <- align p stop; return (x:xs)}) <|>
(do { try layoutEnd; stop; return[x]}) <|>
-- removing indentation happens automatically
-- in function "update" (in Parser.hs), if ... | 383 | align p stop =
do { x <- p
; whiteSpace
; (do { try layoutSep; xs <- align p stop; return (x:xs)}) <|>
(do { try layoutEnd; stop; return[x]}) <|>
-- removing indentation happens automatically
-- in function "update" (in Parser.hs), if we see layoutEnd
(do { stop; undent; ... | 339 | false | true | 0 | 14 | 116 | 152 | 77 | 75 | null | null |
Teaspot-Studio/GPipe-Core | src/Graphics/GPipe/Internal/FrameBuffer.hs | mit | usesConstantColor ConstantColor = True | 38 | usesConstantColor ConstantColor = True | 38 | usesConstantColor ConstantColor = True | 38 | false | false | 1 | 5 | 3 | 13 | 4 | 9 | null | null |
BeautifulDestinations/fb | src/Facebook/Object/Marketing/Ad.hs | bsd-3-clause | updAd :: (R.MonadResource m, MonadBaseControl IO m, AdUpd r) =>
CreateAdId -- ^ Ad Account Id
-> r -- ^ Arguments to be passed to Facebook.
-> UserAccessToken -- ^ Optional user access token.
-> FacebookT Auth m (Either FacebookException Success)
updAd (CreateAdId id) r mtoken = postForm ("/v2.7/" <> id... | 345 | updAd :: (R.MonadResource m, MonadBaseControl IO m, AdUpd r) =>
CreateAdId -- ^ Ad Account Id
-> r -- ^ Arguments to be passed to Facebook.
-> UserAccessToken -- ^ Optional user access token.
-> FacebookT Auth m (Either FacebookException Success)
updAd (CreateAdId id) r mtoken = postForm ("/v2.7/" <> id... | 345 | updAd (CreateAdId id) r mtoken = postForm ("/v2.7/" <> id <> "") (toForm r) mtoken | 82 | false | true | 0 | 12 | 71 | 104 | 53 | 51 | null | null |
yuga/ghc-mod | Language/Haskell/GhcMod/Browse.hs | bsd-3-clause | showThing :: DynFlags -> TyThing -> Maybe String
showThing dflag tything = showThing' dflag (fromTyThing tything) | 113 | showThing :: DynFlags -> TyThing -> Maybe String
showThing dflag tything = showThing' dflag (fromTyThing tything) | 113 | showThing dflag tything = showThing' dflag (fromTyThing tything) | 64 | false | true | 0 | 7 | 15 | 42 | 19 | 23 | null | null |
rueshyna/gogol | gogol-genomics/gen/Network/Google/Genomics/Types/Product.hs | mpl-2.0 | -- | Convert reference names to the canonical representation. hg19
-- haploytypes (those reference names containing \"_hap\") are not modified
-- in any way. All other reference names are modified according to the
-- following rules: The reference name is capitalized. The \"chr\" prefix
-- is dropped for all autosomes ... | 669 | ivrNormalizeReferenceNames :: Lens' ImportVariantsRequest (Maybe Bool)
ivrNormalizeReferenceNames
= lens _ivrNormalizeReferenceNames
(\ s a -> s{_ivrNormalizeReferenceNames = a}) | 186 | ivrNormalizeReferenceNames
= lens _ivrNormalizeReferenceNames
(\ s a -> s{_ivrNormalizeReferenceNames = a}) | 115 | true | true | 0 | 9 | 96 | 54 | 31 | 23 | null | null |
roman-smrz/rawe | src/FRP/Rawe/Prelude.hs | bsd-3-clause | -- sum and product compute the sum or product of a finite list of numbers.
sum, product :: (Num (Bhv a)) => Bhv [a] -> Bhv a
sum = foldl (+) 0 | 161 | sum, product :: (Num (Bhv a)) => Bhv [a] -> Bhv a
sum = foldl (+) 0 | 85 | sum = foldl (+) 0 | 31 | true | true | 2 | 9 | 50 | 60 | 28 | 32 | null | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.