Ejemplo n.º 1
0
def main(max_grid_size,
         max_genome_size,
         max_mutation_rate,
         max_threads,
         output_file=OUTPUTFILE_NAME):
    if not os.path.exists('CMakeLists.txt'):
        print('You should be at the root of the project')
        return False

    tools.fetch()

    tags = tools.tags()

    tags = [tag for tag in tags if 'singleMeasure' in tag]

    labels = ['grid_size', 'genome_size', 'mutation_rate', 'num_threads']
    labels += tags

    rows = generate_rows(max_grid_size, max_genome_size, max_mutation_rate,
                         max_threads)
    os.makedirs('experiments', exist_ok=True)

    measures = measure(tags, rows)

    for i, r in enumerate(rows):
        for tag in tags:
            rows[i] += measures[tag]

    rows.insert(0, labels)

    generate_output(rows, output_file)

    return True
Ejemplo n.º 2
0
    async def find(self, sub, *param):
        """Get a random post from a subreddit

        Will return a random post from a subreddit
        Will display NSFW results in #nsfw and SFW results in other channels
        But you can bypass this by adding "-f" at the end of your query"""
        print(param)
        if len(param) > 0 and param[0] == "-f":
            res = tools.fetch(sub, True)
        else:
            res = tools.fetch(sub)
        await self.client.say(res.url)
Ejemplo n.º 3
0
    async def kanmusunights(self):
        """r/KanMusuNights

        Shipgirls having good time
        (Shigure best girl btw)"""
        res = tools.fetch('KanMusuNights')
        await self.client.say(res.url)
Ejemplo n.º 4
0
    async def kanmusu(self):
        """r/KanMusu

        Cute shipgirls
        (Shigure best girl btw)"""
        res = tools.fetch('KanMusu')
        await self.client.say(res.url)
Ejemplo n.º 5
0
    async def smug(self):
        """r/smugs

        smug faces"""
        res = tools.fetch('smugs')
        await self.client.say(res.url)
Ejemplo n.º 6
0
    async def thh(self):
        """r/tighhighhentai

        Girls in tigh-highs doing... things"""
        res = tools.fetch('thighhighhentai')
        await self.client.say(res.url)
Ejemplo n.º 7
0
    async def legwear(self):
        """r/animelegwear

        Socks, thigh-highs, tights and other things that hug legs!"""
        res = tools.fetch('animelegwear')
        await self.client.say(res.url)
Ejemplo n.º 8
0
    async def imouto(self):
        """r/imouto

        I guess there are some siscons here"""
        res = tools.fetch('imouto')
        await self.client.say(res.url)
Ejemplo n.º 9
0
    async def bigfang(self):
        """r/massivefangs

        For people appreciating the variety of fangs"""
        res = tools.fetch('massivefangs')
        await self.client.say(res.url)
Ejemplo n.º 10
0
    async def longhhair(self):
        """r/longhairedwaifus

        Adorable girls with flowing long hair"""
        res = tools.fetch('longhairedwaifus')
        await self.client.say(res.url)
Ejemplo n.º 11
0
    async def ecchi(self):
        """r/ecchi

        NSFW anime girls"""
        res = tools.fetch('ecchi')
        await self.client.say(res.url)
Ejemplo n.º 12
0
    async def sukebei(self):
        """r/Sukebei

        More NSFW anime girls"""
        res = tools.fetch('Sukebei')
        await self.client.say(res.url)
Ejemplo n.º 13
0
    async def pantsu(self):
        """r/pantsu

        Slightly NSFW anime girls"""
        res = tools.fetch('pantsu')
        await self.client.say(res.url)
Ejemplo n.º 14
0
    async def oppai(self):
        """r/dekaihentai

        For the titty lovers"""
        res = tools.fetch('dekaihentai')
        await self.client.say(res.url)
Ejemplo n.º 15
0
    async def towel(self):
        """r/animegirlswithtowels

        Girls wearing towels"""
        res = tools.fetch('animegirlswithtowels')
        await self.client.say(res.url)
Ejemplo n.º 16
0
    async def handbra(self):
        """r/animehandbras

        Lovely girls using the handbra technique"""
        res = tools.fetch('animehandbras')
        await self.client.say(res.url)
Ejemplo n.º 17
0
    async def shorthair(self):
        """r/shorthairedwaifus

        Anime girls lacking hair length"""
        res = tools.fetch('shorthairedwaifus')
        await self.client.say(res.url)
Ejemplo n.º 18
0
    async def hentai(self):
        """r/hentai

        Really ??"""
        res = tools.fetch('hentai')
        await self.client.say(res.url)
Ejemplo n.º 19
0
    async def yuri(self):
        """r/yuri

        For girls liking girls"""
        res = tools.fetch('yuri')
        await self.client.say(res.url)
Ejemplo n.º 20
0
    async def nekogirl(self):
        """r/nekogirls

        Because we love nekos"""
        res = tools.fetch('nekogirls')
        await self.client.say(res.url)
Ejemplo n.º 21
0
    async def fang(self):
        """r/cutelittlefangs

        For girls with cute little fangs"""
        res = tools.fetch('cutelittlefangs')
        await self.client.say(res.url)
Ejemplo n.º 22
0
    async def tsundere(self):
        """r/Tsunderes

        B-Baka!"""
        res = tools.fetch('Tsunderes')
        await self.client.say(res.url)
Ejemplo n.º 23
0
    async def tying(self):
        """r/tyingherhairup

        Girls tying their hair"""
        res = tools.fetch('tyingherhairup')
        await self.client.say(res.url)
Ejemplo n.º 24
0
    async def ponytail(self):
        """r/animeponytails

        Some ponytailed girls"""
        res = tools.fetch('animeponytails')
        await self.client.say(res.url)
Ejemplo n.º 25
0
    async def zr(self):
        """r/ZettaiRyouiki

        legwear and skirts"""
        res = tools.fetch('ZettaiRyouiki')
        await self.client.say(res.url)
Ejemplo n.º 26
0
    async def pout(self):
        """r/pouts

        :<"""
        res = tools.fetch('pouts')
        await self.client.say(res.url)
Ejemplo n.º 27
0
    async def twintail(self):
        """r/twintails

        Two is better than one !"""
        res = tools.fetch('twintails')
        await self.client.say(res.url)
Ejemplo n.º 28
0
    async def nekomimi(self):
        """r/Nekomimi

        Because we never have enough nekos !"""
        res = tools.fetch('Nekomimi')
        await self.client.say(res.url)