AttributeError: 'NoneType' object has no attribute 'outer_context' when building a token classification model

Hi, I am training a token-classification model, and I use ELMO embeddings as one layer of my model.
I'm using elmo embeddings from tensorflow hub, and I am using them with tensorflow 2.4.1. The same model architecture worked when built in Tensorflow 1.x, but I need to migrate it to TF2. I followed the instructions on how to replace hub.Module() with hub.KerasLayer() or hub.load() in order to use elmo in TF2. The example is with hub.load(). When using hub.KerasLayer() I cannot use the "token" signature.
Please note that the same model architecture worked in TF1, but I need a solution to make it work in TF2.
This is how I'm building the model:
def ElmoEmbedding(x):
    return elmo_model.signatures["tokens"](tokens = tf.squeeze(tf.cast(x, tf.string)), sequence_len = tf.constant(batch_size * [max_len]))["elmo"]

def build_model(max_len, n_words, n_tags):
    word_input_layer = Input(shape=(max_len, 40, ))
    elmo_input_layer = Input(shape=(max_len,), dtype=tf.string)
    word_output_layer = Dense(n_tags, activation = 'softmax')(word_input_layer)
    elmo_output_layer = Lambda(ElmoEmbedding, output_shape=(None, 1024))(elmo_input_layer)

    output_layer = Concatenate()([word_output_layer, elmo_output_layer])
    output_layer = BatchNormalization()(output_layer)
    output_layer = Bidirectional(LSTM(units=512, return_sequences=True, recurrent_dropout=0.2, dropout=0.2))(output_layer)
    output_layer = TimeDistributed(Dense(n_tags, activation='softmax'))(output_layer)

    model = Model([elmo_input_layer, word_input_layer], output_layer)

    return model

And therefore want to train the model as follows:
elmo_model = hub.load('https://tfhub.dev/google/elmo/3')
model = build_model(max_len, n_words, n_tags)
model.compile(optimizer="adam", loss="sparse_categorical_crossentropy", metrics=["accuracy"])
model.summary()

history = model.fit([np.array(X1_train), np.array(X2_train).reshape((len(X2_train), max_len, 40))],
                    y_train,
                    validation_data=([np.array(X1_valid), np.array(X2_valid).reshape((len(X2_valid), max_len, 40))], y_valid),
                    batch_size=32, epochs=2, verbose=1)

To clarify, X1_train is a list of tokenized sentences and X2_train is a list of hand-picked features for every token in every sentence.
The error that I'm getting when calling model.fit is the following one:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-14-04a3722fa4b2> in <module>
     51                     y_train,
     52                     validation_data=([np.array(X1_valid), np.array(X2_valid).reshape((len(X2_valid), max_len, 40))], y_valid),
---> 53                     batch_size=32, epochs=2, verbose=1)
     54 hist = pd.DataFrame(history.history)

/opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing)
   1098                 _r=1):
   1099               callbacks.on_train_batch_begin(step)
-> 1100               tmp_logs = self.train_function(iterator)
   1101               if data_handler.should_sync:
   1102                 context.async_wait()

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds)
    826     tracing_count = self.experimental_get_tracing_count()
    827     with trace.Trace(self._name) as tm:
--> 828       result = self._call(*args, **kwds)
    829       compiler = "xla" if self._experimental_compile else "nonXla"
    830       new_tracing_count = self.experimental_get_tracing_count()

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds)
    869       # This is the first call of __call__, so we have to initialize.
    870       initializers = []
--> 871       self._initialize(args, kwds, add_initializers_to=initializers)
    872     finally:
    873       # At this point we know that the initialization is complete (or less

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in _initialize(self, args, kwds, add_initializers_to)
    724     self._concrete_stateful_fn = (
    725         self._stateful_fn._get_concrete_function_internal_garbage_collected(  # pylint: disable=protected-access
--> 726             *args, **kwds))
    727
    728     def invalid_creator_scope(*unused_args, **unused_kwds):

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _get_concrete_function_internal_garbage_collected(self, *args, **kwargs)
   2967       args, kwargs = None, None
   2968     with self._lock:
-> 2969       graph_function, _ = self._maybe_define_function(args, kwargs)
   2970     return graph_function
   2971

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _maybe_define_function(self, args, kwargs)
   3359
   3360           self._function_cache.missed.add(call_context_key)
-> 3361           graph_function = self._create_graph_function(args, kwargs)
   3362           self._function_cache.primary[cache_key] = graph_function
   3363

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _create_graph_function(self, args, kwargs, override_flat_arg_shapes)
   3204             arg_names=arg_names,
   3205             override_flat_arg_shapes=override_flat_arg_shapes,
-> 3206             capture_by_value=self._capture_by_value),
   3207         self._function_attributes,
   3208         function_spec=self.function_spec,

/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, autograph_options, add_control_dependencies, arg_names, op_return_value, collections, capture_by_value, override_flat_arg_shapes)
    988         _, original_func = tf_decorator.unwrap(python_func)
    989
--> 990       func_outputs = python_func(*func_args, **func_kwargs)
    991
    992       # invariant: `func_outputs` contains only Tensors, CompositeTensors,

/opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in wrapped_fn(*args, **kwds)
    632             xla_context.Exit()
    633         else:
--> 634           out = weak_wrapped_fn().__wrapped__(*args, **kwds)
    635         return out
    636

/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs)
    975           except Exception as e:  # pylint:disable=broad-except
    976             if hasattr(e, "ag_error_metadata"):
--> 977               raise e.ag_error_metadata.to_exception(e)
    978             else:
    979               raise

AttributeError: in user code:

    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py:805 train_function  *
        return step_function(self, iterator)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py:795 step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:1259 run
        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:2730 call_for_each_replica
        return self._call_for_each_replica(fn, args, kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:3417 _call_for_each_replica
        return fn(*args, **kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py:788 run_step  **
        outputs = model.train_step(data)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py:754 train_step
        y_pred = self(x, training=True)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py:1012 __call__
        outputs = call_fn(inputs, *args, **kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/functional.py:425 call
        inputs, training=training, mask=mask)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/functional.py:560 _run_internal_graph
        outputs = node.layer(*args, **kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/engine/base_layer.py:1012 __call__
        outputs = call_fn(inputs, *args, **kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/keras/layers/core.py:917 call
        result = self.function(inputs, **kwargs)
    <ipython-input-7-21ffba0b5a13>:7 ElmoEmbedding
        return elmo_model.signatures["tokens"](tokens = tf.squeeze(tf.cast(x, tf.string)), sequence_len = tf.constant(batch_size * [max_len]))["elmo"]
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1669 __call__
        return self._call_impl(args, kwargs)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/wrap_function.py:247 _call_impl
        args, kwargs, cancellation_manager)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1687 _call_impl
        return self._call_with_flat_signature(args, kwargs, cancellation_manager)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1736 _call_with_flat_signature
        return self._call_flat(args, self.captured_inputs, cancellation_manager)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1924 _call_flat
        forward_function, args_with_tangents = forward_backward.forward()
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1448 forward
        self._inference_args, self._input_tangents)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1207 forward
        self._forward_and_backward_functions(inference_args, input_tangents))
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:1407 _forward_and_backward_functions
        outputs, inference_args, input_tangents)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py:910 _build_functions_for_outputs
        src_graph=self._func_graph)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/gradients_util.py:552 _GradientsHelper
        to_ops, from_ops, colocate_gradients_with_ops, func_graphs, xs_set)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/gradients_util.py:125 _PendingCount
        between_op_list, between_ops, colocate_gradients_with_ops)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/control_flow_state.py:780 MaybeCreateControlFlowState
        loop_state.AddWhileContext(op, between_op_list, between_ops)
    /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/control_flow_state.py:577 AddWhileContext
        outer_forward_ctxt = forward_ctxt.outer_context

    AttributeError: 'NoneType' object has no attribute 'outer_context'

Any tips would help!

@popkristina Could you please try to upgrade to latest TensorFlow version 2.7.0 and let us know the outcome?Thanks!

@popkristina Could you please try to upgrade to latest TensorFlow version 2.7.0 and let us know the outcome?Thanks!

I did and I received the following error:
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-21-7173cff2a6ea> in <module>
     55                     y_train,
     56                     validation_data=([np.array(X1_valid), np.array(X2_valid).reshape((len(X2_valid), max_len, 40))], y_valid),
---> 57                     batch_size=32, epochs=2, verbose=1)
     58 hist = pd.DataFrame(history.history)

/opt/conda/lib/python3.7/site-packages/keras/utils/traceback_utils.py in error_handler(*args, **kwargs)
     65     except Exception as e:  # pylint: disable=broad-except
     66       filtered_tb = _process_traceback_frames(e.__traceback__)
---> 67       raise e.with_traceback(filtered_tb) from None
     68     finally:
     69       del filtered_tb

/opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py in autograph_handler(*args, **kwargs)
   1127           except Exception as e:  # pylint:disable=broad-except
   1128             if hasattr(e, "ag_error_metadata"):
-> 1129               raise e.ag_error_metadata.to_exception(e)
   1130             else:
   1131               raise

AttributeError: in user code:

    File "/opt/conda/lib/python3.7/site-packages/keras/engine/training.py", line 878, in train_function  *
        return step_function(self, iterator)
    File "/opt/conda/lib/python3.7/site-packages/keras/engine/training.py", line 867, in step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    File "/opt/conda/lib/python3.7/site-packages/keras/engine/training.py", line 860, in run_step  **
        outputs = model.train_step(data)
    File "/opt/conda/lib/python3.7/site-packages/keras/engine/training.py", line 808, in train_step
        y_pred = self(x, training=True)
    File "/opt/conda/lib/python3.7/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
        raise e.with_traceback(filtered_tb) from None
    File "<ipython-input-15-adbacb2acf37>", line 8, in ElmoEmbedding
        return elmo_model.signatures["tokens"](tokens = tf.squeeze(tf.cast(x, tf.string)), sequence_len = tf.constant(batch_size * [max_len]))["elmo"]

    AttributeError: Exception encountered when calling layer "lambda_2" (type Lambda).

    'NoneType' object has no attribute 'outer_context'

    Call arguments received:
      • inputs=tf.Tensor(shape=(32, 300), dtype=float32)
      • mask=None
      • training=True

Is it possible that I can't train a model with ELMO layer in TF 2 at all?

@popkristina
In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here. Thanks!

@popkristina In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here. Thanks!

Here's a short kaggle kernel to reproduce the error:
https://www.kaggle.com/popkristina/lstm-elmo?scriptVersionId=84384455

@popkristina
Please post this issue on hub repo to get the right help there?
Thank you!

@popkristina Please post this issue on hub repo to get the right help there? Thank you!

Alright, thank you.

Hi Kristina,
Hope you are doing well!
Is this issue resolved? I ma facing the same error.
Could you please help me with the solution?
Thanks
Shakti

Hi Kristina,
Hope you are doing well!
Is this issue resolved? I ma facing the same error.
Could you please help me with the solution?
Thanks Shakti

Unfortunately not. Apparently the way I tried to use my ELMO model with hub.load(..) is not supported in TF2. So instead I adapted my solution to TF1 where I can use hub.Module(..). The answer I got is here:  (https://github.com/tensorflow/hub/issues/838).
Hope this helps. Good luck!


1D rate map plot is blank due to NaNs

I was running Neurons.plot_rate_map(method="history") with a 1D environment, and getting blank rate maps. I realized that in Neurons.py, line 463, if there are any NaNs in the binned data obtained from utils.bin_data_for_histogramming(), at line 471, they are propagated when you run utils.interpolate_and_smooth(). (In my case, they were propagated through the whole map). However, NaN values are expected for any position in the map that was never visited by the Agent.
Possible fixes: Do you prefer to (1) remove the positions with NaN rate map estimates from x and rate_map before running the interpolation, or (2) interpret NaNs as 0s for the purpose of interpolation?

good spot. I think I've already encountered and fixed this in 2D where I opted that unvisited positions essentially return 0 firing rate.
As you'll have figured: the way this is done is that position histograms, weighted by firing rate, are calculated are then normalised against  how many times a position was visited. In 2D is a position was never visited bincount == 0 on utils.py line 456 then its bumped up to 1. This ultimately gives zero firing rate for unvisited locations but avoids the NaN (0/0 = NaN👎🏼, 0/1 = 0👍🏼 ). I clearly forgot to do the same for 1D too. I just pushed a one line fix. Should be fixed now

It worked, thanks! I think it's fine the way you've implemented it


Output exact Cigar JSON parse error

Also avoid the term ".cigar.json" which is misleading if a custom file is used.

Cool, thanks for this!
I'll check out the build failures when I get chance this weekend, they're not something you've caused - the whole thing has issues it seems (I haven't touched this project in a while)

@mbrodala I've fixed the test issues so if you pull in Brunty:master to your branch it should be all good :)

Thanks, did that now. All green. :green_heart:

@Brunty Is there something left to do here aside from merge?

@Brunty Any update?

Hey sorry for the delay! I'll get a new release tagged shortly :)
Thanks for the work!


⚠ ClamAV has degraded performance

In 5319cca, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 65 ms

Resolved: ClamAV performance has improved in c25016d after 13 minutes.


Migrated GPT-3 examples

Migrated GPT-3 examples.

Hi, please do the same as mentioned in the gpt-2 PR reply.


A simple reproduction about the prompt

Hello, thanks for providing the prompts. I am trying to reproduce the code. Since you did not provide the main.py to exactly run your prompts. I made a simple reproduction as a sanity check.
The user command is: "place the apple in the bowl".
Since I do not have real robot to detect the position of the robot, I directly copy the results from INITIAL PLANNING , and ////////// PRINT OUTPUT //////////.
So my prompt combines main_prompt and apple to bowl. I put the code as last.
Results: here
Note: my simple reproduction is only an easy check about the prompt, not the exact code the author used.

I run the code independently 20 times.
Half of them produced non-trajectory, or incomplete trajectory.
The other seemingly correct trajectories have very large variations.
I am not sure how to stabilize the output by ChatGPT4 with the current prompt with zero-shot.
According to the paper, the "place the apple in the bowl" task has 80% success rate.

So I have a question. Did the success rate come from all feasible trajectories generated by ChatGPT4, or do we need to manually pick the suitable trajectory for this experiment? This part is not very clear in the paper. Thanks!
Simple reproduction code:
import openai

class OpenAICompletor:
    # user: question
    # assistant: answer
    def __init__(self):
        self.messages = []

    def answer(self, question):
        self._add_questoin(question)
        ans = self._get_completion()
        self._add_answer(ans)
        return self._last_message()

    def get_all_answers(self):
        ans = ""
        for message in self.messages:
            if message['role'] == 'assistant':
                ans += (message['content'] + "\n")
        return ans

    def add_question(self, question):
        self._add_questoin(question)

    def add_answer(self, answer):
        self._add_answer(answer)

    def _last_message(self):
        return self.messages[-1]['content']

    def _add_questoin(self, question):
        self.messages.append({'role':'user', 'content':question})

    def _add_answer(self, answer):
        self.messages.append({'role':'assistant', 'content':answer})

    def _get_completion(self):
        response = openai.ChatCompletion.create(
        model = 'gpt-4',
        messages = self.messages,
        temperature = 0,
        )
        return response.choices[0].message['content']

def main(idx):
    api_key = 'xxx'
    openai.api_key = api_key

    MAIN_PROMPT = \
    """You are a sentient AI that can control a robot arm by generating Python code which outputs a list of trajectory points for the robot arm end-effector to follow to complete a given user command.
    Each element in the trajectory list is an end-effector pose, and should be of length 4, comprising a 3D position and a rotation value.

    AVAILABLE FUNCTIONS:
    You must remember that this conversation is a monologue, and that you are in control. I am not able to assist you with any questions, and you must output the final code yourself by making use of the available information, common sense, and general knowledge.
    You are, however, able to call any of the following Python functions, if required, as often as you want:
    1. detect_object(object_or_object_part: str) -> None: This function will not return anything, but only print the position, orientation, and dimensions of any object or object part in the environment. This information will be printed for as many instances of the queried object or object part in the environment. If there are multiple objects or object parts to detect, call one function for each object or object part, all before executing any trajectories. The unit is in metres.
    7. execute_trajectory(trajectory: list) -> None: This function will execute the list of trajectory points on the robot arm end-effector, and will also not return anything.
    8. open_gripper() -> None: This function will open the gripper on the robot arm, and will also not return anything.
    9. close_gripper() -> None: This function will close the gripper on the robot arm, and will also not return anything.
    10. task_completed() -> None: Call this function only when the task has been completed. This function will also not return anything.
    When calling any of the functions, make sure to stop generation after each function call and wait for it to be executed, before calling another function and continuing with your plan.

    ENVIRONMENT SET-UP:
    The 3D coordinate system of the environment is as follows:
        1. The x-axis is in the horizontal direction, increasing to the right.
        2. The y-axis is in the depth direction, increasing away from you.
        3. The z-axis is in the vertical direction, increasing upwards.
    The robot arm end-effector is currently positioned at [INSERT EE POSITION], with the rotation value at 0, and the gripper open.
    The robot arm is in a top-down set-up, with the end-effector facing down onto a tabletop. The end-effector is therefore able to rotate about the z-axis, from -pi to pi radians.
    The end-effector gripper has two fingers, and they are currently parallel to the x-axis.
    The gripper can only grasp objects along sides which are shorter than 0.08.
    Negative rotation values represent clockwise rotation, and positive rotation values represent anticlockwise rotation. The rotation values should be in radians.

    COLLISION AVOIDANCE:
    If the task requires interaction with multiple objects:
    1. Make sure to consider the object widths, lengths, and heights so that an object does not collide with another object or with the tabletop, unless necessary.
    2. It may help to generate additional trajectories and add specific waypoints (calculated from the given object information) to clear objects and the tabletop and avoid collisions, if necessary.

    VELOCITY CONTROL:
    1. The default speed of the robot arm end-effector is 100 points per trajectory.
    2. If you need to make the end-effector follow a particular trajectory more quickly, then generate fewer points for the trajectory, and vice versa.

    CODE GENERATION:
    When generating the code for the trajectory, do the following:
    1. Describe briefly the shape of the motion trajectory required to complete the task.
    2. The trajectory could be broken down into multiple steps. In that case, each trajectory step (at default speed) should contain at least 100 points. Define general functions which can be reused for the different trajectory steps whenever possible, but make sure to define new functions whenever a new motion is required. Output a step-by-step reasoning before generating the code.
    3. If the trajectory is broken down into multiple steps, make sure to chain them such that the start point of trajectory_2 is the same as the end point of trajectory_1 and so on, to ensure a smooth overall trajectory. Call the execute_trajectory function after each trajectory step.
    4. When defining the functions, specify the required parameters, and document them clearly in the code. Make sure to include the orientation parameter.
    6. If you want to print the calculated value of a variable to use later, make sure to use the print function to three decimal places, instead of simply writing the variable name. Do not print any of the trajectory variables, since the output will be too long.
    11. Mark any code clearly with the ```python and ``` tags.

    INITIAL PLANNING 1:
    If the task requires interaction with an object part (as opposed to the object as a whole), describe which part of the object would be most suitable for the gripper to interact with.
    Then, detect the necessary objects in the environment. Stop generation after this step to wait until you obtain the printed outputs from the detect_object function calls.

    INITIAL PLANNING 2:
    Then, output Python code to decide which object to interact with, if there are multiple instances of the same object.
    Then, describe how best to approach the object (for example, approaching the midpoint of the object, or one of its edges, etc.), depending on the nature of the task, or the object dimensions, etc.
    Then, output a detailed step-by-step plan for the trajectory, including when to lower the gripper to make contact with the object, if necessary.
    Finally, perform each of these steps one by one. Name each trajectory variable with the trajectory number.
    Stop generation after each code block to wait for it to finish executing before continuing with your plan.

    The user command is ""place the apple in the bowl"".
    """

    ans1 = """////////// GPT-4 //////////

        INITIAL PLANNING 1:

        The task requires interaction with an apple and a bowl. The apple will be grasped as a whole, while the bowl will be interacted with at its opening. Let's detect these objects in the environment.

        ```python
        # Detect the apple and the bowl in the environment
        detect_object("apple")
        detect_object("bowl")
        ```
         """

    question = """
    Please answer INITIAL PLANNING 2, with the following print out results.

    ////////// PRINT OUTPUT //////////

    Print statement output:
    Position of apple: [-0.07, 0.132, 0.058]
    Dimensions:
    Width: 0.062
    Length: 0.068
    Height: 0.064
    Orientation along shorter side (width): 1.101
    Orientation along longer side (length): -0.47

    Position of bowl: [0.239, 0.285, 0.04]
    Dimensions:
    Width: 0.151
    Length: 0.139
    Height: 0.052
    Orientation along shorter side (length): -1.571
    Orientation along longer side (width): -0.0

    """

    completor = OpenAICompletor()
    completor.add_question(MAIN_PROMPT)
    completor.add_answer(ans1)
    ans = completor.answer(question)
    print(ans)

Well noted, great thanks for the comments! All the best!


tf.gather shows an error in presence of different dtype tensor under tf.function

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04
TensorFlow installed from (source or binary): Source (1st April 2019)
TensorFlow version (use command below): v2.0
Python version: 3
Bazel version (if compiling from source): 0.22.0
GCC/Compiler version (if compiling from source): 7.3.0
CUDA/cuDNN version: 10.0, 7.5.0
GPU model and memory: Zotac GTX 1060, 6GB

Describe the current behavior
tf.gather throws error in presence of another independent tensor inside tf.function
Describe the expected behavior
Run smoothly
Code to reproduce the issue
import tensorflow as tf

a = tf.Variable(tf.random.normal([10]))
b = tf.Variable(tf.random.uniform([10], minval=-1, maxval=1, dtype=tf.dtypes.int32))
value = tf.Variable(tf.random.normal([10]))

print(a.numpy)
print(b.numpy)

@tf.function
def run():
    for j in tf.range(10):

        var = tf.gather(a, j)
        tf.print(var)

        var_int = tf.gather(b, j)
        tf.print(var_int)

run()

Information
When you comment out the float variable, it functions correctly with a warning. When both the int32 and float 32 are present, tf.gather shows an error as shown below.
Other info / logs
File "test.py", line 20, in
run()
File "/home/caissalover/.local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 437, in call
return self._concrete_stateful_fn._filtered_call(canon_args, canon_kwds)  # pylint: disable=protected-access
File "/home/caissalover/.local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 559, in _filtered_call
(t for t in nest.flatten((args, kwargs))
File "/home/caissalover/.local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 633, in _call_flat
outputs = self._inference_function.call(ctx, args)
File "/home/caissalover/.local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 416, in call
ctx=ctx)
File "/home/caissalover/.local/lib/python3.6/site-packages/tensorflow/python/eager/execute.py", line 66, in quick_execute
six.raise_from(core._status_to_exception(e.code, message), None)
File "", line 3, in raise_from
tensorflow.python.framework.errors_impl.InvalidArgumentError: Cannot place the graph because a reference or resource edge connects colocation groups with incompatible assigned devices: /job:localhost/replica:0/task:0/device:CPU:0 vs /job:localhost/replica:0/task:0/device:GPU:0. The edge src node is while/exit/_27 , and the dst node is while [Op:__inference_run_98]

Thank you for reaching out to us. Can you please provide minimum reproducible code snippet to help us proceed further and verify what is going wrong

@achandraa , the code I'm converting to 2.0 is proprietary so I cannot share and also is quite messy. I haven't been able to determine what's causing it and make minimum reproducible code, I'll update it as soon as I find out the error cause. What I know for sure is an op is available for GPU and tf2.0 is not being able to place it there. Above is the terminal output. https://github.com/tensorflow/tensorflow/issues/26244 is closely linked with my issue. Eager execution and conv2d both are used in my case above as concern shown in the issue 26244.

@achandraa I have updated the error and I'm sure it's much better than the earlier post. Let me know. Thanks.

@caissalover I ran your script in google colab with TF2.0 and it worked as expected. Please check the output below. Could you try running it in colab.sandbox.google.com? You could also upgrade TF2.0 and check whether the bug persists or not. Thanks!
<bound method ResourceVariable.numpy of <tf.Variable 'Variable:0' shape=(10,) dtype=float32, numpy=
array([-0.7555967 , -1.0448577 , -0.08942685,  0.09107728,  0.25068387,
1.6492767 , -0.40207562, -0.7407482 , -1.7115227 , -0.6381878 ],
dtype=float32)>>
<bound method ResourceVariable.numpy of <tf.Variable 'Variable:0' shape=(10,) dtype=int32, numpy=array([ 0, -1,  0,  0,  0,  0, -1,  0,  0, -1], dtype=int32)>>
-0.755596697
0
-1.04485774-1
-0.0894268528
0
00.091077283
0.250683874
001.64927673
-0.402075619
-1
-0.7407482270
-1.7115227
0
-0.638187826
-1

Colab shows no warning. Maybe someone fixed the bug after 1st April. Will update and let you know.

Yes, this is resolved. Please close this. Thanks!

Closing this issue as it was resolved. Thanks!


Display parsing errors

Parsing errors should be reported as warnings on stderr. It might also be a good idea to put them in the docs themselves to make the problem obvious.

Oops wrong repo. Subsumed by: https://github.com/ocaml-doc/odoc/issues/7/


cannot connect to ipython kernels

Hello,
I am using jupyterlab desktop 3.6.3-1 and it fails to connect to some of the ipython kernels I have installed.
jupyter-lab connects fine to these kernels. How could I debug this issue?
Thanks

@bill-tatsis have you selected your custom Python environment as described here?

@bill-tatsis can you provide more details. how did you install additional kernels? which kernels are they? are there any error logs?

closing since no response for long


Enable Konflux build pipeline

Which area is this issue related to?

/kind epic
/area ci
/area registry
Issue Description

Create Applications, components, enable build pipeline.
Konflux issue: https://issues.redhat.com/browse/KONFLUX-690
Acceptance Criteria

[x] #1606
[x] #1638
[x] #1635
[ ] #1658
[ ] #1636
[ ] #1657

Onboarding is blocked due to an extra infrastructure migration task: https://github.com/devfile/api/issues/1649#issuecomment-2520851337

Added #1657 and #1658 for onboarding the registry viewer component to complete what we need to use Konflux for our community registry deployment.

/area registry-viewer

SAAS deployments are now using both devfile-index and registry-viewer release images from Konflux, build pipelines for the devfile registry deployments are fully onboarded, closing this issue as completed.


[FLINK-12611][table-planner-blink] Make time indicator nullable in blink

What is the purpose of the change
Make time indicator nullable in blink to support agg on TimeIndicator
Verifying this change
ut
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): no
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no

@flinkbot attention @KurtYoung

This looks good to me.
+1 to merge.
I will rebase this and merge it.


Code workflow

Title:
Configure Azure Pipelines
Description:
This pipeline configuration builds the application and produces a build for the Release configuration.

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: rujhaan123 sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Database for Pages

Separate search for groups/pages and search for events
Create a intermediate database for pages/groups that allow people/me/you to easily add a page into this database that you will then scrape from
Note this means the db must not be deleted on every search and when you search for groups/pages, you only add groups/pages

halfway done: pages are only saved/updated in their own collection, but can't add them yet (except directly through mLab)


fix: rename mathlib-cache -> get-mathlib-cache and improve interface

Improve the user interface for detecting a Mathlib dependency and running lake exe cache get.
Rename mathlib-cache -> get-mathlib-cache.
Rename default value for get-mathlib-cache from empty string -> "auto".

For me this improved naming makes the functionality very clear.

:+1: Thanks for flagging this.


Is "@sender" column ALWAYS part of the "From" column in message list pane?

As far as I can see the "@sender" column (in message list pane) always contains the senders emails address.
But the "From" column contains the senders email address too.
Is there any scenario where the email addresses in the two column differ?
If yes: What sense does the "@sender" column make if I already use "From" column?
There would be no new additional information.
Does the same apply to "Recipient" and "@recipient" column?
Can I somehow tell TB to show only Names in "From" and "Recipient" column without email addresses?

This add-on addresses mostly issue from pre-115 TB, where there was no way to display raw sender or recipient e-mail address. Since TB 115, you can change format of the "From" column to display either e-mail address, name or both, and additionally you can decide whether to show names for all messages or only for senders from your address book.
Even in TB 115+, without this add-on you can't have both display name and real address shown in message list with clear demarcation between them to see at first glance which one is which. You can have either of them (with the other one missing) or a mix of both in one column.
I personally have "From" column set up to always show display name and "Sender (@)" column to always show real e-mail address.

Thank you for clarification


GP Tests

Okay, so I didn't exactly use Test Driven Development... Unit tests should still be added for GP related operations.
Exact implementation TBD because of the random nature of all the operators.

Fixed in #77


Difference in Output Between PyTorch and OpenVINO

Before Asking

[X] I have read the README carefully. 我已经仔细阅读了README上的操作指引。

[X] I want to train my custom dataset, and I have read the tutorials for finetune on your data carefully and organize my dataset correctly; 我想训练自定义数据集，我已经仔细阅读了训练自定义数据的教程，以及按照正确的目录结构存放数据集。

[X] I have pulled the latest code of main branch to run again and the problem still existed. 我已经拉取了主分支上最新的代码，重新运行之后，问题仍不能解决。

Search before asking

[X] I have searched the DAMO-YOLO issues and found no similar questions.

Question
Given a finetuned DAMO-YOLO model, I want to convert it to OpenVINO. I am using the provided converter script. However, I am using OpenVINO's ovc (not mo as suggested in the README, I believe mo is deprecated).
My problem is that the outputs from OpenVINO are different. Given the same exact input I get that torch and onnx outputs are practically the same but the output of the OpenVINO model is slightly different.
I am noting that I compared all the models (torch, onnx, OpenVINO) with the post-processing (i.e. when I used the converter script, I did not add the --bench flag). Given that the input image size is 416x416 after post-processing that output has 3549 predictions with the nano-large model.
To give more information about what I see, if I order that outputs of both torch and OpenVINO based on the class score the outputs become closer, albeit still not ordered perfectly. In fact, the order of the predictions with the highest scores are vastly different between both outputs.
Finally, for this specific image, the final result after nms is similar (based on a visualised image with bboxes).
That being said, this is only one image, and I expected OpenVINO and torch outputs to be much closer.
Is this behavior expected? In your tests, have you experienced any accuracy degradation after converting the model to OpenVINO?
If you believe the outputs should be closer, what do you think I am missing, please?
Thank you very much for any help.
Additional
No response

I figured out that the input was different due to a difference between PIL and CV2 when loading an image. More specifically, for PIL version 9.4.0, the JPEG decoders differ from those used by CV2, leading to slightly different inputs.
After fixing this issue, the outputs from the models (PyTorch vs OpenVINO) are now much closer.


Simplify using Kafka admin commands (jar files)

The problem here is that there's a confusing step in getting kafka-tools working -- installing the Kafka admin command jar files. We should hide this from users as much as possible.
I'm not sure how this should be fixed. Here's a few options:

If the Kafka admin jar files are not available, the user should be asked if the files should be downloaded and installed for them (perhaps to their home directory?).
The Kafka admin jar files should be packaged at build time and included as package_resources. This seems like the best option from the users' point of view, but could harm build stability.
kafka-tools should simply just scan a list of known locations and error out if it can't find them. It should then perhaps prompt the user that they need to run some command (e.g. yum install kafka-server).

So the tool already searches known locations (PATH) for the tools and errors out if it can't find them. I'm not sure about the idea of adding the JAR files into the build, though, as my concern is that we will run into versioning problems with the Kafka cluster itself if the tools are incompatible.

we will run into versioning problems with the Kafka cluster itself if the tools are incompatible

Agreed. This is a problem with Kafka itself since the admin tools blindly assume that they're connecting to a broker with the same version instead of checking if the versions match.
Since fixing the admin tools is way out of the scope of this project, I'm going to close this issue and consider it blocked. Folks will need to just manually deal with having a copy of the admin tools that match the version of the broker they're running (the current behavior)
If anyone finds that the admin tools have been updated to safely check the version of the brokers they connect to, feel free to reopen this.


rest assured jard download issue

getting forbidden error while downloading rest assured jars,

getting error called forbidden When I try to download the jars

Same error for me

Bintray is shutting down so unfortunately it won't be able to download the binaries anymore :(

Does anyone know of another place where we could store the binaries?

Getting the same forbidden error, please help

Same Error, is there any other location to download JARS


Domain validator allows invalid characters in some cases

It appears that, currently, any character is valid for the final character in the gTLD if rfc1034 is True, for example:
>>> domain('example.com?', rfc_1034=True, rfc_2782=False)
True
>>> domain('example.com!', rfc_1034=True, rfc_2782=False)
True

I believe the '.' just needs to be escaped in the pattern string (link):
+ rf"[a-z]{r'.?$' if rfc_1034 else r'$'}",
             ^

Also, it appears question marks are allowed when rfc_2782 is True for domain validation:
>>> from validators import domain
>>> domain('example?.com', rfc_1034=False, rfc_2782=True)
True

This appears to be from the use of '?' after the '_' inside of a character class:
rf"^(?:[a-z0-9{r'_?'if rfc_2782 else ''}]"
                  ^

Presumably, this is to make the '_' optional, but since metacharacters aren't active in character classes (link), this is interpreted as a literal '?' instead.

Hey @hagenrd thanks! Do you mind reviewing: #367

Thanks for the quick turnaround!  Any chance you have some time to provide a patch that includes those changes?

https://patch-diff.githubusercontent.com/raw/python-validators/validators/pull/367.patch ?

Sorry, I meant patch in terms of a semantic version, i.e. a patch-release (0.28.1).


Passes even though it shouldn't

Challenge Bonfire: Truncate a string has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.80 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function truncate(str, num) {
  if (str.length <= 3) {
    str = str.slice(0,num).concat("..");
  }
  if (str.length > num) {
    str = str.slice(0,num-3).concat("...");
  }
  // Clear out that junk in your trunk
  return str;
}

truncate("A-1", 2);

Hi! This code passes when it shouldn't. The challenge asks for users to truncate if str.length is longer than num.length, but this configuration truncates str as long as it is shorter than 3 characters, regardless of the length of num. This could be resolved by making another test parameter truncate("A-", 2) which does not truncate.

Can you please show what you get and what you think you should get?

If truncate("A-",2) is tested, I should get "A-". Instead I get "A-..."

Duplicate of #4066

Closing as a duplicate.


Getting errors when running command "xcaddy" on Debian 12

Hi, I'd like to start off with saying I have no idea what I'm doing.
I'm trying to use Xcaddy on my Raspberry Pi running Debian 12 Bookworm. I used apt-get to install both xcaddy and golang-go.
When I use the command "xcaddy" without anything extra I get the following error. Go can be accessed just fine.
go: cannot match "all": go.mod file not found in current directory or any parent directory; see 'go help modules'
2024/01/04 22:01:45 [ERROR] exec [go list -mod=readonly -m -json all]: exit status 1:
When I run "xcaddy list-modules" for example I get the same error. I tried it with and without using sudo.

What Go version do you have installed? Make sure you have at least Go 1.20

What are you trying to do?
xcaddy has essentially two modes:

xcaddy build: build a custom caddy binary (with/without plugins or the newly added --embed)
xcaddy <anything else>: a go run wrapper if you hack on Caddy itself (or a plugin), which requires a project structure in your local directory

Unfortunately, invoking xcaddy with no parameter errors out with that rather unhelpful error message you shared.
This is probably something that could be improved but oh well /shrug
If you just want to make sure your xcaddy setup (with go) works by giving it a test run, try xcaddy build.
This will build and output a custom "vanilla" (no plugins, no embeds) caddy binary in your local directory.
If you just want to make sure xcaddy is working (but without invoking/validating your go toolchain), try xcaddy version.
Please refer to the Command usage section in the README.md: https://github.com/caddyserver/xcaddy#command-usage

Yeah just install Go manually (basically just unzip it somewhere, that's all) https://go.dev/doc/install

What are you trying to do?
xcaddy has essentially two modes:
1. `xcaddy build`: build a custom caddy binary (with/without plugins or the newly added `--embed`)

2. `xcaddy <anything else>`: a `go run` wrapper if you hack on Caddy itself (or a plugin), which requires a project structure in your local directory

Unfortunately, invoking xcaddy with no parameter errors out with that rather unhelpful error message you shared. This is probably something that could be improved but oh well /shrug
If you just want to make sure your xcaddy setup (with go) works by giving it a test run, try xcaddy build. This will build and output a custom "vanilla" (no plugins, no embeds) caddy binary in your local directory.
If you just want to make sure xcaddy is working (but without invoking/validating your go toolchain), try xcaddy version.
Please refer to the Command usage section in the README.md: https://github.com/caddyserver/xcaddy#command-usage

I'm just trying to build Caddy with plugins. Ah, xcaddy build gives an error [FATAL] exit status 1. Probably because Go is too old, I'll try again when I have a newer Go installed.

The latest version of Go fixed it. It works great now. Thank you both for your help.


fix: update to match userstyles style guide

Changes placeholder text to subtext0, ::selection background to accent, and removes the (strange?) logic for using crust as the main background in dark flavors.

@catppuccin/staff


Inaccurate count for csv batch processing

We have been using the new csv in batch processing.
The processing count is always 1 off:

Expected behavior:
37601 out of 37601 items(100%)

I think this a duplicate of the following issue. The off by one is likely due to the given CSV not having a trailing empty newline as the counting code assumes one will be present so it subtracts 1. Better explanation: https://github.com/Shopify/maintenance_tasks/issues/551#issuecomment-994837288.

https://github.com/Shopify/maintenance_tasks/issues/551

I think this a duplicate of the following issue. The off by one is likely due to the given CSV not having a trailing empty newline as the counting code assumes one will be present so it subtracts 1. Better explanation: https://github.com/Shopify/maintenance_tasks/issues/551#issuecomment-994837288.

https://github.com/Shopify/maintenance_tasks/issues/551

I just finished another run:

Tail the csv file:

It doesn't look like there is any new line at the end


Space Traveler's Hub: Add more features

In this PR, I added extra features to the project.
Changes

Update the project description in the README.md file
Refactored the data-fetching functions
Added a placeholder message for an empty list on the My Profile page
Added cancelation buttons on the My Profile page
Added "read more" Wikipedia links on the My Profile page
Added a hamburger menu for smaller devices

Hi @Timbar09, I have gone through all the updates that you've added. And, also checked out the running version of the code. I am very glad to tell you that the branch is ready to be merged.

Thanks, @Shakir-Hussain12. I am glad you like the changes.


added flag to skip tests

the correct way to do this is now to just run j2objcAssemble (which does not run the test).  if you run build tests are supposed to be run.  you can skip them by doing ex: ./gradlew build -x j2objcText

Is there a way of having cycleFinder default disabled and then enabled by
config if needed? Or do we need to keep that flag?
On Thu, Jun 11, 2015, 9:26 AM Advay Mengle<EMAIL_ADDRESS>wrote:

the correct way to do this is now to just run j2objcAssemble (which does
not run the test). if you run build tests are supposed to be run. you can
skip them by doing ex: ./gradlew build -x j2objcText
—
Reply to this email directly or view it on GitHub
https://github.com/j2objc-contrib/j2objc-gradle/pull/135#issuecomment-111193474
.

when creating the task in the plugin you could do enabled = false, but...
i'd argue the right thing to do is leave the cycleFinder out of the dependency of the translation step by default.  similar to how we removed tests from translation.

@confile, Also if you want to permanently skip j2objc tests for a particular build.gradle, put this:
j2objcTest {
    enabled false
}

You can do this with any named task (i.e. you can configure it after plugin application in your own build file).
Since this is already supported the standard gradle way, closing.  Please reopen as needed.

@advayDev1 Why did you close this pull request? We should be consistent for cycle finder we have a skip flag as well.

CycleFinder's skip flag is going away too, about to file the PR.
The right way to do this is as above, and I'm adding the functionality to do that.

See #145

ok

@advayDev1 You should add:
j2objcTest {
    enabled false
}

to the docs.

Can you make the PR?
On Thu, Jun 11, 2015, 2:38 PM Michael Gorski<EMAIL_ADDRESS>wrote:

@advayDev1 https://github.com/advayDev1 You should add:
j2objcTest {
enabled false
}
to the docs.
—
Reply to this email directly or view it on GitHub
https://github.com/j2objc-contrib/j2objc-gradle/pull/135#issuecomment-111284141
.

@advayDev1 yes.  I made a fork of the master. How can I update my master fork that it contains the latest commits?

You should do all the development on a branch and not use master. That's
both safer and easier for you.
Then follow the instructions in CONTRIBUTING.md to rebase your master and
branches on the upstream changes.
On Thu, Jun 11, 2015 at 2:42 PM Michael Gorski<EMAIL_ADDRESS>wrote:

@advayDev1 https://github.com/advayDev1 yes.  I made a fork of the master. How can I update my master fork that
it contains the latest commits?
—
Reply to this email directly or view it on GitHub
https://github.com/j2objc-contrib/j2objc-gradle/pull/135#issuecomment-111284769
.

First
git fetch upstream/master
Then
git checkout master
git merge upstream/master
Note that you really should create a new branch for every PR, otherwise the
instructions in contributing.MD will not work.
On Thu, Jun 11, 2015, 2:42 PM Michael Gorski<EMAIL_ADDRESS>wrote:

@advayDev1 https://github.com/advayDev1 yes.  I made a fork of the master. How can I update my master fork that
it contains the latest commits?
—
Reply to this email directly or view it on GitHub
https://github.com/j2objc-contrib/j2objc-gradle/pull/135#issuecomment-111284769
.

@advayDev1 Thanks!

@brunobowden I create a branch for each pull request, but I forked your master first and created branches from this fork.


Persistent audio settings upon launching

Currently (and this is also possibly true of real hardware, not in a position right now to check myself) the game initially loads with a default maxed audio level. It's only when you get to the menu and load a save file that the audio setting updates to where you had it set in-game.
Would it be possible to set a default audio level in the .ini that is used until the game loads the saved values and overwrites it? Or perhaps have an option to set an .ini value as a global override?  I do know it's possible to skip the intro sequence, but I personally enjoy the nostalgia of seeing that logo appear.

for this problem you can use the windows volume mixer it should be persistent from launch to launch just max the sound in-game or do you play with music on lower volume? D:


control Volume with windows key + mouse wheel and send to back window

Description of the new feature / enhancement
I use altDrag for 2 actions:

volume control with    win key + mouse wheel
why? is faster than go to volume tray icon or press some volume key in custom keyboard. The wheel is more intuitive for volume control

send back window to back
why?  is faster than go to taskbar and search the window that I want. Simply I press Win Key + mouse clic to lower a window and find the one I want.

Also, AltDrag provides fast functions in a small size program that PowerToys can absorb
Scenario when this would be used?
scenario:
volume control: When you need it to talk someone or just adjust volume at your will
send back window: When you work with many windows and not necesarily have it in tiles
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/269


[BugFix] remove previous worker when modify backend

What type of PR is this：

[x] BugFix
[ ] Feature
[ ] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 19 / 22 (86.36%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/lake/StarOSAgent.java
19
22
86.36%
[234, 236, 244]

run starrocks_admit_test

run starrocks_fe_unittest

[FE PR Coverage Check]
:heart_eyes: pass : 16 / 18 (88.89%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/lake/StarOSAgent.java
16
18
88.89%
[234, 236]

@Mergifyio backport branch-3.0


Fixed ShutterCommand

Description of Change
Now ShutterCommand is a readonly BindableProperty and BindingMode.OneWayToSource, this way the dev doesn't need to call CameraView.Shutter() method.
Bugs Fixed

Fixes #341

API Changes
Added:

internal static readonly BindablePropertyKey ShutterCommandPropertyKey

Changed:

public static readonly BindableProperty ShutterCommandProperty = ShutterCommandPropertyKey.BindableProperty;
public ICommand ShutterCommand => (ICommand)GetValue(ShutterCommandProperty);

Removed :

public object ShutterCommandParameter {get; set;}  //BP

PR Checklist

[x] Has tests (if omitted, state reason in description)
[x] Has samples (if omitted, state reason in description)
[x] Rebased on top of main at time of PR
[x] Changes adhere to coding standard
[ ] Updated documentation

@acuntex can you review this PR and see if it fits your expectations?

@pictos Looks good! Thank you!


Add support AWS Embedded Metric Format Version 0

Same as this PR https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/20314
Description:
Currently, awsemfexporter will group all the metrics, translate to fields and setting the fields with exported metrics as EMF version 1 -
"_aws": {
					"CloudWatchMetrics": [
					{
						"Namespace": "ECS",
						"Dimensions": [ ["ClusterName"] ],
						"Metrics": [{"Name": "memcached_commands_total"}]
					}
					],
					"Timestamp":<PHONE_NUMBER>641
			  	}

Therefore, adding support for EMF version v0 and a flag for customers to make a difference between Version 0 and Version 1 (e.g EMF v0)
				{
					"Version": 0,
					"CloudWatchMetrics": [
					{
						"Namespace": "ECS",
						"Dimensions": [ ["ClusterName"] ],
						"Metrics": [{"Name": "memcached_commands_total"}]
					}
					],
					"Timestamp":<PHONE_NUMBER>641
			  	}

This can be validated by send metrics with awsemfexporter

Link to tracking Issue:
N/A
Testing:
There are two tests I have done:

By running go test with awsemfexporter, the result is

khanhntd@88665a0eaf54 awsemfexporter % go test ./...
ok      github.com/open-telemetry/opentelemetry-collector-contrib/exporter/awsemfexporter       2.409s

By using the following configuration for awsemfexporter with prometheus,  here is the following result:

Documentation:
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html#CloudWatch_Embedded_Metric_Format_Specification_structure

Did you do any testing?

Did you do any testing?

Its in PR description


Exception in context.py related to font names

The new code in 0.2.5 shown below assumes the variable names is a string when it's actually a list of strings. In line 836,  if names.startswith("#"): causes the exception.
    ```

XXX Just works for local filenames!
    if names and src:
        file = src
        src = file.uri
        log.debug("Load font %r", src)
        if names.startswith("#"): …
            names = names.strip('#')
        if type(names) is ListType:
            fontAlias = names
        else:
            fontAlias = (x.lower().strip() for x in names.split(",") if x)

Have you already seen #522 ? So this issue should already be fixed.
If you want, you could try to run the master branch of xhtml2pdf and see if there is still a problem.

Sorry! I looked for a similar issue but didn't see that.  This issue and my issue are the same.
You may delete mine. Thanks for writing.
--Lee--

On Oct 20, 2020, at 12:34 PM, fbernhart<EMAIL_ADDRESS>wrote:
Have you already seen #522 https://urldefense.com/v3/__https://github.com/xhtml2pdf/xhtml2pdf/pull/522__;!!GX6Nv3_Pjr8b-17qtCok029Ok438DqXQ!jB5Ogi9Ig3UxIFa6EdL0mi8c_45z6OOQeFDp-hL6WAMVksstXqFfLNAVBQ_n$ ? So this issue should already be fixed.
If you want, you could try to run the master branch of xhtml2pdf and see if there is still a problem.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub https://urldefense.com/v3/__https://github.com/xhtml2pdf/xhtml2pdf/issues/530*issuecomment-713091543__;Iw!!GX6Nv3_Pjr8b-17qtCok029Ok438DqXQ!jB5Ogi9Ig3UxIFa6EdL0mi8c_45z6OOQeFDp-hL6WAMVksstXqFfLFppAbxP$, or unsubscribe https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAON2JMIDSCQTTKQP2H5OU3SLXQ5JANCNFSM4SYSS34Q__;!!GX6Nv3_Pjr8b-17qtCok029Ok438DqXQ!jB5Ogi9Ig3UxIFa6EdL0mi8c_45z6OOQeFDp-hL6WAMVksstXqFfLFvgooyl$.

You're welcome. :)
You can just close it yourself. I don't have the permissions to.


Toggle Button Is Added

Toggle button is Added.

@ElvinPero please give me a proper description of why you closed my PR without merging.

@devjain2309 Unassigned PR

@ElvinPero Sorry for that, but check out once my PR if you like it then you are free to use it.

@devjain2309  I had checked your code before closing PR . But merging is only fair when assigned person gets the chance to contribute else it would be unfair to the assignee. Thanks for your effort, you can still create other issue and commit there. Happy coding


[Linguee] Being able to translate from french to english

Extension – Linguee
Author: @geekdada

Describe the feature and the current behavior/state.
Can't.
Who will benefit with this feature?
Me.
Any Other info.
Please?

Sorry what is this about?

Since I started to use this extension, only from english to french was possible. Not from french to english.

But since I've created this ticket, I can see that it's reversible so I'm fine now.
Thank you, I can close the ticket.


Data cleaning

The team’s first task will be understand the data and the scope of it. The team will then make plans to deal with the missing data and convert the file format to something readily usable etc. if needed.

I guess we need to first come up with a trend plot of 15 minutes average kW to investigate when the peak demand occurring during the billing cycle for the 4 meters and match all 4 meters for load leveling opportunity if any.
trends XL file which has the kW data in a minute resolution and Power_energy XL file for the kWh data in 5 minutes resolution

And this trend is in 7 seconds.

For the average 15 minutes power (kW) trend plot, which is area below of kW plot for 15 mins / 0.25,
but if we refer to the 1 minute-resolution for the calculation, then the area would be wrong as the area under the second-resolution would be different from the area under the minute-resolution of the power (kW).
We need to check if there is an area difference between the two cases, if not, we may use the 1 minute-resolution for the mean 15 minutes power (kW) trend plot per each minute point.

Closing as no real task of cleaning here.


Build process maintenance 4th

Related: https://github.com/nissl-lab/npoi/issues/1033

Migrate csproj for net472 to SDK style.
Add TargetFramework net427 to *.Core.csproj files, then remove old style csprojs.

Fix troublesome manual .runsettings file specification for testing.
Add default runsettings file and use it by adding <RunSettingsFilePath> setting in Directory.Build.props.
After the SDK style csproj migrations, any tests built for all TargetFrameworks will have same relative filepaths to the required test data. Therefore we can have one test.runsettings file at the root of repository.

I fixed the failure of AppVeyor build (Internal server error).
We cannot enable generation of XML documentation files in Debug build, because it will report many many CS1591 warnings.

I don't think merge Core csproj and non-Core csproj is a good idea. I remember there are some test cases behaving differently in Core and non-Core mode.

Today, tests in Core csprojs only targets net6.0, but we can easily add one more target framework net472.

If there is no reasons other than the test behavior, I prefer to use SDK style csprojs for maintainability.

I'll evaluate if it's possible to merge Core csproj and non-Core csproj. The situation is different from before. NPOI doesn't need to support .NET framework 2.x/3.x anymore. The difference may have became very tiny.

OK, I added net472 for three test projects. After that, test explorer will display two target frameworks for each test projects.  We can do testing in specific target framework, or run them all at once.

LGTM

Thanks!

This pull request introduced a regression. Look at the fix in #1083.


Use immer for vatism plan updates

And while I'm at it figure out why things ding more than they should. Things that seem to cause a ding:

Changes in the prefile state?

This is just a mess. So far:

socket moves to app state so refs aren't required.
useImmer
new hook (useVatsim) to get the update logic out of the control, and manage hasNew and hasUpdates
Socket registration re-done in the main control with separate useEffect() hooks to wire up different events. I'm still not convinced hooks are needed here though?

It seems to be working and feels more correct than before (and still more correct than EDCT page, which isn't using immer correctly). It's not clear to me if the ding sound plays any time after the first connect though, needs more testing.


Manage Household: fail to add Contact to HH from search results Firefox/Windows

Reported by three users in the Hub, I was able to reproduce the problem often enough to report the issue in detail.
In the Manage Household UI, search for Contacts and get results. Normal behavior is to click the circle-plus button for a Contact from the search results in order to add the Contact to the Household page as a "card" on the page. In normal behavior, we see the search results disappear immediately, then the page briefly goes grey as code formulates the Contact card and adds it to the page.  The 'processing' pulsing circle of dots may or not appear as this happens.
At least some of the time in later version of Firefox on multiple versions of Windows, we see a problem.  Search for Contacts, get results. Click the circle-plus button to add one Contact to the Household. We see the search results disappear immediately as normal, but nothing else happens. The page does not go grey, no contact card is created, the contents of the Manage Household do not change after attempting to add the Contact, and no changes to the page appearance or behavior are apparent.
No screenshot because there is nothing useful to show, unfortunately.
NOTE: upon first loading the MHUI page, one sees in the Console a javascript error "unreachable code after return statement". This error does not seem to be a result of any operations of the page. It seems to be traceable to a piece of localization software unrelated to MHUI code.

**lurch: add

Tracking W-011015

Included in beta release 3.80 (Beta 2)

Included in production release rel/3.80


Error installing PWD in ubuntu 16.04

This is basic script I'm using for install play-with docker in my ubuntu 16.04 box.
'git clone https://github.com/franela/play-with-docker
cd play-with-docker/
docker pull franela/dind
sudo apt install golang-go
export GOPATH=$HOME/.go
go get -v -d -t ./...
docker-compose up '
But I get this error
... l2 exited with code 2 pwd exited with code 2
root@ccxxxx:~/play-with-docker# uname -a
Linux ccxxxx 4.10.0-28-lowlatency #32~16.04.2-Ubuntu SMP PREEMPT Thu Jul 20 11:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
root@ccxxxx:~/play-with-docker# docker info
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 24
Server Version: 17.09.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: active
NodeID: wkx9887e8vh59xv7wyznxqqly
Is Manager: true
ClusterID: uq37rd9yrxl8uphrkt0he7qqz
Managers: 1
Nodes: 1
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 3
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: <IP_ADDRESS>
Manager Addresses:
<IP_ADDRESS>:2377
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 06b9cb35161009dcb7123345749fef02f7cea8e0
runc version: 3f2f8b84a77f73d38244dd690525642a72156c64
init version: 949e6fa
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.10.0-28-lowlatency
Operating System: Ubuntu 16.04.3 LTS
OSType: linux
Architecture: x86_64
CPUs: 4
Total Memory: 7.681GiB
Name: ccxxxx
ID: MDAC:G7XP:2SNE:4LYV:I3KW:IMRA:ZOBD:BVGF:EIBN:55CL:YVJT:GOAO
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Experimental: false
Insecure Registries:
<IP_ADDRESS>/8
Live Restore Enabled: false
WARNING: No swap limit support
root@ccxxxx:~/godummy#go version
go version go1.8 linux/amd64
root@ccxxxx:~/play-with-docker# docker-compose up
WARNING: The Docker Engine you're using is running in swarm mode.
Compose does not use swarm mode to deploy services to multiple nodes in a swarm. All containers will be scheduled on the current node.
To deploy your application across the swarm, use docker stack deploy.
Creating haproxy ...
Creating pwd ...
Creating l2 ...
Creating pwd
Creating l2
Creating l2 ... done
Attaching to pwd, haproxy, l2
haproxy    | <7>haproxy-systemd-wrapper: executing /usr/local/sbin/haproxy -p /run/haproxy.pid -f /usr/local/etc/haproxy/haproxy.cfg -Ds
l2         | # docker.io/go-docker
l2         | /go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest
pwd        | # docker.io/go-docker
pwd        | /go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest
l2 exited with code 2
pwd exited with code 2
`

root@ccxxxx:~# docker logs l2
/bin/sh: 1: cd: can't cd to /go/src/github.com/play-with-docker/play-with-docker/router/l2
stat l2.go: no such file or directory
docker.io/go-docker
/go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest
docker.io/go-docker
/go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest
root@ccxxxx:~# docker logs pwd
/bin/sh: 1: cd: can't cd to /go/src/github.com/play-with-docker/play-with-docker
stat api.go: no such file or directory
docker.io/go-docker
/go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest
docker.io/go-docker
/go/src/docker.io/go-docker/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest


Update to Gradle 2.x

Update the Gradle build to a more modern 2.x version.

The Gradle wrapper and build.gradle are now running on Gradle 2.3.


Enhancement: a Possibility to do it on a repeat time

A Possible Idea No idea how limited you might be to do it BUT
maybe having an option where it repeats weekly FOR example for streamers (not myself)
This Streamers stream starts on (STREAM DAY: TIME : OPTIONAL Daily-Weekly-Monthly-Yearly)
so everyone week it will say that date so (27th this week 4th next week) Both sharing the same time, of course, I might be asking the wrong person might be better to ask the person who codes the conversion not the person who does the website but asking is better than not at all
(I would do this myself but I don't know the language D:)
Sorry if I made any spelling mistakes and I am not explaining it properly will happily explain myself if I am confusing not the best at English.

cant remember how to add the Enhancement label D:

This feels to me like it's completely outside the scope of this project. You can provide some examples on what exactly you expect to see in the URL and what the app should do with that, but I'm really leaning towards not adding this kind of functionality.

To be fair, I gave it a lot more thinking and came to the conclusion that what I meant made no sense. I apologise for wasting your time.
The original concept was to save time by not having to update the message every week for the same day and to give those who use the same time every week on the same day a week later a better quality of life when it came to saving them time editing it every week with the same time but different day.
I realized it didn't make much sense why I was going to close the issue when I got home, especially because it wasn't something I believed was possible to do without obviously adding another formatting option to the ones that already existed.


Move repository create to RepositoryService

This completes the current refactoring of repository logic.
One small behaviour change is introduced: when the create logic is unable to insert the new repo into the DB, it will attempts to delete the webhook which it created. The previous logic would just leave the webhook in the customer's github repo.
Summary
Provide a brief overview of the changes and the issue being addressed.
Explain the rationale and any background necessary for understanding the changes.
List dependencies required by this change, if any.
Fixes #(related issue)
Change Type
Mark the type of change your PR introduces:

[ ] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[x] Refactoring or test improvements (no bug fixes or new functionality)

Testing
Outline how the changes were tested, including steps to reproduce and any relevant configurations.
Attach screenshots if helpful.
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[x] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[x] Included tests that validate the fix or feature.
[x] Checked that related changes are merged.

Have tested these changes locally.

coverage: 40.833% (+0.3%) from 40.579%
when pulling 4d27a741c3d6007d80a82ecbd4fbe7ca4bf4eb42 on repo-service-create-methods
into 9e9fb2d9a1d90cb7ff7094bbf996508d12b77353 on main.

@evankanderson Thanks for the feedback. I will incorporate your suggestions into a follow up PR.


Popstarter is not working

I had to change the makefile of elfldr to get it to compile with the current ps2sdk, see 68e584ad1008f67801c4ce3137a6840ebc639d86.
EDIT: Seems like it causes trouble: Starting ELF applications works, but Popstarter does not. When trying to start a PS1 game, popstarter does not start but the screen gets black.
Elfldr got removed in official OPL (https://github.com/ps2homebrew/Open-PS2-Loader/pull/564/commits/706cd5e28b977b2363637ec55c98b85036636604).
TODO: Try to get popstarter started the same way as they do with elfs.

elmsupport.c seems to be a modified appsupport.c
compare both files and do changes done in appsupport.c also in elmsupport.c -> all if them, until elfldr removal!
At first try to remove elfldr from JayJay's old-but-working OPL, to see when it breaks. Probably need an old ps2sdk for that.

https://github.com/ps2dev/ps2sdk/commits/master/ee/elf-loader

Jay-Jay-OPL was not updated for some time. PS2SDK evolved during that time, so to be able to compile Jay-Jay-OPL with the current PS2SDK some changes are required.
The differences between APPS page ("appsupport") and PS1 page ("elmsupport") are quite small.
In fact elmsupport seems to be based on appsupport. Changes that were done in appsupport got even ported to elmsupport.
I was not aware of https://github.com/YAGAMI55/OPL-Daily-Builds
There someone seems to manually integrate all changes into OPL-DB, that were done in OPL since JayJay stopped updating it. I did basically the same, but with git merge.
The biggest thing that happened in OPL since JayJay stopped updating OPL-DB:
elfldr, the library that starts binaries like uLaunchElf, emulators or, here, popstarter, got replaced.
Formerly a bundled library was used, and patched for OPL-DB's popstarter loading.
elfldr got integrated into PS2SDK, removed from OPL, and OPL uses now the elfldr fom PS2SDK.
PS2SDK's elfldr seems to contain many (if not all) patches from OPL-DB, so very likely it can be used to start popstarter. Somehow.
The current PS2SDK no longer compiles the old, patched elfldr library from OPL-DB, so it has to either be fixed, or better, replaced.
Though I'm not sure that elfldr is the culprit for popstarter no longer working, it seems very likely. Maybe also other things must get updated, but that should be trivial.
I'm no programmer, and barely can read C code. So I have difficulties in understanding what happens in OPL-DB, and I do not know how to debug that stuff.

No, OPL-DBs elfldr supports loading ELFs from memory. It seems like PS2SDK's does not.
So it has to be kept.

Can you try this? https://github.com/citronalco/OPL-Daily-Builds/suites/16631245610/artifacts/950253119

Popstarter is starting in PCSX2, but not on real hardware (black screen).


Getting a transaction by txid

How are we supposed to get a transaction by having the already hased txid? Most people have it from their wallets, so there's no reason to have the current api..
https://github.com/search?q=repo%3Amonero-ecosystem%2Fgo-monero-rpc-client+RequestGetTransferByTxID&type=code
Here's the example monero-rpc in golang.
This is my suggested fix
pub async fn get_transfer(
        &self,
        txid: &str,
        account_index: Option<u32>,
    ) -> anyhow::Result<Option<GotTransfer>> {
        #[derive(Deserialize)]
        struct Rsp {
            transfer: GotTransfer,
        }

        let params = empty()
            .chain(Some(("txid", txid.into())))
            .chain(account_index.map(|v| ("account_index", v.into())));

        let rsp = match self
            .inner
            .0
            .json_rpc_call("get_transfer_by_txid", RpcParams::map(params))
            .await?
        {
            Ok(v) => serde_json::from_value::<Rsp>(v)?,
            Err(e) => {
                if e.code == jsonrpc_core::ErrorCode::ServerError(-8) {
                    return Ok(None);
                } else {
                    return Err(e.into());
                }
            }
        };

        Ok(Some(rsp.transfer))
    }

@vorot93 @h4sh3d

The transaction ID is the hash and CryptoNoteHash is just a struct holding a hash.
CryptoNoteHash aka Hash in monero-rs has methods to create it from a str


Chat input field text looks garbled if using a diferent input method other than English or Japanese

With Direct Input enabled, It looks like if you try to type with a different input method other than english (for example spanish) the chat text field in-game turns into a lot of gibberish.
the solution is to use always an english text input so you can actually type in-game.

This one was also another false report from another player, closing it as well


Fix path slash issue in Windows

Fix https://github.com/aklinker1/vite-plugin-web-extension/issues/74

Thanks for the fix! Can we use Vite's normalizePath instead of replacing the slashes manually?
import { normalizePath } from 'vite';

normalizePath(path.relative(paths.rootDir, file))

Hmm, I tried normalizePath out and that doesn't actually work in all cases. I added some unit tests and refactored a bit.


bug(Tabs) : Overflowing tabs on space limitation

I have more then 5 tabs on single page of my project. When I switched on tablet mode, the tabs making overflow out of screen. I also checked on our github code and documentation site and I found we have bug in our code. here is snapshot of bug.

I suggest we can make tabs scrollable horizontally when it overflows without showing scrollbar.
Angular: ^4.2.2
ng2-semantic-ui: ^0.9.3
Semantic UI: 2.2.2

Duplicate of #115, as this can be solved entirely using CSS it's out of the scope of this library and needs to be taken up with Semantic UI (issue exists here).
Alternatively, use a stackable tabs menu to make the tabs stack on overflow.

If this can be solved entirely using CSS, can someone please post how to do so?  This same issue has been opened by multiple people and there's clearly some guidance needed on how best to navigate around the challenge.  We (the non-CSS-experts) would very much appreciate it

@kuroshhashemi apologies for the lack of clarity here, essentially when I was saying it needs to be solved with CSS I was meaning that an issue should be opened on the Semantic UI repo as a feature request / bug report.
As for implementing it yourself, try adding an overflow-x: auto to the tab header menu, which should (I think) add scrolling support. Though bear in mind if it does work it won't look great on desktop as the scrollbar will appear in a potentially unsightly place.
I hope that's helped a bit - let me know if you have further questions 😄


Added info about tahsin

Please fix your changes so that the CI checks pass on https://github.com/AY2324S2-CS2103T-W08-3/tp/actions/runs/8271627004/job/22631821803?pr=58, thank you!

@wilsonwid can you help me merge now?


Install SlicerRadiomics From 3D Slicer on MAC 10.15.5

Hi! I want to use the SlicerRadiomics From 3D Slicer but i can't find the version of MAC.I have tried the methods with source code but failed.Can you provide a install-archive for me？ So I can install from file.THANKS!!!

No, there is no install-archive we can provide. Please monitor this thread for updates on the issue: https://discourse.slicer.org/t/slicer-radiomics-error/14279/4.

macOS extension for the latest stable Slicer release (4.11.20200930) has been re-uploaded.
Please try to uninstall and re-install the extension.

@jcfr OH! THANKS BRO !!!!!!


[flaky ci][test_id:1368]Upload tests should succeed given a valid token

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind enhancement

What happened:
[rfe_id:138][crit:high][vendor:cnv-qe@redhat.com][level:component]Upload tests should [test_id:1368]succeed given a valid token
/go/src/kubevirt.io/containerized-data-importer/vendor/github.com/onsi/ginkgo/extensions/table/table_entry.go:43 Unexpected error:     <*errors.errorString | 0xc001a6c000>: {         s: "Unexpected return value 502 expected 200, Response: {}",     }     Unexpected return value 502 expected 200, Response: {} occurred /go/src/kubevirt.io/containerized-data-importer/tests/upload_test.go:94
Failing job- https://prow.apps.ovirt.org/view/gcs/kubevirt-prow/pr-logs/pull/kubevirt_containerized-data-importer/1252/pull-containerized-data-importer-e2e-k8s-1.17-ceph/1275795973028712449
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:

KubeVirt version (use virtctl version):
Kubernetes version (use kubectl version):
VM or VMI specifications:
Cloud provider or hardware configuration:
OS (e.g. from /etc/os-release):
Kernel (e.g. uname -a):
Install tools:
Others:

/triage build-officer

Duplicate


dart2js in latest dev release breaks Observatory (and therefore Fuchsia)

(Currently this is 2.0.0-dev.22.0)
./tools/download_latest_dev_sdk.py
rm -rf out/ReleaseX64/
./tools/build.py -mrelease runtime

...
Building observatory...
[Info from Dart2JS]:
Compiling observatory|web/main.dart...
[Error from Dart2JS on observatory|web/main.dart]:
web/packages/observatory/src/elements/function_view.dart:61:5:
Expected an identifier, but got 'Function'.
  M.Function _function;
    ^^^^^^^^
[Error from Dart2JS on observatory|web/main.dart]:
web/packages/observatory/src/elements/isolate_view.dart:68:5:
Expected an identifier, but got 'Function'.
  M.Function _function;
    ^^^^^^^^

@whesse @sigmundch

@rmacnak-google I'm curious, why is this not showing up in the bots? Doesn't observatory get built on our bots on every commit?

The version of the pre-build SDK used by dart-lang/sdk is pinned by tools/sdks/$os/dart-sdk.tar.gz.sha1. Fuchsia was using latest as the version. We've now pinned Fuchsia to 2.0.0-dev.21.0.

I'm confused why the suite "observatory_ui" still seems to be passing on the chrome bots though.

You can see which configurations are running the unit tests by checking the
test matrix.  I'll try and get a list to you. Maybe the unit tests are
still working. What is broken, exactly?  The solution will be to fix it and
release tomorrow.
On Feb 8, 2018 22:00, "Ryan Macnak"<EMAIL_ADDRESS>wrote:

I'm confused why the suite "observatory_ui" still seems to be passing on
the chrome bots though.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/32099#issuecomment-364246810,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AErap1CRcaMAlYUJDZRBohUzZvEs87eYks5tS2B-gaJpZM4R-4nO
.

I bisected the issue and it appears this was caused by this recent FE change: b2c5415db90f1262d0cbec918b3d57543045bb5a.
@danrubel - could you take a look?
Here is how to reproduce the error:
  > cd runtime/observatory/
  > pub get
  > cd ../../
  > ./sdk/bin/dart2js runtime/observatory/web/main.dart

You'll notice that the compile step is successful on the commit above b2c5415db90f1262d0cbec918b3d57543045bb5a.

Working on a fix for this... https://dart-review.googlesource.com/c/sdk/+/40320

This has landed. Please confirm that the issue is fixed.

confirmed! :)

Fix is in SDK version 2.0.0-dev.23.0.
That roll includes all commits up to a0795f185052bc927f5564470dd156a0a2d4bf1c at 19:30 UTC Feb 9 2017, including 87a395bd0986cee3261e780e9522bc9fc8ee872c.


CTRL-dragging nodes to create onready variables does not work if CTRL key is pressed before dragging

Godot version
4.0-stable
System information
Windows 10, Forward+, Intel HD 620
Issue description
CTRL-dragging nodes into the code editor is a really useful shortcut for creating onready variables, which in turn leads to cleaner, more maintainable code.
However, when using the CTRL-drag to create an onready var for a node, the CTRL key needs to be pressed after starting the mouse drag. It does not work if the CTRL key is held before pressing the mouse button. If CTRL is held before the drag, nothing happens.
This behavior is not intuitive and not consistent with other applications.
Steps to reproduce
Hold CTRL and try to drag a node into the script window. The drag does not work.
Minimal reproduction project
N/A

This happens on MacOS as well -- at least it doesn't on my Apple Silicon iMac. I will test my Apple Silicon MBP when I am at it again.

Same here, using Godot 4.2.1, on MacOS with Apple Silicon chip -- After initiating the drag, you can then press and hold the CMD key to get the expected auto-generated @onready var animation_player = $AnimationPlayer behavior

Same behaviour here, but on Linux, Ubuntu 22.04.3 LTS, Godot Engine v4.2.1

In my M1 Macbook doesn't matter hold the CTRL before or after drag, either way doesn't work.


Add loki manifests to observatorium

This PR adds basic support to deploy Loki as part of the observatorium. It is inspired by Grafana's production manifest but adapted to the observatorium configuration. It uses per default the boltdb_shipper  feature on minio to minimize operational cost.
The PR is work in progress. Missing pieces:

[x] Add support to override loki's config and overrides per environment
[x] Add configuration options for resources and replicas per component and environment
[x] Add service monitors for the distributor and ingester components
[x] Add boltdb_shipper configuration to write index on minio.
[x] Add withMemberlist for ring configuration based on cortex gossip support
[x] Add withEtcd for a default ring configuration based on etcd deployment
[x] Add with{Chunk,IndexQuery,IndexWrite,Results}Cache cache support based on memcached
[x] Add Loki E2E tests based on observatorium/up

Depends on: observatorium/observatorium#47, #289, observatorium/up#18

cc @squat @metalmatze  (:

This is failing until we can fix CI by:

decreasing replica counts so all the pods fit (temporary fix)
deploy on the LLC using the new namespace-provisioner

we are working on getting 2 working this week to unblock this PR :)

I'm very satisfied with this :) Let's get this merged and we can follow up in the future in smaller PRs


randomname.de down

randomname.de API is down for several days now. I created a second author script in the authors module that parses the names from offline files. See #1

Is back online. Next issue arises that names are not really equal, see #15


Change to no-new-user version of pass-ember

To test, do docker-compose up and verify that you can no longer enter an email/name of a person not in the system.

I think we will have a fix for this before it's necessary to merge this... closing for now to avoid confusion.


fix error message for unable to open download file

Wrong error message had me chasing down the wrong path when my download wasn't working!

This change is

Out of curiosity, what about "destination file" was confusing or led you down the wrong path? Also, I think you should change the other instances for consistency.

Thanks for taking the time to file a PR!  Ugh, I am sorry to hear the message was confusing. What are your thoughts on this other fix I prepared: #2193, do you think that would have been good enough?  Any thoughts on how to make this message and similar ones better?

Closing this because #2193 took care of it.  @nickolasrossi please let us know if you think the changes on #2193 can be better.