hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ae826301e65217141d886d5c9cecc1330e2f9b2f | 1,265 | hpp | C++ | src/utils/objectloader.hpp | vi3itor/Blunted2 | 318af452e51174a3a4634f3fe19b314385838992 | [
"Unlicense"
] | 56 | 2020-07-22T22:11:06.000Z | 2022-03-09T08:11:43.000Z | GameplayFootball/src/utils/objectloader.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 9 | 2021-04-22T07:06:25.000Z | 2022-01-22T12:54:52.000Z | GameplayFootball/src/utils/objectloader.hpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 20 | 2017-11-07T16:52:32.000Z | 2022-01-25T02:42:48.000Z | // written by bastiaan konings schuiling 2008 - 2014
// this work is public domain. the code is undocumented, scruffy, untested, and should generally not be used for anything important.
// i do not offer support, so don't ask. to be used for inspiration :)
#ifndef _HPP_UTILS_OBJECTLOADER
#define _HPP_UTILS_OBJECTLOADE... | 35.138889 | 169 | 0.745455 | vi3itor |
ae84f1baee40d30a7bea10b0f4dcaa5056ed6a55 | 881 | hpp | C++ | app/app/render/line.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | 6 | 2022-02-05T23:28:12.000Z | 2022-02-24T11:08:04.000Z | app/app/render/line.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | app/app/render/line.hpp | muleax/slope | 254138703163705b57332fc7490dd2eea0082b57 | [
"MIT"
] | null | null | null | #pragma once
#include "app/render/config.hpp"
#include "app/render/shader.hpp"
namespace slope::app {
struct LinePoint {
vec3 position;
vec3 color;
};
class LineShader : public Shader
{
public:
struct AttributeLayout {
static constexpr uint32_t POSITION = 0;
static constexpr uint32_t ... | 19.152174 | 87 | 0.681044 | muleax |
ae86bf29878b03576c927d65956b6048a6fcb50e | 360 | cpp | C++ | openjudge/01/06/09.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2020-07-22T16:54:07.000Z | 2020-07-22T16:54:07.000Z | openjudge/01/06/09.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | 1 | 2018-05-12T12:53:06.000Z | 2018-05-12T12:53:06.000Z | openjudge/01/06/09.cpp | TheBadZhang/OJ | b5407f2483aa630068343b412ecaf3a9e3303f7e | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
int main () {
int n;
scanf ("%d", &n);
int *A = new int [n];
int *B = new int [n];
for (int a = 0; a < n; a += 1) {
scanf ("%d", &A [a]);
}
for (int a = 0; a < n; a += 1) {
scanf ("%d", &B [a]);
}
long long int result = 0;
for (int a = 0; a < n; a += 1) {
result += B [a] * A [a];
}... | 16.363636 | 33 | 0.430556 | TheBadZhang |
ae87f8438828385e5a6786957c55a6ecdf0f3cbe | 704 | cc | C++ | src/rvg.cc | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | 12 | 2016-01-05T08:34:52.000Z | 2020-11-23T22:46:39.000Z | src/rvg.cc | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | null | null | null | src/rvg.cc | jacquelineCelia/lexicon_discovery | 1a46f885ad24d2c510ae42f096b054cc6f216fcd | [
"MIT"
] | 4 | 2016-08-11T22:16:40.000Z | 2020-11-23T22:46:49.000Z | #include "rvg.h"
using namespace std;
using namespace boost;
using namespace boost::random;
RandomVarGen::RandomVarGen() {
// size_t SEED = time(0);
size_t SEED = 0;
generator.seed(SEED);
}
/*
float RandomVarGen::GetGammaSample(float a, float b) {
gamma_distribution<> dist(a, b);
return dist(gene... | 19.555556 | 55 | 0.65625 | jacquelineCelia |
ae88f519c1e0475badeffc676d7fc53c50de8bef | 3,231 | cpp | C++ | CS 3376/Assignment 2/Source Code/program2.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | 2 | 2020-02-23T05:33:45.000Z | 2021-03-29T00:44:25.000Z | CS 3376/Assignment 2/Source Code/program2.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | null | null | null | CS 3376/Assignment 2/Source Code/program2.cpp | deisterhold/UT-Dallas | 71d1db9c91c6382423f4c0b13d1a156b905ac42a | [
"Unlicense"
] | 5 | 2017-04-26T03:20:19.000Z | 2020-04-02T03:08:39.000Z | // Daniel Eisterhold
// dte130030@utdallas.edu
// CS 3376.502
#include <iostream>
#include <fstream>
#include <map>
#include "tclap/CmdLine.h"
using namespace std;
// Function for converting bool to string
const char* Bool2String(bool val) {
return val ? "true" : "false";
}
int main(int argc, char *argv[]) {
/... | 27.381356 | 134 | 0.636335 | deisterhold |
ae8be0e1b7e6ac5719aab36f8312110ca22b9b37 | 3,980 | cpp | C++ | src/CollisionPointFinder.cpp | gittem01/Portals2D | 20d02843dcbe968ee100428a636be611a93dc216 | [
"MIT"
] | 3 | 2022-01-17T11:58:37.000Z | 2022-01-20T14:05:08.000Z | src/CollisionPointFinder.cpp | gittem01/myBox2DPlayground | 443ba9cba780f34d3f7cd42ff96ca2742d5fd3ef | [
"MIT"
] | null | null | null | src/CollisionPointFinder.cpp | gittem01/myBox2DPlayground | 443ba9cba780f34d3f7cd42ff96ca2742d5fd3ef | [
"MIT"
] | null | null | null | #include "Portal.h"
std::vector<b2Vec2> Portal::getCollisionPoints(b2Fixture* fix1, b2Fixture* fix2) {
std::vector<b2Vec2> returnVector;
b2Shape::Type type1 = fix1->GetShape()->GetType();
b2Shape::Type type2 = fix2->GetShape()->GetType();
if (type2 == b2Shape::e_edge) {
return collideEdgeOther(fix2, fix1);
}
... | 29.701493 | 117 | 0.694975 | gittem01 |
ae8cd842181a439275b5c6bca94af9b1e5b600fa | 9,171 | cpp | C++ | src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp | schmidtseb/allpix-squared | f0e47c35a4db405d4d49887e4e8eaffe69176bfa | [
"MIT"
] | null | null | null | src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp | schmidtseb/allpix-squared | f0e47c35a4db405d4d49887e4e8eaffe69176bfa | [
"MIT"
] | null | null | null | src/modules/ROOTObjectReader/ROOTObjectReaderModule.cpp | schmidtseb/allpix-squared | f0e47c35a4db405d4d49887e4e8eaffe69176bfa | [
"MIT"
] | null | null | null | /**
* @file
* @brief Implementation of ROOT data file reader module
* @copyright Copyright (c) 2017 CERN and the Allpix Squared authors.
* This software is distributed under the terms of the MIT License, copied verbatim in the file "LICENSE.md".
* In applying this license, CERN does not waive the privileges and im... | 37.896694 | 124 | 0.61858 | schmidtseb |
ae8f8b92df0a7dec15e55b569a602f4dfcc2235f | 384 | cpp | C++ | aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | aashishgahlawat/codeforces/A/560-A/560-A-30841187.cpp | aashishgahlawat/CompetetiveProgramming | 12d6b2682765ae05b622968b9a26b0b519e170aa | [
"MIT"
] | null | null | null | #include <iostream>
#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0); cout.tie(0);
// your code goes here
int numberOfNotes;
cin>>numberOfNotes;
int noteValue;
while(numberOfNotes--){
cin>>noteValue;
if(noteValue==1){
... | 18.285714 | 37 | 0.611979 | aashishgahlawat |
ae8fc861c38806c6918eaeb152abcf9f91c3ab3a | 7,562 | cpp | C++ | src/core/SkAdvancedTypefaceMetrics.cpp | juanpca12/Google-Skia | 42e6798696ac3a93a2b7ba7a9d6a84b77eba0116 | [
"Apache-2.0"
] | 1 | 2020-09-15T08:43:34.000Z | 2020-09-15T08:43:34.000Z | third_party/skia/src/core/SkAdvancedTypefaceMetrics.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | third_party/skia/src/core/SkAdvancedTypefaceMetrics.cpp | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAdvancedTypefaceMetrics.h"
#include "SkTypes.h"
SkAdvancedTypefaceMetrics::~SkAdvancedTypefaceMetrics() {}
const int16_t kInvalidAdvance = SK_MinS16;
const int1... | 38.779487 | 80 | 0.585427 | juanpca12 |
ae91f1e1dfbd5c1f5278c1b2f99c649786c9a1a7 | 667 | cpp | C++ | WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | 1 | 2015-06-20T09:09:29.000Z | 2015-06-20T09:09:29.000Z | WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | null | null | null | WindowsOpenGLC++/SpaceInvaders/SpaceInvaders.cpp | BenjaminNitschke/MobileCourse | 802ce81f7cd9ee44b35f13e4da302a9fbd29a2b6 | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "SpaceGame.h"
#include "SpaceInvadersVisualTests.h"
using namespace SpaceInvaders;
int _stdcall WinMain(struct HINSTANCE__ *hInstance, struct HINSTANCE__ *hPrevInstance,
char *lpszCmdLine, int nCmdShow)
{
//SpaceInvadersVisualTests().ShowEmptyWindow();
//SpaceInvadersVisualTests().Show... | 33.35 | 86 | 0.790105 | BenjaminNitschke |
ae94f586ce8285b79286dd60028fc6316b696e36 | 1,347 | cpp | C++ | src/WatchdogBlinkAgent.cpp | jondurrant/RtosComponents | f791d9ebde40f6fbe0fc820269246363991115b9 | [
"MIT"
] | null | null | null | src/WatchdogBlinkAgent.cpp | jondurrant/RtosComponents | f791d9ebde40f6fbe0fc820269246363991115b9 | [
"MIT"
] | null | null | null | src/WatchdogBlinkAgent.cpp | jondurrant/RtosComponents | f791d9ebde40f6fbe0fc820269246363991115b9 | [
"MIT"
] | null | null | null | /*
* WatchdogBlinkAgent.cpp
*
* Created on: 27 Nov 2021
* Author: jondurrant
*/
#include "WatchdogBlinkAgent.h"
#include "hardware/watchdog.h"
WatchdogBlinkAgent::WatchdogBlinkAgent(unsigned int delay,
uint8_t watchdogSeconds) : BlinkAgent(delay) {
watchdogTime = watchdogSeconds;
}
WatchdogBlinkAgent::... | 20.723077 | 76 | 0.664439 | jondurrant |
ae97d894cdfbb1543ac236fd19ccf9dc78e8d58c | 2,136 | hpp | C++ | include/GamePlay.hpp | wooseokyourself/shmup | 9174208561043210f86f3d4c411589ac5a9aa417 | [
"MIT"
] | null | null | null | include/GamePlay.hpp | wooseokyourself/shmup | 9174208561043210f86f3d4c411589ac5a9aa417 | [
"MIT"
] | 25 | 2021-03-19T11:32:35.000Z | 2021-06-17T09:06:45.000Z | include/GamePlay.hpp | wooseokyourself/shmup | 9174208561043210f86f3d4c411589ac5a9aa417 | [
"MIT"
] | null | null | null | #ifndef __GAMEPLAY__
#define __GAMEPLAY__
#include <iostream>
#include <vector>
#include <queue>
#include "core/Object.hpp"
#include "Constants.hpp"
#include "World.hpp"
#include "Aircraft.hpp"
#include "StraightMovingObjectManager.hpp"
#include "Planetary.hpp"
#include "Ai.hpp"
#include "Hud.hpp"
#include "Sun.hpp"
... | 24.551724 | 100 | 0.725655 | wooseokyourself |
ae9f9dbab06028fa0a59e71146ede96412826983 | 404 | cpp | C++ | cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 2 | 2020-09-02T12:07:47.000Z | 2020-11-17T11:17:16.000Z | cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | null | null | null | cse419/LightOJ/1216/12044153_AC_0ms_1688kB.cpp | cosmicray001/academic | 6aa142baeba4bb1ad73b8669e37305ca0b5102a7 | [
"MIT"
] | 4 | 2020-08-11T14:23:34.000Z | 2020-11-17T10:52:31.000Z | #include <bits/stdc++.h>
#define pi acos(-1.0)
using namespace std;
int main()
{
int t, c = 0;
double h, p, r1, r2, r3;
scanf("%d", &t);
while(t--){
scanf("%lf %lf %lf %lf", &r1, &r2, &h, &p);
r3 = r1 - (((r1 - r2) * (h - p)) / h);
double vol = (pi * p * (r2 * r2 + r3 * r3 + r2... | 20.2 | 68 | 0.418317 | cosmicray001 |
aea084551163eacf3fbed4826d3d54edba61b5c7 | 877 | cpp | C++ | 3 - Branches/3.2 - Relational If-else/print_car_info.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | 11 | 2017-11-17T07:31:44.000Z | 2020-12-05T14:46:56.000Z | 3 - Branches/3.2 - Relational If-else/print_car_info.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | null | null | null | 3 - Branches/3.2 - Relational If-else/print_car_info.cpp | aTonyXiao/Zybook | 36cd05a436c6ca007cdd14638cf5ee2a7724b889 | [
"MIT"
] | 1 | 2019-10-15T20:58:51.000Z | 2019-10-15T20:58:51.000Z | #include <iostream>
using namespace std;
/*
Write multiple if statements. If carYear is 1969 or earlier, print "Probably has few safety features." If 1970 or higher, print "Probably has seat belts." If 1990 or higher, print "Probably has anti-lock brakes." If 2000 or higher, print "Probably has air bags." End each ph... | 24.361111 | 331 | 0.659065 | aTonyXiao |
aea0a437b86c6ad64ed3930b6e059c48819c7639 | 7,825 | cc | C++ | src/web/graph.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | src/web/graph.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | src/web/graph.cc | ngvozdiev/ncode | 269573ee651f3b5e13d323ee747fede244d47564 | [
"Apache-2.0"
] | null | null | null | #include "graph.h"
#include <ctemplate/template.h>
#include <ctemplate/template_dictionary.h>
#include <ctemplate/template_enums.h>
#include <stddef.h>
#include <cstdbool>
#include <map>
#include <set>
#include <string>
#include <tuple>
#include <type_traits>
#include <utility>
#include "../common/logging.h"
#include... | 35.247748 | 76 | 0.697252 | ngvozdiev |
aea2e18dfd0ebc31a3e80c3563683f7ee4d42075 | 2,342 | cpp | C++ | examples/ellipse_constraint.cpp | PetterS/spii | 98c5847223d7c3febea5a1aac6f4978dfef207ec | [
"BSD-2-Clause"
] | 35 | 2015-03-03T16:21:40.000Z | 2020-09-16T08:02:12.000Z | examples/ellipse_constraint.cpp | nashdingsheng/spii | 3130d0dc43af8ae79d1fdf315a8b5fc05fe00321 | [
"BSD-2-Clause"
] | 2 | 2015-07-16T14:41:55.000Z | 2018-04-09T19:27:22.000Z | examples/ellipse_constraint.cpp | nashdingsheng/spii | 3130d0dc43af8ae79d1fdf315a8b5fc05fe00321 | [
"BSD-2-Clause"
] | 11 | 2015-09-21T23:09:37.000Z | 2021-07-24T20:20:30.000Z | // Petter Strandmark 2013.
//
// This example illustrates how a constraint can
// be used to compute the closest point lying on
// an ellipse to a given point.
//
// Compare to the other ellipse example, which
// uses an explicit parametrization and is more
// efficient.
#include <iostream>
#include <stdexcept>
using ... | 20.189655 | 103 | 0.619129 | PetterS |
0004016749c1318eecbc8c43e9b35cbe9facbbae | 187 | hpp | C++ | Include/NinjaParty/Vertex.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | null | null | null | Include/NinjaParty/Vertex.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | null | null | null | Include/NinjaParty/Vertex.hpp | ThirdPartyNinjas/NinjaParty | 320665104158d7ad0c7b0d3841870e23f37213a7 | [
"MIT"
] | 1 | 2018-07-27T15:09:49.000Z | 2018-07-27T15:09:49.000Z | #ifndef NINJAPARTY_VERTEX_HPP
#define NINJAPARTY_VERTEX_HPP
namespace NinjaParty
{
struct Vertex
{
float x, y;
float u, v;
float r, g, b, a;
};
}
#endif//NINJAPARTY_VERTEX_HPP
| 12.466667 | 29 | 0.716578 | ThirdPartyNinjas |
00087f5a6e0d31e4d1b28698e0328ec0d08730c2 | 380 | cc | C++ | racional/src/racional_funk.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486 | 35573801b8adc5a419d2787e22227daa3e5ad190 | [
"MIT"
] | null | null | null | racional/src/racional_funk.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486 | 35573801b8adc5a419d2787e22227daa3e5ad190 | [
"MIT"
] | null | null | null | racional/src/racional_funk.cc | ULL-ESIT-IB-2020-2021/ib-practica11-oop-cmake-Shao486 | 35573801b8adc5a419d2787e22227daa3e5ad190 | [
"MIT"
] | null | null | null | /**
* Universidad de La Laguna
* Escuela Superior de Ingeniería y Tecnología
* Grado en Ingeniería Informática
* Informática Básica Grupo 2
* @author Shaowei Weng
* @date 06/01/2021
* @brief
* @see
*/
#include <iostream> //std::cout, std::endl
#include <string> //std::string
#i... | 21.111111 | 55 | 0.610526 | ULL-ESIT-IB-2020-2021 |
001364af0d16817926fd6ebbfab1cfb942a95dc6 | 1,538 | cpp | C++ | Builder/main.cpp | fawcio/design_patters_examples | 9393b53ca542255970bfdb7ce8e3978e55398cd0 | [
"MIT"
] | null | null | null | Builder/main.cpp | fawcio/design_patters_examples | 9393b53ca542255970bfdb7ce8e3978e55398cd0 | [
"MIT"
] | null | null | null | Builder/main.cpp | fawcio/design_patters_examples | 9393b53ca542255970bfdb7ce8e3978e55398cd0 | [
"MIT"
] | null | null | null | #include <iostream>
#include <memory>
#include <sstream>
#include <vector>
#include "XMLBuilder.hpp"
#include "GroovyStyleHTMLBuilder.hpp"
#include "PersonBuilder/PersonAddressBuilder.hpp"
#include "PersonBuilder/PersonBuilder.hpp"
#include "PersonBuilder/PersonJobBuilder.hpp"
// clang-format off
int main()
{
//... | 26.517241 | 76 | 0.594928 | fawcio |
0016156808156816ec8abb86d422d61189219bf9 | 8,032 | cpp | C++ | contrib/IECoreUSD/src/IECoreUSD/CameraAlgo.cpp | ericmehl/cortex | 054839cc709ce153d1bcaaefe7f340ebe641ec82 | [
"BSD-3-Clause"
] | 386 | 2015-01-02T11:10:43.000Z | 2022-03-10T15:12:20.000Z | contrib/IECoreUSD/src/IECoreUSD/CameraAlgo.cpp | ericmehl/cortex | 054839cc709ce153d1bcaaefe7f340ebe641ec82 | [
"BSD-3-Clause"
] | 484 | 2015-01-09T18:28:06.000Z | 2022-03-31T16:02:04.000Z | contrib/IECoreUSD/src/IECoreUSD/CameraAlgo.cpp | ericmehl/cortex | 054839cc709ce153d1bcaaefe7f340ebe641ec82 | [
"BSD-3-Clause"
] | 99 | 2015-01-28T23:18:04.000Z | 2022-03-27T00:59:39.000Z | //////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2020, Cinesite VFX Ltd. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistrib... | 38.990291 | 142 | 0.699577 | ericmehl |
0016ddeb84202d6249f47a6996d2d59f00300bf8 | 7,064 | hpp | C++ | src/Process.hpp | zlin888/irispl | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | 4 | 2020-04-01T05:45:30.000Z | 2020-05-14T06:38:25.000Z | src/Process.hpp | zlin888/typed-scheme | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | null | null | null | src/Process.hpp | zlin888/typed-scheme | ee2228eb1155c4cffb906a327b7257fb1d360590 | [
"MIT"
] | null | null | null | #ifndef PROCESS_HPP
#define PROCESS_HPP
#include <string>
#include <utility>
#include <vector>
#include <map>
#include <stdexcept>
#include <memory>
#include "Instruction.hpp"
#include "Utils.hpp"
#include "ModuleLoader.hpp"
#include "IrisObject.hpp"
#include "Heap.hpp"
using namespace std;
typedef int PID;
enum cl... | 31.535714 | 122 | 0.640997 | zlin888 |
00178c1eb5e14c62d5fbe1e65d87d819c45e1e7d | 2,622 | c++ | C++ | fm/fmHand.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | fm/fmHand.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | fm/fmHand.c++ | camilleg/vss | 27f1c8f73f8d7ef2d4e5de077e4b2ed7e4f72803 | [
"MIT"
] | null | null | null | #include "fm.h"
fmHand::fmHand(fmAlg* alg): VHandler(alg)
{
setTypeName("fmHand");
}
int fmHand::receiveMessage(const char* Message)
{
CommandFromMessage(Message);
if (CommandIs("SetFreq"))
{
ifFF(z,z2, setCarrierFreq(z, z2) );
ifF(z, setCarrierFreq(z) );
return Uncatch();
}
if (CommandIs("SetCarFreq")... | 20.645669 | 88 | 0.636537 | camilleg |
0018deb8b7b6b1d0b5e54d218af4939858594eb3 | 576 | cpp | C++ | engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | engine/kotek.core.containers.unordered_set/src/main_core_containers_unordered_set_dll.cpp | wh1t3lord/kotek | 1e3eb61569974538661ad121ed8eb28c9e608ae6 | [
"Apache-2.0"
] | null | null | null | #include "../include/kotek_core_containers_unordered_set.h"
namespace Kotek
{
namespace Core
{
bool InitializeModule_Core_Containers_Unordered_Set(
ktkMainManager* p_manager)
{
return true;
}
bool SerializeModule_Core_Containers_Unordered_Set(
ktkMainManager* p_manager)
{
return true;
}
b... | 18.580645 | 59 | 0.753472 | wh1t3lord |
001b21579d46ae51d210924388e89b1fb1f89b2f | 4,833 | cpp | C++ | ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp | jerrypoiu/DX11_ChipsEngine2021 | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | 1 | 2021-01-25T11:38:21.000Z | 2021-01-25T11:38:21.000Z | ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp | jerrypoiu/ChipsEngine | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | null | null | null | ChipsEninge/02_Script/Deprecated/ColliderComponents/ACollider.cpp | jerrypoiu/ChipsEngine | a558fb0013259a380d68b66142fc48b575208980 | [
"MIT"
] | null | null | null | #include "ChipsSystem/Components/ColliderComponents/ACollider.h"
#include "ChipsSystem/Global/Global.h"
#include "ChipsSystem/Camera/Camera.h"
#include "ChipsSystem/Etc/Mathf.h"
#include "ChipsSystem/Etc/Debug.h"
#include "DirectX/Effects/Effects.h"
#include "DirectX/Effects/RenderStates.h"
namespace ChipsEngine
{
AC... | 31.588235 | 136 | 0.740741 | jerrypoiu |
001b7ecbef2687eed96ea98c98dd21eb6188f234 | 8,083 | hpp | C++ | kit/Delta.hpp | klada/online | 3c1185aca331222fefcc7a55c8d30064e2ef0a58 | [
"BSD-2-Clause"
] | 1 | 2021-07-25T06:22:35.000Z | 2021-07-25T06:22:35.000Z | kit/Delta.hpp | klada/online | 3c1185aca331222fefcc7a55c8d30064e2ef0a58 | [
"BSD-2-Clause"
] | 1 | 2022-02-24T13:46:43.000Z | 2022-02-24T13:46:43.000Z | kit/Delta.hpp | klada/online | 3c1185aca331222fefcc7a55c8d30064e2ef0a58 | [
"BSD-2-Clause"
] | 1 | 2022-01-20T03:10:13.000Z | 2022-01-20T03:10:13.000Z | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <vector... | 29.826568 | 99 | 0.477545 | klada |
001d4655adb5de70ea35db08ce878be222998580 | 3,230 | hh | C++ | tests/sot-test-device.hh | nim65s/roscontrol_sot | 98edaef43342d9beff21e02a01888244e6677987 | [
"BSD-2-Clause"
] | 1 | 2021-05-06T13:58:20.000Z | 2021-05-06T13:58:20.000Z | tests/sot-test-device.hh | nim65s/roscontrol_sot | 98edaef43342d9beff21e02a01888244e6677987 | [
"BSD-2-Clause"
] | 19 | 2018-09-27T13:15:12.000Z | 2021-12-07T14:46:59.000Z | tests/sot-test-device.hh | nim65s/roscontrol_sot | 98edaef43342d9beff21e02a01888244e6677987 | [
"BSD-2-Clause"
] | 6 | 2018-08-10T16:03:30.000Z | 2022-02-22T12:55:27.000Z | /*
* Copyright 2019,
*
* Olivier Stasse
*
* LAAS, CNRS
*
*
*/
#ifndef _SOT_TestDevice_H_
#define _SOT_TestDevice_H_
#include <dynamic-graph/entity.h>
#include <dynamic-graph/linear-algebra.h>
#include <dynamic-graph/signal-ptr.h>
#include <dynamic-graph/signal.h>
#include <sot/core/abstract-sot-external-inter... | 31.980198 | 80 | 0.713313 | nim65s |
0022ae7adac3238dbe8fd44f328e09e3b86b4e73 | 759 | cpp | C++ | C++ Library/studentinfo/studentinfo.cpp | Itstechnology124/Hacktoberfest | 935676df643c640419dcb8b69a0a6540e6545476 | [
"MIT"
] | 2 | 2021-11-16T12:30:14.000Z | 2022-01-29T14:09:27.000Z | C++ Library/studentinfo/studentinfo.cpp | Itstechnology124/Hacktoberfest | 935676df643c640419dcb8b69a0a6540e6545476 | [
"MIT"
] | 1 | 2021-10-31T18:29:03.000Z | 2021-10-31T18:29:03.000Z | C++ Library/studentinfo/studentinfo.cpp | AhmedRaja1/Hacktoberfest-2020 | 74c20a68fb5bbe11af7129c18f22183730ccae69 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
struct student_t{
string name;
string reg_num;
int sem_num;
};
int main()
{
string reg;
student_t x[10];
for(int a=0;a<=10;a++)
{
cout<<"Enter the name of student : ";
cin>>x[a].name;
cout<<"\nenter registration number of student : ";
cin>>... | 21.685714 | 81 | 0.567852 | Itstechnology124 |
0028ca152d609c7911fa1dbf0f266d8c7ff5441c | 210 | cpp | C++ | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d493.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <cmath>
using namespace std;
int main()
{
long long int a,b,sum;
while(cin >> a >> b)
{
sum=pow(a,b);
cout<<sum<<endl;
}
return 0;
}
| 15 | 27 | 0.490476 | w181496 |
0029f8986b88290755f6abded5d9bf766221913f | 48,931 | cpp | C++ | uppsrc/ide/Debuggers/Gdb_MI2.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppsrc/ide/Debuggers/Gdb_MI2.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppsrc/ide/Debuggers/Gdb_MI2.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "Debuggers.h"
#include <ide/ide.h>
#include "PrettyPrinters.brc"
#define LDUMP(x) // DDUMP(x)
#define LLOG(x) // DLOG(x)
// we need those because we changed ArrayCtrl formats (including var types)
static VectorMap<String, String> DataMap2(const ArrayCtrl& data)
{
VectorMap<String, String> m;
... | 27.351034 | 173 | 0.620098 | dreamsxin |
002aefd2d03a44b50c728831e5c33f7bcfd0986c | 58,550 | cpp | C++ | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 1 | 2020-06-15T04:33:36.000Z | 2020-06-15T04:33:36.000Z | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | src/prod/ktl/src/src/kbitmap.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | /*++
Module Name:
kbitmap.cpp
Abstract:
This file contains the user mode and kernel mode implementations of a KBitmap object.
Author:
Norbert P. Kusters (norbertk) 7-Oct-2010
Environment:
Kernel mode and User mode
Notes:
Revision History:
--*/
#include <ktl.h>
/*++
Note:
Bits are... | 22.407195 | 129 | 0.591631 | vishnuk007 |
002c5adea58d6ee8209c2dd80bb3a6fda007dedd | 6,438 | cxx | C++ | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | vtkm/filter/testing/UnitTestContourFilterCustomPolicy.cxx | yisyuanliou/VTK-m | cc483c8c2319a78b58b3ab849da8ca448e896220 | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 29.39726 | 100 | 0.671326 | yisyuanliou |
002e71675b73e01f5ac02992f28b0ce56542690f | 3,280 | hpp | C++ | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 163 | 2016-08-28T23:24:05.000Z | 2022-03-31T04:51:51.000Z | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 144 | 2016-09-10T08:40:06.000Z | 2020-12-03T17:20:03.000Z | include/radix/Entity.hpp | atkurtul/RadixEngine | 0eb1c176a25aa9430f54d5a20ce5749360c51381 | [
"Zlib"
] | 88 | 2016-02-22T08:34:49.000Z | 2022-03-05T12:29:19.000Z | #ifndef RADIX_ENTITY_HPP
#define RADIX_ENTITY_HPP
#include <array>
#include <memory>
#include <stdexcept>
#include <type_traits>
#include <vector>
#include <RadixEntity/Entity.hpp>
#include <radix/Transform.hpp>
#include <radix/core/event/Event.hpp>
#include <radix/core/types/TimeDelta.hpp>
#include <radix/env/Util.... | 22.013423 | 99 | 0.685671 | atkurtul |
002f7ba7fa2063fecad5d66bf479f7fa0c9b35dc | 3,294 | hpp | C++ | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dataStructure/big_set.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | #ifndef ALGORITHM_BIG_SET_HPP
#define ALGORITHM_BIG_SET_HPP 1
#include <cassert>
#include <iostream>
#include <iterator>
#include <set>
#include <utility>
namespace algorithm {
// 連続した整数列の集合を管理するデータ構造.
template <typename T>
class BigSet {
std::set<std::pair<T, T> > s; // s:=(整数の集合). 連続する整数列[l,r)をpair(l,r)で表現する.... | 32.94 | 97 | 0.459016 | today2098 |
0030a42b66404e3e975e2a1778c046b9de8c0c5a | 2,086 | cpp | C++ | src/UI/TreeView.cpp | bradosia/BookFiler-Widget-QT-Sort-Filter-Tree | f5729e357edc61c954e9b30818ecd8eaee1c93e9 | [
"MIT"
] | null | null | null | src/UI/TreeView.cpp | bradosia/BookFiler-Widget-QT-Sort-Filter-Tree | f5729e357edc61c954e9b30818ecd8eaee1c93e9 | [
"MIT"
] | null | null | null | src/UI/TreeView.cpp | bradosia/BookFiler-Widget-QT-Sort-Filter-Tree | f5729e357edc61c954e9b30818ecd8eaee1c93e9 | [
"MIT"
] | 1 | 2020-12-03T16:42:36.000Z | 2020-12-03T16:42:36.000Z | /*
* @name BookFiler Library - Sort Filter Tree Widget
* @author Branden Lee
* @version 1.00
* @license MIT
* @brief Super fast tree sorting and filtering tree widget.
*/
/*
* piwebapi-ucdavis 1.0
*/
#include "TreeView.hpp"
#include <QKeyEvent>
//#include <QMimeData>
#include <QApplication>
#include <QClipboar... | 23.704545 | 72 | 0.674976 | bradosia |
0030f94cf1c5672aa77c40db5330f3dcf558c7c5 | 6,713 | cpp | C++ | 2-3course/saod/labs/c++/lab_9.cpp | soul-catcher/sibsutis | 5d7d88ffabbe445052927eb6c6097697df672997 | [
"WTFPL"
] | 10 | 2021-08-28T08:44:57.000Z | 2022-03-06T16:29:51.000Z | 2-3course/saod/labs/c++/lab_9.cpp | soul-catcher/sibsutis | 5d7d88ffabbe445052927eb6c6097697df672997 | [
"WTFPL"
] | null | null | null | 2-3course/saod/labs/c++/lab_9.cpp | soul-catcher/sibsutis | 5d7d88ffabbe445052927eb6c6097697df672997 | [
"WTFPL"
] | 6 | 2021-09-06T07:26:18.000Z | 2021-12-16T16:11:10.000Z | #include <iostream>
#include <cmath>
#include <random>
#include <algorithm>
#include <stdlib.h>
#include <unordered_map>
#include <fstream>
#include <functional>
using namespace std;
void shannon(const int n, double p[], int Length[], char c[][20]) {
double *q = new double[n];
q[0] = 0;
Length[0] = -floor... | 26.222656 | 120 | 0.44034 | soul-catcher |
00325fc6952883dd7de40dbae4232db7d602f424 | 8,314 | hpp | C++ | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/VROSC/EffectsPanel.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 49.784431 | 168 | 0.73719 | v0idp |
0032afdeaa43f2228e51ad5ee66c4ac11ab1d792 | 417 | cpp | C++ | libraries/eosiolib/tester/wasi_polyfill/__wasi_args_get.cpp | abitmore/Eden | 90bf6c5c7297b1dc79745b0ea001e1c48e7ba170 | [
"MIT"
] | 35 | 2021-04-02T02:17:39.000Z | 2021-11-23T17:46:50.000Z | libraries/eosiolib/tester/wasi_polyfill/__wasi_args_get.cpp | abitmore/Eden | 90bf6c5c7297b1dc79745b0ea001e1c48e7ba170 | [
"MIT"
] | 323 | 2021-04-07T15:07:39.000Z | 2022-01-25T01:11:38.000Z | libraries/eosiolib/tester/wasi_polyfill/__wasi_args_get.cpp | abitmore/Eden | 90bf6c5c7297b1dc79745b0ea001e1c48e7ba170 | [
"MIT"
] | 8 | 2021-05-10T01:19:47.000Z | 2022-01-24T23:05:00.000Z | #include <wasi/api.h>
extern "C" __wasi_errno_t __wasi_args_get(uint8_t** argv, uint8_t* argv_buf)
__attribute__((__import_module__("wasi_snapshot_preview1"), __import_name__("args_get")))
{
[[clang::import_name("tester_get_args")]] void tester_get_args(uint8_t * *argv,
... | 37.909091 | 93 | 0.628297 | abitmore |
0033802c4a076b8b2854c403991feb4610ee6c1b | 9,134 | cpp | C++ | glutgm/glutgm.cpp | skyfe79/GLUT-Tutorial | 524d349c2c08ebc6988c963534924895f9c462d9 | [
"MIT"
] | 3 | 2019-09-20T23:37:22.000Z | 2021-11-06T17:22:20.000Z | glutgm/glutgm.cpp | skyfe79/GLUT-Tutorial | 524d349c2c08ebc6988c963534924895f9c462d9 | [
"MIT"
] | null | null | null | glutgm/glutgm.cpp | skyfe79/GLUT-Tutorial | 524d349c2c08ebc6988c963534924895f9c462d9 | [
"MIT"
] | 3 | 2018-04-07T20:54:38.000Z | 2021-11-25T21:07:01.000Z |
#include <math.h>
#include <gl\glut.h>
#include <gl\gl.h>
#include <gl\glu.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
float angle=0.0,deltaAngle = 0.0,ratio;
float x=0.0f,y=1.75f,z=5.0f;
float lx=0.0f,ly=0.0f,lz=-1.0f;
int deltaMove = 0,h,w;
int font=(int)GLUT_BITMAP_8_BY_13;
static... | 23.602067 | 77 | 0.648018 | skyfe79 |
003663b16517ada4c50969c4cb23e31a8df2506b | 3,177 | cc | C++ | python_bindings/pysignal.cc | anand-bala/signal-temporal-logic | 7a62b2200d0a3d9a1e28c02562830f5460781ff3 | [
"BSD-3-Clause",
"MIT"
] | 13 | 2020-07-08T22:40:58.000Z | 2022-03-21T17:39:49.000Z | python_bindings/pysignal.cc | anand-bala/signal-temporal-logic | 7a62b2200d0a3d9a1e28c02562830f5460781ff3 | [
"BSD-3-Clause",
"MIT"
] | 3 | 2020-10-27T02:44:41.000Z | 2021-03-14T21:22:37.000Z | python_bindings/pysignal.cc | anand-bala/signal-temporal-logic | 7a62b2200d0a3d9a1e28c02562830f5460781ff3 | [
"BSD-3-Clause",
"MIT"
] | 2 | 2021-03-23T16:08:32.000Z | 2022-03-21T17:39:50.000Z | #include "bindings.hpp" // for init_signal_module
#include "signal_tl/ast.hpp" // for signal_tl
#include "signal_tl/fmt.hpp" // IWYU pragma: keep
#include "signal_tl/signal.hpp" // for Sample, Trace, Signal, SignalPtr
#include <array> // for array
#include <cstddef> //... | 45.385714 | 84 | 0.592383 | anand-bala |
00380314333c94863d928f3086bfdcd7c7aecd91 | 154 | hh | C++ | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/elle/reactor/http/fwd.hh | infinitio/elle | d9bec976a1217137436db53db39cda99e7024ce4 | [
"Apache-2.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z | #pragma once
namespace elle
{
namespace reactor
{
namespace http
{
class Client;
class Request;
class Service;
}
}
}
| 10.266667 | 20 | 0.564935 | infinitio |
003bf79c856e9edef356039aa65ac45b45adafa1 | 7,568 | cc | C++ | xic/src/gtkxic/gtkasmprog.cc | bernardventer/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 3 | 2020-01-26T14:18:52.000Z | 2020-12-09T20:07:22.000Z | xic/src/gtkxic/gtkasmprog.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | null | null | null | xic/src/gtkxic/gtkasmprog.cc | chris-ayala/xictools | 4ea72c118679caed700dab3d49a8d36445acaec3 | [
"Apache-2.0"
] | 2 | 2020-01-26T14:19:02.000Z | 2021-08-14T16:33:28.000Z |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... | 38.416244 | 79 | 0.570825 | bernardventer |
003d0d2f7df3a720b416c60edb66deac7c713153 | 16,883 | cpp | C++ | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | P1/cwcreator.cpp | Revuj/CrossWord-Puzzle | 16348b76ffa9a7ecf1b5a159264fbfd284f5e8d4 | [
"MIT"
] | null | null | null | #include <sstream>
#include <string>
#include <map>
#include <algorithm>
#include <iomanip>
#include "Board.h"
#include "Dictionary.h"
using namespace std;
void option();
//==============================================================================================//
//==============================================... | 31.794727 | 167 | 0.54623 | Revuj |
003d6a6e1eed2a4f087d8a050702b059cdf68903 | 77,643 | cpp | C++ | Server Lib/Game Server/GAME/grand_prix.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/GAME/grand_prix.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/GAME/grand_prix.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo grand_prix.cpp
// Criado em 18/06/2019 as 08:33 por Acrisio
// Implementa��o da classe GrandPrix
#if defined(_WIN32)
#pragma pack(1)
#endif
#if defined(_WIN32)
#include <WinSock2.h>
#endif
#include "grand_prix.hpp"
#include "../PACKET/packet_func_sv.h"
#include "../UTIL/lottery.hpp"
#include "../UTIL/ma... | 31.206994 | 258 | 0.682766 | CCasusensa |
0041df169c213db97a4597e446ca302865fee82b | 4,027 | cc | C++ | util/util.cc | ultravideo/rtp-benchmarks | 8aece72254eea8a223faf317595d459f5a4d7a52 | [
"BSD-2-Clause"
] | 8 | 2020-09-23T13:00:38.000Z | 2022-03-14T22:56:46.000Z | util/util.cc | ultravideo/rtp-benchmarks | 8aece72254eea8a223faf317595d459f5a4d7a52 | [
"BSD-2-Clause"
] | 2 | 2021-09-15T06:37:50.000Z | 2022-02-04T05:15:38.000Z | util/util.cc | ultravideo/rtp-benchmarks | 8aece72254eea8a223faf317595d459f5a4d7a52 | [
"BSD-2-Clause"
] | 1 | 2022-03-07T08:01:04.000Z | 2022-03-07T08:01:04.000Z | #include "util.hh"
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <stdint.h>
#include <unistd.h>
#include <fcntl.h>
#include <unistd.h>
void get_chunk_sizes(std::string filename, std::vector<u... | 24.113772 | 99 | 0.565682 | ultravideo |
004295d992bccea82c5e73d964e055ba7c050d3a | 234 | cpp | C++ | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | 03Section6/coding_ex4/main.cpp | barisCanCoskun/Cpp-Programming | 640a87db75dd9d31bb2dccf248b403e8b6713e1f | [
"MIT"
] | null | null | null | #include <iostream>
#include<string.h>
using namespace std;
int main ()
{
double hourly_wage{23.50};
int age;
string name;
cin >> name >> age ;
cout << name << " " << age << " " << hourly_wage << endl;
} | 16.714286 | 61 | 0.538462 | barisCanCoskun |
0046668f0ece068fa7b05468aa046c5ae8726b38 | 4,915 | cpp | C++ | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | null | null | null | s32v234_sdk/kernels/apu/sample_feature_detection_kernels/src/harris_apu.cpp | intesight/Panorama4AIWAYS | 46e1988e54a5155be3b3b47c486b3f722be00b5c | [
"WTFPL"
] | 2 | 2021-01-21T02:06:16.000Z | 2021-01-28T10:47:37.000Z |
/*****************************************************************************
*
* Freescale Confidential Proprietary
*
* Copyright (c) 2013 Freescale Semiconductor;
* Copyright (c) 2017 NXP
* All Rights Reserved
*
*****************************************************************************
*
* THIS SOFTWARE IS PROV... | 31.50641 | 127 | 0.58352 | intesight |
00488a8503ab9dbb45110a432a2e92a420aeb0fd | 55 | cpp | C++ | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | lib/libB/src/LibB.cpp | arnesor/gtest-template | a95911b34a04545a902db209197b23a6a2f00174 | [
"MIT"
] | null | null | null | #include "LibB.h"
LibB::LibB()
{
}
LibB::~LibB()
{
}
| 5.5 | 17 | 0.509091 | arnesor |
004b2c0b81968c7ae99f6f55391561b5d752696a | 4,357 | cpp | C++ | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | src/Orientations.cpp | kberryUSGS/SpiceRefactor | 1875bf6c873f084296004397ecf8f90ee5df7cef | [
"Unlicense"
] | null | null | null | #include "ale/Orientations.h"
#include "ale/InterpUtils.h"
namespace ale {
Orientations::Orientations(
const std::vector<Rotation> &rotations,
const std::vector<double> ×,
const std::vector<Vec3d> &avs,
const Rotation &const_rot,
const std::vector<int> const_frames,
const std::vector<i... | 29.439189 | 153 | 0.676153 | kberryUSGS |
004c8d2f77ac898ea1cc72dd0077b6563be5508b | 1,969 | cpp | C++ | Library/Force/DEFINED_FORCE.cpp | avimosher/shapesifter | 8b42200220764b8082fadad9bf5346b5d1844c06 | [
"MIT"
] | null | null | null | Library/Force/DEFINED_FORCE.cpp | avimosher/shapesifter | 8b42200220764b8082fadad9bf5346b5d1844c06 | [
"MIT"
] | null | null | null | Library/Force/DEFINED_FORCE.cpp | avimosher/shapesifter | 8b42200220764b8082fadad9bf5346b5d1844c06 | [
"MIT"
] | null | null | null | #include <Data/DATA.h>
#include <Data/RIGID_STRUCTURE_DATA.h>
#include <Driver/SIMULATION.h>
#include <Equation/MATRIX_BUNDLE.h>
#include <Force/DEFINED_FORCE.h>
#include <Force/FORCE.h>
#include <Parsing/PARSER_REGISTRY.h>
#include <iostream>
#include <math.h>
using namespace Mechanics;
///////////////////////////////... | 46.880952 | 141 | 0.678009 | avimosher |
004caa9de0b32d3f2e67f03660f47e8c1433b8b7 | 3,506 | cpp | C++ | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 28 | 2019-08-01T10:47:42.000Z | 2022-01-05T13:01:15.000Z | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 5 | 2021-03-09T15:17:53.000Z | 2022-02-12T19:15:11.000Z | util/SingleWriterValueListTest.cpp | denistsoi/yoga | a2aa1b7fca7e3573fba3d1978b29403fc0820da6 | [
"MIT"
] | 7 | 2019-12-31T01:01:52.000Z | 2021-11-23T17:18:52.000Z | /*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the LICENSE
* file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include <yoga/util/SingleWriterValueList.h>
#include <numeric>
#include <type_traits>
#include <unordered... | 21.378049 | 77 | 0.680548 | denistsoi |
004d47bf2920f6201d6d4e30ddd895c44330c971 | 2,615 | hpp | C++ | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | victor-timoshin/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 4 | 2020-02-11T13:22:58.000Z | 2022-02-24T00:37:43.000Z | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | null | null | null | src/Switch.System.Windows.Forms/include/Switch/System/Windows/Forms/FormBorderStyle.hpp | sgf/Switch | 8e8e687a8bdc4f79d482680da3968e9b3e464b8b | [
"MIT"
] | 2 | 2020-02-01T02:19:01.000Z | 2021-12-30T06:44:00.000Z | /// @file
/// @brief Contains Switch::System::Windows::Forms::BorderStyle enum.
#pragma once
#include <Switch/System/Enum.hpp>
/// @brief The Switch namespace contains all fundamental classes to access Hardware, Os, System, and more.
namespace Switch {
/// @brief The Switch::System namespace contains fundamental cl... | 46.696429 | 284 | 0.690631 | victor-timoshin |
00521aad40b7815ec83949efa8d3154d56e1cca3 | 608 | cpp | C++ | Cplus/FlipColumnsForMaximumNumberofEqualRows.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | 1 | 2018-01-22T12:06:28.000Z | 2018-01-22T12:06:28.000Z | Cplus/FlipColumnsForMaximumNumberofEqualRows.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | Cplus/FlipColumnsForMaximumNumberofEqualRows.cpp | JumHorn/leetcode | 1447237ae8fc3920b19f60b30c71a84b088cc200 | [
"MIT"
] | null | null | null | #include <string>
#include <unordered_map>
#include <vector>
using namespace std;
/*
bit set not sufficient for it
use string instead
*/
class Solution
{
public:
int maxEqualRowsAfterFlips(vector<vector<int>> &matrix)
{
unordered_map<string, int> m; //{row,count}
int res = 0;
for (auto &v : matrix)
{
if ... | 15.2 | 56 | 0.618421 | JumHorn |
005220553f1bdd10ea6b7953baec3e9a829eca3d | 1,505 | cpp | C++ | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | src/homework/04_iteration/main.cpp | acc-cosc-1337-spring-2022/acc-cosc-1337-spring-2022-AndrewGraz | 9d00dc54b0c12faf7543fefbca6830ecd6494a2b | [
"MIT"
] | null | null | null | //write include statements
#include<iostream>
#include "dna.h"
//write using statements
using std::cout; using std::cin;
/*
Write code that prompts user to enter 1 for Get GC Content,
or 2 for Get DNA Complement. The program will prompt user for a
DNA string and call either get gc content or get dna complement
func... | 22.132353 | 76 | 0.501661 | acc-cosc-1337-spring-2022 |
0052539f301eb8e184530ec7b295e93e2ad86b3c | 1,260 | hpp | C++ | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 41 | 2016-03-25T18:14:37.000Z | 2022-01-20T11:16:52.000Z | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 4 | 2016-05-05T22:08:01.000Z | 2021-12-10T13:06:55.000Z | implementations/Vulkan/buffer.hpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 9 | 2016-05-23T01:51:25.000Z | 2021-08-21T15:32:37.000Z | #ifndef AGPU_VULKAN_BUFFER_HPP
#define AGPU_VULKAN_BUFFER_HPP
#include "device.hpp"
#include "../Common/spinlock.hpp"
namespace AgpuVulkan
{
using AgpuCommon::Spinlock;
class AVkBuffer : public agpu::buffer
{
public:
AVkBuffer(const agpu::device_ref &device);
~AVkBuffer();
static agpu::buffer_ref create... | 29.302326 | 132 | 0.785714 | rsayers |
0052e846a9d9966fdc73b1c963f80067f0f3d97c | 4,240 | cc | C++ | pagespeed/kernel/cache/write_through_cache_test.cc | wernight/incubator-pagespeed-mod | 51214eea728b1615c25667aac818c0fe107cc332 | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/cache/write_through_cache_test.cc | wernight/incubator-pagespeed-mod | 51214eea728b1615c25667aac818c0fe107cc332 | [
"Apache-2.0"
] | null | null | null | pagespeed/kernel/cache/write_through_cache_test.cc | wernight/incubator-pagespeed-mod | 51214eea728b1615c25667aac818c0fe107cc332 | [
"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 ... | 33.92 | 77 | 0.720991 | wernight |
005562e90383a39280e940ffab0268369d7d6db9 | 9,854 | cpp | C++ | src/dv/toolbox/LuaWrapper.cpp | SalvatoreDiGirolamo/SimFS | 56128f46ddd1acebf1ea4785410ce3f3f16a49d5 | [
"MIT"
] | 13 | 2019-02-13T10:53:22.000Z | 2022-01-18T13:24:00.000Z | src/dv/toolbox/LuaWrapper.cpp | SalvatoreDiGirolamo/SimFS | 56128f46ddd1acebf1ea4785410ce3f3f16a49d5 | [
"MIT"
] | 2 | 2019-06-07T08:37:12.000Z | 2019-06-13T10:42:53.000Z | src/dv/toolbox/LuaWrapper.cpp | SalvatoreDiGirolamo/SimFS | 56128f46ddd1acebf1ea4785410ce3f3f16a49d5 | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------------
* CppToolbox: LuaWrapper
* https://github.com/pirminschmid/CppToolbox
*
* Copyright (c) 2017, Pirmin Schmid, MIT license
*----------------------------------------------------------------------------*/
#include <ctime>
#include <iostr... | 30.987421 | 121 | 0.59519 | SalvatoreDiGirolamo |
005879945b602e6793af2da12f275fee5b97981d | 4,511 | cpp | C++ | clients/cpp-tizen/generated/src/GithubScm.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | 23 | 2017-08-01T12:25:26.000Z | 2022-01-25T03:44:11.000Z | clients/cpp-tizen/generated/src/GithubScm.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | 35 | 2017-06-14T03:28:15.000Z | 2022-02-14T10:25:54.000Z | clients/cpp-tizen/generated/src/GithubScm.cpp | cliffano/jenkins-api-clients-generator | 522d02b3a130a29471df5ec1d3d22c822b3d0813 | [
"MIT"
] | 11 | 2017-08-31T19:00:20.000Z | 2021-12-19T12:04:12.000Z | #include <map>
#include <cstdlib>
#include <glib-object.h>
#include <json-glib/json-glib.h>
#include "Helpers.h"
#include "GithubScm.h"
using namespace std;
using namespace Tizen::ArtikCloud;
GithubScm::GithubScm()
{
//__init();
}
GithubScm::~GithubScm()
{
//__cleanup();
}
void
GithubScm::__init()
{
//_class =... | 17.484496 | 80 | 0.655287 | cliffano |
005b347ccf7ed1057274810e27ef2c3af3aae661 | 168 | cpp | C++ | programming_puzzles/codewars/cpp/fakebinary.cpp | quantamancer/ProgrammingQuestionsRepo | 1041fb03a063bb6ca505bf92c18e8e284dc18ed4 | [
"Unlicense"
] | null | null | null | programming_puzzles/codewars/cpp/fakebinary.cpp | quantamancer/ProgrammingQuestionsRepo | 1041fb03a063bb6ca505bf92c18e8e284dc18ed4 | [
"Unlicense"
] | null | null | null | programming_puzzles/codewars/cpp/fakebinary.cpp | quantamancer/ProgrammingQuestionsRepo | 1041fb03a063bb6ca505bf92c18e8e284dc18ed4 | [
"Unlicense"
] | null | null | null | #include <string>
std::string fakeBin(std::string str){
for (int i = 0; i < str.length(); i++)
{
str[i] = ((str[i] - '0') > 4) ? '1' : '0';
}
return str;
} | 18.666667 | 46 | 0.482143 | quantamancer |
005ebc7af72108914b63ad62123d4850e6151b37 | 5,664 | cpp | C++ | camera/hal/mediatek/mtkcam/drv/iopipe/src/pass1/V4L2PipeMgr.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 4 | 2020-07-24T06:54:16.000Z | 2021-06-16T17:13:53.000Z | camera/hal/mediatek/mtkcam/drv/iopipe/src/pass1/V4L2PipeMgr.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2021-04-02T17:35:07.000Z | 2021-04-02T17:35:07.000Z | camera/hal/mediatek/mtkcam/drv/iopipe/src/pass1/V4L2PipeMgr.cpp | strassek/chromiumos-platform2 | 12c953f41f48b8a6b0bd1c181d09bdb1de38325c | [
"BSD-3-Clause"
] | 1 | 2020-11-04T22:31:45.000Z | 2020-11-04T22:31:45.000Z | /*
* Copyright (C) 2019 MediaTek Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 30.95082 | 78 | 0.684322 | strassek |
005f668e5878d2fb936b25bdd75c3a7f2aacd444 | 1,968 | cpp | C++ | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | 1 | 2015-12-01T07:15:04.000Z | 2015-12-01T07:15:04.000Z | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | null | null | null | source/solver/solution_finder.cpp | GreenLightning/circuit500_solver | b4e01c67beb36a98ea84aaf1c316b50315f497b1 | [
"MIT"
] | null | null | null | #include "board.hpp"
#include "configuration.hpp"
#include "solution_list.hpp"
#include "solution_finder.hpp"
Solution_Finder::Solution_Finder(int max_taps) :
max_taps(max_taps), solutions_checked(0) {}
void Solution_Finder::find(const Configuration& configuration, Board_Position start) {
++solutions_checked;
sta... | 35.781818 | 124 | 0.700203 | GreenLightning |
0063a8fff51b0a6b5dd2e041d5e6a37f6aea5742 | 5,674 | cpp | C++ | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | null | null | null | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | null | null | null | CommonModules/RenderStatesManager.cpp | AlexWIN32/SSAODemo | 56bee973b5b8fb9483918042c11ee107a262babc | [
"MIT"
] | 1 | 2019-12-30T10:53:35.000Z | 2019-12-30T10:53:35.000Z | /*******************************************************************************
Author: Alexey Frolov (alexwin32@mail.ru)
This software is distributed freely under the terms of the MIT License.
See "LICENSE" or "http://copyfree.org/content/standard/licenses/mit/license.txt".
******************************... | 35.4625 | 144 | 0.711315 | AlexWIN32 |
0069695e6b14339141f04d64e60be300b2ad228a | 747 | cpp | C++ | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | 1 | 2022-03-04T22:42:14.000Z | 2022-03-04T22:42:14.000Z | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | null | null | null | test.cpp | Nk125/CppMimeTypes | 3274ba025427e34561253a3564a7bfae8deb5ae3 | [
"MIT"
] | null | null | null | // Requires: https://github.com/renatoGarcia/icecream-cpp
#include "icecream.hpp"
#include "MimeTypes.hpp"
#include <string>
#include <vector>
int main() {
std::string buf;
std::vector<std::string> exts;
try {
buf = nk125::MimeTypes::getType(".txt");
IC(buf);
buf = nk125::MimeType... | 21.970588 | 63 | 0.546185 | Nk125 |
007883a84982a529b7496176e975b6127de42d76 | 1,963 | cpp | C++ | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Misc/UnusedCode/graphics/rojue_BitmapFont.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | #include "rojue_BitmapFont.h"
using namespace rojue;
//-------------------------------------------------------------------------------------------------
// construction/destruction:
//BitmapFont* BitmapFont::instance = NULL;
BitmapFont::BitmapFont()
{
ascent = 0;
descent = 0;
defaultKerning = 1... | 19.828283 | 99 | 0.479368 | RobinSchmidt |
007a9439afb6c2c6b2add06ad59a101340dd1c1c | 2,160 | cpp | C++ | codeforces/DIV2_664/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 3 | 2020-02-08T10:34:16.000Z | 2020-02-09T10:23:19.000Z | codeforces/DIV2_664/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | null | null | null | codeforces/DIV2_664/d.cpp | Shahraaz/CP_S5 | 2cfb5467841d660c1e47cb8338ea692f10ca6e60 | [
"MIT"
] | 2 | 2020-10-02T19:05:32.000Z | 2021-09-08T07:01:49.000Z | // Optimise
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "/home/shahraaz/bin/debug.h"
#else
#define db(...)
#endif
using ll = long long;
#define f first
#define s second
#define pb push_back
#define all(v) v.begin(), v.end()
const int NAX = 2e5 + 5, MOD = 1000000007;
struct Solution
{
Sol... | 22.5 | 131 | 0.421296 | Shahraaz |
007afd58d99200af5a4f9ccc4712f87ee47a6a49 | 3,157 | cpp | C++ | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | zaubara/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 151 | 2015-01-17T06:29:38.000Z | 2022-02-17T11:27:38.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-01T20:14:42.000Z | 2019-07-22T09:23:54.000Z | SampleOSXCocoaPodsProject/Pods/BRCLucene/src/core/CLucene/queryParser/FastCharStream.cpp | yonglam/BRFullTextSearch | e742f223a1c203eacb576711dd57b1187aee3deb | [
"Apache-2.0"
] | 28 | 2015-03-05T13:24:12.000Z | 2022-03-26T09:16:29.000Z | /*------------------------------------------------------------------------------
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
*
* Distributable under the terms of either the Apache License (Version 2.0) or
* the GNU Lesser General Public License, as specified in the COPYING file.
---------------------... | 25.877049 | 122 | 0.682293 | zaubara |
00823012cf52f37b295ed5462487eca23b4cf665 | 1,107 | cpp | C++ | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | Triangle.cpp | hyper1423/SomeFPS | dcd353124d58e2696be7eaf44cddec17d6259629 | [
"BSD-3-Clause"
] | null | null | null | #include "triangle.hpp"
VertexArray::TypeVertices Triangle::getVertices() const {
VertexArray::TypeVertices vertices = {
{ 0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 1.000000f },
{ -0.5f, 0.5f, 0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 0.000000f },
{ -0.5f, 0.5f, -0.5f, 0.0f, 0.0f, 1.0f, 1.000000f, 1.000000... | 34.59375 | 67 | 0.563686 | hyper1423 |
00852e80a178b16f7af17132a0943a14d3c95d30 | 1,676 | cpp | C++ | Server Lib/Game Server/PANGYA_DB/cmd_item_buff_info.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 23 | 2021-10-31T00:20:21.000Z | 2022-03-26T07:24:40.000Z | Server Lib/Game Server/PANGYA_DB/cmd_item_buff_info.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 5 | 2021-10-31T18:44:51.000Z | 2022-03-25T18:04:26.000Z | Server Lib/Game Server/PANGYA_DB/cmd_item_buff_info.cpp | CCasusensa/SuperSS-Dev | 6c6253b0a56bce5dad150c807a9bbf310e8ff61b | [
"MIT"
] | 18 | 2021-10-20T02:31:56.000Z | 2022-02-01T11:44:36.000Z | // Arquivo cmd_item_buff_info.cpp
// Criado em 21/03/2018 as 22:49 por Acrisio
// Implementa��o da classe CmdItemBuffInfo
#if defined(_WIN32)
#pragma pack(1)
#endif
#include "cmd_item_buff_info.hpp"
using namespace stdA;
CmdItemBuffInfo::CmdItemBuffInfo(bool _waiter) : pangya_db(_waiter), m_uid(0), v_ib() {
}
CmdI... | 25.393939 | 126 | 0.720764 | CCasusensa |
0a577e13ab409f5a9b14f27a2f2864d731a14bc5 | 40,478 | cc | C++ | src/bgp/test/bgp_xmpp_mcast_test.cc | safchain/contrail-controller | ccf736b96e4372132cb27a37d47f43373e56b320 | [
"Apache-2.0"
] | null | null | null | src/bgp/test/bgp_xmpp_mcast_test.cc | safchain/contrail-controller | ccf736b96e4372132cb27a37d47f43373e56b320 | [
"Apache-2.0"
] | null | null | null | src/bgp/test/bgp_xmpp_mcast_test.cc | safchain/contrail-controller | ccf736b96e4372132cb27a37d47f43373e56b320 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/assign/list_of.hpp>
#include "base/test/task_test_util.h"
#include "bgp/bgp_sandesh.h"
#include "bgp/bgp_session_manager.h"
#include "bgp/bgp_xmpp_channel.h"
#include "bgp/inetmcast/inetmcast_route.h"
#include "bgp/inetmcast/inet... | 39.452242 | 80 | 0.649662 | safchain |
0a58bb686bb8392a17c1e7aff1e3a89a485141c3 | 250 | hpp | C++ | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/testprog/cube/cube_scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "../scenebase_obj.hpp"
#include "../fpcamera.hpp"
namespace rev::test {
class CubeScene :
public TestSceneObj<CubeScene>
{
private:
FPCamera _fpc;
HDObj _cube;
struct St_Default;
public:
CubeScene();
};
}
| 14.705882 | 32 | 0.672 | degarashi |
0a5b43e9e46a0e027d33a70f9867371f7dcf2d1d | 505 | cpp | C++ | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/managing_console_i/o_operation/formatting_with_manipulators.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by rahul on 9/8/19.
//
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
cout.setf(ios::showpos);
cout<<setw(5)<<"n"<<setw(15)<<"inverse of n"<<setw(15)<<"sum of terms "<<endl;
double term,sum=0;
for(int i=1;i<=10;i++)
{
term=1.0/float(i);
sum=sum... | 24.047619 | 129 | 0.578218 | jattramesh |
0a5c7a9bf054784f8ddbf36cd14abc6fe4dbd40b | 2,153 | cpp | C++ | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | Romulus/src/Engine/Math/Vector.cpp | AlanBuechner/Romulus | 20e798ac1ebe3a8b4ae9764412e6f5f8b2c6fc70 | [
"Apache-2.0"
] | null | null | null | #include <pch.h>
#include "Vector.h"
namespace Engine::Math
{
float Length(const Vector2& v)
{
return glm::length(v);
}
float Length(const Vector3& v)
{
return glm::length(v);
}
float Length(const Vector4& v)
{
return glm::length(v);
}
float LengthSqr(const Vector2& v)
{
return (v.x * v.x) + (v.y... | 16.561538 | 63 | 0.617278 | AlanBuechner |
0a5e609dae1dc24a9d28598580eef0720af21eea | 51 | hpp | C++ | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_random_geometric_distribution.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/random/geometric_distribution.hpp>
| 25.5 | 50 | 0.843137 | miathedev |
0a64c45ad183ca059d52f8ba451cf78c09a61dea | 13,378 | cpp | C++ | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/World/LogonCommHandler.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | 24.546789 | 116 | 0.680147 | 499453466 |
0a65f1532563645c6a9189cef39fadbffcb42509 | 620 | hpp | C++ | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | src/db/Statement.hpp | sielenk/furnace | 092f047322ac8e6874f19a801f6e8e773801fad6 | [
"MIT"
] | null | null | null | // (C) 2016 Marvin Sielenkemper
#pragma once
#include "MySql.hpp"
#include <boost/any.hpp>
#include <vector>
#include <memory>
namespace db {
class ResultSet;
class Bindings;
class Statement : boost::noncopyable {
public:
Statement(MySql& mysql, std::string const& statement);
~Statement();
R... | 16.756757 | 62 | 0.683871 | sielenk |
0a69f385fb36041547e42e781d58d45b1828c391 | 1,478 | cpp | C++ | HackerRank/10 Days of Statistics/quartiles.cpp | nsudhanva/Competetive | d9e93fdeefaa4e422a2101db41a7ab0a5676e9da | [
"Unlicense"
] | null | null | null | HackerRank/10 Days of Statistics/quartiles.cpp | nsudhanva/Competetive | d9e93fdeefaa4e422a2101db41a7ab0a5676e9da | [
"Unlicense"
] | null | null | null | HackerRank/10 Days of Statistics/quartiles.cpp | nsudhanva/Competetive | d9e93fdeefaa4e422a2101db41a7ab0a5676e9da | [
"Unlicense"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
double findMedian(int x[], int n);
int main()
{
int n, i, x[100], temp, countt = 0, n1, n2;
double median, median1, median2;
cin >> n;
if(n % 2 == 0)
{
n1 = n/2 + 1;
... | 16.422222 | 77 | 0.401218 | nsudhanva |
0a6bee03e47084017e8b5390611c94f6182cc3cd | 32,022 | cpp | C++ | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | 9 | 2020-04-16T01:17:27.000Z | 2022-02-25T14:13:10.000Z | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | null | null | null | hi_dsp/modules/MidiPlayer.cpp | Levitanus/HISE | 8ef678ec2fcae0973cc269163404b1f9df967733 | [
"Intel"
] | 6 | 2020-05-11T22:23:15.000Z | 2022-02-24T16:52:44.000Z | /* ===========================================================================
*
* This file is part of HISE.
* Copyright 2016 Christoph Hart
*
* HISE 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,... | 23.545588 | 160 | 0.721129 | Levitanus |
0a6c3bdbd1d8d197ee9e404730618f217919e964 | 2,499 | cpp | C++ | src/Trafalgar/Trafalgar_4_4.cpp | HulinCedric/trafalgar-simulator | c383887cfaf4dfbb4a3afb268c7a8b5a9f8e13b6 | [
"MIT"
] | null | null | null | src/Trafalgar/Trafalgar_4_4.cpp | HulinCedric/trafalgar-simulator | c383887cfaf4dfbb4a3afb268c7a8b5a9f8e13b6 | [
"MIT"
] | null | null | null | src/Trafalgar/Trafalgar_4_4.cpp | HulinCedric/trafalgar-simulator | c383887cfaf4dfbb4a3afb268c7a8b5a9f8e13b6 | [
"MIT"
] | null | null | null | //
// IUT de Nice / Departement informatique / Module APO-C++
// Annee 2008_2009 - Package _Trafalgar
//
// Classe Trafalgar - Service debarquer
//
// Auteur : C. Hulin, C. Fouco, L. Souquet
//
#include "Trafalgar.h"
// --- Debarquement d'effectif d'un navire sur une ile
//
void Trafalgar::debarquer (const string... | 27.766667 | 143 | 0.683874 | HulinCedric |
0a6e05730321c02eba15a1d170ee46a9d3b094bd | 280 | cc | C++ | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | string_literal.cc | micahcc/ctest | af2a789a8c610f83a7e6ef55c371c64a41492e85 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
template <int N>
void foo(const char input[N]) {
std::cerr << input << std::endl;
}
int main() {
// char* str1 = "str1";
std::string str2 = "str2";
const auto str3 = "str3";
// foo(str1);
// foo(str2.c_str());
// foo(str3);
}
| 16.470588 | 34 | 0.571429 | micahcc |
0a6e69cb2fed7c9e54171ae2dee701196e9e2aa6 | 3,048 | cpp | C++ | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | main.cpp | subite/Profiler | 18dcaca864af8be75baf53adad6b2b572a8d1c4c | [
"WTFPL"
] | null | null | null | #include <iostream>
#include "Profiler.h"
#include "ProfilerUtils.h"
#include <chrono>
#include <thread>
#include <random>
#include <fstream>
using namespace std::chrono_literals;
using namespace Profiler;
namespace {
std::random_device rd_fun;
std::mt19937 gen_fun(rd_fun());
std::uniform_int_distribution<> dis_fun(... | 21.771429 | 73 | 0.634186 | subite |
0a6f7e39a93cf14eae67224eb8b7309525cb499b | 1,610 | cpp | C++ | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | CSES/GraphAlgorithms/building_roads.cpp | PranavReddyP16/DSA-Templates | cb68b1ced5fd4990a413ce88cdb741fdcaa6e89b | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
using namespace std::chrono;
#define ll long long
#define ld long double
#define sz(c) ((ll)c.size())
#define ordered_set tree<int, null_type,less<int>, rb_tree_tag,t... | 19.634146 | 97 | 0.59441 | PranavReddyP16 |
0a70427ff033d54a99ca6629a224bd9379aeb86e | 6,582 | cpp | C++ | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | samples/threat_level/src/HudDirector.cpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017
http://trederia.blogspot.com
crogine test application - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the us... | 34.825397 | 95 | 0.520207 | fallahn |
0a71f842130de7ba6e28f743ebbec7ea37a88621 | 5,438 | hpp | C++ | include/ros2_gremsy/utils.hpp | tiiuae/ros2_gremsy | bee1ec9b29e0b88d220136e5a549eaeebd81c4a6 | [
"BSD-3-Clause"
] | 1 | 2021-12-30T13:28:59.000Z | 2021-12-30T13:28:59.000Z | include/ros2_gremsy/utils.hpp | tiiuae/ros2_gremsy | bee1ec9b29e0b88d220136e5a549eaeebd81c4a6 | [
"BSD-3-Clause"
] | null | null | null | include/ros2_gremsy/utils.hpp | tiiuae/ros2_gremsy | bee1ec9b29e0b88d220136e5a549eaeebd81c4a6 | [
"BSD-3-Clause"
] | 1 | 2021-12-20T13:40:15.000Z | 2021-12-20T13:40:15.000Z | // Copyright (c) 2019 Intel 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 agr... | 30.044199 | 92 | 0.752483 | tiiuae |
0a7d538c60008cbb21ab8cba7e37d547cb0aa318 | 357 | hpp | C++ | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 83 | 2020-07-06T16:26:13.000Z | 2022-03-28T22:43:30.000Z | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 25 | 2020-06-28T02:43:41.000Z | 2022-02-24T10:05:01.000Z | cpp/pong/src/ceiling_floor.hpp | prakhar-s-srivastava/gdnative-demos | 83ed7e1248e69b63df256757434a7b74f9c32e51 | [
"MIT"
] | 31 | 2020-07-10T13:51:22.000Z | 2022-03-07T19:40:34.000Z | #ifndef CEILING_FLOOR_H
#define CEILING_FLOOR_H
#include <Area2D.hpp>
#include <Godot.hpp>
#include "ball.hpp"
class CeilingFloor : public godot::Area2D {
GODOT_CLASS(CeilingFloor, godot::Area2D)
public:
int bounce_direction = 1;
void _init() {}
void _on_area_entered(Ball *p_ball);
static void _register_meth... | 16.227273 | 43 | 0.747899 | prakhar-s-srivastava |
0a8cd84ddb03b04f4de21f9f6a95c7b22d178f87 | 22,456 | cpp | C++ | src/taesooLib/MainLib/OgreFltk/Mesh.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | src/taesooLib/MainLib/OgreFltk/Mesh.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | src/taesooLib/MainLib/OgreFltk/Mesh.cpp | jackthgu/K-AR_HYU_Deform_Simulation | e7c275c8948e1fe3e800ab37b17aa8406b147277 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Mesh.h"
#include "../BaseLib/math/Operator.h"
#include <iostream>
#include <fstream>
#ifndef NO_OGRE
#include "OgreMotionLoader.h"
#include <OgreMeshManager.h>
#include <OgreSubMesh.h>
#if OGRE_VERSION_MINOR >= 12
#include <OgreMesh.h>
#endif
#include <OgreRoot.h>
#include <OgreRenderSys... | 26.051044 | 176 | 0.692421 | jackthgu |
0a9020ca8071483a6f7f444d60257dfc5b8624bf | 768 | hpp | C++ | include/managers/event_manager.hpp | zedrex/algosketch | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 16 | 2021-03-27T06:20:42.000Z | 2022-03-31T16:30:37.000Z | include/managers/event_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 1 | 2021-07-13T07:57:41.000Z | 2021-07-13T07:57:41.000Z | include/managers/event_manager.hpp | zedrex/Algo-Plus-Plus | ff0f759f9e7e0e4ff040cf6c84334aceac47adae | [
"MIT"
] | 3 | 2021-04-03T02:58:56.000Z | 2021-06-04T18:23:49.000Z | #pragma once
#include <SFML/Graphics.hpp>
// Forward declaration of StateManager
class StateManager;
class EventManager
{
public:
EventManager(StateManager *applicationStateManager);
~EventManager();
void update();
sf::Vector2i getMousePosition();
bool isLeftKeyPressed();
bool isLeftKeyRele... | 20.210526 | 56 | 0.716146 | zedrex |
0a916cd4d0abf471e6f945802d8fe3afbd6ef2b7 | 1,892 | cpp | C++ | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | 1 | 2019-07-10T04:25:45.000Z | 2019-07-10T04:25:45.000Z | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | S3DR/lib/src/operator/camera_operator.cpp | tdenis8/S3DR | fb8f4c0c98b5571abb12a51e03229978115b099b | [
"MIT"
] | null | null | null | #include "camera_operator.hpp"
#include "view/view.hpp"
#include "view/camera.hpp"
#include <glm/gtc/matrix_transform.hpp>
CameraOperator::CameraOperator(View& view) : Operator(view)
{
}
CameraOperator::~CameraOperator()
{
}
int CameraOperator::OnLeftButtonDownAndMove(const MouseEventInfo& info)
{
auto& camera ... | 27.823529 | 121 | 0.649577 | tdenis8 |
0a91cbefbac7e6cff847945f1827fb1e2cb5d052 | 169 | cpp | C++ | test/leetcode/testProblem101to120.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | test/leetcode/testProblem101to120.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | test/leetcode/testProblem101to120.cpp | fyabc/LeetCode | 4a5c7dfdf8537059b98849f2a8ab1b5fafa45b9c | [
"MIT"
] | null | null | null | //
// Created by fyabc on 2019/12/21.
//
#include "gtest/gtest.h"
#include "leetcode/problem101to110.cpp"
#include "leetcode/problem111to120.cpp"
using namespace std;
| 16.9 | 39 | 0.739645 | fyabc |
0a92228a652f950e7845de791f6285f519e51153 | 37 | cpp | C++ | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 31 | 2015-06-26T16:38:18.000Z | 2022-03-01T03:28:08.000Z | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 1 | 2015-07-25T22:36:40.000Z | 2015-07-25T22:36:40.000Z | src/fifo.cpp | abwilson/LowLatency | cefc780eccb0426f8fe99f5f59dce347c98f13aa | [
"MIT"
] | 9 | 2015-06-26T18:44:31.000Z | 2019-09-04T15:13:31.000Z | #include <../include/L3/util/fifo.h>
| 18.5 | 36 | 0.675676 | abwilson |
0a95d2a57fc5b505a897d74485e79173b8b16250 | 961 | tcc | C++ | raftinc/klayer.tcc | mr-j0nes/RaftLib | 19b2b5401365ba13788044bfbcca0820f48b650a | [
"Apache-2.0"
] | 2 | 2019-08-27T11:08:18.000Z | 2021-09-06T12:05:23.000Z | raftinc/klayer.tcc | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | null | null | null | raftinc/klayer.tcc | Myicefrog/RaftLib | 5ff105293bc851ed73bdfd8966b15d0cadb45eb0 | [
"Apache-2.0"
] | 1 | 2021-07-31T15:07:06.000Z | 2021-07-31T15:07:06.000Z | /**
* klayer.tcc - wrapper class around K types of kernels, meant to
* form a single layer within a streaming graph. The syntax will
* look something like this:
*
* map += a <= raft::klayer( b, ... , y ) >= z;
*
* @author: Jonathan Beard
* @version: Tue Mar 8 04:25:20 2016
*
* Copyright 2016 Jonathan Bea... | 33.137931 | 75 | 0.706556 | mr-j0nes |
0a9803f2bf5871a591c573c466fbc847401b6d2e | 704 | cpp | C++ | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | test17_31_32.cpp | chenshiyang/C-Primer-5ed-solution | 54ce8670e7ad6d82bf62c18523a5be175325276d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <random>
#include <string>
using namespace std;
bool play(bool first) {
static default_random_engine e;
static bernoulli_distribution b;
return b(e);
}
int main() {
string resp;
static default_random_engine e;
static bernoulli_distribution b;
... | 23.466667 | 59 | 0.53125 | chenshiyang |
0aa8826329ef8e407e59421393abeac931606a14 | 821 | cpp | C++ | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | editor/graph/voxel_graph_editor_node_preview.cpp | swimming92404/godot_voxel | d4b1178d610c7ba0c63c668431524ec320842c57 | [
"MIT"
] | null | null | null | #include "voxel_graph_editor_node_preview.h"
#include <scene/gui/texture_rect.h>
namespace zylann::voxel {
VoxelGraphEditorNodePreview::VoxelGraphEditorNodePreview() {
_image.instantiate();
_image->create(RESOLUTION, RESOLUTION, false, Image::FORMAT_L8);
_texture.instantiate();
update_texture();
_texture_rect =... | 28.310345 | 73 | 0.806334 | swimming92404 |
0aa93fcc00cf5265c7bd8533a9f5e86839f3699f | 986 | cpp | C++ | src/test_div.cpp | jonspock/vdf-competition | e77dc86f438d4e734c68f6b6aa12b30a3dc65475 | [
"Apache-2.0"
] | null | null | null | src/test_div.cpp | jonspock/vdf-competition | e77dc86f438d4e734c68f6b6aa12b30a3dc65475 | [
"Apache-2.0"
] | null | null | null | src/test_div.cpp | jonspock/vdf-competition | e77dc86f438d4e734c68f6b6aa12b30a3dc65475 | [
"Apache-2.0"
] | null | null | null | #include "classgroup.h"
#include <iostream>
int main(int argc, char* argv[]) {
bn_t aa, bb, cc;
int64_t a_int = -1;
int64_t b_int = 1;
bn_new(aa);
bn_new(bb);
bn_new(cc);
bn_set_dig(aa, a_int);
bn_set_dig(bb, b_int);
bn_div(cc, aa, bb);
bn_print(aa);
bn_print(bb);
bn_print(cc);
relic_int ... | 20.978723 | 72 | 0.53854 | jonspock |
0aabc23447ce94f8dce8e2c9ac888d50a71bce71 | 4,880 | cpp | C++ | src/sched/entry/ze/ze_a2a_allgatherv_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_a2a_allgatherv_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | null | null | null | src/sched/entry/ze/ze_a2a_allgatherv_entry.cpp | otcshare/oneccl | 44dbef938cb7730eb4f3484389bacaadbfbb99ea | [
"Apache-2.0"
] | 1 | 2021-07-15T08:30:06.000Z | 2021-07-15T08:30:06.000Z | /*
Copyright 2016-2020 Intel 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 to in w... | 39.674797 | 100 | 0.56168 | otcshare |
0ab157a468b081b04c23b7875ddbe694aaecd9e0 | 735 | cpp | C++ | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | Plugins/SPCRJointDynamics/Source/SPCRJointDynamics/Private/Log/SPCRJointDynamicsLog.cpp | ianmage/SPCRJointDynamicsUE4 | 590dc8c9e94470edbc401f80eee5fe4e93b53746 | [
"MIT"
] | null | null | null | //======================================================================================
// Copyright (c) 2019 SPARK CREATIVE Inc.
// All rights reserved.
//======================================================================================
#include "Log/SPCRJointDynamicsLog.h"
#include "SPCRJointDynamicsModulePCH... | 45.9375 | 88 | 0.209524 | ianmage |
0ab56830794a6d5d45c5e42a96adb90e1a5fb441 | 4,622 | cpp | C++ | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/sockets/MSNClient.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | #include "MSNClient.h"
#include "StringUtils.h"
#include <iostream>
#include "MSNPCommandHandlerFactory.h"
#include "MSNPCommandParser.h"
#include "MatrixBackend.h"
#include <chrono>
#include "PresenceEvent.h"
#include "MSNPILN.h"
#include "MSNUtils.h"
#include "PresenceUpdateTask.h"
#include <future>
#include "NewMess... | 36.109375 | 175 | 0.680009 | aeoncl |
0ab8200386478cf2b037ab9e1324d6029c746cce | 618 | hpp | C++ | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 1 | 2019-04-02T23:03:23.000Z | 2019-04-02T23:03:23.000Z | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | 30 | 2017-04-17T11:21:41.000Z | 2018-01-09T19:21:44.000Z | src/amqpAnalyze/IpDissector.hpp | kpvdr/amqpAnalyze | f1d3a073836191fd9d9a6e6f10a8d6ef2f060cf6 | [
"Apache-2.0"
] | null | null | null | /*
* IpDissector.hpp
*
* Created on: Apr 3, 2017
* Author: kpvdr
*/
#ifndef SRC_AMQPANALYZE_IPDISSECTOR_HPP_
#define SRC_AMQPANALYZE_IPDISSECTOR_HPP_
#include <amqpAnalyze/Dissector.hpp>
namespace amqpAnalyze
{
class IpDissector: public Dissector
{
public:
IpDissector(Packet* packetPt... | 20.6 | 60 | 0.68123 | kpvdr |
0ab9068edadec73f0c06c1350ec6aea5141952c8 | 463 | cpp | C++ | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | src/vector2D.cpp | KPO-2020-2021/zad5_3-kgliwinski | 302d567d68d8e26c7395f9607632df266d7b7df9 | [
"Unlicense"
] | null | null | null | #pragma once
#include"vector2D.cpp"
template <>
inline Vector<double, 2> Vector<double, 2>::rotate(const double &theta) const
{
Vector2D rotated;
Matrix2D transformation;
transformation.rotation_matrix(theta);
rotated = transformation * *this;
return rotated;
}
template <>
inline double Vector<d... | 18.52 | 77 | 0.667387 | KPO-2020-2021 |
0ab90e7b32b2c9d5292e38b44845fbfa398e7fac | 404 | cc | C++ | CondFormats/DataRecord/src/L1GctJetFinderParamsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | CondFormats/DataRecord/src/L1GctJetFinderParamsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | CondFormats/DataRecord/src/L1GctJetFinderParamsRcd.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | // -*- C++ -*-
//
// Package: DataRecord
// Class : L1GctJetFinderParamsRcd
//
// Implementation:
// <Notes on implementation>
//
// Author:
// Created: Tue Jul 10 10:14:03 CEST 2007
// $Id$
#include "CondFormats/DataRecord/interface/L1GctJetFinderParamsRcd.h"
#include "FWCore/Framework/interface/even... | 23.764706 | 75 | 0.717822 | ckamtsikis |
0abc94aea5ce094365c33f551c6c0e73dbc0fd53 | 1,230 | hpp | C++ | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 69 | 2019-04-17T04:03:31.000Z | 2021-11-08T10:29:54.000Z | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 113 | 2019-04-13T06:46:32.000Z | 2021-11-02T01:45:06.000Z | src/netlayer.hpp | hongsenliu/cloudland | 81a9394f6e74658141ee66557731985f80a9f6ab | [
"Apache-2.0"
] | 46 | 2019-04-17T04:03:36.000Z | 2021-09-26T13:11:37.000Z | #ifndef _NETLAYER_HPP
#define _NETLAYER_HPP
#include <string>
#include <sci.h>
#include <vector>
#include <map>
#define SCHEDULE_FILTER 1
#define SCHEDULE_SO_FILE "/opt/cloudland/lib64/scheduler.so"
#include <pthread.h>
using namespace std;
class RpcWorker;
struct groupDesc {
sci_group_t group;
string ... | 23.207547 | 96 | 0.644715 | hongsenliu |
0abd11b5733cc107637d0ef6c8d9af98fa9813ce | 942 | cpp | C++ | C++/HangMan using IDE/read_from_db.cpp | Drete457/learning-c-c- | 9fa3f70c63488e833a31ccb7f5c49f842e3031cd | [
"MIT"
] | 1 | 2021-02-13T02:59:32.000Z | 2021-02-13T02:59:32.000Z | C++/HangMan using IDE/read_from_db.cpp | Drete457/learning_c_and_c_plus_plus | 9fa3f70c63488e833a31ccb7f5c49f842e3031cd | [
"MIT"
] | null | null | null | C++/HangMan using IDE/read_from_db.cpp | Drete457/learning_c_and_c_plus_plus | 9fa3f70c63488e833a31ccb7f5c49f842e3031cd | [
"MIT"
] | null | null | null | #include "read_from_db.hpp"
namespace READ {
std::string chooseWord()
{
std::vector<std::string> fileOfWords = readDB();
srand(unsigned(time(NULL)));
int chooseWord = rand() % fileOfWords.size();
return fileOfWords[chooseWord];
}
std::vector<std::string> readDB()
... | 20.933333 | 68 | 0.478769 | Drete457 |