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 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 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 int64 1 48.5k ⌀ | 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 int64 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 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b12d4c85a93587dca488414f0b1498bdfabdce6c | 13,372 | cpp | C++ | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | Source/Kaggle.cpp | JakobStruye/AILib | 7cd76c409aa77a8da615204fa5fd9d1724c5f8bb | [
"Zlib"
] | null | null | null | /*#include <SFML/Graphics.hpp>
#include <rbf/SDRNetwork.h>
#include <time.h>
#include <iostream>
#include <random>
#include <array>
#include <fstream>
#include <sstream>
#include <string>
//#include <dirent.h>
struct Label {
std::string _name;
std::vector<std::string> _members;
Label(const s... | 24.007181 | 135 | 0.599462 | JakobStruye |
b12fc653ec42e9454da75e1f8ff8228692932820 | 1,741 | cc | C++ | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | 1 | 2020-04-19T22:10:53.000Z | 2020-04-19T22:10:53.000Z | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | null | null | null | testing/benchmarks/benchmark_shortmultiplication.cc | WarpRules/WVLInt | d446687e9fa9bc1118576f9f979e9e37cc5729f0 | [
"MIT"
] | null | null | null | #include "../WMPInt.hh"
#include "benchmark_timer.hh"
#include <random>
#include <memory>
namespace
{
std::mt19937_64 rngEngine(0);
volatile std::uint64_t gValueSink1, gValueSink2;
}
template<std::size_t kSize>
void runMultiplicationBenchmark(std::size_t totalIterations)
{
std::unique_ptr<WMPUInt<kSize>>... | 28.540984 | 72 | 0.699598 | WarpRules |
b12fcc072a1ac4d7084b78e82c6fad41f7babf9c | 2,199 | cxx | C++ | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 13 | 2018-07-28T13:36:38.000Z | 2021-11-01T19:17:39.000Z | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | null | null | null | MITK/Applications/CorrectVideoDistortion/niftkCorrectVideoDistortion.cxx | NifTK/NifTK | 2358b333c89ff1bba1c232eecbbcdc8003305dfe | [
"BSD-3-Clause"
] | 10 | 2018-08-20T07:06:00.000Z | 2021-07-07T07:55:27.000Z | /*=============================================================================
NifTK: A software platform for medical image computing.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY o... | 24.707865 | 99 | 0.601182 | NifTK |
b13cdb21606690801381068e6f084a14399364de | 5,489 | cpp | C++ | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 33 | 2019-09-17T20:57:56.000Z | 2021-11-20T21:50:51.000Z | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 4 | 2019-10-21T08:38:11.000Z | 2021-11-17T16:53:08.000Z | UICreator/Windows/PropertyWindows/BtnProperties.cpp | rohmer/LVGL_UI_Creator | 37a19be55e1de95d56717786a27506d8c78fd1ae | [
"MIT"
] | 16 | 2019-09-25T04:25:04.000Z | 2022-03-28T07:46:18.000Z | #include "BtnProperties.h"
lv_obj_t *BtnProperties::inkIn, *BtnProperties::inkOut, *BtnProperties::inkWait, *BtnProperties::toggle, *BtnProperties::layout, *BtnProperties::fitTop, *BtnProperties::fitBot, *BtnProperties::fitRight, *BtnProperties::fitLeft;
lv_obj_t *BtnProperties::rel, *BtnProperties::ina, *Btn... | 36.350993 | 235 | 0.675351 | rohmer |
b13e6fadb30260c6d1ec19809ce757f2283316cd | 1,322 | cpp | C++ | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null | src/executor.cpp | dixitgarg059/SimpleRA | 0ecd8adb5b66f06256c28323bc57b5901f5c94e1 | [
"MIT"
] | null | null | null |
#include "global.h"
void executeCommand()
{
switch (parsedQuery.queryType)
{
case CLEAR:
executeCLEAR();
break;
case CROSS:
executeCROSS();
break;
case DISTINCT:
executeDISTINCT();
break;
case EXPORT:
executeEXPORT();
break;
... | 17.864865 | 50 | 0.520424 | dixitgarg059 |
b140fcf86cd5552d8afcc644ddc9a79b9fc166fb | 1,231 | cpp | C++ | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | 1 | 2020-02-20T12:04:46.000Z | 2020-02-20T12:04:46.000Z | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | p371e/get_sum.cpp | l33tdaima/l33tdaima | 0a7a9573dc6b79e22dcb54357493ebaaf5e0aa90 | [
"MIT"
] | null | null | null | // g++ -std=c++11 *.cpp -o test && ./test && rm -f test
#include <vector>
#include <limits>
#include <iostream>
using namespace std;
class Solution {
public:
int getSum(int a, int b) {
int sum = a ^ b;
int carry = a & b;
if (carry) {
return getSum(sum, carry << 1);
} el... | 21.982143 | 60 | 0.418359 | l33tdaima |
b143e72955bf1407036f56934005582015bb04ce | 4,813 | hpp | C++ | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | 1 | 2019-05-28T06:33:01.000Z | 2019-05-28T06:33:01.000Z | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | Source/AllProjects/WndUtils/CIDWUtils/CIDWUtils_2ColSectList.hpp | eudora-jia/CIDLib | 02795d283d95f8a5a4fafa401b6189851901b81b | [
"MIT"
] | null | null | null | //
// FILE NAME: CIDCtrls_2ColSectList.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 01/20/2016
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... | 32.52027 | 87 | 0.42219 | eudora-jia |
b144971956577c3c8efb0a4ab7527b4f7a5556e2 | 1,103 | cpp | C++ | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 32 | 2018-01-23T21:38:06.000Z | 2022-02-06T21:02:42.000Z | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 41 | 2018-03-20T00:21:50.000Z | 2021-12-05T10:01:49.000Z | VehFuncs/Steer.cpp | JuniorDjjr/VehFuncs | 123c9228f99efe2a14030473542e2c0fff54c82f | [
"MIT"
] | 3 | 2019-06-17T16:46:48.000Z | 2020-05-12T01:40:33.000Z | #include "VehFuncsCommon.h"
#include "NodeName.h"
extern float iniDefaultSteerAngle;
void ProcessSteer(CVehicle *vehicle, list<RwFrame*> frames)
{
for (RwFrame *frame : frames)
{
if (frame->object.parent && FRAME_EXTENSION(frame)->owner == vehicle)
{
const string name = GetFrameNodeName(frame);
... | 23.468085 | 79 | 0.606528 | JuniorDjjr |
b148bcb118f893a6be41aa15f775e8cb8fc9ff76 | 2,130 | hpp | C++ | include/morpheus/Utils.hpp | msurkovsky/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | 1 | 2019-08-16T11:01:00.000Z | 2019-08-16T11:01:00.000Z | include/morpheus/Utils.hpp | It4innovations/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | null | null | null | include/morpheus/Utils.hpp | It4innovations/morpheus | b938de5c5863f8fa08cd768576a08a6aa7d55e65 | [
"MIT"
] | 1 | 2019-08-16T11:00:56.000Z | 2019-08-16T11:00:56.000Z |
#ifndef MRPH_UTILS_H
#define MRPH_UTILS_H
#include "llvm/IR/Value.h"
#include <string>
#include <vector>
#include <functional>
namespace Utils {
template<typename T>
void store_if_not(std::vector<T> &values, const T &v, T excl);
template<typename T>
std::string pp_vector(const std::vector<T> &values,
... | 36.101695 | 92 | 0.476056 | msurkovsky |
b148f55db8c4920418447ad0e4d571bf43134d7d | 239 | cpp | C++ | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | PSFExtractionHandler/Version.cpp | Lourdle/PSFExpand | 471e04831f3aab1a5152064871c2571dfe8af4e1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "PSFExtHandlerFrame.h"
DWORD
PSFEXTRACTIONHANDLER_API
PSFExtHandler_GetVersion()
{
return PSFEXTHANDLER_CURRENT_VERSION;
}
PCWSTR
PSFEXTRACTIONHANDLER_API
PSFExtHandler_GetVersionString()
{
return L"1.1.1";
}
| 14.058824 | 38 | 0.8159 | Lourdle |
b1495a1985cd8bda0dc6347be409582b805b2f90 | 3,002 | cpp | C++ | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 26 | 2019-09-04T17:48:41.000Z | 2022-02-23T17:04:24.000Z | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 57 | 2019-09-06T21:37:34.000Z | 2022-03-09T02:13:46.000Z | src/modules/cl/cl_vision.cpp | shobana-mcw/rpp | e4a5eb622b9abd0a5a936bf7174a84a5e2470b59 | [
"MIT"
] | 24 | 2019-09-04T23:12:07.000Z | 2022-03-30T02:06:22.000Z | #include <cl/rpp_cl_common.hpp>
#include "cl_declarations.hpp"
/********************** Blur ************************/
float box_3x3[] = {
0.111, 0.111, 0.111,
0.111, 0.111, 0.111,
0.111, 0.111, 0.111,
};
// cl_int
// box_filter_cl(cl_mem srcPtr, RppiSize srcSize,
// cl_mem dstPtr, unsigned int filterS... | 37.525 | 129 | 0.591939 | shobana-mcw |
b149f1b9fce687c6efc15d3b7628ffc1fba518f4 | 5,203 | cpp | C++ | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 25 | 2016-02-12T14:06:23.000Z | 2021-12-20T02:45:35.000Z | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 9 | 2016-11-21T08:49:19.000Z | 2019-07-02T10:52:35.000Z | src/tip/db/pg/query.cpp | zmij/pg_async | 08e4078588827c87297168102d7ed6b9807ab818 | [
"Artistic-2.0"
] | 5 | 2018-03-16T11:46:23.000Z | 2022-03-06T06:58:57.000Z | /*
* query.cpp
*
* Created on: 11 июля 2015 г.
* @author: zmij
*/
#include <tip/db/pg/query.hpp>
#include <tip/db/pg/resultset.hpp>
#include <tip/db/pg/database.hpp>
#include <tip/db/pg/transaction.hpp>
#include <tip/db/pg/log.hpp>
#include <functional>
namespace tip {
namespace db {
namespace pg {
LOCAL... | 26.819588 | 92 | 0.605612 | zmij |
b1510cc052f5d4aa66d6de79f3cdcb5f1fc305ea | 327 | hpp | C++ | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | src/MaterialInterface.hpp | Attractadore/RaytracingCPU | 535fa254f9bb071e922364bcbb5cae4486af73ea | [
"MIT"
] | null | null | null | #pragma once
#include "Material.hpp"
template <typename MaterialSubclass>
requires std::is_base_of_v<Material, MaterialSubclass>
const Material* getMaterialSubclass() {
static MaterialSubclass material;
return &material;
}
extern "C" {
const Material* getMaterial();
using GetMaterialF = decltype(getMateri... | 21.8 | 58 | 0.764526 | Attractadore |
b1512ddb9331e2c9f47f4ec0905e6f21e645d75f | 1,424 | cpp | C++ | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | src/lib/storage/storage_manager.cpp | j-tr/DYOD_WS1920 | 768e0c44728e1eba7329b3183e63f107efad31a1 | [
"MIT"
] | null | null | null | #include "storage_manager.hpp"
#include <map>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "utils/assert.hpp"
namespace opossum {
StorageManager& StorageManager::get() {
static StorageManager _instance;
return _instance;
}
void StorageManager::add_table(const std::string& n... | 27.384615 | 109 | 0.690309 | j-tr |
b155a737d02a767852f8ba6e0889f8615a053008 | 15,632 | hpp | C++ | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | src/pumipic_adjacency.hpp | cwsmith/pumi-pic | d1dada10c2f2b0f8b56b946ad8375d79cb85934b | [
"BSD-3-Clause"
] | null | null | null | #ifndef PUMIPIC_ADJACENCY_HPP
#define PUMIPIC_ADJACENCY_HPP
#include <iostream>
#include "Omega_h_for.hpp"
#include "Omega_h_adj.hpp"
#include "Omega_h_element.hpp"
#include "pumipic_utils.hpp"
#include "pumipic_constants.hpp"
//TODO use .get() to access data ?
namespace pumipic
{
/*
see description: Omega_h_s... | 35.446712 | 132 | 0.586681 | cwsmith |
b156cd0636e46b3c96590b3088c12e1ccdcedf99 | 2,573 | cpp | C++ | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 118 | 2015-03-24T16:09:42.000Z | 2022-03-21T09:01:59.000Z | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 26 | 2016-03-03T23:24:08.000Z | 2022-03-21T10:24:43.000Z | daemon/SimpleDriver.cpp | RufUsul/gator | 6a944e7ee1f1c3ab9b2a57efd24c58503122db02 | [
"BSD-3-Clause"
] | 73 | 2015-06-09T09:44:06.000Z | 2021-12-30T09:49:00.000Z | /* Copyright (C) 2013-2021 by Arm Limited. All rights reserved. */
#include "SimpleDriver.h"
#include "Counter.h"
SimpleDriver::~SimpleDriver()
{
DriverCounter * counters = mCounters;
while (counters != nullptr) {
DriverCounter * counter = counters;
counters = counter->getNext();
dele... | 29.918605 | 97 | 0.642829 | RufUsul |
b15c049eecccec3753dee42ffac1733818ba59fa | 1,492 | hpp | C++ | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | source/cuda_ray_tracer/CudaBindlessTexture.hpp | PetorSFZ/PhantasyEngineTestbed | 3927539f17e483bd8095b60e837637e1985282e5 | [
"MIT",
"BSL-1.0",
"Zlib",
"BSD-3-Clause"
] | null | null | null | // See 'LICENSE_PHANTASY_ENGINE' for copyright and contributors.
#pragma once
#include <phantasy_engine/rendering/RawImage.hpp>
#include "cuda_runtime.h"
namespace phe {
// CudaBindlessTexture
// ------------------------------------------------------------------------------------------------
class CudaBindlessTex... | 29.84 | 99 | 0.524129 | PetorSFZ |
b15d35cc1bbaee48923166e6f1b1613cf1d5dc58 | 11,522 | hpp | C++ | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 527 | 2020-12-01T14:23:50.000Z | 2022-03-31T11:30:24.000Z | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 44 | 2020-12-01T18:39:38.000Z | 2022-03-08T00:22:39.000Z | include/lexy/callback/container.hpp | foonathan/lexy | 8c1ebec673b498bbb1728444d202586ea81c4142 | [
"BSL-1.0"
] | 24 | 2020-12-02T01:45:53.000Z | 2022-03-22T21:31:31.000Z | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_CALLBACK_CONTAINER_HPP_INCLUDED
#define LEXY_CALLBACK_CONTAINER_HPP_INCLUDED
#include <lexy/callback/base.h... | 29.16962 | 100 | 0.646242 | foonathan |
b15eac85caa7abd5dd2334f11f60df585288f2cb | 757 | cpp | C++ | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/SRETAN.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <cmath>
#include <iterator>
#include <cstdio>
#include <vector>
#include <cstring>
#include <string>
#include <utility>
#include <algorithm>
#include <iostream>
typedef long long tint;
using namespace std;
string DecToBin(tint number)
{
if(number == 0) return "4";
if(number == 1) return... | 19.410256 | 41 | 0.549538 | MartinAparicioPons |
b1606d4a3bedad21480294f3190261967dbe1146 | 23,796 | cpp | C++ | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | 2 | 2020-09-13T08:05:41.000Z | 2020-09-17T10:56:34.000Z | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | null | null | null | source/Common/Net/MessageCenterModule/MessageCenterModule.cpp | taroyuyu/KIMServer | e3017c2271a0700bb3e2a1b53a7e5748f94938f7 | [
"MIT"
] | null | null | null | //
// Created by taroyuyu on 2018/1/7.
//
#include "MessageCenterModule.h"
#include <functional>
#include <sys/socket.h>
#include <sys/time.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/epoll.h>
#include <sys/eventfd.h>
#include <sys... | 46.658824 | 139 | 0.512145 | taroyuyu |
b161935a85167fb519ad30c46b1d131851ea4900 | 437 | cpp | C++ | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/22880.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
constexpr int MOD = 1e9 + 7;
int main() {
fastio;
int n, ans = 1; cin >> n;
vector<int> v, cnt;
for (int i = 0; i < n; i++) {
int t; cin >> t;
if (v.empty() || v.back() < t) v.push_back(t), cnt.push_back(1);
else cnt... | 24.277778 | 79 | 0.540046 | jinhan814 |
b1638fe27e79eee3625712a4b90c0cdf3747bc86 | 23,667 | cpp | C++ | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | Editor/src/EditorWndEditFunc.cpp | eaxeax/multitextor | 1fe1b62e7e4b0acd8c24ad7d5893a7e25c6bc268 | [
"BSD-2-Clause"
] | null | null | null | /*
FreeBSD License
Copyright (c) 2020-2021 vikonix: valeriy.kovalev.software@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright ... | 25.3394 | 157 | 0.532091 | eaxeax |
b166eea5c0726f94caddf579c3df35c2ee37bf92 | 6,107 | cpp | C++ | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | src/quadrature.cpp | JustAdamHere/MAGIC098-Exam | 1e3cf42b1a64fb0de64172ae0c13f1888362904a | [
"MIT"
] | null | null | null | /******************************************************************************
* @details This is a file containing functions regarding quadratures.
*
* @author Adam Matthew Blakey
* @date 2019/12/07
******************************************************************************/
#include "common.hpp"
#... | 27.633484 | 109 | 0.505486 | JustAdamHere |
b167384da66d1aad962db4df67d0000963764446 | 4,561 | cc | C++ | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | src/avi/avifile.cc | Joe136/octave-forge-video | eb31e64ae5933b09c3c05033404c89b9fe88c8b9 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (C) 2005 Stefan van der Walt <stefan@sun.ac.za>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
1. Redistributions of source code must retain the above copyright notice,
this list of condition... | 31.895105 | 111 | 0.619162 | Joe136 |
b16d67df111542d39ee36d19d836a969750c38e0 | 2,379 | cc | C++ | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 1 | 2021-06-23T22:09:28.000Z | 2021-06-23T22:09:28.000Z | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | Mu2eUtilities/src/SimpleSpectrum.cc | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | null | null | null | // Simple approximations available for DIO spectrum.
//
//
#include <cstddef>
#include <vector>
// Framework includes
#include "cetlib/pow.h"
#include "cetlib_except/exception.h"
// Mu2e includes
#include "Mu2eUtilities/inc/SimpleSpectrum.hh"
using namespace std;
using cet::pow;
using cet::square;
namespace mu2e ... | 27.344828 | 100 | 0.604456 | lborrel |
b16dc711e3bdd1ec17ef5ae66bf4188e39e78af0 | 1,953 | cpp | C++ | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | tests/src/main.cpp | L-Acoustics/networkInterfaceHelper | 5274c50ea2fb551ce187891a2759067d930ce589 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2016-2022, L-Acoustics
* This file is part of LA_networkInterfaceHelper.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* - Redistributions of source code must retain the above copyright notice,
* ... | 36.849057 | 100 | 0.758833 | L-Acoustics |
b174c219ac977fd5a825400b8c5c09415fa1bfb6 | 4,897 | cpp | C++ | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | Tutorial02/BasicTutorial1.cpp | DebugBSD/PruebasOgre3D | cc6644ef802cac0cca999638ca8979b3b794601d | [
"MIT"
] | null | null | null | // This file is part of the OGRE project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at https://www.ogre3d.org/licensing.
// SPDX-License-Identifier: MIT
#include "Ogre.h"
#include "OgreApplicationContext.h"
#include "OgreInput.h"
#include "O... | 30.042945 | 124 | 0.690219 | DebugBSD |
b17d9005e32ca7e74a76138ec3d21920b2b1ef1d | 1,719 | cpp | C++ | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/piece_of_code | ea8c9f05a453c893cc1f10e9b91d4393838670c1 | [
"MIT"
] | 1 | 2021-11-02T05:17:24.000Z | 2021-11-02T05:17:24.000Z | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | cpp/leetcode/19.remove-nth-node-from-end-of-list.cpp | Gerrard-YNWA/code | 546230593c33ff322d3205499fe17cd6a9a437c1 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=19 lang=cpp
*
* [19] Remove Nth Node From End of List
*/
#include<iostream>
using namespace std;
struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(... | 22.038462 | 62 | 0.531123 | Gerrard-YNWA |
b1833bc1679e730b452ffe1055feb24ec6380a2f | 6,264 | cpp | C++ | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | runtime/sharings/gl/gl_buffer.cpp | PTS93/compute-runtime | 0655045c7962d551e29008547a802e398b646c6e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "config.h"
#include "runtime/gmm_helper/gmm.h"
#include "gl_buffer.h"
#include "runtime/context/context.h"
#include "runtime/mem_obj/buffer.h"
#include "runtime/memory_manager/memory_manager.h"
#include "runtime/helpers/get_i... | 40.412903 | 130 | 0.711686 | PTS93 |
b18992a6acf3e3bda7390b807ab0980c6e8bf754 | 2,668 | hpp | C++ | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 1,003 | 2017-08-13T17:47:04.000Z | 2022-03-29T15:56:55.000Z | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 10 | 2017-08-14T19:11:35.000Z | 2021-12-10T12:51:53.000Z | renderer/abstract_renderable.hpp | Themaister/Granite | 02d77ced67269278476aae7a178f8f2a4fbe9a75 | [
"MIT"
] | 107 | 2017-08-16T16:13:26.000Z | 2022-03-03T06:42:19.000Z | /* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, me... | 29.644444 | 137 | 0.773613 | Themaister |
b18d202886031d11709d08f6c7ea84c0296daeb5 | 2,660 | hpp | C++ | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 5 | 2015-10-28T07:05:27.000Z | 2021-09-29T12:14:17.000Z | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | null | null | null | REST/VersionInfo.hpp | NuLL3rr0r/tse-rtsq | 84da0cc5ebecdfe7c6bf0e01e332eb131022eec2 | [
"MIT"
] | 2 | 2015-10-24T18:24:38.000Z | 2019-02-02T05:06:48.000Z | /**
* @file
* @author Mohammad S. Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2015 Mohammad S. Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... | 42.222222 | 80 | 0.756391 | NuLL3rr0r |
b190bc0cd3f948fbe43151b460281c197037edc7 | 4,374 | cpp | C++ | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | src/wm.cpp | cbeck88/HexWarfare | 94a70b1889afc2fbd990892ed66be874ac70d1b4 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2014 Kristina Simpson <sweet.kristas@gmail.com>
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 app... | 27.509434 | 162 | 0.678555 | cbeck88 |
b1926efb7176112a705164e4f0e2efd9d1941c71 | 28,310 | cpp | C++ | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | tests/animation/src/AnimTests.cpp | MarkBrosche/hifi | 71669af69675da78253a9e774ca5b3d303da5780 | [
"Apache-2.0"
] | null | null | null | //
// AnimTests.cpp
//
// Copyright 2015 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 "AnimTests.h"
#include <AnimNodeLoader.h>
#include <AnimClip.h>
#include <AnimBlendLinear.h>
#inc... | 34.821648 | 157 | 0.624691 | MarkBrosche |
b192c036d734938d90ec915503958f36131e0e29 | 746 | hpp | C++ | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | src/unisparks/layouts/pixelmap.hpp | azov/unisparks | 5bf9adb5ef7bf6ac7bea3aaf2a75d3b124594b7e | [
"Apache-2.0"
] | null | null | null | #ifndef UNISPARKS_LAYOUTS_PIXELMAP_H
#define UNISPARKS_LAYOUTS_PIXELMAP_H
#include "unisparks/layout.hpp"
#include "unisparks/util/math.hpp"
namespace unisparks {
class PixelMap : public Layout {
public:
PixelMap(size_t cnt, Point* pts) : PixelMap(cnt, pts, true) {
}
int pixelCount() const override {
retur... | 18.65 | 76 | 0.684987 | azov |
b198472286783670ae76102572fbcf75598882e7 | 171 | cpp | C++ | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | liblog/test/removeInvalidtest.cpp | qiu708/liblog | c7085dd059f065bedf45a401ff062215fc57b53f | [
"MIT"
] | null | null | null | //
// Created by qiu on 2021/12/13.
//
#include<liblog/LogFile.h>
int main()
{
liblog::LogFile f("/home/qiu/Desktop/log/log",600);
f.removeInvalid(10*24*3600);
}
| 15.545455 | 55 | 0.637427 | qiu708 |
b19bdf174b8e51e6e986373802b5c6c291b22840 | 3,358 | hpp | C++ | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | Yannq/Hamiltonians/KitaevHexC24.hpp | cecri/yannq | b78c1f86a255059f06b34dd5e538449e7261d0ee | [
"BSD-3-Clause"
] | null | null | null | #ifndef HAMILTONIANS_KITAEVHEXC24_HPP
#define HAMILTONIANS_KITAEVHEXC24_HPP
#include <Eigen/Eigen>
#include <nlohmann/json.hpp>
class KitaevHexC24
{
private:
static constexpr int N = 24;
double Jx_;
double Jy_;
double Jz_;
double hx_;
public:
KitaevHexC24(double J)
: Jx_(J), Jy_(J), Jz_(J), hx_{}
{
}
Ki... | 19.637427 | 82 | 0.6081 | cecri |
b1a2ac30af70d4dfb0e578956784035fba4b9d05 | 237 | hpp | C++ | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | src/GameObject.hpp | mysterypaint/Hmm | d19da186083b2eead9c6f8953c447f6ec24da083 | [
"MIT"
] | null | null | null | #pragma once
#include "Game.hpp"
#include "PHL.hpp"
class GameObject {
public:
GameObject(int tex, int _x, int _y);
~GameObject();
void Step();
void Draw();
private:
int x;
int y;
PHL_Surface objTexture;
PHL_Rect srcRect;
}; | 11.85 | 37 | 0.679325 | mysterypaint |
b1a5144beabeba521395c9bc28d740fc2f4b7eed | 387 | cpp | C++ | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | src/Hord/Rule/State.cpp | komiga/hord | 32be8ffb11bd74959c5cd5254e36d87f224b6f60 | [
"MIT"
] | null | null | null | /**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
*/
#include <Hord/Rule/State.hpp>
namespace Hord {
namespace Rule {
// class State implementation
State::~State() noexcept = default;
State::State() noexcept = default;
State::State(State&&) noexcept = default;
State& State::operator=(Sta... | 19.35 | 72 | 0.710594 | komiga |
b1a6a19204219f0f833690e1da76098eab53ec59 | 57 | hpp | C++ | include/inputHandler.hpp | Napam/tuna | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | null | null | null | include/inputHandler.hpp | Napam/tuna | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | 1 | 2021-09-28T18:29:20.000Z | 2021-09-28T18:29:20.000Z | include/inputHandler.hpp | Napam/Boids-SDL | d76407a763f46ff78ee1c5479e2a3b6b7f598980 | [
"Apache-2.0"
] | null | null | null | #ifndef INPUT_HANDLER_H
#define INPUT_HANDLER_H
#endif | 9.5 | 23 | 0.824561 | Napam |
b1a752c653fcb9c237eff6f9f88b9953d733d398 | 1,640 | hpp | C++ | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | libs/module/include/module.hpp | briancairl/snek | ebdd90ba2790bfcbf843c0eb52a13c7f212f8e8f | [
"MIT"
] | null | null | null | /**
* @copyright 2022-present Brian Cairl
*
* @file module.hpp
*/
#pragma once
// C++ Standard Library
#include <string>
#include <unordered_map>
// Snek
#include <snek/builder/fwd.hpp>
#include <snek/config/fwd.hpp>
namespace snek
{
/**
* @brief Loads a collection of Routine implementations (a "module") from ... | 27.79661 | 112 | 0.662195 | briancairl |
b1ad963f81d40174b1e125d529584cb24d137b8a | 16,141 | cpp | C++ | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | 2 | 2017-02-21T22:43:10.000Z | 2018-05-18T05:18:13.000Z | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | 1 | 2017-03-28T17:01:46.000Z | 2017-03-28T17:01:46.000Z | js6chars.cpp | dubzzz/js6chars | 33d23ce3d6ed51959acf961bccbfe2c0364e93c1 | [
"MIT"
] | null | null | null | //#define _DEBUG
#include <algorithm>
#include <climits>
#include <cstddef>
#include <memory>
#include <string>
#include <vector>
#ifdef _DEBUG
#include <iostream>
#include <typeinfo>
#endif
#include "js6chars.hpp"
std::string char_repr(char value, bool* cannot_use);
std::string str_repr(const char* str, bool* ca... | 36.851598 | 156 | 0.640295 | dubzzz |
b1b285fb4549d82a79c9deb183109c485f6c8611 | 819 | cpp | C++ | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-31/android/view/accessibility/AccessibilityNodeInfo_ExtraRenderingInfo.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../util/Size.hpp"
#include "./AccessibilityNodeInfo_ExtraRenderingInfo.hpp"
namespace android::view::accessibility
{
// Fields
// QJniObject forward
AccessibilityNodeInfo_ExtraRenderingInfo::AccessibilityNodeInfo_ExtraRenderingInfo(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
a... | 22.135135 | 117 | 0.741148 | YJBeetle |
b1b776b174a42c35038442c68fb191d3fccd00fe | 2,628 | hpp | C++ | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | common_types.hpp | milasudril/strint | a7f26ca3c89e0f15d195337c60b9ee389b92b549 | [
"MIT"
] | null | null | null | //@ {"targets":[{"name":"common_types.hpp","type":"include"}]}
#ifndef STRINT_COMMON_TYPES_HPP
#define STRINT_COMMON_TYPES_HPP
#include "integer.hpp"
#include <climits>
#include <cstdint>
namespace Strint
{
enum class IntSize:int
{
Smallest = CHAR_BIT
,Short = CHAR_BIT * sizeof(short)
,Natural = CHAR_BIT ... | 29.863636 | 87 | 0.746195 | milasudril |
b1baaf64557c922808099ef3543ae816a91ad419 | 9,709 | cpp | C++ | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,504 | 2019-05-07T06:56:42.000Z | 2022-03-31T19:37:59.000Z | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 314 | 2019-05-08T16:56:30.000Z | 2022-03-21T07:13:45.000Z | Samples/PosPrinter/cpp/Scenario1_ReceiptPrinter.xaml.cpp | dujianxin/Windows-universal-samples | d4e95ff0ac408c5d4d980bb18d53fb2c6556a273 | [
"MIT"
] | 2,219 | 2019-05-07T00:47:26.000Z | 2022-03-30T21:12:31.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 31.522727 | 190 | 0.604079 | dujianxin |
04d9e48a170099b714c2f35a7c751d66557da2ef | 4,671 | cpp | C++ | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 17 | 2020-11-23T07:24:16.000Z | 2022-03-28T10:29:06.000Z | ql/experimental/basismodels/fxfwdratehelper.cpp | sschlenkrich/quantlib | ff39ad2cd03d06d185044976b2e26ce34dca470c | [
"BSD-3-Clause"
] | 7 | 2017-04-24T08:28:43.000Z | 2022-03-15T08:59:54.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2016 Andre Miemiec
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/o... | 38.925 | 136 | 0.665168 | sschlenkrich |
04de5ff46b49034da29bceabe7f3605a2ac177ff | 1,713 | cc | C++ | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/tests/stub_icp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | #include "squid.h"
#include "comm/Connection.h"
#include "ICP.h"
#include "icp_opcode.h"
#define STUB_API "icp_*.cc"
#include "tests/STUB.h"
#ifdef __cplusplus
_icp_common_t::_icp_common_t() STUB
_icp_common_t::_icp_common_t(char *buf, unsigned int len) STUB
void _icp_common_t::handleReply(char *buf, Ip::Address &fro... | 46.297297 | 129 | 0.798015 | spaceify |
04e14169876e30374d8279e8139c509bdc51e3a1 | 13,945 | hpp | C++ | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 16 | 2016-12-06T10:35:46.000Z | 2022-01-19T01:20:56.000Z | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 1 | 2020-02-11T10:45:30.000Z | 2021-03-12T11:08:03.000Z | 2d/extra/TestCoordinatesR2.hpp | danston/gbc | 0cb1ae062919b053edc1558bdf41757460703eca | [
"MIT"
] | 3 | 2018-05-10T14:34:35.000Z | 2021-12-20T10:01:21.000Z | // Copyright Dmitry Anisimov danston@ymail.com (c) 2016-2017.
// README:
/*
This is a test class for testing generalized barycentric coordinates.
*/
#ifndef GBC_TESTCOORDINATESR2_HPP
#define GBC_TESTCOORDINATESR2_HPP
// STL includes.
#include <vector>
#include <iostream>
#include <cmath>
// Local includes.
#i... | 35.125945 | 124 | 0.507063 | danston |
04e32f046801bb7c6cff6759899efb55d923abcb | 176 | cpp | C++ | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/operator.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main(){
int a=5, b=8, c=7;
bool x,y;
x = a>c || b!= c && a==c;
y = !x;
cout<<x<<endl<<y<<endl;
int d = 8/3 + a%2 - c*b;
cout<<d;
}
| 13.538462 | 25 | 0.522727 | capacitybuilding |
04e50efb75b1054fa5c0a1949ead6a43cc9b6226 | 1,829 | cpp | C++ | src/class.cpp | Oberon00/apollo | 831f4e505afaa04ea827e99f4ced247bb0f0e476 | [
"BSD-2-Clause"
] | 25 | 2016-01-04T23:07:06.000Z | 2022-03-03T11:24:55.000Z | src/class.cpp | Oberon00/apollo | 831f4e505afaa04ea827e99f4ced247bb0f0e476 | [
"BSD-2-Clause"
] | 2 | 2018-05-21T18:15:49.000Z | 2018-05-21T18:47:05.000Z | src/class.cpp | Oberon00/apollo | 831f4e505afaa04ea827e99f4ced247bb0f0e476 | [
"BSD-2-Clause"
] | 6 | 2019-12-05T04:05:06.000Z | 2022-03-03T11:24:38.000Z | // Part of the apollo library -- Copyright (c) Christian Neumüller 2015
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#include <apollo/class.hpp>
#include <apollo/gc.hpp>
static apollo::detail::light_key object_tag = {};
static int... | 29.031746 | 80 | 0.655549 | Oberon00 |
04e68d245006b55e891ecd5d424b5f0885f02cbb | 438 | cpp | C++ | Easy/374_Guess_Number_Higher_Or_Lower.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | 1 | 2021-03-15T10:02:10.000Z | 2021-03-15T10:02:10.000Z | Easy/374_Guess_Number_Higher_Or_Lower.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | Easy/374_Guess_Number_Higher_Or_Lower.cpp | ShehabMMohamed/LeetCodeCPP | 684340f29ac15c5e8fa9f6ef5c3f99d4c95ce780 | [
"MIT"
] | null | null | null | // Forward declaration of guess API.
// @param num, your guess
// @return -1 if my number is lower, 1 if my number is higher, otherwise return 0
int guess(int num);
class Solution {
public:
int guessNumber(int n) {
return play_game(1, n);
}
int play_game(int low, int high) {
int m = low + (h... | 31.285714 | 97 | 0.598174 | ShehabMMohamed |
04e75e00d13ede9fdfaabd56a1494e95d0f1cd11 | 55,595 | cpp | C++ | compiler/parser.cpp | dmdecz/DM-MiniSQL | 93a56e2d1a269715e53e70e0ee112f7f37e97a88 | [
"MIT"
] | null | null | null | compiler/parser.cpp | dmdecz/DM-MiniSQL | 93a56e2d1a269715e53e70e0ee112f7f37e97a88 | [
"MIT"
] | null | null | null | compiler/parser.cpp | dmdecz/DM-MiniSQL | 93a56e2d1a269715e53e70e0ee112f7f37e97a88 | [
"MIT"
] | null | null | null | // A Bison parser, made by GNU Bison 3.4.1.
// Skeleton implementation for Bison LALR(1) parsers in C++
// Copyright (C) 2002-2015, 2018-2019 Free Software Foundation, Inc.
// 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
... | 34.170252 | 209 | 0.562407 | dmdecz |
04e90aa196259a0992c63a9336d733d2b3ba37ce | 274 | cpp | C++ | src/hsp3/linux/hsp3ext_linux.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | null | null | null | src/hsp3/linux/hsp3ext_linux.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | null | null | null | src/hsp3/linux/hsp3ext_linux.cpp | m4saka/OpenHSP | 391f0a2100e701138d0610a5b94492d6f57ad1f2 | [
"BSD-3-Clause"
] | null | null | null |
//
// HSP3 External program manager (dummy)
// onion software/onitama 2004/6
//
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hsp3ext_linux.h"
void hsp3typeinit_dllcmd( HSP3TYPEINFO *info )
{
}
void hsp3typeinit_dllctrl( HSP3TYPEINFO *info )
{
}
| 13.7 | 47 | 0.718978 | m4saka |
04e9e4057207faa5efe2c9538f8d03658fb50abb | 5,244 | hpp | C++ | include/System/ComponentModel/EditorBrowsableAttribute.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/ComponentModel/EditorBrowsableAttribute.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/System/ComponentModel/EditorBrowsableAttribute.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.Attribute
#include "... | 52.44 | 208 | 0.746568 | RedBrumbler |
04ea19b6bcee624c4eb7001cb0ca52b23154a017 | 2,017 | cpp | C++ | contests/leetcode-2020spring/d.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 23 | 2020-03-30T05:44:56.000Z | 2021-09-04T16:00:57.000Z | contests/leetcode-2020spring/d.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 1 | 2020-05-10T15:04:05.000Z | 2020-06-14T01:21:44.000Z | contests/leetcode-2020spring/d.cpp | Nightwish-cn/my_leetcode | 40f206e346f3f734fb28f52b9cde0e0041436973 | [
"MIT"
] | 6 | 2020-03-30T05:45:04.000Z | 2020-08-13T10:01:39.000Z | #include <bits/stdc++.h>
#define INF 2000000000
using namespace std;
typedef long long ll;
int read(){
int f = 1, x = 0;
char c = getchar();
while(c < '0' || c > '9'){if(c == '-') f = -f; c = getchar();}
while(c >= '0' && c <= '9')x = x * 10 + c - '0', c = getchar();
return f * x;
}
struct TreeNod... | 21.923913 | 67 | 0.446703 | Nightwish-cn |
04ea6d7dc99d806aa6e510ad4dbcc569c9ed63bf | 1,490 | cpp | C++ | Sources/Sapphire/compute/dense/naive/NaiveCrossEntropy.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 6 | 2021-07-06T10:52:33.000Z | 2021-12-30T11:30:04.000Z | Sources/Sapphire/compute/dense/naive/NaiveCrossEntropy.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 1 | 2022-01-07T12:18:03.000Z | 2022-01-08T12:23:13.000Z | Sources/Sapphire/compute/dense/naive/NaiveCrossEntropy.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 3 | 2021-12-05T06:21:50.000Z | 2022-01-09T12:44:23.000Z | // Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#define MIN_FLOAT 1.17549e-30f
#include <Sapphire/compute/dense/naive/NaiveCrossEntropy.hpp>
#inclu... | 28.113208 | 78 | 0.506711 | sukim96 |
04eb0a954cad011f317dccf9516021c865a5a1e9 | 6,708 | hpp | C++ | include/rapidcheck/Show.hpp | bantamtools/rapidcheck | 4187d901e786b1d89ab30e6b72ac1c0fc3d902cf | [
"BSD-2-Clause"
] | null | null | null | include/rapidcheck/Show.hpp | bantamtools/rapidcheck | 4187d901e786b1d89ab30e6b72ac1c0fc3d902cf | [
"BSD-2-Clause"
] | 1 | 2018-08-20T19:04:31.000Z | 2018-08-20T19:04:31.000Z | include/rapidcheck/Show.hpp | bantamtools/rapidcheck | 4187d901e786b1d89ab30e6b72ac1c0fc3d902cf | [
"BSD-2-Clause"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <deque>
#include <forward_list>
#include <list>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <memory>
#include <cstdint>
#include <type_traits>
#include <array>
#include <sstream>
#include "rapidcheck/detail/Traits.h"
namespace rc {
... | 27.95 | 80 | 0.634466 | bantamtools |
04ed2a486a5f78dc27419c7a37bdacc4ba8b362a | 3,785 | cpp | C++ | Minecraft_Advancements/settings/database.cpp | Chucky2401/Minecraft-Advancements | 623a8923792af7925738b3db2a3f8590e92a32fb | [
"Apache-2.0"
] | 2 | 2020-06-24T19:07:36.000Z | 2020-11-10T12:04:35.000Z | Minecraft_Advancements/settings/database.cpp | Chucky2401/Minecraft-Advancements | 623a8923792af7925738b3db2a3f8590e92a32fb | [
"Apache-2.0"
] | 19 | 2020-05-08T10:50:53.000Z | 2020-08-19T14:18:52.000Z | Minecraft_Advancements/settings/database.cpp | Chucky2401/Minecraft-Advancements | 623a8923792af7925738b3db2a3f8590e92a32fb | [
"Apache-2.0"
] | 1 | 2021-05-21T13:27:04.000Z | 2021-05-21T13:27:04.000Z | #include "database.h"
database::database() {
}
database::~database() {
this->base.close();
}
void database::initialisation(bool test) {
param.initialisation(test);
}
/*
* Fonction d'ouverture de la connexion à la Base de données
*/
bool database::createConnection(QString name)
{
bool bCreationReussi... | 25.402685 | 102 | 0.602114 | Chucky2401 |
04ed4e52ad916c362db9388ca495e7ecff2eaba7 | 954 | cpp | C++ | src/main.cpp | mojyack/ResourceWrapper | 2bede6c7c43f737aef27f6e0db558a56569492d4 | [
"MIT"
] | null | null | null | src/main.cpp | mojyack/ResourceWrapper | 2bede6c7c43f737aef27f6e0db558a56569492d4 | [
"MIT"
] | null | null | null | src/main.cpp | mojyack/ResourceWrapper | 2bede6c7c43f737aef27f6e0db558a56569492d4 | [
"MIT"
] | null | null | null | #include <array>
#include <Windows.h>
#include "hook/error.hpp"
#include "hook/hook.hpp"
namespace {
auto execute(PROCESS_INFORMATION& info, const wchar_t* const path) {
auto startup = STARTUPINFOW{0};
return CreateProcessW(
path,
NULL,
NULL,
... | 27.257143 | 186 | 0.578616 | mojyack |
04f697acc86401872c11c4c15b7534d3e0c20ea4 | 3,087 | cpp | C++ | example/math/src/math_expm1f.cpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 12 | 2016-08-02T17:01:13.000Z | 2021-03-04T12:11:33.000Z | example/math/src/math_expm1f.cpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 5 | 2017-05-09T12:05:06.000Z | 2021-03-16T10:39:23.000Z | example/math/src/math_expm1f.cpp | zhouyan/MCKL | 1d03eb5a879e47e268efc73b1d433611e64307b3 | [
"BSD-2-Clause"
] | 2 | 2016-08-25T13:10:29.000Z | 2019-05-01T01:54:29.000Z | //============================================================================
// MCKL/example/math/src/math_expm1f.cpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------------
// Cop... | 42.287671 | 78 | 0.630062 | zhouyan |
04fbf7d66ba3b8e08e4dde69f6c770967d24f055 | 758 | cpp | C++ | src/commands/fade_music_command.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 3 | 2017-10-02T03:18:59.000Z | 2020-11-01T09:21:28.000Z | src/commands/fade_music_command.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 2 | 2019-04-06T21:48:08.000Z | 2020-05-22T23:38:54.000Z | src/commands/fade_music_command.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 1 | 2017-07-17T20:58:26.000Z | 2017-07-17T20:58:26.000Z | #include "../../include/commands/fade_music_command.hpp"
#include "../../include/game.hpp"
#include "../../include/utility/math.hpp"
#include "../../include/xd/audio.hpp"
Fade_Music_Command::Fade_Music_Command(Game& game, float volume, long duration) :
Timed_Command(game, duration),
music(game.get_playing_musi... | 30.32 | 81 | 0.699208 | GhostInABottle |
ca088414aef7ec18e30c591538973ef84368dd73 | 1,460 | cpp | C++ | Project/zoolib/GameEngine/Cog_Indirect.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 13 | 2015-01-28T21:05:09.000Z | 2021-11-03T22:21:11.000Z | Project/zoolib/GameEngine/Cog_Indirect.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | null | null | null | Project/zoolib/GameEngine/Cog_Indirect.cpp | ElectricMagic/zoolib_cxx | cb3ccfde931b3989cd420fa093153204a7899805 | [
"MIT"
] | 4 | 2018-11-16T08:33:33.000Z | 2021-12-11T19:40:46.000Z | // Copyright (c) 2019 Andrew Green. MIT License. http://www.zoolib.org
#include "zoolib/GameEngine/Cog_Indirect.h"
#include "zoolib/Callable_Indirect.h"
namespace ZooLib {
namespace GameEngine {
// =================================================================================================
#pragma mark - sCog_... | 25.172414 | 100 | 0.689041 | ElectricMagic |
ca09938c2377f316f4322d9f8973721a7d7388c8 | 4,311 | cpp | C++ | pxr/imaging/plugin/hdRpr/renderPass.cpp | superkomar/RadeonProRenderUSD | 6b1db21768038a1f0a35c331369cd2e1f823df48 | [
"Apache-2.0"
] | 1 | 2021-08-20T01:16:36.000Z | 2021-08-20T01:16:36.000Z | pxr/imaging/plugin/hdRpr/renderPass.cpp | superkomar/RadeonProRenderUSD | 6b1db21768038a1f0a35c331369cd2e1f823df48 | [
"Apache-2.0"
] | 1 | 2021-04-03T09:38:59.000Z | 2021-04-03T09:38:59.000Z | pxr/imaging/plugin/hdRpr/renderPass.cpp | superkomar/RadeonProRenderUSD | 6b1db21768038a1f0a35c331369cd2e1f823df48 | [
"Apache-2.0"
] | null | null | null | /************************************************************************
Copyright 2020 Advanced Micro Devices, Inc
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... | 38.150442 | 116 | 0.677801 | superkomar |
ca1338da23e44252e723e9fe92f9784bdc41c7a1 | 763 | hpp | C++ | clstatphys/clstatphys/physics/fixed_boundary_normalmode.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | null | null | null | clstatphys/clstatphys/physics/fixed_boundary_normalmode.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-01-21T08:54:05.000Z | 2020-01-21T09:29:10.000Z | clstatphys/clstatphys/physics/fixed_boundary_normalmode.hpp | FIshikawa/ClassicalStatPhys | e4010480d3c7977829c1b3fdeaf51401a2409373 | [
"MIT"
] | 2 | 2020-07-18T03:36:32.000Z | 2021-07-21T22:58:27.000Z | #ifndef FIXED_BOUNDARY_NORMALMODE_HPP
#define FIXED_BOUNDARY_NORMALMODE_HPP
#include <vector>
void FixedBoundaryNormalMode(const std::vector<double>& z, std::vector<double>& z_k){
int num_particles = z.size() / 2;
const double *x = &z[0];
const double *p = &z[num_particles];
double *x_k = &z_k[0];
double *p... | 29.346154 | 89 | 0.642202 | FIshikawa |
ca139d93fca4d0cf3c52ef8f0a7655d8a8991cc6 | 8,707 | cpp | C++ | db/silkworm/trie/db_trie.cpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | 1 | 2021-06-30T22:56:09.000Z | 2021-06-30T22:56:09.000Z | db/silkworm/trie/db_trie.cpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | null | null | null | db/silkworm/trie/db_trie.cpp | flashbots/silkworm | 7770793499d0c665754b17840f7b8edfd53ce8ba | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 The Silkworm 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 agreed ... | 32.129151 | 120 | 0.6017 | flashbots |
ca154c34c94f3b2f621d8c7c6d878634797ab92c | 179 | hpp | C++ | vendor/bindgen/tests/headers/templateref_opaque.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | null | null | null | vendor/bindgen/tests/headers/templateref_opaque.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | null | null | null | vendor/bindgen/tests/headers/templateref_opaque.hpp | mrkatebzadeh/rust-ibverbs | c0ea14f0e35be179a0370a7312b5fa07032adb27 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-02-02T10:49:21.000Z | 2021-02-02T10:49:21.000Z |
namespace detail {
template<typename T>
struct PointerType {
typedef T* Type;
};
}
template<typename T>
class UniquePtr {
typedef typename detail::PointerType<T> Pointer;
};
| 14.916667 | 50 | 0.73743 | mrkatebzadeh |
ca158d0b40a42ed2498685558f018116a563c158 | 2,490 | cc | C++ | game/src/gui/app/unit_list_view.cc | wateret/mengde | 03c1894603b76916351550d03df8f4af38eb4ca6 | [
"MIT"
] | 24 | 2018-03-02T03:37:09.000Z | 2021-08-18T02:34:23.000Z | game/src/gui/app/unit_list_view.cc | wateret/mengde | 03c1894603b76916351550d03df8f4af38eb4ca6 | [
"MIT"
] | 99 | 2018-03-04T06:50:14.000Z | 2019-08-25T09:02:20.000Z | game/src/gui/app/unit_list_view.cc | wateret/mengde | 03c1894603b76916351550d03df8f4af38eb4ca6 | [
"MIT"
] | 9 | 2018-03-02T03:36:55.000Z | 2019-02-27T07:11:28.000Z | #include "unit_list_view.h"
#include "core/unit.h"
#include "gui/uifw/button_view.h"
#include "gui/uifw/scroll_view.h"
#include "gui/uifw/text_view.h"
#include "gui/uifw/vertical_list_view.h"
namespace mengde {
namespace gui {
namespace app {
UnitListView::UnitDetailView::UnitDetailView(const Rect& frame)
: Comp... | 30.365854 | 104 | 0.687952 | wateret |
ca1a301277a8e8b0c83a241099f6583ca2697451 | 959 | cpp | C++ | src/utils/tst/Crc32Test.cpp | tuncalie/amazon-kinesis-video-streams-pic | f792b7da65c4f3a26ac211dcfa9fa060b1a02610 | [
"Apache-2.0"
] | 29 | 2020-02-14T22:35:59.000Z | 2022-02-04T14:19:09.000Z | src/utils/tst/Crc32Test.cpp | tuncalie/amazon-kinesis-video-streams-pic | f792b7da65c4f3a26ac211dcfa9fa060b1a02610 | [
"Apache-2.0"
] | 137 | 2020-01-28T23:24:43.000Z | 2022-03-21T05:06:53.000Z | src/utils/tst/Crc32Test.cpp | tuncalie/amazon-kinesis-video-streams-pic | f792b7da65c4f3a26ac211dcfa9fa060b1a02610 | [
"Apache-2.0"
] | 31 | 2020-02-24T19:47:41.000Z | 2022-03-30T08:50:45.000Z | #include "UtilTestFixture.h"
class Crc32Test : public UtilTestBase {
};
TEST_F(Crc32Test, crc32FunctionalityTest)
{
PCHAR testString = (PCHAR) "testString";
PCHAR testStringNum = (PCHAR) "12345";
PCHAR testStringSingleChar = (PCHAR) "a";
PCHAR testStringLong = (PCHAR) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... | 45.666667 | 119 | 0.744526 | tuncalie |
ca1c7ef2de32b7050e86c17e29dde57dc15b4e3b | 1,574 | cpp | C++ | leetcode/PartitionList/PartitionList.cpp | lizhenghn123/myAlgorithmStudy | 1917d48debeab33436c705bf9bc2fe9cf49f95cf | [
"MIT"
] | 2 | 2015-08-30T04:45:24.000Z | 2015-08-30T04:45:36.000Z | leetcode/PartitionList/PartitionList.cpp | lizhenghn123/myAlgorithmStudy | 1917d48debeab33436c705bf9bc2fe9cf49f95cf | [
"MIT"
] | null | null | null | leetcode/PartitionList/PartitionList.cpp | lizhenghn123/myAlgorithmStudy | 1917d48debeab33436c705bf9bc2fe9cf49f95cf | [
"MIT"
] | 4 | 2015-07-15T08:43:58.000Z | 2021-04-10T12:55:29.000Z | // Source : https://oj.leetcode.com/problems/partition-list/
// Author : lizhenghn@gmail.com
// Date : 2014-11-30
/**********************************************************************************
*
* Given a linked list and a value x, partition it such that all nodes less than x come
* before nodes greater than or... | 20.986667 | 93 | 0.54892 | lizhenghn123 |
ca1eb4f211a4262074d74708084a2bb59b1a0411 | 9,384 | cpp | C++ | app/GameState.cpp | yousefh409/tankGame | 0b191a1fb8d6c9040e641b4972cfe00452f25544 | [
"MIT"
] | 1 | 2021-08-09T02:36:28.000Z | 2021-08-09T02:36:28.000Z | app/GameState.cpp | yousefh409/tankGame | 0b191a1fb8d6c9040e641b4972cfe00452f25544 | [
"MIT"
] | null | null | null | app/GameState.cpp | yousefh409/tankGame | 0b191a1fb8d6c9040e641b4972cfe00452f25544 | [
"MIT"
] | 1 | 2021-09-04T04:50:10.000Z | 2021-09-04T04:50:10.000Z | #include <string>
#include <fstream>
#include "GameState.h"
#include "ScoresScreenState.h"
#include "MainMenuState.h"
#include "PauseState.h"
//
using namespace std;
void GameState::initBackground()
{
this->background.setSize(sf::Vector2f(1024.0f, 768.0f));
backgroundTexture.loadFromFile(std::string(Ma... | 29.790476 | 175 | 0.607737 | yousefh409 |
ca231a2b1c35eed41abc2c038c3893d18372f464 | 1,629 | hpp | C++ | source/addon_manager.hpp | ZachHembree/reshade | b0278661b8b78d060d432f94abe04df33296457b | [
"BSD-3-Clause"
] | null | null | null | source/addon_manager.hpp | ZachHembree/reshade | b0278661b8b78d060d432f94abe04df33296457b | [
"BSD-3-Clause"
] | null | null | null | source/addon_manager.hpp | ZachHembree/reshade | b0278661b8b78d060d432f94abe04df33296457b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2021 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#pragma once
#include "addon_impl.hpp"
#include "reshade_events.hpp"
#include <string>
#if RESHADE_ADDON
#define RESHADE_ADDON_EVENT(name, ...) \
for (size_t cb = 0; cb < reshade::addon::event_l... | 25.857143 | 185 | 0.693063 | ZachHembree |
ca2367364f57335e6d18f5f9dff9e4f650eae8a9 | 622 | cpp | C++ | src/examples/002Chapter/2-6-1-sales-data-type/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/002Chapter/2-6-1-sales-data-type/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | src/examples/002Chapter/2-6-1-sales-data-type/main.cpp | artgonzalez/cpp-primer | 0317e11b5821860d38a236f24c6f7d76638386f3 | [
"MIT"
] | null | null | null | #include<iostream>
#include "sales_data.h"
int main()
{
SalesData data, data1;
std::cout<<"Enter isbn: ";
std::cin>>data.book_no;
std::cout<<"Enter units old: ";
std::cin>>data.units_sold;
std::cout<<"Enter revenue: ";
std::cin>>data.revenue;
std::cout<<"Enter isbn: ";
std::cin>... | 19.4375 | 85 | 0.594855 | artgonzalez |
ca2685aee0445a79ab41a69e46770279d98a2ed8 | 689 | cpp | C++ | test/unit/math/prim/scal/fun/lbeta_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | test/unit/math/prim/scal/fun/lbeta_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | test/unit/math/prim/scal/fun/lbeta_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/scal.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <gtest/gtest.h>
#include <limits>
TEST(MathFunctions, lbeta) {
using stan::math::lbeta;
EXPECT_FLOAT_EQ(0.0, lbeta(1.0, 1.0));
EXPECT_FLOAT_EQ(2.981361, lbeta(0.1, 0.1));
EXPECT_FLOAT_EQ(-4.094345, lbeta(3.0, 4.... | 28.708333 | 72 | 0.696662 | jrmie |
ca27f8a9cf4247272301080a84f671ea6baac031 | 10,268 | cpp | C++ | native/src/seal/util/globals.cpp | nitrieu/SEAL | 9fc376c19488be2bfd213780ee06789754f4b2c2 | [
"MIT"
] | 17 | 2019-12-02T09:26:24.000Z | 2022-02-03T03:59:25.000Z | native/src/seal/util/globals.cpp | nitrieu/SEAL | 9fc376c19488be2bfd213780ee06789754f4b2c2 | [
"MIT"
] | 1 | 2020-09-14T06:19:36.000Z | 2020-09-14T06:19:36.000Z | native/src/seal/util/globals.cpp | nitrieu/SEAL | 9fc376c19488be2bfd213780ee06789754f4b2c2 | [
"MIT"
] | 11 | 2019-12-02T22:02:39.000Z | 2021-12-10T02:17:06.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include <cstdint>
#include "seal/util/globals.h"
#include "seal/smallmodulus.h"
using namespace std;
namespace seal
{
namespace util
{
namespace global_variables
{
std::shared_ptr<Memo... | 40.425197 | 111 | 0.518699 | nitrieu |
ca2f096fc7e2cefe9b3da1c7588be696da465685 | 24,452 | cpp | C++ | cpp/shared/LILBuildManager.cpp | veosotano/lil | da2d0774615827d521362ffb731e8abfa3887507 | [
"MIT"
] | 6 | 2021-01-02T16:36:28.000Z | 2022-01-23T21:50:29.000Z | cpp/shared/LILBuildManager.cpp | veosotano/lil | da2d0774615827d521362ffb731e8abfa3887507 | [
"MIT"
] | null | null | null | cpp/shared/LILBuildManager.cpp | veosotano/lil | da2d0774615827d521362ffb731e8abfa3887507 | [
"MIT"
] | null | null | null | /********************************************************************
*
* LIL Is a Language
*
* AUTHORS: Miro Keller
*
* COPYRIGHT: ©2020-today: All Rights Reserved
*
* LICENSE: see LICENSE file
*
* This file is responsible for coordinating a build
*
*******************************... | 38.689873 | 155 | 0.490389 | veosotano |
ca2f6a0c2163d5293089d485da6020bb89428e26 | 865 | cpp | C++ | 0485 - Max Consecutive Ones/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | 5 | 2018-10-18T06:47:19.000Z | 2020-06-19T09:30:03.000Z | 0485 - Max Consecutive Ones/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | 0485 - Max Consecutive Ones/cpp/main.cpp | xiaoswu/Leetcode | e4ae8b2f72a312ee247084457cf4e6dbcfd20e18 | [
"MIT"
] | null | null | null | //
//f main.cpp
// 485 - Max Consecutive Ones
//
// Created by ynfMac on 2019/6/13.
// Copyright © 2019 ynfMac. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int findMaxConsecutiveOnes(vector<int>& nums) {
int k = nums[0];
... | 20.595238 | 54 | 0.468208 | xiaoswu |
ca2fe11a90e9d7f03d89ecbe2841ad400ba35139 | 1,748 | cpp | C++ | nTA/Source/Old Code/collider_Dynamic.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2020-05-09T20:50:12.000Z | 2021-06-20T08:34:58.000Z | nTA/Source/Old Code/collider_Dynamic.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | null | null | null | nTA/Source/Old Code/collider_Dynamic.cpp | loganjones/nTA-Total-Annihilation-Clone | d7d0e4d33f1d452d17cf2fed2b2bcb7f6d7d4d14 | [
"MIT"
] | 2 | 2018-01-08T00:12:04.000Z | 2020-06-14T10:56:50.000Z | // collider_Dynamic.cpp // Author: Logan "Burn" Jones
///////////////////////// Date: 5/10/2002
//
/////////////////////////////////////////////////////////////////////
#include "object.h"
#include "collider_Dynamic.h"
///////////////////////////////////////////////... | 33.615385 | 71 | 0.308924 | loganjones |
ca34c0a84bc37834c1fd114093411524250ecd99 | 5,193 | cpp | C++ | src/Http/HttpResponse.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | 1 | 2021-03-05T09:27:35.000Z | 2021-03-05T09:27:35.000Z | src/Http/HttpResponse.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | null | null | null | src/Http/HttpResponse.cpp | MisakiOfScut/SingHttpServer | 039636d7cee16ccc46c281456d71a410f3f16e23 | [
"Apache-2.0"
] | null | null | null | #include "HttpResponse.h"
#include "../Buffer/Buffer.h"
#include <unistd.h>
#include <fcntl.h>
using namespace sing;
const std::map<int, std::string> HttpResponse::statusCode2Message = {
{200, "OK"},
{301,"Move Permanently"},
{400, "Bad Request"},
{403, "Forbidden"},
{404, "Not Found"}
};
const st... | 29.338983 | 100 | 0.556711 | MisakiOfScut |
ca3a187da35e81c5a8209084c8db2087714b18f6 | 4,106 | cpp | C++ | src/admin/smart_log_mgr.cpp | hsungyang/poseidonos | 0f523b36ccf0d70726364395ea96ac6ae3b845c3 | [
"BSD-3-Clause"
] | 38 | 2021-04-06T03:20:55.000Z | 2022-03-02T09:33:28.000Z | src/admin/smart_log_mgr.cpp | gye-ul/poseidonos | bce8fe2cd1f36ede8647446ecc4cf8a9749e6918 | [
"BSD-3-Clause"
] | 19 | 2021-04-08T02:27:44.000Z | 2022-03-23T00:59:04.000Z | src/admin/smart_log_mgr.cpp | gye-ul/poseidonos | bce8fe2cd1f36ede8647446ecc4cf8a9749e6918 | [
"BSD-3-Clause"
] | 28 | 2021-04-08T04:39:18.000Z | 2022-03-24T05:56:00.000Z | /*
* BSD LICENSE
* Copyright (c) 2021 Samsung Electronics Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain th... | 27.931973 | 108 | 0.72528 | hsungyang |
ca3ac7fe57dbbf3314d62791bab2baaed4c08a24 | 16,399 | cc | C++ | arcane/ceapart/src/arcane/hyoda/HyodaEnvs.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 16 | 2021-09-20T12:37:01.000Z | 2022-03-18T09:19:14.000Z | arcane/ceapart/src/arcane/hyoda/HyodaEnvs.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 66 | 2021-09-17T13:49:39.000Z | 2022-03-30T16:24:07.000Z | arcane/ceapart/src/arcane/hyoda/HyodaEnvs.cc | cedricga91/framework | 143eeccb5bf375df4a3f11b888681f84f60380c6 | [
"Apache-2.0"
] | 11 | 2021-09-27T16:48:55.000Z | 2022-03-23T19:06:56.000Z | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... | 44.683924 | 103 | 0.555827 | cedricga91 |
ca3d27f086d8d36741f98d4dea0686144d74af66 | 3,539 | cpp | C++ | Source/DialogueSystemEditor/Private/BehaviorTreeEditor/QuestionCustomization.cpp | ericzhou9/UE4-DialogueSystem | cc3c600916c4f73cebc33ed0a7c5cf45954f2413 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/BehaviorTreeEditor/QuestionCustomization.cpp | ericzhou9/UE4-DialogueSystem | cc3c600916c4f73cebc33ed0a7c5cf45954f2413 | [
"MIT"
] | null | null | null | Source/DialogueSystemEditor/Private/BehaviorTreeEditor/QuestionCustomization.cpp | ericzhou9/UE4-DialogueSystem | cc3c600916c4f73cebc33ed0a7c5cf45954f2413 | [
"MIT"
] | 1 | 2019-08-18T06:13:51.000Z | 2019-08-18T06:13:51.000Z | //Copyright (c) 2016 Artem A. Mavrin and other contributors
#pragma once
#include "DialogueSystemEditorPrivatePCH.h"
#include "QuestionCustomization.h"
#include "DetailLayoutBuilder.h"
#include "DetailWidgetRow.h"
#include "IDetailPropertyRow.h"
#include "DetailCategoryBuilder.h"
#define LOCTEXT_NAMESPACE... | 32.172727 | 113 | 0.767166 | ericzhou9 |
ca40d96972b04ababacbc585f500b18a892c4b8a | 19,047 | cpp | C++ | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/OnlineEngineInterfaceImpl.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 10 | 2017-07-22T13:04:45.000Z | 2021-12-22T10:02:32.000Z | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/OnlineEngineInterfaceImpl.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | null | null | null | OnlineSubsystemB3atZUtils/Source/OnlineSubsystemB3atZUtils/Private/OnlineEngineInterfaceImpl.cpp | philippbb/OnlineSubsytemB3atZPlugin | 17ad7c220fddd24bc36860ad9bbc20b3a98bb357 | [
"MIT"
] | 3 | 2017-05-06T20:31:43.000Z | 2020-07-01T01:45:37.000Z | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved
// Plugin written by Philipp Buerki. Copyright 2017. All Rights reserved..
#include "OnlineEngineInterfaceImpl.h"
#include "OnlineSubsystemB3atZ.h"
#include "Interfaces/OnlineIdentityInterface.h"
#include "OnlineSubsystemB3atZUtils.h"
UB3atZOnlineEngineInter... | 32.670669 | 231 | 0.806479 | philippbb |
ca42af470ab617eaefb44cdd1bd074cb0fbb60d8 | 3,136 | cpp | C++ | src/meta/processors/schema/DropEdgeProcessor.cpp | jackwener/nebula | d83f26db7ecc09cb9d97148dda7cb013a1aff08b | [
"Apache-2.0"
] | 1 | 2022-02-17T03:41:13.000Z | 2022-02-17T03:41:13.000Z | src/meta/processors/schema/DropEdgeProcessor.cpp | jackwener/nebula | d83f26db7ecc09cb9d97148dda7cb013a1aff08b | [
"Apache-2.0"
] | null | null | null | src/meta/processors/schema/DropEdgeProcessor.cpp | jackwener/nebula | d83f26db7ecc09cb9d97148dda7cb013a1aff08b | [
"Apache-2.0"
] | null | null | null | /* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "meta/processors/schema/DropEdgeProcessor.h"
namespace nebula {
namespace meta {
void DropEdgeProcessor::process(const cpp2::DropEdgeReq& req) {
GraphSpaceID spaceId = req.get_space_id()... | 30.153846 | 90 | 0.661671 | jackwener |
ca45982704eec4d69cd4481bcfb725d71800db45 | 4,008 | cpp | C++ | Engine/source/gfx/gfxVertexTypes.cpp | camporter/Torque3D | 938e28b6f36883cb420da4b04253b1394467a1f4 | [
"Unlicense"
] | 13 | 2015-04-13T21:46:01.000Z | 2017-11-20T22:12:04.000Z | Engine/source/gfx/gfxVertexTypes.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | 1 | 2015-11-16T23:57:12.000Z | 2015-12-01T03:24:08.000Z | Engine/source/gfx/gfxVertexTypes.cpp | timmgt/Torque3D | ebc6c9cf3a2c7642b2cd30be3726810a302c3deb | [
"Unlicense"
] | 10 | 2015-01-05T15:58:31.000Z | 2021-11-20T14:05:46.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restrictio... | 33.4 | 79 | 0.715569 | camporter |
ca463eccc6c273452daf9c38250ac6b2afe6fc12 | 3,818 | cpp | C++ | src/Magnum/Vk/Test/DescriptorSetLayoutVkTest.cpp | nodoteve/magnum | 8bb1da98b9c41fd0baa2246759721d8b8196a36b | [
"MIT"
] | null | null | null | src/Magnum/Vk/Test/DescriptorSetLayoutVkTest.cpp | nodoteve/magnum | 8bb1da98b9c41fd0baa2246759721d8b8196a36b | [
"MIT"
] | null | null | null | src/Magnum/Vk/Test/DescriptorSetLayoutVkTest.cpp | nodoteve/magnum | 8bb1da98b9c41fd0baa2246759721d8b8196a36b | [
"MIT"
] | null | null | null | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021 Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "... | 36.361905 | 97 | 0.724201 | nodoteve |
ca46d49183d68ba4fd293829855e4a89d2097e7d | 1,690 | cpp | C++ | dbms/src/Storages/DeltaMerge/tests/gtest_dm_configuration.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Storages/DeltaMerge/tests/gtest_dm_configuration.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Storages/DeltaMerge/tests/gtest_dm_configuration.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, Ltd.
//
// 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 agreed to i... | 34.489796 | 107 | 0.762722 | solotzg |
ca47a50bfa12b39f1a5c61eca23cd0ba3c58f36a | 3,020 | cpp | C++ | src/backend/graphs/dijkstra.cpp | alex-x-o/Djiki | a684fc890ed867d4bb3deeedd4f327959dfbd68a | [
"MIT"
] | null | null | null | src/backend/graphs/dijkstra.cpp | alex-x-o/Djiki | a684fc890ed867d4bb3deeedd4f327959dfbd68a | [
"MIT"
] | null | null | null | src/backend/graphs/dijkstra.cpp | alex-x-o/Djiki | a684fc890ed867d4bb3deeedd4f327959dfbd68a | [
"MIT"
] | null | null | null | #include "dijkstra.hpp"
#include <cmath>
#include <QMap>
#include <QSet>
Dijkstra::Dijkstra()
: GraphAlgorithm()
{
definePseudocode();
}
Dijkstra::Dijkstra(Graph *g)
: GraphAlgorithm(g)
{
definePseudocode();
}
void Dijkstra::definePseudocode()
{
code.setInput("Graph G, starting node and target no... | 26.725664 | 131 | 0.533113 | alex-x-o |
ca494563b3c4c534a1c8c663e830bf8291d513d2 | 554 | cpp | C++ | BCPlayerBuilder/source_cpp/main.cpp | CommanderAsdasd/bcplayer | bf3481c9f08fb810660367b083392304479daaef | [
"MIT"
] | null | null | null | BCPlayerBuilder/source_cpp/main.cpp | CommanderAsdasd/bcplayer | bf3481c9f08fb810660367b083392304479daaef | [
"MIT"
] | null | null | null | BCPlayerBuilder/source_cpp/main.cpp | CommanderAsdasd/bcplayer | bf3481c9f08fb810660367b083392304479daaef | [
"MIT"
] | null | null | null | //#include <iostream>
//#include <string>
//#include <fstream>
//#include <limits>
//#include "MData.h"
//#include "OSC.h"
//#include "MPlayer.h"
//#include "DelayLine.h"
//#include "MML.h"
#include "GUI.h"
using namespace std;
static const int SAMPLE_RATE = 44100;
static const int TABLE_SIZE = 4096;
static const in... | 18.466667 | 52 | 0.694946 | CommanderAsdasd |
ca4b7c114facc65a8b4b07e6a942df5ff8f8dbfc | 3,737 | cpp | C++ | storage/diskmgr/services/storage_service/event_handler/src/local_envent_poll.cpp | peeweep/distributeddatamgr_file | 1e624bbc3850815fa1b2642c67123b7785bec6a1 | [
"Apache-2.0"
] | null | null | null | storage/diskmgr/services/storage_service/event_handler/src/local_envent_poll.cpp | peeweep/distributeddatamgr_file | 1e624bbc3850815fa1b2642c67123b7785bec6a1 | [
"Apache-2.0"
] | null | null | null | storage/diskmgr/services/storage_service/event_handler/src/local_envent_poll.cpp | peeweep/distributeddatamgr_file | 1e624bbc3850815fa1b2642c67123b7785bec6a1 | [
"Apache-2.0"
] | 5 | 2021-09-13T11:18:04.000Z | 2021-11-25T14:12:15.000Z | /*
* Copyright (c) 2021 Huawei Device Co., Ltd.
* 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 ... | 26.132867 | 88 | 0.629917 | peeweep |
ca4d4f51743e6e0930346d80194500d895426651 | 7,134 | hpp | C++ | random/boost/random/poisson_ext/devroye/detail/q.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | random/boost/random/poisson_ext/devroye/detail/q.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | random/boost/random/poisson_ext/devroye/detail/q.hpp | rogard/boost_sandbox_statistics | 16aacbc716a31a9f7bb6c535b1c90dc343282a23 | [
"BSL-1.0"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////
// random::poisson_ex::poisson_devroye::q_function::standard.hpp //
// //
// //
// (C)... | 31.152838 | 83 | 0.442248 | rogard |
ca4f4b45c69b4f7c5b399abcd10a1b798a90b78d | 1,516 | hpp | C++ | shared_model/backend/protobuf/queries/proto_get_account_detail.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | null | null | null | shared_model/backend/protobuf/queries/proto_get_account_detail.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | null | null | null | shared_model/backend/protobuf/queries/proto_get_account_detail.hpp | 132/iroha | 66e1a490dc8917530020c53d162c573571deafd3 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
#define IROHA_PROTO_GET_ACCOUNT_DETAIL_HPP
#include "backend/protobuf/common_objects/trivial_proto.hpp"
#include "backend/protobuf/queries/proto_account_detail_pagination_met... | 32.255319 | 80 | 0.699208 | 132 |
ca564e8b1d61f61713643cc87ba19b36b6b1be5e | 2,525 | cc | C++ | modules/audio_processing/agc2/gain_controller2.cc | laloli/webrtc_src | 2a4d70cc93ddd3074e51c0a2c2de507ac6babc2a | [
"DOC",
"BSD-3-Clause"
] | 6 | 2020-03-18T08:21:45.000Z | 2021-02-06T14:37:57.000Z | modules/audio_processing/agc2/gain_controller2.cc | laloli/webrtc_src | 2a4d70cc93ddd3074e51c0a2c2de507ac6babc2a | [
"DOC",
"BSD-3-Clause"
] | 1 | 2018-02-10T01:29:22.000Z | 2018-02-10T01:29:22.000Z | modules/audio_processing/agc2/gain_controller2.cc | laloli/webrtc_src | 2a4d70cc93ddd3074e51c0a2c2de507ac6babc2a | [
"DOC",
"BSD-3-Clause"
] | 3 | 2018-07-23T04:52:42.000Z | 2021-12-18T07:37:15.000Z | /*
* Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 33.223684 | 74 | 0.712475 | laloli |
ca57dabdc17deda917652f0906b3ba5e57e4e783 | 2,863 | hpp | C++ | src/geometry/3d/vector.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | null | null | null | src/geometry/3d/vector.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | null | null | null | src/geometry/3d/vector.hpp | IsraelEfraim/cpp-engine | 039bcad97d55635a7a8f31d0d80ce59095ebb6cb | [
"MIT"
] | 2 | 2021-03-15T18:51:32.000Z | 2021-07-19T23:45:49.000Z | #ifndef CPP_ENGINE_VECTOR_HPP
#define CPP_ENGINE_VECTOR_HPP
#include <cmath>
#include <type_traits>
#include "../axis.hpp"
#include "../../utility/concepts.hpp"
namespace engine::space3D {
template <class V>
concept Dim3_Vec = requires(std::remove_cvref_t<V> v) {
{ v.x } -> Number;
{ v.y } -> Number;
{ ... | 21.207407 | 63 | 0.603213 | IsraelEfraim |
ca59a756a78a6fd211a7406b981ca12acd46d72c | 12,012 | cpp | C++ | HoikuCamApp/src/Palettes.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | 1 | 2019-12-13T05:51:34.000Z | 2019-12-13T05:51:34.000Z | HoikuCamApp/src/Palettes.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | null | null | null | HoikuCamApp/src/Palettes.cpp | h7ga40/PeachCam | 06d023a908dc38228e77b47f80bc8496a4d35806 | [
"Apache-2.0"
] | 1 | 2021-09-17T15:41:36.000Z | 2021-09-17T15:41:36.000Z | #include "Palettes.h"
const uint8_t colormap_rainbow[] = {
1, 3, 74,
0, 3, 74,
0, 3, 75,
0, 3, 75,
0, 3, 76,
0, 3, 76,
0, 3, 77,
0, 3, 79,
0, 3, 82,
0, 5, 85,
0, 7, 88,
0, 10, 91,
0, 14, 94,
0, 19, 98,
0, 22, 100,
0, 25, 103,
0, 28, 106,
0, 32, 109,
0, 35, 112,
0, 38, 116,
0... | 15.419769 | 39 | 0.484182 | h7ga40 |
3ed11a7a66441cc5b9a178f25561931f6c0df40f | 5,008 | cpp | C++ | src/ice/src/ice/net/service.cpp | qis/ice-coroutines | 30bb5fe7956e48230756db112ee71d6a1aa71202 | [
"MIT"
] | 2 | 2019-03-23T16:57:17.000Z | 2020-11-24T20:10:45.000Z | src/ice/src/ice/net/service.cpp | qis/ice-coroutines | 30bb5fe7956e48230756db112ee71d6a1aa71202 | [
"MIT"
] | null | null | null | src/ice/src/ice/net/service.cpp | qis/ice-coroutines | 30bb5fe7956e48230756db112ee71d6a1aa71202 | [
"MIT"
] | null | null | null | #include "ice/net/service.hpp"
#include <ice/error.hpp>
#include <ice/net/event.hpp>
#include <vector>
#include <cassert>
#include <ctime>
#if ICE_OS_WIN32
# include <windows.h>
# include <winsock2.h>
#else
# if ICE_OS_LINUX
# include <sys/epoll.h>
# include <sys/eventfd.h>
# elif ICE_OS_FREEBSD
# include... | 25.292929 | 113 | 0.646765 | qis |
3ed646ff1b7510c69a2b47bdc86e7c5a81e66083 | 17,659 | hpp | C++ | Ipopt-3.2.1/Ipopt/examples/ScalableProblems/MittelmannBndryCntrlNeum.hpp | FredericLiu/CarND-MPC-P5 | e4c68920edd0468ae73357864dde6d61bc1c4205 | [
"MIT"
] | null | null | null | Ipopt-3.2.1/Ipopt/examples/ScalableProblems/MittelmannBndryCntrlNeum.hpp | FredericLiu/CarND-MPC-P5 | e4c68920edd0468ae73357864dde6d61bc1c4205 | [
"MIT"
] | null | null | null | Ipopt-3.2.1/Ipopt/examples/ScalableProblems/MittelmannBndryCntrlNeum.hpp | FredericLiu/CarND-MPC-P5 | e4c68920edd0468ae73357864dde6d61bc1c4205 | [
"MIT"
] | null | null | null | // Copyright (C) 2005, 2006 International Business Machines and others.
// All Rights Reserved.
// This code is published under the Common Public License.
//
// $Id: MittelmannBndryCntrlNeum.hpp 759 2006-07-07 03:07:08Z andreasw $
//
// Authors: Andreas Waechter IBM 2005-10-18
// based on... | 30.818499 | 96 | 0.652075 | FredericLiu |
3ed857c981698a26f97bf209304c7bfbf3006fda | 301 | cpp | C++ | atcoder/abc081/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 8 | 2020-12-23T07:54:53.000Z | 2021-11-23T02:46:35.000Z | atcoder/abc081/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2020-11-07T13:22:29.000Z | 2020-12-20T12:54:00.000Z | atcoder/abc081/A/main.cpp | xirc/cp-algorithm | 89c67cff2f00459c5bb020ab44bff5ae419a1728 | [
"Apache-2.0"
] | 1 | 2021-01-16T03:40:10.000Z | 2021-01-16T03:40:10.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
string S;
cin >> S;
int count = 0;
for (auto c : S) {
if (c == '1') ++count;
}
cout << count << endl;
return 0;
} | 15.842105 | 37 | 0.518272 | xirc |
3eddf8426a021bc2fc0d94415a8a9df10e934c7e | 8,769 | cpp | C++ | src/lib/Output.cpp | alexkorochkin/mcray | 2cfa58d2cd6f872612f6396d65781ad83211c06c | [
"MIT"
] | 7 | 2020-12-16T08:23:31.000Z | 2022-01-15T22:56:26.000Z | src/lib/Output.cpp | alexkorochkin/mcray | 2cfa58d2cd6f872612f6396d65781ad83211c06c | [
"MIT"
] | null | null | null | src/lib/Output.cpp | alexkorochkin/mcray | 2cfa58d2cd6f872612f6396d65781ad83211c06c | [
"MIT"
] | 2 | 2020-12-16T08:23:34.000Z | 2022-01-10T21:05:54.000Z | /*
* Output.cpp
*
* Author:
* Oleg Kalashev
*
* Copyright (c) 2020 Institute for Nuclear Research, RAS
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, i... | 31.317857 | 179 | 0.670886 | alexkorochkin |
3edf417f411114268d513802deda9e5558814bb5 | 259 | cc | C++ | test/spsc_queue_test_bm.cc | orientye/orientnet | 0a3d6fad1fbf6896b60fd9fe8157cc8599dbd0cc | [
"MIT"
] | 5 | 2020-09-23T00:19:58.000Z | 2021-03-24T11:13:27.000Z | test/spsc_queue_test_bm.cc | orientye/orientnet | 0a3d6fad1fbf6896b60fd9fe8157cc8599dbd0cc | [
"MIT"
] | null | null | null | test/spsc_queue_test_bm.cc | orientye/orientnet | 0a3d6fad1fbf6896b60fd9fe8157cc8599dbd0cc | [
"MIT"
] | null | null | null | // Copyright (c) 2021 The orientnet Authors. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "util/concurrent/spsc_queue.h"
| 43.166667 | 77 | 0.764479 | orientye |
3ee200db8752b3ff03988c3cf42742cb71cd1fcc | 39 | hpp | C++ | src/boost_vmd_is_empty_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_vmd_is_empty_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_vmd_is_empty_list.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/vmd/is_empty_list.hpp>
| 19.5 | 38 | 0.794872 | miathedev |
3ee48bfa21f9c248217abd0c95a5b28d58a00904 | 64,451 | cxx | C++ | src/ptlib/common/object.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | src/ptlib/common/object.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | src/ptlib/common/object.cxx | sverdlin/opalvoip-ptlib | f6e144cba6a94c2978b9a4dbe0df2f5d53bed3be | [
"Beerware"
] | null | null | null | /*
* object.cxx
*
* Global object support.
*
* Portable Windows Library
*
* Copyright (c) 1993-1998 Equivalence Pty. Ltd.
*
* The contents of this file are subject to the Mozilla Public License
* Version 1.0 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a ... | 26.072411 | 153 | 0.608028 | sverdlin |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.