<commit_before>## Copyright (c) 2012-2014 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.

""" Run a package found with qibuild find

"""

import sys

from qisys import ui
import qibuild.find
import qibuild.parsers
import qisys.parsers
import qisys.command

def run(projects, binary, bin_args):
    """ Find binary in worktree and
        exec it with given arguments.
    """
    paths = list()
    for proj in projects:
        paths += [proj.sdk_directory]
    bin_path = qibuild.find.find(paths, binary)
    if not bin_path:
        bin_path = qisys.command.find_program(binary)<commit_msg>qibuild run: do not look for libraries<commit_after>## Copyright (c) 2012-2014 Aldebaran Robotics. All rights reserved.
## Use of this source code is governed by a BSD-style license that can be
## found in the COPYING file.

""" Run a package found with qibuild find

"""

import sys

from qisys import ui
import qibuild.find
import qibuild.parsers
import qisys.parsers
import qisys.command

def run(projects, binary, bin_args):
    """ Find binary in worktree and
        exec it with given arguments.
    """
    paths = list()
    for proj in projects:
        paths += [proj.sdk_directory]
    bin_path = qibuild.find.find_bin(paths, binary)
    if not bin_path:
        bin_path = qisys.command.find_program(binary)
{'fraction_non_alphanumeric': 0.08433734939759036, 'fraction_numerical': 0.011339475549255847, 'mean_word_length': 3.426332288401254, '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': '6305379', 'n_tokens_mistral': 454, 'n_tokens_neox': 436, 'n_words': 163}