CoolFace
Apppublic

CompileError/WebCoderBench

sourceHugging Faceapache-2.0updated 5mo agoView on Hugging Face
0likes
formatting.py28 linesDownload Raw Back to display
1def model_hyperlink(link, model_name):2    return f'<a target="_blank" href="{link}" style="color: var(--link-text-color); text-decoration: underline;text-decoration-style: dotted;">{model_name}</a>'3 4 5def make_clickable_model(model_name):6    link = f"https://huggingface.co/{model_name}"7    return model_hyperlink(link, model_name)8 9 10def styled_error(error):11    return f"<p style='color: red; font-size: 20px; text-align: center;'>{error}</p>"12 13 14def styled_warning(warn):15    return f"<p style='color: orange; font-size: 20px; text-align: center;'>{warn}</p>"16 17 18def styled_message(message):19    return f"<p style='color: green; font-size: 20px; text-align: center;'>{message}</p>"20 21 22def has_no_nan_values(df, columns):23    return df[columns].notna().all(axis=1)24 25 26def has_nan_values(df, columns):27    return df[columns].isna().any(axis=1)28