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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3fc2a174476f2c36ae82f3a0eb8634353eaaf27 | 11,531 | cpp | C++ | arduino/libraries/Button2/src/Button2.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/Button2/src/Button2.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/Button2/src/Button2.cpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | /////////////////////////////////////////////////////////////////
/*
Button2.cpp - Arduino Library to simplify working with buttons.
Created by Lennart Hennigs.
*/
/////////////////////////////////////////////////////////////////
#include "Button2.h"
///////////////////////////////////////////////////////////////... | 27.586124 | 144 | 0.471338 | Mchaney3 |
a3fe874a4d7150056180b581459429533fed4e75 | 15,430 | cc | C++ | src/Circle.cc | DottorZini/Clothoids | 5dc563ae56044edb3efee1f3ca37501afa184328 | [
"BSD-2-Clause"
] | null | null | null | src/Circle.cc | DottorZini/Clothoids | 5dc563ae56044edb3efee1f3ca37501afa184328 | [
"BSD-2-Clause"
] | null | null | null | src/Circle.cc | DottorZini/Clothoids | 5dc563ae56044edb3efee1f3ca37501afa184328 | [
"BSD-2-Clause"
] | null | null | null | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2017 |
| |
| ... | 28.311927 | 83 | 0.358652 | DottorZini |
a3feb5ac74dcb3f04003fceb6fbfead6c66660b5 | 458 | cpp | C++ | src/file.cpp | jw-develop/bit-chess | ffb80dd65f798b60feb180f552dae90fb776c55e | [
"MIT"
] | null | null | null | src/file.cpp | jw-develop/bit-chess | ffb80dd65f798b60feb180f552dae90fb776c55e | [
"MIT"
] | null | null | null | src/file.cpp | jw-develop/bit-chess | ffb80dd65f798b60feb180f552dae90fb776c55e | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2013-2016 Phokham Nonava
*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
#include "file.h"
namespace pulse {
const std::array<int, File::VALUES_SIZE> File::values = {
a, b, c, d, e, f, g, h
};
bool File::isValid(int file) {
switch (fi... | 13.878788 | 69 | 0.611354 | jw-develop |
430130c297d0e143a7ac637e729e58e765cd04ea | 3,377 | cpp | C++ | Atcoder/AGC038/F.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | Atcoder/AGC038/F.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | Atcoder/AGC038/F.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int _abs(int x){return x<0 ? -x : x;}
int add(int x,int y){x+=y; ret... | 29.622807 | 98 | 0.491857 | jinzhengyu1212 |
4305dfad6c9432e9fcaef8022c5aa95a1c4a86e5 | 1,364 | hpp | C++ | include/eepp/version.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | include/eepp/version.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | include/eepp/version.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #ifndef EE_VERSION_HPP
#define EE_VERSION_HPP
#include <eepp/config.hpp>
#include <string>
#define EEPP_MAJOR_VERSION 2
#define EEPP_MINOR_VERSION 3
#define EEPP_PATCH_LEVEL 0
#define EEPP_CODENAME "Anāgāmin"
/** The compiled version of the library */
#define EEPP_VERSION( x ) \
{ ... | 25.259259 | 94 | 0.670821 | jayrulez |
430d5c6dc6cee51f1fce3bc6ecabafe7d6c03d14 | 10,065 | cxx | C++ | RAW/RAWDatarec/AliRawReaderChain.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | RAW/RAWDatarec/AliRawReaderChain.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | RAW/RAWDatarec/AliRawReaderChain.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 28.114525 | 110 | 0.641232 | AllaMaevskaya |
430d7e39c530e6e043f7f754b4095f7c2a87f275 | 11,953 | cpp | C++ | src/modules/osgAnimation/generated_code/UpdateBone.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 3 | 2017-04-20T09:11:47.000Z | 2021-04-29T19:24:03.000Z | src/modules/osgAnimation/generated_code/UpdateBone.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | src/modules/osgAnimation/generated_code/UpdateBone.pypp.cpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | null | null | null | // This file has been generated by Py++.
#include "boost/python.hpp"
#include "wrap_osgAnimation.h"
#include "wrap_referenced.h"
#include "UpdateBone.pypp.hpp"
namespace bp = boost::python;
struct UpdateBone_wrapper : osgAnimation::UpdateBone, bp::wrapper< osgAnimation::UpdateBone > {
UpdateBone_wrapper(::std::... | 40.518644 | 176 | 0.596252 | cmbruns |
430dfce395d8d768640c6c5a8edb0a1241d638f6 | 92 | cpp | C++ | Include em C/Include.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | Include em C/Include.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | Include em C/Include.cpp | Suricat0Br/Programacao-em-C | a04b5b8e3dbbf82fcec4888d7bdf888bdc53d715 | [
"Apache-2.0"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include "./incluindo/main.cpp";
| 18.4 | 32 | 0.695652 | Suricat0Br |
430e73b3d7bd1f597a6e88a06e52f7ce9b50653b | 2,612 | hpp | C++ | include/libtorrent/bandwidth_queue_entry.hpp | luluandleilei/libtorrent | 8648de3706efe0d9ab2504793bd0dd8a9566a1d6 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2016-04-26T03:43:54.000Z | 2016-11-17T08:09:04.000Z | include/libtorrent/bandwidth_queue_entry.hpp | luluandleilei/libtorrent | 8648de3706efe0d9ab2504793bd0dd8a9566a1d6 | [
"BSL-1.0",
"BSD-3-Clause"
] | 17 | 2015-01-05T21:06:22.000Z | 2015-12-07T20:45:44.000Z | include/libtorrent/bandwidth_queue_entry.hpp | luluandleilei/libtorrent | 8648de3706efe0d9ab2504793bd0dd8a9566a1d6 | [
"BSL-1.0",
"BSD-3-Clause"
] | 3 | 2016-04-26T03:43:55.000Z | 2020-11-06T11:02:08.000Z | /*
Copyright (c) 2007-2016, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and ... | 35.297297 | 78 | 0.785988 | luluandleilei |
430eb6d7507eae1b9c274b976848ed8efe00d842 | 9,117 | cpp | C++ | src/audio/oni-audio-manager.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 2 | 2019-08-01T09:18:49.000Z | 2020-03-26T05:59:52.000Z | src/audio/oni-audio-manager.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | null | null | null | src/audio/oni-audio-manager.cpp | sina-/granite | 95b873bc545cd4925b5cea8c632a82f2d815be6e | [
"MIT"
] | 1 | 2020-03-26T05:59:53.000Z | 2020-03-26T05:59:53.000Z | #include <oni-core/audio/oni-audio-manager.h>
#include <assert.h>
#include <fmod.hpp>
#include <oni-core/component/oni-component-geometry.h>
#include <oni-core/entities/oni-entities-manager.h>
#include <oni-core/game/oni-game-event.h>
#define ERRCHECK(_result) assert((_result) == FMOD_OK)
namespace oni {
Audi... | 29.990132 | 114 | 0.576834 | sina- |
430f0d60423784bdaa7331746bab5791c9aeac4f | 277 | hpp | C++ | Client/client/Global.hpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 14 | 2019-03-05T10:03:59.000Z | 2021-12-21T03:00:18.000Z | Client/client/Global.hpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2019-10-24T21:37:59.000Z | 2019-10-24T21:37:59.000Z | Client/client/Global.hpp | pinkmouse/SlayersWorld | 53cdde28f3464ee9ada9b655f8c4df63f0e9389e | [
"MIT"
] | 1 | 2020-12-06T21:07:52.000Z | 2020-12-06T21:07:52.000Z | #pragma once
#include "Entities/Player.hpp"
#include "Socket/Socket.hpp"
#include <SFML/Graphics/Font.hpp>
#include "World/ConfigHandler.hpp"
extern ConfigHandler* g_Config;
extern Player* g_Player;
extern Socket* g_Socket;
extern sf::Font* g_Font; | 25.181818 | 34 | 0.703971 | pinkmouse |
430f44e2fb83aa6d267000ba687eaa6e6177c9cb | 3,444 | hpp | C++ | cpp/src/jit/common_headers.hpp | jperez999/cudf | e63eb311089837eaa24fa871e1106ec3ce5df318 | [
"Apache-2.0"
] | null | null | null | cpp/src/jit/common_headers.hpp | jperez999/cudf | e63eb311089837eaa24fa871e1106ec3ce5df318 | [
"Apache-2.0"
] | null | null | null | cpp/src/jit/common_headers.hpp | jperez999/cudf | e63eb311089837eaa24fa871e1106ec3ce5df318 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2019-2020, NVIDIA CORPORATION.
*
* Copyright 2018-2019 BlazingDB, Inc.
* Copyright 2018 Christian Noboa Mardini <christian@blazingdb.com>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain... | 37.434783 | 98 | 0.738676 | jperez999 |
430f6df5724b6b5e07ad83c5d52c126d7790d55a | 3,964 | cpp | C++ | Nistal Engine/ModuleSceneIntro.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | null | null | null | Nistal Engine/ModuleSceneIntro.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | null | null | null | Nistal Engine/ModuleSceneIntro.cpp | AlbertCayuela/NistalEngine | d5a082c49326dcd47557fdb856a5a86deac40616 | [
"MIT"
] | 1 | 2020-09-28T13:25:32.000Z | 2020-09-28T13:25:32.000Z | #include "Globals.h"
#include "Application.h"
#include "ModuleSceneIntro.h"
#include "ModuleUI.h"
#include "GOMesh.h"
#include "GOMaterial.h"
#include "GOTransform.h"
#include "GOCamera.h"
#include "GameObject.h"
#include "GOAudioSource.h"
#include "ModuleSerialization.h"
#include "SDL/include/SDL_opengl.h"
#include <... | 24.469136 | 101 | 0.639001 | AlbertCayuela |
431425020a741c006bde96a5257d0038906ad258 | 2,995 | cpp | C++ | node_modules/gl/angle/src/compiler/translator/OutputGLSL.cpp | aaverty/editly | 71bccaf91f8d68609c80ba59425b79e3f94579ad | [
"MIT"
] | 27 | 2016-04-27T01:02:03.000Z | 2021-12-13T08:53:19.000Z | Source/ANGLE/compiler/translator/OutputGLSL.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 2 | 2017-03-09T09:00:50.000Z | 2017-09-21T15:48:20.000Z | Source/ANGLE/compiler/translator/OutputGLSL.cpp | wpbest/XPF | cb54ad82a8c6f675f2d5bc840a78f66f03de65e2 | [
"MIT"
] | 17 | 2016-04-27T02:06:39.000Z | 2019-12-18T08:07:00.000Z | //
// Copyright (c) 2002-2013 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
#include "compiler/translator/OutputGLSL.h"
TOutputGLSL::TOutputGLSL(TInfoSinkBase& objSink,
ShArrayIndexCla... | 29.07767 | 77 | 0.583306 | aaverty |
4319eb2ebfeb91efc38c94d3afea14d48c128566 | 244 | cpp | C++ | Ch 03/3.02.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 03/3.02.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 03/3.02.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | #include<iostream>
#include<string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::getline;
int main()
{
string s1;
//getline(cin, s1); // 一次读入一整行
cin >> s1; // 一次读入一个单词
cout << s1 << endl;
return 0;
} | 13.555556 | 32 | 0.639344 | Felon03 |
431c524ee2242c27274b0b763622a874a9133faa | 116 | hpp | C++ | src/window_macos.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/window_macos.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | src/window_macos.hpp | jlangvand/jucipp | 0a3102f13e62d78a329d488fb1eb8812181e448e | [
"MIT"
] | null | null | null | #pragma once
extern "C" {
/// Based on https://stackoverflow.com/a/47497879
void macos_force_foreground_level();
}
| 16.571429 | 49 | 0.741379 | jlangvand |
4321d62be7725cfc1920bd58023f5b94494c46aa | 5,379 | hpp | C++ | src/Evolution/Systems/GeneralizedHarmonic/Equations.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/Evolution/Systems/GeneralizedHarmonic/Equations.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/Evolution/Systems/GeneralizedHarmonic/Equations.hpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Defines class template GeneralizedHarmonicEquations.
#pragma once
#include <cstddef>
#include "DataStructures/Tensor/TypeAliases.hpp"
#include "Evolution/Systems/GeneralizedHarmonic/TagsDeclarations.hpp" // IWYU pragma: keep
#inclu... | 40.75 | 91 | 0.669641 | marissawalker |
4324317089a25b20113fc40180491616fda2cf7a | 644 | cpp | C++ | Spoonity/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Revelation2106/Spoonity | 7e1a5600ce12a741c39cfd73e5491bda5f804a41 | [
"Apache-2.0"
] | null | null | null | Spoonity/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Revelation2106/Spoonity | 7e1a5600ce12a741c39cfd73e5491bda5f804a41 | [
"Apache-2.0"
] | null | null | null | Spoonity/src/Platform/OpenGL/OpenGLUniformBuffer.cpp | Revelation2106/Spoonity | 7e1a5600ce12a741c39cfd73e5491bda5f804a41 | [
"Apache-2.0"
] | null | null | null | #include "SpoonityPCH.h"
#include "Platform//OpenGL/OpenGLUniformBuffer.h"
#include <glad/glad.h>
namespace Spoonity {
OpenGLUniformBuffer::OpenGLUniformBuffer(uint32_t size, uint32_t binding)
{
glCreateBuffers(1, &m_RendererID);
glNamedBufferData(m_RendererID, size, nullptr, GL_DYNAMIC_DRAW); // TODO: investi... | 23.851852 | 98 | 0.773292 | Revelation2106 |
4325554a7c9e2d9c6a674488fae98ac6966243e6 | 929 | cpp | C++ | project_euler/023/23.cpp | jason24585/practice | 6f3f961f766d80c73e1855e4b6f4cb167625a22a | [
"MIT"
] | null | null | null | project_euler/023/23.cpp | jason24585/practice | 6f3f961f766d80c73e1855e4b6f4cb167625a22a | [
"MIT"
] | null | null | null | project_euler/023/23.cpp | jason24585/practice | 6f3f961f766d80c73e1855e4b6f4cb167625a22a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#define LIMIT 28123
/* Check if number is abundant */
bool isAbundant(int x){
int sum = 0;
for(int i = 1; i <= sqrt(x); i++){
if(x % i == 0){
sum += i;
if((x/i) != i && x/i != x){
sum +=... | 20.195652 | 65 | 0.430571 | jason24585 |
43265c0729d6236f6b36f400e96f35da53c60d65 | 12,265 | cxx | C++ | osprey/common/targ_info/generate/isa_hazards_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/targ_info/generate/isa_hazards_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/common/targ_info/generate/isa_hazards_gen.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2003, 2004 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Softwar... | 28.858824 | 96 | 0.57179 | sharugupta |
432a20539f926e33bd6e6229a137874ea1ca76bb | 9,233 | cpp | C++ | Source/Urho3D/Engine/DebugHud.cpp | sabotage3d/Urho3D | 3dfb4a4c0bfa8a7da82b934de0ce7161fec7965c | [
"BSD-2-Clause",
"Apache-2.0"
] | 1 | 2016-09-19T16:08:51.000Z | 2016-09-19T16:08:51.000Z | Source/Urho3D/Engine/DebugHud.cpp | fireword/Urho3D | 180936cebdf6bdcbb6eb74a0959f5616e208ca5d | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | Source/Urho3D/Engine/DebugHud.cpp | fireword/Urho3D | 180936cebdf6bdcbb6eb74a0959f5616e208ca5d | [
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2008-2016 the Urho3D project.
//
// 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... | 29.783871 | 119 | 0.643453 | sabotage3d |
432d3cdb6cb53cabeeaa82f26861c99b128575f4 | 2,139 | cpp | C++ | tests/dll_tests/raw_api_test.cpp | tshino/softcam | be472efd889900dcd7e147b4f9fed866dd738a8c | [
"MIT"
] | 8 | 2020-11-21T18:33:52.000Z | 2022-03-29T14:42:03.000Z | tests/dll_tests/raw_api_test.cpp | tshino/softcam | be472efd889900dcd7e147b4f9fed866dd738a8c | [
"MIT"
] | 4 | 2021-01-11T08:37:08.000Z | 2021-12-19T15:02:56.000Z | tests/dll_tests/raw_api_test.cpp | tshino/softcam | be472efd889900dcd7e147b4f9fed866dd738a8c | [
"MIT"
] | 2 | 2021-01-22T04:52:19.000Z | 2022-03-29T14:42:05.000Z | #include <softcam/softcam.h>
#include <gtest/gtest.h>
namespace {
TEST(scCreateCamera, Basic) {
{
void* cam = scCreateCamera(320, 240, 60);
EXPECT_NE(cam, nullptr);
EXPECT_NO_THROW({ scDeleteCamera(cam); });
}{
void* cam = scCreateCamera(1920, 1080, 30);
EXPECT_NE(cam,... | 22.051546 | 59 | 0.657317 | tshino |
432d4b862f254ea750cbd8e8506df12d63aafec5 | 5,509 | hh | C++ | src/modules/Common/mf_api.hh | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 31 | 2015-12-15T19:14:10.000Z | 2021-12-31T17:40:21.000Z | src/modules/Common/mf_api.hh | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 5 | 2015-12-04T08:06:47.000Z | 2020-08-09T21:49:46.000Z | src/modules/Common/mf_api.hh | cdsc-github/parade-ara-simulator | 00c977200a8e7aa31b03d560886ec80840a3c416 | [
"BSD-3-Clause"
] | 21 | 2015-11-05T08:25:45.000Z | 2021-06-19T02:24:50.000Z |
/*
Copyright (C) 1999-2008 by Mark D. Hill and David A. Wood for the
Wisconsin Multifacet Project. Contact: gems@cs.wisc.edu
http://www.cs.wisc.edu/gems/
--------------------------------------------------------------------
This file is part of the Ruby Multiprocessor Memory System Simulator,
... | 30.436464 | 79 | 0.662552 | cdsc-github |
4331ea95d827476ace493f114ed50046ae12c72b | 2,269 | cpp | C++ | test/function/scalar/bitwise_notand.cpp | TobiasLudwig/boost.simd | c04d0cc56747188ddb9a128ccb5715dd3608dbc1 | [
"BSL-1.0"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | test/function/scalar/bitwise_notand.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | null | null | null | test/function/scalar/bitwise_notand.cpp | remymuller/boost.simd | 3caefb7ee707e5f68dae94f8f31f72f34b7bb5de | [
"BSL-1.0"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//====================================... | 37.816667 | 100 | 0.62803 | TobiasLudwig |
4335b6a5b7a2c1d48a95aa209da16a158fe90e27 | 2,312 | cc | C++ | src/fail.cc | hamish-milne/windowjs | 4e50ac3bd5c418966f3fac91698563908f156303 | [
"MIT"
] | 1 | 2022-01-12T09:49:54.000Z | 2022-01-12T09:49:54.000Z | src/fail.cc | hamish-milne/windowjs | 4e50ac3bd5c418966f3fac91698563908f156303 | [
"MIT"
] | 1 | 2022-01-13T04:54:24.000Z | 2022-01-13T04:54:24.000Z | src/fail.cc | hamish-milne/windowjs | 4e50ac3bd5c418966f3fac91698563908f156303 | [
"MIT"
] | null | null | null | #include "fail.h"
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <v8/src/base/debug/stack_trace.h>
#include "platform.h"
#include "version.h"
#if defined(WINDOWJS_WIN)
#include <windows.h>
#else
#include <signal.h>
#endif
static const char intro[] =
"The program has crashed.\n\nPlease file... | 22.230769 | 77 | 0.682958 | hamish-milne |
433b69c1f107beaf8636f80fe7774f9622696650 | 13,890 | hpp | C++ | include/utility/container/map.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/container/map.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/container/map.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_CONTAINER_MAP__
#define __UTILITY_CONTAINER_MAP__
/**
* \file map.hpp
* \author Inochi Amaoto
*
*
*/
#include<utility/config/utility_config.hpp>
#include<utility/container/container_helper.hpp>
#include<utility/algorithm/move.hpp>
#include<utility/algorithm/swap.hpp>
#include<utility/algorith... | 30.327511 | 79 | 0.588049 | SakuraLife |
433e66ff7a4fc235ddc6a26a7bb94e53ec1d18ac | 7,914 | cpp | C++ | audio/common/Semantic/jhcBindings.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | audio/common/Semantic/jhcBindings.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | audio/common/Semantic/jhcBindings.cpp | jconnell11/ALIA | f7a6c9dfd775fbd41239051aeed7775adb878b0a | [
"Apache-2.0"
] | null | null | null | // jhcBindings.cpp : list of substitutions of one node for another
//
// Written by Jonathan H. Connell, jconnell@alum.mit.edu
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2017-2018 IBM Corporation
// Copyright 2020-2021 Etaoin Systems
//
// Licensed under the Apache Li... | 25.203822 | 88 | 0.55345 | jconnell11 |
4344b6ffd0bc0929c676e7c0c315910ddb896471 | 105 | hpp | C++ | falcon/preprocessor/nil.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | 2 | 2018-02-02T14:19:59.000Z | 2018-05-13T02:48:24.000Z | falcon/preprocessor/nil.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | falcon/preprocessor/nil.hpp | jonathanpoelen/falcon | 5b60a39787eedf15b801d83384193a05efd41a89 | [
"MIT"
] | null | null | null | #ifndef FALCON_PREPROCESSOR_NIL_HPP
#define FALCON_PREPROCESSOR_NIL_HPP
#define FALCON_PP_NIL()
#endif
| 15 | 35 | 0.857143 | jonathanpoelen |
434c01cc9e2933f000c0a3bcf21da7e487733953 | 521 | hpp | C++ | tools/material_munge/src/terrain_assemble_textures.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 13 | 2019-03-25T09:40:12.000Z | 2022-03-13T16:12:39.000Z | tools/material_munge/src/terrain_assemble_textures.hpp | SleepKiller/shaderpatch | 4bda848df0273993c96f1d20a2cf79161088a77d | [
"MIT"
] | 110 | 2018-10-16T09:05:43.000Z | 2022-03-16T23:32:28.000Z | tools/material_munge/src/terrain_assemble_textures.hpp | SleepKiller/swbfii-shaderpatch | b49ce3349d4dd09b19237ff4766652166ba1ffd4 | [
"MIT"
] | 1 | 2020-02-06T20:32:50.000Z | 2020-02-06T20:32:50.000Z | #pragma once
#include <filesystem>
#include <string>
#include <string_view>
#include <vector>
#include "terrain_materials_config.hpp"
namespace sp {
void terrain_assemble_textures(const Terrain_materials_config& config,
const std::string_view texture_suffix,
... | 27.421053 | 77 | 0.602687 | SleepKiller |
434d8114ef41d4d07d02d867b2f293201ea6b40c | 3,319 | cc | C++ | src/pastar.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2019-03-19T17:31:33.000Z | 2022-01-08T12:27:33.000Z | src/pastar.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | null | null | null | src/pastar.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | // © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.
/**
* \file pastar.cc
*
*
*
* \author Sofia Lemons
* \date 2008-11-02
*/
#include "util/thread.h"
#include "state.h"
#include "pastar.h"
class PAStarThread : public Thread {
public:
PAStarThread() {}
PAStarThread(PAStar *... | 20.237805 | 97 | 0.580295 | jinnaiyuu |
4352ca4eb1b4c528acbf3c368387dfb587cc2603 | 2,428 | cpp | C++ | testsuite/core/thread/TestCase_Core_Thread_Tls.cpp | lailongwei/llbc | ec7e69bfa1f0afece8bb19dfa9a0a4578508a077 | [
"MIT"
] | 83 | 2015-11-10T09:52:56.000Z | 2022-01-12T11:53:01.000Z | testsuite/core/thread/TestCase_Core_Thread_Tls.cpp | lailongwei/llbc | ec7e69bfa1f0afece8bb19dfa9a0a4578508a077 | [
"MIT"
] | 30 | 2017-09-30T07:43:20.000Z | 2022-01-23T13:18:48.000Z | testsuite/core/thread/TestCase_Core_Thread_Tls.cpp | lailongwei/llbc | ec7e69bfa1f0afece8bb19dfa9a0a4578508a077 | [
"MIT"
] | 34 | 2015-11-14T12:37:44.000Z | 2021-12-16T02:38:36.000Z | // The MIT License (MIT)
// Copyright (c) 2013 lailongwei<lailongwei@126.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 r... | 30.734177 | 89 | 0.7014 | lailongwei |
4354ef0f969361e3b587ee9234aaada412f35a5c | 9,499 | cpp | C++ | src/modules/packetio/drivers/dpdk/port/checksum_calculator.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/modules/packetio/drivers/dpdk/port/checksum_calculator.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/modules/packetio/drivers/dpdk/port/checksum_calculator.cpp | smprogsoft/openperf | 2eabdf86a14be2f56773e370708e27f94971c6f4 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | #include <array>
#include "lib/packet/protocol/protocols.hpp"
#include "packetio/drivers/dpdk/dpdk.h"
#include "packetio/drivers/dpdk/port/checksum_calculator.hpp"
#include "packetio/drivers/dpdk/port/signature_utils.hpp"
#include "packetio/drivers/dpdk/port_info.hpp"
#include "spirent_pga/api.h"
namespace openperf::... | 38.302419 | 80 | 0.472155 | smprogsoft |
43561b53cca7812ed59f6c2f68182a6cbff30543 | 749 | cpp | C++ | src/usdTri/moduleDeps.cpp | colevfx/USDPluginExamples | ccc5b2c69fa8757a169b8095675565f9cea2c1a0 | [
"Apache-2.0"
] | 68 | 2020-11-25T22:08:55.000Z | 2022-03-25T23:09:47.000Z | src/usdTri/moduleDeps.cpp | colevfx/USDPluginExamples | ccc5b2c69fa8757a169b8095675565f9cea2c1a0 | [
"Apache-2.0"
] | 16 | 2020-11-27T04:49:18.000Z | 2021-08-31T08:05:11.000Z | src/usdTri/moduleDeps.cpp | colevfx/USDPluginExamples | ccc5b2c69fa8757a169b8095675565f9cea2c1a0 | [
"Apache-2.0"
] | 9 | 2020-12-11T00:27:22.000Z | 2021-12-01T21:21:31.000Z | //
// Copyright © 2021 Weta Digital Limited
//
// SPDX-License-Identifier: Apache-2.0
//
#include <pxr/base/tf/registryManager.h>
#include <pxr/base/tf/scriptModuleLoader.h>
#include <pxr/base/tf/token.h>
#include <pxr/pxr.h>
#include <vector>
PXR_NAMESPACE_OPEN_SCOPE
TF_REGISTRY_FUNCTION(TfScriptModuleLoader)
{
... | 26.75 | 70 | 0.688919 | colevfx |
43599005d346f05a5d9a2bd6064adb5c1e0b8a16 | 483 | cpp | C++ | SSegment.cpp | AhoyDev/Rubens-Engine | 269354486db52ed65e1528e4e34c2349d7b29d02 | [
"MIT"
] | null | null | null | SSegment.cpp | AhoyDev/Rubens-Engine | 269354486db52ed65e1528e4e34c2349d7b29d02 | [
"MIT"
] | null | null | null | SSegment.cpp | AhoyDev/Rubens-Engine | 269354486db52ed65e1528e4e34c2349d7b29d02 | [
"MIT"
] | null | null | null | #include "SSegment.h"
#include "SLine.h"
#include "SRay.h"
#include "SPlane.h"
#include "STriangle.h"
#include "SCircle.h"
#include "SPolygon.h"
#include "SFrustum.h"
#include "SSphere.h"
#include "SCapsule.h"
#include "SPolyhedron.h"
SSegment::SSegment() : SPrimitive(SEGMENT)
{
vec end = float3(0.f, 1.f, 0.f);
sha... | 21 | 81 | 0.6853 | AhoyDev |
435a3aec902fbb91a546f8e4947ea81427b2e7b4 | 4,539 | cpp | C++ | modules/ti.UI/ui_module.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | 4 | 2016-01-02T17:14:06.000Z | 2016-05-09T08:57:33.000Z | modules/ti.UI/ui_module.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | modules/ti.UI/ui_module.cpp | mital/titanium | 5e02a4406686d627f6828fd5cc18dc1a75d0714f | [
"Apache-2.0"
] | null | null | null | /**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "ui_module.h"
#include <Poco/URI.h>
namespace ti
{
KROLL_MODULE(UIModule, STRING(MODULE_NAME), STRING(MODU... | 25.5 | 83 | 0.686935 | mital |
435b3adb433dccfcef4ff5749979089819024a2b | 1,153 | cpp | C++ | benchmarks/reduce_rand.cpp | wrathematics/spar | 11d75700fdffea904237357070b690ed945ab460 | [
"BSL-1.0"
] | 1 | 2019-11-07T04:29:59.000Z | 2019-11-07T04:29:59.000Z | benchmarks/reduce_rand.cpp | wrathematics/spvec | 11d75700fdffea904237357070b690ed945ab460 | [
"BSL-1.0"
] | null | null | null | benchmarks/reduce_rand.cpp | wrathematics/spvec | 11d75700fdffea904237357070b690ed945ab460 | [
"BSL-1.0"
] | null | null | null | #include "args.hpp"
#include "common.hpp"
#include "printing.hpp"
#include "timer.hpp"
#define BENCHMARK "reduce_rand"
int main(int argc, char **argv)
{
opts_t<INDEX> opts;
timer t;
// setup
spar::mpi::init();
int rank = spar::mpi::get_rank();
int size = spar::mpi::get_size();
spar::mpi::err::check_... | 20.589286 | 90 | 0.618387 | wrathematics |
435c141a630919fa012d07e7ae0ac7b816e493b7 | 1,660 | cpp | C++ | Shortest Unique prefix for every word - GFG/shortest-unique-prefix-for-every-word.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-01-02T10:29:32.000Z | 2022-01-02T10:29:32.000Z | Shortest Unique prefix for every word - GFG/shortest-unique-prefix-for-every-word.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | null | null | null | Shortest Unique prefix for every word - GFG/shortest-unique-prefix-for-every-word.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-03-04T12:44:14.000Z | 2022-03-04T12:44:14.000Z | // { Driver Code Starts
//Initial Template for C++
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function Template for C++
class Solution
{
public:
struct Node
{
int cnt{0};
Node * children[26] = {0};
};
void insert(Node * root, string& word)
{
... | 18.863636 | 53 | 0.41747 | Jatin-Shihora |
435c2c2b2dec5dd0c3f10b370e49dd0216795b2e | 2,922 | hpp | C++ | source/modules/distribution/distribution.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 43 | 2018-07-26T07:20:42.000Z | 2022-03-02T10:23:12.000Z | source/modules/distribution/distribution.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 212 | 2018-09-21T10:44:07.000Z | 2022-03-22T14:33:05.000Z | source/modules/distribution/distribution.hpp | JonathanLehner/korali | 90f97d8e2fed2311f988f39cfe014f23ba7dd6cf | [
"MIT"
] | 16 | 2018-07-25T15:00:36.000Z | 2022-03-22T14:19:46.000Z | /** \namespace korali
* @brief Namespace declaration for modules of type: korali.
*/
/** \file
* @brief Header file for module: Distribution.
*/
/** \dir distribution
* @brief Contains code, documentation, and scripts for module: Distribution.
*/
#pragma once
#include "modules/module.hpp"
#include <gsl/gsl_rng.h>
#... | 27.055556 | 119 | 0.706023 | JonathanLehner |
435fa40be18cfa69e944b0d540539b43e4ad1cb2 | 1,419 | hpp | C++ | ArIRadial/LoadFunction1D.hpp | kcdodd/masters | e96fc2feaa6edffb99f90278e14a8fcdd138db75 | [
"MIT"
] | null | null | null | ArIRadial/LoadFunction1D.hpp | kcdodd/masters | e96fc2feaa6edffb99f90278e14a8fcdd138db75 | [
"MIT"
] | null | null | null | ArIRadial/LoadFunction1D.hpp | kcdodd/masters | e96fc2feaa6edffb99f90278e14a8fcdd138db75 | [
"MIT"
] | null | null | null | #ifndef LOADFUNCTION1D_HPP_INCLUDED
#define LOADFUNCTION1D_HPP_INCLUDED
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
template<class T>
class LoadFunction1D
{
private:
string mFilename;
public:
LoadFunction1D(const string& filename)
:
mFilename(filename)
{
... | 17.096386 | 79 | 0.450317 | kcdodd |
cb1a2916c50048fd35455208875c438c6832a197 | 505 | hpp | C++ | my_vulkan/helpers/io.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | my_vulkan/helpers/io.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | 3 | 2019-02-25T10:13:57.000Z | 2020-11-11T14:46:14.000Z | my_vulkan/helpers/io.hpp | pixelwise/my_vulkan | f1c139ed8f95380186905d77cb8e81008f48bc95 | [
"CC0-1.0"
] | null | null | null | #pragma once
#include <vulkan/vulkan.h>
template<typename ostream_t>
ostream_t& operator<<(ostream_t& os, VkOffset2D offset)
{
os << "(" << offset.x << "," << offset.y << ")";
return os;
}
template<typename ostream_t>
ostream_t& operator<<(ostream_t& os, VkExtent2D extent)
{
os << extent.width << "x" << ... | 20.2 | 55 | 0.635644 | pixelwise |
cb1de260065da984a654d17b4642774391cb27d8 | 7,267 | hpp | C++ | standard/17/variant/variant.hpp | jrdbb/cpp | 99a7f8ac8e280324aaa72f611558b7ccd74adfaa | [
"MIT"
] | null | null | null | standard/17/variant/variant.hpp | jrdbb/cpp | 99a7f8ac8e280324aaa72f611558b7ccd74adfaa | [
"MIT"
] | 9 | 2021-06-01T02:43:51.000Z | 2021-09-12T05:26:35.000Z | standard/17/variant/variant.hpp | jrdbb/cpp | 99a7f8ac8e280324aaa72f611558b7ccd74adfaa | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
namespace {
template <typename T, typename... Ts>
struct variant_traits {
public:
template <typename Tx>
static constexpr bool contains = (std::is_same_v<Tx, T> ||
(std::is_same_v<Tx, Ts> || ...));
inline static void destroy(std::... | 30.792373 | 80 | 0.581671 | jrdbb |
cb21d206ec186d0c3d5384f95b276adcb2eb78e0 | 688 | cpp | C++ | FLOW017.cpp | SiddhantManze/My-Codechef-submission | 34214b578f2fe18b81d43e21dfca8d9f6d2fb264 | [
"MIT"
] | 1 | 2021-10-10T20:02:33.000Z | 2021-10-10T20:02:33.000Z | Codechef solutions/(CODECHEF)FLOW017.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | 1 | 2021-08-23T14:40:00.000Z | 2021-10-06T10:51:43.000Z | FLOW017.cpp | SiddhantManze/My-Codechef-submission | 34214b578f2fe18b81d43e21dfca8d9f6d2fb264 | [
"MIT"
] | null | null | null | /*
PROBLEM : FLOW017 (Second Largest)
*/
#include<iostream>
#define ll long long
using namespace std;
int main()
{
ll t;
cin>>t;
while(t--)
{
ll a,b,c;
cin>>a>>b>>c;
if(a>b && a>c && b>c)
{
cout<<b<<endl;
}
if(a>b && a>c && c>b)
{... | 15.636364 | 38 | 0.3125 | SiddhantManze |
cb2b204589e090f4a129915c08cf56bf9ec483ba | 3,546 | cpp | C++ | code/engine/xrCore/xrCore.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 58 | 2016-11-20T19:14:35.000Z | 2021-12-27T21:03:35.000Z | code/engine/xrCore/xrCore.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 59 | 2016-09-10T10:44:20.000Z | 2018-09-03T19:07:30.000Z | code/engine/xrCore/xrCore.cpp | InNoHurryToCode/xray-162 | fff9feb9ffb681b3c6ba1dc7c4534fe80006f87e | [
"Apache-2.0"
] | 39 | 2017-02-05T13:35:37.000Z | 2022-03-14T11:00:12.000Z | // xrCore.cpp : Defines the entry point for the DLL application.
//
#include "stdafx.h"
#include <mmsystem.h>
#include <objbase.h>
#include "xrCore.h"
#ifdef DEBUG
#include <malloc.h>
#endif // DEBUG
XRCORE_API xrCore Core;
XRCORE_API u32 build_id;
XRCORE_API LPCSTR build_date;
namespace CPU {
extern void Detect();... | 26.462687 | 85 | 0.618161 | InNoHurryToCode |
cb2fa8ae45ffc0962cd377cbfd5bb689dfe27136 | 6,872 | hpp | C++ | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/operator_relational.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/operator_relational.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | src/compressed-sensing/lib/include/Armadillo/armadillo_bits/operator_relational.hpp | HerrFroehlich/ns3-CompressedSensing | f5e4e56aeea97794695ecef6183bdaa1b72fd1de | [
"MIT"
] | null | null | null | // Copyright (C) 2009-2012 NICTA (www.nicta.com.au)
// Copyright (C) 2009-2012 Conrad Sanderson
//
// This file is part of the Armadillo C++ library.
// It is provided without any warranty of fitness
// for any purpose. You can redistribute this file
// and/or modify it under the terms of the GNU
// Lesser General Pub... | 19.195531 | 167 | 0.685099 | HerrFroehlich |
cb35e0b1b7981cd1a0c28b179782ba942760bf3b | 9,617 | cpp | C++ | master/core/third/stlport/src/ios.cpp | importlib/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 30 | 2017-02-08T02:53:36.000Z | 2022-03-24T14:26:17.000Z | master/core/third/stlport/src/ios.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 4 | 2017-05-25T00:39:02.000Z | 2018-04-27T10:38:47.000Z | master/core/third/stlport/src/ios.cpp | isuhao/klib | a59837857689d0e60d3df6d2ebd12c3160efa794 | [
"MIT"
] | 8 | 2017-10-31T11:12:35.000Z | 2020-06-15T04:12:51.000Z | /*
* Copyright (c) 1999
* Silicon Graphics Computer Systems, Inc.
*
* Copyright (c) 1999
* Boris Fomitchev
*
* This material is provided "as is", with absolutely no warranty expressed
* or implied. Any use is at your own risk.
*
* Permission to use or copy this software for any purpose is hereby granted
* wi... | 30.147335 | 110 | 0.706353 | importlib |
cb3690ebe5483db5b3697e5073cd330b91454b8c | 19,465 | hpp | C++ | cell_based/test/population/TestCaUpdateRules.hpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | cell_based/test/population/TestCaUpdateRules.hpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | cell_based/test/population/TestCaUpdateRules.hpp | ktunya/ChasteMod | 88ac65b00473cd730d348c783bd74b2b39de5f69 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... | 52.045455 | 181 | 0.748369 | ktunya |
cb370095a6b4e8b18d585f0df5772a6ad543bb04 | 45,446 | cpp | C++ | deps/NVIDIATextureTools/src/nvimage/DirectDrawSurface.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | deps/NVIDIATextureTools/src/nvimage/DirectDrawSurface.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | null | null | null | deps/NVIDIATextureTools/src/nvimage/DirectDrawSurface.cpp | akumetsuv/flood | e0d6647df9b7fac72443a0f65c0003b0ead7ed3a | [
"BSD-2-Clause"
] | 1 | 2021-05-23T16:33:11.000Z | 2021-05-23T16:33:11.000Z | // Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.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 r... | 28.386009 | 168 | 0.591449 | akumetsuv |
cb3a5839c72970f0ae673fc5132628081defae05 | 3,016 | cpp | C++ | Practice/2018/2018.6.5/ZOJ2676.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.6.5/ZOJ2676.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.6.5/ZOJ2676.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define ld long double
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define NAME "network"
const int maxN=101;
const int maxM=410*2;
const ld eps=1e-6;
const int inf=2147483647;
class... | 16.128342 | 77 | 0.532162 | SYCstudio |
cb3a5b11985ed7ef1edc060d07c0094c318463f4 | 1,969 | hpp | C++ | src/base/parameter/ParameterDatabase.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | 1 | 2020-05-16T16:58:21.000Z | 2020-05-16T16:58:21.000Z | src/base/parameter/ParameterDatabase.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | src/base/parameter/ParameterDatabase.hpp | ddj116/gmat | 39673be967d856f14616462fb6473b27b21b149f | [
"NASA-1.3"
] | null | null | null | //$Id: ParameterDatabase.hpp 9513 2011-04-30 21:23:06Z djcinsb $
//------------------------------------------------------------------------------
// ParameterDatabase
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool
//... | 30.292308 | 80 | 0.638903 | ddj116 |
cb3c810d5ab741626c9778b8d940740865c00cc3 | 183 | cpp | C++ | Runic/Src/Runic/Renderer/RenderCommand.cpp | Swarmley/Runic-Engine | 80a471728ae10e77e5370414ec45341a75df2469 | [
"Apache-2.0"
] | null | null | null | Runic/Src/Runic/Renderer/RenderCommand.cpp | Swarmley/Runic-Engine | 80a471728ae10e77e5370414ec45341a75df2469 | [
"Apache-2.0"
] | null | null | null | Runic/Src/Runic/Renderer/RenderCommand.cpp | Swarmley/Runic-Engine | 80a471728ae10e77e5370414ec45341a75df2469 | [
"Apache-2.0"
] | null | null | null | #include "runicpch.h"
#include "RenderCommand.h"
#include "Platform/OpenGL/OpenGLRenderAPI.h"
namespace Runic {
Scope<RenderAPI> RenderCommand::s_RenderAPI = RenderAPI::Create();
} | 26.142857 | 68 | 0.770492 | Swarmley |
cb44bb2dbe6aa4db4986df699b9645d7bf9212f6 | 2,342 | cpp | C++ | lib/Target/LLVMIR/Dialect/RVV/RVVToLLVMIRTranslation.cpp | taiqzheng/buddy-mlir | dde20faa02bc0c8a7195747b1c13f564732bbe7a | [
"Apache-2.0"
] | null | null | null | lib/Target/LLVMIR/Dialect/RVV/RVVToLLVMIRTranslation.cpp | taiqzheng/buddy-mlir | dde20faa02bc0c8a7195747b1c13f564732bbe7a | [
"Apache-2.0"
] | null | null | null | lib/Target/LLVMIR/Dialect/RVV/RVVToLLVMIRTranslation.cpp | taiqzheng/buddy-mlir | dde20faa02bc0c8a7195747b1c13f564732bbe7a | [
"Apache-2.0"
] | null | null | null | //======- RVVToLLVMIRTranslation.cpp - Translate RVV to LLVM IR ----------====//
//
// 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
//
//... | 34.955224 | 80 | 0.701964 | taiqzheng |
cb45a96b5193176846511b0dfe6a29417d98379c | 10,279 | hpp | C++ | src/uml/src_gen/uml/InformationFlow.hpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/uml/src_gen/uml/InformationFlow.hpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/uml/src_gen/uml/InformationFlow.hpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_INFORMATIONFLOW_HPP
#define UML_INFORMATIONFLOW_HPP
#include <map>
#include <list>
#include ... | 29.2849 | 790 | 0.669618 | MDE4CPP |
cb49898a12f9bf4528452f4caf95e37e5fe74f28 | 2,257 | cpp | C++ | stage0/src/library/time_task.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 1,538 | 2019-04-25T11:00:03.000Z | 2022-03-30T02:35:48.000Z | stage0/src/library/time_task.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 812 | 2019-05-20T09:15:21.000Z | 2022-03-31T16:36:04.000Z | stage0/src/library/time_task.cpp | tballmsft/lean4 | fb57b73e1f07828fa9aad91c2112bf072b3e79f2 | [
"Apache-2.0"
] | 168 | 2019-04-25T12:49:34.000Z | 2022-03-29T05:07:14.000Z | /*
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
*/
#include <string>
#include <map>
#include "library/time_task.h"
#include "library/trace.h"
namespace lean {
static std::map<std::string, second_duration> ... | 31.347222 | 107 | 0.663713 | tballmsft |
cb4cd4618dfc18e1368cd84d9e1ea241f5b8a267 | 23,102 | cc | C++ | src/file_sorter.cc | wurikiji/couchstore | ca6022cd2a6ab43d5a0d2fd1b34135589f51e410 | [
"Apache-2.0"
] | 1 | 2019-01-21T03:38:34.000Z | 2019-01-21T03:38:34.000Z | src/file_sorter.cc | wurikiji/couchstore | ca6022cd2a6ab43d5a0d2fd1b34135589f51e410 | [
"Apache-2.0"
] | null | null | null | src/file_sorter.cc | wurikiji/couchstore | ca6022cd2a6ab43d5a0d2fd1b34135589f51e410 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/**
* @copyright 2013 Couchbase, Inc.
*
* @author Filipe Manana <filipe@couchbase.com>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obta... | 28.002424 | 99 | 0.544412 | wurikiji |
cb4ec5774633bf9c88ee3dde240a206ed97c7111 | 58,998 | cpp | C++ | FlightComputerV2/lib/SPIMemory/SPIMemory.cpp | jowallace1/FlightComputerV2 | b8ea60bd370243ef05611267cba214bf72c34f9b | [
"MIT"
] | null | null | null | FlightComputerV2/lib/SPIMemory/SPIMemory.cpp | jowallace1/FlightComputerV2 | b8ea60bd370243ef05611267cba214bf72c34f9b | [
"MIT"
] | null | null | null | FlightComputerV2/lib/SPIMemory/SPIMemory.cpp | jowallace1/FlightComputerV2 | b8ea60bd370243ef05611267cba214bf72c34f9b | [
"MIT"
] | null | null | null | /* Arduino SPIFlash Library v.2.6.0
* Copyright (C) 2017 by Prajwal Bhattaram
* Created by Prajwal Bhattaram - 19/05/2015
* Modified by @boseji <salearj@hotmail.com> - 02/03/2017
* Modified by Prajwal Bhattaram - 14/04/2017
*
* This file is part of the Arduino SPIFlash Library. This library is for
* Winbond NOR ... | 28.584302 | 169 | 0.628547 | jowallace1 |
cb51d8d46f665db798c6e191cee2e488173712be | 9,172 | cpp | C++ | gui_source/guimainwindow.cpp | horsicq/DIE-engine | cefb338649ef99ca03d78cbdb2b2de1b1a750e1b | [
"MIT"
] | 1,136 | 2015-02-03T21:10:11.000Z | 2022-03-31T23:30:11.000Z | gui_source/guimainwindow.cpp | horsicq/DIE-engine | cefb338649ef99ca03d78cbdb2b2de1b1a750e1b | [
"MIT"
] | 55 | 2015-03-24T06:46:00.000Z | 2022-03-17T13:37:16.000Z | gui_source/guimainwindow.cpp | horsicq/DIE-engine | cefb338649ef99ca03d78cbdb2b2de1b1a750e1b | [
"MIT"
] | 230 | 2015-01-04T13:53:52.000Z | 2022-02-28T08:45:31.000Z | // Copyright (c) 2020-2021 hors<horsicq@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... | 26.356322 | 132 | 0.656345 | horsicq |
cb5268a626a5272cf1654d2a63bc0b314bc0186a | 13,774 | cpp | C++ | testing/testing_cgesvd.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 21 | 2017-10-06T05:05:05.000Z | 2022-03-13T15:39:20.000Z | testing/testing_cgesvd.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 1 | 2017-03-23T00:27:24.000Z | 2017-03-23T00:27:24.000Z | testing/testing_cgesvd.cpp | shengren/magma-1.6.1 | 1adfee30b763e9491a869403e0f320b3888923b6 | [
"BSD-3-Clause"
] | 4 | 2018-01-09T15:49:58.000Z | 2022-03-13T15:39:27.000Z | /*
-- MAGMA (version 1.6.1) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date January 2015
@generated from testing_zgesvd.cpp normal z -> c, Fri Jan 30 19:00:26 2015
@author Mark Gates
*/
// includes, system
#include <stdlib.h... | 43.588608 | 132 | 0.389575 | shengren |
cb527ed6f06d280e174b56713dc7decf9c1e69a7 | 1,679 | cpp | C++ | kattis/pick_up_sticks/PickUpSticks.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | 1 | 2020-11-11T12:12:19.000Z | 2020-11-11T12:12:19.000Z | kattis/pick_up_sticks/PickUpSticks.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | null | null | null | kattis/pick_up_sticks/PickUpSticks.cpp | FredrikWallstrom/Kattis | aee103c8d97d2aba61dae59146a015ccb5a7a634 | [
"MIT"
] | null | null | null | /* -*- Mode: C++ -*- */
/**
* Author: Fredrik Wallström
* Date:
*
* Comments: 22/2 - 18
*
* Lessons Learned:
*/
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iomanip>
#include <sstream>
#include <map>
#includ... | 22.689189 | 85 | 0.562239 | FredrikWallstrom |
cb5356dd952d8f0b228483b5d04803b9d35f485b | 1,176 | hpp | C++ | NWNXLib/API/Mac/API/CNWSExpressionList.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Mac/API/CNWSExpressionList.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Mac/API/CNWSExpressionList.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
namespace NWNXLib {
namespace API {
// Forward class declarations (defined in the source file)
struct CNWSExpressionNode;
struct CNWSExpressionList
{
CNWSExpressionNode* m_pHead;
CNWSExpressionNode* m_pAfter;
CNWSExpressionNode* m_pTail;
// The below are auto genera... | 29.4 | 91 | 0.806973 | acaos |
cb536634efb9391df7634b12a71f16194d248a9b | 2,915 | hpp | C++ | libs/boost_1_72_0/boost/spirit/home/support/iterators/istream_iterator.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/iterators/istream_iterator.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | libs/boost_1_72_0/boost/spirit/home/support/iterators/istream_iterator.hpp | henrywarhurst/matrix | 317a2a7c35c1c7e3730986668ad2270dc19809ef | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2001-2011 Hartmut Kaiser
//
// 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)
#if !defined(BOOST_SPIRIT_ISTREAM_ITERATOR_JAN_03_2010_0522PM)
#define BOOST_SPIRIT_ISTREAM_ITERATOR_JAN_03_2010_0522P... | 35.987654 | 80 | 0.650772 | henrywarhurst |
cb5550eb21419795c12efa71aec4704879d987d0 | 255 | cpp | C++ | leetcode/53. Maximum Subarray/s2.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | 1 | 2021-02-09T11:38:51.000Z | 2021-02-09T11:38:51.000Z | leetcode/53. Maximum Subarray/s2.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | leetcode/53. Maximum Subarray/s2.cpp | contacttoakhil/LeetCode-1 | 9bb9b5aa9ace836b86a752eb796b3dfcb21ee44c | [
"Fair"
] | null | null | null | class Solution {
public:
int maxSubArray(vector<int>& nums) {
int ans = INT_MIN, sum = 0;
for (int n : nums) {
sum += n;
ans = max(sum, ans);
sum = max(sum, 0);
}
return ans;
}
}; | 21.25 | 40 | 0.427451 | contacttoakhil |
cb595922ceffae3078edc74771054e32f8cc700d | 5,378 | cpp | C++ | libcassandra/src/Cassandra.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | libcassandra/src/Cassandra.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libcassandra/src/Cassandra.cpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata Cassandra Plugin
* Cassandra.cpp
*
* Copyright (c) 2009, Daniel Reiter Horn
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must r... | 32.993865 | 75 | 0.68334 | pathorn |
cb5a40e22ee37b6784e0c594e33f65f6df496c95 | 1,604 | cpp | C++ | tests/juliet/testcases/CWE675_Duplicate_Operations_on_Resource/CWE675_Duplicate_Operations_on_Resource__open_62b.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE675_Duplicate_Operations_on_Resource/CWE675_Duplicate_Operations_on_Resource__open_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2017-01-20T15:26:27.000Z | 2018-08-20T00:55:37.000Z | testcases/CWE675_Duplicate_Operations_on_Resource/CWE675_Duplicate_Operations_on_Resource__open_62b.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE675_Duplicate_Operations_on_Resource__open_62b.cpp
Label Definition File: CWE675_Duplicate_Operations_on_Resource__open.label.xml
Template File: sources-sinks-62b.tmpl.cpp
*/
/*
* @description
* CWE: 675 Duplicate Operations on Resource
* BadSource: Open and ... | 25.460317 | 119 | 0.695761 | RanerL |
cb5ff6ee02a8b9b748d1f8bc78e3e37713852953 | 904 | cpp | C++ | src/plot_functions.cpp | grgomrton/kalman-filter | 5d47aab153d3d5ea8a6b12e35a9b3ee3ee25c1b7 | [
"MIT"
] | null | null | null | src/plot_functions.cpp | grgomrton/kalman-filter | 5d47aab153d3d5ea8a6b12e35a9b3ee3ee25c1b7 | [
"MIT"
] | 1 | 2018-03-08T23:02:04.000Z | 2018-10-08T04:49:02.000Z | src/plot_functions.cpp | grgomrton/kalman-filter | 5d47aab153d3d5ea8a6b12e35a9b3ee3ee25c1b7 | [
"MIT"
] | null | null | null | #include <plot_functions.h>
#include <cmath>
std::vector<double>
plot_functions::create_uniform_scale(double start, double end, unsigned int reference_point_count) { // todo exceptions
std::vector<double> scale(reference_point_count);
double step = (end - start) / (double) (reference_point_count - 1);
for ... | 39.304348 | 119 | 0.640487 | grgomrton |
cb62d64a3994ca048cad325d2f8506049447bf0b | 6,409 | hpp | C++ | Pods/Headers/Private/GeoFeatures/boost/geometry/geometries/segment.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/Headers/Private/GeoFeatures/boost/geometry/geometries/segment.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | Pods/Headers/Private/GeoFeatures/boost/geometry/geometries/segment.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | null | null | null | // Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
// (ge... | 28.484444 | 116 | 0.734904 | xarvey |
cb63dbbb63b473f3313b0958ccad47cb5bde1024 | 5,327 | cpp | C++ | theatre-maintenance/theatre-maintenance.cpp | APf0x/not-payed-job | 5124d73b7e0370a9445d62573ae4d42070bf3765 | [
"MIT"
] | null | null | null | theatre-maintenance/theatre-maintenance.cpp | APf0x/not-payed-job | 5124d73b7e0370a9445d62573ae4d42070bf3765 | [
"MIT"
] | null | null | null | theatre-maintenance/theatre-maintenance.cpp | APf0x/not-payed-job | 5124d73b7e0370a9445d62573ae4d42070bf3765 | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
#include <cstdlib>
#include <string>
using namespace std;
int main(){
const int platea = 40;
const int galleria = 30;
int posti_platea_rimasti, prezzotot, posti_galleria_rimasti, opzioni, posti, da_pagare, giorni, da_reimborsare, posti_galleria_totali, posti_platea_tota... | 49.324074 | 159 | 0.46987 | APf0x |
cb65966298787fd15f405cce415078d52823c07a | 217 | hpp | C++ | include/Game/Statics/boostatk.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | include/Game/Statics/boostatk.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | include/Game/Statics/boostatk.hpp | Lucrecious/DungeonGame | 9e427c4eba18cdc0aa93a6e28e505a8ecb1357e5 | [
"MIT"
] | null | null | null | #ifndef BOOSTATK_H
#define BOOSTATK_H
#include <Game/Statics/neteffect.hpp>
class BoostAtk : public NetEffect {
public:
const int atkBoost;
BoostAtk(Effect* effect);
int getAtkNet();
int getDefNet();
};
#endif
| 14.466667 | 37 | 0.741935 | Lucrecious |
cb6661b306786d729c95110b4f45fdcfba124237 | 4,218 | cpp | C++ | IMS/Predator.cpp | PrasekMatej/IMS-CellularAutomata | 0ca11dab7c33eec3aa9695e4bffe535a1abf1258 | [
"MIT"
] | null | null | null | IMS/Predator.cpp | PrasekMatej/IMS-CellularAutomata | 0ca11dab7c33eec3aa9695e4bffe535a1abf1258 | [
"MIT"
] | null | null | null | IMS/Predator.cpp | PrasekMatej/IMS-CellularAutomata | 0ca11dab7c33eec3aa9695e4bffe535a1abf1258 | [
"MIT"
] | null | null | null | #include "Predator.h"
#include "Vole.h"
#include <algorithm>
Predator::Predator(int height, int width, int successChance)
{
fedUntilGeneration = 0;
nextGenerationHeight = height;
nextGenerationWidth = width;
sucessChance = successChance;
}
void Predator::NextGeneration(std::vector<std::vector<std::unique_ptr<Cell... | 27.933775 | 136 | 0.655524 | PrasekMatej |
cb69d971adacb7dc682695c8b9eb5e815bca21cc | 2,529 | cpp | C++ | Part 4/src/C_NeuralNetwork.cpp | thatgamesguy/ai_experiments_1-ufos | 3256ac397996c3e677bcdfe9cbb55360bb9b2cad | [
"MIT"
] | 1 | 2019-12-03T13:12:33.000Z | 2019-12-03T13:12:33.000Z | Part 4/src/C_NeuralNetwork.cpp | thatgamesguy/ai_experiments-evolution | 3256ac397996c3e677bcdfe9cbb55360bb9b2cad | [
"MIT"
] | null | null | null | Part 4/src/C_NeuralNetwork.cpp | thatgamesguy/ai_experiments-evolution | 3256ac397996c3e677bcdfe9cbb55360bb9b2cad | [
"MIT"
] | null | null | null | #include "C_NeuralNetwork.hpp"
C_NeuralNetwork::C_NeuralNetwork(Object* owner) : Component(owner), maxMoveForce(1400.f), neuralNetwork(neuralNumOfInput, neuralNumOfHiddenLayers, neuralNumOfNeuronsInHiddenLayer, neuralNumOfOutput), windowSize(1920, 1080)
{
}
void C_NeuralNetwork::Awake()
{
velocity = owner->G... | 30.841463 | 222 | 0.648478 | thatgamesguy |
cb6e5591edd9091deb27f24537beb8c64b90c738 | 1,723 | hh | C++ | CalorimeterGeom/inc/SquareMapper.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 1 | 2021-06-25T00:00:12.000Z | 2021-06-25T00:00:12.000Z | CalorimeterGeom/inc/SquareMapper.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 125 | 2020-04-03T13:44:30.000Z | 2021-10-15T21:29:57.000Z | CalorimeterGeom/inc/SquareMapper.hh | bonventre/Offline | 77db9d6368f27ab9401c690c2c2a4257ade6c231 | [
"Apache-2.0"
] | 2 | 2019-10-14T17:46:58.000Z | 2020-03-30T21:05:15.000Z | #ifndef CalorimeterGeom_SqaureMapper_hh
#define CalorimeterGeom_SqaureMapper_hh
#include "CalorimeterGeom/inc/CrystalMapper.hh"
#include "CLHEP/Vector/TwoVector.h"
#include "CLHEP/Vector/ThreeVector.h"
#include <vector>
namespace mu2e {
class SquLK {
public:
SquLK() ... | 26.507692 | 117 | 0.542658 | bonventre |
cb727420521be1b0f18c8ce0be2d31a5884d420e | 30,824 | cpp | C++ | src/alxr_engine/graphicsplugin_d3d12.cpp | korejan/ALVR-OpenXR-Engine | 9bdd6f73d881e46835dfc9af892e9a4184242764 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unlicense"
] | null | null | null | src/alxr_engine/graphicsplugin_d3d12.cpp | korejan/ALVR-OpenXR-Engine | 9bdd6f73d881e46835dfc9af892e9a4184242764 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unlicense"
] | 1 | 2022-02-20T16:14:51.000Z | 2022-02-20T16:14:51.000Z | src/alxr_engine/graphicsplugin_d3d12.cpp | korejan/ALVR-OpenXR-Engine | 9bdd6f73d881e46835dfc9af892e9a4184242764 | [
"MIT",
"Apache-2.0",
"BSD-3-Clause",
"Unlicense"
] | null | null | null | // Copyright (c) 2017-2022, The Khronos Group Inc.
//
// SPDX-License-Identifier: Apache-2.0
#include "pch.h"
#include "common.h"
#include "geometry.h"
#include "graphicsplugin.h"
#if defined(XR_USE_GRAPHICS_API_D3D12) && !defined(MISSING_DIRECTX_COLORS)
#include <common/xr_linear.h>
#include <DirectXColors.h>
#incl... | 50.78089 | 134 | 0.690793 | korejan |
cb73a7a562513f2c8baede2d6eb758f43db1bd5b | 280 | cpp | C++ | search array element.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | search array element.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | search array element.cpp | 0ishita-jana/-dev-info-day1 | e6053be728856b3a92d3137bdfd30e16700f7d06 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
int main()
{
int n,i,s;
int a[]={2,3,5,9,6};
s=sizeof(a);
printf("enter the search element");
scanf("%d",&n);
for(i=0;i<s;i++)
{
if(a[i]==n)
{
printf("found%d",n);
return 0;
}
}
printf("not found");
return 0;
}
| 10 | 36 | 0.514286 | 0ishita-jana |
cb75217540a8625de58d257728eb649eb26dcbc7 | 6,618 | hpp | C++ | include/sprout/iterator/value_iterator.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/iterator/value_iterator.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/iterator/value_iterator.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
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.txt)
==... | 30.925234 | 104 | 0.722575 | thinkoid |
cb7d2f46c6dafe7ac4acec95c520cd9c3d9d1c8b | 4,884 | cpp | C++ | lumino/LuminoEngine/src/Tilemap/TilemapComponent.cpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 113 | 2020-03-05T01:27:59.000Z | 2022-03-28T13:20:51.000Z | lumino/LuminoEngine/src/Tilemap/TilemapComponent.cpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 13 | 2020-03-23T20:36:44.000Z | 2022-02-28T11:07:32.000Z | lumino/LuminoEngine/src/Tilemap/TilemapComponent.cpp | GameDevery/Lumino | abce2ddca4b7678b04dbfd0ae5348e196c3c9379 | [
"MIT"
] | 12 | 2020-12-21T12:03:59.000Z | 2021-12-15T02:07:49.000Z |
#include "Internal.hpp"
#include <LuminoEngine/Scene/World.hpp>
#include <LuminoEngine/Scene/Level.hpp>
#include <LuminoEngine/Tilemap/TilemapModel.hpp>
#include <LuminoEngine/Tilemap/TilemapComponent.hpp>
#include "TilemapPhysicsObject.hpp"
#include <LuminoEngine/Scene/WorldObject.hpp> // for WorldObjectTransform... | 27.284916 | 154 | 0.63104 | GameDevery |
cb874bf5cc1827599310b925044154217cdc079e | 4,354 | cc | C++ | examples/memcached/server/MemcacheServer.cc | Itsposs/muduo | 90920bbad80e544da9a8a94b16ad8ab4bb66e652 | [
"BSD-3-Clause"
] | 10,948 | 2015-01-01T04:48:50.000Z | 2022-03-31T16:58:54.000Z | examples/memcached/server/MemcacheServer.cc | Itsposs/muduo | 90920bbad80e544da9a8a94b16ad8ab4bb66e652 | [
"BSD-3-Clause"
] | 351 | 2015-01-03T10:48:01.000Z | 2022-03-17T07:01:15.000Z | examples/memcached/server/MemcacheServer.cc | Itsposs/muduo | 90920bbad80e544da9a8a94b16ad8ab4bb66e652 | [
"BSD-3-Clause"
] | 4,994 | 2015-01-01T07:17:50.000Z | 2022-03-31T15:58:01.000Z | #include "examples/memcached/server/MemcacheServer.h"
#include "muduo/base/Atomic.h"
#include "muduo/base/Logging.h"
#include "muduo/net/EventLoop.h"
using namespace muduo;
using namespace muduo::net;
muduo::AtomicInt64 g_cas;
MemcacheServer::Options::Options()
{
memZero(this, sizeof(*this));
}
struct MemcacheSe... | 24.88 | 98 | 0.585668 | Itsposs |
cb8e5c327cd825eee61da3415d443d59b8f81cf1 | 11,308 | cpp | C++ | test/test-200-types/sources/tools/types/common/degradate/test-degradate-new.cpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | test/test-200-types/sources/tools/types/common/degradate/test-degradate-new.cpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | 49 | 2021-02-20T12:08:15.000Z | 2021-05-07T19:59:08.000Z | test/test-200-types/sources/tools/types/common/degradate/test-degradate-new.cpp | Kartonagnick/tools-types | 4b3a697e579050eade081b82f9b96309fea8f5e7 | [
"MIT"
] | null | null | null | // [2021y-02m-20d][18:40:18] Idrisov Denis R.
// [2021y-03m-17d][20:49:29] Idrisov Denis R.
#include <mygtest/modern.hpp>
#ifdef TEST_TOOLS_DEGRADATE
#include <tools/features.hpp>
#ifdef dHAS_USING_ALIAS
// #pragma message("build for msvc2013 (or newer) or other compiler")
#define dTEST_COMPONENT tools, types, commo... | 51.87156 | 88 | 0.380881 | Kartonagnick |
cb8e7b7b4c4fa36969fa6f859c1b810605ebbc74 | 657 | hpp | C++ | rlTut/Actor.hpp | vrum/rlTut | 0907b357c51a0b983ff8812f5c4887ecb185c9fa | [
"MIT"
] | null | null | null | rlTut/Actor.hpp | vrum/rlTut | 0907b357c51a0b983ff8812f5c4887ecb185c9fa | [
"MIT"
] | null | null | null | rlTut/Actor.hpp | vrum/rlTut | 0907b357c51a0b983ff8812f5c4887ecb185c9fa | [
"MIT"
] | null | null | null | class Actor {
public :
int x,y; // position on map
int ch; // ascii code
TCODColor col; // color
const char *name; // the actor's name
bool blocks; // can we walk on this actor?
Attacker *attacker; // something that deals damages
Destructible *destructible; // something that can be damaged
Ai ... | 32.85 | 70 | 0.668189 | vrum |
cb9031533cf8369be3567f261e7fdccf1e073063 | 2,781 | cc | C++ | src/main/cpp/blaze_util_mingw.cc | cloudpanda/bazel | 981b7bc1ce793a484f9a39178d57f9e24bfc487a | [
"Apache-2.0"
] | 2 | 2016-02-06T16:36:44.000Z | 2019-03-30T07:56:11.000Z | src/main/cpp/blaze_util_mingw.cc | shwenzhang/bazel | 03bad4619075aa77876698c55827aa54e7426ea9 | [
"Apache-2.0"
] | null | null | null | src/main/cpp/blaze_util_mingw.cc | shwenzhang/bazel | 03bad4619075aa77876698c55827aa54e7426ea9 | [
"Apache-2.0"
] | 2 | 2016-02-06T16:36:46.000Z | 2018-12-06T07:41:36.000Z | // Copyright 2014 Google Inc. 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 applicable ... | 25.990654 | 75 | 0.695433 | cloudpanda |
cb90d75dd73aa285ff525cfb4dba1ef5b10c6f34 | 213 | cpp | C++ | jp.atcoder/abc156/abc156_a/11412312.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc156/abc156_a/11412312.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc156/abc156_a/11412312.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
int n, r;
cin >> n >> r;
r += 100 * max(10 - n, 0);
cout << r << endl;
return 0;
}
| 14.2 | 31 | 0.502347 | kagemeka |
cb93749db348ab19811caf722e6a09b57538e9ee | 7,929 | cpp | C++ | src/rmath.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | 6 | 2019-07-16T05:39:18.000Z | 2022-02-17T10:10:18.000Z | src/rmath.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | src/rmath.cpp | nicovanbentum/Raekor | 131e68490aa119213467ef295d3bfb94e5dd7046 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "rmath.h"
#include "camera.h"
namespace Raekor {
namespace Math {
Ray::Ray(Viewport& viewport, glm::vec2 coords) {
glm::vec3 rayNDC = {
(2.0f * coords.x) / viewport.size.x - 1.0f,
1.0f - (2.0f * coords.y) / viewport.size.y,
1.0f
};
glm::vec4 rayClip = { r... | 31.094118 | 113 | 0.472695 | nicovanbentum |
cb991c100f908016b0f24a84e4d83d56ad2e3a47 | 108,452 | cpp | C++ | samples/golf/src/golf/GolfState.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/golf/src/golf/GolfState.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/golf/src/golf/GolfState.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2021
http://trederia.blogspot.com
crogine application - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of ... | 38.719029 | 168 | 0.606711 | fallahn |
ed80a8729716e8ed8f0a8efe039bf45697dd63b1 | 758 | cpp | C++ | EyeCandy3D/src/Gui/Backend/OpenGLFontLoader.cpp | Nelaty/EyeCandy3D | 7daee9451460f5a98e3b6a28e14089b8059bf485 | [
"MIT"
] | null | null | null | EyeCandy3D/src/Gui/Backend/OpenGLFontLoader.cpp | Nelaty/EyeCandy3D | 7daee9451460f5a98e3b6a28e14089b8059bf485 | [
"MIT"
] | 14 | 2019-10-11T17:58:54.000Z | 2021-01-22T09:54:55.000Z | EyeCandy3D/src/Gui/Backend/OpenGLFontLoader.cpp | Nelaty/EyeCandy3D | 7daee9451460f5a98e3b6a28e14089b8059bf485 | [
"MIT"
] | 1 | 2019-05-14T19:31:23.000Z | 2019-05-14T19:31:23.000Z | #include "EC3D/Gui/Backend/OpenGLFontLoader.h"
#include "EC3D/Gui/Backend/OpenGLFont.h"
namespace ec
{
OpenGLFontLoader::OpenGLFontLoader()
= default;
OpenGLFontLoader::~OpenGLFontLoader()
= default;
agui::Font* OpenGLFontLoader::loadFont(const std::string &fileName,
c... | 22.294118 | 72 | 0.556728 | Nelaty |
ed8107972d0881dd396e480e62c494ab4ddb20f5 | 1,161 | cpp | C++ | SECOND_LEVEL/1092.cpp | BLUECARVIN/PAT | e8519552ce2c398b5e8bb84cd709c2a271363d29 | [
"MIT"
] | null | null | null | SECOND_LEVEL/1092.cpp | BLUECARVIN/PAT | e8519552ce2c398b5e8bb84cd709c2a271363d29 | [
"MIT"
] | null | null | null | SECOND_LEVEL/1092.cpp | BLUECARVIN/PAT | e8519552ce2c398b5e8bb84cd709c2a271363d29 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <cstring>
using namespace std;
const int maxn = 1010;
char Buy[maxn], Want[maxn];
int Hash[26 * 2 + 10] = {0};
int main()
{
cin.getline(Buy, 1000);
cin.getline(Want, 1000);
int len1 = strlen(Buy);
int len2 = strlen(Want);
for(int i = 0; i < len1; i++... | 24.1875 | 77 | 0.458226 | BLUECARVIN |
ed821cf4f97becf6a1eb57bd7771a3ad9fade8a7 | 28,195 | cc | C++ | ThirdParty/webrtc/src/net/base/network_interfaces_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 8 | 2018-12-27T14:57:13.000Z | 2021-04-07T07:03:15.000Z | ThirdParty/webrtc/src/net/base/network_interfaces_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 1 | 2019-03-13T01:35:03.000Z | 2020-10-08T04:13:04.000Z | ThirdParty/webrtc/src/net/base/network_interfaces_unittest.cc | JokeJoe8806/licode-windows | 2bfdaf6e87669df2b9960da50c6800bc3621b80b | [
"MIT"
] | 9 | 2018-12-28T11:45:12.000Z | 2021-05-11T02:15:31.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/base/network_interfaces.h"
#include <string>
#include <ostream>
// TODO(eroman): Remove unneeeded headers.
#include "base/files/file_... | 37.294974 | 80 | 0.716723 | JokeJoe8806 |
ed84387e87a348fc2b439e7189003a98d50e7349 | 1,317 | hpp | C++ | libraries/plugins/apis/block_api/include/sophiatx/plugins/block_api/block_api_objects.hpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 8 | 2018-07-25T20:42:43.000Z | 2019-03-11T03:14:09.000Z | libraries/plugins/apis/block_api/include/sophiatx/plugins/block_api/block_api_objects.hpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 13 | 2018-07-25T17:41:28.000Z | 2019-01-25T13:38:11.000Z | libraries/plugins/apis/block_api/include/sophiatx/plugins/block_api/block_api_objects.hpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 11 | 2018-07-25T14:34:13.000Z | 2019-05-03T13:29:37.000Z | #pragma once
#include <sophiatx/chain/account_object.hpp>
#include <sophiatx/chain/block_summary_object.hpp>
#include <sophiatx/chain/global_property_object.hpp>
#include <sophiatx/chain/history_object.hpp>
#include <sophiatx/chain/sophiatx_objects.hpp>
#include <sophiatx/chain/transaction_object.hpp>
#include <sophiat... | 33.769231 | 110 | 0.700835 | SophiaTX |
ed8737f8c54099919d8485790962c2ce52e29e39 | 35 | cpp | C++ | jusin2/220328/Girl.cpp | HeroJho/Jusin_c_cpp | 5fbb014fffc34b52b780486755de3576b07e4b64 | [
"MIT"
] | null | null | null | jusin2/220328/Girl.cpp | HeroJho/Jusin_c_cpp | 5fbb014fffc34b52b780486755de3576b07e4b64 | [
"MIT"
] | null | null | null | jusin2/220328/Girl.cpp | HeroJho/Jusin_c_cpp | 5fbb014fffc34b52b780486755de3576b07e4b64 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Girl.h"
| 11.666667 | 17 | 0.657143 | HeroJho |
ed87b39be34862b56db44e9b7678981111a0ec16 | 838 | hpp | C++ | Platforms/Vulkan/include/VulkanVertexInputPool.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | 2 | 2020-01-22T05:57:12.000Z | 2020-04-06T01:15:30.000Z | Platforms/Vulkan/include/VulkanVertexInputPool.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | Platforms/Vulkan/include/VulkanVertexInputPool.hpp | JoshuaMasci/Genesis | 761060626a92e3df7b860a97209fca341cdda240 | [
"MIT"
] | null | null | null | #pragma once
#include "Genesis/RenderingBackend/RenderingTypes.hpp"
#include "Genesis/RenderingBackend/VertexInputDescription.hpp"
#include "VulkanInclude.hpp"
#include "Genesis/Core/Types.hpp"
#include <mutex>
namespace Genesis
{
struct VulkanVertexInputDescription
{
VkVertexInputBindingDescription binding_desc... | 25.393939 | 111 | 0.826969 | JoshuaMasci |
ed87dfdc34bef78a7809ce0f790c5cde5ac6bb2b | 1,361 | cpp | C++ | src/main.cpp | Exus1/TeamSpeak3-C-Query-API | c0cf094180f4217c456edfaaa6021c64b74edd3c | [
"MIT"
] | 2 | 2017-09-29T14:57:04.000Z | 2017-11-05T20:54:26.000Z | src/main.cpp | karolkrupa/TeamSpeak3-C-Query-API | c0cf094180f4217c456edfaaa6021c64b74edd3c | [
"MIT"
] | null | null | null | src/main.cpp | karolkrupa/TeamSpeak3-C-Query-API | c0cf094180f4217c456edfaaa6021c64b74edd3c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <Server.hpp>
using namespace std;
int main() {
Ts3Api::Server server("e-bot.eu", "10011");
server.login("serveradmin", "PASSWORD");
server.selectServer("9987");
server.setNickname("eBot TRAIL");
auto client = server.getClientByNickname("Exus");
//cout << c... | 22.311475 | 63 | 0.606907 | Exus1 |
ed8a90e423c2a29d6e6b5f76e8f6054539ca644b | 28,967 | cpp | C++ | api/modules/SAM_Windpower.cpp | JordanMalan/SAM | a4951b841987e0ccd66fe4d011cc6b5dd7b4f27c | [
"BSD-3-Clause"
] | 1 | 2021-04-27T23:06:44.000Z | 2021-04-27T23:06:44.000Z | api/modules/SAM_Windpower.cpp | JordanMalan/SAM | a4951b841987e0ccd66fe4d011cc6b5dd7b4f27c | [
"BSD-3-Clause"
] | null | null | null | api/modules/SAM_Windpower.cpp | JordanMalan/SAM | a4951b841987e0ccd66fe4d011cc6b5dd7b4f27c | [
"BSD-3-Clause"
] | 1 | 2021-09-15T11:15:24.000Z | 2021-09-15T11:15:24.000Z | #include <string>
#include <utility>
#include <vector>
#include <memory>
#include <iostream>
#include <ssc/sscapi.h>
#include "SAM_api.h"
#include "ErrorHandler.h"
#include "SAM_Windpower.h"
SAM_EXPORT int SAM_Windpower_execute(SAM_table data, int verbosity, SAM_error* err){
return SAM_module_exec("windpower", data... | 28.371205 | 137 | 0.776228 | JordanMalan |
ed8ba0e4609386872332d21e23a8c58c55ebfd2a | 34,898 | cpp | C++ | WasapiIODLL/WasapiUser.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | null | null | null | WasapiIODLL/WasapiUser.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | null | null | null | WasapiIODLL/WasapiUser.cpp | yamamoto2002/bitspersampleconv2 | 331a9fc531269e5dfdc78548e583f793a7687dc0 | [
"MIT"
] | 1 | 2020-11-12T06:55:18.000Z | 2020-11-12T06:55:18.000Z | // 日本語 UTF-8
// WASAPIの機能を使って音を出したり録音したりするWasapiUserクラス。
#include "WasapiUser.h"
#include "WWWasapiIOUtil.h"
#include <assert.h>
#include <strsafe.h>
#include <mmsystem.h>
#include <malloc.h>
#include <stdint.h>
#include "WWCommonUtil.h"
#define FOOTER_SEND_FRAME_NUM (2)
#define PERIODS... | 30.346087 | 178 | 0.621268 | yamamoto2002 |
ed8cfc57ec1737e6c5ddec0b44e69583befc5939 | 2,449 | hpp | C++ | libvast/vast/detail/narrow.hpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | libvast/vast/detail/narrow.hpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | 1 | 2019-11-29T12:43:41.000Z | 2019-11-29T12:43:41.000Z | libvast/vast/detail/narrow.hpp | knapperzbusch/vast | 9d2af995254519b47febe2062adbc55965055cbe | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 38.265625 | 80 | 0.541854 | knapperzbusch |
ed8efa5d49b6befa077a1718606278c341d74040 | 5,735 | cpp | C++ | src/Magnum/Platform/WindowlessCglApplication.cpp | felixguendling/magnum | 8439cb792b3af9a878591186596e2f0c406b0897 | [
"MIT"
] | 3 | 2018-01-16T09:26:20.000Z | 2020-06-23T13:26:36.000Z | src/Magnum/Platform/WindowlessCglApplication.cpp | felixguendling/magnum | 8439cb792b3af9a878591186596e2f0c406b0897 | [
"MIT"
] | null | null | null | src/Magnum/Platform/WindowlessCglApplication.cpp | felixguendling/magnum | 8439cb792b3af9a878591186596e2f0c406b0897 | [
"MIT"
] | 1 | 2016-10-09T14:53:45.000Z | 2016-10-09T14:53:45.000Z | /*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019,
2020, 2021 Vladimír Vondruš <mosra@centrum.cz>
Copyright © 2013 <https://github.com/ArEnSc>
Copyright © 2014 Travis Watkins <https://github.com/amaranth>
Copyright © 2021 Konstant... | 40.387324 | 166 | 0.729381 | felixguendling |
ed9a3751c9d53677847ef8bce51550a59dddb4b1 | 336 | cpp | C++ | 11172 - Relational Operator.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | null | null | null | 11172 - Relational Operator.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | null | null | null | 11172 - Relational Operator.cpp | Rodagui/UVa-Solutions | d4273fc1f2ce843a23bf94d3b3037e66b9d285d1 | [
"MIT"
] | 1 | 2020-06-22T03:34:27.000Z | 2020-06-22T03:34:27.000Z | /*11172 - Relational Operator*/
#include <iostream>
using namespace std;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int casos, a, b;
cin>>casos;
while(casos--){
cin>>a>>b;
if(a>b)
cout<<">\n";
if(a<b)
cout<<"<\n";
if(a==b)
cout<<"=\n";
}
... | 10.5 | 32 | 0.46131 | Rodagui |
ed9b41cce8216d4a7a53c67aadbf0f4b711f1c2a | 12,872 | cpp | C++ | far/plugsettings.cpp | tralivali1234/FarManager | 24d88b4382af3a4853e6883aaa2d0a8db60bf299 | [
"BSD-3-Clause"
] | null | null | null | far/plugsettings.cpp | tralivali1234/FarManager | 24d88b4382af3a4853e6883aaa2d0a8db60bf299 | [
"BSD-3-Clause"
] | null | null | null | far/plugsettings.cpp | tralivali1234/FarManager | 24d88b4382af3a4853e6883aaa2d0a8db60bf299 | [
"BSD-3-Clause"
] | null | null | null | /*
plugsettings.cpp
API для хранения плагинами настроек.
*/
/*
Copyright © 2011 Far Group
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 copyrig... | 25.692615 | 147 | 0.7305 | tralivali1234 |
ed9cea9679b55a987af466105cd79032f92f1729 | 80,844 | cpp | C++ | test/model_component/test_expression_proxy.cpp | snowberryfield/printemps | 53f14da11bfddc90a561be08f6bd73cf7df7399c | [
"MIT"
] | 16 | 2020-12-07T03:47:54.000Z | 2022-03-16T02:14:48.000Z | test/model_component/test_expression_proxy.cpp | snowberryfield/printemps | 53f14da11bfddc90a561be08f6bd73cf7df7399c | [
"MIT"
] | null | null | null | test/model_component/test_expression_proxy.cpp | snowberryfield/printemps | 53f14da11bfddc90a561be08f6bd73cf7df7399c | [
"MIT"
] | null | null | null | /*****************************************************************************/
// Copyright (c) 2020-2021 Yuji KOGUMA
// Released under the MIT license
// https://opensource.org/licenses/mit-license.php
/*****************************************************************************/
#include <gtest/gtest.h>
#include <r... | 39.687776 | 80 | 0.610583 | snowberryfield |
ed9e82620c1c8b493a14a79082a2aa239a834c60 | 1,349 | cc | C++ | cc/modules/features2d/FeatureDetector.cc | bookjan/opencv4nodejs | d0a457ce40783cadaea79eb82ffef01d57ed97a3 | [
"MIT"
] | 2 | 2018-12-21T01:37:32.000Z | 2019-05-29T06:27:03.000Z | cc/modules/features2d/FeatureDetector.cc | sanksys/opencv4nodejs | 012b849a429aa199fb427321fdb2631c420efeb7 | [
"MIT"
] | null | null | null | cc/modules/features2d/FeatureDetector.cc | sanksys/opencv4nodejs | 012b849a429aa199fb427321fdb2631c420efeb7 | [
"MIT"
] | 1 | 2020-02-18T06:44:04.000Z | 2020-02-18T06:44:04.000Z | #include "FeatureDetector.h"
#include "FeatureDetectorBindings.h"
void FeatureDetector::Init(v8::Local<v8::FunctionTemplate> ctor) {
Nan::SetPrototypeMethod(ctor, "detect", FeatureDetector::Detect);
Nan::SetPrototypeMethod(ctor, "compute", FeatureDetector::Compute);
Nan::SetPrototypeMethod(ctor, "detectAsync", F... | 32.119048 | 117 | 0.748703 | bookjan |
eda0abecefcae2c687280857f9eba52a6a3081c4 | 3,271 | hpp | C++ | src/boost/serialization/array_wrapper.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | src/boost/serialization/array_wrapper.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | 1 | 2021-08-30T18:02:49.000Z | 2021-08-30T18:02:49.000Z | src/boost/serialization/array_wrapper.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | #ifndef BOOST_SERIALIZATION_ARRAY_WRAPPER_HPP
#define BOOST_SERIALIZATION_ARRAY_WRAPPER_HPP
// (C) Copyright 2005 Matthias Troyer and Dave Abrahams
// Use, modification and distribution is subject to the Boost Software
// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/L... | 27.258333 | 82 | 0.685723 | 107-systems |
eda2cbf70f9697f3db41a0c1fa7165ba81419644 | 3,677 | cpp | C++ | src/Dist_Thresh.cpp | sd12832/zlab_drone | d046a0c6986b0af2e40db9bb8a1fbecd99050364 | [
"MIT"
] | 1 | 2019-06-29T02:50:54.000Z | 2019-06-29T02:50:54.000Z | src/Dist_Thresh.cpp | sd12832/zlab_drone | d046a0c6986b0af2e40db9bb8a1fbecd99050364 | [
"MIT"
] | null | null | null | src/Dist_Thresh.cpp | sd12832/zlab_drone | d046a0c6986b0af2e40db9bb8a1fbecd99050364 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <zlab_drone/Circles.h>
#include <zlab_drone/Circle.h>
#include <cv_bridge/cv_bridge.h>
#include <image_transport/image_transport.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imageproc/imageproc.hpp>
#include <opencv2/highgui/highgui.hpp>
// Deprecated Function
/*
bool sm... | 25.713287 | 82 | 0.651074 | sd12832 |
eda6f106202a90b6367236633b43a0ad098a4b22 | 15,447 | cpp | C++ | XDKSamples/IntroGraphics/SimpleTexture12/SimpleTexture12.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | null | null | null | XDKSamples/IntroGraphics/SimpleTexture12/SimpleTexture12.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | null | null | null | XDKSamples/IntroGraphics/SimpleTexture12/SimpleTexture12.cpp | dephora/Xbox-ATG-Samples | 31e482c9e23def36073542ce614a0f0b145d7112 | [
"MIT"
] | 1 | 2020-07-30T11:13:23.000Z | 2020-07-30T11:13:23.000Z | //--------------------------------------------------------------------------------------
// SimpleTexture12.cpp
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#include "pc... | 36.778571 | 155 | 0.657927 | dephora |
eda9b871b97420122185215bdbdcbe44fe4dc689 | 25,328 | hpp | C++ | Sisyphe/cppbase/src/interpreter/debugTypeInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/debugTypeInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | Sisyphe/cppbase/src/interpreter/debugTypeInfoInterpreter.hpp | tedi21/SisypheReview | f7c05bad1ccc036f45870535149d9685e1120c2c | [
"Unlicense"
] | null | null | null | /*
* debugTypeInfoInterpreter.hpp
*
*
* @date 14-07-2020
* @author Teddy DIDE
* @version 1.00
* cppBase generated by gensources.
*/
#ifndef _DEBUGTYPEINFO_INTERPRETER_HPP_
#define _DEBUGTYPEINFO_INTERPRETER_HPP_
#include "config.hpp"
#include "Macros.hpp"
#include "Base.hpp"
#include "Array.hpp"
#include "c... | 57.694761 | 170 | 0.770649 | tedi21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.