hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3440aa8476c4a35789e1b693979a871d0c213ac3 | 3,126 | cpp | C++ | Samples/VideoPerformance/SrcEngine/SrcEngine.cpp | huaweiatlasTest/samples | 5d1fcd6dc1b25bca3bf0a82f3e40d95d03f6995b | [
"BSD-3-Clause"
] | 23 | 2019-07-29T02:15:20.000Z | 2020-01-09T02:20:32.000Z | Samples/VideoPerformance/SrcEngine/SrcEngine.cpp | huaweiatlasTest/samples | 5d1fcd6dc1b25bca3bf0a82f3e40d95d03f6995b | [
"BSD-3-Clause"
] | 4 | 2019-09-26T07:50:26.000Z | 2019-11-29T06:01:29.000Z | Samples/VideoPerformance/SrcEngine/SrcEngine.cpp | huaweiatlasTest/samples | 5d1fcd6dc1b25bca3bf0a82f3e40d95d03f6995b | [
"BSD-3-Clause"
] | 14 | 2019-08-14T07:54:55.000Z | 2020-01-14T08:09:21.000Z | /**
* ============================================================================
*
* Copyright (C) 2019, Huawei Technologies Co., Ltd. All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* ... | 41.131579 | 116 | 0.698976 | huaweiatlasTest |
3440c72dfd3fbd205073743ce429e0b03a8b2785 | 7,699 | hpp | C++ | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | src/elona/config/config.hpp | Vorlent/ElonaFoobar | 8e544af1f82377c9add6961589ddc99e22c5ed4c | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <unordered_set>
#include "../../snail/window.hpp"
#include "../../thirdparty/ordered_map/ordered_map.h"
#include "../../util/noncopyable.hpp"
#include "../elona.hpp"
#include "../filesystem.hpp"
#include "../log.hpp"
#include "config_def.hpp"
namespace elo... | 26.010135 | 80 | 0.560462 | Vorlent |
3442ce0c70f7feca295b033a0bd04a1bce324835 | 2,190 | hpp | C++ | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | include/DAL/instruction.hpp | NzZs79/DevAutomator | 81e7b41945452ce8dad6f48fd8b3d958b6ebbef7 | [
"MIT"
] | null | null | null | #include "general.hpp"
#include <vector>
#include <iterator>
#include <memory>
#include "DAL/environment.hpp"
#include <string>
#ifndef INSTRUCTION_H
#define INSTRUCTION_H
typedef enum {
JMP_INST = 0,
JMP_TRUE_INST,
JMP_FALSE_INST,
DEF_INST,
EQUAL_INST,
OPER_INST,
VAR_INST,
LITERAL_INS... | 16.846154 | 62 | 0.6379 | NzZs79 |
344394b9c3fdb4ea74d8a53112124f6eccd563f9 | 4,386 | cpp | C++ | gtsam/sfm/tests/testShonanGaugeFactor.cpp | xxiao-1/gtsam | 8b1516f43ffdf6b5098fc282b566f2ee1edb50f6 | [
"BSD-3-Clause"
] | 1,402 | 2017-03-28T00:18:11.000Z | 2022-03-30T10:28:32.000Z | gtsam/sfm/tests/testShonanGaugeFactor.cpp | xxiao-1/gtsam | 8b1516f43ffdf6b5098fc282b566f2ee1edb50f6 | [
"BSD-3-Clause"
] | 851 | 2017-11-27T15:09:56.000Z | 2022-03-31T22:26:38.000Z | gtsam/sfm/tests/testShonanGaugeFactor.cpp | xxiao-1/gtsam | 8b1516f43ffdf6b5098fc282b566f2ee1edb50f6 | [
"BSD-3-Clause"
] | 565 | 2017-11-30T16:15:59.000Z | 2022-03-31T02:53:04.000Z | /* ----------------------------------------------------------------------------
* GTSAM Copyright 2010-2019, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
*... | 40.990654 | 80 | 0.562927 | xxiao-1 |
3447f42d22a2034107aa34500febbb961994ff2f | 2,054 | cpp | C++ | od/objects/Option.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 102 | 2021-03-01T10:39:56.000Z | 2022-03-31T00:28:15.000Z | od/objects/Option.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 62 | 2021-03-01T19:38:54.000Z | 2022-03-21T00:51:24.000Z | od/objects/Option.cpp | antisvin/er-301 | 54d1e553651b5b653afa318189d813f0b7e12a96 | [
"MIT"
] | 19 | 2021-03-01T19:52:10.000Z | 2021-07-29T03:25:19.000Z | #include <od/objects/Option.h>
namespace od
{
Option::Option(const std::string &name, int option) : mName(name), mValue(option)
{
}
Option::Option(const std::string &name) : mName(name)
{
}
Option::~Option()
{
}
void Option::hold()
{
}
void Option::unhold()
{
}
void Optio... | 13.513158 | 83 | 0.553554 | antisvin |
344829ca2f450746fc90478eb07930f0b1dd47e2 | 4,444 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/waterbox/libsnes/bsnes/snes/chip/armdsp/armdsp.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | #include <snes/snes.hpp>
#define ARMDSP_CPP
namespace SNES {
//zero 01-sep-2014 - dont clobber these when reconstructing!
uint8 *ArmDSP::firmware;
uint8 *ArmDSP::programROM;
uint8 *ArmDSP::dataROM;
static bool trace = 0;
#include "opcodes.cpp"
#include "memory.cpp"
#include "disassembler.cpp"
ArmDSP armdsp;
void A... | 23.638298 | 106 | 0.64784 | redscientistlabs |
4517f48a82f2219bb674f3af02b9187c0e921aea | 500 | cpp | C++ | cpp/qt/trycmakeqmlplugin/plugin.cpp | orri93/experimental | 04a8000ec1f5d605651826fc399ba4354a1cdcdf | [
"Apache-2.0"
] | null | null | null | cpp/qt/trycmakeqmlplugin/plugin.cpp | orri93/experimental | 04a8000ec1f5d605651826fc399ba4354a1cdcdf | [
"Apache-2.0"
] | null | null | null | cpp/qt/trycmakeqmlplugin/plugin.cpp | orri93/experimental | 04a8000ec1f5d605651826fc399ba4354a1cdcdf | [
"Apache-2.0"
] | null | null | null | #include <QtQml/QtQml>
#include <plugin.h>
//#include <gos/pid/ui/floatvalidator.h>
//#include <gos/pid/ui/pathvalidator.h>
//namespace gptu = ::gos::pid::toolkit::ui;
void GosTryingPlugin::registerTypes(const char* uri) {
// qmlRegisterType<gptu::validator::Float>(
// uri, 1, 0, GOS_QML_VALIDATOR_NAME_FLOAT);
/... | 31.25 | 54 | 0.716 | orri93 |
451a992b1a7e398756373bd0ff13111d3c428557 | 3,530 | cpp | C++ | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | source/material/Dielectric.cpp | xzrunner/raytracing | c130691a92fab2cc9605f04534f42ca9b99e6fde | [
"MIT"
] | null | null | null | #include "raytracing/material/Dielectric.h"
#include "raytracing/bxdf/FresnelReflector.h"
#include "raytracing/bxdf/FresnelTransmitter.h"
#include "raytracing/bxdf/Lambertian.h"
#include "raytracing/bxdf/GlossySpecular.h"
#include "raytracing/world/World.h"
#include "raytracing/tracer/Tracer.h"
#include "raytracing/lig... | 28.934426 | 140 | 0.64221 | xzrunner |
451bae514611aa2a7281c9cd903890a56cddaa97 | 1,280 | cpp | C++ | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | progress/mountains.cpp | birdhumming/usaco | f011e7bd4b71de22736a61004e501af2b273b246 | [
"OLDAP-2.2.1"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
vector<pair<int, int> > peaks;
bool is_in(int x1, int y1, int x2, int y2) { //is the peak (x1, y1) within the mountain (x2, y2)
if (x1==-1 || x2==-1) return false;
if (x2-y2 >= x1-y1 && x2+y2 >= x1+y1) return true;
return false;... | 26.666667 | 101 | 0.450781 | birdhumming |
4524e69b0da24ff698de2a08687ce2f8a6e66633 | 947 | cc | C++ | hackerrank/epiccode/C.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | 1 | 2019-05-12T23:41:00.000Z | 2019-05-12T23:41:00.000Z | hackerrank/epiccode/C.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | hackerrank/epiccode/C.cc | metaflow/contests | 5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
using vi = vector<int>;
using ii = pair<int,int>;
using vii = vector<ii>;
using vvi = vector<vi>;
using ll = long long;
using llu = unsigned long long;
using vb = vector<bool>;
using vvb = vector<vb>;
using vd = vector<double>;
using vvd = vector<vd>;
using vll = vector<ll>... | 23.097561 | 49 | 0.554382 | metaflow |
45281c21fe8ac4584f35fdb69d7bec6b5e72f1a2 | 1,599 | hpp | C++ | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 13 | 2018-07-04T16:35:37.000Z | 2021-03-03T10:41:07.000Z | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | 11 | 2018-06-01T20:32:32.000Z | 2019-01-21T17:03:47.000Z | platforms/linux/src/Application/Packets/Commands/Read/Peripheral/ReadRequest.hpp | iotile/baBLE-linux | faedca2c70b7fe91ea8ae0c3d8aff6bf843bd9db | [
"MIT"
] | null | null | null | #ifndef BABLE_PERIPHERAL_READREQUEST_HPP
#define BABLE_PERIPHERAL_READREQUEST_HPP
#include "Application/Packets/Base/ControllerToHostPacket.hpp"
namespace Packet {
namespace Commands {
namespace Peripheral {
class ReadRequest : public ControllerToHostPacket {
public:
static const Packet:... | 24.6 | 89 | 0.668543 | iotile |
452bab015c8564514ada8ba94d9d217629e7ae98 | 664 | cpp | C++ | AtCoder/ABC 109/C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 18 | 2019-01-01T13:16:59.000Z | 2022-02-28T04:51:50.000Z | AtCoder/ABC 109/C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | null | null | null | AtCoder/ABC 109/C.cpp | HeRaNO/OI-ICPC-Codes | 4a4639cd3e347b472520065ca6ab8caadde6906d | [
"MIT"
] | 5 | 2019-09-13T08:48:17.000Z | 2022-02-19T06:59:03.000Z | #include <cstdio>
#define MAXN 100010
using namespace std;
int n, x, a[MAXN];
inline int gcd(int a, int b)
{
return !b ? a : gcd(b, a % b);
}
inline int abs(int a)
{
return a < 0 ? -a : a;
}
inline void read(int &x)
{
x = 0;
char ch = getchar();
bool f = false;
while (ch < '0' || ch > '9')
{
if (ch == '-') ... | 15.44186 | 83 | 0.462349 | HeRaNO |
452ddd090caf19f9b031233b135046e6f9441313 | 3,347 | cc | C++ | chrome/browser/content_settings/sound_content_setting_observer_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/content_settings/sound_content_setting_observer_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/content_settings/sound_content_setting_observer_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 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 "chrome/browser/content_settings/sound_content_setting_observer.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h... | 33.47 | 80 | 0.787571 | metux |
4534790320eba5e4c94fa12b4ecac6b8cdac97e4 | 1,002 | hpp | C++ | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | src/Board.hpp | syanush/rhotetris | 4f85da828e966a2679e8160c5f810cde6b19419c | [
"MIT"
] | null | null | null | #pragma once
#include <array>
#include "GameOverEvent.hpp"
#include "Piece.hpp"
namespace RhoTetris {
enum class Colors { Default, Magenta };
class Board : public GameOverEvent {
public:
static const int kBoardWidth = 10;
static const int kBoardHeight = 22;
void clear();
void update();
void makeNewPiec... | 20.875 | 74 | 0.699601 | syanush |
4534f00e10e2659637c3dea74e5dea14b8bab46b | 7,336 | cpp | C++ | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | 1 | 2015-12-01T04:16:54.000Z | 2015-12-01T04:16:54.000Z | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | vendor/mysql-connector-c++-1.1.3/test/framework/test_timer.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/C++ is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
MySQL Connectors. There are special exceptions to the terms and
conditions of the GPLv2 as it is applied to... | 29.461847 | 131 | 0.717694 | caiqingfeng |
453a00edfc34b51d44704592d3f8bbd5c3e57a32 | 11,951 | cpp | C++ | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | 1 | 2015-04-11T14:41:38.000Z | 2015-04-11T14:41:38.000Z | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | null | null | null | Shader Labb 2/Instance.cpp | Cousken/3DEngine | dd8a58f1cc08f17b1286c136215913123f234eb4 | [
"MIT"
] | null | null | null | #include "Instance.h"
#include "Engine.h"
#include "Light.h"
#include "EffectTechnique.h"
Instance::~Instance(void)
{
}
bool Instance::Init( )
{
myOrientation = Matrix44f::Identity();
BuildHierachy(myHierarchy, &myModel);
myBoneInstances.Init( myModel.myBones.Count(), 1 );
if( myModel.GetAnimation() != NULL )
... | 29.728856 | 271 | 0.745628 | Cousken |
4549616a04f8623bb76ddd005c1ab457f6f4de84 | 4,418 | cpp | C++ | programowanie-i-struktury-danych/cwiczenia-2/macierze.cpp | kpagacz/software-engineering | 6ac3965848919d7fe7350842ae9d59d65d213ef6 | [
"MIT"
] | 1 | 2022-01-17T07:50:54.000Z | 2022-01-17T07:50:54.000Z | programowanie-i-struktury-danych/cwiczenia-2/macierze.cpp | kpagacz/software-engineering | 6ac3965848919d7fe7350842ae9d59d65d213ef6 | [
"MIT"
] | null | null | null | programowanie-i-struktury-danych/cwiczenia-2/macierze.cpp | kpagacz/software-engineering | 6ac3965848919d7fe7350842ae9d59d65d213ef6 | [
"MIT"
] | 2 | 2021-02-02T18:13:35.000Z | 2021-05-10T13:31:40.000Z | #ifndef _MACIERZE
#define _MACIERZE
#include "macierze.hpp"
#include <iostream>
#include <stdexcept>
#include <iomanip>
// konstruktory
Macierz::Macierz(int wiersze, int kolumny, float wypelnienie) {
// sprawdzenie, czy wiersze i kolumny sa poprawnymi liczbami
// 1. czy obie sa dodatnie
if (wiersze > 0 &... | 27.6125 | 155 | 0.593029 | kpagacz |
454c4df31c1321a69b9939cc410aa74cd69268a4 | 8,493 | cc | C++ | tests/api/mpi/comm/iccreate.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | 4 | 2017-11-18T22:49:38.000Z | 2021-01-22T18:33:50.000Z | tests/api/mpi/comm/iccreate.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | null | null | null | tests/api/mpi/comm/iccreate.cc | minyee/sst-macro | fd2c52b3872b9c49af77f5f82b3177cc7bbe403c | [
"BSD-Source-Code"
] | 1 | 2018-02-21T11:39:08.000Z | 2018-02-21T11:39:08.000Z | /**
Copyright 2009-2017 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... | 33.046693 | 109 | 0.663605 | minyee |
4555bde2b27d87d8b07b7f9c16f95820e5c33892 | 769 | cpp | C++ | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | CppStudio/Easy/09.cpp | vvhappyguy/Access-to-IT | 1452c64f8c03addf6836a846af63123f65a9f620 | [
"Apache-2.0"
] | null | null | null | //compiled with clang (10.0.1)
//9. Дан одномерный массив, длину массива задаёт пользователь.
//Вычислить сумму квадратов тех чисел, модуль которых превышает значение 2,5.
//Input: int n , (float) * n
//Output: float
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n;
float sum;
... | 24.03125 | 77 | 0.56567 | vvhappyguy |
45583baf13cef610e42413db24e8011758a6d15c | 4,012 | hh | C++ | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | cc/pch.Darwin.hh | acorg/acmacs-base | a1a6e5b346ea3746f3fc1750ed4b7f29c7c0d049 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <array>
#include <atomic>
#include <bzlib.h>
#include <cassert>
#include <cctype>
#include <cerrno>
#include <chrono>
#include <cinttypes>
#include <cmath>
#include <condition_variable>
#include <csignal>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <... | 28.253521 | 73 | 0.639831 | acorg |
45599a45271ba21da38aa923f238479bb649e50f | 2,304 | cpp | C++ | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | src/Externals/cleaver/lib/backup/PaddedField.cpp | Haydelj/SCIRun | f7ee04d85349b946224dbff183438663e54b9413 | [
"MIT"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... | 30.315789 | 99 | 0.751736 | Haydelj |
455dff9f0174aadc5711be32e0a8f2ec8998be26 | 7,055 | hpp | C++ | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 1 | 2019-10-17T01:34:56.000Z | 2019-10-17T01:34:56.000Z | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | null | null | null | include/utils4cpp/str/UString.hpp | shaoguangwu/utils4cpp | 6cc2093220e7be293761432cde88dff275c8f678 | [
"BSD-3-Clause"
] | 3 | 2019-10-17T01:33:37.000Z | 2019-12-02T02:13:45.000Z | /************************************************************************************
**
** BSD 3-Clause License
**
** Copyright (c) 2019, shaoguang. All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are permitted provided that the following conditions ar... | 26.927481 | 115 | 0.635152 | shaoguangwu |
456112f948858b44c30eb8253bd794580c9571a1 | 1,767 | cpp | C++ | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 515 | 2015-01-13T05:42:10.000Z | 2022-03-29T03:10:01.000Z | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 425 | 2015-01-06T05:28:38.000Z | 2022-03-08T19:42:18.000Z | Libs/Core/Testing/Cpp/ctkBackTraceTest.cpp | kraehlit/CTK | 6557c5779d20b78f501f1fd6ce1063d0f219cca6 | [
"Apache-2.0"
] | 341 | 2015-01-08T06:18:17.000Z | 2022-03-29T21:47:49.000Z | /*=========================================================================
Library: CTK
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the Li... | 27.184615 | 79 | 0.54386 | kraehlit |
4565bbae89b433154fe632e8c47a6c49b131cfe0 | 1,367 | cc | C++ | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | 3 | 2019-03-07T14:45:06.000Z | 2019-04-27T12:57:15.000Z | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | 4 | 2021-04-02T19:07:38.000Z | 2021-06-03T12:39:29.000Z | test/test_saved_options.cc | halfflat/tinyopt | 12e4a7be36fb692a4b9b814ddef13dbb0c00a40c | [
"BSD-3-Clause"
] | null | null | null | #include <sstream>
#include <string>
#include <vector>
#include <gtest/gtest.h>
#include <tinyopt/tinyopt.h>
using svector = std::vector<std::string>;
TEST(saved_options, add) {
to::saved_options so1;
for (auto x: {"tasty", "fish", "cake"}) so1.add(x);
EXPECT_EQ((svector{"tasty", "fish", "cake"}), svecto... | 24.410714 | 104 | 0.567666 | halfflat |
456ed82488d7c794902f8a766dc59b9d650ded03 | 9,653 | cpp | C++ | app/draslrharden.cpp | toshipiazza/drtaint | 864007f148ef4c437f6a950e85b92fa087556f00 | [
"BSD-3-Clause"
] | 13 | 2017-11-27T05:13:19.000Z | 2021-03-10T19:06:32.000Z | app/draslrharden.cpp | toshipiazza/drtaint | 864007f148ef4c437f6a950e85b92fa087556f00 | [
"BSD-3-Clause"
] | 9 | 2018-01-13T00:27:03.000Z | 2020-01-07T06:53:49.000Z | app/draslrharden.cpp | toshipiazza/drtaint | 864007f148ef4c437f6a950e85b92fa087556f00 | [
"BSD-3-Clause"
] | 3 | 2018-04-10T10:30:37.000Z | 2018-07-13T18:23:24.000Z | #include "dr_api.h"
#include "drmgr.h"
#include "drreg.h"
#include "droption.h"
#include "../drtaint.h"
#include "../drtaint_helper.h"
#include <iostream>
#include <syscall.h>
/* This sample tries to prevent address leaks in an active exploitation
* scenario. We identify 3 types of leaks (stack, heap, and libc or .... | 32.284281 | 88 | 0.62737 | toshipiazza |
456ef663e6e77332c15c09da6f581eeacea9e74c | 6,159 | cpp | C++ | lib/MC/MCEVMStreamer.cpp | etclabscore/llvm | 700d4b7795d76a37110f8acfb6f05ee4894ab651 | [
"Apache-2.0"
] | 60 | 2019-08-08T03:58:12.000Z | 2022-03-08T06:54:24.000Z | lib/MC/MCEVMStreamer.cpp | ethereumproject/evm_llvm | 700d4b7795d76a37110f8acfb6f05ee4894ab651 | [
"Apache-2.0"
] | 59 | 2019-02-26T18:57:27.000Z | 2020-08-04T20:49:55.000Z | lib/MC/MCEVMStreamer.cpp | ethereumproject/evm_llvm | 700d4b7795d76a37110f8acfb6f05ee4894ab651 | [
"Apache-2.0"
] | 20 | 2019-09-19T09:49:04.000Z | 2022-03-24T03:31:10.000Z | //===- lib/MC/MCEVMStreamer.cpp - EVM Object Output ---------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===-----------------------------... | 36.660714 | 80 | 0.647021 | etclabscore |
4571d41c13ad1f797abd2ccc8b09aae403d3c092 | 1,996 | hpp | C++ | modules/cuda_plugin/src/transformer/fuse_conv_biasadd_activation.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | modules/cuda_plugin/src/transformer/fuse_conv_biasadd_activation.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | modules/cuda_plugin/src/transformer/fuse_conv_biasadd_activation.hpp | YUNEEC/openvino_contrib | 6a79637583fadd22e01d31b912d94d7a27cc78ba | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <ngraph/pass/graph_rewrite.hpp>
#include <ngraph/node.hpp>
namespace ngraph::pass {
class FuseConvolutionWithBiasAdd : public ngraph::pass::MatcherPass {
public:
NGRAPH_RTTI_DECLARATION;
FuseConvolut... | 24.641975 | 78 | 0.778557 | YUNEEC |
457390d9b1775239b1af41a158d8669c3dfa6286 | 1,347 | hpp | C++ | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 8 | 2020-06-05T01:13:20.000Z | 2022-02-24T05:11:50.000Z | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 24 | 2020-10-21T19:03:38.000Z | 2021-11-17T21:32:02.000Z | SOLVER/src/core/output/element-wise/io/ElementIO_ParNetCDF.hpp | nicklinyi/AxiSEM-3D | cd11299605cd6b92eb867d4109d2e6a8f15e6b4d | [
"MIT"
] | 5 | 2020-06-21T11:54:22.000Z | 2021-06-23T01:02:39.000Z | //
// ElementIO_ParNetCDF.hpp
// AxiSEM3D
//
// Created by Kuangdai Leng on 7/29/20.
// Copyright © 2020 Kuangdai Leng. All rights reserved.
//
// parallel NetCDF IO for element output
#ifndef ElementIO_ParNetCDF_hpp
#define ElementIO_ParNetCDF_hpp
#include "ElementIO.hpp"
#include "NetCDF_Writer.hpp"
class El... | 25.903846 | 69 | 0.601336 | nicklinyi |
4577cf4f5bb9c2e1bfdc6005f9901f4f5d59964b | 11,589 | hpp | C++ | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | 5 | 2018-01-18T14:51:10.000Z | 2021-04-10T00:57:03.000Z | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | null | null | null | fmt11.hpp | r-lyeh-archived/fmt11 | 1820e9e6e8cdaccc216151013882f456cfbf657c | [
"Unlicense"
] | 4 | 2018-01-18T14:51:14.000Z | 2020-10-27T12:55:06.000Z | // Tiny format/mustache templating library (C++11)
// - rlyeh, public domain
// Inspired by the better, safer and more featured library [fmtlib](https://github.com/fmtlib/fmt)
// PS: I ripped the examples and a few tests as well O:)
// ## Features
// [x] Basic python formatting: "{} {0} {1} {2:#x} {4:8.2} {:<20}"
// ... | 48.693277 | 132 | 0.426439 | r-lyeh-archived |
457d040916faaa4851bc08972031a8534c1dc4ca | 32,518 | cpp | C++ | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | 1 | 2015-07-08T15:30:06.000Z | 2015-07-08T15:30:06.000Z | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | matlab/caffe/matcaffe.cpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | //
// matcaffe.cpp provides a wrapper of the caffe::Net class as well as some
// caffe::Caffe functions so that one could easily call it from matlab.
// Note that for matlab, we will simply use float as the data type.
// these need to be included after boost on OS X
#include <string> // NOLINT(build/include_order)
#i... | 32.518 | 92 | 0.622486 | xiaomi646 |
457dfbafaa9141a0f680038f32d9ed0a3f4be5c7 | 2,373 | cpp | C++ | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | zinot-utils/zinot-utils/zimesh-json/ZimeshJsonDao.cpp | patrykbajos/zinot-project | f5ab158bce6855b25b7f23c873f64bc4a9c867ba | [
"MIT"
] | null | null | null | //
// Created by patryk on 01.11.16.
//
#include "ZimeshJsonDao.hpp"
namespace Zimesh
{
namespace RootKeys
{
static const QString matsKey = "materials";
static const QString meshesKey = "meshes";
static const QString objectsKey = "objects";
}
bool ZimeshJsonDao::loadFromJsonDoc(const QJsonDocument & jsonDoc)
{
... | 23.264706 | 84 | 0.654867 | patrykbajos |
457e564b782b5f5a4783e73340edfa9bdd4bf067 | 2,547 | cpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_update_character_pcl.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_update_character_pcl.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_update_character_pcl.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_update_character_pcl.cpp
// Criado em 16/06/2018 as 19:27 por Acrisio
// Implementa��o da classe CmdUpdateCharacterPCL
#if defined(_WIN32)
#pragma pack(1)
#endif
#include "cmd_update_character_pcl.hpp"
using namespace stdA;
CmdUpdateCharacterPCL::CmdUpdateCharacterPCL(bool _waiter) : pangya_db(_waite... | 39.184615 | 226 | 0.71967 | CCasusensa |
4581249165c77cf827281593ce318225a20a6450 | 337 | cpp | C++ | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | null | null | null | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | null | null | null | Soldier_Alien/Medic.cpp | RoshanMhatre/cpp | 689f5b7a0b65b783c6f20c501321dceb187f21c8 | [
"MIT"
] | 1 | 2020-10-04T05:24:35.000Z | 2020-10-04T05:24:35.000Z |
#include <string>
#include "Medic.h"
void Medic::setHasMedicine(bool hasMedicineIn) {
hasMedicine = hasMedicineIn;
}
bool Medic:: getHasMedicine() {
return hasMedicine;
}
void Medic::attack(){
cout << "The Medic shoots his Laser Pistol at an enemy and quickly ducks behind cover to adminster pain meds to his comr... | 22.466667 | 136 | 0.732938 | RoshanMhatre |
458568cc1159697267ea27d53dc1042366646121 | 1,712 | hpp | C++ | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | Core/cpp/TBq25121.hpp | zaqwsx1277/prMobileReader | 83a13b821458bbe8d1ec46570828aa69d57254e2 | [
"MIT"
] | null | null | null | /*
* TBq25121.hpp
*
* Created on: Jul 8, 2021
* Author: AAL
*/
#ifndef CPP_TBQ25121_HPP_
#define CPP_TBQ25121_HPP_
#include <i2c.h>
#include <TUnit.hpp>
namespace unit {
constexpr uint8_t defBq25121Adrr { 0x6A } ; ///< I2C адрес чипа BQ25121
constexpr uint8_t defBq25121AddrRead { (defBq25121Adrr <... | 30.035088 | 106 | 0.691589 | zaqwsx1277 |
4587a8853dc99a577cb9e605e2a7bd6121fb6187 | 1,657 | cc | C++ | code/UnionFind.cc | Alex7Li/ICPCNotebook | c6ff4abace39913ff49b4c683a79adbcf008abf7 | [
"MIT"
] | null | null | null | code/UnionFind.cc | Alex7Li/ICPCNotebook | c6ff4abace39913ff49b4c683a79adbcf008abf7 | [
"MIT"
] | null | null | null | code/UnionFind.cc | Alex7Li/ICPCNotebook | c6ff4abace39913ff49b4c683a79adbcf008abf7 | [
"MIT"
] | 1 | 2021-12-09T22:25:27.000Z | 2021-12-09T22:25:27.000Z | /**
* Description: Disjoint-set data structure.
* Time: $O(alpha(N))$
*/
struct UF {
// E is parent set number if positive, and the size if negative.
// If negative, it's the root of a set.
vi e;
UF(int n) : e(n, -1) {}
bool sameSet(int a, int b) { return find(a) == find(b); }
int s... | 31.865385 | 76 | 0.477369 | Alex7Li |
458a4b65828d838134e23f1d6fcf91c9499290fd | 2,778 | cc | C++ | quickstart/URLComparition.cc | shortthirdman/code-eval-challenges | 27d8f2474a95d4836397b3c5970dcabd5e2bff5e | [
"MIT"
] | 2 | 2018-06-24T17:09:16.000Z | 2020-08-03T11:44:54.000Z | quickstart/URLComparition.cc | shortthirdman/code-eval-challenges | 27d8f2474a95d4836397b3c5970dcabd5e2bff5e | [
"MIT"
] | null | null | null | quickstart/URLComparition.cc | shortthirdman/code-eval-challenges | 27d8f2474a95d4836397b3c5970dcabd5e2bff5e | [
"MIT"
] | null | null | null | /*
URI Comparison Share on LinkedIn
Description:
Determine if two URIs match. For the purpose of this challenge, you should use a case-sensitive octet-by-octet comparison of the entire URIs, with these exceptions:
1. A port that is empty or not given is equivalent to the default port of 80
2. Comparisons of... | 30.195652 | 165 | 0.550396 | shortthirdman |
458c568e30a49a947350d0a995826b9e5d5dacc0 | 165,611 | cpp | C++ | General/PJB_ImageRegistration/imageregistration/RegisterImages.cpp | petebunting/rsgis_scripts | b35b0403cdfad6c63824d4f8c038f190cdb5978d | [
"MIT"
] | 4 | 2020-09-16T10:45:15.000Z | 2021-05-06T04:34:32.000Z | General/PJB_ImageRegistration/imageregistration/RegisterImages.cpp | petebunting/rsgis_scripts | b35b0403cdfad6c63824d4f8c038f190cdb5978d | [
"MIT"
] | null | null | null | General/PJB_ImageRegistration/imageregistration/RegisterImages.cpp | petebunting/rsgis_scripts | b35b0403cdfad6c63824d4f8c038f190cdb5978d | [
"MIT"
] | 2 | 2020-07-06T18:03:40.000Z | 2022-02-15T12:45:34.000Z | /*
* RegisterImages.cpp
* ImageRegistration
*
* Created by Peter Bunting on 09/11/2005.
* Copyright 2005 Peter Bunting, University of Wales, Aberystwyth. All rights reserved.
*
*/
#include "RegisterImages.h"
RegisterImages::RegisterImages()
{
}
void RegisterImages::registerImageNetwork(ImagePyramid *image... | 27.533001 | 140 | 0.526614 | petebunting |
458e0d25fdc92876ede8278f3fcca7c0005f644b | 2,608 | cpp | C++ | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | 1 | 2015-06-27T21:00:31.000Z | 2015-06-27T21:00:31.000Z | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | null | null | null | src/Scene/TxWidgetPane.cpp | jimbo00000/Rift-Volume | 478779c8c38403ed37b3a6a9a19cc222ca95b8b4 | [
"MIT"
] | null | null | null | // TxWidgetPane.cpp
#include "TxWidgetPane.h"
#ifdef __APPLE__
#include "opengl/gl.h"
#endif
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#define _USE_MATH_DEFINES
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glew.h>
... | 22.678261 | 94 | 0.640337 | jimbo00000 |
4594e56fa8091f501b33b73bce85c2bcafa76da4 | 758 | cpp | C++ | dataset/test/modification/1486_all/4/transformation_1.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/modification/1486_all/4/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/modification/1486_all/4/transformation_1.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iomanip>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
void ai() ;
int main() ;
void khi_beh() {
int ddk;
cin >> ddk;
vector<int> j(ddk);
for (auto &sdd_oyq : j)
cin >> sdd_oyq;
long long tj_ccb = 0, y = 0;
{
int pub_be = 0;
if (5 > 3) cout... | 16.12766 | 58 | 0.435356 | Karina5005 |
459e1138ba5040f555d28d2c2038a9e069f2e086 | 2,435 | cpp | C++ | Development/Core/ydbase/base/path/helper.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | 2 | 2021-05-21T11:18:30.000Z | 2021-05-24T14:44:34.000Z | Development/Core/ydbase/base/path/helper.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | null | null | null | Development/Core/ydbase/base/path/helper.cpp | alanoooaao/YDWE | fa9c6dc24d01f78919b5c8b2c69252291536424a | [
"Apache-2.0"
] | null | null | null | #include <base/path/helper.h>
#include <base/path/get_path.h>
#include <base/util/foreach.h>
#include <deque>
namespace base { namespace path {
fs::path normalize(const fs::path& p)
{
fs::path result = p.root_path();
std::deque<std::wstring> stack;
foreach (auto e, p.relative_path()) {
if (e ==... | 24.59596 | 108 | 0.542505 | alanoooaao |
45a0405ea5b4dc3f64020819d729e0fc7e0abe8a | 1,136 | cpp | C++ | ch04/u213_2.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u213_2.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u213_2.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
char codes[8][1<<8];
char read_char() {
char c;
while (true) {
c = getchar();
if (c != '\n' && c != '\r') return c;
}
}
bool read_codes() {
char c;
codes[1][0] = read_char();
for (int len = 2; len < 8; len++) {
for (int i = 0; i < (... | 19.254237 | 52 | 0.416373 | brucegua |
45aca225239b8f120cedfc272066d2633c5a1687 | 2,423 | cpp | C++ | src/Map/IMapRenderer_Metrics.cpp | pierreloicq/OsmAnd-core | 3eb51a19e33eb0fddb9f88e8aaa2d35089a2a7fd | [
"MIT"
] | null | null | null | src/Map/IMapRenderer_Metrics.cpp | pierreloicq/OsmAnd-core | 3eb51a19e33eb0fddb9f88e8aaa2d35089a2a7fd | [
"MIT"
] | null | null | null | src/Map/IMapRenderer_Metrics.cpp | pierreloicq/OsmAnd-core | 3eb51a19e33eb0fddb9f88e8aaa2d35089a2a7fd | [
"MIT"
] | null | null | null | #include "IMapRenderer_Metrics.h"
OsmAnd::IMapRenderer_Metrics::Metric_update::Metric_update()
{
reset();
}
OsmAnd::IMapRenderer_Metrics::Metric_update::~Metric_update()
{
}
void OsmAnd::IMapRenderer_Metrics::Metric_update::reset()
{
OsmAnd__IMapRenderer_Metrics__Metric_update__FIELDS(RESET_METRIC_FIELD);
... | 28.174419 | 152 | 0.76104 | pierreloicq |
45ae0dfec6cb36a37071cdf88c82cccdbd3da76b | 59 | cpp | C++ | vm/mterp/c/OP_INT_TO_CHAR.cpp | leewp14/android_dalvik | c1202ff8b476a3445f3b844c795ffe47ab526313 | [
"Apache-2.0"
] | 1,306 | 2015-09-01T05:06:16.000Z | 2022-03-10T07:13:10.000Z | dalvik/vm/mterp/c/OP_INT_TO_CHAR.cpp | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 11 | 2015-09-02T09:06:42.000Z | 2020-12-26T04:59:34.000Z | dalvik/vm/mterp/c/OP_INT_TO_CHAR.cpp | cnrat/DexHunter | b8f46563c7f3aeb79cf40db09e1d231649f1a29a | [
"Apache-2.0"
] | 598 | 2015-09-01T05:06:18.000Z | 2022-03-27T07:59:49.000Z | HANDLE_INT_TO_SMALL(OP_INT_TO_CHAR, "char", u2)
OP_END
| 19.666667 | 51 | 0.762712 | leewp14 |
45aff9fed7cff72b5b613bab8974cb66edefd955 | 6,620 | cpp | C++ | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | null | null | null | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | null | null | null | AVTools/Module/PCMToWAV/PCMToWAV.cpp | XiaopingSun/AVTools | cd04e54036576c479debbb1f8cbefeceb0c16db9 | [
"MIT"
] | 1 | 2021-11-08T12:13:57.000Z | 2021-11-08T12:13:57.000Z | //
// PCMToWAV.cpp
// AVTools
//
// Created by WorkSpace_Sun on 2021/5/9.
//
#include "PCMToWAV.h"
#include <getopt.h>
#include <CoreFoundation/CoreFoundation.h>
#include <stdlib.h>
// 所谓的大端模式(Big Endian),是指数据的低位保存在内存的高地址中,而数据的高位,保存在内存的低地址中。
// 所谓的小端模式(Little Endian),是指数据的低位保存在内存的低地址中,而数据的高位保存在内存的高地址中。
#pragma pa... | 32.772277 | 134 | 0.601511 | XiaopingSun |
45b61dc8888f41712b33f9dbb88ee20ec65464dd | 3,174 | cpp | C++ | RM1_Ext/3DCData.cpp | SRAM/RacerMateOne | b20b6a5bb4ea9168252dc15622bafb037a11b0d7 | [
"MIT"
] | 2 | 2020-10-08T21:30:38.000Z | 2020-11-13T23:50:50.000Z | RM1_Ext/3DCData.cpp | SRAM/RacerMateOne | b20b6a5bb4ea9168252dc15622bafb037a11b0d7 | [
"MIT"
] | null | null | null | RM1_Ext/3DCData.cpp | SRAM/RacerMateOne | b20b6a5bb4ea9168252dc15622bafb037a11b0d7 | [
"MIT"
] | null | null | null |
#include "stdafx.h"
//#include <stdio.h>
//#include <crf.h>
//#include <windows.h>
//#include <time.h>
//#include <stdlib.h>
//#include "CCourse.h"
//#include <vector>
using namespace std;
struct SegmentData3DC
{
double Length;
double StartGrade;
double EndGrade;
double Wind;
double Rot;
double StartY;
doubl... | 20.61039 | 65 | 0.675488 | SRAM |
45b6295285df781545c08f304980377cfff86766 | 1,470 | cpp | C++ | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | 2 | 2018-08-19T04:08:00.000Z | 2018-08-19T04:08:44.000Z | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | KiteOpenGLDriverCore/manager/KiteDriverInputManager.cpp | awyhhwxz/KiteOpenGLDriver | cce0a67b93431d3958a485d0cc9420ecb6295d42 | [
"BSD-3-Clause"
] | null | null | null | #include "stdafx.h"
#include "KiteDriverInputManager.h"
namespace kite_driver
{
void KiteDriverInputManager::RegistryMouseMessageReceiver(std::shared_ptr<IMouseMessageReceiver> receiver)
{
_mouseMessageReceiver.push_back(receiver);
}
void KiteDriverInputManager::InvokeButtonDown(MouseButtonType button_type, cons... | 38.684211 | 158 | 0.785034 | awyhhwxz |
45b89169106cf3f68aeeb7eb3f8d04df6ef4e7f5 | 2,181 | cpp | C++ | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 1 | 2020-04-26T09:45:32.000Z | 2020-04-26T09:45:32.000Z | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 2 | 2019-11-12T16:09:31.000Z | 2020-09-09T18:52:43.000Z | test/test_02.cpp | shogun-toolbox/linger | 953628ef636b7f87f5cdcbc6dd7367a1476ebc39 | [
"BSD-3-Clause"
] | 3 | 2019-11-11T15:55:48.000Z | 2020-06-02T20:33:48.000Z | #include "linear_algebra.hpp"
#include "test_new_number.hpp"
#include "test_new_engine.hpp"
#include "test_new_arithmetic.hpp"
using cx_float = std::complex<float>;
using cx_double = std::complex<double>;
using cx_newnum = std::complex<NewNum>;
using namespace STD_LA;
void t101()
{
PRINT_FN_NAME(t101);
fs_m... | 21.174757 | 50 | 0.559835 | shogun-toolbox |
45befd2a865e8fc91ee02d5d53b44a2725c6c4e4 | 748 | cpp | C++ | src/policy/first_fit.cpp | DhruvaKashyap/Garbage-Collection-in-Cpp | 1b52c1b360e0959fea3923cd4c5aeb88f12c8405 | [
"MIT"
] | 1 | 2021-08-07T17:20:26.000Z | 2021-08-07T17:20:26.000Z | src/policy/first_fit.cpp | DhruvaKashyap/Garbage-Collection-in-Cpp | 1b52c1b360e0959fea3923cd4c5aeb88f12c8405 | [
"MIT"
] | 1 | 2021-05-11T19:32:02.000Z | 2021-05-12T08:29:04.000Z | src/policy/first_fit.cpp | DhruvaKashyap/Garbage-Collection-in-Cpp | 1b52c1b360e0959fea3923cd4c5aeb88f12c8405 | [
"MIT"
] | null | null | null | #include "policy/first_fit.h"
pair<Mem_manager::book *, size_t> first_fit::find_block(Mem_manager* m,const size_t req)
{
size_t chunk_size;
Mem_manager::book *pres = (Mem_manager::book *)(m->p); //points to the first Mem_manager::book
Mem_manager::book *target = pres;
while (pres != (Mem_manager::book ... | 39.368421 | 124 | 0.584225 | DhruvaKashyap |
45c1b6288ccde4ba47fe83d58fa7ff82b571c092 | 127 | cpp | C++ | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | 4 | 2020-06-02T22:29:11.000Z | 2021-03-01T18:38:18.000Z | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | null | null | null | src/engine/MeshRenderer.cpp | alextrevisan/3dfx-glide-game-engine | 9a47c65d3705fb7b43e59cf90432b053f467e844 | [
"MIT"
] | null | null | null | #include "MeshRenderer.h"
MeshRenderer::MeshRenderer()
:GameObject("MeshRenderer")
{
}
void MeshRenderer::Update()
{
}
| 9.769231 | 31 | 0.692913 | alextrevisan |
68f7b457e8f72374c61bf33f933ed81bd9e4e6aa | 646 | cc | C++ | src/search/cegar/cartesian_heuristic.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | src/search/cegar/cartesian_heuristic.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | src/search/cegar/cartesian_heuristic.cc | nitinkaveriappa/downward | 5c9a1b5111d667bb96f94da61ca2a45b1b70bb83 | [
"MIT"
] | null | null | null | #include "cartesian_heuristic.h"
#include "utils.h"
#include "../option_parser.h"
#include <cassert>
using namespace std;
namespace cegar {
CartesianHeuristic::CartesianHeuristic(
const Options &opts, RefinementHierarchy &&hierarchy)
: Heuristic(opts),
refinement_hierarchy(move(hierarchy)) {
}
void ... | 21.533333 | 76 | 0.719814 | nitinkaveriappa |
68fc1d644f353ea4abead2552f172650cf4ae0aa | 6,065 | cpp | C++ | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | src/matrix.cpp | BrettAM/Cs404DataMining | 64a68725e35b9ba14f604cb4e6934e979048a97f | [
"Apache-2.0"
] | null | null | null | #include "matrix.hpp"
Matrix::Matrix(size_t rows, size_t columns)
: rows(rows), cols(columns) {
data = new double[rows*cols];
}
Matrix::Matrix(size_t rows, size_t columns, double initialValue)
: rows(rows), cols(columns) {
data = new double[rows*cols];
fill(initialValue);
}
Matrix::Matrix(std::init... | 28.209302 | 75 | 0.527947 | BrettAM |
68fc6632277542f47616f8b902168962d2f5250e | 1,388 | cpp | C++ | tests/mr/device/binning_mr_tests.cpp | rongou/rmm | 846d638c938b515fafd4115215f245b8c1a000a5 | [
"Apache-2.0"
] | null | null | null | tests/mr/device/binning_mr_tests.cpp | rongou/rmm | 846d638c938b515fafd4115215f245b8c1a000a5 | [
"Apache-2.0"
] | null | null | null | tests/mr/device/binning_mr_tests.cpp | rongou/rmm | 846d638c938b515fafd4115215f245b8c1a000a5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | 29.531915 | 79 | 0.738473 | rongou |
68fdfaa44b7a9b7c8dfc623a561a506a0ef1357a | 163 | hpp | C++ | lib/declarative/src/decl/storage/bound_storage_traits.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | lib/declarative/src/decl/storage/bound_storage_traits.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | lib/declarative/src/decl/storage/bound_storage_traits.hpp | e-Sharp/pom_gen_proc | cef7a57620d52631c1e94f71c71e0455f9e1b653 | [
"MIT"
] | null | null | null | #pragma once
namespace decl {
namespace detail {
template<typename Tr>
concept bound_storage_traits = requires {
Tr::storage_traits;
Tr::bound_targets;
};
}}
| 12.538462 | 41 | 0.748466 | e-Sharp |
68fe984a3f8775aa1fdfdcf7ba643fba84a6bcab | 2,032 | cpp | C++ | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 5 | 2020-01-06T11:43:18.000Z | 2021-12-14T22:59:09.000Z | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | null | null | null | test/feasibility_test_files/test_standardize_viz_data.cpp | stevenjj/icra2020locomanipulation | 414085b68cc1b3b24f7b920b543bba9d95350c16 | [
"MIT"
] | 2 | 2020-09-03T16:08:34.000Z | 2022-02-17T11:13:49.000Z | #include <avatar_locomanipulation/helpers/yaml_data_saver.hpp>
#include <avatar_locomanipulation/helpers/param_handler.hpp>
#include <iostream>
#include <fstream>
int main(int argc, char ** argv){
// Define the strings for getting and printing values
std::string score_string;
std::string position_string;
// The... | 32.253968 | 78 | 0.736713 | stevenjj |
ec0106a4543ee9b46abe4c2f844a07ebdec9e626 | 1,113 | cpp | C++ | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 2 | 2017-01-15T07:08:39.000Z | 2020-02-23T07:48:37.000Z | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 47 | 2017-01-21T17:55:26.000Z | 2021-03-22T10:12:48.000Z | src/timeAttack.cpp | CIA-hideout/pongstar | e32eb46963790895cad069a40b35f0616626ac70 | [
"MIT"
] | 1 | 2018-04-09T13:09:50.000Z | 2018-04-09T13:09:50.000Z | #include "timeAttack.h"
TimeAttack::TimeAttack(Game* g, Audio* a, DataManager* dm, FontManager* fm, TextureManagerMap t) :
PongstarBase(g, a, dm, fm, t) {
sceneType = sceneNS::TIME_ATK;
sceneData.gameMode = sceneNS::GM_TIME_ATK;
}
TimeAttack::~TimeAttack() {}
void TimeAttack::update(float frameTime) {
PongstarBa... | 29.289474 | 105 | 0.739443 | CIA-hideout |
ec0118b79e04964c3b0d13e96f510fbd14431049 | 15,632 | hpp | C++ | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | null | null | null | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 18 | 2019-12-13T15:52:26.000Z | 2020-01-17T14:51:33.000Z | include/strf/detail/input_types/join.hpp | eyalroz/strf | 94cd5aef40530269da0727178017cb4a8992c5dc | [
"BSL-1.0"
] | 1 | 2021-12-23T05:53:22.000Z | 2021-12-23T05:53:22.000Z | #ifndef STRF_JOIN_HPP
#define STRF_JOIN_HPP
// 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)
#include <strf/detail/facets/encoding.hpp>
#include <strf/detail/printers_tuple.hpp>
#include <strf/detail/format_f... | 30.711198 | 109 | 0.623912 | eyalroz |
ec060adedc9e5af14bbc615d5339cd8564475584 | 131 | cpp | C++ | modules/cudev/src/stub.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 7,158 | 2016-07-04T22:19:27.000Z | 2022-03-31T07:54:32.000Z | modules/cudev/src/stub.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 2,184 | 2016-07-05T12:04:14.000Z | 2022-03-30T19:10:12.000Z | modules/cudev/src/stub.cpp | Nondzu/opencv_contrib | 0b0616a25d4239ee81fda965818b49b721620f56 | [
"BSD-3-Clause"
] | 5,535 | 2016-07-06T12:01:10.000Z | 2022-03-31T03:13:24.000Z | #include <opencv2/core/cvdef.h>
namespace cv { namespace cudev {
CV_EXPORTS void stubFunc();
}}
void cv::cudev::stubFunc()
{
}
| 10.916667 | 32 | 0.687023 | Nondzu |
ec09b732d5d6149a5850f5332da9cf7592bcbf72 | 3,553 | cpp | C++ | Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 3,227 | 2015-03-05T00:19:18.000Z | 2022-03-31T08:20:35.000Z | Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 5,574 | 2015-03-05T00:01:56.000Z | 2022-03-31T15:08:11.000Z | Convex_hull_2/test/Convex_hull_2/ch2_point_with_info.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 1,274 | 2015-03-05T00:01:12.000Z | 2022-03-31T14:47:56.000Z | #include <iostream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/convex_hull_2.h>
#include <CGAL/convex_hull_traits_2.h>
#include <CGAL/boost/iterator/counting_iterator.hpp>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
template <class F... | 26.714286 | 130 | 0.706445 | ffteja |
ec0bc2f4c77ab6f3feabe0e28166fcc5edc76ffe | 7,729 | cpp | C++ | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | tools/gentab/gentab_web.cpp | t-weber/libcrystal | 2611288014047fe60010ee1b963a9e686b6ea77a | [
"BSL-1.0"
] | null | null | null | /**
* Creates needed tables
* @author Tobias Weber <tobias.weber@tum.de>
* @date nov-2015
* @license GPLv2
*/
// ============================================================================
t_cplx get_number(std::string str)
{
tl::string_rm<std::string>(str, "(", ")");
if(tl::string_rm<std::string>(str, "<i... | 25.592715 | 105 | 0.608746 | t-weber |
ec0c68d1ab075a9cb5d6a36438cf4a55a0452b60 | 3,649 | cpp | C++ | dev/Gems/CryLegacy/Code/Source/CryAISystem/Mannequin/MannequinGoalOp.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Gems/CryLegacy/Code/Source/CryAISystem/Mannequin/MannequinGoalOp.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Gems/CryLegacy/Code/Source/CryAISystem/Mannequin/MannequinGoalOp.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 24.489933 | 166 | 0.682927 | jeikabu |
ec0cc7d81f0abeeb5d90d161bacf346797f7866a | 387 | hxx | C++ | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 39 | 2019-08-17T09:08:51.000Z | 2022-02-13T10:14:19.000Z | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | 63 | 2020-05-22T16:09:30.000Z | 2022-01-21T14:24:05.000Z | source/code/framework/framework_base/public/ice/game_sprites.hxx | iceshard-engine/engine | 4f2092af8d2d389ea72addc729d0c2c8d944c95c | [
"BSD-3-Clause-Clear"
] | null | null | null | #pragma once
#include <ice/stringid.hxx>
namespace ice
{
struct Sprite
{
static constexpr ice::StringID Identifier = "ice.component.sprite"_sid;
ice::StringID material;
};
struct SpriteTile
{
static constexpr ice::StringID Identifier = "ice.component.sprite-tile"_sid;
... | 17.590909 | 84 | 0.633075 | iceshard-engine |
ec1e70a04fc642a55ae24914db9b39fef010b14b | 2,248 | cpp | C++ | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 4 | 2018-08-31T09:44:52.000Z | 2021-03-01T19:10:00.000Z | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 21 | 2019-12-29T08:33:34.000Z | 2020-11-22T16:38:37.000Z | src/utils/hashUtils.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | null | null | null | #include "utils/hashUtils.h"
#include <iostream>
#include <utility>
#include "MurmurHash3.h"
#include "base/intSize.h"
#include "picosha2.h"
HashType::HashType(UInt64 value) : value(value) {}
HashType HashType::operator+(const HashType other) const {
return HashType(value + other.value);
}
HashType HashType::ope... | 26.761905 | 78 | 0.686833 | athanor |
ec1fb3070f4db57c566db41aafab782eb10dd4f9 | 4,948 | cpp | C++ | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/test/block.cpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 1 | 2021-01-28T13:10:41.000Z | 2021-01-28T13:10:41.000Z | // Copyright David Stone 2020.
// 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)
#include <tm/block.hpp>
#include <tm/move/moves.hpp>
#include <tm/pokemon/species.hpp>
#include <tm/stat/ev.hpp>
#include <tm/sta... | 25.244898 | 111 | 0.732215 | davidstone |
ec24003087657c9f3aecf09d0fbbe83ab60fad53 | 1,155 | hpp | C++ | XimaSSS/Win/OptionsHandler.hpp | Centril/XimaSSS | 80261052eba2e4b73bcfa2ad29f0087cd9dae9c8 | [
"Unlicense"
] | 1 | 2016-09-24T14:51:10.000Z | 2016-09-24T14:51:10.000Z | XimaSSS/Win/OptionsHandler.hpp | Centril/XimaSSS | 80261052eba2e4b73bcfa2ad29f0087cd9dae9c8 | [
"Unlicense"
] | null | null | null | XimaSSS/Win/OptionsHandler.hpp | Centril/XimaSSS | 80261052eba2e4b73bcfa2ad29f0087cd9dae9c8 | [
"Unlicense"
] | null | null | null | #ifndef _OPTIONSHANDLER_HPP // Inclution guard
#define _OPTIONSHANDLER_HPP
#ifdef WIN32
namespace Win
{
struct Options
{
string path, filenameFormat;
struct Image
{
string fileType, unit;
float width, height;
int resolution, quality;
bool resize;
Image(const bool &dummy = false);
} image;
... | 17.5 | 53 | 0.683117 | Centril |
ec240ead8e3fdbf648f62749d28edaf987854789 | 1,020 | cc | C++ | examples/master/packages/popc/test/vectorint1/popintvector.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | examples/master/packages/popc/test/vectorint1/popintvector.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | 1 | 2021-03-22T17:12:51.000Z | 2021-03-22T17:12:51.000Z | examples/master/packages/popc/test/vectorint1/popintvector.cc | GaretJax/pop-utils | 2cdfaf24c2f8678edfab1f430c07611d488247d5 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "popintvector.h"
POPintVector::POPintVector() {}
POPintVector::~POPintVector() {};
void POPintVector::SetInternalData(vector<int> d)
{
theData = d;
}
void POPintVector::ShowPOPintVector()
{
printf("VectorInt1: Vector is of size %d: ", theData.size());
for (long i=0; i<theData.size(); ... | 18.545455 | 64 | 0.645098 | GaretJax |
ec254026c4fed8d88ff0e1aa5250152369341426 | 2,653 | hpp | C++ | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/CommandType.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef __LIBEMBER_GLOW_COMMANDTYPE... | 27.635417 | 91 | 0.499435 | purefunsolutions |
ec25688944aeaa1f77c7dfe92e3e35517c030487 | 3,728 | hpp | C++ | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/collision/electron/src/MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file MonteCarlo_CoupledElasticAdjointElectroatomicReaction.hpp
//! \author Luke Kersting
//! \brief The coupled scattering elastic adjoint electroatomic reaction class decl.
//!
//------------------------------------------------... | 41.422222 | 149 | 0.680258 | bam241 |
ec26284f773d0477b543f37f49e8aad48866f1e1 | 4,727 | cpp | C++ | Summer_Training_2014/N/N_accordian.cpp | Zubieta/CPP | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 8 | 2017-03-02T07:56:45.000Z | 2021-08-07T20:20:19.000Z | Summer_Training_2014/N/N_accordian.cpp | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | null | null | null | Summer_Training_2014/N/N_accordian.cpp | zubie7a/Algorithms | fb4a3cbf2e4edcc590df15663cd28fb9ecab679c | [
"MIT"
] | 1 | 2021-08-07T20:20:20.000Z | 2021-08-07T20:20:20.000Z | /*Santiago Zubieta*/
#include <iostream>
#include <numeric>
#include <fstream>
#include <climits>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <queue>
#include <list>
#include <map>
#include <set>
#include <stack>
#include <deque>
#include <vector>
#include <string>
#include <cstdlib>
#include <casser... | 34.757353 | 79 | 0.461392 | Zubieta |
ec2a8c285241a13f5eef844047fb1e57b4ff992e | 2,777 | cpp | C++ | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | src/sources.cpp | jake-stewart/fcd | 333d1195cd225f07d90ac487eaaae792af28b5bb | [
"MIT"
] | null | null | null | #include "../include/sources.hpp"
#include "../include/util.hpp"
#include <fstream>
bool compareSources(Source& l, Source& r) {
return (l.getHeuristic() < r.getHeuristic());
}
bool compareSourcesAlpha(Source& l, Source& r) {
return (l.getName() > r.getName());
}
bool Sources::hasHeuristic() {
return m_h... | 23.141667 | 66 | 0.517465 | jake-stewart |
ec2d3aad781b11c012dd86e53a71902d93a544fa | 9,466 | cpp | C++ | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | 1 | 2022-03-23T23:50:58.000Z | 2022-03-23T23:50:58.000Z | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | null | null | null | src/d3d12/D3D12TLAccelerationStructure.cpp | amc522/DX12Scrap | d00aa6ae27a9a0594ce08739af564992f773d916 | [
"MIT"
] | null | null | null | #include "D3D12TLAccelerationStructure.h"
#include "SpanUtility.h"
#include "d3d12/D3D12Context.h"
#include <d3dx12.h>
#include <fmt/format.h>
namespace scrap::d3d12
{
TLAccelerationStructure::TLAccelerationStructure(const TLAccelerationStructureParams& params): mParams(params)
{
resizeInstanceDescsBuffer((uint3... | 39.940928 | 118 | 0.745933 | amc522 |
ec33efdf2740ea12d73fc3b379caa7e9e8e9037b | 21,411 | cpp | C++ | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | windows-development/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 8 | 2017-04-30T17:38:27.000Z | 2021-11-29T00:59:03.000Z | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | null | null | null | Samples/Win7Samples/multimedia/WMP/Wizards/services/templates/1033/Type1/GetInfo.cpp | TomeSq/Windows-classic-samples | 96f883e4c900948e39660ec14a200a5164a3c7b7 | [
"MIT"
] | 2 | 2020-08-11T13:21:49.000Z | 2021-09-01T10:41:51.000Z | #include "stdafx.h"
#include "[!output root].h"
////////////////////////////////////////////////////////////////////
// C[!output Safe_root]
// GetItemInfo method
// GetContentPartnerInfo method
// GetStreamingURL method
// GetCatalogURL method
// GetTemplate method
//
// Copyright (c) Micros... | 24.983664 | 116 | 0.570875 | windows-development |
ec341849a7e98609cf307c95d79d0d5b4ced21e4 | 4,904 | hpp | C++ | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCIntf/CQCIntfEd/CQCIntfEd_EditXlatsDlg_.hpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCIntfEd_EditXlatsDlg_.hpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 12/21/2015
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https:/... | 32.263158 | 85 | 0.385196 | MarkStega |
ec384b87b498a5ebbe84e053831d8c2e5ef35a3b | 151 | cpp | C++ | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | chapters/fact.cpp | Raymain1944/CPPLv1 | 96e5fd5347a336870fc868206ebfe44f88ce69eb | [
"Apache-2.0"
] | null | null | null | int fact(int number) {
int a = 1;
while (number > 1) {
a *= number--;
}
if (number == 0) {
a = 1;
}
return a;
} | 15.1 | 24 | 0.384106 | Raymain1944 |
ec3bdcc5af887ba086db9ae3c637e9fe3731d529 | 855 | cpp | C++ | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | src/gamedata/formations.cpp | Kor-Hal/SisterRay | 4e8482525a5d7f77dee186f438ddb16523a61e7e | [
"BSD-3-Clause"
] | null | null | null | #include "formations.h"
#include "../impl.h"
SISTERRAY_API FormationData srGetFormation(u16 modFormationID, const char* modName) {
auto name = std::string(modName) + std::to_string(modFormationID);
return gContext.formations.getElement(name);
}
SISTERRAY_API void srAddFormation(FormationData formationData, u... | 37.173913 | 113 | 0.790643 | Kor-Hal |
ec3d72ac8ed58260b84faa5f2b758dfe7a64986d | 8,429 | cpp | C++ | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/Controls/Deprecated/XTOutBarCtrlTheme.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTOutBarCtrlTheme.cpp: implementation of the CXTOutBarCtrlTheme class.
//
// This file is a part of the XTREME CONTROLS MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WIT... | 26.75873 | 130 | 0.723455 | 11Zero |
ec3e17bff6330d41841ad86e8219857421661671 | 3,565 | cpp | C++ | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | src/test/TestSystem.cpp | innatewonder/mythril | 9f656a58650ac7a8c195b3868232983809205b68 | [
"MIT"
] | null | null | null | #include "CommonPrecompiled.h"
#include "CoreUtils.h"
#include "TestSystem.h"
#include "TestComponent.h"
#include "TestMath.h"
#include "TestNetworking.h"
namespace Test
{
TestSystem::TestSystem()
{}
TestSystem::~TestSystem()
{}
TEST(ObjectTest, Make_Destroy_Object)
{
EXPECT_EQ(0, Core::gCore->NumOb... | 21.220238 | 72 | 0.608976 | innatewonder |
ec3f2a20348dcbeb9c1211e20b0ad13b5b0dd0c7 | 8,868 | cpp | C++ | lib/src/backend/cl/opengl.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | lib/src/backend/cl/opengl.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | lib/src/backend/cl/opengl.cpp | doymcc/stitchEm | 20693a55fa522d7a196b92635e7a82df9917c2e2 | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "libvideostitch/opengl.hpp"
#include "libvideostitch/input.hpp"
#include "libvideostitch/logging.hpp"
#include "gpu/buffer.hpp"
#include "gpu/stream.hpp"
#ifndef __APPLE__
#ifndef __ANDROID__
#define GLEW_STATIC
#include <GL/glew.h>
... | 30.791667 | 120 | 0.706811 | tlalexander |
ec40edc09bbd55395591c151fb7c2309c88c58c7 | 5,306 | hpp | C++ | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | 6 | 2018-11-05T22:20:28.000Z | 2020-12-28T22:22:55.000Z | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | include/util/types.hpp | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of HAXX
*
* Copyright (c) 2017 David Williams-Young
* All rights reserved.
*
* See LICENSE.txt
*/
#ifndef __INCLUDED_UTIL_TYPES_HPP__
#define __INCLUDED_UTIL_TYPES_HPP__
namespace HAXX {
struct null_t {}; // Null struct to handle various situations
template <typename T... | 23.170306 | 80 | 0.615718 | wavefunction91 |
ec417dfd50cfb5bc6a527592cdd9fc96d30579ed | 692 | cc | C++ | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | null | null | null | src/platform/platform.cc | AnthonyBrunasso/test_games | 31354d2bf95aae9a880e7292bc78ad8577b3f09c | [
"MIT"
] | 2 | 2019-11-12T23:15:18.000Z | 2020-01-15T17:49:27.000Z | #pragma once
#if _WIN32
// Windows #defines min/max. This stops it from doing so.
#define NOMINMAX
// Reduce header size.
#define WIN32_LEAN_AND_MEAN
// Disable unneeded warnings.
// Warns about using %lu to printf uint64_t
#pragma warning(disable : 4477)
#endif
#include "common/macro.h"
#include "type.cc"
#include ... | 19.222222 | 57 | 0.75 | AnthonyBrunasso |
ec4468c1fabf68759c724aba021479c2fd0c9ece | 1,041 | cpp | C++ | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 80 | 2017-04-05T19:55:31.000Z | 2022-02-08T18:28:48.000Z | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 2 | 2017-04-09T13:11:28.000Z | 2018-06-04T19:46:08.000Z | VFrame/V3DBatchModelGroup.cpp | gamepopper/Vigilante-Game-Framework | 72db889de7d41c331b484f7bb230f78096bde2c5 | [
"MIT"
] | 5 | 2017-04-05T19:55:38.000Z | 2020-11-08T08:13:15.000Z | #include "V3DBatchModelGroup.h"
#ifndef VFRAME_NO_3D
#include "V3DCamera.h"
#include "V3DShader.h"
V3DBatchModelGroup::V3DBatchModelGroup(V3DObject* BaseObject, unsigned int MaxSize) : VGroup(MaxSize)
{
baseObject = BaseObject;
}
void V3DBatchModelGroup::Destroy()
{
VSUPERCLASS::Destroy();
delete baseObject;
}
v... | 25.390244 | 151 | 0.731988 | gamepopper |
ec455dfdd733e47d4985e79535db9a0a0095f36f | 1,707 | hpp | C++ | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | src/xalanc/XercesParserLiaison/XercesDOMFormatterWalker.hpp | rherardi/xml-xalan-c-src_1_10_0 | 24e6653a617a244e4def60d67b57e70a192a5d4d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 1999-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
*
* Unless requir... | 21.884615 | 89 | 0.756883 | rherardi |
ec46dfb7dabbcf97338c2b2f2393f5512075868f | 114 | cpp | C++ | dll2/oplst.cpp | Industrepreneur/ValueStreamModeling_Math | d098b80d2c2dc3d03a97e1fecc450705f1089ec6 | [
"MIT"
] | 1 | 2020-05-16T15:17:53.000Z | 2020-05-16T15:17:53.000Z | dll2/oplst.cpp | Industrepreneur/ValueStreamModeling_Math | d098b80d2c2dc3d03a97e1fecc450705f1089ec6 | [
"MIT"
] | null | null | null | dll2/oplst.cpp | Industrepreneur/ValueStreamModeling_Math | d098b80d2c2dc3d03a97e1fecc450705f1089ec6 | [
"MIT"
] | null | null | null | #include "StdAfx.h"
#include "oplst.h"
class_oplst::class_oplst(void)
{
}
class_oplst::~class_oplst(void)
{
}
| 8.769231 | 31 | 0.692982 | Industrepreneur |
ec478fa570148f703e1691c582a3aa25fceb2127 | 482 | cpp | C++ | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | src/arg/detail/Token.cpp | jaredmpayne/arg | 2f6fd891f9ca2cd8d970df358909334545870b66 | [
"Apache-2.0"
] | null | null | null | #include "arg/detail/Token.hpp"
#include <string>
arg::detail::Token::Token(const std::string &value, LexType lex_type) :
_value(value), _lex_type(lex_type) { }
bool arg::detail::Token::operator==(const Token &other) const {
return this->lex_type() == other.lex_type() && this->value() == other.value();
}
const ... | 25.368421 | 82 | 0.678423 | jaredmpayne |
ec48a48536d13444b8d8162433196e1f181bc19a | 200 | cpp | C++ | MIT_CPP_2009/Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP-1 | ec63b2fa9a65c1fcc29cc68fc66fe60c21add4c9 | [
"MIT"
] | 2 | 2021-09-20T09:40:13.000Z | 2021-09-20T09:40:35.000Z | Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP | 6c9fa29be431f161472262e464d1377242013a0d | [
"MIT"
] | null | null | null | Classes/IntroClasses/Vehicle.cpp | AlexandrPirogov/MIT_CPP | 6c9fa29be431f161472262e464d1377242013a0d | [
"MIT"
] | 1 | 2021-09-09T14:51:34.000Z | 2021-09-09T14:51:34.000Z | #include "Vehicle.h"
void Vehicle::getModel(){
std::cout << "This is model " << this->model << std::endl;
};
void Vehicle::getInfo(){
std::cout << "This is Parent Vehicle " << std::endl;
}
| 15.384615 | 61 | 0.595 | AlexandrPirogov |
ec496d87b1c126fcd4a5015cd73e6f32fd729fd7 | 20,906 | cpp | C++ | old-prototypes/src/PrototypeFramework.cpp | davedissian/gl-graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | 1 | 2016-06-04T01:15:15.000Z | 2016-06-04T01:15:15.000Z | old-prototypes/src/PrototypeFramework.cpp | davedissian/graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | null | null | null | old-prototypes/src/PrototypeFramework.cpp | davedissian/graphics-prototypes | c68e84faf0a3129edfde95eaca73634f36cdf790 | [
"MIT"
] | null | null | null | /*
Prototype Framework
Copyright (c) 2013-2014 David Avedissian (avedissian.david@gmail.com)
Author: David Avedissian
*/
#include "PrototypeFramework.h"
Ogre::MaterialPtr cloneMaterial(const string& originalName, const string& newName)
{
return Ogre::MaterialManager::getSingleton().getByName(originalName)->c... | 32.974763 | 100 | 0.58543 | davedissian |
ec4b1f7a1f99fa016ae51bfb3a92b8b53d2a3d5c | 2,754 | cpp | C++ | antlisp/lib/varname/namespace.cpp | akindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | 2 | 2018-03-22T19:42:17.000Z | 2018-03-29T04:07:33.000Z | antlisp/lib/varname/namespace.cpp | AKindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | null | null | null | antlisp/lib/varname/namespace.cpp | AKindyakov/antlisp | 6a772dbdc728a031b1f8b25f9c7a6f7a168d0177 | [
"MIT"
] | null | null | null | #include "namespace.h"
namespace AntLisp {
template<>
std::string CellType<NamespacePtr>::toString() const {
return value_->toString();
}
template<>
ICellType::Ptr CellType<NamespacePtr>::copy() const {
return std::make_unique<CellType<NamespacePtr>>(
std::make_shared<Namespace>(value_->copy())
)... | 23.142857 | 61 | 0.585694 | akindyakov |
ec506e987277ffa6611ff56e2ba3184eb485480f | 1,278 | hpp | C++ | inc/OutputSignalNode.hpp | AGlass0fMilk/etias | 5da37c363444e5071005b7bc11892414217fa66d | [
"Apache-2.0"
] | null | null | null | inc/OutputSignalNode.hpp | AGlass0fMilk/etias | 5da37c363444e5071005b7bc11892414217fa66d | [
"Apache-2.0"
] | null | null | null | inc/OutputSignalNode.hpp | AGlass0fMilk/etias | 5da37c363444e5071005b7bc11892414217fa66d | [
"Apache-2.0"
] | null | null | null | /*
* OutputSignalNode.h
*
* Created on: Mar 12, 2020
* Author: gdbeckstein
*/
#ifndef ETIAS_OUTPUTSIGNALNODE_HPP_
#define ETIAS_OUTPUTSIGNALNODE_HPP_
#include "SignalNode.hpp"
#include "InputSignalNode.hpp"
#include "extensions/CallChain.h"
namespace etias
{
template<typename T, int SampleRate = SAMP... | 22.821429 | 103 | 0.618153 | AGlass0fMilk |
ec5339b8dcb83ec1b7314dcfab4522e89693a4d7 | 3,222 | hh | C++ | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | dune/gdt/operators/fv/datahandle.hh | tobiasleibner/dune-gdt | 5d3dc6c7f5fd66db78ebb294d7ee4803f8e0bf5b | [
"BSD-2-Clause"
] | null | null | null | #ifndef DUNE_GDT_OPERATORS_FV_DATAHANDLE_HH
#define DUNE_GDT_OPERATORS_FV_DATAHANDLE_HH
#include <dune/grid/common/datahandleif.hh>
namespace Dune {
namespace GDT {
template <class ReconstructedValuesType, class GridLayerType>
class ReconstructionDataHandle
: public Dune::CommDataHandleIF<ReconstructionDataHand... | 32.545455 | 117 | 0.721912 | tobiasleibner |
ec54dc91c9f18fca936fd43fbac78dd4fd4b69de | 2,317 | cpp | C++ | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/real_library_task_executer.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/real_library_task_executer.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/scratch/old_repos/Jstd/Jstd/project/src/jstd-tool/jstd-tool/real_library_task_executer.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #include "real_library_task_executer.hpp"
#include "exporter.hpp"
#include "builder.hpp"
#include "documenter.hpp"
#include "utilities.hpp"
void Real_Library_Task_Executer::Excute_Needed_Tasks(Program_Options const& program_options, std::time_t const& last_run_time) {
//+---------------------------------------------... | 56.512195 | 128 | 0.601208 | luxe |
ec554190cc4c3519693b94ec51c89fed8d3195d8 | 499 | hpp | C++ | include/decrypt.hpp | virtualsecureplatform/BFVpp | b551b935edc214dabd4827c6a64c6686eabe7d51 | [
"MIT"
] | null | null | null | include/decrypt.hpp | virtualsecureplatform/BFVpp | b551b935edc214dabd4827c6a64c6686eabe7d51 | [
"MIT"
] | null | null | null | include/decrypt.hpp | virtualsecureplatform/BFVpp | b551b935edc214dabd4827c6a64c6686eabe7d51 | [
"MIT"
] | null | null | null | #pragma once
#include "mulfft.hpp"
#include "types.hpp"
namespace BFVpp {
template <class P>
inline Polynomial<P> decrypt(const Ctxt<P> &c, const lweKey<P> &key)
{
Polynomial<P> mulres, p;
PolyMul<P>(mulres, c[0], key);
Polynomial<P> phase = c[1];
for (int i = 0; i < P::n; i++) phase[i] -= mulres[i];
... | 24.95 | 72 | 0.571142 | virtualsecureplatform |
ec6539e12caf317522e6677366ccf003bd175302 | 768 | hpp | C++ | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | 1 | 2019-12-10T03:51:34.000Z | 2019-12-10T03:51:34.000Z | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null | src/config/interfaces.hpp | project-trident/pc-firewall | ef08c96faff5bdb4b1d3c2341f35a65587512fba | [
"BSD-2-Clause"
] | null | null | null |
#ifndef __INTERFACES_H
#define __INTERFACES_H
#include <qstring.h>
#include <qprocess.h>
#include <vector>
class interfaces : public QObject
{
Q_OBJECT
private:
static interfaces *_instance;
std::vector<QString> _ifs;
interfaces ( void );
~interfaces ( void );
void load ( vo... | 16 | 57 | 0.588542 | project-trident |
ec65f96a807e4f705c56c1db8759f81c48a723ea | 2,107 | cpp | C++ | src/third_party/mozjs/platform/x86_64/windows/build/jit/Unified_cpp_js_src_jit0.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/platform/x86_64/windows/build/jit/Unified_cpp_js_src_jit0.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/platform/x86_64/windows/build/jit/Unified_cpp_js_src_jit0.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | #define MOZ_UNIFIED_BUILD
#include "jit/AliasAnalysis.cpp"
#ifdef PL_ARENA_CONST_ALIGN_MASK
#error "jit/AliasAnalysis.cpp uses PL_ARENA_CONST_ALIGN_MASK, so it cannot be built in unified mode."
#undef PL_ARENA_CONST_ALIGN_MASK
#endif
#ifdef INITGUID
#error "jit/AliasAnalysis.cpp defines INITGUID, so it cannot be built ... | 38.309091 | 111 | 0.825344 | benety |
ec6623be162a0cb7eb42868bfb90c0a02b0aaa30 | 3,734 | cpp | C++ | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | TaoYibo1866/webots_ros2 | a72c164825663cebbfd27e0649ea51d3abf9bbed | [
"Apache-2.0"
] | 176 | 2019-09-06T07:02:05.000Z | 2022-03-27T12:41:10.000Z | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | harshag37/webots_ros2 | 08a061e73e3b88d57cc27b662be0f907d8b9f15b | [
"Apache-2.0"
] | 308 | 2019-08-20T12:56:23.000Z | 2022-03-29T09:49:22.000Z | webots_ros2_driver/src/plugins/static/Ros2RangeFinder.cpp | harshag37/webots_ros2 | 08a061e73e3b88d57cc27b662be0f907d8b9f15b | [
"Apache-2.0"
] | 67 | 2019-11-03T00:58:09.000Z | 2022-03-18T07:11:28.000Z | // Copyright 1996-2021 Cyberbotics 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 agr... | 35.903846 | 125 | 0.695233 | TaoYibo1866 |
ec6637767355450fbd22575fca82b14fbff35b7d | 16,830 | cpp | C++ | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | FELICITY/Static_Codes/AHF/Unit_Test_src/test_2d_manifold_mesh_1.cpp | brianchowlab/BcLOV4-FEM | f54bd8efa0e0f2c7ca2de4a6688ef1a403376285 | [
"MIT"
] | null | null | null | /*
============================================================================================
This is a unit test for the AHF data structure implementation.
This example stores a 2-D manifold mesh (consisting of 4 triangles) that has
0 non-manifold edges and 0 non-manifold vertices. It also does some basic... | 36.907895 | 142 | 0.563755 | brianchowlab |
ec6648f334fd04b8a9546bc823dd96c82f67ef6f | 124 | cpp | C++ | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 5 | 2021-04-18T15:49:10.000Z | 2021-09-15T10:23:44.000Z | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 1 | 2021-12-27T12:11:53.000Z | 2021-12-27T12:11:53.000Z | src/VulkanLoader.cpp | FelixFifi/rtx-pathtracer | 9bf5616c47880e8fa536a822b39b9661bb666352 | [
"Zlib",
"Apache-2.0",
"MIT"
] | 2 | 2021-06-18T12:27:36.000Z | 2021-12-26T22:06:44.000Z | //
// Created by felixfifi on 05.05.20.
//
#include "VulkanLoader.h"
VULKAN_HPP_DEFAULT_DISPATCH_LOADER_DYNAMIC_STORAGE;
| 13.777778 | 51 | 0.774194 | FelixFifi |
ec67aa70484f75b084e1f9a23c434b793d5de932 | 1,824 | cc | C++ | src/stirling/source_connectors/socket_tracer/protocols/http2/testing/cc_grpc_service/client.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 1,821 | 2020-04-08T00:45:27.000Z | 2021-09-01T14:56:25.000Z | src/stirling/source_connectors/socket_tracer/protocols/http2/testing/cc_grpc_service/client.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 142 | 2020-04-09T06:23:46.000Z | 2021-08-24T06:02:12.000Z | src/stirling/source_connectors/socket_tracer/protocols/http2/testing/cc_grpc_service/client.cc | hangqiu/pixie | 1dd4af47d40ff856c4d52a1d6de81f78a76ff31e | [
"Apache-2.0"
] | 105 | 2021-09-08T10:26:50.000Z | 2022-03-29T09:13:36.000Z | /*
* Copyright 2018- The Pixie Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or ag... | 39.652174 | 101 | 0.743969 | hangqiu |
ec68903e3137a902726a37dfffaec14a2b6e0217 | 5,086 | cpp | C++ | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | TetrisEngine/srcLib/block.cpp | mwthinker/MWetris | 8d7d75cade1eb44567e182b569ebf5af16b522d7 | [
"MIT"
] | null | null | null | #include "block.h"
#include <algorithm>
namespace tetris {
Block::Block(BlockType blockType, int startColumn, int lowestStartRow, int currentRotation)
: Block{blockType, startColumn, lowestStartRow} {
for (int i = 0; i < currentRotation; ++i) {
rotateLeft();
}
}
Block::Block(BlockType blockType, int st... | 30.824242 | 92 | 0.673024 | mwthinker |
ec6a25261804308c2c3e4ecefbc27d0b5f4b267d | 9,199 | cpp | C++ | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | Actor/Characters/Enemy/E3/EnemyE3.cpp | Bornsoul/Revenger_JoyContinue | 599716970ca87a493bf3a959b36de0b330b318f1 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "EnemyE3.h"
#include "Libraries/Components/AnimationMng/Cpt_AnimationMng.h"
#include "Kismet/KismetMathLibrary.h"
#include "Actor/Characters/Player/GBox/GBox.h"
#include "Libraries/Components/MaterialEffect/Cpt_MaterialEffect.h"
#... | 28.304615 | 171 | 0.749973 | Bornsoul |
ec6e4e40031e1437214852c84e863c90c0673b18 | 400 | cpp | C++ | platforms/gfg/0019_check_large_number_divisible_3_not.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0019_check_large_number_divisible_3_not.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0019_check_large_number_divisible_3_not.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
bool CheckIfDivisibleBy3(const string& s) {
ll sum = 0;
for (char ch : s) {
sum += ch - '0';
}
return sum % 3 == 0;
}
int main() { TimeMeasure _;
cout << CheckIfDivisibleBy3("769452") << endl; // 1
cout << CheckIfDivisibleBy3("123456758933312") << endl; //... | 25 | 74 | 0.5875 | idfumg |
ec6f807128402d115813e7a7e225e2335c8f67a4 | 6,056 | cpp | C++ | src/3rdparty/sheets/ui/CellEditorWidget.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/ui/CellEditorWidget.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | src/3rdparty/sheets/ui/CellEditorWidget.cpp | afarcat/QtSheetView | 6d5ef3418238e9402c5a263a6f499557cc7215bf | [
"Apache-2.0"
] | null | null | null | /* This file is part of the KDE project
Copyright 2011 Marijn Kruisselbrink <mkruisselbrink@kde.org>
Copyright (C) 2018 afarcat <kabak@sina.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Sof... | 33.458564 | 97 | 0.669419 | afarcat |