hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count float64 1 77k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count float64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2753944f40611ce3b32bdff335d878da63ecb12b | 2,770 | cpp | C++ | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | 91 | 2015-01-19T11:03:56.000Z | 2022-03-12T15:54:06.000Z | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | null | null | null | Source/Planet/Map/PlanetMapTile.cpp | unconed/NFSpace | bbd544afb32a10bc4ee497e1d58cefe4bbbe7953 | [
"BSD-3-Clause"
] | 9 | 2015-03-16T03:36:50.000Z | 2021-06-17T09:47:26.000Z | /*
* PlanetMapTile.cpp
* NFSpace
*
* Created by Steven Wittens on 26/11/09.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
#include "PlanetMapTile.h"
#include "Utility.h"
namespace NFSpace {
PlanetMapTile::PlanetMapTile(QuadTreeNode* node, TexturePtr heightTexture, Image heightImage... | 31.123596 | 135 | 0.651264 |
275539f8ed66e07326ce2c9dd10b293a6a2da793 | 3,424 | cpp | C++ | vintergatan/octree_tests.cpp | anfive/vintergatan | 3de81defc0e49a3e0f0194df6191f68751f02b39 | [
"MIT"
] | null | null | null | vintergatan/octree_tests.cpp | anfive/vintergatan | 3de81defc0e49a3e0f0194df6191f68751f02b39 | [
"MIT"
] | null | null | null | vintergatan/octree_tests.cpp | anfive/vintergatan | 3de81defc0e49a3e0f0194df6191f68751f02b39 | [
"MIT"
] | null | null | null | /* octree_tests.cpp
Author: Andrea Ferrario
Some quick and simple tests for the octree data structure and its methods.
They mostly rely on Octree's internal verify() method to check the results
(or I ran them with the debugger and checked manually - no time to write better checks...)
*/
#include <iostream>
#... | 25.176471 | 109 | 0.543808 |
2755d2ac1baa5df3c2f5c744333f2853a896e547 | 1,579 | cpp | C++ | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | 3 | 2020-01-29T18:26:37.000Z | 2021-01-19T06:26:34.000Z | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | null | null | null | Graphs/dijkstra.cpp | adiletabs/Algos | fa2bb9edddb517f52b79fc712f70d6f8a0786e33 | [
"MIT"
] | 2 | 2019-03-06T03:40:42.000Z | 2019-09-23T03:48:21.000Z | #include <bits/stdc++.h>
using namespace std;
const int N = 2020, inf = INT_MAX;
vector<pair<int, int> > g[N];
int dist[N], par[N], n, m;
bool used[N];
vector<int> path;
void init(int s) {
for (int i = 0; i < N; i++)
dist[i] = inf;
dist[s] = 0;
}
void dijkstra(int s) {
init(s);
for (int i = 0; i < n; i++) {
... | 20.24359 | 50 | 0.559215 |
2756ebb0e82a9b58972a2a24859faf61057b140e | 5,107 | hpp | C++ | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/GLClipping.hpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | // https://github.com/mrdoob/three.js/blob/r129/src/renderers/webgl/WebGLClipping.js
#ifndef THREEPP_GLCLIPPING_HPP
#define THREEPP_GLCLIPPING_HPP
#include "GLProperties.hpp"
#include "threepp/cameras/Camera.hpp"
#include "threepp/math/Plane.hpp"
#include "threepp/core/Uniform.hpp"
namespace threepp::gl {
str... | 27.907104 | 120 | 0.527511 |
2758945d92d2bba295767c04dccf123ca71c6a50 | 960 | cpp | C++ | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 22 | 2019-08-01T22:04:43.000Z | 2021-12-23T07:53:59.000Z | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 15 | 2019-05-01T10:57:36.000Z | 2019-05-27T11:23:42.000Z | src/console/commands/environment/terrain/environmentTerrainValleys.cpp | fantasiorona/LGen | bb670278b7faf82154d6256e6a283fa3e226c00b | [
"MIT"
] | 4 | 2019-08-02T08:07:45.000Z | 2022-01-22T00:46:03.000Z | #include "environmentTerrainValleys.h"
#include "environment/terrain/terrainValleys.h"
using namespace LGen;
const std::string Command::Environment::Terrain::Valleys::KEYWORD = "valleys";
const std::string Command::Environment::Terrain::Valleys::FILE_HELP = "text/helpEnvironmentTerrainValleys.txt";
Command::Environm... | 27.428571 | 111 | 0.734375 |
275af587f3742e93eef69ddd318501c98c79f037 | 3,214 | hpp | C++ | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | 2 | 2017-10-02T03:18:55.000Z | 2018-11-21T16:30:36.000Z | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | Code/Engine/Renderer/Effects/Tonemapping.hpp | ntaylorbishop/Copycat | c02f2881f0700a33a2630fd18bc409177d80b8cd | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/General/Core/EngineCommon.hpp"
#include "Engine/Renderer/General/RenderCommon.hpp"
#include "Engine/Math/Objects/AABB3.hpp"
class TextureBuffer;
class Material;
class Framebuffer;
const float MIN_EXPOSURE = 1.6f;
const float MAX_EXPOSURE = 6.f;
////////////////////////////////////////... | 33.479167 | 125 | 0.47822 |
275e4de2d23f93672a8e3a261c6cb895b631b1a2 | 18,965 | cpp | C++ | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 64 | 2020-07-20T09:35:16.000Z | 2022-03-27T19:13:08.000Z | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 8 | 2020-07-30T09:20:28.000Z | 2022-03-03T22:37:10.000Z | CaptureManagerSource/SampleAccumulatorNode/SampleAccumulator.cpp | luoyingwen/CaptureManagerSDK | e96395a120175a45c56ff4e2b3283b807a42fd75 | [
"MIT"
] | 28 | 2020-07-20T13:02:42.000Z | 2022-03-18T07:36:05.000Z | /*
MIT License
Copyright(c) 2020 Evgeny Pereguda
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, ... | 22.443787 | 131 | 0.670393 |
275e5f0f0c8ed2d36c61c7e308e3de6edd03bc34 | 11,634 | cpp | C++ | source/io/net/TlsServer.cpp | tarm-project/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | 4 | 2021-01-14T15:19:35.000Z | 2022-01-09T09:22:18.000Z | source/io/net/TlsServer.cpp | ink-splatters/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | null | null | null | source/io/net/TlsServer.cpp | ink-splatters/tarm-io | 6aebd85573f65017decf81be073c8b13ce6ac12c | [
"MIT"
] | 1 | 2020-08-05T21:14:59.000Z | 2020-08-05T21:14:59.000Z | /*----------------------------------------------------------------------------------------------
* Copyright (c) 2020 - present Alexander Voitenko
* Licensed under the MIT License. See License.txt in the project root for license information.
*------------------------------------------------------------------------... | 34.318584 | 144 | 0.670191 |
2763e7da0af34195ab15cee538b3c4b789795527 | 1,840 | cpp | C++ | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | 3 | 2017-02-15T22:49:40.000Z | 2018-04-19T15:42:57.000Z | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | 14 | 2017-02-19T14:25:30.000Z | 2017-02-20T10:11:42.000Z | docs/melb-cpp-talk-feb-2017/24a-cpp17-auto-template-parameter.cpp | RossBencina/StaticMode | 04eead233a6a03aa4f47c22f81c1d89b4e5cf5ca | [
"MIT"
] | null | null | null | //!clang++ -std=c++1z -Weverything -Wno-c++98-compat 24a-cpp17-auto-template-parameter.cpp -o z24a.out && ./z24a.out
// WARNING: bleeding edge. tested in gcc 7, possibly clang 4
// This file is optional. It's a side note about C++17 auto template parameters.
// It requires clang 4 or GCC 7 to compile.
// When C++17 a... | 27.462687 | 116 | 0.59837 |
27645cc5b63715c2686976d8c80b04e1667d197e | 330 | cpp | C++ | Black Horse C++/ex0027_encapsulation/main.cpp | Dragontalker/CPP-study-notes | d9ebd183d414d2de247ef37c03a24504dd3053d5 | [
"MIT"
] | null | null | null | Black Horse C++/ex0027_encapsulation/main.cpp | Dragontalker/CPP-study-notes | d9ebd183d414d2de247ef37c03a24504dd3053d5 | [
"MIT"
] | null | null | null | Black Horse C++/ex0027_encapsulation/main.cpp | Dragontalker/CPP-study-notes | d9ebd183d414d2de247ef37c03a24504dd3053d5 | [
"MIT"
] | null | null | null | #include <iostream>
class Circle
{
private:
const double PI = 3.1415926;
public:
double m_r;
double calculateZC()
{
return 2 * PI * m_r;
}
};
int main()
{
Circle c1;
c1.m_r = 10;
std::cout << "The raius of our circle = "
<< c1.calculateZC() << std::endl;
re... | 12.692308 | 47 | 0.524242 |
2764a0b63daefb8e607a670a6a3612e9adc2079a | 2,885 | cpp | C++ | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | test/test_main.cpp | ChrizZhuang/3D_particle_simulator | cc2a0c75dc67ec7e4f89a270bca736d9425dbec0 | [
"MIT"
] | null | null | null | // File to test main functions
#include <iostream>
#include <fstream>
#include <iomanip>
#include <vector>
#include <math.h>
#include <cmath>
#include <assert.h>
#include <string>
#include "Vector3D.hpp"
#include "SimpleParticleList.hpp"
#include "Spring1DForce.hpp"
#include "LatticeParticleList.hpp"
#include "Lattice... | 29.141414 | 144 | 0.67383 |
276533790d14865853af0f89f47ee160125a3ee4 | 169 | cpp | C++ | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | Code full house/buoi20 nguyen dinh trung duc/implement/bai 16 1352A.cpp | ducyb2001/CbyTrungDuc | 0e93394dce600876a098b90ae969575bac3788e1 | [
"Apache-2.0"
] | null | null | null | /*bai 16 1325A*/
#include<stdio.h>
int main(){
int T;
scanf("%d",&T);
while (T--)
{
int x;
scanf("%d",&x);
printf("1 %d\n",x-1);
}
}
| 12.071429 | 26 | 0.408284 |
27657d88fd215d96f5e3585a5224aaf294f12e25 | 15,198 | cc | C++ | agent/src/agent_win.cc | chromium/content_analysis_sdk | 1a6e24f9ced8a4cf180ee7eafbc5fa0beb1046eb | [
"BSD-3-Clause"
] | null | null | null | agent/src/agent_win.cc | chromium/content_analysis_sdk | 1a6e24f9ced8a4cf180ee7eafbc5fa0beb1046eb | [
"BSD-3-Clause"
] | 1 | 2022-03-30T21:06:11.000Z | 2022-03-30T21:06:11.000Z | agent/src/agent_win.cc | chromium/content_analysis_sdk | 1a6e24f9ced8a4cf180ee7eafbc5fa0beb1046eb | [
"BSD-3-Clause"
] | 1 | 2022-03-14T23:15:39.000Z | 2022-03-14T23:15:39.000Z | // Copyright 2022 The Chromium Authors.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <ios>
#include <utility>
#include <vector>
#include <windows.h>
#include <sddl.h>
#include "common/utils_win.h"
#include "agent_utils_win.h"
#include "agent_win.h"... | 30.035573 | 87 | 0.665745 |
2776b138321d36f835b798181a8f27dbae2206f0 | 1,119 | cpp | C++ | tools/disktool/src/AssistantPage.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | 1 | 2020-03-09T14:14:02.000Z | 2020-03-09T14:14:02.000Z | tools/disktool/src/AssistantPage.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | null | null | null | tools/disktool/src/AssistantPage.cpp | DarkMaguz/CodingPiratesOS | 7750224b87646ad376664bd1f826aae5112ea41c | [
"MIT"
] | 2 | 2020-03-11T21:29:20.000Z | 2020-07-06T20:20:18.000Z | /*
* AssistantPage.cpp
*
* Created on: Mar 20, 2022
* Author: magnus
*/
#include "AssistantPage.h"
#include <iostream>
AssistantPage::AssistantPage(const Glib::ustring &resourcePath) :
m_assistantPage(nullptr),
m_refBuilder(Gtk::Builder::create())
{
try
{
m_refBuilder->add_from_resource(resourcePath... | 18.966102 | 78 | 0.669348 |
2776b3077b548c5674269fbc460f15f64720a1c2 | 16,734 | cpp | C++ | src/parse_symbol_set.cpp | DavideConficconi/hscompile | 819e35c50ffb2a767cbf4634bc05cd2c9e4d21a7 | [
"BSD-3-Clause"
] | 4 | 2017-06-22T19:30:05.000Z | 2021-11-17T07:45:24.000Z | src/parse_symbol_set.cpp | DavideConficconi/hscompile | 819e35c50ffb2a767cbf4634bc05cd2c9e4d21a7 | [
"BSD-3-Clause"
] | 2 | 2018-03-19T15:29:22.000Z | 2021-03-14T13:16:59.000Z | src/parse_symbol_set.cpp | DavideConficconi/hscompile | 819e35c50ffb2a767cbf4634bc05cd2c9e4d21a7 | [
"BSD-3-Clause"
] | 4 | 2018-03-13T17:23:12.000Z | 2021-04-18T16:17:18.000Z | /*
* Copyright (c) 2016, University of Virginia
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this... | 33.806061 | 86 | 0.369906 |
2777883fc452b8b0d7f2cfb50caebc5a9ae8dcaa | 539 | cpp | C++ | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | leetcode/88/main.cpp | yukienomiya/competitive-programming | 6f5e502ba66da2f62fb37aaa786a841f64bb192a | [
"MIT"
] | null | null | null | #include <vector>
using namespace std;
class Solution {
public:
void merge(vector<int>& nums1, int m, vector<int>& nums2, int n) {
vector<int> nums3(m + n, 0);
int idx1 = 0, idx2 = 0, idx3 = 0;
while (idx1 < m && idx2 < n) {
if (nums1[idx1] <= nums2[idx2]) nums3[idx3++] = nums1[idx1++];
else... | 26.95 | 68 | 0.526902 |
277797464e507b139fac06991ad4b81922a4e221 | 8,478 | cpp | C++ | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | projects/Phantom.Code/phantom/lang/Project.cpp | vlmillet/Phantom.Code | 05ed65bc4a456e76da4b2d9da1fe3dabe64ba1b3 | [
"MIT"
] | null | null | null | // license [
// This file is part of the Phantom project. Copyright 2011-2020 Vivien Millet.
// Distributed under the MIT license. Text available here at
// https://github.com/vlmillet/phantom
// ]
#include "Project.h"
#include "CompiledSource.h"
#include "Compiler.h"
#include "Solution.h"
#include <fstream>
#includ... | 28.935154 | 120 | 0.651215 |
277a4ebe107b13457f249f8345419ed6ebef086f | 19,986 | hpp | C++ | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 147 | 2016-09-23T19:33:11.000Z | 2021-09-25T01:44:10.000Z | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 14 | 2016-09-27T10:54:35.000Z | 2020-10-15T03:56:41.000Z | include/chobo/vector_view.hpp | mikke89/chobo-shl | 7f888d1c97e0a69da99ab147c7f691ca0c64038f | [
"MIT"
] | 19 | 2016-09-25T15:49:26.000Z | 2021-08-09T06:34:28.000Z | // chobo-vector-view v1.01
//
// A view of a std::vector which makes it look as a vector of another type
//
// MIT License:
// Copyright(c) 2016 Chobolabs Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files(the
// "Software"), to... | 26.262812 | 117 | 0.631992 |
277b93df3e0d432f978009c9bf64272146c36b1d | 1,014 | cpp | C++ | Stacks/Longest-Valid-Parentheses-32.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 38 | 2021-10-14T09:36:53.000Z | 2022-01-27T02:36:19.000Z | Stacks/Longest-Valid-Parentheses-32.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | null | null | null | Stacks/Longest-Valid-Parentheses-32.cpp | devangi2000/Data-Structures-Algorithms-Handbook | ce0f00de89af5da7f986e65089402dc6908a09b5 | [
"MIT"
] | 4 | 2021-12-06T15:47:12.000Z | 2022-02-04T04:25:00.000Z | // Given a string containing just the characters '(' and ')', find the
// length of the longest valid (well-formed) parentheses substring.
// Example 1:
// Input: s = "(()"
// Output: 2
// Explanation: The longest valid parentheses substring is "()".
// Example 2:
// Input: s = ")()())"
// Output: 4
// ... | 22.533333 | 72 | 0.439842 |
277c302017dae8c7514180218fc0b1412a451c54 | 3,057 | cpp | C++ | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | array_inversion/main.cpp | 8alery/algorithms | 67cf12724f61cdae7eff1788062c1b7c26f98ca4 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <vector>
#include <random>
#include <algorithm>
#include <queue>
#include <limits>
void printVector(std::vector<int> array){
for (auto v:array){
std::cout << v << " ";
}
std::cout << std::endl;
}
int next_power_of_two(int v){
v--;
v |= v >> 1;
v |= v >> 2;
... | 26.815789 | 94 | 0.514884 |
277d16cc64a386e3bc92eb09a29e6fac42aec4ec | 5,323 | cpp | C++ | compat/BSSynchronizedClipGenerator_1.cpp | BlazesRus/hkxcmd | e00a554225234e40e111e808b095156ac1d4b1fe | [
"Intel"
] | 38 | 2015-03-24T00:41:59.000Z | 2022-03-23T09:18:29.000Z | compat/BSSynchronizedClipGenerator_1.cpp | BlazesRus/hkxcmd | e00a554225234e40e111e808b095156ac1d4b1fe | [
"Intel"
] | 2 | 2015-10-14T07:41:48.000Z | 2015-12-14T02:19:05.000Z | compat/BSSynchronizedClipGenerator_1.cpp | BlazesRus/hkxcmd | e00a554225234e40e111e808b095156ac1d4b1fe | [
"Intel"
] | 24 | 2015-08-03T20:41:07.000Z | 2022-03-27T03:58:37.000Z | #include "StdAfx.h"
#include "BSSynchronizedClipGenerator_1.h"
#include <Common/Serialize/hkSerialize.h>
#include <Common/Serialize/Util/hkSerializeUtil.h>
#include <Common/Serialize/Version/hkVersionPatchManager.h>
#include <Common/Serialize/Data/Dict/hkDataObjectDict.h>
#include <Common/Serialize/Data/Native/hkDataO... | 91.775862 | 219 | 0.833177 |
277d97de0c9342aa004f99d363161c6cd19d89b8 | 54 | cpp | C++ | App/FIFOServer/ClientB.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 3 | 2016-12-10T16:06:20.000Z | 2017-06-25T12:47:06.000Z | App/FIFOServer/ClientB.cpp | Lw-Cui/Compression-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | 2 | 2017-05-15T15:22:36.000Z | 2017-05-20T15:01:25.000Z | App/FIFOServer/ClientB.cpp | Lw-Cui/Tiny-server | 3501d746f14145d3764700d40d3672a0da0b2eae | [
"MIT"
] | null | null | null |
#define CLIENT "ClientB"
#include "ClientBody.cpp"
| 9 | 25 | 0.722222 |
277ec282bacc3d331bb049b9c28b4d96dc43d669 | 4,003 | cpp | C++ | src/Samples/Synthetic_TwoView/main.cpp | eivan/one-ac-pose | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | 4 | 2020-07-31T19:12:44.000Z | 2022-02-22T14:34:48.000Z | src/Samples/Synthetic_TwoView/main.cpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | src/Samples/Synthetic_TwoView/main.cpp | eivan/OneAC | 79451626238f47130578c18b65e37cabd7332de1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <time.h>
#include <common/numeric.hpp>
#include <common/camera_radial.hpp>
#include <common/local_affine_frame.hpp>
#include <common/pose_estimation.hpp>
using namespace OneACPose;
void compute_synthetic_LAF(
const Mat34& P, const common::CameraPtr& cam,
const Vec3& X, const Mat32& d... | 36.390909 | 98 | 0.501624 |
2781bcf952dd6a69ef27efa1398d0fd37c4447a9 | 8,979 | cpp | C++ | src/cpu.cpp | jonathandeiven/CHIP8-Emulator | 5c1d0b8760e9eeb783cbb0c2bded8ee6ac6444dc | [
"MIT"
] | 4 | 2016-01-06T15:46:07.000Z | 2017-04-29T03:00:09.000Z | src/cpu.cpp | jonathandeiven/CHIP8-Emulator | 5c1d0b8760e9eeb783cbb0c2bded8ee6ac6444dc | [
"MIT"
] | null | null | null | src/cpu.cpp | jonathandeiven/CHIP8-Emulator | 5c1d0b8760e9eeb783cbb0c2bded8ee6ac6444dc | [
"MIT"
] | 2 | 2016-09-15T00:02:45.000Z | 2019-08-21T00:54:19.000Z | #include "cpu.h"
#include "fontset.h"
#include <stdio.h>
#include <stdlib.h>
#include <random>
// Default constructor
Chip8::Chip8() {}
// Default destructor
Chip8::~Chip8() {}
// Init registers and memory
void Chip8::initialize() {
// Reset registers
opcode = 0;
I = 0;
sp = 0;
// Program counter reset
pc = 0... | 20.784722 | 76 | 0.534803 |
2781f20cc59b853f6ec7a82b620e3a0f1f376ff2 | 28,342 | cc | C++ | service/auto/Spi.cc | lilinj2000/cata | a4f63913fc8e2b8015fa94c3baf51b3934d57637 | [
"Apache-2.0"
] | null | null | null | service/auto/Spi.cc | lilinj2000/cata | a4f63913fc8e2b8015fa94c3baf51b3934d57637 | [
"Apache-2.0"
] | null | null | null | service/auto/Spi.cc | lilinj2000/cata | a4f63913fc8e2b8015fa94c3baf51b3934d57637 | [
"Apache-2.0"
] | 1 | 2021-08-21T09:19:08.000Z | 2021-08-21T09:19:08.000Z | void MDSpiImpl::OnFrontConnected() {
SOIL_FUNC_TRACE;
}
void MDSpiImpl::OnFrontDisconnected(
int nReason) {
SOIL_FUNC_TRACE;
SOIL_DEBUG_PRINT(nReason);
}
void MDSpiImpl::OnHeartBeatWarning(
int nTimeLapse) {
SOIL_FUNC_TRACE;
SOIL_DEBUG_PRINT(nTimeLapse);
}
void MDSpiImpl::OnRspAuthenticate(
CThostFtdcRspAu... | 19.586731 | 78 | 0.811975 |
27836637b1c8d8e2ece8d9fcebc6989f35efa4f0 | 34,419 | cpp | C++ | src/widgetopengldraw.cpp | jonpas/FERI-OpenGL | 6cdf079dc2ed27ead53774ca5fdeb518a83fada9 | [
"MIT"
] | null | null | null | src/widgetopengldraw.cpp | jonpas/FERI-OpenGL | 6cdf079dc2ed27ead53774ca5fdeb518a83fada9 | [
"MIT"
] | null | null | null | src/widgetopengldraw.cpp | jonpas/FERI-OpenGL | 6cdf079dc2ed27ead53774ca5fdeb518a83fada9 | [
"MIT"
] | null | null | null | #include "widgetopengldraw.h"
WidgetOpenGLDraw::WidgetOpenGLDraw(QWidget *parent) : QOpenGLWidget(parent) {
setMouseTracking(true);
updateCameraFront();
std::random_device rd;
rng = std::mt19937(rd());
}
WidgetOpenGLDraw::~WidgetOpenGLDraw() {
// Clean state
gl.glDeleteProgram(programShaderID... | 40.350528 | 164 | 0.630175 |
95970213c76d95fd6fc8c0f6d18e242c1c502780 | 4,419 | cpp | C++ | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 10 | 2015-08-27T14:10:38.000Z | 2021-02-08T21:38:55.000Z | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 2 | 2015-02-20T01:53:58.000Z | 2016-08-24T11:14:00.000Z | code/clustered_setup/fgm-master/LSGMcode-master/algorithms/graphm-0.52/algorithm_umeyama.cpp | mk2510/jointGraphMatchingAndClustering | 52f579a07d106cb241d21dbc29a2ec9e9c77b254 | [
"Unlicense"
] | 7 | 2016-08-23T11:44:05.000Z | 2021-08-06T01:41:25.000Z | /***************************************************************************
* Copyright (C) 2008 by Mikhail Zaslavskiy *
* mikhail.zaslavskiy@ensmp.fr *
* *
* This program is free software; you can redistribute it and/or modify *
*... | 47.010638 | 113 | 0.661914 |
9598d34a7577c3b1097b2cdac4e5058f7affa603 | 683 | cpp | C++ | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | drivers/port_io/port_io.cpp | Tomer2003/ro-os | 843b0258e8d14de7cc24f9ae9bfa19fe02ccd00d | [
"MIT"
] | null | null | null | #include "port_io.hpp"
void portWriteByte(unsigned short portAddress, unsigned char data)
{
__asm__ __volatile__("out %%al, %%dx" :: "a"(data), "d"(portAddress));
}
unsigned char portReadByte(unsigned short portAddress)
{
unsigned char result;
__asm__ __volatile__("in %%dx, %%al" : "=a"(result) : "d"(port... | 27.32 | 76 | 0.679356 |
95991eec4f58418a24c0ac505366c668ae00c770 | 459 | hpp | C++ | include/portable/cxx.hpp | matrixjoeq/candy | 53fe18d8b68d2f131c8e1c8f76c7d9b7f752bbdc | [
"MIT"
] | null | null | null | include/portable/cxx.hpp | matrixjoeq/candy | 53fe18d8b68d2f131c8e1c8f76c7d9b7f752bbdc | [
"MIT"
] | null | null | null | include/portable/cxx.hpp | matrixjoeq/candy | 53fe18d8b68d2f131c8e1c8f76c7d9b7f752bbdc | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits>
namespace candy {
template <bool B, class T = void>
using EnableIf = typename std::enable_if<B, T>::type;
template <class T>
using ResultOf = typename std::result_of<T>::type;
template <class Base, class Derived>
inline constexpr bool isBaseOf()
{
return std::is_base_of<Base... | 17.653846 | 53 | 0.714597 |
959b5abb8eb5b8790f60e6eb93d6b4aa7fad2380 | 5,731 | cpp | C++ | client/http_secure_args.cpp | boazsade/http_client | 5e7a97c73da7e22685c29177581bf9c95e73f2ec | [
"MIT"
] | null | null | null | client/http_secure_args.cpp | boazsade/http_client | 5e7a97c73da7e22685c29177581bf9c95e73f2ec | [
"MIT"
] | null | null | null | client/http_secure_args.cpp | boazsade/http_client | 5e7a97c73da7e22685c29177581bf9c95e73f2ec | [
"MIT"
] | null | null | null | #include "http_secure_args.h"
namespace http
{
namespace
{
namespace ssl = boost::asio::ssl;
ssl::context init_context(const https_config& conf)
{
int proto = conf.security_type();
if (proto == -1) {
proto = ssl::context_base::sslv23;
}
ssl::context ctx((ssl::context::method)proto);
if (... | 24.491453 | 140 | 0.61019 |
95a2502d0f83bdf392fc3037a78b0db10a6d1f06 | 15,415 | cpp | C++ | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | 1 | 2019-11-14T04:18:32.000Z | 2019-11-14T04:18:32.000Z | src/apps/mplayerc/EditListEditor.cpp | chinajeffery/MPC-BE--1.2.3 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | [
"MIT"
] | null | null | null | /*
* $Id: EditListEditor.cpp 2326 2013-03-21 12:41:26Z aleksoid $
*
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either v... | 22.50365 | 128 | 0.69108 |
95a359e0389511a9ef04afe8b0c37ab9c07567f2 | 1,801 | cpp | C++ | leetcode/ComboSumIV.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | leetcode/ComboSumIV.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | leetcode/ComboSumIV.cpp | tzaffi/cpp | 43d99e70d8fa712f90ea0f6147774e4e0f2b11da | [
"MIT"
] | null | null | null | //
// Created by zeph on 11/25/16.
//
/**
* Combination Sum IV
Difficulty: Medium
Given an integer array with all positive numbers and no duplicates,
find the number of possible combinations that add up to a positive integer target.
Example:
nums = [1, 2, 3]
target = 4
The possible combination ways are:
(1, 1, 1,... | 21.963415 | 83 | 0.605219 |
95a3a88dfd385f25bc0715b90db46922bea8d373 | 5,625 | cpp | C++ | src/mongo/util/alarm.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/util/alarm.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/mongo/util/alarm.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2018-present MongoDB, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but W... | 32.894737 | 98 | 0.657244 |
95ac5b8bf81d55048ebc62024c8209171266b8cd | 7,064 | cpp | C++ | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_QuestUpdatesLog_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function QuestUpdatesLog.QuestUpdates... | 31.67713 | 163 | 0.76359 |
95afc1b5eb96e3c20a7a848421c691ce9c46a11a | 12,766 | cpp | C++ | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | EXAMPLES/Controls/SingleInst/singleinstance.cpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | //---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#define NDEBUG
#include <cassert>
#include "SingleInstance.h"
#pragma package(smart_init)
//---------------------------------------------------------------------------
// ValidCtrCheck is used to a... | 26.819328 | 96 | 0.624315 |
95aff5bb20c5b67c58315b74f1a3c25b255d2b2f | 996 | hpp | C++ | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/_attack_selfdestruction_result_zoclInfo.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <_attack_selfdestruction_result_zocl.hpp>
START_ATF_NAMESPACE
namespace Info
{
using _attack_selfdestruction_result_zoclctor__attack_s... | 55.333333 | 241 | 0.828313 |
95b10c3e682f252f91eb832efa205268280b326f | 3,264 | cpp | C++ | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | NativePlugin/CaptainAsteroid/src/physics/Game.cpp | axoloto/CaptainAsteroid | fcdcb6bc6987ecf53226daa7027116e40d74401a | [
"Apache-2.0"
] | null | null | null | #include "Game.hpp"
#include "Logging.hpp"
#include "systems/ControlByPlayer.hpp"
#include "systems/Move.hpp"
#include "systems/Collide.hpp"
#include "systems/FireLaser.hpp"
#include "systems/ReduceLifeTime.hpp"
#include "systems/SplitAsteroid.hpp"
#include "systems/RemoveDead.hpp"
#include "components/Motion.hpp"
#... | 27.897436 | 109 | 0.739583 |
95b24eb6996724fd198d8985c5323221ad48343b | 1,240 | cpp | C++ | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | 2 | 2015-10-27T21:36:59.000Z | 2017-03-17T21:52:19.000Z | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | dep/include/yse/synth/synthManager.cpp | ChrSacher/MyEngine | 8fe71fd9e84b9536148e0d4ebb4e53751ab49ce8 | [
"Apache-2.0"
] | null | null | null | /*
==============================================================================
synthManager.cpp
Created: 6 Jul 2014 10:01:40pm
Author: yvan
==============================================================================
*/
#include "synthManager.h"
#include "../internalHeaders.h"
YSE::SYNTH::mana... | 27.555556 | 117 | 0.560484 |
95b3726da577384740325b9d5cb46370d37a5f58 | 789 | cpp | C++ | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 4 | 2020-08-18T00:11:09.000Z | 2021-04-05T11:16:32.000Z | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | 1 | 2020-08-15T20:39:13.000Z | 2020-08-15T20:39:13.000Z | Applications/cli/commands/less.cpp | mschwartz/amos | 345a4f8f52b9805722c10ac4cedb24b480fe2dc7 | [
"MIT"
] | null | null | null | #include "commands.hpp"
TInt64 CliTask::command_less(TInt ac, char **av) {
if (ac != 2) {
return Error("%s requires 1 argument", av[0]);
}
FileDescriptor *fd;
fd = OpenFile(av[1]);
if (!fd) {
return Error("Could not open %s", av[1]);
}
else {
char buf[512];
TInt count = 0;
for (;;) {... | 20.230769 | 61 | 0.47275 |
95b556d3ea0b81e90c7fa3021b1864eca830ff22 | 1,346 | hpp | C++ | siar_driver/include/siar_driver/arm_firewall.hpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | 3 | 2020-02-06T13:36:38.000Z | 2020-11-10T08:52:23.000Z | siar_driver/include/siar_driver/arm_firewall.hpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | null | null | null | siar_driver/include/siar_driver/arm_firewall.hpp | robotics-upo/siar_packages | 2b9b3e7acbc9bc5845b03d63eb18dbc50bfd3c98 | [
"BSD-3-Clause"
] | 2 | 2017-03-20T16:08:37.000Z | 2018-04-22T04:26:12.000Z | #ifndef __ARM_FIREWALL_HPP__
#define __ARM_FIREWALL_HPP__
#include "ros/ros.h"
#include "siar_driver/SiarArmCommand.h"
#include "siar_driver/SiarStatus.h"
#include <boost/array.hpp>
class ArmFirewall {
public:
static bool checkJointLimits(const boost::array<int16_t, 5> joint_values)
{
bool ret_val = (joint_v... | 25.884615 | 142 | 0.643388 |
95c08918687ae80cd970c1829c9e0d39c02ad59a | 2,210 | cpp | C++ | FrameworkLib/DX11VertApi.cpp | DashW/Ingenuity | f7944a9e8063beaa3dda31e8372d18b4147782e2 | [
"Zlib"
] | null | null | null | FrameworkLib/DX11VertApi.cpp | DashW/Ingenuity | f7944a9e8063beaa3dda31e8372d18b4147782e2 | [
"Zlib"
] | null | null | null | FrameworkLib/DX11VertApi.cpp | DashW/Ingenuity | f7944a9e8063beaa3dda31e8372d18b4147782e2 | [
"Zlib"
] | null | null | null | #include "stdafx.h"
#include "DX11VertApi.h"
#ifdef USE_DX11_GPUAPI
ID3D11InputLayout* DX11Vertex_Pos::inputLayout = 0;
ID3D11InputLayout* DX11Vertex_PosCol::inputLayout = 0;
ID3D11InputLayout* DX11Vertex_PosNor::inputLayout = 0;
ID3D11InputLayout* DX11Vertex_PosNorTex::inputLayout = 0;
bool DX11_VertApi::InitInputL... | 32.028986 | 85 | 0.808597 |
95c156ec977b003837947dd71df125dc1385831e | 2,106 | cpp | C++ | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | cci/graph.cpp | vino-ebe/int-pgms | 124e63d46092bd974d44afe67bd17727892afefa | [
"BSD-2-Clause"
] | null | null | null | #include<iostream>
using namespace std;
struct graphNode {
int vertex;
struct graphNode* next;
};
class graph {
private:
static const int NUM_VERTEX = 10;
graphNode* V[NUM_VERTEX];
int numEdges[NUM_VERTEX];
bool visited[NUM_VERTEX];
graphNode* createNode(int verte... | 22.645161 | 55 | 0.420228 |
95c32850a295113d071f24e4730031c3f0412056 | 2,712 | cpp | C++ | LinkDelay/LinkDelay.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | LinkDelay/LinkDelay.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | LinkDelay/LinkDelay.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// LinkDelay.cpp - manipulate the link delay file
//*********************************************************
#include "LinkDelay.hpp"
char * LinkDelay::PREVIOUS_LINK_DELAY_FILE = "PREVIOUS_LINK_DELAY_FILE";
char * LinkDelay::PREVIOUS_LINK_DELAY_FORMAT = "P... | 28.25 | 76 | 0.620575 |
95c41364396c72ef419b126279ffe3586e0ae5df | 475 | cpp | C++ | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | Train/T.cpp | dangercard/Uva_Challenges | 735bf80da5d1995fece4614d38174d1ea276e7c2 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stack>
#include <string>
using namespace std ;
int main()
{
string stI, stO ;
int j = 0 ;
cin >> stI ;
cin >> stO ;
stack <char> S ;
// S.push(stI[0]) ;
for(int i = 0; i < stI.length() ; i++)
{
if(stO[j] == S.top())
{
S.pop() ;
j++ ;
}
else
... | 11.046512 | 40 | 0.427368 |
95c73c965ca8007407bccbbf7411eaa2dc8166ec | 2,050 | cpp | C++ | test/TestMatrix.cpp | guneykan/ml-algorithms | 4fecf9dbf2ef77ebf86d795ee01939796b0b7e14 | [
"MIT"
] | null | null | null | test/TestMatrix.cpp | guneykan/ml-algorithms | 4fecf9dbf2ef77ebf86d795ee01939796b0b7e14 | [
"MIT"
] | null | null | null | test/TestMatrix.cpp | guneykan/ml-algorithms | 4fecf9dbf2ef77ebf86d795ee01939796b0b7e14 | [
"MIT"
] | null | null | null | #include "gtest/gtest.h"
#include "util/math/matrix.h"
TEST(Matrix, sum_1by1) {
Matrix m1(std::vector<double>{0.5}, 1, 1);
Matrix m2(std::vector<double>{91.2}, 1, 1);
Matrix calculated = m1.plus(m2);
Matrix actual(std::vector<double>{91.7}, 1, 1);
ASSERT_EQ(actual.get(0, 0), calculated.get(0, 0));
}
TEST... | 30.597015 | 77 | 0.533659 |
95ca8f857cc1908926568a8676fa040c1de51f9e | 212 | cpp | C++ | dataStructure/sort/insert.cpp | jinbooooom/coding-for-interview | 4164a3c7ddc19a61fa58aebefff29620029ac42c | [
"MIT"
] | 8 | 2019-08-21T10:57:29.000Z | 2019-10-14T03:35:22.000Z | dataStructure/sort/insert.cpp | jinbooooom/coding-for-interview | 4164a3c7ddc19a61fa58aebefff29620029ac42c | [
"MIT"
] | null | null | null | dataStructure/sort/insert.cpp | jinbooooom/coding-for-interview | 4164a3c7ddc19a61fa58aebefff29620029ac42c | [
"MIT"
] | null | null | null | void insert(int *arr, int len)
{
int i, j, t;
for (i = 1; i < len; ++i) // 从第二个数开始(索引1),一共 len - 1 轮
{
t = arr[i];
for (j = i - 1; j >= 0 && t < arr[j]; --j)
arr[j + 1] = arr[j];
arr[j + 1] = t;
}
} | 19.272727 | 56 | 0.419811 |
95cbec5d7d2291e6f2b109179f40f62aa22c908a | 623 | cpp | C++ | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alecs-Li/Competitive-Programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | 1 | 2021-07-06T02:14:03.000Z | 2021-07-06T02:14:03.000Z | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | USACO Bronze/December 2016 Contest/cowsignal.cpp | Alex01890-creator/competitive-programming | 39941ff8e2c8994abbae8c96a1ed0a04b10058b8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main() {
ifstream fin("cowsignal.in");
ofstream fout("cowsignal.out");
int m, n, k; fin >> m >> n >> k;
char arr[m*n];
string temp = "";
char ans[(m*k)*(n*k)];
for(int a=0; a<m*n; a++){
fin >> arr[a];
}
for(int a=0; a<=m*n; a++){
... | 18.323529 | 34 | 0.410915 |
95d1cf50c77c13f8caa762f74792d59c3b2dcdb1 | 1,396 | hpp | C++ | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | framework/include/planet.hpp | der-freddy/computergrafik | c47e32de23edc1c2aff45f2c789286219afcbf8f | [
"MIT"
] | null | null | null | #ifndef PLANETS_HPP
#define PLANETS_HPP
#include <memory>
#include <map>
#include <glbinding/gl/gl.h>
#include <glm/gtc/type_precision.hpp>
#include <glm/gtc/matrix_transform.hpp>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
// use gl definitions from glbinding
using namespace gl;
struct Planet{
Planet(glm::f... | 25.381818 | 117 | 0.699857 |
95dbd0f6c9879cd5d0f0fab70fffbcf8e675ba91 | 106 | hpp | C++ | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | 13 | 2020-05-02T00:32:14.000Z | 2021-12-28T03:01:28.000Z | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | null | null | null | src/health.hpp | BUDDGAF/eft-packet-1 | cd10a52f4ea6e98219a14e17a8a5ba6bd7d98cc0 | [
"MIT"
] | 8 | 2020-05-01T19:24:55.000Z | 2022-03-14T14:47:51.000Z | std::unordered_map<std::string, std::string> healthItems = {
{ "544fb45d4bdc2dee738b4568", "Salewa"},
}; | 35.333333 | 61 | 0.707547 |
95de790876c884e506a77dba01c034af8b4d3503 | 2,009 | cpp | C++ | libs/viewport/impl/src/viewport/impl/center.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/viewport/impl/src/viewport/impl/center.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/viewport/impl/src/viewport/impl/center.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/renderer/dim2.hpp>
#include <sge/renderer/pixel_rect.hpp>
#include <sge/renderer/pixe... | 39.392157 | 98 | 0.644102 |
95df578aff1c8a74dd14af06aaf5eb825204fbf2 | 5,648 | cpp | C++ | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 87 | 2020-08-03T11:40:39.000Z | 2022-03-31T10:27:58.000Z | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 452 | 2020-08-17T16:32:00.000Z | 2022-03-28T19:19:59.000Z | node/silkworm/db/genesis_test.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | 28 | 2020-08-27T02:06:50.000Z | 2022-03-03T22:30:46.000Z | /*
Copyright 2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 47.066667 | 108 | 0.625354 |
95df962b0c35f50c2c5dd71789129eebb8683eed | 438 | cpp | C++ | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | 10 | 2020-05-05T03:21:34.000Z | 2022-01-22T23:01:22.000Z | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | null | null | null | src/ByteEngine/Utility/Shapes/ConeWithFalloff.cpp | Facundo961/Game-Studio | 8f404fd9b5659e65e7c5a7fe5f191d39b7a5a071 | [
"MIT"
] | 1 | 2020-09-07T03:04:48.000Z | 2020-09-07T03:04:48.000Z | #include "ConeWithFalloff.h"
#include <GTSL/Math/Math.hpp>
ConeWithFalloff::ConeWithFalloff(const float Radius, const float Length) : Cone(Radius, Length)
{
}
ConeWithFalloff::ConeWithFalloff(const float Radius, const float Length, const float ExtraRadius) : Cone(Radius, Length), ExtraRadius(ExtraRadius)
{
}
float ... | 25.764706 | 146 | 0.773973 |
95e1341ada4a78caed6969a85bf6aa78612254b5 | 28,086 | cpp | C++ | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | 1 | 2022-03-28T13:57:09.000Z | 2022-03-28T13:57:09.000Z | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | null | null | null | __Source__/Jimara/Physics/PhysX/PhysXScene.cpp | TheDonsky/Jimara | d677090e61dc1ddfd8c1be61d5202fbf09b1e3ab | [
"MIT"
] | 1 | 2021-02-02T13:34:57.000Z | 2021-02-02T13:34:57.000Z | #include "PhysXScene.h"
#include "PhysXStaticBody.h"
#include "PhysXDynamicBody.h"
#include "../../Core/Unused.h"
#include "PhysXCollider.h"
#pragma warning(disable: 26812)
namespace Jimara {
namespace Physics {
namespace PhysX {
namespace {
#define JIMARA_PHYSX_LAYER_COUNT 256
#define JIMARA_PHYSX_LAYER_DATA_B... | 48.257732 | 166 | 0.719504 |
95e4a43f68f6cc9a521e6035d8e96e5bf407b08a | 3,916 | hpp | C++ | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | include/polycalc/quadrature/gauss_lobatto.hpp | BryanFlynt/PolyCalc | 9fe70f83647c6f5683e6e8f5cfee23b417974ebb | [
"Apache-2.0"
] | null | null | null | /**
* \file gauss_lobatto.hpp
* \author Bryan Flynt
* \date Sep 02, 2021
* \copyright Copyright (C) 2021 Bryan Flynt - All Rights Reserved
*/
#pragma once
#include <cassert>
#include <vector>
#include "polycalc/parameters.hpp"
#include "polycalc/polynomial/jacobi.hpp"
namespace polycalc {
names... | 27.77305 | 106 | 0.522472 |
95e5037325108bcb3a68d454b1596a032466ddf7 | 1,277 | cpp | C++ | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | 9 | 2016-06-25T15:52:05.000Z | 2020-01-15T17:31:49.000Z | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | null | null | null | RPSolver/conditions/ColorConditionPosition.cpp | igui/OppositeRenderer | 2442741792b3f0f426025c2015002694fab692eb | [
"MIT"
] | 2 | 2018-10-17T18:33:37.000Z | 2022-03-14T20:17:30.000Z | #include "ColorConditionPosition.h"
#include "renderer/PMOptixRenderer.h"
#include <QLocale>
#include <QVector>
#include <QColor>
ColorConditionPosition::ColorConditionPosition(const QString& node, const optix::float3& hsvColor) :
m_node(node),
m_hsvColor(hsvColor)
{
}
/// adapted from http://www.cs.rit.edu/~ncs/c... | 23.648148 | 100 | 0.740016 |
95e691961ebfa6bbdb05b501023cc8f9232bca74 | 470 | cpp | C++ | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | test/one_pole_test.cpp | hansen-audio/dsp-tool-box | 4b73b39c4149b1a160ff9baa58830d6a4478feef | [
"MIT"
] | null | null | null | // Copyright(c) 2021 Hansen Audio.
#include "ha/dsp_tool_box/filtering/one_pole.h"
#include "gtest/gtest.h"
using namespace ha::dtb::filtering;
/**
* @brief one_pole_test
*/
TEST(one_pole_test, test_one_pole_initialisation)
{
auto one_pole = OnePoleImpl::create();
EXPECT_FLOAT_EQ(one_pole.a, 0.9);
EXPE... | 24.736842 | 79 | 0.595745 |
95e822ec2193ba8a1afeec80b6386bec08906a22 | 376 | cpp | C++ | a12H.cpp | asokolsky/oddeven | 44563d7efa07539335907dde9e17a9602b3e40fa | [
"BSD-2-Clause"
] | null | null | null | a12H.cpp | asokolsky/oddeven | 44563d7efa07539335907dde9e17a9602b3e40fa | [
"BSD-2-Clause"
] | null | null | null | a12H.cpp | asokolsky/oddeven | 44563d7efa07539335907dde9e17a9602b3e40fa | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include <map>
#include <string>
#include <set>
using namespace std;
/**
Напишите функцию BuildMapValuesSet, принимающую на вход словарь map<int, string> и возвращающую множество значений этого словаря:
*/
set <string> BuildMapValuesSet(const map<int, string>& m)
{
set <string> res;
for(au... | 18.8 | 129 | 0.715426 |
95e9041360dd5f89ac2c62dfce38d6eb5fbeea0b | 12,094 | cpp | C++ | p3/src/org/cracs/stheno/core/p2p/p3/leaf/mesh/P3LeafMesh.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | 7 | 2015-08-17T16:24:22.000Z | 2022-03-16T15:54:19.000Z | p3/src/org/cracs/stheno/core/p2p/p3/leaf/mesh/P3LeafMesh.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | null | null | null | p3/src/org/cracs/stheno/core/p2p/p3/leaf/mesh/P3LeafMesh.cpp | rolandomar/stheno | 6b41f56f25be1e7d56c8be4973203bf943e4f041 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2012 Rolando Martins, CRACS & INESC-TEC, DCC/FCUP
*
* 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
*
* Unle... | 37.559006 | 166 | 0.663966 |
95e986976ea930c1b1553927cad9a42a5c591183 | 28,297 | cpp | C++ | pass/bitwidth/pass_bitwidth.cpp | mfkiwl/livehd-fpga | a359adaab7cf2e54f0100a5bb6bf0431cfc8ae7e | [
"BSD-3-Clause"
] | 1 | 2022-03-09T23:29:29.000Z | 2022-03-09T23:29:29.000Z | pass/bitwidth/pass_bitwidth.cpp | mfkiwl/livehd-fpga | a359adaab7cf2e54f0100a5bb6bf0431cfc8ae7e | [
"BSD-3-Clause"
] | null | null | null | pass/bitwidth/pass_bitwidth.cpp | mfkiwl/livehd-fpga | a359adaab7cf2e54f0100a5bb6bf0431cfc8ae7e | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include "pass_bitwidth.hpp"
#include <algorithm>
#include <cmath>
#include <vector>
#include "bitwidth_range.hpp"
#include "lbench.hpp"
#include "lgedgeiter.hpp"
#include "lgraph.hpp"
// Useful for debug
//#define PRESERVE_ATTR_NO... | 32.228929 | 127 | 0.627699 |
95eb334cf721182b79ae1a9102b49ddcbb973767 | 10,292 | cpp | C++ | newton-4.00/applications/ndSandbox/demos/ndBasicStacks.cpp | Libertus-Lab/newton-dynamics | af6e6635c7f563c697b8e5b088d68ba24fa8fe9c | [
"Zlib"
] | null | null | null | newton-4.00/applications/ndSandbox/demos/ndBasicStacks.cpp | Libertus-Lab/newton-dynamics | af6e6635c7f563c697b8e5b088d68ba24fa8fe9c | [
"Zlib"
] | null | null | null | newton-4.00/applications/ndSandbox/demos/ndBasicStacks.cpp | Libertus-Lab/newton-dynamics | af6e6635c7f563c697b8e5b088d68ba24fa8fe9c | [
"Zlib"
] | null | null | null | /* Copyright (c) <2003-2021> <Newton Game Dynamics>
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* includi... | 34.192691 | 205 | 0.735717 |
95ebda8d3be8708b52ecab9bc614b240388f153f | 944 | cpp | C++ | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | codeforces/1567B.cpp | sgrade/cpptest | 84ade6ec03ea394d4a4489c7559d12b4799c0b62 | [
"MIT"
] | null | null | null | // B. MEXor Mixup
#include <iostream>
using namespace std;
// Method to calculate xor
int computeXOR(int n) {
// Source - https://www.geeksforgeeks.org/calculate-xor-1-n/
// If n is a multiple of 4
if (n % 4 == 0) {
return n;
}
// If n%4 gives remainder 1
if (n % 4 == 1) {
r... | 15.225806 | 64 | 0.400424 |
95ec924801c63c19c0604cdbd92f81fcfb7c89c5 | 2,081 | cpp | C++ | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | 1 | 2021-02-05T23:20:07.000Z | 2021-02-05T23:20:07.000Z | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | lib/netdata/fragments_server.cpp | siilky/catomania | cb3a05cbef523d16b8929b390e190e0cd5924ee9 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "netdata/fragments_server.h"
namespace serverdata
{
static const fragmentCollection_t fragments[] =
{
COLLECTION_ELEMENT(Array),
COLLECTION_ELEMENT(ArrayPacked),
COLLECTION_ELEMENT(GameinfoSet),
COLLECTION_ELEMENT(AccInfo),
COLLECTION_ELEMEN... | 32.515625 | 97 | 0.702547 |
95ee1c3d622ff6dcfa592566fe594b9f5361bf48 | 359 | cpp | C++ | example/shm_status.cpp | unhuman-io/motor-realtime | 1aee682954096c28c9a3f01546261499052c4e0b | [
"Unlicense"
] | null | null | null | example/shm_status.cpp | unhuman-io/motor-realtime | 1aee682954096c28c9a3f01546261499052c4e0b | [
"Unlicense"
] | null | null | null | example/shm_status.cpp | unhuman-io/motor-realtime | 1aee682954096c28c9a3f01546261499052c4e0b | [
"Unlicense"
] | 1 | 2021-04-05T18:14:51.000Z | 2021-04-05T18:14:51.000Z | #include <motor_manager.h>
#include <thread>
#include <motor_subscriber.h>
int main() {
MotorSubscriber<MotorStatus> sub;
while(1) {
MotorStatus status = sub.read();
std::vector<MotorStatus> statuses(1, status);
std::cout << statuses << std::endl;
std::this_thread::sleep_for(st... | 23.933333 | 68 | 0.635097 |
95eead97864fb897edd4dd8a2cbc86b300d5d66f | 775 | cpp | C++ | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/296-D/10047350.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
//In the name of God
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <map>
#include <cstdio>
using namespace std;
#define mp make_pair
#define X first
#define Y second
#define lol long long
const int MAXN=510;
lol dis[MAXN][MAXN],a[MAXN],ans[MAXN];
int mai... | 17.613636 | 72 | 0.536774 |
95f2057d92060a6141b994aa38b25df57f1633d8 | 450 | cpp | C++ | Project/Zombienator/Layer.cpp | Jallah123/TheZombienator | efbcb93b0b2943cd9b38ac84fe8a6857e329b05b | [
"MIT"
] | null | null | null | Project/Zombienator/Layer.cpp | Jallah123/TheZombienator | efbcb93b0b2943cd9b38ac84fe8a6857e329b05b | [
"MIT"
] | null | null | null | Project/Zombienator/Layer.cpp | Jallah123/TheZombienator | efbcb93b0b2943cd9b38ac84fe8a6857e329b05b | [
"MIT"
] | null | null | null | #pragma once
#include "Layer.h"
#include "Map.h"
#include "TileSet.h"
Layer::Layer()
{
}
Layer::Layer(Map * map) : map(map)
{
}
Layer::~Layer()
{
}
void Layer::DrawRect(SDL_Rect* srcRect, SDL_Texture* texture, SDL_Rect* destRect, SDL_Renderer& ren)
{
SDL_RenderCopy(&ren, texture, srcRect, destRect);
}
void Layer... | 15.517241 | 100 | 0.695556 |
95f3259db3c8e78193d7b64e3381708b35a84a79 | 79,644 | cpp | C++ | src/model/UdmGridCoordinates.cpp | avr-aics-riken/UDMlib | 1577b3caa74a7499037099dfbdd68d2f2c92fb43 | [
"BSD-2-Clause"
] | 3 | 2016-02-28T05:07:59.000Z | 2019-01-31T15:15:31.000Z | src/model/UdmGridCoordinates.cpp | avr-aics-riken/UDMlib | 1577b3caa74a7499037099dfbdd68d2f2c92fb43 | [
"BSD-2-Clause"
] | 4 | 2015-05-11T12:09:21.000Z | 2015-11-24T06:23:38.000Z | src/model/UdmGridCoordinates.cpp | avr-aics-riken/UDMlib | 1577b3caa74a7499037099dfbdd68d2f2c92fb43 | [
"BSD-2-Clause"
] | 5 | 2015-04-27T06:22:51.000Z | 2021-05-10T07:36:57.000Z | // ##################################################################################
//
// UDMlib - Unstructured Data Management Library
//
// Copyright (C) 2012-2015 Institute of Industrial Science, The University of Tokyo.
// All rights reserved.
//
// Copyright (c) 2015 Advanced Institute for Computational Science,... | 32.829349 | 207 | 0.637776 |
95f51e6d68125e62b3c13fd5ffbb14983da5ee3f | 2,567 | cpp | C++ | yotta_modules/core-util/test/PoolAllocator/main.cpp | lbk003/mbed-cortexm | a4fcb5de906a49a7fa737d6a89fcf5590aa68d31 | [
"Apache-2.0"
] | null | null | null | yotta_modules/core-util/test/PoolAllocator/main.cpp | lbk003/mbed-cortexm | a4fcb5de906a49a7fa737d6a89fcf5590aa68d31 | [
"Apache-2.0"
] | null | null | null | yotta_modules/core-util/test/PoolAllocator/main.cpp | lbk003/mbed-cortexm | a4fcb5de906a49a7fa737d6a89fcf5590aa68d31 | [
"Apache-2.0"
] | null | null | null | /*
* PackageLicenseDeclared: Apache-2.0
* Copyright (c) 2015 ARM Limited
*
* 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
*
* Unles... | 34.689189 | 132 | 0.687183 |
95f63141ee8879d95b09b6d158efeaadc1b9224a | 981 | cpp | C++ | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | 1 | 2021-01-27T16:37:36.000Z | 2021-01-27T16:37:36.000Z | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | topic_wise/binarysearch/russianDollEnvelopes.cpp | archit-1997/LeetCode | 7c0f74da0836d3b0855f09bae8960f81a384f3f3 | [
"MIT"
] | null | null | null | /**
* @author : archit
* @GitHub : archit-1997
* @Email : architsingh456@gmail.com
* @file : russianDollEnvelopes.cpp
* @created : Friday Aug 20, 2021 19:49:02 IST
*/
#include <bits/stdc++.h>
using namespace std;
bool compare(const vector<int> &a,const vector<int> &b){
if(a[0]==b[... | 27.25 | 105 | 0.559633 |
95f76b3ce45e04a7abf750e2e3d9b2f6d346a253 | 6,160 | cpp | C++ | 1.Race Condition/RaceCondition/main.cpp | Cabrra/Multithreading | 0259f6cb48534e583818b10274698df130fd222e | [
"MIT"
] | null | null | null | 1.Race Condition/RaceCondition/main.cpp | Cabrra/Multithreading | 0259f6cb48534e583818b10274698df130fd222e | [
"MIT"
] | null | null | null | 1.Race Condition/RaceCondition/main.cpp | Cabrra/Multithreading | 0259f6cb48534e583818b10274698df130fd222e | [
"MIT"
] | null | null | null | // Include file and line numbers for memory leak detection for visual studio in debug mode
// NOTE: The current implementation of C++11 shipped with Visual Studio 2012 will leak a single
// 44-byte mutex (at_thread_exit_mutex) internally if any threads have been created. This
// will show up in the output window wi... | 32.083333 | 120 | 0.641396 |
95f98cdeb21f069a00008843f3f93c41ab1c6da8 | 310 | cpp | C++ | aql/benchmark/lib_18/class_6.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_18/class_6.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | aql/benchmark/lib_18/class_6.cpp | menify/sandbox | 32166c71044f0d5b414335b2b6559adc571f568c | [
"MIT"
] | null | null | null | #include "class_6.h"
#include "class_0.h"
#include "class_8.h"
#include "class_5.h"
#include "class_7.h"
#include "class_4.h"
#include <lib_8/class_9.h>
#include <lib_13/class_3.h>
#include <lib_13/class_2.h>
#include <lib_0/class_0.h>
#include <lib_11/class_6.h>
class_6::class_6() {}
class_6::~class_6() {}
| 20.666667 | 27 | 0.712903 |
2503e048a00ec653a7ee4ad553e908b8545f859c | 8,922 | cpp | C++ | ds/security/services/scerpc/xml-jet/secman/securitydatabase.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | ds/security/services/scerpc/xml-jet/secman/securitydatabase.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | ds/security/services/scerpc/xml-jet/secman/securitydatabase.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 2002 Microsoft Corporation
Module Name:
SecurityDatabase.cpp
Abstract:
Implementation of CSecurityDatabase interface
SecurityDatabase is a COM interface that allows users to perform
basic operations on SCE security databases such as analysis,
import and ex... | 27.20122 | 90 | 0.580924 |
2503e7a6e385bccb094db584c03c8399d1f98eab | 1,538 | cc | C++ | ChiTech/ChiMesh/SurfaceMesher/Predefined/surfmesher_predefined_02_execute.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 7 | 2019-09-10T12:16:08.000Z | 2021-05-06T16:01:59.000Z | ChiTech/ChiMesh/SurfaceMesher/Predefined/surfmesher_predefined_02_execute.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 72 | 2019-09-04T15:00:25.000Z | 2021-12-02T20:47:29.000Z | ChiTech/ChiMesh/SurfaceMesher/Predefined/surfmesher_predefined_02_execute.cc | Jrgriss2/chi-tech | db75df761d5f25ca4b79ee19d36f886ef240c2b5 | [
"MIT"
] | 41 | 2019-09-02T15:33:31.000Z | 2022-02-10T13:26:49.000Z | #include "surfmesher_predefined.h"
#include "../../MeshHandler/chi_meshhandler.h"
#include "../../Region/chi_region.h"
#include "../../Boundary/chi_boundary.h"
#include<iostream>
#include <chi_log.h>
extern ChiLog& chi_log;
void chi_mesh::SurfaceMesherPredefined::Execute()
{
chi_log.Log(LOG_0VERBOSE_1) << "Surface... | 34.177778 | 84 | 0.579324 |
25079ddaa0334b783ca3811633d9d391432c24e8 | 4,299 | cpp | C++ | arduino/ledpoi_v2/Colour.cpp | Spherculism/reaktor | 33892582497a5ca53d1141bdb4b6bbe282c5c00f | [
"MIT"
] | 2 | 2016-05-11T23:55:48.000Z | 2016-05-17T10:38:57.000Z | arduino/ledpoi_v2/Colour.cpp | Spherculism/reaktor | 33892582497a5ca53d1141bdb4b6bbe282c5c00f | [
"MIT"
] | 1 | 2015-01-10T09:11:14.000Z | 2015-01-10T09:11:14.000Z | arduino/ledpoi_v2/Colour.cpp | Spherculism/reaktor | 33892582497a5ca53d1141bdb4b6bbe282c5c00f | [
"MIT"
] | null | null | null | /*
Library for RGB and HSV colour settings of two LEDs.
Input is in form of a struct, {R, G, B, H, S, V, end}
*/
#include "WProgram.h"
#include "Colour.h"
#include "MyTypes.h"
// Code that gets called on import of colour class
Colour::Colour(byte pointless) // needs an input
{
// prepare pins for output - DO... | 30.062937 | 83 | 0.510119 |
2507f8068640fc6f36eb0b4121359f400f7b1814 | 1,034 | cpp | C++ | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0125.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isPalindrome(string s) {
if (s.size() == 0)
{
return true;
}
vector<char> v;
for (int i = 0; i < s.size(); ++i)
{
if (isalnum(s[i]))
{
v.push_back(s[i]);
// cout << s[i]... | 22 | 71 | 0.305609 |
2508bfcdb6b42e2a10b88a833dd0167bfe49dda3 | 476 | hpp | C++ | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | 3 | 2017-03-10T13:57:25.000Z | 2017-05-31T19:05:35.000Z | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null | king/include/king/Math/VectorType.hpp | tobiasbu/king | 7a6892a93d5d4c5f14e2618104f2955281f0bada | [
"MIT"
] | null | null | null |
#ifndef KING_VECTORTYPE_HPP
#define KING_VECTORTYPE_HPP
namespace king {
// Vectors Types Predefinition
template <typename T> class Vector2;
template <typename T> class Vector3;
template <typename T> class Vector4;
// Most Commom Vectors Types
typedef Vector2<float> Vector2f;
typedef Vector2<int> Vector2i;... | 18.307692 | 41 | 0.771008 |
250c942de9921b043307f0332d526be930225d62 | 1,961 | cpp | C++ | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/PrintHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | #include <string>
#include <iostream>
void startHeader(std::string locationName){
std::cout << "**********" << locationName << "**********\n";
}
void finishHeader(std::string locationName){
std::cout << "**********";
for(unsigned int i=0;i<locationName.length();i++){
std::cout << "*";
}
st... | 28.42029 | 99 | 0.481387 |
251823b176ebd495769eb2f4a4b2245d747743ac | 4,026 | hpp | C++ | Kiwi_External.hpp | Musicoll/KiwiExternal | 1c1db8e324e6fc96c4b4df54c5a2535f406aa477 | [
"MIT"
] | null | null | null | Kiwi_External.hpp | Musicoll/KiwiExternal | 1c1db8e324e6fc96c4b4df54c5a2535f406aa477 | [
"MIT"
] | null | null | null | Kiwi_External.hpp | Musicoll/KiwiExternal | 1c1db8e324e6fc96c4b4df54c5a2535f406aa477 | [
"MIT"
] | null | null | null | //
// Kiwi_External.h
// Kiwi_External
//
// Created by Pierre on 04/04/2018.
// Copyright © 2018 Pierre. All rights reserved.
//
#pragma once
#include <cstdlib>
#include <stdexcept>
#include <string>
#include <vector>
//#include <variant>
#ifdef _WIN32
#ifdef KIWI_LIBRARY_EXPORTS
#define KIWI_LIBRARY_EXTERN __d... | 37.277778 | 100 | 0.577 |
2519cdd014be2f8ae012d413d418b32188482693 | 123 | cpp | C++ | bookcode/cproject/namespace/one.cpp | zhangymPerson/Think-in-java-note | b89ca3b90ad3d43d010e4764d06ee5ffff8e118d | [
"Apache-2.0"
] | null | null | null | bookcode/cproject/namespace/one.cpp | zhangymPerson/Think-in-java-note | b89ca3b90ad3d43d010e4764d06ee5ffff8e118d | [
"Apache-2.0"
] | 3 | 2021-12-14T20:50:59.000Z | 2021-12-18T18:26:01.000Z | bookcode/cproject/namespace/one.cpp | zhangymPerson/Think-in-java-note | b89ca3b90ad3d43d010e4764d06ee5ffff8e118d | [
"Apache-2.0"
] | null | null | null | #include "iostream"
using namespace std;
namespace one
{
void fun()
{
cout << "echo one func()\n";
}
}
| 12.3 | 36 | 0.544715 |
251c715ca5539cd71d9f6f3f4f3adbaef47d7759 | 2,550 | cc | C++ | chromeos/dbus/shill/fake_modem_messaging_client.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chromeos/dbus/shill/fake_modem_messaging_client.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chromeos/dbus/shill/fake_modem_messaging_client.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chromeos/dbus/shill/fake_modem_messaging_client.h"
#include <algorithm>
#include <string>
#include <vector>
#include "base/callback.h"
#includ... | 35.416667 | 80 | 0.683137 |
251e742f8655e82fa15cf61f177b17e665922ff0 | 4,157 | cpp | C++ | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 2 | 2020-12-12T22:48:57.000Z | 2021-02-24T09:37:40.000Z | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 5 | 2021-01-07T19:34:24.000Z | 2021-03-17T13:52:22.000Z | src/types/Criteria.cpp | Mostah/parallel-pymcda | d5f5bb0de95dec90b88be9d00a3860e52eed4003 | [
"MIT"
] | 3 | 2020-12-12T22:49:56.000Z | 2021-09-08T05:26:38.000Z | #include "../../include/types/Criteria.h"
#include "../../include/types/Criterion.h"
#include "../../include/utils.h"
#include <algorithm>
#include <iostream>
#include <numeric>
#include <string>
#include <vector>
Criteria::Criteria(std::vector<Criterion> &criterion_vect) {
std::vector<std::string> crit_id_vect;
f... | 28.087838 | 79 | 0.660573 |
2520af0b6c32847350b4e715a9d45c750e9af6c2 | 15,144 | hpp | C++ | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libmesh/include/sirikata/mesh/Meshdata.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | /* Sirikata
* Meshdata.hpp
*
* Copyright (c) 2010, Daniel B. Miller
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
* * Redistributions of source code must retain the above copy... | 36.757282 | 138 | 0.719427 |
252af395366cb275352e95eee4d73a4fe3e82626 | 191 | cc | C++ | example.cc | WingTillDie/CxxPrintf | 5b82eeb12840553598efdd291e004c5ba97fbd02 | [
"Apache-2.0"
] | null | null | null | example.cc | WingTillDie/CxxPrintf | 5b82eeb12840553598efdd291e004c5ba97fbd02 | [
"Apache-2.0"
] | null | null | null | example.cc | WingTillDie/CxxPrintf | 5b82eeb12840553598efdd291e004c5ba97fbd02 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cfloat>
#include "cxxprintf.hh"
int main(){
std::cout << putf("%3d\n", 23) << putf("%a\n", 256.);
std::cerr << putf("%Le\n", LDBL_MAX) << putf("%p", NULL);
}
| 21.222222 | 58 | 0.570681 |
2530cd464b924151a2e29ae753940bfa5eaa65a9 | 1,040 | cpp | C++ | hashing/timer/clock.cpp | ShuhaoZhangTony/WalnutDB | 9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050 | [
"MIT"
] | null | null | null | hashing/timer/clock.cpp | ShuhaoZhangTony/WalnutDB | 9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050 | [
"MIT"
] | null | null | null | hashing/timer/clock.cpp | ShuhaoZhangTony/WalnutDB | 9ccc10b23351aa2e6793e0f5c7bd3dd511d7b050 | [
"MIT"
] | null | null | null | //
// Created by Shuhao Zhang on 3/3/20.
//https://stackoverflow.com/questions/275004/timer-function-to-provide-time-in-nano-seconds-using-c/11485388#11485388
#include "clock.h"
#include <iostream>
#include <thread>
int x::test_clock() {
// Define real time units
typedef std::chrono::duration<unsigned long l... | 33.548387 | 117 | 0.649038 |
2532703c98e156e338f8abd5c4d6dcc28a4dc5d0 | 8,616 | cpp | C++ | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | PrgApps4/17-MMFSparse/MMFSparse.cpp | JimYang365/samples | 920c2d98b1ef0dc3d3b861b9b73ab6a3d0e5ced0 | [
"MIT"
] | null | null | null | /******************************************************************************
Module: MMFSparse.cpp
Notices: Copyright (c) 2000 Jeffrey Richter
******************************************************************************/
#include "..\CmnHdr.h" /* See Appendix A. */
#include <tchar.h>
#include <Windo... | 31.445255 | 80 | 0.543988 |
253595dff9926cc3c167493f95b92c4e424811a0 | 1,565 | cpp | C++ | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | treefunctions.cpp | waha99922/JuicyBros_TOOLBOX_V1.0 | ff59f3842e9a4bf1b40e18613f555b923cd9b949 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Tree.h"
using namespace std;
Tree::Tree()
{
root = NULL;
}
void Tree::insert(double value)
{
Tnode* ptr = new Tnode(value);
Tnode* temp = root;
if (root == NULL)
{
root = ptr;
}
else
{
while (temp != NULL)
{
if (temp->data > value && temp->left == NULL... | 14.490741 | 55 | 0.532907 |
2536ba074888894f3711036500cd7a040eb22d84 | 4,865 | cpp | C++ | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | main.cpp | gnole/CG-HW3 | 9c0859bda43291d49a47b929352d6ba5da2bdae9 | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <unistd.h>
#include <cmath>
#include <iostream>
void drawLineRed(int x1, int y1, int x2, int y2, sf::RenderWindow &window) {
const int deltaX = abs(x2 - x1);
const int deltaY = abs(y2 - y1);
const int signX = x1 < x2 ? 1 : -1;
const int signY = y1 < y2 ? 1 : -1;
int error = ... | 29.131737 | 101 | 0.610277 |
2536d4a70dc875741c6131f4b37f41f5ebd314dd | 780 | cpp | C++ | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | null | null | null | Team01/Game/Project/SceneGame.cpp | OiCGame/GameJam03 | 535fff1e39a3c509c4104029bd40386c5d8b4a69 | [
"MIT"
] | 1 | 2021-02-01T02:48:17.000Z | 2021-02-01T02:48:17.000Z | #include "SceneGame.h"
CSceneGame::CSceneGame() {
}
CSceneGame::~CSceneGame() {
}
bool CSceneGame::Load() {
return false;
}
void CSceneGame::Initialize() {
m_Game.Initialize();
}
void CSceneGame::Update() {
FadeInOut();
if (m_bEndStart) { return; }
m_Game.Update();
// if (g_pInput->IsKeyPush(MOFKEY_F2)) {
i... | 15.6 | 41 | 0.664103 |
2538fdd3e154e6fe6f933447ee849fa4d272cdfc | 18 | cpp | C++ | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | src/root/root.cpp | keithalewis/libfms | 8389d2d022af2a23764653f13addf989d6d9e7fe | [
"MIT"
] | null | null | null | #include "root.h"
| 9 | 17 | 0.666667 |
25399c4fdef84031784b3f8f3136b92e2f289d4a | 1,448 | hpp | C++ | include/thermistor/util.hpp | matt1795/thermistor | 8f7a858fb0fc13b47b16597ae889209726352e71 | [
"Apache-2.0"
] | null | null | null | include/thermistor/util.hpp | matt1795/thermistor | 8f7a858fb0fc13b47b16597ae889209726352e71 | [
"Apache-2.0"
] | null | null | null | include/thermistor/util.hpp | matt1795/thermistor | 8f7a858fb0fc13b47b16597ae889209726352e71 | [
"Apache-2.0"
] | null | null | null | // Thermistor utility functions
//
// Author: Matthew Knight
// File Name: util.hpp
// Date: 2019-08-12
#pragma once
#include <iterator>
namespace Thermistor {
// constexpr range checker. predicate is used to compare every element and
// its predesesor
template <typename Iterator, typename Predicate>
constexpr b... | 24.965517 | 75 | 0.697514 |
253a85ba64ff7c4ced3e3c7c26e811efead82d1f | 1,306 | hh | C++ | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | elements/local/autodpaint.hh | MacWR/Click-changed-for-ParaGraph | 18285e5da578fbb7285d10380836146e738dee6e | [
"Apache-2.0"
] | null | null | null | #ifndef CLICK_AUTODPAINT_HH
#define CLICK_AUTODPAINT_HH
#include <click/element.hh>
CLICK_DECLS
/*
=c
AutoDPaint(COLORANGE,OPERATIONCOLOR)
=s autoDpaint
sets packet two layers' autodpaint annotations
=d
The first layer Paint is to protect the consistency of the packet copys:
Sets each packet's first Paint annota... | 24.185185 | 137 | 0.743492 |
253ce622b9954c1ada6315da36f8d6ad38172cf0 | 388 | cpp | C++ | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | IOST14.cpp | aaryan0348/E-Lab-Object-Oriented-Programming | 29f3ca80dbf2268441b5b9e426415650a607195a | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
float n;
float pi;
cin>>n;
int i=0;
int n1=n;
while(n>0)
{
pi=(float)22/7;
cout.precision(n);
cout<<pi;
while(i)
{
cout<<'*';
i--;
}
i=n1-n+1;
n--;
cout<<endl;
}
cout<<"3"<<endl<<"Fill Setting:*";
... | 12.125 | 37 | 0.466495 |
2540014eae291b7d481e70e6939ec48afa99fdfb | 200,731 | inl | C++ | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | 1 | 2021-12-10T23:35:04.000Z | 2021-12-10T23:35:04.000Z | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | 2d_samples/pmj02_180.inl | st-ario/rayme | 315c57c23f4aa4934a8a80e84e3243acd3400808 | [
"MIT"
] | null | null | null | {std::array<float,2>{0.407800078f, 0.8442536f},
std::array<float,2>{0.587527096f, 0.23548229f},
std::array<float,2>{0.978728712f, 0.646827936f},
std::array<float,2>{0.130732656f, 0.300448418f},
std::array<float,2>{0.103660405f, 0.522768974f},
std::array<float,2>{0.782684922f, 0.481478781f},
std::array<float,2>{0.713951... | 49.006592 | 51 | 0.734725 |
2542029350b0b404fbb1ac81123e1b99e37bef78 | 1,206 | hpp | C++ | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 16 | 2020-04-16T02:07:37.000Z | 2020-07-23T10:48:27.000Z | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 8 | 2020-07-13T17:11:35.000Z | 2020-08-03T16:46:31.000Z | src/utils/io.hpp | aligungr/ue-ran-sim | 564f9d228723f03adfa2b02df2ea019bdf305085 | [
"MIT"
] | 9 | 2020-03-04T15:05:08.000Z | 2020-07-30T06:18:18.000Z | //
// This file is a part of UERANSIM open source project.
// Copyright (c) 2021 ALİ GÜNGÖR.
//
// The software and all associated files are licensed under GPL-3.0
// and subject to the terms and conditions defined in LICENSE file.
//
#pragma once
#include <string>
#include <vector>
namespace io
{
void CreateDirect... | 24.12 | 81 | 0.740464 |
25434081e9cb5acc2e145d1a614574615f6f255f | 136 | cpp | C++ | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | cpp/pb_large_map/LargeMap.cpp | patrit/playground | 6ace43f81123a06e9b5820e1f75e5a9af0cb37b9 | [
"MIT"
] | null | null | null | #include "LargeMap.hpp"
LargeMap::Map LargeMap::_map{
{"foo",
{{"bar42", 42},
{"bar43", 43},
}
},
};
| 13.6 | 29 | 0.426471 |
25448e6a51424ada9805a6c032e1ec65fdbb7890 | 1,183 | hh | C++ | trick_source/data_products/Apps/trkConvert/TRK_DataLog.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 647 | 2015-05-07T16:08:16.000Z | 2022-03-30T02:33:21.000Z | trick_source/data_products/Apps/trkConvert/TRK_DataLog.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 995 | 2015-04-30T19:44:31.000Z | 2022-03-31T20:14:44.000Z | trick_source/data_products/Apps/trkConvert/TRK_DataLog.hh | gilbertguoze/trick | f0537efb0fa3cb5c0c84e36b60f055c1d1c60d21 | [
"NASA-1.3"
] | 251 | 2015-05-15T09:24:34.000Z | 2022-03-22T20:39:05.000Z | #ifndef TRK_DATA_LOG_HH
#define TRK_DATA_LOG_HH
#include <stdio.h> // FILE
#include <stdint.h> // Requires C99
#include <string>
#include <vector>
#include "LogFormatter.hh"
#include "ParamDescription.hh"
class TRK_DataLog {
public:
static const int LittleEndian;
static const int BigEndian;
std::vec... | 23.66 | 63 | 0.71175 |
25452d7b66752b9252960b9985a8b6186e1030b4 | 1,095 | hpp | C++ | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | src/engine/mapset.hpp | eXl-Nic/eXl | a5a0f77f47db3179365c107a184bb38b80280279 | [
"MIT"
] | null | null | null | #pragma once
#include <dunatk/map/map.hpp>
#include <dunatk/map/tile.hpp>
#include <dunatk/map/tileblock.hpp>
namespace eXl
{
class MapSet : public HeapObject
{
MapSet();
public:
IntrusivePtr<SpriteDesc const> texFloor;
IntrusivePtr<SpriteDesc const> texFloorBorder;
IntrusivePtr<SpriteDesc const... | 24.886364 | 53 | 0.742466 |
8584124fdaa67095b42aa00325694a65e9782bcb | 5,735 | cpp | C++ | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2020-06-11T17:09:44.000Z | 2021-12-25T00:34:33.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 9 | 2019-12-21T15:01:01.000Z | 2020-12-05T15:42:43.000Z | cocos2dx_playground/Classes/step_rain_of_chaos_game_test_ActorMoveScene.cpp | R2Road/cocos2dx_playground | 6e6f349b5c9fc702558fe8720ba9253a8ba00164 | [
"Apache-2.0"
] | 1 | 2020-09-07T01:32:16.000Z | 2020-09-07T01:32:16.000Z | #include "step_rain_of_chaos_game_test_ActorMoveScene.h"
#include <new>
#include <numeric>
#include "2d/CCLabel.h"
#include "2d/CCLayer.h"
#include "base/CCDirector.h"
#include "base/CCEventDispatcher.h"
#include "base/CCEventListenerKeyboard.h"
#include "base/ccUTF8.h"
#include "cpg_SStream.h"
#include "cpg_StringT... | 26.068182 | 157 | 0.668178 |
8584f961bca75835df6fe42b8072af2f58d87d2d | 451 | cpp | C++ | src/cmcandy/C_Language_Answers/_0026.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | null | null | null | src/cmcandy/C_Language_Answers/_0026.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | null | null | null | src/cmcandy/C_Language_Answers/_0026.cpp | ch98road/leetcode | a9b4be54a169b30f6711809b892dd1f79f2a17e7 | [
"MIT"
] | 1 | 2020-11-26T03:01:12.000Z | 2020-11-26T03:01:12.000Z | #include <iostream>
#include <map>
#include <vector>
using namespace::std;
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
int cur=0;
map<int,int>m;
for (int i = 0; i < nums.size(); i++)
{
if (m.find(nums[i])==m.end())
{
//... | 19.608696 | 45 | 0.427938 |
8587631e041c8479eaedc531b415d9a88ae52421 | 2,957 | cpp | C++ | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | src/io/serialPort.cpp | oblaser/omw | 3206f5faf8ec26c63004de358235ba7efbd10c4f | [
"MIT"
] | null | null | null | /*
author Oliver Blaser
date 17.12.2021
copyright MIT - Copyright (c) 2021 Oliver Blaser
*/
#include <algorithm>
#include <string>
#include <vector>
#include "omw/defs.h"
#include "omw/io/serialPort.h"
#include "omw/string.h"
#include "omw/windows/windows.h"
namespace
{
#ifdef OMW_PLAT_WI... | 22.233083 | 84 | 0.578627 |
858b3f66f848eea4e5fe243506ea4b0584394681 | 531 | cpp | C++ | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | Source/URoboViz/Private/Controllers/RobotController.cpp | HoangGiang93/URoboViz | dcaab223c30827977d15300f7ae4b19ba0ddfa4f | [
"MIT"
] | null | null | null | // Copyright (c) 2022, Hoang Giang Nguyen - Institute for Artificial Intelligence, University Bremen
#include "Controllers/RobotController.h"
#include "Animation/SkeletalMeshActor.h"
DEFINE_LOG_CATEGORY_STATIC(LogRobotController, Log, All);
URobotController::URobotController()
{
}
void URobotController::... | 22.125 | 101 | 0.709981 |