def save_sample(self, sample):
        #keys, vals = zip(*sample.items())
        keys = [x[0] for x in sample]
        vals = [x[1] for x in sample]
        sql = '''
            INSERT INTO SAMPLES
            (%(columns)s)
            VALUES
            (%(values)s)
        ''' % dict(
            columns=', '.join(keys),
            values=', '.join(['?'] * len(vals)))
        cur = self.conn.cursor()
        cur.execute(sql, vals)
        self.insert_count += 1
        if self.insert_count >= COMMIT_THRESHOLD:
            self.commit()
Return the migration for a given class name
dataset/ETHPy150Open eBay/bayesian-belief-networks/bayesian/persistance.py/SampleDB.save_sample--crossover with--dataset/ETHPy150Open twilio/stashboard/stashboard/migrations.py/find