Code Duplication    Length = 19-19 lines in 2 locations

dev/mini.py 1 location

@@ 625-643 (lines=19) @@
622
                    exc=True,
623
                )
624
625
    def started(self, component):
626
        """Sets up the application after startup."""
627
628
        self.log("Running.")
629
        self.log("Started event origin: ", component, lvl=verbose)
630
        populate_user_events()
631
632
        from isomer.events.system import AuthorizedEvents
633
634
        self.log(
635
            len(AuthorizedEvents),
636
            "authorized event sources:",
637
            list(AuthorizedEvents.keys()),
638
            lvl=debug,
639
        )
640
641
        self._instantiate_components()
642
        self._start_frontend()
643
        self.fire(ready(), "isomer-web")
644
645
646
def construct_graph(name, instance, args):

isomer/launcher.py 1 location

@@ 707-725 (lines=19) @@
704
                    exc=True,
705
                )
706
707
    def started(self, component):
708
        """Sets up the application after startup."""
709
710
        self.log("Running.")
711
        self.log("Started event origin: ", component, lvl=verbose)
712
        populate_user_events()
713
714
        from isomer.events.system import AuthorizedEvents
715
716
        self.log(
717
            len(AuthorizedEvents),
718
            "authorized event sources:",
719
            list(AuthorizedEvents.keys()),
720
            lvl=debug,
721
        )
722
723
        self._instantiate_components()
724
        self._start_frontend()
725
        self.fire(ready(), "isomer-web")
726
727
728
def construct_graph(ctx, name, instance, args):