├── LICENSE ├── Liquid-Dockerfiles ├── LICENSE ├── Liquid-agent │ ├── dev │ │ ├── Dockerfile │ │ └── bootstrap.sh │ └── mock │ │ ├── Dockerfile │ │ └── bootstrap.sh ├── Liquid-optimizer │ └── dev │ │ ├── Dockerfile │ │ └── bootstrap.sh ├── Liquid-portal │ └── dev │ │ ├── Dockerfile │ │ └── bootstrap.sh ├── Liquid-scheduler │ └── dev │ │ ├── Dockerfile │ │ ├── bootstrap.sh │ │ └── conf │ │ └── config.json ├── README.md ├── base │ ├── Dockerfile │ └── bootstrap.sh ├── python3 │ └── Dockerfile └── tensorflow │ ├── 1.12 │ └── Dockerfile │ ├── 1.14-gpu │ ├── Dockerfile │ ├── bootstrap.sh │ └── save.py │ └── 2.1-gpu │ ├── Dockerfile │ ├── bootstrap.sh │ └── save.py ├── Liquid-agent-master ├── Dockerfile ├── LICENSE ├── README.md ├── bootstrap.sh └── executor.py ├── Liquid-agent ├── LICENSE ├── README.md ├── agent.py ├── bin │ ├── monitor_bw.sh │ └── monitor_gpu_util.sh ├── executor.py ├── mock.py ├── monitor.py └── test.py ├── Liquid-docs ├── LICENSE ├── README.md ├── api.py ├── sbin │ ├── nginx.conf │ ├── run_agent.sh │ ├── run_agent_helper.sh │ ├── run_agent_mock.sh │ ├── run_glusterfs.sh │ ├── run_hdfs.sh │ ├── run_optimizer.sh │ ├── start_agent.sh │ ├── start_agent_master.sh │ ├── start_gitea.sh │ ├── start_glusterfs.sh │ ├── start_mysql.sh │ ├── start_nginx.sh │ ├── start_portal.sh │ ├── start_redis.sh │ └── start_scheduler.sh └── setup.md ├── Liquid-experiments ├── README.md ├── batch │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── bin │ └── monintor_bw.sh ├── checkpoint │ └── launcher.py ├── concurrent │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── hash │ ├── README.md │ └── launcher.py ├── heartbeat │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── hived │ ├── deploy.yaml │ ├── job-template-hived.yaml │ └── k8s_launch_hived.sh ├── k8s │ ├── install_k8s.sh │ ├── job-template-kubeflow.yaml │ ├── job-template.yaml │ ├── job-template_affinity_namespace.yaml │ ├── job-template_affinity_ps1.yaml │ ├── job-template_affinity_worker1.yaml │ ├── job-template_affinity_worker2.yaml │ ├── k8s_clear.sh │ ├── k8s_join.sh │ ├── k8s_launch.sh │ ├── k8s_launch_affinity.sh │ ├── k8s_launch_kubeflow.sh │ ├── k8s_reset.sh │ ├── nvidia-device-plugin.yml │ ├── setup_k8s.md │ └── setup_kubeflow.md ├── main.py ├── placement │ └── launcher.py ├── pre_schedule │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── predict │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── preempt │ └── launcher.py ├── qdrf │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── share │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py ├── test_api.py ├── topology_aware │ ├── README.md │ ├── __pycache__ │ │ ├── __init__.cpython-37.pyc │ │ └── launcher.cpython-37.pyc │ └── launcher.py └── util │ ├── __pycache__ │ ├── __init__.cpython-37.pyc │ ├── api.cpython-37.pyc │ └── jobModel.cpython-37.pyc │ ├── api.py │ └── jobModel.py ├── Liquid-job-CNN ├── LICENSE ├── README.md └── official │ ├── r1 │ └── mnist │ │ ├── README.md │ │ ├── dataset.py │ │ ├── example3.png │ │ ├── example5.png │ │ ├── examples.npy │ │ ├── mnist.py │ │ ├── mnist_eager.py │ │ ├── mnist_eager_test.py │ │ ├── mnist_test.py │ │ └── mnist_tpu.py │ └── utils │ ├── flags │ ├── README.md │ ├── _base.py │ ├── _benchmark.py │ ├── _conventions.py │ ├── _device.py │ ├── _distribution.py │ ├── _misc.py │ ├── _performance.py │ ├── core.py │ ├── flags_test.py │ └── guidelines.md │ ├── hyperparams_flags.py │ ├── logs │ ├── cloud_lib.py │ ├── cloud_lib_test.py │ ├── guidelines.md │ ├── hooks.py │ ├── hooks_helper.py │ ├── hooks_helper_test.py │ ├── hooks_test.py │ ├── logger.py │ ├── logger_test.py │ ├── metric_hook.py │ ├── metric_hook_test.py │ └── mlperf_helper.py │ ├── misc │ ├── callstack_sampler.py │ ├── distribution_utils.py │ ├── distribution_utils_test.py │ ├── keras_utils.py │ ├── model_helpers.py │ ├── model_helpers_test.py │ └── tpu_lib.py │ └── testing │ ├── benchmark_wrappers.py │ ├── integration.py │ ├── mock_lib.py │ ├── perfzero_benchmark.py │ ├── pylint.rcfile │ ├── reference_data.py │ ├── reference_data │ ├── reference_data_test │ │ ├── dense │ │ │ ├── expected_graph │ │ │ ├── model.ckpt.data-00000-of-00001 │ │ │ ├── model.ckpt.index │ │ │ ├── results.json │ │ │ └── tf_version.json │ │ └── uniform_random │ │ │ ├── expected_graph │ │ │ ├── model.ckpt.data-00000-of-00001 │ │ │ ├── model.ckpt.index │ │ │ ├── results.json │ │ │ └── tf_version.json │ └── resnet │ │ ├── batch-size-32_bottleneck_projection_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_projection_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_projection_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_projection_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ └── batch_norm │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ ├── reference_data_test.py │ └── scripts │ ├── builds_common.sh │ ├── ci_sanity.sh │ └── presubmit.sh ├── Liquid-job-NeuMF ├── LICENSE ├── README.md └── official │ ├── benchmark │ ├── benchmark_uploader.py │ ├── benchmark_uploader_main.py │ ├── benchmark_uploader_test.py │ ├── bert_benchmark.py │ ├── bert_benchmark_utils.py │ ├── bert_squad_benchmark.py │ ├── datastore │ │ └── schema │ │ │ ├── benchmark_metric.json │ │ │ ├── benchmark_run.json │ │ │ └── benchmark_run_status.json │ ├── keras_benchmark.py │ ├── keras_cifar_benchmark.py │ ├── keras_imagenet_benchmark.py │ ├── models │ │ └── trivial_model.py │ ├── ncf_keras_benchmark.py │ ├── resnet_ctl_imagenet_benchmark.py │ ├── retinanet_benchmark.py │ ├── squad_evaluate_v1_1.py │ ├── transformer_benchmark.py │ └── xlnet_benchmark.py │ ├── recommendation │ ├── README.md │ ├── constants.py │ ├── create_ncf_data.py │ ├── data_pipeline.py │ ├── data_preprocessing.py │ ├── data_test.py │ ├── movielens.py │ ├── ncf_common.py │ ├── ncf_estimator_main.py │ ├── ncf_input_pipeline.py │ ├── ncf_keras_main.py │ ├── ncf_test.py │ ├── neumf_model.py │ ├── popen_helper.py │ ├── run.sh │ ├── run_tpu.sh │ └── stat_utils.py │ └── utils │ ├── flags │ ├── README.md │ ├── _base.py │ ├── _benchmark.py │ ├── _conventions.py │ ├── _device.py │ ├── _distribution.py │ ├── _misc.py │ ├── _performance.py │ ├── core.py │ ├── flags_test.py │ └── guidelines.md │ ├── hyperparams_flags.py │ ├── logs │ ├── cloud_lib.py │ ├── cloud_lib_test.py │ ├── guidelines.md │ ├── hooks.py │ ├── hooks_helper.py │ ├── hooks_helper_test.py │ ├── hooks_test.py │ ├── logger.py │ ├── logger_test.py │ ├── metric_hook.py │ ├── metric_hook_test.py │ └── mlperf_helper.py │ ├── misc │ ├── callstack_sampler.py │ ├── distribution_utils.py │ ├── distribution_utils_test.py │ ├── keras_utils.py │ ├── model_helpers.py │ ├── model_helpers_test.py │ └── tpu_lib.py │ └── testing │ ├── benchmark_wrappers.py │ ├── integration.py │ ├── mock_lib.py │ ├── perfzero_benchmark.py │ ├── pylint.rcfile │ ├── reference_data.py │ ├── reference_data │ ├── reference_data_test │ │ ├── dense │ │ │ ├── expected_graph │ │ │ ├── model.ckpt.data-00000-of-00001 │ │ │ ├── model.ckpt.index │ │ │ ├── results.json │ │ │ └── tf_version.json │ │ └── uniform_random │ │ │ ├── expected_graph │ │ │ ├── model.ckpt.data-00000-of-00001 │ │ │ ├── model.ckpt.index │ │ │ ├── results.json │ │ │ └── tf_version.json │ └── resnet │ │ ├── batch-size-32_bottleneck_projection_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_projection_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_bottleneck_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_projection_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_projection_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_version-1_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ ├── batch-size-32_building_version-2_width-8_channels-4 │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ │ └── batch_norm │ │ ├── expected_graph │ │ ├── model.ckpt.data-00000-of-00001 │ │ ├── model.ckpt.index │ │ ├── results.json │ │ └── tf_version.json │ ├── reference_data_test.py │ └── scripts │ ├── builds_common.sh │ ├── ci_sanity.sh │ └── presubmit.sh ├── Liquid-job-benchmarks ├── LICENSE ├── README.md ├── perfzero │ ├── README.md │ ├── docker │ │ ├── Dockerfile_ubuntu_1804_build │ │ ├── Dockerfile_ubuntu_1804_s4tf_cuda10.0 │ │ ├── Dockerfile_ubuntu_1804_s4tf_cuda10.1 │ │ ├── Dockerfile_ubuntu_1804_testing_apiclient │ │ ├── Dockerfile_ubuntu_1804_tf_custom_pip │ │ ├── Dockerfile_ubuntu_1804_tf_v1 │ │ ├── Dockerfile_ubuntu_1804_tf_v2 │ │ ├── Dockerfile_ubuntu_1804_tf_v2_1 │ │ └── Dockerfile_ubuntu_1804_tfx │ ├── lib │ │ ├── benchmark.py │ │ ├── benchmark_test.py │ │ ├── cloud_manager.py │ │ ├── perfzero │ │ │ ├── benchmark_method_runner.py │ │ │ ├── device_utils.py │ │ │ ├── perfzero_config.py │ │ │ ├── perfzero_config_test.py │ │ │ ├── process_info_tracker.py │ │ │ ├── report_utils.py │ │ │ ├── tensorflow_profiler.py │ │ │ ├── test_files │ │ │ │ ├── example_nvidia-smi_no_processes.txt │ │ │ │ ├── example_nvidia-smi_processes.txt │ │ │ │ └── nvme_device_log.txt │ │ │ ├── utils.py │ │ │ └── utils_test.py │ │ └── setup.py │ └── scripts │ │ ├── create_big_table.txt │ │ ├── generate-readme-header.sh │ │ └── plot_process_info.py └── scripts │ ├── scripts │ └── tf_cnn_benchmarks │ │ ├── README.md │ │ ├── all_reduce_benchmark.py │ │ ├── all_reduce_benchmark_test.py │ │ ├── allreduce.py │ │ ├── allreduce_test.py │ │ ├── batch_allreduce.py │ │ ├── benchmark_cnn.py │ │ ├── benchmark_cnn_distributed_test.py │ │ ├── benchmark_cnn_distributed_test_runner.py │ │ ├── benchmark_cnn_test.py │ │ ├── cnn_util.py │ │ ├── cnn_util_test.py │ │ ├── coco_metric.py │ │ ├── constants.py │ │ ├── convnet_builder.py │ │ ├── datasets.py │ │ ├── flags.py │ │ ├── leading_indicators_test.py │ │ ├── mlperf.py │ │ ├── mlperf_test.py │ │ ├── models │ │ ├── alexnet_model.py │ │ ├── densenet_model.py │ │ ├── experimental │ │ │ ├── deepspeech.py │ │ │ └── official_ncf_model.py │ │ ├── googlenet_model.py │ │ ├── inception_model.py │ │ ├── lenet_model.py │ │ ├── model.py │ │ ├── model_config.py │ │ ├── official_resnet_model.py │ │ ├── overfeat_model.py │ │ ├── resnet_model.py │ │ ├── resnet_model_test.py │ │ ├── tf1_only │ │ │ ├── mobilenet.py │ │ │ ├── mobilenet_conv_blocks.py │ │ │ ├── mobilenet_test.py │ │ │ ├── mobilenet_v2.py │ │ │ ├── nasnet_model.py │ │ │ ├── nasnet_test.py │ │ │ ├── nasnet_utils.py │ │ │ └── ssd_model.py │ │ ├── trivial_model.py │ │ └── vgg_model.py │ │ ├── platforms │ │ ├── default │ │ │ └── util.py │ │ └── util.py │ │ ├── preprocessing.py │ │ ├── run_tests.py │ │ ├── ssd_constants.py │ │ ├── ssd_dataloader.py │ │ ├── test_data │ │ ├── fake_tf_record_data │ │ │ ├── train-00000-of-00008 │ │ │ ├── train-00001-of-00008 │ │ │ ├── train-00002-of-00008 │ │ │ ├── train-00003-of-00008 │ │ │ ├── train-00004-of-00008 │ │ │ ├── train-00005-of-00008 │ │ │ ├── train-00006-of-00008 │ │ │ ├── train-00007-of-00008 │ │ │ ├── validation-00000-of-00002 │ │ │ └── validation-00001-of-00002 │ │ ├── images │ │ │ ├── black_image.jpg │ │ │ └── white_image.jpg │ │ └── tfrecord_image_generator.py │ │ ├── test_util.py │ │ ├── tf_cnn_benchmarks.py │ │ ├── variable_mgr.py │ │ ├── variable_mgr_util.py │ │ └── variable_mgr_util_test.py │ └── tf_cnn_benchmarks │ ├── all_reduce_benchmark.py │ ├── all_reduce_benchmark_test.py │ ├── allreduce.py │ ├── allreduce_test.py │ ├── batch_allreduce.py │ ├── benchmark_cnn.py │ ├── benchmark_cnn_distributed_test.py │ ├── benchmark_cnn_distributed_test_runner.py │ ├── benchmark_cnn_test.py │ ├── cnn_util.py │ ├── cnn_util_test.py │ ├── coco_metric.py │ ├── constants.py │ ├── convnet_builder.py │ ├── datasets.py │ ├── flags.py │ ├── leading_indicators_test.py │ ├── mlperf.py │ ├── mlperf_test.py │ ├── models │ ├── alexnet_model.py │ ├── densenet_model.py │ ├── experimental │ │ ├── deepspeech.py │ │ └── official_ncf_model.py │ └── tf1_only │ │ ├── mobilenet.py │ │ ├── mobilenet_conv_blocks.py │ │ ├── mobilenet_test.py │ │ ├── mobilenet_v2.py │ │ ├── nasnet_model.py │ │ ├── nasnet_test.py │ │ ├── nasnet_utils.py │ │ └── ssd_model.py │ └── platforms │ └── default │ └── util.py ├── Liquid-optimizer ├── README.md ├── compare.sh ├── data │ ├── data2.csv │ ├── data3.csv │ └── stock_data.csv ├── main.py ├── model_tensorflow.py ├── requirements.txt ├── rf.py ├── serve.py ├── serve_lstm.py ├── train.py └── yao-optimizer.iml ├── Liquid-portal ├── 404.php ├── AgentManager.class.php ├── CHANGELOG.md ├── Code.class.php ├── JobManager.class.php ├── LICENSE ├── README.md ├── Securer.class.php ├── Spider.class.php ├── UserManager.class.php ├── WorkspaceManager.class.php ├── agent.logic.php ├── ajax.php ├── auth.php ├── cluster.logic.php ├── config-sample.inc.php ├── debug.logic.php ├── footer.php ├── global.inc.php ├── head.php ├── header.php ├── help.php ├── index.php ├── init.inc.php ├── install.php ├── job.logic.php ├── modals.php ├── predis │ ├── autoload.php │ └── src │ │ ├── Autoloader.php │ │ ├── Client.php │ │ ├── ClientContextInterface.php │ │ ├── ClientException.php │ │ ├── ClientInterface.php │ │ ├── Cluster │ │ ├── ClusterStrategy.php │ │ ├── Distributor │ │ │ ├── DistributorInterface.php │ │ │ ├── EmptyRingException.php │ │ │ ├── HashRing.php │ │ │ └── KetamaRing.php │ │ ├── Hash │ │ │ ├── CRC16.php │ │ │ └── HashGeneratorInterface.php │ │ ├── PredisStrategy.php │ │ ├── RedisStrategy.php │ │ └── StrategyInterface.php │ │ ├── Collection │ │ └── Iterator │ │ │ ├── CursorBasedIterator.php │ │ │ ├── HashKey.php │ │ │ ├── Keyspace.php │ │ │ ├── ListKey.php │ │ │ ├── SetKey.php │ │ │ └── SortedSetKey.php │ │ ├── Command │ │ ├── Command.php │ │ ├── CommandInterface.php │ │ ├── ConnectionAuth.php │ │ ├── ConnectionEcho.php │ │ ├── ConnectionPing.php │ │ ├── ConnectionQuit.php │ │ ├── ConnectionSelect.php │ │ ├── GeospatialGeoAdd.php │ │ ├── GeospatialGeoDist.php │ │ ├── GeospatialGeoHash.php │ │ ├── GeospatialGeoPos.php │ │ ├── GeospatialGeoRadius.php │ │ ├── GeospatialGeoRadiusByMember.php │ │ ├── HashDelete.php │ │ ├── HashExists.php │ │ ├── HashGet.php │ │ ├── HashGetAll.php │ │ ├── HashGetMultiple.php │ │ ├── HashIncrementBy.php │ │ ├── HashIncrementByFloat.php │ │ ├── HashKeys.php │ │ ├── HashLength.php │ │ ├── HashScan.php │ │ ├── HashSet.php │ │ ├── HashSetMultiple.php │ │ ├── HashSetPreserve.php │ │ ├── HashStringLength.php │ │ ├── HashValues.php │ │ ├── HyperLogLogAdd.php │ │ ├── HyperLogLogCount.php │ │ ├── HyperLogLogMerge.php │ │ ├── KeyDelete.php │ │ ├── KeyDump.php │ │ ├── KeyExists.php │ │ ├── KeyExpire.php │ │ ├── KeyExpireAt.php │ │ ├── KeyKeys.php │ │ ├── KeyMigrate.php │ │ ├── KeyMove.php │ │ ├── KeyPersist.php │ │ ├── KeyPreciseExpire.php │ │ ├── KeyPreciseExpireAt.php │ │ ├── KeyPreciseTimeToLive.php │ │ ├── KeyRandom.php │ │ ├── KeyRename.php │ │ ├── KeyRenamePreserve.php │ │ ├── KeyRestore.php │ │ ├── KeyScan.php │ │ ├── KeySort.php │ │ ├── KeyTimeToLive.php │ │ ├── KeyType.php │ │ ├── ListIndex.php │ │ ├── ListInsert.php │ │ ├── ListLength.php │ │ ├── ListPopFirst.php │ │ ├── ListPopFirstBlocking.php │ │ ├── ListPopLast.php │ │ ├── ListPopLastBlocking.php │ │ ├── ListPopLastPushHead.php │ │ ├── ListPopLastPushHeadBlocking.php │ │ ├── ListPushHead.php │ │ ├── ListPushHeadX.php │ │ ├── ListPushTail.php │ │ ├── ListPushTailX.php │ │ ├── ListRange.php │ │ ├── ListRemove.php │ │ ├── ListSet.php │ │ ├── ListTrim.php │ │ ├── PrefixableCommandInterface.php │ │ ├── Processor │ │ │ ├── KeyPrefixProcessor.php │ │ │ ├── ProcessorChain.php │ │ │ └── ProcessorInterface.php │ │ ├── PubSubPublish.php │ │ ├── PubSubPubsub.php │ │ ├── PubSubSubscribe.php │ │ ├── PubSubSubscribeByPattern.php │ │ ├── PubSubUnsubscribe.php │ │ ├── PubSubUnsubscribeByPattern.php │ │ ├── RawCommand.php │ │ ├── ScriptCommand.php │ │ ├── ServerBackgroundRewriteAOF.php │ │ ├── ServerBackgroundSave.php │ │ ├── ServerClient.php │ │ ├── ServerCommand.php │ │ ├── ServerConfig.php │ │ ├── ServerDatabaseSize.php │ │ ├── ServerEval.php │ │ ├── ServerEvalSHA.php │ │ ├── ServerFlushAll.php │ │ ├── ServerFlushDatabase.php │ │ ├── ServerInfo.php │ │ ├── ServerInfoV26x.php │ │ ├── ServerLastSave.php │ │ ├── ServerMonitor.php │ │ ├── ServerObject.php │ │ ├── ServerSave.php │ │ ├── ServerScript.php │ │ ├── ServerSentinel.php │ │ ├── ServerShutdown.php │ │ ├── ServerSlaveOf.php │ │ ├── ServerSlowlog.php │ │ ├── ServerTime.php │ │ ├── SetAdd.php │ │ ├── SetCardinality.php │ │ ├── SetDifference.php │ │ ├── SetDifferenceStore.php │ │ ├── SetIntersection.php │ │ ├── SetIntersectionStore.php │ │ ├── SetIsMember.php │ │ ├── SetMembers.php │ │ ├── SetMove.php │ │ ├── SetPop.php │ │ ├── SetRandomMember.php │ │ ├── SetRemove.php │ │ ├── SetScan.php │ │ ├── SetUnion.php │ │ ├── SetUnionStore.php │ │ ├── StringAppend.php │ │ ├── StringBitCount.php │ │ ├── StringBitField.php │ │ ├── StringBitOp.php │ │ ├── StringBitPos.php │ │ ├── StringDecrement.php │ │ ├── StringDecrementBy.php │ │ ├── StringGet.php │ │ ├── StringGetBit.php │ │ ├── StringGetMultiple.php │ │ ├── StringGetRange.php │ │ ├── StringGetSet.php │ │ ├── StringIncrement.php │ │ ├── StringIncrementBy.php │ │ ├── StringIncrementByFloat.php │ │ ├── StringPreciseSetExpire.php │ │ ├── StringSet.php │ │ ├── StringSetBit.php │ │ ├── StringSetExpire.php │ │ ├── StringSetMultiple.php │ │ ├── StringSetMultiplePreserve.php │ │ ├── StringSetPreserve.php │ │ ├── StringSetRange.php │ │ ├── StringStrlen.php │ │ ├── StringSubstr.php │ │ ├── TransactionDiscard.php │ │ ├── TransactionExec.php │ │ ├── TransactionMulti.php │ │ ├── TransactionUnwatch.php │ │ ├── TransactionWatch.php │ │ ├── ZSetAdd.php │ │ ├── ZSetCardinality.php │ │ ├── ZSetCount.php │ │ ├── ZSetIncrementBy.php │ │ ├── ZSetIntersectionStore.php │ │ ├── ZSetLexCount.php │ │ ├── ZSetRange.php │ │ ├── ZSetRangeByLex.php │ │ ├── ZSetRangeByScore.php │ │ ├── ZSetRank.php │ │ ├── ZSetRemove.php │ │ ├── ZSetRemoveRangeByLex.php │ │ ├── ZSetRemoveRangeByRank.php │ │ ├── ZSetRemoveRangeByScore.php │ │ ├── ZSetReverseRange.php │ │ ├── ZSetReverseRangeByLex.php │ │ ├── ZSetReverseRangeByScore.php │ │ ├── ZSetReverseRank.php │ │ ├── ZSetScan.php │ │ ├── ZSetScore.php │ │ └── ZSetUnionStore.php │ │ ├── CommunicationException.php │ │ ├── Configuration │ │ ├── ClusterOption.php │ │ ├── ConnectionFactoryOption.php │ │ ├── ExceptionsOption.php │ │ ├── OptionInterface.php │ │ ├── Options.php │ │ ├── OptionsInterface.php │ │ ├── PrefixOption.php │ │ ├── ProfileOption.php │ │ └── ReplicationOption.php │ │ ├── Connection │ │ ├── AbstractConnection.php │ │ ├── Aggregate │ │ │ ├── ClusterInterface.php │ │ │ ├── MasterSlaveReplication.php │ │ │ ├── PredisCluster.php │ │ │ ├── RedisCluster.php │ │ │ ├── ReplicationInterface.php │ │ │ └── SentinelReplication.php │ │ ├── AggregateConnectionInterface.php │ │ ├── CompositeConnectionInterface.php │ │ ├── CompositeStreamConnection.php │ │ ├── ConnectionException.php │ │ ├── ConnectionInterface.php │ │ ├── Factory.php │ │ ├── FactoryInterface.php │ │ ├── NodeConnectionInterface.php │ │ ├── Parameters.php │ │ ├── ParametersInterface.php │ │ ├── PhpiredisSocketConnection.php │ │ ├── PhpiredisStreamConnection.php │ │ ├── StreamConnection.php │ │ └── WebdisConnection.php │ │ ├── Monitor │ │ └── Consumer.php │ │ ├── NotSupportedException.php │ │ ├── Pipeline │ │ ├── Atomic.php │ │ ├── ConnectionErrorProof.php │ │ ├── FireAndForget.php │ │ └── Pipeline.php │ │ ├── PredisException.php │ │ ├── Profile │ │ ├── Factory.php │ │ ├── ProfileInterface.php │ │ ├── RedisProfile.php │ │ ├── RedisUnstable.php │ │ ├── RedisVersion200.php │ │ ├── RedisVersion220.php │ │ ├── RedisVersion240.php │ │ ├── RedisVersion260.php │ │ ├── RedisVersion280.php │ │ ├── RedisVersion300.php │ │ └── RedisVersion320.php │ │ ├── Protocol │ │ ├── ProtocolException.php │ │ ├── ProtocolProcessorInterface.php │ │ ├── RequestSerializerInterface.php │ │ ├── ResponseReaderInterface.php │ │ └── Text │ │ │ ├── CompositeProtocolProcessor.php │ │ │ ├── Handler │ │ │ ├── BulkResponse.php │ │ │ ├── ErrorResponse.php │ │ │ ├── IntegerResponse.php │ │ │ ├── MultiBulkResponse.php │ │ │ ├── ResponseHandlerInterface.php │ │ │ ├── StatusResponse.php │ │ │ └── StreamableMultiBulkResponse.php │ │ │ ├── ProtocolProcessor.php │ │ │ ├── RequestSerializer.php │ │ │ └── ResponseReader.php │ │ ├── PubSub │ │ ├── AbstractConsumer.php │ │ ├── Consumer.php │ │ └── DispatcherLoop.php │ │ ├── Replication │ │ ├── MissingMasterException.php │ │ ├── ReplicationStrategy.php │ │ └── RoleException.php │ │ ├── Response │ │ ├── Error.php │ │ ├── ErrorInterface.php │ │ ├── Iterator │ │ │ ├── MultiBulk.php │ │ │ ├── MultiBulkIterator.php │ │ │ └── MultiBulkTuple.php │ │ ├── ResponseInterface.php │ │ ├── ServerException.php │ │ └── Status.php │ │ ├── Session │ │ └── Handler.php │ │ └── Transaction │ │ ├── AbortedMultiExecException.php │ │ ├── MultiExec.php │ │ └── MultiExecState.php ├── secure.inc.php ├── static │ ├── agent.js │ ├── cluster.js │ ├── job.js │ ├── main.js │ ├── resource.js │ ├── script.js │ ├── style.css │ ├── summary.js │ ├── ucenter.js │ ├── util.js │ └── workspace.js ├── ucenter.php ├── user.logic.php ├── util4p │ ├── AccessController.class.php │ ├── CRLogger.class.php │ ├── CRObject.class.php │ ├── LICENSE │ ├── MysqlPDO.class.php │ ├── README.md │ ├── Random.class.php │ ├── RateLimiter.class.php │ ├── ReSession.class.php │ ├── RedisDAO.class.php │ ├── SQLBuilder.class.php │ ├── Session.class.php │ ├── Validator.class.php │ └── util.php └── workspace.logic.php ├── Liquid-scheduler ├── LICENSE ├── README.md └── src │ ├── allocator.go │ ├── collector.go │ ├── configuration.go │ ├── evaluator.go │ ├── ga.go │ ├── ga_test.go │ ├── group.go │ ├── group_models.go │ ├── history_logger.go │ ├── job_manager.go │ ├── job_priority.go │ ├── job_sorter.go │ ├── job_status.go │ ├── logger.go │ ├── main.go │ ├── message.go │ ├── mocker.go │ ├── optimizer.go │ ├── pool_seg.go │ ├── pool_status.go │ ├── pool_test.go │ ├── resource_pool.go │ ├── scheduler.go │ ├── scheduler_FCFS.go │ ├── scheduler_capacity.go │ ├── scheduler_fair.go │ ├── scheduler_priority.go │ ├── spider.go │ ├── state.go │ └── util.go └── README.md /Liquid-Dockerfiles/Liquid-agent/dev/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow:1.14.0-gpu 2 | 3 | MAINTAINER Newnius 4 | 5 | RUN apt update && \ 6 | apt install -y python3 python3-pip && \ 7 | rm -rf /var/lib/apt/lists/* 8 | 9 | RUN apt update && \ 10 | apt install -y git vim httpie && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | RUN pip3 install docker kafka psutil 14 | 15 | RUN git clone https://github.com/newnius/YAO-agent.git /yao-agent 16 | 17 | WORKDIR /yao-agent 18 | 19 | ADD bootstrap.sh /etc/ 20 | 21 | CMD ["/etc/bootstrap.sh"] 22 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-agent/dev/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # run nvidia-smi in background to speed up the query and reduce CPU load (why?) 4 | nvidia-smi daemon 5 | 6 | python3 /yao-agent/agent.py 7 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-agent/mock/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow:1.14.0-gpu 2 | 3 | MAINTAINER Newnius 4 | 5 | RUN apt update && \ 6 | apt install -y python3 python3-pip && \ 7 | rm -rf /var/lib/apt/lists/* 8 | 9 | RUN apt update && \ 10 | apt install -y git vim httpie && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | RUN pip3 install docker kafka psutil 14 | 15 | RUN git clone https://github.com/newnius/YAO-agent.git /yao-agent 16 | 17 | WORKDIR /yao-agent 18 | 19 | ADD bootstrap.sh /etc/ 20 | 21 | CMD ["/etc/bootstrap.sh"] 22 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-agent/mock/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | python3 /yao-agent/mock.py 4 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-optimizer/dev/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow:1.14.0-gpu 2 | 3 | MAINTAINER Newnius 4 | 5 | RUN apt update && \ 6 | apt install -y python3 python3-pip && \ 7 | rm -rf /var/lib/apt/lists/* 8 | 9 | RUN apt update && \ 10 | apt install -y git vim httpie && \ 11 | rm -rf /var/lib/apt/lists/* 12 | 13 | RUN pip3 install pandas sklearn tensorflow-gpu==1.14 keras 14 | 15 | ADD bootstrap.sh /etc/bootstrap.sh 16 | 17 | RUN git clone https://code.newnius.com/newnius/yao-optimizer.git /root/yao-optimizer/ 18 | 19 | WORKDIR /root/yao-optimizer 20 | 21 | CMD ["/etc/bootstrap.sh"] -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-optimizer/dev/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | python3 serve.py -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-portal/dev/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM newnius/php:7.3 2 | 3 | MAINTAINER Newnius 4 | 5 | RUN apt update && \ 6 | apt install -y git vim httpie && \ 7 | rm -rf /var/lib/apt/lists/* 8 | 9 | RUN git clone https://github.com/newnius/YAO-portal.git /var/www/html/ 10 | 11 | ADD bootstrap.sh /etc/ 12 | 13 | CMD /etc/bootstrap.sh 14 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-portal/dev/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if [[ ! -f /var/www/html/config.inc.php ]]; then 4 | cp /var/www/html/config-sample.inc.php /var/www/html/config.inc.php 5 | fi 6 | 7 | if [[ -d /config/ ]]; then 8 | if [[ ! -f /config/config.inc.php ]]; then 9 | cp /var/www/html/config.inc.php /config/config.inc.php 10 | fi 11 | fi 12 | 13 | if [[ -f /config/config.inc.php ]]; then 14 | rm /var/www/html/config.inc.php 15 | ln -s /config/config.inc.php /var/www/html/config.inc.php 16 | fi 17 | 18 | apache2-foreground 19 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-scheduler/dev/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:16.04 2 | 3 | RUN apt update && \ 4 | apt install -y wget vim git gcc httpie dnsutils 5 | 6 | RUN wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz && \ 7 | tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz && \ 8 | rm go1.12.4.linux-amd64.tar.gz 9 | 10 | ENV PATH $PATH:/usr/local/go/bin 11 | 12 | RUN go get github.com/Shopify/sarama 13 | RUN go get github.com/sirupsen/logrus 14 | RUN go get github.com/MaxHalford/eaopt 15 | 16 | RUN git clone https://github.com/newnius/YAO-scheduler.git /root/yao-scheduler/ 17 | 18 | RUN mkdir -p /etc/yao/ 19 | 20 | ADD conf/config.json /etc/yao/ 21 | 22 | WORKDIR /root/yao-scheduler/ 23 | 24 | ADD bootstrap.sh /etc/ 25 | 26 | CMD ["/etc/bootstrap.sh"] 27 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-scheduler/dev/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | cd /root/yao-scheduler/src && go run . 4 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/Liquid-scheduler/dev/conf/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "kafkaBrokers": [ 3 | "kafka-node1:9092", 4 | "kafka-node2:9092", 5 | "kafka-node3:9092" 6 | ], 7 | "kafkaTopic": "yao", 8 | "schedulerPolicy": "fair" 9 | } -------------------------------------------------------------------------------- /Liquid-Dockerfiles/README.md: -------------------------------------------------------------------------------- 1 | # YAO-Dockerfiles 2 | Dockerfiles for YAO 3 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/base/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nvidia/cuda:9.0-cudnn7-runtime 2 | 3 | MAINTAINER Newnius 4 | 5 | USER root 6 | 7 | RUN apt update && \ 8 | apt install -y git && \ 9 | rm -rf /var/lib/apt/lists/* 10 | 11 | ADD bootstrap.sh /etc/bootstrap.sh 12 | 13 | ENTRYPOINT ["/etc/bootstrap.sh"] 14 | 15 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/base/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if ! [[ -z "${repo}" ]]; then 4 | if [[ -z "${branch}" ]]; then 5 | git clone $repo /workspace 6 | else 7 | git clone -b $branch $repo /workspace 8 | fi 9 | fi 10 | 11 | if [ -d /workspace ]; then 12 | cd /workspace 13 | fi 14 | 15 | sleep infinity 16 | 17 | # use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment 18 | eval $@ 19 | 20 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/python3/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM quickdeploy/yao-base 2 | 3 | MAINTAINER Newnius 4 | 5 | USER root 6 | 7 | RUN apt update && \ 8 | apt install -y python3 python3-pip && \ 9 | rm -rf /var/lib/apt/lists/* 10 | 11 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/1.12/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM quickdeploy/yao-python3 2 | 3 | MAINTAINER Newnius 4 | 5 | USER root 6 | 7 | RUN pip3 install tensorflow-gpu==1.12 numpy pandas matplotlib sklearn scipy keras 8 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/1.14-gpu/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow:1.14.0-gpu 2 | 3 | MAINTAINER Newnius 4 | 5 | USER root 6 | 7 | RUN apt update && \ 8 | apt install -y git && \ 9 | rm -rf /var/lib/apt/lists/* 10 | 11 | RUN pip install requests psutil py-cpuinfo pandas hdfs 12 | 13 | ADD bootstrap.sh /etc/bootstrap.sh 14 | 15 | ADD save.py /etc/save.py 16 | 17 | ENTRYPOINT ["/etc/bootstrap.sh"] 18 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/1.14-gpu/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if ! [[ -z "${repo}" ]]; then 4 | if [[ -z "${branch}" ]]; then 5 | git clone $repo /workspace 6 | else 7 | git clone -b $branch $repo /workspace 8 | fi 9 | fi 10 | 11 | if [ -d /workspace ]; then 12 | cd /workspace 13 | fi 14 | 15 | #sleep infinity 16 | 17 | # use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment 18 | eval $@ 19 | 20 | code=$? 21 | 22 | # persist output 23 | python /etc/save.py 24 | 25 | exit $code 26 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/1.14-gpu/save.py: -------------------------------------------------------------------------------- 1 | from hdfs import * 2 | import os 3 | import time 4 | 5 | 6 | if __name__ == '__main__': 7 | os.environ["TZ"] = 'Asia/Shanghai' 8 | if hasattr(time, 'tzset'): 9 | time.tzset() 10 | try: 11 | hdfs_address = os.environ['hdfs_address'] 12 | hdfs_dir = os.environ['hdfs_dir'] 13 | output_dir = os.environ['output_dir'] 14 | 15 | client = Client(hdfs_address) 16 | client.upload(hdfs_dir, output_dir) 17 | 18 | print('Save ' + output_dir + ' to' + hdfs_address + ' ' + hdfs_dir) 19 | except Exception as e: 20 | print('Unable to persist data to HDFS,', str(e)) 21 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/2.1-gpu/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM tensorflow/tensorflow:2.1.0-gpu-py3 2 | 3 | MAINTAINER Newnius 4 | 5 | USER root 6 | 7 | RUN apt update && \ 8 | apt install -y git && \ 9 | rm -rf /var/lib/apt/lists/* 10 | 11 | RUN pip3 install requests psutil py-cpuinfo pandas typing hdfs 12 | 13 | ADD bootstrap.sh /etc/bootstrap.sh 14 | 15 | ADD save.py /etc/save.py 16 | 17 | ENTRYPOINT ["/etc/bootstrap.sh"] 18 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/2.1-gpu/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if ! [[ -z "${repo}" ]]; then 4 | if [[ -z "${branch}" ]]; then 5 | git clone $repo /workspace 6 | else 7 | git clone -b $branch $repo /workspace 8 | fi 9 | fi 10 | 11 | if [ -d /workspace ]; then 12 | cd /workspace 13 | fi 14 | 15 | #sleep infinity 16 | 17 | # use eval because commands likes `key=value command` would cause file not found error when using $@, but this eval will ruin current environment 18 | eval $@ 19 | 20 | code=$? 21 | 22 | # Persist output 23 | python /etc/save.py 24 | 25 | exit $code 26 | -------------------------------------------------------------------------------- /Liquid-Dockerfiles/tensorflow/2.1-gpu/save.py: -------------------------------------------------------------------------------- 1 | from hdfs import * 2 | import os 3 | import time 4 | 5 | 6 | if __name__ == '__main__': 7 | os.environ["TZ"] = 'Asia/Shanghai' 8 | if hasattr(time, 'tzset'): 9 | time.tzset() 10 | try: 11 | hdfs_address = os.environ['hdfs_address'] 12 | hdfs_dir = os.environ['hdfs_dir'] 13 | output_dir = os.environ['output_dir'] 14 | 15 | client = Client(hdfs_address) 16 | client.upload(hdfs_dir, output_dir) 17 | 18 | print('Save ' + output_dir + ' to' + hdfs_address + ' ' + hdfs_dir) 19 | except Exception as e: 20 | print('Unable to persist data to HDFS,', str(e)) 21 | -------------------------------------------------------------------------------- /Liquid-agent-master/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM quickdeploy/yao-python3 2 | 3 | MAINTAINER Newnius 4 | 5 | RUN pip3 install docker psutil 6 | 7 | ADD bootstrap.sh /etc/bootstrap.sh 8 | 9 | ADD executor.py /root/executor.py 10 | 11 | WORKDIR /root 12 | 13 | CMD ["/etc/bootstrap.sh"] -------------------------------------------------------------------------------- /Liquid-agent-master/README.md: -------------------------------------------------------------------------------- 1 | # Liquid-agent-master 2 | -------------------------------------------------------------------------------- /Liquid-agent-master/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | python3 /root/executor.py & 4 | 5 | sleep infinity -------------------------------------------------------------------------------- /Liquid-agent/bin/monitor_bw.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | IF=$1 4 | if [[ -z "$IF" ]]; then 5 | IF=`ls -1 /sys/class/net/ | head -1` 6 | fi 7 | RX_PREV=-1 8 | TX_PREV=-1 9 | 10 | echo "Listening $IF..." 11 | 12 | while [[ 1 == 1 ]] ; do 13 | RX=`cat /sys/class/net/${IF}/statistics/rx_bytes` 14 | TX=`cat /sys/class/net/${IF}/statistics/tx_bytes` 15 | if [ ${RX_PREV} -ne -1 ] ; then 16 | let BWRX=($RX-$RX_PREV)/1024/1024/3 17 | let BWTX=($TX-$TX_PREV)/1024/1024/3 18 | #echo "Received: $BWRX MB/s Sent: $BWTX MB/s" 19 | date=`date` 20 | echo "$date:${BWRX},${BWTX}" 21 | fi 22 | RX_PREV=${RX} 23 | TX_PREV=${TX} 24 | sleep 3 25 | done -------------------------------------------------------------------------------- /Liquid-agent/bin/monitor_gpu_util.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | while true 4 | do 5 | utils=`nvidia-smi -q -x | grep gpu_util | awk '{print $1}' | awk -F'>' '{print $2}' | xargs echo` 6 | 7 | echo "$(date):${utils}" 8 | sleep 1 9 | done -------------------------------------------------------------------------------- /Liquid-docs/README.md: -------------------------------------------------------------------------------- 1 | # Liquid-docs 2 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/run_agent.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | ip=`hostname --ip-address` 4 | 5 | docker run \ 6 | --gpus all \ 7 | --name yao-agent \ 8 | --pid=host \ 9 | --network yao-net \ 10 | --network-alias $(hostname) \ 11 | --hostname $(hostname) \ 12 | -d \ 13 | --restart always \ 14 | --detach=true \ 15 | --publish 8000:8000 \ 16 | --env ClientID=$(hostname) \ 17 | --env ClientHost=$(hostname) \ 18 | --env ClientExtHost=${ip} \ 19 | --env PORT=8000 \ 20 | --env HeartbeatInterval=5 \ 21 | --env ReportAddress='http://yao-scheduler:8080/?action=agent_report' \ 22 | --env EnableEventTrigger='true' \ 23 | --env PYTHONUNBUFFERED=1 \ 24 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 25 | --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ 26 | --mount type=bind,src=/dfs/yao-jobs/,dst=/dfs/yao-jobs/ \ 27 | quickdeploy/yao-agent 28 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/run_agent_helper.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker run \ 4 | --name yao-agent-helper \ 5 | -d \ 6 | --restart always \ 7 | --detach=true \ 8 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 9 | --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ 10 | --mount type=bind,src=/dfs/yao-jobs/,dst=/dfs/yao-jobs/ \ 11 | docker:latest sleep 86400000 12 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/run_glusterfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker run \ 4 | --name gluster_server \ 5 | -d \ 6 | --restart always \ 7 | --net=host \ 8 | --privileged=true \ 9 | -v /data/gluster/configuration:/etc/glusterfs:z \ 10 | -v /data/gluster/metadata:/var/lib/glusterd:z \ 11 | -v /data/gluster/logs:/var/log/glusterfs:z \ 12 | -v /data/gluster/data:/data \ 13 | gluster/gluster-centos 14 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/run_hdfs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Run on all HDFS nodes, and update the conf files 4 | 5 | exit; 6 | 7 | docker run \ 8 | --name hdfs \ 9 | --hostname $(hostname) \ 10 | -d \ 11 | --restart always \ 12 | --net host \ 13 | --add-host=$(node1):$(ip1) \ 14 | --add-host=$(node2):$(ip2) \ 15 | --add-host=$(node3):$(ip3) \ 16 | --mount type=bind,src=/data/hadoop/config,dst=/config/hadoop \ 17 | --mount type=bind,src=/data/hadoop/hdfs,dst=/tmp/hadoop-root \ 18 | --mount type=bind,src=/data/hadoop/logs,dst=/usr/local/hadoop/logs \ 19 | newnius/hadoop:2.7.4 20 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/run_optimizer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker run \ 4 | --name yao-optimizer \ 5 | --hostname yao-optimizer \ 6 | --constraint node.hostname==gj-slave103 \ 7 | --network yao-net \ 8 | --network-alias yao-optimizer \ 9 | -d \ 10 | --restart always \ 11 | --detach=true \ 12 | --env PYTHONUNBUFFERED=1 \ 13 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 14 | quickdeploy/yao-optimizer:dev 15 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_agent.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker service create \ 4 | --name yao-agent \ 5 | --hostname {{.Node.Hostname}} \ 6 | --network name=yao-net,alias={{.Node.Hostname}} \ 7 | --mode global \ 8 | --detach=true \ 9 | --env ClientID={{.Node.Hostname}} \ 10 | --env ClientHost={{.Node.Hostname}} \ 11 | --env KafkaBrokers=kafka-node1:9092,kafka-node2:9092,kafka-node3:9092 \ 12 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 13 | --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ 14 | quickdeploy/yao-agent 15 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_agent_master.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker service create \ 4 | --name yao-agent-master \ 5 | --hostname yao-agent-master \ 6 | --constraint node.hostname==gj-slave103 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 11 | --mount type=bind,src=/var/run/docker.sock,dst=/var/run/docker.sock \ 12 | quickdeploy/yao-agent-master:dev 13 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_gitea.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker service create \ 4 | --name gitea \ 5 | --hostname gitea \ 6 | --constraint node.hostname==gj-slave105 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 11 | --mount type=bind,src=/data/gitea/,target=/data \ 12 | gitea/gitea 13 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_mysql.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | docker service create \ 4 | --name mysql \ 5 | --hostname mysql \ 6 | --constraint node.hostname==gj-slave101 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --endpoint-mode dnsrr \ 11 | -e MYSQL_ROOT_PASSWORD=123456 \ 12 | -e MYSQL_DATABASE=yao \ 13 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 14 | mysql:5.7 15 | 16 | #--mount type=bind,source=/data/mysql,target=/var/lib/mysql \ 17 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_nginx.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | docker service create \ 4 | --name nginx \ 5 | --hostname nginx \ 6 | --constraint node.hostname==gj-slave101 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --publish mode=host,published=80,target=80 \ 11 | --publish mode=host,published=443,target=443 \ 12 | --mount type=bind,src=/etc/localtime,dst=/etc/localtime,readonly \ 13 | --mount type=bind,src=/data/nginx/conf.d/,dst=/etc/nginx/conf.d/,readonly \ 14 | nginx 15 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_portal.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker service create \ 4 | --name yao-portal \ 5 | --hostname yao-portal \ 6 | --constraint node.hostname==gj-slave101 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --env SITE_SCHEDULER_ADDR=http://yao-scheduler:8080 \ 11 | --env SITE_BASE_URL=http://yao.pasalab.jluapp.com \ 12 | --env MYSQL_HOST=mysql \ 13 | --env MYSQL_PORT=3306 \ 14 | --env MYSQL_DATABASE=yao \ 15 | --env MYSQL_USER=root \ 16 | --env MYSQL_PASSWORD=123456 \ 17 | --env REDIS_HOST=redis \ 18 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 19 | quickdeploy/yao-portal:dev 20 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_redis.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | docker service create \ 4 | --name redis \ 5 | --hostname redis \ 6 | --constraint node.hostname==gj-slave101 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --endpoint-mode dnsrr \ 11 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 12 | redis redis-server --appendonly yes 13 | -------------------------------------------------------------------------------- /Liquid-docs/sbin/start_scheduler.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | docker service create \ 4 | --name yao-scheduler \ 5 | --hostname yao-scheduler \ 6 | --constraint node.hostname==gj-slave103 \ 7 | --network yao-net \ 8 | --replicas 1 \ 9 | --detach=true \ 10 | --env SchedulerPolicy=fair \ 11 | --env ListenAddr='0.0.0.0:8080' \ 12 | --env HDFSAddress='' \ 13 | --env HDFSBaseDir='/user/yao/output/' \ 14 | --env DFSBaseDir='/dfs/yao-jobs/' \ 15 | --env EnableShareRatio=1.75 \ 16 | --env ShareMaxUtilization=1.30 \ 17 | --env EnablePreScheduleRatio=1.75 \ 18 | --env PreScheduleExtraTime=15 \ 19 | --env PreScheduleTimeout=300 \ 20 | --mount type=bind,source=/etc/localtime,target=/etc/localtime,readonly \ 21 | quickdeploy/yao-scheduler:dev 22 | 23 | #--env HDFSAddress='http://192.168.100.104:50070/' \ 24 | #--env LoggerOutputDir='log/' \ 25 | #quickdeploy/yao-scheduler:dev sleep infinity 26 | -------------------------------------------------------------------------------- /Liquid-experiments/README.md: -------------------------------------------------------------------------------- 1 | # yao-experiments 2 | 3 | -------------------------------------------------------------------------------- /Liquid-experiments/batch/README.md: -------------------------------------------------------------------------------- 1 | ## 批量调度策略效果评估 2 | 3个节点 3 | #### 背景 4 | 当出现一定数量空闲的资源时,才调度,通过增强亲和性来增加性能 5 | 6 | #### 训练 7 | 需要预先提交若干作业来训练资源需求向量预测模型,与单作业调度策略共用,所以不需要再训练。 8 | 9 | #### 测试 10 | python3 main.py -lab batch -mode test -case multi-random 11 | python3 main.py -lab batch -mode test -case multi-spread 12 | python3 main.py -lab batch -mode test -case multi-pack 13 | python3 main.py -lab batch -mode test -case multi-topology-aware 14 | python3 main.py -lab batch -mode test -case multi-batch 15 | python3 main.py -lab batch -mode test -case multi-k8s-default 16 | python3 main.py -lab batch -mode test -case multi-k8s-affinity 17 | python3 main.py -lab batch -mode test -case multi-k8s-kubeflow 18 | python3 main.py -lab batch -mode test -case multi-k8s-hived -------------------------------------------------------------------------------- /Liquid-experiments/batch/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/batch/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/batch/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/batch/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/bin/monintor_bw.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | IF=$1 4 | if [[ -z "$IF" ]]; then 5 | IF=`ls -1 /sys/class/net/ | head -1` 6 | echo "Usage: $0 " 7 | echo "eg: $0 docker0" 8 | exit; 9 | fi 10 | 11 | echo "Listening $IF..." 12 | 13 | RX_PREV=-1 14 | TX_PREV=-1 15 | while true; do 16 | RX=`cat /sys/class/net/${IF}/statistics/rx_bytes` 17 | TX=`cat /sys/class/net/${IF}/statistics/tx_bytes` 18 | 19 | if [[ ${RX_PREV} -ne -1 ]]; then 20 | let BW_RX=(${RX}-${RX_PREV})/1024/1024/3 21 | let BW_TX=(${TX}-${TX_PREV})/1024/1024/3 22 | #echo "Received: ${BW_RX} MB/s Sent: ${BW_TX} MB/s" 23 | echo "$(date),$BW_RX,$BW_TX" 24 | fi 25 | 26 | RX_PREV=${RX} 27 | TX_PREV=${TX} 28 | sleep 3 29 | 30 | done -------------------------------------------------------------------------------- /Liquid-experiments/concurrent/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/concurrent/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/concurrent/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/concurrent/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/heartbeat/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/heartbeat/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/heartbeat/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/heartbeat/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/k8s/job-template_affinity_namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: JOB_NAMESPACE -------------------------------------------------------------------------------- /Liquid-experiments/k8s/k8s_clear.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | kubectl get ns | grep -v 'default' | grep -v 'kube-' | awk 'NR>1' | awk '{print $1}' | xargs kubectl delete ns 4 | 5 | pkill k8s_launch.sh -------------------------------------------------------------------------------- /Liquid-experiments/k8s/k8s_join.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | token=`sudo kubeadm token generate` 4 | 5 | sudo kubeadm token create ${token} --print-join-command -------------------------------------------------------------------------------- /Liquid-experiments/k8s/k8s_reset.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # https://github.com/kubernetes/kubernetes/issues/39557 4 | # https://stackoverflow.com/questions/46276796/kubernetes-cannot-cleanup-flannel 5 | sudo kubeadm reset 6 | sudo rm -rf /var/lib/cni/ 7 | sudo rm -rf /var/lib/kubelet/* 8 | sudo rm -rf /etc/cni/ 9 | 10 | sudo ip link delete cni0 11 | sudo ip link delete flannel.1 -------------------------------------------------------------------------------- /Liquid-experiments/pre_schedule/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/pre_schedule/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/pre_schedule/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/pre_schedule/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/predict/README.md: -------------------------------------------------------------------------------- 1 | ## 作业资源需求向量评估 2 | 3 | #### 背景 4 | 5 | #### 建模 6 | 7 | #### 方法 8 | 9 | #### 先提交若干作业训练资源预估模型 10 | 分为两类,一个是单机模式的作业,包括cnn、neumf、lstm、resnet50、vgg16、inception3; 11 | 另一个是分布式作业,包括resnet50、vgg16、inception13。 12 | 可变参数包括GPU个数、batch大小、数据规模、ps与worker个数, 13 | 预估的资源包括GPU利用率、显存占用、CPU利用率、内存占用、带宽占用; 14 | 15 | python3 main.py --lab=predict --mode=train --case=local 16 | python3 main.py --lab=predict --mode=train --case=distributed 17 | 18 | #### 效果评估 19 | 20 | 分为两个,一是模型的效果查看, 21 | 在优化器容器内,复制任意一个作业的数据,复制为dataset.csv,移动到compare.sh脚本同目录, 22 | 然后执行compare.sh脚本,脚本随机打乱记录,然后划分训练集和测试集,输出在lr、rf、dt、ada、gbdt五种 23 | 模型下r2指标和rmse指标随训练样本的增加而变化的数据。 24 | 25 | 另外一个是实际的效果, 26 | 在提交作业的界面上,通过修改启动命令里的参数值,然后predict,即可自动修改资源需求。 27 | -------------------------------------------------------------------------------- /Liquid-experiments/predict/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/predict/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/predict/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/predict/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/qdrf/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/qdrf/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/qdrf/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/qdrf/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/share/README.md: -------------------------------------------------------------------------------- 1 | ## 单卡多任务共享优化实验 2 | 3 | #### 训练 4 | python3 main.py --lab=share --mode=train --case=default 5 | 6 | #### 测试 7 | 要求:把其他计算节点都下线,只保留一个,确保所有作业是在同一个GPU上执行的(删除yao-agent等待自动下线) 8 | 9 | python3 main.py --lab=share --mode=test --case=cnn-share 10 | python3 main.py --lab=share --mode=test --case=cnn-exclusive 11 | python3 main.py --lab=share --mode=test --case=neumf-share 12 | python3 main.py --lab=share --mode=test --case=neumf-exclusive 13 | python3 main.py --lab=share --mode=test --case=mined-share 14 | python3 main.py --lab=share --mode=test --case=mixed-exclusive 15 | 16 | 在实验结束后,把残留的几个sleep作业手动停止。 -------------------------------------------------------------------------------- /Liquid-experiments/share/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/share/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/share/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/share/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/test_api.py: -------------------------------------------------------------------------------- 1 | import util.api as api 2 | 3 | apiInstance = api.API(base_url='http://yao.pasalab.jluapp.com') 4 | apiInstance.login() 5 | 6 | print(apiInstance.conf_list()) 7 | print(apiInstance.get_sys_status()) -------------------------------------------------------------------------------- /Liquid-experiments/topology_aware/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/topology_aware/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/topology_aware/__pycache__/launcher.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/topology_aware/__pycache__/launcher.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/util/__pycache__/__init__.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/util/__pycache__/__init__.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/util/__pycache__/api.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/util/__pycache__/api.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-experiments/util/__pycache__/jobModel.cpython-37.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-experiments/util/__pycache__/jobModel.cpython-37.pyc -------------------------------------------------------------------------------- /Liquid-job-CNN/README.md: -------------------------------------------------------------------------------- 1 | # yao-mnist 2 | 3 | ```bash 4 | pip install requests tensorflow-gpu==1.14 5 | 6 | # estimate time: 11min 30s 7 | PYTHONPATH="$PYTHONPATH:/workspace" python /workspace/official/r1/mnist/mnist.py --data_dir=/workspace/data/ 8 | 9 | # estimate time: 3min 42s 10 | PYTHONPATH="$PYTHONPATH:/workspace" python /workspace/official/r1/mnist/mnist_test.py --benchmarks=. 11 | ``` -------------------------------------------------------------------------------- /Liquid-job-CNN/official/r1/mnist/example3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/r1/mnist/example3.png -------------------------------------------------------------------------------- /Liquid-job-CNN/official/r1/mnist/example5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/r1/mnist/example5.png -------------------------------------------------------------------------------- /Liquid-job-CNN/official/r1/mnist/examples.npy: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/r1/mnist/examples.npy -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/results.json: -------------------------------------------------------------------------------- 1 | [1, 1, 0.4701630473136902, 0.4701630473136902, 0.4701630473136902] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/dense/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180325", "v1.7.0-rc1-750-g6c1737e6c8"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- 1 | ʼ|? -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/results.json: -------------------------------------------------------------------------------- 1 | [0.9872556924819946] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/reference_data_test/uniform_random/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180325", "v1.7.0-rc1-750-g6c1737e6c8"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.08920872211456299, 0.8918969631195068, 4064.7060546875, 32, 4, 4, 8, 0.0, 0.10715862363576889, 2344.4775390625] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.918815016746521, 0.1826801300048828, 4064.4677734375, 32, 4, 4, 8, -1.3153012990951538, 0.011247094720602036, 261.84716796875] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.1677999496459961, 0.7767924070358276, 4089.44189453125, 32, 8, 8, 4, 0.8615571856498718, 1.1359407901763916, 5806.876953125] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.8239736557006836, 0.3485994338989258, 4108.87548828125, 32, 8, 8, 4, 0.16798323392868042, -0.2975311279296875, 2860.068359375] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.5349493026733398, 0.5126370191574097, 4070.01220703125, 32, 4, 4, 8, 0.0, 2.7680201530456543, 2341.23486328125] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.7820245027542114, 0.8173515796661377, 4095.256591796875, 32, 4, 4, 8, 0.0679062008857727, 0.009305447340011597, -137.36178588867188] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.23128163814544678, 0.22117376327514648, 4100.51806640625, 32, 8, 8, 4, 1.1768392324447632, 0.2728465795516968, 5832.6416015625] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.7616699934005737, 0.5485763549804688, 4106.8720703125, 32, 8, 8, 4, -0.056346118450164795, 0.5792689919471741, 2972.37255859375] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/expected_graph -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/results.json: -------------------------------------------------------------------------------- 1 | [32, 16, 16, 3, 0.9722558259963989, 0.18413543701171875, 12374.20703125, 32, 16, 16, 3, 1.6126631498336792, -1.096894383430481, -0.041595458984375] -------------------------------------------------------------------------------- /Liquid-job-CNN/official/utils/testing/reference_data/resnet/batch_norm/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/README.md: -------------------------------------------------------------------------------- 1 | # yao-NeuMF 2 | 3 | ```bash 4 | pip install requests pandas typing tensorflow-gpu>=2.0 5 | 6 | python official/recommendation/movielens.py --data_dir data/ --dataset ml-20m 7 | 8 | # estimate time: 54m44s, Util ~50% 9 | PYTHONPATH="$PYTHONPATH:/workspace" python /workspace/official/recommendation/ncf_keras_main.py \ 10 | --data_dir=/workspace/data/ \ 11 | --dataset=ml-20m \ 12 | --batch_size=1000 13 | ``` -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/benchmark/datastore/schema/benchmark_run_status.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "description": "The UUID of the run for the benchmark.", 4 | "mode": "REQUIRED", 5 | "name": "run_id", 6 | "type": "STRING" 7 | }, 8 | { 9 | "description": "The status of the run for the benchmark. Eg, running, failed, success", 10 | "mode": "REQUIRED", 11 | "name": "status", 12 | "type": "STRING" 13 | } 14 | ] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/recommendation/run_tpu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | # Example settings: 5 | # export TPU="taylorrobie-tpu-0" 6 | # export BUCKET="gs://taylorrobie-tpu-test-bucket-2" 7 | 8 | # Remove IDE "not assigned" warning highlights. 9 | TPU=${TPU:-""} 10 | BUCKET=${BUCKET:-""} 11 | 12 | if [[ -z ${TPU} ]]; then 13 | echo "Please set 'TPU' to the name of the TPU to be used." 14 | exit 1 15 | fi 16 | 17 | if [[ -z ${BUCKET} ]]; then 18 | echo "Please set 'BUCKET' to the GCS bucket to be used." 19 | exit 1 20 | fi 21 | 22 | ./run.sh 23 | -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/results.json: -------------------------------------------------------------------------------- 1 | [1, 1, 0.4701630473136902, 0.4701630473136902, 0.4701630473136902] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/dense/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180325", "v1.7.0-rc1-750-g6c1737e6c8"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- 1 | ʼ|? -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/results.json: -------------------------------------------------------------------------------- 1 | [0.9872556924819946] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/reference_data_test/uniform_random/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180325", "v1.7.0-rc1-750-g6c1737e6c8"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.08920872211456299, 0.8918969631195068, 4064.7060546875, 32, 4, 4, 8, 0.0, 0.10715862363576889, 2344.4775390625] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.918815016746521, 0.1826801300048828, 4064.4677734375, 32, 4, 4, 8, -1.3153012990951538, 0.011247094720602036, 261.84716796875] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_projection_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.1677999496459961, 0.7767924070358276, 4089.44189453125, 32, 8, 8, 4, 0.8615571856498718, 1.1359407901763916, 5806.876953125] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.8239736557006836, 0.3485994338989258, 4108.87548828125, 32, 8, 8, 4, 0.16798323392868042, -0.2975311279296875, 2860.068359375] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_bottleneck_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.5349493026733398, 0.5126370191574097, 4070.01220703125, 32, 4, 4, 8, 0.0, 2.7680201530456543, 2341.23486328125] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.7820245027542114, 0.8173515796661377, 4095.256591796875, 32, 4, 4, 8, 0.0679062008857727, 0.009305447340011597, -137.36178588867188] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_projection_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.23128163814544678, 0.22117376327514648, 4100.51806640625, 32, 8, 8, 4, 1.1768392324447632, 0.2728465795516968, 5832.6416015625] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-1_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/results.json: -------------------------------------------------------------------------------- 1 | [32, 8, 8, 4, 0.7616699934005737, 0.5485763549804688, 4106.8720703125, 32, 8, 8, 4, -0.056346118450164795, 0.5792689919471741, 2972.37255859375] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch-size-32_building_version-2_width-8_channels-4/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/expected_graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/expected_graph -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.data-00000-of-00001: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.data-00000-of-00001 -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/model.ckpt.index -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/results.json: -------------------------------------------------------------------------------- 1 | [32, 16, 16, 3, 0.9722558259963989, 0.18413543701171875, 12374.20703125, 32, 16, 16, 3, 1.6126631498336792, -1.096894383430481, -0.041595458984375] -------------------------------------------------------------------------------- /Liquid-job-NeuMF/official/utils/testing/reference_data/resnet/batch_norm/tf_version.json: -------------------------------------------------------------------------------- 1 | ["1.8.0-dev20180408", "v1.7.0-1345-gb874783ccd"] -------------------------------------------------------------------------------- /Liquid-job-benchmarks/perfzero/lib/perfzero/test_files/nvme_device_log.txt: -------------------------------------------------------------------------------- 1 | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT 2 | nvme0n8 259:7 0 375G 0 disk 3 | nvme0n6 259:5 0 375G 0 disk 4 | sdb 8:16 0 50G 0 disk 5 | 6 | └─sdb1 8:17 0 50G 0 part /tmpfs 7 | nvme0n4 259:3 0 375G 0 disk 8 | nvme0n2 259:1 0 375G 0 disk 9 | nvme0n7 259:6 0 375G 0 disk 10 | nvme0n5 259:4 0 375G 0 disk 11 | sda 8:0 0 100G 0 disk 12 | 13 | └─sda1 8:1 0 100G 0 part / 14 | nvme0n3 259:2 0 375G 0 disk 15 | nvme0n1 259:0 0 375G 0 disk 16 | -------------------------------------------------------------------------------- /Liquid-job-benchmarks/perfzero/scripts/create_big_table.txt: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "name": "execution_timestamp", 4 | "type": "TIMESTAMP", 5 | "mode": "REQUIRED" 6 | }, 7 | { 8 | "name": "execution_id", 9 | "type": "STRING", 10 | "mode": "REQUIRED" 11 | }, 12 | 13 | { 14 | "name": "ml_framework_info", 15 | "type": "STRING", 16 | "mode": "NULLABLE" 17 | }, 18 | { 19 | "name": "benchmark_result", 20 | "type": "STRING", 21 | "mode": "NULLABLE" 22 | }, 23 | { 24 | "name": "benchmark_info", 25 | "type": "STRING", 26 | "mode": "NULLABLE" 27 | }, 28 | { 29 | "name": "setup_info", 30 | "type": "STRING", 31 | "mode": "NULLABLE" 32 | }, 33 | { 34 | "name": "system_info", 35 | "type": "STRING", 36 | "mode": "NULLABLE" 37 | }, 38 | { 39 | "name": "process_info", 40 | "type": "STRING", 41 | "mode": "NULLABLE" 42 | } 43 | ] 44 | -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00000-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00000-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00001-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00001-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00002-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00002-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00003-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00003-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00004-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00004-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00005-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00005-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00006-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00006-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00007-of-00008: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/train-00007-of-00008 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/validation-00000-of-00002: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/validation-00000-of-00002 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/validation-00001-of-00002: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/fake_tf_record_data/validation-00001-of-00002 -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/images/black_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/images/black_image.jpg -------------------------------------------------------------------------------- /Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/images/white_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PasaLab/Liquid/2e70203197cd79f9522d65731ee5dc0eb236b005/Liquid-job-benchmarks/scripts/scripts/tf_cnn_benchmarks/test_data/images/white_image.jpg -------------------------------------------------------------------------------- /Liquid-optimizer/requirements.txt: -------------------------------------------------------------------------------- 1 | sklearn 2 | pandas 3 | argparse 4 | keras==2.2.4 5 | tensorflow==1.15.2 6 | matplotlib>=3.0.2 7 | numpy>=1.14.6 8 | scipy>=1.1.0 9 | -------------------------------------------------------------------------------- /Liquid-optimizer/yao-optimizer.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Liquid-portal/404.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 404 | YAO 12 | 13 | 14 | 15 |
16 | 17 |
18 |
19 |

20 |
21 |
22 | 23 |
24 |
25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Liquid-portal/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | ## 0.0.1-alpha (2019-01-08) 4 | -------------------------------------------------------------------------------- /Liquid-portal/README.md: -------------------------------------------------------------------------------- 1 | # Liquid-Portal 2 | -------------------------------------------------------------------------------- /Liquid-portal/global.inc.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Liquid-portal/index.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | Yet Another Octopus | YAO 10 | 11 | 12 | 13 |
14 | 15 | 16 |
17 | 18 |
19 |

YAO---Yet Another Octopus

20 |
21 |
22 | 23 |
24 |
25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Liquid-portal/predis/autoload.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | require __DIR__.'/src/Autoloader.php'; 13 | 14 | Predis\Autoloader::register(); 15 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/ClientException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis; 13 | 14 | /** 15 | * Exception class that identifies client-side errors. 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ClientException extends PredisException 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Cluster/Distributor/EmptyRingException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Cluster\Distributor; 13 | 14 | /** 15 | * Exception class that identifies empty rings. 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class EmptyRingException extends \Exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Cluster/Hash/HashGeneratorInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Cluster\Hash; 13 | 14 | /** 15 | * An hash generator implements the logic used to calculate the hash of a key to 16 | * distribute operations among Redis nodes. 17 | * 18 | * @author Daniele Alessandri 19 | */ 20 | interface HashGeneratorInterface 21 | { 22 | /** 23 | * Generates an hash from a string to be used for distribution. 24 | * 25 | * @param string $value String value. 26 | * 27 | * @return int 28 | */ 29 | public function hash($value); 30 | } 31 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ConnectionAuth.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/auth 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ConnectionAuth extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'AUTH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ConnectionEcho.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/echo 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ConnectionEcho extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ECHO'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ConnectionPing.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/ping 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ConnectionPing extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PING'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ConnectionQuit.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/quit 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ConnectionQuit extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'QUIT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ConnectionSelect.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/select 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ConnectionSelect extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SELECT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/GeospatialGeoDist.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/geodist 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class GeospatialGeoDist extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GEODIST'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/GeospatialGeoRadiusByMember.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/georadiusbymember 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class GeospatialGeoRadiusByMember extends GeospatialGeoRadius 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GEORADIUSBYMEMBER'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashDelete.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hdel 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashDelete extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HDEL'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashExists.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hexists 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashExists extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HEXISTS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashGet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hget 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashGet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HGET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashGetMultiple.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hmget 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashGetMultiple extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HMGET'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashIncrementBy.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hincrby 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashIncrementBy extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HINCRBY'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashIncrementByFloat.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hincrbyfloat 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashIncrementByFloat extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HINCRBYFLOAT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashKeys.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hkeys 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashKeys extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HKEYS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashLength.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hlen 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashLength extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HLEN'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashSet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hset 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashSet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HSET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashSetPreserve.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hsetnx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashSetPreserve extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HSETNX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashStringLength.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hstrlen 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashStringLength extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HSTRLEN'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HashValues.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/hvals 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HashValues extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'HVALS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HyperLogLogAdd.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pfadd 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HyperLogLogAdd extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PFADD'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HyperLogLogCount.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pfcount 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HyperLogLogCount extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PFCOUNT'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/HyperLogLogMerge.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pfmerge 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class HyperLogLogMerge extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PFMERGE'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyDelete.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/del 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyDelete extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DEL'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyDump.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/dump 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyDump extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DUMP'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyExists.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/exists 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyExists extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'EXISTS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyExpire.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/expire 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyExpire extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'EXPIRE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyExpireAt.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/expireat 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyExpireAt extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'EXPIREAT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyKeys.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/keys 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyKeys extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'KEYS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyMove.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/move 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyMove extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'MOVE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyPersist.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/persist 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyPersist extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PERSIST'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyPreciseExpire.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pexpire 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyPreciseExpire extends KeyExpire 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PEXPIRE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyPreciseExpireAt.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pexpireat 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyPreciseExpireAt extends KeyExpireAt 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PEXPIREAT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyPreciseTimeToLive.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/pttl 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyPreciseTimeToLive extends KeyTimeToLive 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PTTL'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyRandom.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/randomkey 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyRandom extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RANDOMKEY'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | public function parseResponse($data) 33 | { 34 | return $data !== '' ? $data : null; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyRename.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/rename 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyRename extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RENAME'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyRenamePreserve.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/renamenx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyRenamePreserve extends KeyRename 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RENAMENX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyRestore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/restore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyRestore extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RESTORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyTimeToLive.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/ttl 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyTimeToLive extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'TTL'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/KeyType.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/type 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class KeyType extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'TYPE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListIndex.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lindex 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListIndex extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LINDEX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListInsert.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/linsert 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListInsert extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LINSERT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListLength.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/llen 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListLength extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LLEN'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPopFirst.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lpop 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPopFirst extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LPOP'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPopLast.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/rpop 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPopLast extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RPOP'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPopLastBlocking.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/brpop 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPopLastBlocking extends ListPopFirstBlocking 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BRPOP'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPopLastPushHead.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/rpoplpush 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPopLastPushHead extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RPOPLPUSH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPopLastPushHeadBlocking.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/brpoplpush 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPopLastPushHeadBlocking extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BRPOPLPUSH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPushHead.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lpush 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPushHead extends ListPushTail 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LPUSH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPushHeadX.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lpushx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPushHeadX extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LPUSHX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPushTail.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/rpush 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPushTail extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RPUSH'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListPushTailX.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/rpushx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListPushTailX extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'RPUSHX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListRange.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lrange 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListRange extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LRANGE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListRemove.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lrem 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListRemove extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LREM'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListSet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lset 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListSet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LSET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ListTrim.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/ltrim 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ListTrim extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LTRIM'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PrefixableCommandInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * Defines a command whose keys can be prefixed. 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | interface PrefixableCommandInterface extends CommandInterface 20 | { 21 | /** 22 | * Prefixes all the keys found in the arguments of the command. 23 | * 24 | * @param string $prefix String used to prefix the keys. 25 | */ 26 | public function prefixKeys($prefix); 27 | } 28 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/Processor/ProcessorInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command\Processor; 13 | 14 | use Predis\Command\CommandInterface; 15 | 16 | /** 17 | * A command processor processes Redis commands before they are sent to Redis. 18 | * 19 | * @author Daniele Alessandri 20 | */ 21 | interface ProcessorInterface 22 | { 23 | /** 24 | * Processes the given Redis command. 25 | * 26 | * @param CommandInterface $command Command instance. 27 | */ 28 | public function process(CommandInterface $command); 29 | } 30 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PubSubPublish.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/publish 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class PubSubPublish extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PUBLISH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PubSubSubscribe.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/subscribe 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class PubSubSubscribe extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SUBSCRIBE'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PubSubSubscribeByPattern.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/psubscribe 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class PubSubSubscribeByPattern extends PubSubSubscribe 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PSUBSCRIBE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PubSubUnsubscribe.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/unsubscribe 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class PubSubUnsubscribe extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'UNSUBSCRIBE'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/PubSubUnsubscribeByPattern.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/punsubscribe 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class PubSubUnsubscribeByPattern extends PubSubUnsubscribe 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PUNSUBSCRIBE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerBackgroundRewriteAOF.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/bgrewriteaof 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerBackgroundRewriteAOF extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BGREWRITEAOF'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | public function parseResponse($data) 33 | { 34 | return $data == 'Background append only file rewriting started'; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerBackgroundSave.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/bgsave 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerBackgroundSave extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BGSAVE'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | public function parseResponse($data) 33 | { 34 | return $data === 'Background saving started' ? true : $data; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerCommand.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/command 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerCommand extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'COMMAND'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerDatabaseSize.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/dbsize 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerDatabaseSize extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DBSIZE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerEval.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/eval 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerEval extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'EVAL'; 27 | } 28 | 29 | /** 30 | * Calculates the SHA1 hash of the body of the script. 31 | * 32 | * @return string SHA1 hash. 33 | */ 34 | public function getScriptHash() 35 | { 36 | return sha1($this->getArgument(0)); 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerFlushAll.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/flushall 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerFlushAll extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'FLUSHALL'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerFlushDatabase.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/flushdb 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerFlushDatabase extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'FLUSHDB'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerLastSave.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/lastsave 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerLastSave extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'LASTSAVE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerMonitor.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/monitor 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerMonitor extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'MONITOR'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerObject.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/object 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerObject extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'OBJECT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerSave.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/save 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerSave extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SAVE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerScript.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/script 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerScript extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SCRIPT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerShutdown.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/shutdown 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerShutdown extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SHUTDOWN'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ServerTime.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/time 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ServerTime extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'TIME'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetAdd.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sadd 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetAdd extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SADD'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetCardinality.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/scard 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetCardinality extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SCARD'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetDifference.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sdiff 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetDifference extends SetIntersection 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SDIFF'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetDifferenceStore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sdiffstore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetDifferenceStore extends SetIntersectionStore 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SDIFFSTORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetIntersection.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sinter 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetIntersection extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SINTER'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetIsMember.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sismember 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetIsMember extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SISMEMBER'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetMembers.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/smembers 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetMembers extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SMEMBERS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetMove.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/smove 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetMove extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SMOVE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetPop.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/spop 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetPop extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SPOP'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetRandomMember.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/srandmember 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetRandomMember extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SRANDMEMBER'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetRemove.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/srem 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetRemove extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SREM'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetUnion.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sunion 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetUnion extends SetIntersection 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SUNION'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/SetUnionStore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/sunionstore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class SetUnionStore extends SetIntersectionStore 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SUNIONSTORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringAppend.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/append 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringAppend extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'APPEND'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringBitCount.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/bitcount 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringBitCount extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BITCOUNT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringBitField.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/bitfield 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringBitField extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BITFIELD'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringBitPos.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/bitpos 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringBitPos extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'BITPOS'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringDecrement.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/decr 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringDecrement extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DECR'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringDecrementBy.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/decrby 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringDecrementBy extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DECRBY'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringGet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/get 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringGet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringGetBit.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/getbit 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringGetBit extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GETBIT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringGetMultiple.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/mget 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringGetMultiple extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'MGET'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeArguments($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringGetRange.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/getrange 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringGetRange extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GETRANGE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringGetSet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/getset 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringGetSet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'GETSET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringIncrement.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/incr 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringIncrement extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'INCR'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringIncrementBy.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/incrby 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringIncrementBy extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'INCRBY'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringIncrementByFloat.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/incrbyfloat 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringIncrementByFloat extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'INCRBYFLOAT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringPreciseSetExpire.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/psetex 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringPreciseSetExpire extends StringSetExpire 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'PSETEX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSet.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/set 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSet extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SET'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSetBit.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/setbit 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSetBit extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SETBIT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSetExpire.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/setex 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSetExpire extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SETEX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSetMultiplePreserve.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/msetnx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSetMultiplePreserve extends StringSetMultiple 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'MSETNX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSetPreserve.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/setnx 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSetPreserve extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SETNX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSetRange.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/setrange 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSetRange extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SETRANGE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringStrlen.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/strlen 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringStrlen extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'STRLEN'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/StringSubstr.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/substr 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class StringSubstr extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'SUBSTR'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/TransactionDiscard.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/discard 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class TransactionDiscard extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'DISCARD'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/TransactionExec.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/exec 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class TransactionExec extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'EXEC'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/TransactionMulti.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/multi 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class TransactionMulti extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'MULTI'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/TransactionUnwatch.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/unwatch 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class TransactionUnwatch extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'UNWATCH'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetCardinality.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zcard 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetCardinality extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZCARD'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetCount.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zcount 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetCount extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZCOUNT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetIncrementBy.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zincrby 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetIncrementBy extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZINCRBY'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetIntersectionStore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zinterstore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetIntersectionStore extends ZSetUnionStore 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZINTERSTORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetLexCount.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zlexcount 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetLexCount extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZLEXCOUNT'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetRank.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrank 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetRank extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZRANK'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetRemove.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrem 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetRemove extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREM'; 27 | } 28 | 29 | /** 30 | * {@inheritdoc} 31 | */ 32 | protected function filterArguments(array $arguments) 33 | { 34 | return self::normalizeVariadic($arguments); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetRemoveRangeByLex.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zremrangebylex 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetRemoveRangeByLex extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREMRANGEBYLEX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetRemoveRangeByRank.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zremrangebyrank 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetRemoveRangeByRank extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREMRANGEBYRANK'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetRemoveRangeByScore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zremrangebyscore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetRemoveRangeByScore extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREMRANGEBYSCORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetReverseRange.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrevrange 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetReverseRange extends ZSetRange 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREVRANGE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetReverseRangeByLex.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrevrangebylex 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetReverseRangeByLex extends ZSetRangeByLex 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREVRANGEBYLEX'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetReverseRangeByScore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrevrangebyscore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetReverseRangeByScore extends ZSetRangeByScore 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREVRANGEBYSCORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetReverseRank.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zrevrank 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetReverseRank extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZREVRANK'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Command/ZSetScore.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Command; 13 | 14 | /** 15 | * @link http://redis.io/commands/zscore 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | class ZSetScore extends Command 20 | { 21 | /** 22 | * {@inheritdoc} 23 | */ 24 | public function getId() 25 | { 26 | return 'ZSCORE'; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Connection/Aggregate/ClusterInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Connection\Aggregate; 13 | 14 | use Predis\Connection\AggregateConnectionInterface; 15 | 16 | /** 17 | * Defines a cluster of Redis servers formed by aggregating multiple connection 18 | * instances to single Redis nodes. 19 | * 20 | * @author Daniele Alessandri 21 | */ 22 | interface ClusterInterface extends AggregateConnectionInterface 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Connection/ConnectionException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Connection; 13 | 14 | use Predis\CommunicationException; 15 | 16 | /** 17 | * Exception class that identifies connection-related errors. 18 | * 19 | * @author Daniele Alessandri 20 | */ 21 | class ConnectionException extends CommunicationException 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/NotSupportedException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis; 13 | 14 | /** 15 | * Exception class thrown when trying to use features not supported by certain 16 | * classes or abstractions of Predis. 17 | * 18 | * @author Daniele Alessandri 19 | */ 20 | class NotSupportedException extends PredisException 21 | { 22 | } 23 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/PredisException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis; 13 | 14 | /** 15 | * Base exception class for Predis-related errors. 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | abstract class PredisException extends \Exception 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Protocol/ProtocolException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Protocol; 13 | 14 | use Predis\CommunicationException; 15 | 16 | /** 17 | * Exception used to indentify errors encountered while parsing the Redis wire 18 | * protocol. 19 | * 20 | * @author Daniele Alessandri 21 | */ 22 | class ProtocolException extends CommunicationException 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Protocol/RequestSerializerInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Protocol; 13 | 14 | use Predis\Command\CommandInterface; 15 | 16 | /** 17 | * Defines a pluggable serializer for Redis commands. 18 | * 19 | * @author Daniele Alessandri 20 | */ 21 | interface RequestSerializerInterface 22 | { 23 | /** 24 | * Serializes a Redis command. 25 | * 26 | * @param CommandInterface $command Redis command. 27 | * 28 | * @return string 29 | */ 30 | public function serialize(CommandInterface $command); 31 | } 32 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Replication/MissingMasterException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Replication; 13 | 14 | use Predis\ClientException; 15 | 16 | /** 17 | * Exception class that identifies when master is missing in a replication setup. 18 | * 19 | * @author Daniele Alessandri 20 | */ 21 | class MissingMasterException extends ClientException 22 | { 23 | } 24 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Replication/RoleException.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Replication; 13 | 14 | use Predis\CommunicationException; 15 | 16 | /** 17 | * Exception class that identifies a role mismatch when connecting to node 18 | * managed by redis-sentinel. 19 | * 20 | * @author Daniele Alessandri 21 | */ 22 | class RoleException extends CommunicationException 23 | { 24 | } 25 | -------------------------------------------------------------------------------- /Liquid-portal/predis/src/Response/ResponseInterface.php: -------------------------------------------------------------------------------- 1 | 7 | * 8 | * For the full copyright and license information, please view the LICENSE 9 | * file that was distributed with this source code. 10 | */ 11 | 12 | namespace Predis\Response; 13 | 14 | /** 15 | * Represents a complex response object from Redis. 16 | * 17 | * @author Daniele Alessandri 18 | */ 19 | interface ResponseInterface 20 | { 21 | } 22 | -------------------------------------------------------------------------------- /Liquid-portal/secure.inc.php: -------------------------------------------------------------------------------- 1 | array('Admin', 'Moderator', 'User'), 11 | * 'post.comment' => array'Admin', 'Moderator', 'User'), 12 | * 'post.pin' => array('Admin', 'Moderator'), 13 | * 'user.block' => array('Admin') 14 | * ); 15 | */ 16 | public static function setMap(array $map) 17 | { 18 | if (is_array($map)) { 19 | self::$rules_array = $map; 20 | } 21 | } 22 | 23 | /* 24 | * AccessController::hasAccess('Moderator', 'user.block'); 25 | */ 26 | public static function hasAccess($role, $operation) 27 | { 28 | if (array_key_exists($operation, self::$rules_array)) { 29 | return in_array($role, self::$rules_array[$operation]); 30 | } 31 | return false; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /Liquid-portal/util4p/README.md: -------------------------------------------------------------------------------- 1 | # utilities for php 2 | 3 | Require PHP version >= 5.1.0 4 | 5 | ## AccessController.class.php 6 | 7 | ## CRLogger.class.php 8 | 9 | ## CRObject.class.php 10 | 11 | ## MysqlPDO.class.php 12 | 13 | ## Random.class.php 14 | 15 | ## RedisDAO.class.php 16 | 17 | ## Session.class.php 18 | 19 | ## SQLBuilder.class.php 20 | 21 | ## util.php 22 | 23 | ## Validator.class.php 24 | -------------------------------------------------------------------------------- /Liquid-portal/util4p/Validator.class.php: -------------------------------------------------------------------------------- 1 | 255) { 11 | return false; 12 | } 13 | } 14 | return preg_match('/^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$/', $str); 15 | } 16 | 17 | /**/ 18 | public static function isEmail($str) 19 | { 20 | if ($str === null) { 21 | return false; 22 | } 23 | return preg_match("/^([0-9A-Za-z\\-_\\.]+)@([0-9a-z]+\\.[a-z]{2,3}(\\.[a-z]{2})?)$/i", $str) === 1; 24 | } 25 | 26 | 27 | /*TODO*/ 28 | public static function isURL($url) 29 | { 30 | if (is_null($url) || empty($url)) { 31 | return false; 32 | } 33 | return true; 34 | } 35 | 36 | } 37 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/group_models.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type Group struct { 4 | Name string `json:"name"` 5 | Weight int `json:"weight"` 6 | Reserved bool `json:"reserved"` 7 | NumGPU int `json:"quota_gpu"` 8 | MemoryGPU int `json:"quota_gpu_mem"` 9 | CPU int `json:"quota_cpu"` 10 | Memory int `json:"quota_mem"` 11 | } 12 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/job_priority.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type JobPriority int 4 | 5 | const ( 6 | Low JobPriority = 1 7 | Medium JobPriority = 25 8 | Hight JobPriority = 50 9 | Urgent JobPriority = 99 10 | ) 11 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/job_sorter.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type JobSorter []Job 4 | 5 | func (s JobSorter) Len() int { 6 | return len(s) 7 | } 8 | func (s JobSorter) Swap(i, j int) { 9 | s[i], s[j] = s[j], s[i] 10 | } 11 | func (s JobSorter) Less(i, j int) bool { 12 | return s[i].CreatedAt < s[j].CreatedAt 13 | } 14 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/pool_seg.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "sync" 4 | 5 | type PoolSeg struct { 6 | ID int 7 | Nodes map[string]*NodeStatus 8 | Lock sync.Mutex 9 | Next *PoolSeg 10 | } 11 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/scheduler.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type Scheduler interface { 4 | Start() 5 | 6 | Schedule(Job) 7 | 8 | UpdateProgress(job Job, state State) 9 | 10 | AcquireResource(Job) []NodeStatus 11 | 12 | ReleaseResource(Job, NodeStatus) 13 | 14 | QueryState(jobName string) MsgJobStatus 15 | 16 | QueryLogs(jobName string, taskName string) MsgLog 17 | 18 | Stop(jobName string) MsgStop 19 | 20 | ListJobs() MsgJobList 21 | 22 | Summary() MsgSummary 23 | 24 | SetEnabled(enabled bool) bool 25 | 26 | UpdateParallelism(parallelism int) bool 27 | 28 | /* TODO: rearrange jobs to other queues */ 29 | updateGroup(group Group) bool 30 | 31 | DebugDump() map[string]interface{} 32 | } 33 | -------------------------------------------------------------------------------- /Liquid-scheduler/src/state.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | type State int 4 | 5 | const ( 6 | // submitted 7 | Created State = iota 8 | // scheduling 9 | Starting 10 | // running 11 | Running 12 | // stopped 13 | Stopped 14 | // finished successfully 15 | Finished 16 | 17 | Failed 18 | ) 19 | --------------------------------------------------------------------------------