add 20190430 by ning
175400
public Map getSingleInfoServiceByRep(String sql,Map requestParamMap) throws Exception{
		List placeList=new ArrayList();
		sqlTemplateService(sql,requestParamMap,placeList);
		String realSql=sqlTemplateService(sql,requestParamMap,placeList);;
		Map retMap= getInnerDao().querySingleObjJoinByCondition(realSql,placeList.toArray());
		CheckModelTypeUtil.addMetaCols(retMap);
		CheckModelTypeUtil.changeNoStrCols(retMap);	
		return retMap;		
	}
251023
public function update_8006000() {
    // Move files to blt subdir.
    $this->updater->moveFile('project.yml', 'blt/project.yml', TRUE);
    $this->updater->moveFile('project.local.yml', 'blt/project.local.yml',
      TRUE);
    $this->updater->moveFile('example.project.local.yml',
      'blt/example.project.local.yml', TRUE);

    // Delete symlink to hooks directory. Individual git hooks are now symlinked, not the entire directory.
    $this->updater->deleteFile('.git/hooks');
    $this->updater->getOutput()
      ->writeln('.git/hooks was deleted. Please re-run blt:init:git-hooks to install git hooks locally.');

    $this->updater->removeComposerRepository('https://github.com/mortenson/composer-patches');
    $this->updater->removeComposerScript('post-create-project-cmd');

    // Change 'deploy' module key to 'prod'.
    // @see https://github.com/acquia/blt/pull/700.
    $project_config = $this->updater->getProjectYml();
    if (!empty($project_config['modules']['deploy'])) {
      $project_config['modules']['prod'] = $project_config['modules']['deploy'];
      unset($project_config['modules']['deploy']);
    }

    $this->updater->getOutput()
      ->writeln("<comment>You MUST remove .travis.yml and re-initialize Travis CI support with `blt recipes:ci:travis:init`.</comment>");
  }
1182786
def add(self):
        
        if not self.has_phone_number():
            raise SteamAuthenticatorError("Account doesn't have a verified phone number")

        resp = self._send_request('AddAuthenticator', {
            'steamid': self.backend.steam_id,
            'authenticator_time': int(time()),
            'authenticator_type': int(ETwoFactorTokenType.ValveMobileApp),
            'device_identifier': generate_device_id(self.backend.steam_id),
            'sms_phone_id': '1',
        })

        if resp['status'] != EResult.OK:
            raise SteamAuthenticatorError("Failed to add authenticator. Error: %s" % repr(EResult(resp['status'])))

        self.secrets = resp
        self.steam_time_offset = int(resp['server_time']) - time()
691386
public function update_8006006() {
    $composer_json = $this->updater->getComposerJson();
    unset($composer_json['require-dev']['drush/drush']);
    $this->updater->writeComposerJson($composer_json);
  }
997726
def get_system_uptime_output_show_system_uptime_days(self, **kwargs):
        
        config = ET.Element("config")
        get_system_uptime = ET.Element("get_system_uptime")
        config = get_system_uptime
        output = ET.SubElement(get_system_uptime, "output")
        show_system_uptime = ET.SubElement(output, "show-system-uptime")
        rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id")
        rbridge_id_key.text = kwargs.pop('rbridge_id')
        days = ET.SubElement(show_system_uptime, "days")
        days.text = kwargs.pop('days')

        callback = kwargs.pop('callback', self._callback)
        return callback(config)
1336889
def update_0100(self):
        
        self.N = 0
        self.Z = 1
        self.V = 0
        self.C = 0
1053631
def add_int(self, n):
        
        self.packet.write(struct.pack('>I', n))
        return self
599922
def available(self):
        
        register = self.MMA8452Q_Register['STATUS']
        self.board.i2c_read_request(self.address, register, 1,
                                    Constants.I2C_READ | Constants.I2C_END_TX_MASK,
                                    self.data_val, Constants.CB_TYPE_DIRECT)


        avail = self.wait_for_read_result()
        avail = (avail[self.data_start] & 0x08) >> 3

        return avail
472395
def update(self):
        """"""
        node = self._fritz.get_device_element(self.ain)
        self._update_from_node(node)
741017
def add(self, nb = 1, name = None):
        
        for x in xrange(nb):
            self.count_lock.acquire()
            self.shared['workers'] += 1
            xid = self.shared['workers']
            self.kill_event.clear()
            self.count_lock.release()
            w   = WorkerProc(xid, self.queue, self.shared, self.tasks, self.life_time, self.count_lock, self.kill_event)
            w.name = self.get_name(xid, name)
            w.start()
660140
async def add(ctx, left: int, right: int):
    """"""
    await ctx.send(left + right)
1019049
def add_int(self,oid,value,label=None):
		""""""
		self.add_oid_entry(oid,'INTEGER',value,label=label)
889185
function mergeUpdates(fiber, state, isForced, callback) {
    let updateQueue = fiber.updateQueue;
    if (isForced) {
        updateQueue.isForced = true; // 如果是true就变不回false
    }
    if (state) {
        updateQueue.pendingStates.push(state);
    }
    if (isFn(callback)) {
        updateQueue.pendingCbs.push(callback);
    }
}
384674
public void notifyStateChangeToUnavailable() {
        final List<ConsumerStateListener> onAvailable = consumerConfig.getOnAvailable();
        if (onAvailable != null) {
            AsyncRuntime.getAsyncThreadPool().execute(new Runnable() {
                @Override
                public void run() {
                    // 状态变化通知监听器
                    for (ConsumerStateListener listener : onAvailable) {
                        try {
                            listener.onUnavailable(consumerConfig.getConsumerBootstrap().getProxyIns());
                        } catch (Exception e) {
                            LOGGER.errorWithApp(consumerConfig.getAppName(),
                                "Failed to notify consumer state listener when state change to unavailable");
                        }
                    }
                }
            });
        }
    }
648256
public function update_9001001() {
    $this->updater->syncWithTemplate('.gitignore', TRUE);
    $composer_json = $this->updater->getComposerJson();
    if (isset($composer_json['extra']['installer-paths']['drush/contrib/{$name}'])) {
      unset($composer_json['extra']['installer-paths']['drush/contrib/{$name}']);
    }
    $composer_json['extra']['installer-paths']['drush/Commands/{$name}'][] = 'type:drupal-drush';
    $this->updater->writeComposerJson($composer_json);
    $messages = [
      "Your composer.json file has been modified to be compatible with Drush 9.",
      "You must execute `composer update --lock` to update your lock file.",
    ];
    $formattedBlock = $this->updater->getFormatter()->formatBlock($messages, 'ice');
    $this->updater->getOutput()->writeln("");
    $this->updater->getOutput()->writeln($formattedBlock);
    $this->updater->getOutput()->writeln("");
  }
573399
def add(self, num_iid, properties, quantity, price, session, outer_id=None, item_price=None, lang=None):
        ''''''
        request = TOPRequest('taobao.item.sku.add')
        request['num_iid'] = num_iid
        request['properties'] = properties
        request['quantity'] = quantity
        request['price'] = price
        if outer_id!=None:
            request['outer_id'] = outer_id
        if item_price!=None:
            request['item_price'] = item_price
        if lang!=None:
            request['lang'] = lang
        self.create(self.execute(request, session)['sku'])
        return self
1186482
def get_system_uptime_output_show_system_uptime_hours(self, **kwargs):
        
        config = ET.Element("config")
        get_system_uptime = ET.Element("get_system_uptime")
        config = get_system_uptime
        output = ET.SubElement(get_system_uptime, "output")
        show_system_uptime = ET.SubElement(output, "show-system-uptime")
        rbridge_id_key = ET.SubElement(show_system_uptime, "rbridge-id")
        rbridge_id_key.text = kwargs.pop('rbridge_id')
        hours = ET.SubElement(show_system_uptime, "hours")
        hours.text = kwargs.pop('hours')

        callback = kwargs.pop('callback', self._callback)
        return callback(config)