<commit_before># Oracle Functions: Java
This example will show you how to test and deploy Java code to Oracle Functions. It will also demonstrate passing data in through stdin.

### First, run the following commands:

```sh
# Initialize your function creating a func.yaml file
fn init <DOCKERHUB_USERNAME>/hello-java --runtime java

# Test your function. This will run inside a container exactly how it will on the server
fn run

# Now try with an input
echo "<NAME>" | fn run

# Deploy your functions to the Oracle Functions server (default localhost:8080)
# This will create a route to your function as well
fn deploy myapp
```

### Now call your function:

```sh
curl http://localhost:8080/r/myapp/hello-java
```

Or call from a browser: [http://localhost:8080/r/myapp/hello-java](http://localhost:8080/r/myapp/hello-java)

That's it!<commit_msg>Dropped the docker owner from function name.<commit_after># Oracle Functions: Java
This example will show you how to test and deploy Java code to Oracle Functions. It will also demonstrate passing data in through stdin.

### First, run the following commands:

```sh
# Initialize your function creating a func.yaml file
fn init hello-java --runtime java

# Test your function. This will run inside a container exactly how it will on the server
fn run

# Now try with an input
echo "<NAME>" | fn run

# Deploy your functions to the Oracle Functions server (default localhost:8080)
# This will create a route to your function as well
fn deploy myapp
```

### Now call your function:

```sh
curl http://localhost:8080/r/myapp/hello-java
```

Or call from a browser: [http://localhost:8080/r/myapp/hello-java](http://localhost:8080/r/myapp/hello-java)

That's it!
{'fraction_non_alphanumeric': 0.09250585480093677, 'fraction_numerical': 0.01873536299765808, 'mean_word_length': 4.391167192429022, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4654140', 'n_tokens_mistral': 517, 'n_tokens_neox': 470, 'n_words': 227}