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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
779168e78d7cd3a75bffafe6539f02369c33edfa | 1,909 | hpp | C++ | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | include/Util/Tween.hpp | FoxelCode/Barkanoid | 3e582cbfb4bf13aa522d344489c8b0bac77fa8c5 | [
"Unlicense"
] | null | null | null | #pragma once
#include <functional>
#include <vector>
#include "Ease.hpp"
class Tween
{
public:
typedef std::function<void(float)> TweenUpdate;
typedef std::function<void()> TweenComplete;
enum Type
{
OneShot,
Boomerang
};
struct TweenInstance
{
TweenInstance(Ease::Type type, float start, float end, fl... | 26.150685 | 111 | 0.701414 | FoxelCode |
77917b8a57d7dcb3b39d7b2a23c97ae273eab0e3 | 88 | cpp | C++ | test/property/ref/property-sys/property-c/abigen/prop.cpp | anderslanglands/cppmm | c7a2e3935a64e344ca9a9e53e71e2b46c8389c8c | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 37 | 2020-11-03T19:51:36.000Z | 2022-02-08T06:09:51.000Z | test/property/ref/property-sys/property-c/abigen/prop.cpp | anderslanglands/cppmm | c7a2e3935a64e344ca9a9e53e71e2b46c8389c8c | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 61 | 2020-11-06T16:59:25.000Z | 2021-09-08T20:48:47.000Z | test/property/ref/property-sys/property-c/abigen/prop.cpp | anderslanglands/cppmm | c7a2e3935a64e344ca9a9e53e71e2b46c8389c8c | [
"OLDAP-2.5",
"OLDAP-2.3"
] | 7 | 2020-11-05T04:53:22.000Z | 2021-09-03T23:32:21.000Z | #include <prop.hpp>
#include <abigen/prop.hpp>
void abi_gen_prop(std::ostream& os) {
}
| 14.666667 | 37 | 0.704545 | anderslanglands |
7793741c5e572186e66db4decf7bc22fbcb56148 | 744 | hpp | C++ | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | 1 | 2017-02-23T05:55:41.000Z | 2017-02-23T05:55:41.000Z | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | null | null | null | src/backup.hpp | awilk003/assignment-02 | b9423385959296790a4de864c1c314d9abdf431f | [
"BSD-3-Clause"
] | null | null | null | #ifndef _BACKUP_H_
#define _BACKUP_H_
#include "cmdline.hpp"
#include "in.hpp"
class Backup
{
public:
Backup();
Backup(const string &filename);
bool execute(const vector<string> &lhs, const vector<string> &rhs, int (& currFD)[2]);
string checkSymbol(vector<string> input, string& path);
//virtual bool isValid()... | 17.714286 | 93 | 0.68414 | awilk003 |
7798d6f5ac29752e357acd8f06b49568e12da74f | 540 | cpp | C++ | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | Aggregation Composition Assignment Question/MotherBoard.cpp | asharbinkhalil/OOP | d9a5fe5233ae3fcc631f00390b53a47da99989e3 | [
"MIT"
] | null | null | null | /*
* MotherBoard.cpp
*
* Created on: Nov 29, 2021
* Author: asharbinkhalil
*/
#include "MotherBoard.h"
MotherBoard::MotherBoard()
{
ports=NULL;
mm= NULL;
}
MotherBoard::MotherBoard(Port *portt, MainMemory *mmm)
{
this->mm=mmm;
ports = new Port[100];
this->ports =portt;
}
Port*& MotherBoard:... | 14.594595 | 56 | 0.633333 | asharbinkhalil |
7799ef317865f1290846f2f9d9a0e638caee193b | 3,945 | cpp | C++ | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | apps/barologger.cpp | freepax/rpi-device-lib | e38bf0481bb96e9dfa9847cc9e1122624f8cc15e | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <string.h>
#include <bmp180.h>
static const int samples = 1;
static const int fileNameSize = 20;
unsigned char oss_mode = ModeOss3;
/// create file name string from date and time
in... | 26.3 | 193 | 0.54398 | freepax |
779a7afc3f0d526d53f1b9c77f29a74d8b63d139 | 2,478 | cpp | C++ | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | src/chessAI.cpp | ReaLNeroM/Chess-Engine | 66e0f69dd8b9d64f78c270cce2bb0c26a57d1609 | [
"MIT"
] | null | null | null | #include "chessAI.h"
#include <ctime>
namespace AI {
const double INF = 1e9;
double checkWin(){
bool check = GameHandler::isKingAttacked(BoardStructure::currMoveColor);
bool movesLeft = GameHandler::movePossible(BoardStructure::currMoveColor, check);
if(check and !movesLeft){
return -INF;
} else if(!mov... | 27.533333 | 128 | 0.608555 | ReaLNeroM |
779a986135542d0f9c6a7137be9642957b837e18 | 4,765 | cpp | C++ | sources/libcore/image/dxt.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/image/dxt.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | sources/libcore/image/dxt.cpp | Gaeldrin/cage | 6399a5cdcb3932e8d422901ce7d72099dc09273c | [
"MIT"
] | null | null | null | #include "dxt.h"
#include <stb_dxt.h>
// inspiration taken from:
// https://github.com/g-truc/gli/blob/8e43030b3e12bb58a4663d85adc5c752f89099c0/gli/core/workaround.hpp
// https://github.com/g-truc/gli/blob/master/gli/core/s3tc.inl
namespace cage
{
uint16 pack565(const vec3 &v)
{
const vec3 v3 = vec3(v * vec3(31,... | 28.878788 | 108 | 0.566422 | Gaeldrin |
779c2d1f078a8625d18e620577a22388f4fcd7d0 | 780 | cpp | C++ | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | letter_pyramid.cpp | saurabhkakade21/Cpp-Practice-Code | ac5e77f1a53bb164f7b265e9291b3ca63a2a2f60 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
system("clear");
cout << "Enter the string for letter pyramid: ";
string input_string {};
getline(cin,input_string);
size_t length = input_string.length();
for(size_t i=0; i < lengt... | 19.02439 | 74 | 0.478205 | saurabhkakade21 |
77a0ec555011909ee9c5d5bd2557f02bd81c29d7 | 3,950 | cpp | C++ | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | 3 | 2019-07-30T17:31:06.000Z | 2019-12-15T01:58:01.000Z | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | null | null | null | src/inspector/InspectorDBusInterface.cpp | azubieta/AppImageService | 103e1ef79f23f59a3e2bb54afbd4eac79d1023fa | [
"MIT"
] | 1 | 2019-08-04T22:42:02.000Z | 2019-08-04T22:42:02.000Z | // system
#include <sstream>
// libraries
#include <appimage/appimage++.h>
#include <appimage/utils/ResourcesExtractor.h>
#include <XdgUtils/DesktopEntry/DesktopEntry.h>
// local
#include "utils.h"
#include "InspectorDBusInterface.h"
// generated by `qt5_add_dbus_adaptor` cmake function
#include "inspectoradaptor.h"... | 38.72549 | 117 | 0.677468 | azubieta |
77a2c4cb19b899252c40e62bf376ef877098475c | 1,098 | cpp | C++ | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | src/lib/math/math.cpp | epochx64/epochx64 | 15dd18ef0708000c8ac123dc59c8416db4c56e6b | [
"MIT"
] | null | null | null | #include <math/math.h>
namespace math
{
//TODO: Fix this trash
void integrate(double interval, double *result)
{
double precision = 10000;
double dx = interval/precision;
double iterator = 0.0;
for (uint64_t i = 0; i < (uint64_t)precision; i++)
{
... | 26.142857 | 107 | 0.503643 | epochx64 |
77a3b14f9a704748bc6dea5fadb39fa52b905050 | 41,022 | cpp | C++ | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | windows/cpp/samples/DataBurnerEx/DataBurnerDlg.cpp | primoburner/primoburner-samples | 4b5e30ffec23569a21f07d4cb8200459273f7a0c | [
"MIT"
] | null | null | null | // This is a part of the High Performance CD Engine Library.
// Copyright (C) 2001-2003 Primo Software Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// High Performance CD Engine Reference and related
// electronic documentation provided with the library.
// S... | 25.848771 | 255 | 0.696821 | primoburner |
77a4500ee52b9ae75faaddaa0d506d2df28b8324 | 1,573 | cpp | C++ | uva.onlinejudge.org/MineSweeper2.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 6 | 2016-09-10T03:16:34.000Z | 2020-04-07T14:45:32.000Z | uva.onlinejudge.org/MineSweeper2.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | null | null | null | uva.onlinejudge.org/MineSweeper2.cpp | facug91/OJ-Solutions | 9aa55be066ce5596e4e64737c28cd3ff84e092fe | [
"Apache-2.0"
] | 2 | 2018-08-11T20:55:35.000Z | 2020-01-15T23:23:11.000Z | /*
By: facug91
From: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1130
Name: Minesweeper
Date: 16/11/2015
*/
#include <bits/stdc++.h>
#define next asjkdbg1238dv8ydf38gy832gf8yd
#define prev asjkdbuiqdg783gdiu3dg79832dui
#define EPS 1e-9
#define MP make_pair
#defin... | 27.12069 | 130 | 0.564526 | facug91 |
77a57b13a51726d3b30f3c453d92f42782fb64c2 | 75,357 | cpp | C++ | contrib/admb2r/admb2r.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 79 | 2015-01-16T14:14:22.000Z | 2022-01-24T06:28:15.000Z | contrib/admb2r/admb2r.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 172 | 2015-01-21T01:53:57.000Z | 2022-03-29T19:57:31.000Z | contrib/admb2r/admb2r.cpp | wStockhausen/admb | 876ec704ae974d0ed3bcc329f243dbc401ad0e6d | [
"BSD-3-Clause"
] | 22 | 2015-01-15T18:11:54.000Z | 2022-01-11T21:47:51.000Z | /********************************************************************************
*
* ADMB2R
*
* Routines for writing data from AD Model Builder to a file read by R with "dget"
*
* Jennifer Martin, Mike Prager and Andi Stephens
* NOAA, National Marine Fisheries Service
*
* jlmartin@usgs.gov
* mike.prager@noaa.gov
*
* O... | 36.741589 | 124 | 0.516117 | wStockhausen |
77ad6cb48aa0dae50ccaec2352ee4ae8bb6d6fb3 | 446 | cpp | C++ | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | 1 | 2019-09-10T08:17:02.000Z | 2019-09-10T08:17:02.000Z | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | null | null | null | pra/2-6.cpp | zhaojing1995/CCF | 53bffeea7c781ae9609f0b1610e106cce14296d2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#define INF 1000000000
using namespace std;
int main(){
int n;
int kase=0;
// int array[];
while(scanf("%d",&n)==1 && n){ //循环输入n
int min=INF,max=-INF,s=0;
for(int i=0;i<n;i++){
int x;
scanf("%d",&x);
s+=x;
if(x>max)max=x;
if(x<min)min=x;
}
if(ka... | 17.84 | 62 | 0.544843 | zhaojing1995 |
77af688a6758c20b67442caa7cbbc5c9fdc6e421 | 25,983 | cpp | C++ | src/unit_IRRLICHT/ChIrrAppInterface.cpp | scpeters/chrono | a7cefda35d8a445963297cbe2dbb3cdfb4397f16 | [
"BSD-3-Clause"
] | null | null | null | src/unit_IRRLICHT/ChIrrAppInterface.cpp | scpeters/chrono | a7cefda35d8a445963297cbe2dbb3cdfb4397f16 | [
"BSD-3-Clause"
] | null | null | null | src/unit_IRRLICHT/ChIrrAppInterface.cpp | scpeters/chrono | a7cefda35d8a445963297cbe2dbb3cdfb4397f16 | [
"BSD-3-Clause"
] | null | null | null | //
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2010-2012 Alessandro Tasora
// Copyright (c) 2013 Project Chrono
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file at the top level of the distribution
// and at http://pr... | 38.955022 | 167 | 0.66836 | scpeters |
77b395d961ae55cd15487c2a5cd52a337ded8984 | 1,300 | cpp | C++ | src/Core/GL/GLTexture.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 129 | 2020-12-13T02:22:05.000Z | 2022-03-22T02:45:39.000Z | src/Core/GL/GLTexture.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 4 | 2020-12-20T20:18:05.000Z | 2021-06-03T10:51:55.000Z | src/Core/GL/GLTexture.cpp | kokizzu/OmniPhotos | b8aa4c90b87b87b087bca8de3cf0e2b6d13f84da | [
"Apache-2.0"
] | 23 | 2020-12-15T15:11:18.000Z | 2022-03-18T00:15:30.000Z | #include "GLTexture.hpp"
#include "Utils/Logger.hpp"
GLTexture::GLTexture(const GLTextureLayout& _layout, const std::string& _textureType)
{
layout = _layout;
textureType = _textureType;
}
GLTexture::~GLTexture()
{
glDeleteTextures(1, &gl_ID);
}
void GLTexture::setActiveTexture(int i)
{
if (i < 0 || i > 31)
... | 20.967742 | 87 | 0.698462 | kokizzu |
77b8fa5ec765cddbd0cc82d243fd8eee7fcc2046 | 5,003 | cpp | C++ | third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp | google-ar/chromium | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 777 | 2017-08-29T15:15:32.000Z | 2022-03-21T05:29:41.000Z | third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 66 | 2017-08-30T18:31:18.000Z | 2021-08-02T10:59:35.000Z | third_party/WebKit/Source/platform/fonts/FontCustomPlatformData.cpp | harrymarkovskiy/WebARonARCore | 2441c86a5fd975f09a6c30cddb57dfb7fc239699 | [
"Apache-2.0",
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 123 | 2017-08-30T01:19:34.000Z | 2022-03-17T22:55:31.000Z | /*
* Copyright (C) 2007 Apple Computer, Inc.
* Copyright (c) 2007, 2008, 2009, Google Inc. All rights reserved.
* Copyright (C) 2010 Company 100, Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* *... | 41.008197 | 80 | 0.724965 | google-ar |
77beae06fbb30367f42202ba358ac662369901b7 | 6,952 | hpp | C++ | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | include/boost/gil/extension/io/png/detail/supported_types.hpp | sdebionne/gil-reformated | 7065d600d7f84d9ef2ed4df9862c596ff7e8a8c2 | [
"BSL-1.0"
] | null | null | null | //
// Copyright 2007-2008 Christian Henning, Andreas Pokorny, Lubomir Bourdev
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_EXTENSION_IO_PNG_DETAIL_SUPPORTED_TYPES_HPP
#define BOOST_GIL_EXT... | 35.835052 | 80 | 0.757768 | sdebionne |
77c1797a35f220483fc45a33f7415b52b836a1a7 | 108 | cpp | C++ | Source/FSDEngine/Private/MeshBaseProperties.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 8 | 2021-07-10T20:06:05.000Z | 2022-03-04T19:03:50.000Z | Source/FSDEngine/Private/MeshBaseProperties.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 9 | 2022-01-13T20:49:44.000Z | 2022-03-27T22:56:48.000Z | Source/FSDEngine/Private/MeshBaseProperties.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | 2 | 2021-07-10T20:05:42.000Z | 2022-03-14T17:05:35.000Z | #include "MeshBaseProperties.h"
FMeshBaseProperties::FMeshBaseProperties() {
this->Enabled = false;
}
| 15.428571 | 44 | 0.740741 | trumank |
77c31a4b17796c91afaf5dba4b15e6f00824e5c1 | 5,777 | cpp | C++ | hdf/HDFAtom.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 4 | 2015-07-03T11:59:54.000Z | 2018-05-17T00:03:22.000Z | hdf/HDFAtom.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 79 | 2015-06-29T18:07:21.000Z | 2018-09-19T13:38:39.000Z | hdf/HDFAtom.cpp | ggraham/blasr_libcpp | 4abef36585bbb677ebc4acb9d4e44e82331d59f7 | [
"RSA-MD"
] | 19 | 2015-06-23T08:43:29.000Z | 2021-04-28T18:37:47.000Z | #include <hdf/HDFAtom.hpp>
template <>
void HDFAtom<std::string>::Create(H5::H5Object &object, const std::string &atomName)
{
H5::StrType strType(0, H5T_VARIABLE);
hsize_t defaultDims[] = {1};
H5::DataSpace defaultDataSpace(1, defaultDims);
attribute = object.createAttribute(atomName.c_str(), strType, ... | 31.396739 | 93 | 0.67336 | ggraham |
77c7c5cd300b29d8a13f9c0a6395c52784a35143 | 8,587 | hpp | C++ | include/mcfile/be/biome.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | 3 | 2020-02-07T19:58:13.000Z | 2022-02-15T14:00:35.000Z | include/mcfile/be/biome.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | null | null | null | include/mcfile/be/biome.hpp | kbinani/libminecraft-file | 7068e877f49f442be7229e996325276ed13dcf47 | [
"MIT"
] | null | null | null | #pragma once
namespace mcfile::be {
class Biome {
public:
static biomes::BiomeId FromUint32(uint32_t raw) {
using namespace biomes::minecraft;
switch (raw) {
case 0: return ocean;
case 47: return frozen_ocean; // legacy_frozen_ocean
case 24: return deep_ocean;
case ... | 42.093137 | 88 | 0.635379 | kbinani |
77c9c917282782bff71239cb08fc720f5b9ce9b1 | 185 | cpp | C++ | renderer/Ray.cpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | null | null | null | renderer/Ray.cpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | null | null | null | renderer/Ray.cpp | AdrienVannson/3D-Renderer | 78148e88b9ab91ccaea0f883a746ee93cac5d767 | [
"MIT"
] | 1 | 2021-03-18T08:05:35.000Z | 2021-03-18T08:05:35.000Z | #include "Ray.hpp"
Ray::Ray (const Vect &pos, const Vect &dir) :
m_pos (pos),
m_dir (dir)
{
m_dir.normalize();
}
void Ray::moveByEpsilon ()
{
m_pos += 1e-5 * m_dir;
}
| 13.214286 | 45 | 0.572973 | AdrienVannson |
77caa88ef168bb15dd29a9dd5a0c03d4cc74514c | 821 | cpp | C++ | Clank/src/cl/Application/Events/MouseEvent.cpp | Repertoi-e/Clank | 3f954f90af9853ca0a7ad6638efd3644c98c8d40 | [
"MIT"
] | 1 | 2017-08-03T15:04:33.000Z | 2017-08-03T15:04:33.000Z | Clank/src/cl/Application/Events/MouseEvent.cpp | Repertoi-e/Clank | 3f954f90af9853ca0a7ad6638efd3644c98c8d40 | [
"MIT"
] | null | null | null | Clank/src/cl/Application/Events/MouseEvent.cpp | Repertoi-e/Clank | 3f954f90af9853ca0a7ad6638efd3644c98c8d40 | [
"MIT"
] | null | null | null | #include "cl/stdafx.h"
#include "MouseEvent.h"
namespace cl {
MouseMovedEvent::MouseMovedEvent(s32 x, s32 y, bool dragged)
: Event(cast(EventType) GetStaticType()), m_Dragged(dragged), m_x(x), m_y(y)
{
}
MouseButtonEvent::MouseButtonEvent(EventType type, s32 x, s32 y)
: Event(type), m_X(x), m_Y(y)
{
}
M... | 26.483871 | 91 | 0.71011 | Repertoi-e |
77cb146f356229fe62208f9c724d8f9e7374900b | 2,773 | cpp | C++ | src/examples/Serialisation/example1.cpp | gwaredd/reflector | f7c4184e5bd98d3744dfb45ea8cd4030b8078bae | [
"MIT"
] | 8 | 2015-03-27T06:15:27.000Z | 2021-07-04T03:45:10.000Z | src/examples/Serialisation/example1.cpp | gwaredd/reflector | f7c4184e5bd98d3744dfb45ea8cd4030b8078bae | [
"MIT"
] | null | null | null | src/examples/Serialisation/example1.cpp | gwaredd/reflector | f7c4184e5bd98d3744dfb45ea8cd4030b8078bae | [
"MIT"
] | 3 | 2016-06-21T12:39:14.000Z | 2019-08-27T15:48:25.000Z | ////////////////////////////////////////////////////////////////////////////////
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <time.h>
#include "json.h"
#include "classes.h"
std::vector< GameObject* > GameObjects;
////////////////////////////////////////////////////////////////////////////////
vo... | 20.69403 | 82 | 0.443563 | gwaredd |
77cb20a3007c1a81ddeb3203a6a2527f90f8e15d | 7,063 | cxx | C++ | gui/moc_QvisColorTableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisColorTableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | gui/moc_QvisColorTableWindow.cxx | ahota/visit_ospray | d80b2e18ff5654d04bfb56ae4d6f42e45f87c9b9 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'QvisColorTableWindow.h'
**
** Created: Wed Nov 4 16:17:56 2015
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.3)
**
** WARNING! All changes made in this file will be lost!
***************... | 42.806061 | 211 | 0.620841 | ahota |
77cd9de513f6e6fee0eb815ca9a7347986f1f491 | 9,905 | hpp | C++ | arm_compute/core/NEON/kernels/convolution/winograd/transforms/output.hpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | 1 | 2019-05-14T11:36:51.000Z | 2019-05-14T11:36:51.000Z | arm_compute/core/NEON/kernels/convolution/winograd/transforms/output.hpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | null | null | null | arm_compute/core/NEON/kernels/convolution/winograd/transforms/output.hpp | elenita1221/ComputeLibrary | 3d2d44ef55ab6b08afda8be48301ce3c55c7bc67 | [
"MIT"
] | 1 | 2020-05-06T16:31:28.000Z | 2020-05-06T16:31:28.000Z | /*
* Copyright (c) 2017 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... | 35.501792 | 107 | 0.696719 | elenita1221 |
77d30eab9a22ff8d87a8b37f87a3941556abde12 | 377 | cpp | C++ | docs/mfc/reference/codesnippet/CPP/cmfctoolbarbutton-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 14 | 2018-01-28T18:10:55.000Z | 2021-11-16T13:21:18.000Z | docs/mfc/reference/codesnippet/CPP/cmfctoolbarbutton-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-04-01T04:17:07.000Z | 2021-04-01T04:17:07.000Z | docs/mfc/reference/codesnippet/CPP/cmfctoolbarbutton-class_1.cpp | jmittert/cpp-docs | cea5a8ee2b4764b2bac4afe5d386362ffd64e55a | [
"CC-BY-4.0",
"MIT"
] | 2 | 2018-11-01T12:33:08.000Z | 2021-11-16T13:21:19.000Z | CMFCToolBarButton* pOffice2007 = NULL;
int nIndex = -1;
for (UINT uiCmd = ID_VIEW_APPLOOK_2007_1; uiCmd <= ID_VIEW_APPLOOK_2007_4; uiCmd++)
{
// CMFCToolBar m_wndToolBarTheme
nIndex = m_wndToolBarTheme.CommandToIndex (uiCmd);
CMFCToolBarButton* pButton = m_wndToolBarTheme.GetButton (nIndex);
if (pButto... | 23.5625 | 84 | 0.71618 | jmittert |
77dae2c04282627fd4f9a0978948934f845c8a8c | 7,410 | cpp | C++ | sssp-cuda/src/util.cpp | aeonstasis/sssp-fpga | 6ea890f159176695a50f1d7bc2ed1406d1d8599c | [
"MIT"
] | 7 | 2019-05-23T06:57:01.000Z | 2022-03-09T06:24:29.000Z | sssp-cuda/src/util.cpp | aaron-zou/sssp-fpga | 6ea890f159176695a50f1d7bc2ed1406d1d8599c | [
"MIT"
] | null | null | null | sssp-cuda/src/util.cpp | aaron-zou/sssp-fpga | 6ea890f159176695a50f1d7bc2ed1406d1d8599c | [
"MIT"
] | 1 | 2018-08-11T09:55:33.000Z | 2018-08-11T09:55:33.000Z | #include "util.h"
#include "pthread.h"
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <stdexcept>
using std::vector;
namespace util {
vector<Point> random_centroids(int k, size_t num_features) {
auto centroids = vector<Point>{};
for (in... | 28.5 | 79 | 0.589474 | aeonstasis |
77df632bbbfa0e752892dc546e7ab3f57d91f611 | 5,026 | cpp | C++ | examples/cpp/train_relation_extraction/train_relation_extraction_example.cpp | maxmert/nlp-mitie | ec3153ef2fe7a80e7cf3d80d14b388b8cd679343 | [
"Unlicense"
] | 2,695 | 2015-01-01T21:13:47.000Z | 2022-03-31T04:45:32.000Z | examples/cpp/train_relation_extraction/train_relation_extraction_example.cpp | maxmert/nlp-mitie | ec3153ef2fe7a80e7cf3d80d14b388b8cd679343 | [
"Unlicense"
] | 208 | 2015-01-23T19:29:07.000Z | 2022-02-08T02:55:17.000Z | examples/cpp/train_relation_extraction/train_relation_extraction_example.cpp | maxmert/nlp-mitie | ec3153ef2fe7a80e7cf3d80d14b388b8cd679343 | [
"Unlicense"
] | 567 | 2015-01-06T19:22:19.000Z | 2022-03-21T17:01:04.000Z | /*
This example shows how to use the MITIE C++ API to train a binary_relation_detector.
*/
#include <mitie/binary_relation_detector_trainer.h>
#include <iostream>
using namespace dlib;
using namespace std;
using namespace mitie;
// ------------------------------------------------------------------------------... | 46.110092 | 154 | 0.653999 | maxmert |
77e16feec06706c51b625123d38efe49715bdf6c | 11,574 | cpp | C++ | src/Character.cpp | dinodeck/dinodeck | 091f0e31ba9e921eab7fa6dd219f5c40ea3ed78c | [
"MIT"
] | 110 | 2016-06-23T23:07:23.000Z | 2022-03-25T03:18:16.000Z | src/Character.cpp | dinodeck/dinodeck | 091f0e31ba9e921eab7fa6dd219f5c40ea3ed78c | [
"MIT"
] | 9 | 2016-06-24T13:20:01.000Z | 2020-05-05T18:43:46.000Z | src/Character.cpp | dinodeck/dinodeck | 091f0e31ba9e921eab7fa6dd219f5c40ea3ed78c | [
"MIT"
] | 23 | 2016-04-26T23:37:13.000Z | 2021-09-27T07:10:08.000Z | #include "Character.h"
#include <assert.h>
#include "DDLog.h"
#include "Game.h"
#include "GraphicsPipeline.h"
#include "LuaState.h"
#include "reflect/Reflect.h"
#include "Renderer.h"
#ifdef ANDROID
#include <FTGL/ftgles.h>
#include "FTGL/../FTGlyph/FTTextureGlyphImpl.h"
#else
#include <FTGL/ftgl.h>
#... | 28.437346 | 91 | 0.601089 | dinodeck |
77e1cd640ee38b2ba76b31ee9ac77623a2db6024 | 2,770 | cc | C++ | src/ufo/errors/ObsErrorDiagonal.cc | NOAA-EMC/ufo | 3bf1407731b79eab16ceff64129552577d9cfcd0 | [
"Apache-2.0"
] | 4 | 2020-12-04T08:26:06.000Z | 2021-11-20T01:18:47.000Z | src/ufo/errors/ObsErrorDiagonal.cc | JCSDA/ufo | 69a6475f478306dd4d4f6728705fe0cd205752c7 | [
"Apache-2.0"
] | 21 | 2020-10-30T08:57:16.000Z | 2021-05-17T15:11:20.000Z | src/ufo/errors/ObsErrorDiagonal.cc | JCSDA/ufo | 69a6475f478306dd4d4f6728705fe0cd205752c7 | [
"Apache-2.0"
] | 8 | 2020-11-04T00:10:11.000Z | 2021-11-14T09:18:14.000Z | /*
* (C) Copyright 2021 UCAR.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
#include "ufo/errors/ObsErrorDiagonal.h"
#include "eckit/config/Configuration.h"
#include "oops/util/Logger.h"
namespace ufo {... | 31.123596 | 93 | 0.49639 | NOAA-EMC |
77e2b5a9c987a7edd44a04bd1e35c66914edc275 | 11,968 | cpp | C++ | src/modules/adc_readout/test/CircularBufferTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | 8 | 2017-12-02T09:20:26.000Z | 2022-03-28T08:17:40.000Z | src/modules/adc_readout/test/CircularBufferTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | 296 | 2017-10-24T09:06:10.000Z | 2022-03-31T07:31:06.000Z | src/modules/adc_readout/test/CircularBufferTest.cpp | geishm-ansto/event-formation-unit | bab9f211913ee9e633eae627ec2c2ed96ae380b4 | [
"BSD-2-Clause"
] | 8 | 2018-04-08T15:35:50.000Z | 2021-04-12T05:06:15.000Z | /** Copyright (C) 2018-2020 European Spallation Source ERIC */
/** @file
*
* \brief Unit tests.
*/
#include <adc_readout/CircularBuffer.h>
#include <chrono>
#include <gtest/gtest.h>
#include <random>
#include <thread>
#ifdef __linux__
#include <pthread.h>
#endif
using SpscBuffer::CircularBuffer;
using SpscBuffer... | 32.879121 | 102 | 0.697276 | geishm-ansto |
77e4dfad08f0efdffaa89ee51592d1c3d686193c | 284 | hpp | C++ | src/player/humanplayer.hpp | josselinauguste/pongo0 | cb5d1ed3fa4e7fbaf1eaf8b39e7a923a5bf44776 | [
"Unlicense"
] | null | null | null | src/player/humanplayer.hpp | josselinauguste/pongo0 | cb5d1ed3fa4e7fbaf1eaf8b39e7a923a5bf44776 | [
"Unlicense"
] | null | null | null | src/player/humanplayer.hpp | josselinauguste/pongo0 | cb5d1ed3fa4e7fbaf1eaf8b39e7a923a5bf44776 | [
"Unlicense"
] | null | null | null | #ifndef HUMANPLAYERH
#define HUMANPLAYERH
#include "localplayer.hpp"
class Game;
class CL_Vector;
class HumanPlayer : public LocalPlayer
{
public:
HumanPlayer(SIDE, float, float, float, std::string);
~HumanPlayer();
virtual void updateInfos(unsigned int);
private:
};
#endif
| 13.52381 | 53 | 0.753521 | josselinauguste |
77e977ce3e588d26445f889417c9df8fc705e9f3 | 1,783 | hpp | C++ | generator/ostei/OSTEI_HRR_Writer.hpp | colleeneb/simint-generator | 48125f29612c4a78a2d1493f717d82e4af095c59 | [
"BSD-3-Clause"
] | 20 | 2017-07-04T16:10:22.000Z | 2021-04-19T20:48:44.000Z | generator/ostei/OSTEI_HRR_Writer.hpp | colleeneb/simint-generator | 48125f29612c4a78a2d1493f717d82e4af095c59 | [
"BSD-3-Clause"
] | 9 | 2017-03-22T07:57:38.000Z | 2018-12-11T18:48:55.000Z | generator/ostei/OSTEI_HRR_Writer.hpp | colleeneb/simint-generator | 48125f29612c4a78a2d1493f717d82e4af095c59 | [
"BSD-3-Clause"
] | 8 | 2017-10-23T23:16:28.000Z | 2021-12-13T17:18:11.000Z | #pragma once
#include <iostream>
#include "generator/Types.hpp"
#include "generator/ostei/OSTEI_HRR_Algorithm_Base.hpp"
// foward declare
class OSTEI_GeneratorInfo;
class OSTEI_HRR_Writer
{
public:
OSTEI_HRR_Writer(const OSTEI_HRR_Algorithm_Base & hrr_algo, const OSTEI_GeneratorInfo & info,
... | 37.93617 | 119 | 0.668536 | colleeneb |
77ebaa1004035d2f75281fdad9cc6c67d19366c3 | 115,456 | cc | C++ | solutions/tflite_micro_speech_demo/micro_speech/micro_features/model.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 4,538 | 2017-10-20T05:19:03.000Z | 2022-03-30T02:29:30.000Z | solutions/tflite_micro_speech_demo/micro_speech/micro_features/model.cc | wstong999/AliOS-Things | 6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9 | [
"Apache-2.0"
] | 1,088 | 2017-10-21T07:57:22.000Z | 2022-03-31T08:15:49.000Z | solutions/tflite_micro_speech_demo/micro_speech/micro_features/model.cc | willianchanlovegithub/AliOS-Things | 637c0802cab667b872d3b97a121e18c66f256eab | [
"Apache-2.0"
] | 1,860 | 2017-10-20T05:22:35.000Z | 2022-03-27T10:54:14.000Z | unsigned char g_model[] = {
0x20, 0x00, 0x00, 0x00, 0x54, 0x46, 0x4c, 0x33, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x12, 0x00, 0x1c, 0x00, 0x04, 0x00, 0x08, 0x00, 0x0c, 0x00,
0x10, 0x00, 0x14, 0x00, 0x00, 0x00, 0x18, 0x00, 0x12, 0x00, 0x00, 0x00,
0x03, 0x00, 0x00, 0x00, 0x94, 0x48, 0x00, 0x00, 0x34, 0x42, 0x00, 0x... | 73.820972 | 73 | 0.64868 | wstong999 |
77ecc4013888764d65ec5df85e1859471df206e5 | 11,875 | hpp | C++ | include/ph_parser/lexer.hpp | phiwen96/ph_parser | c729f960867e0f2a233609cb61910ea692f66cab | [
"Apache-2.0"
] | null | null | null | include/ph_parser/lexer.hpp | phiwen96/ph_parser | c729f960867e0f2a233609cb61910ea692f66cab | [
"Apache-2.0"
] | null | null | null | include/ph_parser/lexer.hpp | phiwen96/ph_parser | c729f960867e0f2a233609cb61910ea692f66cab | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "token.hpp"
#include "expression.hpp"
#include <ph_coroutines/co_promise.hpp>
#include <ph_coroutines/i_was_co_awaited_and_now_i_am_suspending.hpp>
#include <experimental/coroutine>
#include <ph_vari/vari.hpp>
#include <ph_type/type.hpp>
using namespace std;
using namespace experimental;
//stru... | 25.815217 | 116 | 0.401347 | phiwen96 |
77f372ac14b1d224a343af75041505efcc94cd94 | 3,218 | hpp | C++ | modules/core/sdk/include/nt2/core/container/view/adapted/view_type.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/sdk/include/nt2/core/container/view/adapted/view_type.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | modules/core/sdk/include/nt2/core/container/view/adapted/view_type.hpp | psiha/nt2 | 5e829807f6b57b339ca1be918a6b60a2507c54d0 | [
"BSL-1.0"
] | null | null | null | //==============================================================================
// Copyright 2009 - 2014 LRI UMR 8623 CNRS/Univ Paris Sud XI
// Copyright 2012 - 2014 NumScale SAS
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LI... | 39.728395 | 80 | 0.474208 | psiha |
77f4bca4f1b99ff420c86966d20c7158ba9fce39 | 11,959 | cpp | C++ | BeatEmLeft-Engine/BeatEmLeft-Engine/Experimental/SimpleCollisions.cpp | hlimbo/BeatEmLeft | 9946c9a783fd4f74596b4fed071aac9246b9b195 | [
"MIT"
] | 1 | 2017-07-09T01:25:08.000Z | 2017-07-09T01:25:08.000Z | BeatEmLeft-Engine/BeatEmLeft-Engine/Experimental/SimpleCollisions.cpp | hlimbo/BeatEmLeft | 9946c9a783fd4f74596b4fed071aac9246b9b195 | [
"MIT"
] | null | null | null | BeatEmLeft-Engine/BeatEmLeft-Engine/Experimental/SimpleCollisions.cpp | hlimbo/BeatEmLeft | 9946c9a783fd4f74596b4fed071aac9246b9b195 | [
"MIT"
] | null | null | null | //don't use this class for demo purposes ~ unstable
#include <SDL2/SDL.h>
#include <stdio.h>
#include <iostream>
#include <string>
#include <Vect2.h>
#include "../MasterHeader.h"
using namespace std;
//use this function to check if a coordinate is between minCoordinate and maxCoordinate
bool isOnLi... | 32.147849 | 114 | 0.635839 | hlimbo |
af80aab144d6ba161863e0dbc8e057ea6490d296 | 15,181 | cpp | C++ | NoiseStudioLib/NoiseStudioLib/graph.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | NoiseStudioLib/NoiseStudioLib/graph.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | NoiseStudioLib/NoiseStudioLib/graph.cpp | SneakyMax/NoiseStudio | b0c3c72e787d61b798acbcd2147f36e1e78f5bad | [
"Unlicense"
] | null | null | null | #include "graph.h"
#include "utils.h"
#include "nodes/uniform_buffer.h"
#include "nodes/attribute_buffer.h"
#include "graph_executor.h"
namespace noises
{
Graph::Graph() : id_counter_(0), in_refresh_after_(false) { }
int Graph::add_node(std::unique_ptr<GraphNode> node)
{
node->set_id(i... | 35.804245 | 179 | 0.629076 | SneakyMax |
af8298d3a8c37579869744b2b6fd1ba841272338 | 2,088 | hpp | C++ | third_party/omr/fvtest/tril/tril/simple_compiler.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/tril/tril/simple_compiler.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | third_party/omr/fvtest/tril/tril/simple_compiler.hpp | xiacijie/omr-wala-linkage | a1aff7aef9ed131a45555451abde4615a04412c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2017, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... | 37.285714 | 135 | 0.653736 | xiacijie |
af851b92b196bf4d45a65216b26b8042299543c8 | 816 | hxx | C++ | src/liuyao/Liuqin.hxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | 1 | 2021-11-19T09:17:49.000Z | 2021-11-19T09:17:49.000Z | src/liuyao/Liuqin.hxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | null | null | null | src/liuyao/Liuqin.hxx | adrianx77/liuyao | c9f3f84afec3badeed55b2cf58478f3b13c2df7d | [
"Apache-2.0"
] | null | null | null | #ifndef _LIUQIN_HXX_
#define _LIUQIN_HXX_
#include "../najia/TianganDizhi.hxx"
#define LIUQIN_XIONGDI "兄弟"
#define LIUQIN_FUMU "父母"
#define LIUQIN_GUANGUI "官鬼"
#define LIUQIN_QICAI "妻财"
#define LIUQIN_ZISUN "子孙"
namespace Zhouyi{
typedef enum{
LQID_XIONGDI,
LQID_FUMU,
LQID_GUANGUI,
LQ... | 19.428571 | 52 | 0.672794 | adrianx77 |
af86ca4059d46eabc3c409f79b3b7e1703633161 | 1,498 | hpp | C++ | libs/python/include/python/service/py_feed_subscription_manager.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 3 | 2019-07-11T08:49:27.000Z | 2021-09-07T16:49:15.000Z | libs/python/include/python/service/py_feed_subscription_manager.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | null | null | null | libs/python/include/python/service/py_feed_subscription_manager.hpp | devjsc/ledger-1 | 2aa68e05b9f9c10a9971fc8ddf4848695511af3c | [
"Apache-2.0"
] | 2 | 2019-07-13T12:45:22.000Z | 2021-03-12T08:48:57.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI 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 Licen... | 37.45 | 80 | 0.640854 | devjsc |
af890ec0449b5471cb3348d5f94b767366ba5dee | 19,688 | cpp | C++ | src/input.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | src/input.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | src/input.cpp | LiamTyler/LTEngine | b1697a63546516debfeb4f32e888484e37cd5e06 | [
"MIT"
] | null | null | null | #include "include/input.h"
Input::Input() {
}
bool Input::HandleInput() {
memset(pressed_, false, sizeof(pressed_));
memset(released_, false, sizeof(released_));
mouse.Update();
mouseEvent_ = false;
SDL_Event event;
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) {
... | 33.770154 | 72 | 0.353515 | LiamTyler |
af8a02303398d3927b135864e03492be0f564544 | 503 | cpp | C++ | game/src/component/player_paddle.cpp | IsmailSamir/BreakOut-Game | b2ddc413a39cfd677d585f2d9968262a53b2165d | [
"BSD-3-Clause"
] | null | null | null | game/src/component/player_paddle.cpp | IsmailSamir/BreakOut-Game | b2ddc413a39cfd677d585f2d9968262a53b2165d | [
"BSD-3-Clause"
] | null | null | null | game/src/component/player_paddle.cpp | IsmailSamir/BreakOut-Game | b2ddc413a39cfd677d585f2d9968262a53b2165d | [
"BSD-3-Clause"
] | null | null | null | #include "component/player_paddle.h"
using namespace glm;
namespace bko
{
Player_Paddle
player_paddle_new(const Texture& texture, const vec2& position, const vec2& size, const vec2& velocity)
{
Player_Paddle self{};
self.sprite.texture = texture;
self.sprite.color = vec3{ 1.0f, 1.0f , 1.0f };
self.sprite.... | 19.346154 | 104 | 0.719682 | IsmailSamir |
af8c5b76acd26c8cd35d5aba0cacac3e19013dcc | 776 | cpp | C++ | PressureEngineCore/Src/Graphics/PostProcessing/Contrast/ContrastShader.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2017-09-13T13:29:27.000Z | 2017-09-13T13:29:27.000Z | PressureEngineCore/Src/Graphics/PostProcessing/Contrast/ContrastShader.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | null | null | null | PressureEngineCore/Src/Graphics/PostProcessing/Contrast/ContrastShader.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2019-01-18T07:16:59.000Z | 2019-01-18T07:16:59.000Z | #include "ContrastShader.h"
namespace Pressure {
const std::string ContrastShader::s_VertexShader =
R"(#version 140
in vec2 position;
out vec2 textureCoords;
void main(void) {
gl_Position = vec4(position, 0.0, 1.0);
textureCoords = position * 0.5 + 0.5;
})";
const std::string ContrastShader::s_FragmentShad... | 17.244444 | 64 | 0.715206 | Playturbo |
af8ecfffc96391390d14fcced63f2f43fb0677d7 | 22,128 | cpp | C++ | csapex_point_cloud/src/visualization/cloud_renderer_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 2 | 2016-09-02T15:33:22.000Z | 2019-05-06T22:09:33.000Z | csapex_point_cloud/src/visualization/cloud_renderer_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 1 | 2021-02-14T19:53:30.000Z | 2021-02-14T19:53:30.000Z | csapex_point_cloud/src/visualization/cloud_renderer_adapter.cpp | AdrianZw/csapex_core_plugins | 1b23c90af7e552c3fc37c7dda589d751d2aae97f | [
"BSD-3-Clause"
] | 6 | 2016-10-12T00:55:23.000Z | 2021-02-10T17:49:25.000Z | /// HEADER
#include "cloud_renderer_adapter.h"
/// PROJECT
#include <csapex/model/node_facade_impl.h>
#include <csapex/msg/io.h>
#include <csapex/param/set_parameter.h>
#include <csapex/view/utility/register_node_adapter.h>
#include <csapex_point_cloud/msg/point_cloud_message.h>
/// SYSTEM
#include <QtOpenGL>
#includ... | 26.596154 | 154 | 0.59906 | AdrianZw |
af8ed14c28407ef5fee4a1d02e840d3173a2eecf | 28,605 | cpp | C++ | Source/Graphics/GteShader.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Source/Graphics/GteShader.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | Source/Graphics/GteShader.cpp | vehsakul/gtl | 498bb20947e9ff21c08dd5a884ac3dc6f8313bb9 | [
"BSL-1.0"
] | null | null | null | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2016
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#include <GTEnginePCH.h>
#include <Graph... | 33.184455 | 113 | 0.581052 | vehsakul |
af9082c4e6380860e6a757d2c870757944d6b64e | 249 | cpp | C++ | Course 202002/C++/Shape/circle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202002/C++/Shape/circle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | Course 202002/C++/Shape/circle.cpp | Seizzzz/DailyCodes | 9a617fb64ee27b9f254be161850e9c9a61747cb1 | [
"MIT"
] | null | null | null | #include "circle.h"
bool Circle::judgeIntersect(const Circle& otr)
{
double dis = centre.getDistance(otr.centre);
if (dis < radius + otr.radius) return true;
return false;
}
double Circle::getAreaSize()
{
return radius * radius * acos(-1);
}
| 16.6 | 46 | 0.698795 | Seizzzz |
af92ba64bf987314be460edd4105fbcc5697144a | 22,195 | cpp | C++ | extlibs/miniFlowVR/src/librender/mesh_io_obj.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | extlibs/miniFlowVR/src/librender/mesh_io_obj.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | extlibs/miniFlowVR/src/librender/mesh_io_obj.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******* COPYRIGHT ************************************************
* *
* FlowVR Render *
* Parallel Rendering Modules *
* ... | 26.20425 | 265 | 0.503672 | sofa-framework |
af92c6b864d1d5a23b6d0b66c006dbfb2017bac7 | 800 | cpp | C++ | app/editor/editor_app.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | 5 | 2017-12-28T08:22:20.000Z | 2022-03-30T01:26:17.000Z | app/editor/editor_app.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | null | null | null | app/editor/editor_app.cpp | walkinsky8/nana-runner | 103992e07e7e644d349437fdf959364ffe9cb653 | [
"BSL-1.0"
] | null | null | null | /**
* Runa C++ Library
* Copyright (c) 2017-2019 walkinsky:lyh6188(at)hotmail(dot)com
*
* 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)
*/
// Created on 2018/11/09
#include "stdafx.h"
#include "editor_app.h"
using... | 17.777778 | 62 | 0.61875 | walkinsky8 |
af980276f44f4250fc4a513282b4e4d59875bb6a | 7,504 | cpp | C++ | triangle/main.cpp | amecky/ds_sandbox | f31e69f72a76c40aeb0fa3e3fbe9b651660df770 | [
"MIT"
] | 1 | 2017-09-28T19:41:04.000Z | 2017-09-28T19:41:04.000Z | triangle/main.cpp | amecky/ds_sandbox | f31e69f72a76c40aeb0fa3e3fbe9b651660df770 | [
"MIT"
] | null | null | null | triangle/main.cpp | amecky/ds_sandbox | f31e69f72a76c40aeb0fa3e3fbe9b651660df770 | [
"MIT"
] | null | null | null | #define DS_IMPLEMENTATION
#define DS_MATH_IMPLEMENTATION
#include <diesel.h>
#include "Triangle_VS_Main.h"
#include "Triangle_PS_Main.h"
#include "Camera.h"
static const ds::Color COLORS[] = {
ds::Color(255,0,0,255),
ds::Color(0,255,0,255),
ds::Color(255,255,0,255),
ds::Color(0,0,255,255),
ds::Color(32,32,32,255)... | 29.3125 | 155 | 0.600213 | amecky |
af996685901d480ecac762916235176f4aaed8c7 | 301 | hpp | C++ | examples/send_inline/include/send_inline.hpp | nathanielhourt/eosio.cdt | 798162d323680fa6d4691bcea7928729213c7172 | [
"MIT"
] | 476 | 2018-09-07T01:27:11.000Z | 2022-03-21T05:16:50.000Z | examples/send_inline/include/send_inline.hpp | eosio-cmd/eosio.cdt | ac7161e702856711503933a8631d3005a55e0b98 | [
"MIT"
] | 594 | 2018-09-06T02:03:01.000Z | 2022-03-23T19:18:26.000Z | examples/send_inline/include/send_inline.hpp | eosio-cmd/eosio.cdt | ac7161e702856711503933a8631d3005a55e0b98 | [
"MIT"
] | 349 | 2018-09-06T05:02:09.000Z | 2022-03-12T11:07:17.000Z | #include <eosio/eosio.hpp>
using namespace eosio;
class [[eosio::contract]] send_inline : public contract {
public:
using contract::contract;
[[eosio::action]]
void test( name user, name inline_code );
using test_action = action_wrapper<"test"_n, &send_inline::test>;
};
| 23.153846 | 71 | 0.671096 | nathanielhourt |
af997b1c0250dd6daf582b90502b71c0a288bbe3 | 230 | hpp | C++ | src/entity.hpp | WesOfX/block-game | 0f52a7668cade1481a3beb659885462274dc9369 | [
"MIT"
] | null | null | null | src/entity.hpp | WesOfX/block-game | 0f52a7668cade1481a3beb659885462274dc9369 | [
"MIT"
] | null | null | null | src/entity.hpp | WesOfX/block-game | 0f52a7668cade1481a3beb659885462274dc9369 | [
"MIT"
] | null | null | null | #pragma once
#include "vec3.hpp"
struct entity{
typedef vec3<float> position_type;
position_type position, velocity;
void move(const position_type& offset);
void accelerate(const position_type& amount);
void update();
};
| 17.692308 | 46 | 0.756522 | WesOfX |
af9b9097e1c293e81052ffd85b56171a4b8015bb | 161 | hpp | C++ | src/left09.hpp | nghiaho12/OpenCV_camera_in_OpenGL | bce72d57fdb21b44671be826d61bc2b7c1e3210c | [
"BSD-2-Clause"
] | 4 | 2021-03-04T20:52:07.000Z | 2022-03-26T05:49:54.000Z | src/left09.hpp | nghiaho12/OpenCV_camera_in_OpenGL | bce72d57fdb21b44671be826d61bc2b7c1e3210c | [
"BSD-2-Clause"
] | null | null | null | src/left09.hpp | nghiaho12/OpenCV_camera_in_OpenGL | bce72d57fdb21b44671be826d61bc2b7c1e3210c | [
"BSD-2-Clause"
] | 3 | 2021-01-04T11:18:29.000Z | 2021-08-04T03:29:36.000Z | #pragma once
// left09.jpg from OpenCV sample directory converted to raw char array
int left09_width();
int left09_height();
const unsigned char *left09_data(); | 26.833333 | 70 | 0.782609 | nghiaho12 |
af9ff4a5b82392bbada2faf07045d0043c8cf74f | 5,355 | cpp | C++ | VC2015Samples/Hilo/C++/Common/source/WindowLayout.cpp | alonmm/VCSamples | 6aff0b4902f5027164d593540fcaa6601a0407c3 | [
"MIT"
] | 300 | 2019-05-09T05:32:33.000Z | 2022-03-31T20:23:24.000Z | VC2015Samples/Hilo/C++/Common/source/WindowLayout.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 9 | 2016-09-19T18:44:26.000Z | 2018-10-26T10:20:05.000Z | VC2015Samples/Hilo/C++/Common/source/WindowLayout.cpp | JaydenChou/VCSamples | 9e1d4475555b76a17a3568369867f1d7b6cc6126 | [
"MIT"
] | 633 | 2019-05-08T07:34:12.000Z | 2022-03-30T04:38:28.000Z | //===================================================================================
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// THIS CODE AND INFORMATION IS PROVIDED 'AS IS' WITHOUT WARRA... | 25.869565 | 118 | 0.588609 | alonmm |
afa03a142d245a57c4963fd03c8a7117d116f404 | 9,084 | cpp | C++ | Source/Engine/Core/RHI/D3D12/D3D12DescriptorHeap.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | 1 | 2022-01-13T16:32:40.000Z | 2022-01-13T16:32:40.000Z | Source/Engine/Core/RHI/D3D12/D3D12DescriptorHeap.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | null | null | null | Source/Engine/Core/RHI/D3D12/D3D12DescriptorHeap.cpp | flygod1159/Kaguya | 47dbb3940110ed490d0b70eed31383cfc82bc8df | [
"MIT"
] | null | null | null | #include "D3D12DescriptorHeap.h"
#include "D3D12LinkedDevice.h"
D3D12DescriptorHeap::D3D12DescriptorHeap(
D3D12LinkedDevice* Parent,
D3D12_DESCRIPTOR_HEAP_TYPE Type,
UINT NumDescriptors)
: D3D12LinkedDeviceChild(Parent)
, DescriptorHeap(InitializeDescriptorHeap(Type, NumDescriptors))
, Desc(Descriptor... | 31.003413 | 127 | 0.753853 | flygod1159 |
afa190c8dd26326b593ca248739b5016b5e882c9 | 10,706 | cpp | C++ | src/testindex.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/testindex.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | null | null | null | src/testindex.cpp | maciejwlodek/blend | 00c892363876692c5370def0e37a106ad5f7b07e | [
"BSD-3-Clause"
] | 1 | 2019-01-24T16:14:56.000Z | 2019-01-24T16:14:56.000Z | // testindex.cpp
#include "pointless.hh"
#include "testindex.hh"
#include "normalise.hh"
#include "normaliseunmerge.hh"
#include "average.hh"
#include "getCCsigfac.hh"
namespace scala {
//--------------------------------------------------------------
std::vector<ReindexScore> TestIndexUnmerged
(hkl_merged_list... | 36.047138 | 114 | 0.638427 | maciejwlodek |
afa3e64881e92582dcce6188d48628d138164931 | 2,945 | cpp | C++ | scanner/engine/column_enumerator.cpp | keunhong/scanner | d6439d18b2a363f3cd5e34e12d416bd1e97449fa | [
"Apache-2.0"
] | 618 | 2017-02-15T02:49:25.000Z | 2022-03-26T13:22:08.000Z | scanner/engine/column_enumerator.cpp | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | 258 | 2017-02-14T23:37:35.000Z | 2020-01-17T07:50:30.000Z | scanner/engine/column_enumerator.cpp | quanhua92/scanner | e14153c18078f707fe1b487c0cffb95d6997d737 | [
"Apache-2.0"
] | 108 | 2017-02-23T01:43:33.000Z | 2022-03-23T02:44:10.000Z | /* Copyright 2018 Carnegie Mellon University
*
* 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 o... | 30.05102 | 76 | 0.714092 | keunhong |
afa772fc655de69018587f4def84575c1b18484a | 19,864 | cpp | C++ | third_party/gst-plugins-bad/ext/opencv/MotionCells.cpp | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 6 | 2020-09-22T18:07:15.000Z | 2021-10-21T01:34:04.000Z | third_party/gst-plugins-bad/ext/opencv/MotionCells.cpp | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 2 | 2020-11-10T13:17:39.000Z | 2022-03-30T11:22:14.000Z | third_party/gst-plugins-bad/ext/opencv/MotionCells.cpp | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 3 | 2020-09-26T08:40:35.000Z | 2021-10-21T01:33:56.000Z | /*
* GStreamer
* Copyright (C) 2011 Robert Jobbagy <jobbagy.robert@gmail.com>
* Copyright (C) 2011 - 2018 Nicola Murino <nicola.murino@gmail.com>
*
* 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 t... | 36.581952 | 158 | 0.647352 | isabella232 |
afaee8716123bfc54d496c4999db57418c7dea4c | 3,137 | cpp | C++ | Source/managementBS.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | 1 | 2016-04-28T06:24:15.000Z | 2016-04-28T06:24:15.000Z | Source/managementBS.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | null | null | null | Source/managementBS.cpp | L0mion/Makes-a-Click | c7f53a53ea3a58da027ea5f00176352edb914718 | [
"MIT"
] | null | null | null | #include "managementBS.h"
#include "utility.h"
ManagementBS::ManagementBS()
{
for( int bsIdx=0; bsIdx<BSTypes_CNT; bsIdx++ ) {
m_blendStates[bsIdx] = NULL;
}
}
ManagementBS::~ManagementBS()
{
for( int bsIdx=0; bsIdx<BSTypes_CNT; bsIdx++ ) {
SAFE_RELEASE( m_blendStates[bsIdx] );
}
}
void ManagementBS::setBle... | 30.163462 | 145 | 0.768569 | L0mion |
afb099f57cd2be83f6b9d147a38492a729f9a1d6 | 464 | hpp | C++ | src/neo/sqlite3/blob.hpp | vector-of-bool/neo-sqlite3 | 149b762f983126e26502a9625659706eab0dcc25 | [
"BSL-1.0"
] | 4 | 2019-11-13T09:11:03.000Z | 2022-03-11T01:00:45.000Z | src/neo/sqlite3/blob.hpp | vector-of-bool/neo-sqlite3 | 149b762f983126e26502a9625659706eab0dcc25 | [
"BSL-1.0"
] | null | null | null | src/neo/sqlite3/blob.hpp | vector-of-bool/neo-sqlite3 | 149b762f983126e26502a9625659706eab0dcc25 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <utility>
namespace neo::sqlite3 {
class connection;
class blob {
friend class connection_ref;
void* _ptr = nullptr;
struct from_raw {};
blob(from_raw, void* ptr)
: _ptr(ptr) {}
public:
~blob();
blob(blob&& o)
: _ptr(std::exchange(o._ptr, nullptr)) {... | 16 | 49 | 0.584052 | vector-of-bool |
afb65b2f7cf6ceb50ce34e77ed2aa092768ea9ac | 45,434 | cpp | C++ | src/Compiler.cpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | 1 | 2018-07-07T21:16:00.000Z | 2018-07-07T21:16:00.000Z | src/Compiler.cpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | 1 | 2018-07-07T17:14:58.000Z | 2018-07-08T18:17:14.000Z | src/Compiler.cpp | mita4829/Pine | 0269d466eaf3b228745def5cec7796d257aa90a1 | [
"MIT"
] | null | null | null | #include "Compiler.hpp"
CompilerResult EmptyResult;
string requestTmpVarName(){
LOG("Compiler:requestTmpVarName");
static Int32 id = -1;
id += 1;
return "var" + to_string(id);
}
Int32 align32ByteStack(Int32 varCount){
const Int32 ALIGNMENT = 32;
Int32 byteCount = varCount * ARCH64;
Int... | 34.263952 | 105 | 0.521438 | mita4829 |
afb94d3dc804b45e935b4da02d4b083d7dbd9371 | 11,206 | cpp | C++ | src/shape_extraction.cpp | jstnhuang/surface_perception | b7fcb2f5355a32616c1bffd6c7b157a9811aac80 | [
"BSD-3-Clause"
] | 1 | 2021-07-26T09:23:58.000Z | 2021-07-26T09:23:58.000Z | src/shape_extraction.cpp | jstnhuang/surface_perception | b7fcb2f5355a32616c1bffd6c7b157a9811aac80 | [
"BSD-3-Clause"
] | 10 | 2017-10-17T02:35:17.000Z | 2020-11-25T10:26:43.000Z | src/shape_extraction.cpp | jstnhuang/surface_perception | b7fcb2f5355a32616c1bffd6c7b157a9811aac80 | [
"BSD-3-Clause"
] | 2 | 2019-03-25T21:59:18.000Z | 2019-06-18T22:19:49.000Z | #include "surface_perception/shape_extraction.h"
#include <limits.h>
#include "Eigen/Eigen"
#include "geometry_msgs/Pose.h"
#include "geometry_msgs/Vector3.h"
#include "pcl/ModelCoefficients.h"
#include "pcl/filters/project_inliers.h"
#include "pcl/point_cloud.h"
#include "pcl/point_types.h"
#include "pcl/surface/con... | 34.164634 | 80 | 0.656523 | jstnhuang |
afba28db80716d54652e33545d25b1b91e6b5dd7 | 1,789 | hpp | C++ | include/uri/uri.hpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | include/uri/uri.hpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | include/uri/uri.hpp | ledocc/uri | 0767d923f7d1690e495ddca8a84352746b572904 | [
"BSL-1.0"
] | null | null | null | #ifndef uri__uri_hpp
#define uri__uri_hpp
#include <uri/basic_uri.hpp>
#include <uri/parsers/rules/uri/fragment.hpp>
#include <uri/parsers/rules/uri/host.hpp>
#include <uri/parsers/rules/uri/path.hpp>
#include <uri/parsers/rules/uri/port.hpp>
#include <uri/parsers/rules/uri/query.hpp>
#include <uri/parsers/rules/uri... | 35.78 | 96 | 0.618781 | ledocc |
afbad93be7334b61e37a15c16d63fecb541a6b9a | 442 | cpp | C++ | displayOverload.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | displayOverload.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | displayOverload.cpp | compliment/cpp-tasks | 31c5771e97c319860a1b546c68d92601b77e0223 | [
"Unlicense"
] | null | null | null | #include<iostream>
using namespace std;
template <class T>
void display(const T & a)
{
cout << a << endl;
}
template <class T>
void display(const T & a, const int n) //overloaded version of display()
{
int ctr;
for(ctr=0;ctr<n;ctr++)
cout << a << endl;
}
int main()
{
char c = 'a';
int i = 10... | 14.733333 | 73 | 0.574661 | compliment |
afbc2ef61a4b497e5df29072040c063da372b403 | 822 | cpp | C++ | Armstrong.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 41 | 2021-10-03T16:03:52.000Z | 2021-11-14T18:15:33.000Z | Armstrong.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 175 | 2021-10-03T10:47:31.000Z | 2021-10-20T11:55:32.000Z | Armstrong.cpp | rj011/Hacktoberfest2021-4 | 0aa981d4ba5e71c86cc162d34fe57814050064c2 | [
"MIT"
] | 208 | 2021-10-03T11:24:04.000Z | 2021-10-31T17:27:59.000Z | /* PROGRAM AUTHOR : SAYANTAN BOSE
PROGRAM DETAILS : Armstrong number is a number that is equal to the sum of cubes of its digits. For example 0, 1, 153, 370, 371 and 407 are the Armstrong numbers.
*/
#include <iostream>
using namespace std;
int main() {
int num, originalNum, remainder, result = 0;
cout <<... | 28.344828 | 166 | 0.603406 | rj011 |
afc7d73c50c66c6be85300345be71330b6eda4ef | 1,207 | cpp | C++ | src/parsing/mSetParser.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 4 | 2018-08-31T09:44:52.000Z | 2021-03-01T19:10:00.000Z | src/parsing/mSetParser.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | 21 | 2019-12-29T08:33:34.000Z | 2020-11-22T16:38:37.000Z | src/parsing/mSetParser.cpp | athanor/athanor | 0e7a654c360be05dc6f6e50427b2ee3df92c1aaf | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include "parsing/parserCommon.h"
#include "types/mSetVal.h"
using namespace std;
using namespace lib;
using namespace nlohmann;
shared_ptr<MSetDomain> parseDomainMSet(json& mSetDomainExpr,
ParsedModel& parsedModel) {
SizeAttr sizeAttr = parseSizeAttr(mSet... | 40.233333 | 80 | 0.657829 | athanor |
afc905b5297e448af82a5d178b859e06f0b62cdb | 15,880 | cc | C++ | fsa-1.15.6/src/seq/sequence.cc | ma-compbio/PSAR-Align | ac2a491e5583843b934814d9f2d1227e3da067eb | [
"MIT"
] | null | null | null | fsa-1.15.6/src/seq/sequence.cc | ma-compbio/PSAR-Align | ac2a491e5583843b934814d9f2d1227e3da067eb | [
"MIT"
] | null | null | null | fsa-1.15.6/src/seq/sequence.cc | ma-compbio/PSAR-Align | ac2a491e5583843b934814d9f2d1227e3da067eb | [
"MIT"
] | null | null | null |
/**
* \file sequence.cc
* This file is part of FSA.
* \author Source code in this file was written by Robert Bradley.
*/
#include <algorithm>
#include "util/regexp.h"
#include "math/mathematics.h"
#include "seq/sequence.h"
using namespace fsa;
const std::string Sequence::fasta_seq_start = ">";
// Mapping from... | 27.006803 | 136 | 0.622292 | ma-compbio |
afc91090961c3bef164251d716eb7aad1da465a2 | 1,246 | cc | C++ | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree/0236.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree/0236.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null | 0236_Lowest_Common_Ancestor_of_a_Binary_Tree/0236.cc | LuciusKyle/LeetCode | 66c9090e5244b10eca0be50398764da2b4b48a6c | [
"Apache-2.0"
] | null | null | null |
#include <set>
#include <vector>
using std::vector;
using std::set;
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode* left;
TreeNode* right;
TreeNode(int x) : val(x), left(nullptr), right(nullptr) {}
};
class Solution {
public:
TreeNode* lowestCommonAncestor(TreeNode* root, TreeN... | 27.688889 | 135 | 0.666934 | LuciusKyle |
afcfee485a254d48f6d3bc3cee8c58e573af849b | 7,188 | cc | C++ | src/cmapfile.cc | h20y6m/HaranoAjiFonts-generator | a8f15232154201635ab38b454056af15b6c515c8 | [
"BSD-2-Clause"
] | 7 | 2019-03-04T03:16:49.000Z | 2022-02-26T08:02:12.000Z | src/cmapfile.cc | h20y6m/HaranoAjiFonts-generator | a8f15232154201635ab38b454056af15b6c515c8 | [
"BSD-2-Clause"
] | 3 | 2020-02-09T08:19:56.000Z | 2020-04-15T15:31:55.000Z | src/cmapfile.cc | h20y6m/HaranoAjiFonts-generator | a8f15232154201635ab38b454056af15b6c515c8 | [
"BSD-2-Clause"
] | 3 | 2019-04-16T11:17:10.000Z | 2020-02-18T03:55:46.000Z | //
// Harano Aji Fonts generator
// https://github.com/trueroad/HaranoAjiFonts-generator
//
// cmapfile.cc:
// read CMap file (UTF-32 to pre-defined CID) and create map
//
// Copyright (C) 2019, 2020 Masamichi Hosoda.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// ... | 26.043478 | 78 | 0.570534 | h20y6m |
afd005abc339d89edfa6749a035e0d477df3ffa2 | 1,262 | cpp | C++ | Source Code/AI/ActionInterface/AIProcessor.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 9 | 2018-05-02T19:53:41.000Z | 2021-10-18T18:30:47.000Z | Source Code/AI/ActionInterface/AIProcessor.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 7 | 2018-02-01T12:16:43.000Z | 2019-10-21T14:03:43.000Z | Source Code/AI/ActionInterface/AIProcessor.cpp | IonutCava/trunk | 19dc976bbd7dc637f467785bd0ca15f34bc31ed5 | [
"MIT"
] | 1 | 2020-09-08T03:28:22.000Z | 2020-09-08T03:28:22.000Z | #include "stdafx.h"
#include "Headers/AIProcessor.h"
#include "AI/Headers/AIManager.h"
namespace Divide::AI {
AIProcessor::AIProcessor(AIManager& parentManager)
: _entity(nullptr),
_parentManager(parentManager),
_currentStep(-1),
_activeGoal(nullptr)
{
_init = false;
}
AI... | 22.535714 | 80 | 0.656101 | IonutCava |
afd24d7882b448e2b83c8586a9326b17946fec5c | 7,187 | cpp | C++ | Robocup/Thread/Brain.cpp | MaximV88/RoboCup | 7066f3f1370145cf0a7bad06a7774716cb0b4573 | [
"MIT"
] | null | null | null | Robocup/Thread/Brain.cpp | MaximV88/RoboCup | 7066f3f1370145cf0a7bad06a7774716cb0b4573 | [
"MIT"
] | null | null | null | Robocup/Thread/Brain.cpp | MaximV88/RoboCup | 7066f3f1370145cf0a7bad06a7774716cb0b4573 | [
"MIT"
] | null | null | null | //
// Brain.cpp
// Ex3
//
// Created by Maxim Vainshtein on 1/9/15.
// Copyright (c) 2015 Maxim Vainshtein. All rights reserved.
//
#include "Brain.h"
#include "Player.h"
#include "BehaviorTree.h"
//How many updates required to continue on Wait command
#define WAIT_UPDATES 2
#define DEBUG_PRINT_EXECUTION_IND... | 26.817164 | 105 | 0.581606 | MaximV88 |
afdec9682e913ea9d7f6e66027d6adb41bf38a08 | 1,128 | cpp | C++ | codes/UVA/00001-00999/uva586.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva586.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/UVA/00001-00999/uva586.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
const int maxn = 105;
int a[maxn];
char order[maxn];
void dfs (int n, int k) {
int op = 0, x;
while (scanf("%s", order) == 1 && strcmp(order, "END") ) {
if (strcmp(order, "LOOP") == 0) {
scanf("%s", order);
if (strcmp(order, "... | 14.842105 | 59 | 0.468972 | JeraKrs |
afe10a46b3633fa95639a88b4475ffe7579c6b0e | 2,864 | cpp | C++ | examples/comparison_main.cpp | marzer/type_list | ea173437eb53b8aeda59219eb11c7eb9a5a4b52f | [
"MIT"
] | 5 | 2021-06-01T10:15:36.000Z | 2022-01-26T10:15:43.000Z | examples/comparison_main.cpp | marzer/type_list | ea173437eb53b8aeda59219eb11c7eb9a5a4b52f | [
"MIT"
] | null | null | null | examples/comparison_main.cpp | marzer/type_list | ea173437eb53b8aeda59219eb11c7eb9a5a4b52f | [
"MIT"
] | null | null | null | // This file is a part of marzer/type_list and is subject to the the terms of the MIT license.
// Copyright (c) Mark Gillard <mark.gillard@outlook.com.au>
// See https://github.com/marzer/type_list/blob/master/LICENSE for the full license text.
// SPDX-License-Identifier: MIT
// this was the test code used in the 'Com... | 28.078431 | 94 | 0.702165 | marzer |
afe25f13ca902b8d0a5ee01c0e84f162fd892283 | 1,223 | cpp | C++ | Classes/Sprite/Harvey/HarveyAnimation.cpp | bunny1985/cocos2dxSnipests | 26cac1ee40035b34737c9913ba07b04c248aee43 | [
"MIT"
] | null | null | null | Classes/Sprite/Harvey/HarveyAnimation.cpp | bunny1985/cocos2dxSnipests | 26cac1ee40035b34737c9913ba07b04c248aee43 | [
"MIT"
] | null | null | null | Classes/Sprite/Harvey/HarveyAnimation.cpp | bunny1985/cocos2dxSnipests | 26cac1ee40035b34737c9913ba07b04c248aee43 | [
"MIT"
] | null | null | null | /*
* HarveyAnimation.cpp
*
* Created on: 01.12.2016
* Author: michal
*/
#include "HarveyAnimation.h"
HarveyAnimation::HarveyAnimation() : Animate(){
// TODO Auto-generated constructor stub
}
HarveyAnimation::~HarveyAnimation() {
// TODO Auto-generated destructor stub
}
HarveyAnimation* HarveyAnimati... | 23.519231 | 122 | 0.691742 | bunny1985 |
afe5dd7662ac5a986609d9553cde0cb521c962f0 | 1,171 | cpp | C++ | src/planning/RrtNode.cpp | brychanrobot/orrt-star-ros | f3dd3f2e973229fe179c785ea464e5f751f6c2a5 | [
"MIT"
] | 3 | 2017-10-19T07:32:36.000Z | 2018-11-10T14:03:25.000Z | src/planning/RrtNode.cpp | brychanrobot/orrt-star-ros | f3dd3f2e973229fe179c785ea464e5f751f6c2a5 | [
"MIT"
] | null | null | null | src/planning/RrtNode.cpp | brychanrobot/orrt-star-ros | f3dd3f2e973229fe179c785ea464e5f751f6c2a5 | [
"MIT"
] | 1 | 2019-12-09T13:27:49.000Z | 2019-12-09T13:27:49.000Z | #include "RrtNode.hpp"
using namespace std;
RrtNode::RrtNode(Coord coord, shared_ptr<RrtNode> parent, double cumulativeCost) : Node(coord, parent) { this->cumulativeCost = cumulativeCost; }
bool RrtNode::operator<(shared_ptr<RrtNode> rhs) { return this->heuristic < rhs->heuristic; }
void RrtNode::addChild(shared_pt... | 35.484848 | 145 | 0.766866 | brychanrobot |
afe751cff19415f82b13f363694fd4c33df6dc7b | 1,367 | cpp | C++ | aws-cpp-sdk-wellarchitected/source/model/ListLensSharesResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-wellarchitected/source/model/ListLensSharesResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-wellarchitected/source/model/ListLensSharesResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wellarchitected/model/ListLensSharesResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#includ... | 27.34 | 138 | 0.769568 | perfectrecall |
afe780183b01514917bd117c7f56fc56b11f1f96 | 446 | cpp | C++ | test/Math/FFT/fft_test.cpp | YanagiAyame/AlgorithmLibrary | 2769c41e0e51218072f78772d1f11a92465838e4 | [
"Unlicense"
] | null | null | null | test/Math/FFT/fft_test.cpp | YanagiAyame/AlgorithmLibrary | 2769c41e0e51218072f78772d1f11a92465838e4 | [
"Unlicense"
] | null | null | null | test/Math/FFT/fft_test.cpp | YanagiAyame/AlgorithmLibrary | 2769c41e0e51218072f78772d1f11a92465838e4 | [
"Unlicense"
] | 1 | 2020-02-09T17:22:04.000Z | 2020-02-09T17:22:04.000Z | #define PROBLEM "https://atcoder.jp/contests/atc001/tasks/fft_c"
#include <src/Math/FFT/fft.hpp>
#include <complex>
#include <iostream>
#include <vector>
int main()
{
int n;
std::cin >> n;
std::vector<std::complex<double>> v(n + 1), w(n + 1);
for (int i = 1; i <= n; ++i)
{
std::cin >> v[i] >> w[i];
}
auto an... | 20.272727 | 64 | 0.560538 | YanagiAyame |
afeb4311d72bf36bc4a8e7a638fe641ecb85c46d | 77 | hpp | C++ | Firmware/firmware_tests/stubs/interfaces/spi/mocked_spi.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 39 | 2019-10-23T12:06:16.000Z | 2022-01-26T04:28:29.000Z | Firmware/firmware_tests/stubs/interfaces/spi/mocked_spi.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 20 | 2020-03-21T20:21:46.000Z | 2021-11-19T14:34:03.000Z | Firmware/firmware_tests/stubs/interfaces/spi/mocked_spi.hpp | ValentiWorkLearning/GradWork | 70bb5a629df056a559bae3694b47a2e5dc98c23b | [
"MIT"
] | 7 | 2019-10-18T09:44:10.000Z | 2021-06-11T13:05:16.000Z | #pragma once
namespace Mocked::Interface
{
} // namespace Mocked::Interface | 12.833333 | 32 | 0.753247 | ValentiWorkLearning |
afebb723de4dbe5f82300f2d5de169e3b9199eb8 | 1,571 | cpp | C++ | ch04/u201.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u201.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | ch04/u201.cpp | brucegua/aoapcii | 1d9bd8958a93e0424d20bcfb644ddc6f152e4963 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
int n, m, hboard[10][10], vboard[10][10];
int main() {
#ifdef LOCAL
freopen("201.in", "r", stdin);
freopen("201.out", "w", stdout);
#endif
char orien;
int px, py, np;
np = 1;
while (scanf("%d%d\n", &n, &m) == 2) {
for (int i = 0; i < 10; i++) {... | 20.141026 | 54 | 0.460853 | brucegua |
afef1da6f97c951d69bc14d8136683adc00155c5 | 1,257 | cpp | C++ | classes/ftest10read.cpp | angusoutlook/OOProgrammingInCpp | 42c66b2652d4814e4f8b31d060189bd853cce416 | [
"FSFAP"
] | null | null | null | classes/ftest10read.cpp | angusoutlook/OOProgrammingInCpp | 42c66b2652d4814e4f8b31d060189bd853cce416 | [
"FSFAP"
] | null | null | null | classes/ftest10read.cpp | angusoutlook/OOProgrammingInCpp | 42c66b2652d4814e4f8b31d060189bd853cce416 | [
"FSFAP"
] | null | null | null | /* The following code example is taken from the book
* "Object-Oriented Programming in C++"
* by Nicolai M. Josuttis, Wiley, 2002
*
* (C) Copyright Nicolai M. Josuttis 2002.
* Permission to copy, use, modify, sell and distribute this software
* is granted provided this copyright notice appears in all copies.
* T... | 33.078947 | 69 | 0.571201 | angusoutlook |
aff2b8d919e7bb5460cdd32d7c7c32d87ce60457 | 236 | cpp | C++ | test/main.cpp | ss23/cpp3ds | 2e1ec407d0c9287084e5b069bc430d578f171796 | [
"MIT"
] | null | null | null | test/main.cpp | ss23/cpp3ds | 2e1ec407d0c9287084e5b069bc430d578f171796 | [
"MIT"
] | null | null | null | test/main.cpp | ss23/cpp3ds | 2e1ec407d0c9287084e5b069bc430d578f171796 | [
"MIT"
] | 1 | 2019-10-07T17:12:36.000Z | 2019-10-07T17:12:36.000Z | #include "gtest/gtest.h"
#include <cpp3ds/Graphics.hpp>
TEST(Test, EqualityCheck){
cpp3ds::TopScreen ts;
EXPECT_EQ(true, true);
}
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 18.153846 | 40 | 0.707627 | ss23 |
aff334d452128835aa27d735a3938c12c2a0c150 | 864 | cpp | C++ | Dynamic Programming/(GEEKSFORGEEKS)0-1 Knapsack Problem.cpp | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Dynamic Programming/(GEEKSFORGEEKS)0-1 Knapsack Problem.cpp | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | null | null | null | Dynamic Programming/(GEEKSFORGEEKS)0-1 Knapsack Problem.cpp | XitizVerma/Data-Structures-and-Algorithms-Advanced | 610225eeb7e0b4ade229ec86355901ad1ca38784 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define lli long long int
#define endl "\n"
#define MAX 1005
using namespace std;
int dp[1002][1002];
int knapsack(int weight[], int value[], int w, int index)
{
if((index < 0) || (w == 0))
return 0;
if(dp[index][w] != -1)
return dp[index][w];
if(weight[index]... | 21.073171 | 140 | 0.534722 | XitizVerma |
aff55e9ee0db0a480ad7d2bc87e985a280b4e51d | 5,975 | hh | C++ | src/common/types.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | src/common/types.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | src/common/types.hh | danieldeankon/hypertrace | d58a6ea28af45b875c477df4065667e9b4b88a49 | [
"MIT"
] | null | null | null | #pragma once
#ifdef OPENCL
typedef uchar uint8_t;
typedef char int8_t;
typedef ushort uint16_t;
typedef short int16_t;
typedef uint uint32_t;
typedef int int32_t;
#define make_int2 (int2)
#define make_int3 (int3)
#define make_int4 (int4)
#define make_uint2 (uint2)
#define make_uint3 (uint3)
#define make_ui... | 26.438053 | 92 | 0.737406 | danieldeankon |
aff6ddd67afbcd455688d9a6bff49471998d0f99 | 148 | cpp | C++ | Codeforces/Cards.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | Codeforces/Cards.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | Codeforces/Cards.cpp | canis-majoris123/CompetitiveProgramming | be6c208abe6e0bd748c3bb0e715787506d73588d | [
"MIT"
] | null | null | null | //https://codeforces.com/problemset/problem/1220/A
#include<bits/stdc++.h>
using namespace std;
#define aakriti long long int
int main()
{
} | 18.5 | 51 | 0.702703 | canis-majoris123 |
aff714228867d16a550671164fbb2bb322243060 | 1,343 | hpp | C++ | bulletgba/generator/data/code/daiouzyou/round_4_boss_1.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/daiouzyou/round_4_boss_1.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/daiouzyou/round_4_boss_1.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_1e778d101ffc91be48d0fa7f5de68e83_HPP
#define GENERATED_1e778d101ffc91be48d0fa7f5de68e83_HPP
#include "bullet.hpp"
void stepfunc_5aa98bab57516922045abb7f2c427635_67282d4d149d442e6a0edf83bf861696(BulletInfo *p);
void stepfunc_e4547dce74c2f31cf07f256255486988_67282d4d149d442e6a0edf83bf861696(Bullet... | 55.958333 | 104 | 0.908414 | pqrs-org |
aff7ae05735058aeecdfddc77d73cd30e6421ac5 | 3,716 | hh | C++ | src/tabulated.hh | jhidding/inverse_cdf | 87f827ba9e50d2e71e8b2fa11286346e56933191 | [
"Apache-2.0"
] | null | null | null | src/tabulated.hh | jhidding/inverse_cdf | 87f827ba9e50d2e71e8b2fa11286346e56933191 | [
"Apache-2.0"
] | null | null | null | src/tabulated.hh | jhidding/inverse_cdf | 87f827ba9e50d2e71e8b2fa11286346e56933191 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include <cmath>
#include <iostream>
#include "romberg.hh"
#include "roots.hh"
namespace eScatter { namespace numeric {
/*! \brief Tabulates values on uniform grid for fast look-up and linear
* interpolation.
*/
template <typename real_t>
class Tabulated
{
... | 31.760684 | 79 | 0.569429 | jhidding |
aff80fd882dcee179c5c92b42b2c87410269e1d1 | 2,213 | cpp | C++ | zebROS_ws/src/screen_to_world/src/screen_to_world.cpp | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 2 | 2020-01-15T16:37:50.000Z | 2020-01-15T16:39:31.000Z | zebROS_ws/src/screen_to_world/src/screen_to_world.cpp | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 6 | 2019-08-30T00:06:15.000Z | 2020-02-29T17:02:18.000Z | zebROS_ws/src/screen_to_world/src/screen_to_world.cpp | mattwalstra/2019RobotCode | 44f2543876b95428a68dc84820f931571244e49d | [
"BSD-3-Clause"
] | 3 | 2019-10-29T01:13:09.000Z | 2022-01-14T21:53:06.000Z | #include <iostream>
#include <cmath>
#include "ros/ros.h"
#include "pixy_get_lines/PixyLine.h"
#include "screen_to_world/World.h"
#define _USE_MATH_DEFINES
using namespace std;
int hfov;
int vfov;
int frameWidth;
int frameHeight;
double camera_height;
double angle;
ros::Publisher pub;
struct point
{
double x... | 20.877358 | 119 | 0.666064 | mattwalstra |
9b7ef1ea8ab081655a38677ef7b91b7c5a15e15b | 3,575 | cpp | C++ | source/network/nckHttpObjects.cpp | nczeroshift/nctoolkit | c9f0be533843d52036ec45200512ac54c1faeb11 | [
"MIT"
] | 2 | 2016-10-16T22:26:01.000Z | 2022-03-29T14:32:15.000Z | source/network/nckHttpObjects.cpp | nczeroshift/nctoolkit | c9f0be533843d52036ec45200512ac54c1faeb11 | [
"MIT"
] | 1 | 2015-12-08T00:27:10.000Z | 2016-10-30T21:59:50.000Z | source/network/nckHttpObjects.cpp | nczeroshift/nctoolkit | c9f0be533843d52036ec45200512ac54c1faeb11 | [
"MIT"
] | 2 | 2016-07-18T21:42:10.000Z | 2019-12-16T01:33:20.000Z |
/**
* NCtoolKit © 2007-2018 Luís F.Loureiro, under zlib software license.
* https://github.com/nczeroshift/nctoolkit
*/
#include "nckHttpObjects.h"
#include "nckUtils.h"
_NETWORK_BEGIN
HttpRequest::HttpRequest() {
m_Buffer = NULL;
m_StatusCode = 200;
m_Type = MIME_PLAIN_TEXT;
}
HttpRequest::~HttpReq... | 22.204969 | 85 | 0.679161 | nczeroshift |
9b81b01ff45cc306fdd67fb4a55dfd8640630cb3 | 3,377 | cpp | C++ | src/samplers/independent.cpp | shiinamiyuki/LuisaRender | 46f4d5baa3adf1923bbe1f854f3b0db2739e33bd | [
"BSD-3-Clause"
] | null | null | null | src/samplers/independent.cpp | shiinamiyuki/LuisaRender | 46f4d5baa3adf1923bbe1f854f3b0db2739e33bd | [
"BSD-3-Clause"
] | null | null | null | src/samplers/independent.cpp | shiinamiyuki/LuisaRender | 46f4d5baa3adf1923bbe1f854f3b0db2739e33bd | [
"BSD-3-Clause"
] | null | null | null | //
// Created by Mike on 2022/1/7.
//
#include <luisa-compute.h>
#include <util/rng.h>
#include <base/pipeline.h>
#include <base/sampler.h>
namespace luisa::render {
using namespace luisa::compute;
class IndependentSampler;
class IndependentSamplerInstance final : public Sampler::Instance {
private:
uint2 _r... | 33.435644 | 128 | 0.719574 | shiinamiyuki |
9b85bed7e052f21b6e18cb40b5d9bce010e42075 | 7,937 | cpp | C++ | stack.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | 1 | 2021-05-01T16:29:08.000Z | 2021-05-01T16:29:08.000Z | stack.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | null | null | null | stack.cpp | malaise/xfreecell | b44169ac15e82f7cbc5379f8ba8b818e9faab611 | [
"Unlicense"
] | null | null | null | #include <cstdio>
#ifdef SHAPE
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/extensions/shape.h>
#endif
#include "card.h"
#include "freecell.h"
#include "general.h"
#include "option.h"
#include "stack.h"
#include "util.h"
#ifdef SHAPE
#include "boundingMask.bm"
#include "clipMask.bm"
#endif
extern Displa... | 21.05305 | 93 | 0.628449 | malaise |
9b88a0f21bf503848ae2f356eb16ba20c29c4673 | 907 | cpp | C++ | EndGame/EndGame/Src/SubSystems/RenderSubSystem/OpenGlContext.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | EndGame/EndGame/Src/SubSystems/RenderSubSystem/OpenGlContext.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | EndGame/EndGame/Src/SubSystems/RenderSubSystem/OpenGlContext.cpp | siddharthgarg4/EndGame | ba608714b3eacb5dc05d0c852db573231c867d8b | [
"MIT"
] | null | null | null | //
// OpenGlContext.cpp
//
//
// Created by Siddharth on 05/06/20.
//
#include "OpenGlContext.hpp"
#include <glad/glad.h>
namespace EndGame {
OpenGlContext::OpenGlContext(GLFWwindow *windowHandle) : windowHandle(windowHandle) {
EG_ENGINE_ASSERT(windowHandle, "Window handle cannot be null")
}
... | 29.258065 | 90 | 0.679162 | siddharthgarg4 |
9b8da567fce331571620521948a22137b08ee9b7 | 5,999 | cc | C++ | chrome/browser/chromeos/ui/app_launch_view.cc | MIPS/external-chromium_org | e31b3128a419654fd14003d6117caa8da32697e7 | [
"BSD-3-Clause"
] | 2 | 2017-10-19T13:50:00.000Z | 2019-05-26T20:11:54.000Z | chrome/browser/chromeos/ui/app_launch_view.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/ui/app_launch_view.cc | carlosavignano/android_external_chromium_org | 2b5652f7889ccad0fbdb1d52b04bad4c23769547 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 3 | 2017-07-31T19:09:52.000Z | 2019-01-04T18:48:50.000Z | // Copyright (c) 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 "chrome/browser/chromeos/ui/app_launch_view.h"
#include "ash/shell.h"
#include "ash/shell_delegate.h"
#include "ash/shell_window_ids.h"
#inc... | 30.764103 | 80 | 0.722287 | MIPS |
9b910255eb107185c8417d1e03c8d7dd6d978018 | 212 | cpp | C++ | source/dodbm/builders/delete_data.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | 1 | 2021-02-19T07:22:21.000Z | 2021-02-19T07:22:21.000Z | source/dodbm/builders/delete_data.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | source/dodbm/builders/delete_data.cpp | WopsS/dodbm | 053f0a6b90e1e081b07418a91cf1f3420d69e390 | [
"MIT"
] | null | null | null | #include <dodbm/builders/delete_data.hpp>
const dodbm::builders::delete_data& dodbm::builders::delete_data::from(const std::string& table_name) const
{
m_operation->set_table(table_name);
return *this;
} | 30.285714 | 107 | 0.754717 | WopsS |
9b949a8381fb00a020fc93639e1488f89fd42d29 | 217 | cpp | C++ | Libraries/LibHTML/DOM/HTMLHeadingElement.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 3 | 2020-05-01T02:39:03.000Z | 2021-11-26T08:34:54.000Z | Libraries/LibHTML/DOM/HTMLHeadingElement.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | null | null | null | Libraries/LibHTML/DOM/HTMLHeadingElement.cpp | JamiKettunen/serenity | 232da5cc188496f570ef55276a897f1095509c87 | [
"BSD-2-Clause"
] | 1 | 2021-08-03T13:04:49.000Z | 2021-08-03T13:04:49.000Z | #include <LibHTML/DOM/HTMLHeadingElement.h>
HTMLHeadingElement::HTMLHeadingElement(Document& document, const String& tag_name)
: HTMLElement(document, tag_name)
{
}
HTMLHeadingElement::~HTMLHeadingElement()
{
}
| 19.727273 | 82 | 0.78341 | JamiKettunen |
9b977c64be8d76406cf37c9dd5efe5afe8a427da | 22,827 | cpp | C++ | libmultidisplay/native/MultiDisplayService.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | 1 | 2021-11-21T21:45:36.000Z | 2021-11-21T21:45:36.000Z | libmultidisplay/native/MultiDisplayService.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | null | null | null | libmultidisplay/native/MultiDisplayService.cpp | zenfone-6/android_device_asus_a600cg | 1073b3cae60b0e877c47f33048a7979bf3a96428 | [
"Apache-2.0"
] | 6 | 2016-03-01T16:25:22.000Z | 2022-03-02T03:54:14.000Z | /*
* Copyright (c) 2012-2013, Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 40.11775 | 163 | 0.718973 | zenfone-6 |
9b97d3e46c043d6bb002ad17ee07a74d6a0577e6 | 474 | cpp | C++ | UVa 1189 - Find The Multiple/sample/1189 - Find The Multiple.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2020-11-24T03:17:21.000Z | 2020-11-24T03:17:21.000Z | UVa 1189 - Find The Multiple/sample/1189 - Find The Multiple.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | null | null | null | UVa 1189 - Find The Multiple/sample/1189 - Find The Multiple.cpp | tadvi/uva | 0ac0cbdf593879b4fb02a3efc09adbb031cb47d5 | [
"MIT"
] | 1 | 2021-04-11T16:22:31.000Z | 2021-04-11T16:22:31.000Z | #include <stdio.h>
int main() {
int n;
while(scanf("%d", &n) == 1 && n) {
int C[205] = {}, t = 1%n, i, j;
for(i = 1; ; i++) {
if(C[t]) {
for(j = C[t]; j < i; j++)
putchar('1');
for(j = C[t]-1; j >= 0; j--)
putch... | 21.545455 | 44 | 0.253165 | tadvi |
9b9e42fb2d72aad7cda074e8dfa40b607ef8d8db | 6,378 | cpp | C++ | Image And Video Processing/Lab/Lab01/exercise01/ColorTransformer.cpp | source-reference/digital-image-processing | dc90b569677b31dfeabfb8740a2d8b4ccb167ce9 | [
"Apache-2.0"
] | null | null | null | Image And Video Processing/Lab/Lab01/exercise01/ColorTransformer.cpp | source-reference/digital-image-processing | dc90b569677b31dfeabfb8740a2d8b4ccb167ce9 | [
"Apache-2.0"
] | null | null | null | Image And Video Processing/Lab/Lab01/exercise01/ColorTransformer.cpp | source-reference/digital-image-processing | dc90b569677b31dfeabfb8740a2d8b4ccb167ce9 | [
"Apache-2.0"
] | null | null | null | #include "ColorTransformer.h"
int ColorTransformer::ChangeBrighness(const Mat &sourceImage, Mat &destinationImage, short b)
{
if (sourceImage.empty())
{
return -1;
}
int rows = sourceImage.rows;
int cols = sourceImage.cols;
int chanels = sourceImage.channels();
destinationImage = ... | 27.730435 | 179 | 0.510975 | source-reference |
9ba082f972781f9a4e40f913638ecd9a8644dc39 | 1,658 | cpp | C++ | image_ops.cpp | neil-okikiolu/working-with-tensor-rt | 90252662a506d689f560f13bd1084ab3a7554184 | [
"MIT"
] | 5 | 2020-08-18T10:32:19.000Z | 2021-08-09T06:06:48.000Z | image_ops.cpp | neil-okikiolu/working-with-tensor-rt | 90252662a506d689f560f13bd1084ab3a7554184 | [
"MIT"
] | 1 | 2021-04-28T13:17:25.000Z | 2021-04-29T01:11:31.000Z | image_ops.cpp | neil-okikiolu/working-with-tensor-rt | 90252662a506d689f560f13bd1084ab3a7554184 | [
"MIT"
] | 2 | 2020-12-10T03:39:18.000Z | 2021-03-18T03:24:06.000Z | /**
* @author - neil okikiolu
*/
#include "image_ops.h"
#include <iostream>
#include <ctime>
#include <sstream>
#include <ros/ros.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgcodecs.hpp>
namespace imgops
{
void saveImage(... | 25.121212 | 83 | 0.534982 | neil-okikiolu |
9ba8aeb0f0ab34d629893e447de2dd2422c00ccd | 1,368 | cpp | C++ | leetcode/5557.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 107 | 2019-10-25T07:46:59.000Z | 2022-03-29T11:10:56.000Z | leetcode/5557.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 1 | 2021-08-13T05:42:27.000Z | 2021-08-13T05:42:27.000Z | leetcode/5557.cpp | upupming/algorithm | 44edcffe886eaf4ce8c7b27a8db50d7ed5d29ef1 | [
"MIT"
] | 18 | 2020-12-09T14:24:22.000Z | 2022-03-30T06:56:01.000Z | // https://leetcode.com/contest/weekly-contest-213/problems/kth-smallest-instructions/
#include <bits/stdc++.h>
using namespace std;
// Input: destination = [2,3], k = 1
// Output: "HHHVV"
// Explanation: All the instructions that reach (2, 3) in lexicographic order are as follows:
// ["HHHVV", "HHVHV", "HHVVH", "HVH... | 27.36 | 94 | 0.496345 | upupming |