<commit_before>#!/usr/bin/env python
# encoding: utf-8

from subprocess import call

class ADB():
    def __init__(self):
        print "Waiting for device..."
        self._run_adb(['wait-for-device'])

    ### Should I add a __del__ that reboots the device if self.shouldReboot is true?

    def _run_adb(self, args):
        def call(*args):
            print 'DEBUG MODE. I would call:', args
        return call((['adb'] + args))

    def push(self, localpath, remotepath):
        self._run_adb(['push', localpath, remotepath])

    def pull(self, remotepath, localpath="."):
        self._run_adb(['pull', remotepath, localpath])

    def remount(self):
        self.shouldReboot = True
        self._run_adb(['remount'])

    def reboot(self):
        self._run_adb(['reboot'])

    def stopB2G(self):
        self.shouldReboot = True
        self._run_adb(['shell', 'stop', 'b2g'])<commit_msg>adbhelper less text for debug<commit_after>#!/usr/bin/env python
# encoding: utf-8

from subprocess import call

class ADB():
    def __init__(self):
        print "Waiting for device..."
        self._run_adb(['wait-for-device'])

    ### Should I add a __del__ that reboots the device if self.shouldReboot is true?

    def _run_adb(self, args):
        def call(*args):
            print '$ adb ', args
        return call((['adb'] + args))

    def push(self, localpath, remotepath):
        self._run_adb(['push', localpath, remotepath])

    def pull(self, remotepath, localpath="."):
        self._run_adb(['pull', remotepath, localpath])

    def remount(self):
        self.shouldReboot = True
        self._run_adb(['remount'])

    def reboot(self):
        self._run_adb(['reboot'])

    def stopB2G(self):
        self.shouldReboot = True
        self._run_adb(['shell', 'stop', 'b2g'])
{'fraction_non_alphanumeric': 0.14380899500277625, 'fraction_numerical': 0.003331482509716824, 'mean_word_length': 2.754166666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7166335', 'n_tokens_mistral': 601, 'n_tokens_neox': 580, 'n_words': 147}