query-by method for field phoneNumber1
@param phoneNumber1 the specified attribute
@return an Iterable of DUsers for the specified phoneNumber1
517050
public Iterable<DUser> queryByPhoneNumber1(java.lang.String phoneNumber1) {
    return queryByField(null, DUserMapper.Field.PHONENUMBER1.getFieldName(), phoneNumber1);
  }
619246
public function dut1()
    {
        // Load file
        $file = new \SplFileObject($this->storage('finals.all'));

        // Get instance MJD, and MJD at line 0
        $mjdQ = $this->mjd;
        $mjd0 = (int)substr($file->getCurrentLine(), 7, 8);

        // Check for requested MJD before first date
        if ($mjdQ < $mjd0) {
            return false;
        }

        // Determine nearest center pointer
        $p = $mjdQ - $mjd0 - 1;

        // Fix for values within |n| of lower bound
        if ($p < static::INTERP_C && $p > -static::INTERP_C) {
            $p = static::INTERP_C;
        }

        $mLine = count(file($file->getRealPath())) - 1;
        if ($p > $mLine) {
            throw new \Exception("No dut data for JD={$this->jd}.");
        }

        // Compile dataset
        $ds = [];
        for ($i = $p - static::INTERP_C; $i < $p + static::INTERP_C; $i++) {
            $file->seek($i);
            $line = $file->getCurrentLine();

            // Parse data from line
            $mjd   = substr($line, 7, 8);
            $dut1f = substr($line, 156, 9);
            $dut1p = substr($line, 59, 9);

            // Use final value first, if not present use prediction
            $dut1 = trim($dut1f) ? $dut1f : $dut1p;

            // Check if no dut1 data, error
            if (trim($dut1) == '') {
                return false;
            }

            // Add the data
            $ds[$i - $p + static::INTERP_C]['x'] = (float)$mjd;
            $ds[$i - $p + static::INTERP_C]['y'] = (float)$dut1;
        }

        // Interpolate dut1
        return $this->lagrangeInterp($mjdQ, $ds);
    }
1016656
public static <T, K> Func1<Iterable<T>, SolidMap<K, T>> toSolidMap(final Func1<T, K> keyExtractor) {
        return toSolidMap(keyExtractor, new Func1<T, T>() {
            @Override
            public T call(T value) {
                return value;
            }
        });
    }
1030266
public Set<String> getListPhoneNumbersInBlackList() {
		 List<Blacklist> listPhoneNumbersInBlackList = daoService.getListPhoneNumbersInBlackList();
		 Set<String> setPhoneNumbersInBlackList = new HashSet<>();
		 for (Blacklist bl : listPhoneNumbersInBlackList) {
				setPhoneNumbersInBlackList.add(bl.getPhone());
			}
		return setPhoneNumbersInBlackList;
	}
1013875
public Response listV1(String bucket, String prefix, String marker, int limit, String delimiter)
            throws QiniuException {
        String url = String.format("%s/list?%s", configuration.rsfHost(auth.accessKey, bucket),
                listQuery(bucket, prefix, marker, limit, delimiter));
        return get(url);
    }
407405
public final <U1> Tuple1<U1> map1(Function<? super T1, ? extends U1> function) {
        return Tuple.tuple(function.apply(v1));
    }
742273
@Override
    public List<PhoneNumber> searchForNumbers(String country, PhoneNumberSearchFilters listFilters) {
        if(logger.isDebugEnabled()) {
            logger.debug("searchPattern " + listFilters.getFilterPattern());
        }
        Pattern filterPattern = listFilters.getFilterPattern();
        String filterPatternString = null;
        if(filterPattern != null) {
            filterPatternString = filterPattern.toString().replaceAll("[^\\d]", "");
        }
        if(logger.isDebugEnabled()) {
            logger.debug("searchPattern simplified for nexmo " + filterPatternString);
        }

        String queryUri = searchURI + country;
        boolean queryParamAdded = false;
        if(("US".equalsIgnoreCase(country) || "CA".equalsIgnoreCase(country)) && listFilters.getAreaCode() != null) {
            // https://github.com/Mobicents/RestComm/issues/551 fixing the search pattern for US when Area Code is selected
            // https://github.com/Mobicents/RestComm/issues/602 fixing the search pattern for CA when Area Code is selected
            queryUri = queryUri + "?pattern=1" + listFilters.getAreaCode() + "&search_pattern=0";
            queryParamAdded = true;
        } else if(filterPatternString != null) {
            queryUri = queryUri + "?pattern=" + filterPatternString + "&search_pattern=1";
            queryParamAdded = true;
        }
        if(listFilters.getSmsEnabled() != null || listFilters.getVoiceEnabled() != null) {
            if(!queryParamAdded) {
                queryUri = queryUri + "?";
                queryParamAdded = true;
            } else {
                queryUri = queryUri + "&";
            }
            if(listFilters.getSmsEnabled() != null && listFilters.getVoiceEnabled() != null) {
                queryUri = queryUri + "features=SMS,VOICE";
            } else if(listFilters.getSmsEnabled() != null) {
                queryUri = queryUri + "features=SMS";
            } else {
                queryUri = queryUri + "features=VOICE";
            }
        }
        if(listFilters.getRangeIndex() != -1) {
            if(!queryParamAdded) {
                queryUri = queryUri + "?";
                queryParamAdded = true;
            } else {
                queryUri = queryUri + "&";
            }
            queryUri = queryUri + "index=" + listFilters.getRangeIndex();
        }
        if(listFilters.getRangeSize() != -1) {
            if(!queryParamAdded) {
                queryUri = queryUri + "?";
                queryParamAdded = true;
            } else {
                queryUri = queryUri + "&";
            }
            queryUri = queryUri + "size=" + listFilters.getRangeSize();
        }
        final HttpGet get = new HttpGet(queryUri);
        try {

            final DefaultHttpClient client = new DefaultHttpClient();
//                if (telestaxProxyEnabled) {
//                    // This will work as a flag for LB that this request will need to be modified and proxied to VI
//                    get.addHeader("TelestaxProxy", String.valueOf(telestaxProxyEnabled));
//                    // This will tell LB that this request is a getAvailablePhoneNumberByAreaCode request
//                    get.addHeader("RequestType", "GetAvailablePhoneNumbersByAreaCode");
//                    //This will let LB match the DID to a node based on the node host+port
//                    for (SipURI uri: containerConfiguration.getOutboundInterfaces()) {
//                        get.addHeader("OutboundIntf", uri.getHost()+":"+uri.getPort()+":"+uri.getTransportParam());
//                    }
//                }
            if(logger.isDebugEnabled()) {
                logger.debug("Nexmo query " + queryUri);
            }
            final HttpResponse response = client.execute(get);
            if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
                final String content = StringUtils.toString(response.getEntity().getContent());
                JsonParser parser = new JsonParser();
                JsonObject jsonResponse = parser.parse(content).getAsJsonObject();
                if(logger.isDebugEnabled()) {
                    logger.debug("Nexmo response " + jsonResponse.toString());
                }
                JsonPrimitive countPrimitive = jsonResponse.getAsJsonPrimitive("count");
                if(countPrimitive == null) {
                    if(logger.isDebugEnabled()) {
                        logger.debug("No numbers found");
                    }
                    return new ArrayList<PhoneNumber>();
                }
                long count = countPrimitive.getAsLong();
                if(logger.isDebugEnabled()) {
                    logger.debug("Number of numbers found : "+count);
                }
                JsonArray nexmoNumbers = jsonResponse.getAsJsonArray("numbers");
                final List<PhoneNumber> numbers = toAvailablePhoneNumbers(nexmoNumbers, listFilters);
                return numbers;
            } else {
                logger.warn("Couldn't reach uri for getting Phone Numbers. Response status was: "+response.getStatusLine().getStatusCode());
            }
        } catch (final Exception e) {
            logger.warn("Couldn't reach uri for getting Phone Numbers" + uri, e);
        }

        return new ArrayList<PhoneNumber>();
    }
1124085
public void setPhoneNumbers(java.util.Collection<PhoneNumber> phoneNumbers) {
        if (phoneNumbers == null) {
            this.phoneNumbers = null;
            return;
        }

        this.phoneNumbers = new java.util.ArrayList<PhoneNumber>(phoneNumbers);
    }
1245124
public static DecomposableMatchBuilder1<Double, Double> caseDouble(MatchesAny d) {
    List<Matcher<Object>> matchers = new ArrayList<>();
    matchers.add(any());

    return new DecomposableMatchBuilder1<>(
        matchers, 0, new PrimitiveFieldExtractor<>(Double.class));
  }
107698
public static <A> DecomposableMatchBuilder1<Tuple1<A>, A> tuple1(MatchesAny<A> a) {
    List<Matcher<Object>> matchers = Lists.of(ArgumentMatchers.any());
    return new DecomposableMatchBuilder1<Tuple1<A>, A>(matchers, 0, new Tuple1FieldExtractor<>());
  }
872377
private List<AvailablePhoneNumber> toAvailablePhoneNumbers(List<PhoneNumber> phoneNumbers) {
        final List<AvailablePhoneNumber> availablePhoneNumbers = new ArrayList<AvailablePhoneNumber>();
        for (PhoneNumber phoneNumber : phoneNumbers) {
            final AvailablePhoneNumber number = new AvailablePhoneNumber(phoneNumber.getFriendlyName(),
                    phoneNumber.getPhoneNumber(), phoneNumber.getLata(), phoneNumber.getRateCenter(),
                    phoneNumber.getLatitude(), phoneNumber.getLongitude(), phoneNumber.getRegion(),
                    phoneNumber.getPostalCode(), phoneNumber.getIsoCountry(), phoneNumber.getCost(), phoneNumber.isVoiceCapable(),
                    phoneNumber.isSmsCapable(), phoneNumber.isMmsCapable(), phoneNumber.isFaxCapable());
            availablePhoneNumbers.add(number);
        }
        return availablePhoneNumbers;
    }
1323385
public Iterable<DUser> queryByDisplayName(java.lang.String displayName) {
    return queryByField(null, DUserMapper.Field.DISPLAYNAME.getFieldName(), displayName);
  }
1046042
public PhoneNumberInterface parsePhoneNumber(final String pphoneNumber,
      final PhoneNumberInterface pphoneNumberData) {
    return this.parsePhoneNumber(pphoneNumber, pphoneNumberData, defaultCountryData);
  }
409209
public Iterable<DContact> queryByFirstName(Object parent, java.lang.String firstName) {
    return queryByField(parent, DContactMapper.Field.FIRSTNAME.getFieldName(), firstName);
  }
102516
public Iterable<DUser> queryByFirstName(java.lang.String firstName) {
    return queryByField(null, DUserMapper.Field.FIRSTNAME.getFieldName(), firstName);
  }
84119
public long getNearestRecordNumber(long recordNumber) {
        if (recordNumber < startingRecordNumber || recordNumber > lastRecordNumber)
            throw new IndexOutOfBoundsException();
        return (startingRecordNumber + step * ((recordNumber - startingRecordNumber) / step));
    }
589791
public Record makeReferenceRecord(RecordOwner recordOwner)
    {
        Record record = super.makeReferenceRecord(recordOwner);
        record.addListener(new CompareFileFilter(record.getField(ContactType.LEVEL), "1", DBConstants.EQUALS, null, true));
        return record;
    }