hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a9cc06ad5804b6508e6dff29ff22cacd48d0435b | 3,987 | hpp | C++ | external/include/SFGUI/Adjustment.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | 3 | 2018-09-09T01:50:13.000Z | 2018-09-09T01:50:31.000Z | external/include/SFGUI/Adjustment.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | null | null | null | external/include/SFGUI/Adjustment.hpp | JevinJ/ConnectFour | 3e131c9ff957c3ca108b6f79e8940ba3ae40e8d4 | [
"MIT"
] | 1 | 2021-04-30T13:49:57.000Z | 2021-04-30T13:49:57.000Z | #pragma once
#include <SFGUI/Object.hpp>
#include <SFGUI/Signal.hpp>
#include <memory>
namespace sfg {
/** Scrollbar/Slider Adjustment.
*/
class SFGUI_API Adjustment : public Object, public std::enable_shared_from_this<Adjustment> {
public:
typedef std::shared_ptr<Adjustment> Ptr; //!< Shared pointer.
typedef... | 27.122449 | 150 | 0.692751 | JevinJ |
a9cfb031167493e3f414c1af48a256b82797581e | 1,406 | cpp | C++ | igravitable.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-01-24T01:14:04.000Z | 2020-01-24T01:14:04.000Z | igravitable.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | null | null | null | igravitable.cpp | canuc/meow-engine | 25f5396136d90691e4a4451f382a45da9fdcebc0 | [
"BSD-3-Clause"
] | 1 | 2020-06-05T07:00:16.000Z | 2020-06-05T07:00:16.000Z | #include "igravitable.h"
#include <glm/geometric.hpp>
#include <math.h>
glm::vec3 IGravitable::calculateGravitationalForce(const IGravitable * gravity) const {
const glm::vec3 objectPosition = gravity->getPosition();
const glm::vec3 position = getPosition();
float objectMass = gravity->getMass();
floa... | 41.352941 | 207 | 0.721195 | canuc |
a9cfd615a41ae36209f2f0ace3940a4b3c9968a4 | 132 | hpp | C++ | src/custom_types.hpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | 2 | 2015-03-02T21:50:25.000Z | 2016-05-28T00:18:47.000Z | src/custom_types.hpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | null | null | null | src/custom_types.hpp | razielgn/leaf-green | b37252c9167f0a4661050c835a8b6a1863fb0cd3 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <utility>
namespace green_leaf {
typedef std::pair<std::string, std::string> message;
}
| 14.666667 | 54 | 0.719697 | razielgn |
a9d08b7e8a638322e6e7332f308c8393934f8a34 | 904 | cc | C++ | code/userprog/usernetwork.cc | ThomasDuverney/Nachos_Project | 074c4f4b44cab3a54028cb1be1071101ba72c4d0 | [
"Beerware"
] | null | null | null | code/userprog/usernetwork.cc | ThomasDuverney/Nachos_Project | 074c4f4b44cab3a54028cb1be1071101ba72c4d0 | [
"Beerware"
] | null | null | null | code/userprog/usernetwork.cc | ThomasDuverney/Nachos_Project | 074c4f4b44cab3a54028cb1be1071101ba72c4d0 | [
"Beerware"
] | null | null | null | #include "usernetwork.h"
#include <string>
#ifdef NETWORK
extern void do_UserSendMessage(){
int addrDesti = machine->ReadRegister(4);
int boxTo = machine->ReadRegister(5);
int boxFrom = machine->ReadRegister(6);
int ptrData = machine->ReadRegister(7);
char * data = (char *) malloc(sizeof(char)*MAX_STRING_SIZ... | 25.111111 | 73 | 0.709071 | ThomasDuverney |
a9d0e629a48a5ecc654783e1600b004ac05ca70f | 14,412 | cc | C++ | cpp/tests/test_six_round_distinguisher_toy6_sbox_small.cc | medsec/expectation-cryptanalysis-on-round-reduced-aes | 52a4d5b4dd7555a1b4badafd95c5aeed92a70872 | [
"Unlicense"
] | 2 | 2019-06-04T00:52:17.000Z | 2022-01-19T08:06:44.000Z | cpp/tests/test_six_round_distinguisher_toy6_sbox_small.cc | medsec/expectation-cryptanalysis-on-round-reduced-aes | 52a4d5b4dd7555a1b4badafd95c5aeed92a70872 | [
"Unlicense"
] | null | null | null | cpp/tests/test_six_round_distinguisher_toy6_sbox_small.cc | medsec/expectation-cryptanalysis-on-round-reduced-aes | 52a4d5b4dd7555a1b4badafd95c5aeed92a70872 | [
"Unlicense"
] | 2 | 2019-06-03T08:12:29.000Z | 2019-06-03T12:53:26.000Z | /**
* __author__ = anonymized
* __date__ = 2019-05
* __copyright__ = Creative Commons CC0
*/
#include <stdint.h>
#include <stdlib.h>
#include <time.h>
#include <array>
#include <map>
#include <chrono>
#include <vector>
#include <numeric> // std::iota
#include <algorithm> // std::sort
#include "ciphers/r... | 32.313901 | 88 | 0.520955 | medsec |
a9d9fa21a5ee6e6ff336a45cd6c667a17d800bbd | 2,496 | cpp | C++ | RecursiveSquareMatrixMultiply/RecursiveSquareMatrixMultiply/main.cpp | fede-da/Algorithms | d896a774d11398ec901a919f952aea5ca28d46fb | [
"MIT"
] | null | null | null | RecursiveSquareMatrixMultiply/RecursiveSquareMatrixMultiply/main.cpp | fede-da/Algorithms | d896a774d11398ec901a919f952aea5ca28d46fb | [
"MIT"
] | null | null | null | RecursiveSquareMatrixMultiply/RecursiveSquareMatrixMultiply/main.cpp | fede-da/Algorithms | d896a774d11398ec901a919f952aea5ca28d46fb | [
"MIT"
] | null | null | null | //
// main.cpp
// RecursiveSquareMatrixMultiply
//
// Created by Federico D'Armini on 18/03/22.
//
#include <iostream>
#include <vector>
#include <random>
#include <cmath>
#include "timer/timer.cpp"
template <typename T>
std::vector<std::vector<T>> generateRandomMatrix(int size){
std::random_device dev;
... | 27.130435 | 124 | 0.552083 | fede-da |
a9da830088a76ec4b309d1560b5415186f611123 | 1,711 | cpp | C++ | src/17. Letter Combinations of a Phone Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | src/17. Letter Combinations of a Phone Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | src/17. Letter Combinations of a Phone Number/main.cpp | sheepduke/leetcode | 7808b3370e4c3e19b2b0bc2bcee62f659906c3eb | [
"MIT"
] | null | null | null | /*
Given a string containing digits from 2-9 inclusive, return all possible
letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given
below. Note that 1 does not map to any letters.
Example:
Input: "23"
Output: ["ad", "ae", "af", "b... | 24.442857 | 77 | 0.618352 | sheepduke |
a9daf02862a1ebc7037fd5f58fe4c6b9a7fea889 | 3,067 | hh | C++ | include/qpdf/QPDFStreamFilter.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | include/qpdf/QPDFStreamFilter.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | 3 | 2021-11-19T15:59:21.000Z | 2021-12-10T20:44:33.000Z | include/qpdf/QPDFStreamFilter.hh | m-holger/qpdf | f1a9ba0c622deee0ed05004949b34f0126b12b6a | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2005-2022 Jay Berkenbilt
//
// This file is part of qpdf.
//
// 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 ... | 38.822785 | 75 | 0.740137 | m-holger |
a9e1d1069879722573b475af366db1ca35d11b45 | 2,236 | hh | C++ | heap-sort/heap.hh | cjhoward92/algorithms-practice | 375058f2f108c86e119f4e43a0cebd6da7fa9d4d | [
"MIT"
] | null | null | null | heap-sort/heap.hh | cjhoward92/algorithms-practice | 375058f2f108c86e119f4e43a0cebd6da7fa9d4d | [
"MIT"
] | null | null | null | heap-sort/heap.hh | cjhoward92/algorithms-practice | 375058f2f108c86e119f4e43a0cebd6da7fa9d4d | [
"MIT"
] | null | null | null | #ifndef __HEAP_HH__
#define __HEAP_HH__
using namespace std;
template <typename T>
class Heap {
public:
Heap(T* array, int size, int (*cmp)(T, T));
~Heap();
void sort();
int len() const;
const T* get_array() const;
private:
T* _array;
int _size;
... | 19.964286 | 53 | 0.542934 | cjhoward92 |
a9e28a938e408268a0ad9db0e1f58f85ea933a00 | 5,635 | cpp | C++ | library/src/auxiliary/rocauxiliary_stebz.cpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | library/src/auxiliary/rocauxiliary_stebz.cpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | library/src/auxiliary/rocauxiliary_stebz.cpp | rkamd/rocSOLVER | de338c6cfc78e9e00be141d11529b8faeaba911f | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2022 Advanced Micro Devices, Inc.
* ************************************************************************ */
#include "rocauxiliary_stebz.hpp"
template <typename T>
rocblas_status rocsolver_stebz_impl(rocblas_handle handl... | 42.368421 | 100 | 0.43496 | rkamd |
a9e3e5fc0928ff56c3572f19fa13121b72053a91 | 12,699 | cpp | C++ | editcashpayment.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | 1 | 2022-02-16T13:02:43.000Z | 2022-02-16T13:02:43.000Z | editcashpayment.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | null | null | null | editcashpayment.cpp | bizjust/bizjust-erp | d3291e212bf89ab6e753194127b3951afcd02548 | [
"MIT"
] | null | null | null | #include "editcashpayment.h"
#include "ui_editcashpayment.h"
EditCashPayment::EditCashPayment(QWidget *parent) :
QWidget(parent),
ui(new Ui::EditCashPayment)
{
ui->setupUi(this);
loadform();
}
EditCashPayment::~EditCashPayment()
{
delete ui;
}
void EditCashPayment::autocompleter(QString sql, QLi... | 37.240469 | 208 | 0.589338 | bizjust |
a9ea4f8685f5ce87507b622001e45082faa98895 | 3,207 | cc | C++ | packages/desktop_multi_window/linux/window_channel.cc | sidevesh/flutter-plugins | 3a2df459a9ef7b59daa672e35e90fd01a0a577c5 | [
"MIT"
] | null | null | null | packages/desktop_multi_window/linux/window_channel.cc | sidevesh/flutter-plugins | 3a2df459a9ef7b59daa672e35e90fd01a0a577c5 | [
"MIT"
] | null | null | null | packages/desktop_multi_window/linux/window_channel.cc | sidevesh/flutter-plugins | 3a2df459a9ef7b59daa672e35e90fd01a0a577c5 | [
"MIT"
] | null | null | null | //
// Created by boyan on 2022/1/27.
//
#include "window_channel.h"
#include "gtk/gtk.h"
namespace {
struct MethodInvokeAsyncUserData {
public:
MethodInvokeAsyncUserData(FlMethodChannel *channel, FlMethodCall *method_call)
: channel(channel), method_call(method_call) {
g_object_ref(channel);
g_obj... | 32.393939 | 118 | 0.713751 | sidevesh |
a9ed25f300b42444b5b9e4f90338bb2326eb1a59 | 2,212 | cpp | C++ | src/QtComponents/Abstract/nScopedProgress.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Abstract/nScopedProgress.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | src/QtComponents/Abstract/nScopedProgress.cpp | Vladimir-Lin/QtComponents | e7f0a6abcf0504cc9144dcf59f3f14a52d08092c | [
"MIT"
] | null | null | null | #include <qtcomponents.h>
N::ScopedProgress:: ScopedProgress (Plan * p,QString format,int gap)
: plan ( p )
, Gap ( gap)
, Index (0 )
{
Progress = p... | 25.425287 | 68 | 0.49141 | Vladimir-Lin |
a9f253a1ce9a7ed7eccb19ea93f8d1fb803466b7 | 98 | cpp | C++ | Tensile/Source/lib/source/llvm/YAML.cpp | zjunweihit/Tensile | 68b73083c92eecc1b04eec1f006f28aea5628030 | [
"MIT"
] | 1 | 2021-12-03T09:42:10.000Z | 2021-12-03T09:42:10.000Z | Tensile/Source/lib/source/llvm/YAML.cpp | zjunweihit/Tensile | 68b73083c92eecc1b04eec1f006f28aea5628030 | [
"MIT"
] | null | null | null | Tensile/Source/lib/source/llvm/YAML.cpp | zjunweihit/Tensile | 68b73083c92eecc1b04eec1f006f28aea5628030 | [
"MIT"
] | null | null | null |
#include <Tensile/llvm/YAML.hpp>
namespace Tensile
{
namespace Serialization
{
}
}
| 8.909091 | 32 | 0.642857 | zjunweihit |
a9f254a79fb15aeb8e85560d33e08c5603f6b105 | 2,269 | cpp | C++ | src/error.cpp | cloose/qoembed | 2ecfbf104ae5975de4a96d967f255f1902bf22ff | [
"BSD-2-Clause"
] | 1 | 2015-11-09T03:51:05.000Z | 2015-11-09T03:51:05.000Z | src/error.cpp | cloose/qoembed | 2ecfbf104ae5975de4a96d967f255f1902bf22ff | [
"BSD-2-Clause"
] | null | null | null | src/error.cpp | cloose/qoembed | 2ecfbf104ae5975de4a96d967f255f1902bf22ff | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2013, Christian Loose
* 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 condi... | 26.694118 | 83 | 0.717937 | cloose |
a9f38653274be3f43662ef851733d52ea49eecaf | 7,177 | cpp | C++ | simulatoren_extern/qwt/src/moc/moc_qwt_plot_glcanvas.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 2 | 2021-12-06T08:05:12.000Z | 2022-03-22T13:56:38.000Z | simulatoren_extern/qwt/src/moc/moc_qwt_plot_glcanvas.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | null | null | null | simulatoren_extern/qwt/src/moc/moc_qwt_plot_glcanvas.cpp | SirTobias/DMPCRobotSimulation | e393538b37e5a63bfe4da94e9bd13feba45699db | [
"MIT"
] | 1 | 2022-03-29T12:46:37.000Z | 2022-03-29T12:46:37.000Z | /****************************************************************************
** Meta object code from reading C++ file 'qwt_plot_glcanvas.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.5.1)
**
** WARNING! All changes made in this file will be lost!
***************************************************... | 35.181373 | 97 | 0.622266 | SirTobias |
a9f5dfbd2da382e9c4795de21b6418afa81c6473 | 2,846 | cpp | C++ | src/caffe/layers/label_specific_add.cpp | soccergame/caffe-windows | 6119495e8f174077fd6485c4d44ba63d7575f8c5 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/label_specific_add.cpp | soccergame/caffe-windows | 6119495e8f174077fd6485c4d44ba63d7575f8c5 | [
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/label_specific_add.cpp | soccergame/caffe-windows | 6119495e8f174077fd6485c4d44ba63d7575f8c5 | [
"BSD-2-Clause"
] | null | null | null | #include <algorithm>
#include <vector>
#include "caffe/layers/label_specific_add_layer.hpp"
namespace caffe {
template <typename Dtype>
void LabelSpecificAddLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const LabelSpecificAddParameter& param =... | 34.707317 | 102 | 0.599086 | soccergame |
a9f8f92977cae15d2e123a2796c4061565b49be4 | 593 | cpp | C++ | Lesson 2 - Arrays/OddOccurrencesInArray.cpp | zhelybalov/codility | b4afafb7e4b76f80202daf949c2a5252e7562121 | [
"MIT"
] | null | null | null | Lesson 2 - Arrays/OddOccurrencesInArray.cpp | zhelybalov/codility | b4afafb7e4b76f80202daf949c2a5252e7562121 | [
"MIT"
] | null | null | null | Lesson 2 - Arrays/OddOccurrencesInArray.cpp | zhelybalov/codility | b4afafb7e4b76f80202daf949c2a5252e7562121 | [
"MIT"
] | null | null | null | #include <assert.h>
#include <vector>
int solution(std::vector<int> &A)
{
assert(A.size() % 2);
int res = 0;
for (const auto& elem : A)
{
res ^= elem;
}
return res;
}
int main()
{
assert(1 == solution(std::vector<int>({ 1 })));
assert(1 == solution(std::vector<int>({ 1, 1, 1 })... | 25.782609 | 69 | 0.532884 | zhelybalov |
a9fe672713bdead481c3ee3c928b9b6ab68a7958 | 1,691 | cpp | C++ | src/animation.cpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | src/animation.cpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | src/animation.cpp | crockeo/hc | a5f9eaa1051e8825fa765d120d8ea76682909a5a | [
"MIT"
] | null | null | null | #include "animation.hpp"
//////////////
// Includes //
#include <vector>
#include <tuple>
#include "spritesheet.hpp"
#include "rectangle.hpp"
#include "window.hpp"
//////////
// Code //
// Determining the index of order for a given time.
int Animation::determineIndex(float time) const {
return (int)(time / this... | 31.314815 | 122 | 0.661147 | crockeo |
a9ffbb487b711efcaa2433e29d8b2ec4d5f9ae0d | 1,761 | cpp | C++ | c++/leetcode/0444-Sequence_Reconstruction-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | 1 | 2020-03-02T10:56:22.000Z | 2020-03-02T10:56:22.000Z | c++/leetcode/0444-Sequence_Reconstruction-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | c++/leetcode/0444-Sequence_Reconstruction-M.cpp | levendlee/leetcode | 35e274cb4046f6ec7112cd56babd8fb7d437b844 | [
"Apache-2.0"
] | null | null | null | // 444 Sequence Reconstruction
// https://leetcode.com/problems/sequence-reconstruction
// version: 1; create time: 2020-02-15 22:33:07;
class Solution {
public:
bool tpSort(unordered_map<int, vector<int>>& edges,
vector<bool>& perm,
vector<bool>& temp,
int cur) {
... | 28.868852 | 78 | 0.449177 | levendlee |
a9fff53e081d0ba15e69f09dd7ac000419833b44 | 7,574 | cpp | C++ | src/modules/SD3/scripts/kalimdor/razorfen_downs/instance_razorfen_downs.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD3/scripts/kalimdor/razorfen_downs/instance_razorfen_downs.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | src/modules/SD3/scripts/kalimdor/razorfen_downs/instance_razorfen_downs.cpp | Zilvereyes/ServerThree | b61c215b000f199eb884ebc39844ebbbd0703a1b | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | null | null | null | /**
* ScriptDev3 is an extension for mangos providing enhanced features for
* area triggers, creatures, game objects, instances, items, and spells beyond
* the default database scripting in mangos.
*
* Copyright (C) 2006-2013 ScriptDev2 <http://www.scriptdev2.com/>
* Copyright (C) 2014-2016 MaNGOS <https://get... | 40.940541 | 236 | 0.574729 | Zilvereyes |
e701294eac4b3ac90fe27db0e2127464740bcf5b | 50 | hpp | C++ | src/boost_local_function_aux__function.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_local_function_aux__function.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_local_function_aux__function.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/local_function/aux_/function.hpp>
| 25 | 49 | 0.82 | miathedev |
e701e11fd061cfd370d4a2042844434e7da6aadd | 438 | cpp | C++ | src/launch_test.cpp | chargerKong/learning-ros2-launch-by-example | 9450c104b289639b097088d9f73d55f9abc78866 | [
"Apache-2.0"
] | 13 | 2021-11-29T08:25:48.000Z | 2022-03-12T01:58:57.000Z | src/launch_test.cpp | chargerKong/learning-ros2-launch-by-example | 9450c104b289639b097088d9f73d55f9abc78866 | [
"Apache-2.0"
] | 1 | 2022-01-18T04:57:08.000Z | 2022-02-09T10:39:28.000Z | src/launch_test.cpp | chargerKong/learning-ros2-launch-by-example | 9450c104b289639b097088d9f73d55f9abc78866 | [
"Apache-2.0"
] | 2 | 2022-02-09T02:51:48.000Z | 2022-03-03T09:57:51.000Z | #include "launch_test.hpp"
#include "rclcpp/rclcpp.hpp"
#include <iostream>
int main(int argc, char * argv[])
{
RCLCPP_INFO(rclcpp::get_logger("For arguements"),
"The number of arguments is %d, They are", argc);
for (int i = 0; i < argc; ++i)
{
RCLCPP_INFO(rclcpp::get_logger("For arguements"), argv[i]... | 25.764706 | 63 | 0.652968 | chargerKong |
e704a4152e019dff030d2ba855410f839c2303f8 | 3,025 | cpp | C++ | getic/gameitem.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/gameitem.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | getic/gameitem.cpp | circinusX1/qgetic | 112e20af4e940eae44af9cbf51362f362a743329 | [
"BSD-4-Clause"
] | null | null | null | // GameItem.cpp: implementation of the GameItem class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "gameitem.h"
#include "view2d.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
////////////////////////////////... | 19.391026 | 70 | 0.480331 | circinusX1 |
e70837f2aa3b772866930da0ba95af36443fff67 | 4,937 | cc | C++ | id_theft/functions/node_modules/grpc/deps/grpc/third_party/boringssl/crypto/fipsmodule/rand/ctrdrbg_test.cc | jluisfgarza/Id-Theft-Hack2018 | 101ef7d6d251ee1a4cd1716fb4f8f0edc31f53bf | [
"MIT"
] | null | null | null | id_theft/functions/node_modules/grpc/deps/grpc/third_party/boringssl/crypto/fipsmodule/rand/ctrdrbg_test.cc | jluisfgarza/Id-Theft-Hack2018 | 101ef7d6d251ee1a4cd1716fb4f8f0edc31f53bf | [
"MIT"
] | null | null | null | id_theft/functions/node_modules/grpc/deps/grpc/third_party/boringssl/crypto/fipsmodule/rand/ctrdrbg_test.cc | jluisfgarza/Id-Theft-Hack2018 | 101ef7d6d251ee1a4cd1716fb4f8f0edc31f53bf | [
"MIT"
] | null | null | null | /* Copyright (c) 2017, Google Inc.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DIS... | 41.141667 | 80 | 0.654243 | jluisfgarza |
e70bf67c42cc33a28e8231e5d57c4526447c2857 | 1,498 | hpp | C++ | Includes/Rosetta/PlayMode/Zones/IZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Includes/Rosetta/PlayMode/Zones/IZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Includes/Rosetta/PlayMode/Zones/IZone.hpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#ifndef ROSETTASTONE_PLAYMODE_IZONE_HPP
#define ROSETTASTONE_P... | 27.740741 | 79 | 0.696262 | Hearthstonepp |
e70f2c52eaad3ed8f92893e3ef0b5e06e2fbf341 | 37,347 | cpp | C++ | src/VROmafPacking/MpdGenerator.cpp | OpenVisualCloud/ImmersiveVideo | 4f68f0f2e910a17d6d5afb1e7c1ff196f5e29764 | [
"BSD-3-Clause"
] | null | null | null | src/VROmafPacking/MpdGenerator.cpp | OpenVisualCloud/ImmersiveVideo | 4f68f0f2e910a17d6d5afb1e7c1ff196f5e29764 | [
"BSD-3-Clause"
] | null | null | null | src/VROmafPacking/MpdGenerator.cpp | OpenVisualCloud/ImmersiveVideo | 4f68f0f2e910a17d6d5afb1e7c1ff196f5e29764 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2019, Intel Corporation
* 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 con... | 39.773163 | 193 | 0.658634 | OpenVisualCloud |
e712b672b23cb6af4ce1be082f20b1ad08a38058 | 6,719 | cpp | C++ | test/correctness/custom_cuda_context.cpp | voidcycles/Halide | 85b9f29ba7a497372d556f59b1ee0bb169c466e9 | [
"Apache-2.0"
] | 4,303 | 2015-01-02T12:04:37.000Z | 2022-03-31T11:35:06.000Z | test/correctness/custom_cuda_context.cpp | voidcycles/Halide | 85b9f29ba7a497372d556f59b1ee0bb169c466e9 | [
"Apache-2.0"
] | 4,323 | 2015-01-01T13:31:25.000Z | 2022-03-31T22:43:57.000Z | test/correctness/custom_cuda_context.cpp | voidcycles/Halide | 85b9f29ba7a497372d556f59b1ee0bb169c466e9 | [
"Apache-2.0"
] | 1,032 | 2015-01-12T12:50:16.000Z | 2022-03-28T01:55:11.000Z | #include "Halide.h"
using namespace Halide;
int (*cuStreamCreate)(void **, uint32_t) = nullptr;
int (*cuCtxCreate)(void **, uint32_t, int) = nullptr;
int (*cuCtxDestroy)(void *) = nullptr;
int (*cuMemAlloc)(void **, size_t) = nullptr;
int (*cuMemFree)(void *) = nullptr;
int (*cuCtxSetCurrent)(void *) = nullptr;
stru... | 36.318919 | 104 | 0.612889 | voidcycles |
e7132bfefe91529bb91fec31c27c53f28810199b | 19,019 | cxx | C++ | src/RecoilCorrections/RecoilCorrector.cxx | eguiraud/CROWN | 62abab1e9021a0410d21196018d78a9a9e41ffb9 | [
"MIT"
] | 3 | 2021-05-07T12:22:39.000Z | 2022-02-15T08:33:48.000Z | src/RecoilCorrections/RecoilCorrector.cxx | eguiraud/CROWN | 62abab1e9021a0410d21196018d78a9a9e41ffb9 | [
"MIT"
] | 53 | 2021-05-06T11:31:48.000Z | 2022-03-30T06:51:48.000Z | src/RecoilCorrections/RecoilCorrector.cxx | eguiraud/CROWN | 62abab1e9021a0410d21196018d78a9a9e41ffb9 | [
"MIT"
] | 1 | 2021-05-01T09:52:46.000Z | 2021-05-01T09:52:46.000Z | #include "RecoilCorrector.hxx"
#include "../utility/Logger.hxx"
RecoilCorrector::RecoilCorrector(std::string filepath) {
fileName = filepath;
TFile *file = new TFile(fileName, "READ");
if (file->IsZombie()) {
Logger::get("RecoilCorrector")
->debug("file {} is not found... quitting ", ... | 41.255965 | 80 | 0.536201 | eguiraud |
e715c6227c7a4844283e8e1fb7cbef3a779c93dc | 429 | hpp | C++ | include/Cube.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | 1 | 2020-10-26T17:53:33.000Z | 2020-10-26T17:53:33.000Z | include/Cube.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | include/Cube.hpp | sltn011/OpenGL-Learning | 7f3b8cd730ba9d300406cdd6608afb1db6d23b31 | [
"MIT"
] | null | null | null | #ifndef OGL_CUBE_HPP
#define OGL_CUBE_HPP
#include "Model.hpp"
namespace OGL {
class Cube : public Model {
public:
Cube(
float side
);
Cube(
float a,
float b,
float c
);
protected:
void generateMesh(
);
... | 12.617647 | 31 | 0.477855 | sltn011 |
e719167d04ef8567d181085e2543fc1bd7aeccc7 | 1,480 | cpp | C++ | userspace/apps/task-manager/widgets/RAMGraph.cpp | ammarfaizi2/skift | df0013c4c2caee917d1bba994cf3bd16c206ed2a | [
"MIT"
] | 1 | 2021-08-03T16:12:50.000Z | 2021-08-03T16:12:50.000Z | userspace/apps/task-manager/widgets/RAMGraph.cpp | ammarfaizi2/skift | df0013c4c2caee917d1bba994cf3bd16c206ed2a | [
"MIT"
] | null | null | null | userspace/apps/task-manager/widgets/RAMGraph.cpp | ammarfaizi2/skift | df0013c4c2caee917d1bba994cf3bd16c206ed2a | [
"MIT"
] | null | null | null | #include <libwidget/Elements.h>
#include <libwidget/Layouts.h>
#include "task-manager/widgets/RAMGraph.h"
using namespace Widget;
using namespace Graphic;
namespace TaskManager
{
RAMGraphComponent::RAMGraphComponent(RefPtr<TaskModel> tasks) : _tasks{tasks}
{
_usage = make<Widget::GraphModel>();
_update = o... | 26.428571 | 98 | 0.533108 | ammarfaizi2 |
e7193e62eb5971894969a662bcdaa6cffd4605ff | 6,287 | cpp | C++ | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableMapTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | null | null | null | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableMapTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | null | null | null | rd-cpp/src/rd_core_cpp/src/test/cases/ViewableMapTest.cpp | yvvan/rd | 87ce10eb012af398689fe0a5b9100a2ef8edfdcc | [
"Apache-2.0"
] | 1 | 2020-06-02T12:08:09.000Z | 2020-06-02T12:08:09.000Z | #include <gtest/gtest.h>
#include "reactive/ViewableMap.h"
#include "test_util.h"
using namespace rd;
using namespace rd::test;
using namespace rd::test::util;
TEST(viewable_map, advise) {
std::unique_ptr<IViewableMap<int, int> > map = std::make_unique<ViewableMap<int, int>>();
map->set(0, 1);
map->set(1, 1);
ma... | 27.574561 | 106 | 0.615238 | yvvan |
e71973b9d5e4d5e9157e7d89e7bb7d2b411c19ab | 1,108 | hpp | C++ | RedBlackTree/rb_tree/rb_tree.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | RedBlackTree/rb_tree/rb_tree.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | RedBlackTree/rb_tree/rb_tree.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #include "rb_tree.h"
namespace btree {
template <comparable_key key_t_> inline rb_tree<key_t_>::rb_tree() : root_(nullptr) {}
template <comparable_key key_t_> inline rb_tree<key_t_>::~rb_tree() {
clear(root_);
return;
}
template <comparable_key key_t_>
inline rb_tree<key_t_>::rb_tree(rb_tree<key_t_> &&other) : ... | 24.086957 | 86 | 0.692238 | suiyili |
e71cc74b4c098310974999d0884260a2c71c65c0 | 3,111 | hpp | C++ | src/dataset.hpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | 2 | 2020-01-04T02:35:40.000Z | 2021-11-29T19:11:27.000Z | src/dataset.hpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | null | null | null | src/dataset.hpp | Teredic/DefyX | 5d71a3e8076e850acfeb18ec3612a2ec2a5b1308 | [
"BSD-3-Clause"
] | 2 | 2019-07-30T18:40:07.000Z | 2019-12-22T11:01:13.000Z | /*
Copyright (c) 2018-2019, tevador <tevador@gmail.com>
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... | 37.939024 | 106 | 0.787207 | Teredic |
e71d83f2d40590d35a0b90093100323905db0e27 | 5,558 | cpp | C++ | gse/src/v20191112/model/DescribePlayerSessionsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | gse/src/v20191112/model/DescribePlayerSessionsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | gse/src/v20191112/model/DescribePlayerSessionsRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 28.502564 | 110 | 0.74901 | suluner |
e71de9caba2847c225b192f0141e4849f4da1056 | 2,263 | cpp | C++ | openjudge/3470.cpp | banbao990/OJ | 860a8ceb4de3816801f40d941926d8724cd5dc60 | [
"MIT"
] | null | null | null | openjudge/3470.cpp | banbao990/OJ | 860a8ceb4de3816801f40d941926d8724cd5dc60 | [
"MIT"
] | null | null | null | openjudge/3470.cpp | banbao990/OJ | 860a8ceb4de3816801f40d941926d8724cd5dc60 | [
"MIT"
] | null | null | null | /**********************************************************************
* author: banbao *
* language: c++/c *
* link: http://bailian.openjudge.cn/practice/3470 *
*******************************... | 20.572727 | 72 | 0.50243 | banbao990 |
e7244102ce0035bf5caa2a0b1542e514491ce1e4 | 13,069 | cpp | C++ | src/tests/text_parser_test.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 3 | 2017-10-02T03:18:59.000Z | 2020-11-01T09:21:28.000Z | src/tests/text_parser_test.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 2 | 2019-04-06T21:48:08.000Z | 2020-05-22T23:38:54.000Z | src/tests/text_parser_test.cpp | GhostInABottle/octopus_engine | 50429e889493527bdc0e78b307937002e0f2c510 | [
"BSD-2-Clause"
] | 1 | 2017-07-17T20:58:26.000Z | 2017-07-17T20:58:26.000Z | #include <boost/test/unit_test.hpp>
#include "../../include/text_parser.hpp"
#include "../../include/utility/string.hpp"
namespace detail {
std::string invalid_parsing_cases[] = {
"{", // open brace at the end
"a{", // open brace at the end
"a{/", // close brac... | 40.088957 | 139 | 0.675415 | GhostInABottle |
e7250a33522edf69aa1dd9c2d5e5c0b89787ec60 | 1,236 | cc | C++ | 9465_sticker/solution.cc | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | 9465_sticker/solution.cc | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | 9465_sticker/solution.cc | YouminHa/acmicpc | dddb457a3cfb03df34db0ed07680ac1a7be6cdd4 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#define min(a, b) ((a)<(b)?(a):(b))
#define max(a, b) ((a)>(b)?(a):(b))
#define MAX_N 100001
int sticker[2][MAX_N];
int dp[2][MAX_N];
int N, T;
void read() {
cin >> N;
for (int i = 0; i < 2; ++i) {
for (int j = 0; j < N; ++j) {
... | 21.684211 | 90 | 0.36246 | YouminHa |
e728bba7b618a7d99410cb3075cc7184c8f2d167 | 575 | cpp | C++ | dp/min_jumps_required.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 5 | 2020-10-01T13:08:35.000Z | 2021-02-01T17:51:15.000Z | dp/min_jumps_required.cpp | nancyanand2807/algorithm-ds | 9f79bd9a37bdf858a512ded44aa33040e8a7b9af | [
"MIT"
] | 21 | 2020-10-01T12:58:05.000Z | 2020-10-07T11:58:30.000Z | dp/min_jumps_required.cpp | sansyrox/summer_of_cpp | e07acee254e25febe5b11bc1adc743f5aaf57cc8 | [
"MIT"
] | 23 | 2020-10-01T12:59:06.000Z | 2020-10-15T13:08:34.000Z | // MINIMUM JUMPS REQUIRED
// You are provided an array of integers where each element represents the max number of steps you can take to move ahead.
// You need to check that how many minimum steps required to reach at the end of the array.
#include<iostream>
using namespace std;
int helper(int i,int n, int arr[]) {
... | 17.424242 | 122 | 0.575652 | nancyanand2807 |
e72a1ca5f6b08987fd8a1bec1815f6c4a71a8800 | 4,387 | cpp | C++ | cocos2dx_playground/Classes/step_rain_of_chaos_game_EnemyNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2020-06-11T17:09:44.000Z | 2021-12-25T00:34:33.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_EnemyNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2019-12-21T15:01:01.000Z | 2020-12-05T15:42:43.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_EnemyNode.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 1 | 2020-09-07T01:32:16.000Z | 2020-09-07T01:32:16.000Z | #include "step_rain_of_chaos_game_EnemyNode.h"
#include <new>
#include <numeric>
#include <utility>
#include "2d/CCSprite.h"
#include "audio/include/AudioEngine.h"
#include "base/CCDirector.h"
#include "step_mole_AnimationComponent.h"
#include "step_mole_CircleCollisionComponent.h"
#include "step_rain_of_chaos_game_... | 24.372222 | 139 | 0.69592 | R2Road |
e72b3297784bd858fdce74714ae7172d26d68960 | 2,844 | cpp | C++ | src/engine/core/lua/LuaScene.cpp | xCocoDev/Sealed | 637946ccb1c8af2e95033533cb2a84dd3b5e22af | [
"Apache-2.0"
] | null | null | null | src/engine/core/lua/LuaScene.cpp | xCocoDev/Sealed | 637946ccb1c8af2e95033533cb2a84dd3b5e22af | [
"Apache-2.0"
] | null | null | null | src/engine/core/lua/LuaScene.cpp | xCocoDev/Sealed | 637946ccb1c8af2e95033533cb2a84dd3b5e22af | [
"Apache-2.0"
] | null | null | null | //
// Created by xCocoDev on 30/12/18.
//
#include "LuaScene.h"
#include <iostream>
#include <lua.hpp>
#include <cassert>
#include <map>
#include <vector>
#include <optional>
#include <tuple>
#include "engine/Engine.h"
#include "engine/core/lua/LuaStack.h"
#include "engine/resources/Resources.h"
#include "engine/core... | 22.752 | 109 | 0.63045 | xCocoDev |
e732d7bd28edfaead787578e8b928e66d95d4f9c | 3,134 | cpp | C++ | ShaderGLLib/Device.cpp | EPAC-Saxon/advance-obj-JuliePreperier | 5adc1a308c8ad6bed9555dc507f83437a5b5208c | [
"MIT"
] | null | null | null | ShaderGLLib/Device.cpp | EPAC-Saxon/advance-obj-JuliePreperier | 5adc1a308c8ad6bed9555dc507f83437a5b5208c | [
"MIT"
] | null | null | null | ShaderGLLib/Device.cpp | EPAC-Saxon/advance-obj-JuliePreperier | 5adc1a308c8ad6bed9555dc507f83437a5b5208c | [
"MIT"
] | null | null | null | #include "Device.h"
#include <stdexcept>
#include <glm/gtc/matrix_transform.hpp>
#include "Frame.h"
#include "Render.h"
namespace sgl {
Device::Device(
void* gl_context,
const std::pair<std::uint32_t, std::uint32_t> size) :
gl_context_(gl_context),
size_(size)
{
// Initialize GLEW.
if (GLEW_OK != glew... | 23.044118 | 70 | 0.685067 | EPAC-Saxon |
e73328baf01437c4280ab49f30d116b246021743 | 1,673 | hpp | C++ | TrollGameEngine/TrollMath/Triangle.hpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | TrollGameEngine/TrollMath/Triangle.hpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | TrollGameEngine/TrollMath/Triangle.hpp | LeviOfficalDriftingRealmsDev/DriftingRealmsWorldEditor | 8d3edb8c1ef18447a1689e81128ad2c32ca0262e | [
"MIT"
] | null | null | null | #pragma once
#include "Shape.hpp"
#include "Point.hpp"
namespace TMath{
class Triangle : public Shape{
public:
enum POINTS{
POINT_A,
POINT_B,
POINT_C
};
Triangle();
~Triangle();
Triangle(Triangle... | 28.355932 | 98 | 0.534967 | LeviOfficalDriftingRealmsDev |
e7348ee6ad1713b4cb9b1d53783fd7cc7a120058 | 513 | cpp | C++ | Game/Game/Enemy.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | 1 | 2016-09-24T06:55:51.000Z | 2016-09-24T06:55:51.000Z | Game/Game/Enemy.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | 1 | 2017-07-18T03:38:18.000Z | 2017-07-18T03:38:18.000Z | Game/Game/Enemy.cpp | PhamMinhMan/Game | 794c67bd929f02d82746210a66b84213a91ef09c | [
"Apache-2.0"
] | null | null | null | #include "Enemy.h"
#include"Simon.h"
//bool Enemy::update()
//{
// return false;
//}
//
//bool Enemy::draw()
//{
// return false;
//}
void Enemy::onInterserct(GObject * other)
{
if (other == SIMON->whip && SIMON->onAttack && SIMON->whip->curFrame==2)
{
this->alive = false;
}
if (other==SIMON)
{
SIMON->setAc... | 12.214286 | 73 | 0.575049 | PhamMinhMan |
e73be75fa37c907337f6c9a679a50d9fe82bdc61 | 229 | cpp | C++ | src/sequentialSolver/boardSeq.cpp | satvikmaurya/connect4_solver | a19ef4785ad36ad812e34b1295e87659f133de4e | [
"BSD-2-Clause"
] | null | null | null | src/sequentialSolver/boardSeq.cpp | satvikmaurya/connect4_solver | a19ef4785ad36ad812e34b1295e87659f133de4e | [
"BSD-2-Clause"
] | null | null | null | src/sequentialSolver/boardSeq.cpp | satvikmaurya/connect4_solver | a19ef4785ad36ad812e34b1295e87659f133de4e | [
"BSD-2-Clause"
] | null | null | null | #include "boardSeq.hpp"
BoardSequential::BoardSequential(uint_fast8_t width = 7, uint_fast8_t height = 6,
uint_fast8_t winningStreakSize = 4) : Board(width, height,
winningStreakSize) {
// Nothing to do for now
} | 32.714286 | 81 | 0.720524 | satvikmaurya |
e73cc8ff3e6836fd208913c80eb1633f2a6bec3e | 2,710 | cpp | C++ | robot_ws/src/robot_interface/nsra2/src/message_handler/message_handler.cpp | NS-Robotics/NSRA2 | 86dbd504ed268fa951c61b010924bea6faff5a43 | [
"BSD-3-Clause"
] | null | null | null | robot_ws/src/robot_interface/nsra2/src/message_handler/message_handler.cpp | NS-Robotics/NSRA2 | 86dbd504ed268fa951c61b010924bea6faff5a43 | [
"BSD-3-Clause"
] | null | null | null | robot_ws/src/robot_interface/nsra2/src/message_handler/message_handler.cpp | NS-Robotics/NSRA2 | 86dbd504ed268fa951c61b010924bea6faff5a43 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD 3-Clause License
*
* Copyright (c) 2021, Noa Sendlhofer
* 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 noti... | 44.42623 | 117 | 0.747601 | NS-Robotics |
e73d2f6fd0a1dc4ef8ec5b815267cf60b1355b0c | 3,464 | cpp | C++ | ragnarok/ds11/dev/client.cpp | kaina/sandbox | 15a464fe1a1f17f4d475947ceeffa41df4b3eba5 | [
"WTFPL"
] | 5 | 2015-10-30T12:12:37.000Z | 2018-04-23T15:46:26.000Z | ragnarok/ds11/dev/client.cpp | yuiAs/sandbox | 15a464fe1a1f17f4d475947ceeffa41df4b3eba5 | [
"WTFPL"
] | null | null | null | ragnarok/ds11/dev/client.cpp | yuiAs/sandbox | 15a464fe1a1f17f4d475947ceeffa41df4b3eba5 | [
"WTFPL"
] | 2 | 2016-11-29T10:14:53.000Z | 2017-10-23T18:05:11.000Z | #include "client.h"
#include "dbgprint.h"
////////////////////////////////////////////////////////////////////////////////
Client::Client()
{
::CoInitializeEx(NULL, COINIT_MULTITHREADED);
}
Client::~Client()
{
::CoUninitialize();
}
///////////////////////////////////////////////////////////////... | 27.935484 | 105 | 0.597286 | kaina |
e73f21f7bd5ebb776ce5e950e1035182b32018ad | 6,336 | cpp | C++ | src/tests/http_authentication_tests.cpp | m4rvin/Mesos_DRFH | 212486a9349cbec91724d13e6bbc82f1215706aa | [
"Apache-2.0"
] | 4 | 2016-03-15T14:54:34.000Z | 2018-01-03T13:52:10.000Z | src/tests/http_authentication_tests.cpp | Acidburn0zzz/mesos | 3562f95d0cd216634b53217710e60c25ff7524d1 | [
"Apache-2.0"
] | null | null | null | src/tests/http_authentication_tests.cpp | Acidburn0zzz/mesos | 3562f95d0cd216634b53217710e60c25ff7524d1 | [
"Apache-2.0"
] | 1 | 2019-03-04T07:03:33.000Z | 2019-03-04T07:03:33.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 26.621849 | 78 | 0.730745 | m4rvin |
8d441dc4fb553b1c59456b99f4c66975dcdfe11b | 975 | cpp | C++ | lib/States/States.cpp | henrybatt/Morph-2020 | 174a310e373a639904609bd50cdd918257ea0b20 | [
"MIT"
] | null | null | null | lib/States/States.cpp | henrybatt/Morph-2020 | 174a310e373a639904609bd50cdd918257ea0b20 | [
"MIT"
] | null | null | null | lib/States/States.cpp | henrybatt/Morph-2020 | 174a310e373a639904609bd50cdd918257ea0b20 | [
"MIT"
] | null | null | null | #include "States.h"
#include "StatesMovement.h"
using namespace States::Global;
using namespace States::Timers;
Kick States::Global::kick = Kick();
void States::timer_manager() {
kickerTimer->Update();
if (robotState.isAttack) {
if (robotState.ball.visible()) {
attackIdleTimer->Stop();
... | 20.3125 | 94 | 0.667692 | henrybatt |
8d4532e57c391c68810829f29826ac1a4d83506f | 690 | cpp | C++ | raygame/Agent.cpp | MatthewRagas/AI_Agents | 7c513fe63956929bb55ee1f5e6fdf756422497fc | [
"MIT"
] | null | null | null | raygame/Agent.cpp | MatthewRagas/AI_Agents | 7c513fe63956929bb55ee1f5e6fdf756422497fc | [
"MIT"
] | null | null | null | raygame/Agent.cpp | MatthewRagas/AI_Agents | 7c513fe63956929bb55ee1f5e6fdf756422497fc | [
"MIT"
] | null | null | null | #include "Agent.h"
#include "Behavior.h"
void Agent::update(float deltaTime)
{
//Set total force to zero
//For each Behavior in the Behavior list
for (auto i = m_behaviorList.begin(); i != m_behaviorList.end(); i++) {
//Call the Behavior's update function
(*i)->update(this, deltaTime);
}
//Add velocity times... | 22.258065 | 72 | 0.713043 | MatthewRagas |
8d45673973cda05c40b735fabeee19006ddb36d6 | 4,455 | cpp | C++ | Code/Libraries/Math/src/ray.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Math/src/ray.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | Code/Libraries/Math/src/ray.cpp | kas1e/Eldritch | 032b4ac52f7508c89efa407d6fe60f40c6281fd9 | [
"Zlib"
] | null | null | null | #include "core.h"
#include "ray.h"
#include "triangle.h"
#include "aabb.h"
#include "collisionmesh.h"
#include "collisioninfo.h"
#include "mathcore.h"
#include "sphere.h"
#include "ellipsoid.h"
Ray::Ray()
: m_Point(Vector(0.0f, 0.0f, 0.0f)),
m_Direction(Vector(0.0f, 0.0f, 0.0f)) {}
Ray::Ray(const Vector& Po... | 26.517857 | 80 | 0.586532 | kas1e |
8d477347015807d6d5f0c04c9254539a1ea4b5e9 | 69,370 | cpp | C++ | src/qt/src/gui/kernel/qdnd_x11.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 25 | 2015-07-21T18:14:57.000Z | 2021-02-21T10:00:48.000Z | src/qt/src/gui/kernel/qdnd_x11.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 3 | 2015-01-19T11:31:54.000Z | 2015-07-01T13:28:48.000Z | src/qt/src/gui/kernel/qdnd_x11.cpp | jefleponot/phantomjs | 4333acfa798677ec895d73673898c3ffad36e4c0 | [
"BSD-3-Clause"
] | 9 | 2016-03-14T13:25:14.000Z | 2021-02-21T10:09:22.000Z | /****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the QtGui module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees ... | 32.660075 | 155 | 0.588468 | jefleponot |
8d4bdc6fc5e1b8c12243019bc21aede02ca20278 | 1,296 | cpp | C++ | android-28/android/bluetooth/le/PeriodicAdvertisingParameters_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/bluetooth/le/PeriodicAdvertisingParameters_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-30/android/bluetooth/le/PeriodicAdvertisingParameters_Builder.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "./PeriodicAdvertisingParameters.hpp"
#include "./PeriodicAdvertisingParameters_Builder.hpp"
namespace android::bluetooth::le
{
// Fields
// QJniObject forward
PeriodicAdvertisingParameters_Builder::PeriodicAdvertisingParameters_Builder(QJniObject obj) : JObject(obj) {}
// Constructors
PeriodicAdvert... | 29.454545 | 140 | 0.785494 | YJBeetle |
8d5060ffabd01d1bc37e382cfe4cee47235c687d | 2,113 | cpp | C++ | Graphics/src/ObjectLight.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | 2 | 2019-01-21T20:47:29.000Z | 2020-01-09T01:08:24.000Z | Graphics/src/ObjectLight.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | Graphics/src/ObjectLight.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | /**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#include "ObjectLight.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/transform2.hpp>
#include <glm/gtx/projection.hpp>
typedef glm::mat4... | 35.813559 | 94 | 0.742546 | MarcoLotto |
8d52c58dfb35e61deef7beaaead83680078f95a3 | 6,589 | hpp | C++ | include/mi4/Mesh.hpp | tmichi/mi4 | 238278cd6c3e088a08920155f048bc74963986fb | [
"MIT"
] | null | null | null | include/mi4/Mesh.hpp | tmichi/mi4 | 238278cd6c3e088a08920155f048bc74963986fb | [
"MIT"
] | 1 | 2018-05-28T02:28:58.000Z | 2018-05-28T03:00:24.000Z | include/mi4/Mesh.hpp | tmichi/mi4 | 238278cd6c3e088a08920155f048bc74963986fb | [
"MIT"
] | null | null | null | /**
* @file Mesh.hpp
* @brief
*/
#ifndef MI4_MESH_HPP
#define MI4_MESH_HPP 1
#include <iostream>
#include <vector>
#include <utility>
#include <deque>
#include <map>
#include <cmath>
#include <Eigen/Dense>
namespace mi4
{
class Mesh
{
private:
std::string _na... | 36.005464 | 95 | 0.356807 | tmichi |
8d54631f82d36a51a3953815337756bd74e4b082 | 5,360 | cpp | C++ | field/src/ofApp.cpp | dvalim/art-automata | 2d441ccffac2dfaa2536b047b69cfeda25594390 | [
"MIT"
] | 15 | 2019-06-07T00:44:50.000Z | 2022-03-12T20:59:00.000Z | field/src/ofApp.cpp | dvalim/art-automata | 2d441ccffac2dfaa2536b047b69cfeda25594390 | [
"MIT"
] | null | null | null | field/src/ofApp.cpp | dvalim/art-automata | 2d441ccffac2dfaa2536b047b69cfeda25594390 | [
"MIT"
] | null | null | null | #include "ofApp.h"
#include <random>
#include "flame.h"
ofTrueTypeFont font;
ofFbo buffer;
int seed;
std::string seedstring;
std::vector<int> angles;
const int width = 1000;
const int height = 1000;
double time_limit = 25;
std::mt19937 engine;
double gaussian(double mean, double deviation) {
std::normal_distri... | 26.666667 | 147 | 0.484328 | dvalim |
8d54f412f3c4c1bae35058e13eb8b679c4d91ee8 | 2,840 | cpp | C++ | test/se2/gtest_se2_tangent.cpp | mindbeast/manif | 8b4fdc3c18fe3f98cf60bb9a405f2bb393bd6a40 | [
"MIT"
] | 876 | 2019-01-15T19:04:25.000Z | 2022-03-29T21:52:12.000Z | test/se2/gtest_se2_tangent.cpp | mindbeast/manif | 8b4fdc3c18fe3f98cf60bb9a405f2bb393bd6a40 | [
"MIT"
] | 191 | 2019-01-17T17:14:18.000Z | 2022-03-21T09:08:26.000Z | test/se2/gtest_se2_tangent.cpp | mindbeast/manif | 8b4fdc3c18fe3f98cf60bb9a405f2bb393bd6a40 | [
"MIT"
] | 148 | 2019-01-17T12:50:08.000Z | 2022-03-27T15:24:00.000Z | #include <gtest/gtest.h>
#include "manif/SE2.h"
using namespace manif;
TEST(TEST_SE2, TEST_SE2_TANGENT_0)
{
SE2Tangentd so2tan(4,2,MANIF_PI);
EXPECT_DOUBLE_EQ(4, so2tan.x());
EXPECT_DOUBLE_EQ(2, so2tan.y());
EXPECT_DOUBLE_EQ(MANIF_PI, so2tan.angle());
}
TEST(TEST_SE2, TEST_SE2_TANGENT_DATA)
{
SE2Tangentd... | 21.037037 | 55 | 0.686268 | mindbeast |
8d552026891859313279d7fc60f60b03bf7bde07 | 134,951 | cpp | C++ | LynxConstructor/release/main_qml.cpp | Kjelland/lynxLib | d3e8c6f9df19d258438451aec14a0a6cfc49bf1e | [
"Apache-2.0"
] | null | null | null | LynxConstructor/release/main_qml.cpp | Kjelland/lynxLib | d3e8c6f9df19d258438451aec14a0a6cfc49bf1e | [
"Apache-2.0"
] | null | null | null | LynxConstructor/release/main_qml.cpp | Kjelland/lynxLib | d3e8c6f9df19d258438451aec14a0a6cfc49bf1e | [
"Apache-2.0"
] | null | null | null | // /main.qml
namespace QmlCacheGeneratedCode {
namespace _0x5f__main_qml {
extern const unsigned char qmlData alignas(16) [] = {
0x71,0x76,0x34,0x63,0x64,0x61,0x74,0x61,
0x20,0x0,0x0,0x0,0x3,0xc,0x5,0x0,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
0x34,0x77,0x0,0x0,0x35,0x65,0x61,0x64,
0x33,0x39,0x33,0x65,0x62,0x61,0x30,0x66,
0x... | 35.290533 | 53 | 0.745337 | Kjelland |
8d55858063b3bb6a080d04206b319391979788ca | 1,506 | hpp | C++ | Include/Renderer/GameRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Include/Renderer/GameRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | Include/Renderer/GameRenderer.hpp | amitukind/WebGL-Game-Engine | c78973803938c1cfba703d9bb437ec46a4c48045 | [
"Unlicense"
] | null | null | null | /*
Copyright (c) 2018-2021 Piotr Doan. All rights reserved.
Software distributed under the permissive MIT License.
*/
#pragma once
#include <Common/Event/EventReceiver.hpp>
#include <Core/EngineSystem.hpp>
namespace System
{
class Window;
}
namespace Graphics
{
class RenderContext;
class SpriteR... | 21.826087 | 83 | 0.653386 | amitukind |
8d5cddaacdf1cace18ed3bec0a6ffed1b07e084a | 586 | cpp | C++ | 1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n/1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 2 | 2022-01-02T19:15:00.000Z | 2022-01-05T21:12:24.000Z | 1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n/1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | null | null | null | 1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n/1415-the-k-th-lexicographical-string-of-all-happy-strings-of-length-n.cpp | Ananyaas/LeetCodeDaily | e134e20ac02f26dc40881c376656d3294be0df2c | [
"MIT"
] | 1 | 2022-03-11T17:11:07.000Z | 2022-03-11T17:11:07.000Z | class Solution {
public:
vector<char> vals={'a','b','c'};
vector<string>res;
void helper(int n,int k,string s,int start){
if(n==s.length()){
res.push_back(s);
return;
}
for(int i=0;i<vals.size();i++){
if(s.back()!=vals[i])
{s.push_b... | 21.703704 | 48 | 0.423208 | Ananyaas |
8d5d91bea11641585cb1c0d334e2e32d28e659a9 | 1,550 | cpp | C++ | engine/src/components/scene.cpp | southdy/thunder | 4df2904da3983ac795ee00ca43fd0c6b771a2df5 | [
"Apache-2.0"
] | 1 | 2021-09-27T06:18:50.000Z | 2021-09-27T06:18:50.000Z | engine/src/components/scene.cpp | southdy/thunder | 4df2904da3983ac795ee00ca43fd0c6b771a2df5 | [
"Apache-2.0"
] | null | null | null | engine/src/components/scene.cpp | southdy/thunder | 4df2904da3983ac795ee00ca43fd0c6b771a2df5 | [
"Apache-2.0"
] | null | null | null | #include "components/scene.h"
#include "components/actor.h"
#include "components/nativebehaviour.h"
#include "components/private/postprocessorsettings.h"
class ScenePrivate {
public:
ScenePrivate() :
m_Dirty(true),
m_Update(false) {
}
bool m_Dirty;
bool m_Update;
PostProcessSet... | 21.527778 | 97 | 0.690968 | southdy |
8d658b605e7de251313ff4967454155397852b1d | 271 | hpp | C++ | drawable/Size2D.hpp | DawidPi/gameForTMS | 0ba50dc12417a5cb07dfc5be0ecf4c144bd39c41 | [
"BSD-3-Clause"
] | null | null | null | drawable/Size2D.hpp | DawidPi/gameForTMS | 0ba50dc12417a5cb07dfc5be0ecf4c144bd39c41 | [
"BSD-3-Clause"
] | null | null | null | drawable/Size2D.hpp | DawidPi/gameForTMS | 0ba50dc12417a5cb07dfc5be0ecf4c144bd39c41 | [
"BSD-3-Clause"
] | null | null | null | #ifndef SRC_DRAWABLE_SIZE2D_HPP_
#define SRC_DRAWABLE_SIZE2D_HPP_
#include "Point2D.hpp"
namespace Graphics{
template <typename T>
class Size2D : public Point2D<T>{
public:
T area() const {return width() * height();}
};
}
#endif /* SRC_DRAWABLE_SIZE2D_HPP_ */
| 15.941176 | 45 | 0.730627 | DawidPi |
8d65a713e2b7541d7044125d28d3cb2ce2cf2fa6 | 1,836 | cpp | C++ | Examples/Display/Particle/Sources/Demos/framerate_counter.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Examples/Display/Particle/Sources/Demos/framerate_counter.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | Examples/Display/Particle/Sources/Demos/framerate_counter.cpp | ValtoFrameworks/ClanLib | 2d6b59386ce275742653b354a1daab42cab7cb3e | [
"Linux-OpenIB"
] | null | null | null | /*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... | 29.142857 | 78 | 0.709695 | ValtoFrameworks |
8d6798b3ce483df042cb2b3b542c518dcb500cee | 164 | hpp | C++ | test-files/HeaderSL_C.hpp | Sidelobe/HeaderNotice | 5e1ef3ef02eab1270764543840175bdd8ccc8c95 | [
"Unlicense"
] | 1 | 2020-04-20T15:31:24.000Z | 2020-04-20T15:31:24.000Z | test-files/HeaderSL_C.hpp | Sidelobe/HeaderNotice | 5e1ef3ef02eab1270764543840175bdd8ccc8c95 | [
"Unlicense"
] | null | null | null | test-files/HeaderSL_C.hpp | Sidelobe/HeaderNotice | 5e1ef3ef02eab1270764543840175bdd8ccc8c95 | [
"Unlicense"
] | null | null | null | /** Copyright (c) 2020. All Rights Reserved. */
#pragma once
// COMMMENTS
//
/** Comment */
#include <string>
namespace MyProject
{
} // namespace MyProject
| 9.647059 | 47 | 0.646341 | Sidelobe |
8d682879117df7e9f2859489fe6e1d9efba35f5f | 808 | hpp | C++ | libs/imageds2d/include/sge/imageds2d/view/data.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/imageds2d/include/sge/imageds2d/view/data.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/imageds2d/include/sge/imageds2d/view/data.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 SGE_IMAGEDS2D_VIEW_DATA_HPP_INCLUDED
#define SGE_IMAGEDS2D_VIEW_DATA_HPP_INCLUDED
#include... | 24.484848 | 79 | 0.77104 | cpreh |
8d68b16ecf48ead54e1b03b14e0a25b60c1231b6 | 5,281 | cpp | C++ | ruby/video/directdraw.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 10 | 2019-12-19T01:19:41.000Z | 2021-02-18T16:30:29.000Z | ruby/video/directdraw.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | ruby/video/directdraw.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | null | null | null | #include <ddraw.h>
#undef interface
struct VideoDirectDraw : VideoDriver {
VideoDirectDraw& self = *this;
VideoDirectDraw(Video& super) : VideoDriver(super) {}
~VideoDirectDraw() { terminate(); }
auto create() -> bool override {
super.setShader("Blur");
return initialize();
}
auto driver() -> str... | 32.006061 | 102 | 0.689074 | 13824125580 |
8d6ab04e14ddcb3a137c89d1173c321899c5362b | 1,248 | cpp | C++ | test/std/algorithms/alg.modifying.operations/alg.replace/replace_if.pass.cpp | georgix/llvm_libcxx | 9962ddfa24575d41ffeeaaf4f90a33ea859980dd | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | test/algorithms/alg.modifying.operations/alg.replace/replace_if.pass.cpp | marcinz/libcxx-ranges | ee4ebf99147da4bbb5356b6ab0e7a79a1bfa0704 | [
"MIT"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | test/algorithms/alg.modifying.operations/alg.replace/replace_if.pass.cpp | marcinz/libcxx-ranges | ee4ebf99147da4bbb5356b6ab0e7a79a1bfa0704 | [
"MIT"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 27.130435 | 85 | 0.540064 | georgix |
8d6b0c4167882a6a1a5834a9f46df766133c99f4 | 1,565 | hh | C++ | src/Titon/Intl/Event/LocalizeEvent.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 206 | 2015-01-02T20:01:12.000Z | 2021-04-15T09:49:56.000Z | src/Titon/Intl/Event/LocalizeEvent.hh | ciklon-z/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 44 | 2015-01-02T06:03:43.000Z | 2017-11-20T18:29:06.000Z | src/Titon/Intl/Event/LocalizeEvent.hh | titon/framework | cbf44729173d3a83b91a2b0a217c6b3827512e44 | [
"BSD-2-Clause"
] | 27 | 2015-01-03T05:51:29.000Z | 2022-02-21T13:50:40.000Z | <?hh // strict
/**
* @copyright 2010-2015, The Titon Project
* @license http://opensource.org/licenses/bsd-license.php
* @link http://titon.io
*/
namespace Titon\Intl\Event;
use Titon\Event\Event;
use Titon\Intl\Locale;
use Titon\Intl\Translator;
/**
* The globalization event that occurs before a s... | 19.810127 | 73 | 0.580192 | ciklon-z |
8d6beaa90c7b606b3b87288b6f7a43c7d58babb8 | 40,671 | hpp | C++ | sparta/sparta/resources/Pipeline.hpp | eabsi5/map | 970ab5c46b3785201edc85c00d40fb64312d9a9a | [
"MIT"
] | null | null | null | sparta/sparta/resources/Pipeline.hpp | eabsi5/map | 970ab5c46b3785201edc85c00d40fb64312d9a9a | [
"MIT"
] | null | null | null | sparta/sparta/resources/Pipeline.hpp | eabsi5/map | 970ab5c46b3785201edc85c00d40fb64312d9a9a | [
"MIT"
] | null | null | null | // <Pipeline> -*- C++ -*-
/**
* \file Pipeline.hpp
* \brief Defines the Pipeline class
*/
#pragma once
#include <cinttypes>
#include <memory>
#include <array>
#include <list>
#include <type_traits>
#include <vector>
#include "sparta/simulation/Clock.hpp"
#include "sparta/utils/SpartaAssert.hpp"
#include "spa... | 40.549352 | 132 | 0.577365 | eabsi5 |
8d6fb8685157e8443fb835d1e0cc212f990d2ae0 | 15,348 | cpp | C++ | CryptoMethods/Twofish.cpp | cosinehere/Crypto-Methods | ba6cd6a93467f54f219dce68876220d0d456d57e | [
"MIT"
] | null | null | null | CryptoMethods/Twofish.cpp | cosinehere/Crypto-Methods | ba6cd6a93467f54f219dce68876220d0d456d57e | [
"MIT"
] | null | null | null | CryptoMethods/Twofish.cpp | cosinehere/Crypto-Methods | ba6cd6a93467f54f219dce68876220d0d456d57e | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Twofish.h"
#include "CryptoTemplates.h"
namespace CryptoMethods {
#define M_TABLE
#define MK_TABLE
#define ONE_STEP
/* finite field arithmetic for GF(2**8) with the modular */
/* polynomial x^8 + x^6 + x^5 + x^3 + 1 (0x169) */
constexpr uint16_t G_M = 0x0169;
constexpr... | 27.905455 | 81 | 0.490096 | cosinehere |
8d6feecf6cbbcdc8ee75c5f78910a349d5f4f75c | 1,942 | cpp | C++ | SGIPC practice contests/stl sgipc cntst/New folder/New folder/G - n-divisors.cpp | YaminArafat/Vjudge | d8d2afc4b1a0fbada46d75cb080efc37965dfe9d | [
"Apache-2.0"
] | null | null | null | SGIPC practice contests/stl sgipc cntst/New folder/New folder/G - n-divisors.cpp | YaminArafat/Vjudge | d8d2afc4b1a0fbada46d75cb080efc37965dfe9d | [
"Apache-2.0"
] | null | null | null | SGIPC practice contests/stl sgipc cntst/New folder/New folder/G - n-divisors.cpp | YaminArafat/Vjudge | d8d2afc4b1a0fbada46d75cb080efc37965dfe9d | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
#define mx 9999
using namespace std;
bool flag[mx+5];
bool sq[99980001];
vector<long long>vec;
void seive()
{
for(int i=3; i*i<=mx; i+=2)
{
if(!flag[i])
{
for(int j=i*i; j<=mx; j+=2*i)
{
flag[j]=1;
}
}
}
... | 18.495238 | 79 | 0.341916 | YaminArafat |
8d78429e5a1d2de4f8ba5167c927af83564bf66e | 799 | cpp | C++ | Leetcode Solution/Graph/Medium/797. All Paths From Source to Target.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 169 | 2021-05-30T10:02:19.000Z | 2022-03-27T18:09:32.000Z | Leetcode Solution/Graph/Medium/797. All Paths From Source to Target.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 1 | 2021-10-02T14:46:26.000Z | 2021-10-02T14:46:26.000Z | Leetcode Solution/Graph/Medium/797. All Paths From Source to Target.cpp | bilwa496/Placement-Preparation | bd32ee717f671d95c17f524ed28b0179e0feb044 | [
"MIT"
] | 44 | 2021-05-30T19:56:29.000Z | 2022-03-17T14:49:00.000Z |
class Solution {
public:
void dfs(vector<vector<int>>& graph,vector<vector<int>>& ans,vector<int>& t,int i,int n)
{
t.push_back(i);
if(i==n)
{
ans.push_back(t);
return;
}
... | 27.551724 | 96 | 0.356696 | bilwa496 |
8d7c7d9a31e1004b3d6da0007a1c4d1cd9fd00df | 8,469 | cpp | C++ | plugins/code/noise/noise_example/src/noise_example.cpp | Jpocas3212/dolby-encoding-engine | bf6e0e3330b7b79ee566c56b3c8f6c99ca77a982 | [
"BSD-3-Clause"
] | 52 | 2018-02-26T11:12:22.000Z | 2022-03-31T10:42:43.000Z | plugins/code/noise/noise_example/src/noise_example.cpp | Jpocas3212/dolby-encoding-engine | bf6e0e3330b7b79ee566c56b3c8f6c99ca77a982 | [
"BSD-3-Clause"
] | 3 | 2017-12-12T18:46:45.000Z | 2019-06-03T21:29:11.000Z | plugins/code/noise/noise_example/src/noise_example.cpp | Jpocas3212/dolby-encoding-engine | bf6e0e3330b7b79ee566c56b3c8f6c99ca77a982 | [
"BSD-3-Clause"
] | 14 | 2018-01-26T15:08:39.000Z | 2022-03-19T00:28:41.000Z | /*
* BSD 3-Clause License
*
* Copyright (c) 2017-2019, Dolby Laboratories
* 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 not... | 31.838346 | 135 | 0.644822 | Jpocas3212 |
8d7c7ddea7906297a6039546c43c3f9d7874e31f | 1,254 | cc | C++ | src/q07.cc | wahez/AdventOfCode2021 | 80a0d1ea97a6c98ae9a8b6d970a4af7c2477d218 | [
"MIT"
] | null | null | null | src/q07.cc | wahez/AdventOfCode2021 | 80a0d1ea97a6c98ae9a8b6d970a4af7c2477d218 | [
"MIT"
] | null | null | null | src/q07.cc | wahez/AdventOfCode2021 | 80a0d1ea97a6c98ae9a8b6d970a4af7c2477d218 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <istream>
#include <ranges>
#include <vector>
#include "util.h"
int q07a(std::istream& is)
{
auto positions = read_separated<std::vector<int>>(is);
std::ranges::nth_element(positions, positions.begin() + positions.size()/2);
const auto position = positions[positions.size()/2];
auto f... | 23.222222 | 77 | 0.669059 | wahez |
8d822ee33495a4db6a9c172e4a085cd35a735d8f | 4,578 | cpp | C++ | shark_middleschool_Re.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | shark_middleschool_Re.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | shark_middleschool_Re.cpp | goongg/SamSung | d07f8ca06fa21c2c26f63f89978b79a204373262 | [
"CECILL-B"
] | null | null | null | #include <iostream>
#include <vector>
#include <queue>
#include <cstring>
using namespace std;
typedef vector<int> group;
#define debug 1
//좌, 하, 우, 상
int dx[4] = {-1, 0, 1, 0};
int dy[4] = {0, 1, 0, -1};
class Game {
public:
int N, M ; // 격자, 색상
vector<int> t;
vector<group> groups;
... | 22.009615 | 79 | 0.323067 | goongg |
8d8330da50d2912cedf7da6cf991db4317ff3ca9 | 878 | cpp | C++ | cfi/call-wrong-type-arg-fp2dp-func.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 4 | 2021-11-12T03:41:54.000Z | 2022-02-28T12:23:49.000Z | cfi/call-wrong-type-arg-fp2dp-func.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | null | null | null | cfi/call-wrong-type-arg-fp2dp-func.cpp | comparch-security/cpu-sec-bench | 34506323a80637fae2a4d2add3bbbdaa4e6d8473 | [
"MIT"
] | 1 | 2021-11-29T08:38:28.000Z | 2021-11-29T08:38:28.000Z | #include "include/global_var.hpp"
#include "include/assembly.hpp"
void FORCE_NOINLINE helper(int* var) {
gvar_init((*var == 0) ? 1 : 0 );
}
/* On Xeon 5220 Ubuntu 18.04 g++ 7.5.0
* Since the local var is initialized to 0 and no compiler observable modification,
* no stack space is allocated for it and the SET_MEM... | 32.518519 | 115 | 0.712984 | comparch-security |
8d8a22b996f34958595339868c868df1b805b7ec | 4,629 | hh | C++ | Mu2eKinKal/inc/KKTrack.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | Mu2eKinKal/inc/KKTrack.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | Mu2eKinKal/inc/KKTrack.hh | resnegfk/Offline | 4ba81dad54486188fa83fea8c085438d104afbbc | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef Mu2eKinKal_KKTrack_hh
#define Mu2eKinKal_KKTrack_hh
//
// subclass of KinKal Track specialized for Mu2e
//
#include "KinKal/Fit/Track.hh"
#include "Offline/DataProducts/inc/PDGCode.hh"
#include "Offline/Mu2eKinKal/inc/KKStrawHit.hh"
#include "Offline/Mu2eKinKal/inc/KKStrawXing.hh"
#include "Offline/Mu2eKinKal/... | 50.868132 | 155 | 0.739037 | resnegfk |
8d8a65452bcdbe2cf51c279d120f58ccd77530f4 | 6,664 | cc | C++ | common/system/simulator.cc | elau/graphite_pep | ddce5890f20e272c587c5caed07161db043247b2 | [
"MIT"
] | 1 | 2022-03-03T21:04:09.000Z | 2022-03-03T21:04:09.000Z | common/system/simulator.cc | elau/graphite_pep | ddce5890f20e272c587c5caed07161db043247b2 | [
"MIT"
] | 1 | 2022-03-04T20:03:50.000Z | 2022-03-04T20:03:50.000Z | common/system/simulator.cc | elau/graphite_pep | ddce5890f20e272c587c5caed07161db043247b2 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <sstream>
#include "simulator.h"
#include "log.h"
#include "lcp.h"
#include "mcp.h"
#include "tile.h"
#include "tile_manager.h"
#include "thread_manager.h"
#include "perf_counter_manager.h"
#include "sim_thread_manager.h"
#include "clock_skew_minimization_object.h"
#include "fxsupport.h"
#... | 25.052632 | 138 | 0.692677 | elau |
8d8f0a3fda82fb869ae93d3f89c3e5fa19ae2cea | 4,618 | cpp | C++ | DirectX11/ESRAMTexture.cpp | simul/Platform | 5825b3ce8540c6996ba6ab59a55581e44c68e7ad | [
"MIT"
] | 5 | 2020-07-20T15:47:46.000Z | 2021-12-23T20:54:22.000Z | DirectX11/ESRAMTexture.cpp | simul/Platform | 5825b3ce8540c6996ba6ab59a55581e44c68e7ad | [
"MIT"
] | 1 | 2021-07-12T09:53:30.000Z | 2021-07-12T09:53:30.000Z | DirectX11/ESRAMTexture.cpp | simul/Platform | 5825b3ce8540c6996ba6ab59a55581e44c68e7ad | [
"MIT"
] | 3 | 2020-10-01T14:02:28.000Z | 2021-05-27T14:15:35.000Z | #ifdef _XBOX_ONE
#include "ESRAMTexture.h"
#include <xg.h>
#include <algorithm>
#include "CreateEffectDX1x.h"
#include "Utilities.h"
#include "Platform/Core/RuntimeError.h"
#include "Platform/DirectX11/RenderPlatform.h"
#include "Platform/CrossPlatform/DeviceContext.h"
#include "Platform/DirectX11/ESRAMManager.h"
#inc... | 24.17801 | 120 | 0.767215 | simul |
8d9441a54461bd7f015fe925aaffc126118398e7 | 1,216 | cpp | C++ | JobduInCPlusPlus/1454 Piggy-Bank.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 16 | 2017-04-17T03:52:51.000Z | 2021-01-21T07:56:50.000Z | JobduInCPlusPlus/1454 Piggy-Bank.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | null | null | null | JobduInCPlusPlus/1454 Piggy-Bank.cpp | zpfbuaa/JobduInCPlusPlus | 067db56ee952660c6ee6e6ab958747d566f3da02 | [
"MIT"
] | 7 | 2017-04-17T03:52:52.000Z | 2019-09-26T08:41:08.000Z | //
// 1454 Piggy-Bank.cpp
// Jobdu
//
// Created by PengFei_Zheng on 25/04/2017.
// Copyright © 2017 PengFei_Zheng. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <algorithm>
#include <string.h>
#include <cmath>
#include <limits.h>
#define MAX_SIZE 10001
#define MAX_NUM 501
using namespac... | 22.518519 | 87 | 0.494243 | zpfbuaa |
8d9a16ea5f7bfa3bd08395bc8bc30dce7e5e3bd5 | 3,985 | hh | C++ | nox/src/nox/netapps/lavi/lavi_networkflow.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 28 | 2015-02-04T13:59:25.000Z | 2021-12-29T03:44:47.000Z | nox/src/nox/netapps/lavi/lavi_networkflow.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 552 | 2015-01-05T18:25:54.000Z | 2022-03-16T18:51:13.000Z | nox/src/nox/netapps/lavi/lavi_networkflow.hh | ayjazz/OESS | deadc504d287febc7cbd7251ddb102bb5c8b1f04 | [
"Apache-2.0"
] | 25 | 2015-02-04T18:48:20.000Z | 2020-06-18T15:51:05.000Z | /* Copyright 2010 (C) Stanford University.
*
* This file is part of NOX.
*
* NOX 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 3 of the License, or
* (at your option) any later version.... | 27.482759 | 77 | 0.622083 | ayjazz |
8d9aa33ec9c2f8d40f6c5a8aa06d4aee14b4cc93 | 6,049 | cc | C++ | cpp/src/arrow/ipc/dictionary.cc | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | 1 | 2020-06-20T00:45:11.000Z | 2020-06-20T00:45:11.000Z | cpp/src/arrow/ipc/dictionary.cc | palmerlao/arrow | 4e680c46ad5aa76ba1dc85574c4e96a51450364f | [
"Apache-2.0"
] | 8 | 2020-04-10T19:03:51.000Z | 2021-01-21T01:06:28.000Z | cpp/src/arrow/ipc/dictionary.cc | signavio/arrow | 866e6a82e2794b151235c19b8c5cbf1fcaf780ef | [
"CC-BY-3.0",
"Apache-2.0",
"CC0-1.0"
] | 1 | 2020-09-23T12:12:19.000Z | 2020-09-23T12:12:19.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 32.875 | 90 | 0.652835 | palmerlao |
8d9b0c730a26ba680df60037c00a17765b018aef | 364 | cpp | C++ | src/utils/Randomizer.cpp | benard-g/wire-frame | 88d4bcbb3af24a6a2b412cf1f44c9c82e196c13a | [
"MIT"
] | 2 | 2020-05-23T11:27:39.000Z | 2020-12-14T00:37:01.000Z | src/utils/Randomizer.cpp | benard-g/wire-frame | 88d4bcbb3af24a6a2b412cf1f44c9c82e196c13a | [
"MIT"
] | null | null | null | src/utils/Randomizer.cpp | benard-g/wire-frame | 88d4bcbb3af24a6a2b412cf1f44c9c82e196c13a | [
"MIT"
] | null | null | null | #include "wf/utils/Randomizer.hpp"
wf::utils::Randomizer::Randomizer(uint32_t seed):
generator(seed)
{}
int32_t wf::utils::Randomizer::random(int32_t minBound, int32_t maxBound) {
return std::uniform_int_distribution<int>(minBound, maxBound)(generator);
}
uint32_t wf::utils::Randomizer::randomSeed(... | 26 | 78 | 0.706044 | benard-g |
8d9e500b6d0b0e335af82a14705206c54bfc1b72 | 6,305 | cpp | C++ | dpcpp/lud/cuda/lud.dp.cpp | CR-G/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | 1 | 2022-03-28T18:13:13.000Z | 2022-03-28T18:13:13.000Z | dpcpp/lud/cuda/lud.dp.cpp | artecs-group/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | 7 | 2021-04-15T11:53:20.000Z | 2021-05-15T08:58:30.000Z | dpcpp/lud/cuda/lud.dp.cpp | artecs-group/rodinia-dpct-dpcpp | a0e80bd715c3cc7c3356e1e00245b91e15927d2c | [
"MIT"
] | null | null | null | /*
* =====================================================================================
*
* Filename: lud.cu
*
* Description: The main wrapper for the suite
*
* Version: 1.0
* Created: 10/22/2009 08:40:34 PM
* Revision: none
* Compiler: gcc
*
* Author: Li... | 26.716102 | 138 | 0.597621 | CR-G |
8da13880e8576b5772e37f15d733b983207930b1 | 2,837 | cpp | C++ | lib/wasp/WaveFiltBase.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null | lib/wasp/WaveFiltBase.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null | lib/wasp/WaveFiltBase.cpp | StasJ/vapor-formatted | 9fad47d88714ef835b78f6c1dd855d66b6aa90da | [
"BSD-3-Clause"
] | null | null | null |
#include <iostream>
#include <vapor/WaveFiltBase.h>
using namespace std;
using namespace VAPoR;
WaveFiltBase::WaveFiltBase() {
_lowDecomFilCoef = new double[MAX_FILTER_SIZE];
_lowReconFilCoef = new double[MAX_FILTER_SIZE];
_hiDecomFilCoef = new double[MAX_FILTER_SIZE];
_hiReconFilCoef = new double[MA... | 27.278846 | 92 | 0.506168 | StasJ |
8da1a584a81397aeae687ecf3883ab632dea05a6 | 1,387 | hpp | C++ | src/MTR/math_defs.hpp | UnderSilence/MetaRay | e82c7bb890912e1b61a0aef051309bed89b7b266 | [
"MIT"
] | null | null | null | src/MTR/math_defs.hpp | UnderSilence/MetaRay | e82c7bb890912e1b61a0aef051309bed89b7b266 | [
"MIT"
] | null | null | null | src/MTR/math_defs.hpp | UnderSilence/MetaRay | e82c7bb890912e1b61a0aef051309bed89b7b266 | [
"MIT"
] | null | null | null | #pragma once
#include <Eigen/Core>
#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <Eigen/SparseQR>
#include <Eigen/StdVector>
const float MTR_PI = 3.1415926535f;
typedef double scalar;
typedef unsigned long long uint64;
typedef unsigned char uchar;
typedef Eigen::Matrix<scalar, 2, 1> vec2s;
typedef Eigen::... | 30.822222 | 73 | 0.739005 | UnderSilence |
8da3e171cb258855751dc1038cada2d0389126c4 | 6,828 | hpp | C++ | include/mpp/hamiltonian/classic_hamiltonian.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | include/mpp/hamiltonian/classic_hamiltonian.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | include/mpp/hamiltonian/classic_hamiltonian.hpp | tbs1980/mpp | 5a704b48d5ab2386588c71987a7616a276380a99 | [
"MIT"
] | null | null | null | #ifndef MPP_HAMILTONIAN_CLASSIC_HAMILTONIAN_HPP
#define MPP_HAMILTONIAN_CLASSIC_HAMILTONIAN_HPP
#include <exception>
#include <sstream>
#include <string>
#include <random>
#include <type_traits>
#include <cmath>
#include <functional>
#include <boost/numeric/ublas/vector.hpp>
#include <boost/assert.hpp>
#include <mpp/c... | 33.307317 | 80 | 0.630346 | tbs1980 |
8da54e54f1ba8904a95dd7673a18f44d9ff6733c | 900 | hh | C++ | elements/analysis/aggregategroup.hh | MassimoGirondi/fastclick | 71b9a3392c2e847a22de3c354be1d9f61216cb5b | [
"BSD-3-Clause-Clear"
] | 129 | 2015-10-08T14:38:35.000Z | 2022-03-06T14:54:44.000Z | elements/analysis/aggregategroup.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 241 | 2016-02-17T16:17:58.000Z | 2022-03-15T09:08:33.000Z | elements/analysis/aggregategroup.hh | nic-bench/fastclick | 2812f0684050cec07e08f30d643ed121871cf25d | [
"BSD-3-Clause-Clear"
] | 61 | 2015-12-17T01:46:58.000Z | 2022-02-07T22:25:19.000Z | #ifndef CLICK_AGGREGATEGROUP_HH
#define CLICK_AGGREGATEGROUP_HH
#include <click/string.hh>
#include <click/timer.hh>
#include <click/batchelement.hh>
#include <vector>
CLICK_DECLS
/**
* Group packets in batches by aggregate annotation
*/
class AggregateGroup: public BatchElement {
class State {
public:
State()... | 18.75 | 64 | 0.705556 | MassimoGirondi |
8da7a0222eff5d744d08984789ca465c6e6b446a | 3,009 | cpp | C++ | src/Song.cpp | dsv101/IDCP | 88f35834305b2c0dfc601908b1d4b09aeed8ce41 | [
"MIT"
] | 1 | 2019-04-07T16:52:26.000Z | 2019-04-07T16:52:26.000Z | src/Song.cpp | dsv101/IDCP | 88f35834305b2c0dfc601908b1d4b09aeed8ce41 | [
"MIT"
] | null | null | null | src/Song.cpp | dsv101/IDCP | 88f35834305b2c0dfc601908b1d4b09aeed8ce41 | [
"MIT"
] | null | null | null | #include "Song.hpp"
#include <sstream>
#include <cmath>
#include <iostream>
namespace idc
{
namespace parser
{
Song::Song() :
bpm(),
sud(),
data(),
valid(false),
finished(false),
error("")
{
}
Song::~Song()
{
}
bool Song::load_data(std::string str)
{
this->bpm.init("");
this->sud.init("");
... | 19.165605 | 115 | 0.551014 | dsv101 |
8daacc025a0abff5649bdb1c82299503eed43091 | 28,037 | cc | C++ | server/modules/filter/binlogfilter/binlogfiltersession.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | 1 | 2020-10-29T07:39:00.000Z | 2020-10-29T07:39:00.000Z | server/modules/filter/binlogfilter/binlogfiltersession.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | server/modules/filter/binlogfilter/binlogfiltersession.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2017 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2024-10-14
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 30.877753 | 109 | 0.622142 | 2733284198 |
8dac14533b243c01ad440afb381fbf2a4476f9f4 | 2,988 | cc | C++ | src/packet_analysis/protocol/geneve/Geneve.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 2,181 | 2015-01-01T15:31:58.000Z | 2022-03-08T22:15:19.000Z | src/packet_analysis/protocol/geneve/Geneve.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 1,277 | 2018-12-07T17:12:15.000Z | 2022-03-31T22:56:35.000Z | src/packet_analysis/protocol/geneve/Geneve.cc | yaplej/bro | 1e60264548fd3bde5222c027de21c482b009ccb1 | [
"Apache-2.0"
] | 696 | 2015-01-01T20:29:40.000Z | 2022-02-06T17:39:01.000Z | // See the file "COPYING" in the main distribution directory for copyright.
#include "zeek/packet_analysis/protocol/geneve/Geneve.h"
#include "zeek/packet_analysis/protocol/geneve/events.bif.h"
#include "zeek/packet_analysis/protocol/iptunnel/IPTunnel.h"
using namespace zeek::packet_analysis::Geneve;
GeneveAnalyzer... | 32.835165 | 88 | 0.681727 | yaplej |
8dacaeb6fbca116b404091cda17d46d7c43179d9 | 543 | cpp | C++ | examples/cancel_async.cpp | tsung-wei-huang/taskflow | 2f66dde00cddeee37cdd6efb498297ff3872d495 | [
"MIT"
] | 1 | 2021-06-16T03:40:40.000Z | 2021-06-16T03:40:40.000Z | examples/cancel_async.cpp | tsung-wei-huang/taskflow | 2f66dde00cddeee37cdd6efb498297ff3872d495 | [
"MIT"
] | null | null | null | examples/cancel_async.cpp | tsung-wei-huang/taskflow | 2f66dde00cddeee37cdd6efb498297ff3872d495 | [
"MIT"
] | null | null | null | // The program demonstrates how to cancel submitted asynchronous tasks.
#include <taskflow/taskflow.hpp>
int main() {
tf::Executor executor;
std::vector<tf::Future<void>> futures;
// submit 10000 asynchronous tasks
for(int i=0; i<10000; i++) {
futures.push_back(executor.async([i](){
printf("tas... | 19.392857 | 71 | 0.640884 | tsung-wei-huang |
8dad9d7efd93e1fdd1c71f95b127ac43681efafb | 829 | hpp | C++ | include/koalabox/util.hpp | acidicoala/KoalaBox | a1a8661947cc3260ed217ec75fb8cf15825cdf6e | [
"0BSD"
] | 6 | 2022-02-04T19:42:02.000Z | 2022-03-16T04:08:45.000Z | include/koalabox/util.hpp | acidicoala/KoalaBox | a1a8661947cc3260ed217ec75fb8cf15825cdf6e | [
"0BSD"
] | null | null | null | include/koalabox/util.hpp | acidicoala/KoalaBox | a1a8661947cc3260ed217ec75fb8cf15825cdf6e | [
"0BSD"
] | null | null | null | #pragma once
#include <koalabox/koalabox.hpp>
namespace koalabox::util {
void error_box(const String& title, const String& message);
bool is_x64();
[[noreturn]] void panic(String message);
template<typename... Args>
[[noreturn]] void panic(fmt::format_string<Args...> fmt, Args&& ... args) {
... | 25.121212 | 79 | 0.647768 | acidicoala |
8dafa570ea74ac43d49362a70ad4dc6f9a883ff3 | 93 | hpp | C++ | include/world/cell.hpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | include/world/cell.hpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | include/world/cell.hpp | Foomf/Blyss-Server | f6942f740e74a2bc03f305372486aa62d94fb074 | [
"Zlib"
] | null | null | null | #pragma once
namespace blyss::server::world
{
class cell
{
};
} | 10.333333 | 31 | 0.473118 | Foomf |
8db2ca56a6155318b1f667462b0ff1e81552db47 | 4,222 | cpp | C++ | GravSim/GravitySimulator.cpp | WebF0x/GravitySimulator | 62783a8c03cea8642e5431eaf66933cdd4342137 | [
"MIT"
] | 2 | 2020-01-31T10:45:13.000Z | 2021-03-30T20:59:08.000Z | GravSim/GravitySimulator.cpp | WebF0x/GravitySimulator | 62783a8c03cea8642e5431eaf66933cdd4342137 | [
"MIT"
] | null | null | null | GravSim/GravitySimulator.cpp | WebF0x/GravitySimulator | 62783a8c03cea8642e5431eaf66933cdd4342137 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2013, Maxime Dupuis, Philippe Roy Villeneuve
*/
#include "GravitySimulator.h"
#include "ui_GravitySimulator.h"
GravitySimulator::GravitySimulator(QWidget *parent) :
QMainWindow(parent), m_ui(new Ui::GravitySimulator), m_clickModeActivated(false)
{
m_ui->setupUi(this);
setWindowTitl... | 33.776 | 154 | 0.677404 | WebF0x |
8db4a4208bb7a9be27d59cf14a64f1f53060f40c | 185 | cc | C++ | lib/ubuntu64/decrypt.cc | han-xie/snowboy | 0ab447dced83a093054047eb60ea616ba531d67c | [
"Apache-2.0"
] | null | null | null | lib/ubuntu64/decrypt.cc | han-xie/snowboy | 0ab447dced83a093054047eb60ea616ba531d67c | [
"Apache-2.0"
] | null | null | null | lib/ubuntu64/decrypt.cc | han-xie/snowboy | 0ab447dced83a093054047eb60ea616ba531d67c | [
"Apache-2.0"
] | null | null | null | #include "snowboy-io.h"
std::string snowboy::DecryptString(const std::string &input) {
std::string tmp_string = input;
snowboy::EncryptToken(&tmp_string);
return tmp_string;
}
| 18.5 | 62 | 0.724324 | han-xie |
8db66df81f651061676de80c2a7d9523626e057f | 99,700 | cpp | C++ | DxGuiFramework/DGGraphics.cpp | Maultasche/DxGui | ad540f96bf4df2f1d941b03596bb9927c21e3581 | [
"MIT"
] | null | null | null | DxGuiFramework/DGGraphics.cpp | Maultasche/DxGui | ad540f96bf4df2f1d941b03596bb9927c21e3581 | [
"MIT"
] | null | null | null | DxGuiFramework/DGGraphics.cpp | Maultasche/DxGui | ad540f96bf4df2f1d941b03596bb9927c21e3581 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------
File Name: DGGraphics.cpp
Description: This file contains the DG::Graphics class implementation,
which manages the DirectDraw surfaces and controls and what is drawn
to the screen.
Version:
1.0.0 10.02.2001 Created the file
... | 33.831015 | 88 | 0.575767 | Maultasche |
8db6e2940de1b52067e0cd280cac8b9128ad4e64 | 1,827 | hxx | C++ | src/si/iterable.hxx | Drako/simple_iterators | 362db3a3fe8fc6547866aafc8bc5e06a723212d9 | [
"MIT"
] | null | null | null | src/si/iterable.hxx | Drako/simple_iterators | 362db3a3fe8fc6547866aafc8bc5e06a723212d9 | [
"MIT"
] | null | null | null | src/si/iterable.hxx | Drako/simple_iterators | 362db3a3fe8fc6547866aafc8bc5e06a723212d9 | [
"MIT"
] | null | null | null | #pragma once
#ifndef SI_ITERABLE_HXX
#define SI_ITERABLE_HXX
#include "exceptions.hxx"
#include "iterator.hxx"
#include <iterator>
#include <type_traits>
namespace si {
template<typename T, typename Value>
concept Iterable = requires(T iterable) {
{ iterable.iterator() } -> si::Iterator<Value>;
};
temp... | 22.8375 | 87 | 0.66393 | Drako |
8db999351eca739252cfaa69bb8b6bfa83d880d2 | 34,461 | cpp | C++ | recipes-coinutils/coinutils/coinutils/src/CoinPresolveTripleton.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-coinutils/coinutils/coinutils/src/CoinPresolveTripleton.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | recipes-coinutils/coinutils/coinutils/src/CoinPresolveTripleton.cpp | Justin790126/meta-coinor | 0180187c583b3a6fd0a8dac7c85ac1bd89bf8cc9 | [
"MIT"
] | null | null | null | // Copyright (C) 2003, International Business Machines
// Corporation and others. All Rights Reserved.
// This code is licensed under the terms of the Eclipse Public License (EPL).
#include <stdio.h>
#include <math.h>
#include "CoinFinite.hpp"
#include "CoinHelperFunctions.hpp"
#include "CoinPresolveMatrix.hpp"
#in... | 31.413856 | 283 | 0.574359 | Justin790126 |
8dbe607d6d05cb068505fea1b00779aeb1f5dfcb | 13,130 | cc | C++ | rtc_base/operations_chain_unittest.cc | tstan123/webrtc-client-native | ef66da2abd2db839c9e57958ea090538ab339808 | [
"BSD-3-Clause"
] | null | null | null | rtc_base/operations_chain_unittest.cc | tstan123/webrtc-client-native | ef66da2abd2db839c9e57958ea090538ab339808 | [
"BSD-3-Clause"
] | null | null | null | rtc_base/operations_chain_unittest.cc | tstan123/webrtc-client-native | ef66da2abd2db839c9e57958ea090538ab339808 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2019 The WebRTC Project Authors. All rights reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contributing ... | 38.846154 | 80 | 0.734958 | tstan123 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.