This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "env-inl.h" | |
| #include "node_builtins.h" | |
| #include "node_external_reference.h" | |
| #include "node_internals.h" | |
| namespace node { | |
| namespace builtins { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "slices" | |
| "testing" | |
| ) | |
| var ok bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas as pd | |
| import plot_likert | |
| q1 = "pertinence" | |
| q2 = "sentiment de\ncompétence" | |
| q3 = "expérience" | |
| myscale = ['Fortement en désaccord', 'Plutôt en désaccord',"Plutôt d'accord", "Fortement d'accord"] | |
| precomputed_counts = pd.DataFrame( | |
| {myscale[0]: {q1: 1, q2: 1, q3:1}, | |
| myscale[1]: {q1: 2, q2: 1, q3:1}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <limits> | |
| #include "fuzzer/FuzzedDataProvider.h" // see https://raw.githubusercontent.com/llvm/llvm-project/main/compiler-rt/include/fuzzer/FuzzedDataProvider.h | |
| #include <memory> | |
| #include <string> | |
| // enables if needed | |
| //#define ADA_LOGGING 1 | |
| #define ADA_DEVELOPMENT_CHECKS 1 | |
| #include "ada.cpp" | |
| #include "ada.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <algorithm> | |
| #include <chrono> | |
| #include <cstdint> | |
| #include <iostream> | |
| // The assembly is potentially unsafe because we read from the stack | |
| // without checking. However, it appears to be good enough for our | |
| // benchmarking purposes under LLVM. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // on success: returns a non-negative integer indicating the size of the | |
| // binary produced, it most be no larger than 2147483647 bytes. | |
| // In case of error, a negativ value is returned: | |
| // * -2 indicates an invalid character, | |
| // * -1 indicates a single character remained, | |
| // * -3 indicates a possible overflow (i.e., more than 2 GB output). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo "base64 decode" | |
| node benchmark/buffers/buffer-base64-decode.js | |
| ./out/Release/node benchmark/buffers/buffer-base64-decode.js | |
| #echo "base64 encode" | |
| #node benchmark/buffers/buffer-base64-encode.js | |
| #./out/Release/node benchmark/buffers/buffer-base64-encode.js | |
| echo "base64url decode" | |
| node benchmark/buffers/buffer-base64url-decode.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public unsafe static byte* GetPointerToFirstInvalidByteSse(byte* pInputBuffer, int inputLength) | |
| { | |
| int processedLength = 0; | |
| if (pInputBuffer == null || inputLength <= 0) | |
| { | |
| return pInputBuffer; | |
| } | |
| if (inputLength > 128) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Vector128<byte> shuf1 = Vector128.Create(TOO_LONG, TOO_LONG, TOO_LONG, TOO_LONG, | |
| TOO_LONG, TOO_LONG, TOO_LONG, TOO_LONG, | |
| TWO_CONTS, TWO_CONTS, TWO_CONTS, TWO_CONTS, | |
| TOO_SHORT | OVERLONG_2, | |
| TOO_SHORT, | |
| TOO_SHORT | OVERLONG_3 | SURROGATE, | |
| TOO_SHORT | TOO_LARGE | TOO_LARGE_1000 | OVERLONG_4); | |
| Vector128<byte> shuf2 = Vector128.Create(CARRY | OVERLONG_3 | OVERLONG_2 | OVERLONG_4, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // See https://twitter.com/pdimov2/status/1462802234761170949 | |
| #include <array> | |
| #include <string_view> | |
| #include <string> | |
| #include <iostream> | |
| // For now experimental/reflect is not available generally, but | |
| // it should be standardized for C++ 26 ???? Still, we have | |
| // access to it with the very latest llvm. | |
| #include <experimental/reflect> |