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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
abdb21f77748c08b2564dccc8027c0ec9f9143ca | 1,693 | cc | C++ | bend_mnbrak.cc | lehoangha/tomo2d_HeriotWatt | 48477115ed2455a8255521570e4e81ffe754be08 | [
"MIT"
] | 3 | 2018-05-03T14:42:29.000Z | 2021-11-03T06:59:54.000Z | bend_mnbrak.cc | lehoangha/tomo2d_HeriotWatt | 48477115ed2455a8255521570e4e81ffe754be08 | [
"MIT"
] | 1 | 2015-10-07T03:23:17.000Z | 2015-10-07T03:23:17.000Z | bend_mnbrak.cc | lehoangha/tomo2d_HeriotWatt | 48477115ed2455a8255521570e4e81ffe754be08 | [
"MIT"
] | 2 | 2018-09-19T13:17:25.000Z | 2021-07-28T07:37:34.000Z | /*
* bend_mnbrak.cc - initial bracket search for bending solver
* (taken from Numerical Recipe's mnbrak.cc)
*
* Jun Korenaga, MIT/WHOI
* January 1999
*/
#include "bend.h"
#include <math.h>
#define GOLD 1.618034
#define GLIMIT 100.0
#define TINY 1.0e-20
#define SHFT(a,b,c,d) (a)=(b);(b)=(c);(c)=(... | 22.276316 | 67 | 0.512109 | lehoangha |
abdd36d00280f356be581d89281511a8973376b7 | 1,275 | cpp | C++ | chapter16/Mammal2.cpp | UncleCShark/CppIn24HoursWithCmake | 7d1f30906fed2c7d144e5495ad42a3a9a59d2dce | [
"MIT"
] | null | null | null | chapter16/Mammal2.cpp | UncleCShark/CppIn24HoursWithCmake | 7d1f30906fed2c7d144e5495ad42a3a9a59d2dce | [
"MIT"
] | null | null | null | chapter16/Mammal2.cpp | UncleCShark/CppIn24HoursWithCmake | 7d1f30906fed2c7d144e5495ad42a3a9a59d2dce | [
"MIT"
] | null | null | null | #include <iostream>
enum BREED {
YORKIE, CAIRN, DANDIE, SHETLAND, DOBERMAN, LAB
};
class Mammal {
public:
// constructors
Mammal() : age(2), weight(5) {
}
~Mammal() {
}
// accessors
int getAge() const {
return age;
}
void setAge(int newAge) {
age = newAge;
... | 14.010989 | 63 | 0.505882 | UncleCShark |
abdd99bdb841232280a77408c20ced5bc6bf9c8f | 840 | cpp | C++ | problems/leet/92-reverse-linked-list-ii/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/leet/92-reverse-linked-list-ii/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/leet/92-reverse-linked-list-ii/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
struct ListNode {
int val;
ListNode *next;
ListNode() : val(0), next(nullptr) {}
ListNode(int x) : val(x), next(nullptr) {}
ListNode(int x, ListNode *next) : val(x), next(next) {}
};
class Solution {
public:
ListNode *reverseBetween(ListNode *head, ... | 18.26087 | 58 | 0.545238 | brunodccarvalho |
abdf41741f09be06393ad86892a1bba03b4076b7 | 5,440 | cc | C++ | tls/src/internal.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | tls/src/internal.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | tls/src/internal.cc | sdelafond/centreon-broker | 21178d98ed8a061ca71317d23c2026dbc4edaca2 | [
"Apache-2.0"
] | null | null | null | /*
** Copyright 2009-2013,2017 Centreon
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agr... | 31.627907 | 76 | 0.617279 | sdelafond |
abe1d57fa229bbcefbda3b3fb5e52d4b6be8f7e9 | 2,578 | hpp | C++ | third_party/boost/simd/arch/common/scalar/function/reversebits.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/common/scalar/function/reversebits.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/common/scalar/function/reversebits.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//===========================... | 29.976744 | 100 | 0.470132 | SylvainCorlay |
abec65cc0db0fb3cf4e8e03fb6ee8b6ffd42af41 | 12,227 | cpp | C++ | code/2D/lib/mex/precompute_mex.cpp | ErisZhang/BCQN | 6c103e0e173bb825e4207b282a0cba2ce5d10e24 | [
"MIT"
] | 15 | 2021-07-16T11:03:01.000Z | 2022-01-15T00:58:26.000Z | code/2D/lib/mex/precompute_mex.cpp | ErisZhang/BCQN | 6c103e0e173bb825e4207b282a0cba2ce5d10e24 | [
"MIT"
] | 1 | 2019-07-10T12:12:18.000Z | 2019-07-10T12:12:18.000Z | code/2D/lib/mex/precompute_mex.cpp | ErisZhang/BCQN | 6c103e0e173bb825e4207b282a0cba2ce5d10e24 | [
"MIT"
] | 4 | 2019-02-21T06:12:40.000Z | 2020-09-27T09:58:32.000Z | #include <mex.h>
#include <math.h>
#include <Eigen/Dense>
#include <iostream>
#include <vector>
using namespace Eigen;
using namespace std;
double get_tri_area(Vector2d p0, Vector2d p1, Vector2d p2)
{
Vector2d u = p1 - p0;
Vector2d v = p2 - p0;
return 0.5 * sqrt(u.dot(u) * v.dot(v) - u.dot(v)... | 29.605327 | 153 | 0.399117 | ErisZhang |
74387bd503d654fadb158d57e5a9322d848274f3 | 4,522 | cpp | C++ | src/input/linux/linux_gpio.cpp | lii-enac/djnn-cpp | f27c5ba3186186ee22c93ae91c16063556e929b6 | [
"BSD-2-Clause"
] | 4 | 2018-09-11T14:27:57.000Z | 2019-12-16T21:06:26.000Z | src/input/linux/linux_gpio.cpp | lii-enac/djnn-cpp | f27c5ba3186186ee22c93ae91c16063556e929b6 | [
"BSD-2-Clause"
] | null | null | null | src/input/linux/linux_gpio.cpp | lii-enac/djnn-cpp | f27c5ba3186186ee22c93ae91c16063556e929b6 | [
"BSD-2-Clause"
] | 2 | 2018-06-11T14:15:30.000Z | 2019-01-09T12:23:35.000Z | /*
* djnn v2
*
* The copyright holders for the contents of this file are:
* Ecole Nationale de l'Aviation Civile, France (2019)
* See file "license.terms" for the rights and conditions
* defined by copyright holders.
*
*
* Contributors:
* Stéphane Chatty <chatty@djnn.net>
* Mathieu Magnau... | 25.693182 | 102 | 0.582043 | lii-enac |
743a96d9c7794f785b2e6b1eb97176ea1b188707 | 4,469 | cpp | C++ | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheTrack.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | null | null | null | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheTrack.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | null | null | null | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheTrack.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | 1 | 2021-01-22T09:11:51.000Z | 2021-01-22T09:11:51.000Z | // Copyright Epic Games, Inc. All Rights Reserved.
#include "GeometryCacheTrack.h"
#include "GeometryCacheHelpers.h"
#include "UObject/AnimPhysObjectVersion.h"
const FGeometryCacheTrackSampleInfo FGeometryCacheTrackSampleInfo::EmptySampleInfo;
const FVisibilitySample FVisibilitySample::VisibleSample(true);
co... | 28.464968 | 167 | 0.750727 | greenrainstudios |
743c89ecec5979c250c222952bd2bcb9c8b506d9 | 46 | cpp | C++ | src/scanContext.cpp | softdream/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 21 | 2021-07-19T08:15:53.000Z | 2022-03-31T07:07:55.000Z | src/scanContext.cpp | Forrest-Z/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 3 | 2022-03-02T12:55:37.000Z | 2022-03-07T12:12:57.000Z | src/scanContext.cpp | softdream/Slam-Project-Of-MyOwn | 6d6db8a5761e8530971b203983ea2215620aa5c2 | [
"Apache-2.0"
] | 4 | 2021-08-12T15:11:09.000Z | 2022-01-08T14:20:36.000Z | #include "scanContext.h"
namespace slam{
}
| 6.571429 | 24 | 0.695652 | softdream |
744127979977c33452dbd4f3f80463078c2ba9df | 1,059 | cpp | C++ | pt07z.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 264 | 2015-01-08T10:07:01.000Z | 2022-03-26T04:11:51.000Z | pt07z.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 17 | 2016-04-15T03:38:07.000Z | 2020-10-30T00:33:57.000Z | pt07z.cpp | ohmyjons/SPOJ-1 | 870ae3b072a3fbc89149b35fe5649a74512a8f60 | [
"Unlicense"
] | 127 | 2015-01-08T04:56:44.000Z | 2022-02-25T18:40:37.000Z | // 2008-07-29
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <list>
using namespace std;
int main()
{
int N,i,u,v;
scanf("%d",&N);
list<int> L[10000];
for (i=0; i<N-1; i++)
{
scanf("%d %d",&u,&v); u--,v--;
L[u].push_back(v);
L[v].push_back(u);
}
int size=1;
int p[20000];
int n[20000];
int ... | 13.934211 | 42 | 0.507082 | ohmyjons |
74440b1c5c4417fae1efdb360ec982198c4b4949 | 3,775 | cpp | C++ | 7952603892_basic.cpp | sehgal-aamulya/SequenceAlignmentAlgorithms | 35ce3c9a35c1a681f03c5b605b6152a1a30c014f | [
"MIT"
] | null | null | null | 7952603892_basic.cpp | sehgal-aamulya/SequenceAlignmentAlgorithms | 35ce3c9a35c1a681f03c5b605b6152a1a30c014f | [
"MIT"
] | null | null | null | 7952603892_basic.cpp | sehgal-aamulya/SequenceAlignmentAlgorithms | 35ce3c9a35c1a681f03c5b605b6152a1a30c014f | [
"MIT"
] | null | null | null | //
// Created by Aamulya Sehgal on 12/4/21.
//
#include <string>
#include <iostream>
#include <fstream>
#include <sys/resource.h>
#include "SequenceAlignment.hpp"
#include "StringGenerator.hpp"
#include "StringTrim.hpp"
int main(int argc, char *argv[]) {
if (argc < 2) {
std::cout << "Please include an input fil... | 27.355072 | 106 | 0.629934 | sehgal-aamulya |
74475242e369b0e9625b44109b4a69ee8a647456 | 1,992 | cpp | C++ | RiocArduino/RORudderServo.cpp | robinz-labs/rioc-arduino | 37e752cfc5cf13a61dd03b4556cf33aa18d24814 | [
"Apache-2.0"
] | null | null | null | RiocArduino/RORudderServo.cpp | robinz-labs/rioc-arduino | 37e752cfc5cf13a61dd03b4556cf33aa18d24814 | [
"Apache-2.0"
] | null | null | null | RiocArduino/RORudderServo.cpp | robinz-labs/rioc-arduino | 37e752cfc5cf13a61dd03b4556cf33aa18d24814 | [
"Apache-2.0"
] | null | null | null | #include "RORudderServo.h"
#include "RiocMessager.h"
#include <Servo.h>
RORudderServo::RORudderServo()
{
_pin = -1;
_mode = -1;
_enabled = false;
_servo = NULL;
}
RORudderServo::~RORudderServo()
{
}
bool RORudderServo::setup(byte msg[8], byte address_from)
{
if (_pin != -1) return false;
int pin = msg[... | 17.628319 | 69 | 0.593876 | robinz-labs |
7449afbe93d4d2665437c7985ae6933b724e1722 | 75 | cc | C++ | project2/kernels/grad_case9.cc | beizai/CompilerProject2 | 07c99fd0ff0a0f66ac470ded5d11470b1c473b97 | [
"MIT"
] | 26 | 2020-05-11T09:00:41.000Z | 2021-08-25T16:58:42.000Z | project2/kernels/grad_case9.cc | beizai/CompilerProject2 | 07c99fd0ff0a0f66ac470ded5d11470b1c473b97 | [
"MIT"
] | 2 | 2020-05-10T12:23:30.000Z | 2020-06-12T03:20:41.000Z | project2/kernels/grad_case9.cc | beizai/CompilerProject2 | 07c99fd0ff0a0f66ac470ded5d11470b1c473b97 | [
"MIT"
] | 30 | 2020-05-10T05:45:23.000Z | 2022-03-10T16:18:33.000Z | #include "../run2.h"
void grad_case9(float (&dB)[4][6], float (&dA)[4]) {} | 25 | 53 | 0.573333 | beizai |
744d0e53844aa1c5688e86825db28154e7cbf751 | 2,909 | cpp | C++ | fucapi2Bimestre/teste2.cpp | taynarodrigues/OpenGL | c1309835313f2a00b07668cfddbea21a26c5b21f | [
"MIT"
] | 2 | 2020-04-05T02:38:14.000Z | 2020-04-05T02:48:18.000Z | fucapi2Bimestre/teste2.cpp | taynarodrigues/OpenGL--Computacao-Grafica | c1309835313f2a00b07668cfddbea21a26c5b21f | [
"MIT"
] | null | null | null | fucapi2Bimestre/teste2.cpp | taynarodrigues/OpenGL--Computacao-Grafica | c1309835313f2a00b07668cfddbea21a26c5b21f | [
"MIT"
] | null | null | null | // Fazer código OpenGL para gerar pelo menos duas das seguintes curvas de Bezier (ver imagem).
#include <GL/gl.h>
#include <GL/glu.h>
#include <stdlib.h>
#include <GL/glut.h>
GLfloat ctrlpoints2[4][3]={
{ 0.0, 0.0, 0.0},
{-2.0, 0.3, 0.0},
{-3.0,-1.0, 0.0},
{-4.0, 4.0, 0.0}
};
GLfloat ctrlpoin... | 26.688073 | 131 | 0.609144 | taynarodrigues |
744d653f35c31e92367a03887fa714945000de7b | 9,781 | cpp | C++ | 11_learning_materials/stanford_self_driving_car/perception/descriptors_3d/src/shared/spectral_analysis.cpp | EatAllBugs/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 14 | 2021-09-01T14:25:45.000Z | 2022-02-21T08:49:57.000Z | 11_learning_materials/stanford_self_driving_car/perception/descriptors_3d/src/shared/spectral_analysis.cpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | null | null | null | 11_learning_materials/stanford_self_driving_car/perception/descriptors_3d/src/shared/spectral_analysis.cpp | yinflight/autonomous_learning | 02ff7b0fa7b131a2f2203505ef5cc7e43b40bc47 | [
"MIT"
] | 3 | 2021-10-10T00:58:29.000Z | 2022-01-23T13:16:09.000Z | /*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2009, Willow Garage
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condi... | 37.190114 | 106 | 0.584296 | EatAllBugs |
744f55bb19e02078fff95f271bb9ebe265ffa084 | 22,099 | cpp | C++ | src/core/models/error/error_model_factory.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | null | null | null | src/core/models/error/error_model_factory.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | null | null | null | src/core/models/error/error_model_factory.cpp | gunjanbaid/octopus | b19e825d10c16bc14565338aadf4aee63c8fe816 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2019 Daniel Cooke
// Use of this source code is governed by the MIT license that can be found in the LICENSE file.
#include "error_model_factory.hpp"
#include <array>
#include <unordered_map>
#include <fstream>
#include <sstream>
#include <iostream>
#include <boost/optional.hpp>
#include <boost... | 41.933586 | 142 | 0.569257 | gunjanbaid |
74523286fde903feac0517ed6f46f645a50ac715 | 9,472 | cpp | C++ | animer/main.cpp | Benjins/GBADev | 0a968a1aa1ee38b57644a1bb8d27f2c5332e3c90 | [
"MIT"
] | null | null | null | animer/main.cpp | Benjins/GBADev | 0a968a1aa1ee38b57644a1bb8d27f2c5332e3c90 | [
"MIT"
] | null | null | null | animer/main.cpp | Benjins/GBADev | 0a968a1aa1ee38b57644a1bb8d27f2c5332e3c90 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "../toolsCode/Renderer.h"
#include "../toolsCode/Timer.h"
#include "../toolsCode/openfile.h"
#define TILE_INDEX_MULTIPLIER 24
void* bitmapData = NULL;
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b... | 29.325077 | 138 | 0.676626 | Benjins |
74539fd3a437ada34e33972f54afa3905e6283f1 | 1,970 | cpp | C++ | training/1-3-7-wormhole/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | 2 | 2015-12-26T21:20:12.000Z | 2017-12-19T00:11:45.000Z | training/1-3-7-wormhole/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | training/1-3-7-wormhole/cpp11/main.cpp | hsun324/usaco-solutions | 27f77911971513a4d2b1b820eaa09802acadfefa | [
"MIT"
] | null | null | null | /*
ID: <ID HERE>
LANG: C++11
TASK: wormhole
*/
#include <algorithm>
#include <fstream>
#include <map>
#include <set>
#include <utility>
#include <vector>
using namespace std;
bool check_cycle(vector<int> &pairs, map<int, int> &transitions) {
vector<bool> visited(pairs.size());
for (int i = 0; i < pairs.size(); i++... | 21.413043 | 92 | 0.658883 | hsun324 |
745999a25b480d74ca6a1b28c68a70a257dccc3b | 8,465 | cc | C++ | tools/embedding_plugin/cc/kernels/v1/embedding_wrapper_fprop_v4.cc | quinnrong94/HugeCTR | 1068dc48b05a1219b393144dd3b61a1749f232df | [
"Apache-2.0"
] | 1 | 2021-06-04T04:03:54.000Z | 2021-06-04T04:03:54.000Z | tools/embedding_plugin/cc/kernels/v1/embedding_wrapper_fprop_v4.cc | quinnrong94/HugeCTR | 1068dc48b05a1219b393144dd3b61a1749f232df | [
"Apache-2.0"
] | null | null | null | tools/embedding_plugin/cc/kernels/v1/embedding_wrapper_fprop_v4.cc | quinnrong94/HugeCTR | 1068dc48b05a1219b393144dd3b61a1749f232df | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2020, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 50.993976 | 134 | 0.606025 | quinnrong94 |
7465ff9f1b9725685726c0c4c6e2c2c59d760f05 | 823 | cpp | C++ | ui/widget/toolbar/AdjustPanelToolBar.cpp | shinehanx/openphoto | e4466e5e80829385d2aa84813f2d5a8960053845 | [
"Apache-2.0"
] | 5 | 2021-03-11T00:30:25.000Z | 2021-07-28T00:31:20.000Z | ui/widget/toolbar/AdjustPanelToolBar.cpp | shinehanx/openphoto | e4466e5e80829385d2aa84813f2d5a8960053845 | [
"Apache-2.0"
] | null | null | null | ui/widget/toolbar/AdjustPanelToolBar.cpp | shinehanx/openphoto | e4466e5e80829385d2aa84813f2d5a8960053845 | [
"Apache-2.0"
] | 1 | 2021-09-14T16:28:26.000Z | 2021-09-14T16:28:26.000Z | #include "AdjustPanelToolBar.h"
#include <QIcon>
AdjustPanelToolBar::AdjustPanelToolBar(QWidget *parent) : QToolBar(parent)
{
}
AdjustPanelToolBar::AdjustPanelToolBar(ToolButtonData *datas, int size, QWidget *parent) : QToolBar(parent)
{
toolButtonDatas = datas;
toolButtonSize = size;
}
void AdjustPanelToolB... | 24.939394 | 107 | 0.663426 | shinehanx |
7466b0e0ac71ab7eb83d9e4f513a021ac1d5a4f5 | 4,388 | cpp | C++ | plugins/mdaRoundPan.cpp | elk-audio/mda-vst2 | 8ea6ef97946a617d73e48d245777e57fb984357f | [
"MIT"
] | 2 | 2020-05-01T20:57:56.000Z | 2021-05-20T13:59:20.000Z | plugins/mdaRoundPan.cpp | elk-audio/mda-vst2 | 8ea6ef97946a617d73e48d245777e57fb984357f | [
"MIT"
] | null | null | null | plugins/mdaRoundPan.cpp | elk-audio/mda-vst2 | 8ea6ef97946a617d73e48d245777e57fb984357f | [
"MIT"
] | null | null | null | #include "mdaRoundPan.h"
#include <math.h>
#include <float.h>
AudioEffect *createEffectInstance(audioMasterCallback audioMaster)
{
return new mdaRoundPan(audioMaster);
}
mdaRoundPan::mdaRoundPan(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, 1, 2) // programs, parameters
{
//inits here!
fParam1 =... | 21.198068 | 115 | 0.595488 | elk-audio |
746be647093c5e6f87c9e17d5414193ce5ed227e | 794 | cpp | C++ | 2018/day01/main.cpp | batduck27/Advent_of_code | 6b2dadf28bebd2301464c864f5112dccede9762b | [
"MIT"
] | null | null | null | 2018/day01/main.cpp | batduck27/Advent_of_code | 6b2dadf28bebd2301464c864f5112dccede9762b | [
"MIT"
] | null | null | null | 2018/day01/main.cpp | batduck27/Advent_of_code | 6b2dadf28bebd2301464c864f5112dccede9762b | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <vector>
#include <set>
std::vector<int> V;
int solvePart1() {
int res = 0;
for (const auto& x : V) {
res += x;
}
return res;
}
int solvePart2() {
int currFreq = 0;
std::set<int> S;
for (size_t i = 0; i < V.size(); i = ((i == V.si... | 16.541667 | 77 | 0.479849 | batduck27 |
747645889dcdbedd897f1bad4d954375badbc624 | 1,394 | cpp | C++ | Platformer/World.cpp | renato-grottesi/pokitto | e38bbb07889e88087149709310687d957f00c4c6 | [
"MIT"
] | null | null | null | Platformer/World.cpp | renato-grottesi/pokitto | e38bbb07889e88087149709310687d957f00c4c6 | [
"MIT"
] | null | null | null | Platformer/World.cpp | renato-grottesi/pokitto | e38bbb07889e88087149709310687d957f00c4c6 | [
"MIT"
] | 1 | 2021-01-15T23:35:34.000Z | 2021-01-15T23:35:34.000Z | #include "World.hpp"
#include "assets.h" // TODO: pass in the constructor
uint8_t World::render(uint8_t cnt) {
const uint16_t XCentralTile = xWorldToTile(cameraX);
const uint16_t YCentralTile = yWorldToTile(cameraY);
// TODO: clear this parallax code and make it configurable
const int16_t xOff = (maxX - came... | 35.74359 | 95 | 0.599713 | renato-grottesi |
7476c428dddb4869a227bb9ff06d7a2ba1821386 | 8,751 | cpp | C++ | Dark Basic Public Shared/Official Plugins/3D Cloth & Particles/Code/DBProPhysicsMaster/Ragdoll_Basic_Setup.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Dark Basic Public Shared/Official Plugins/3D Cloth & Particles/Code/DBProPhysicsMaster/Ragdoll_Basic_Setup.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Dark Basic Public Shared/Official Plugins/3D Cloth & Particles/Code/DBProPhysicsMaster/Ragdoll_Basic_Setup.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | #include "stdafx.h"
void Ragdoll_Basic::constructBasicDoll()
{
numParticles=30;
numLinks=68;
particle = new RagdollParticle[numParticles];
//Head, neck, and chest
particle[RAGBASIC_HEADLEFT].Set(-0.055110f,2.0f,0.000000f,0.1f,RAGBASIC_HEADLEFT);
particle[RAGBASIC_HEADRIGHT].Set(0.055110f,2.0f,0.000000f,0.1f,R... | 59.128378 | 118 | 0.801623 | domydev |
7476fde2adbe24d7a6020e259ca1b111a4021917 | 30,297 | hpp | C++ | data_compression/L1/include/hw/inflate.hpp | dycz0fx/Vitis_Libraries | d3fc414b552493657101ddb5245f24528720823d | [
"Apache-2.0"
] | null | null | null | data_compression/L1/include/hw/inflate.hpp | dycz0fx/Vitis_Libraries | d3fc414b552493657101ddb5245f24528720823d | [
"Apache-2.0"
] | null | null | null | data_compression/L1/include/hw/inflate.hpp | dycz0fx/Vitis_Libraries | d3fc414b552493657101ddb5245f24528720823d | [
"Apache-2.0"
] | null | null | null | /*
* (c) Copyright 2019-2021 Xilinx, Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 37.265683 | 119 | 0.593689 | dycz0fx |
747707ad544d2548394b55cb711984acf2336f4b | 350 | hpp | C++ | src/pile.hpp | naidjeldias/EDPA-2018 | aeb3e83172419ca2e41735d84449b0ff12c8ec47 | [
"MIT"
] | null | null | null | src/pile.hpp | naidjeldias/EDPA-2018 | aeb3e83172419ca2e41735d84449b0ff12c8ec47 | [
"MIT"
] | null | null | null | src/pile.hpp | naidjeldias/EDPA-2018 | aeb3e83172419ca2e41735d84449b0ff12c8ec47 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
struct node{
int key;
struct node *next;
explicit node(int);
};
class Pile{
private:
node *top;
int size;
protected:
node* insertValeu(node *&, int);
void removeValeu(node *&);
public:
Pile();
int getSize();
void ... | 11.290323 | 36 | 0.582857 | naidjeldias |
747871383e2ec8185377ec80ce5e859aee85a33c | 223 | cpp | C++ | runtime/src/runtime/network/side.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | 1 | 2021-04-26T11:24:02.000Z | 2021-04-26T11:24:02.000Z | runtime/src/runtime/network/side.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | 1 | 2020-06-09T08:53:07.000Z | 2020-06-16T13:37:15.000Z | runtime/src/runtime/network/side.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | null | null | null | #include "side.hpp"
namespace wind {
std::string SideToString(const Side side) {
switch (side) {
case Side::kServer:
return "server";
case Side::kClient:
default:
return "client";
}
}
} // namespace wind
| 15.928571 | 43 | 0.650224 | dumheter |
747b67e5a7aa13f3621ebf5ddd6d16453dcf554e | 18,706 | cpp | C++ | Hooks.cpp | maikel233/X-HOOK-For-CS-GO | 811bd67171ad48c44b9c5c05cc0fbb5fff4b3687 | [
"MIT"
] | 48 | 2018-11-10T06:39:17.000Z | 2022-03-10T18:44:52.000Z | Hooks.cpp | maikel233/X-HOOK-For-CS-GO | 811bd67171ad48c44b9c5c05cc0fbb5fff4b3687 | [
"MIT"
] | 7 | 2018-01-04T15:10:41.000Z | 2020-11-14T03:54:30.000Z | Hooks.cpp | maikel233/X-HOOK-For-CS-GO | 811bd67171ad48c44b9c5c05cc0fbb5fff4b3687 | [
"MIT"
] | 21 | 2018-11-23T23:13:09.000Z | 2022-03-14T21:11:38.000Z | #include "Hooks.h"
#include "Utils/Skins.h"
#include "GUI/Tabs/AimTabs/AimBotTab.h"
#include "SDK/SteamAPI.h"
#include "SDK/materialconfig.h"
#pragma comment(lib, "winmm.lib")
//#pragma comment(lib, "d3d9.lib")
bool Settings::Background::enable = true;
bool SetKeyCodeState::shouldListen = false;
ButtonCode_t* SetKe... | 33.523297 | 229 | 0.74559 | maikel233 |
747d2c9b57ad67d083031df7ec455524c50e9315 | 282 | cpp | C++ | Node.cpp | goodandevilsoftware/kasai | e2d6b9e84aa2e292ddcc1bc8688c284b9622ba32 | [
"Unlicense"
] | null | null | null | Node.cpp | goodandevilsoftware/kasai | e2d6b9e84aa2e292ddcc1bc8688c284b9622ba32 | [
"Unlicense"
] | null | null | null | Node.cpp | goodandevilsoftware/kasai | e2d6b9e84aa2e292ddcc1bc8688c284b9622ba32 | [
"Unlicense"
] | null | null | null | //
// Created by Nathaniel Blair on 24/10/20.
//
#include "Node.h"
void Node::Connect(Node *otherNode) {
friends.push_back(otherNode);
}
void Node::Receive(string message) {
// TODO: implement Receive
}
void Node::Relay(string message) {
// TODO: implement relay
}
| 14.842105 | 42 | 0.666667 | goodandevilsoftware |
747dc2176fe92551812f62ac58a72c8dce42caf2 | 869 | hpp | C++ | uplift/src/objects/shared_memory.hpp | Inori/uplift | d718b83c66fda6fe018dac85c1fe7cdf79b559d5 | [
"MIT"
] | 1 | 2021-07-07T10:34:50.000Z | 2021-07-07T10:34:50.000Z | uplift/src/objects/shared_memory.hpp | Inori/uplift | d718b83c66fda6fe018dac85c1fe7cdf79b559d5 | [
"MIT"
] | null | null | null | uplift/src/objects/shared_memory.hpp | Inori/uplift | d718b83c66fda6fe018dac85c1fe7cdf79b559d5 | [
"MIT"
] | null | null | null | #pragma once
#include "object.hpp"
namespace uplift::objects
{
class SharedMemory : public Object
{
public:
static const Object::Type ObjectType = Type::SharedMemory;
public:
SharedMemory(Runtime* runtime);
virtual ~SharedMemory();
SyscallError Initialize(const std::string& path, uint32_t fl... | 26.333333 | 101 | 0.719217 | Inori |
748bf0f516f8e7819c352625c000de0bfa3e3dd8 | 59 | cpp | C++ | Engine/source/IO/Serializers.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | null | null | null | Engine/source/IO/Serializers.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | 34 | 2021-05-09T10:31:24.000Z | 2022-01-24T11:26:48.000Z | Engine/source/IO/Serializers.cpp | mbatc/Fractal | 0df1f6a64d03676e3dd8af0686413f6ffdbf6627 | [
"MIT"
] | null | null | null | #include "Fractal/IO/Serializers.h"
namespace Fractal
{
}
| 9.833333 | 35 | 0.745763 | mbatc |
748d1def6c804820e55ee5343f303284e6bdbbbf | 2,159 | cpp | C++ | Graphics3dSolution/Graphics3dLib/Rendering/RenderPaths/GraphicsBufferPath.cpp | TheFloHub/Graphics3dLib | 4e4b310b49b0bae35d45136ccc43a006b39ba2b5 | [
"MIT"
] | null | null | null | Graphics3dSolution/Graphics3dLib/Rendering/RenderPaths/GraphicsBufferPath.cpp | TheFloHub/Graphics3dLib | 4e4b310b49b0bae35d45136ccc43a006b39ba2b5 | [
"MIT"
] | null | null | null | Graphics3dSolution/Graphics3dLib/Rendering/RenderPaths/GraphicsBufferPath.cpp | TheFloHub/Graphics3dLib | 4e4b310b49b0bae35d45136ccc43a006b39ba2b5 | [
"MIT"
] | null | null | null | #include "GraphicsBufferPath.h"
#include <Graphics3dLib/Assets/Shader.h>
#include <Graphics3dLib/Rendering/FrameBufferObject.h>
#include <Graphics3dLib/Components/Camera.h>
#include <Graphics3dLib/Components/Transform.h>
#include <Graphics3dLib/Scene/SceneObject.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_inver... | 31.75 | 160 | 0.764706 | TheFloHub |
748e34b7e0eceb0b1a932b35182c3c6c4ba33e93 | 7,608 | cpp | C++ | Server Lib/Game Server/GAME/bot_gm_event.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | null | null | null | Server Lib/Game Server/GAME/bot_gm_event.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | null | null | null | Server Lib/Game Server/GAME/bot_gm_event.cpp | eantoniobr/SuperSS-Dev | f57c094f164cc90c2694df33ba394304cd0e7846 | [
"MIT"
] | 1 | 2021-11-03T00:21:07.000Z | 2021-11-03T00:21:07.000Z | // Arquivo bot_gm_event.cpp
// Criado em 03/11/2020 as 20:06 por Acrisio
// Implementa��o da classe BotGMEvent
#if defined(_WIN32)
#pragma pack(1)
#endif
#if defined(_WIN32)
#include <WinSock2.h>
#endif
#include "bot_gm_event.hpp"
#include "../../Projeto IOCP/DATABASE/normal_manager_db.hpp"
#include "../PANGYA_DB/... | 22.508876 | 260 | 0.699527 | eantoniobr |
749dc6719febf881b52d956537cd7a548f6a2e28 | 6,612 | hpp | C++ | tpls/pressio/include/pressio/WIP/rom/lspg/impl/steady/rom_compose_steady_lspg_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 29 | 2019-11-11T13:17:57.000Z | 2022-03-16T01:31:31.000Z | tpls/pressio/include/pressio/WIP/rom/lspg/impl/steady/rom_compose_steady_lspg_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 303 | 2019-09-30T10:15:41.000Z | 2022-03-30T08:24:04.000Z | tpls/pressio/include/pressio/WIP/rom/lspg/impl/steady/rom_compose_steady_lspg_impl.hpp | fnrizzi/pressio-demoapps | 6ff10bbcf4d526610580940753c9620725bff1ba | [
"BSD-3-Clause"
] | 4 | 2020-07-07T03:32:36.000Z | 2022-03-10T05:21:42.000Z | /*
//@HEADER
// ************************************************************************
//
// rom_compose_steady_lspg_impl.hpp
// Pressio
// Copyright 2019
// National Technology & Engineering Solutions of Sandia, LLC (NTESS)
//
// Under the terms of Contract DE-N... | 34.4375 | 91 | 0.748941 | fnrizzi |
74a9c4d6778e05abad93ba69a0dcdda1da4d528d | 3,654 | cpp | C++ | UnitTests/TestGameEventHandler/testgameeventhandler.cpp | Moppa5/pirkanmaan-valloitus | 725dd1a9ef29dcd314faa179124541618dc8e5bf | [
"MIT"
] | 3 | 2020-10-30T13:26:34.000Z | 2020-12-08T13:21:34.000Z | UnitTests/TestGameEventHandler/testgameeventhandler.cpp | Moppa5/pirkanmaan-valloitus | 725dd1a9ef29dcd314faa179124541618dc8e5bf | [
"MIT"
] | 15 | 2020-12-10T18:13:20.000Z | 2021-06-08T10:37:51.000Z | UnitTests/TestGameEventHandler/testgameeventhandler.cpp | Moppa5/pirkanmaan-valloitus | 725dd1a9ef29dcd314faa179124541618dc8e5bf | [
"MIT"
] | null | null | null | #include <QString>
#include <QtTest>
#include <interfaces/gameeventhandler.hh>
#include "core/player.hh"
using namespace Game;
/**
* @brief The TestGameEventHandler class is for unit testing
* GameEventHandler class. It tests that the methods work properly
* under valid conditions.
*/
class TestGameEventHandler :... | 28.546875 | 74 | 0.684729 | Moppa5 |
74ad20acebdfb2edc5e92b64d849d2a69949196f | 2,947 | cpp | C++ | tests/tagwriter.cpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | 1 | 2020-08-01T21:51:05.000Z | 2020-08-01T21:51:05.000Z | tests/tagwriter.cpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | 1 | 2020-05-01T11:52:59.000Z | 2020-05-01T11:52:59.000Z | tests/tagwriter.cpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | null | null | null | // Copyright(c) 2020-present, Moge & contributors.
// Email: dda119141@gmail.com
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include <iostream>
#include <memory>
#define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include "tagreader.hpp"
#include "tagwriter.hpp"
TEST_CASE("Read/Write from/... | 30.697917 | 79 | 0.608755 | dda119141 |
74ae7a99bdc0e9f5314ab89af36d7eee13582383 | 12,869 | cpp | C++ | framework/unitest/core/test_process_profiler.cpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 172 | 2019-08-24T10:05:14.000Z | 2022-03-29T07:45:18.000Z | framework/unitest/core/test_process_profiler.cpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 27 | 2019-09-01T11:04:45.000Z | 2022-01-17T09:27:07.000Z | framework/unitest/core/test_process_profiler.cpp | HFauto/CNStream | 1d4847327fff83eedbc8de6911855c5f7bb2bf22 | [
"Apache-2.0"
] | 72 | 2019-08-24T10:13:06.000Z | 2022-03-28T08:26:05.000Z | /*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... | 40.090343 | 118 | 0.749165 | HFauto |
74b5804be34a50f3fd7032bf5d3f30c5d7c250be | 7,178 | cpp | C++ | ares/component/processor/tlcs900h/registers.cpp | moon-chilled/Ares | 909fb098c292f8336d0502dc677050312d8b5c81 | [
"0BSD"
] | 7 | 2020-07-25T11:44:39.000Z | 2021-01-29T13:21:31.000Z | ares/component/processor/tlcs900h/registers.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | null | null | null | ares/component/processor/tlcs900h/registers.cpp | jchw-forks/ares | d78298a1e95fd0ce65feabfd4f13b60e31210a7a | [
"0BSD"
] | 1 | 2021-03-22T16:15:30.000Z | 2021-03-22T16:15:30.000Z | #define a RFP
#define p RFP - 1 & 3
template<> auto TLCS900H::map(Register<uint8> register) const -> maybe<uint8&> {
switch(register.id) {
#define r(id, name) case id: return r.name;
r(0x00, xwa[0].b.b0) r(0x01, xwa[0].b.b1) r(0x02, xwa[0].b.b2) r(0x03, xwa[0].b.b3)
r(0x04, xbc[0].b.b0) r(0x05, xbc[0].b.b1) r(... | 56.519685 | 137 | 0.588604 | moon-chilled |
74c369ddc7b5d7bf8c7f8930f9f06e47dd89ba17 | 3,446 | cpp | C++ | CoreTests/STL/Test_Types_FileAddress.cpp | azhirnov/GraphicsGenFramework-modular | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | 12 | 2017-12-23T14:24:57.000Z | 2020-10-02T19:52:12.000Z | CoreTests/STL/Test_Types_FileAddress.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | CoreTests/STL/Test_Types_FileAddress.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt'
#include "CoreTests/STL/Common.h"
using namespace GX_STL;
using namespace GX_STL::GXTypes;
using namespace GX_STL::GXMath;
extern void Test_Types_FileAddress ()
{
const String filename = "../11/../22/33\\44\\55.ab";
const String ext = FileA... | 36.659574 | 95 | 0.645386 | azhirnov |
74cb9c22d6bf4f20f239a8c94b290af86685859f | 1,078 | cpp | C++ | chapter02/2.5_Dealing_with_Types/2.5.2_The_auto_Type_Specifier.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 9 | 2019-05-10T05:39:21.000Z | 2022-02-22T08:04:52.000Z | chapter02/2.5_Dealing_with_Types/2.5.2_The_auto_Type_Specifier.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | null | null | null | chapter02/2.5_Dealing_with_Types/2.5.2_The_auto_Type_Specifier.cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 6 | 2019-05-13T13:39:19.000Z | 2022-02-22T08:05:01.000Z | /**
* 2.5.2 auto 类型说明符
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/7/14
*/
int main() {
/**
* C++11 新标准引入了 auto 类型说明符,用它就能让编译器替我们去分析表达式所属的类型,
* 也就是让编译器通过初始值来推算变量的类型。显然,auto 定义的变量必须有初始值。
*/
auto item = 1 + 2; // item 初始化未 1与2 的和,因为 1和2 都是int型,所以item也是int类型
auto i = 0, *p = &i; // i 是整数,p是整... | 23.434783 | 68 | 0.613173 | NorthFacing |
74cde53b5ebac6ea9f29daf67aae078b07bdf8bb | 2,869 | cpp | C++ | src/main.cpp | arihantdaga/wifi-dimmer | ba557fef52d3cccda9732538eb6fa38f0766fe50 | [
"MIT"
] | null | null | null | src/main.cpp | arihantdaga/wifi-dimmer | ba557fef52d3cccda9732538eb6fa38f0766fe50 | [
"MIT"
] | null | null | null | src/main.cpp | arihantdaga/wifi-dimmer | ba557fef52d3cccda9732538eb6fa38f0766fe50 | [
"MIT"
] | null | null | null | #include "button.hpp"
#include "config.hpp"
#include "dimmer.hpp"
// #include "encoder.hpp"
#include <Arduino.h>
#include <Embedis.h>
void onRotate(int8_t);
void onClick();
Button button;
unsigned long secondElapsed = millis();
unsigned long fakeFreq = millis();
Embedis embedis(Serial);
void setup() {
delay(2000... | 31.877778 | 114 | 0.577553 | arihantdaga |
74d12ac16006cf6e7da5d9fc77911a07d658cbe6 | 724 | cpp | C++ | convert_24h_to_12h/convert_24h_to_12h.cpp | BjornChrisnach/Introduction_to_Programming_in_C_plusplus | 57b96b0f99cb486276181474e333c3b09d21a749 | [
"MIT"
] | null | null | null | convert_24h_to_12h/convert_24h_to_12h.cpp | BjornChrisnach/Introduction_to_Programming_in_C_plusplus | 57b96b0f99cb486276181474e333c3b09d21a749 | [
"MIT"
] | null | null | null | convert_24h_to_12h/convert_24h_to_12h.cpp | BjornChrisnach/Introduction_to_Programming_in_C_plusplus | 57b96b0f99cb486276181474e333c3b09d21a749 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
int hour24, minutes24;
int hour12, minutes12;
string period;
char temp;
cout<<"Please enter a time in 24 hour format:"<<endl;
cin>>hour24>>temp>>minutes24;
minutes12 = minutes24;
if(hour24 >= 0 && hour24 <= 11){
... | 19.052632 | 84 | 0.476519 | BjornChrisnach |
74db8bc40a132f317512b5305d8ad5d8edeba284 | 2,616 | cpp | C++ | Melone/Src/Melone/Renderer/BufferObj.cpp | Nightskies/Melone | eb735a97fa1416c1feffecaefb479d30ce6e21e2 | [
"MIT"
] | null | null | null | Melone/Src/Melone/Renderer/BufferObj.cpp | Nightskies/Melone | eb735a97fa1416c1feffecaefb479d30ce6e21e2 | [
"MIT"
] | null | null | null | Melone/Src/Melone/Renderer/BufferObj.cpp | Nightskies/Melone | eb735a97fa1416c1feffecaefb479d30ce6e21e2 | [
"MIT"
] | null | null | null | #include "mlpch.h"
#include "BufferObj.h"
#include "Renderer.h"
#include "Platform/OpenGL/OpenGLBufferObj.h"
namespace Melone
{
VBOElement::VBOElement(ShaderDataType elType, std::string elName, bool elNormalized)
:
type(elType),
name(std::move(elName)),
size(ShaderDataTypeSize(elType)),
normalized(elNorma... | 21.8 | 85 | 0.689985 | Nightskies |
74e3b25f2b47de23ec1355fc2c6b5dafdd6baaa1 | 1,070 | cpp | C++ | docs/assets/examples/try.cpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | docs/assets/examples/try.cpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | docs/assets/examples/try.cpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | #include <optional>
#include <lexy/callback.hpp>
#include <lexy/dsl.hpp>
#include <lexy/input/string_input.hpp>
#include <lexy/parse.hpp>
#include <lexy_ext/cfile.hpp>
#include <lexy_ext/report_error.hpp>
namespace dsl = lexy::dsl;
//{
struct version
{
std::optional<int> major, minor, patch;
};
struct productio... | 24.318182 | 81 | 0.629907 | IohannRabeson |
74e47a7337eb25b058a9e4d072d7e4445832140e | 3,868 | cpp | C++ | libs/GameUI/controllers/NineSlicer.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | 3 | 2019-10-27T22:32:44.000Z | 2020-05-21T04:00:46.000Z | libs/GameUI/controllers/NineSlicer.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | libs/GameUI/controllers/NineSlicer.cpp | max-delta/retrofit-public | 5447fd6399fd74ffbb75494c103940751000db12 | [
"X11"
] | null | null | null | #include "stdafx.h"
#include "NineSlicer.h"
#include "GameUI/ContainerManager.h"
#include "GameUI/Container.h"
#include "GameUI/UIContext.h"
#include "RFType/CreateClassInfoDefinition.h"
#include "core_math/Lerp.h"
RFTYPE_CREATE_META( RF::ui::controller::NineSlicer )
{
RFTYPE_META().BaseClass<RF::ui::controller::... | 23.301205 | 115 | 0.65486 | max-delta |
74e4b1a8bf02b4a4a9d3056df3816ee1be31bef0 | 4,952 | cpp | C++ | source/rfid/source/rfid.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | null | null | null | source/rfid/source/rfid.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | 1 | 2017-02-18T10:51:07.000Z | 2017-02-18T10:51:07.000Z | source/rfid/source/rfid.cpp | hyphaproject/hyphaplugins | b41b396392c5546e3c2802bfc34213c5da04fdf4 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2016 Hypha
#include "hyphaplugins/rfid/rfid.h"
#include <errno.h>
#include <fcntl.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
#include <Poco/ClassLibrary.h>
#include <QtCore/QJsonArray>
#includ... | 27.977401 | 77 | 0.624394 | hyphaproject |
74e6f87843e903caabf0b62cb8af5d5cd1fea570 | 1,829 | hpp | C++ | libs/fnd/compare/include/bksge/fnd/compare/compare_three_way.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/compare/include/bksge/fnd/compare/compare_three_way.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/compare/include/bksge/fnd/compare/compare_three_way.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file compare_three_way.hpp
*
* @brief compare_three_way の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_COMPARE_COMPARE_THREE_WAY_HPP
#define BKSGE_FND_COMPARE_COMPARE_THREE_WAY_HPP
#include <bksge/fnd/compare/config.hpp>
#if defined(BKSGE_HAS_STD_COMPARE) && defined(BKSGE_HAS_CXX20_THREE_WA... | 23.753247 | 90 | 0.708037 | myoukaku |
d55df69f1911e31ef3e8cd409cb73c42ebd35b99 | 1,288 | hpp | C++ | lib/arbimath/bigint/VectorUtil.hpp | waegemans/arbimath | d3408b6b75762bdb276b8d9cec6de54ebae913d0 | [
"MIT"
] | null | null | null | lib/arbimath/bigint/VectorUtil.hpp | waegemans/arbimath | d3408b6b75762bdb276b8d9cec6de54ebae913d0 | [
"MIT"
] | null | null | null | lib/arbimath/bigint/VectorUtil.hpp | waegemans/arbimath | d3408b6b75762bdb276b8d9cec6de54ebae913d0 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string_view>
#include <vector>
namespace arbimath::vector_util {
/// add two vectors with given signs together and return resulting sign and magnitude
std::pair<bool, std::vector<uint64_t>> add(bool lhs_sign, const std::vector<uint64_t>& lhs, bool rhs_sign, const std::vector<... | 49.538462 | 141 | 0.763199 | waegemans |
d56022d6b0104b3fc55d7884289eb77b00de5581 | 10,572 | cpp | C++ | src/my_renderer.cpp | ldm0/my_soft_renderer | 25935e3e2ae1d8f0e7411ecc4b1abe6a60bd4497 | [
"WTFPL"
] | null | null | null | src/my_renderer.cpp | ldm0/my_soft_renderer | 25935e3e2ae1d8f0e7411ecc4b1abe6a60bd4497 | [
"WTFPL"
] | null | null | null | src/my_renderer.cpp | ldm0/my_soft_renderer | 25935e3e2ae1d8f0e7411ecc4b1abe6a60bd4497 | [
"WTFPL"
] | null | null | null | #include"my_renderer.h"
#include"my_graphic.h"
#include"my_obj_loader/my_obj_loader.h"
#include"SCG/scg.h"
#include<Windows.h>
#include<tchar.h>
#include<math.h>
Renderer::Renderer()
:draw_mode(DRAW_MESH),
yaw_pitch_roll({0}),
camera_position({0}),
back_buffer(0),
z_buffer(0),
v_buffer(0),
... | 31.094118 | 128 | 0.507283 | ldm0 |
d56700b5b805739edea709fd4eda59ecbd9decce | 259 | cpp | C++ | src/08_evaluation_step1.cpp | pbouamriou/tuto_mpl | 6c159662d50277f5bb4eda3038b394fb99501e3c | [
"MIT"
] | null | null | null | src/08_evaluation_step1.cpp | pbouamriou/tuto_mpl | 6c159662d50277f5bb4eda3038b394fb99501e3c | [
"MIT"
] | null | null | null | src/08_evaluation_step1.cpp | pbouamriou/tuto_mpl | 6c159662d50277f5bb4eda3038b394fb99501e3c | [
"MIT"
] | null | null | null | #include <iostream>
class X;
#if (__cplusplus < 201103L)
template<typename T>
struct Ptr {
typedef T* type;
};
#else
template<typename T>
struct Ptr {
using type = T*;
};
#endif
int main() {
std::cout << sizeof(Ptr<X>::type) << std::endl;
} | 11.26087 | 51 | 0.6139 | pbouamriou |
d567478d935bd4ceca756a92aa3b9b6980ab0f96 | 3,425 | cpp | C++ | functorch/csrc/BatchRulesPooling.cpp | laurencer/functorch | 1bc4093b09f7a69606ff3fd2e6c76ffd55d4ac13 | [
"BSD-3-Clause"
] | null | null | null | functorch/csrc/BatchRulesPooling.cpp | laurencer/functorch | 1bc4093b09f7a69606ff3fd2e6c76ffd55d4ac13 | [
"BSD-3-Clause"
] | null | null | null | functorch/csrc/BatchRulesPooling.cpp | laurencer/functorch | 1bc4093b09f7a69606ff3fd2e6c76ffd55d4ac13 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) Facebook, Inc. and its affiliates.
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include <functorch/csrc/BatchRulesHelper.h>
#include <functorch/csrc/PlumbingHelper.h>
#include <functorch/... | 42.8125 | 227 | 0.769343 | laurencer |
d56a9fada4449e73cfde2571a9dc7d1d58539527 | 658 | cpp | C++ | sw4261.cpp | sjnov11/SW-expert-academy | b7040017f2f8ff037aee40a5024284aaad1e50f9 | [
"MIT"
] | 1 | 2022-02-21T09:11:15.000Z | 2022-02-21T09:11:15.000Z | sw4261.cpp | sjnov11/SW-expert-academy | b7040017f2f8ff037aee40a5024284aaad1e50f9 | [
"MIT"
] | null | null | null | sw4261.cpp | sjnov11/SW-expert-academy | b7040017f2f8ff037aee40a5024284aaad1e50f9 | [
"MIT"
] | 1 | 2019-07-03T10:12:55.000Z | 2019-07-03T10:12:55.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
char keypad[26] = { '2','2','2',
'3','3','3',
'4','4','4',
'5','5','5',
'6','6','6',
'7','7','7','7',
'8','8','8',
'9','9','9','9' };
int main() {
int T;
cin >> T;
for (int tc = 1; tc <= T; tc++) {
stri... | 18.277778 | 45 | 0.401216 | sjnov11 |
d56d0d9dcc415e166f57e43916555271bef08c1d | 10,535 | cxx | C++ | Src/Projects/box_Spring/boxSpring_box.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 53 | 2018-04-21T14:16:46.000Z | 2022-03-19T11:27:37.000Z | Src/Projects/box_Spring/boxSpring_box.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 6 | 2019-06-05T16:37:29.000Z | 2021-09-20T07:17:03.000Z | Src/Projects/box_Spring/boxSpring_box.cxx | Mikkelbf/OpenMoBu | c57c41a0908ad7734d48642549758271d11263b8 | [
"BSD-3-Clause"
] | 10 | 2019-02-22T18:43:59.000Z | 2021-09-02T18:53:37.000Z |
/////////////////////////////////////////////////////////////////////////////////////////
//
// boxSpring_box.cxx
//
// Sergei <Neill3d> Solokhin 2014-2018
//
// GitHub page - https://github.com/Neill3d/OpenMoBu
// Licensed under The "New" BSD License - https ://github.com/Neill3d/OpenMoBu/blob/master/LICENSE
//
/////... | 25.203349 | 182 | 0.625914 | Mikkelbf |
d56da687f54879debee3aa016e468bdf7c357561 | 7,864 | cpp | C++ | sparta/test/Argos/DatabaseDump/Database_dumper.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/test/Argos/DatabaseDump/Database_dumper.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | sparta/test/Argos/DatabaseDump/Database_dumper.cpp | knute-sifive/map | fb25626830a56ad68ab896bcd01929023ff31c48 | [
"MIT"
] | null | null | null | #include "sparta/argos/Reader.hpp"
#include "sparta/argos/PipelineDataCallback.hpp"
#include "sparta/utils/SpartaAssert.hpp"
#include "sparta/utils/SpartaTester.hpp"
#include <iomanip>
#include <unordered_map>
#include <functional>
#include <unistd.h>
/**
* \file Database_dumper.cpp
* \brief dump an argos database t... | 34.491228 | 141 | 0.552009 | knute-sifive |
d570dc97b50454ae5075e488d7719a090bfd1215 | 5,791 | cpp | C++ | src/engine/entity/src/scripting/nodes/script_logic_gates.cpp | amrezzd/halley | 5f6a5dd7d44b9c12d2c124436969ff2dfa69e3f4 | [
"Apache-2.0"
] | null | null | null | src/engine/entity/src/scripting/nodes/script_logic_gates.cpp | amrezzd/halley | 5f6a5dd7d44b9c12d2c124436969ff2dfa69e3f4 | [
"Apache-2.0"
] | null | null | null | src/engine/entity/src/scripting/nodes/script_logic_gates.cpp | amrezzd/halley | 5f6a5dd7d44b9c12d2c124436969ff2dfa69e3f4 | [
"Apache-2.0"
] | null | null | null | #include "script_logic_gates.h"
using namespace Halley;
String ScriptLogicGateAnd::getShortDescription(const World& world, const ScriptGraphNode& node, const ScriptGraph& graph) const
{
auto a = getConnectedNodeName(world, node, graph, 0);
auto b = getConnectedNodeName(world, node, graph, 1);
return addParentheses... | 42.896296 | 169 | 0.756346 | amrezzd |
d573bc75a0042247c0b732f147440ff8edfefe5b | 8,243 | cpp | C++ | src/main.cpp | ysono/CarND-T3P1-Path-Planning | 1df4812381f51c22c35d46c9ae06a7a3f1eb68cb | [
"MIT"
] | null | null | null | src/main.cpp | ysono/CarND-T3P1-Path-Planning | 1df4812381f51c22c35d46c9ae06a7a3f1eb68cb | [
"MIT"
] | null | null | null | src/main.cpp | ysono/CarND-T3P1-Path-Planning | 1df4812381f51c22c35d46c9ae06a7a3f1eb68cb | [
"MIT"
] | null | null | null | #include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <tuple>
#include <vector>
#include <functional>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "support.h"
using std::cout;
using std::en... | 32.07393 | 131 | 0.582798 | ysono |
d575ed33c151f988d5b6bfdbec60ddfe488f3891 | 213 | cpp | C++ | src/var/ConstString.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | src/var/ConstString.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | src/var/ConstString.cpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#include "var/ConstString.hpp"
#include "var/Data.hpp"
using namespace var;
u32 sapi_const_string_unused;
| 17.75 | 100 | 0.737089 | bander9289 |
d57789c51db7859511e6e61ceb723422b33327ee | 10,500 | cpp | C++ | PS_Fgen_FW/Screens/ScreenPS.cpp | M1S2/PS_Fgen_FW | 3fca0e33487b95cd1a5b4c2e9ea0d4f9f7a4dd97 | [
"MIT"
] | null | null | null | PS_Fgen_FW/Screens/ScreenPS.cpp | M1S2/PS_Fgen_FW | 3fca0e33487b95cd1a5b4c2e9ea0d4f9f7a4dd97 | [
"MIT"
] | 11 | 2021-06-08T13:08:46.000Z | 2021-12-11T13:50:54.000Z | PS_Fgen_FW/Screens/ScreenPS.cpp | M1S2/PS_Fgen_FW | 3fca0e33487b95cd1a5b4c2e9ea0d4f9f7a4dd97 | [
"MIT"
] | 1 | 2021-06-25T12:26:36.000Z | 2021-06-25T12:26:36.000Z | /*
* ScreenPS.cpp
* Created: 07.11.2020 13:09:35
* Author: Markus Scheich
*/
#include "../Device.h"
#ifdef PS_SUBSYSTEM_ENABLED
ContainerList list_PS(SCREEN_TAB_WIDTH, 0, 240 - SCREEN_TAB_WIDTH, 64);
#define PS_COLUMN1_POSX SCREEN_TAB_WIDTH + 5
#define PS_COLUMN2_POSX PS_COLUMN1_POSX + 83
#define PS_COLUMN3_... | 66.037736 | 262 | 0.836381 | M1S2 |
d5798e8ed05db34d8c8fb29f13fb7b0c66f3eb67 | 3,748 | cpp | C++ | AIEngine/src/path/navmesh/polytope/PolytopePlaneSurface.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 18 | 2020-06-12T00:04:46.000Z | 2022-01-11T14:56:19.000Z | AIEngine/src/path/navmesh/polytope/PolytopePlaneSurface.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | null | null | null | AIEngine/src/path/navmesh/polytope/PolytopePlaneSurface.cpp | petitg1987/urchinEngine | a14a57ac49a19237d748d2eafc7c2a38a45b95d6 | [
"BSL-1.0"
] | 6 | 2020-08-16T15:58:41.000Z | 2022-03-05T13:17:50.000Z | #include <algorithm>
#include <path/navmesh/polytope/PolytopePlaneSurface.h>
namespace urchin {
/**
* @param ccwPoints Points of the plane which must be coplanar and counter clockwise oriented
*/
PolytopePlaneSurface::PolytopePlaneSurface(std::vector<Point3<float>> ccwPoints, bool isSlopeWalkable) ... | 36.745098 | 138 | 0.661686 | petitg1987 |
d581ed3bd62df2d3380dd0e9caa4e20aad775550 | 7,728 | cpp | C++ | tests/xtd.core.unit_tests/src/xtd/diagnostics/trace_listener.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | 1 | 2022-02-25T16:53:06.000Z | 2022-02-25T16:53:06.000Z | tests/xtd.core.unit_tests/src/xtd/diagnostics/trace_listener.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | tests/xtd.core.unit_tests/src/xtd/diagnostics/trace_listener.cpp | leanid/xtd | 2e1ea6537218788ca08901faf8915d4100990b53 | [
"MIT"
] | null | null | null | #define TRACE
#include <xtd/diagnostics/trace_listener.h>
#include <xtd/xtd.tunit>
#include <sstream>
using namespace xtd::diagnostics;
using namespace xtd::tunit;
namespace unit_tests {
class test_class_(test_trace_listener) {
class unit_test_trace_listener : public trace_listener {
public:
unit_test... | 40.041451 | 169 | 0.698499 | BaderEddineOuaich |
d584eb9d7aa75522aec97277674321061b90fbed | 5,296 | cpp | C++ | src/resource_provider/daemon.cpp | j143/mesos | a85a22baa32f66ecaa13c4602a195d57f6abf9be | [
"Apache-2.0"
] | null | null | null | src/resource_provider/daemon.cpp | j143/mesos | a85a22baa32f66ecaa13c4602a195d57f6abf9be | [
"Apache-2.0"
] | null | null | null | src/resource_provider/daemon.cpp | j143/mesos | a85a22baa32f66ecaa13c4602a195d57f6abf9be | [
"Apache-2.0"
] | null | null | null | // 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.613065 | 78 | 0.681647 | j143 |
d586f35a84d344c5c59774ecc4363eecd344167c | 5,634 | cc | C++ | m.heap/swe9416.cc | kimminki10/algorithms2 | 5d3b2d970dbc88169108632ce0d234bf74446316 | [
"MIT"
] | null | null | null | m.heap/swe9416.cc | kimminki10/algorithms2 | 5d3b2d970dbc88169108632ce0d234bf74446316 | [
"MIT"
] | null | null | null | m.heap/swe9416.cc | kimminki10/algorithms2 | 5d3b2d970dbc88169108632ce0d234bf74446316 | [
"MIT"
] | null | null | null | #ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <stdio.h>
#include <ctime>
/////
struct post {
int like=0;
int uid=-1;
int timestamp;
} posts[100'005];
int postCnt = 0;
int following[1'003][1'003];
int fidx[1'003];
int userNum;
void init(int N) {
userNum = N;
postC... | 26.450704 | 77 | 0.49219 | kimminki10 |
d587565617377a489d461c0dabadcd937e65b083 | 1,706 | cpp | C++ | part7/Task7.3/Task7.3/sort.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | 1 | 2020-09-30T17:17:41.000Z | 2020-09-30T17:17:41.000Z | part7/Task7.3/Task7.3/sort.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | part7/Task7.3/Task7.3/sort.cpp | Matvey1703/Homework | 4599a5a5a1bdaeb819eee13a6233c72ce544c179 | [
"Apache-2.0"
] | null | null | null | #include <string.h>
#include "sort.h"
bool less(ListElement* element1, ListElement* element2, bool byPhone)
{
if (byPhone)
{
return strcmp(fieldPhone(element1), fieldPhone(element2)) < 0;
}
else
{
return strcmp(fieldName(element1), fieldName(element2)) < 0;
}
}
void mergeSort(List* list, ListElement* head,... | 25.848485 | 112 | 0.727433 | Matvey1703 |
d5886db1acc5531017a2656266bcc819a55ee107 | 16,472 | cc | C++ | thirdparty/google/type/timeofday.pb.cc | kobeya/GVA-demo | 41a57bfff01ab0de2f56ddcd7611514e550472ff | [
"Apache-2.0"
] | 2 | 2019-03-29T07:20:43.000Z | 2019-08-13T04:47:27.000Z | thirdparty/google/type/timeofday.pb.cc | kobeya/GVA-demo | 41a57bfff01ab0de2f56ddcd7611514e550472ff | [
"Apache-2.0"
] | null | null | null | thirdparty/google/type/timeofday.pb.cc | kobeya/GVA-demo | 41a57bfff01ab0de2f56ddcd7611514e550472ff | [
"Apache-2.0"
] | 1 | 2019-08-09T05:26:50.000Z | 2019-08-09T05:26:50.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/type/timeofday.proto
#include "google/type/timeofday.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_f... | 35.196581 | 168 | 0.700461 | kobeya |
d58a2f10f14324ec23e0876804b175d73a858784 | 60 | cpp | C++ | csapex_core_plugins/src/core/collection_node.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_core_plugins/src/core/collection_node.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_core_plugins/src/core/collection_node.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// HEADER
#include <csapex_core_plugins/collection_node.h>
| 20 | 48 | 0.8 | AdrianZw |
d58a5f894af4fb13f69479b9d8f5ee9cebf12ea2 | 331 | cpp | C++ | Ch 14/14.49_Book_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 14/14.49_Book_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | Ch 14/14.49_Book_test.cpp | Felon03/CppPrimer | 7dc2daf59f0ae7ec5670def15cb5fab174fe9780 | [
"Apache-2.0"
] | null | null | null | #include"14.49_Book.h"
int main()
{
Book book1(1, "cpp primer 5th", "Lippman", "2013", 76);
Book book2 = book1;
Book book3(book1);
Book book4 = Book(std::cin);
if (book2)
book2 = book4;
std::cout << book2 << std::endl;
auto flag = static_cast<bool>(book2);
std::cout << std::boolalpha << flag << std::endl;
... | 20.6875 | 56 | 0.625378 | Felon03 |
d58c5bb8038d50c0f658b79b6fcce571f4f5af83 | 4,353 | cpp | C++ | libs/img/src/CImage_SSE2.cpp | mrliujie/mrpt-learning-code | 7b41a9501fc35c36580c93bc1499f5a36d26c216 | [
"BSD-3-Clause"
] | 2 | 2020-04-21T08:51:21.000Z | 2022-03-21T10:47:52.000Z | libs/img/src/CImage_SSE2.cpp | qifengl/mrpt | 979a458792273a86ec5ab105e0cd6c963c65ea73 | [
"BSD-3-Clause"
] | null | null | null | libs/img/src/CImage_SSE2.cpp | qifengl/mrpt | 979a458792273a86ec5ab105e0cd6c963c65ea73 | [
"BSD-3-Clause"
] | null | null | null | /* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... | 32.244444 | 80 | 0.587641 | mrliujie |
d58db4da106d35a0d66213533072b97444540af1 | 1,055 | cpp | C++ | edc127.cpp | EDI9029/FC22 | 79dab09646b1f2e08ae0da1f385d48e5c8a9b09f | [
"MIT"
] | null | null | null | edc127.cpp | EDI9029/FC22 | 79dab09646b1f2e08ae0da1f385d48e5c8a9b09f | [
"MIT"
] | null | null | null | edc127.cpp | EDI9029/FC22 | 79dab09646b1f2e08ae0da1f385d48e5c8a9b09f | [
"MIT"
] | null | null | null | //Cooperation of EDB1 P.129//
//Edward 1,17,2022 //
/***************************************************************/
#include <stdio.h>
#include <stdlib.h>
int main(void){
int i,j,n,m,a,b,cur,book[101]={0},e[101][101];
int que[10001],head,tail;
scanf("%d %d",&n,&m);
for(i=1;i<=m;i++){
... | 17.881356 | 65 | 0.320379 | EDI9029 |
d5907501442b4aa0ba40b22f93327a99866432c2 | 32,515 | hpp | C++ | core/injector/application_injector.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | core/injector/application_injector.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | core/injector/application_injector.hpp | FlorianFranzen/kagome | 27ee11c78767e72f0ecd2c515c77bebc2ff5758d | [
"Apache-2.0"
] | null | null | null | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef KAGOME_CORE_INJECTOR_APPLICATION_INJECTOR_HPP
#define KAGOME_CORE_INJECTOR_APPLICATION_INJECTOR_HPP
#include <boost/di.hpp>
#include <boost/di/extension/scopes/shared.hpp>
#include <libp2p/injector/host_inject... | 43.998647 | 120 | 0.673658 | FlorianFranzen |
d594616cadf9861adc32438c5dc7e2cd09c48072 | 713 | cc | C++ | table/raw_table_test.cc | SZ-NPE/SLM-DB | aa3abdac29a7806344e7b219fda7396085cc5dd2 | [
"BSD-3-Clause"
] | 17 | 2019-11-18T07:02:23.000Z | 2021-12-30T10:15:08.000Z | table/raw_table_test.cc | SZ-NPE/SLM-DB | aa3abdac29a7806344e7b219fda7396085cc5dd2 | [
"BSD-3-Clause"
] | null | null | null | table/raw_table_test.cc | SZ-NPE/SLM-DB | aa3abdac29a7806344e7b219fda7396085cc5dd2 | [
"BSD-3-Clause"
] | 18 | 2019-11-21T14:08:50.000Z | 2022-03-17T07:46:16.000Z | #include "leveldb/env.h"
#include "util/testharness.h"
#include "raw_block_builder.h"
uint64_t clflush_cnt = 0;
uint64_t WRITE_LATENCY_IN_NS = 1000;
namespace leveldb {
class RAW_TABLE {
};
TEST(RAW_TABLE, Blocks) {
Options options;
RawBlockBuilder builder(&options);
for (int i = 0; i < 20; i++) {
std::st... | 19.805556 | 47 | 0.649369 | SZ-NPE |
d5953bec284bc2944f0f5da6301931a1ede0683a | 297 | cpp | C++ | dependencies/faucmix-src/src/stream.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | dependencies/faucmix-src/src/stream.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | dependencies/faucmix-src/src/stream.cpp | wareya/kotareci | 14c87d1364d442456f93cebe73a288f85b79ba74 | [
"Libpng"
] | null | null | null | #include "stream.hpp"
void * pcmstream::generateframe(SDL_AudioSpec * spec, unsigned int len, emitterinfo * info)
{}
bool pcmstream::isplaying()
{}
bool pcmstream::ready()
{}
Uint16 pcmstream::channels()
{}
void pcmstream::fire(emitterinfo * info)
{}
void pcmstream::cease(emitterinfo * info)
{}
| 19.8 | 91 | 0.727273 | wareya |
d5978aa2e91b2fedd8890a321292114f39635b26 | 1,211 | cpp | C++ | SumofLeftLeaves/SumofLeftLeaves.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | null | null | null | SumofLeftLeaves/SumofLeftLeaves.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | null | null | null | SumofLeftLeaves/SumofLeftLeaves.cpp | sbchong/LeetCode | 933c7d85519b473f48050b24465aaaba94eede8c | [
"Apache-2.0"
] | 1 | 2020-07-29T14:36:51.000Z | 2020-07-29T14:36:51.000Z | // SumofLeftLeaves.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。
//
#include <iostream>
struct TreeNode {
int val;
TreeNode* left;
TreeNode* right;
TreeNode() : val(0), left(nullptr), right(nullptr) {}
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
TreeNode(int x, TreeNode* left, TreeNode*... | 27.522727 | 90 | 0.605285 | sbchong |
d5990f4be26649b13bfe75497021fd1e9240b32b | 703 | hpp | C++ | include/alibabacloud/event_bridge_util.hpp | alibabacloud-sdk-cpp/eventbridge-util | 3d679f81a6ce1f55bd1f22c757e9999c31ac5c1a | [
"Apache-2.0"
] | 6 | 2020-09-10T06:40:24.000Z | 2022-02-09T06:06:11.000Z | include/alibabacloud/event_bridge_util.hpp | alibabacloud-sdk-cpp/eventbridge-util | 3d679f81a6ce1f55bd1f22c757e9999c31ac5c1a | [
"Apache-2.0"
] | 69 | 2020-09-14T08:07:44.000Z | 2022-01-27T09:05:09.000Z | include/alibabacloud/event_bridge_util.hpp | alibabacloud-sdk-cpp/eventbridge-util | 3d679f81a6ce1f55bd1f22c757e9999c31ac5c1a | [
"Apache-2.0"
] | 10 | 2020-09-11T07:54:03.000Z | 2022-03-11T06:08:35.000Z | // This file is auto-generated, don't edit it. Thanks.
#ifndef ALIBABACLOUD_EVENTBRIDGEUTIL_H_
#define ALIBABACLOUD_EVENTBRIDGEUTIL_H_
#include <boost/any.hpp>
#include <darabonba/core.hpp>
#include <iostream>
using namespace std;
namespace Alibabacloud_EventBridgeUtil {
class Client {
public:
static string getSt... | 27.038462 | 78 | 0.758179 | alibabacloud-sdk-cpp |
d59ab9d935963753331d357c5a80320501f64718 | 26 | cpp | C++ | src/orderparameters/SimpleVector.cpp | seanmarks/indus | a25012d79d5cb94986a3210a0c7f21b6d427ce5b | [
"MIT"
] | 6 | 2019-01-14T16:03:19.000Z | 2021-06-28T06:10:33.000Z | src/orderparameters/SimpleVector.cpp | seanmarks/indus | a25012d79d5cb94986a3210a0c7f21b6d427ce5b | [
"MIT"
] | 3 | 2020-01-25T21:46:15.000Z | 2021-08-17T15:31:53.000Z | src/orderparameters/SimpleVector.cpp | seanmarks/indus | a25012d79d5cb94986a3210a0c7f21b6d427ce5b | [
"MIT"
] | 2 | 2021-01-29T16:53:19.000Z | 2021-10-29T19:05:08.000Z | #include "SimpleVector.h"
| 13 | 25 | 0.769231 | seanmarks |
d59f1497dd708f9dec3713a85ee5fbafa18c14c8 | 870 | cpp | C++ | src/config.cpp | s-viour/wing | 5635cabaaf614672e5d6ee2d4dd617d74198c30a | [
"MIT"
] | null | null | null | src/config.cpp | s-viour/wing | 5635cabaaf614672e5d6ee2d4dd617d74198c30a | [
"MIT"
] | 8 | 2021-11-24T04:16:07.000Z | 2021-12-21T05:18:43.000Z | src/config.cpp | s-viour/wing | 5635cabaaf614672e5d6ee2d4dd617d74198c30a | [
"MIT"
] | null | null | null | #include <fstream>
#include <toml++/toml.h>
#include <wing/config.h>
using namespace wing;
wing::project_config wing::load_config(const fs::path& path) {
auto table = toml::parse_file(path.string());
auto name = table["name"].value<std::string>();
//auto project_type = table["type"].value<std::string>();
//a... | 28.064516 | 80 | 0.673563 | s-viour |
d5a91f47fb10019fe2401979688879374980da79 | 3,862 | cpp | C++ | oomact/src/error-terms/ErrorTermWheelsZ.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 21 | 2017-06-19T13:57:59.000Z | 2022-02-20T02:40:58.000Z | oomact/src/error-terms/ErrorTermWheelsZ.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 19 | 2017-05-10T09:11:25.000Z | 2019-03-11T16:41:36.000Z | oomact/src/error-terms/ErrorTermWheelsZ.cpp | OnyxBlack7/oomact | 5ae5fbbaddaf58e2fc24adaabedf711619934ac9 | [
"BSD-3-Clause"
] | 11 | 2017-06-19T13:39:12.000Z | 2022-03-16T19:53:27.000Z | /******************************************************************************
* Copyright (C) 2013 by Jerome Maye *
* jerome.maye@gmail.com *
* *
... | 40.229167 | 88 | 0.483687 | OnyxBlack7 |
d5abff91677d3a21ba2d351f9751df7cdbc0e86f | 400 | cpp | C++ | src/entity.cpp | kindanoob/pong | 92f649e5d9f2286509ea5f8738097f0fc26e3a8f | [
"MIT"
] | null | null | null | src/entity.cpp | kindanoob/pong | 92f649e5d9f2286509ea5f8738097f0fc26e3a8f | [
"MIT"
] | null | null | null | src/entity.cpp | kindanoob/pong | 92f649e5d9f2286509ea5f8738097f0fc26e3a8f | [
"MIT"
] | null | null | null | #include "entity.h"
Entity::Entity(const sf::Texture &texture, const std::string &name,
int x, int y, double dx, double dy, int w, int h, int row, int col):
name_(name), h_(h), w_(w), x_(x), y_(y), dx_(dx), dy_(dy), texture_(texture) {
sprite_.setTexture(texture);
sprite_.setTextureRect(sf... | 36.363636 | 87 | 0.5975 | kindanoob |
d5b10a97dd242b49178e0c5fe220607ba20daef3 | 7,119 | cpp | C++ | src/libtsduck/dtv/descriptors/tsISDBTerrestrialDeliverySystemDescriptor.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | 1 | 2019-04-23T21:16:00.000Z | 2019-04-23T21:16:00.000Z | src/libtsduck/dtv/descriptors/tsISDBTerrestrialDeliverySystemDescriptor.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/descriptors/tsISDBTerrestrialDeliverySystemDescriptor.cpp | cedinu/tsduck | dc693912b1fda85bcac3fcb830d7753bd8112552 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 38.690217 | 154 | 0.577047 | cedinu |
d5b39ffa193a8f72073a18803bfc48b7c3f511fe | 592 | cpp | C++ | android-31/java/io/NotActiveException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/java/io/NotActiveException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/java/io/NotActiveException.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JString.hpp"
#include "./NotActiveException.hpp"
namespace java::io
{
// Fields
// QJniObject forward
NotActiveException::NotActiveException(QJniObject obj) : java::io::ObjectStreamException(obj) {}
// Constructors
NotActiveException::NotActiveException()
: java::io::ObjectStreamException(
... | 21.925926 | 97 | 0.701014 | YJBeetle |
d5b49141afeee1125b245acc75c3de2651c2f55e | 5,158 | tcc | C++ | flens/lapack/la/lanst.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 98 | 2015-01-26T20:31:37.000Z | 2021-09-09T15:51:37.000Z | flens/lapack/la/lanst.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 16 | 2015-01-21T07:43:45.000Z | 2021-12-06T12:08:36.000Z | flens/lapack/la/lanst.tcc | stip/FLENS | 80495fa97dda42a0acafc8f83fc9639ae36d2e10 | [
"BSD-3-Clause"
] | 31 | 2015-01-05T08:06:45.000Z | 2022-01-26T20:12:00.000Z | /*
* Copyright (c) 2014, Michael Lehn
*
* 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,... | 28.185792 | 80 | 0.588019 | stip |
d5b6f7e628ff6bbd7230a7ed03e838c1f5eafcde | 1,029 | hpp | C++ | Libraries/Engine/Level.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Engine/Level.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Engine/Level.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
/// A level is resource that stores a set of objects that can be loaded into
/// a space. Level is different from most resource types in that it does
/// not really store the level data on the object but always loads the
/// data from the file system.
cl... | 22.369565 | 76 | 0.73275 | RyanTylerRae |
d5bac26d7bd25b563ec2ef3d1131aa52666770c8 | 1,871 | cpp | C++ | modules/spatialos/player_controls_sync.cpp | CharlesMicou/spatialgodot | f2d3819af3c8ef12026efc17e5e45f0cc5a4b9b8 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 23 | 2019-03-15T11:25:16.000Z | 2022-02-07T06:26:19.000Z | modules/spatialos/player_controls_sync.cpp | CharlesMicou/spatialgodot | f2d3819af3c8ef12026efc17e5e45f0cc5a4b9b8 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | modules/spatialos/player_controls_sync.cpp | CharlesMicou/spatialgodot | f2d3819af3c8ef12026efc17e5e45f0cc5a4b9b8 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1 | 2019-03-23T11:45:38.000Z | 2019-03-23T11:45:38.000Z | #include "player_controls_sync.h"
#include "editor_node.h"
#include "spatial_util.h"
#include <improbable/worker.h>
#include "component_view.h"
#include <spellcrest/player_controls.h>
WorkerLogger PlayerControlsSync::logger = WorkerLogger("player_controls_sync");
void PlayerControlsSync::sync(const Vector2 destinatio... | 40.673913 | 172 | 0.750935 | CharlesMicou |
d5c3c11b4e8a0abc93ed89fde09bd8536ae0681a | 8,038 | cc | C++ | Fleece/Core/SharedKeys.cc | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 134 | 2016-05-09T19:42:55.000Z | 2022-01-16T13:05:18.000Z | Fleece/Core/SharedKeys.cc | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 70 | 2016-05-09T05:16:46.000Z | 2022-03-08T19:43:30.000Z | Fleece/Core/SharedKeys.cc | tophatch/fleece | 8853b610575c1a7d68681a792188bab9c0c1ec7d | [
"Apache-2.0"
] | 32 | 2016-05-19T10:38:06.000Z | 2022-01-30T22:45:25.000Z | //
// SharedKeys.cc
//
// Copyright 2016-Present Couchbase, Inc.
//
// Use of this software is governed by the Business Source License included
// in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
// in that file, in accordance with the Business Source License, use of this
// software will be gov... | 27.621993 | 101 | 0.585096 | tophatch |
d5d292335c54348c250a7153199e33b654cd9459 | 77,031 | inl | C++ | src/fonts/stb_font_arial_bold_49_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_bold_49_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_bold_49_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_bold_49_usasc... | 68.532918 | 127 | 0.811206 | stetre |
d5d39d65bcd29a5f3ef342fdb428128bf7363589 | 7,790 | cpp | C++ | dlc/src/v20210125/model/ViewResponseInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | dlc/src/v20210125/model/ViewResponseInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | dlc/src/v20210125/model/ViewResponseInfo.cpp | sinjoywong/tencentcloud-sdk-cpp | 1b931d20956a90b15a6720f924e5c69f8786f9f4 | [
"Apache-2.0"
] | null | null | null | /*
* 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
... | 30.07722 | 141 | 0.66534 | sinjoywong |
d5d8d2ba88bfbe7ad100f17e91e8d167006b3f63 | 1,986 | cpp | C++ | lib/error.cpp | gabrielcuvillier/stdext | 3a5346deab9f3fd86aa66384222792313daa7524 | [
"MIT"
] | 1 | 2019-10-02T12:51:19.000Z | 2019-10-02T12:51:19.000Z | lib/error.cpp | gabrielcuvillier/stdext | 3a5346deab9f3fd86aa66384222792313daa7524 | [
"MIT"
] | null | null | null | lib/error.cpp | gabrielcuvillier/stdext | 3a5346deab9f3fd86aa66384222792313daa7524 | [
"MIT"
] | null | null | null | // Copyright (c) 2019 - Gabriel Cuvillier, Continuation Labs (www.continuation-labs.com)
// Licensed under the MIT License.
// Main header
#include <stdext/error>
// std
#include <cstdio> // std::fprintf, stderr
#include <cstdlib> // std::abort
#include <exception> // std::set_terminate
#include <string> ... | 32.557377 | 110 | 0.70292 | gabrielcuvillier |
d5df0056a57d0ab2789b04d18b7eb3b1c837dc62 | 17,119 | cpp | C++ | ASCIILib/DialogFrame.cpp | Natman64/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | 1 | 2019-09-27T11:20:10.000Z | 2019-09-27T11:20:10.000Z | ASCIILib/DialogFrame.cpp | NQNStudios/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | 13 | 2015-09-27T23:58:19.000Z | 2015-09-28T16:24:11.000Z | ASCIILib/DialogFrame.cpp | Natman64/ASCIILib | 04f661416261467df0d6f816fa31e870c0fcd8a9 | [
"MIT"
] | null | null | null | #include "DialogFrame.h"
#include <string>
#include <algorithm>
#include <stdlib.h>
#include <time.h>
#include <sstream>
#include "Log.h"
#include "StringTokenizer.h"
#include "Game.h"
using namespace ascii;
namespace
{
const unsigned int LINE_BREAK_AMOUNT = 2;
}
ascii::DialogFrame::Dialog... | 27.30303 | 100 | 0.563234 | Natman64 |
d5e10077a710ca79d5a9c42054fb12ad6e5f7d1c | 898 | cpp | C++ | test/vpunsignedshorttest.cpp | prodigeinfo/libvapor | eb23abd8c211f4a5b04dcee757ea323451011924 | [
"BSD-3-Clause"
] | null | null | null | test/vpunsignedshorttest.cpp | prodigeinfo/libvapor | eb23abd8c211f4a5b04dcee757ea323451011924 | [
"BSD-3-Clause"
] | null | null | null | test/vpunsignedshorttest.cpp | prodigeinfo/libvapor | eb23abd8c211f4a5b04dcee757ea323451011924 | [
"BSD-3-Clause"
] | null | null | null | #define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <vapor/vpunsignedshort.hpp>
using namespace std;
using namespace vapor;
BOOST_AUTO_TEST_SUITE(test_suite1)
BOOST_AUTO_TEST_CASE(vpunsignedshort_serialize)
{
vparchive_t expect, result;
vpunsignedshort vpn;
expect = "unsignedShort;... | 21.902439 | 93 | 0.711581 | prodigeinfo |
d5e4dd898852222cc34bd3fc24f21155f128d33b | 6,855 | cpp | C++ | src/jnc_api/jnc_DerivableType.cpp | vovkos/jancy | df693ef8072aeb4280d771a7d146041978ffce1f | [
"MIT"
] | 48 | 2017-04-21T15:55:22.000Z | 2021-11-19T16:40:25.000Z | src/jnc_api/jnc_DerivableType.cpp | vovkos/jancy | df693ef8072aeb4280d771a7d146041978ffce1f | [
"MIT"
] | 5 | 2018-09-18T07:43:46.000Z | 2021-07-31T15:41:09.000Z | src/jnc_api/jnc_DerivableType.cpp | vovkos/jancy | df693ef8072aeb4280d771a7d146041978ffce1f | [
"MIT"
] | 11 | 2018-10-06T11:33:43.000Z | 2022-03-04T10:16:23.000Z | //..............................................................................
//
// This file is part of the Jancy toolkit.
//
// Jancy is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/... | 22.47541 | 103 | 0.768053 | vovkos |
d5e572fcf3fe72934cef6d27a971b7646c24ca35 | 1,874 | cpp | C++ | Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 1 | 2021-11-26T08:29:28.000Z | 2021-11-26T08:29:28.000Z | Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | null | null | null | Userland/Libraries/LibWeb/Bindings/CSSStyleDeclarationWrapperCustom.cpp | TheCrott/serenity | 925f21353efaa5304c5d486e6802c4e75e0c4d15 | [
"BSD-2-Clause"
] | 1 | 2022-02-09T08:28:12.000Z | 2022-02-09T08:28:12.000Z | /*
* Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibWeb/Bindings/CSSStyleDeclarationWrapper.h>
#include <LibWeb/DOM/Element.h>
namespace Web::Bindings {
bool CSSStyleDeclarationWrapper::internal_has_property(JS::PropertyName const& name) const
{... | 36.745098 | 112 | 0.71825 | TheCrott |
d5e91b4055d47089a1923a34fe12cb477a0ea8c4 | 2,698 | cpp | C++ | bytezero/storages/bytezerosdk.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | bytezero/storages/bytezerosdk.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | bytezero/storages/bytezerosdk.cpp | alackfeng/bytezeroqt | 27978eb28a0637234be07a6a9daa6dcc9c684d40 | [
"MIT"
] | null | null | null | #include "bytezerosdk.h"
static const char* BYTEZERO_SDK_VERSION = "v1.0.0";
static QString BYTEZERO_APP_NAME = QObject::tr("bytezero");
static QString BYTEZERO_APP_TEST_NAME = QObject::tr("bytezero_test");
BytezeroSdk::BytezeroSdk(QObject *parent) : QObject(parent), m_config(new Config())
{
QThreadPool... | 24.089286 | 148 | 0.627131 | alackfeng |
d5eb0563dc8f258ba50d1435f0ea354f2d4a679c | 1,441 | cpp | C++ | test/treehash.test.cpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | test/treehash.test.cpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | test/treehash.test.cpp | habara-k/ac-library | c48e576430c335d7037fa88e9fa5f6a61858e68a | [
"Unlicense"
] | null | null | null | #define PROBLEM "http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=2821"
#include <atcoder/treehash>
#include <atcoder/dsu>
#include <iostream>
#include <map>
using namespace atcoder;
using namespace std;
int main() {
int n1, m1; cin >> n1 >> m1;
vector<vector<int>> g1(n1);
dsu uf(n1);
for (in... | 23.241935 | 79 | 0.476058 | habara-k |
d5eccc5795916c0fa10943584aa1ab5dacc91fc7 | 1,568 | inl | C++ | SoftRP/TextureRenderTargetImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/TextureRenderTargetImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | SoftRP/TextureRenderTargetImpl.inl | loreStefani/SoftRP | 2676145f74c734b272268820b1e1c503aa8ff765 | [
"MIT"
] | null | null | null | #ifndef SOFTRP_TEXTURE_RENDER_TARGET_IMPL_INL_
#define SOFTRP_TEXTURE_RENDER_TARGET_IMPL_INL_
#include "TextureRenderTarget.h"
namespace SoftRP {
inline TextureRenderTarget::TextureRenderTarget(unsigned int width, unsigned int height)
: m_texture{ width, height } {}
inline TextureRenderTarget::TextureRenderTarget... | 29.584906 | 116 | 0.772321 | loreStefani |
d5f481cf93f4874a412755e232e2e5838a5162ba | 325 | hpp | C++ | libs/actor/src/impl/protocol.hpp | nousxiong/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 118 | 2015-01-24T01:16:46.000Z | 2022-03-09T07:31:21.000Z | libs/actor/src/impl/protocol.hpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 1 | 2015-09-24T13:03:11.000Z | 2016-12-24T04:00:59.000Z | libs/actor/src/impl/protocol.hpp | txwdyzcb/gce | 722edb8c91efaf16375664d66134ecabb16e1447 | [
"BSL-1.0"
] | 30 | 2015-03-12T09:21:45.000Z | 2021-12-15T01:55:08.000Z | #ifndef GCE_IMPL_PROTOCOL_HPP
#define GCE_IMPL_PROTOCOL_HPP
#include <config.hpp>
namespace gce
{
namespace msg
{
struct header
{
header()
: size_(0)
, type_(match_nil)
{
}
boost::uint32_t size_;
match_t type_;
};
}
}
GCE_PACK(gce::msg::header, (size_&sfix)(type_));
#endif /// GCE_IMPL_PROTOCOL... | 12.037037 | 48 | 0.683077 | nousxiong |
d5f839e43706d7103b864cb0da6a9a052939c505 | 2,071 | cpp | C++ | 00-Starter/src/Player.cpp | BenjaminGonvers/SAE921-GRP4100-Box2D | 0ea3ff05bdd21ebc96ec1661a8766b370b8fab1c | [
"MIT"
] | null | null | null | 00-Starter/src/Player.cpp | BenjaminGonvers/SAE921-GRP4100-Box2D | 0ea3ff05bdd21ebc96ec1661a8766b370b8fab1c | [
"MIT"
] | null | null | null | 00-Starter/src/Player.cpp | BenjaminGonvers/SAE921-GRP4100-Box2D | 0ea3ff05bdd21ebc96ec1661a8766b370b8fab1c | [
"MIT"
] | null | null | null | #include "Player.h"
#include <SFML/Graphics.hpp>
#include <Box2D/Box2D.h>
#include <BodyFixtureType.h>
Player::Player(b2World& world, sf::Texture* texture, sf::SoundBuffer* sound_buffer, sf::Vector2f& pos, b2Vec2 vertices[], const int& number_vertices, b2BodyType body_type) :
PhysicalObject(world, texture, pos,vertic... | 22.51087 | 173 | 0.725254 | BenjaminGonvers |
d5fe2d76ea09661d1b4d7fee826b86f5a9f6236c | 4,858 | cc | C++ | public/c/tests/system/buffer_unittest.cc | niftich/mojo | cb29e37b254b43f432d70d1bf7661e1f9ef31577 | [
"BSD-3-Clause"
] | 1 | 2021-03-29T04:24:25.000Z | 2021-03-29T04:24:25.000Z | public/c/tests/system/buffer_unittest.cc | niftich/mojo | cb29e37b254b43f432d70d1bf7661e1f9ef31577 | [
"BSD-3-Clause"
] | null | null | null | public/c/tests/system/buffer_unittest.cc | niftich/mojo | cb29e37b254b43f432d70d1bf7661e1f9ef31577 | [
"BSD-3-Clause"
] | null | null | null | // 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.
// This file tests the C buffer API (the functions declared in
// mojo/public/c/include/mojo/system/buffer.h).
#include <mojo/system/buffer.h>
#include ... | 36.526316 | 76 | 0.742487 | niftich |
d5ff3c6462aa3185696e70f9629ae1d1810870c7 | 4,468 | hpp | C++ | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/condition_edge.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 45 | 2021-04-12T22:43:25.000Z | 2022-02-27T23:57:53.000Z | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/condition_edge.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 140 | 2021-04-13T04:28:19.000Z | 2022-03-30T12:44:32.000Z | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/condition_edge.hpp | WJaworskiRobotec/scenario_simulator_v2 | c23497ac8716dcefef20d4b5a4ff1185e01f48e6 | [
"Apache-2.0"
] | 13 | 2021-05-22T02:24:49.000Z | 2022-03-25T05:16:31.000Z | // Copyright 2015-2020 Tier IV, Inc. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by app... | 38.517241 | 80 | 0.539391 | WJaworskiRobotec |
9102488853d9d5e6e2efa2095887ee0bfdb10f5a | 9,764 | cpp | C++ | VoxViz/VoxVizCore/DataSetReader.cpp | apecoraro/VoxVizThesis | 43aeb666cc9f5005d9ec5b81acd4cc38aae0e0fd | [
"MIT"
] | 3 | 2017-11-13T09:52:06.000Z | 2019-06-27T16:57:58.000Z | VoxViz/VoxVizCore/DataSetReader.cpp | apecoraro/VoxVizThesis | 43aeb666cc9f5005d9ec5b81acd4cc38aae0e0fd | [
"MIT"
] | null | null | null | VoxViz/VoxVizCore/DataSetReader.cpp | apecoraro/VoxVizThesis | 43aeb666cc9f5005d9ec5b81acd4cc38aae0e0fd | [
"MIT"
] | 4 | 2018-03-27T17:08:02.000Z | 2021-01-28T06:36:44.000Z | #include "VoxVizCore/DataSetReader.h"
#include "VoxVizCore/PVMReader.h"
#include "VoxVizCore/SmartPtr.h"
#include <QtCore/QFileInfo>
#include <QtCore/QDir>
#include <fstream>
#include <sstream>
#include <iostream>
using namespace vox;
static const char * const PATH_SEPARATORS = "/\\";
static unsigned int PATH_SEPAR... | 35.376812 | 107 | 0.436194 | apecoraro |
9104150482f82dc3178dbffb9ebbccef66fe0881 | 153 | hpp | C++ | scenes/sphere_animation.hpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | null | null | null | scenes/sphere_animation.hpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | null | null | null | scenes/sphere_animation.hpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | 1 | 2021-03-18T08:05:35.000Z | 2021-03-18T08:05:35.000Z | #ifndef SPHERE_ANIMATION_HPP
#define SPHERE_ANIMATION_HPP
#include "renderer/Scene.hpp"
void renderSphereAnimation ();
#endif // SPHERE_ANIMATION_HPP
| 17 | 30 | 0.816993 | AdrienVannson |
9106d61feff462942f2afc9fdfb8f8e20c1cbd37 | 6,055 | cc | C++ | dali/operators/reader/numpy_reader_gpu_op.cc | awolant/DALI | ace3e0bee44b7b10cdf7255ec02e143646c68ce1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dali/operators/reader/numpy_reader_gpu_op.cc | awolant/DALI | ace3e0bee44b7b10cdf7255ec02e143646c68ce1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | dali/operators/reader/numpy_reader_gpu_op.cc | awolant/DALI | ace3e0bee44b7b10cdf7255ec02e143646c68ce1 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright (c) 2020-2021, NVIDIA CORPORATION & AFFILIATES. 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
//
/... | 39.575163 | 99 | 0.69711 | awolant |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.