f692b3f1e67896cfeb3ee8cfb74aaa7da993a826,incubating/wrappers/s2i/java-jni/java-jni/JavaJNIServer.py,JavaJNIServer,load,#JavaJNIServer#,15

Before Change


        
        // TODO: Read JAR path from somewhere
        current_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
        classpath = os.path.join(current_dir, "java", "build", "libs", "model-all.jar")

        logger.debug(f"Starting JVM with classpath {classpath}")
        // NOTE: convertStrings must be set to True to avoid an explosion of
        // interop calls when working with the returned Java strings

After Change


        More details can be found here:
        https://jpype.readthedocs.io/en/latest/userguide.html//multiprocessing
        
        model_jar_path = os.getenv("JAVA_JAR_PATH")

        logger.debug(f"Starting JVM with jar: {model_jar_path}")
        // NOTE: convertStrings must be set to True to avoid an explosion of
        // interop calls when working with the returned Java strings
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SeldonIO/seldon-core
Commit Name: f692b3f1e67896cfeb3ee8cfb74aaa7da993a826
Time: 2020-09-21
Author: agm@seldon.io
File Name: incubating/wrappers/s2i/java-jni/java-jni/JavaJNIServer.py
Class Name: JavaJNIServer
Method Name: load


Project Name: arraiy/torchgeometry
Commit Name: 206798edabf99a8ee4bb03ffba25968d2057bb18
Time: 2020-07-30
Author: anguelos.nicolaou@gmail.com
File Name: setup.py
Class Name:
Method Name:


Project Name: quiltdata/quilt
Commit Name: 920797bae1505b76cfd2e30511e7c15f42d8465b
Time: 2018-01-17
Author: dima@gmail.com
File Name: compiler/quilt/tools/store.py
Class Name:
Method Name: default_store_location