Used to select the L2 address
517973
def route(self):
        """"""
        dst = self.dst
        if isinstance(dst, Gen):
            dst = next(iter(dst))
        return conf.route6.route(dst)
1243570
private ILexLocation location(int tokline, int tokpos, int startOffset,
			int endOffset)
	{
		// Fix for location on traces
		if (this.location != null)
		{
			return this.location;
		} else
		{
			return new LexLocation(file, currentModule, tokline, tokpos, linecount, charpos, startOffset, endOffset);
		}
	}
131078
def _selectLines(self, startBlockNumber, endBlockNumber):
        
        startBlock = self.document().findBlockByNumber(startBlockNumber)
        endBlock = self.document().findBlockByNumber(endBlockNumber)
        cursor = QTextCursor(startBlock)
        cursor.setPosition(endBlock.position(), QTextCursor.KeepAnchor)
        cursor.movePosition(QTextCursor.EndOfBlock, QTextCursor.KeepAnchor)
        self.setTextCursor(cursor)
44772
def _get_primary_address(self, mac_address, node_list):
        
        for local_addresses in node_list:
            if mac_address in local_addresses:
                return local_addresses[0]
        return mac_address
320308
def _split_optional_netmask(address):
    """"""
    addr = _compat_str(address).split('/')
    if len(addr) > 2:
        raise AddressValueError("Only one '/' permitted in %r" % address)
    return addr
635614
def _select_query_method(cls, url):
    
    if urlparse(url).netloc.startswith('geosegdb.'):  # only DB2 server
        return cls.query_segdb
    return cls.query_dqsegdb
261871
function(e) {
        e.preventDefault();
        var elem = $(e.target).parents(".bitcoin-address-container");
        this.prepareCopySelection(elem);
        return false;
    }
1134789
public function setAddress2($address2)
	{
		if ( $address2 == $this->getAddress2() ) { return; }

		$this->_values['address2'] = (string) $address2;
		$this->setModified();
	}
479079
function(address, value) {
        var columnModel = this.columnModel.getColumnModel(address.columnName);

        if (_.isString(value)) {
            value = $.trim(value);
        }
        if (columnModel.validation && columnModel.validation.dataType === 'number') {
            value = convertToNumber(value);
        }
        if (columnModel.name === '_button') {
            if (value) {
                this.dataModel.check(address.rowKey);
            } else {
                this.dataModel.uncheck(address.rowKey);
            }
        } else {
            this.dataModel.setValue(address.rowKey, address.columnName, value);
        }
    }
802948
def ecef_from_lla(lat, lon, alt):
    '''
    

    '''
    a2 = WGS84_a ** 2
    b2 = WGS84_b ** 2
    lat = math.radians(lat)
    lon = math.radians(lon)
    L = 1.0 / math.sqrt(a2 * math.cos(lat) ** 2 + b2 * math.sin(lat) ** 2)
    x = (a2 * L + alt) * math.cos(lat) * math.cos(lon)
    y = (a2 * L + alt) * math.cos(lat) * math.sin(lon)
    z = (b2 * L + alt) * math.sin(lat)
    return x, y, z
761009
function selectConnectParams (req, res, next) {
  req.connectParams = req[lookupField[req.method]] || {}
  next()
}
82424
function(windowOverride) {
      var loc = windowOverride ? windowOverride.location : window.location;
      var match = loc.href.match(/#(.*)$/);
      return match ? match[1] : '';
    }
296229
def p_field_optional2_2(self, p):
        
        p[0] = Field(name=p[1], arguments=p[2], selections=p[3])
614681
private void setLocationFromUri(String location) throws IOException
    {
        try
        {
            if (!location.startsWith("cassandra://"))
                throw new Exception("Bad scheme." + location);
            
            String[] urlParts = location.split("\\?");
            if (urlParts.length > 1)
            {
                Map<String, String> urlQuery = getQueryMap(urlParts[1]);
                AbstractType comparator = BytesType.instance;
                if (urlQuery.containsKey("comparator"))
                    comparator = TypeParser.parse(urlQuery.get("comparator"));
                if (urlQuery.containsKey("slice_start"))
                    slice_start = comparator.fromString(urlQuery.get("slice_start"));
                if (urlQuery.containsKey("slice_end"))
                    slice_end = comparator.fromString(urlQuery.get("slice_end"));
                if (urlQuery.containsKey("reversed"))
                    slice_reverse = Boolean.parseBoolean(urlQuery.get("reversed"));
                if (urlQuery.containsKey("limit"))
                    limit = Integer.parseInt(urlQuery.get("limit"));
                if (urlQuery.containsKey("allow_deletes"))
                    allow_deletes = Boolean.parseBoolean(urlQuery.get("allow_deletes"));
                if (urlQuery.containsKey("widerows"))
                    widerows = Boolean.parseBoolean(urlQuery.get("widerows"));
                if (urlQuery.containsKey("use_secondary"))
                    usePartitionFilter = Boolean.parseBoolean(urlQuery.get("use_secondary"));
                if (urlQuery.containsKey("split_size"))
                    splitSize = Integer.parseInt(urlQuery.get("split_size"));
                if (urlQuery.containsKey("partitioner"))
                    partitionerClass = urlQuery.get("partitioner");
                if (urlQuery.containsKey("init_address"))
                    initHostAddress = urlQuery.get("init_address");
                if (urlQuery.containsKey("rpc_port"))
                    rpcPort = urlQuery.get("rpc_port");
            }
            String[] parts = urlParts[0].split("/+");
            String[] credentialsAndKeyspace = parts[1].split("@");
            if (credentialsAndKeyspace.length > 1)
            {
                String[] credentials = credentialsAndKeyspace[0].split(":");
                username = credentials[0];
                password = credentials[1];
                keyspace = credentialsAndKeyspace[1];
            }
            else
            {
                keyspace = parts[1];
            }
            column_family = parts[2];
        }
        catch (Exception e)
        {
            throw new IOException("Expected 'cassandra://[username:password@]<keyspace>/<columnfamily>" +
                    "[?slice_start=<start>&slice_end=<end>[&reversed=true][&limit=1]" +
                    "[&allow_deletes=true][&widerows=true][&use_secondary=true]" +
                    "[&comparator=<comparator>][&split_size=<size>][&partitioner=<partitioner>]" +
                    "[&init_address=<host>][&rpc_port=<port>]]': " + e.getMessage());
        }
    }
762403
function (eng_name, local_name) {

    var locID = UTIL.createUUID();
    
    var locObj = {
        // english name of the location
        ENGName: eng_name,

        // location name in local language
        LLName: local_name,

        // a list of apps at this location
        apps: {}
    };

    l_locations[locID] = locObj;
    l_name2location[eng_name] = locID;

    return locID;
}
1100191
function MainCtrl($scope, $location) {

    $scope.select = function select(id) {
      $scope.selected = $scope.selected === id ? null : id;
      $location.path('/' + id);
    };

    $scope.examples = examples;
    $scope.select($location.path().substring(1) || examples[0].id);

  }
530992
def select_name(self, name, *args):
        """"""
        self.boxl.select_node(self._name2i[name])