def require_repeated_start():
    plat = Platform.platform_detect()
    if plat == Platform.RASPBERRY_PI:
        # On the Raspberry Pi there is a bug where register reads don't send a
        # repeated start condition like the kernel smbus I2C driver functions
        # define.  As a workaround this bit in the BCM2708 driver sysfs tree can
        # be changed to enable I2C repeated starts.
        subprocess.check_call('chmod 666 /sys/module/i2c_bcm2708/parameters/combined', shell=True)
        subprocess.check_call('echo -n 1 > /sys/module/i2c_bcm2708/parameters/combined', shell=True)
    # Other platforms are a no-op because they (presumably) have the correct
    # behavior and send repeated starts.
Looks for all BUILD files
dataset/ETHPy150Open adafruit/Adafruit_Python_GPIO/Adafruit_GPIO/I2C.py/require_repeated_start--crossover with--dataset/ETHPy150Open pantsbuild/pants/src/python/pants/base/build_file.py/BuildFile.scan_build_files