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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7012189fb103117335311dd68c75f8d7c805025f | 1,873 | hpp | C++ | engine/src/Debug/Debug.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | engine/src/Debug/Debug.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | engine/src/Debug/Debug.hpp | aleksigron/graphics-toolkit | f8e60c57316a72dff9de07512e9771deb3799208 | [
"MIT"
] | null | null | null | #pragma once
#include "Core/Optional.hpp"
#include "Core/StringView.hpp"
#include "Math/Vec2.hpp"
class Allocator;
class AllocatorManager;
class RenderDevice;
class MeshManager;
class ShaderManager;
class TextureManager;
class Window;
class Renderer;
class World;
class Framebuffer;
class DebugVectorRenderer;
class ... | 19.715789 | 107 | 0.787507 | aleksigron |
7013d7e4491aefbb8257cfbd44a9ac03a75e2717 | 1,926 | cpp | C++ | src/v_0_2_.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | 1 | 2018-05-21T22:50:33.000Z | 2018-05-21T22:50:33.000Z | src/v_0_2_.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | null | null | null | src/v_0_2_.cpp | heyfaraday/CMBcpp2 | 1038c37b535fc631272b6313e5b4b401188be5e3 | [
"MIT"
] | 1 | 2022-02-13T04:26:45.000Z | 2022-02-13T04:26:45.000Z | #include <iostream>
#include <fstream>
#include <chealpix.h>
#include <cmath>
#include <fft.hpp>
#include <utils.hpp>
#include <parameters.hpp>
#include "constants.hpp"
#include <io.hpp>
#include "pml.hpp"
#include "aml.hpp"
#include "functionals.hpp"
int main() {
typedef std::numeric_limits<long double> dbl;
... | 32.1 | 131 | 0.671859 | heyfaraday |
701409f837231ba9f179f039f4939e9751c8b212 | 8,395 | cpp | C++ | libs/math/test/test_ellint_2.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 11 | 2015-07-12T13:04:52.000Z | 2021-05-30T23:23:46.000Z | libs/math/test/test_ellint_2.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | null | null | null | libs/math/test/test_ellint_2.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 3 | 2015-12-23T01:51:57.000Z | 2019-08-25T04:58:32.000Z | // Copyright Xiaogang Zhang 2006
// Copyright John Maddock 2006, 2007
// Copyright Paul A. Bristow 2007
// Use, modification and distribution are subject to the
// Boost Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <pc... | 39.046512 | 163 | 0.663848 | zyiacas |
701eff9ab6dd545f19cedc88963bcf1237f342e9 | 4,793 | hpp | C++ | include/LiveProfiler/Utils/Platform/Linux/LinuxPerfEntry.hpp | cpv-project/live-profiler | 1ee3e2a8fa4de5c17d834ceaf69e63917e40093c | [
"MIT"
] | 19 | 2017-11-29T09:11:12.000Z | 2022-03-01T16:33:46.000Z | include/LiveProfiler/Utils/Platform/Linux/LinuxPerfEntry.hpp | cpv-project/live-profiler | 1ee3e2a8fa4de5c17d834ceaf69e63917e40093c | [
"MIT"
] | 9 | 2017-12-06T03:21:40.000Z | 2018-08-23T10:41:29.000Z | include/LiveProfiler/Utils/Platform/Linux/LinuxPerfEntry.hpp | cpv-project/live-profiler | 1ee3e2a8fa4de5c17d834ceaf69e63917e40093c | [
"MIT"
] | 7 | 2017-11-29T11:13:11.000Z | 2019-12-18T22:21:51.000Z | #pragma once
#include <unistd.h>
#include <linux/perf_event.h>
#include <sys/mman.h>
#include <vector>
#include <cassert>
namespace LiveProfiler {
/**
* Class contains perf_events releated data.
* MMAP layout:
* - first page, type is perf_event_mmap_page*
* - ring buffer, element size is indeterminate
* mma... | 29.95625 | 99 | 0.679115 | cpv-project |
70262ea85f74892cd3960b7dd81b853aa9170ac2 | 356 | cpp | C++ | src/guinyote.scripting.scripting_engine.cpp | germandiagogomez/tiny-modules-test | 177a8870922f82fa13235caa2c8500d1fd55fe71 | [
"MIT"
] | null | null | null | src/guinyote.scripting.scripting_engine.cpp | germandiagogomez/tiny-modules-test | 177a8870922f82fa13235caa2c8500d1fd55fe71 | [
"MIT"
] | null | null | null | src/guinyote.scripting.scripting_engine.cpp | germandiagogomez/tiny-modules-test | 177a8870922f82fa13235caa2c8500d1fd55fe71 | [
"MIT"
] | null | null | null | export module guinyote.scripting:scripting_engine;
import <iostream>;
namespace Guinyote::Scripting {
export class ScriptingEngine {
public:
friend std::ostream & operator<<(std::ostream & out, ScriptingEngine const&);
};
std::ostream & operator<<(std::ostream & out, ScriptingEngine const&) {
out << "Hello,... | 18.736842 | 81 | 0.705056 | germandiagogomez |
7029e17825bcc2856344aa089a79910394182a1a | 360 | hpp | C++ | Include/Oak/Platform/PlatformDetection.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null | Include/Oak/Platform/PlatformDetection.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null | Include/Oak/Platform/PlatformDetection.hpp | n-suudai/OakPlanet | fd13328ad97b87151bf3fafb00fc01440832393a | [
"MIT"
] | null | null | null |
#pragma once
#if defined(_WIN32) || defined(WIN32)
#include "Oak/Platform/OS/Win32.hpp"
#else
#error "this platform is not supported."
#endif
#ifndef DECL_MALLOC
#if defined(_MSC_VER)
#define DECL_MALLOC __declspec(restrict) __declspec(noalias)
#else // !defined(_MSC_VER)
#define DECL_MALLOC __attribute__((... | 13.333333 | 60 | 0.741667 | n-suudai |
702a11e001076b743640ccf658c0448aa5d4c149 | 9,617 | cpp | C++ | src/game/renderer.cpp | iscsi/space-shooter.c | b495459232fb3f6c0033b516509817b45e689f13 | [
"MIT"
] | 1,306 | 2021-07-29T21:22:31.000Z | 2022-03-26T03:06:26.000Z | src/game/renderer.cpp | iscsi/space-shooter.c | b495459232fb3f6c0033b516509817b45e689f13 | [
"MIT"
] | 16 | 2021-12-11T15:06:49.000Z | 2022-01-06T16:42:29.000Z | src/game/renderer.cpp | iscsi/space-shooter.c | b495459232fb3f6c0033b516509817b45e689f13 | [
"MIT"
] | 77 | 2021-12-10T07:04:20.000Z | 2022-03-07T09:20:11.000Z | ////////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2021 Tarek Sherif
//
// 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
// ... | 35.487085 | 100 | 0.705521 | iscsi |
7031c270c88ae2ee77fb667d3d765c650152fb22 | 111 | hpp | C++ | src/utility/htl_utility.hpp | hydah/fuck-cat | 6df58935d636927abfdd21a3c26bef25aebb3888 | [
"MIT"
] | null | null | null | src/utility/htl_utility.hpp | hydah/fuck-cat | 6df58935d636927abfdd21a3c26bef25aebb3888 | [
"MIT"
] | null | null | null | src/utility/htl_utility.hpp | hydah/fuck-cat | 6df58935d636927abfdd21a3c26bef25aebb3888 | [
"MIT"
] | null | null | null | #include <string>
std::string srs_string_replace(std::string str, std::string old_str, std::string new_str);
| 37 | 91 | 0.756757 | hydah |
7037d15bf0fe64050130968b5dd2020038f9b88f | 6,223 | cpp | C++ | PostfixToInt.cpp | samplec0de/StringCalculator | 88ca8ff044f43ebdde6a590d5582baea9d336c77 | [
"MIT"
] | 1 | 2022-01-17T21:45:01.000Z | 2022-01-17T21:45:01.000Z | PostfixToInt.cpp | samplec0de/StringCalculator | 88ca8ff044f43ebdde6a590d5582baea9d336c77 | [
"MIT"
] | null | null | null | PostfixToInt.cpp | samplec0de/StringCalculator | 88ca8ff044f43ebdde6a590d5582baea9d336c77 | [
"MIT"
] | 1 | 2020-04-19T19:04:53.000Z | 2020-04-19T19:04:53.000Z | //
// PostfixToInt.cpp
// Практикум #1 "Калькулятор"
//
// Created by Андрей Москалёв on 18/09/2019.
// Copyright © 2019 Андрей Москалёв. All rights reserved.
//
#include "PostfixToInt.hpp"
double get_variable_value(std::string key, size_t var_count, std::string var_index[], double var_value[]) {
if (key == "... | 34.381215 | 112 | 0.40977 | samplec0de |
70383792f608188c7887ae2b3b0be6e1346c0cbb | 945 | cpp | C++ | Engine/Source/Sapphire/Rendering/Framework/Primitives/Texture/Mipmap.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | 2 | 2020-03-18T09:06:21.000Z | 2020-04-09T00:07:56.000Z | Engine/Source/Sapphire/Rendering/Framework/Primitives/Texture/Mipmap.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | Engine/Source/Sapphire/Rendering/Framework/Primitives/Texture/Mipmap.cpp | SapphireSuite/Sapphire | f4ec03f2602eb3fb6ba8c5fa8abf145f66179a47 | [
"MIT"
] | null | null | null | // Copyright 2020 Sapphire development team. All Rights Reserved.
#include <Rendering/Framework/Primitives/Texture/Mipmap.hpp>
#include <Maths/Misc/Maths.hpp>
namespace Sa
{
//const uint32 Mipmap::minLevel = ComputeLevels(16u, 16u, 1);
uint32 Mipmap::ComputeLevels(const Vec2ui& _extent, uint32 _minLevel) noexcept... | 21.976744 | 104 | 0.689947 | SapphireSuite |
7038bbf2ab4fb5d251a0211c263ba64257a545d2 | 795 | cpp | C++ | cpp/14STL/03vector_of_vectors.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | cpp/14STL/03vector_of_vectors.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | cpp/14STL/03vector_of_vectors.cpp | yaswanthsaivendra/CP | 742ba2f89180f79837fb8b32ce43df215f7b7fa1 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int hourglassSum(vector<vector<int>> &arr)
{
vector<vector<int>> a;
int max = 0;
for (int i = 0; i < 4; i++)
{
for (int j = 0; j < 4; j++)
{
a[i][j] = arr[i][j] + arr[i][j + 1] + arr[i][j + 2] + arr[i + 1][j + 1] + arr[i + 2][j] ... | 20.384615 | 140 | 0.386164 | yaswanthsaivendra |
7039f28bf56d110b77775a5b37dbae7a1c6add8b | 982 | hpp | C++ | source/classes/circle.hpp | PeteTheN00b/programmiersprachen-aufgabenblatt-2 | 09daf6e6cdc7989dbdcd2e6c086592db6795dcab | [
"MIT"
] | null | null | null | source/classes/circle.hpp | PeteTheN00b/programmiersprachen-aufgabenblatt-2 | 09daf6e6cdc7989dbdcd2e6c086592db6795dcab | [
"MIT"
] | null | null | null | source/classes/circle.hpp | PeteTheN00b/programmiersprachen-aufgabenblatt-2 | 09daf6e6cdc7989dbdcd2e6c086592db6795dcab | [
"MIT"
] | null | null | null | #ifndef CIRCLE_HPP
#define CIRCLE_HPP
#include "../vec2.hpp"
#include "../color.hpp"
#include "../window.hpp"
//The difference between const-correctness in a Method and a Free Function, is that a const Method promises not to alter the object you are acting upon,
//while a Free Function isn't part of any object in th... | 28.882353 | 152 | 0.740326 | PeteTheN00b |
703a7a3737a1c16317429d8ef7abbe0b8b18de05 | 6,491 | cpp | C++ | indigo_libs/externals/libraw/samples/postprocessing_benchmark.cpp | polakovic/indigo | 177cb9cd02cff2f7193df653e7ff5ea9ea3e7093 | [
"RSA-MD"
] | null | null | null | indigo_libs/externals/libraw/samples/postprocessing_benchmark.cpp | polakovic/indigo | 177cb9cd02cff2f7193df653e7ff5ea9ea3e7093 | [
"RSA-MD"
] | null | null | null | indigo_libs/externals/libraw/samples/postprocessing_benchmark.cpp | polakovic/indigo | 177cb9cd02cff2f7193df653e7ff5ea9ea3e7093 | [
"RSA-MD"
] | null | null | null | /* -*- C++ -*-
* File: postprocessing_benchmark.cpp
* Copyright 2008-2021 LibRaw LLC (info@libraw.org)
* Created: Jul 13, 2011
*
* LibRaw simple C++ API: creates 8 different renderings from 1 source file.
The 1st and 4th one should be identical
LibRaw is free software; you can redistribute it and/or modify
it un... | 28.977679 | 80 | 0.569712 | polakovic |
703d63e830b172075c2c7196e2b4209ccebfa52d | 3,439 | hpp | C++ | saga/impl/packages/stream/stream_server.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | saga/impl/packages/stream/stream_server.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | saga/impl/packages/stream/stream_server.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | #ifndef SAGA_IMPL_PACKAGES_COMM_STREAM_STREAMSERVICE_HPP
#define SAGA_IMPL_PACKAGES_COMM_STREAM_STREAMSERVICE_HPP
#if defined(__WAVE__) && defined(SAGA_CREATE_PREPROCESSED_FILES)
#pragma wave option(preserve: 2, line: 0, output: "preprocessed/server.hpp")
#endif
// Copyright (c) 2005-2007 Andre Merzky (andre@merzky.n... | 32.140187 | 87 | 0.646409 | saga-project |
704081c7bfa7765d59da07bfb77f94ccffcb473c | 16,358 | cpp | C++ | OpenGL-Perspective_Projection/OpenGL-Perspective_Projection/main.cpp | WangJace/OpenGL-Learning | e6b45220ca9fcaa86b2971d8312cf0549760df6d | [
"MIT"
] | null | null | null | OpenGL-Perspective_Projection/OpenGL-Perspective_Projection/main.cpp | WangJace/OpenGL-Learning | e6b45220ca9fcaa86b2971d8312cf0549760df6d | [
"MIT"
] | null | null | null | OpenGL-Perspective_Projection/OpenGL-Perspective_Projection/main.cpp | WangJace/OpenGL-Learning | e6b45220ca9fcaa86b2971d8312cf0549760df6d | [
"MIT"
] | null | null | null | //
// main.cpp
// OpenGL-Perspective_Projection
//
// Created by 王傲云 on 2019/4/23.
// Copyright © 2019 Jace. All rights reserved.
//
#include "GLTools.h"
#include "GLMatrixStack.h"
#include "GLFrame.h"
#include "GLFrustum.h"
#include "GLGeometryTransForm.h"
#include "GLBatch.h"
#include <math.h>
#ifdef __APPLE__
... | 32.84739 | 147 | 0.607104 | WangJace |
7040d4aca4e622300d2c58e1a226478a7f429620 | 846,781 | cpp | C++ | sketch_common/fonts/shnm12_font.cpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | 1 | 2019-12-13T05:51:34.000Z | 2019-12-13T05:51:34.000Z | sketch_common/fonts/shnm12_font.cpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | null | null | null | sketch_common/fonts/shnm12_font.cpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | 1 | 2021-09-17T15:41:36.000Z | 2021-09-17T15:41:36.000Z | /*
* 東雲フォント
* http://openlab.ring.gr.jp/efont/shinonome/
* Licence
* Public Domain
*/
#include "shnm12_font.h"
// 1バイトコード
const uint8_t UTF8_1B_CODE_BITMAP[UTF8_1B_CODE_BITMAP_NUM][FONT_HALF_WIDTH * FONT_HEIGHT / 8] = {
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00},
{0x00, 0x82, 0x1C, 0x... | 112.558953 | 119 | 0.632298 | h7ga40 |
7045d08366a05e82928d29ee83b7098bd6bb7188 | 1,781 | cpp | C++ | arduino/OpenROV/CameraMount.cpp | MysteriousChanger/rov | 66b70081d864f91b15023dd36c108d032046102b | [
"MIT"
] | null | null | null | arduino/OpenROV/CameraMount.cpp | MysteriousChanger/rov | 66b70081d864f91b15023dd36c108d032046102b | [
"MIT"
] | null | null | null | arduino/OpenROV/CameraMount.cpp | MysteriousChanger/rov | 66b70081d864f91b15023dd36c108d032046102b | [
"MIT"
] | null | null | null | #include "AConfig.h"
#if(HAS_STD_CAMERAMOUNT)
#include "openrov_servo.h"
#include "Device.h"
#include "Pin.h"
#include "CameraMount.h"
#include "Settings.h"
#define F_CPU 16000000UL
#include <avr/io.h>
#include <avr/interrupt.h>
#include <Arduino.h>
#if(CAMERAMOUNT_PIN != 11) //use timer 1
Servo tilt;
#endif
int tilt... | 23.746667 | 76 | 0.656934 | MysteriousChanger |
704f69e7f9cadd8395b638abcc706bef25cf217f | 898 | cpp | C++ | src/walls.cpp | vzshi/pong | fc37e3888782a98dfa9870d99d8e0e9d2570bba1 | [
"MIT"
] | 2 | 2022-01-11T23:06:26.000Z | 2022-01-11T23:06:32.000Z | src/walls.cpp | vzshi/pong | fc37e3888782a98dfa9870d99d8e0e9d2570bba1 | [
"MIT"
] | null | null | null | src/walls.cpp | vzshi/pong | fc37e3888782a98dfa9870d99d8e0e9d2570bba1 | [
"MIT"
] | null | null | null | #include "walls.h"
Walls::Walls(SDL_Renderer* renderer, int screen_width, int screen_height)
{
this->renderer = renderer;
top = { 0, 0 - THICKNESS, screen_width, THICKNESS };
bottom = { 0, screen_height, screen_width, THICKNESS };
left = { 0 - THICKNESS, 0, THICKNESS, screen_height };
right = {screen_width, 0, T... | 17.269231 | 73 | 0.682628 | vzshi |
705212364c5ef2cfff19df60dec51995396adabc | 208 | cpp | C++ | 2021/12. Classes/20311016/2. Rational/2. Rational.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 7 | 2021-03-24T16:30:45.000Z | 2022-03-27T09:02:15.000Z | 2021/12. Classes/20311016/2. Rational/2. Rational.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | null | null | null | 2021/12. Classes/20311016/2. Rational/2. Rational.cpp | RumiChausheva/CS104 | 95f4df990f1a9d1397fc7da7cf137aa092498ea1 | [
"MIT"
] | 17 | 2021-03-22T09:42:22.000Z | 2022-03-28T03:24:07.000Z | #include <iostream>
#include "rational.h"
int main()
{
rational A(1, 4), B(2, 6);
rational C = A + B;
A.print();
std::cout << " + ";
B.print();
std::cout << " = ";
C.print();
} | 13 | 30 | 0.456731 | RumiChausheva |
705261091034c24cfcf0ef442ce947849403e5a4 | 1,300 | cpp | C++ | BOJ_solve/5475.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 4 | 2021-01-27T11:51:30.000Z | 2021-01-30T17:02:55.000Z | BOJ_solve/5475.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | null | null | null | BOJ_solve/5475.cpp | python-programmer1512/Code_of_gunwookim | e72e6724fb9ee6ccf2e1064583956fa954ba0282 | [
"MIT"
] | 5 | 2021-01-27T11:46:12.000Z | 2021-05-06T05:37:47.000Z | #include <bits/stdc++.h>
#define x first
#define y second
#define pb push_back
#define all(v) v.begin(),v.end()
#pragma gcc optimize("O3")
#pragma gcc optimize("Ofast")
#pragma gcc optimize("unroll-loops")
using namespace std;
const int INF = 1e9;
const int TMX = 1 << 18;
const long long llINF = 1e16;
const long long ... | 22.807018 | 148 | 0.577692 | python-programmer1512 |
705cc4ab126432c5932f15f24d2ae71504d0324c | 13,530 | cpp | C++ | face_module/src/FaceDete.cpp | onefacepass/face_recognition | 1644d4563e400cca597f633f20de94d83bb82954 | [
"MIT"
] | null | null | null | face_module/src/FaceDete.cpp | onefacepass/face_recognition | 1644d4563e400cca597f633f20de94d83bb82954 | [
"MIT"
] | 1 | 2019-06-05T14:38:34.000Z | 2019-06-05T14:39:48.000Z | face_module/src/FaceDete.cpp | onefacepass/face_recognition | 1644d4563e400cca597f633f20de94d83bb82954 | [
"MIT"
] | 5 | 2019-06-03T14:41:43.000Z | 2019-09-10T01:25:01.000Z | #include "../inc/FaceDete.h"
FaceDete::FaceDete() :
APPID(), SDKKey()
{
SetAPPID("a4e18xLPPvPkB76rXtYM5GVraNduE3Q7vUnGPFLfhSj");
SetSDKKey("Fbu8Y5KNdMGpph8MrJc4GWceasdTeoGuCx3Qd4oRP6vs");
if (Activation()) {
cerr <<"Activation() failed."<< endl;
}
if (InitEngine()) {
cerr << "InitEngine() failed." << endl;... | 26.322957 | 132 | 0.679157 | onefacepass |
7061837142372d16a9555ec7d158dcf5869f2ee9 | 2,248 | cpp | C++ | alias_samples.cpp | alexismailov2/FastDFM | 2628d0296f35264655d1245f3648e84589b99148 | [
"MIT"
] | null | null | null | alias_samples.cpp | alexismailov2/FastDFM | 2628d0296f35264655d1245f3648e84589b99148 | [
"MIT"
] | null | null | null | alias_samples.cpp | alexismailov2/FastDFM | 2628d0296f35264655d1245f3648e84589b99148 | [
"MIT"
] | null | null | null | //
// Created by Arnie on 2017-01-15.
//
#include "alias_samples.h"
static const float eps = numeric_limits<float>::epsilon();
vector<size_t> AliasSamples::get_samples(size_t num_samples) const {
vector<size_t> ret(num_samples);
if (table.empty()) {
cout << "Alias Tables haven't been initialized";
return... | 24.977778 | 73 | 0.592082 | alexismailov2 |
7062606c9c51ca65f3724ea322530987e16ce2ee | 1,177 | hpp | C++ | pizmidi/midiFingered/midiFingered.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiFingered/midiFingered.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | null | null | null | pizmidi/midiFingered/midiFingered.hpp | nonameentername/pizmidi | a985e3d2bf8f02e3c0a87300dfbb82c35608bbd2 | [
"BSD-Source-Code"
] | 1 | 2021-01-26T12:25:01.000Z | 2021-01-26T12:25:01.000Z | /*-----------------------------------------------------------------------------
midiFingered
by Reuben Vinal
-----------------------------------------------------------------------------*/
#ifndef __MIDIFINGERED_H
#define __MIDIFINGERED_H
#include "../common/PizMidi.h"
enum
{
kPower,
kChannel,
kNumParams,
... | 26.155556 | 106 | 0.657604 | nonameentername |
7063be678f9036600985592667fcdc6b37f6dd95 | 1,086 | cpp | C++ | libs/actor/example/link/main.cpp | nousxiong/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 118 | 2015-01-24T01:16:46.000Z | 2022-03-09T07:31:21.000Z | libs/actor/example/link/main.cpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 1 | 2015-09-24T13:03:11.000Z | 2016-12-24T04:00:59.000Z | libs/actor/example/link/main.cpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 30 | 2015-03-12T09:21:45.000Z | 2021-12-15T01:55:08.000Z | ///
/// Copyright (c) 2009-2014 Nous Xiong (348944179 at qq dot com)
///
/// Distributed under the Boost Software License, Version 1.0. (See accompanying
/// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
///
/// See https://github.com/nousxiong/gce for latest version.
///
#include <gce... | 22.625 | 81 | 0.640884 | nousxiong |
7066abe22eb1d5c3fd6f7d9c0ceac03524d3dcc2 | 696 | hpp | C++ | include/RED4ext/Types/generated/game/audio/BreathingSubSystem.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/game/audio/BreathingSubSystem.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/game/audio/BreathingSubSystem.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/Types/generated/game/audio/ISoundComponentSubSystem.hpp>
namespace RED4ext
{
namespace game::audio {
struct BreathingS... | 26.769231 | 74 | 0.74569 | Cyberpunk-Extended-Development-Team |
7067dfeadb148b99b465c1ca4d296bdd69722f8c | 2,564 | cpp | C++ | ElectruxShorthandInterpretedLanguage/src/Executor.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | ElectruxShorthandInterpretedLanguage/src/Executor.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | ElectruxShorthandInterpretedLanguage/src/Executor.cpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #include <iostream>
#include <string>
#include <vector>
#include <map>
#include "../include/Errors.hpp"
#include "../include/DataTypes.hpp"
#include "../include/Vars.hpp"
#include "../include/Functions.hpp"
#include "../include/LineTypeIncs.hpp"
#include "../include/Executor.hpp"
ErrorTypes ExecuteAll( const std::ve... | 36.112676 | 118 | 0.635335 | Electrux |
0ad49ac0536aec537ab5291bf51f33690bad7665 | 731 | cpp | C++ | String/ReverseWordsInAString/ReverseWordsInAString.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | 2 | 2015-08-28T03:52:05.000Z | 2015-09-03T09:54:40.000Z | String/ReverseWordsInAString/ReverseWordsInAString.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | String/ReverseWordsInAString/ReverseWordsInAString.cpp | yijingbai/LeetCode | 6ae6dbdf3a720b4206323401a0ed16ac2066031e | [
"MIT"
] | null | null | null | #include <iostream>
using std::string;
class Solution {
public:
void reverseWords(string &s) {
string answer;
int prev = s.size();
for (int i = s.size() - 1; i >= 0; i--) {
if (' ' == s[i]) {
prev = i;
} else if (' ' == s[i - 1] || i == 0) {
... | 22.151515 | 57 | 0.343365 | yijingbai |
0ad542415e901f6f01b8367df01dc4e362a41e58 | 3,269 | cpp | C++ | src/module/ModuleBuilder.cpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 2 | 2019-10-05T06:51:49.000Z | 2020-10-11T11:20:59.000Z | src/module/ModuleBuilder.cpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | 24 | 2019-06-19T21:33:23.000Z | 2020-10-04T11:36:41.000Z | src/module/ModuleBuilder.cpp | mathieunassar/ghostmodule | 8e9a9e958ec3cfa3494b49211920e3f669a9c8bd | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Mathieu Nassar
*
* 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 ... | 29.45045 | 112 | 0.755277 | mathieunassar |
0ad6a178276d929d49e6f55d6d1e6ead0d6c2adc | 6,343 | cc | C++ | dune/gdt/test/spaces/spaces_l2_discontinuous_galerkin__simplicial_grids__scalar.cc | pymor/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 4 | 2018-10-12T21:46:08.000Z | 2020-08-01T18:54:02.000Z | dune/gdt/test/spaces/spaces_l2_discontinuous_galerkin__simplicial_grids__scalar.cc | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 154 | 2016-02-16T13:50:54.000Z | 2021-12-13T11:04:29.000Z | dune/gdt/test/spaces/spaces_l2_discontinuous_galerkin__simplicial_grids__scalar.cc | dune-community/dune-gdt | fabc279a79e7362181701866ce26133ec40a05e0 | [
"BSD-2-Clause"
] | 5 | 2016-03-02T10:11:20.000Z | 2020-02-08T03:56:24.000Z | // This file is part of the dune-gdt project:
// https://github.com/dune-community/dune-gdt
// Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/lice... | 40.660256 | 117 | 0.871197 | pymor |
0add58e0422f974f65f8301a0e1edbe054002ba1 | 2,294 | cpp | C++ | deps/vision/src/backend/VExternalGroundStore.cpp | MichaelJCaruso/vision-xa-nodejs-connect | ef13ccc2730bf1db07cb44106dfcfd020d843d82 | [
"BSD-3-Clause"
] | 30 | 2016-10-07T15:23:35.000Z | 2020-03-25T20:01:30.000Z | src/backend/VExternalGroundStore.cpp | MichaelJCaruso/vision-software-src-master | 12b1b4f12a7531fe6e3cbb6861b40ac8e1985b92 | [
"BSD-3-Clause"
] | 30 | 2016-10-31T19:48:08.000Z | 2021-04-28T01:31:53.000Z | software/src/master/src/backend/VExternalGroundStore.cpp | c-kuhlman/vision | 46b25f7c0da703c059acc8f0a2eac1d5badf9f6d | [
"BSD-3-Clause"
] | 15 | 2016-10-07T16:44:13.000Z | 2021-06-21T18:47:55.000Z | /***** VExternalGroundStore Implementation *****/
/************************
************************
***** Interfaces *****
************************
************************/
/********************
***** System *****
********************/
#include "Vk.h"
/******************
***** Self *****
*********... | 25.208791 | 110 | 0.377071 | MichaelJCaruso |
0ae535e7b5ed38fa5e2a5df7a9d4e05934395ad7 | 3,612 | cc | C++ | mace/runtimes/runtime_registry.cc | gasgallo/mace | 96b4089e2323d9af119f9f2eda51976ac19ae6c4 | [
"Apache-2.0"
] | null | null | null | mace/runtimes/runtime_registry.cc | gasgallo/mace | 96b4089e2323d9af119f9f2eda51976ac19ae6c4 | [
"Apache-2.0"
] | null | null | null | mace/runtimes/runtime_registry.cc | gasgallo/mace | 96b4089e2323d9af119f9f2eda51976ac19ae6c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2020 The MACE Authors. All Rights Reserved.
//
// 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 appl... | 33.444444 | 79 | 0.772702 | gasgallo |
0aed11e435e20b217dc1286726ca4ebc3868c213 | 12,773 | hpp | C++ | includes/zab/descriptor_notifications.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | includes/zab/descriptor_notifications.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | includes/zab/descriptor_notifications.hpp | HungMingWu/zab | 9e9fd78d192b4d037a6edbbd4c1474bd6e01feaf | [
"MIT"
] | null | null | null | /*
* MMM"""AMV db `7MM"""Yp,
* M' AMV ;MM: MM Yb
* ' AMV ,V^MM. MM dP
* AMV ,M `MM MM"""bg.
* AMV , AbmmmqMA MM `Y
* AMV ,M A' VML MM ,9
* AMVmmmmMM .AMA. .AMMA..JMMmmmd9
*
*
* MIT License
*
* Copyright (c) 2021... | 34.152406 | 100 | 0.40429 | HungMingWu |
0aef5526f85265f5686d018b1aad5c86e08e5d0f | 25,069 | cpp | C++ | pgadmin/schema/pgIndex.cpp | jcjc79/pgadmin3 | be0f94786bf5b8138c9e6ec1b0b295308f8f89b6 | [
"OLDAP-2.2.1"
] | 5 | 2019-09-18T08:05:31.000Z | 2021-04-26T03:05:52.000Z | pgadmin/schema/pgIndex.cpp | theory/pgadmin3 | 5eeee31f8c4f42907b1edf1a6984cdee7323ddaa | [
"PostgreSQL"
] | null | null | null | pgadmin/schema/pgIndex.cpp | theory/pgadmin3 | 5eeee31f8c4f42907b1edf1a6984cdee7323ddaa | [
"PostgreSQL"
] | 4 | 2020-03-04T09:50:13.000Z | 2021-02-02T03:28:04.000Z | //////////////////////////////////////////////////////////////////////////
//
// pgAdmin III - PostgreSQL Tools
//
// Copyright (C) 2002 - 2013, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
// pgIndex.cpp - Index class
//
/////////////////////////////////////////////////////... | 33.292165 | 244 | 0.635566 | jcjc79 |
0af8735a0ad57ef0863fa734864cb8860e5cb03e | 650 | cpp | C++ | AudioSynthesis/synthetizerflowview.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | 1 | 2021-09-03T11:06:45.000Z | 2021-09-03T11:06:45.000Z | AudioSynthesis/synthetizerflowview.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | null | null | null | AudioSynthesis/synthetizerflowview.cpp | eliasrm87/AudioSynthesisQt | feb05c74d85494300d0fca868a37015042ec74c8 | [
"Unlicense"
] | 2 | 2021-09-03T11:06:53.000Z | 2021-09-03T11:07:25.000Z | #include "synthetizerflowview.h"
#include <AudioNodes/audionodes.h>
SynthetizerFlowView::SynthetizerFlowView(QWidget *parent) :
DataFlowView(parent)
{
}
void SynthetizerFlowView::addNode(Node *node)
{
DataFlowView::addNode(node);
}
Node *SynthetizerFlowView::newNodeFromJson(const QJsonObject &obj)
{
QSt... | 22.413793 | 66 | 0.683077 | eliasrm87 |
0afbb14b6809722653578e416d73682dd45a47ee | 232,139 | hpp | C++ | Lib/Chip/Unknown/Atmel/ATSAMA5D35/DMAC0.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/Atmel/ATSAMA5D35/DMAC0.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | Lib/Chip/Unknown/Atmel/ATSAMA5D35/DMAC0.hpp | operativeF/Kvasir | dfbcbdc9993d326ef8cc73d99129e78459c561fd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <Register/Utility.hpp>
namespace Kvasir {
//DMA Controller 0
namespace Dmac0Gcfg{ ///<DMAC Global Configuration Register
using Addr = Register::Address<0xffffe600,0xfffffeef,0x00000000,std::uint32_t>;
///Arbiter Configuration
enum class ArbcfgVal {
fixed... | 78.266689 | 223 | 0.703402 | operativeF |
e403a28c865100513636fbe94a4eb975689e9dcb | 2,600 | cc | C++ | srcs/apt-1.0.9.2/test/libapt/commandline_test.cc | Ziul/tcc1 | 97dc2b9afcd6736aa8158066b95a698301629543 | [
"CC-BY-3.0"
] | null | null | null | srcs/apt-1.0.9.2/test/libapt/commandline_test.cc | Ziul/tcc1 | 97dc2b9afcd6736aa8158066b95a698301629543 | [
"CC-BY-3.0"
] | 2 | 2015-11-21T02:30:20.000Z | 2015-11-21T02:30:35.000Z | srcs/apt-1.0.9.2/test/libapt/commandline_test.cc | Ziul/tcc1 | 97dc2b9afcd6736aa8158066b95a698301629543 | [
"CC-BY-3.0"
] | null | null | null | #include <config.h>
#include <apt-pkg/cmndline.h>
#include <apt-pkg/configuration.h>
#include <gtest/gtest.h>
class CLT: public CommandLine {
public:
std::string static AsString(const char * const * const argv,
unsigned int const argc) {
std::string const static conf = "Commandline::AsString";
_con... | 29.545455 | 140 | 0.603462 | Ziul |
e406732cfc3318c9cd19745391ac09cb209165e6 | 3,422 | cpp | C++ | src/DescentTest/src/DescentEngine/PhysicsTest.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | 1 | 2017-11-24T03:01:31.000Z | 2017-11-24T03:01:31.000Z | src/DescentTest/src/DescentEngine/PhysicsTest.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | null | null | null | src/DescentTest/src/DescentEngine/PhysicsTest.cpp | poseidn/KungFoo-legacy | 9b79d65b596acc9dff4725ef5bfab8ecc4164afb | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <gtest/gtest.h>
#include "Support/TestEntity.h"
#include <DescentEngine/src/EntityEngine/Entity.h>
#include <DescentEngine/src/Physics/PhysicsEngine.h>
TEST(Physics, startAndShutdown) {
PhysicsEngine phyEg;
}
TEST(Physics, moveEntity) {
PhysicsEngine phyEg;
Vector... | 29 | 90 | 0.72969 | poseidn |
e408a20910a8e799b4e5bd69b3cf20598cbd33d3 | 874 | hpp | C++ | include/SAMPCpp/Everything.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | null | null | null | include/SAMPCpp/Everything.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | null | null | null | include/SAMPCpp/Everything.hpp | PoetaKodu/samp-cpp | dbd5170efe0c799d1ec902e2b8a385596a5303a8 | [
"MIT"
] | 1 | 2021-06-10T22:59:53.000Z | 2021-06-10T22:59:53.000Z | #pragma once
#include SAMPCPP_PCH
#include <SAMPCpp/SAMP/Player.hpp>
#include <SAMPCpp/SAMP/Vehicle.hpp>
#include <SAMPCpp/SAMP/Object.hpp>
#include <SAMPCpp/SAMP/PlayerObject.hpp>
#include <SAMPCpp/SAMP/Pickup.hpp>
#include <SAMPCpp/SAMP/Menu.hpp>
#include <SAMPCpp/SAMP/TextLabel3D.hpp>
#include <SAMPCpp/SAMP/TextDr... | 30.137931 | 41 | 0.778032 | PoetaKodu |
e40a092340e9a0cfe2289f9a93fecb4b2f9b0338 | 1,709 | cpp | C++ | Visual C++/QCMAide/QCMAideDoc.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/QCMAide/QCMAideDoc.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | Visual C++/QCMAide/QCMAideDoc.cpp | manimanis/Intranet | 9cd4da01641212f18c710ae721bc48c8eadc4a28 | [
"MIT"
] | null | null | null | // QCMAideDoc.cpp : implementation of the CQCMAideDoc class
//
#include "stdafx.h"
#include "QCMAide.h"
#include "QCMAideDoc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CQCMAideDoc... | 18.78022 | 77 | 0.561732 | manimanis |
e40e060f6b4b9f522bd7851ac29d8d0972f9c3cf | 1,362 | cpp | C++ | Input.cpp | mateoi/Threes | 04619dc1b1c4995dad8d2f6703fc8473bee46d54 | [
"MIT"
] | null | null | null | Input.cpp | mateoi/Threes | 04619dc1b1c4995dad8d2f6703fc8473bee46d54 | [
"MIT"
] | null | null | null | Input.cpp | mateoi/Threes | 04619dc1b1c4995dad8d2f6703fc8473bee46d54 | [
"MIT"
] | null | null | null | #include "Input.hpp"
using namespace std;
/**
* Asks the user to input a number between min and max.
*/
int userInput(int min, int max) {
int result = min - 1;
string input;
while (getline(cin, input)) {
if (stringstream(input) >> result) {
if (result >= min && result <= max)
... | 24.763636 | 92 | 0.473568 | mateoi |
e412c7e211a7760884952a94bb063390042529b2 | 857 | cpp | C++ | subjectplayer.cpp | Ashwin-Parivallal/2D-fighting-game-C- | 484093edf9f1b178ecea321d9085431541007034 | [
"MIT"
] | null | null | null | subjectplayer.cpp | Ashwin-Parivallal/2D-fighting-game-C- | 484093edf9f1b178ecea321d9085431541007034 | [
"MIT"
] | null | null | null | subjectplayer.cpp | Ashwin-Parivallal/2D-fighting-game-C- | 484093edf9f1b178ecea321d9085431541007034 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include "subjectplayer.h"
SubjectPlayer::~SubjectPlayer() {
delete player2;
}
SubjectPlayer::SubjectPlayer( const std::string& name1, const std::string& name2) :
Player(name1, true),
player2(new SmartPlayer(name2, false))
{ }
void SubjectPlayer::update(Uint32 ticks) {
P... | 21.425 | 83 | 0.715286 | Ashwin-Parivallal |
e41a8001986678f16aa11a3f8d7dc668ba153e1d | 3,352 | cpp | C++ | project/src/common/ColorTransform.cpp | delahee/lime | c4bc1ff140fa27c12f580fa3b518721e2a8266f2 | [
"MIT"
] | 1 | 2022-01-19T13:06:26.000Z | 2022-01-19T13:06:26.000Z | openfl_lime/src/common/ColorTransform.cpp | wannaphong/flappy | bc4630ca9120463c57c1d756c39c60a6dc509940 | [
"MIT"
] | 1 | 2020-11-17T00:58:59.000Z | 2020-11-17T00:58:59.000Z | openfl_lime/src/common/ColorTransform.cpp | wannaphong/flappy | bc4630ca9120463c57c1d756c39c60a6dc509940 | [
"MIT"
] | null | null | null | #include <Graphics.h>
#include <map>
namespace lime
{
static void CombineCol(double &outMultiplier, double &outOff, double inPMultiplier, double inPOff,
double inCMultiplier, double inCOff)
{
outMultiplier = inPMultiplier * inCMultiplier;
outOff = inPMultiplier * inCOff + inPOff;
}
void ColorTransform::C... | 22.198675 | 99 | 0.704952 | delahee |
e41af1e43d798f10575dfba9dc039248f02657be | 5,281 | cc | C++ | check/distance.cc | nicuveo/MCL | ce717de6ebc873b9d18ac0e3d3a8e10e83eb2386 | [
"MIT"
] | 5 | 2015-03-25T12:10:08.000Z | 2017-11-23T20:19:26.000Z | check/distance.cc | nicuveo/MCL | ce717de6ebc873b9d18ac0e3d3a8e10e83eb2386 | [
"MIT"
] | null | null | null | check/distance.cc | nicuveo/MCL | ce717de6ebc873b9d18ac0e3d3a8e10e83eb2386 | [
"MIT"
] | null | null | null | //
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// Includes
#include <cstdlib>
#include <iostream>
#include <boost/... | 62.129412 | 102 | 0.673736 | nicuveo |
e42707a77bc2db612fc15c088c53993191ba5d4f | 6,753 | cpp | C++ | assn2/Item.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 3 | 2016-11-04T20:18:46.000Z | 2019-04-22T05:00:03.000Z | assn2/Item.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 1 | 2016-11-04T20:23:25.000Z | 2016-11-04T20:23:45.000Z | assn2/Item.cpp | jrgoldfinemiddleton/cs162 | dea72d9219e748e15a5796177a6b018bcab7816e | [
"BSD-2-Clause"
] | 6 | 2015-12-25T16:14:46.000Z | 2019-04-22T05:00:04.000Z | /*********************************************************************
** Program Filename: Item.cpp
** Author: Jason Goldfine-Middleton
** Date: 10/10/15
** Description: Contains the Item class function declarations and
** a friend function to overload the << and ==
** operators.
** In... | 34.809278 | 71 | 0.48882 | jrgoldfinemiddleton |
e4273eb47f6be7f8babf73b0d8a6398443d6d9c0 | 270 | hpp | C++ | sprout/algorithm/random_swap.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | 1 | 2020-02-04T05:16:01.000Z | 2020-02-04T05:16:01.000Z | sprout/algorithm/random_swap.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | sprout/algorithm/random_swap.hpp | osyo-manga/Sprout | 8885b115f739ef255530f772067475d3bc0dcef7 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_ALGORITHM_RANDOM_SWAP_HPP
#define SPROUT_ALGORITHM_RANDOM_SWAP_HPP
#include <sprout/config.hpp>
#include <sprout/algorithm/fixed/random_swap.hpp>
#include <sprout/algorithm/fit/random_swap.hpp>
#endif // #ifndef SPROUT_ALGORITHM_RANDOM_SWAP_HPP
| 30 | 51 | 0.818519 | osyo-manga |
e4293bf9205d515b1ff8a60449af538553d6a2fe | 205 | hpp | C++ | Spiel/src/engine/collision/CoreSystemUniforms.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/collision/CoreSystemUniforms.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/collision/CoreSystemUniforms.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include "../../engine/math/Vec2.hpp"
struct PhysicsUniforms {
float friction{ 0 };
Vec2 linearEffectDir{ 0, 0 };
float linearEffectAccel{ 0 };
float linearEffectForce{ 0 };
private:
}; | 18.636364 | 37 | 0.697561 | Ipotrick |
e4295314b026a4b0dedd7510281a792208835205 | 753 | cpp | C++ | chapter-18/18.10.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-18/18.10.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | chapter-18/18.10.cpp | zero4drift/Cpp-Primer-5th-Exercises | d3d0f0d228e8c2c5a3b3fe1fd03ce34e0894e93f | [
"MIT"
] | null | null | null | #include <iostream>
#include "Sales_data.hpp"
#include "Sales_data_exception.hpp"
using std::cerr;
using std::endl;
using std::cin;
int main()
{
Sales_data item1, item2, sum;
while(cin >> item1 >> item2)
sum = item1 + item2;
// just like said in section 18.1.1
// for on throwed exception, if there is no ... | 20.916667 | 81 | 0.579017 | zero4drift |
e429fa09f0c9db13bdc07df1015b3a7300628c95 | 133 | cpp | C++ | UVA/level 2/1124 - Celebrity Jeopardy.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | 1 | 2020-04-13T11:12:19.000Z | 2020-04-13T11:12:19.000Z | UVA/level 2/1124 - Celebrity Jeopardy.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | UVA/level 2/1124 - Celebrity Jeopardy.cpp | lieahau/Online-Judge-Solution | 26d81d1783cbdd9294455f00b77fb3dbaedd0c01 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
char arr[100];
while(gets(arr))
{
puts(arr);
}
return 0;
}
| 10.230769 | 21 | 0.421053 | lieahau |
e42ad18b94fe05f9f5416be0d17f65fade18c723 | 6,685 | cpp | C++ | cmdstan/stan/src/test/unit/io/program_reader_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | 1 | 2018-05-15T16:13:05.000Z | 2018-05-15T16:13:05.000Z | cmdstan/stan/src/test/unit/io/program_reader_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/src/test/unit/io/program_reader_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/io/program_reader.hpp>
#include <gtest/gtest.h>
#include <iostream>
#include <sstream>
std::vector<std::string> create_search_path() {
std::vector<std::string> search_path;
search_path.push_back("foo");
search_path.push_back("src/test/test-models/included/");
search_path.push_back("bar/baz");
... | 30.949074 | 79 | 0.583994 | yizhang-cae |
e4374b836b2a6e1e4ceda604eef5dba640748804 | 10,512 | cpp | C++ | ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp | Bernie2019/ogs | 80b66724d72d8ce01e02ddcd1fb6866c90b41c1d | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp | Bernie2019/ogs | 80b66724d72d8ce01e02ddcd1fb6866c90b41c1d | [
"BSD-4-Clause"
] | null | null | null | ProcessLib/HeatTransportBHE/HeatTransportBHEProcess.cpp | Bernie2019/ogs | 80b66724d72d8ce01e02ddcd1fb6866c90b41c1d | [
"BSD-4-Clause"
] | 2 | 2018-03-01T13:07:12.000Z | 2018-03-01T13:16:22.000Z | /**
* \file
* \copyright
* Copyright (c) 2012-2019, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "HeatTransportBHEProcess.h"
#in... | 39.969582 | 91 | 0.664193 | Bernie2019 |
e438d20e1e888d06fa6ce1b7c3d92985fe8765f1 | 12,123 | cpp | C++ | DeviceCode/pal/tinycrt/tinycrt.cpp | yangjunjiao/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | 4 | 2019-01-21T11:47:53.000Z | 2020-06-09T02:14:15.000Z | DeviceCode/pal/tinycrt/tinycrt.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | null | null | null | DeviceCode/pal/tinycrt/tinycrt.cpp | yisea123/NetmfSTM32 | 62ddb8aa0362b83d2e73f3621a56593988e3620f | [
"Apache-2.0"
] | 4 | 2019-01-21T11:48:00.000Z | 2021-05-04T12:37:55.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
/////////////////////////////////////////////////////////... | 22.916824 | 200 | 0.554978 | yangjunjiao |
e43a079bc64f5a0fb30948cf7f7eae87fad85c77 | 623 | cpp | C++ | TestTicketSpinLock.cpp | zxylvlp/LockFree | ddc98968c8f944aac9f889d8eb8787a72fd87342 | [
"Apache-2.0"
] | null | null | null | TestTicketSpinLock.cpp | zxylvlp/LockFree | ddc98968c8f944aac9f889d8eb8787a72fd87342 | [
"Apache-2.0"
] | null | null | null | TestTicketSpinLock.cpp | zxylvlp/LockFree | ddc98968c8f944aac9f889d8eb8787a72fd87342 | [
"Apache-2.0"
] | null | null | null | #include "TicketSpinLock.h"
#include "vector"
#include "thread"
#include "iostream"
int main(void) {
TicketSpinLock ssl;
std::vector<std::thread> threads;
int num = 0;
for (int i=0;i<10;i++) {
std::thread t([i, &ssl, &num]{
num++;
while (num!=10) {
PAUSE()... | 22.25 | 44 | 0.431782 | zxylvlp |
e43b50b9abef0a0af5492404fd398da05e7ecaeb | 13,514 | hpp | C++ | Project/include/lak/color.hpp | LAK132/OpenGL-Trash | 9ddedf65792de78f642f47ad032b5027e4c390c1 | [
"MIT"
] | null | null | null | Project/include/lak/color.hpp | LAK132/OpenGL-Trash | 9ddedf65792de78f642f47ad032b5027e4c390c1 | [
"MIT"
] | null | null | null | Project/include/lak/color.hpp | LAK132/OpenGL-Trash | 9ddedf65792de78f642f47ad032b5027e4c390c1 | [
"MIT"
] | null | null | null | /*
MIT License
Copyright (c) 2018 Lucas Kleiss (LAK132)
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, merge, p... | 43.876623 | 122 | 0.665532 | LAK132 |
e443c38fd2846d4b76e488e91b30eb703f45d8a9 | 4,839 | cpp | C++ | src/racer/libu/rbutton.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/racer/libu/rbutton.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/racer/libu/rbutton.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* RButton - Racer GUI button
* 04-11-01: Created!
* NOTES:
* - An attempt to get a 3D polygon-type button, instead of the regular
* QLib buttons, but in the same framework to avoid coding a 2nd GUI.
* (c) Dolphinity/RvG
*/
#include <raceru/button.h>
#include <qlib/debug.h>
#pragma hdrstop
DEBUG_ENABLE
RButt... | 23.15311 | 74 | 0.624303 | 3dhater |
e449c0ecb937428e95bbf58132b7dac839f1d20d | 20,979 | cpp | C++ | src/vlCore/Say.cpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlCore/Say.cpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | src/vlCore/Say.cpp | zpc930/visualizationlibrary | c81fa75c720a3d04d295b977a1f5dc4624428b53 | [
"BSD-2-Clause"
] | null | null | null | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://www.visualizationlibrary.org ... | 21.298477 | 153 | 0.417465 | zpc930 |
e44d209461f833a0a5b7d53bb3448ed94fc4a6b0 | 8,625 | cpp | C++ | settings.cpp | sergrt/Gen61850Sv | ac4461ee0c755553e82be2513f635a6f92fb6f5d | [
"Apache-2.0"
] | 6 | 2017-08-29T08:35:32.000Z | 2021-07-10T07:56:56.000Z | settings.cpp | sergrt/Gen61850Sv | ac4461ee0c755553e82be2513f635a6f92fb6f5d | [
"Apache-2.0"
] | null | null | null | settings.cpp | sergrt/Gen61850Sv | ac4461ee0c755553e82be2513f635a6f92fb6f5d | [
"Apache-2.0"
] | 4 | 2016-04-11T05:14:54.000Z | 2022-01-20T16:16:30.000Z | #include "settings.h"
const QString iniName = "settings.ini";
CSettings::CSettings() {
signalShape = SGL_SHAPE_SIN;
signalAmplitudeUa =
signalAmplitudeUb =
signalAmplitudeUc =
signalAmplitudeUn =
signalAmplitudeIa =
signalAmplitudeIb =
... | 39.56422 | 110 | 0.688696 | sergrt |
e44d9ca7e2b6057a6e02f6a01cf0b7b68e8f2560 | 2,997 | cc | C++ | src/FSISPH/computeFSISPHSumMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/FSISPH/computeFSISPHSumMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/FSISPH/computeFSISPHSumMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #include "FSISPH/computeFSISPHSumMassDensity.hh"
#include "Field/FieldList.hh"
#include "Neighbor/ConnectivityMap.hh"
#include "Kernel/TableKernel.hh"
#include "NodeList/NodeList.hh"
namespace Spheral{
template<typename Dimension>
void
computeFSISPHSumMassDensity(const ConnectivityMap<Dimension>& connectivityMap,
... | 31.547368 | 93 | 0.616617 | jmikeowen |
e44f27d17673edae597c8ce4e344fe9e57bbc5d3 | 1,555 | cpp | C++ | UVa Online Judge/10148. Advertisement.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | UVa Online Judge/10148. Advertisement.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | UVa Online Judge/10148. Advertisement.cpp | nicoelayda/competitive-programming | 5b5452d8d2865a1a5f1e3d2fece011749722e8c4 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <map>
#include <set>
using namespace std;
struct jogger {
int a, b;
jogger(int a, int b) {
this->a = min(a, b);
this->b = max(a, b);
}
bool operator< (const jogger &other) const {
if (this->a == other.a)
... | 22.214286 | 76 | 0.379421 | nicoelayda |
e452128ef04b0ab829fb3f018d7ec43399ea82b6 | 1,318 | cpp | C++ | mcc/src/FunctionAccess.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | 2 | 2018-03-12T03:05:57.000Z | 2019-04-17T10:19:59.000Z | mcc/src/FunctionAccess.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | null | null | null | mcc/src/FunctionAccess.cpp | petrufm/mcc | 83d74c00a90971d5a1d5392878d8fd9351c3dfc6 | [
"MIT"
] | null | null | null | #include "FunctionAccess.h"
#include "MethodDeclaration.h"
#include "ConcreteTableColumn.h"
FunctionAccess::FunctionAccess(DataExtractor *next, ConcreteTableColumn *prototype, MethodDeclaration *condition):DataExtractor(next,prototype,condition) {};
TableColumn* FunctionAccess::handleExtraction(AbstractTree &tree) {
... | 33.794872 | 157 | 0.752656 | petrufm |
e4586678f34783972c84f2ac8b74ffa31190568f | 7,720 | cpp | C++ | src/iptv_utils_gst.cpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | 3 | 2020-09-16T01:45:01.000Z | 2021-11-02T14:34:45.000Z | src/iptv_utils_gst.cpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | null | null | null | src/iptv_utils_gst.cpp | karimdavoodi/iptv_out | ad1b3282456d42ec0ace4213e98a2014b648cfaf | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2020 Karim, karimdavoodi@gmail.com
*
* 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, mod... | 36.244131 | 89 | 0.6 | karimdavoodi |
e45a4370fc48147625ef2f9896c75782dcca1a2a | 371 | cpp | C++ | algo1.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | algo1.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | null | null | null | algo1.cpp | zyfjeff/utils_code | 034b1a0ff9ae4f7cebafdd7cfa464cc52119ab24 | [
"Apache-2.0"
] | 1 | 2020-02-21T17:16:50.000Z | 2020-02-21T17:16:50.000Z | #include <cinttypes>
#include <iostream>
#include <vector>
using namespace std;
int main(int argc,char* argv[])
{
using IntVector = vector<int32_t>;
using IntVectorIterator = IntVector::iterator;
IntVector myVector{0,1,2,3,4};
for(IntVectorIterator iter = myVector.begin();iter != myVector.end();++iter)
{
cout <<... | 19.526316 | 76 | 0.690027 | zyfjeff |
e45c25b3028f8f9ed1d5be6c8e61476c739e3814 | 1,836 | cpp | C++ | Cpp/fost-crypto/nonce.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 2 | 2016-05-25T22:17:38.000Z | 2019-04-02T08:34:17.000Z | Cpp/fost-crypto/nonce.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 5 | 2018-07-13T10:43:05.000Z | 2019-09-02T14:54:42.000Z | Cpp/fost-crypto/nonce.cpp | KayEss/fost-base | 05ac1b6a1fb672c61ba6502efea86f9c5207e28f | [
"BSL-1.0"
] | 1 | 2020-10-22T20:44:24.000Z | 2020-10-22T20:44:24.000Z | /**
Copyright 2016-2019 Red Anchor Trading Co. Ltd.
Distributed under the Boost Software License, Version 1.0.
See <http://www.boost.org/LICENSE_1_0.txt>
*/
#include "fost-crypto.hpp"
#include <fost/crypto.hpp>
#include <fost/nonce.hpp>
#include <chrono>
namespace {
template<std::size_t Size>
... | 29.142857 | 79 | 0.568083 | KayEss |
e45d3f6dc0f14d49a21d3f179d461e3e18c462f3 | 864 | cpp | C++ | node/kagome_validating/main.cpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | node/kagome_validating/main.cpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | node/kagome_validating/main.cpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include <iostream>
#include <boost/program_options.hpp>
#include "application/impl/app_config_impl.hpp"
#include "application/impl/validating_node_application.hpp"
#include "common/logger.hpp"
#include "outcome/outco... | 29.793103 | 80 | 0.756944 | FlorianFranzen |
e46a4cd5763ed0c8e946ea444eb45497226a1430 | 528 | cpp | C++ | src/Controller/AI/detail/Message.cpp | MajorArkwolf/Project-Blue-Engine | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | 1 | 2021-04-18T09:49:38.000Z | 2021-04-18T09:49:38.000Z | src/Controller/AI/detail/Message.cpp | MajorArkwolf/ICT397-Project-Blue | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | null | null | null | src/Controller/AI/detail/Message.cpp | MajorArkwolf/ICT397-Project-Blue | e5fc6416d0a41a1251f1b369047e0ea1097775da | [
"MIT"
] | 2 | 2020-06-13T15:24:01.000Z | 2021-04-15T20:25:49.000Z | /// Declaration Include
#include "Controller/AI/Message.hpp"
Message::Message() {
// Initialise the Message properties
sender = 0u;
type = Message_Type::Invalid;
attachment = 0.0f;
delay = 0u;
}
void Message::recipient_add(BlueEngine::ID identifier) {
// Call the set's operation
recipients.insert(identifier);... | 25.142857 | 74 | 0.729167 | MajorArkwolf |
e46b89d391f97faca24e780858b9bf4074338255 | 7,536 | hpp | C++ | rmf_building_sim_common/include/rmf_building_sim_common/door_common.hpp | xiyuoh/rmf_simulation | e0ee7e66a7fa782897e68426411ccedfd5546422 | [
"Apache-2.0"
] | 3 | 2021-02-25T21:51:52.000Z | 2022-03-24T01:47:49.000Z | rmf_building_sim_common/include/rmf_building_sim_common/door_common.hpp | xiyuoh/rmf_simulation | e0ee7e66a7fa782897e68426411ccedfd5546422 | [
"Apache-2.0"
] | 57 | 2021-04-05T01:36:03.000Z | 2022-03-31T03:43:59.000Z | rmf_building_sim_common/include/rmf_building_sim_common/door_common.hpp | xiyuoh/rmf_simulation | e0ee7e66a7fa782897e68426411ccedfd5546422 | [
"Apache-2.0"
] | 5 | 2021-05-21T06:58:06.000Z | 2021-09-28T19:59:04.000Z | /*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... | 28.330827 | 80 | 0.701699 | xiyuoh |
e47183860ddd47113a13f88397488792572e3ff4 | 1,576 | cpp | C++ | src/common/time/test/DurationBenchmark.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | 28 | 2019-12-19T08:39:39.000Z | 2022-01-30T01:56:01.000Z | src/common/time/test/DurationBenchmark.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | 156 | 2020-08-17T09:59:02.000Z | 2021-09-27T02:22:57.000Z | src/common/time/test/DurationBenchmark.cpp | linkensphere201/nebula-common-personal | e31b7e88326195a08ac0460fd469326455df6417 | [
"Apache-2.0"
] | 48 | 2020-08-17T09:13:11.000Z | 2021-12-06T08:10:09.000Z | /* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "common/base/Base.h"
#include <folly/Benchmark.h>
#include "common/time/Duration.h"
using nebula::time::Durati... | 29.185185 | 78 | 0.528553 | linkensphere201 |
e4762e03d173e208a01d7ef61a139d9fae4a78bb | 3,264 | cpp | C++ | examples/pframe/BitmapManager.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | 1 | 2015-10-31T09:01:16.000Z | 2015-10-31T09:01:16.000Z | examples/pframe/BitmapManager.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | null | null | null | examples/pframe/BitmapManager.cpp | bli19/stm32plus | fdf0b74bd8df95c4b0085e1e03b461ea5ca48d86 | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of the open source stm32plus library.
* Copyright (c) 2011,2012,2013 Andy Brown <www.andybrown.me.uk>
* Please see website for licensing terms.
*/
#include "stdafx.h"
/*
* Constructor
*/
BitmapManager::BitmapManager(LcdManager& lcdManager,FileSystemManager& fsManager)
: Initialiser(... | 18.337079 | 81 | 0.65625 | bli19 |
e47b547da11698f03ebc5cd751a47305d23f2958 | 2,039 | cpp | C++ | src/deferredreceiver.cpp | NotifAi/AMQP-CPP | 197011074557230a9a312b9e591bdc7136dd5bce | [
"Apache-2.0"
] | null | null | null | src/deferredreceiver.cpp | NotifAi/AMQP-CPP | 197011074557230a9a312b9e591bdc7136dd5bce | [
"Apache-2.0"
] | null | null | null | src/deferredreceiver.cpp | NotifAi/AMQP-CPP | 197011074557230a9a312b9e591bdc7136dd5bce | [
"Apache-2.0"
] | null | null | null | /**
* DeferredReceiver.cpp
*
* Implementation file for the DeferredReceiver class
*
* @copyright 2016 - 2018 Copernica B.V.
*/
/**
* Dependencies
*/
#include "amqpcpp/deferredreceiver.h"
#include "basicdeliverframe.h"
#include "basicgetokframe.h"
#include "basicheaderframe.h"
#include "bodyframe.h"
/**
*... | 19.990196 | 98 | 0.682197 | NotifAi |
6b04573ccd3b7864ae5318de2befbfb009a186ea | 831 | cpp | C++ | test/test_example.cpp | Expander/dilogarithm | ad86038206895ab5bff79a26294f4bb5c5634eb5 | [
"MIT"
] | 2 | 2017-05-04T14:47:41.000Z | 2017-08-02T13:13:45.000Z | test/test_example.cpp | Expander/dilogarithm | ad86038206895ab5bff79a26294f4bb5c5634eb5 | [
"MIT"
] | null | null | null | test/test_example.cpp | Expander/dilogarithm | ad86038206895ab5bff79a26294f4bb5c5634eb5 | [
"MIT"
] | null | null | null | #include "Li.hpp"
#include "Li2.hpp"
#include "Li3.hpp"
#include "Li4.hpp"
#include "Li5.hpp"
#include "Li6.hpp"
#include <iostream>
int main() {
using namespace polylogarithm;
const double x = 1.0;
const std::complex<double> z(1.0, 1.0);
// real polylogarithms for real arguments
std::cout
<< "L... | 27.7 | 53 | 0.416366 | Expander |
6b074f8393b6e887bc0cb634807c48d65e55bb93 | 1,398 | hpp | C++ | detail/core.hpp | JCYang/ya_uftp | b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf | [
"BSL-1.0"
] | null | null | null | detail/core.hpp | JCYang/ya_uftp | b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf | [
"BSL-1.0"
] | null | null | null | detail/core.hpp | JCYang/ya_uftp | b6a6dac7969371583c76ad90ef5ebf0c4ae66bdf | [
"BSL-1.0"
] | null | null | null | #pragma once
#ifndef YA_UFTP_DETAIL_CORE_HPP_
#define YA_UFTP_DETAIL_CORE_HPP_
#include "api_binder.hpp"
#include "boost/asio.hpp"
namespace ya_uftp {
namespace core {
namespace detail {
class execution_unit {
boost::asio::io_context m_work_ctx;
std::mutex m_guard_mutex;
api::optional<boost::asio... | 27.96 | 91 | 0.697425 | JCYang |
6b099adeeec69750bb2dae6c98cd80563828da23 | 1,957 | cpp | C++ | art-of-prog/02-str_contain/02-str_contain.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | art-of-prog/02-str_contain/02-str_contain.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | art-of-prog/02-str_contain/02-str_contain.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include <cwchar>
#include <locale>
#include <cstring>
#include <iostream>
using std::wcin; using std::wcout;
using std::endl;
#include <string>
using std::wstring; using std::string;
#include <algorithm>
/**< 字符串包含判断 */
// http://taop.marchtea.com/01.02.html
// 暴力查找
bool wstrCont1(wstring const& a, wstring const& b... | 22.494253 | 123 | 0.544711 | Ginkgo-Biloba |
6b0dcd422f3a8302e92fb24017ab27c60ae42422 | 1,069 | hpp | C++ | source/utilities/linear_algebra.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 5 | 2018-05-30T08:43:10.000Z | 2021-12-14T18:33:10.000Z | source/utilities/linear_algebra.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 57 | 2018-05-08T21:44:14.000Z | 2019-11-07T17:13:30.000Z | source/utilities/linear_algebra.hpp | jgbarbosa/dgswemv2 | b44fd05c4f461a301fc3695671898c91e3153d7b | [
"MIT"
] | 7 | 2018-05-07T21:50:49.000Z | 2021-04-30T14:02:02.000Z | #ifndef LINEAR_ALGEBRA_HPP
#define LINEAR_ALGEBRA_HPP
#ifdef USE_BLAZE
#include "utilities/linear_algebra/use_blaze.hpp"
#endif
#ifdef USE_EIGEN
#include "utilities/linear_algebra/use_eigen.hpp"
#endif
// Row major transform
enum RowMajTrans2D : uchar { xx = 0, xy = 1, yx = 2, yy = 3 };
// The following are STL con... | 36.862069 | 88 | 0.76333 | jgbarbosa |
6b121feeee857f871f14545a60c23eddf1a12281 | 2,126 | cpp | C++ | tests/cpp/unit/backend/dnnl/test_logical_tensor.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/cpp/unit/backend/dnnl/test_logical_tensor.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | tests/cpp/unit/backend/dnnl/test_logical_tensor.cpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020-2022 Intel Corporation
*
* 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.apa... | 39.37037 | 80 | 0.665099 | wuxun-zhang |
6b19e9dd6ec86dfbf79807863c05988b5e783468 | 1,031 | cpp | C++ | src/ast/transform/Transformer.cpp | thomas-seed/souffle | 2157ead5354a59979bf6b6adade47bb24a098f24 | [
"UPL-1.0"
] | null | null | null | src/ast/transform/Transformer.cpp | thomas-seed/souffle | 2157ead5354a59979bf6b6adade47bb24a098f24 | [
"UPL-1.0"
] | null | null | null | src/ast/transform/Transformer.cpp | thomas-seed/souffle | 2157ead5354a59979bf6b6adade47bb24a098f24 | [
"UPL-1.0"
] | null | null | null | /*
* Souffle - A Datalog Compiler
* Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved
* Licensed under the Universal Permissive License v 1.0 as shown at:
* - https://opensource.org/licenses/UPL
* - <souffle root>/licenses/SOUFFLE-UPL.txt
*/
/**************************************************... | 27.131579 | 73 | 0.616877 | thomas-seed |
6b1b1f5a8fb1402db3de809f1ada559382cf487c | 1,374 | cpp | C++ | src/bkcommon/response_impl.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 13 | 2020-04-21T13:14:00.000Z | 2021-11-13T14:55:12.000Z | src/bkcommon/response_impl.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | null | null | null | src/bkcommon/response_impl.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 4 | 2020-04-21T13:15:43.000Z | 2021-11-13T14:55:00.000Z | // -------------------------------------------------
// BlinKit - BkCommon Library
// -------------------------------------------------
// File Name: response_impl.cpp
// Description: Response Base Classes
// Author: Ziming Li
// Created: 2020-06-21
// -------------------------------------------------
// Cop... | 22.9 | 78 | 0.540757 | titilima |
6b1b2f6917787ee1ba5720ab2007f919be7719ef | 2,521 | cc | C++ | src/words.cc | pgul/diskpoll | 5512aba821fa432dcc2b0c5f3917b8353dd9546c | [
"Unlicense"
] | 2 | 2018-01-14T03:08:09.000Z | 2021-04-11T11:29:44.000Z | src/words.cc | huskyproject/diskpoll | 0315ac783a759d60ae84092316ab4da67a1cd6d9 | [
"Unlicense"
] | null | null | null | src/words.cc | huskyproject/diskpoll | 0315ac783a759d60ae84092316ab4da67a1cd6d9 | [
"Unlicense"
] | null | null | null | #ifdef INCS_NEED_DOT_H
#include <ctype.h>
#include <stdlib.h> /* NULL */
#else
#include <ctype>
#include <stdlib> /* NULL */
#endif
#include "words.h"
#include "cerror.h"
TWords::TWords(char *cpWord)
{ char *cp;
int i;
if (cpWord==NULL)
{
nWords=0;
}
else
{
for (cp=cpWord;(*cp)&&(isspace... | 20.330645 | 64 | 0.513288 | pgul |
6b20ae02a93e5557b30c89e5a3bb43590117ea79 | 5,892 | cpp | C++ | src/AHZPapyrusMoreHud.cpp | AlexGreat007/moreHUDSE | b5eb07066ebcb3ab6e00931ac81a8005c1df7bad | [
"MIT"
] | 1 | 2018-10-15T02:15:58.000Z | 2018-10-15T02:15:58.000Z | src/AHZPapyrusMoreHud.cpp | AlexGreat007/moreHUDSE | b5eb07066ebcb3ab6e00931ac81a8005c1df7bad | [
"MIT"
] | 3 | 2017-12-08T00:12:33.000Z | 2022-03-31T02:32:23.000Z | src/AHZPapyrusMoreHud.cpp | AlexGreat007/moreHUDSE | b5eb07066ebcb3ab6e00931ac81a8005c1df7bad | [
"MIT"
] | 4 | 2021-01-20T17:01:39.000Z | 2021-12-11T07:03:19.000Z | #include "PCH.h"
#include "AHZPapyrusMoreHud.h"
#include "version.h"
#include <mutex>
using AhzIconItemCache = std::map<uint32_t, RE::BSFixedString>;
using AhzIconFormListCache = std::map<std::string, RE::BGSListForm*>;
static AhzIconItemCache s_ahzRegisteredIcons;
static AhzIconFormListCache s_ahzRegister... | 33.862069 | 136 | 0.684487 | AlexGreat007 |
6b29828ca93626ee89c5bc71a8f7205211d75a77 | 2,457 | cpp | C++ | src/CLIOR.cpp | CominLab/CLIOR | 1c016f4bc48c59e3826ec1fbd7ef39c0b08c10e7 | [
"MIT"
] | null | null | null | src/CLIOR.cpp | CominLab/CLIOR | 1c016f4bc48c59e3826ec1fbd7ef39c0b08c10e7 | [
"MIT"
] | null | null | null | src/CLIOR.cpp | CominLab/CLIOR | 1c016f4bc48c59e3826ec1fbd7ef39c0b08c10e7 | [
"MIT"
] | null | null | null | #include "Reassignment.h"
using namespace std;
int main(int argc, char* argv[]) {
string empty = "";
string dir_output = "output/";
PairedEnd_G_C input;
FilesScan scans;
Mode_CLIOR m_clior;
vector<string> grp_cls_files;
vector<string> d_files;
for(int i=1;i<argc;i++)
{
if(strcmp(argv[i], "-si") == 0)
{
... | 27.606742 | 182 | 0.648759 | CominLab |
6b2cb450f7486fdea0c0902f83a93dd7d59464fe | 128,573 | cpp | C++ | dev/Basic/medium/entities/conflux/Conflux.cpp | andrealho/simmobility-prod | 041b91c9e36da452ca28014c305b9ae66a880277 | [
"IJG"
] | 2 | 2021-06-18T08:03:22.000Z | 2021-06-18T08:03:28.000Z | dev/Basic/medium/entities/conflux/Conflux.cpp | ericchou0216/test | 3c95a8d3b77016bf440499c4f7a6be68acd73cf5 | [
"IJG"
] | null | null | null | dev/Basic/medium/entities/conflux/Conflux.cpp | ericchou0216/test | 3c95a8d3b77016bf440499c4f7a6be68acd73cf5 | [
"IJG"
] | null | null | null | //Copyright (c) 2013 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)
#include "Conflux.hpp"
#include <algorithm>
#include <cstdio>
#include <cmath>
#include <map>
#include <stdexcept>
#i... | 40.482683 | 220 | 0.614336 | andrealho |
6b30066df36fa2db5e3c24b1d938460d2b44de69 | 85 | cpp | C++ | tests/main.cpp | cbforks/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | 6 | 2015-04-14T19:04:15.000Z | 2015-10-16T13:03:08.000Z | tests/main.cpp | zsszatmari/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | null | null | null | tests/main.cpp | zsszatmari/sfl | 21a28acc9fdbb578200e0289688610cdedb646d9 | [
"BSD-2-Clause"
] | 1 | 2015-10-16T13:03:11.000Z | 2015-10-16T13:03:11.000Z | #include "stf.h"
INIT_SFL
int main(int argc, char *argv[])
{
return runTests();
}
| 9.444444 | 32 | 0.647059 | cbforks |
6b3d4042e2c5b07b7a2f29c4e13b98a60b1b73e3 | 5,253 | hpp | C++ | OptFrame/ExtendedMultiObjSearch.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/ExtendedMultiObjSearch.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | OptFrame/ExtendedMultiObjSearch.hpp | vncoelho/optmarket | dcfa8d909da98d89a464eda2420c38b0526f900c | [
"MIT"
] | null | null | null | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 24.207373 | 137 | 0.708738 | vncoelho |
6b3fd6236942fff87335aeb6ac752992043ee248 | 63 | cpp | C++ | Source/FSD/Private/DorrettaHead.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSD/Private/DorrettaHead.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSD/Private/DorrettaHead.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "DorrettaHead.h"
ADorrettaHead::ADorrettaHead() {
}
| 10.5 | 32 | 0.730159 | Dr-Turtle |
6b4085bf11b4a679e0c0b5dad56a0732b690b450 | 3,566 | hpp | C++ | cpp/src/binaryop/jit/util.hpp | BenikaHall/cudf | d3f5add210293a4832dafb85f04cbb73149b9d54 | [
"Apache-2.0"
] | null | null | null | cpp/src/binaryop/jit/util.hpp | BenikaHall/cudf | d3f5add210293a4832dafb85f04cbb73149b9d54 | [
"Apache-2.0"
] | 1 | 2021-02-23T18:05:36.000Z | 2021-02-23T18:05:36.000Z | cpp/src/binaryop/jit/util.hpp | BenikaHall/cudf | d3f5add210293a4832dafb85f04cbb73149b9d54 | [
"Apache-2.0"
] | 1 | 2020-11-10T03:19:16.000Z | 2020-11-10T03:19:16.000Z | /*
* Copyright (c) 2019, NVIDIA CORPORATION.
*
* 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.952941 | 78 | 0.63152 | BenikaHall |
6b4734d6aa5676f26cbf6e868459db49e77f0bf2 | 708 | hh | C++ | elements/grid/setgridchecksum.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/grid/setgridchecksum.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/grid/setgridchecksum.hh | BorisPis/asplos22-nicmem-fastclick | ab4df08ee056ed48a4c534ec5f8536a958f756b5 | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | #ifndef SETGRIDCHECKSUM_HH
#define SETGRIDCHECKSUM_HH
/*
* =c
* SetGridChecksum()
* =s Grid
* =d
* Expects a Grid MAC packet as input.
* Calculates the Grid header's checksum and sets the version and checksum header fields.
*
* =a
* CheckGridHeader */
#include <click/element.hh>
#include <click/glue.hh>
CLIC... | 21.454545 | 89 | 0.727401 | BorisPis |
6b486945bff46f9ca1f77fd28cefac913519ad71 | 1,963 | cpp | C++ | src/iotjs_debuglog.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | null | null | null | src/iotjs_debuglog.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | null | null | null | src/iotjs_debuglog.cpp | chivalry02/iotjs | a7007b88120a020c5ece835811cec9ded48f9f2b | [
"Apache-2.0"
] | 1 | 2021-01-16T18:15:34.000Z | 2021-01-16T18:15:34.000Z | /* Copyright 2015 Samsung Electronics 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 la... | 29.298507 | 78 | 0.715741 | chivalry02 |
6b4a4d491d0868c2677c2e25712f00bcda7f9592 | 23,449 | cpp | C++ | CKGfx/NodeRenderer.cpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | CKGfx/NodeRenderer.cpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | CKGfx/NodeRenderer.cpp | samkusin/overview | affddf0b21f7e76ad9dae1425a4f5ac6a29a24c1 | [
"MIT"
] | null | null | null | //
// NodeRenderer.cpp
// GfxPrototype
//
// Created by Samir Sinha on 10/5/15.
//
//
#include "NodeRenderer.hpp"
#include "ShaderLibrary.hpp"
#include "VertexTypes.hpp"
#include "Material.hpp"
#include "Texture.hpp"
#include "Mesh.hpp"
#include "Animation.hpp"
#include "AnimationController.hpp"
#include "Light.hp... | 33.836941 | 159 | 0.541174 | samkusin |
6b4ed243dbe916a9d29bc62f50aec92c78146786 | 4,734 | cpp | C++ | code archive/codechef/ROBAGAIN.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/codechef/ROBAGAIN.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/codechef/ROBAGAIN.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 1 | 2018-10-29T12:37:25.000Z | 2018-10-29T12:37:25.000Z | //{
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(ll i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define FILL(i,n) memset(i,n,sizeof i)
#define X first
#define Y second
#define SZ(_a) (int)_a.size()
#define ALL(_a) _a.begin(),_... | 27.523256 | 129 | 0.440642 | brianbbsu |
6b4ff13897b20a91e4b15ae42f9123a65c01e46c | 279 | hpp | C++ | src/rpc.hpp | skybon/boinc-rpc-cpp | bfb7e238d815167c438a26cdb5cdcd31d0d9acdc | [
"Apache-2.0"
] | 1 | 2016-10-11T06:58:38.000Z | 2016-10-11T06:58:38.000Z | src/rpc.hpp | skybon/boinc-rpc-cpp | bfb7e238d815167c438a26cdb5cdcd31d0d9acdc | [
"Apache-2.0"
] | null | null | null | src/rpc.hpp | skybon/boinc-rpc-cpp | bfb7e238d815167c438a26cdb5cdcd31d0d9acdc | [
"Apache-2.0"
] | null | null | null | #ifndef _RPC_HPP_
#define _RPC_HPP_
#include <string>
#include <glibmm.h>
#include "util.hpp"
namespace Boinc
{
std::string compute_nonce_hash(std::string, std::string);
void query_boinc_daemon(Glib::ustring, int, Glib::ustring, XMLCallback, XMLCallback = nullptr);
}
#endif
| 17.4375 | 95 | 0.756272 | skybon |
6b563fbc9736dc85dbafbdbd9778a831cca39bc9 | 351 | cpp | C++ | 6. Polymorphism/1. Function Overloading/4.OverloadingParameterNumber.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 3 | 2019-11-06T15:43:06.000Z | 2020-06-05T10:47:28.000Z | 6. Polymorphism/1. Function Overloading/4.OverloadingParameterNumber.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | null | null | null | 6. Polymorphism/1. Function Overloading/4.OverloadingParameterNumber.cpp | Imran4424/C-Plus-Plus-Object-Oriented | a9c16ce6506b4cc0f3ec82fdf2e750bec50aab79 | [
"MIT"
] | 1 | 2019-09-06T03:37:08.000Z | 2019-09-06T03:37:08.000Z | #include <iostream>
using namespace std;
int Add(int a, int b)
{
return a + b;
}
int Add(int a, int b, int c)
{
return a + b + c;
}
int Add(int a, int b, int c, int d)
{
return a + b + c + d;
}
int main(int argc, char const *argv[])
{
cout << Add(7, 4) << endl;
cout << Add(4, 9, 1) << endl;
cout << Add(1, 1... | 12.535714 | 38 | 0.541311 | Imran4424 |
6b598cd646e7f3c28876d57101b088975900e82b | 831 | hpp | C++ | src/statements/SpawnStatement.hpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 29 | 2015-11-14T12:26:48.000Z | 2021-01-02T12:47:37.000Z | src/statements/SpawnStatement.hpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 9 | 2015-06-12T13:58:54.000Z | 2016-06-07T03:00:41.000Z | src/statements/SpawnStatement.hpp | vgsantoniazzi/TinyInterpreter | c7269d50b47a1318989a43d807a40896f182ed16 | [
"MIT"
] | 6 | 2015-06-14T20:39:32.000Z | 2020-07-27T01:14:48.000Z | /**
* @file src/statements/SpawnStatement.hpp
* @author Victor Antoniazzi <vgsantoniazzi@gmail.com>
* @brief Implements threads.
*
* @details Spawn statement will run inside a thread. It will load only the
* next statement.
*/
#ifndef _SPAWN_STATEMENT_
#define _SPAWN_STATEMENT_
#include "Statement.hpp"
#include... | 19.785714 | 78 | 0.68231 | vgsantoniazzi |
6b5a5b0f56816ac5317992325c5dbc5fe05adfa5 | 717 | cpp | C++ | src/effects/effect.cpp | mikelukas/errantry | e1c09ca5ef8bc9ef32cf8bcb86306a1415ddd37c | [
"MIT"
] | 1 | 2018-05-11T16:09:35.000Z | 2018-05-11T16:09:35.000Z | src/effects/effect.cpp | mikelukas/errantry | e1c09ca5ef8bc9ef32cf8bcb86306a1415ddd37c | [
"MIT"
] | null | null | null | src/effects/effect.cpp | mikelukas/errantry | e1c09ca5ef8bc9ef32cf8bcb86306a1415ddd37c | [
"MIT"
] | null | null | null | #include "effect.h"
EffectParams::EffectParams(Element element, Character& applier, Character& target)
: element(element),
applier(applier),
target(target)
{
}
Effect::Effect(const EffectParams& effectParams)
: element(effectParams.element),
applier(effectParams.applier),
target(effectParams.target),
... | 19.378378 | 82 | 0.736402 | mikelukas |
6b5ed3e733b74c67687873037bbb2b92a3852506 | 952 | cpp | C++ | chapter19/local_class.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | chapter19/local_class.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | chapter19/local_class.cpp | iwiniwin/learncpp | b346c886364c8829647c3359f23a4a7f06989a4d | [
"MIT"
] | null | null | null | /*
* @Author: iwiniwin
* @Date: 2020-12-24 21:36:32
* @Last Modified by: iwiniwin
* @Last Modified time: 2020-12-24 22:34:05
* @Description: 局部类
*/
#include <string>
#include <iostream>
using namespace std;
int a, val;
void test1(int val){
static int si;
enum Loc {a = 1024, b};
// Bar是test1的局部类
... | 17.962264 | 65 | 0.526261 | iwiniwin |
6b63d2dc1b00073200da3e0d3aab6861f338af5d | 6,142 | hpp | C++ | ql/cashflows/zcinflationcapfloor.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 4 | 2016-03-28T15:05:23.000Z | 2020-02-17T23:05:57.000Z | ql/cashflows/zcinflationcapfloor.hpp | universe1987/QuantLib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 1 | 2015-02-02T20:32:43.000Z | 2015-02-02T20:32:43.000Z | ql/cashflows/zcinflationcapfloor.hpp | pcaspers/quantlib | bbb0145aff285853755b9f6ed013f53a41163acb | [
"BSD-3-Clause"
] | 10 | 2015-01-26T14:50:24.000Z | 2015-10-23T07:41:30.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2012 Peter Caspers
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.149068 | 118 | 0.659557 | universe1987 |
6b64abbfe35597f2c2ffd39bbd38fa21d2b9f778 | 358 | cpp | C++ | 942-di-string-match/942-di-string-match.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 942-di-string-match/942-di-string-match.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | 942-di-string-match/942-di-string-match.cpp | Edith-panda/leetcode | 175b4cbcd25b95b4863d793c876719eabb94dafc | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
vector<int> diStringMatch(string s) {
int n = s.size();
int k=0, j=n;
vector<int> v;
for(int i=0;i<=n;i++){
if(s[i] == 'I')
v.push_back(k++);
else
v.push_back(j--);
... | 18.842105 | 41 | 0.343575 | Edith-panda |
6b6602c7556eb0928d3233517724e393a65ba09e | 14,717 | cpp | C++ | driver/src/oasis_hid.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | 1 | 2021-02-12T06:54:53.000Z | 2021-02-12T06:54:53.000Z | driver/src/oasis_hid.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | null | null | null | driver/src/oasis_hid.cpp | mmmspatz/wumbo_mr | 7dfecd4cb824ad2268f6f9208e3fe6c9510fb097 | [
"BSL-1.0"
] | null | null | null | // Copyright Mark H. Spatz 2021-present
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE or copy at
// https://www.boost.org/LICENSE_1_0.txt)
#include "oasis_hid.hpp"
#include <spdlog/spdlog.h>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cstddef>... | 34.957245 | 100 | 0.684311 | mmmspatz |
6b6a9ee9c8275c7b664b18ee06b41487632400c8 | 18,695 | cp | C++ | Linux/Sources/Application/Rules/Dialog/CRulesDialog.cp | mbert/mulberry-main | 6b7951a3ca56e01a7be67aa12e55bfeafc63950d | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Linux/Sources/Application/Rules/Dialog/CRulesDialog.cp | SpareSimian/mulberry-main | e868f3f4d86efae3351000818a3cb2d72ae5eac3 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Linux/Sources/Application/Rules/Dialog/CRulesDialog.cp | SpareSimian/mulberry-main | e868f3f4d86efae3351000818a3cb2d72ae5eac3 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
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 re... | 25.750689 | 129 | 0.671891 | mbert |
6b6fb696342f23f890bca26716a01d374d7bf01d | 1,664 | hpp | C++ | src/cxx/ctul/cfg/mutex.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | 1 | 2020-01-30T15:13:37.000Z | 2020-01-30T15:13:37.000Z | src/cxx/ctul/cfg/mutex.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | null | null | null | src/cxx/ctul/cfg/mutex.hpp | c0de4un/cxx-thread-util | 3b7f85e32370cfeb699d7a7d3c8bf08ca99acbe5 | [
"MIT"
] | null | null | null | /**
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABIL... | 29.192982 | 90 | 0.519231 | c0de4un |
6b7609c25d10b3adf3ea816d2b7b295b0d76a31c | 2,866 | cpp | C++ | src/sd/FileListIterator.cpp | r4dx/sentinel-hill | 9b5770240f2d603da08925e86460925799a91bc9 | [
"Apache-2.0"
] | 1 | 2019-12-27T20:07:45.000Z | 2019-12-27T20:07:45.000Z | src/sd/FileListIterator.cpp | r4dx/sentinel-hill | 9b5770240f2d603da08925e86460925799a91bc9 | [
"Apache-2.0"
] | 25 | 2016-10-21T04:44:34.000Z | 2017-08-18T20:54:22.000Z | src/sd/FileListIterator.cpp | r4dx/sentinel-hill | 9b5770240f2d603da08925e86460925799a91bc9 | [
"Apache-2.0"
] | null | null | null | #include "FileListIterator.h"
#include "File.h"
#include "logger/ConsoleFileLoggerWrapper.h"
#include <assert.h>
namespace sentinel {
namespace sd {
namespace file {
FileListIterator::FileListIterator(File& folder)
: folder(&folder), current(nullptr), isEnd(false),
... | 33.717647 | 89 | 0.474529 | r4dx |
6b780e45f353ee9e9b5288bce4ef6ed2b49003f1 | 881 | cpp | C++ | duds/data/Int128.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/data/Int128.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | duds/data/Int128.cpp | jjackowski/duds | 0fc4eec0face95c13575672f2a2d8625517c9469 | [
"BSD-2-Clause"
] | null | null | null | /*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... | 28.419355 | 78 | 0.721907 | jjackowski |
6b78b03f02739f08f517d4a3b7bac2249562fc2d | 7,330 | cpp | C++ | rtree-run-dataset.cpp | jyuatsfl/avatar | 8bbb5d72fda0857e04d0c76329f32162f6d98a92 | [
"Apache-2.0"
] | 53 | 2020-06-10T09:47:02.000Z | 2022-02-09T01:41:28.000Z | rtree-run-dataset.cpp | SFM2020/avatar | 8c03dbdf4eed15219797285dbac6ca04e8f1b6f4 | [
"Apache-2.0"
] | 5 | 2020-07-08T03:40:34.000Z | 2021-12-22T12:24:33.000Z | rtree-run-dataset.cpp | SFM2020/avatar | 8c03dbdf4eed15219797285dbac6ca04e8f1b6f4 | [
"Apache-2.0"
] | 16 | 2020-06-10T09:47:04.000Z | 2021-12-23T09:54:46.000Z | #include <iostream>
#include <iomanip>
#include <cstring>
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include <Eigen/Core>
#include "RTree.h"
namespace {
constexpr char WIND_NAME[] = "Image";
cv::Vec3b... | 37.589744 | 180 | 0.499181 | jyuatsfl |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.