<commit_before>package antiFace.rwoodley.org.antiface;

import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;

import antiFace.rwoodley.org.antiface.R;

public class WebActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //this.getActionBar().setIcon(R.drawable.curiouschimp);
        getActionBar().setDisplayShowHomeEnabled(true);
        getActionBar().setHomeButtonEnabled(true);
        getActionBar().setDisplayHomeAsUpEnabled(true);

        setContentView(R.layout.activity_web);
        WebView myWebView = (WebView) findViewById(R.id.webview);

        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        final Context ctx = this;
        myWebView.setWebChromeClient(new WebChromeClient() {
            public void onReceivedTitle(WebView view, String title) {
                super.onReceivedTitle(view, title);
                if (!TextUtils.isEmpty(title)) WebActivity.this.setTitle(title);
            }
        });

        WebSettings w = myWebView.getSettings();
        w.setPluginState(WebSettings.PluginState.ON);
        myWebView.loadUrl(getIntent().getStringExtra("url"));
        w.setUseWideViewPort(true);
        this.setTitle(myWebView.getTitle());
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {<commit_msg>think i got the magic sauce for viewport working<commit_after>package antiFace.rwoodley.org.antiface;

import android.app.Activity;
import android.content.Context;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.Menu;
import android.view.MenuItem;
import android.webkit.WebChromeClient;
import android.webkit.WebSettings;
import android.webkit.WebView;

import antiFace.rwoodley.org.antiface.R;

public class WebActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        //this.getActionBar().setIcon(R.drawable.curiouschimp);
        getActionBar().setDisplayShowHomeEnabled(true);
        getActionBar().setHomeButtonEnabled(true);
        getActionBar().setDisplayHomeAsUpEnabled(true);

        setContentView(R.layout.activity_web);
        WebView myWebView = (WebView) findViewById(R.id.webview);

        WebSettings webSettings = myWebView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
        final Context ctx = this;
        myWebView.setWebChromeClient(new WebChromeClient() {
            public void onReceivedTitle(WebView view, String title) {
                super.onReceivedTitle(view, title);
                if (!TextUtils.isEmpty(title)) WebActivity.this.setTitle(title);
            }
        });

        WebSettings w = myWebView.getSettings();
        w.setPluginState(WebSettings.PluginState.ON);
        myWebView.loadUrl(getIntent().getStringExtra("url"));
//        myWebView.loadUrl("http://rwoodley.org/MyContent/x.html");
//        w.setUseWideViewPort(true);
        w.setLoadWithOverviewMode(true);
        this.setTitle(myWebView.getTitle());
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
{'fraction_non_alphanumeric': 0.10171802563403327, 'fraction_numerical': 0.0, 'mean_word_length': 3.6138364779874212, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '1090899', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1013, 'n_words': 166}