hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2676a796b0c38dc626fa19e3fc630dac382a97be | 1,888 | cpp | C++ | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | 1 | 2021-09-14T11:25:21.000Z | 2021-09-14T11:25:21.000Z | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | Codeforces/Contest 1631/C.cpp | Sansiff/Coding-Practice | b76f5a403c478abedc7bf22acb314b6cebb538ea | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define int long long
#define lowbit(x) (x&-x)
#define rep(i, l, r) for(int i = l; i < r; i ++)
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
using namespace std;
typedef long long LL;
typedef pair<int,int> PII;
typedef vector<int> VI;
typedef vector<vector<int>> VII;
... | 22.211765 | 54 | 0.351165 | Sansiff |
267a6f3d9d9dcdcf5075e67468a468ab579dc6fc | 116,999 | hpp | C++ | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_UMG_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_UMG_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------... | 62.970398 | 238 | 0.557022 | 2bite |
267d7ee0141c3d4fcde23dab7fa52f4f421c23d1 | 5,618 | cpp | C++ | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | jackyspeed/libmv | aae2e0b825b1c933d6e8ec796b8bb0214a508a84 | [
"MIT"
] | 160 | 2015-01-16T19:35:28.000Z | 2022-03-16T02:55:30.000Z | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 3 | 2015-04-04T17:54:35.000Z | 2015-12-15T18:09:03.000Z | src/third_party/OpenExif/src/ExifHuffmanTable.cpp | rgkoo/libmv-blender | cdf65edbb80d8904e2df9a20116d02546df93a81 | [
"MIT"
] | 51 | 2015-01-12T08:38:12.000Z | 2022-02-19T06:37:25.000Z | /*
* Copyright (c) 2000-2009, Eastman Kodak Company
* 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,
* ... | 34.466258 | 80 | 0.600748 | jackyspeed |
267d9097a7e3b43795108b72fef9b50798a9e916 | 372 | cpp | C++ | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 1 | 2018-12-11T09:32:59.000Z | 2018-12-11T09:32:59.000Z | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | null | null | null | PGM/Programas/blanquear.cpp | dmateos-ugr/FP | 6d3ec8eeccbb72582367c8cf97aecb2227cc7b9e | [
"MIT"
] | 2 | 2018-11-13T12:32:35.000Z | 2018-11-27T14:43:30.000Z | #include <iostream>
#include "base.cpp"
using namespace std;
void BlanquearImagen(Imagen & img){
for (int f = 0; f < img.filas; f++){
for (int c = 0; c < img.columnas; c++){
img.matrix_pixeles[f][c] = 255;
}
}
}
int main(){
Imagen img;
PedirImagen(img);
BlanquearImag... | 14.88 | 47 | 0.556452 | dmateos-ugr |
268176bdb0b33a589b66a0a45cbac824e068d0c4 | 1,555 | cpp | C++ | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | src/packets.cpp | gdext/geode-native | 8a6931c752cc9497903b5425bba22ebd82c6260f | [
"MIT"
] | null | null | null | #include "packets.hpp"
std::string OutPacket::getJSONString() {
auto e = data.dump();
return e;
}
OutPacket::OutPacket(std::string type) : type(type) {
data = {{"type", type}};
}
InPacket::InPacket(std::string str) : data(str) {}
InPacket::InPacket(json data) : data(data) {}
ConfigInP::ConfigInP(std::s... | 28.272727 | 121 | 0.668167 | gdext |
2683d898e819ac6f828de604ea7df9bc3658593c | 1,020 | cpp | C++ | sqlines-studio3/src/snapshot.cpp | 1newstar/sqlines | 7887a10d00f0d92aea34001c9f2b3bcc872d39f6 | [
"Apache-2.0"
] | 299 | 2016-03-19T14:50:39.000Z | 2022-03-25T05:43:52.000Z | sqlines-studio3/src/snapshot.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 47 | 2016-11-30T23:52:59.000Z | 2021-05-17T10:04:45.000Z | sqlines-studio3/src/snapshot.cpp | ChrisYuan/sqlines | f82176f154a158105f655d71fb7934dd0ee1c82f | [
"Apache-2.0"
] | 149 | 2016-03-15T15:06:06.000Z | 2022-03-16T14:38:45.000Z | /**
* Copyright (c) 2021 SQLines
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 25.5 | 75 | 0.688235 | 1newstar |
26862ce3875f757e0b4648d4ef0ea45ea3687869 | 6,839 | cpp | C++ | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | CellLifeSimulationModel/Cell.cpp | maxchistt/CellLifeSimulation | 0def390399abb39dd93aec3994102b143d27fbaa | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Cell.h"
#include "SimulationModel.h"
using namespace SimulationModel;
using namespace Cells;
using namespace Structs2D;
Cell::doType Cell::howToDo(Cell* cell_finder, Cell* cell_to_find)
{
auto mycolor = cell_to_find->dna_options.color;
for (auto color : cell_finder->dna_options.colors_be... | 25.710526 | 186 | 0.688843 | maxchistt |
269daa1cd0ce52d112edce14b24aba822747a4b1 | 2,038 | cpp | C++ | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | 1 | 2020-10-29T11:21:58.000Z | 2020-10-29T11:21:58.000Z | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | Week2/Codec.cpp | AkashRajpurohit/leetcode-october-2020-challenge | 4bf49f2ac1d51c049d166a0bf07b3ae11552f1e7 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Codec {
private:
char delimiter = ' ';
// PreOrder
void dfs(TreeNode* root, string& s) {
if(r... | 23.976471 | 63 | 0.482336 | AkashRajpurohit |
269f20e592879754ef8d033c0c4181e1190ac9df | 1,973 | cpp | C++ | isis/tests/FunctionalTestsStretch.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/tests/FunctionalTestsStretch.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/tests/FunctionalTestsStretch.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include "Fixtures.h"
#include "Pvl.h"
#include "PvlGroup.h"
#include "TestUtilities.h"
#include "Histogram.h"
#include "UserInterface.h"
#include "stretch_app.h"
#include "gtest/gtest.h"
using namespace Isis;
static QString STRETCH_XML = FileName("$ISISROOT/bin/xml/stretch.xml").expanded();
// case 1
TEST_F(Speci... | 29.447761 | 107 | 0.700456 | kdl222 |
269f68dffc55a0e2e236c395b91f72b0b5c46966 | 1,062 | cpp | C++ | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | src/customUI/optionInputs/SelectionOptionInput.cpp | ToniRingling/HallGUI | 81662644884a027b42a8fe4414f5e51cbf72493d | [
"MIT"
] | null | null | null | #include "SelectionOptionInput.h"
#include "../../nodes/NodeComponents.h"
#include "../../nodes/optionCores/SelectionCore.h"
wxBEGIN_EVENT_TABLE(option_inputs::SelectionOptionInput, wxChoice)
EVT_CHOICE(wxID_ANY, option_inputs::SelectionOptionInput::onUpdate)
wxEND_EVENT_TABLE()
using namespace option_inputs;
S... | 32.181818 | 238 | 0.758004 | ToniRingling |
269f8caf55a123c4d8f89cc81a2eca258a8a11a7 | 5,124 | cpp | C++ | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 264 | 2020-09-08T15:33:18.000Z | 2022-03-31T10:12:55.000Z | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 72 | 2020-09-04T22:51:37.000Z | 2022-03-29T20:22:57.000Z | libsrc/effectengine/Animation_MoodBlobs.cpp | fredmtb/HyperHDR | 7545712abd4d4730321a61f63d2521d7a446f02d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 50 | 2020-10-02T14:27:38.000Z | 2022-03-14T14:54:26.000Z | #include <effectengine/Animation_MoodBlobs.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
Animation_MoodBlobs::Animation_MoodBlobs(QString name) :
AnimationBase(name)
{
fullColorWheelAvailable = false;
baseColorChangeIncreaseValue = 0;
sleepTime = 1;
amplitudePhaseIncrement = 0;
colorDat... | 27.548387 | 157 | 0.675254 | fredmtb |
26a19527ff110df15ac8fb995bebb0f616c19b97 | 7,559 | cpp | C++ | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 4 | 2021-10-30T10:53:11.000Z | 2022-02-22T08:08:33.000Z | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 12 | 2020-07-14T23:58:02.000Z | 2022-02-25T21:38:28.000Z | engine/common/memtrak3.cpp | mweber15/PathOfBuilding-SimpleGraphic | ca2bbd6d72299b91eabe0bcb0be7db92772bc54b | [
"BSD-3-Clause"
] | 9 | 2020-07-12T13:31:31.000Z | 2022-03-19T10:43:16.000Z | // MemTrak Memory Tracker v3
// (c) David Gowor, 2005
//
#if 0
#include <windows.h>
#include <stdio.h>
bool _memTrak_suppressReport;
char _memTrak_reportName[512];
// =======
// Classes
// =======
#define TRAKPOW 16
#define TRAKSZ (1<<TRAKPOW)
#define TRAKMASK (TRAKSZ-1)
#define FREEDSZ 65536
#... | 21.910145 | 101 | 0.617674 | mweber15 |
26a82c9916b9d3b4adf597c9f1b905fd85fff736 | 1,371 | hpp | C++ | android-31/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/printservice/PrinterDiscoverySession.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "../../JObject.hpp"
namespace android::os
{
class CancellationSignal;
}
namespace android::print
{
class PrinterId;
}
namespace android::printservice
{
class CustomPrinterIconCallback;
}
namespace android::printservice
{
class PrinterDiscoverySession : public JObject
{
public:
// Fields... | 27.979592 | 165 | 0.768053 | YJBeetle |
26aaf1bde778b3368bd06475f2389016678d106d | 1,619 | cc | C++ | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | null | null | null | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | null | null | null | src/mlt/include/dmlc/serial_test.cc | xcwanAndy/mlt_byteps | 81a77e2639cd2cf823e62ccb12196bc74b3d4564 | [
"Apache-2.0"
] | 1 | 2020-07-30T06:41:43.000Z | 2020-07-30T06:41:43.000Z | #include "dmlc/io.h"
#include "dmlc/memory_io.h"
#include <string>
#include <vector>
struct SimpleStructure {
int payload_length;
char payload[0];
};
using namespace dmlc;
void task1() {
printf("task1\n");
char* buffer = static_cast<char*>(malloc(sizeof(SimpleStructure) + 10));
MemoryFixedSizeStream strm(... | 24.907692 | 92 | 0.646695 | xcwanAndy |
26aafafa1e15945cfb078fc0036ce452fa9c48ec | 1,582 | cpp | C++ | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | 3 | 2021-03-01T20:41:13.000Z | 2021-07-10T13:45:47.000Z | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | samples/GameAPI_ValueModifier/ValueModifier.cpp | odayibasi/swengine | ef07b7c9125d01596837a423a9f3dcbced1f5aa7 | [
"Zlib",
"MIT"
] | null | null | null | #include "../../include/SWEngine.h"
#pragma comment (lib,"../../lib/SWUtil.lib")
#pragma comment (lib,"../../lib/SWTypes.lib")
#pragma comment (lib,"../../lib/SWCore.lib")
#pragma comment (lib,"../../lib/SWEngine.lib")
#pragma comment (lib,"../../lib/SWGame.lib")
#pragma comment (lib,"../../lib/SWG... | 22.927536 | 93 | 0.638432 | odayibasi |
26ad16b39d41842f89804514657cea52c7bdd61d | 465 | hpp | C++ | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | app/src/main/jni/Log.hpp | gabberrr/Android-SpaceShip | e4925420edf1b8ea28f3a4eeb31df6aef21846cc | [
"Apache-2.0"
] | null | null | null | #ifndef PACKT_LOG_HPP
#define PACKT_LOG_HPP
namespace packt{
class Log{
public :
static void error(const char* pMessage, ...);
static void warn(const char* pMessage, ...);
static void info(const char* pMessage, ...);
static void debug(const char* pMessage, ..... | 23.25 | 63 | 0.608602 | gabberrr |
26b0126479025af6a267667497a2684fadcb22fe | 665 | cpp | C++ | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | 1721-swapping-nodes-in-a-linked-list/1721-swapping-nodes-in-a-linked-list.cpp | sahib-pratap-singh/Leetcode | 0df2053dcf51c61c1d32ae2d20f58c11b2c25b24 | [
"MIT"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* swapNodes(L... | 24.62963 | 62 | 0.509774 | sahib-pratap-singh |
26b0eb9bfb52517da9666fac5814f60ec18925de | 8,347 | cpp | C++ | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | 1 | 2020-06-20T07:35:25.000Z | 2020-06-20T07:35:25.000Z | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | Engine/Src/SFEngine/Mongo/SFMongoDB.cpp | blue3k/StormForge | 1557e699a673ae9adcc8f987868139f601ec0887 | [
"Apache-2.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// CopyRight (c) Kyungkun Ko
//
// Author : KyungKun Ko
//
// Description : MongoDB
//
//
////////////////////////////////////////////////////////////////////////////////
#include "SFEnginePCH.h"
#include "Mongo/SFMon... | 23.315642 | 129 | 0.639391 | blue3k |
26b2dcab06202bb9d541a0aa3cce49cfd7c80e68 | 646 | cpp | C++ | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | 4 | 2015-01-19T03:26:26.000Z | 2015-06-03T04:00:04.000Z | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | null | null | null | Week6/ParticlesWithClass/src/BaseParticle.cpp | bakercp/ExperimentalMedia2013 | b0e748104c327d14e2231a0a98282503712702ed | [
"MIT"
] | null | null | null | //
// BaseParticle.cpp
// ParticlesWithClass
//
// Created by Christopher P. Baker on 10/4/13.
//
//
#include "BaseParticle.h"
BaseParticle::BaseParticle(): age(0)
{
// age = 0;
}
void BaseParticle::update()
{
age++; // age = age + 1;
// velocity.x += acceleration.x;
// velocity.y += acceleration.y;
/... | 15.756098 | 47 | 0.600619 | bakercp |
56552c5602d6b401e0859f30057450441da4adf6 | 480 | cpp | C++ | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | 1 | 2018-10-12T08:41:06.000Z | 2018-10-12T08:41:06.000Z | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | 1 | 2018-10-16T01:43:57.000Z | 2018-10-16T01:43:57.000Z | Observer/Subject.cpp | zxc6419/design_patterns_exercise | 56239df3057ecb752228598dec6ddc912a2bbdaf | [
"MIT"
] | null | null | null | #include "Subject.h"
#include "Observer.h"
void Subject::attach(const std::shared_ptr<IObserver>& observer)
{
observers_.emplace_back(observer);
}
void Subject::detach(const std::shared_ptr<IObserver>& observer)
{
for (auto it = observers_.begin(); it != observers_.end(); ++it) {
if (*it == observer)... | 20 | 70 | 0.6 | zxc6419 |
565ac8fd9a92e90e13386bbf6cca2cff2cdd9fd5 | 2,308 | hpp | C++ | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | 3 | 2021-05-07T12:47:00.000Z | 2021-10-01T05:30:02.000Z | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | null | null | null | modules/include/ImagePreprocessing.hpp | jnkl314/tin_dr | e4a6332b1fc3547c7c899e6fb11e206c091e6eb0 | [
"MIT"
] | 1 | 2021-05-07T12:49:10.000Z | 2021-05-07T12:49:10.000Z | /*============================================================================*/
/* File Description */
/*============================================================================*/
/**
* @file ImagePreprocessing.hpp
*/
/*===========================... | 43.54717 | 88 | 0.19844 | jnkl314 |
565ae6589c03d9b18695250bbf8a61b7e4e6a2bf | 567 | cpp | C++ | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | myList/mylist.cpp | zhongchen43/Cpp-Syntax-Code-Implementation | 1a73485dd63802989d9d18ea51cc189b9dafedd5 | [
"MIT"
] | null | null | null | #include <iostream>
#include "mylist.h"
void myList::initList()
{
head = new Node;
head->next = nullptr;
}
void myList::insertList(int data)
{
Node * cur = new Node;
cur->data = data;
cur->next = head->next;
head->next = cur;
}
void myList::traverseList()
{
Node * subHead = head->next;
... | 14.538462 | 44 | 0.539683 | zhongchen43 |
56605b196ceca79d7ba05e1d509a34d59d9dba4d | 1,083 | hpp | C++ | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | 2 | 2021-09-27T03:28:17.000Z | 2022-01-06T13:38:24.000Z | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | null | null | null | src/fenestra/DL.hpp | cout/fenestra | b3424b427a1c8820a5586b09641e1589271fb567 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <string>
#include <sstream>
#include <dlfcn.h>
namespace fenestra {
class DL {
public:
DL(char const * filename, int flag)
: handle_(dlopen(filename, flag))
{
if (!handle_)
{
std::stringstream strm;
strm << "dlopen failed: " << dlerror();
throw std::runtime... | 17.467742 | 77 | 0.585411 | cout |
5667ea22918e69d4edc8eb83655dc846f088439c | 6,693 | cpp | C++ | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 6 | 2020-07-18T20:03:27.000Z | 2021-11-15T18:44:38.000Z | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 35 | 2020-05-08T05:51:40.000Z | 2021-07-01T15:38:59.000Z | src/partition/partition.cpp | JaeseungYeom/wcs | f6867b3d8439630424dede81f82e631e61e9a991 | [
"MIT"
] | 5 | 2020-05-07T23:04:35.000Z | 2021-11-15T18:46:09.000Z | /******************************************************************************
* *
* Copyright 2020 Lawrence Livermore National Security, LLC and other *
* Whole Cell Simulator Project Developers. See the top-level COPYRIGHT *
... | 35.791444 | 81 | 0.617959 | JaeseungYeom |
5670ad038cdf5e3bbb6cdd2439be7c086b2faf91 | 1,284 | cpp | C++ | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 19 | 2015-09-02T03:25:55.000Z | 2021-03-07T15:02:33.000Z | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 2 | 2015-12-11T12:03:11.000Z | 2017-09-13T09:03:33.000Z | src/condition_variable.cpp | linear-rpc/linear-cpp | 9f3b2a924a11848829f00e325b5449db0a4c6e30 | [
"MIT"
] | 6 | 2015-11-25T08:55:51.000Z | 2021-03-07T15:02:36.000Z | #include <cassert>
#include "linear/condition_variable.h"
#include "mutex_impl.h"
namespace linear {
// class condition_variable_impl
class condition_variable::condition_variable_impl {
public:
typedef uv_cond_t* native_handle_type;
condition_variable_impl() {
if (uv_cond_init(&cond_)) {
assert(fals... | 20.380952 | 76 | 0.721184 | linear-rpc |
56717aca6075857c5a3037aa37733eaf62c665fc | 602 | cpp | C++ | plugins/d3d9/src/volumefuncs/dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/d3d9/src/volumefuncs/dim.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/d3d9/src/volumefuncs/dim.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/d3d9/d3dinclude.hpp>
#include <sge/d3d9/volumefuncs/dim.hpp>
#include <sge/d3d9/volum... | 35.411765 | 81 | 0.729236 | cpreh |
567866d1e74fb3b1119d7b642afc3c0399c310ce | 412 | cpp | C++ | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 1 | 2020-11-06T03:36:03.000Z | 2020-11-06T03:36:03.000Z | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | null | null | null | math/get_prime.cpp | beet-aizu/library-3 | 6437cddd6011fa4797b98e81577b1a06f11f3350 | [
"CC0-1.0"
] | 2 | 2020-11-06T03:39:10.000Z | 2021-04-04T04:38:30.000Z | vector<int> get_prime(int n){
if(n <= 1) return vector<int>();
vector<bool> is_prime(n+1, true);
vector<int> prime;
is_prime[0] = is_prime[1] = 0;
for (int i = 2; i <= n; ++i) {
if(is_prime[i]) prime.emplace_back(i);
for (auto &&j : prime){
if(i*j > n) break;
... | 27.466667 | 46 | 0.478155 | beet-aizu |
567cb4ad34d91bf7773defccb1f0c32cb98104e9 | 1,693 | cpp | C++ | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | 2 | 2018-06-22T06:21:09.000Z | 2018-08-14T14:50:26.000Z | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | 1 | 2019-01-09T07:17:26.000Z | 2019-01-09T07:17:26.000Z | v1/sw/c-fan/enumsToString.cpp | microentropie/cFan | 91653a9522def349355b86affddb05af975e67b7 | [
"MIT"
] | null | null | null | /*
Author: Stefano Di Paolo
License: MIT, https://en.wikipedia.org/wiki/MIT_License
Date: 2018-03-18
Ceiling Fan (http://www.microentropie.com)
Arduino ESP8266 based.
enum -> string
Sources repository: https://github.com/microentropie/
*/
#include <Arduino.h>
#include "machine_io.h"
const char *OutSetActionToS... | 21.987013 | 107 | 0.708801 | microentropie |
56874e1072ff084335c24bf69ef2d1dd56a794ce | 972 | hpp | C++ | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | Common/Common/JSONValue.hpp | zingkg/examples-cpp | ea4ebd5d1140aabd718d745dd28df69a792093c5 | [
"MIT"
] | null | null | null | #ifndef JSONVALUE_HPP
#define JSONVALUE_HPP
#include "Common.hpp"
#include <cstdint>
#include <memory>
class JSONObject;
class JSONValue {
public:
JSONValue();
JSONValue(const JSONValue &other);
explicit JSONValue(const bool boolean);
explicit JSONValue(const std::int32_t integer);
explicit JSONValue(cons... | 19.058824 | 51 | 0.720165 | zingkg |
568bfac8f68862a8110041e534cf735231e8b4fc | 771 | cpp | C++ | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | null | null | null | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | null | null | null | vseros/2014-15/okr/string.cpp | dluschan/olymp | dfbf4352dbc7f6fd7563e7bd19aff6fd67fb50b7 | [
"MIT"
] | 1 | 2018-09-14T18:50:48.000Z | 2018-09-14T18:50:48.000Z | #include <iostream>
#include <string>
#include <vector>
using namespace std;
int medium(int a, int b, int c) { return a + b + c - min(a, min(b, c)) - max(a, max(b, c)); }
int main()
{
const int n = 3;
string s[3];
vector<int> v[3];
for (int i = 0; i < n; ++i)
{
cin >> s[i];
v[i].push_back(1);
for (size_t ... | 16.404255 | 93 | 0.440986 | dluschan |
56978dd994eedd1f89a7c8ac0f2011fea9d2e380 | 13,525 | cpp | C++ | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | 22 | 2020-08-03T18:28:39.000Z | 2021-09-27T00:25:26.000Z | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | null | null | null | extensions/csa/midend/toWellFormedParser.cpp | pauladbol/obs-microp4 | 92e3b53c52c7ebf8787ce2f6a7f946c1b73546ad | [
"Apache-2.0"
] | 5 | 2020-08-20T02:53:31.000Z | 2021-04-13T23:43:12.000Z | /*
* Author: Hardik Soni
* Email: hks57@cornell.edu
*/
#include "frontends/p4/methodInstance.h"
#include "toWellFormedParser.h"
namespace CSA {
bool CheckParserGuard::preorder(const IR::ParserState* parserState) {
if (parserState->name != IR::ParserState::start)
return false;
available = false;
... | 34.240506 | 86 | 0.606433 | pauladbol |
569b397cf3f0a6a91851dfa723b1248a57745e8f | 205 | cpp | C++ | fayllar bn ishlash/yoz.cpp | AxlidinovJ/masalalar_C | ca48c0db29155016a729fbe23030d4a638175d9b | [
"MIT"
] | 3 | 2021-12-02T20:28:27.000Z | 2021-12-08T10:21:24.000Z | fayllar bn ishlash/yoz.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | fayllar bn ishlash/yoz.cpp | AxlidnovJ/masalalar_C | e0643137e115d7b9b26651a0d5acc24bc79f8d4f | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
using namespace std;
int main(){
ofstream yoz("output.txt");
ifstream oqi("input.txt");
string a,b;
getline(cin,a);
yoz<<a<<"\n";
getline(cin,b);
yoz<<b;
} | 13.666667 | 28 | 0.639024 | AxlidinovJ |
56a16de88663001d682cfb265109e3277f8bb47f | 669 | cpp | C++ | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | 7 | 2020-08-13T05:23:08.000Z | 2022-02-13T16:20:58.000Z | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | MeowEngine/src/Meow/Core.cpp | vedpatil611/MeowEngine | 2afb3f686920528fcd30447543d5888cf57627c9 | [
"MIT"
] | null | null | null | #include <MeowPCH.h>
#include <glad/glad.h>
#include <Meow/Core.h>
#include <Meow/Utils/Log.h>
#include <Meow/Renderer/Shader.h>
void GlClearError()
{
while (glGetError() != GL_NO_ERROR);
}
bool GlLogCall(const char* functionName, const char* file, const int& line)
{
while (GLenum error = glGetError())
{... | 19.114286 | 114 | 0.599402 | vedpatil611 |
56a173b8caf7a28532cca3ca505debb37852af26 | 155,952 | cpp | C++ | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | GCG_Source.build/module.confirm.cpp | Pckool/GCG | cee786d04ea30f3995e910bca82635f442b2a6a8 | [
"MIT"
] | null | null | null | /* Generated code for Python source for module 'confirm'
* created by Nuitka version 0.5.28.2
*
* This code is in part copyright 2017 Kay Hayen.
*
* 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 Li... | 33.082732 | 237 | 0.700741 | Pckool |
56a27c551a4e2ca1b9ab86804b051a4585cb5005 | 862 | cpp | C++ | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | OpenTally-Gateway/src/tallyleds/tallyleds.cpp | bjornvdh/opentally | e9189a94bc73bca1260f805719d12ea9cc3b5154 | [
"Unlicense"
] | null | null | null | #include <Arduino.h>
#include <FastLED.h>
#include "buildconfig.h"
#include "tallyleds.h"
#include "state/state_client_channel.h"
#include "state/state_programpreview.h"
CRGB _tallyLeds[TALLY_LEDS_COUNT];
void tallyleds_setup()
{
FastLED.addLeds<WS2812B, TALLY_LEDS_PIN, GRB>(_tallyLeds, TALLY_LEDS_COUNT);
Fa... | 22.684211 | 87 | 0.686775 | bjornvdh |
56a5ff61401c8f6aa65cc145933769f4d8b65d56 | 2,353 | cpp | C++ | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | 2 | 2021-07-15T21:18:36.000Z | 2022-02-11T06:35:29.000Z | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | null | null | null | src/List/List.cpp | mkungla/howiphp | 372f6de9cafe6e19ed9cbd0cb9b1f7750c44a8c7 | [
"MIT"
] | null | null | null | /*
* ******************************************************************
* Created by Marko Kungla on 2010
* Updated by Marko Kungla on Aug 6, 2016 - 6:17:00 PM
*
* @copyright 2010 - 2016 Marko Kungla - https://github.com/mkungla
* @license MIT
*
* Package name howiphp
* @category HOWI3
* @p... | 24.257732 | 71 | 0.588185 | mkungla |
56a6461a3e15692f4d1511e8b3390a626130eea0 | 637 | hpp | C++ | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 6 | 2019-08-29T23:31:17.000Z | 2021-11-14T20:35:47.000Z | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | null | null | null | TimeTableGenerator/include/DisplayFuncs.hpp | Electrux/CCPP-Code | 3c5e5b866cf050c11bced9651b112eb31dd2465d | [
"BSD-3-Clause"
] | 1 | 2019-09-01T12:22:58.000Z | 2019-09-01T12:22:58.000Z | #ifndef DISPLAYFUNCS_HPP
#define DISPLAYFUNCS_HPP
#include <string>
void MoveOutputCursorBack();
// This function displays OneLiners.
// Basically, OneLiners are fleeting outputs which are to be erased after they
// are displayed. These are always displayed in between square brackets.
void DisplayOneLinerString( con... | 31.85 | 78 | 0.769231 | Electrux |
56a85177bc8e0c3252dec35c85841e652b6e80d4 | 4,107 | cpp | C++ | src/common/DomString.cpp | McMurphy-Luo/easy-svg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | 3 | 2018-06-02T09:51:41.000Z | 2019-08-29T14:58:52.000Z | src/common/DomString.cpp | McMurphy-Luo/tinysvg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | null | null | null | src/common/DomString.cpp | McMurphy-Luo/tinysvg | cfa79c02c86ef5b9d72c4743b4157ae66e7f6410 | [
"MIT"
] | null | null | null | #include "./DomString.h"
#include <algorithm>
#include <cassert>
#include <cctype>
#ifdef TINYSVG_WIN32
#include <Windows.h>
#endif
using std::size_t;
using std::transform;
using std::function;
using std::ostream;
using std::wstring;
using std::vector;
using std::isspace;
NAMESPACE_BEGIN
Utf8String WideStringToUtf... | 22.690608 | 114 | 0.686389 | McMurphy-Luo |
56a9297e916362da111e46580007a0c3715d1251 | 2,634 | cpp | C++ | src/core/tensor/TensorShape.cpp | alexbatashev/athena | eafbb1e16ed0b273a63a20128ebd4882829aa2db | [
"MIT"
] | 2 | 2020-07-16T06:42:27.000Z | 2020-07-16T06:42:28.000Z | src/core/tensor/TensorShape.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | src/core/tensor/TensorShape.cpp | PolarAI/polarai-framework | c5fd886732afe787a06ebf6fb05fc38069257457 | [
"MIT"
] | null | null | null | //===----------------------------------------------------------------------===//
// Copyright (c) 2020 PolarAI. All rights reserved.
//
// Licensed under MIT license.
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
//... | 40.523077 | 80 | 0.671222 | alexbatashev |
56aa1a1438243572aa725f37b93b57fe6b1d1615 | 215 | cpp | C++ | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | exercises/X.5/X.5.8.cpp | tmdefreitas/cpp4e | 1e034bb0fa849903b6a2efe31e7817ebd6f5173e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
int main(){
vector<string> v{"Kant", "Plato", "Aristotle", "Kierkegard", "Hume"};
for (auto i = v.begin(); i != v.end(); ++i)
cout << *i << ' ';
}
| 21.5 | 71 | 0.567442 | tmdefreitas |
56b356366350355144c73d7e05ed06b0e8561746 | 5,196 | cc | C++ | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | BtPhone/bt/bluetooth_multi_block.cc | lixiaozhang/sdl_core | c439661b160172676eff0f154049cf8cea50596a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Ford Motor Company
* All rights reserved.
*
*/
#include "include/bluetooth_multi_block.h"
#include <math.h>
/* constructor */
bluetooth_multi_block::bluetooth_multi_block(double sample_rate, double center_freq, double squelch_threshold)
{
d_cumulative_count = 0;
d_samp... | 27.204188 | 130 | 0.699577 | lixiaozhang |
56b7d7c42b1e090165bd2225d2c96f4adc2a8825 | 1,526 | cpp | C++ | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | 557ReverseWordsinaStringIII/main.cpp | warjiang/leetcode | 2c00b1406fc3680a7a0ecf1842b3544a0ca28185 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <stack>
using namespace std;
vector<string> splitString(string str,string split){
vector<string> ret;
string::size_type lastpos,pos;
lastpos = 0;
pos = str.find(split);
while (pos!=string::npos){
string temp = str.substr(las... | 22.441176 | 63 | 0.45675 | warjiang |
56bbfb252ef09c5f16419da5baafc0a83327077a | 673 | cc | C++ | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | 3 | 2017-04-03T07:07:19.000Z | 2019-10-31T10:51:27.000Z | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | null | null | null | cpp/delete-node-in-a-linked-list/main.cc | bcbcarl/leetcode | 817da2774b07a9b6ef6d7a48120a36e93ef7908e | [
"MIT"
] | null | null | null | #include <iostream>
struct ListNode {
int val;
ListNode* next;
ListNode(int x): val(x), next(nullptr) {}
};
class Solution {
public:
void deleteNode(ListNode* node);
};
void Solution::deleteNode(ListNode* node) {
*node = *node->next;
}
int main() {
ListNode node1(5);
ListNode node2(3);
ListNode node... | 18.189189 | 94 | 0.606241 | bcbcarl |
56c54997a0d0ac9ee7fa95ebf4e062a511ee24c9 | 664 | hpp | C++ | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | Consumers/Console/GpLogConsumerConsole.hpp | aofitserov/GpLog | 79529d415b647c6cf5701d7190e32c57cfe8a87b | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../GpLogConsumer.hpp"
namespace GPlatform {
class GpLogConsumerConsole final: public GpLogConsumer
{
public:
CLASS_REMOVE_CTRS_DEFAULT_MOVE_COPY(GpLogConsumerConsole)
CLASS_DECLARE_DEFAULTS(GpLogConsumerConsole)
public:
GpLogConsumerConsole ... | 30.181818 | 96 | 0.649096 | aofitserov |
56c76f6bb0f11fc5c66a2e921a7fc29368e626b2 | 218 | cpp | C++ | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | src/core/src/sge_core/base/Error.cpp | SimpleTalkCpp/SimpleGameEngine | 755c989995d07768bdc77175404fdcb2eb69c2e6 | [
"MIT"
] | null | null | null | #include "Error.h"
#include <sge_core/log/Log.h>
namespace sge {
Error::Error(const SrcLoc& loc, StrView msg)
: _loc(loc), _msg(msg)
{
SGE_LOG("Error: {}", msg);
SGE_ASSERT(false);
}
} // namespace
| 15.571429 | 46 | 0.614679 | SimpleTalkCpp |
56c83a80101ec1fcda9503bdb84a1528d5b1bedf | 5,221 | cpp | C++ | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | src/parser_helpers.cpp | ac56/C-Compiler | ccc32eadbb1898bd657107bcadb0a075475f03b3 | [
"MIT"
] | null | null | null | #include <string>
#include <algorithm>
#include <bitset>
#include <iostream>
#include "parser_helpers.hpp"
using namespace std;
DeclarationSpecifiers get_storage_class_specifier(DeclarationSpecifiers ds) {
return static_cast<DeclarationSpecifiers>(ds & 0b11111000000000);
}
DeclarationSpecifiers get_type_specifie... | 39.255639 | 106 | 0.701015 | ac56 |
56c9e15ac2a64a52b0a8c59303c4d40d8bcc8551 | 3,625 | cpp | C++ | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 18 | 2016-05-10T15:54:05.000Z | 2022-03-29T22:27:30.000Z | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 4 | 2017-04-12T12:52:14.000Z | 2019-05-10T10:50:48.000Z | vizpoint.cpp | ftynse/clint | d9be5631156d4b93dd8a6897503141a3bc652fac | [
"BSD-3-Clause"
] | 3 | 2019-05-10T09:30:20.000Z | 2020-12-20T08:08:20.000Z | #include <QtGui>
#include <QtWidgets>
#include "vizpoint.h"
#include "vizprojection.h"
const int VizPoint::NO_COORD;
VizPoint::VizPoint(VizPolyhedron *polyhedron) :
QGraphicsObject(polyhedron), m_polyhedron(polyhedron) {
setFlag(QGraphicsItem::ItemIsSelectable);
setFlag(QGraphicsItem::ItemIsMovable);
setFlag... | 31.25 | 102 | 0.729655 | ftynse |
08d1c9ee2b263aa11dbf3370fe8fd500199ed93a | 800 | hpp | C++ | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 4 | 2021-12-20T19:35:20.000Z | 2021-12-27T10:59:35.000Z | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | null | null | null | libraries/engine/public/Engine.hpp | cledant/particle_system_vulkan | d321eb6bae618138ad445368fa10b25a27a55d02 | [
"MIT"
] | 3 | 2021-12-27T06:51:00.000Z | 2021-12-31T07:42:45.000Z | #ifndef PARTICLE_SYS_VULKAN_ENGINE_HPP
#define PARTICLE_SYS_VULKAN_ENGINE_HPP
#include "IOManager.hpp"
#include "Camera.hpp"
#include "EventHandler.hpp"
#include "Perspective.hpp"
#include "VulkanRenderer.hpp"
#include "Ui.hpp"
#include "ModelInstanceInfo.hpp"
class Engine final
{
public:
Engine() = default;
... | 22.857143 | 50 | 0.7125 | cledant |
08d1d2c5b6c8f24eaa5c0ceef7581c4bc0336445 | 649 | cpp | C++ | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | Info/Info/StagePlayTime/StagePlayTime.cpp | Teles1/LuniaAsio | 62e404442cdb6e5523fc6e7a5b0f64a4471180ed | [
"MIT"
] | null | null | null | #pragma once
#include "StagePlayTime.h"
namespace Lunia {
namespace XRated {
namespace Database {
namespace Info {
void StagePlayTime::Serialize(Serializer::IStreamWriter& out) const
{
out.Begin(L"AllM::XRated::Database::Info::StagePlayTimeInfo");
out.Write(L"AveragePlayTime", AveragePlayTime);... | 28.217391 | 71 | 0.701079 | Teles1 |
08e375d113f6bb9bd254539c84a3a4ad9b6008ec | 1,525 | hpp | C++ | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | 2 | 2018-02-07T01:19:37.000Z | 2018-02-09T14:27:48.000Z | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | Frameworks/Helmet/Core/src/Thread/Mutex.hpp | hatboysoftware/helmet | 97f26d134742fdb732abc6177bb2adaeb67b3187 | [
"Zlib"
] | null | null | null | //-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
// Helmet Software Framework
//
// Copyright (C) 2018 Hat Boy Software, Inc.
//
// @author Matthew Alan Gray - <mgray@hatboysoftware.com>
// @author Tony Richards - <trichards@indiezen.com>
//-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-... | 22.426471 | 80 | 0.403934 | hatboysoftware |
08e5bd8c625c56319fb1f55f6f1a6d2a0a51b838 | 1,929 | cpp | C++ | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | 1 | 2022-02-24T04:32:07.000Z | 2022-02-24T04:32:07.000Z | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | null | null | null | downloadtool/writeclient.cpp | canghenzhilei123/downloadtool | 1b58e8b3308febcb9f34f04ebcce8a4bfa7712c5 | [
"MIT"
] | null | null | null | #include "writeclient.h"
WriteClient::WriteClient()
{
}
//初始化静态成员变量
WriteClient* WriteClient::writeClient = nullptr;
WriteClient * WriteClient::getTcpSocketClient(){
if(writeClient == nullptr){
writeClient = new WriteClient;
unordered_map<string, string> configMap = ConfigReader::readServerConfig(... | 33.842105 | 129 | 0.599274 | canghenzhilei123 |
08ea9b946787faac58c7a98335de4d245353c590 | 1,166 | cpp | C++ | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | 8 | 2021-02-14T01:48:09.000Z | 2022-01-29T09:12:55.000Z | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | Leetcode/L1642.cpp | yanjinbin/Foxconn | d8340d228deb35bd8ec244f6156374da8a1f0aa0 | [
"CC0-1.0"
] | null | null | null | #include <numeric>
#include <vector>
#include <iostream>
#include <algorithm>
#define FOR(i, a, b) for (int i = a; i < (b); i++)
using namespace std;
// binary search
int furthestBuilding(vector<int> &heights, int bricks, int ladders) {
const int n = heights.size();
if (ladders >= n - 1) return n - 1;
vect... | 23.795918 | 69 | 0.518868 | yanjinbin |
08ef6b8f98e1d6ecc10a830288430e89684b1276 | 6,065 | cpp | C++ | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 96 | 2015-01-23T10:15:09.000Z | 2022-02-06T18:31:02.000Z | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 105 | 2015-01-14T09:01:06.000Z | 2022-03-05T06:10:39.000Z | test/tensor/test_fixed_rank_operators_arithmetic.cpp | samd2/ublas | dae5364e44e981698f3de1b0f46b06256ddaf56b | [
"BSL-1.0"
] | 157 | 2015-01-26T13:35:51.000Z | 2022-02-14T11:12:27.000Z | //
// Copyright (c) 2018-2020, Cem Bassoy, cem.bassoy@gmail.com
// Copyright (c) 2019-2020, Amit Singh, amitsingh19975@gmail.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)
//
// The authors grateful... | 25.376569 | 145 | 0.55911 | samd2 |
08f52ff15c6e14ab1a07ce7a246078a90c4c5e1a | 201 | hpp | C++ | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | include/light.hpp | Martstol/Raytracer | be7a61b32994a513e6104db1ea5bc3a39ac8e661 | [
"MIT"
] | null | null | null | #pragma once
#include "color.hpp"
#include <glm/glm.hpp>
namespace rt {
struct Light {
glm::vec3 position;
Color color;
float intensity;
};
float getLightAttenuation(float distance);
}
| 11.166667 | 43 | 0.691542 | Martstol |
08f5c7dda582bb390256b2c599f0cadb6e3ca280 | 3,247 | cpp | C++ | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | bzoj/1014.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #pragma GCC optimize 2
#include <bits/stdc++.h>
#define N 100020
#define mod 998244353
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
ch... | 21.084416 | 63 | 0.453342 | swwind |
08f797ff05bc6118f221cecdeca564c870ef170d | 14,795 | cc | C++ | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | src/game/TileEngine/Environment.cc | hb029/JA-2-Stracciatella | e5f1d65359e6dfd4109cc8c04b1917ddd4a1f156 | [
"BSD-Source-Code"
] | null | null | null | #include "Font_Control.h"
#include "Lighting.h"
#include "Environment.h"
#include "RenderWorld.h"
#include "Sound_Control.h"
#include "Overhead.h"
#include "Game_Clock.h"
#include "Quests.h"
#include "Ambient_Control.h"
#include "AIMMembers.h"
#include "Strategic_Event_Handler.h"
#include "BobbyR.h"
#include "Mercs.h"
... | 22.973602 | 131 | 0.700777 | hb029 |
08fc5a17d69882619a629f3a66d3f0fcdc1980a3 | 505 | cpp | C++ | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | Hazelnut/src/HazelnutApp.cpp | 1111mp/Hazel | 64d35f858f67f67917ae16c7f898346976911d14 | [
"MIT"
] | null | null | null | #include <Hazel.h>
#include <Hazel/Core/EntryPoint.h>
#include "EditorLayer.h"
// #include "TestLayer.h"
// #pragma comment( linker, "/subsystem:\"windows\" /entry:\"mainCRTStartup\"" ) // ������ڵ�ַ
namespace Hazel {
class Hazelnut :public Application
{
public:
Hazelnut()
: Application("Hazel Editor... | 14.852941 | 93 | 0.6 | 1111mp |
1c0413681a7a626bf4522c62f20d71d77c41ba78 | 3,799 | hpp | C++ | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 46 | 2017-02-15T14:24:14.000Z | 2021-10-01T14:25:57.000Z | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 27 | 2017-02-15T15:13:42.000Z | 2021-08-28T15:29:01.000Z | hwlib/attic/chris/due-spi.hpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 39 | 2017-05-18T11:51:03.000Z | 2021-09-14T09:07:01.000Z | /**
* \file
* \brief Due / sam3x8e native SPI.
* \author Chris Smeele
* \date 2016-10-09
* \copyright Copyright (c) 2016, Chris Smeele
*
* 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)
*/
#pra... | 31.92437 | 98 | 0.501974 | TheBlindMick |
1c091b9e7478c8a027cb5e61564533e39dcd26e6 | 1,126 | cpp | C++ | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | Changrui/C++/Kattis_Free_Food.cpp | Kattis-Everyday/KattisSolutions | ac422563fd6b1c08e098a52e7fce06852f61c180 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Kattis_Free Food
//
// Created by mcr on 24/10/2020.
//
#pragma GCC optimize(3,"Ofast","inline")
//#include <bits/stdc++.h>
#include<iostream>
#include<sstream>
#include<iomanip>
#include<math.h>
#include<string>
#include<vector>
#include<queue>
#include<map>
#include<stack>
#include<set>
#incl... | 16.318841 | 44 | 0.587922 | Kattis-Everyday |
1c0a751d644df835f363fa0fc5b061f1282eb853 | 1,988 | cpp | C++ | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | DemoProject/Kameleon/AnimateImage.cpp | spywhere/Legacy-ParticlePlay | 0c1ec6e4706f72b64e0408cc79cdeffce535b484 | [
"BSD-3-Clause"
] | null | null | null | #include "AnimateImage.hpp"
AnimateImage::AnimateImage(int delay){
this->delay = delay;
this->currentFrame = 0;
this->currentTime = 0;
this->width = 0;
this->height = 0;
}
void AnimateImage::AddImage(ppImage* image, int offsetX, int offsetY){
this->frames.push_back(image);
this->offsetX.push_back(offsetX);
th... | 22.337079 | 93 | 0.677062 | spywhere |
1c0daa45ec57664ccb1c164c0a7cdd0b7dc62640 | 184 | cpp | C++ | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 581 | 2018-06-10T10:37:55.000Z | 2022-03-30T14:56:53.000Z | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 172 | 2018-06-13T12:33:26.000Z | 2022-03-26T07:21:41.000Z | test/llvm_test_code/module_wise/module_wise_1/src2.cpp | flix-/phasar | 85b30c329be1766136c8cbc6f925cb4fd1bafd27 | [
"BSL-1.0"
] | 137 | 2018-06-10T10:31:14.000Z | 2022-03-06T11:53:56.000Z | #include "src2.h"
void leak_taint(int i) {
// this should just provide a sink
}
int sanitize(int i) {
if (i == 13) {
return 0;
} else {
return i;
}
}
| 13.142857 | 38 | 0.51087 | flix- |
1c0e207601a3694788988ba6653328e15ac35498 | 4,328 | hpp | C++ | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | std/static_poly/encap.hpp | torbjoernk/cpp_tech_demos | 84ba9807e7ecdc439f18e00b678282e010836d89 | [
"MIT"
] | null | null | null | #ifndef _STATIC_POLY__ENCAP_HPP_
#define _STATIC_POLY__ENCAP_HPP_
#include <iostream>
#include <type_traits>
using namespace std;
#include "static_poly_traits.hpp"
template<
typename TimeT,
typename SpatialT
>
class Encapsulation
{
static_assert(is_floating_point<TimeT>::value,
"temporal type ... | 30.478873 | 121 | 0.694316 | torbjoernk |
1c11a0d9d0b8384a5357b98b3bbcc180f753768f | 907 | cpp | C++ | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:58:54.000Z | 2021-05-09T00:12:52.000Z | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 7 | 2019-02-12T21:15:29.000Z | 2019-03-05T23:41:45.000Z | lib/gitpp/src/Blob.cpp | Templar-von-Midgard/tgit | d3d1f5148d7570d17672b02ae571ba3589d48713 | [
"MIT"
] | 3 | 2019-02-20T11:59:34.000Z | 2019-04-16T10:31:46.000Z | #include "Blob.hpp"
#include <git2/blob.h>
#include "ObjectId.hpp"
#include "Repository.hpp"
namespace gitpp {
Blob::~Blob() = default;
std::optional<Blob> Blob::fromId(const Repository& repo, const ObjectId& id) noexcept {
git_blob* handle = nullptr;
if (git_blob_lookup(&handle, repo.handle(), id.handle()) ==... | 23.25641 | 87 | 0.701213 | Templar-von-Midgard |
1c1f2370817e9ad0d7be6bc77ed207a8b5fb6423 | 13,040 | cpp | C++ | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | src/klsupport.cpp | iclue-summer-2020/coxeter | 4d8f2ab271387db6550880a6b9bb64b6b2118477 | [
"MIT"
] | null | null | null | /*
This is klsupport.cpp
Coxeter version 3.0 Copyright (C) 2002 Fokko du Cloux
See file main.cpp for full copyright notice
*/
#include <coxeter/klsupport.h>
/*
This module contains code for the operations that can be "factored out"
amongst the various k-l tables : the ordinary one, the inverse one, and
... | 22.678261 | 79 | 0.62362 | iclue-summer-2020 |
1c29b9bdf60312afc68f7d855e00f438907bfc7a | 4,752 | cpp | C++ | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | 2 | 2015-12-30T00:32:09.000Z | 2016-02-27T14:50:06.000Z | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | Source/EngineIDE/EngineIDEApplication.cpp | vivienneanthony/MyForkEditor | 273e15ca3610b3d3b68fdf2efbac2ba1b3659e7f | [
"Apache-2.0"
] | null | null | null | //
// EngineSTD - EngineIDE Development Interface
//
// Programmers :
// Viviennie Anthony
// Andrej Skorinko
//
// Vivienne Anthony - Copyright (c) 2008-2015
//
#include "EngineIDEStd.h"
#include "GameLogic/EditorGameLogic.h"
#include "EngineIDEApplication.h"
// Core editor headers
#include "Cor... | 25.010526 | 110 | 0.71633 | vivienneanthony |
1c301be6d48b2e25d7a824238159737bcb2c1194 | 1,173 | cpp | C++ | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | 1 | 2020-02-27T15:52:01.000Z | 2020-02-27T15:52:01.000Z | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | null | null | null | src/lib/matrix.cpp | pimonteiro/CG | c117edfbc1971c6246a1dca5f0ce2066edaa103a | [
"MIT"
] | null | null | null | #include "headers/matrix.h"
#include <cmath>
void buildRotMatrix(float *x, float *y, float *z, float *m) {
m[0] = x[0];
m[1] = x[1];
m[2] = x[2];
m[3] = 0;
m[4] = y[0];
m[5] = y[1];
m[6] = y[2];
m[7] = 0;
m[8] = z[0];
m[9] = z[1];
... | 23 | 86 | 0.356351 | pimonteiro |
1c34e2b351fc1ffc5ff5627122fa54bfc6c8c643 | 524 | cpp | C++ | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | null | null | null | test/redis_test.cpp | xgm-skywave/xeve | 0f18a7e85e4851aed68748c2e621c26e39dcb3f6 | [
"MIT"
] | 1 | 2020-11-10T05:34:42.000Z | 2020-11-10T05:34:42.000Z |
#include "test_common.h"
#include "xdb/redis/RedisClient.h"
#include <glog/logging.h>
#include <memory>
#ifdef OPEN_REDIS_CLIENT
//------------------------------------------------------------------------
// 测试Redis连接
//------------------------------------------------------------------------
TEST_UNIT(TestRedisCon... | 22.782609 | 74 | 0.501908 | xgm-skywave |
1c40427bc0d54ed0d8da6acc39438b856ecd18d8 | 1,177 | cpp | C++ | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | ZOJ/4025/hash.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <functional>
#include <iterator>
#define SIZE 100010
#define OFFSET 200010
#de... | 21.017857 | 51 | 0.540357 | codgician |
1c47e04b85e4097e0b31890a20d7a1e3e579881c | 707 | hpp | C++ | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | Plugins/Common/Public/Prismal/Utils/NoConstruct.hpp | PrismalEngine/prismal-engine | 40b73594e603d82edf0052fd69ce71161f48549d | [
"MIT"
] | null | null | null | /**
* @file NoConstruct.hpp
* @author Zachary Frost
* @date Created on 2021-04-28
* @copyright See LICENSE.md at repo root
* @brief Helpers for classes that can't be constructed.
*/
#pragma once
#define PR_NO_CONSTRUCT(ClassName) \
public: \
Cla... | 33.666667 | 56 | 0.475248 | PrismalEngine |
1c4b73270aee77c9880b7d92fcaa572baa59cf72 | 19,610 | cpp | C++ | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/image/bmp.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file bmp.cpp
* @brief Ecriture des images bitmap (8,24bpp) avec ou sans palette.
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-10
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/image/precompiled.h"
#include "o3d/ima... | 23.179669 | 96 | 0.55232 | dream-overflow |
1c4d3c254589284f3ad07c6d2c71205ccbc2cda6 | 1,378 | hpp | C++ | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/core/include/fcppt/container/buffer/append_from.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// 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 FCPPT_CONTAINER_BUFFER_APPEND_FROM_HPP_INCLUDED
#define FCPPT_CONTAINER_BUFFER_APPEND_FROM... | 17.666667 | 84 | 0.727141 | pmiddend |
1c4d7bb923510bd97fdabdad032b5f7d9b8d07db | 449 | cpp | C++ | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | example/code/libraryA/src/libraryASub/LibraryASub.cpp | iblis-ms/cmake_add_target | 88c9c29337ff8cd0f3946de84a6586a0d4f563fc | [
"MIT"
] | null | null | null | #include "LibraryASub/LibraryASub.hpp"
#include <LibraryInterfaceB.hpp>
#include <LibraryInterfaceA.hpp>
#include <iostream>
namespace NLibraryA
{
CLibraryASub::CLibraryASub()
{
std::cout<<"CLibraryASub\n";
NLibraryInterfaceB::CLibraryInterfaceB b;
NLibraryInterfaceA::CLibraryInterfaceA a;
#ifdef DEFINE_LIB_A
st... | 21.380952 | 62 | 0.750557 | iblis-ms |
1c52e534ec053556c4779b621be17179225ead2a | 2,977 | cpp | C++ | android-28/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/javax/crypto/Mac.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../JByteArray.hpp"
#include "../../JObject.hpp"
#include "../../JString.hpp"
#include "../../java/nio/ByteBuffer.hpp"
#include "../../java/security/Provider.hpp"
#include "../../java/security/Provider_Service.hpp"
#include "./MacSpi.hpp"
#include "./Mac.hpp"
namespace javax::crypto
{
// Fields
// QJni... | 18.490683 | 81 | 0.63218 | YJBeetle |
1c67498588d9ed9ef41f3b2e8d4370762a2f8e87 | 22,197 | cpp | C++ | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 47 | 2021-11-08T15:16:02.000Z | 2022-03-23T17:06:54.000Z | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 2 | 2021-11-09T00:39:03.000Z | 2021-11-09T09:43:27.000Z | hdr_sampling/src/hdr_sample.cpp | nvpro-samples/vk_samples | c1e473275db907d1500be16bda47e0c6948e8b64 | [
"Apache-2.0"
] | 3 | 2021-11-27T04:13:20.000Z | 2022-02-11T05:20:48.000Z | /*
* Copyright (c) 2014-2021, NVIDIA 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 ... | 41.412313 | 135 | 0.686985 | nvpro-samples |
1c67c55c417563f795a2d8dc17b6ad69cdc80067 | 777 | cpp | C++ | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | cpp/arrays1.cpp | lcary/tmp | 1ea8e06bc25d13f5be6a0ac578d3302ee2134a77 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
const int MAX_SIZE = 10;
void input_number(int index, int (&arr)[MAX_SIZE]);
double get_average(int size, int arr[MAX_SIZE]);
int main() {
double avg;
int i, size, sum;
int arr[MAX_SIZE];
cout << "Enter size <= " << MAX_SIZE << ": ";
cin >> size;
f... | 16.531915 | 51 | 0.545689 | lcary |
1c6afb422ab4eb0719c86f8ab4cae2335e4553ce | 444 | hpp | C++ | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | sources/airplane/SpriteNode.hpp | GatorQue/ct-sfml-example | f4bf110d8ff8c9087b052d55468faa30608df173 | [
"MIT"
] | null | null | null | #ifndef SOURCES_SCOUT_SPRITENODE_HPP_
#define SOURCES_SCOUT_SPRITENODE_HPP_
#include "SceneNode.hpp"
#include <SFML/Graphics/Sprite.hpp>
class SpriteNode : public SceneNode
{
public:
explicit SpriteNode(const sf::Texture& texture);
SpriteNode(const sf::Texture& texture, const sf::IntRect& rect);
private... | 21.142857 | 86 | 0.752252 | GatorQue |
1c6b12000c7e371996cc24cdd0b04b70acd17fb9 | 1,518 | cpp | C++ | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/math/ScreenCoords2WorldCoords.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | #include <vs/base/math/ScreenCoords2WorldCoords.h>
namespace vs
{
namespace base
{
namespace math
{
ScreenCoords2WorldCoords::ScreenCoords2WorldCoords()
: xScreenHalf(1), yScreenHalf(1), viewingAngle(1), ratio(1),
viewingPlaneX(1, 0, 0), viewingPlaneY(0, 1, 0), viewingPlaneZ(0, 0, 1),
position(0, 0, 0), up(0, ... | 30.979592 | 81 | 0.653491 | sizilium |
1c6df3e502aa02b3658ca0436f830b7b8e29f1f5 | 782 | hpp | C++ | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 409 | 2015-01-03T00:08:16.000Z | 2021-11-29T05:42:06.000Z | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 185 | 2015-01-03T14:52:31.000Z | 2021-11-19T20:58:48.000Z | include/SSVOpenHexagon/Data/CapColor.hpp | duck-37/SSVOpenHexagon | f4af15149de5c9d3b843cbfe2abcd9b68a9876d1 | [
"AFL-3.0"
] | 74 | 2015-01-12T19:08:54.000Z | 2021-11-22T23:43:59.000Z | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVOpenHexagon/Data/ColorData.hpp"
#include <variant>
namespace Json {
class Value;
}
namespace ssvuj {
using Obj = Json::Value;
}
namespac... | 19.073171 | 69 | 0.650895 | duck-37 |
cc62001e42fe56ed06559029a2e389ad7c7e5b4f | 38,071 | cpp | C++ | Sources/Tools/EPI/GUI/GuiDocument.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | 2 | 2015-04-16T01:05:53.000Z | 2019-08-26T07:38:43.000Z | Sources/Tools/EPI/GUI/GuiDocument.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | Sources/Tools/EPI/GUI/GuiDocument.moc.cpp | benkaraban/anima-games-engine | 8aa7a5368933f1b82c90f24814f1447119346c3b | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2010, Anima Games, Benjamin Karaban, Laurent Schneider,
* Jérémie Comarmond, Didier Colin.
* 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 ... | 37.178711 | 168 | 0.535 | benkaraban |
cc64df48b21af64704a038db920cbc4f0990ef55 | 3,227 | cpp | C++ | source/pipeline/pipeline.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 2 | 2022-03-25T00:37:25.000Z | 2022-03-26T00:13:53.000Z | source/pipeline/pipeline.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | null | null | null | source/pipeline/pipeline.cpp | AlejandroC1983/cvrtgi | 9894fc79d4036a0490dbc194b9d04654574f16d4 | [
"Apache-2.0"
] | 1 | 2022-03-02T21:11:29.000Z | 2022-03-02T21:11:29.000Z | /*
Copyright 2022 Alejandro Cosin & Gustavo Patow
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writ... | 29.605505 | 160 | 0.546638 | AlejandroC1983 |
cc64eab01773c383aac25adff2bfb7f94eedb2ea | 2,346 | cpp | C++ | src/database/overlay/SoXipOverlayActions.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/database/overlay/SoXipOverlayActions.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/database/overlay/SoXipOverlayActions.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens 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.... | 24.185567 | 81 | 0.731032 | OpenXIP |
cc6fc419f654e8f2841d67a3330699198cf3ef59 | 10,308 | cpp | C++ | pugl/pugl_win.cpp | thunderox/stegosaurus | dc8fd7a2d213358db00eadea6a25c323b7925098 | [
"0BSD"
] | 13 | 2016-05-05T12:07:04.000Z | 2021-08-03T17:10:00.000Z | pugl/pugl_win.cpp | thunderox/stegosaurus | dc8fd7a2d213358db00eadea6a25c323b7925098 | [
"0BSD"
] | 14 | 2016-09-09T14:25:32.000Z | 2021-07-27T18:20:14.000Z | pugl/pugl_win.cpp | thunderox/stegosaurus | dc8fd7a2d213358db00eadea6a25c323b7925098 | [
"0BSD"
] | 8 | 2016-09-09T14:32:16.000Z | 2020-06-19T04:03:28.000Z | /*
Copyright 2012-2014 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THIS SOFTWARE IS PROVIDED "AS IS" AND... | 23.588101 | 77 | 0.705957 | thunderox |
cc730640681fe676b5dca79343d6e9b592bd51eb | 7,781 | cpp | C++ | tools/Daemon.cpp | highinit/hiaux | 39af5d9572ab4a16177fa31756cc0e0369090a3e | [
"BSD-2-Clause"
] | null | null | null | tools/Daemon.cpp | highinit/hiaux | 39af5d9572ab4a16177fa31756cc0e0369090a3e | [
"BSD-2-Clause"
] | null | null | null | tools/Daemon.cpp | highinit/hiaux | 39af5d9572ab4a16177fa31756cc0e0369090a3e | [
"BSD-2-Clause"
] | null | null | null | #include "Daemon.h"
void Daemon::fallDown(std::string _s) {
std::cout << _s << std::endl;
exit(1);
}
void Daemon::onFinished() {
}
void Daemon::parseConfig(const std::string &_config_file) {
try {
m_config = LoadConf::load(_config_file, m_required_params, m_optional_params);
}
catch (const std::string s) ... | 21.201635 | 113 | 0.629868 | highinit |
cc76d590d6be67978a7183a651032ae18135e3fd | 3,438 | cpp | C++ | interface/cli/cli.cpp | Jayveer/Gcx | 28b3926ad1b441e9e93b9db5e24c1b578a595e38 | [
"MIT"
] | 5 | 2021-10-20T23:49:01.000Z | 2022-03-15T17:53:39.000Z | interface/cli/cli.cpp | Jayveer/Gcx | 28b3926ad1b441e9e93b9db5e24c1b578a595e38 | [
"MIT"
] | null | null | null | interface/cli/cli.cpp | Jayveer/Gcx | 28b3926ad1b441e9e93b9db5e24c1b578a595e38 | [
"MIT"
] | null | null | null | #include "cli.h"
CLI::CLI(int argc, char** argv) {
this->argc = argc;
this->argv = argv;
}
CLI::~CLI() {
}
void CLI::processCommands() {
while (currentArg < 4 && isCommand(argv[currentArg])) {
setCommand(argv[currentArg]);
currentArg++;
}
}
void CLI::setCommand(char* arg) {
if (!strcmp(arg, "-MGS4") || !... | 21.354037 | 117 | 0.646306 | Jayveer |
cc78de2e14edd5a2e5225b2e65aece866d9edf2f | 328,825 | inl | C++ | src/ucd/composition.g.inl | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 25 | 2016-10-21T12:37:23.000Z | 2021-02-22T05:46:46.000Z | src/ucd/composition.g.inl | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | null | null | null | src/ucd/composition.g.inl | libogonek/ogonek | 46b7edbf6b7ff89892f5ba25494749b442e771b3 | [
"CC0-1.0"
] | 4 | 2016-09-05T10:23:18.000Z | 2020-07-09T19:37:37.000Z | // Ogonek
//
// Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com>
//
// To the extent possible under law, the author(s) have dedicated all copyright and related
// and neighboring rights to this software to the public domain worldwide. This software is
// distributed without any warranty.
//
// You s... | 407.971464 | 720 | 0.452955 | libogonek |
cc81d02666e9db790a2d94ac45cd231550657bde | 2,130 | cpp | C++ | TP3/self_assembly_dfs_stack_wrong.cpp | Mael-zys/INF280 | a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9 | [
"MIT"
] | null | null | null | TP3/self_assembly_dfs_stack_wrong.cpp | Mael-zys/INF280 | a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9 | [
"MIT"
] | null | null | null | TP3/self_assembly_dfs_stack_wrong.cpp | Mael-zys/INF280 | a4e4ce3de847d0eeadd5e52da7ec3c5dac6016c9 | [
"MIT"
] | null | null | null | //DFS to detect if a cycle exists
#include<stdlib.h>
#include<iostream>
#include<vector>
#include<unordered_map>
#include<string>
#include<stack>
#include<unordered_set>
using namespace std;
//change the molecule type from string to int, if t = A+, change it to 0, t = A-, change it to 1;
int moleculeType(string t) {
... | 25.97561 | 109 | 0.479343 | Mael-zys |
cc8629e79590ebec8119007671166d3648e2a614 | 9,268 | cpp | C++ | foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/tests-core/src/foedus/xct/test_xct_mcs_impl_ww.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 30.486842 | 96 | 0.620954 | sam1016yu |
cc894738a55bcc7209709df3ac3ca31665cf4a48 | 466 | cpp | C++ | src/inspector_editor.cpp | darilrt/ImTex | 5512f40d45e3551f35981906771755b857aa7766 | [
"MIT"
] | null | null | null | src/inspector_editor.cpp | darilrt/ImTex | 5512f40d45e3551f35981906771755b857aa7766 | [
"MIT"
] | null | null | null | src/inspector_editor.cpp | darilrt/ImTex | 5512f40d45e3551f35981906771755b857aa7766 | [
"MIT"
] | null | null | null | #include "inspector_editor.h"
#include "node_editor.h"
#include "node.h"
InspectorEditor::InspectorEditor(NodeEditor* _nodeEditor) {
open = true;
title = "Inspector";
nodeEditor = _nodeEditor;
}
void InspectorEditor::OnDraw() {
if (nodeEditor->selectedNodes.size()) {
nodeEditor->sele... | 20.26087 | 59 | 0.654506 | darilrt |
cc8c05160a42b7015ab7e78223d988649fcec9c5 | 4,776 | cpp | C++ | src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp | eklipse2k8/XamlBehaviors | bbb557689ae40b2786c68ad6c9be7219a22b4563 | [
"MIT"
] | null | null | null | src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp | eklipse2k8/XamlBehaviors | bbb557689ae40b2786c68ad6c9be7219a22b4563 | [
"MIT"
] | null | null | null | src/BehaviorsSDKNative/Microsoft.Xaml.Interactivity/BehaviorCollection.cpp | eklipse2k8/XamlBehaviors | bbb557689ae40b2786c68ad6c9be7219a22b4563 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "BehaviorCollection.h"
namespace winrt
{
using namespace Windows::ApplicationModel;
using namespace Windows::Foundation::Collections;
using na... | 25.269841 | 133 | 0.651801 | eklipse2k8 |
cc934eef2dcf518daf8b6127e1117d8e2d36691a | 79,849 | hpp | C++ | include/hana23/move_only_function.hpp | zhihaoy/polyfill-23 | 4195f2860fa0edd9755839444bbc0c1e16d1ece6 | [
"Apache-2.0"
] | 6 | 2022-01-17T19:31:06.000Z | 2022-01-22T22:05:43.000Z | include/hana23/move_only_function.hpp | zhihaoy/polyfill-23 | 4195f2860fa0edd9755839444bbc0c1e16d1ece6 | [
"Apache-2.0"
] | 4 | 2022-01-18T02:31:46.000Z | 2022-02-03T09:35:41.000Z | include/hana23/move_only_function.hpp | zhihaoy/polyfill-23 | 4195f2860fa0edd9755839444bbc0c1e16d1ece6 | [
"Apache-2.0"
] | 1 | 2022-01-18T01:48:48.000Z | 2022-01-18T01:48:48.000Z | #ifndef HANA23_MOVE_ONLY_FUNCTION_HPP
#define HANA23_MOVE_ONLY_FUNCTION_HPP
#include "utility/move_only_function.hpp"
#include <functional>
#include <iostream>
#include <memory>
#include <type_traits>
#include <utility>
#include <cassert>
#include <cstddef>
namespace hana23 {
template <typename T> class move_only_fu... | 34.152695 | 316 | 0.710053 | zhihaoy |
cc95c403757a1f50087ed2999725d89e5c5424ed | 980 | cpp | C++ | Application/src/Animation.cpp | kth0522/CS380_HW2 | a182c0a71112160a94461fae21fd6ba0a2ab14dc | [
"MIT"
] | null | null | null | Application/src/Animation.cpp | kth0522/CS380_HW2 | a182c0a71112160a94461fae21fd6ba0a2ab14dc | [
"MIT"
] | null | null | null | Application/src/Animation.cpp | kth0522/CS380_HW2 | a182c0a71112160a94461fae21fd6ba0a2ab14dc | [
"MIT"
] | null | null | null | #include <Animation.hpp>
Animation::Animation()
{
_objects = std::vector<Engine::RenderObject*>();
}
Animation::~Animation()
{
_objects.clear();
}
void Animation::AddObject(Engine::RenderObject* object)
{
_objects.push_back(object);
}
void Animation::Animate(Engine::Camera* cam, float deltaTime)
{
/... | 28.823529 | 142 | 0.60102 | kth0522 |
cc96872a0808fe25d9e825f28f5a9294c3fd128a | 821 | cpp | C++ | src/litequarks/src/LQColor.cpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | 2 | 2020-01-23T18:16:57.000Z | 2022-03-09T15:01:49.000Z | src/litequarks/src/LQColor.cpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | null | null | null | src/litequarks/src/LQColor.cpp | valfvo/punyduck | 53bf87babef39023574881b73f141611274b2842 | [
"MIT"
] | 2 | 2020-01-23T14:07:13.000Z | 2020-04-01T00:48:48.000Z | #include <litequarks/LQColor.hpp>
//constructeurs
LQColor::LQColor()
: m_r(0.0f), m_g(0.0f), m_b(0.0f), m_a(1.0f)
{
}
LQColor::LQColor(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
: m_r(r), m_g(g), m_b(b), m_a(a)
{
}
LQColor::LQColor(GLint r, GLint g, GLint b, GLint a)
: m_r(r/255.0f), m_g(g/255.0f), m_b(b/255.0f), m... | 12.828125 | 60 | 0.610231 | valfvo |
cca3fa8afe6132e0df085b326f2e70d530071a65 | 734 | hpp | C++ | table/include/item.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 12 | 2017-08-27T21:12:30.000Z | 2018-09-17T05:42:42.000Z | table/include/item.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 1 | 2021-06-16T20:44:33.000Z | 2021-06-16T20:44:33.000Z | table/include/item.hpp | TheAspiringHacker/Asparserations | 2962c685f5aa36fde966a1ea2a4549401c39ba37 | [
"MIT"
] | 1 | 2021-07-27T07:42:26.000Z | 2021-07-27T07:42:26.000Z | #ifndef ASPARSERATIONS_TABLE_ITEM_H_
#define ASPARSERATIONS_TABLE_ITEM_H_
namespace asparserations {
namespace grammar {
class Production;
class Symbol;
class Token;
}
namespace table {
struct Item
{
Item(const asparserations::grammar::Production&, unsigned short int,
const asparser... | 24.466667 | 74 | 0.701635 | TheAspiringHacker |
cca4600010be8a91934b65a6ce1975302385312d | 935 | cpp | C++ | server/ThreadPrioWindows.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 89 | 2015-09-13T14:48:08.000Z | 2022-03-26T17:32:18.000Z | server/ThreadPrioWindows.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 77 | 2015-09-17T05:50:45.000Z | 2022-03-09T14:53:58.000Z | server/ThreadPrioWindows.cpp | kerel-fs/SoapyRemote | 29a08cc7b50ab9bb1f9d1509dff2feaaff3ef95f | [
"BSL-1.0"
] | 24 | 2015-09-26T04:54:36.000Z | 2022-02-05T15:10:08.000Z | // Copyright (c) 2015-2015 Josh Blum
// SPDX-License-Identifier: BSL-1.0
#include "ThreadPrioHelper.hpp"
#include <windows.h>
std::string setThreadPrio(const double prio)
{
int nPriority(THREAD_PRIORITY_NORMAL);
if (prio > 0)
{
if (prio > +0.75) nPriority = THREAD_PRIORITY_TIME_CRITICAL;
... | 32.241379 | 73 | 0.637433 | kerel-fs |
cca5e8690594ea81e225f275df6fca4da40ae123 | 802 | cpp | C++ | DynamicProgramming/LongestIncreSequence.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | 4 | 2020-05-14T04:41:04.000Z | 2021-06-13T06:42:03.000Z | DynamicProgramming/LongestIncreSequence.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | DynamicProgramming/LongestIncreSequence.cpp | sounishnath003/CPP-for-beginner | d4755ab4ae098d63c9a0666d8eb4d152106d4a20 | [
"MIT"
] | null | null | null | #include<iostream>
#include<bits/stdc++.h>
using namespace std ;
void calculateLIS(vector<int> &vect) {
vector<vector<int>> LongestSequence(vect.size()) ;
LongestSequence[0].push_back(vect[0]) ;
for (size_t i = 1; i < vect.size(); i++)
{
for (size_t j = 0; j < i; j++)
{
... | 19.095238 | 57 | 0.458853 | sounishnath003 |
ccad9ffa6def5558a8c19c58155f46c68de41e04 | 1,549 | hpp | C++ | fumarole_localization/include/pipeline/HistogramAnalysis.hpp | asadahmedde/advanced-project-2 | 748f8f9a575cf926646201cecb0e5a8d3bdaf377 | [
"MIT"
] | null | null | null | fumarole_localization/include/pipeline/HistogramAnalysis.hpp | asadahmedde/advanced-project-2 | 748f8f9a575cf926646201cecb0e5a8d3bdaf377 | [
"MIT"
] | null | null | null | fumarole_localization/include/pipeline/HistogramAnalysis.hpp | asadahmedde/advanced-project-2 | 748f8f9a575cf926646201cecb0e5a8d3bdaf377 | [
"MIT"
] | null | null | null | //
// HistogramAnalysis.hpp
// Pipeline element that determines the heat intensity bins
// Using the histogram of the intensities in the thermal image
//
// Note: Only supports a greyscale thermal image
//
#ifndef FUMAROLE_LOCALIZATION_HISTOGRAMANALYSIS_HPP
#define FUMAROLE_LOCALIZATION_HISTOGRAMANALYSIS_HPP
#include... | 36.880952 | 194 | 0.721756 | asadahmedde |
ccb0038a8f788eb78b736b85b1628b2946d40c23 | 90,100 | cpp | C++ | src/types/String.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 1 | 2019-10-27T15:01:57.000Z | 2019-10-27T15:01:57.000Z | src/types/String.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 5 | 2016-02-01T19:03:33.000Z | 2022-02-06T15:27:01.000Z | src/types/String.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 1 | 2019-09-18T09:52:18.000Z | 2019-09-18T09:52:18.000Z | /*******************************************************************************
* This file is part of "Patrick's Programming Library", Version 7 (PPL7).
* Web: http://www.pfp.de/ppl/
*
* $Author$
* $Revision$
* $Date$
* $Id$
*
*******************************************************************************
*... | 25.654897 | 121 | 0.702897 | pfedick |
ccb1240004e6be6d3cc377304daa60bd98a3d1c2 | 128 | cpp | C++ | CodeBase/CodeBase/Module.cpp | Maxito-Personal-Projects/CodeBase | dc38e4c6d14db2394af515461c4f62937bc4d2c0 | [
"MIT"
] | null | null | null | CodeBase/CodeBase/Module.cpp | Maxito-Personal-Projects/CodeBase | dc38e4c6d14db2394af515461c4f62937bc4d2c0 | [
"MIT"
] | null | null | null | CodeBase/CodeBase/Module.cpp | Maxito-Personal-Projects/CodeBase | dc38e4c6d14db2394af515461c4f62937bc4d2c0 | [
"MIT"
] | null | null | null | #include "Module.h"
Module::Module(string _name, bool _active)
{
name = _name;
active = _active;
}
Module::~Module()
{
}
| 8.533333 | 42 | 0.640625 | Maxito-Personal-Projects |
ccb2db85bf68ba4ea3b7eb01bf223124e896ac27 | 998 | cpp | C++ | test/src/test_derived_from.cpp | myoukaku/cpp14_concepts | 71ad57009a0e7b2cac267a6880ad56a057cdbfff | [
"MIT"
] | null | null | null | test/src/test_derived_from.cpp | myoukaku/cpp14_concepts | 71ad57009a0e7b2cac267a6880ad56a057cdbfff | [
"MIT"
] | null | null | null | test/src/test_derived_from.cpp | myoukaku/cpp14_concepts | 71ad57009a0e7b2cac267a6880ad56a057cdbfff | [
"MIT"
] | null | null | null | /**
* @file test_derived_from.cpp
*
* @brief derived_from のテスト
*
* @author myoukaku
*/
#include <cpp14_concepts.hpp>
namespace derived_from_test
{
class A {};
class B: public A {};
class C: private A{};
static_assert(cpp14_concepts::derived_from<A, A> == true, "");
static_assert(cpp14... | 29.352941 | 72 | 0.683367 | myoukaku |
ccb7181becd7803060703737b4efe8b2915e85e2 | 635 | cpp | C++ | obj.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | obj.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | obj.cpp | maxime-tournier/cpp | 303def38a523f0e5699ef389182974f4f50d10fb | [
"MIT"
] | null | null | null | // -*- compile-command: "c++ -std=c++14 obj.cpp -o obj -lstdc++ -lm -g" -*-
#include "obj.hpp"
#include <fstream>
#include <iostream>
int main(int argc, char** argv) {
obj::file f;
if(argc <= 1) {
std::cerr << "usage: " << argv[0] << " <objfile>" << std::endl;
return 1;
}
const std::string filename... | 18.676471 | 75 | 0.525984 | maxime-tournier |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.