Cody

Solution 1925132

Submitted on 7 Sep 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
[s,g] = unix('set'); [a,nb] = regexp(g,'HOSTNAME=','split'); sol = regexp(a{2},'\n','split'); sol = sol{1}; % 11-July-2012 strcmp replaced isequal to accept answers of class java.lang.String assert(strcmp(your_fcn_name,sol),sprintf('Solution is %s',sol))

s = 0 g = 'ARCH=glnxa64 AUTOMOUNT_MAP= BASEMATLABPATH= BASH=/bin/bash BASHOPTS=cmdhist:complete_fullquote:extquote:force_fignore:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath BASH_ALIASES=() BASH_ARGC=() BASH_ARGV=() BASH_CMDS=() BASH_EXECUTION_STRING=set BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="4" [1]="3" [2]="48" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") BASH_VERSION='4.3.48(1)-release' CONNECTOR_VERSION=cpp DATA_CHECK=6BE20DD7E2117521613D7B8484CA778A1C04075DF354641492F31DACE6961F0C3A4309C976833C0BFFBF0D76A8AD7C60207031D8B5F3E2E4C42DE6B888797CC1958C6FDBF683F9FF4AAB32A43C28BF1979E387B1DA2D1F969CBFD70A6AA9EFDF4474E7A38A9220D42170511001784C871D3A7D8653D43136F983C16D1A62BEB0E66C2CEB995E319299A0AC2383B5232E17B7B1F2E1D8F25CC45589D11F4280D4B5F7 DEBIAN_FRONTEND=noninteractive DEFAULT_PCT_POOL_SIZE=2 DIRSTACK=() DISPLAY=:1.0 EUID=1000 EXTRA_XVFB_OPTS='-nolock -ac -extension RANDR +render -noreset' GCC_HOME=/usr/bin/gcc-6.3.0/bin/ GCC_VERSION=gcc-6.3.0 GROUPS=() HOME=/home/mluser HOSTNAME=477cf597add2 HOSTTYPE=x86_64 HTTP_MATLAB_CLIENT_GATEWAY_PUBLIC_PORT=8000 IFS=$' \t\n' INITRD=no JAVA_HOME=/usr/lib/jvm/java-8-oracle/jre KMP_BLOCKTIME=1 KMP_HANDLE_SIGNALS=0 KMP_STACKSIZE=512k LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_NUMERIC=C LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/cefclient/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/sys/opengl/lib/glnxa64:/opt/mlsedu/matlab/R2019a/sys/os/glnxa64:/opt/mlsedu/matlab/R2019a/bin/glnxa64/mvm:/opt/mlsedu/matlab/R2019a/bin/glnxa64:/opt/mlsedu/matlab/R2019a/extern/lib/glnxa64:/opt/mlsedu/matlab/R2019a/runtime/glnxa64:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64/stubs: LM_LICENSE_FILE=13501@motw-flexlm-201701-a.wsroute.mathworks.com:13501@motw-flexlm-201701-e.wsroute.mathworks.com LOGNAME=mluser MACHTYPE=x86_64-pc-linux-gnu MAIL=/var/mail/mluser MATLAB_CONNECTOR_AUTOSTART_ENABLED=false MATLAB_CONNECTOR_HOSTING_ENVIRONMENT=tmw MATLAB_LOG_DIR=/var/mlsedu/log MATLAB_ONLINE_ROOT=/opt/mlsedu/mdcsserver/latest MATLAB_PREFDIR=/tmp/matlabpref MATLAB_VER=R2019a MKL_DOMAIN_NUM_THREADS= MKL_NUM_THREADS= MW_CRASH_MODE=native MW_DIAGNOSTIC_DEST='file=/var/mlsedu/log/connector_$0_0.log' MW_DIAGNOSTIC_SPEC='connector::http::server=all;connector::container::http=all;connector::interpreter=all;connector::worker=all;connector::worker::dynamic_files=all;connector::framework=all;connector::session_m=all;connector::lifecycle=all;connector::webgraphics=all' NVIDIA_CUDNN=/usr/local/cudnn NVIDIA_DRIVER_CAPABILITIES=compute,utility NVIDIA_VISIBLE_DEVICES=all OPTERR=1 OPTIND=1 OSG_LD_LIBRARY_PATH=/opt/mlsedu/matlab/R2019a/sys/openscenegraph/lib/glnxa64 OSTYPE=linux-gnu PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games PPID=10398 PREWARM_GPU=false PREWARM_SIMULINK=true PREWARM_SYMBOLIC_TOOLBOX=true PROXY_SERVER=squid-proda-useast1.wsroute.mathworks.com PROXY_SERVER_PORT=3128 PS4='+ ' PWD=/users/mss.system.BVm5w8 QT_IM_MODULE=compose REGISTER_WORKER=false SHELL=/bin/bash SHELLOPTS=braceexpand:hashall:interactive-comments SHLVL=5 START_MATLAB_COMMAND=/opt/mlsedu/mdcsserver/latest/scripts/startmatlab.sh TERM=dumb TOOLBOX=/opt/mlsedu/matlab/R2019a/toolbox UID=1000 USER=mluser WORKER_CONFIG=/tmp/worker.properties WS_ENV=production WS_OVERRIDE_FILE=/tmp/ws_override.properties XFILESEARCHPATH=/opt/mlsedu/matlab/R2019a/sys/java/jre/glnxa64/jre/lib/locale/%L/%T/%N%S: _=/bin/bash _MUPAD_EXPLICIT_ARCH_=glnxa64 _MUPAD_EXPLICIT_PREFDIR_=/tmp/matlabpref/symbolic __KMP_REGISTERED_LIB_3335=0x7f89f602da08-cafee8fb-libiomp5.so capabilities_avoidTiledLayout=false ' y = 'deaa3d096962'

Solution is 477cf597add2