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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fa516317ceb552f45ff177c73ba06212b5698ec4 | 8,309 | cpp | C++ | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 17 | 2020-11-27T14:59:34.000Z | 2022-03-28T10:31:25.000Z | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | test/BondStereopermutator.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | 6 | 2020-12-09T09:21:53.000Z | 2021-08-22T15:42:21.000Z | /*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#define BOOST_FILESYSTEM_NO_DEPRECATED
#include "boost/filesystem.hpp"
#include "boost/test/unit_test.hpp"
#include "Molassembl... | 30.435897 | 102 | 0.703213 | Dom1L |
fa560f221384189593c6d4e70dafe8cb08e627ca | 4,963 | hpp | C++ | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | null | null | null | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 9 | 2021-05-17T06:40:39.000Z | 2022-03-28T08:08:46.000Z | ql/experimental/templatemodels/hullwhite/g2ppT.hpp | urgu00/QuantLib | fecce0abb0ff3d50da29c129f8f9e73176e20ab9 | [
"BSD-3-Clause"
] | 1 | 2020-11-23T09:16:13.000Z | 2020-11-23T09:16:13.000Z | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2018, Sebastian Schlenkrich
*/
#ifndef quantlib_templateg2pp_hpp
#define quantlib_templateg2pp_hpp
#include <ql/shared_ptr.hpp>
#include <ql/errors.hpp>
#include <ql/termstructures/yieldtermstructure.hpp>
#include <q... | 38.176923 | 132 | 0.531735 | urgu00 |
fa66dcee1c507681a3ee361e1656ddfef366c021 | 3,242 | cpp | C++ | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/445-C/7033658.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++0x
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <vector>
#include <stack>
#include <queue>
#include <string>
#include <cstdlib>
#include <set>
#include <map>
#include <fstream>
#define PI 3.14159265359
using namespace std;... | 20.389937 | 122 | 0.317705 | AmrARaouf |
fa6b0f8ca1e8ca70fadd339abc1dab370544b02a | 17,099 | cpp | C++ | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | WRK-V1.2/csharp/sccomp/bitset.cpp | intj-t/openvmsft | 0d17fbce8607ab2b880be976c2e86d8cfc3e83bb | [
"Intel"
] | null | null | null | // ==++==
//
//
// Copyright (c) 2006 Microsoft Corporation. All rights reserved.
//
// The use and distribution terms for this software are contained in the file
// named license.txt, which can be found in the root of this distribution.
// By using this software in any fashion, you are agreeing to b... | 32.140977 | 100 | 0.450494 | intj-t |
fa6c012b93520ec881141c8547bc1337327463da | 3,633 | hpp | C++ | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | include/UnityEngine/U2D/SpriteAtlasManager.hpp | darknight1050/BeatSaber-Quest-Codegen | a6eeecc3f0e8f6079630f9a9a72b3121ac7b2032 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Completed includes
// Begin forward declares
// Forward declaring namespace: System
... | 51.169014 | 131 | 0.730526 | darknight1050 |
fa73bc930dbdce149f3b39567c17ef2558ba1e20 | 5,230 | cc | C++ | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/grid/detail/spacing/gaussian/N256.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | // TL511
#include "atlas/grid/detail/spacing/gaussian/N.h"
namespace atlas {
namespace grid {
namespace spacing {
namespace gaussian {
DEFINE_GAUSSIAN_LATITUDES(
256, LIST( 89.731148618413, 89.382873896334, 89.032542423790, 88.681746243591, 88.330773788807, 87.979716034326,
87.628610609484, 87.277... | 88.644068 | 116 | 0.7174 | mlange05 |
fa767dffcfd85faec8c76169b414c96c96c625ea | 28,938 | cpp | C++ | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | src/resolver/sleefResolver.cpp | sx-aurora-test/rv | 5d546958b155d7349b20a8cbbeff1b4c65589fd7 | [
"Apache-2.0"
] | null | null | null | //===- sleefLibrary.cpp -----------------------------===//
//
// The Region Vectorizer
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
#include <llvm/Support/SourceMgr.h>
#include <llvm/IRReader/IRReader.h>
#include <llvm/Transfor... | 33.33871 | 208 | 0.670952 | sx-aurora-test |
fa77c3022865e3f92693358145303215345ca6a1 | 631 | cpp | C++ | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 25 | 2018-12-10T03:41:49.000Z | 2021-10-04T10:42:36.000Z | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | gawquon/Vic2ToHoI4 | 8371cfb1fd57cf81d854077963135d8037e754eb | [
"MIT"
] | 739 | 2018-12-13T02:01:20.000Z | 2022-03-28T02:57:13.000Z | Vic2ToHoI4Tests/HoI4WorldTests/OperativeNames/OperativeNamesTests.cpp | Osariusz/Vic2ToHoI4 | 9738b52c7602b1fe187c3820660c58a8d010d87e | [
"MIT"
] | 43 | 2018-12-10T03:41:58.000Z | 2022-03-22T23:55:41.000Z | #include "HOI4World/OperativeNames/OperativeNames.h"
#include "HOI4World/OperativeNames/OperativeNamesFactory.h"
#include "gtest/gtest.h"
#include <sstream>
TEST(HoI4World_OperativeNames_OperativeNamesTests, OperativeNamesDefaultsToEmpty)
{
const auto operativeNames = HoI4::OperativeNames::Factory::getOperativeName... | 30.047619 | 90 | 0.81775 | gawquon |
fa78add51b4e41dcc8b8ff9fc82ca69b143115e3 | 154 | cpp | C++ | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | stat.cpp | sagar-sam/codechef-solutions | ea414d17435f0cfbc84b0c6b172ead0b22f32a23 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n;
scanf("%d",&n);
int i=0;
int j=n-1;
}
} | 9.058824 | 20 | 0.506494 | sagar-sam |
fa79764ed3fe4e562a1bf37035b400745cd61fd1 | 2,267 | cpp | C++ | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | BetaEngine/Comp/Lab1/Source/Level1.cpp | PowerUser64/dP-2 | 98e5edc2dca4ed629e2bbf222c5b764e166e7193 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Level1.h"
#include "MonkeyMovement.h"
using namespace Beta;
Level1::Level1() : Level("Leve1")
{
}
void Level1::Load()
{
// Create a sprite component and set its mesh and sprite source
textureMonkey = ResourceGetTexture("Monkey.png");
spriteSourceMonkey = std::make_shared<... | 27.987654 | 93 | 0.703573 | PowerUser64 |
fa7c8e73799feb7707f1f90d68a0f5cfb6678d50 | 2,118 | hh | C++ | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | include/WCSimDetectorZone.hh | chipsneutrino/chips-sim | 19d3f2d75c674c06d2f27b9a344b70ca53e672c5 | [
"MIT"
] | null | null | null | /*
* WCSimDetectorZone.hh
*
* Created on: 24 Nov 2014
* Author: ajperch
*/
#pragma once
#include "G4ThreeVector.hh"
#include "WCSimGeometryEnums.hh"
#include <map>
#include <vector>
class WCSimDetectorZone
{
public:
WCSimDetectorZone();
virtual ~WCSimDetectorZone();
void AddCellPMTName(std::string nam... | 21.612245 | 79 | 0.756374 | chipsneutrino |
fa817f8b0dd229fd2d71bbcd788ff35c5df0a81d | 1,435 | cpp | C++ | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | 3 | 2020-03-27T15:25:19.000Z | 2022-01-18T14:12:25.000Z | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | WonderMake/Collision/ColliderDebug.cpp | nicolasgustafsson/WonderMake | 9661d5dab17cf98e06daf6ea77c5927db54d62f9 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "ColliderDebug.h"
#include "Colliders.h"
void DrawSphere(const Colliders::SSphere& aCollider, const SColor& aColor)
{
constexpr u32 points = 16;
SVector2f positions[points];
for (u32 i = 0; i < points; ++i)
{
positions[i].X = std::cosf((Constants::Pi * 2.f) / points * i);
positions[... | 21.41791 | 79 | 0.667596 | nicolasgustafsson |
fa836b9da81e50a6e7a7fa097ac97bd5cb0c6bd4 | 11,001 | cpp | C++ | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | [Lib]__Engine/Sources/Common/profile.cpp | yexiuph/RanOnline | 7f7be07ef740c8e4cc9c7bef1790b8d099034114 | [
"Apache-2.0"
] | null | null | null | // "Portions Copyright (C) Steve Rabin, 2000"
// Edit by Jung DH, 2002.
//
#include "pch.h"
#include "./profile.h"
#include "./DebugSet.h"
#include "./DxInputDevice.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
CPROFILE g_profile_1;
CPROFILE g_profile_2;
BOOL g_bProfile = FALSE;
namespace
{
#define _HISTORY_RATE_ ... | 22.871102 | 134 | 0.624852 | yexiuph |
fa8513b9b1598a97d7e11ea82cb932f68a07efaa | 544 | cpp | C++ | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | 1 | 2021-08-10T02:48:57.000Z | 2021-08-10T02:48:57.000Z | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | null | null | null | GameEngine/Sources/IndexBufferSegment.cpp | GPUWorks/OpenGL-Mini-CAD-2D | fedb903302f82a1d1ff0ca6776687a60a237008a | [
"MIT"
] | null | null | null | #include "IndexBufferSegment.h"
//------------------------------ Constructors
storage::IndexBufferSegment::IndexBufferSegment()
{
}
storage::IndexBufferSegment::IndexBufferSegment(GLuint start, GLuint end)
{
this->start = start;
this->end = end;
}
//------------------------------ Secondary... | 17.548387 | 74 | 0.606618 | GPUWorks |
fa87955f9a6f32cc158faeaa7263440951aa935b | 2,821 | cpp | C++ | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | src/main.cpp | cbeck88/flashcards | dc3a517c1bb527645358db0229075b4a1692c3c6 | [
"WTFPL"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <random>
#include <string>
#include <vector>
#include "catalog.hpp"
namespace flash {
struct controller {
catalog cards;
std::mt19937 rng;
static void prompt_impl(const std::string & query, const std::string & answer) {
std::cout << '"' ... | 20.442029 | 85 | 0.556186 | cbeck88 |
fa88d7eba6f8e9eaf50ecb4b4df86f9b212bed51 | 6,340 | cc | C++ | tasks/process_metabuf_task.cc | smukil/cachemover | 159ae10072f23b7d4168a804b672e1e810d4df19 | [
"Apache-2.0"
] | 27 | 2021-11-27T06:11:54.000Z | 2022-03-31T18:53:51.000Z | tasks/process_metabuf_task.cc | Netflix/cachemover | 236998c442eed704cc9cf9df9be4f299e7f3b6e1 | [
"Apache-2.0"
] | null | null | null | tasks/process_metabuf_task.cc | Netflix/cachemover | 236998c442eed704cc9cf9df9be4f299e7f3b6e1 | [
"Apache-2.0"
] | null | null | null | /**
*
* Copyright 2021 Netflix, 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/LICENSE-2.0
*
* Unless required by a... | 31.078431 | 92 | 0.672871 | smukil |
fa8a431ac27f66c322f134372c2d59cc6876d0b4 | 3,263 | inl | C++ | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owCore/RefManager1DimAssync.inl | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | 1 | 2020-05-11T13:32:49.000Z | 2020-05-11T13:32:49.000Z | #pragma once
#include "RefManager1DimAssync.h"
template <class T>
CRefManager1DimAssync<T>::CRefManager1DimAssync()
{
#ifndef DISABLE_ASSYNC
if (m_Event_Add == nullptr && m_Thread_Loader == nullptr)
{
m_Event_Add = CreateEvent(NULL, TRUE, TRUE, NULL);
m_Thread_Loader = CreateThread(NULL, 0, &ThreadProc, this, N... | 18.861272 | 84 | 0.694146 | adan830 |
fa8c15f2e16ba4777ea1417d021e2af3df6b2e70 | 5,157 | cpp | C++ | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | 5 | 2022-02-10T23:31:11.000Z | 2022-02-11T19:32:38.000Z | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | null | null | null | Source/src/components/ComponentObstacle.cpp | Akita-Interactive/Hachiko-Engine | 0e3e0377ac5c8f5b15c525c8fcff384e9c92c14b | [
"MIT"
] | null | null | null | #include "core/hepch.h"
#include "ComponentObstacle.h"
#include "ComponentTransform.h"
#include "Application.h"
#include "modules/ModuleNavigation.h"
#include "resources/ResourceNavMesh.h"
#include "DetourTileCache/DetourTileCache.h"
Hachiko::ComponentObstacle::ComponentObstacle(GameObject* container) : Component(Ty... | 27 | 150 | 0.631181 | Akita-Interactive |
fa8faa3a10d43824e6cca0cee3f02a341a6cd088 | 519 | cpp | C++ | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode2/countprime.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int countPrimes(int n) {
vector<bool> vis(n,0);
for(int i=2; i<sqrt(n); i++){
if(!vis[i]){
// j*i may overflow when n is large near INT_MAX
for(int j=i; j*i<n; j++){
vis[j*i]=1;
}
... | 20.76 | 64 | 0.314066 | WIZARD-CXY |
fa998feef8edbb4fa6a19de46241a75869655a88 | 10,531 | cpp | C++ | Sunny-Core/01_FRAMEWORK/app/Window.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 20 | 2018-01-19T06:28:36.000Z | 2021-08-06T14:06:13.000Z | Sunny-Core/01_FRAMEWORK/app/Window.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | null | null | null | Sunny-Core/01_FRAMEWORK/app/Window.cpp | adunStudio/Sunny | 9f71c1816aa62bbc0d02d2f8d6414f4bf9aee7e7 | [
"Apache-2.0"
] | 3 | 2019-01-29T08:58:04.000Z | 2021-01-02T06:33:20.000Z | //
// Created by adunstudio on 2018-01-08.
//
#include "Window.h"
#include "../directx/Context.h"
#include "../directx/Renderer.h"
#include "../graphics/fonts/FontManager.h"
#include "../audio/MusicManager.h"
EXTERN_C IMAGE_DOS_HEADER __ImageBase;
extern LRESULT ImGui_ImplWin32_WndProcHandler(HWND hWnd, UINT messag... | 34.191558 | 126 | 0.590827 | adunStudio |
b709c7b500a0492d0c671d56147ebbf9410e0376 | 2,042 | cpp | C++ | src/xercesc/util/Compilers/OS400SetDefs.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/util/Compilers/OS400SetDefs.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/xercesc/util/Compilers/OS400SetDefs.cpp | rherardi/xerces-c-src_2_7_0 | a23711292bba70519940d7e6aeb07100319b607c | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-2000,2004 The Apache Software 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
*
* Unle... | 24.902439 | 79 | 0.561704 | rherardi |
b710336e07b0b9bf6a9d9ce277efd5d7fb416817 | 221 | cpp | C++ | src/actionscript/extern.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 7 | 2016-12-19T21:13:41.000Z | 2021-03-19T11:14:29.000Z | src/actionscript/extern.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 1 | 2017-06-17T12:14:08.000Z | 2017-06-17T14:47:20.000Z | src/actionscript/extern.cpp | feliwir/libapt | 43b05b3de632896cb7d1351191a07c0f0cdf801a | [
"MIT"
] | 3 | 2017-11-07T12:22:10.000Z | 2020-04-30T20:48:59.000Z | #include "extern.hpp"
using namespace libapt;
using namespace libapt::as;
Value Extern::GetProperty(const std::string & property)
{
return Value();
}
void Extern::SetProperty(const std::string & property, Value v)
{
}
| 17 | 63 | 0.733032 | feliwir |
b711e7c11ff601db91700d6e00c83529e7742b52 | 20,780 | hpp | C++ | src/ttauri/bigint.hpp | RustWorks/ttauri | 4b093eb16465091d01d80159e23fd26e5d4e4c03 | [
"BSL-1.0"
] | 279 | 2021-02-17T09:53:40.000Z | 2022-03-22T04:08:40.000Z | src/ttauri/bigint.hpp | RustWorks/ttauri | 4b093eb16465091d01d80159e23fd26e5d4e4c03 | [
"BSL-1.0"
] | 269 | 2021-02-17T12:53:15.000Z | 2022-03-29T22:10:49.000Z | src/ttauri/bigint.hpp | sthagen/ttauri | 772f4e55c007e0bc199a07d86ef4e2d4d46af139 | [
"BSL-1.0"
] | 25 | 2021-02-17T17:14:10.000Z | 2022-03-16T04:13:00.000Z | // Copyright Take Vos 2019-2020.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include "strings.hpp"
#include "math.hpp"
#include "int_carry.hpp"
#include "codec/base_n.hpp"
#include <format>
#inc... | 31.871166 | 123 | 0.612079 | RustWorks |
b717465d9f435083c6e894c1a5652c02087b0bef | 588 | cpp | C++ | tests/lexy/dsl/return.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/return.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | tests/lexy/dsl/return.cpp | gkgoat1/lexy | 9c600fa906e81efbb3e34b8951ebc56809f2a0df | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020-2022 Jonathan Müller and lexy contributors
// SPDX-License-Identifier: BSL-1.0
#include <lexy/dsl/return.hpp>
#include "verify.hpp"
TEST_CASE("dsl::return_")
{
constexpr auto rule = dsl::return_ + LEXY_LIT("abc");
CHECK(lexy::is_rule<decltype(dsl::return_)>);
constexpr auto callbac... | 24.5 | 64 | 0.67517 | gkgoat1 |
b71ab820ce1d29a86af167f60c7b75ec80756a5c | 7,825 | cpp | C++ | src/server/main.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/server/main.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | src/server/main.cpp | Kuga23/Projet-M2 | 85c879b8fd1ed4fdf89eedd9f89841cbd7a1e433 | [
"MIT"
] | null | null | null | #include <iostream>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> // Pour compter une minute d'enregistrement
#include <fstream> // Pour la gestion des fichiers
#include <sstream>
#include <map>
#include <memory>
#include <microhttpd.h>
#include <sys/socket.h>
#inc... | 30.212355 | 128 | 0.511182 | Kuga23 |
b71b00f47e7de6b078f53209e6a9019f96dc56e1 | 1,845 | cpp | C++ | 第九周/Insertion or Heap Sort/Insertion or Heap Sort.cpp | Daipuwei/-MOOC- | e6589e4b62f86c50fb34f2b395230c8dd49cf3d1 | [
"MIT"
] | 11 | 2019-11-12T09:22:03.000Z | 2021-01-24T02:26:10.000Z | 第九周/Insertion or Heap Sort/Insertion or Heap Sort.cpp | Daipuwei/-MOOC- | e6589e4b62f86c50fb34f2b395230c8dd49cf3d1 | [
"MIT"
] | null | null | null | 第九周/Insertion or Heap Sort/Insertion or Heap Sort.cpp | Daipuwei/-MOOC- | e6589e4b62f86c50fb34f2b395230c8dd49cf3d1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
bool Check(int a[],int b[],int N)
{
bool flag = true;
for ( int i = 0 ; i < N ; i++){
if ( a[i] != b[i]){
flag = false;
break;
}
}
return flag;
}
void Print(int a[],int N)
{
cout<<a[0];
for (int i = 1 ; i < N ; i++){
cout<<" "<<a[i];
}
}... | 16.043478 | 60 | 0.452033 | Daipuwei |
b71c41bf6a917a0818128e07e9d8a7969c309bb0 | 2,489 | cpp | C++ | QtOrm/Registry.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | QtOrm/Registry.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | 1 | 2016-11-04T14:26:58.000Z | 2016-11-04T14:27:57.000Z | QtOrm/Registry.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | #include "Registry.h"
#include <QMetaObject>
#include "Mappings/ConfigurationMap.h"
#include "Mappings/SubClassMap.h"
namespace QtOrm {
Registry::Registry(QObject *parent) : QObject(parent) {
}
bool Registry::contains(const QString &table, const IdType &id) {
if (data.contains(table)) {
return data.value(tab... | 22.223214 | 80 | 0.677782 | rensfo |
b71ec959e3b67a00b0ad45464015ab0bec1d1615 | 1,543 | cc | C++ | 2021/PTA/Pratice 1/M.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2021/PTA/Pratice 1/M.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | 2021/PTA/Pratice 1/M.cc | slowbear/TrainingCode | 688872b9dab784a410069b787457f8c0871648aa | [
"CC0-1.0"
] | null | null | null | #include <bits/extc++.h>
#include <bits/stdc++.h>
using namespace std;
using LL = long long;
using Pii = pair<int, int>;
using Pll = pair<LL, LL>;
using VI = vector<int>;
using VP = vector<pair<int, int>>;
#define rep(i, a, b) for (auto i = (a); i < (b); ++i)
#define rev(i, a, b) for (auto i = (b - 1); i >= (a); --i)
#... | 22.691176 | 59 | 0.528192 | slowbear |
b71edd52079289ee9815d3e9422ff530e4ebfe59 | 2,050 | cpp | C++ | Fedoraware/TeamFortress2/TeamFortress2/Features/Aimbot/Aimbot.cpp | hyperventilation/Fedoraware | 4cd6bea1711a31a797adf855f6ee979138558d3c | [
"WTFPL"
] | 28 | 2022-02-02T04:36:09.000Z | 2022-03-31T19:05:10.000Z | Fedoraware/TeamFortress2/TeamFortress2/Features/Aimbot/Aimbot.cpp | hyperventilation/Fedoraware | 4cd6bea1711a31a797adf855f6ee979138558d3c | [
"WTFPL"
] | 103 | 2022-02-03T11:52:24.000Z | 2022-03-31T18:33:55.000Z | Fedoraware/TeamFortress2/TeamFortress2/Features/Aimbot/Aimbot.cpp | hyperventilation/Fedoraware | 4cd6bea1711a31a797adf855f6ee979138558d3c | [
"WTFPL"
] | 39 | 2022-02-02T23:34:15.000Z | 2022-03-27T21:36:05.000Z | #include "Aimbot.h"
#include "../Vars.h"
#include "AimbotHitscan/AimbotHitscan.h"
#include "AimbotProjectile/AimbotProjectile.h"
#include "AimbotMelee/AimbotMelee.h"
bool CAimbot::ShouldRun(CBaseEntity* pLocal, CBaseCombatWeapon* pWeapon)
{
if (G::FreecamActive)
return false;
if (!Vars::Aimbot::Global::Active.Va... | 18.807339 | 75 | 0.694634 | hyperventilation |
b71ef886c7bf06ebcb1cc3b42866438a517da7e4 | 4,382 | cpp | C++ | code archive/TIOJ/1840.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | 4 | 2018-04-08T08:07:58.000Z | 2021-06-07T14:55:24.000Z | code archive/TIOJ/1840.cpp | brianbbsu/program | c4505f2b8c0b91010e157db914a63c49638516bc | [
"MIT"
] | null | null | null | code archive/TIOJ/1840.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 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(),_a.end()
#define pb push_back
#ifdef bri... | 23.185185 | 129 | 0.482656 | brianbbsu |
b7253a6f511f2a7e69a54f27bcf6a2dc20c5d63d | 11,489 | hpp | C++ | Controller/CPU-related/AMD/beginningWithFam10h/voltage.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/AMD/beginningWithFam10h/voltage.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | null | null | null | Controller/CPU-related/AMD/beginningWithFam10h/voltage.hpp | st-gb/CPUinfoAndControl | 5e93d4a195b4692d147bb05cfef534e38d7f8b64 | [
"MIT"
] | 1 | 2021-07-16T21:01:26.000Z | 2021-07-16T21:01:26.000Z | /*
* from_K10.h
*
* Created on: Aug 28, 2013
* Author: Stefan
*/
#ifndef FROM_K10_VOLTAGE_H_
#define FROM_K10_VOLTAGE_H_
#include <hardware/CPU/fastest_data_type.h> //typedef fastestUnsignedDataType
#include <preprocessor_macros/bitmasks.h>
#include <stdint.h> // uint32_t
//ReadMSR(...)
#include <Controlle... | 42.238971 | 95 | 0.675081 | st-gb |
b72fb196dd2c5415588ce2146628e6f56fc4cb26 | 12,364 | cpp | C++ | Chapter04/scratchpad.cpp | trantrongquy/Hands-On-System-Programming-with-CPP | c29f464c4df79f0d5a55a61f02a2558be74a329c | [
"MIT"
] | 88 | 2018-07-20T17:38:40.000Z | 2022-03-16T15:00:20.000Z | Chapter04/scratchpad.cpp | trantrongquy/Hands-On-System-Programming-with-CPP | c29f464c4df79f0d5a55a61f02a2558be74a329c | [
"MIT"
] | 1 | 2020-01-01T08:12:24.000Z | 2020-01-01T08:12:24.000Z | Chapter04/scratchpad.cpp | trantrongquy/Hands-On-System-Programming-with-CPP | c29f464c4df79f0d5a55a61f02a2558be74a329c | [
"MIT"
] | 46 | 2019-01-27T15:19:45.000Z | 2022-03-04T13:21:23.000Z | //
// Copyright (C) 2018 Rian Quinn <rianquinn@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, m... | 14.376744 | 81 | 0.566564 | trantrongquy |
b7340c408c1c4898afc411a34aa908f0ed5ca779 | 2,378 | cpp | C++ | framework/sphere.cpp | henrik-leisdon/programmiersprachen-raytracer-1 | bd3185095ba50b55f85394d361deb43a7a30c871 | [
"MIT"
] | null | null | null | framework/sphere.cpp | henrik-leisdon/programmiersprachen-raytracer-1 | bd3185095ba50b55f85394d361deb43a7a30c871 | [
"MIT"
] | 1 | 2019-08-03T11:36:46.000Z | 2019-08-27T16:23:08.000Z | framework/sphere.cpp | henrik-leisdon/programmiersprachen-raytracer-1 | bd3185095ba50b55f85394d361deb43a7a30c871 | [
"MIT"
] | null | null | null | #include "sphere.hpp"
#include <math.h>
#include <glm/gtx/intersect.hpp>
using namespace std;
using namespace glm;
Sphere::Sphere():
Shape(),
center_({0.0,0.0,0.0}),
radius_{0.0}
{};
Sphere::Sphere(string name, vec3 const& center, double radius, shared_ptr<Material> material):
Shape{name, materia... | 25.297872 | 130 | 0.611438 | henrik-leisdon |
b738175f4ebe5b9369135316a54a20bd5967766b | 1,600 | cc | C++ | UVa/409_Excuses, Excuses!/409.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | UVa/409_Excuses, Excuses!/409.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | UVa/409_Excuses, Excuses!/409.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
#include <locale>
using namespace std;
int main() {
std::locale loc;
int k, e;
int index = 1;
while (cin >> k >> e) {
cin.get();
string *keyword = new string[k];
string *excuse = new string[e];
string *excuseLo... | 28.571429 | 103 | 0.434375 | pdszhh |
b7385a71a9bcf5c02ed00ee07eebbb6b98551212 | 12,793 | cpp | C++ | benchmark-tests/benchmark_tests_fftw3.cpp | opalcompany/Simple-FFT | 5f397670ecac53c68ab1df90c36a319bd277b5d3 | [
"MIT"
] | 115 | 2015-01-11T23:41:28.000Z | 2022-03-08T01:09:49.000Z | benchmark-tests/benchmark_tests_fftw3.cpp | opalcompany/Simple-FFT | 5f397670ecac53c68ab1df90c36a319bd277b5d3 | [
"MIT"
] | 7 | 2018-07-26T21:42:40.000Z | 2021-11-08T20:24:03.000Z | benchmark-tests/benchmark_tests_fftw3.cpp | opalcompany/Simple-FFT | 5f397670ecac53c68ab1df90c36a319bd277b5d3 | [
"MIT"
] | 25 | 2015-03-20T14:41:56.000Z | 2021-12-29T09:51:54.000Z | #include "../include/simple_fft/fft_settings.h"
#ifndef __USE_SQUARE_BRACKETS_FOR_ELEMENT_ACCESS_OPERATOR
#define __USE_SQUARE_BRACKETS_FOR_ELEMENT_ACCESS_OPERATOR
#endif
#include "benchmark_tests_fftw3.h"
#include "../unit-tests/test_fft.hpp"
#include <vector>
#include <complex>
#include <ctime>
#include ... | 41.944262 | 133 | 0.551317 | opalcompany |
b73bcc568506cfed291532a642ee8941cfce80be | 1,736 | cpp | C++ | docker/build/face_detection/face_detector/src/utils.cpp | mykiscool/DeepCamera | e77cdbf45ab09895f315aa299bd6ac87b3bb6d66 | [
"MIT"
] | 914 | 2019-03-07T14:57:45.000Z | 2022-03-31T14:54:15.000Z | docker/build/face_detection/face_detector/src/utils.cpp | mykiscool/DeepCamera | e77cdbf45ab09895f315aa299bd6ac87b3bb6d66 | [
"MIT"
] | 45 | 2019-03-11T09:53:37.000Z | 2022-03-30T21:59:37.000Z | docker/build/face_detection/face_detector/src/utils.cpp | mykiscool/DeepCamera | e77cdbf45ab09895f315aa299bd6ac87b3bb6d66 | [
"MIT"
] | 148 | 2019-03-08T00:40:28.000Z | 2022-03-30T09:22:18.000Z | #include <iostream>
#include "utils.h"
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
float getElapse(struct timeval *tv1,struct timeval *tv2)
{
float t = 0.0f;
if (tv1->tv_sec == tv2->tv_sec)
t = (tv2->tv_usec - tv1->tv_usec)/1000.0f;
else
t = ((tv2->tv_sec - tv1->tv_sec)... | 28 | 94 | 0.49712 | mykiscool |
b73ebe1ddd7c7c326523e29757b1db694d23a093 | 993 | cpp | C++ | backup/2/hackerrank/c++/find-merge-point-of-two-lists.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 21 | 2019-11-16T19:08:35.000Z | 2021-11-12T12:26:01.000Z | backup/2/hackerrank/c++/find-merge-point-of-two-lists.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 1 | 2022-02-04T16:02:53.000Z | 2022-02-04T16:02:53.000Z | backup/2/hackerrank/c++/find-merge-point-of-two-lists.cpp | yangyanzhan/code-camp | 4272564e916fc230a4a488f92ae32c07d355dee0 | [
"Apache-2.0"
] | 4 | 2020-05-15T19:39:41.000Z | 2021-10-30T06:40:31.000Z | // Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... | 45.136364 | 345 | 0.655589 | yangyanzhan |
b744b10f31a5dee404f71196448427003b79ebb8 | 4,573 | cpp | C++ | src/strategy/values/LootValues.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 12 | 2022-03-23T05:14:53.000Z | 2022-03-30T12:12:58.000Z | src/strategy/values/LootValues.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 24 | 2022-03-23T13:56:37.000Z | 2022-03-31T18:23:32.000Z | src/strategy/values/LootValues.cpp | htc16/mod-playerbots | 2307e3f980035a244bfb4fedefda5bc55903d470 | [
"MIT"
] | 3 | 2022-03-24T21:47:10.000Z | 2022-03-31T06:21:46.000Z | /*
* Copyright (C) 2016+ AzerothCore <www.azerothcore.org>, released under GNU GPL v2 license, you may redistribute it and/or modify it under version 2 of the License, or (at your option), any later version.
*/
#include "LootValues.h"
#include "SharedValueContext.h"
#include "Playerbots.h"
LootTemplateAccess const*... | 30.898649 | 205 | 0.704352 | htc16 |
b7461dc3c38f04a368b803fea9a21530d882799f | 6,821 | cpp | C++ | src/libcipcm/cwrap.cpp | wrathematics/pbdPAPI | cb3fad3bccd54b7aeeef9e687b52d938613a356e | [
"Intel",
"BSD-3-Clause"
] | 8 | 2015-02-14T17:00:51.000Z | 2016-02-01T20:13:43.000Z | src/libcipcm/cwrap.cpp | QuantScientist3/pbdPAPI | 708bee501de20eb82829e03b92b24b6352044f49 | [
"Intel",
"BSD-3-Clause"
] | null | null | null | src/libcipcm/cwrap.cpp | QuantScientist3/pbdPAPI | 708bee501de20eb82829e03b92b24b6352044f49 | [
"Intel",
"BSD-3-Clause"
] | 3 | 2015-03-26T13:41:27.000Z | 2015-04-01T11:36:34.000Z | #define HACK_TO_REMOVE_DUPLICATE_ERROR
#include <iostream>
#ifdef OK_WIN_BUILD
#pragma warning(disable : 4996) // for sprintf
#include <windows.h>
#include "PCM_Win/windriver.h"
#else
#include <unistd.h>
#include <signal.h>
#endif
#include <math.h>
#include <iomanip>
#include <stdlib.h>
#include <stdio.h>
#include <st... | 28.069959 | 186 | 0.702536 | wrathematics |
b74866f1493fc08fac3da9777ba9f8d85878cc8b | 1,787 | cpp | C++ | code-forces/Educational 89/D.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | 1 | 2020-04-23T00:35:38.000Z | 2020-04-23T00:35:38.000Z | code-forces/Educational 89/D.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | code-forces/Educational 89/D.cpp | ErickJoestar/competitive-programming | 76afb766dbc18e16315559c863fbff19a955a569 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define ENDL '\n'
#define deb(u) cout << #u " : " << (u) << ENDL;
#define deba(alias, u) cout << alias << ": " << (u) << ENDL;
#define debp(u, v) cout << u << " : " << v << ENDL;
#define pb push_back
#define F first
#define S second
#define lli long long
#define pii pair<int, int>
#define pll p... | 18.42268 | 60 | 0.404589 | ErickJoestar |
b748e30bcef883d86729495dfe82623b2538f6df | 3,006 | cpp | C++ | Strings/Knuth-Morris-Pratt.cpp | Rand0mUsername/Algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 2 | 2020-01-10T14:12:03.000Z | 2020-05-28T19:12:21.000Z | Strings/Knuth-Morris-Pratt.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | null | null | null | Strings/Knuth-Morris-Pratt.cpp | Rand0mUsername/algorithms | 05ec0d7ed7f0a4d13000d9d77d743812ac9a27e0 | [
"MIT"
] | 1 | 2022-01-11T03:14:48.000Z | 2022-01-11T03:14:48.000Z | // RandomUsername (Nikola Jovanovic)
// Knuth-Morris-Pratt (KMP)
// String matching: O( N + M )
// N - word length, M - text length
#include <bits/stdc++.h>
#define DBG false
#define debug(x) if(DBG) printf("(ln %d) %s = %d\n", __LINE__, #x, x);
#define lld long long
#define ff(i,a,b) for(int i=a; i<=b; i++)
#define f... | 27.833333 | 124 | 0.549235 | Rand0mUsername |
b75917a6a569ffb4ca4d4912db8ab9ae7ef4d253 | 1,341 | hpp | C++ | include/context.hpp | chGoodchild/powerloader | 11b48413d0b3fb953430666153caf95e68158e4d | [
"BSD-3-Clause"
] | null | null | null | include/context.hpp | chGoodchild/powerloader | 11b48413d0b3fb953430666153caf95e68158e4d | [
"BSD-3-Clause"
] | null | null | null | include/context.hpp | chGoodchild/powerloader | 11b48413d0b3fb953430666153caf95e68158e4d | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include <chrono>
#include <map>
#ifdef WITH_ZCHUNK
extern "C"
{
#include <zck.h>
}
#endif
#include "mirror.hpp"
namespace powerloader
{
class Context
{
public:
bool offline = false;
int verbosity = 0;
bool adaptive_mirror_sorting =... | 20.630769 | 92 | 0.56525 | chGoodchild |
b75f589c332ceafcdedd5da03c1a1f8acd656f28 | 3,974 | cpp | C++ | ad_map_access/impl/tests/generated/ad/map/landmark/TrafficLightTypeValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/landmark/TrafficLightTypeValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | null | null | null | ad_map_access/impl/tests/generated/ad/map/landmark/TrafficLightTypeValidInputRangeTests.cpp | seowwj/map | 2afacd50e1b732395c64b1884ccfaeeca0040ee7 | [
"MIT"
] | 1 | 2020-10-27T11:09:30.000Z | 2020-10-27T11:09:30.000Z | /*
* ----------------- BEGIN LICENSE BLOCK ---------------------------------
*
* Copyright (C) 2018-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
* ----------------- END LICENSE BLOCK -----------------------------------
*/
/*
* Generated file
*/
#include <gtest/gtest.h>
#include <limits>
#incl... | 60.212121 | 120 | 0.762959 | seowwj |
b75fb5c1b8a68b30c3c076bc8e577ca19d64ab25 | 5,354 | cpp | C++ | src/game/shared/tf/tf_projectile_nail.cpp | Xen-alpha/UltraFortress | 3c2e0cbb5c6d1efe362619cd3fb94bac9067f913 | [
"Unlicense"
] | null | null | null | src/game/shared/tf/tf_projectile_nail.cpp | Xen-alpha/UltraFortress | 3c2e0cbb5c6d1efe362619cd3fb94bac9067f913 | [
"Unlicense"
] | null | null | null | src/game/shared/tf/tf_projectile_nail.cpp | Xen-alpha/UltraFortress | 3c2e0cbb5c6d1efe362619cd3fb94bac9067f913 | [
"Unlicense"
] | null | null | null | //====== Copyright ?1996-2005, Valve Corporation, All rights reserved. =======
//
// TF Nail
//
//=============================================================================
#include "cbase.h"
#include "tf_projectile_nail.h"
#include "tf_gamerules.h"
#ifdef CLIENT_DLL
#include "c_basetempentity.h"
#include "c_te_leg... | 33.049383 | 242 | 0.570601 | Xen-alpha |
b7628b6db5bf6f1739d9cb6fbc5b3fce98b7e3dd | 585 | cpp | C++ | C++/Strings/StringStream/Solution.cpp | iamnambiar/HackerRank-Solutions | 6fdcab79b18e66a6d7278b979a8be087f8f6c696 | [
"MIT"
] | 2 | 2020-04-06T10:32:08.000Z | 2021-04-23T04:32:45.000Z | C++/Strings/StringStream/Solution.cpp | iamnambiar/HackerRank-Solutions | 6fdcab79b18e66a6d7278b979a8be087f8f6c696 | [
"MIT"
] | null | null | null | C++/Strings/StringStream/Solution.cpp | iamnambiar/HackerRank-Solutions | 6fdcab79b18e66a6d7278b979a8be087f8f6c696 | [
"MIT"
] | null | null | null | // https://www.hackerrank.com/challenges/c-tutorial-stringstream/problem
#include <sstream>
#include <vector>
#include <iostream>
using namespace std;
vector<int> parseInts(string str) {
// Complete this function
stringstream ss(str);
vector<int> vect;
int num;
while(ss>>num) {
vect.push_back... | 18.870968 | 72 | 0.582906 | iamnambiar |
b762e751d7391c15134c15de56bc730b88fb99d7 | 737 | cpp | C++ | src/dsm_to_dtm.cpp | pierriko/clara | 3b0f788f5d120ca4be8a1ae5ab65c7c4d811a49d | [
"BSD-3-Clause"
] | 1 | 2015-04-23T02:21:11.000Z | 2015-04-23T02:21:11.000Z | src/dsm_to_dtm.cpp | pierriko/clara | 3b0f788f5d120ca4be8a1ae5ab65c7c4d811a49d | [
"BSD-3-Clause"
] | null | null | null | src/dsm_to_dtm.cpp | pierriko/clara | 3b0f788f5d120ca4be8a1ae5ab65c7c4d811a49d | [
"BSD-3-Clause"
] | null | null | null | /*
* region.cpp
*
* Common LAAS Raster library
*
* author: Pierrick Koch <pierrick.koch@laas.fr>
* created: 2013-06-12
* license: BSD
*/
#include <string> // for string
#include <stdexcept> // for runtime_error
#include <cstdlib> // exit status
#include <cmath>
#include "gdalwrap/gda... | 22.333333 | 69 | 0.598372 | pierriko |
b766226e90bd1d9a173a974a1d869d1f0a82f44b | 391 | cpp | C++ | AtCoder/abc207/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/abc207/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/abc207/b/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
long long int a, b, c, d; cin >> a >> b >> c >> d;
long long int x = a, y = 0;
for (int i = 1; i <= a; i++) {
x += b, y += c;
if (x <= d * y) {
cout << i << endl;
... | 20.578947 | 54 | 0.432225 | H-Tatsuhiro |
b768d9ae87f1069a6b2fa493f74aa314abdf0a08 | 5,032 | cpp | C++ | scope_onboard_st4.cpp | iphantomsky/open-phd-guiding | 41f6f277cd2a2efd25dc198eae3206cf95102608 | [
"BSD-3-Clause"
] | null | null | null | scope_onboard_st4.cpp | iphantomsky/open-phd-guiding | 41f6f277cd2a2efd25dc198eae3206cf95102608 | [
"BSD-3-Clause"
] | null | null | null | scope_onboard_st4.cpp | iphantomsky/open-phd-guiding | 41f6f277cd2a2efd25dc198eae3206cf95102608 | [
"BSD-3-Clause"
] | null | null | null | /*
* scope_onboard_st4.cpp
* PHD Guiding
*
* Created by Bret McKee
* Copyright (c) 2012 Bret McKee
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted p... | 27.497268 | 107 | 0.618641 | iphantomsky |
b768f8c2923c44ca69840774707ed8be76aeb06a | 487 | hpp | C++ | Siv3D/src/Siv3D/Webcam/CWebcam.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Webcam/CWebcam.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Webcam/CWebcam.hpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "IWebcam.hpp"
# includ... | 15.709677 | 50 | 0.529774 | Fuyutsubaki |
b76a4bfae5704831e9f9e2867814a38e3cd6abd1 | 5,486 | cpp | C++ | src/main.cpp | ilyayunkin/StocksMonitor | 92ba47fa4e92e9dab498ea6751178ef823a83bbc | [
"MIT"
] | null | null | null | src/main.cpp | ilyayunkin/StocksMonitor | 92ba47fa4e92e9dab498ea6751178ef823a83bbc | [
"MIT"
] | null | null | null | src/main.cpp | ilyayunkin/StocksMonitor | 92ba47fa4e92e9dab498ea6751178ef823a83bbc | [
"MIT"
] | 1 | 2020-12-04T08:18:21.000Z | 2020-12-04T08:18:21.000Z | #include "WidgetsUi/mainwindow.h"
#include <QApplication>
#include <QDir>
#include <QDebug>
#include <QMessageBox>
#include <vector>
#include "logger.h"
#include "ExceptionClasses.h"
#include "WidgetsUi/Dialogs.h"
#include "WidgetsUi/Notifier.h"
#include "WidgetsUi/Sounds/Signalizer.h"
#include "Application/PluginsL... | 37.319728 | 144 | 0.666788 | ilyayunkin |
b76b38b2e3b3456212205a2de6e37d6c993eff79 | 1,796 | cpp | C++ | Treap (Cartesian Tree)/Treap.cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | null | null | null | Treap (Cartesian Tree)/Treap.cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | null | null | null | Treap (Cartesian Tree)/Treap.cpp | yokeshrana/Fast_Algorithms_in_Data_Structures | 2346fee16c6c3ffceac7cb79b1f449b4d8dc9df2 | [
"MIT"
] | 1 | 2021-06-23T04:48:59.000Z | 2021-06-23T04:48:59.000Z | // github.com/andy489
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <algorithm>
using namespace std;
struct item {
int key, prior;
item *l, *r;
int cnt = 0;
item(int key, int prior) : key(key), prior(prior), l(nullptr), r(nullptr) {};
};
typedef item *pitem;
int cnt(pitem t) {
... | 19.521739 | 81 | 0.465479 | yokeshrana |
b770222dc888eba5d4a8dadd20d596b2b4c0a7a8 | 8,995 | cc | C++ | tests/libtests/materials/data/obsolete/DruckerPrager3DElasticData.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 93 | 2015-01-08T16:41:22.000Z | 2022-02-25T13:40:02.000Z | tests/libtests/materials/data/obsolete/DruckerPrager3DElasticData.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 277 | 2015-02-20T16:27:35.000Z | 2022-03-30T21:13:09.000Z | tests/libtests/materials/data/obsolete/DruckerPrager3DElasticData.cc | Grant-Block/pylith | f6338261b17551eba879da998a5aaf2d91f5f658 | [
"MIT"
] | 71 | 2015-03-24T12:11:08.000Z | 2022-03-03T04:26:02.000Z | // -*- C++ -*-
//
// ======================================================================
//
// Brad T. Aagaard, U.S. Geological Survey
// Charles A. Williams, GNS Science
// Matthew G. Knepley, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://... | 24.442935 | 103 | 0.722179 | Grant-Block |
b77104c671b2196abd39c3d53f1fea5c1d4a0e7b | 5,824 | cpp | C++ | features/netsocket/emac-drivers/TARGET_UNISOC_EMAC/uwpWiFiInterface.cpp | caixue901102/mbed-os | 483833a8d4612845408fea5b1986d20ab8428580 | [
"Apache-2.0"
] | null | null | null | features/netsocket/emac-drivers/TARGET_UNISOC_EMAC/uwpWiFiInterface.cpp | caixue901102/mbed-os | 483833a8d4612845408fea5b1986d20ab8428580 | [
"Apache-2.0"
] | null | null | null | features/netsocket/emac-drivers/TARGET_UNISOC_EMAC/uwpWiFiInterface.cpp | caixue901102/mbed-os | 483833a8d4612845408fea5b1986d20ab8428580 | [
"Apache-2.0"
] | 4 | 2018-12-10T12:03:54.000Z | 2019-01-26T02:46:40.000Z | /* LWIP implementation of NetworkInterfaceAPI
* Copyright (c) 2015 ARM Limited
*
* 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
*
* ... | 26.83871 | 111 | 0.6341 | caixue901102 |
b7777dc3e401af320b7d119684b1266e5867a9d8 | 288 | cc | C++ | 042. Multiply Strings/TEST.cc | corkiwang1122/LeetCode | 39b1680b58173e6ec23a475605c3450ce8f78a81 | [
"MIT"
] | 3,690 | 2015-01-03T03:40:23.000Z | 2022-03-31T08:10:19.000Z | 042. Multiply Strings/TEST.cc | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 21 | 2015-01-25T16:39:43.000Z | 2021-02-26T05:28:22.000Z | 042. Multiply Strings/TEST.cc | Windfall94/LeetCode | 1756256d7e619164076bbf358c8f7ca68cd8bd79 | [
"MIT"
] | 1,290 | 2015-01-09T01:28:20.000Z | 2022-03-28T12:20:39.000Z | #define CATCH_CONFIG_MAIN
#include "../Catch/single_include/catch.hpp"
#include "solution.h"
TEST_CASE("Multiply Strings", "multiply")
{
Solution s;
REQUIRE(s.multiply("123456", "789") == "97406784");
REQUIRE(s.multiply("123456789", "987654321") == "121932631112635269");
}
| 24 | 74 | 0.690972 | corkiwang1122 |
b778e069dbbad5b352c9ae66f6512e2c87046021 | 12,612 | cpp | C++ | src/extern/inventor/lib/database/src/so/engines/SoCompose.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/lib/database/src/so/engines/SoCompose.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/lib/database/src/so/engines/SoCompose.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 29.127021 | 80 | 0.660006 | OpenXIP |
b77aca1fd6485a14df48ba50d7967575c7478b9d | 1,226 | cpp | C++ | Thread/ThreadPool.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | Thread/ThreadPool.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | Thread/ThreadPool.cpp | ReliaSolve/acl | a0b305e7bf6a2d86839fb6f00d7d8fbf2bd583b9 | [
"MIT"
] | null | null | null | /**
* \copyright Copyright 2021 Aqueti, Inc. All rights reserved.
* \license This project is released under the MIT Public License.
**/
/**
* \file ThreadPool.cpp
**/
#include "ThreadPool.h"
namespace acl
{
/**
* \brief initializes the thread pool
*
* \param [in] numThreads the number of threads
* \param ... | 20.433333 | 131 | 0.677814 | ReliaSolve |
b77b530d3b6239307317187caaf9c2a06a9f69df | 4,915 | hpp | C++ | include/humanize/numbers.hpp | pajlada/humanize | 13867379249c64cd44b9cd4c03f18c1a52d56587 | [
"MIT"
] | 2 | 2017-12-17T02:12:33.000Z | 2018-06-05T16:49:51.000Z | include/humanize/numbers.hpp | pajlada/humanize | 13867379249c64cd44b9cd4c03f18c1a52d56587 | [
"MIT"
] | null | null | null | include/humanize/numbers.hpp | pajlada/humanize | 13867379249c64cd44b9cd4c03f18c1a52d56587 | [
"MIT"
] | null | null | null | #pragma once
#include "humanize/format_string.hpp"
#include <array>
#include <cstring>
#include <limits>
#include <string>
#include <type_traits>
namespace humanize {
namespace {
struct NumberStruct {
int length;
char suffix;
};
// return const char * with arguments typename Number, and input char buffer
... | 24.698492 | 79 | 0.546083 | pajlada |
b77bc5e85478a41af59b4d57e231db4900b50d4f | 21,205 | cpp | C++ | dbms/src/Functions/tests/gtest_bitand.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Functions/tests/gtest_bitand.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Functions/tests/gtest_bitand.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... | 94.665179 | 2,386 | 0.777317 | solotzg |
b77d00b0b3cc78953d68a764bf11a7ebe8b6ef3f | 1,336 | cpp | C++ | src/scene/SpriteScene.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | src/scene/SpriteScene.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | src/scene/SpriteScene.cpp | projectivemotion/sdlgame1 | 9e126b6ef096605008dfc5db8e9264b68582b38a | [
"MIT"
] | null | null | null | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: SpriteScene.cpp
* Author: eye
*
* Created on October 15, 2019, 4:33 PM
*/
#include "SpriteScene.h"
#include "Draw... | 25.692308 | 81 | 0.637725 | projectivemotion |
b787d8c8027dd9c81a46ae29f82fbb07871ae73c | 1,077 | cpp | C++ | tests/test_connect_ports.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | 3 | 2021-01-10T13:35:11.000Z | 2022-02-08T06:42:55.000Z | tests/test_connect_ports.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | 1 | 2022-02-07T19:19:23.000Z | 2022-02-12T10:40:23.000Z | tests/test_connect_ports.cpp | verificationcontractor/sc_enhance | d4aa800a0ec20e420c1479fb6ba81c366eaf884f | [
"MIT"
] | null | null | null |
#include <systemc>
#include "sc_enhance.hpp"
using namespace sc_core;
using namespace sc_dt;
SC_MODULE(producer) {
SC_PROCESS_UTILS(producer);
sc_out_decl(bool, out_port);
SC_THREAD_DECLARE(logic)
SC_THREAD_BEGIN
bool x = false;
out_port.write(0);
sc_repeat(5) {
out_port... | 17.370968 | 49 | 0.628598 | verificationcontractor |
b78bbdae64676266973a03e73617c37f4f107cd1 | 6,244 | cpp | C++ | openEAR-0.1.0/src/SMILExtract.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/SMILExtract.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/SMILExtract.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | /*F******************************************************************************
*
* openSMILE - open Speech and Music Interpretation by Large-space Extraction
* the open-source Munich Audio Feature Extraction Toolkit
* Copyright (C) 2008-2009 Florian Eyben, Martin Woellmer, Bjoern Schuller
*
*
* Institu... | 34.882682 | 230 | 0.662076 | trimlab |
b7974f5615870f97c9dcc40c9b346dca3cb54ddf | 2,584 | cpp | C++ | src/Verde/graphics/Graphics.cpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | src/Verde/graphics/Graphics.cpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | src/Verde/graphics/Graphics.cpp | Cannedfood/Verde2D | 3a09e2ecc6b62281e5190183faef55c8f0447d27 | [
"CC0-1.0"
] | null | null | null | #include "Graphics.hpp"
#include "StaticGraphics.hpp"
#include "AtlasAnimation.hpp"
#include <unordered_map>
#include <cstring>
#include <fstream>
void Graphics::writeOrPrefab(YAML::Emitter &to) {
if(mPrefab.size() != 0)
to << mPrefab;
else
write(to);
}
std::unordered_map<std::string, std::shared_ptr<Graphics... | 20.83871 | 85 | 0.596362 | Cannedfood |
b797b8da62ddc030639442dbbcda567330b71efa | 1,718 | cpp | C++ | Stats_Simulator/Varistein_BattleSimulator/Main.cpp | KuronoaScarlet/Varistein-Battle-Prototype | 4409087771a0d00be0e707838858c6782435cf85 | [
"MIT"
] | null | null | null | Stats_Simulator/Varistein_BattleSimulator/Main.cpp | KuronoaScarlet/Varistein-Battle-Prototype | 4409087771a0d00be0e707838858c6782435cf85 | [
"MIT"
] | null | null | null | Stats_Simulator/Varistein_BattleSimulator/Main.cpp | KuronoaScarlet/Varistein-Battle-Prototype | 4409087771a0d00be0e707838858c6782435cf85 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Utils.h"
#include <sys/types.h>
using namespace std;
int main()
{
srand(time(NULL));
float repeat = 10, simNum = 1000, allyWins, enemWins;
int atk = 4, def = 5, hp = 100, cc = 10;
int eatk = 10, edef = 10, ehp = 100, ecc = 10;
Ability* punch = new Ability(0, 20, 0, "Punch", Tag::O... | 22.025641 | 99 | 0.587893 | KuronoaScarlet |
b799c1ee976390431876cf1e3d57d4b2066ecc41 | 7,197 | cpp | C++ | src/hssh/global_topological/graph.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/hssh/global_topological/graph.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/hssh/global_topological/graph.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 38.486631 | 123 | 0.610393 | h2ssh |
b7a21ee24a54fed701d3ae10fc5fffe59fead599 | 634 | cpp | C++ | source/glbinding/source/gl/functions_h.cpp | dutow/glbinding | ac12883c4387650c29dbbf01278b7198083750d9 | [
"MIT"
] | null | null | null | source/glbinding/source/gl/functions_h.cpp | dutow/glbinding | ac12883c4387650c29dbbf01278b7198083750d9 | [
"MIT"
] | null | null | null | source/glbinding/source/gl/functions_h.cpp | dutow/glbinding | ac12883c4387650c29dbbf01278b7198083750d9 | [
"MIT"
] | 1 | 2021-07-01T07:45:44.000Z | 2021-07-01T07:45:44.000Z |
#include "../Binding_pch.h"
#include <glbinding/gl/functions.h>
using namespace glbinding;
namespace gl
{
void glHint(GLenum target, GLenum mode)
{
return Binding::Hint(target, mode);
}
void glHintPGI(GLenum target, GLint mode)
{
return Binding::HintPGI(target, mode);
}
void glHistogram(GLenum target,... | 16.684211 | 88 | 0.736593 | dutow |
b7a6cbea9cff8d1602e5b7f70ebf37a7fb6e41a8 | 9,647 | cpp | C++ | igraph/src/prpack_base_graph.cpp | jmazon/haskell-igraph | c000ec7939e73d4f563a85751aaeb973bfda7d40 | [
"MIT"
] | 8 | 2017-07-22T21:49:37.000Z | 2021-02-24T20:57:15.000Z | igraph/src/prpack_base_graph.cpp | jmazon/haskell-igraph | c000ec7939e73d4f563a85751aaeb973bfda7d40 | [
"MIT"
] | 4 | 2018-05-22T17:48:16.000Z | 2021-03-16T20:23:23.000Z | igraph/src/prpack_base_graph.cpp | jmazon/haskell-igraph | c000ec7939e73d4f563a85751aaeb973bfda7d40 | [
"MIT"
] | 3 | 2017-09-08T07:49:21.000Z | 2021-04-26T13:00:56.000Z | #include "prpack_base_graph.h"
#include "prpack_utils.h"
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <limits>
using namespace prpack;
using namespace std;
void prpack_base_graph::initialize() {
heads = NULL;
tails = NULL;
vals = NULL;
}
prpack_base... | 28.883234 | 101 | 0.497357 | jmazon |
b7a6dad9078d2a05fed828dfa606c14d9ec831c4 | 181 | cpp | C++ | src/asserter.cpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | src/asserter.cpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | 12 | 2018-06-18T12:56:33.000Z | 2020-09-08T10:29:29.000Z | src/asserter.cpp | IanHG/cutee | b3b3eba5d78b4871847a5251d311b588e7ba97c0 | [
"MIT"
] | null | null | null | #include "../include/cutee/typedef.hpp"
#include "../include/cutee/suite.hpp"
namespace cutee
{
Cutee_thread_local suite* asserter::_suite_ptr = nullptr;
} /* namespace cutee */
| 18.1 | 57 | 0.729282 | IanHG |
b7aa4dd7bf752da74e01f9965d6e97d55b0fcc23 | 1,672 | cpp | C++ | MMOCoreORB/src/server/zone/objects/tangible/variables/SkillModMap.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/src/server/zone/objects/tangible/variables/SkillModMap.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/src/server/zone/objects/tangible/variables/SkillModMap.cpp | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z | /*
* SkillModMap.cpp
*
* Created on: Jan 31, 2012
* Author: xyborn
*/
#include "SkillModMap.h"
SkillModMap::SkillModMap() {
skillMods.setNoDuplicateInsertPlan();
skillMods.setNullValue(0);
addSerializableVariables();
}
SkillModMap::SkillModMap(const SkillModMap& smm) : Object() {
skillMods = smm.skil... | 22.293333 | 82 | 0.657895 | V-Fib |
b7ac72637aa6f8b8a7cc7147ea7462a528fffbc1 | 57 | cpp | C++ | src/sink.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | src/sink.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | src/sink.cpp | JacknJo/JacksHome | b1b2d0d7683eb1a8adcfdd02380c6b620e567fe2 | [
"MIT"
] | null | null | null | #include "sink.hpp"
namespace jhm
{
} // namespace jhm. | 11.4 | 20 | 0.666667 | JacknJo |
b7ad65a26c97cb14a2497f45b667f3303bafb8fc | 10,685 | cpp | C++ | test/acl_sampler_test.cpp | sherry-yuan/fpga-runtime-for-opencl | df4be1924268cdb7841da2a6b0618b7bb8a47628 | [
"BSD-3-Clause"
] | 11 | 2021-11-19T20:52:09.000Z | 2022-03-23T10:41:42.000Z | test/acl_sampler_test.cpp | sherry-yuan/fpga-runtime-for-opencl | df4be1924268cdb7841da2a6b0618b7bb8a47628 | [
"BSD-3-Clause"
] | 49 | 2021-11-08T18:26:37.000Z | 2022-03-31T14:25:29.000Z | test/acl_sampler_test.cpp | sherry-yuan/fpga-runtime-for-opencl | df4be1924268cdb7841da2a6b0618b7bb8a47628 | [
"BSD-3-Clause"
] | 6 | 2021-11-02T17:45:37.000Z | 2022-02-12T00:47:15.000Z | // Copyright (C) 2010-2021 Intel Corporation
// SPDX-License-Identifier: BSD-3-Clause
#if ACL_SUPPORT_IMAGES == 1
#ifdef _MSC_VER
#pragma warning(push)
#pragma warning(disable : 4100) // unreferenced formal parameter
#endif
#include <CppUTest/TestHarness.h>
#ifdef _MSC_VER
#pragma warning(pop)
#endif
#include <CL/op... | 34.691558 | 80 | 0.69153 | sherry-yuan |
b7b0d41ce7c0d9e3f31ebf247c1b6a5a57f9b276 | 6,982 | cpp | C++ | source/engine/adl_editor/adlSpawn_editor.cpp | AtakanFire/adlGame | d617988b166c1cdd50dd7acb26507231a502a537 | [
"MIT"
] | 6 | 2018-08-28T19:52:03.000Z | 2020-12-02T13:59:00.000Z | source/engine/adl_editor/adlSpawn_editor.cpp | AtakanFire/adlGame | d617988b166c1cdd50dd7acb26507231a502a537 | [
"MIT"
] | 16 | 2019-03-01T09:37:33.000Z | 2019-05-13T13:10:54.000Z | source/engine/adl_editor/adlSpawn_editor.cpp | AtakanFire/adlGame | d617988b166c1cdd50dd7acb26507231a502a537 | [
"MIT"
] | 4 | 2018-10-29T18:04:18.000Z | 2021-02-05T13:13:00.000Z | #include "adlSpawn_editor.h"
#include "engine/adl_debug/imgui/imgui.h"
#include "engine/adl_entities/adlEntity_factory.h"
#include "engine/adl_resource/adlResource_manager.h"
adlSpawn_editor::adlSpawn_editor()
{
}
adlSpawn_editor::~adlSpawn_editor()
{
}
void adlSpawn_editor::init()
{
spawn_transform_.scale... | 26.24812 | 156 | 0.600687 | AtakanFire |
b7b1421c6992b2f7df2f48a563a55201391df9a3 | 2,330 | hpp | C++ | test/TestApp/Source/MaidChanGame.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | test/TestApp/Source/MaidChanGame.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | test/TestApp/Source/MaidChanGame.hpp | bis83/pomdog | 133a9262958d539ae6d93664e6cb2207b5b6c7ff | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2015 mogemimi.
// Distributed under the MIT license. See LICENSE.md file for details.
#ifndef POMDOG_MAIDCHANGAME_FB2D5E96_HPP
#define POMDOG_MAIDCHANGAME_FB2D5E96_HPP
#include <Pomdog.Experimental/InGameEditor/detail/EditorBackground.hpp>
#include <Pomdog.Experimental/Skeletal2D/detail/Animatio... | 28.414634 | 84 | 0.762661 | bis83 |
5d9a97058e433a3b6d127826efd220407aac5e5a | 694 | cpp | C++ | Array/Kadane's Algorithm/05. PrintLongestEvenOddSubarray.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | 2 | 2021-05-21T17:10:02.000Z | 2021-05-29T05:13:06.000Z | Array/Kadane's Algorithm/05. PrintLongestEvenOddSubarray.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | Array/Kadane's Algorithm/05. PrintLongestEvenOddSubarray.cpp | sohamnandi77/Cpp-Data-Structures-And-Algorithm | f29a14760964103a5b58cfff925cd8f7ed5aa6c1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void printLongestEvenOddOP(int arr[], int n)
{
int res = 1, curr = 1, endIndex = 0;
for (int i = 1; i < n; i++)
{
if ((arr[i] % 2 == 0 && arr[i - 1] % 2 != 0) || (arr[i] % 2 != 0 && arr[i - 1] % 2 == 0))
{
curr++;
if (res < cu... | 21.6875 | 97 | 0.403458 | sohamnandi77 |
5d9c42384fa7a6528beb8ffb7c9d16dfa8a4cc67 | 3,429 | cpp | C++ | Source/TitaniumKit/src/Contacts/Group.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 20 | 2015-04-02T06:55:30.000Z | 2022-03-29T04:27:30.000Z | Source/TitaniumKit/src/Contacts/Group.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 692 | 2015-04-01T21:05:49.000Z | 2020-03-10T10:11:57.000Z | Source/TitaniumKit/src/Contacts/Group.cpp | garymathews/titanium_mobile_windows | ff2a02d096984c6cad08f498e1227adf496f84df | [
"Apache-2.0"
] | 22 | 2015-04-01T20:57:51.000Z | 2022-01-18T17:33:15.000Z | /**
* TitaniumKit Titanium.Contacts.Group
*
* Copyright (c) 2015-2016 by Appcelerator, Inc. All Rights Reserved.
* Licensed under the terms of the Apache Public License.
* Please see the LICENSE included with this distribution for details.
*/
#include "Titanium/Contacts/Group.hpp"
#include "Titanium/Contacts/Per... | 29.059322 | 100 | 0.748906 | garymathews |
5da16658b607fe7a8707377b605c51f20f3efe09 | 6,555 | cpp | C++ | experimental/graphite/src/DrawWriter.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 5 | 2022-02-12T07:52:56.000Z | 2022-03-10T23:55:51.000Z | experimental/graphite/src/DrawWriter.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 3 | 2019-07-05T17:29:15.000Z | 2019-08-19T15:01:09.000Z | experimental/graphite/src/DrawWriter.cpp | stayf/skia | 454c04e8f3b45ba0c518cbdd49f67bfb95d83c35 | [
"BSD-3-Clause"
] | 2 | 2022-02-12T07:52:59.000Z | 2022-03-03T03:06:23.000Z | /*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "experimental/graphite/src/DrawWriter.h"
#include "experimental/graphite/src/DrawBufferManager.h"
#include "src/gpu/BufferWriter.h"
namespace skgpu {
DrawWriter::Dr... | 39.727273 | 100 | 0.646529 | stayf |
5da91969a5720632623d148beafd7ec7359bd343 | 26,468 | cpp | C++ | source/App/TAppDownConvert/TAppDownConvert.cpp | mdasari823/shvc | 17c99abbb2bcab3a382d092d75a42e57b74cff1d | [
"BSD-3-Clause"
] | null | null | null | source/App/TAppDownConvert/TAppDownConvert.cpp | mdasari823/shvc | 17c99abbb2bcab3a382d092d75a42e57b74cff1d | [
"BSD-3-Clause"
] | null | null | null | source/App/TAppDownConvert/TAppDownConvert.cpp | mdasari823/shvc | 17c99abbb2bcab3a382d092d75a42e57b74cff1d | [
"BSD-3-Clause"
] | null | null | null | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2016, ITU/ISO/IEC
* All rights reser... | 40.972136 | 202 | 0.610737 | mdasari823 |
5da9227781eb96f71864d43896619633bcd7ce2b | 725 | hpp | C++ | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | 1 | 2018-08-29T06:36:23.000Z | 2018-08-29T06:36:23.000Z | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | ProjectMajestic/Chunk.hpp | Edgaru089/ProjectMajestic | 16cda6f86fd5ad02baedc9481609d6140cdda62a | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "Main.hpp"
#include "TextureManager.hpp"
#include "Data.hpp"
#include "Block.hpp"
const int chunkSize = 16;
class Chunk {
public:
friend class TerrainManager;
~Chunk();
void updateLogic();
void getRenderList(VertexArray & verts);
void getLightMask(VertexArray& verts)... | 18.125 | 63 | 0.736552 | Edgaru089 |
5dad7dc4efc0d79571baeb86707000cbb1329e53 | 499 | cpp | C++ | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | 1 | 2022-02-28T02:57:30.000Z | 2022-02-28T02:57:30.000Z | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | null | null | null | 0x7E9FB/hand file/Socket/Sockets.cpp | 518651/0x7E9FB-Net-Project | ec6ad70aa8c0df1eaa318034b2513c6394d9fbe6 | [
"MIT"
] | null | null | null | //#include "Sockets.h"
#include "../../Un-main.h"
bool GetSocketAddress(char* host, sockaddr_in* address)
{
struct addrinfo* result = NULL;
struct addrinfo* ptr = NULL;
struct addrinfo hints;
ZeroMemory(&hints, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_STREAM;
hints.ai_pro... | 24.95 | 63 | 0.687375 | 518651 |
5dae83510a21f412177fed4a4c7bcdab8c2d77d4 | 1,068 | cpp | C++ | debian/passenger-2.2.15/benchmark/ApplicationPool.cpp | brightbox/nginx-brightbox | cbb27b979ff8de2a6d3f57cebb214f0cde348d3f | [
"BSD-2-Clause"
] | 4 | 2016-05-09T12:50:34.000Z | 2020-10-08T07:28:46.000Z | benchmark/ApplicationPool.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | null | null | null | benchmark/ApplicationPool.cpp | chad/passenger | 74fb3cf821d5b5d5bae37e03ba7ccaffc13ce9d0 | [
"MIT"
] | 1 | 2020-10-08T07:51:20.000Z | 2020-10-08T07:51:20.000Z | //#define USE_SERVER
#include <iostream>
#include <boost/bind.hpp>
#include <boost/thread.hpp>
#ifdef USE_SERVER
#include "ApplicationPoolServer.h"
#else
#include "StandardApplicationPool.h"
#endif
#include "Utils.h"
#include "Logging.h"
using namespace std;
using namespace boost;
using namespace Passenger;
#defin... | 20.150943 | 77 | 0.714419 | brightbox |
5db66d7a1f7ee5905f64100438a12008879295df | 5,129 | cxx | C++ | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | null | null | null | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | null | null | null | examples/structure.cxx | elcuco/mimetic | 00c46f7e25235ea6de9ddefc0b63c3249eb1d1da | [
"MIT"
] | 1 | 2022-02-24T19:24:28.000Z | 2022-02-24T19:24:28.000Z | /***************************************************************************
copyright : (C) 2002-2008 by Stefano Barbato
email : stefano@codesink.org
$Id: structure.cxx,v 1.6 2008-10-07 11:06:25 tat Exp $
**************************************************************************... | 29.819767 | 93 | 0.454475 | elcuco |
5db6b84160fefe6dbb129a5b04cfe16bf03ac470 | 24,205 | cpp | C++ | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 537 | 2021-10-03T10:51:49.000Z | 2022-03-31T10:07:05.000Z | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 52 | 2021-10-04T09:05:35.000Z | 2022-03-31T07:35:22.000Z | example-hard-decode-pybind/src/ffhdd/cuvid_decoder.cpp | shouxieai/tensorRT_Pro | 963c8250c3cefc568d7d13f3b1b6769393d7b94e | [
"MIT"
] | 146 | 2021-10-11T00:46:19.000Z | 2022-03-31T02:19:37.000Z |
#include "cuvid_decoder.hpp"
#include "cuda_tools.hpp"
#include <nvcuvid.h>
#include <mutex>
#include <vector>
#include <sstream>
#include <string.h>
#include <assert.h>
using namespace std;
void convert_nv12_to_bgr_invoker(
const uint8_t* y, const uint8_t* uv, int width, int height, int linesize, uint8_t* dst_... | 45.842803 | 177 | 0.599215 | shouxieai |
5dbbb8e8f2cf49cd4bf76f284d059b5a80443409 | 1,347 | cpp | C++ | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 1 | 2021-11-19T19:58:33.000Z | 2021-11-19T19:58:33.000Z | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | null | null | null | Dynamic Programming/139. Word Break/main.cpp | Minecodecraft/LeetCode-Minecode | 185fd6efe88d8ffcad94e581915c41502a0361a0 | [
"MIT"
] | 2 | 2021-11-26T12:47:27.000Z | 2022-01-13T16:14:46.000Z | //
// main.cpp
// 139. Word Break
//
// Created by 边俊林 on 2019/8/22.
// Copyright © 2019 Minecode.Link. All rights reserved.
//
/* ------------------------------------------------------ *\
https://leetcode.com/problems/word-break/
\* ------------------------------------------------------ */
#include <map>
#inclu... | 24.053571 | 77 | 0.504826 | Minecodecraft |
5dbed243bc1ef60853dcabaa4ecd87938ddc8c71 | 1,059 | cpp | C++ | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | Leetcode/Day026/add_2_num_LL_2.cpp | SujalAhrodia/Practice_2020 | 59b371ada245ed8253d12327f18deee3e47f31d6 | [
"MIT"
] | null | null | null | // not sure if this is not reversing the list.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode* addTwoNumbers(ListNode* l1, ListNode* l2)
{
ListNode* ans = N... | 20.365385 | 56 | 0.390935 | SujalAhrodia |
5dbfb9eee1c05aef2e5a2211f35767cb136b519a | 3,728 | cpp | C++ | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | 3 | 2021-04-27T08:52:40.000Z | 2021-05-19T18:05:40.000Z | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | PhysXChips_Dlg/PhysXMaterial_Dlg.cpp | snaxgameengine/PhysXForSnaX | aa18d93a30e6cfe11b0258af3733b65de0adf832 | [
"BSD-3-Clause"
] | null | null | null | // Copyright(c) 2013-2019, mCODE A/S
// 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
// notice, this list of conditio... | 63.186441 | 246 | 0.747049 | snaxgameengine |
5dc9027100b9729b1d99f263135cc6893f3370aa | 758 | hpp | C++ | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | include/eve/function/operator.hpp | orao/eve | a8bdc6a9cab06d905e8749354cde63776ab76846 | [
"MIT"
] | null | null | null | //==================================================================================================
/**
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
**/
//==================================================================================================
#... | 36.095238 | 100 | 0.488127 | orao |
5dcb6f415d3d60d3f591f35cd1f585a5ae2cadc7 | 1,596 | cpp | C++ | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | crnlib/crn_checksum.cpp | HugoPeters/crunch | 44c8402e24441c7524ca364941fd224ab3b971e9 | [
"Zlib"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | // File: crn_checksum.cpp
#include "crn_core.h"
namespace crnlib
{
// From the public domain stb.h header.
uint adler32(const void* pBuf, size_t buflen, uint adler32)
{
const uint8* buffer = static_cast<const uint8*>(pBuf);
const unsigned long ADLER_MOD = 65521;
unsigned lo... | 24.9375 | 63 | 0.43609 | HugoPeters |
5dcbdd5bf5ae328f67ff8dc9898c6ee5ad78fa67 | 3,407 | cpp | C++ | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | libs/image/color_ops.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "color_ops.h"
#include "threading.h"
#include <color/color.h>
#include <sstream>
////////////////////////////////////////
namespace color
{
engine::hash &operator<<( engine::hash &h, const state &p );
/// \todo { do something... | 26.207692 | 93 | 0.487526 | kdt3rd |
5dd1174a5b97fe10eb3ec2729a3225b446f3c65e | 13,323 | cpp | C++ | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | src/kernel/Version.cpp | PHP-OPEN-HUB/polarphp | 70ff4046e280fd99d718d4761686168fa8012aa5 | [
"PHP-3.01"
] | null | null | null | //===--- Version.cpp - Swift Version Number -------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
//===---------------------... | 31.201405 | 96 | 0.61953 | PHP-OPEN-HUB |
5dd14a1d5e434f04c1ee055a0d27bf099a7e7f5a | 1,245 | hpp | C++ | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 691 | 2015-01-15T18:52:23.000Z | 2022-03-15T23:39:39.000Z | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 22 | 2015-03-11T01:22:56.000Z | 2021-03-29T01:51:45.000Z | sprout/numeric/dft/cxx14/spectrum.hpp | kevcadieux/Sprout | 6b5addba9face0a6403e66e7db2aa94d87387f61 | [
"BSL-1.0"
] | 57 | 2015-03-11T07:52:29.000Z | 2021-12-16T09:15:33.000Z | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
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.tx... | 38.90625 | 109 | 0.680321 | kevcadieux |
5dd7a523db90223a3c025dd6f203d0d8374852dc | 52 | cc | C++ | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | vector/Vector.cc | me701/cpp_classes | 302d10855069bbb818d317cc98d21ae9d7f8f3eb | [
"MIT"
] | null | null | null | #include "Vector.hh"
// Member definitions go here
| 13 | 29 | 0.730769 | me701 |
5ddf649cbcc500b7ebfe96f1e6cc58a638ac0ebf | 4,661 | cpp | C++ | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | src/Devantech_CMPS11.cpp | sgparry/Devantech_Compass | d49fea0d03ff2adf0c9e527c81bab9ddfd728356 | [
"MIT"
] | null | null | null | /***********************************************************************************
* Copyright (c) 2018 EduMake Limited and Stephen Parry (sgparry@mainscreen.com)
* See file LICENSE for further details
* MIT license, this line and all text above must be included in any redistribution
*****************************... | 29.314465 | 111 | 0.750483 | sgparry |
5de3630a88b02043850ea8c06e3e3203199c0546 | 214 | cpp | C++ | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | reverse_strings.cpp | HeyIamJames/Learning-C- | 623fad8cb50d71e7404f270f965c8915f8a02c64 | [
"MIT"
] | null | null | null | void reverseChar(char* str) {
const size_t len = strlen(str);
for(size_t i=0; i<len/2; i++)
swap(str[i], str[len-i-1]);
}
void reverseChar(char* str) {
std::reverse(str, str + strlen(str));
}
| 19.454545 | 41 | 0.584112 | HeyIamJames |
5de59cb07f002d870ba38d424909ae56214de11f | 6,492 | hpp | C++ | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | src/tpl/simpool/DynamicPoolAllocator.hpp | nanzifan/Umpire-edit | 990895b527bef0716aaa0fbb0c0f2017e8e15882 | [
"MIT"
] | null | null | null | #ifndef _DYNAMICPOOLALLOCATOR_HPP
#define _DYNAMICPOOLALLOCATOR_HPP
#include <cstddef>
#include <cassert>
#include "umpire/tpl/simpool/StdAllocator.hpp"
#include "umpire/tpl/simpool/FixedPoolAllocator.hpp"
#include "umpire/strategy/AllocationStrategy.hpp"
template <class IA = StdAllocator>
class DynamicPoolAllocator... | 26.606557 | 99 | 0.628928 | nanzifan |
5de9de20e00b94b067e4445dd7c48b5a84932e64 | 4,185 | hpp | C++ | include/itp/core_bits/core_fileio.hpp | TING2938/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 4 | 2021-11-23T15:02:13.000Z | 2022-03-21T16:32:09.000Z | include/itp/core_bits/core_fileio.hpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | null | null | null | include/itp/core_bits/core_fileio.hpp | jianghuili/Gmx2020PostAnalysis | 0859383946c05c7424adb1ffa72fd2f8066ce850 | [
"MIT"
] | 1 | 2021-11-23T15:01:49.000Z | 2021-11-23T15:01:49.000Z | #ifndef __CORE_FILEIO_HPP__
#define __CORE_FILEIO_HPP__
#include <fstream>
#include "../core"
namespace itp
{
namespace inner
{
inline bool is_comment(std::string& line, std::string& comments)
{
auto np = line.find_first_not_of(" ");
return np == std::string::npos || (c... | 28.469388 | 122 | 0.45687 | TING2938 |
5dea70019f2b53cda332b8cad86fefc279ad2e3c | 77,691 | cc | C++ | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | src/cxx/libsparse/libsparse2d/MR_NoiseModel.cc | jstarck/cosmostat | f686efe4c00073272487417da15e207a529f07e7 | [
"MIT"
] | null | null | null | /******************************************************************************
** Copyright (C) 1996 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 18:28:57
**
** Author: Jean-Luc Starck
**
** Date: 97/05/06
**
** F... | 31.77546 | 129 | 0.477404 | jstarck |
5deb11b2b625dc4a762fa6ca09adcf714906b83c | 1,519 | cpp | C++ | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | null | null | null | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | null | null | null | src/PlayMusicOnStartC.cpp | NoVariableGlobal/g.shift | 35907cd4aa931dbef8d15cade76d8cab1d11716c | [
"MIT"
] | 1 | 2020-10-07T15:09:57.000Z | 2020-10-07T15:09:57.000Z | #include "PlayMusicOnStartC.h"
#include "ComponentsManager.h"
#include "Entity.h"
#include "FactoriesFactory.h"
#include "Scene.h"
#include "SoundComponent.h"
#include <json.h>
// COMPONENT CODE
void PlayMusicOnStartC::destroy() {
stopCurrentMusic(music_);
setActive(false);
scene_->getComponentsManager()-... | 27.618182 | 80 | 0.677419 | NoVariableGlobal |
5def05c6497532561c420c99e28ef891b12862e6 | 496 | cpp | C++ | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | source/main.cpp | Sticky-Bits/voxel_engine | d730c6bc652df11d0ca6cfe750bf32fb71906440 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "Game.h"
int main()
{
// Load settings
Settings* p_settings = new Settings();
p_settings->load_settings();
// Create game using settings
Game* p_game = Game::get_instance();
p_game->create(p_settings);
// Main loop
while (!p_game->should_close())
{
// Poll input events
p_ga... | 14.588235 | 39 | 0.65121 | Sticky-Bits |
5def8e8e8d39e584d096d1f97b7676a1d132b9bc | 2,639 | cpp | C++ | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/404-C/9402829.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++0x
//created by Yash Sadhwani
//sadhwaniyash6
#include<stdio.h>
#include<iostream>
#include<vector>
#include<string.h>
#include<algorithm>
#include<deque>
#include<map>
#include<set>
#include<stdlib.h>
#include<math.h>
#include<queue>
#include<functional>
using namespace std;
#define... | 21.991667 | 101 | 0.483516 | AmrARaouf |
5df3db5beeb54baf4b1d1c617d7f80cd345c849c | 2,401 | cpp | C++ | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/manual/widgets/itemviews/qtreeview/main.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 36.938462 | 77 | 0.688047 | power-electro |
5df3f62863952cbba5581906d60a098a129cc588 | 436 | hpp | C++ | cpp/include/init_numpy.hpp | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 2 | 2022-02-10T00:38:53.000Z | 2022-03-17T22:08:40.000Z | cpp/include/init_numpy.hpp | davidkleiven/CEMC | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 30 | 2018-05-21T14:52:00.000Z | 2021-02-24T07:45:09.000Z | cpp/include/init_numpy.hpp | davidkleiven/WangLandau | 0b253dd98033c53560fe95c76f5e38257834bdf6 | [
"MIT"
] | 3 | 2018-10-09T14:03:32.000Z | 2022-02-09T05:36:05.000Z | #ifndef INIT_NUMPY_H
#define INIT_NUMPY_H
#include <Python.h>
#define PY_ARRAY_UNIQUE_SYMBOL CE_UPDATER_ARRAY_API
#include "numpy/ndarrayobject.h"
#if PY_MAJOR_VERSION >= 3
inline int* init_numpy()
{
import_array();
// Avoid compilation warning
// import_array is a macro that inserts a return statement
// ... | 18.166667 | 61 | 0.743119 | davidkleiven |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.