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 float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1c6e0f7afc9d0a35fffd5410e137c10c3a38b07e | 9,863 | cpp | C++ | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 7 | 2021-05-11T04:28:28.000Z | 2022-03-29T00:39:39.000Z | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 1 | 2022-02-10T03:38:58.000Z | 2022-02-10T03:38:58.000Z | src/opencv_ingestor.cpp | open-edge-insights/video-ingestion | 189f50c73df6a2879de278f1232f14f291c8e6cf | [
"MIT"
] | 6 | 2021-09-19T17:48:37.000Z | 2022-03-22T04:22:48.000Z | // Copyright (c) 2019 Intel Corporation.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, pub... | 33.433898 | 172 | 0.590794 |
cc5ef918995bb2503c2ab1edca88ecdb0e110f70 | 22,520 | cpp | C++ | ing10_DAC/src/dac.cpp | Ging-H/DAC | f97efd32e6e8601990bd1af815a0bd82be99beb7 | [
"MIT"
] | null | null | null | ing10_DAC/src/dac.cpp | Ging-H/DAC | f97efd32e6e8601990bd1af815a0bd82be99beb7 | [
"MIT"
] | null | null | null | ing10_DAC/src/dac.cpp | Ging-H/DAC | f97efd32e6e8601990bd1af815a0bd82be99beb7 | [
"MIT"
] | null | null | null | #include "dac.h"
#include "ui_dac.h"
#include <QStyleFactory>
#include <QDesktopServices>
#include <QUrl>
#include "protocoldialog.h"
/* DAC——WinForm */
DAC::DAC(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::DAC)
{
ui->setupUi(this);
currentPort = new BaseSerialComm();
this->init... | 33.215339 | 141 | 0.575044 |
cc6033dfeeb05bcadef587cf2cd59cd5542fc7f6 | 117,939 | cpp | C++ | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 1 | 2022-01-31T06:24:24.000Z | 2022-01-31T06:24:24.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-04-11T15:50:42.000Z | 2021-06-05T08:23:04.000Z | Visual Mercutio/zModelBP/PSS_ProcedureSymbolBP.cpp | Jeanmilost/Visual-Mercutio | f079730005b6ce93d5e184bb7c0893ccced3e3ab | [
"MIT"
] | 2 | 2021-01-08T00:55:18.000Z | 2022-01-31T06:24:18.000Z | /****************************************************************************
* ==> PSS_ProcedureSymbolBP -----------------------------------------------*
****************************************************************************
* Description : Provides a procedure symbol for banking process *
* Devel... | 40.514943 | 158 | 0.526679 |
cc6570a655cda878517b2a27b4e4526d8a979028 | 3,614 | cc | C++ | o3d/compiler/puritan/main.cc | rwatson/chromium-capsicum | b03da8e897f897c6ad2cda03ceda217b760fd528 | [
"BSD-3-Clause"
] | 11 | 2015-03-20T04:08:08.000Z | 2021-11-15T15:51:36.000Z | o3d/compiler/puritan/main.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | null | null | null | o3d/compiler/puritan/main.cc | changbai1980/chromium | c4625eefca763df86471d798ee5a4a054b4716ae | [
"BSD-3-Clause"
] | 1 | 2020-04-13T05:45:10.000Z | 2020-04-13T05:45:10.000Z | /*
* Copyright 2009, Google Inc.
* 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 conditio... | 27.8 | 77 | 0.666574 |
cc678fb574dfe265aadd588c689b0d1efdba0f13 | 231 | hpp | C++ | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/Graveyard/rendering/RenderBuffer.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include "Layer.hpp"
#include "Camera.hpp"
struct RenderBuffer {
std::vector<std::unique_ptr<RenderScript>> scriptDestructQueue;
bool resetTextureCache{ false };
Camera camera;
std::vector<RenderLayer> layers;
}; | 21 | 64 | 0.761905 |
cc68b57f65e3eda864d9e3ad0d92c028d9c624f7 | 1,900 | cpp | C++ | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Frameworks/Droid/Base/Core/src/elastos/droid/media/CMediaFileType.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 22.352941 | 75 | 0.645263 |
cc7097e3531cba3b13fb012eca8cbc5cc6a126fa | 708 | cpp | C++ | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/700-799/791C-BearAndDifferentNames.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <iostream>
#include <vector>
int main(){
const int L = 26;
const int N = 100;
std::ios_base::sync_with_stdio(false);
std::vector<std::string> a(N);
for(long p = 0; p < N; p++){a[p] = ('A' + (p / L)); a[p] += ('a' + (p % L));}
int n, k; std::cin >> n >> k;
std::vector<bool> eff(n ... | 29.5 | 93 | 0.457627 |
cc731400e0ed1b202dead5e6b892b09477c244ca | 2,843 | hpp | C++ | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | 7 | 2018-08-27T20:31:21.000Z | 2021-11-22T05:57:18.000Z | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | behavior_system/IBehavior.hpp | draghan/behavior_tree | e890c29f009e11e8120a861aa5515797a52d656a | [
"MIT"
] | null | null | null | /*
This file is distributed under MIT License.
Copyright (c) 2018 draghan
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... | 26.820755 | 82 | 0.719311 |
cc733829dd43fe861230df5866fe3587e4342e0a | 1,670 | hh | C++ | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | null | null | null | src/cpu/vpred/fcmvp.hh | surya00060/ece-565-course-project | cb96f9be0aa21b6e1a5e10fa62bbb119f3c3a1cd | [
"BSD-3-Clause"
] | 1 | 2020-12-15T20:53:56.000Z | 2020-12-15T20:53:56.000Z | #ifndef __CPU_VPRED_LVP_PRED_HH__
#define __CPU_VPRED_LVP_PRED_HH__
#include "cpu/vpred/vpred_unit.hh"
#include <vector>
#include "base/statistics.hh"
#include "base/sat_counter.hh"
#include "base/types.hh"
#include "cpu/inst_seq.hh"
#include "cpu/static_inst.hh"
#include "params/FCMVP.hh"
#include "sim/sim_object.hh... | 25.30303 | 102 | 0.601796 |
cc73743ace3ec7c1299f05c623eb9e78e65b18a8 | 2,732 | hpp | C++ | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | null | null | null | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | 1 | 2016-10-25T02:09:00.000Z | 2016-11-10T02:07:59.000Z | test/estest/graphics/LibPngDecoderTest.hpp | eaglesakura/protoground | 2cd7eaf93eaab9a34619b7ded91d3a2b89e9d5d6 | [
"MIT"
] | null | null | null | #pragma once
#include "estest/protoground-test.hpp"
#include "es/graphics/image/png/PngFileDecoder.h"
#include "es/graphics/image/IImageDecodeCallback.hpp"
namespace es {
namespace test {
namespace internal {
std::shared_ptr<IImageDecodeCallback> newSimpleImageListener() {
class PngImageListener ... | 27.877551 | 124 | 0.61896 |
cc7424858b6c72272f73481c941b9e55475c869c | 1,032 | cpp | C++ | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | uva/507.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main(){
//freopen("input.txt", "r", stdin);
//freopen("output.txt", "w", stdout);
int t, co = 0, len, a;
for(scanf("%d", &t); t--; ){
scanf("%d", &len);
for(int i = 0; i < len - 1; scanf("%d", &a), v.push_back(a), i++);
int g = v[0], m... | 29.485714 | 109 | 0.471899 |
cc789143c50ca56072bd50c685f65f77ede4ed74 | 413 | cpp | C++ | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | Projects/AnalizadorLexico/AnalizadorLexico/Est.cpp | JoaquinRMtz/Escuela | bdd0e902c1a836880c018845b7cac2cccbaa1bed | [
"MIT"
] | null | null | null | #include "Est.h"
Est::Est(Id^ i, Expr^ x)
{
id = i; expr = x;
if (comprobar(id->tipo, expr->tipo) == nullptr) error("Error de tipo");
}
Tipo^ Est::comprobar(Tipo^ p1, Tipo^ p2){
if (Tipo::numerico(p1) && Tipo::numerico(p2))return p2;
else if (p1 == Tipo::Bool && p2 == Tipo::Bool) return p2;
else return nullptr;... | 22.944444 | 72 | 0.598063 |
cc79f3ef2c2041b41a4897dd9196dab1851b8bfb | 6,268 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/rev/mat/functor/ode_system.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#define STAN_MATH_REV_MAT_FUNCTOR_ODE_SYSTEM_HPP
#include <stan/math/rev/core.hpp>
#include <stan/math/prim/arr/fun/value_of.hpp>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
namespace stan {
namespace math {
/**
* Internal rep... | 38.219512 | 77 | 0.565571 |
cc7fbe6860a7b75ff0ae6877e7a2427095c20a03 | 3,570 | hpp | C++ | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | 2 | 2015-03-17T01:32:10.000Z | 2015-03-19T18:58:28.000Z | Source/GameComponents/PhysicsObject.hpp | storm20200/WaterEngine | 537910bc03e6d4016c9b22cf616d25afe40f77af | [
"MIT"
] | null | null | null | #if !defined WATER_PHYSICS_OBJECT_INCLUDED
#define WATER_PHYSICS_OBJECT_INCLUDED
// Engine headers.
#include <GameComponents/Collider.hpp>
#include <GameComponents/GameObject.hpp>
// Engine namespace.
namespace water
{
/// <summary>
/// An abstract class for physics objects. Any object which the physics sys... | 41.511628 | 142 | 0.557983 |
cc82da22e8b2c843ea0f15028e5f447aa29db572 | 49,995 | cpp | C++ | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | 1 | 2021-04-13T04:49:58.000Z | 2021-04-13T04:49:58.000Z | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null | unalz-0.65/UnAlz.cpp | kippler/unalz | 457884d21962caa12085bfb6ec5bd12f3eb93c00 | [
"Zlib"
] | null | null | null |
#ifdef _WIN32
# include "zlib/zlib.h"
# include "bzip2/bzlib.h"
#else
# include <zlib.h>
# include <bzlib.h>
#endif
#include "UnAlz.h"
#ifdef _WIN32
# pragma warning( disable : 4996 ) // crt secure warning
#endif
// utime 함수 처리
#if defined(_WIN32) || defined(__CYGWIN__)
# include <time.h>
# include <sys/utime.h>... | 25.288316 | 328 | 0.566417 |
cc845d41a4cda951e0c2a35a8a448fb72c79ac7d | 2,767 | cpp | C++ | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 275 | 2015-04-06T19:49:18.000Z | 2022-03-19T06:23:47.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 20 | 2015-09-02T04:41:15.000Z | 2021-02-24T17:48:51.000Z | popcnt-harley-seal.cpp | kimwalisch/sse-popcount | 8f7441afb60847088aac9566d711969c48a03387 | [
"BSD-2-Clause"
] | 57 | 2015-06-01T01:08:02.000Z | 2022-01-02T12:49:43.000Z | namespace {
/// This uses fewer arithmetic operations than any other known
/// implementation on machines with fast multiplication.
/// It uses 12 arithmetic operations, one of which is a multiply.
/// http://en.wikipedia.org/wiki/Hamming_weight#Efficient_implementation
///
uint64_t popcount_mul(uint64_t x)
{
const ... | 31.089888 | 78 | 0.64185 |
cc8f25f095ffc1960712df69e506be135c3cfb4c | 10,244 | cpp | C++ | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | Libs/Visualization/VTK/Widgets/ctkVTKSurfaceMaterialPropertyWidget.cpp | ebrahimebrahim/CTK | c506a0227777b55fc06dd22d74a11c5a9d4247b1 | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.ap... | 36.455516 | 131 | 0.625439 |
cc92133cf6216aed3081d7ee820e775f80d84589 | 814 | cpp | C++ | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 54 | 2019-05-13T12:13:09.000Z | 2022-02-27T02:59:00.000Z | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 2 | 2020-10-02T07:16:43.000Z | 2020-10-19T04:36:19.000Z | HackerRank/Algorithms/Easy/E0088.cpp | Mohammed-Shoaib/HackerRank-Problems | ccfb9fc2f0d8dff454439d75ce519cf83bad7c3b | [
"MIT"
] | 20 | 2020-05-26T09:48:13.000Z | 2022-03-18T15:18:27.000Z | /*
Problem Statement: https://www.hackerrank.com/challenges/acm-icpc-team/problem
*/
#include <iostream>
#include <string>
#include <vector>
#include <bitset>
#define M 500
using namespace std;
vector<int> acmTeam(vector<string> topic) {
int known;
vector<int> ans(2);
for (int i = 0; i < topic.size() - 1; i++) {
... | 18.930233 | 78 | 0.558968 |
cc92e631f99cd32b1e9c3eee1a2ee8e50332cb88 | 1,867 | cpp | C++ | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | Controller/FileController.cpp | SAarronB/Vector | 225342800beff75e19513bbb6d68a0dcd3eab1e2 | [
"MIT"
] | null | null | null | //
// FileController.cpp
// Vector
//
// Created by Bonilla, Sean on 2/5/19.
// Copyright © 2019 CTEC. All rights reserved.
//
#include "FileController.hpp"
using namespace std;
vector<CrimeData> FileController :: readCrimeDataToVector(string filename){
vector<CrimeData> crimes;
string currentCSVLine;
... | 28.723077 | 112 | 0.561864 |
cc9408e406624a2b5f1b2851338c337524978330 | 827 | cpp | C++ | nfcd/src/main/jni/src/hook/IHook.cpp | malexmave/nfcgate | 8f9c8330d5507aedbb61803538b4d01a93fc7169 | [
"Apache-2.0"
] | 569 | 2015-08-14T14:27:45.000Z | 2022-03-31T17:07:39.000Z | nfcd/src/main/jni/src/hook/IHook.cpp | malexmave/nfcgate | 8f9c8330d5507aedbb61803538b4d01a93fc7169 | [
"Apache-2.0"
] | 45 | 2015-06-01T09:59:22.000Z | 2022-03-24T06:28:40.000Z | nfcd/src/main/jni/src/hook/IHook.cpp | malexmave/nfcgate | 8f9c8330d5507aedbb61803538b4d01a93fc7169 | [
"Apache-2.0"
] | 89 | 2016-03-20T01:33:19.000Z | 2022-03-17T16:53:38.000Z | extern "C" {
#include <xhook.h>
}
#include <nfcd/hook/IHook.h>
#include <nfcd/hook/impl/XHook.h>
#include <nfcd/hook/impl/ADBIHook.h>
#include <nfcd/helper/System.h>
/* static */ bool IHook::useXHook = false;
void IHook::init() {
// Pie = 28
IHook::useXHook = System::sdkInt() >= System::P;
}
IHook *IHook::h... | 25.84375 | 76 | 0.645707 |
cc94c1ed84af0a8037617af724c7a2a7fa0f4d9d | 728 | hpp | C++ | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 7 | 2021-03-05T16:50:19.000Z | 2022-02-02T04:30:07.000Z | source/tm/evaluate/move_scores.hpp | davidstone/technical-machine | fea3306e58cd026846b8f6c71d51ffe7bab05034 | [
"BSL-1.0"
] | 47 | 2021-02-01T18:54:23.000Z | 2022-03-06T19:06:16.000Z | source/tm/evaluate/move_scores.hpp | 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)
#pragma once
#include <tm/move/max_moves_per_pokemon.hpp>
#include <containers/static_vector.hpp>
#include <tm/generation.hpp>
n... | 25.103448 | 86 | 0.774725 |
cc99ab560d85ebc58e9b118b30a650a1cbbb73fe | 18,447 | cc | C++ | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 11 | 2017-10-28T08:41:08.000Z | 2021-06-24T07:24:21.000Z | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | null | null | null | project4/mariadb/server/storage/tokudb/PerconaFT/src/tests/recovery_fileops_unit.cc | jiunbae/ITE4065 | 3b9fcf9317e93ca7c829f1438b85f0f5ea2885db | [
"MIT"
] | 4 | 2017-09-07T09:33:26.000Z | 2021-02-19T07:45:08.000Z | /* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... | 28.249617 | 127 | 0.587521 |
cc9b313ca44aac7dbcd9df1dcb229f9587977680 | 10,473 | cc | C++ | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | hwy/tests/float_test.cc | clayne/highway | af2cd99390a5bdfeb3fe7b2acc59acbe413943e9 | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
// SPDX-License-Identifier: Apache-2.0
//
// 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 requ... | 29.752841 | 85 | 0.634107 |
cca07433d59940f7b8172a0a5d80ae06fa005e53 | 22 | cpp | C++ | src/DlibDotNet.Native.Dnn/dlib/dnn/loss/loss_mmod.cpp | valerysntx/DlibDotNet | 00f8f71834fd4239f2d5c9bc072aa02efaa1a39f | [
"MIT"
] | 1 | 2019-05-07T07:02:17.000Z | 2019-05-07T07:02:17.000Z | src/DlibDotNet.Native.Dnn/dlib/dnn/loss/loss_mmod.cpp | valerysntx/DlibDotNet | 00f8f71834fd4239f2d5c9bc072aa02efaa1a39f | [
"MIT"
] | null | null | null | src/DlibDotNet.Native.Dnn/dlib/dnn/loss/loss_mmod.cpp | valerysntx/DlibDotNet | 00f8f71834fd4239f2d5c9bc072aa02efaa1a39f | [
"MIT"
] | 1 | 2019-04-24T02:15:03.000Z | 2019-04-24T02:15:03.000Z | #include "loss_mmod.h" | 22 | 22 | 0.772727 |
cca1994074eed5734a9fbc22fbe4099d5f9fc42f | 2,075 | hpp | C++ | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | 4 | 2018-09-27T16:46:31.000Z | 2018-11-22T11:10:41.000Z | src/Module/Modem/SCMA/Modem_SCMA.hpp | OlivierHartmann/aff3ct | 58c66228b24e09463bd43ea6453ef18bcacd4d8f | [
"MIT"
] | null | null | null | #ifndef MODEM_SCMA_HPP_
#define MODEM_SCMA_HPP_
#include <complex>
#include <vector>
#include "Tools/Code/SCMA/modem_SCMA_functions.hpp"
#include "../Modem.hpp"
namespace aff3ct
{
namespace module
{
template <typename B = int, typename R = float, typename Q = R, tools::proto_psi<Q> PSI = tools::psi_0>
class Modem_S... | 30.072464 | 126 | 0.61012 |
cca36cc4b702dcbc13369012d2af07499411556b | 1,180 | cpp | C++ | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | core/optimization/Variable.cpp | metalicn20/charge | 038bbfa14d8f08ffc359d877419b6b984c60ab85 | [
"MIT"
] | null | null | null | #include "Variable.h"
using namespace std;
Variable::Variable(Alloymaker &alloymaker)
{
setAlloymaker(alloymaker);
}
void Variable::setAlloymaker(Alloymaker &value)
{
alloymaker = &value;
}
Alloymaker &Variable::getAlloymaker()
{
return *alloymaker;
}
double Variable::composition(Standard &std)
{
v... | 15.733333 | 67 | 0.659322 |
ccb2eda4b66331f8b88bdf846cb6e661b814ea75 | 1,107 | hpp | C++ | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | include/service_log.hpp | magicmoremagic/bengine-core | fc9e1c309e62f5b2d7d4797d4b537ecfb3350d19 | [
"MIT"
] | null | null | null | #pragma once
#ifndef BE_CORE_SERVICE_LOG_HPP_
#define BE_CORE_SERVICE_LOG_HPP_
#include "service.hpp"
#include "service_ids.hpp"
#include "console_log_sink.hpp"
#include "log.hpp"
namespace be {
///////////////////////////////////////////////////////////////////////////////
template <>
struct SuppressUndefinedServic... | 23.0625 | 79 | 0.455285 |
ccb46faba940aeba89adb75ed17c2ba62fc87e42 | 365 | cpp | C++ | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | src/messages/CountMessage.cpp | Wolkabout/offset-printing-machine-simulator-lib | 673c45692b7f12c189e7d6d6007d01913bf868b7 | [
"Apache-2.0"
] | null | null | null | //
// Created by nvuletic on 8.8.19..
//
#include "CountMessage.h"
namespace simulator
{
CountMessage::CountMessage(int count, double percentage) : m_count(count), m_percentage(percentage) {}
int CountMessage::getCount() const
{
return m_count;
}
double CountMessage::getPercentage() cons... | 17.380952 | 106 | 0.652055 |
ccb9df76d6dfaf384b37dd43a57b8e7429c39983 | 4,862 | cpp | C++ | src/IFTTTWebhook.cpp | Onset/IFTTTWebhook | 1b23992a5cac55cba787f0187e8f74986aa8a752 | [
"MIT"
] | 30 | 2018-05-20T12:59:03.000Z | 2022-03-16T00:26:16.000Z | src/IFTTTWebhook.cpp | Onset/IFTTTWebhook | 1b23992a5cac55cba787f0187e8f74986aa8a752 | [
"MIT"
] | 9 | 2018-04-11T01:30:21.000Z | 2019-10-03T14:55:14.000Z | src/IFTTTWebhook.cpp | Onset/IFTTTWebhook | 1b23992a5cac55cba787f0187e8f74986aa8a752 | [
"MIT"
] | 16 | 2018-03-31T04:40:16.000Z | 2021-12-03T18:55:41.000Z | /*
IFTTTWebhook.cpp
Created by John Romkey - https://romkey.com/
March 24, 2018
*/
#ifndef ESP32
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#endif
#ifdef ESP32
#include <WiFi.h>
#include <HTTPClient.h>
#endif
#include "IFTTTWebhook.h"
IFTTTWebhook::IFTTTWebhook(const char* api_key, const cha... | 33.763889 | 155 | 0.757507 |
ccbb82240f83480c1dff283a2e241ccafbe73505 | 2,169 | cc | C++ | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | 2015/day16.cc | triglav/advent_of_code | e96bd0aea417076d997eeb4e49bf6e1cc04b31e0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <unordered_map>
#include "string_utils.h"
bool Check(std::unordered_map<std::string_view, int> const &known_facts,
std::vector<std::string_view> const &tokens) {
for (int i = 2; i < tokens.size(); i += 2) {
auto const thing = Trim(tokens[i], ":,");
a... | 25.821429 | 73 | 0.573997 |
ccbf07113c9d9e04ac7ea016896648451d095958 | 404 | cpp | C++ | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | libi3/path_exists.cpp | andreatulimiero/i3pp | 3e1268ec690bce1821d47df11a985145c289573c | [
"BSD-3-Clause"
] | null | null | null | /*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
*/
#include "libi3.hpp"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
/*
* Checks if the given path exists by calling stat().
*
*/
bool path_ex... | 18.363636 | 65 | 0.653465 |
ccbfb66b552f44a9321a1a584ac12c9fcc48c154 | 1,590 | cpp | C++ | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | lintonv/aws-sdk-cpp | 15e19c265ffce19d2046b18aa1b7307fc5377e58 | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-iotsitewise/source/model/CreateAccessPolicyRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/iotsitewise/model/CreateAccessPolicyRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::IoTSiteWise::Model;
using namespace Aws::Utils::J... | 22.714286 | 114 | 0.755975 |
ccbff3113c7f71866afd884399212a87286ec115 | 875 | hpp | C++ | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | src/ofxSwizzle/detail/functional/increment_decrement.hpp | t6tn4k/ofxSwizzle | 7d5841e738d0f08cb5456b040c5f827be7775131 | [
"MIT"
] | null | null | null | #ifndef OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#define OFX_SWIZZLE_DETAIL_FUNCTIONAL_INCREMENT_DECREMENT_HPP
#include <utility>
namespace ofxSwizzle { namespace detail {
struct pre_increment
{
template <typename T>
constexpr auto operator()(T& t) const -> decltype(++t)
{
return ++t... | 18.617021 | 71 | 0.659429 |
ccc12c1372e0e0c2f549742135a4899726092225 | 1,172 | cpp | C++ | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | bench/bench_message.cpp | motion-workshop/shadowmocap-sdk-cpp | 2df32936bbfb82b17401734ee850a7b710aa3806 | [
"BSD-2-Clause"
] | null | null | null | #include <benchmark/benchmark.h>
#include <shadowmocap/message.hpp>
#include <algorithm>
#include <random>
#include <vector>
std::vector<char> make_random_bytes(std::size_t n)
{
std::random_device rd;
std::mt19937 gen(rd());
std::uniform_int_distribution<int> dis(-128, 127);
std::vector<char> buf(n... | 26.636364 | 78 | 0.674061 |
ccc7cd504f578562c05f68a24fb31a246c31de29 | 1,221 | cpp | C++ | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | 3 | 2016-10-01T10:15:09.000Z | 2017-07-09T02:53:36.000Z | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | algorithms/cpp/632.cpp | viing937/leetcode | e21ca52c98bddf59e43522c0aace5e8cf84350eb | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
using namespace std;
class Solution {
private:
struct Element {
int val;
int idx;
int row;
Element(int val, int idx, int row): val(val), idx(idx), row(row) {}
bool operator <(const Element &a) const {
return ... | 25.978723 | 75 | 0.465192 |
cccb113e383cab85bb0427179ecb4cbe2936ba12 | 1,485 | cpp | C++ | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 3 | 2017-11-29T07:11:24.000Z | 2020-03-03T19:23:33.000Z | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | null | null | null | dvdinfo/detect.cpp | XULPlayer/XULPlayer-legacy | 1ab0ad2a196373d81d350bf45c03f690a0bfb8a2 | [
"MIT"
] | 1 | 2018-07-12T12:48:52.000Z | 2018-07-12T12:48:52.000Z | #include "dvd_reader.h"
#include "ifo_types.h"
#include "ifo_read.h"
#include "nav_read.h"
#include "cdrom.h"
#include "dvdinfo.h"
int detect_media_type(const char *psz_path)
{
int i_type;
char *psz_dup;
char psz_tmp[20];
dvd_reader_t *dvd;
vcddev_t* p_cddev;
WIN32_FIND_DATA FindFileData;
HANDLE hFind;
if (... | 19.038462 | 51 | 0.642424 |
ccce06e6b4fdbb371e2d9d97416f8c732c9fff2c | 1,540 | cpp | C++ | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | KondoA9/OpenSiv3d-GUIKit | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | 32 | 2021-10-09T10:04:11.000Z | 2022-02-25T06:10:13.000Z | Aoba/src/Core/TaskRunner/TimeoutTaskManager.cpp | athnomedical/Aoba | 355b2e7940bf00a8ef5fc3001243e450dccdeab9 | [
"MIT"
] | null | null | null | #include "TimeoutTaskManager.hpp"
namespace s3d::aoba {
size_t TimeoutTaskManager::addTask(const std::function<void()>& task, double ms, bool threading) {
m_timeouts.emplace_back(task, ms, threading);
return m_timeouts[m_timeouts.size() - 1].id();
}
bool TimeoutTaskManager::isAlive(size_t... | 26.101695 | 102 | 0.521429 |
ccceb823ea5512a19cbef0aea09a9ecb142d1b44 | 1,577 | cpp | C++ | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/autonomous/AutoRightSideIntake.cpp | calcmogul/Robot-2020 | b416c202794fb7deea0081beff2f986de7001ed9 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) FRC Team 3512. All Rights Reserved.
#include <frc/trajectory/constraint/MaxVelocityConstraint.h>
#include <frc/trajectory/constraint/RectangularRegionConstraint.h>
#include <wpi/numbers>
#include "Robot.hpp"
namespace frc3512 {
void Robot::AutoRightSideIntake() {
// Initial Pose - Right in line... | 32.183673 | 74 | 0.638554 |
cccebc6745a7bd1add73efc60d91d7422cab2683 | 3,915 | cpp | C++ | Testing/TestEnumConversions.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 2 | 2021-01-19T02:21:48.000Z | 2022-03-26T23:05:49.000Z | Testing/TestEnumConversions.cpp | ncorgan/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 3 | 2020-07-26T18:48:21.000Z | 2020-10-28T00:45:42.000Z | Testing/TestEnumConversions.cpp | pothosware/PothosArrayFire | b2ce286827cefdc45507dbae65879a943e977479 | [
"BSD-3-Clause"
] | 1 | 2022-03-24T06:22:20.000Z | 2022-03-24T06:22:20.000Z | // Copyright (c) 2019-2020 Nicholas Corgan
// SPDX-License-Identifier: BSD-3-Clause
#include "Utility.hpp"
#include <Pothos/Framework.hpp>
#include <Pothos/Object.hpp>
#include <Pothos/Testing.hpp>
#include <arrayfire.h>
#include <string>
#include <typeinfo>
namespace GPUTests
{
template <typename Type1, typename... | 34.043478 | 79 | 0.691699 |
ccd4bed9e0c88af04342ae363205dfd1b611a34a | 4,064 | cpp | C++ | algorithm.cpp | sscerr/DRAGONCELLO | 1dfa2a9bf4d6359d5a9257c10f9adf825edd4594 | [
"MIT"
] | 5 | 2020-11-25T22:05:46.000Z | 2021-02-25T07:12:12.000Z | algorithm.cpp | sscerr/DRAGONCELLO | 1dfa2a9bf4d6359d5a9257c10f9adf825edd4594 | [
"MIT"
] | null | null | null | algorithm.cpp | sscerr/DRAGONCELLO | 1dfa2a9bf4d6359d5a9257c10f9adf825edd4594 | [
"MIT"
] | 1 | 2020-11-26T02:21:41.000Z | 2020-11-26T02:21:41.000Z | #include "dragoncello.h"
void DRAGONCELLO::solveTridiagonalSystem(vector<double>& a, vector<double>& b, vector<double>& c, vector<double>& r, vector<double>& u, int n) {
int j = 0;
double bet = 0.0;
vector<double> gam(n,0.); //double gam[n];
// One vector of workspace, gam, is needed.
if (b[0] == 0.0) ce... | 32.512 | 183 | 0.462352 |
ccd778c92e2ae07f2ba0502f88351f5c392bddca | 28,491 | hpp | C++ | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | boost/graph/r_c_shortest_paths.hpp | cpp-pm/boost | 38c6c8c07f2fcc42d573b10807fef27ec14930f8 | [
"BSL-1.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | // r_c_shortest_paths.hpp header file
// Copyright Michael Drexl 2005, 2006.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://boost.org/LICENSE_1_0.txt)
#ifndef BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP
#define BOOST_GRAPH_R_C_SHORTEST_PATHS_HPP
#i... | 37.886968 | 161 | 0.661226 |
ccd893a9826c4837bd402bf73b06c52f897cfd8d | 35,559 | cpp | C++ | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | kernel/src/kernelimpl.cpp | Euclideon/udshell | 795e2d832429c8e5e47196742afc4b452aa23ec3 | [
"MIT"
] | null | null | null | #include "ep/cpp/platform.h"
#include "ep/cpp/plugin.h"
#include "kernelimpl.h"
#include "components/stdiostream.h"
#include "components/lua.h"
#include "components/logger.h"
#include "components/timerimpl.h"
#include "components/pluginmanager.h"
#include "components/pluginloader.h"
#include "components/nativepluginl... | 31.083042 | 243 | 0.708344 |
ccdd2555f82ecda3316f35a445dd812b38ff13e3 | 193 | hpp | C++ | Classes/GameScene.hpp | InversePalindrome/Apophis | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 7 | 2018-08-20T17:28:29.000Z | 2020-09-05T15:19:31.000Z | Classes/GameScene.hpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | null | null | null | Classes/GameScene.hpp | InversePalindrome/JATR66 | c2bb39e87d63cb51bc67f8e3682d84b3b4f970c8 | [
"MIT"
] | 1 | 2019-12-25T12:02:03.000Z | 2019-12-25T12:02:03.000Z | /*
Copyright (c) 2018 Inverse Palindrome
Apophis - GameScene.hpp
InversePalindrome.com
*/
#pragma once
#include <cocos/2d/CCScene.h>
cocos2d::Scene* getGameScene(const std::string& level); | 14.846154 | 55 | 0.751295 |
ef9adb4af0ba3756488f6a0f2409d695b815528d | 1,875 | cpp | C++ | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 239 | 2020-11-26T12:53:51.000Z | 2022-03-24T01:02:49.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 6 | 2020-11-27T04:00:44.000Z | 2021-07-07T03:02:57.000Z | src/flapGame/flapGame/LoadPNG.cpp | KnyazQasan/First-Game-c- | 417d312bb57bb2373d6d0a89892a55718bc597dc | [
"MIT"
] | 24 | 2020-11-26T22:59:27.000Z | 2022-02-06T04:02:50.000Z | #include <flapGame/Core.h>
#include <flapGame/GLHelpers.h>
// clang-format off
#define STBI_MALLOC(sz) PLY_HEAP.alloc(sz)
#define STBI_REALLOC(p, newsz) PLY_HEAP.realloc(p, newsz)
#define STBI_FREE(p) PLY_HEAP.free(p)
// clang-format om
#define STB_IMAGE_IMPLEMENTATION
#define STBI_ONLY_PNG
#inclu... | 28.409091 | 104 | 0.597333 |
ef9f57549e1dd00801d74e754e07ec188ad918e1 | 973 | cpp | C++ | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 22 | 2021-10-01T20:14:15.000Z | 2022-02-22T15:27:20.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 15 | 2021-10-01T20:24:55.000Z | 2021-10-31T05:55:14.000Z | Strings/Longest-Prefix-Suffix.cpp | Bhannasa/CP-DSA | 395dbdb6b5eb5896cc4182711ff086e1fb76ef7a | [
"MIT"
] | 76 | 2021-10-01T20:01:06.000Z | 2022-03-02T16:15:24.000Z | // https://practice.geeksforgeeks.org/viewSol.php?subId=58bdb4aa62394291d57f659e2c839932&pid=703402&user=tomarshiv51
// Initial template for C++
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
int lps(string s) {
// Your cod... | 15.693548 | 116 | 0.463515 |
efa401af672bc08b39212830123acadded6ac823 | 1,764 | cpp | C++ | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 9 | 2017-08-31T06:03:18.000Z | 2019-01-06T05:07:26.000Z | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | mvp_tips/CPUID/CPUID/ExtendedCPU5Intel.cpp | allen7575/The-CPUID-Explorer | 77d0feef70482b2e36cff300ea24271384329f60 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 8 | 2017-08-31T06:23:22.000Z | 2022-01-24T06:47:19.000Z | // ExtendedCPU5Intel.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "ExtendedCPU5Intel.h"
#include "CPUIDx86.h"
#include "ReportRegs.h"
// CExtendedCPU5Intel dialog
IMPLEMENT_DYNCREATE(CExtendedCPU5Intel, CLeaves)
CExtendedCPU5Intel::CExtendedCPU5Intel()
: CLeaves(CExtendedCP... | 23.837838 | 77 | 0.573696 |
efa44fa587e0b8ee43b264ca89fcd327d505a17d | 20,926 | cpp | C++ | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/External/node/elastos/external/chromium_org/third_party/WebKit/Source/modules/modules_gyp/bindings/core/v8/V8Path2D.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8Path2D.h"
#include "bindings/core/v8/V8Path... | 38.823748 | 221 | 0.704721 |
efaa95e67d306944eeea043d8368c7cea94e20aa | 5,430 | cc | C++ | chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/router/discovery/media_sink_service_base_unittest.cc | metux/chromium-deb | 3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/media/router/discovery/media_sink_service_base_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/media/router/discovery/media_sink_service_base.h"
#include "base/test/mock_callback.h"
#include "base/timer/mock_timer.h"
#includ... | 37.708333 | 79 | 0.759484 |
efac67313dd9bd9f69caae66d56b1ffaf67e9911 | 1,591 | hpp | C++ | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | internal/o80_internal/controllers_manager.hpp | luator/o80 | 65fe75bc6d375db0e4a2fe075c097a54dde7b571 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (C) 2019 Max Planck Gesellschaft
// Author : Vincent Berenz
#pragma once
#include <memory>
#include "command.hpp"
#include "controller.hpp"
#include "o80/states.hpp"
#include "time_series/multiprocess_time_series.hpp"
namespace o80
{
template <int NB_ACTUATORS, int QUEUE_SIZE, class STATE>
class Control... | 27.912281 | 70 | 0.733501 |
eface07d49cd2d31155cbaf2a0de6163d32bde90 | 5,470 | cc | C++ | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 9 | 2015-12-23T21:18:28.000Z | 2018-11-25T10:10:12.000Z | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 1 | 2016-01-08T20:56:21.000Z | 2016-01-08T20:56:21.000Z | nacl/net/rtp/rtp_sender.cc | maxsong11/nacld | c4802cc7d9bda03487bde566a3003e8bc0f574d3 | [
"BSD-3-Clause"
] | 6 | 2015-12-04T18:23:49.000Z | 2018-11-06T03:52:58.000Z | // Copyright 2014 The Chromium Authors. All rights reserved.
// Copyright 2015 Intel Corporation. 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/rtp/rtp_sender.h"
#include "base/big_endian.h"
#include "base/logger.h"
#include ... | 36.711409 | 80 | 0.706399 |
efae40771253fa3bfb27b1ee80c55f32c9e089be | 3,140 | cpp | C++ | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 6 | 2021-12-28T08:07:16.000Z | 2022-03-13T06:17:45.000Z | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | null | null | null | minesweeper_v1/Instructions.cpp | sangpham2710/CS161-Project | 7051cc17bc64bdcb128884ef02ec70e1552c982e | [
"MIT"
] | 1 | 2021-12-24T07:19:16.000Z | 2021-12-24T07:19:16.000Z | #include "instructions.h"
#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include "cmanip.h"
#include "game_model.h"
#include "global.h"
#include "main_utils.h"
#include "scene_manager.h"
#include "windows.h"
const long long MAX_TIME = (long long)1e18;
int PADDING_I... | 28.545455 | 80 | 0.58758 |
efafcec13c75a40f7bfe2a3549a569f79f732878 | 83,097 | cc | C++ | protobufs/c_peer2peer_netmessages.pb.cc | devilesk/dota-replay-parser | e83b96ee513a7193e6703615df4f676e27b1b8a0 | [
"0BSD"
] | 2 | 2017-02-03T16:57:17.000Z | 2020-10-28T21:13:12.000Z | protobufs/c_peer2peer_netmessages.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 1 | 2017-02-03T22:44:17.000Z | 2017-02-04T08:58:13.000Z | protobufs/c_peer2peer_netmessages.pb.cc | invokr/dota-replay-parser | 6260aa834fb47f0f1a8c713f4edada6baeb9dcfa | [
"0BSD"
] | 2 | 2017-02-03T17:51:57.000Z | 2021-05-22T02:40:00.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: c_peer2peer_netmessages.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "c_peer2peer_netmessages.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/pro... | 33.944853 | 133 | 0.703118 |
efb2eb3e96f6020c3d91536886f463811a9693f3 | 36 | cpp | C++ | Chapter-3-Tree/Homework/Chapter-3-Tree-Homework-1/main.cpp | jubgjf/DataStructuresAndAlgorithms | 48c7fa62e618ddbefa760229ce677cdfc822b53f | [
"MIT"
] | 2 | 2020-10-18T07:36:25.000Z | 2021-07-31T23:34:49.000Z | Chapter-3-Tree/Homework/Chapter-3-Tree-Homework-1/main.cpp | jubgjf/DataStructuresAndAlgorithms | 48c7fa62e618ddbefa760229ce677cdfc822b53f | [
"MIT"
] | null | null | null | Chapter-3-Tree/Homework/Chapter-3-Tree-Homework-1/main.cpp | jubgjf/DataStructuresAndAlgorithms | 48c7fa62e618ddbefa760229ce677cdfc822b53f | [
"MIT"
] | null | null | null | #include "header.h"
int main()
{
}
| 6 | 19 | 0.583333 |
efb31ec19a89d05b2cd8ef548b6d6278a3862f1c | 3,163 | cpp | C++ | day05/ex05/CentralBureaucracy.cpp | psprawka/Cpp_Piscine | 73fdb50d654c49587d7d3a2d475b1c57033c8dd4 | [
"MIT"
] | 1 | 2019-09-15T08:29:00.000Z | 2019-09-15T08:29:00.000Z | day05/ex05/CentralBureaucracy.cpp | psprawka/Cpp_Piscine | 73fdb50d654c49587d7d3a2d475b1c57033c8dd4 | [
"MIT"
] | 1 | 2019-09-15T08:28:48.000Z | 2019-09-15T08:28:48.000Z | day05/ex05/CentralBureaucracy.cpp | psprawka/Cpp_Piscine | 73fdb50d654c49587d7d3a2d475b1c57033c8dd4 | [
"MIT"
] | 1 | 2020-03-04T16:14:40.000Z | 2020-03-04T16:14:40.000Z | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* CentralBureaucracy.cpp :+: :+: :+: ... | 30.12381 | 95 | 0.523554 |
efb9f6507df42e6e4b450ae84d187d9bfc4a6c6c | 818 | cpp | C++ | Problem Solving/Algorithms/Strings/Making Anagrams/making anagrams.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 108 | 2021-03-29T05:04:16.000Z | 2022-03-19T15:11:52.000Z | Problem Solving/Algorithms/Strings/Making Anagrams/making anagrams.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | null | null | null | Problem Solving/Algorithms/Strings/Making Anagrams/making anagrams.cpp | IsaacAsante/hackerrank | 76c430b341ce1e2ab427eda57508eb309d3b215b | [
"MIT"
] | 32 | 2021-03-30T03:56:54.000Z | 2022-03-27T14:41:32.000Z | /* Author: Isaac Asante
* HackerRank URL for this exercise: https://www.hackerrank.com/challenges/making-anagrams/problem
* Original video explanation: https://www.youtube.com/watch?v=05mznZNMjvY
* Last verified on: May 19, 2021
*/
/* IMPORTANT:
* This code is meant to be used as a solution on HackerRank (link ... | 31.461538 | 98 | 0.617359 |
efba45131a5dbe76ca0d3941a4f10c01cb4946a8 | 8,133 | cpp | C++ | data.cpp | wsaczawa/Mochawk | 8dde3f8303325f489d087dc2877056cd26ee64c3 | [
"MIT"
] | null | null | null | data.cpp | wsaczawa/Mochawk | 8dde3f8303325f489d087dc2877056cd26ee64c3 | [
"MIT"
] | null | null | null | data.cpp | wsaczawa/Mochawk | 8dde3f8303325f489d087dc2877056cd26ee64c3 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "dataFTP.h"
struct older_file {
bool operator()(const fs::directory_entry& p, const fs::directory_entry& p2)
{
return p.last_write_time() > p2.last_write_time();
}
};
std::string value(std::string line) {
return line.substr(line.find(',') + 1, line.length() - line.find(','... | 26.067308 | 164 | 0.572728 |
efbb5ba8d03dba10a5d87893ddf82b2ff52cb452 | 1,396 | hpp | C++ | include/jules/array/math.hpp | verri/jules | 5370c533a68bb670ae937967e024428c705215f8 | [
"Zlib"
] | 8 | 2016-12-07T21:47:48.000Z | 2019-11-25T14:26:27.000Z | include/jules/array/math.hpp | verri/jules | 5370c533a68bb670ae937967e024428c705215f8 | [
"Zlib"
] | 23 | 2016-12-07T21:22:24.000Z | 2019-09-02T13:58:42.000Z | include/jules/array/math.hpp | verri/jules | 5370c533a68bb670ae937967e024428c705215f8 | [
"Zlib"
] | 3 | 2017-01-18T02:11:32.000Z | 2018-04-16T01:40:36.000Z | // Copyright (c) 2017-2019 Filipe Verri <filipeverri@gmail.com>
#ifndef JULES_ARRAY_MATH_H
#define JULES_ARRAY_MATH_H
#include <jules/array/functional.hpp>
#include <jules/base/math.hpp>
#include <cmath>
namespace jules
{
template <typename Array>
auto normal_pdf(const common_array_base<Array>& array, typename Arr... | 26.339623 | 122 | 0.709169 |
efbec57643023dcd2ec04d45642affda4c24fc9e | 1,114 | cpp | C++ | TicTacToeBoardTest.cpp | tchane24/x06 | 22c331ec4ea87cfb8b5b5b6da287145c0a502fe9 | [
"MIT"
] | null | null | null | TicTacToeBoardTest.cpp | tchane24/x06 | 22c331ec4ea87cfb8b5b5b6da287145c0a502fe9 | [
"MIT"
] | null | null | null | TicTacToeBoardTest.cpp | tchane24/x06 | 22c331ec4ea87cfb8b5b5b6da287145c0a502fe9 | [
"MIT"
] | null | null | null | /**
* Unit Tests for TicTacToeBoard
**/
#include <gtest/gtest.h>
#include "TicTacToeBoard.h"
class TicTacToeBoardTest : public ::testing::Test
{
protected:
TicTacToeBoardTest(){} //constructor runs before each test
virtual ~TicTacToeBoardTest(){} //destructor cleans up after tests
virtual void SetUp(){} //se... | 21.018868 | 76 | 0.738779 |
efc2ce4052624ade50273969756c0e36c8e72291 | 7,686 | cpp | C++ | src/kiwi/vesKiwiImagePlaneDataRepresentation.cpp | aashish24/ves | 7a73d0d5f76fecc776950ba8ae45458df406c591 | [
"Apache-2.0"
] | 10 | 2015-11-16T02:38:48.000Z | 2021-11-17T11:19:25.000Z | src/kiwi/vesKiwiImagePlaneDataRepresentation.cpp | aashish24/ves | 7a73d0d5f76fecc776950ba8ae45458df406c591 | [
"Apache-2.0"
] | 1 | 2015-10-28T01:22:51.000Z | 2016-09-26T09:41:34.000Z | src/kiwi/vesKiwiImagePlaneDataRepresentation.cpp | aashish24/ves | 7a73d0d5f76fecc776950ba8ae45458df406c591 | [
"Apache-2.0"
] | 3 | 2016-03-18T06:06:42.000Z | 2017-05-10T09:29:54.000Z | /*========================================================================
VES --- VTK OpenGL ES Rendering Toolkit
http://www.kitware.com/ves
Copyright 2011 Kitware, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Y... | 31.5 | 121 | 0.611371 |
efc35cabfe9d8082842d0bb0d67189eec5730142 | 33,561 | cpp | C++ | src/lib/safe_storage.cpp | imaginatho/safestorage | a2581a1ec4e2e52b39f1f8f7f08afa9c566ee127 | [
"MIT"
] | 8 | 2015-07-04T04:06:15.000Z | 2015-07-10T07:43:41.000Z | src/lib/safe_storage.cpp | imaginatho/safestorage | a2581a1ec4e2e52b39f1f8f7f08afa9c566ee127 | [
"MIT"
] | null | null | null | src/lib/safe_storage.cpp | imaginatho/safestorage | a2581a1ec4e2e52b39f1f8f7f08afa9c566ee127 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <unistd.h>
#include <stdint.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <stdlib.h>
#include <syslog.h>
#include <iostream>
#include <sstream>
#include <string>
#include <exception>
using namespace std;
#include <log.h>
#include <safe_storage_imp.h>
#include <saf... | 29.491213 | 201 | 0.678615 |
efc3a216bf2f72dbbbc86f4644ef0f02ab9552b3 | 2,540 | cpp | C++ | src/components/UIElement.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 399 | 2019-01-06T17:55:18.000Z | 2022-03-21T17:41:18.000Z | src/components/UIElement.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 101 | 2019-04-18T21:03:53.000Z | 2022-01-08T13:27:01.000Z | src/components/UIElement.cpp | KirmesBude/REGoth-bs | 2e13dc3b9005744fccd7cea9c7e7cc1f94809e4a | [
"MIT"
] | 56 | 2019-04-10T10:18:27.000Z | 2022-02-08T01:23:31.000Z | #include "UIElement.hpp"
#include <GUI/BsCGUIWidget.h>
#include <GUI/BsGUIPanel.h>
#include <Image/BsSpriteTexture.h>
#include <RTTI/RTTI_UIElement.hpp>
#include <exception/Throw.hpp>
#include <gui/skin_gothic.hpp>
#include <log/logging.hpp>
#include <original-content/OriginalGameResources.hpp>
namespace REGoth
{
UI... | 21.896552 | 97 | 0.658268 |
efc5a1c2c7fcaafaa0c019bac69c79e662831cad | 354 | cc | C++ | poj/1/1401.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | 1 | 2015-04-17T09:54:23.000Z | 2015-04-17T09:54:23.000Z | poj/1/1401.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | poj/1/1401.cc | eagletmt/procon | adbe503eb3c1bbcc1538b2ee8988aa353937e8d4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void)
{
int T;
cin >> T;
while (T-- > 0) {
int N;
cin >> N;
int n2 = 0;
for (int base = 2; base <= N; base *= 2) {
n2 += N/base;
}
int n5 = 0;
for (int base = 5; base <= N; base *= 5) {
n5 += N/base;
}
cout << min(n... | 15.391304 | 46 | 0.440678 |
efc6f35430fffde57adff0d36b3155817d6d4ba5 | 379 | hpp | C++ | src/lib/common/Utility.hpp | genome/diagnose_dups | 17f63ed3d07c63f9b55dc7431f6528707d30709f | [
"MIT"
] | 8 | 2015-05-13T12:40:44.000Z | 2018-03-09T15:10:21.000Z | src/lib/common/Utility.hpp | genome/diagnose_dups | 17f63ed3d07c63f9b55dc7431f6528707d30709f | [
"MIT"
] | 5 | 2015-03-22T00:58:44.000Z | 2017-12-08T18:21:49.000Z | src/lib/common/Utility.hpp | genome/diagnose_dups | 17f63ed3d07c63f9b55dc7431f6528707d30709f | [
"MIT"
] | 4 | 2015-08-04T01:11:54.000Z | 2017-04-11T10:27:42.000Z | #pragma once
#include <sam.h>
#include <stdint.h>
#include <vector>
namespace cigar {
std::vector<uint32_t> parse_string_to_cigar_vector(char const* cigar_string);
int32_t calculate_right_offset(bam1_t const* record);
int32_t calculate_right_offset(char const* cigar);
int32_t calculate_left_offset(bam1_t const* rec... | 22.294118 | 77 | 0.802111 |
efcb3c623f09b27de5e5af4d73f99e82b6b7561c | 2,181 | cpp | C++ | src/kernel/io/KPrintf.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | 1 | 2021-02-01T19:28:02.000Z | 2021-02-01T19:28:02.000Z | src/kernel/io/KPrintf.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | 9 | 2021-02-07T15:46:11.000Z | 2021-02-18T08:25:42.000Z | src/kernel/io/KPrintf.cpp | jameskingstonclarke/arctic | 6fec04809d6175689477abfe21416f33e63cb177 | [
"MIT"
] | null | null | null | #include "KPrintf.h"
#include "../utils/Math.h"
#include "../Types.h"
#include "../driver/VGAGraphics.h"
#include "Serial.h"
namespace IO{
void kinfo(const char * info){
Driver::VGAGraphics::vga_driver.colour(Driver::VGAGraphics::vga_green);
kprintf("[INFO] ");
kprintf(info);
}
void kwarn(cons... | 19.300885 | 74 | 0.538285 |
efd1f73832af8201c5c3a93fc34f1c6446bfe8ce | 752 | hpp | C++ | include/RED4ext/Types/generated/community/CommunityEntryPhaseTimePeriodData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/community/CommunityEntryPhaseTimePeriodData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/community/CommunityEntryPhaseTimePeriodData.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/CName.hpp>
#include <RED4ext/DynArray.hpp>
#include <RED4ext/Types/generated/world/GlobalNodeID.hpp>
namespace RED4ext
{
namespace community {
stru... | 26.857143 | 85 | 0.757979 |
efd27baa76ce20bbacdcda74479534b6e862c749 | 2,587 | cpp | C++ | source/mdb/mdbclt/mdbclt_example/src/mdbclt_example.m.cpp | jan-kelemen/melinda | 308e6262bc0cab7f6253062e8abda11452490bb4 | [
"BSD-3-Clause"
] | 3 | 2021-03-25T08:44:38.000Z | 2022-01-06T11:05:42.000Z | source/mdb/mdbclt/mdbclt_example/src/mdbclt_example.m.cpp | jan-kelemen/melinda | 308e6262bc0cab7f6253062e8abda11452490bb4 | [
"BSD-3-Clause"
] | 6 | 2019-07-13T17:11:50.000Z | 2022-03-07T19:22:09.000Z | source/mdb/mdbclt/mdbclt_example/src/mdbclt_example.m.cpp | jan-kelemen/melinda | 308e6262bc0cab7f6253062e8abda11452490bb4 | [
"BSD-3-Clause"
] | null | null | null | #include <array>
#include <chrono>
#include <iostream>
#include <thread>
#include <unistd.h>
#include <vector>
#include <mblcxx_scope_exit.h>
#include <mbltrc_trace.h>
#include <mdbnet_client.h>
#include <mdbnet_serialization.h>
int main()
{
melinda::mbltrc::trace_options trace_config(std::filesystem::path("../... | 31.54878 | 80 | 0.591032 |
efd409501cd105af4876885427bae9752ac9f537 | 2,329 | cpp | C++ | src/Crane.cpp | ithamsteri/towerblocks | 584c37e43dea91ffb789883e873884b9279e7dcb | [
"MIT"
] | null | null | null | src/Crane.cpp | ithamsteri/towerblocks | 584c37e43dea91ffb789883e873884b9279e7dcb | [
"MIT"
] | null | null | null | src/Crane.cpp | ithamsteri/towerblocks | 584c37e43dea91ffb789883e873884b9279e7dcb | [
"MIT"
] | null | null | null | #include "Crane.h"
#include "Resource.h"
#include <cmath>
spSprite
Crane::doThrowBlock()
{
if (_state != States::Working) {
return nullptr;
}
_block->detach();
_block->setPosition(_view->getPosition());
// return crane to base
auto t = _view->addTween(TweenDummy(), 50);
t->addEventListener(TweenEve... | 22.180952 | 86 | 0.668957 |
efd502b3ded485b3ba8eb91a2671450db283faa4 | 3,520 | cpp | C++ | tests/altium_crap/Soft Designs/C++/NB3000 C++ Tetris/Embedded/input.cpp | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | 1 | 2020-06-08T11:17:46.000Z | 2020-06-08T11:17:46.000Z | tests/altium_crap/Soft Designs/C++/NB3000 C++ Tetris/Embedded/input.cpp | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | tests/altium_crap/Soft Designs/C++/NB3000 C++ Tetris/Embedded/input.cpp | hanun2999/Altium-Schematic-Parser | a9bd5b1a865f92f2e3f749433fb29107af528498 | [
"MIT"
] | null | null | null | // Logger thread
#include <stdio.h>
#include <signal.h>
#include <time.h>
#include <unistd.h>
#include <mqueue.h>
#include "devices.h"
#include "drv_ioport.h"
#include "tetris.h"
Buttons::Buttons(const int id)
{
_port = ioport_open(BUTTONS);
for (int i = 0; i < BUTTON_COUNT; ++i)
{
_switchIsUp[... | 22.709677 | 81 | 0.552841 |
efda4cdf0fedf7671b9917eebe1c9b9a769eaf95 | 3,543 | cpp | C++ | external/webkit/Source/WebKit2/UIProcess/WebPreferences.cpp | ghsecuritylab/android_platform_sony_nicki | 526381be7808e5202d7865aa10303cb5d249388a | [
"Apache-2.0"
] | 6 | 2017-05-31T01:46:45.000Z | 2018-06-12T10:53:30.000Z | WebKit/Source/WebKit2/UIProcess/WebPreferences.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 2 | 2017-07-25T09:37:22.000Z | 2017-08-04T07:18:56.000Z | WebKit/Source/WebKit2/UIProcess/WebPreferences.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 2 | 2017-07-17T06:02:42.000Z | 2018-09-19T10:08:38.000Z | /*
* Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of condit... | 33.11215 | 111 | 0.740051 |
efdaffa8672f649e8c82c426d322ed9fcb08f56c | 1,359 | hpp | C++ | Seer_Sim/utils/log.hpp | lanl/Seer | 9fb38d5a0fdb5e4dfcd5ee6fdafd9df6078d5f5b | [
"BSD-3-Clause"
] | 1 | 2020-03-19T07:01:35.000Z | 2020-03-19T07:01:35.000Z | Seer_Sim/utils/log.hpp | lanl/Seer | 9fb38d5a0fdb5e4dfcd5ee6fdafd9df6078d5f5b | [
"BSD-3-Clause"
] | null | null | null | Seer_Sim/utils/log.hpp | lanl/Seer | 9fb38d5a0fdb5e4dfcd5ee6fdafd9df6078d5f5b | [
"BSD-3-Clause"
] | 1 | 2020-03-19T07:01:36.000Z | 2020-03-19T07:01:36.000Z | #pragma once
#include <fstream>
#include <string>
#include <sstream>
#include <iostream>
namespace Seer
{
class Log
{
std::string outputFilename;
public:
std::stringstream log;
Log(){ outputFilename = "untitled.log"; }
Log(std::string _outputFilename): outputFilename(_outputFilename){ }
~Log();
void s... | 19.414286 | 89 | 0.636497 |
efdcd15d96899c50a32173b6c3761e27d4a3bf75 | 8,702 | hpp | C++ | src/Providers/UNIXProviders/BlockStatisticsManifest/UNIX_BlockStatisticsManifest_AIX.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/BlockStatisticsManifest/UNIX_BlockStatisticsManifest_ZOS.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/BlockStatisticsManifest/UNIX_BlockStatisticsManifest_ZOS.hpp | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 26.29003 | 97 | 0.78729 |
efe0371b0fc4ddd4c1bde0c167444d0d3a5643d1 | 1,589 | hpp | C++ | kernel/include/Sigma/types/hash_map.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 46 | 2019-09-30T18:40:06.000Z | 2022-02-20T12:54:59.000Z | kernel/include/Sigma/types/hash_map.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 11 | 2019-08-18T18:31:11.000Z | 2021-09-14T22:34:16.000Z | kernel/include/Sigma/types/hash_map.hpp | thomtl/Sigma | 30da9446a1f1b5cae4eff77bf9917fae1446ce85 | [
"BSD-2-Clause"
] | 1 | 2020-01-20T16:55:13.000Z | 2020-01-20T16:55:13.000Z | #ifndef SIGMA_TYPES_HASH_MAP_H
#define SIGMA_TYPES_HASH_MAP_H
#include <Sigma/common.h>
#include <Sigma/types/linked_list.h>
#include <klibcxx/utility.hpp>
#include <Sigma/arch/x86_64/misc/spinlock.h>
namespace types
{
template<typename T>
struct nop_hasher {
using hash_result = T;
hash_re... | 24.446154 | 117 | 0.56073 |
efe16d7cfa75b0fb9545eab906506513fb6c1f5f | 19,369 | cpp | C++ | src/drivers/common/driver_base.cpp | Dwedit/sdlretro | 521c5558cb55d4028210529e336d8a8622037358 | [
"MIT"
] | null | null | null | src/drivers/common/driver_base.cpp | Dwedit/sdlretro | 521c5558cb55d4028210529e336d8a8622037358 | [
"MIT"
] | null | null | null | src/drivers/common/driver_base.cpp | Dwedit/sdlretro | 521c5558cb55d4028210529e336d8a8622037358 | [
"MIT"
] | null | null | null | #include "driver_base.h"
#include "logger.h"
#include "cfg.h"
#include "video_base.h"
#include "buffered_audio.h"
#include "input_base.h"
#include "throttle.h"
#include "util.h"
#include <variables.h>
#include <core.h>
#include <cstring>
#include <cmath>
#include <memory>
#include <fstream>
namespace libretro {
ex... | 34.403197 | 122 | 0.634674 |
efe23776cdeb4c1b4199c11404b11748f3439077 | 4,835 | cpp | C++ | libs/evolvo/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | libs/evolvo/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | libs/evolvo/test/tests.cpp | rufus-stone/genetic-algo-cpp | 5e31f080d30ffc204fa7891883703183302b2954 | [
"MIT"
] | null | null | null | #include "evolvo/chromosome.hpp"
#include "evolvo/crossover.hpp"
#include "evolvo/individual.hpp"
#include "evolvo/population.hpp"
#include "evolvo/selection.hpp"
#define CATCH_CONFIG_MAIN // This tells the Catch2 header to generate a main
#include "catch.hpp"
#include <random>
#include <vector>
#include <map>
#incl... | 36.908397 | 203 | 0.64757 |
efe522521a9e3e7e53b2f14ea3e49ff2c8753433 | 2,690 | cpp | C++ | implementations/ugene/src/plugins/external_tool_support/src/trimmomatic/steps/TrailingStep.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/external_tool_support/src/trimmomatic/steps/TrailingStep.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/plugins/external_tool_support/src/trimmomatic/steps/TrailingStep.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.net
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* ... | 36.849315 | 102 | 0.67026 |
efe5281be27fba8ce55da7b1321e1d3fdd27f082 | 9,860 | hpp | C++ | naos/includes/kernel/util/str.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 14 | 2020-02-12T11:07:58.000Z | 2022-02-02T00:05:08.000Z | naos/includes/kernel/util/str.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | null | null | null | naos/includes/kernel/util/str.hpp | kadds/NaOS | ea5eeed6f777b8f62acf3400b185c94131b6e1f0 | [
"BSD-3-Clause"
] | 4 | 2020-02-27T09:53:53.000Z | 2021-11-07T17:43:44.000Z | #pragma once
#include "array.hpp"
#include "assert.hpp"
#include "common.hpp"
#include "hash.hpp"
#include "iterator.hpp"
#include "kernel/mm/allocator.hpp"
#include "formatter.hpp"
#include "memory.hpp"
#include <utility>
namespace util
{
/// \brief compair two string
/// \return 0 if equal
int strcmp(const char *st... | 25.025381 | 103 | 0.535497 |
efe6ee13015e03dd9051e0633494633c358b2e37 | 622 | cc | C++ | code/qttoolkit/contentbrowser/code/main.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/qttoolkit/contentbrowser/code/main.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/qttoolkit/contentbrowser/code/main.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
#include "stdneb.h"
#include "contentbrowserwindow.h"
#include "contentbrowserapp.h"
#include "extlibs/libqimg/qdevilplugin.h"
Q_IMPORT_PLUGIN(qdevil);
//------------------------------------------------------------------------------
/**... | 23.037037 | 80 | 0.530547 |
efec806f461fd802325dd210f9399cbef4211775 | 503 | hpp | C++ | source/ashes/renderer/TestRenderer/Sync/TestEvent.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/TestRenderer/Sync/TestEvent.hpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/TestRenderer/Sync/TestEvent.hpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder
*/
#pragma once
#include "renderer/TestRenderer/TestRendererPrerequisites.hpp"
namespace ashes::test
{
class Event
{
public:
Event( VkDevice device );
/**
*\copydoc ashes::Event::getStatus
*/
VkResult getStatus()const;
/**
*\copydoc ashes... | 15.71875 | 62 | 0.683897 |
efefffccc5b2dfe52e8eaa70f4732ce12a45df5e | 6,280 | cpp | C++ | src/ui/radio.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 1 | 2020-07-14T07:29:18.000Z | 2020-07-14T07:29:18.000Z | src/ui/radio.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2019-01-01T22:35:56.000Z | 2022-03-14T07:34:00.000Z | src/ui/radio.cpp | ptitSeb/freespace2 | 500ee249f7033aac9b389436b1737a404277259c | [
"Linux-OpenIB"
] | 2 | 2021-03-07T11:40:42.000Z | 2021-12-26T21:40:39.000Z | /*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on
* the source.
*/
/*
* $Logfile: /Freespace2/code/UI/RADIO.cpp $
* $Revision: 307 $
* $Date:... | 22.269504 | 109 | 0.62086 |
eff0238aa7ff1bec34896371a361d58922c057d1 | 2,097 | cpp | C++ | nori-base-2019/src/lightDepthArea.cpp | TamerMograbi/ShadowNet | 99a9fb4522546e58817bbdd373f63d6996685e21 | [
"BSD-3-Clause"
] | null | null | null | nori-base-2019/src/lightDepthArea.cpp | TamerMograbi/ShadowNet | 99a9fb4522546e58817bbdd373f63d6996685e21 | [
"BSD-3-Clause"
] | null | null | null | nori-base-2019/src/lightDepthArea.cpp | TamerMograbi/ShadowNet | 99a9fb4522546e58817bbdd373f63d6996685e21 | [
"BSD-3-Clause"
] | 1 | 2020-01-22T11:55:43.000Z | 2020-01-22T11:55:43.000Z | #include <nori/integrator.h>
#include <nori/scene.h>
#include <nori/bsdf.h>
NORI_NAMESPACE_BEGIN
class lightDepthAreaIntegrator : public Integrator {
public:
lightDepthAreaIntegrator(const PropertyList &props)
{
}
void preprocess(const Scene *scene)
{
emitterMeshes = scene->getEmitterMeshes();
... | 29.957143 | 116 | 0.674297 |
eff15b2b488eacb70224936cb68fa4bf82be018a | 14,983 | cc | C++ | MemoryBlock.cc | DrItanium/syn | bee289392e9e84a12d98a4b19f2a0ada9d7ae14a | [
"BSD-2-Clause"
] | 1 | 2017-04-17T14:46:28.000Z | 2017-04-17T14:46:28.000Z | MemoryBlock.cc | DrItanium/syn | bee289392e9e84a12d98a4b19f2a0ada9d7ae14a | [
"BSD-2-Clause"
] | 4 | 2017-03-15T23:28:14.000Z | 2017-10-29T22:48:28.000Z | MemoryBlock.cc | DrItanium/syn | bee289392e9e84a12d98a4b19f2a0ada9d7ae14a | [
"BSD-2-Clause"
] | null | null | null | /**
* @file
* implementation of methods described in ClipsExtensions.h
* @copyright
* syn
* Copyright (c) 2013-2017, Joshua Scoggins and Contributors
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... | 38.319693 | 178 | 0.680705 |
eff414eb37b93f36a5e9cd4a7a03fea2fdf00899 | 4,837 | hpp | C++ | libs/Core/include/argos-Core/Syntax/SyntaxParenthesizedExpression.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | libs/Core/include/argos-Core/Syntax/SyntaxParenthesizedExpression.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | 19 | 2021-12-01T20:37:23.000Z | 2022-02-14T21:05:43.000Z | libs/Core/include/argos-Core/Syntax/SyntaxParenthesizedExpression.hpp | henrikfroehling/interlinck | d9d947b890d9286c6596c687fcfcf016ef820d6b | [
"MIT"
] | null | null | null | #ifndef ARGOS_CORE_SYNTAX_SYNTAXPARENTHESIZEDEXPRESSION_H
#define ARGOS_CORE_SYNTAX_SYNTAXPARENTHESIZEDEXPRESSION_H
#include <string>
#include "argos-Core/argos_global.hpp"
#include "argos-Core/Syntax/ExpressionKinds.hpp"
#include "argos-Core/Syntax/ISyntaxParenthesizedExpression.hpp"
#include "argos-Core/Syntax/Synt... | 40.991525 | 127 | 0.716767 |
56028334e37554e54761bca0249086aeb90bb51b | 2,091 | cc | C++ | services/ui/ws/window_server_test_impl.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | services/ui/ws/window_server_test_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | services/ui/ws/window_server_test_impl.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2016 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 "services/ui/ws/window_server_test_impl.h"
#include "services/ui/public/interfaces/window_tree.mojom.h"
#include "services/ui/ws/server_window.h... | 33.725806 | 80 | 0.730751 |
56043e77013eda58e4eb07859c1cba7299bfe06d | 11,642 | cpp | C++ | tries/TST/lib/TST.cpp | hpaucar/datastructures-ii-repo | 203dbafcd4bb82a4214f93e21f15b3be89cea76c | [
"MIT"
] | null | null | null | tries/TST/lib/TST.cpp | hpaucar/datastructures-ii-repo | 203dbafcd4bb82a4214f93e21f15b3be89cea76c | [
"MIT"
] | null | null | null | tries/TST/lib/TST.cpp | hpaucar/datastructures-ii-repo | 203dbafcd4bb82a4214f93e21f15b3be89cea76c | [
"MIT"
] | null | null | null | // Copyright 2015 Maitesin
#include <string>
#include <vector>
#include <iostream>
#include "./TST.h"
template <class T> const T &TST::tst<T>::find(const std::string &key) {
node_ptr node(find(root, key, 0));
if (node != nullptr) {
aux_ret = node->value;
node.release();
return aux_ret;
} else {
r... | 26.459091 | 79 | 0.49038 |
5605cbbccd04885598aebbc1699203f68164d32b | 20,333 | cpp | C++ | net/ias/mmc/nap/iasstringattributeeditor.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/ias/mmc/nap/iasstringattributeeditor.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/ias/mmc/nap/iasstringattributeeditor.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //////////////////////////////////////////////////////////////////////////////
/*++
Copyright (C) Microsoft Corporation, 1998 - 1999
Module Name:
IASStringAttributeEditor.cpp
Abstract:
Implementation file for the CIASStringAttributeEditor class.
Revision History:
mmaguire 06/25/98 - created
... | 23.105682 | 152 | 0.602321 |
56068b094935639c12ba5efca575ca59056eb0b4 | 8,551 | hpp | C++ | Unidad 4/src/biblioteca/funciones/strings.hpp | Franeiro/AyED | a53142ac0c92fb74e62064e26fb4a4f86bace388 | [
"Xnet",
"X11"
] | null | null | null | Unidad 4/src/biblioteca/funciones/strings.hpp | Franeiro/AyED | a53142ac0c92fb74e62064e26fb4a4f86bace388 | [
"Xnet",
"X11"
] | null | null | null | Unidad 4/src/biblioteca/funciones/strings.hpp | Franeiro/AyED | a53142ac0c92fb74e62064e26fb4a4f86bace388 | [
"Xnet",
"X11"
] | null | null | null | #ifndef _TSTRINGS_T_
#define _TSTRINGS_T_
#include <iostream>
#include <stdio.h>
#include <math.h>
#include <string.h>
using namespace std;
int length(string s)
{
int i;
for (i = 0; s[i] != '\0'; i++)
{
}
return i;
}
int charCount(string s, char c)
{
int i, veces;
veces = 0;
for (i = 0; i ... | 12.303597 | 72 | 0.422758 |
5608f4ab3eee3af228771b5bf8b4f6f59e63929b | 432 | hpp | C++ | inc/OptionParser.hpp | Aracthor/paranoidRM | 1d7200090f18db7f152461f47afd63b0e4f7f02f | [
"MIT"
] | null | null | null | inc/OptionParser.hpp | Aracthor/paranoidRM | 1d7200090f18db7f152461f47afd63b0e4f7f02f | [
"MIT"
] | null | null | null | inc/OptionParser.hpp | Aracthor/paranoidRM | 1d7200090f18db7f152461f47afd63b0e4f7f02f | [
"MIT"
] | null | null | null | //
// OptionParser.hpp for paranoidRM in /home/aracthor/programs/projects/paranoidRM
//
// Made by Aracthor
// Login <aracthor@epitech.net>
//
// Started on Mon Jun 8 20:05:10 2015 Aracthor
// Last Update Mon Jun 8 20:10:50 2015 Aracthor
//
char
OptionParser::getFlag() const
{
return (mFlag);
}
const char*
O... | 15.428571 | 81 | 0.69213 |
560acde3772fa021d6bf2942daf2b52dcf32eda5 | 563 | cpp | C++ | PhotonBox/src/component/SpotLight.cpp | strager/PhotonBox | aba8ad303012dd1ca75b7c00ab6b8d5fff2e4128 | [
"MIT"
] | 118 | 2018-01-20T04:41:50.000Z | 2022-03-27T12:52:19.000Z | PhotonBox/src/component/SpotLight.cpp | strager/PhotonBox | aba8ad303012dd1ca75b7c00ab6b8d5fff2e4128 | [
"MIT"
] | 18 | 2017-12-03T02:13:08.000Z | 2020-11-12T00:09:41.000Z | PhotonBox/src/component/SpotLight.cpp | strager/PhotonBox | aba8ad303012dd1ca75b7c00ab6b8d5fff2e4128 | [
"MIT"
] | 13 | 2018-03-05T23:23:38.000Z | 2021-07-19T22:33:04.000Z | #include "PhotonBox/component/SpotLight.h"
#include "PhotonBox/core/system/Lighting.h"
#include "PhotonBox/resource/shader/ForwardSpotLightShader.h"
#ifdef PB_MEM_DEBUG
#include "PhotonBox/util/MEMDebug.h"
#define new DEBUG_NEW
#endif
void SpotLight::init()
{
Lighting::addLight(this);
}
void SpotLight::destroy()
{... | 16.558824 | 61 | 0.756661 |
560b1872dd11349dd3aa06f59fc9efe930c89299 | 3,079 | cxx | C++ | src/test/testMcClasses.cxx | fermi-lat/mcRootData | 1529a12d481fe1db38bfa7bc02780303232eb15d | [
"BSD-3-Clause"
] | null | null | null | src/test/testMcClasses.cxx | fermi-lat/mcRootData | 1529a12d481fe1db38bfa7bc02780303232eb15d | [
"BSD-3-Clause"
] | null | null | null | src/test/testMcClasses.cxx | fermi-lat/mcRootData | 1529a12d481fe1db38bfa7bc02780303232eb15d | [
"BSD-3-Clause"
] | null | null | null |
#include <mcRootData/McEvent.h>
#include <commonRootData/RootDataUtil.h>
#include "Riostream.h"
#include "TROOT.h"
#include "TFile.h"
#include "TTree.h"
#include "TRandom.h"
/** @file testMcClasses.cxx
* @brief This defines a test routine for the Monte Carlo ROOT classes.
*
* This program create a new Monte Carlo ROO... | 23.868217 | 81 | 0.566418 |
560baacc70936168a133e01580e5c93943074455 | 19,257 | cpp | C++ | ts/src/clientData.cpp | GodofMonkeys/task-force-arma-3-radio | 874ca4774f0797d46120818d31c1ef72a62f2eda | [
"RSA-MD"
] | null | null | null | ts/src/clientData.cpp | GodofMonkeys/task-force-arma-3-radio | 874ca4774f0797d46120818d31c1ef72a62f2eda | [
"RSA-MD"
] | null | null | null | ts/src/clientData.cpp | GodofMonkeys/task-force-arma-3-radio | 874ca4774f0797d46120818d31c1ef72a62f2eda | [
"RSA-MD"
] | null | null | null | #include "clientData.hpp"
#include "Logger.hpp"
#include "task_force_radio.hpp"
#include "antennaManager.h"
#include <iomanip>
#define logParam(x) str << #x << " " << (x) << "\n"
#define logParamN(n,x) str << #n << " " << (x) << "\n"
void LISTED_INFO::operator<<(std::ostream& str) const {
logParamN(over, static_... | 44.576389 | 203 | 0.682661 |
560c318ccb48481b339258f541ef6ee72900450d | 387 | cpp | C++ | src/server/src/ca_check.cpp | Eothred/hpsim | 526a00a9d1affcb83b642ea2aef939925a76cad9 | [
"Unlicense"
] | 6 | 2018-04-30T08:03:24.000Z | 2021-11-10T00:17:34.000Z | src/server/src/ca_check.cpp | Eothred/hpsim | 526a00a9d1affcb83b642ea2aef939925a76cad9 | [
"Unlicense"
] | 1 | 2018-09-26T17:04:27.000Z | 2018-09-26T17:35:04.000Z | src/server/src/ca_check.cpp | Eothred/hpsim | 526a00a9d1affcb83b642ea2aef939925a76cad9 | [
"Unlicense"
] | 4 | 2017-11-14T14:36:48.000Z | 2020-01-14T13:51:16.000Z | #include <string>
#include <iostream>
#include "cadef.h"
bool CACheck(int r_status, std::string r_op, std::string r_pv)
{
if(r_status != ECA_NORMAL)
{
std::cerr << "CA Error: ";
if(r_pv.compare("") != 0)
std::cerr << r_op << " failure for PV: " << r_pv << std::endl;
else
std::cerr << r_op <... | 21.5 | 68 | 0.571059 |
560d337df5e08c9730025627181dfee90cc5575b | 5,309 | cpp | C++ | sandbox/src/main.cpp | backwardspy/leviathan | 0b53656a5cca0b80d1ac0ae3f176f37948d0675f | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | backwardspy/leviathan | 0b53656a5cca0b80d1ac0ae3f176f37948d0675f | [
"MIT"
] | null | null | null | sandbox/src/main.cpp | backwardspy/leviathan | 0b53656a5cca0b80d1ac0ae3f176f37948d0675f | [
"MIT"
] | null | null | null | #include <leviathan/leviathan.h>
class CustomLayer : public lv::Layer {
public:
explicit CustomLayer(lv::Application& app) :
Layer("Custom"),
app(app),
window(app.get_window()),
ctx(app.get_render_context()),
ent_registry(app.get_ent_registry()),
camera(ent_registry.... | 35.15894 | 140 | 0.559427 |
560df1042a482b6fc705bf40aaae20c8924c6231 | 8,066 | cpp | C++ | test/math.t.cpp | ltjax/replay | 33680beae225c9c388f33e3f7ffd7e8bae4643e9 | [
"MIT"
] | 1 | 2015-09-15T19:52:50.000Z | 2015-09-15T19:52:50.000Z | test/math.t.cpp | ltjax/replay | 33680beae225c9c388f33e3f7ffd7e8bae4643e9 | [
"MIT"
] | 3 | 2017-12-03T21:53:09.000Z | 2019-11-23T02:11:50.000Z | test/math.t.cpp | ltjax/replay | 33680beae225c9c388f33e3f7ffd7e8bae4643e9 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <replay/math.hpp>
#include <replay/matrix2.hpp>
#include <replay/minimal_sphere.hpp>
#include <replay/vector_math.hpp>
#include <boost/math/constants/constants.hpp>
#include <random>
namespace
{
// FIXME: this is somewhat generically useful - lift it to a visible namespace?
replay... | 31.263566 | 114 | 0.621994 |
5611367c686b3c2a208246818dffb47235350c88 | 983 | cpp | C++ | engine/utils.cpp | inexinferis/sXeMu | 70705553033228c98de2608ca2be6231065f83cf | [
"MIT"
] | 1 | 2021-06-04T02:34:55.000Z | 2021-06-04T02:34:55.000Z | engine/utils.cpp | inexinferis/sXeMu | 70705553033228c98de2608ca2be6231065f83cf | [
"MIT"
] | null | null | null | engine/utils.cpp | inexinferis/sXeMu | 70705553033228c98de2608ca2be6231065f83cf | [
"MIT"
] | 6 | 2019-04-03T14:01:36.000Z | 2020-04-19T01:54:34.000Z | #include "utils.h"
#include <windows.h>
extern cl_enginefuncs_s gEngfuncs;
void cGetFunc::Init(){}
pfnCommand cGetFunc::GetAddCommand(PCHAR name){
PBYTE address=(PBYTE)gEngfuncs.pfnAddCommand+0x1B;
command_t *uml=*(command_t**)(*(PDWORD)((address+*((PDWORD)address)+4)+0x0D));
while(uml){
if(!strncmp(uml->n... | 24.575 | 80 | 0.670397 |
56139a49800d5032c797beff52bcc9559e664d2b | 4,059 | cpp | C++ | WebKit/Source/WebCore/platform/graphics/skia/BitLockerSkia.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | 1 | 2019-06-18T06:52:54.000Z | 2019-06-18T06:52:54.000Z | WebKit/Source/WebCore/platform/graphics/skia/BitLockerSkia.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | WebKit/Source/WebCore/platform/graphics/skia/BitLockerSkia.cpp | JavaScriptTesting/LJS | 9818dbdb421036569fff93124ac2385d45d01c3a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011 Google Inc. 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 condit... | 33.825 | 92 | 0.725055 |
5618e356badef6dedb972f4a7c2ea09ff7dbfcd2 | 275 | hpp | C++ | src/modules/osg/generated_code/vector_less__bool__greater_.pypp.hpp | JaneliaSciComp/osgpyplusplus | a5ae3f69c7e9101a32d8cc95fe680dab292f75ac | [
"BSD-3-Clause"
] | 17 | 2015-06-01T12:19:46.000Z | 2022-02-12T02:37:48.000Z | src/modules/osg/generated_code/vector_less__bool__greater_.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-07-04T14:36:49.000Z | 2015-07-23T18:09:49.000Z | src/modules/osg/generated_code/vector_less__bool__greater_.pypp.hpp | cmbruns/osgpyplusplus | f8bfca2cf841e15f6ddb41c958f3ad0d0b9e4b75 | [
"BSD-3-Clause"
] | 7 | 2015-11-28T17:00:31.000Z | 2020-01-08T07:00:59.000Z | // This file has been generated by Py++.
#ifndef vector_less__bool__greater__hpp__pyplusplus_wrapper
#define vector_less__bool__greater__hpp__pyplusplus_wrapper
void register_vector_less__bool__greater__class();
#endif//vector_less__bool__greater__hpp__pyplusplus_wrapper
| 30.555556 | 59 | 0.887273 |
562072287f24126f19d8fae38014768b89bbfb53 | 6,232 | cpp | C++ | EndGame/EndGame/Src/SubSystems/RenderSubSystem/Renderer2D.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | EndGame/EndGame/Src/SubSystems/RenderSubSystem/Renderer2D.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | EndGame/EndGame/Src/SubSystems/RenderSubSystem/Renderer2D.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | //
// Renderer2D.cpp
//
//
// Created by Siddharth on 09/07/20.
//
#include "Renderer2D.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <EndGame/Src/SubSystems/RenderSubSystem/RenderCommand.h>
#include <EndGame/Src/SubSystems/RenderSubSystem/RenderApiFactory.hpp>
namespace EndGame {
Renderer2DStorage *R... | 45.823529 | 194 | 0.648748 |
56223febd33a024d24f2bee3f67e5889466d8b60 | 1,923 | cpp | C++ | intro/knight_scape.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | intro/knight_scape.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | null | null | null | intro/knight_scape.cpp | eder-matheus/programming_challenges | 9d318bf5b8df18f732c07e60aa72b302ea887419 | [
"BSD-3-Clause"
] | 1 | 2021-08-24T17:18:54.000Z | 2021-08-24T17:18:54.000Z | // knight scape
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
const int dimension = 8;
const int num_pieces = 9;
void findKnightMoviments(int row, int col, std::vector<std::pair<int, int> >& movements) {
for (int r = -2; r <= 2; r++) {
for (int c = -2; c <= 2; c++) {
if ((abs... | 24.341772 | 95 | 0.514301 |
5622aa0f33e74cba4f4bb881ff2fc714394f2d5d | 4,264 | cpp | C++ | wnd/block_info_dlg.cpp | HyperBlockChain/Hyperchain-Core-YH | 2a7c4ac23f27c2034a678e61c2474e0008f5135e | [
"MIT"
] | 1 | 2019-08-30T07:36:33.000Z | 2019-08-30T07:36:33.000Z | wnd/block_info_dlg.cpp | HyperBlockChain/Hyperchain-Core-YH | 2a7c4ac23f27c2034a678e61c2474e0008f5135e | [
"MIT"
] | null | null | null | wnd/block_info_dlg.cpp | HyperBlockChain/Hyperchain-Core-YH | 2a7c4ac23f27c2034a678e61c2474e0008f5135e | [
"MIT"
] | 2 | 2019-11-01T03:39:57.000Z | 2020-03-26T06:21:22.000Z | /*Copyright 2016-2018 hyperchain.net (Hyperchain)
Distributed under the MIT software license, see the accompanying
file COPYING or https://opensource.org/licenses/MIT
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to... | 30.457143 | 123 | 0.739212 |
56275bb9eac3f7c05bcc5aaabc4a9261e55c7d7f | 26,432 | cpp | C++ | code_reading/oceanbase-master/unittest/sql/engine/sort/ob_sort_test.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/sql/engine/sort/ob_sort_test.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | null | null | null | code_reading/oceanbase-master/unittest/sql/engine/sort/ob_sort_test.cpp | wangcy6/weekly_read | 3a8837ee9cd957787ee1785e4066dd623e02e13a | [
"Apache-2.0"
] | 1 | 2020-10-18T12:59:31.000Z | 2020-10-18T12:59:31.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... | 35.055703 | 119 | 0.687311 |