hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8f9885bbeab0b33acc49b50e04af084143c267e1 | 5,572 | cxx | C++ | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 15 | 2020-04-22T15:18:28.000Z | 2022-03-24T07:48:28.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 25 | 2020-04-18T18:55:50.000Z | 2021-05-30T21:26:39.000Z | painty/renderer/src/TextureBrushDictionary.cxx | lindemeier/painty | 792cac6655b3707805ffc68d902f0e675a7770b8 | [
"MIT"
] | 2 | 2020-09-16T05:55:54.000Z | 2021-01-09T12:09:43.000Z | /**
* @file TextureBrushDictionary.cxx
* @author Thomas Lindemeier
* @brief
* @date 2020-09-29
*
*/
#include "painty/renderer/TextureBrushDictionary.hxx"
#include <filesystem>
#include <fstream>
#include <iostream>
#include <map>
#include <random>
// #include "opencv2/highgui/highgui.hpp"
#inclu... | 30.448087 | 80 | 0.611271 |
8f9c2b9a39f8f684797d7cfbfa8c3831a742d24d | 3,477 | cpp | C++ | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 10 | 2018-01-16T16:18:42.000Z | 2019-02-19T19:51:45.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 136 | 2018-05-10T08:47:58.000Z | 2018-06-15T09:38:10.000Z | Source/ComponentProgressBar.cpp | Project-3-UPC-DDV-BCN/Project3 | 3fb345ce49485ccbc7d03fb320623df6114b210c | [
"MIT"
] | 1 | 2018-06-04T17:18:40.000Z | 2018-06-04T17:18:40.000Z | #include "ComponentProgressBar.h"
#include "GameObject.h"
#include "ComponentCanvas.h"
#include "ComponentRectTransform.h"
#include "Texture.h"
#include "Application.h"
#include "ModuleResources.h"
ComponentProgressBar::ComponentProgressBar(GameObject * attached_gameobject)
{
SetActive(true);
SetName("ProgressBar");... | 22.875 | 92 | 0.757262 |
8f9d7d06b8752e0af1ccf1127dcdcc3e33712842 | 10,043 | cc | C++ | streetlearn/engine/pano_projection.cc | turningpoint1988/streetlearn | dd348cb811064582a77abe855b9ac15799e4a1ef | [
"Apache-2.0"
] | 256 | 2019-01-09T18:00:45.000Z | 2022-03-29T12:56:46.000Z | streetlearn/engine/pano_projection.cc | windstrip/DeepMind-StreetLearn | 35ffa07e053278b4dd88a2a9da9c72f23d1fff58 | [
"Apache-2.0"
] | 11 | 2019-02-05T20:12:18.000Z | 2021-05-24T11:20:13.000Z | streetlearn/engine/pano_projection.cc | windstrip/DeepMind-StreetLearn | 35ffa07e053278b4dd88a2a9da9c72f23d1fff58 | [
"Apache-2.0"
] | 60 | 2019-01-09T18:13:14.000Z | 2022-02-24T07:39:47.000Z | // Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writ... | 37.898113 | 80 | 0.666534 |
8f9dbb4b41187c40fce56bcdbaefce1a97b42079 | 3,944 | cpp | C++ | bangtal1.cpp | jingwangjjang/Bangtal_week2 | e64bd3e44cfb3d727eb5de964335d361ae25362f | [
"MIT"
] | null | null | null | bangtal1.cpp | jingwangjjang/Bangtal_week2 | e64bd3e44cfb3d727eb5de964335d361ae25362f | [
"MIT"
] | null | null | null | bangtal1.cpp | jingwangjjang/Bangtal_week2 | e64bd3e44cfb3d727eb5de964335d361ae25362f | [
"MIT"
] | null | null | null | #include <bangtal.h>
using namespace bangtal;
int main() {
SoundPtr sound = Sound::create("Sound/bgm.mp3");
sound->play();
ScenePtr scene1 = Scene::create("첫번째 방", "RoomEscape/배경-1.png");
ScenePtr scene2 = Scene::create("두번째 방", "RoomEscape/배경-2.png");
auto crush = Object::create("RoomEscape/균열1... | 32.065041 | 96 | 0.573529 |
8f9fa97caf1fc74fb3694c47316be88e0157ee4c | 676 | cpp | C++ | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | null | null | null | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | null | null | null | learncpp.com/9.14.Q1/main.cpp | kaubu/cpp-projects | 3f2b1de662c275e1aae7ccced669412b628c3bfb | [
"MIT"
] | 1 | 2021-04-09T13:45:49.000Z | 2021-04-09T13:45:49.000Z | #include <algorithm>
#include <iostream>
#include <string>
int main()
{
std::cout << "How many names do you wish to enter? ";
std::size_t namesAmount{};
std::cin >> namesAmount;
std::string *namesArray{ new std::string[namesAmount]{} };
for (size_t i{ 0 }; i <= namesAmount; ++i)
{
std::cout << "Enter name #"... | 20.484848 | 62 | 0.58432 |
8fa2445ef2545e28995155af0ae4b2b25ed6097f | 597 | cc | C++ | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 3 | 2017-04-24T07:00:59.000Z | 2020-04-13T04:53:06.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2017-01-10T04:23:55.000Z | 2017-01-10T04:23:55.000Z | crypto/internal.cc | chronos-tachyon/mojo | 8d268932dd927a24a2b5de167d63869484e1433a | [
"MIT"
] | 1 | 2020-04-13T04:53:07.000Z | 2020-04-13T04:53:07.000Z | // Copyright © 2017 by Donald King <chronos@chronos-tachyon.net>
// Available under the MIT License. See LICENSE for details.
#include "crypto/internal.h"
namespace crypto {
namespace internal {
std::string canonical_name(base::StringPiece in) {
std::string out;
out.reserve(in.size());
for (char ch : in) {
... | 22.961538 | 64 | 0.579564 |
8fa4f728c6b428132adeb9e748c6380f25761b13 | 5,642 | cpp | C++ | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/ss/usermodel/DataConsolidateFunction.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/ss/usermodel/DataConsolidateFunction.java
#include <org/apache/poi/ss/usermodel/DataConsolidateFunction.hpp>
#include <java/io/Serializable.hpp>
#include <java/lang/ArrayStoreException.hpp>
#include <java/lang/Comparable.hpp>
#include <java/lang/Enum.hpp>
#include <java/lang/... | 41.485294 | 197 | 0.706487 |
8fa5ecfa889230b20409cec510e61b6d1c6e17f7 | 3,353 | cpp | C++ | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvAV/TIFFFunc.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2020 Darby Johnston
// All rights reserved.
#include <djvAV/TIFFFunc.h>
#include <array>
using namespace djv::Core;
namespace djv
{
namespace AV
{
namespace IO
{
namespace TIFF
{
void readPalett... | 31.933333 | 110 | 0.421712 |
8fa68f10b64065a1e43f7291036da4b7943b8745 | 3,005 | cpp | C++ | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | 1 | 2018-08-26T11:37:31.000Z | 2018-08-26T11:37:31.000Z | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | IotHttpServer/tests/TestUriParser.cpp | saarbastler/IotHttpServer | f55896950510e7a6403d19ce2f425adae4761b2d | [
"BSD-2-Clause"
] | null | null | null | #ifdef IOT_HTTP_SERVER_TESTS
#include <iostream>
#include "../UriParser.h"
//#define BOOST_TEST_MODULE UriParserTest
#include <boost/test/unit_test.hpp>
using namespace saba::web;
BOOST_AUTO_TEST_CASE(UriParserTest_path1)
{
UriParser uriParser("/");
BOOST_CHECK_EQUAL(uriParser.getPath(), "/");
... | 28.349057 | 85 | 0.692512 |
8fa829cf09caf4185924822def95ead5d454d5d3 | 5,300 | cpp | C++ | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 272 | 2019-06-27T12:21:49.000Z | 2022-03-23T07:18:33.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 9 | 2019-08-11T13:07:01.000Z | 2022-01-26T12:30:24.000Z | common/Util.cpp | enjiushi/VulkanLearn | 29fb429a3fb526f8de7406404a983685a7e87117 | [
"MIT"
] | 16 | 2019-09-29T01:41:02.000Z | 2022-03-29T15:51:35.000Z | #include "Util.h"
#include "Enums.h"
#include "../common/Macros.h"
Axis CubeFaceAxisMapping[(uint32_t)CubeFace::COUNT][(uint32_t)NormCoordAxis::COUNT] =
{
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Y, Axis::Z, Axis::X },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::Z, Axis::X, Axis::Y },
{ Axis::X, Axis::Y, Axis::Z },
{ A... | 28.648649 | 148 | 0.712264 |
8fa9b96a70ccdf8a7096913e6a93b7d357d817ef | 8,987 | cpp | C++ | src/main.cpp | otakot/CarND-PID-Control | 692e3fd482bb711bfac78684b2e2bd04672b6913 | [
"MIT"
] | null | null | null | src/main.cpp | otakot/CarND-PID-Control | 692e3fd482bb711bfac78684b2e2bd04672b6913 | [
"MIT"
] | null | null | null | src/main.cpp | otakot/CarND-PID-Control | 692e3fd482bb711bfac78684b2e2bd04672b6913 | [
"MIT"
] | null | null | null | #include <uWS/uWS.h>
#include <iostream>
#include "json.hpp"
#include "PID.h"
#include <math.h>
#include <limits>
// for convenience
using json = nlohmann::json;
// best tau values (manually selected, based on comfort feeling)
double K_P = 0.12;
double K_I = 0.0015;
double K_D = 5.0;
// calibrated tau values, based ... | 35.804781 | 172 | 0.592745 |
8faccddc8c15d5eca8f759aee1b8a865cb6aade4 | 14,212 | inl | C++ | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | include/ion/math/matrix.inl | dvdbrink/ion | a5fe2aba7927b7a90e913cbf72325a04172fc494 | [
"MIT"
] | null | null | null | template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, R, C>::Matrix()
{
for (unsigned int i = 0; i < R; i++)
{
for (unsigned int j = 0; j < C; j++)
{
m[i][j] = (T)((i == j) ? 1 : 0);
}
}
}
template<typename T, std::size_t R, std::size_t C>
inline Matrix<T, ... | 32.822171 | 188 | 0.485787 |
8fb27bdb97fb335445a8ee19d6b85273db44cc1a | 150 | cpp | C++ | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | examples/llvm-hello_world/target/branching2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | int main(int argc, char **argv) {
int a = 10;
int b = 100;
if (argc - 1) {
a = 20;
} else {
a = 30;
b = 300;
}
return a + b;
} | 13.636364 | 33 | 0.426667 |
8fb84ea0e291d10742fddeab683b67fcb9cbaef5 | 8,286 | cpp | C++ | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 2 | 2020-07-12T21:06:23.000Z | 2021-02-17T11:39:37.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | 4 | 2021-02-17T11:38:45.000Z | 2021-03-20T20:27:49.000Z | SurfaceCtrl/MagicCamera.cpp | Xemuth/SurfaceCtrl | 07167935a0950c22f06fdf2ba2bff7bb3f2dee05 | [
"BSD-2-Clause"
] | null | null | null | #include "MagicCamera.h"
namespace Upp{
glm::mat4 MagicCamera::GetProjectionMatrix()const noexcept{
if(type == CameraType::PERSPECTIVE){
return glm::perspective(glm::radians(GetFOV()),float( ScreenSize.cx / ScreenSize.cy),GetDrawDistanceMin(),GetDrawDisanceMax());//We calculate Projection here since multiple camera ... | 35.715517 | 222 | 0.678132 |
8fba64c948f55005b98a0ad4969760169ec7934f | 3,633 | cpp | C++ | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | null | null | null | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-08-08T08:26:04.000Z | 2020-05-13T13:33:39.000Z | src/common/mathematica_graphics_test.cpp | wkrzemien/j-pet-mlem | 4ed746f3fe79890e4141158cd49d1869938105de | [
"Apache-2.0"
] | 5 | 2018-06-04T21:04:29.000Z | 2021-07-03T14:19:39.000Z | #include <sstream>
#include "util/test.h"
#include "mathematica_graphics.h"
#include "2d/barrel/square_detector.h"
#include "2d/barrel/scanner_builder.h"
#include "2d/geometry/line_segment.h"
#include "2d/geometry/pixel_grid.h"
#include "2d/barrel/options.h"
#include "common/types.h"
using LOR = PET2D::Barrel::LOR... | 28.382813 | 80 | 0.646573 |
2631c73522cd8cea585b3cb74ac9e79fc190587e | 8,309 | cpp | C++ | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | generator/Patch.cpp | jessicalemos/Solar-System | 679b757b18bc5fe4d3c757de271b4639c8e1500d | [
"MIT"
] | null | null | null | #include "headers/Patch.h"
Patch::Patch(){
}
Patch::Patch(vector<Point> p){
controlPoints = p;
}
void Patch::multMatrixVector(float *m, float *v, float *res){
for (int j = 0; j < 4; ++j){
res[j] = 0;
for (int k = 0; k < 4; ++k)
res[j] += v[k] * m[j * 4 + k];
}
}
Patch::Patch(int tess... | 32.081081 | 121 | 0.479841 |
26336d63dd840996ce7ce02b9a6a9e6f278e4d1a | 63,888 | cpp | C++ | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-10-27T15:18:28.000Z | 2022-02-09T11:13:07.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 4 | 2019-12-09T11:49:11.000Z | 2020-07-30T17:34:45.000Z | src/lib/foundations/globals/numerics.cpp | abetten/orbiter | 5994d0868a26c37676d6aadfc66a1f1bcb715c4b | [
"RSA-MD"
] | 15 | 2016-06-10T20:05:30.000Z | 2020-12-18T04:59:19.000Z | // numerics.cpp
//
// Anton Betten
//
// started: February 11, 2018
#include "foundations.h"
using namespace std;
#define EPSILON 0.01
namespace orbiter {
namespace foundations {
numerics::numerics()
{
}
numerics::~numerics()
{
}
void numerics::vec_print(double *a, int len)
{
int i;
cout << "(";
for... | 19.633682 | 171 | 0.519487 |
263370c98e163baafdad40ec75d1366c1c1d7de5 | 259 | cpp | C++ | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | Cpp_Program/File Handling/writelinebyine.cpp | ajaypp123/DataStructure_Competative_Programing | 6d2cbac3498b31655de50cf4dc3f564d52608780 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
using namespace std;
int main() {
fstream file;
file.open("file.txt");
string line;
while(line != "end") {
getline(cin, line);
file << line << endl;
}
file.close();
return 0;
} | 16.1875 | 29 | 0.552124 |
26352650d1252dd1882ab8b5ba4dd7d98247b782 | 861 | cpp | C++ | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 3 | 2018-12-24T19:35:52.000Z | 2022-02-04T14:45:59.000Z | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | null | null | null | SelfProject/DrawAndDrop/mainwindow.cpp | xiaohaijin/Qt | 54d961c6a8123d8e4daf405b7996aba4be9ab7ed | [
"MIT"
] | 1 | 2019-05-09T02:42:40.000Z | 2019-05-09T02:42:40.000Z | #include <QDragEnterEvent>
#include <QDropEvent>
#include <QMimeData>
#include <QTextEdit>
#include "mainwindow.h"
MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent) {
textEdit = new QTextEdit;
setCentralWidget(textEdit);
textEdit->setAcceptDrops(false);
setAcceptDrops(true);
setWindowTitle(tr(... | 20.5 | 69 | 0.681765 |
26355530e1518b72c5f6e917ab4dd61156635581 | 53,079 | cc | C++ | chrome/browser/extensions/process_manager_browsertest.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | chrome/browser/extensions/process_manager_browsertest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | chrome/browser/extensions/process_manager_browsertest.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/callback.h"
#include "base/macros.h"
#include "base/path_service.h"
#include "ba... | 45.522298 | 80 | 0.715273 |
26362cf965b782026e910ea37ae72d445615cf61 | 227 | hpp | C++ | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | all.hpp | cslauritsen/MyThermostat | a0c888a75c1368c9949e1de8cfc6d75c1d8e735c | [
"Apache-2.0"
] | null | null | null | #include "MyThermostat.hpp"
#if defined(__APPLE__) || defined(__linux)
#include <fstream>
#include <iostream>
#include <ostream>
#endif
#if defined(__linux) || defined(ARDUINO)
#include <stdint.h>
#include <string.h>
#endif
| 16.214286 | 42 | 0.726872 |
26367fe60b048fc01d1f38111277b3133f7ce0ca | 1,541 | cpp | C++ | src/kudu/rest/test/Tests.cpp | khazarmammadli/kudu | ab574903430fafd0a536ee2e185b19e57ed9e39f | [
"Apache-2.0"
] | null | null | null | src/kudu/rest/test/Tests.cpp | khazarmammadli/kudu | ab574903430fafd0a536ee2e185b19e57ed9e39f | [
"Apache-2.0"
] | null | null | null | src/kudu/rest/test/Tests.cpp | khazarmammadli/kudu | ab574903430fafd0a536ee2e185b19e57ed9e39f | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 35.022727 | 123 | 0.726152 |
263699fa55fc119416ee683d5055f8412dd30d02 | 1,219 | hpp | C++ | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | D01/ex08/Human.hpp | amoinier/piscine-cpp | 43d4806d993eb712f49a32e54646d8c058a569ea | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Human.hpp :+: :+: :+: ... | 39.322581 | 80 | 0.279737 |
26392813434506c75d8fc68707a06bcadc556151 | 410 | hh | C++ | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/ShardedDatabase/V3/Test/UserSharded/Config/Mock/Base/NoPassword.hh | ssintzz/zynga-hacklang-framework | 9e165068f16f224edf2ee5bf5e25855714792d54 | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\ShardedDatabase\V3\Test\UserSharded\Config\Mock\Base;
use
Zynga\Framework\ShardedDatabase\V3\Config\Mock\Base as ConfigBase
;
use Zynga\Framework\ShardedDatabase\V3\ConnectionDetails;
class NoPassword extends ConfigBase {
public function shardsInit(): bool {
$this->ad... | 25.625 | 79 | 0.760976 |
2639ce8bd22d52aa9a2ac8021a704d0eae2e64ee | 3,758 | cc | C++ | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 10 | 2015-10-28T18:54:41.000Z | 2021-12-29T16:48:31.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 95 | 2020-02-27T22:34:02.000Z | 2022-03-06T19:45:24.000Z | frontend/lex/numbers.cc | asoffer/icarus | 5c9af79d1a39e14d95da1adacbdd7392908eedc5 | [
"Apache-2.0"
] | 2 | 2019-02-01T23:16:04.000Z | 2020-02-27T16:06:02.000Z | #include "frontend/lex/numbers.h"
#include <string>
#include <string_view>
#include <variant>
namespace frontend {
namespace {
template <int Base>
int64_t DigitInBase(char c) {
if constexpr (Base == 10) {
return ('0' <= c and c <= '9') ? (c - '0') : -1;
} else if constexpr (Base == 2) {
return ((c | 1) ==... | 29.825397 | 76 | 0.598457 |
264181320de5d2983bce174e8145ccfaa5602aef | 3,961 | cpp | C++ | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 24 | 2020-07-06T17:11:30.000Z | 2022-01-01T07:39:12.000Z | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | null | null | null | poprithms/tests/tests/schedule/shift/graph_hash.cpp | graphcore/poprithms | 9975a6a343891e3c5f8968a9507261c1185029ed | [
"MIT"
] | 2 | 2020-07-15T12:33:22.000Z | 2021-07-27T06:07:16.000Z | // Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include <iostream>
#include <string>
#include <poprithms/error/error.hpp>
#include <poprithms/schedule/shift/graph.hpp>
namespace {
using namespace poprithms::schedule::shift;
void test0() {
Graph g0;
/*
*
* A B (allocs)
* : :
... | 23.718563 | 78 | 0.537743 |
2642b315fe73e455b2c5d384f3fc2e63eff319e5 | 26,959 | cc | C++ | tensorstore/driver/neuroglancer_precomputed/driver.cc | google/tensorstore | 8df16a67553debaec098698ceaa5404eaf79634a | [
"BSD-2-Clause"
] | 106 | 2020-04-02T20:00:18.000Z | 2022-03-23T20:27:31.000Z | tensorstore/driver/neuroglancer_precomputed/driver.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 28 | 2020-04-12T02:04:47.000Z | 2022-03-23T20:27:03.000Z | tensorstore/driver/neuroglancer_precomputed/driver.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 18 | 2020-04-08T06:41:30.000Z | 2022-02-18T03:05:49.000Z | // Copyright 2020 The TensorStore Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 41.221713 | 87 | 0.687451 |
2649aa1d585ddcda57f5cbb4c1ac6e2a042e75a9 | 4,575 | cpp | C++ | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | test/PHControlTest.cpp | IDzyre/TankController | 60ccdd6d4023be7a0e0155b508e8b067603bf8b2 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <ArduinoUnitTests.h>
#include <ci/ObservableDataStream.h>
#include "Devices/DateTime_TC.h"
#include "MainMenu.h"
#include "PHCalibrationMid.h"
#include "PHControl.h"
#include "TankControllerLib.h"
const uint16_t PIN = 49;
/**
* cycle the control through to a point of being off
*/
void... | 33.888889 | 112 | 0.74623 |
264e7319da810019e64f74b064a4d2b4949c2fd3 | 261 | cpp | C++ | test/test_get_memory_info.cpp | xcjusuih/Memtracker | 93db5fe1cfbdb3755b952c608d34cb5a12a702ef | [
"MIT"
] | null | null | null | test/test_get_memory_info.cpp | xcjusuih/Memtracker | 93db5fe1cfbdb3755b952c608d34cb5a12a702ef | [
"MIT"
] | null | null | null | test/test_get_memory_info.cpp | xcjusuih/Memtracker | 93db5fe1cfbdb3755b952c608d34cb5a12a702ef | [
"MIT"
] | 1 | 2021-04-30T11:45:36.000Z | 2021-04-30T11:45:36.000Z | #include <cstdio>
#include "process.hpp"
int main() {
memory* mem = get_memory_info();
printf("%u\t%u\t%u\t%u\t%u\n",
mem->memTotal,
mem->memFree,
mem->MemAvailable,
mem->Buffers,
mem->Cached);
delete(mem);
} | 20.076923 | 36 | 0.54023 |
2650d87f48eb1b74a9a280537059de5dc71df5cb | 38 | hpp | C++ | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_algorithm.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/algorithm.hpp>
| 19 | 37 | 0.789474 |
26514c2bffae327a7b38b275f04db707c695e211 | 8,401 | cc | C++ | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Editor/EditorMapInfo.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | #include "Editor/EditorMapInfo.h"
#include "Editor/EditScreen.h"
#include "Editor/EditSys.h"
#include "Editor/EditorDefines.h"
#include "Editor/EditorItems.h"
#include "Editor/EditorMercs.h"
#include "Editor/EditorTaskbarUtils.h"
#include "Editor/EditorTerrain.h" //for access to TerrainTileDrawMode
#include "Editor/E... | 35.150628 | 100 | 0.717296 |
26550220b122d5d69e5a93bdd574de699eb1315a | 5,812 | cc | C++ | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 37 | 2017-04-26T16:27:07.000Z | 2022-03-01T07:38:57.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 494 | 2016-09-14T02:31:13.000Z | 2022-03-13T18:57:05.000Z | src/operators/test/operator_mini1D.cc | fmyuan/amanzi | edb7b815ae6c22956c8519acb9d87b92a9915ed4 | [
"RSA-MD"
] | 43 | 2016-09-26T17:58:40.000Z | 2022-03-25T02:29:59.000Z | /*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: Konstantin Lipnikov (lipnikov@lanl.gov)
*/
#include <cstdlib... | 30.914894 | 98 | 0.582072 |
2657531345a1be7c95f5c8fdf80852b4c7419e44 | 190 | hpp | C++ | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 2 | 2019-02-17T02:55:38.000Z | 2019-04-19T04:57:39.000Z | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | null | null | null | include/crucible/PointLight.hpp | pianoman373/crucible | fa03ca471fef56cf2def029a14bcc6a467996dfa | [
"MIT"
] | 1 | 2018-12-03T22:39:44.000Z | 2018-12-03T22:39:44.000Z | #pragma once
#include <crucible/Math.hpp>
class PointLight {
public:
vec3 m_position;
vec3 m_color;
float m_radius;
PointLight(vec3 position, vec3 color, float radius);
}; | 15.833333 | 56 | 0.7 |
2657fae70315ea802aa34bdf029df3baf77cbe83 | 275 | cpp | C++ | programmers/source/2-3.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 7 | 2019-06-26T07:03:32.000Z | 2020-11-21T16:12:51.000Z | programmers/source/2-3.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | null | null | null | programmers/source/2-3.cpp | tdm1223/Algorithm | 994149afffa21a81e38b822afcfc01f677d9e430 | [
"MIT"
] | 9 | 2019-02-28T03:34:54.000Z | 2020-12-18T03:02:40.000Z | // JadenCase 문자열 만들기
// 2019.06.28
#include<string>
using namespace std;
string solution(string s)
{
s[0] = toupper(s[0]);
for (int i = 1; i<s.size(); i++)
{
if (s[i - 1] == ' ')
{
s[i] = toupper(s[i]);
}
else
{
s[i] = tolower(s[i]);
}
}
return s;
}
| 11.956522 | 33 | 0.501818 |
26592a5e44863f17480bc4cb343850030f328d0b | 3,361 | cpp | C++ | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 48 | 2019-01-06T02:17:44.000Z | 2021-09-28T15:10:30.000Z | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | urnenfeld/Urho3D-Project-Template | efd45e4edcffb232753010a3ee623d6cf9bc1c26 | [
"MIT"
] | 17 | 2019-01-22T17:48:58.000Z | 2021-04-04T17:52:56.000Z | app/src/main/cpp/UI/Scoreboard/ScoreboardWindow.cpp | ArnisLielturks/Urho3D-Project-Template | 998d12e2470ec8a43ec552a1c2182eecfed63ca1 | [
"MIT"
] | 18 | 2019-02-18T13:55:41.000Z | 2021-04-02T14:28:00.000Z | #include <Urho3D/UI/UI.h>
#include <Urho3D/Resource/ResourceCache.h>
#include <Urho3D/UI/Text.h>
#include <Urho3D/UI/Font.h>
#include "ScoreboardWindow.h"
#include "../../Player/PlayerEvents.h"
#include "../../Globals/GUIDefines.h"
ScoreboardWindow::ScoreboardWindow(Context* context) :
BaseWindow(context)
{
}
Sco... | 31.707547 | 115 | 0.670336 |
265e73379723ba9280c8780994d45196cc6eb362 | 3,376 | cpp | C++ | tests/functions.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 361 | 2015-01-06T20:12:35.000Z | 2022-03-29T01:58:49.000Z | tests/functions.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 30 | 2015-01-13T12:17:13.000Z | 2021-06-03T14:12:10.000Z | tests/functions.cpp | ulikoehler/aquila | d5e3bde3c8d07678a95f225b657a7bb23d0c4730 | [
"MIT"
] | 112 | 2015-01-14T12:01:00.000Z | 2022-03-29T06:42:00.000Z | #include "aquila/global.h"
#include "aquila/functions.h"
#include "UnitTest++/UnitTest++.h"
#include <vector>
SUITE(Functions)
{
const std::size_t SIZE = 3;
double arr1[SIZE] = {0, 1, 2};
std::vector<double> v1(arr1, arr1 + SIZE);
double arr2[SIZE] = {1, 2, 3};
std::vector<double> v2(arr2, arr2 + ... | 25.007407 | 87 | 0.582346 |
265eb7e3d7bb380c5091c946648d17cc17b2acd0 | 17,977 | cpp | C++ | trunk/suicore/src/System/Render/Skia/SkiaDrawContext.cpp | OhmPopy/MPFUI | eac88d66aeb88d342f16866a8d54858afe3b6909 | [
"MIT"
] | 59 | 2017-08-27T13:27:55.000Z | 2022-01-21T13:24:05.000Z | src/suicore/System/Render/Skia/SkiaDrawContext.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 5 | 2017-11-26T05:40:23.000Z | 2019-04-02T08:58:21.000Z | src/suicore/System/Render/Skia/SkiaDrawContext.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 49 | 2017-08-24T08:00:50.000Z | 2021-11-07T01:24:41.000Z |
#include "skiadrawing.h"
#include <System/Types/Const.h>
#include <System/Types/Structure.h>
#include <System/Graphics/SkiaPaint.h>
#include <System/Interop/System.h>
#include "SkTextOp.h"
#include <Skia/effects/SkGradientShader.h>
#include <Skia/core/SkTypeface.h>
namespace suic
{
SkiaDrawing::SkiaDrawing(Handle ... | 24.659808 | 120 | 0.600156 |
2660dee65773eb47d544cdbf61d9424c09bfb4e2 | 622 | cpp | C++ | demo.cpp | asgs/cache | d1d31eaa51e1433546f94080908a2596d98826f4 | [
"Unlicense"
] | null | null | null | demo.cpp | asgs/cache | d1d31eaa51e1433546f94080908a2596d98826f4 | [
"Unlicense"
] | null | null | null | demo.cpp | asgs/cache | d1d31eaa51e1433546f94080908a2596d98826f4 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <map>
#include <chrono>
#include <thread>
#include "cache.h"
#include "datetime_utils.h"
int main() {
SimpleCache<std::string, std::string> cache;
std::string value1 = "1";
std::string key1 = "a";
cache.put(key1, value1, current_time() + 3);
std::string value2 = "2";
std::string ke... | 23.037037 | 82 | 0.622186 |
2662f0342aea17a0c7cd36fc6c8edfda4fcaa9c2 | 2,445 | cpp | C++ | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | source/example.cpp | Nicola20/programmiersprachen-aufgabenblatt-3 | 3d213c3a5c46cfac04670bd9720334e9fd1fcf61 | [
"MIT"
] | null | null | null | #include "window.hpp"
#include "Circle.hpp"
//#include "Rectangle.hpp"
//#include "Vec2.hpp"
#include <GLFW/glfw3.h>
#include <utility>
#include <cmath>
#include <set>
#include <iostream>
#include <vector>
#include <string>
int main(int argc, char* argv[])
{
Window win{std::make_pair(800,800)};
std::cout<<"P... | 26.010638 | 110 | 0.577096 |
26671dd7edc3c49d10e07e9e2dbabdb863ebba71 | 637 | hpp | C++ | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/LolChatPlayerPreferences.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct LolChatPlayerPreferences {
std::string data;
std::string hash;
std::string type;
uint64_t modified;
};
inline void to_json(json& j, const LolChatPlayerPreferences& v) {
j["data"] = v.data;
j["hash"] = v.hash;
j["type"]... | 28.954545 | 69 | 0.599686 |
266a1f110a44dfe36bb5da7c8969135b31ac459b | 2,173 | cpp | C++ | src/certificate/ObjectIdentifier.cpp | LabSEC/libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-26T16:40:59.000Z | 2022-02-22T19:52:55.000Z | src/certificate/ObjectIdentifier.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 14 | 2015-09-01T00:39:22.000Z | 2018-12-17T16:24:28.000Z | src/certificate/ObjectIdentifier.cpp | LabSEC/Libcryptosec | e53030ec32b52b6abeaa973a9f0bfba0eb2c2440 | [
"BSD-3-Clause"
] | 22 | 2015-08-31T19:17:37.000Z | 2021-01-04T13:38:35.000Z | #include <libcryptosec/certificate/ObjectIdentifier.h>
ObjectIdentifier::ObjectIdentifier()
{
this->asn1Object = ASN1_OBJECT_new();
// printf("New OID: nid: %d - length: %d\n", this->asn1Object->nid, this->asn1Object->length);
}
ObjectIdentifier::ObjectIdentifier(ASN1_OBJECT *asn1Object)
{
this->asn1Object = asn1Ob... | 20.12037 | 97 | 0.702255 |
266b1ad7c6660c1a355af6b7563e09eb81b04022 | 235 | cpp | C++ | 1st-course/AlgSD/lab_1/B.cpp | astappev/NURE | 9c148c3212993471953781dec16c9c0205daab9a | [
"MIT"
] | null | null | null | 1st-course/AlgSD/lab_1/B.cpp | astappev/NURE | 9c148c3212993471953781dec16c9c0205daab9a | [
"MIT"
] | null | null | null | 1st-course/AlgSD/lab_1/B.cpp | astappev/NURE | 9c148c3212993471953781dec16c9c0205daab9a | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int main()
{
int a,b,c,d;
cin>>a;
cin>>b;
cin>>c;
cin>>d;
if (a==0 && b==0) cout<<"INF";
else if ( a==0 || b%a!=0 || c*(-b/a)+d==0) cout<<"NO";
else cout<<-(b/a);
} | 14.6875 | 56 | 0.506383 |
266b71ec36a696e07ffe79b3426a70709a9ac0c8 | 864 | cpp | C++ | IO/IO.cpp | STEMLab/IndoorData_Conversion | cb22b0cc0088a17a5ce2a89e3c3d5a8cb2551314 | [
"MIT"
] | null | null | null | IO/IO.cpp | STEMLab/IndoorData_Conversion | cb22b0cc0088a17a5ce2a89e3c3d5a8cb2551314 | [
"MIT"
] | null | null | null | IO/IO.cpp | STEMLab/IndoorData_Conversion | cb22b0cc0088a17a5ce2a89e3c3d5a8cb2551314 | [
"MIT"
] | null | null | null | //
// Created by byeonggon on 2018-11-12.
//
#include "IO.h"
#include "TRANSFORM/Transform.h"
#include <stdio.h>
#include <ctype.h>
#include <iostream>
int CellSpace_ID=1;
int CellSpaceBoundary_ID=1;
int State_id=1;
int Transition_id=1;
int OSM_NODE_ID=-1;
int OSM_WAY_ID=-30000;
int OSM_RELATION_ID=-60000;
namespace I... | 23.351351 | 99 | 0.603009 |
266daa49cd3e4f526a836bcde3a66b8eab32b4ae | 12,976 | cpp | C++ | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 42 | 2016-11-11T13:27:48.000Z | 2021-07-27T17:53:43.000Z | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | null | null | null | a3d/src/d3d12/a3dDescriptorSetLayout.cpp | ProjectAsura/asura-SDK | e823129856185b023b164415b7aec2de0ba9c338 | [
"MIT"
] | 2 | 2017-03-26T08:25:29.000Z | 2018-10-24T06:10:29.000Z | //-------------------------------------------------------------------------------------------------
// File : a3dDescriptorSetLayout.cpp
// Desc : Descriptor Set Layout Implementation.
// Copyright(c) Project Asura. All right reserved.
//-----------------------------------------------------------------------------... | 36.655367 | 116 | 0.433955 |
266db602595f4fddce7894fe25ad418c77987836 | 9,726 | cpp | C++ | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 16 | 2019-12-10T19:44:17.000Z | 2022-01-04T03:16:19.000Z | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | null | null | null | modules/asset/src/scene.cpp | lenamueller/glpp | f7d29e5924537fd405a5bb409d67e65efdde8d9e | [
"MIT"
] | 3 | 2021-06-04T21:56:55.000Z | 2022-03-03T06:47:56.000Z | #include "glpp/asset/scene.hpp"
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/Importer.hpp>
namespace glpp::asset {
void traverse_scene_graph(
const aiScene* scene,
const aiNode* node,
glm::mat4 old,
std::vector<mesh_t>& meshes
);
struct light_cast_t {
const aiScene*... | 30.778481 | 123 | 0.707177 |
267f44b12c7e1a6ce6e5ba457f0e28d4d3cfe4bd | 2,992 | cc | C++ | components/previews/core/previews_data_savings.cc | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | components/previews/core/previews_data_savings.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | components/previews/core/previews_data_savings.cc | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/previews/core/previews_data_savings.h"
#include "base/logging.h"
#include "base/metrics/histogram_macros.h"
#include "components/dat... | 41.555556 | 80 | 0.687834 |
2681f01f49362550d596e64e01dd9c88d2b11557 | 580 | hpp | C++ | src/sn_Exception/source_location_extend.hpp | Airtnp/SuperNaiveCppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | 4 | 2017-04-01T08:09:09.000Z | 2017-05-20T11:35:58.000Z | src/sn_Exception/source_location_extend.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | src/sn_Exception/source_location_extend.hpp | Airtnp/ACppLib | 0745aa79dc5060cd0f7025658164374b991c698e | [
"MIT"
] | null | null | null | //
// Created by Airtnp on 10/18/2019.
//
#ifndef ACPPLIB_SOURCE_LOCATION_EXTEND_HPP
#define ACPPLIB_SOURCE_LOCATION_EXTEND_HPP
#include <utility>
namespace sn_Exception {
namespace source_location {
/// For `std::source_location` after variadic template argumentss
template <typename ...Ts>
... | 23.2 | 98 | 0.655172 |
2682206794cdbd6f5715731c73a0cbaf0a403230 | 20,518 | hxx | C++ | include/vigra/multi_opencl.hxx | burgerdev/vigra | f9f8d0b3224f3dc89bc7d0caf1126d49f6d4a3ca | [
"MIT"
] | 316 | 2015-01-01T02:06:53.000Z | 2022-03-28T08:37:28.000Z | include/vigra/multi_opencl.hxx | burgerdev/vigra | f9f8d0b3224f3dc89bc7d0caf1126d49f6d4a3ca | [
"MIT"
] | 232 | 2015-01-06T23:51:07.000Z | 2022-03-18T13:14:02.000Z | include/vigra/multi_opencl.hxx | burgerdev/vigra | f9f8d0b3224f3dc89bc7d0caf1126d49f6d4a3ca | [
"MIT"
] | 150 | 2015-01-05T02:11:18.000Z | 2022-03-16T09:44:14.000Z | /************************************************************************/
/* */
/* Copyright 1998-2004 by Ullrich Koethe */
/* Copyright 2011-2011 by Michael Tesch */
/* ... | 46.211712 | 110 | 0.471391 |
268324cc8e0071ff6f7753ada142d5a8a5006a36 | 1,004 | hpp | C++ | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | 4 | 2016-05-04T07:03:11.000Z | 2022-02-25T18:55:15.000Z | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | include/Config.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | /** \file Config.hpp
*
* \brief Declares various constant maps and such for rom-specific info. May
* well be in external files someday, but this works for now.
*
*/
#pragma once
#include <map>
#include <string>
namespace Config {
enum class Region {
UNKNOWN,
NTSC,
PAL,
... | 16.733333 | 77 | 0.5249 |
2685a4500cf6be8acd15b8f171c210227adf6153 | 1,267 | cpp | C++ | aws-cpp-sdk-rekognition/source/model/S3Destination.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-rekognition/source/model/S3Destination.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-rekognition/source/model/S3Destination.cpp | Nexuscompute/aws-sdk-cpp | e7ef485e46e6962c9e084b8c9b104c1bfcceaf26 | [
"Apache-2.0"
] | 1 | 2021-11-09T12:02:58.000Z | 2021-11-09T12:02:58.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/rekognition/model/S3Destination.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
nam... | 16.893333 | 69 | 0.714286 |
2685a4686c01fb7cd7e7de44f972cbef3a02f9be | 4,790 | hh | C++ | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | neb/inc/com/centreon/engine/configuration/hostescalation.hh | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2011-2013,2017 Centreon
**
** This file is part of Centreon Engine.
**
** Centreon Engine is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Engine is distributed in the... | 42.767857 | 78 | 0.602088 |
268612881e134b8543e320a3a65b6bc505944e36 | 407 | cpp | C++ | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | mine/49-group_anagrams.cpp | Junlin-Yin/myLeetCode | 8a33605d3d0de9faa82b5092a8e9f56b342c463f | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<string>> groupAnagrams(vector<string>& strs) {
vector<vector<string>> ans;
map<string, vector<string>> m;
for(auto s: strs){
string key = s;
sort(key.begin(), key.end());
m[key].push_back(s);
}
... | 27.133333 | 65 | 0.4914 |
26870717ca42ee947e4d83fb9bb16c4aa5d0ffed | 4,489 | cpp | C++ | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | 1 | 2015-03-11T19:49:20.000Z | 2015-03-11T19:49:20.000Z | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | tests/shared/src/MovingPercentileTests.cpp | ey6es/hifi | 23f9c799dde439e4627eef45341fb0d53feff80b | [
"Apache-2.0"
] | null | null | null | //
// MovingPercentileTests.cpp
// tests/shared/src
//
// Created by Yixin Wang on 6/4/2014
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "MovingPercentileTests.h"
... | 26.405882 | 88 | 0.450212 |
268758411a17323da5bed5c00840b7125d087d0b | 3,269 | hpp | C++ | examples/mantevo/miniFE-1.1/optional/stk_util/parallel/Parallel.hpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | 1 | 2019-11-26T22:24:12.000Z | 2019-11-26T22:24:12.000Z | examples/mantevo/miniFE-1.1/optional/stk_util/parallel/Parallel.hpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | null | null | null | examples/mantevo/miniFE-1.1/optional/stk_util/parallel/Parallel.hpp | sdressler/objekt | 30ee938f5cb06193871f802be0bbdae6ecd26a33 | [
"BSD-3-Clause"
] | null | null | null | /*------------------------------------------------------------------------*/
/* Copyright 2010 Sandia Corporation. */
/* Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive */
/* license for use of this work by or on behalf of the U.S. Government. */
/* Export o... | 23.517986 | 79 | 0.588559 |
268f36cb1993f70b9db72c578a7a6409eab31ac5 | 193,857 | cpp | C++ | game.cpp | umer-mukhtar/LudoGame | 0687e45ff20af82ea6c24417dcd0dcb1819705fc | [
"MIT"
] | null | null | null | game.cpp | umer-mukhtar/LudoGame | 0687e45ff20af82ea6c24417dcd0dcb1819705fc | [
"MIT"
] | null | null | null | game.cpp | umer-mukhtar/LudoGame | 0687e45ff20af82ea6c24417dcd0dcb1819705fc | [
"MIT"
] | null | null | null | #ifndef CENTIPEDE_CPP_
#define CENTIPEDE_CPP_
//#include "Board.h"
#include "util.h"
#include <iostream>
#include<string>
#include<cmath>
#include<fstream>
using namespace std;
int players; // global variable to record number of players
string playerNames[4]={}; // string array to store player names
int playerColors[... | 44.36087 | 338 | 0.417457 |
2692fdc36bf8a34a62e4f1893e5404eb0ec811f3 | 70,302 | cpp | C++ | sdktools/debuggers/minidump/gen.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | sdktools/debuggers/minidump/gen.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | sdktools/debuggers/minidump/gen.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1999-2002 Microsoft Corporation
Module Name:
gen.c
Abstract:
Generic routines for minidump that work on both NT and Win9x.
Author:
Matthew D Hendel (math) 10-Sep-1999
Revision History:
--*/
#include "pch.cpp"
#include <limits.h>
//
// For FPO frames o... | 28.508516 | 80 | 0.526884 |
26945ad97669474146a61832833e9516173e6d14 | 268 | cpp | C++ | robot_driver/src/robot_driver_node.cpp | robomechanics/quad-software | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 20 | 2021-12-05T03:40:28.000Z | 2022-03-30T02:53:56.000Z | robot_driver/src/robot_driver_node.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 45 | 2021-12-06T12:45:05.000Z | 2022-03-31T22:15:47.000Z | robot_driver/src/robot_driver_node.cpp | robomechanics/rml-spirit-firmware | 89154df18e98162249f38301b669df27ee595220 | [
"MIT"
] | 2 | 2021-12-06T03:20:15.000Z | 2022-02-20T04:19:41.000Z | #include <ros/ros.h>
#include <iostream>
#include "robot_driver/robot_driver.h"
int main(int argc, char** argv) {
ros::init(argc, argv, "robot_driver_node");
ros::NodeHandle nh;
RobotDriver robot_driver(nh, argc, argv);
robot_driver.spin();
return 0;
}
| 16.75 | 45 | 0.69403 |
2696661cdfcc1cdd32850db86f3aa38a27bdf078 | 52,915 | cpp | C++ | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | libraries/ble/nRF51822/nordic/ble/ble_bondmngr.cpp | hakehuang/mbed | 04b488dcc418f0317cdee1781b27a59295909c77 | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2012 Nordic Semiconductor. All Rights Reserved.
*
* The information contained herein is property of Nordic Semiconductor ASA.
* Terms and conditions of usage are described in detail in NORDIC
* SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT.
*
* Licensees are granted free, non-transferable use... | 33.175549 | 234 | 0.594349 |
2697c546ea3da0d71d51f7cd8512991e28feccbc | 646 | cpp | C++ | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2016-07-02T17:44:10.000Z | 2016-07-02T17:44:10.000Z | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | null | null | null | src/215.kth_largest_element_in_an_array/code.cpp | cloudzfy/leetcode | 9d32090429ef297e1f62877382bff582d247266a | [
"MIT"
] | 1 | 2019-12-21T04:57:15.000Z | 2019-12-21T04:57:15.000Z | class Solution {
public:
int findKthLargest(vector<int>& nums, int k) {
int left = 0, right = nums.size() - 1;
while (left < right) {
int pivot = nums[left];
int i = left, j = right;
while (i < j) {
while (i < j && nums[j] < pivot) j--;
... | 29.363636 | 54 | 0.380805 |
269b575a872832cd67ba16173326f301c9046e39 | 4,527 | cc | C++ | modules/kernel/arch/x86_64/scheduler-arch.cc | eryjus/centuryos2 | 526a39c0f434b29a43d85e6b5b1ffa1ced885b25 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/arch/x86_64/scheduler-arch.cc | eryjus/centuryos2 | 526a39c0f434b29a43d85e6b5b1ffa1ced885b25 | [
"BSD-3-Clause"
] | null | null | null | modules/kernel/arch/x86_64/scheduler-arch.cc | eryjus/centuryos2 | 526a39c0f434b29a43d85e6b5b1ffa1ced885b25 | [
"BSD-3-Clause"
] | null | null | null | //===================================================================================================================
//
// scheduler-arch.cc -- Architecture-specific functions elements for the process
//
// Copyright (c) 2021 -- Adam Clark
// Licensed under "THE BEER-WARE LICENSE"
// See License... | 41.53211 | 117 | 0.456815 |
269d05c443de786d7da37be9593012adcfb37aa9 | 828 | cpp | C++ | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 46 | 2019-11-16T13:44:07.000Z | 2022-03-12T14:28:44.000Z | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 11 | 2020-05-12T17:20:51.000Z | 2022-02-04T10:04:59.000Z | Regression_test/examples/threshold/src/threshold.cpp | minseongg/dynamatic | 268d97690f128569da46e4f39a99346e93ee9d4e | [
"MIT"
] | 22 | 2020-02-21T21:33:40.000Z | 2022-02-24T06:50:41.000Z |
#include <stdlib.h>
#include "threshold.h"
void threshold(inout_int_t red[1000], inout_int_t green[1000], inout_int_t blue[1000], in_int_t th) {
for (int i = 0; i < 1000; i++) {
int sum = red[i] + green [i] + blue [i];
if (sum <= th) {
red[i] = 0;
green [i] = 0;
blue [i] = 0;
}
}
}
#define AMOUN... | 18.818182 | 101 | 0.570048 |
269d8a6d9b8f916c3dda647e0ed287f1f9313bef | 2,491 | cpp | C++ | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | null | null | null | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 8 | 2021-05-20T11:15:34.000Z | 2021-05-21T12:29:48.000Z | src/io/OutputFile.cpp | feliwir/libcharta | 4581ad4dc0751264ed6104a49260e7e070dfc141 | [
"Apache-2.0"
] | 2 | 2021-05-24T14:43:46.000Z | 2021-05-25T08:31:41.000Z | /*
Source File : OutputFile.cpp
Copyright 2011 Gal Kahana PDFWriter
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless req... | 27.988764 | 116 | 0.674428 |
269ec50b603ce86bd3a199865737aeb708178b24 | 1,222 | cpp | C++ | plugins/hifiKinect/src/KinectProvider.cpp | Darlingnotin/Antisocial_VR | f1debafb784ed5a63a40fe9b80790fbaccfedfce | [
"Apache-2.0"
] | 272 | 2021-01-07T03:06:08.000Z | 2022-03-25T03:54:07.000Z | plugins/hifiKinect/src/KinectProvider.cpp | Darlingnotin/Antisocial_VR | f1debafb784ed5a63a40fe9b80790fbaccfedfce | [
"Apache-2.0"
] | 1,021 | 2020-12-12T02:33:32.000Z | 2022-03-31T23:36:37.000Z | plugins/hifiKinect/src/KinectProvider.cpp | Darlingnotin/Antisocial_VR | f1debafb784ed5a63a40fe9b80790fbaccfedfce | [
"Apache-2.0"
] | 77 | 2020-12-15T06:59:34.000Z | 2022-03-23T22:18:04.000Z | //
// Created by Brad Hefta-Gaub on 2016/12/7
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <mutex>
#include <QtCore/QObject>
#include <QtCore/QtPlugin>
#include <Qt... | 24.44 | 88 | 0.680033 |
26a0be9f2af8de90d7f9795281eff836adf25290 | 7,004 | hh | C++ | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 124 | 2017-06-22T19:20:54.000Z | 2021-12-23T21:36:37.000Z | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 4 | 2017-08-21T15:57:29.000Z | 2019-01-10T02:52:35.000Z | src/memo/cli/KeyValueStore.hh | infinit/memo | 3a8394d0f647efe03ccb8bfe885a7279cb8be8a6 | [
"Apache-2.0"
] | 12 | 2017-06-29T09:15:35.000Z | 2020-12-31T12:39:52.000Z | #pragma once
#include <elle/das/cli.hh>
#include <memo/cli/Object.hh>
#include <memo/cli/Mode.hh>
#include <memo/cli/fwd.hh>
#include <memo/cli/symbols.hh>
#include <memo/symbols.hh>
namespace memo
{
namespace cli
{
class KeyValueStore
: public Object<KeyValueStore>
{
public:
using Self =... | 34.673267 | 81 | 0.476442 |
26a2512667b7fa764d14d10841ddb0f642869fb1 | 1,205 | cpp | C++ | src/gfa/types.cpp | ggonnella/gfaviz | 9cb990948eaf66e6f501e70908fe1d8c0ff0242d | [
"ISC"
] | 41 | 2018-12-19T17:32:44.000Z | 2021-11-27T03:44:53.000Z | src/gfa/types.cpp | ggonnella/gfaviz | 9cb990948eaf66e6f501e70908fe1d8c0ff0242d | [
"ISC"
] | 16 | 2019-01-17T13:36:02.000Z | 2021-12-13T21:18:45.000Z | src/gfa/types.cpp | niehus/gfaviz | 9cb990948eaf66e6f501e70908fe1d8c0ff0242d | [
"ISC"
] | 2 | 2018-11-01T12:53:26.000Z | 2018-11-07T06:31:03.000Z | #include "gfa/types.h"
#include "gfa/line.h"
GfaVariance::GfaVariance() {
is_set = false;
}
void GfaVariance::set(unsigned long _val) {
is_set = true;
val=_val;
}
ostream& operator<< (ostream &out, const GfaVariance &v) {
v.print(out);
return out;
}
void GfaVariance::print(ostream &out) const {
if (!is_set... | 18.538462 | 79 | 0.628216 |
26a5fa3870e7d9939e9a10f6124b408b1d15a119 | 583 | cc | C++ | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | 5 | 2018-05-09T05:09:50.000Z | 2021-07-30T06:48:21.000Z | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | null | null | null | src/figureknight.cc | zerozez/qt-chess | 4a066195f656cb57e83f49beeaa9e244796b18d3 | [
"Apache-2.0"
] | 5 | 2017-11-29T23:49:25.000Z | 2021-06-10T15:13:07.000Z | #include <movepoints.hpp>
#include "figureknight.hpp"
FigureKnight::FigureKnight(const uint x, const uint y, FigureIntf::Color side,
QObject *parent)
: FigureIntf(x, y, side, new MovePoints(), parent) {
MovePoints *points = defMoveList();
points->addPoint(2, 1);
points->addPoint(... | 24.291667 | 78 | 0.636364 |
26a889910b55f98ee3c9093b47d7d9cc2bf7dd96 | 1,251 | cpp | C++ | src/Engine/Material/BSDF_CookTorrance.cpp | trygas/CGHomework | 2dfff76f407b8a7ba87c5ba9d12a4428708ffbbe | [
"MIT"
] | 289 | 2020-01-28T09:07:10.000Z | 2022-03-25T09:00:25.000Z | src/Engine/Material/BSDF_CookTorrance.cpp | Ricahrd-Li/ASAP_ARAP_Parameterization | c12d83605ce9ea9cac29efbd991d21e2b363e375 | [
"MIT"
] | 12 | 2020-02-19T07:11:14.000Z | 2021-08-07T06:41:27.000Z | src/Engine/Material/BSDF_CookTorrance.cpp | Ricahrd-Li/ASAP_ARAP_Parameterization | c12d83605ce9ea9cac29efbd991d21e2b363e375 | [
"MIT"
] | 249 | 2020-02-01T08:14:36.000Z | 2022-03-30T14:52:58.000Z | #include <Engine/Material/BSDF_CookTorrance.h>
#include <Basic/Math.h>
using namespace Ubpa;
using namespace std;
float BSDF_CookTorrance::NDF(const normalf & h) {
cout << "WARNING::BSDF_CookTorrance:" << endl
<< "\t" << "not implemented" << endl;
return 0.f;
}
float BSDF_CookTorrance::Fr(const normalf & wi, c... | 28.431818 | 112 | 0.663469 |
26a95ca0515650cbcad75558cecc3efda0da5953 | 1,652 | cpp | C++ | src/main.cpp | amitsingh19975/ML | fbd79128f86cfbd8f09e16b0ca1ab5ab2deaa11b | [
"MIT"
] | null | null | null | src/main.cpp | amitsingh19975/ML | fbd79128f86cfbd8f09e16b0ca1ab5ab2deaa11b | [
"MIT"
] | null | null | null | src/main.cpp | amitsingh19975/ML | fbd79128f86cfbd8f09e16b0ca1ab5ab2deaa11b | [
"MIT"
] | null | null | null | #include "inculde/headers.h"
#include <iostream>
#include <iomanip>
using namespace ML;
using namespace std;
int main(){
// // cout<<setprecision(numeric_limits<double>::max_digits10);
string trainF = "/Users/Amit/Desktop/Python/ML/test/cars";
// string testF = "/Users/Amit/Desktop/Python/ML/test/data";
... | 31.769231 | 77 | 0.577482 |
26aa86402b96ead305469e8b6ddda32908ac8aa2 | 2,415 | cpp | C++ | implementations/C++/02_BasicMatOps/default_main.cpp | bluenote10/SimpleLanguageBenchmarks | 1bf616b8241844a4424412db7d3829169531e76d | [
"MIT"
] | 1 | 2019-04-14T05:21:20.000Z | 2019-04-14T05:21:20.000Z | implementations/C++/02_BasicMatOps/default_main.cpp | bluenote10/SimpleLanguageBenchmarks | 1bf616b8241844a4424412db7d3829169531e76d | [
"MIT"
] | null | null | null | implementations/C++/02_BasicMatOps/default_main.cpp | bluenote10/SimpleLanguageBenchmarks | 1bf616b8241844a4424412db7d3829169531e76d | [
"MIT"
] | null | null | null |
#include <vector>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <chrono>
#include <cmath>
struct Matrix {
int N;
std::vector<double> data;
Matrix operator+(Matrix const& that) const {
Matrix result;
result.N = N;
result.data.resize(data.size());
for (uns... | 22.783019 | 66 | 0.593375 |
26aaca0b24611b659b37f098826c03e808543bb7 | 1,148 | cpp | C++ | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 1 | 2022-02-11T21:25:53.000Z | 2022-02-11T21:25:53.000Z | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | 15 | 2021-08-21T13:41:29.000Z | 2022-03-08T14:13:43.000Z | libs/liblynel/test/src/lynel/matrix.cpp | tybl/tybl | cc74416d3d982177d46b89c0ca44f3a8e1cf00d6 | [
"Unlicense"
] | null | null | null | // License: The Unlicense (https://unlicense.org)
#include "lynel/matrix.hpp"
#include <doctest/doctest.h>
using namespace tybl::lynel;
TEST_CASE("matrix::operator==()") {
matrix<double,3,3> a = { 0,1,2,3,4,5,6,7,8 };
matrix<double,3,3> b = { 0,1,2,3,4,5,6,7,8 };
matrix<double,3,3> c = { 1,1,2,3,4,5,6,7,8 };
... | 24.956522 | 93 | 0.542683 |
26ab2352cf40ab3491f62cdd3d63bba3bc279c60 | 1,598 | cpp | C++ | src/gps/tk/ProjectionEckert4.cpp | KIT-IAI/GMLToolbox-gps | c8953e08431a2a945f7fc03f3cff114222826ece | [
"Apache-2.0"
] | 1 | 2021-05-04T06:22:54.000Z | 2021-05-04T06:22:54.000Z | src/gps/tk/ProjectionEckert4.cpp | KIT-IAI/GMLToolbox-gps | c8953e08431a2a945f7fc03f3cff114222826ece | [
"Apache-2.0"
] | null | null | null | src/gps/tk/ProjectionEckert4.cpp | KIT-IAI/GMLToolbox-gps | c8953e08431a2a945f7fc03f3cff114222826ece | [
"Apache-2.0"
] | 1 | 2020-07-13T12:14:58.000Z | 2020-07-13T12:14:58.000Z | #include "StdAfx.h"
#include "Projection.h"
#include "ProjectionUtils.h"
#include "ProjectionEckert4.h"
#define _USE_MATH_DEFINES
#include <math.h>
CProjectionEckert4::CProjectionEckert4 ()
{
}
CProjectionEckert4::~CProjectionEckert4 ()
{
}
void CProjectionEckert4::Initialize (CCfgMapProjection & proj)
{
a =... | 18.581395 | 66 | 0.576971 |
26ac579234928e9635367395573f4d42e9a065c9 | 805 | cpp | C++ | problems/1189-maximum-number-of-balloons.cpp | ZhongRuoyu/leetcode | a905ec08e9b8ad8931d09e03efb154a648790c78 | [
"MIT"
] | 1 | 2022-01-11T06:32:41.000Z | 2022-01-11T06:32:41.000Z | problems/1189-maximum-number-of-balloons.cpp | ZhongRuoyu/LeetCode | 7472ef8b868165b485e5ce0676226bbe95561b73 | [
"MIT"
] | null | null | null | problems/1189-maximum-number-of-balloons.cpp | ZhongRuoyu/LeetCode | 7472ef8b868165b485e5ce0676226bbe95561b73 | [
"MIT"
] | null | null | null | // Solved 2021-04-09 11:34
// Runtime: 4 ms (80.85%)
// Memory Usage: 6.5 MB (67.36%)
class Solution {
public:
int maxNumberOfBalloons(string text) {
unordered_map<char, int> lookup[2]{
{{'a', 0}, {'b', 0}, {'n', 0}},
{{'l', 0}, {'o', 0}}};
for (auto &ch : text) {
... | 26.833333 | 54 | 0.33913 |
26ac80c078b14510e88e45ebc37e3e0029bcbe72 | 213 | cpp | C++ | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2020-08-20T11:02:49.000Z | 2020-08-20T11:02:49.000Z | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | null | null | null | leetcode.com/0912 Sort an Array/main.cpp | sky-bro/AC | 29bfa3f13994612887e18065fa6e854b9a29633d | [
"MIT"
] | 1 | 2022-01-01T23:23:13.000Z | 2022-01-01T23:23:13.000Z | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> sortArray(vector<int>& nums) {
sort(nums.begin(), nums.end());
return nums;
}
};
| 15.214286 | 44 | 0.661972 |
26adb3d9943b8ee8a33b935fe87e6ad5d0233046 | 4,140 | hpp | C++ | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | 1 | 2017-05-09T14:25:18.000Z | 2017-05-09T14:25:18.000Z | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | null | null | null | image/globals.hpp | mywoodstock/woo | 7a6e39b2914ec8ff5bf52c3aa5217214532390e4 | [
"BSL-1.0"
] | null | null | null | /**
* Project: The Stock Libraries
*
* File: globals.hpp
* Created: Jun 05, 2012
*
* Author: Abhinav Sarje <abhinav.sarje@gmail.com>
*
* Copyright (c) 2012-2017 Abhinav Sarje
* Distributed under the Boost Software License.
* See accompanying LICENSE file.
*/
#ifndef __GLOBALS_HPP__
#define __GLOBALS_... | 21.122449 | 80 | 0.572464 |
26aed0a38df84b58cd7c72fdc67a16f3eda0840d | 1,424 | cpp | C++ | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-proton/source/model/ListRepositorySyncDefinitionsResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/proton/model/ListRepositorySyncDefinitionsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#... | 28.48 | 138 | 0.778792 |
26b0fcd469e70a25de15e4e818b4827deb831f5c | 3,096 | cpp | C++ | app/src/main/jni/nativeCode/common/myJNIHelper.cpp | nul318/CatchTime | 496322a04852f08422fd2b696561f704d3d796c5 | [
"Apache-2.0"
] | 51 | 2016-08-01T13:11:08.000Z | 2021-11-15T10:14:10.000Z | app/src/main/jni/nativeCode/common/myJNIHelper.cpp | nul318/CatchTime | 496322a04852f08422fd2b696561f704d3d796c5 | [
"Apache-2.0"
] | 8 | 2017-02-08T06:12:00.000Z | 2021-12-03T11:24:07.000Z | app/src/main/jni/nativeCode/common/myJNIHelper.cpp | nul318/CatchTime | 496322a04852f08422fd2b696561f704d3d796c5 | [
"Apache-2.0"
] | 24 | 2016-12-22T06:42:10.000Z | 2022-03-17T09:51:33.000Z | /*
* Copyright 2016 Anand Muralidhar
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 32.589474 | 101 | 0.675388 |
26b30d30371c8e92875b23274f95d280f413303d | 53 | cc | C++ | tests/CompileTests/ElsaTestCases/t0100.cc | maurizioabba/rose | 7597292cf14da292bdb9a4ef573001b6c5b9b6c0 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | tests/CompileTests/ElsaTestCases/t0100.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | tests/CompileTests/ElsaTestCases/t0100.cc | sujankh/rose-matlab | 7435d4fa1941826c784ba97296c0ec55fa7d7c7e | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z | class X {
int y;
void foo() {
X::y++;
}
};
| 7.571429 | 14 | 0.358491 |
564be89ba37b356a87ced8fd135c687a0a5395e7 | 1,663 | hpp | C++ | ToolsDialog.hpp | chrisoldwood/FarmMonitor | 5b9802ff2b9a3a64d74f8705769212822563c4cd | [
"MIT"
] | 4 | 2018-01-31T13:12:02.000Z | 2020-09-11T13:13:58.000Z | ToolsDialog.hpp | chrisoldwood/FarmMonitor | 5b9802ff2b9a3a64d74f8705769212822563c4cd | [
"MIT"
] | null | null | null | ToolsDialog.hpp | chrisoldwood/FarmMonitor | 5b9802ff2b9a3a64d74f8705769212822563c4cd | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//! \file ToolsDialog.hpp
//! \brief The ToolsDialog class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef TOOLSDIALOG_HPP
#define TOOLSDIALOG_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#include <WCL/C... | 17.88172 | 80 | 0.616957 |
564f9a0f58d404c300022d0cc7880be326f3de29 | 1,558 | cpp | C++ | math.cpp | razordemo/THE-SCENE-IS-DEAD | b83c03c919535fdacffe11ee98a6fa5f551e79a8 | [
"CC0-1.0"
] | 8 | 2021-12-13T16:10:52.000Z | 2022-03-13T10:00:33.000Z | math.cpp | razordemo/THE-SCENE-IS-DEAD | b83c03c919535fdacffe11ee98a6fa5f551e79a8 | [
"CC0-1.0"
] | null | null | null | math.cpp | razordemo/THE-SCENE-IS-DEAD | b83c03c919535fdacffe11ee98a6fa5f551e79a8 | [
"CC0-1.0"
] | 1 | 2021-12-27T11:47:07.000Z | 2021-12-27T11:47:07.000Z | __declspec(naked) int rounding_common()
{
__asm
{
fnstcw [ESP-8]
fldcw [ESP]
fistp dword ptr [ESP]
pop EAX
fldcw [ESP-12]
ret
}
}
__declspec(naked) int __cdecl floorf(float x)
{
__asm
{
fld dword ptr [ESP+4]
... | 16.752688 | 46 | 0.488447 |
565341ee5667668b6426c1dcb40bdf30c5d59d8e | 11,305 | cpp | C++ | app.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | app.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | app.cpp | alxga/utils | 01ca9fb2084ba5e7bead20b45f52b3557ce8c337 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Alexander A. Ganin. All rights reserved.
Twitter: @alxga. Website: alexganin.com.
Licensed under the MIT License.
See LICENSE file in the project root for full license information.
*/
#include "stdafx.h"
#ifdef HAVE_MPI
# include <mpi.h>
#endif
#include "Utils/utils.h"
using namesp... | 21.533333 | 94 | 0.603096 |
565489757ce1fd9e8bd5ab39a63f70b20df0e50f | 4,838 | cc | C++ | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | pgs7179/xapian_modified | 0229c9efb9eca19be4c9f463cd4b793672f24198 | [
"MIT"
] | 2 | 2021-01-13T21:17:42.000Z | 2021-01-13T21:17:42.000Z | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | xapian/xapian-core-1.2.13/backends/flint/flint_termlisttable.cc | Loslove55/tailbench | fbbf3f31e3f0af1bb7db7f07c2e7193b84abb1eb | [
"MIT"
] | null | null | null | /** @file flint_termlisttable.cc
* @brief Subclass of FlintTable which holds termlists.
*/
/* Copyright (C) 2007,2008 Olly Betts
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either ve... | 32.689189 | 77 | 0.673419 |
56552f854b8b9d39c69acb10804e90e7397e6248 | 3,101 | cpp | C++ | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | CODEJAM/2014/ROUND1C/b.cpp | henviso/contests | aa8a5ce9ed4524e6c3130ee73af7640e5a86954c | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string>
#include <cstring>
#include <cstdlib>
#include <stack>
#include <algorithm>
#include <cctype>
#include <vector>
#include <queue>
#include <tr1/unordered_map>
#include <cmath>
#include <map>
#include <bitset>
#include <set>
using namespace std;
typedef long long ll... | 25.841667 | 84 | 0.529507 |
5656eb3c3c81ecbc3e43d10f40a9d44a605d675a | 2,177 | cpp | C++ | src/catalog/catalog_entry/sequence_catalog_entry.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 1 | 2022-02-07T14:37:01.000Z | 2022-02-07T14:37:01.000Z | src/catalog/catalog_entry/sequence_catalog_entry.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | src/catalog/catalog_entry/sequence_catalog_entry.cpp | AldoMyrtaj/duckdb | 3aa4978a2ceab8df25e4b20c388bcd7629de73ed | [
"MIT"
] | null | null | null | #include "duckdb/catalog/catalog_entry/sequence_catalog_entry.hpp"
#include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/field_writer.hpp"
#include "duckdb/parser/parsed_data/create_sequence_info.hpp"
#include "duckdb/catalog/dependency_manager.... | 34.555556 | 114 | 0.747359 |
56579e54ba5cf939dd05730da3ab5320b8cfbc5b | 1,077 | cpp | C++ | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | 1 | 2019-02-01T09:10:11.000Z | 2019-02-01T09:10:11.000Z | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | 3 | 2017-10-30T07:38:49.000Z | 2017-10-30T08:55:50.000Z | proj-e/tests/internal_test.cpp | romz-pl/b-plus-tree | 5af2db1c4188d507d0ff28eac91dc255d4e49a35 | [
"Apache-2.0"
] | null | null | null | #include <gtest/gtest.h>
#include <internal.h>
//
//
//
TEST(Internal, init)
{
using Key = int;
using Data = int;
btree::Internal< Key, Data > internal( nullptr );
const Key key = 2;
const Data data = 3;
const btree::Leaf< Key, Data >::value_type x( key, data );
internal.insert_value( 0... | 22.914894 | 70 | 0.593315 |
565863bfca891d32ceac2d062331b9e295cbce2e | 2,793 | cpp | C++ | MusicPlayer.cpp | nickkantack/ArduinoSong | 5d71dd4758937fcb58f647dc02fe593d0f7bdcae | [
"MIT"
] | null | null | null | MusicPlayer.cpp | nickkantack/ArduinoSong | 5d71dd4758937fcb58f647dc02fe593d0f7bdcae | [
"MIT"
] | null | null | null | MusicPlayer.cpp | nickkantack/ArduinoSong | 5d71dd4758937fcb58f647dc02fe593d0f7bdcae | [
"MIT"
] | null | null | null |
#include <Arduino.h>
#include "Note.h"
#include "MusicPlayer.h"
#define NOTE_QUEUE_SIZE 100
float _beats_per_second = 1.0;
bool _is_buzzer_high;
bool _is_playing;
bool _is_mid_song;
int _buzzer_pin = A0;
int _note_index_in_queue;
unsigned long _micros_of_last_buzzer_switch;
unsigned long _micros_of_note_start;
unsig... | 26.855769 | 119 | 0.756534 |
5659f243a4ca9717204ad2bbb3d2d565772ee6ff | 1,246 | cpp | C++ | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | GameGuy/src/Panels/AudioPanel.cpp | salvorizza/GameGuy | b539d5be002387907fe5d6e6e9da5deae234c182 | [
"MIT"
] | null | null | null | #include "Panels/AudioPanel.h"
#include <imgui.h>
namespace GameGuy {
AudioPanel::AudioPanel()
: Panel("Audio Panel ", false, true)
{
}
AudioPanel::~AudioPanel()
{
}
void AudioPanel::addSample(size_t time, double left, double right)
{
std::lock_guard<std::mutex> lc(mMutex);
if (mSamples.size() > MAX... | 22.654545 | 127 | 0.654896 |
565bd4355598dc7147bc724f18a0ae8d4768cb67 | 5,842 | cpp | C++ | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | client/Client.cpp | MohamedAshrafTolba/http-client-server | 3776f1a5ff1921564d6c288be0ba870dbdacce22 | [
"MIT"
] | null | null | null | #include "Client.h"
#include <sstream>
#include <fstream>
#include <iostream>
#include <thread>
#include <mutex>
#include <sys/stat.h>
#include <condition_variable>
#include "../strutil.h"
Client::Client(std::string &host_name, std::string &port_number,
std::string &requests_file, bool dry_run) {
socket = ... | 32.455556 | 108 | 0.590894 |
565bd74681a343d68e75972f65068e4e72a62bf1 | 1,324 | hpp | C++ | dev/Basic/long/database/entity/TenureTransitionRate.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 50 | 2018-12-21T08:21:38.000Z | 2022-01-24T09:47:59.000Z | dev/Basic/long/database/entity/TenureTransitionRate.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 2 | 2018-12-19T13:42:47.000Z | 2019-05-13T04:11:45.000Z | dev/Basic/long/database/entity/TenureTransitionRate.hpp | gusugusu1018/simmobility-prod | d30a5ba353673f8fd35f4868c26994a0206a40b6 | [
"MIT"
] | 27 | 2018-11-28T07:30:34.000Z | 2022-02-05T02:22:26.000Z | //Copyright (c) 2016 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
//license.txt (http://opensource.org/licenses/MIT)
/*
* TenureTransitionRate.hpp
*
* Created on: 5 Feb 2016
* Author: Chetan Rogbeer <chetan.rogbeer@smart.mit.edu>
*... | 24.981132 | 147 | 0.599698 |
565d2f1faea0c63caadf19f1161daada56985a2b | 5,614 | cpp | C++ | lap_sqm_mex_avx512.cpp | bykovda/legendre_transform | 1ee6bf8951ce7bebf5abd88bc4ffd956fd6613b1 | [
"MIT"
] | null | null | null | lap_sqm_mex_avx512.cpp | bykovda/legendre_transform | 1ee6bf8951ce7bebf5abd88bc4ffd956fd6613b1 | [
"MIT"
] | null | null | null | lap_sqm_mex_avx512.cpp | bykovda/legendre_transform | 1ee6bf8951ce7bebf5abd88bc4ffd956fd6613b1 | [
"MIT"
] | null | null | null | /*
TODO: rename to fenchel
lap_sqm_mex(x1, y1, z1, x2, y2, z2, g2, fun_id, sign) calculates
R[j] = max_j {g2[j] - f(xyz1[i], xyz2[j])} when sign = +1
R[j] = min_j {g2[j] - f(xyz1[i], xyz2[j])} when sign = -1
returns R and ind = argmax/argmin
The kernel f is defined by fun_id:
fun_id = 0 : f = -(x1 x2 + y1... | 29.39267 | 103 | 0.587104 |
565d4c7873c1304bc864ac21bd65e7ac298ba816 | 2,387 | cpp | C++ | RemovalTool/RemovalTool.cpp | rmusser01/living-off-the-land | b215c7db70d42aa36263dcff2d7858b6894730af | [
"BSD-2-Clause"
] | 124 | 2020-09-08T12:53:19.000Z | 2022-03-22T18:45:14.000Z | RemovalTool/RemovalTool.cpp | hidemepls785/living-off-the-land | b215c7db70d42aa36263dcff2d7858b6894730af | [
"BSD-2-Clause"
] | 10 | 2021-03-29T22:11:20.000Z | 2021-12-09T08:07:34.000Z | RemovalTool/RemovalTool.cpp | hidemepls785/living-off-the-land | b215c7db70d42aa36263dcff2d7858b6894730af | [
"BSD-2-Clause"
] | 26 | 2020-09-08T12:53:20.000Z | 2022-03-15T19:58:34.000Z | #include <Windows.h>
#include "../Global/NativeRegistry.h"
int CALLBACK WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
LPCSTR error = NULL;
BOOL removed = FALSE;
// Delete registry value HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\(Default), where Injector.exe is ... | 32.256757 | 127 | 0.668203 |
565e30463b4f98a0b1e179f888c0f6748885652a | 1,029 | cpp | C++ | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | 100 | 2020-02-01T05:39:16.000Z | 2022-03-15T06:54:27.000Z | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | null | null | null | app/src/main/cpp/IPlayBuilder.cpp | yishuinanfeng/UnitedPlayer | 3e3e43ac7ecaa6636965870420eda600205be34d | [
"Apache-2.0"
] | 16 | 2020-02-04T05:52:42.000Z | 2021-08-09T07:15:27.000Z | //
// Created by yanxi on 2019/10/28.
//
#include "IPlayBuilder.h"
#include "IPlayer.h"
#include "IDemux.h"
#include "XLog.h"
#include "IDecode.h"
#include "IResample.h"
#include "IAudioPlay.h"
#include "IVideoView.h"
IPlayer *IPlayBuilder::BuildPlayer(unsigned int index) {
IPlayer *play = CreatePalyer(index);
... | 27.078947 | 56 | 0.697765 |
565ea2dbe5b5bc0ade95a826f48e162f5851317d | 133,992 | cpp | C++ | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2006-2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
... | 31.857347 | 250 | 0.707311 |
565fc0923bd94d8fe5517012355b458a73609f61 | 839 | hpp | C++ | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | user.hpp | chenillax/E4C_Challenge_Carbozer | 3c23b9f106d6b148b84ff2af7e87f8a4ece8b771 | [
"Apache-2.0"
] | null | null | null | #ifndef __USER__
#define __USER__
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
#include <string>
/* The differents enumerations we need to our algortithm */
enum class Terminal_device { Phone, Pc, ChromeCast, Tablet};
enum class Quality { Auto, p144, p240, p360,p480,p720,p1080};
enum clas... | 24.676471 | 123 | 0.724672 |
56611e4af95260dd0beb1455713d0ae31848f32e | 8,270 | cpp | C++ | src/test/test-basic-psi.cpp | cryptohuism/tpsi | e60c9faaf1bb13b92a6c3656d5ebc784759838bf | [
"Apache-2.0"
] | 1 | 2022-01-10T06:31:00.000Z | 2022-01-10T06:31:00.000Z | src/test/test-basic-psi.cpp | cryptohuism/tpsi | e60c9faaf1bb13b92a6c3656d5ebc784759838bf | [
"Apache-2.0"
] | null | null | null | src/test/test-basic-psi.cpp | cryptohuism/tpsi | e60c9faaf1bb13b92a6c3656d5ebc784759838bf | [
"Apache-2.0"
] | null | null | null | #include "basic_psi.h"
#include <stdio.h>
#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <cmath>
#include <sys/time.h>
#include "tfhe.h"
#include "polynomials.h"
#include "lwesamples.h"
#include "lwekey.h"
#include "lweparams.h"
#include "tlwe.h"
#include "tgsw.h"
using namespace std;
// *******... | 43.072917 | 145 | 0.585127 |
56630015bb06d9de967c4e747d9407f2d116dd69 | 1,086 | cpp | C++ | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | 1 | 2021-01-16T03:34:06.000Z | 2021-01-16T03:34:06.000Z | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | null | null | null | cpp/src/main.cpp | cnloni/othello | f80f190e505b6a4dd2b2bd49054651dbea4f00fa | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "b36.hpp"
#include "board.hpp"
using namespace std;
void execute(uint64_t bp, uint64_t wp, int turn, int alpha, int beta) {
Board<B36> board;
int result = board.getBestResult(bp, wp, turn, alpha, beta);
cout << board.getFinalBoardString() << endl;
cout << "Initial = " << board.getIni... | 21.72 | 71 | 0.617864 |
5664c4ef1c5b2b7b8b5d2ca9902fd2afaa132a88 | 23,964 | cpp | C++ | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 32 | 2018-05-14T23:26:54.000Z | 2020-06-14T10:13:20.000Z | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 79 | 2018-08-01T11:50:45.000Z | 2020-11-17T13:40:06.000Z | basecode/debugger/environment.cpp | Alaboudi1/bootstrap | 4ec4629424ad6fe70c84d95d79b2132f24832379 | [
"MIT"
] | 14 | 2021-01-08T05:05:19.000Z | 2022-03-27T14:56:56.000Z | // ----------------------------------------------------------------------------
//
// Basecode Bootstrap Compiler
// Copyright (C) 2018 Jeff Panici
// All rights reserved.
//
// This software source file is licensed under the terms of MIT license.
// For details, please read the LICENSE file.
//
// --------------------... | 34.780842 | 151 | 0.473919 |
56659cb88b0cfa964ba4b8fa8851357d424c3a07 | 4,689 | cpp | C++ | src/library/BlackBox_Ring.cpp | RoboticsBrno/BlackBox_library | 2047f0102f1aacc780b8a7ba1d20da9dba3f63b4 | [
"MIT"
] | 1 | 2021-06-23T15:34:46.000Z | 2021-06-23T15:34:46.000Z | src/library/BlackBox_Ring.cpp | RoboticsBrno/BlackBox_library | 2047f0102f1aacc780b8a7ba1d20da9dba3f63b4 | [
"MIT"
] | 9 | 2020-03-09T19:50:34.000Z | 2021-07-18T12:06:11.000Z | src/library/BlackBox_Ring.cpp | RoboticsBrno/BlackBox_library | 2047f0102f1aacc780b8a7ba1d20da9dba3f63b4 | [
"MIT"
] | 1 | 2020-03-09T16:10:25.000Z | 2020-03-09T16:10:25.000Z | #include "library/BlackBox_Ring.hpp"
#include "library/BlackBox_pinout.hpp"
#include <SmartLeds.h>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <mutex>
namespace BlackBox {
int Index::trim(int index) {
return (60 + (index % ledCount)) % ledCount;
}
Index& Index::trimThis() {
m_value = trim(... | 23.923469 | 129 | 0.605246 |
5667f34649cc5613d2e1363d1942879c29e8cc79 | 1,718 | cc | C++ | lib/utils.cc | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | null | null | null | lib/utils.cc | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | null | null | null | lib/utils.cc | pauldevine/fluxengine | a107d4f17f3ecf69cfcde916f4468b44712b1253 | [
"MIT"
] | null | null | null | #include "globals.h"
#include "utils.h"
bool emergencyStop = false;
static const char* WHITESPACE = " \t\n\r\f\v";
static const char* SEPARATORS = "/\\";
void ErrorException::print() const
{
std::cerr << message << '\n';
}
bool beginsWith(const std::string& value, const std::string& ending)
{
if (ending.siz... | 22.906667 | 73 | 0.638533 |
566d612e789c06c43ad236e9688c509257bc4523 | 7,764 | hpp | C++ | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 47 | 2017-09-05T02:49:22.000Z | 2022-01-20T08:11:47.000Z | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 106 | 2018-05-16T14:58:52.000Z | 2022-01-12T13:57:24.000Z | libraries/belle/Source/Core/Prim/Complex.hpp | jogawebb/Spaghettis | 78f21ba3065ce316ef0cb84e94aecc9e8787343d | [
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause"
] | 11 | 2018-05-16T06:44:51.000Z | 2021-11-10T07:04:46.000Z |
/*
Copyright (c) 2007-2013 William Andrew Burnson.
Copyright (c) 2013-2020 Nicolas Danet.
*/
/* < http://opensource.org/licenses/BSD-2-Clause > */
// -----------------------------------------------------------------------------------------------------------
// ------------------------------------------... | 30.687747 | 110 | 0.238408 |
566f3a6aa4a7d3ed0971e84c8c6282ffa26cafea | 1,910 | hpp | C++ | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | 1 | 2018-03-01T01:05:25.000Z | 2018-03-01T01:05:25.000Z | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | framework/graphics/graphics/render_target/render_target.hpp | YiJiangFengYun/vulkan-graphics-examples | e7b788b8f47dd238b08840c019940c7c52335a54 | [
"MIT"
] | null | null | null | #ifndef VG_RENDER_TARGET_HPP
#define VG_RENDER_TARGET_HPP
#include "graphics/global.hpp"
namespace vg
{
class BaseRenderTarget {
public:
BaseRenderTarget(uint32_t framebufferWidth = 0u
, uint32_t framebufferHeight = 0u
);
uint32_t getFramebufferWidth() const;
ui... | 32.372881 | 89 | 0.66178 |