<commit_before>"""This module defines APIs for:
   
   - representing and manipulating URIs, 
   - connecting to HTTP servers, and 
   - defining HTTP endpoints and executing HTTP servers.
   
   The [[ceylon.net.uri::Uri]] class supports connection 
   to an HTTP URI. A new `Uri` may be obtained using
   [[ceylon.net.uri::parse]].
   
       void getit(String uriAsString) {
           Uri uri = parse(uriAsString);
           Request request = uri.get();
           Response response = request.execute();
           print(response.contents);
       }
   
   A [[ceylon.net.http.server::Server]] represents a HTTP 
   server. A new `Server` may be defined using 
   [[ceylon.net.http.server::newServer]].
   
       void runServer() {
           //create a HTTP server
           value server = newServer {
               //an endpoint, on the path /hello
               Endpoint {
                   path = startsWith("/hello");
                   //handle requests to this path
                   service(Request request, Response response) 
                           => response.writeString("hello world");
               },
               WebSocketEndpoint {
                   path = startsWith("/websocket");
                   onOpen(WebSocketChannel channel) 
                           => print("Channel opened");
                   onClose(WebSocketChannel channel, CloseReason closeReason) 
                           => print("Channel closed");
                   void onError(WebSocketChannel webSocketChannel, Exception? throwable) {}
                   void onText(WebSocketChannel channel, String text) {
                       print("Received text:");
                       print(text);
                       channel.sendText(text.uppercased);
                   }
                   void onBinary(WebSocketChannel channel, ByteBuffer binary) {
                       String data = utf8.decode(binary);
                       print("Received binary:");
                       print(data);
                       value encoded = utf8.encode(data.uppercased);
                       channel.sendBinary(encoded);
                   }
               }
           };
   
           //start the server on port 8080
           server.start(SocketAddress("127.0.0.1",8080));
       }"""

by("<NAME>", "<NAME>")
license("Apache Software License")
native("jvm")
module ceylon.net "1.2.1" {
    
    shared import ceylon.collection "1.2.1";
    shared import ceylon.io "1.2.1";
    import ceylon.file "1.2.1";
    
    // -- java modules --
    
    import java.base "7";
    
    import io.undertow.core "1.1.3.Final";

    import org.jboss.xnio.api "3.3.0.Final";
    import org.jboss.xnio.nio "3.3.0.Final";
    import ceylon.interop.java "1.2.1";
    
}<commit_msg>upgrade Undertow + xnio<commit_after>"""This module defines APIs for:
   
   - representing and manipulating URIs, 
   - connecting to HTTP servers, and 
   - defining HTTP endpoints and executing HTTP servers.
   
   The [[ceylon.net.uri::Uri]] class supports connection 
   to an HTTP URI. A new `Uri` may be obtained using
   [[ceylon.net.uri::parse]].
   
       void getit(String uriAsString) {
           Uri uri = parse(uriAsString);
           Request request = uri.get();
           Response response = request.execute();
           print(response.contents);
       }
   
   A [[ceylon.net.http.server::Server]] represents a HTTP 
   server. A new `Server` may be defined using 
   [[ceylon.net.http.server::newServer]].
   
       void runServer() {
           //create a HTTP server
           value server = newServer {
               //an endpoint, on the path /hello
               Endpoint {
                   path = startsWith("/hello");
                   //handle requests to this path
                   service(Request request, Response response) 
                           => response.writeString("hello world");
               },
               WebSocketEndpoint {
                   path = startsWith("/websocket");
                   onOpen(WebSocketChannel channel) 
                           => print("Channel opened");
                   onClose(WebSocketChannel channel, CloseReason closeReason) 
                           => print("Channel closed");
                   void onError(WebSocketChannel webSocketChannel, Exception? throwable) {}
                   void onText(WebSocketChannel channel, String text) {
                       print("Received text:");
                       print(text);
                       channel.sendText(text.uppercased);
                   }
                   void onBinary(WebSocketChannel channel, ByteBuffer binary) {
                       String data = utf8.decode(binary);
                       print("Received binary:");
                       print(data);
                       value encoded = utf8.encode(data.uppercased);
                       channel.sendBinary(encoded);
                   }
               }
           };
   
           //start the server on port 8080
           server.start(SocketAddress("127.0.0.1",8080));
       }"""

by("<NAME>", "<NAME>")
license("Apache Software License")
native("jvm")
module ceylon.net "1.2.1" {
    
    shared import ceylon.collection "1.2.1";
    shared import ceylon.io "1.2.1";
    import ceylon.file "1.2.1";
    
    // -- java modules --
    
    import java.base "7";
    
    import io.undertow.core "1.3.5.Final";

    import org.jboss.xnio.api "3.3.2.Final";
    import org.jboss.xnio.nio "3.3.2.Final";
    import ceylon.interop.java "1.2.1";
    
}
{'fraction_non_alphanumeric': 0.10786073223259153, 'fraction_numerical': 0.014716439339554917, 'mean_word_length': 1.54242700729927, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '645061', 'n_tokens_mistral': 1506, 'n_tokens_neox': 1400, 'n_words': 362}