Run pylint test in Python 3

In https://github.com/grpc/grpc/pull/17280, Python has packages (pylint in this case) that already dropped support for Python 2.7. But our infrastructure executes the test scripts in Python 2.7, and that prevents using latest version of certain tools. And we are expecting more and more packages dropping support for Python 2.7.
So, if possible, I hope we can enable Python 3.7 in test script execution.

In this PR, I updated pylint_code.sh to use python3.
Upgrade sanity Dockerfile to debian:stretch, then install Python 2.7 and Python 3.7

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,021,324      Total (=)      2,021,324

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,660      Total (<)     11,177,663

 No significant differences in binary sizes

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,224      Total (=)      2,020,224

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,154,230      Total (>)     11,154,229

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Interestingly, the shellcheck version difference breaks our Sanity Checks
The shellcheck version under debian:jessie is 0.3.4.
The shellcheck version under debian:stretch is 0.4.4.
The shellcheck complain in newer version:
In tools/run_tests/sanity/../../../tools/run_tests/performance/run_worker_node.sh line 16:
. "$HOME/.nvm/nvm.sh"
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/performance/build_performance_go.sh line 20:
export GOPATH=$(pwd)/../gopath
       ^-- SC2155: Declare and assign separately to avoid masking return values.
In tools/run_tests/sanity/../../../tools/run_tests/performance/run_worker_ruby.sh line 16:
source ~/.rvm/scripts/rvm
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/performance/run_worker_php.sh line 16:
source ~/.rvm/scripts/rvm
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/performance/build_performance_node.sh line 18:
. "$HOME/.nvm/nvm.sh"
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/performance/build_performance.sh line 16:
source ~/.rvm/scripts/rvm
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/performance/run_worker_go.sh line 20:
export GOPATH=$(pwd)/../gopath
       ^-- SC2155: Declare and assign separately to avoid masking return values.
In tools/run_tests/sanity/../../../tools/run_tests/interop/with_nvm.sh line 18:
source ~/.nvm/nvm.sh
^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/interop/with_rvm.sh line 18:
source /usr/local/rvm/scripts/rvm
^-- SC1091: Not following: /usr/local/rvm/scripts/rvm was not specified as input (see shellcheck -x).
In tools/run_tests/sanity/../../../tools/run_tests/artifacts/build_artifact_protoc.sh line 17:
source scl_source enable devtoolset-2
^-- SC1091: Not following: scl_source was not specified as input (see shellcheck -x).
In tools/run_tests/sanity/../../../tools/run_tests/artifacts/build_artifact_ruby.sh line 21:
[[ -s /etc/profile.d/rvm.sh ]] && . /etc/profile.d/rvm.sh
                                  ^-- SC1091: Not following: /etc/profile.d/rvm.sh was not specified as input (see shellcheck -x).
In tools/run_tests/sanity/../../../tools/run_tests/artifacts/build_artifact_ruby.sh line 22:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
                                     ^-- SC1090: Can't follow non-constant source. Use a directive to specify location.
In tools/run_tests/sanity/../../../tools/run_tests/artifacts/run_in_workspace.sh line 22:
export repo_root=$(pwd)
       ^-- SC2155: Declare and assign separately to avoid masking return values.
In tools/run_tests/sanity/../../../tools/run_tests/helper_scripts/run_tests_in_workspace.sh line 23:
export repo_root="$(pwd)"
       ^-- SC2155: Declare and assign separately to avoid masking return values.
In tools/run_tests/sanity/../../../tools/run_tests/helper_scripts/run_grpc-node.sh line 20:
cd "$(dirname "$0")/../../.."
^-- SC2164: Use cd ... || exit in case cd fails.
In tools/run_tests/sanity/../../../tools/run_tests/helper_scripts/run_grpc-node.sh line 26:
cd ./../grpc-node
^-- SC2164: Use cd ... || exit in case cd fails.
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/docker_run_tests.sh line 21:
export CONFIG=$config
              ^-- SC2154: config is referenced but not assigned (did you mean 'CONFIG'?).
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/build_and_run_docker.sh line 23:
cd -
^-- SC2103: Use a ( subshell ) to avoid having to cd back.
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/build_docker_and_run_tests.sh line 23:
cd -
^-- SC2103: Use a ( subshell ) to avoid having to cd back.
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/build_docker_and_run_tests.sh line 55:
  -e "config=$config" \
             ^-- SC2154: config is referenced but not assigned.
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/build_docker_and_run_tests.sh line 56:
  -e "arch=$arch" \
           ^-- SC2154: arch is referenced but not assigned.
In tools/run_tests/sanity/../../../tools/run_tests/dockerize/build_interop_image.sh line 31:
cd "$(dirname "$0")/../../.."
^-- SC2164: Use cd ... || exit in case cd fails.

@mehrdada plz fix, that's your stuff :P

@nicolasnoble feels good not being on the payroll. ;)

@mehrdada we'll just going to keep pulling you back in!

@lidizheng looks like the new shellcheck is stricter in some areas and have more analyses. That’s normal with any static analysis tool. Either modify the scripts to make shellcheck happy (ideal option) or add suppressions to make it not complain. Usually the complaints have valid reasons and bash is nontrivial.

@mehrdada Thanks for your advice. I will examine each one of the complain and try to find a balance point. @_@

I thought new version of shellcheck is the biggest headache, no, it is the newer pylint.
+ python_pylint_venv/bin/python -m pylint --rcfile=.pylintrc -rn src/python/grpcio/grpc
************* Module grpc
src/python/grpcio/grpc/__init__.py:546:0: R0205: Class 'ChannelCredentials' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/__init__.py:559:0: R0205: Class 'CallCredentials' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/__init__.py:612:0: R0205: Class 'ServerCredentials' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/__init__.py:623:0: R0205: Class 'ServerCertificateConfiguration' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc._auth
src/python/grpcio/grpc/_auth.py:49:46: W1505: Using deprecated method getargspec() (deprecated-method)
************* Module grpc._server
src/python/grpcio/grpc/_server.py:89:0: R0205: Class '_RPCState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_server.py:303:0: R0205: Class '_RequestIterator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_server.py:647:0: R0205: Class '_ServerState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc._utilities
src/python/grpcio/grpc/_utilities.py:133:4: R1711: Useless return at end of function or method (useless-return)
src/python/grpcio/grpc/_utilities.py:137:4: R1711: Useless return at end of function or method (useless-return)
src/python/grpcio/grpc/_utilities.py:141:4: R1711: Useless return at end of function or method (useless-return)
************* Module grpc._interceptor
src/python/grpcio/grpc/_interceptor.py:22:0: R0205: Class '_ServicePipeline' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_interceptor.py:135:4: E0301: __iter__ returns non-iterator (non-iterator-returned)
************* Module grpc._channel
src/python/grpcio/grpc/_channel.py:537:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio/grpc/_channel.py:655:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio/grpc/_channel.py:95:0: R0205: Class '_RPCState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_channel.py:178:0: R0915: Too many statements (54/50) (too-many-statements)
src/python/grpcio/grpc/_channel.py:527:12: E0702: Raising NoneType while only classes or instances are allowed (raising-bad-type)
src/python/grpcio/grpc/_channel.py:568:12: E0702: Raising NoneType while only classes or instances are allowed (raising-bad-type)
src/python/grpcio/grpc/_channel.py:601:12: E0702: Raising NoneType while only classes or instances are allowed (raising-bad-type)
src/python/grpcio/grpc/_channel.py:747:16: W0642: Invalid assignment to self in method (self-cls-assignment)
src/python/grpcio/grpc/_channel.py:750:16: W0642: Invalid assignment to self in method (self-cls-assignment)
src/python/grpcio/grpc/_channel.py:755:0: R0205: Class '_ChannelCallState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_channel.py:828:0: R0205: Class '_ChannelConnectivityState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc._plugin_wrapping
src/python/grpcio/grpc/_plugin_wrapping.py:34:0: R0205: Class '_CallbackState' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/_plugin_wrapping.py:67:0: R0205: Class '_Plugin' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc.experimental.session_cache
src/python/grpcio/grpc/experimental/session_cache.py:34:0: R0205: Class 'SSLSessionCache' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc.framework.foundation.logging_pool
src/python/grpcio/grpc/framework/foundation/logging_pool.py:38:0: R0205: Class '_LoggingPool' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc.framework.foundation.future
src/python/grpcio/grpc/framework/foundation/future.py:39:0: W0622: Redefining built-in 'TimeoutError' (redefined-builtin)
************* Module grpc.framework.interfaces.base.base
src/python/grpcio/grpc/framework/interfaces/base/base.py:61:0: R0205: Class 'Outcome' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc.beta.utilities
src/python/grpcio/grpc/beta/utilities.py:102:4: R1711: Useless return at end of function or method (useless-return)
src/python/grpcio/grpc/beta/utilities.py:106:4: R1711: Useless return at end of function or method (useless-return)
src/python/grpcio/grpc/beta/utilities.py:110:4: R1711: Useless return at end of function or method (useless-return)
************* Module grpc.beta.implementations
src/python/grpcio/grpc/beta/implementations.py:66:0: R0205: Class 'Channel' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/beta/implementations.py:135:0: R0205: Class 'StubOptions' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio/grpc/beta/implementations.py:234:0: R0205: Class 'ServerOptions' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc.beta.interfaces
src/python/grpcio/grpc/beta/interfaces.py:29:0: R0205: Class 'GRPCCallOptions' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)

-----------------------------------
Your code has been rated at 9.82/10

+ EXIT=1
+ for dir in "${DIRS[@]}"
+ python_pylint_venv/bin/python -m pylint --rcfile=.pylintrc -rn src/python/grpcio_health_checking/grpc_health

------------------------------------
Your code has been rated at 10.00/10

+ for dir in "${DIRS[@]}"
+ python_pylint_venv/bin/python -m pylint --rcfile=.pylintrc -rn src/python/grpcio_reflection/grpc_reflection

------------------------------------
Your code has been rated at 10.00/10

+ for dir in "${DIRS[@]}"
+ python_pylint_venv/bin/python -m pylint --rcfile=.pylintrc -rn src/python/grpcio_testing/grpc_testing
************* Module grpc_testing._time
src/python/grpcio_testing/grpc_testing/_time.py:44:0: R0205: Class '_State' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc_testing._server._service
src/python/grpcio_testing/grpc_testing/_server/_service.py:18:0: R0205: Class '_RequestIterator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc_testing._server._handler
src/python/grpcio_testing/grpc_testing/_server/_handler.py:188:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
************* Module grpc_testing._server._rpc
src/python/grpcio_testing/grpc_testing/_server/_rpc.py:25:0: R0205: Class 'Rpc' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module grpc_testing._channel._invocation
src/python/grpcio_testing/grpc_testing/_channel/_invocation.py:130:0: R0205: Class '_HandlerExtras' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)

-----------------------------------
Your code has been rated at 9.96/10

+ EXIT=1
+ for dir in "${TEST_DIRS[@]}"
+ python_pylint_venv/bin/python -m pylint --rcfile=.pylintrc-tests -rn src/python/grpcio_tests/tests
************* Module tests._runner
src/python/grpcio_tests/tests/_runner.py:36:0: R0205: Class 'CaptureFile' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/_runner.py:118:0: R0205: Class 'Runner' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/_runner.py:206:16: W0706: The except handler raises immediately (try-except-raise)
************* Module tests._loader
src/python/grpcio_tests/tests/_loader.py:27:0: R0205: Class 'Loader' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests._result
src/python/grpcio_tests/tests/_result.py:49:4: R0205: Class 'Kind' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/_result.py:249:0: R0205: Class '_Colors' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.testing._client_application
src/python/grpcio_tests/tests/testing/_client_application.py:133:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/testing/_client_application.py:135:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/testing/_client_application.py:64:0: R0205: Class '_Pipe' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.testing._time_test
src/python/grpcio_tests/tests/testing/_time_test.py:31:0: R0205: Class '_TimeNoter' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/testing/_time_test.py:47:0: R0205: Class 'TimeTest' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.protoc_plugin._split_definitions_test
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:147:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:163:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:246:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:248:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:84:0: R0205: Class '_Servicer' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:108:0: R0205: Class '_Mid2016ProtocStyle' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:121:0: R0205: Class '_SingleProtocExecutionProtocStyle' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:134:0: R0205: Class '_ProtoBeforeGrpcProtocStyle' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/protoc_plugin/_split_definitions_test.py:150:0: R0205: Class '_GrpcBeforeProtoProtocStyle' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.protoc_plugin._python_plugin_test
src/python/grpcio_tests/tests/protoc_plugin/_python_plugin_test.py:44:0: R0205: Class '_ServicerMethods' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.protoc_plugin.beta_python_plugin_test
src/python/grpcio_tests/tests/protoc_plugin/beta_python_plugin_test.py:226:0: R1707: Disallow trailing comma tuple (trailing-comma-tuple)
src/python/grpcio_tests/tests/protoc_plugin/beta_python_plugin_test.py:110:0: R0205: Class '_ServicerMethods' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.fork.methods
src/python/grpcio_tests/tests/fork/methods.py:75:0: R0205: Class '_Pipe' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/fork/methods.py:114:0: R0205: Class '_ChildProcess' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.stress.client
src/python/grpcio_tests/tests/stress/client.py:135:17: E0602: Undefined variable 'xrange' (undefined-variable)
src/python/grpcio_tests/tests/stress/client.py:137:21: E0602: Undefined variable 'xrange' (undefined-variable)
************* Module tests.interop.methods
src/python/grpcio_tests/tests/interop/methods.py:193:0: R0205: Class '_Pipe' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.interop._intraop_test_case
src/python/grpcio_tests/tests/interop/_intraop_test_case.py:19:0: R0205: Class 'IntraopTestCase' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._invocation_defects_test
src/python/grpcio_tests/tests/unit/_invocation_defects_test.py:38:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_invocation_defects_test.py:58:0: R0205: Class '_Handler' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_invocation_defects_test.py:157:0: R0205: Class 'FailAfterFewIterationsCounter' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._channel_ready_future_test
src/python/grpcio_tests/tests/unit/_channel_ready_future_test.py:25:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit.test_common
src/python/grpcio_tests/tests/unit/test_common.py:113:0: R0205: Class 'WaitGroup' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._server_ssl_cert_config_test
src/python/grpcio_tests/tests/unit/_server_ssl_cert_config_test.py:85:0: R0205: Class 'CertConfigFetcher' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._channel_close_test
src/python/grpcio_tests/tests/unit/_channel_close_test.py:55:0: R0205: Class '_Pipe' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._rpc_test
src/python/grpcio_tests/tests/unit/_rpc_test.py:40:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_rpc_test.py:60:0: R0205: Class '_Handler' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._metadata_code_details_test
src/python/grpcio_tests/tests/unit/_metadata_code_details_test.py:61:0: R0205: Class '_Servicer' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._channel_connectivity_test
src/python/grpcio_tests/tests/unit/_channel_connectivity_test.py:34:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._exit_scenarios
src/python/grpcio_tests/tests/unit/_exit_scenarios.py:90:14: R1708: Do not raise StopIteration in generator, use return statement instead (stop-iteration-return)
src/python/grpcio_tests/tests/unit/_exit_scenarios.py:148:0: R0205: Class 'DaemonPool' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._auth_test
src/python/grpcio_tests/tests/unit/_auth_test.py:24:0: R0205: Class 'MockGoogleCreds' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_auth_test.py:33:0: R0205: Class 'MockExceptionGoogleCreds' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._resource_exhausted_test
src/python/grpcio_tests/tests/unit/_resource_exhausted_test.py:36:0: R0205: Class '_TestTrigger' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._channel_args_test
src/python/grpcio_tests/tests/unit/_channel_args_test.py:23:0: R0205: Class 'TestPointerWrapper' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._interceptor_test
src/python/grpcio_tests/tests/unit/_interceptor_test.py:41:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_interceptor_test.py:61:0: R0205: Class '_Handler' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._cython._common
src/python/grpcio_tests/tests/unit/_cython/_common.py:41:0: R0205: Class 'QueueDriver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_cython/_common.py:95:0: R0205: Class 'RpcTest' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._cython._cancel_many_calls_test
src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py:38:0: R0205: Class '_State' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py:52:0: R0205: Class '_Handler' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_cython/_cancel_many_calls_test.py:108:0: R0205: Class '_QueueDriver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._cython.cygrpc_test
src/python/grpcio_tests/tests/unit/_cython/cygrpc_test.py:96:0: R0205: Class 'ServerClientMixin' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._cython._read_some_but_not_all_responses_test
src/python/grpcio_tests/tests/unit/_cython/_read_some_but_not_all_responses_test.py:26:0: R0205: Class '_ServerDriver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/_cython/_read_some_but_not_all_responses_test.py:67:0: R0205: Class '_QueueDriver' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit._cython.test_utilities
src/python/grpcio_tests/tests/unit/_cython/test_utilities.py:20:0: R0205: Class 'SimpleFuture' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit.framework.foundation._logging_pool_test
src/python/grpcio_tests/tests/unit/framework/foundation/_logging_pool_test.py:24:0: R0205: Class '_CallableObject' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit.beta._utilities_test
src/python/grpcio_tests/tests/unit/beta/_utilities_test.py:26:0: R0205: Class '_Callback' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.unit.beta._beta_features_test
src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py:42:0: R0205: Class '_Servicer' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/unit/beta/_beta_features_test.py:102:0: R0205: Class '_BlockingIterator' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.qps.benchmark_client
src/python/grpcio_tests/tests/qps/benchmark_client.py:32:0: R0205: Class 'GenericStub' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/qps/benchmark_client.py:138:0: R0205: Class '_SyncStream' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
src/python/grpcio_tests/tests/qps/benchmark_client.py:183:21: E0602: Undefined variable 'xrange' (undefined-variable)
************* Module tests.qps.client_runner
src/python/grpcio_tests/tests/qps/client_runner.py:80:17: E0602: Undefined variable 'xrange' (undefined-variable)
************* Module tests.qps.histogram
src/python/grpcio_tests/tests/qps/histogram.py:21:0: R0205: Class 'Histogram' inherits from object, can be safely removed from bases in python3 (useless-object-inheritance)
************* Module tests.qps.worker_server
src/python/grpcio_tests/tests/qps/worker_server.py:42:17: R1708: Do not raise StopIteration in generator, use return statement instead (stop-iteration-return)
src/python/grpcio_tests/tests/qps/worker_server.py:105:17: R1708: Do not raise StopIteration in generator, use return statement instead (stop-iteration-return)
src/python/grpcio_tests/tests/qps/worker_server.py:112:17: E0602: Undefined variable 'xrange' (undefined-variable)

-----------------------------------
Your code has been rated at 9.88/10

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,410      Total (=)      2,020,410

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,174,080      Total (<)     11,174,081

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,410      Total (=)      2,020,410

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,174,076      Total (<)     11,174,077

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

@lidizheng I'd just exclude beta and framework folders and not spend time on fixing them. They should be eliminated soon.

There are two more disabled rules that require further investigation, posted in https://github.com/grpc/grpc/issues/17380

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,410      Total (=)      2,020,410

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,174,075      Total (<)     11,174,082

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

@mehrdada PTAL. The beta related code is removed.
@nicolasnoble PTaL. I have bump the shellcheck to 0.4.4, and updated some script.
@ericgribkoff @gnossen Can you take a look at the Python part?

Known failure:

ObjC tests on mac take very long to run #15657
FLAKY: grpc/core/pull_request/macos/grpc_ios_binary_size #17419
node compile issue due to ClientHttp2StreamMock #16692
//test/cpp/end2end:client_callback_end2end_test broken on MSAN #17375
py27_native.test.unit._channel_ready_future_test.ChannelReadyFutureTest is flaky on master #15308

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,019,548      Total (=)      2,019,548

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,155,947      Total (<)     11,155,950

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

@ericgribkoff PTAL. I have adopted your advice to remove most of the global disable rules, and merged your Pre-Fix PR. The failed tests are unrelated to this PR.

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,870      Total (=)      2,020,870

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,122      Total (>)     11,177,120

 No significant differences in binary sizes

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,870      Total (=)      2,020,870

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,120      Total (<)     11,177,124

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

****************************************************************

libgrpc.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

****************************************************************

libgrpc++.so

     VM SIZE        FILE SIZE
 ++++++++++++++  ++++++++++++++

  [ = ]       0        0  [ = ]

[trickle] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,870      Total (=)      2,020,870

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,122      Total (=)     11,177,122

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

Objective-C binary sizes
*****************STATIC******************
  New size                      Old size
 2,020,870      Total (=)      2,020,870

 No significant differences in binary sizes

***************FRAMEWORKS****************
  New size                      Old size
11,177,127      Total (>)     11,177,124

 No significant differences in binary sizes

Corrupt JSON data (indicates timeout or crash):
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.new: 10
    bm_call_create.BM_IsolatedFilter_ClientChannelFilter_NoOp_.counters.old: 10

[microbenchmarks] No significant performance differences

@jtattermusch Hi Jan, when you got a chance, can you take a look at the updated shell script?


Add pretty-print support for request and response body

From<EMAIL_ADDRESS>on January 05, 2012 11:23:23
When logging request and response body add support for pretty-printing it
Original issue: http://code.google.com/p/rest-assured/issues/detail?id=140

From<EMAIL_ADDRESS>on January 05, 2012 07:32:56
For JSON:
JsonOutput.prettyPrint('''{"person":{"name":"Guillaume","age":33,"pets":["Hector","Felix"]}}''')

From<EMAIL_ADDRESS>on January 05, 2012 07:35:23
For XML:
def xml = "" +
""
def stringWriter = new StringWriter()
def node = new XmlParser().parseText(xml);
new XmlNodePrinter(new PrintWriter(stringWriter)).print(node)

From<EMAIL_ADDRESS>on January 09, 2012 10:13:56
Status: Started

From<EMAIL_ADDRESS>on January 15, 2012 08:55:23
Status: Fixed


Check if .map.originalPositionFor is a function before executing

Hardens the structural typecheck performed in mapSourcePosition before executing originalPositionFor methods on sourceMap.map objects.
This addresses a bug I encountered with electron-updater while working on https://github.com/meetalva/alva/, where Promise values somehow end up in sourceMap.map, causing the app to crash with stack traces like this.
-/app.asar/node_modules/source-map-support/source-map-support.js:214
    var originalPosition = sourceMap.map.originalPositionFor(position);
                                         ^

TypeError: sourceMap.map.originalPositionFor is not a function
    at mapSourcePosition (-/app.asar/node_modules/source-map-support/source-map-support.js:214:42)
    at wrapCallSite (-/app.asar/node_modules/source-map-support/source-map-support.js:358:20)
    at -/app.asar/node_modules/source-map-support/source-map-support.js:395:26
    at Array.map (<anonymous>)
    at Function.prepareStackTrace (-/app.asar/node_modules/source-map-support/source-map-support.js:394:24)
    at process.emit (-/app.asar/node_modules/source-map-support/source-map-support.js:453:52)
    at process._fatalException (internal/bootstrap/node.js:488:27)

Unfortunately I don't know how this happens exactly. Debugging this proves rather hard due to the exception only being raised when starting the built electron-builder application.

Failing Travis jobs seem to be unrelated.


How to implement Data abstraction in C++

Article checklist
NOTE: (Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
Preliminary Checks - Formatting and Structure

[x] Does your article follow any of the suggested structure formats? - see example formats
[x] Is your article properly formatted in Markdown? - see Github Markdown guide
[x] Have you used the correct folder and file structure? - see Contribution Guidelines
[x] Is your article over 750 words? - Tool: Wordcounter.net
[x] Have you used our preferred heading structure? - H3 (###) and up
[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.
[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.
[x] Have you included a hero image that is 600x400 pixels and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images
[x] In your PR - add a comment that states "This fixes #(enter your Idea Content Form #)" to link and close your Idea Content (issue) when the PR is merged.

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid -  Grammarly
[x] Please place your article through a 3rd party plagiarism checker? We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide

Contribution guidelines
For first-time contributors and for more details, see Contributing Guidelines
This fixes #2060

Upon running your article through our 3rd party plagiarism checker it seemed to raise a few flags and the % was higher than we typically accept.
Please see attached PDF - and revisit the article to ensure we are contributing wholly unique and original content.
Be sure to see our resources page to see more info on plagiarism and what is considered as such.
How to implement Data abstraction in C++ #2148.pdf

Hello, @hectorkambow I've fixed the plagiarism. Kindly review.
cc: @kayere

Thank you v much for your patience as we worked through our Repo re-structuring process.
The purpose behind this restructure - was to better allow us to handle more volume and allow students to publish more articles and get more involved with the community (with open-source contribution and suggestions).
With most of the changes coming to completion - we will be sure to get your article published asap.
Thank you again - and we are looking forward to more amazing articles.

This line was empty

Go ahead run the code here

@Dawe-7
cc @kayere
I have also migrated the files to a new PR to prevent a merge conflict with the new folder structure


Bug when reading .xls file

The ExcelDataReader gets into a bad state when reading the file @plsft provided via email: sample-file.xls. Need to figure out what's going on.

Thanks @MarkPflug ! Amazing support!


BUGFIX ensure InternationalPhoneNumberField has value before validation attempt

resolves #20

Thanks! Tagged as 4.3.4.

You bet, thanks for the quick tag!


fix(ci): Add travis configuration file

Fix the travis build configuration. Necessary for #24 so we can see that that change works on CI.

I didn't realize that this repo does not have tests, though it should be easy to do since there is a nearly complete saucelabs example. This should at least keep travis happy for follow on PRs.


Ability to disable flash message

There's no way to hide this message "Two factor authentication successful."

Each of the locale files in config\locales contains a success key. Set the message to an empty string, and no message will appear. For example in en.yml:
en:
  devise:
    two_factor_authentication:
      success: ""
      attempt_failed: "Attempt failed."
      max_login_attempts_reached: "Access completely denied as you have reached your attempts limit"
      contact_administrator: "Please contact your system administrator."
      code_has_been_sent: "Your authentication code has been sent."


Fixed typographical error, changed accomdate to accommodate in README.

joshdholtz, I've corrected a typographical error in the documentation of the jsonapi-ios project. You should be able to merge this pull request automatically. However, if this was intentional or you enjoy living in linguistic squalor please let me know and create an issue on my home repository.

Hey @orthographic-pedant! Thanks for the PR :blush: There was a WIP branch (which I just merged into master) for new stuff that completely rewrote this so my appologies for not making that clear :pensive:

I'm happy to see that all corrections have been made. Please continue to
create software for bots and humans alike.
On Tue, Oct 6, 2015 at 11:47 AM, Josh Holtz<EMAIL_ADDRESS>wrote:

Closed #23 https://github.com/joshdholtz/jsonapi-ios/pull/23.
—
Reply to this email directly or view it on GitHub
https://github.com/joshdholtz/jsonapi-ios/pull/23#event-428120461.

@orthographic-pedant You got it :ok_hand: Sorry again for taking so long to get things cleaned up! Got real busy with other life stuff for a while but I will be trying to give more time to OSS stuff :innocent:


First part of issue #4

Hello I wanted to send the first part of the issue #4, before I go ahead and implement the test_card.py. Please let me know if this looks correct and if there is anything that I need to add or change!

I'm glad that you do want to work into the project, but your changes seems a bit off. Do you have discord? You may find the discord server link in the wiki page. Please don't hesitate to join and probably ask me some questions regarding the code base.
(In this PR, you modified the template for all cards, which is apparently not something desirable, so I'll reject this one. Sorry)

I'm writing documentations for this project (in progress), might be of some help.

btw, regarding this specific issue #4, I recommend you to observe how other cards are implemented, especially StarSigns.

ok sorry it wasn't what you were looking for thank ill check out how those other cards are implemented!

Thank you for writing down documentation as well much appreciated!


[Question ] How can we implement Topic Modelling(for e.g - LDA) using tensorflow?

I am trying to Topic Modelling (LDA) using tensorflow. But I could find any existing LDA implementation using tensorflow.
Is there any other way to implement Topic Modelling using tensorflow?
If there is any suitable example / implementation / guide of LDA using tensorflow , it would be very helpful

Not sure of any good tutorials on this topic. It's not covered in this book, but depending on time, I can add it as a supplementary chapters.

This guy has used lda2vec in tensorflow for reference: https://github.com/meereeum/lda2vec-tf Adding a supplementary chapter would be helpful.


Issue with Event startup

We might need to add that this defaults to auto start on server startup, so while you think a STOP would actually stop the tracer, it will come back to hunt you.
Management -> Extended Events -> Session (Stop ) and right click it properties and uncheck start on server startup

We might need to add that this defaults to auto start on server startup, so while you think a STOP would actually stop the tracer, it will come back to hunt you.
Management -> Extended Events -> Session (Stop ) and right click it properties and uncheck start on server startup

+1


Start refactor to beam-refactor branch of pgf-recipes

This is a bit of a mess at this point. Wondering if I should merge this and then make smaller PRs.

Fixes #17

Merging this now to push https://github.com/leap-stc/cmip6-leap-feedstock/pull/64 and will release right after, YOLO.


Add Helm-Chart for easy Kubernetes deployment

Maybe useful for Kubernetes users 😊.

This is a library; it should probably be kept infrastructure agnostic. This is probably more appropriate for a project that uses llama-cpp-python.

This chart can also be used as a library or "sub-chart". That's the way I use it :). But I understand the point.


Use sudo context when we are getting trackHitCount attribute (Mx9)

At the moment we are trying to access DeepLink.trackHitCount with a regular User context. It's not allowed by the modules model. This MR changes the Java action code to always execute the getter within sudo context and also removes read access for User role on DeepLink.hitCount attribute

Your changes do not reflect the description nor title of the PR. I still see the getTrackHitCount without a sudo context here: https://github.com/mendix/DeeplinkModule/pull/65/files#diff-61383b5a91fa1a4f63096ab637be6947266b8046d515a24617248dc63df320e1R126
I'm not sure if your description is wrong or the changes are wrong 😅  @wrdsnd

@Robinfr yeah you're right, the change got lost somewhere :D


When assigning to a type, using a literal and using a const of the same literal results differently

TypeScript Version:  4.1.0-dev.20200813
Search Terms: assignable extends
Code
interface Base {n:string}
interface Sub extends Base {v:number}
const sub : Sub = {n:"name", v:1}

const base : Base = {n:"name", v:1}    //  this is a rightful error
const base2 : Base = sub  // then how can this pass?

Expected behavior:
The compiler checks if a value is assignable to a type before an assignment. It should be expected that whether the value is expressed as a literal or as a constant of the same literal does not affect the outcome of the determination of assignable. The above example breaks this expectation.
Actual behavior:
Compiler reports an error on this line, which is correct.
const base : Base = {n:"name", v:1}    //  this is a rightful error
However compiler ignores this line without an error.
const base2 : Base = sub  // then how can this pass?
Playground Link: https://repl.it/repls/WorldlyWryUsername
Related Issues:
I guess this issue is related to the confusion of "extends" and "assignable". In Java, if class SuperHero extends class Human, then a SuperHero instance is assignable to a Human variable. In Typescript, this is actually not guaranteed. I'm guessing that somewhere in the logic determining "assignable", where the value has a type, "extends" is determined to be "assignable".
In my opinion this should not be the expected behaviour. Correct me if I'm wrong.

const base : Base = {n:"name", v:1}    //  this is a rightful error

When assigning object literals TypeScript performs an "excess properties check", and errors when you provide more properties. This is done based on the assumption that you really just wish to create a Base, and any additional properties are unwanted.

const base2 : Base = sub  // then how can this pass?

This passes, because sub contains all properties that Base requires, so the types are compatible and an assignment is possible.

Everything works as intended and expected.

Well at least this makes the concept "assignable" complex and inconsistent. I am expecting that if additional properties are allowed, there should be [k:string]:any  inside Base, otherwise it would not be allowed. If this is the expected behaviour, maybe it should be put in the handbook? But still it feels a bit unnatural to behave this way, to treat const and literature differently.

One should argue that the definition of Base decides what's acceptable and what's not, as far as the compiler can determine at compile time. This behaviour breached this expectation. What's acceptable become dependent on how you assign it, not what you assign it.

Well at least this makes the concept "assignable" complex and inconsistent. I am expecting that if additional properties are allowed, there should be [k:string]:any inside Base, otherwise it would not be allowed. If this is the expected behaviour, maybe it should be put in the handbook?

What is structural typing?

What's acceptable become dependent on how you assign it, not what you assign it.

These are just two different mechanisms at play. Excess property checks also happen when returning an object literal in a function.

Ok, thanks for the clarifications. I understand this is how it works, though now how I had expected it to work. Thanks again for pointing me to the wiki. I'm now closing this issue.


fix(electrumx): more debugging

:tada: This PR is included in version 2.2.2 :tada:
Your semantic-release bot :package::rocket:


Issue #8 Fix - Update to Tuner.swift to fully describe each input source

Use deviceID property instead of name property.

Thank you!


Remove '\n' key from empirical formula dictionary in nn_translator.py

In empirical_formula dictionary there is an extra '\n' key that should be removed

fixed in pr #29


192 discopop wizard show parallelization suggestions

Adds the option to browse and display the created suggestions and show their targeted code sections in the original source code.

Examples for the added view can be found in the attached images.


feat: JSON Schema validation rule

Can use something like https://crates.io/crates/jsonschema for the wasm rule - seems speedy enough? Don't know how fast the compile() step is though.

Completed in https://github.com/streamdal/streamdal/pull/133


Store application information in MEI Basic

In order for MEI Basic to serve as an exchange format, it would be useful to store information about the application that created an MEI file.
Maybe the application element could be utilized for that without the necessity to use appInfo and encodingDesc.

Hi @rettinghaus, how do you imagine that would work?  I wouldn't recommend making <application> available somewhere else in the header as that would break conformance with the "normal" header.
I'm more inclined to add <encodingDesc> back to MEI Basic.  All of the children of <encodingDesc> are optional, so doing this wouldn't add any extra burden to encoding in Basic.  If all of the children of <encodingDesc> aren't desirable, then they can be eliminated in the Basic customization.  I can see that it may be helpful to remove all the children of <encodingDesc> save <appInfo> in Basic.


Update migrate command to make use of Laravel's migrate --path option

Forgot the --path option was removed from the migrate Artisan command, so I'll need to figure out a work around for this.

This can now be reverted, as the --path command has been re-added to Laravel: https://github.com/laravel/framework/commit/cb0ccaae1db68af7195f483018c95819039fa30a

Scratch that, this doesn't need to be reverted.


bug(debugger): forge debug uses backslash in path when compiling on Windows

Component
Forge
Have you ensured that all of these are up to date?

[X] Foundry
[X] Foundryup

What version of Foundry are you on?
forge 0.2.0 (adb6aba 2024-10-17T00:23:10.989722000Z)
What command(s) is the bug in?
forge debug Contract.sol
Operating System
Windows
Describe the bug
When using debug on windows, forge debug uses a backslash to connect the absolute path, and the relative path to the file being compiled, causing the path to be malformed.
<REPO_PATH> and <RELATIVE_PATH> are substituted for the literal paths in this error.
2024-10-17T17:32:41.843446Z ERROR foundry_compilers_artifacts_solc::sources: error="C:/<REPO_PATH>\<RELATIVE_PATH_>/Contract.sol": The system cannot find the file specified. (os error 2) Error: failed to read artifact source file for <REPO_PATH>\<RELATIVE_PATH_>/Contract.sol

I am not able to reproduce this issue with a forge init hello-world and then forge debug, debugger properly starts up using latest version. please reopen with more details if still an issue. thank you


Functionality for dropping files from a file system into a custom view in vscode extension API?

Hi, I'm wondering if it's possible to get some sort of functionality for handling dropped files from some external source (a file system window) into a custom view, kind of like how in the Explorer view of default vscode, you can drop files from your OS's file system and they will get copied into the workspace of vscode. The extension I'm developing has a custom file explorer and it would be helpful for me to be able to drop files from the file system into that view and handle copying those files from their source location onto my custom file system.
As far as I can tell, the only thing that allows similar functionality right now is vscode.languages.registerDocumentDropEditProvider, but this only provides for a rather niche use-case of dropping files into the editor window when shift is held down. I'd like some API for handling when a file is dropped into the tree view I am creating, without the need for shift to be held down.
Any help would be great.
Thanks

Sounds like you want TreeDragAndDropController for this
See the tree view sample: https://github.com/microsoft/vscode-extension-samples/blob/main/tree-view-sample/src/testViewDragAndDrop.ts

As far as I can tell, the only thing that allows similar functionality right now is vscode.languages.registerDocumentDropEditProvider, but this only provides for a rather niche use-case of dropping files into the editor window when shift is held down. I'd like some API for handling when a file is dropped into the tree view I am creating, without the need for shift to be held down.

As far as I'm aware the tree drag and drop controller only words for dragging items between tree views.  I was looking to be able to drag items from a file system (outside of VSCode) into a tree view.  Does tree drag and drop controller word for this?

@Luke-Callaghan23   It should work using the text/uri-list mime type. Give it a try

Okay I'll check it out, thanks


Version in version file not updated

Current version in file: 0.9.0
Current verison of tag: 0.10.0

Good catch @pasco1995 thanks for reporting this. Will fix it.

Fixed


Elaborate on minikube, ingress, nip.io setup

Signed-off-by: Scott Kurz<EMAIL_ADDRESS>What type of PR is this?
/kind documentation
[skip ci]
What does does this PR do / why we need it:
Though this is real basic, getting started info it doesn't include the most basic steps required for having odo leverage the ingress on a basic kubernetes setup like minikube.
PR acceptance criteria:

[ ] Unit test

[ ] Integration test

[ X] Documentation

[X ] I have read the test guidelines

How to test changes / Special notes to the reviewer:

/ok-to-test

/ok-to-test

Looks good to me. One nit would be to specify for each stack that the odo url create --host $(minikube ip).nip.io command is an example if you are using minikube and nip.io. Seems obvious, but since these commands are for generic kubernetes, it might be good to clarify.  Since you already mention this in the above "Ingress Setup" section, maybe just append to the note:
NOTE: If deploying on OpenShift, you can skip this step and a Route will be created for you automatically. On Kubernetes, you need to pass ingress domain name via `--host` flag. See "Ingress Setup".

Looks good to me. One nit would be to specify for each stack that the odo url create --host $(minikube ip).nip.io command is an example if you are using minikube and nip.io. Seems obvious, but since these commands are for generic kubernetes, it might be good to clarify.  Since you already mention this in the above "Ingress Setup" section, maybe just append to the note:
NOTE: If deploying on OpenShift, you can skip this step and a Route will be created for you automatically. On Kubernetes, you need to pass ingress domain name via `--host` flag. See "Ingress Setup".

Looks good to me. One nit would be to specify for each stack that the odo url create --host $(minikube ip).nip.io command is an example if you are using minikube and nip.io. Seems obvious, but since these commands are for generic kubernetes, it might be good to clarify. Since you already mention this in the above "Ingress Setup" section, maybe just append to the note:
NOTE: If deploying on OpenShift, you can skip this step and a Route will be created for you automatically. On Kubernetes, you need to pass ingress domain name via `--host` flag. See "Ingress Setup".

Thx @awisniew90 for the review.  I'm going to see what @dharmit says before making any other changes.

Looks good to me. One nit would be to specify for each stack that the odo url create --host $(minikube ip).nip.io command is an example if you are using minikube and nip.io. Seems obvious, but since these commands are for generic kubernetes, it might be good to clarify. Since you already mention this in the above "Ingress Setup" section, maybe just append to the note:
NOTE: If deploying on OpenShift, you can skip this step and a Route will be created for you automatically. On Kubernetes, you need to pass ingress domain name via `--host` flag. See "Ingress Setup".

Thx @awisniew90 for the review.  I'm going to see what @dharmit says before making any other changes.

/approve

/lgtm

@scottkurz that's OK. You can still open a quick PR to address the requests made by @awisniew90 and me.
In the meanwhile, I have pushed the changes made in this PR to odo.dev website.


update tags alignment, fixes #255

Can you perhaps add some screenshots? Did you check on mobile if this doesn't breaks anything?

Nvm. Just tested it. Works great. Thanks! :)

@fetzi just noticed that this breaks the delete modal a bit. Can you send a fix?
https://github.com/laravelio/portal/issues/300


Adding a custom tick thread

In my project I've changed the addon so that it runs the ticks based on my custom in game minute.
Would this be something that's worthing creating a pull request for?
Like you would change this dropdown to In Game Minute or Custom

and then maybe have a "tick source" export node that you can drag in and it will connect to the ticked signal within that node.
Was thinking this might help with performance.

Seems to be a duplicate of #267 - my point in https://github.com/bitbrain/beehave/issues/267#issuecomment-1846744252 was that one could simply set the process mode to disabled and then tick the tree manually. Is there a good reason why we cannot do that instead?

Sorry didn't see 267, they can definitely do that in the same way I just connected the tree to a signal, it just doesn't seem like the intended/supported usage. I was thinking it could be something you point to when people bring up the performance concerns of the tree getting ticked every frame.
I don't think this is a huge issue though because it's not that hard to do for yourself, I just have the code there and can make a pull request if you were interested.


github actions build

name: Java CI
on:
watch:
types: started
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id

steps:
  - uses: actions/checkout@v1
  - name: Set up JDK 1.8
    uses: actions/setup-java@v1
    with:
      java-version: 1.8
  - name: Build with Maven
    run: mvn -B package --file pom.xml
  - run: mkdir release && cp target/*.jar release
  - name: Upload artifact
    uses<EMAIL_ADDRESS>    with:
      # Artifact name
      name: JDumpSpider
      # Directory containing files to upload
      path: release

感谢提供CI脚本👌


Converting image to NSData return nil

Hey Guys,
Trying to convert image to nsdata, but receive nil. Tried both PNG and JPEG.
let qrc = QRCode("sample")
let img = UIImagePNGRepresentation(qrc.image!) // img is nil

Please advice

Same problem here, tried with JPG representation and it also returns nil.

Fixed by doing this
`       let image = YourUIImage
UIGraphicsBeginImageContext(image.size)
image.drawInRect(CGRectMake(0, 0, image.size.width, image.size.height))
let convertibleImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
    return convertibleImage`

Can you have a look if 5d026ab136ec09868981a14c3ee8618e33b2692d fixes this problem as well?

Can anyone confirm the latest changes in master to fix this issue?

Sorry, i have been very busy, i will test it in this afternoon!!!
Sent from my iPhone
On Mar 12, 2016, at 5:17 AM, Alexander Schuch <notifications<EMAIL_ADDRESS>wrote:
Can anyone confirm the latest changes in master to fix this issue?

Reply to this email directly or view it on GitHubhttps://github.com/aschuch/QRCode/issues/20#issuecomment-195718867.

Any results?

This seems to work now. :)

Thanks for the confirmation. 🎉

Hello I have the same problem, and i think i have the latest, i installed via cocoapods


There have been two same messages on IoT Edge Module.

The same message came into my module twice.
When I checked the log on edgeHub, I sent a message once, but when I checked my module log, I could see that the message came in once more.
It doesn't matter much that the message came in twice, but it takes too long for the first message to come in and the duplicate message to come in.
No matter how you've searched like me couldn't find a man whose problems.

@LeeHyeongWon Thank you for your feedback! Since this channel is for driving improvements towards MS Docs, could you provide the URL of the specific documentation that your feedback is applicable to? That way, we are able to make sure your feedback is addressed by the right team.

@LeeHyeongWon Lee Please help with the link of document on which above document feedback request is created.

Since we have not heard back from you we will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
In case your query in not related to document content, open a new forum thread in MSDN forum or Stack Overflow as it will be a better place to get help on your scenario. Other community members can provide their expert guidance on your scenario as well.
Thanks.

@sergaz-msft I'm sorry. It's too late.
Well, this is not a problem in the documents provided by Microsoft.
I think it's only about Edge Hub.
Because there's nothing wrong with the Edge Hub log, but the module log has the same message twice.
If you actually sent the same message twice, the Edge Hub log has two messages, no problem with the speed.
But now the situation is that I sent a message from Edge Hub once, but I got my module twice.
It doesn't matter that I received it twice.
The real problem is that it takes too long for the second message to come in.
I have to run in 500millisecond for every message.
But the second message takes me 30 seconds to get it.

@LeeHyeongWon Since this channel is for driving improvements towards MS Docs, please open a new forum thread in MSDN forum or Stack Overflow as it will be a better place to get help on your scenario. Other community members can provide their expert guidance on your scenario as well.


chore(deps): use web_bson for bson library

web_bson is a fork of js-bson for Deno and has been made on top of web apis, so it's faster and lighter than js-bson.

@manyuanrong
I will make a beta version


Socket IO session does not update when express session changes

I'm having the same problem as this person (just not about passportJS... I'm trying to set own session).
I'm not sure what I missed. Thanks!
http://stackoverflow.com/questions/35165060/socket-io-session-does-not-update-when-req-session-changes

http://stackoverflow.com/questions/35165060/socket-io-session-does-not-update-when-req-session-changes/39060923#39060923

Is there a reason this isn't already object oriented?  I expect a long running socket would have many updates to the session and possibly from a number of sources.  Calling socket.handshake.session.reload() before accessing the session object becomes troublesome.

Why?

I find objects helpful when passed into promises and other asynchronous functions.  Being that these sessions could be changed in a number of ways over periods of time, reusing the same object would be helpful to that end.

I had a similar issue where I would login, which would issue a new cookie, but the session handshake still had the old session information.  Even a "reload()" would not work because the cookie sessionId was no longer valid.  I solved the problem on the client by forcing a reconnect for the socket after login/logout (since I am using regular HTTP for initial login).
When a logout happened, I would call socket.disconnect() then socket.connect() - this is the only thing that worked with the application structure I had.

Is there a reason this isn't already object oriented? I expect a long running socket would have many updates to the session and possibly from a number of sources. Calling socket.handshake.session.reload() before accessing the session object becomes troublesome.

TypeError: socket.handshake.session.reload(...) is not a function

@Zaniyar Have you ever solved it?


Add Dart Cheatsheet

Hey, I want to contribute on this. Can you please assign this to me?

Hey, I can work on this topic. May I be assigned on this topic?

Not is necessary open issues if you are be able to send the pull request (PR) :wink:.
Anyway, if you submit a PR, help us to autoclose this issue. How? Read this article about how to linking a PR to an issue


Testing added and function refactoring

5 new tests and refactored/combined the download video and download playlist functions.

LGTM


Amazon S3 Bucket (Independent Publisher) - Fix for issue #3702

Changes

Fix for Issue [BUG] S3 PUT does not work for Office Files (Excel, Word, PowerPoint) #3702
The connector now supports specifying the Content-Type of the object as a parameter for Put Object.
The connector now supports files with characters such as (, ), {, }, [, ], and # in the object key.

Test-Screenshots

Put Object

List Objects

Get Object

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[x] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[x] I attest that the connector works and I verified by deploying and testing all the operations.
[x] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[x] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[x] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[x] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[x] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[x] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[x] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[x] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

[[certify-connector]]


Fix typo of TTS voice names in tutorial

@boltomli : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@boltomli - Could you work in the private repo in the future? Many of the PRs you've submitted today would merge automatically, which is more efficient. Thanks!

@boltomli - Could you work in the private repo in the future? Many of the PRs you've submitted today would merge automatically, which is more efficient. Thanks!

Sure, thanks for the reminder.

#sign-off

@nitinme: I'm sorry - only the author of this article, @swmachan, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.


Co 1459 Do Not Send Notifications to Expired Users

This beforeFind method is being called prior to running the query in CoNotification on line 609 (https://github.com/Internet2/comanage-registry/blob/develop/app/Model/CoNotification.php#L609).
This particular elseif is being applied to the nested CoPerson contain (that is included within the CoGroupMember, which is contained within the CoGroup).  Here, a recursive call is done to modifyContain to walk through the CoPerson.
Prior to the recursive call, the conditions for the CoPerson look like this:
'conditions' => array( 		'CoPerson.status' => 'A' 	)
After the recursive call, the required new conditions of a null co_person_id and non deleted status are merged with the original Active conditions correctly:
'conditions' => array( 		'CoPerson.co_person_id' => null, 		(int) 0 => 'CoPerson.deleted IS NOT true', 		'CoPerson.status' => 'A' 	)
Then, the conditions are changed again by being hard set to the additional required behaviors https://github.com/Internet2/comanage-registry/blob/develop/app/Model/Behavior/ChangelogBehavior.php#L642):
'conditions' => array( 		'CoPerson.co_person_id' => null, 		(int) 0 => 'CoPerson.deleted IS NOT true' 	)
This is where the Active status condition is dropped.  I investigated instead merging any existing conditions with the new conditions, but you end up with an issue of duplicate conditions:
array( 	'CoPerson.co_person_id' => null, 	(int) 0 => 'CoPerson.deleted IS NOT true', 	'CoPerson.status' => 'A', 	(int) 1 => 'CoPerson.deleted IS NOT true' )
Because the recursive modifyContain call is correctly adding those conditions, let's remove the additional hard reset on those conditions.

There are two streams to this issue:

Generally, the concept of CO-1459 is that Notifications could be registered anywhere, and if the RecipientCoPersonID is no longer Active, they will still receive the Notification.
A potential bug in ChangelogBehavior, specifically in the context of Notifications where the recipient is a CO Group. In this case, the existing code tries to filter Active records, but perhaps doesn't.

For the general concern, the code currently performs no filtering. There are places where this is the desired behavior, specifically Enrollment Flows and Expiration Policies (and maybe Org Identity Sources). CoNotification::register will probably need a new parameter (eg $notifyActiveOnly) with existing calls being updated as appropriate for their context. Alternately, the invoking code could simply skip registering notifications if it already knows the recipient is not Active, but it's probably better to have the logic in one place.
For the specific concern, I'm not sure the proposed patch to ChangelogBehavior is correct.  There is a significant difference between
$ret[$k][$k2] = $this->modifyContain($model->$k->$k2, $v2);

and
$ret[$k][$k2]['conditions'] = array(...)

The former is adjusting the SQL query for the associated models ($v2), the latter is adjusting the SQL query for the primary model ($k2).
If Changelog isn't correctly filtering the records, one option would be to simplify the "clever contain" in CoNotification::register, and filter the desired records using Hash::extract or something after the find. (As ChangelogBehavior will be rewritten as part of framework migration, and is otherwise a bit fragile, I'm hesitant to change it if we can do something else.)
We can discuss on the next call if helpful.


Allow Port specification

In normal mode nativefier pulls the Website over HTTP and HTTPS.
But I have some Webinterfaces running on a different Port (example: Wifi-Controller on Port 8443).
So when I create a nativefier of this Webinterface it won't run.
Also something like nativefier --name "Website" controller.example.com:8443 won't work.
Can you please a Option to select the Port?
Thanks

I used it on a http://local:3000 and it worked.


Netflow: fatal error: runtime: out of memory

Hello All,
i get "fatal error: runtime: out of memory" after some minutes vflow is running
and this is my vflow.conf:
netflow9-workers: 50
log-file: /var/log/vflow.log
ipfix-tpl-cache-file: /usr/local/vflow/vflow.templates
netflow9-topic: anomaly
ipfix-enabled: false
sflow-enabled: false
dynamic-workers: false

pls give me more info:

did you compile? Go version? what OS?
device vendor(s)?
messaging bus?
hardware spec? dedicated or shared between other apps
attach the fatal error details

Hi mehrdad,
1- yes i compile that, go version go1.8.3 linux/amd64 , ubuntu 16.04
2- Cisco netflow9
3- Kafka
4- VM, dedicate, 20 Core vcore + 16GB memory
5- https://pastebin.com/12iEidT8

@franks231 I tried in my dev box and I couldn't duplicate this issue yet.

can you check the vflow log file and send me if there is any logging
can you try without the below configs:
ipfix-enabled: false
sflow-enabled: false
dynamic-workers: false

@mehrdadrad
i try without this 3 lines but vflow crash again
and this is a vflow sample logs

unexpected EOF
can not read the data
can not read the data
can not read the data
[vflow] 2017/10/03 18:13:30 Multiple errors:
can not read the data
unexpected EOF
can not read the data
can not read the data
can not read the data
can not read the data
can not read the data
<IP_ADDRESS> unknown netflow template id# 1536
unexpected EOF
can not read the data
can not read the data
can not read the data
[vflow] 2017/10/03 18:14:11 Multiple errors:
can not read the data
unexpected EOF
can not read the data
can not read the data
can not read the data
[vflow] 2017/10/03 18:15:47 Multiple errors:
can not read the data
unexpected EOF
can not read the data
can not read the data
can not read the data
unexpected EOF
can not read the data
can not read the data
can not read the data
can not read the data
can not read the data

@franks231 What's Netflow version configured at router? can I have the configuration?

@mehrdadrad  netflow is version 9
I don't have access right now but I send the configuration asap

Hello All, we have same error, config file:
ipfix-enabled: false
sflow-enabled: false
netflow9-enabled: true
ipfix-workers: 1
sflow-workers: 1
netflow9-workers: 5
netflow9-port: 10000
dynamic-workers: false
send to kafka topic.
Crash about every 5 minutes. Collect correct data in between.
vflow-netflow-log.txt
vflow-netflow-crash.txt

@jan-zajic what's device vendor name? can you send me your device netflow 9 config?

@jan-zajic I think it should be fixed based on the recent changes, pls try again and let me know if you still see this issue.


[ASan] Fix LD_LIBRARY_PATH initialization for ASan.

'ROCM_INSTALL_PATH' variable is unsed in aomp_common_vars. Only aomp variables are visible to run_rocm_test.sh script.

The equivalent path for /opt/rocm/llvm/lib/asan is '$AOMP/lib/asan'
The equivalent path for /opt/rocm/lib/asan is '$AOMPROCM/lib/asan'

Thanks!


expose spanId and applicationName to log.page.url for customization

Now the spanId and applicationName are not exposed to the log.page.url. For the customization implementation for log controller.   The @RequestParam("spanId") would always be null.

Codecov Report

Merging #5996 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #5996      +/-   ##
==========================================
+ Coverage   40.92%   40.93%   +0.01%
==========================================
  Files        3019     3019
  Lines       90897    90902       +5
  Branches    11909    11909
==========================================
+ Hits        37201    37215      +14
+ Misses      50465    50452      -13
- Partials     3231     3235       +4

Impacted Files
Coverage Δ

.../web/controller/BusinessTransactionController.java
0% <0%> (ø)
:arrow_up:

...rp/pinpoint/web/view/TransactionInfoViewModel.java
0% <0%> (ø)
:arrow_up:

...pinpoint/rpc/ChannelWriteFailListenableFuture.java
42.85% <0%> (-28.58%)
:arrow_down:

...p/pinpoint/rpc/stream/StreamChannelRepository.java
75% <0%> (-10%)
:arrow_down:

...rc/main/java/com/navercorp/pinpoint/test/Item.java
70% <0%> (-3.34%)
:arrow_down:

...tor/metric/datasource/DefaultDataSourceMetric.java
75% <0%> (-3.13%)
:arrow_down:

...vercorp/pinpoint/web/vo/ApplicationAgentsList.java
66.66% <0%> (-2.57%)
:arrow_down:

...pinpoint/profiler/monitor/DeadlockMonitorTask.java
18.6% <0%> (-1.17%)
:arrow_down:

...point/rpc/client/DefaultPinpointClientHandler.java
72.4% <0%> (+0.64%)
:arrow_up:

...cluster/zookeeper/ZookeeperClusterDataManager.java
54.83% <0%> (+1.93%)
:arrow_up:

... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 25cf954...be43eb3. Read the comment docs.


Space controls the video even when you try to reply to a comment

Pressing space while replying to someone else's comment still pauses/unpauses the video even though it isn't focused, so typing spaces in your reply becomes impossible.
Browser tested on: Palemoon

Duplicate of #1546. For a workaround see there.

yeah, this has become a real problem now..

Happens for me in Chrome. For now, I'm either just replying to comments via http://youtube.com/comments or by going to the All Comments page for the specific video. I'm already used to using the former method so it wasn't much of an issue for me.

@SuperSajuuk As per #1546 and the commented I posted in reply to your post on #1540, disable Extend shortcuts to page for the time being until this bug can be fixed.

@Zarggg The behaviour is random. For example, I changed no settings at all and the bug is not happening to me at all. Like I said, changed nothing, didn't upgrade either (don't plan on using the developer version anyway)

If you don't plan on using the developer version, there's not much we can do to help you. 2.1.7 is considered obsolete. We are still unsure when 2.1.8 will be released.


fixfix ip case2.1 with sync after streamload

Proposed changes
fix ip case2.1 with sync after streamload
Issue Number: close #xxx

run buildall


Why there is no Subscription to onContactsDataProviderErrorSignal event in OHContactDataSource

In all examples we are firing onContactsDataProviderErrorSignal on dataproviders, but there is no subscription to this event in the OHContactDataSource file , so currently it is very difficult to catch NSError from api calls in view controllers. So want to ask how to catch NSError events in  viewcontroller using onContactsDataProviderErrorSignal , documentation lacks how to handle errors gracefully if we are loading contacts from remote datasource

Hi Ajay, the data source itself doesn't handle errors from the data providers.  Instead, you should add your view controller as the observer for the onContactsDataProviderErrorSignal on each of the data providers you are using.  So, in your view controller class, you will have something along the lines of:
// Initialize the data provider.
let dataProvider = OHCNContactsDataProvider(delegate: self)

// Add the error handler.
dataProvider.onContactsDataProviderErrorSignal.addObserver(self, callback: { (error, dataProvider) in
    // Handle the error.
})

// Initialize the data source.
let dataSource = OHContactsDataSource(dataProviders: NSOrderedSet(objects: dataProvider), postProcessors: NSOrderedSet())

dataSource.onContactsDataProviderFinishedLoadingSignal.addObserver(self, callback: { (contacts) in
    // Everything was successful.
})

// Load the contacts from the data provider into the data source.
dataSource.loadContacts()


Check how is interfering git on a git repository that we are reading

Can we still read the content of a repository when git is making changes? Is go-git prepared for that? Is go-git using the git locks?

- Repo:  [GitHub - golang/go: The Go programming language](https://github.com/golang/go)
- gitbase/master with oniguruma

Case 1
Query:
SELECT files.repository_id, files.file_path
FROM files
NATURAL JOIN refs
NATURAL JOIN commits
WHERE SUBSTRING(ref_name,1,15) = 'refs/heads/HEAD'

Git:
$ git checkout dev.debug
$ git gc

Error:
unknown error: open /private/tmp/repos/go/.git/objects/pack/pack-565b7a9733a5fc7ff8978845f49477ee4a6252b5.pack: no such file or directory

Case 2 (not related to interop git-gitbase)
Query:
SELECT
    file_path
    FROM (
    SELECT
        file_path,
        uast_extract(
            uast(
                blob_content,
                LANGUAGE(
                    file_path,
                    blob_content
                ),
                "//FuncLit"
            ),
            "internalRole"
        ) AS uast
    FROM files
    WHERE LANGUAGE(file_path, blob_content) = 'Go'
) AS q1
LIMIT 1000;

Git:
$ git checkout -b kuba
$ cp final-noclosure.go kuba.go # add a new .go file
$ git add .
$ git commit -a

Error:
I got an error because bblfsh started parsing lot of go files (with LIMIT 10 it worked fine). All go drivers were busy, so the next requests timeout (doesn't matter what was the file size)
bblfshd     | time="2018-11-30T13:13:35Z" level=warning msg="unable to allocate a driver instance: timeout, all drivers are busy" language=go
bblfshd     | time="2018-11-30T13:13:35Z" level=error msg="request processed content 873 bytes error: timeout, all drivers are busy" elapsed=72.816µs language=go
bblfshd     | time="2018-11-30T13:13:59Z" level=error msg="request processed content 873 bytes error: rpc error: code = Canceled desc = context canceled" elapsed=152.649µs language=go
bblfshd     | time="2018-11-30T13:14:55Z" level=error msg="request processed content 330743 bytes error: rpc error: code = DeadlineExceeded desc = context deadline exceeded" elapsed=5.000369555s language=go

At some point bblfshd threw an exception:
Exception in thread Thread-4:
Traceback (most recent call last):
  File "site-packages/urllib3/connectionpool.py", line 384, in _make_request
  File "<string>", line 2, in raise_from
  File "site-packages/urllib3/connectionpool.py", line 380, in _make_request
  File "http/client.py", line 1331, in getresponse
  File "http/client.py", line 297, in begin
  File "http/client.py", line 258, in _read_status
  File "socket.py", line 586, in readinto
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "site-packages/requests/adapters.py", line 449, in send
  File "site-packages/urllib3/connectionpool.py", line 638, in urlopen
  File "site-packages/urllib3/util/retry.py", line 367, in increment
  File "site-packages/urllib3/packages/six.py", line 686, in reraise
  File "site-packages/urllib3/connectionpool.py", line 600, in urlopen
  File "site-packages/urllib3/connectionpool.py", line 386, in _make_request
  File "site-packages/urllib3/connectionpool.py", line 306, in _raise_timeout
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out. (read timeout=60)

Case 3
Git:
# revert changes (kuba.go file as a copy of final-noclosure.go)
$ git revert 771c2dcfd4a7daea53056af419fb83d7a52fa638
$ git commit -a
$ git gc --auto
$ git checkout master
$ git branch -D kuba
$ git reset --hard

Query:
SELECT
    file_path, blob_hash, SUBSTRING(`file_path`, 19, 10) AS NAME
    FROM (
    SELECT
        blob_hash,
        file_path,
        uast_extract(
            uast(
                blob_content,
                LANGUAGE(
                    file_path,
                    blob_content
                ),
                "//FuncLit"
            ),
            "internalRole"
        ) AS uast
    FROM files
    WHERE LANGUAGE(file_path, blob_content) = 'Go'
) AS q1
LIMIT 10;

I still saw kuba.go (changes were reverted, branch deleted). Then run git gc and the query didn't  list kuba.go file.
Case 4
Generally git gc breaks running queries:
unknown error: open /private/tmp/repos/go/.git/objects/pack/pack-5ac0ff75115f8763016c2f775bd221c49afb67a8.pack: no such file or directory

Case 5
Created a new kuba.go file, so the query:
SELECT
    file_path, blob_hash, SUBSTRING(`file_path`, 19, 10) AS fname
    FROM (
    SELECT
        blob_hash,
        file_path,
        uast_extract(
            uast(
                blob_content,
                LANGUAGE(
                    file_path,
                    blob_content
                ),
                "//FuncLit"
            ),
            "internalRole"
        ) AS uast
    FROM files
    WHERE LANGUAGE(file_path, blob_content) = 'Go'
) AS q1
WHERE fname='kuba.go'
LIMIT 1;

Git:
$ rm kuba.go
$ git add .
$ git commit -a

Ran the query again and it cannot find a file (but after revert  and delete a branch the file was found-able)
Btw. if we parse 100+ files bblfshd starts being unresponsive and times out.
Case 6
Query:
CREATE INDEX email_idx ON commits USING pilosa (commit_author_email);

Git:
$ git gc

Query:
SELECT * FROM commits WHERE commit_author_email!='....' LIMIT 100;

Error: unknown error: object not found
Case 7
Because we assume that gitbase is readonly we don't invalidate our cache (I assume).
So I created a new branch, did couple commits, reverted my changes,  and delete the branch. I also run git prune . But both queries:
SELECT * FROM commits WHERE commit_author_name='kuba--'
SELECT count(*) FROM commits;

Still show my commits. I assumed that query:
SELECT count(commit_author_name) FROM commits //  40229
should return the same number as:
$ git log --all --pretty=%cn | wc -l // 40224
What we see is exactly my 5 commits

@ajnavarro - PTAL

Some annotations:

Even if you delete an object, go-git will still list it. The object is not deleted from the packfile, it is just not being pointed by the reference. Related issue: https://github.com/src-d/go-git/issues/1023
I think is not necessary to invalidate Objects cache. The sources of truth for that cache are the .idx files. If a file is not on the .idx file, it won't be asked to be retrieved from the cache, So the problem is the same as before, the object is still there but unreachable by references. Also, the LRU cache eventually will discard that object when they will not be used to retrieve them or to resolve deltas.

The main problem that I can see here is that gitbase or go-git is saving some references to outdated packfiles, and if some new objects or package are created, we are not able to read it neither.


[lc_ctrl/otp_ctrl] Precompute hashed versions of global tokens

This precomputes hashed versions of the all-zero and RAW unlock token using the PRINCE primitive.
This solution relies on constant propagation to fold the logic into constants at elab time.

this LGTM. Hopefully this simplifies out to just constants like we hope.. hehe

Yeah... But I think it should. After all, the module just has outputs, so by construction it should be able to resolve these values using constant prop (unless there is a synthesis tool bug ;)).