function
stringlengths
11
56k
repo_name
stringlengths
5
60
features
list
def current(self, request, *args, **kwargs): changeset = ChangeSet.get_for_request(request) return Response({ 'direct_editing': changeset.direct_editing, 'changeset': changeset.serialize() if changeset.pk else None, })
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def direct_editing(self, request, *args, **kwargs): # django-rest-framework doesn't automatically do this for logged out requests SessionAuthentication().enforce_csrf(request) if not ChangeSet.can_direct_edit(request): raise PermissionDenied(_('You don\'t have the permission to acti...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def deactivate(self, request, *args, **kwargs): # django-rest-framework doesn't automatically do this for logged out requests SessionAuthentication().enforce_csrf(request) request.session.pop('changeset', None) request.session['direct_editing'] = False return Response({ ...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def changes(self, request, *args, **kwargs): changeset = self.get_object() changeset.fill_changes_cache() return Response([obj.serialize() for obj in changeset.iter_changed_objects()])
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def activate(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_activate(request): raise PermissionDenied(_('You can not activate this change set.')) changeset.activate(request) ...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def edit(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_edit(request): raise PermissionDenied(_('You cannot edit this change set.')) form = ChangeSetForm(instance=changeset, d...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def restore_object(self, request, *args, **kwargs): data = get_api_post_data(request) if 'id' not in data: raise ParseError('Missing id.') restore_id = data['id'] if isinstance(restore_id, str) and restore_id.isdigit(): restore_id = int(restore_id) if no...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def propose(self, request, *args, **kwargs): if not request.user.is_authenticated: raise PermissionDenied(_('You need to log in to propose changes.')) changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.title or not changeset...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def unpropose(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_unpropose(request): raise PermissionDenied(_('You cannot unpropose this change set.')) changeset.unpropose(request...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def review(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_start_review(request): raise PermissionDenied(_('You cannot review these changes.')) changeset.start_review(request.u...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def reject(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not not changeset.can_end_review(request): raise PermissionDenied(_('You cannot reject these changes.')) form = RejectForm(get_api_post...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def unreject(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_unreject(request): raise PermissionDenied(_('You cannot unreject these changes.')) changeset.unreject(request.user)...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def apply(self, request, *args, **kwargs): changeset = self.get_object() with changeset.lock_to_edit(request) as changeset: if not changeset.can_end_review(request): raise PermissionDenied(_('You cannot accept and apply these changes.')) changeset.apply(request.u...
c3nav/c3nav
[ 137, 31, 137, 17, 1461327231 ]
def __init__(self, *, detectors, rate, fmin, fknee, alpha, NET): self._rate = rate self._fmin = fmin self._fknee = fknee self._alpha = alpha self._NET = NET for d in detectors: if self._alpha[d] < 0.0: raise RuntimeError( ...
tskisner/pytoast
[ 29, 32, 29, 55, 1428597089 ]
def fmin(self, det): """(float): the minimum frequency in Hz, used as a high pass. """ return self._fmin[det]
tskisner/pytoast
[ 29, 32, 29, 55, 1428597089 ]
def alpha(self, det): """(float): the (positive!) slope exponent. """ return self._alpha[det]
tskisner/pytoast
[ 29, 32, 29, 55, 1428597089 ]
def setUp(self): story_set = story.StorySet(base_dir=os.path.dirname(__file__)) story_set.AddStory( page_module.Page('http://www.bar.com/', story_set, story_set.base_dir, name='http://www.bar.com/')) story_set.AddStory( page_module.Page('http://www.baz.com/', story_s...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def pages(self): return self.story_set.stories
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testRepr(self): page0 = self.pages[0] v = scalar.ScalarValue(page0, 'x', 'unit', 3, important=True, description='desc', tir_label='my_ir', improvement_direction=improvement_direction.DOWN) expected = ('ScalarValue(http://www.bar.com/, x, unit, 3, im...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testScalarSamePageMerging(self): page0 = self.pages[0] v0 = scalar.ScalarValue(page0, 'x', 'unit', 1, description='important metric', improvement_direction=improvement_direction.UP) v1 = scalar.ScalarValue(page0, 'x', 'unit', 2, ...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testScalarWithNoneValueMerging(self): page0 = self.pages[0] v0 = scalar.ScalarValue( page0, 'x', 'unit', 1, improvement_direction=improvement_direction.DOWN) v1 = scalar.ScalarValue(page0, 'x', 'unit', None, none_value_reason='n', improvement_direction=improvement_dir...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testScalarWithNoneReasonMustHaveNoneValue(self): page0 = self.pages[0] self.assertRaises(none_values.ValueMustHaveNoneValue, lambda: scalar.ScalarValue( page0, 'x', 'unit', 1, none_value_reason='n', improvement_direction=improvement_d...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testNoneValueAsDict(self): v = scalar.ScalarValue(None, 'x', 'unit', None, important=False, none_value_reason='n', improvement_direction=improvement_direction.DOWN) d = v.AsDictWithoutBaseClassEntries() self.assertEquals(d, {'value': None, 'none_val...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def testFromDictFloat(self): d = { 'type': 'scalar', 'name': 'x', 'units': 'unit', 'value': 42.4, 'improvement_direction': improvement_direction.UP, } v = value.Value.FromDict(d, {}) self.assertTrue(isinstance(v, scalar.ScalarValue)) self.assertEquals(v.valu...
catapult-project/catapult-csm
[ 1, 7, 1, 3, 1494852048 ]
def log(message: str, color: str = "blue") -> None: _log(message, color)
ufal/neuralmonkey
[ 407, 105, 407, 119, 1466074003 ]
def __init__(self, **kwargs): """ Initializes a VNFThresholdPolicy instance Notes: You can specify all parameters while calling this methods. A special argument named `data` will enable you to load the object from a Python dictionary Exam...
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def cpu_threshold(self): """ Get cpu_threshold value. Notes: Threshold for CPU usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def cpu_threshold(self, value): """ Set cpu_threshold value. Notes: Threshold for CPU usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def name(self): """ Get name value. Notes: Name of VNF agent policy
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def name(self, value): """ Set name value. Notes: Name of VNF agent policy
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def last_updated_by(self): """ Get last_updated_by value. Notes: ID of the user who last updated the object.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def last_updated_by(self, value): """ Set last_updated_by value. Notes: ID of the user who last updated the object.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def last_updated_date(self): """ Get last_updated_date value. Notes: Time stamp when this object was last updated.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def last_updated_date(self, value): """ Set last_updated_date value. Notes: Time stamp when this object was last updated.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def action(self): """ Get action value. Notes: Action to be taken on threshold crossover
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def action(self, value): """ Set action value. Notes: Action to be taken on threshold crossover
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def memory_threshold(self): """ Get memory_threshold value. Notes: Threshold for memory usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def memory_threshold(self, value): """ Set memory_threshold value. Notes: Threshold for memory usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def description(self): """ Get description value. Notes: Description of VNF agent policy
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def description(self, value): """ Set description value. Notes: Description of VNF agent policy
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def min_occurrence(self): """ Get min_occurrence value. Notes: Minimum number of threshold crossover occurrence during monitoring interval before taking specified action
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def min_occurrence(self, value): """ Set min_occurrence value. Notes: Minimum number of threshold crossover occurrence during monitoring interval before taking specified action
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def embedded_metadata(self): """ Get embedded_metadata value. Notes: Metadata objects associated with this entity. This will contain a list of Metadata objects if the API request is made using the special flag to enable the embedded Metadata feature. Only a maximum of Metadata objec...
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def embedded_metadata(self, value): """ Set embedded_metadata value. Notes: Metadata objects associated with this entity. This will contain a list of Metadata objects if the API request is made using the special flag to enable the embedded Metadata feature. Only a maximum of Metadat...
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def entity_scope(self): """ Get entity_scope value. Notes: Specify if scope of entity is Data center or Enterprise level
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def entity_scope(self, value): """ Set entity_scope value. Notes: Specify if scope of entity is Data center or Enterprise level
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def monit_interval(self): """ Get monit_interval value. Notes: Monitoring interval (minutes) for threshold crossover occurrences to be considered
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def monit_interval(self, value): """ Set monit_interval value. Notes: Monitoring interval (minutes) for threshold crossover occurrences to be considered
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def creation_date(self): """ Get creation_date value. Notes: Time stamp when this object was created.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def creation_date(self, value): """ Set creation_date value. Notes: Time stamp when this object was created.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def assoc_entity_type(self): """ Get assoc_entity_type value. Notes: Type of the entity to which the Metadata is associated to.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def assoc_entity_type(self, value): """ Set assoc_entity_type value. Notes: Type of the entity to which the Metadata is associated to.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def storage_threshold(self): """ Get storage_threshold value. Notes: Threshold for storage usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def storage_threshold(self, value): """ Set storage_threshold value. Notes: Threshold for storage usage
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def owner(self): """ Get owner value. Notes: Identifies the user that has created this object.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def owner(self, value): """ Set owner value. Notes: Identifies the user that has created this object.
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def external_id(self): """ Get external_id value. Notes: External object ID. Used for integration with third party systems
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def external_id(self, value): """ Set external_id value. Notes: External object ID. Used for integration with third party systems
nuagenetworks/vspk-python
[ 19, 18, 19, 7, 1457133058 ]
def __init__ ( self , chain , ## input TChain/TTree selection = {} , ## selection/cuts save_vars = () , ## list of variables to save new_vars = {} , ## new variables no_vars...
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def __str__ ( self ) : return self.__report
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def output ( self ) : """``output'' : the output file name""" return self.__output
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def chain ( self ) : """``chain'': the reduced chain/tree (same as tree)""" return self.__chain
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def name ( self ) : """``name'' : the output chain name""" return self.__name
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def tree ( self ) : """``tree'': the reduced chain/tree (same as chain)""" return self.__chain
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def table ( self ) : """``table'' : get the statitics as table""" return self.__table
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def report ( self ) : """``report'' : get the statitics report""" return self.__report
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def reduce ( tree , selection , save_vars = () , new_vars = {} , no_vars = () , output = '' , name = '' , addselvars = False , silent = False ) :
OstapHEP/ostap
[ 15, 10, 15, 9, 1486653996 ]
def test_loc_setitem_multiindex_columns(self, consolidate): # GH#18415 Setting values in a single column preserves dtype, # while setting them in multiple columns did unwanted cast. # Note that A here has 2 blocks, below we do the same thing # with a consolidated frame. A = Da...
pandas-dev/pandas
[ 37157, 15883, 37157, 3678, 1282613853 ]
def test_6942(indexer_al): # check that the .at __setitem__ after setting "Live" actually sets the data start = Timestamp("2014-04-01") t1 = Timestamp("2014-04-23 12:42:38.883082") t2 = Timestamp("2014-04-24 01:33:30.040039") dti = date_range(start, periods=1) orig = DataFrame(index=dti, column...
pandas-dev/pandas
[ 37157, 15883, 37157, 3678, 1282613853 ]
def test_15231(): df = DataFrame([[1, 2], [3, 4]], columns=["a", "b"]) df.loc[2] = Series({"a": 5, "b": 6}) assert (df.dtypes == np.int64).all() df.loc[3] = Series({"a": 7}) # df["a"] doesn't have any NaNs, should not have been cast exp_dtypes = Series([np.int64, np.float64], dtype=object, ind...
pandas-dev/pandas
[ 37157, 15883, 37157, 3678, 1282613853 ]
def test_iloc_setitem_unnecesssary_float_upcasting(): # GH#12255 df = DataFrame( { 0: np.array([1, 3], dtype=np.float32), 1: np.array([2, 4], dtype=np.float32), 2: ["a", "b"], } ) orig = df.copy() values = df[0].values.reshape(2, 1) df.iloc[:,...
pandas-dev/pandas
[ 37157, 15883, 37157, 3678, 1282613853 ]
def test_12499(): # TODO: OP in GH#12499 used np.datetim64("NaT") instead of pd.NaT, # which has consequences for the expected df["two"] (though i think at # the time it might not have because of a separate bug). See if it makes # a difference which one we use here. ts = Timestamp("2016-03-01 03:...
pandas-dev/pandas
[ 37157, 15883, 37157, 3678, 1282613853 ]
def valid_user(filter_trips,trips): valid = False if len(filter_trips) >= 10 and len(filter_trips) / len(trips) >= 0.5: valid = True return valid
e-mission/e-mission-server
[ 20, 103, 20, 11, 1415342342 ]
def get_queryset(self): return Article.objects.published()
ilendl2/chrisdev-cookiecutter
[ 1, 1, 1, 2, 1392818821 ]
def get_queryset(self): return Article.objects.published()
ilendl2/chrisdev-cookiecutter
[ 1, 1, 1, 2, 1392818821 ]
def get_context_data(self, **kwargs): context = super(ArticleDetailView, self).get_context_data(**kwargs) context['section_list'] = Section.objects.all() return context
ilendl2/chrisdev-cookiecutter
[ 1, 1, 1, 2, 1392818821 ]
def maketopo_hilo(): x = loadtxt('x.txt') y = loadtxt('y.txt') z = loadtxt('z.txt')
rjleveque/tsunami_benchmarks
[ 2, 3, 2, 1, 1417293488 ]
def maketopo_flat(): """ Output topography file for the entire domain """ nxpoints = 201 nypoints = 301 xlower = 204.812 xupper = 205.012 ylower = 19.7 yupper = 20.0 outfile= "flat.tt2" topotools.topo2writer(outfile,topo_flat,xlower,xupper,ylower,yupper,nxpoints,nypoints...
rjleveque/tsunami_benchmarks
[ 2, 3, 2, 1, 1417293488 ]
def plot_topo_big(): figure(figsize=(8,12)) topo1 = topotools.Topography() topo1.read('flat.tt2',2) contourf(topo1.x,topo1.y,topo1.Z,linspace(-30,20,51), extend='both') topo2 = topotools.Topography() topo2.read('hilo_flattened.tt2',2) contourf(topo2.x,topo2.y,topo2.Z,linspace(-30,20,51), ext...
rjleveque/tsunami_benchmarks
[ 2, 3, 2, 1, 1417293488 ]
def __init__(self): self._registry = {} # gadget hash -> gadget object.
praekelt/django-analytics
[ 33, 6, 33, 2, 1305634483 ]
def get_gadgets(self): return self._registry.values()
praekelt/django-analytics
[ 33, 6, 33, 2, 1305634483 ]
def _Colorize(color, text): # |color| as a string to avoid pylint's no-member warning :(. # pylint: disable=no-member return getattr(colorama.Fore, color) + text + colorama.Fore.RESET
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def install(device): if install_dict: installer.Install(device, install_dict, apk=apk) else: device.Install(apk)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _UninstallApk(devices, install_dict, package_name): def uninstall(device): if install_dict: installer.Uninstall(device, package_name) else: device.Uninstall(package_name) device_utils.DeviceUtils.parallel(devices).pMap(uninstall)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def launch(device): # The flags are first updated with input args. changer = flag_changer.FlagChanger(device, device_args_file) flags = [] if input_args: flags = shlex.split(input_args) changer.ReplaceFlags(flags) # Then launch the apk. if url is None: # Simulate app icon click i...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _ChangeFlags(devices, input_args, device_args_file): if input_args is None: _DisplayArgs(devices, device_args_file) else: flags = shlex.split(input_args) def update(device): flag_changer.FlagChanger(device, device_args_file).ReplaceFlags(flags) device_utils.DeviceUtils.parallel(devices).pM...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _RunGdb(device, package_name, output_directory, target_cpu, extra_args, verbose): gdb_script_path = os.path.dirname(__file__) + '/adb_gdb' cmd = [ gdb_script_path, '--package-name=%s' % package_name, '--output-directory=%s' % output_directory, '--adb=%s' % adb_wrapper.AdbWrap...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _RunMemUsage(devices, package_name): def mem_usage_helper(d): ret = [] proc_map = d.GetPids(package_name) for name, pids in proc_map.iteritems(): for pid in pids: ret.append((name, pid, d.GetMemoryUsageForPid(pid))) return ret parallel_devices = device_utils.DeviceUtils.parallel(d...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _RunDiskUsage(devices, package_name, verbose): # Measuring dex size is a bit complicated: # https://source.android.com/devices/tech/dalvik/jit-compiler # # For KitKat and below: # dumpsys package contains: # dataDir=/data/data/org.chromium.chrome # codePath=/data/app/org.chromium.chrome-1.ap...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def get_my_pids(): my_pids = [] for pids in device.GetPids(package_name).values(): my_pids.extend(pids) return [int(pid) for pid in my_pids]
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _RunPs(devices, package_name): parallel_devices = device_utils.DeviceUtils.parallel(devices) all_pids = parallel_devices.GetPids(package_name).pGet(None) for proc_map in _PrintPerDeviceOutput(devices, all_pids): if not proc_map: print 'No processes found.' else: for name, pids in sorted(pr...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _RunCompileDex(devices, package_name, compilation_filter): cmd = ['cmd', 'package', 'compile', '-f', '-m', compilation_filter, package_name] parallel_devices = device_utils.DeviceUtils.parallel(devices) outputs = parallel_devices.RunShellCommand(cmd).pGet(None) for output in _PrintPerDeviceOutput(d...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _GenerateMissingAllFlagMessage(devices): return ('More than one device available. Use --all to select all devices, ' + 'or use --device to select a device by serial.\n\n' + _GenerateAvailableDevicesMessage(devices))
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def flags_helper(d): changer = flag_changer.FlagChanger(d, device_args_file) return changer.GetCurrentFlags()
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _DeviceCachePath(device, output_directory): file_name = 'device_cache_%s.json' % device.serial return os.path.join(output_directory, file_name)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def _SaveDeviceCaches(devices, output_directory): if not output_directory: return for d in devices: cache_path = _DeviceCachePath(d, output_directory) with open(cache_path, 'w') as f: f.write(d.DumpCacheData()) logging.info('Wrote device cache: %s', cache_path)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def __init__(self, from_wrapper_script): self._parser = None self._from_wrapper_script = from_wrapper_script self.args = None self.apk_helper = None self.install_dict = None self.devices = None # Do not support incremental install outside the context of wrapper scripts. if not from_wrapp...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def RegisterArgs(self, parser): subp = parser.add_parser(self.name, help=self.description) self._parser = subp subp.set_defaults(command=self) subp.add_argument('--all', action='store_true', default=self.all_devices_by_default, help='Oper...
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def Run(self): print _GenerateAvailableDevicesMessage(self.devices)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]
def Run(self): _InstallApk(self.devices, self.apk_helper, self.install_dict)
chrisdickinson/nojs
[ 72, 3, 72, 5, 1464475027 ]