<commit_before>part of over_react.web.features;

@Factory()
UiFactory<AppContainerProps> AppContainer;

@Props()
class AppContainerProps extends UiProps {}

@State()
class AppContainerState extends UiState {
  String name;
  String foodType;
  String imageUrl;
  double rating;
  int price;
  double distance;
}

@Component()
class AppContainerComponent<T extends AppContainerProps,
    S extends AppContainerState> extends UiStatefulComponent<T, S> {
  var url = 'http://hamster-wheel.herokuapp.com/places';

  getPlaceDetails() {
    return HttpRequest.getString(url).then((response) {
      setPlaceDetails(JSON.decode(response));
    });
  }

  setPlaceDetails(placeDetails) {
    setState(newState()
      ..name = placeDetails[0]["Name"]
      ..imageUrl = placeDetails[0]["ImageUrl"]<commit_msg>uses https for heroku backend<commit_after>part of over_react.web.features;

@Factory()
UiFactory<AppContainerProps> AppContainer;

@Props()
class AppContainerProps extends UiProps {}

@State()
class AppContainerState extends UiState {
  String name;
  String foodType;
  String imageUrl;
  double rating;
  int price;
  double distance;
}

@Component()
class AppContainerComponent<T extends AppContainerProps,
    S extends AppContainerState> extends UiStatefulComponent<T, S> {
  var url = 'https://hamster-wheel.herokuapp.com/places';

  getPlaceDetails() {
    return HttpRequest.getString(url).then((response) {
      setPlaceDetails(JSON.decode(response));
    });
  }

  setPlaceDetails(placeDetails) {
    setState(newState()
      ..name = placeDetails[0]["Name"]
      ..imageUrl = placeDetails[0]["ImageUrl"]
{'fraction_non_alphanumeric': 0.11597779148673658, 'fraction_numerical': 0.0024676125848241827, 'mean_word_length': 4.772241992882562, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 1, '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': '3428336', 'n_tokens_mistral': 496, 'n_tokens_neox': 489, 'n_words': 107}