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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
09b681e2e346b95e8f5cf0197356b2b9a8c9b28e | 23,151 | cpp | C++ | source/directxtk/src/skinnedeffect.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 38 | 2015-04-10T13:31:03.000Z | 2021-09-03T22:34:05.000Z | source/directxtk/src/skinnedeffect.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 1 | 2020-07-09T09:48:44.000Z | 2020-07-12T12:41:43.000Z | source/directxtk/src/skinnedeffect.cpp | mechasource/mechcommander2 | b2c7cecf001cec1f535aa8d29c31bdc30d9aa983 | [
"BSD-2-Clause"
] | 12 | 2015-06-29T08:06:57.000Z | 2021-10-13T13:11:41.000Z | //--------------------------------------------------------------------------------------
// File: SkinnedEffect.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// http://go.microsoft.com/fwlink/?LinkID=615561
//---------------------------------------------------... | 36.515773 | 174 | 0.735951 | mechasource |
09b7f1f42ab823cf89e9aaf5c5d453e051582626 | 3,155 | cpp | C++ | Drivers/Driver_Lagrange/src/Utils/utilities.cpp | matteofrigo5/HPC_ReverseAugmentedConstrained | d4beca47750177b34da7289f10865fb7043c76e7 | [
"MIT"
] | null | null | null | Drivers/Driver_Lagrange/src/Utils/utilities.cpp | matteofrigo5/HPC_ReverseAugmentedConstrained | d4beca47750177b34da7289f10865fb7043c76e7 | [
"MIT"
] | null | null | null | Drivers/Driver_Lagrange/src/Utils/utilities.cpp | matteofrigo5/HPC_ReverseAugmentedConstrained | d4beca47750177b34da7289f10865fb7043c76e7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <mpi.h>
#include "utilities.hpp"
#define PRINTVALS true
namespace
{
bool compareChar( char const & c1, char const & c2 )
{
if( c1 == c2 )
{
return true;
}
else if( std::toupper( c1 ) == std::toupper( c2 ) )
{
return true;
}
return false;
}
void mpi_print( char con... | 18.892216 | 114 | 0.575594 | matteofrigo5 |
09b8eb1a11c791f4a277c56baaa67b3eedd10a97 | 6,621 | cpp | C++ | sys/sync/mutex.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 15 | 2020-05-08T06:21:58.000Z | 2021-12-11T18:10:43.000Z | sys/sync/mutex.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 11 | 2020-05-08T06:46:37.000Z | 2021-03-30T05:46:03.000Z | sys/sync/mutex.cpp | apexrtos/apex | 9538ab2f5b974035ca30ca8750479bdefe153047 | [
"0BSD"
] | 5 | 2020-08-31T17:05:03.000Z | 2021-12-08T07:09:00.000Z | /*-
* Copyright (c) 2005-2007, Kohsuke Ohtani
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list o... | 24.164234 | 77 | 0.70518 | apexrtos |
09c285942f2d4692bb2914a9e6586c04daa43b61 | 2,703 | cpp | C++ | Code/Games/SampleGamePlugin/Components/RedursiveGrowthComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Games/SampleGamePlugin/Components/RedursiveGrowthComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | Code/Games/SampleGamePlugin/Components/RedursiveGrowthComponent.cpp | fereeh/ezEngine | 14e46cb2a1492812888602796db7ddd66e2b7110 | [
"MIT"
] | null | null | null | #include <SampleGamePluginPCH.h>
#include <Core/WorldSerializer/WorldReader.h>
#include <Core/WorldSerializer/WorldWriter.h>
#include <SampleGamePlugin/Components/RedursiveGrowthComponent.h>
// clang-format off
EZ_BEGIN_COMPONENT_TYPE(RecursiveGrowthComponent, 2, ezComponentMode::Static)
{
EZ_BEGIN_PROPERTIES
{
... | 27.865979 | 141 | 0.748428 | fereeh |
09cc031771e3558dd8d02235bbd5e81a05d66429 | 460,760 | cpp | C++ | Procedural Terrain_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Bulk_mscorlib_17.cpp | bsgbryan/MinTuts | a1bb11ccee0ff10e6a9594bdeb02d41f965df169 | [
"MIT"
] | 1 | 2021-06-04T18:35:56.000Z | 2021-06-04T18:35:56.000Z | Procedural Terrain_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Bulk_mscorlib_17.cpp | bsgbryan/MinTuts | a1bb11ccee0ff10e6a9594bdeb02d41f965df169 | [
"MIT"
] | null | null | null | Procedural Terrain_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Bulk_mscorlib_17.cpp | bsgbryan/MinTuts | a1bb11ccee0ff10e6a9594bdeb02d41f965df169 | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "il2cpp-class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "i... | 40.760793 | 473 | 0.799416 | bsgbryan |
09cfd0af802e077f58331b449d3787aa8dbb69a4 | 666 | cpp | C++ | lib/rpkeys/base.cpp | seanhagen/macropad | 3375e427f5606bec0d1b50ca44ac9140e686a6da | [
"MIT"
] | null | null | null | lib/rpkeys/base.cpp | seanhagen/macropad | 3375e427f5606bec0d1b50ca44ac9140e686a6da | [
"MIT"
] | null | null | null | lib/rpkeys/base.cpp | seanhagen/macropad | 3375e427f5606bec0d1b50ca44ac9140e686a6da | [
"MIT"
] | null | null | null | #include "base.h"
/*
Station::Station(void) { _setup(); }
Station::Station(stationConfig conf) {
_config = conf;
_setup();
}
*/
RPKeyboard::RPKeyboard() {
Serial.begin(115200);
// while (!Serial) { delay(10); } // wait till serial port is opened
delay(100); // RP2040 delay is not a bad idea
Serial.p... | 18.5 | 74 | 0.633634 | seanhagen |
09d052200eb4a0a2e2dce198359ddb925f636a40 | 22 | cpp | C++ | Coffee/src/CoffeePCH.cpp | SentientCoffee/HazelnutEngine | b1e9e29d50119a2882d840c47078363db71b266b | [
"Apache-2.0"
] | 1 | 2020-07-19T20:07:25.000Z | 2020-07-19T20:07:25.000Z | Coffee/src/CoffeePCH.cpp | SentientCoffee/CoffeeEngine | b1e9e29d50119a2882d840c47078363db71b266b | [
"Apache-2.0"
] | null | null | null | Coffee/src/CoffeePCH.cpp | SentientCoffee/CoffeeEngine | b1e9e29d50119a2882d840c47078363db71b266b | [
"Apache-2.0"
] | null | null | null | #include "CoffeePCH.h" | 22 | 22 | 0.772727 | SentientCoffee |
09d26388b8b89fbfaa1d1e750faa1902c5880c87 | 897 | cpp | C++ | sources/RandNano.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | sources/RandNano.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | sources/RandNano.cpp | usernameHed/Worms | 35ee28362b936b46d24e7c911a46a2cfd615128b | [
"MIT"
] | null | null | null | #include "RandNano.hh"
#include <cstdlib>
#include <ctime>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#ifdef _WIN32
#include <Windows.h>
#endif
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
#endif
RandNano::RandNano()
{
this->setRandInNano();
}
RandNano::~RandNano()
{
}
void RandNan... | 18.6875 | 71 | 0.740245 | usernameHed |
09d28960d296bbb22f4969a271c8ac4a9ca05326 | 3,882 | hpp | C++ | src/types/ds/circular_queue.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2020-07-31T14:13:56.000Z | 2021-02-03T09:51:43.000Z | src/types/ds/circular_queue.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 28 | 2015-09-22T07:38:21.000Z | 2018-10-02T11:00:58.000Z | src/types/ds/circular_queue.hpp | iamantony/CppNotes | 2707db6560ad80b0e5e286a04b2d46e5c0280b3f | [
"MIT"
] | 2 | 2018-10-11T14:10:50.000Z | 2021-02-27T08:53:50.000Z | #ifndef CIRCULAR_QUEUE_HPP
#define CIRCULAR_QUEUE_HPP
/*
https://leetcode.com/problems/design-circular-queue/description/
Design your implementation of the circular queue. The circular queue is
a linear data structure in which the operations are performed based on
FIFO (First In First Out) principle and the last posit... | 27.338028 | 79 | 0.627769 | iamantony |
09d83033574328c83b5c540bf4c080b54efd4fae | 16,526 | cc | C++ | src/mshines_render.cc | fuzziqersoftware/realmz_dasm | fbfa118de5f232fd7169fbff13d434164a67ee90 | [
"MIT"
] | 1 | 2018-03-20T13:06:16.000Z | 2018-03-20T13:06:16.000Z | src/mshines_render.cc | fuzziqersoftware/realmz_dasm | fbfa118de5f232fd7169fbff13d434164a67ee90 | [
"MIT"
] | null | null | null | src/mshines_render.cc | fuzziqersoftware/realmz_dasm | fbfa118de5f232fd7169fbff13d434164a67ee90 | [
"MIT"
] | null | null | null | #include <inttypes.h>
#include <stdlib.h>
#include <phosg/Encoding.hh>
#include <phosg/Filesystem.hh>
#include <phosg/Image.hh>
#include <phosg/Strings.hh>
#include <stdexcept>
#include <vector>
#include "IndexFormats/Formats.hh"
#include "ResourceFile.hh"
using namespace std;
struct MonkeyShinesRoom {
struct E... | 38.432558 | 113 | 0.62084 | fuzziqersoftware |
09dbed8a7f6d0555307598f6c79b491a822cbca0 | 396 | hpp | C++ | src/backgroundParticles.hpp | minhoolee/SaveTheWorld | e9d65092237db38fa475d5e32d7b71c477d303dd | [
"BSD-3-Clause"
] | null | null | null | src/backgroundParticles.hpp | minhoolee/SaveTheWorld | e9d65092237db38fa475d5e32d7b71c477d303dd | [
"BSD-3-Clause"
] | null | null | null | src/backgroundParticles.hpp | minhoolee/SaveTheWorld | e9d65092237db38fa475d5e32d7b71c477d303dd | [
"BSD-3-Clause"
] | null | null | null | #ifndef BACKGROUND_PARTICLES_HPP
#define BACKGROUND_PARTICLES_HPP
#include <SFML/Graphics.hpp>
#include <array>
class BackgroundParticles {
public:
BackgroundParticles(int n);
void animateParticlesIdle();
void animateParticlesMovement();
std::array<sf::CircleShape, 50> backgroundParticles;
... | 18.857143 | 55 | 0.739899 | minhoolee |
09dda72d49223f6f6f3d62cb095ff8988e65c2b8 | 1,489 | cpp | C++ | src/generated/ldb_trooppagecondition_flags.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | src/generated/ldb_trooppagecondition_flags.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | src/generated/ldb_trooppagecondition_flags.cpp | Albeleon/liblcf | d9dd24d0026b3ab36adb291d205c405122a4332c | [
"MIT"
] | null | null | null | /* !!!! GENERATED FILE - DO NOT EDIT !!!!
* --------------------------------------
*
* This file is part of liblcf. Copyright (c) 2017 liblcf authors.
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
*
* liblcf is Free/Libre Open Source Software, released under the MIT License.
* For the full copyright ... | 33.088889 | 77 | 0.709872 | Albeleon |
09df4b2eb1349a31d6bcc3ae7c01a67b8388a4d3 | 6,620 | cpp | C++ | src/models/reviewsmodel.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | 3 | 2019-01-05T09:54:19.000Z | 2019-02-26T09:20:23.000Z | src/models/reviewsmodel.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | 1 | 2019-01-03T10:02:01.000Z | 2019-01-03T14:08:16.000Z | src/models/reviewsmodel.cpp | Maledictus/harbour-sailreads | 2c58aa266ef2dacb790b857c3b6aced937da5c0e | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Oleg Linkin <maledictusdemagog@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 the Software without restriction, including without limitation the rights
to use, copy, modi... | 25.960784 | 97 | 0.666465 | Maledictus |
09e46675dfb06c0631712c0b461ef44d4a067078 | 1,179 | hpp | C++ | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | engine/src/vulkan/mesh/Mesh.hpp | Velikss/Bus-Simulator | 13bf0b66b9b44e3f4cb1375fc363720ea8f23e19 | [
"MIT"
] | null | null | null | #pragma once
#include <pch.hpp>
#include <vulkan/geometry/Geometry.hpp>
#include <vulkan/texture/Texture.hpp>
#include <vulkan/util/Invalidatable.hpp>
class cMesh : public cInvalidatable
{
private:
cGeometry* ppGeometry;
cTexture* ppTexture;
cTexture* ppMaterial;
public:
cMesh(cGeometry* pGeometry, c... | 19.327869 | 93 | 0.706531 | Velikss |
09e46bd9c7d97d85a2cc98e44bbe3466a6f4d569 | 688 | cpp | C++ | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | EasyFramework3d/base/util/FileException.cpp | sizilium/FlexChess | f12b94e800ddcb00535067eca3b560519c9122e0 | [
"MIT"
] | null | null | null | #include <vs/base/util/FileException.h>
namespace vs
{
namespace base
{
namespace util
{
FileException::FileException(string fileOfOccuredError, string placeOfOccuredError,
string description, string badFile)
:Exception(fileOfOccuredError, placeOfOccuredError, description), corruptedFile(badFile)
{}
... | 20.235294 | 88 | 0.768895 | sizilium |
09e8b899528544d05f6b13874715477b89dd7648 | 755 | cpp | C++ | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null | 238.cpp | mudit1729/LeetCode | 766929544b1c87ed4afed120f460d5a4053f6a33 | [
"MIT"
] | null | null | null |
class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
vector<int> left;
vector<int> right;
vector<int> sol;
int leftProduct = 1;
int rightProduct = 1;
int sz = nums.size();
left.resize(sz);
right.resize(sz);
for(int i = 0... | 29.038462 | 55 | 0.496689 | mudit1729 |
09ea20c17c26a573a528e218640c675dabbadc80 | 4,543 | cpp | C++ | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | test/test-str-convert.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------
// Copyright (c) 2016, Codalogic Ltd (http://www.codalogic.com)
// All rights reserved.
//
// The license for this file is based on the BSD-3-Clause license
// (http://www.opensource.org/licenses/BSD-3-Clause).
//
// Redistribution and use i... | 36.344 | 78 | 0.605107 | codalogic |
09ebcc68dfbb4af9f94e0032a83a7b566a3ffa0f | 30,521 | cc | C++ | proto/echo_test.pb.cc | iwtbabc/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-08-28T12:01:01.000Z | 2018-08-28T12:01:01.000Z | proto/echo_test.pb.cc | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | null | null | null | proto/echo_test.pb.cc | majianfei/irpc | 647b126450b986e73b350ed451c90d48ec3a420c | [
"MIT"
] | 1 | 2018-07-28T04:53:12.000Z | 2018-07-28T04:53:12.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: echo_test.proto
#include "echo_test.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google... | 36.683894 | 168 | 0.708135 | iwtbabc |
09f1e6a2325353bc86a80ee5418c6718e4dc34e1 | 438,576 | cpp | C++ | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | MRTK/h/Il2CppOutputProject/Source/il2cppOutput/Il2CppCCWs60.cpp | DreVinciCode/TEAM-08 | 4f148953a9f492c0fc0db7ee85803212caa1a579 | [
"MIT"
] | null | null | null | #include "pch-cpp.hpp"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
#include <limits>
#include "vm/CachedCCWBase.h"
#include "utils/New.h"
// System.Collections.Generic.Dictionary`2<Microsoft.MixedReality.Toolkit.Input.IMixedRealityPointer,System.UInt32>
struct Dict... | 43.923485 | 593 | 0.824824 | DreVinciCode |
09f394326c41452e3b3348422e9a06929717e413 | 2,279 | cpp | C++ | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | 2020/day12/main.cpp | bielskij/AOC-2019 | e98d660412037b3fdac4a6b49adcb9230f518c99 | [
"MIT"
] | null | null | null | #include "common/types.h"
#include "utils/file.h"
#include "utils/utils.h"
#define DEBUG_LEVEL 5
#include "common/debug.h"
int main(int argc, char *argv[]) {
auto lines = File::readAllLines(argv[1]);
{
Point<int> position;
int angle = 90;
for (auto &l : lines) {
int distance = utils::toInt(l.substr(1))... | 18.834711 | 82 | 0.523475 | bielskij |
09f547590222a1fc0b109f21a33c9c7a91386b5a | 526 | cpp | C++ | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | ProjectEuler/66/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define rg register
#define rep(i,x,y) for(rg int i=(x);i<=(y);++i)
#define per(i,x,y) for(rg int i=(x);i>=(y);--i)
using namespace std;
typedef long long LL;
inline LL sqr(LL x){return x*x;}
LL ansd,ansx;
int main(){
int n;scanf("%d",&n);
rep(d,1,n)if(sqr(LL(sqrt(d)))!=d){
for(LL y=1;;++y){... | 21.04 | 48 | 0.553232 | sjj118 |
09f5622660315bdacee42b4d1a8e844860ac2a21 | 7,123 | cpp | C++ | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | openEAR-0.1.0/src/smileComponent.cpp | trimlab/Voice-Emotion-Detection | c7272dd2f70e2d4b8eee304e68578494d7ef624c | [
"MIT"
] | null | null | null | /*F******************************************************************************
*
* openSMILE - open Speech and Music Interpretation by Large-space Extraction
* the open-source Munich Audio Feature Extraction Toolkit
* Copyright (C) 2008-2009 Florian Eyben, Martin Woellmer, Bjoern Schuller
*
*
* Institu... | 29.928571 | 208 | 0.701249 | trimlab |
09f802dec9f0bc3b642bc1181631a48567eac0e3 | 1,939 | hpp | C++ | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | include/uvx/method.hpp | keeword/uvx | 7e924d29c8e8d44a49447de0bf93bd60f680311f | [
"MIT"
] | null | null | null | #pragma once
#include <any>
#include <unordered_map>
#include <type_traits>
#include "functype.hpp"
namespace utils {
class methods {
private:
using method_type = std::function<std::any(std::any)>;
template <typename R, typename F>
struct invoker {
static R invoke(const F& f, std::any any) {
... | 30.296875 | 115 | 0.621454 | keeword |
09f8408031c24c372dc91a3cdaccaff97849463c | 5,210 | inl | C++ | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | null | null | null | include/Utopia/Render/details/RenderState_AutoRefl.inl | Justin-sky/Utopia | 71912290155a469ad578234a1f5e1695804e04a3 | [
"MIT"
] | 1 | 2021-04-24T23:26:09.000Z | 2021-04-24T23:26:09.000Z | // This file is generated by Ubpa::USRefl::AutoRefl
#pragma once
#include <USRefl/USRefl.h>
template<>
struct Ubpa::USRefl::TypeInfo<Ubpa::Utopia::CullMode>
: Ubpa::USRefl::TypeInfoBase<Ubpa::Utopia::CullMode>
{
static constexpr AttrList attrs = {};
static constexpr FieldList fields = {
Field{"NONE", Ubpa::Uto... | 34.966443 | 67 | 0.708445 | Justin-sky |
67006f9854b9893fb7ac37adb20133822135a87e | 1,225 | cpp | C++ | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | 1 | 2019-11-07T22:44:27.000Z | 2019-11-07T22:44:27.000Z | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | WirelessThermometer/TimerSwitchWithServo/DataStore.cpp | anders-liu/arduino-gallery | 8c65701a33358891b7105b50f831d7f5797288ad | [
"MIT"
] | null | null | null | #include <EEPROM.h>
#include "DataStore.h"
DataStore ds;
#define DS_ADDR_SERVO_OFF 0
#define DS_ADDR_SERVO_ON 1
#define DS_ADDR_SERVO_CUR 2
#define DS_ADDR_POWER_ON 3
void DataStore::setup() {
this->setUiStage(UI_STAGE_RUNNING);
uint8_t value;
value = EEPROM.read(DS_ADDR_SERVO_OFF);
this->setServoOffValue(v... | 24.5 | 62 | 0.76898 | anders-liu |
67059c9fa758079550b6625591ddb4b1ce48a904 | 2,376 | cpp | C++ | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | 37 | 2017-03-26T00:20:49.000Z | 2021-02-11T18:23:22.000Z | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | null | null | null | 7DRL 2017/Player.cpp | marukrap/woozoolike | ca16b67bce61828dded707f1c529558646daf0b3 | [
"MIT"
] | 9 | 2017-03-24T04:38:35.000Z | 2021-08-22T00:02:43.000Z | #include "Player.hpp"
Player::Player()
{
// arrow keys and Home, End, PageUp, PageDn
keyBinding[sf::Keyboard::Left] = Action::MoveLeft;
keyBinding[sf::Keyboard::Right] = Action::MoveRight;
keyBinding[sf::Keyboard::Up] = Action::MoveUp;
keyBinding[sf::Keyboard::Down] = Action::MoveDown;
keyBinding[sf::Ke... | 36 | 61 | 0.703704 | marukrap |
6707c0e5e449744b2f81657569421bf1c1b21b86 | 1,716 | cpp | C++ | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | null | null | null | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | null | null | null | DevGame/Motor2D/Settings.cpp | MAtaur00/Development-Game | 3c8ef10d9a42abc2d4547b1a67c45e98b9e29f07 | [
"MIT"
] | 5 | 2018-11-07T16:04:35.000Z | 2018-11-12T11:01:05.000Z | #include "Settings.h"
#include "j1Gui.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "p2Log.h"
#include "j1Window.h"
#include "j1App.h"
#include "Menu.h"
#include "Brofiler/Brofiler.h"
Settings::Settings()
{
name.create("credits");
}
Settings::~Settings() {}
bool Settings::Awake(pugi::xml_node& conf)
{
... | 21.721519 | 145 | 0.674825 | MAtaur00 |
671045c2f8eee9555dee45635c71459d9957f643 | 11,909 | cpp | C++ | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | null | null | null | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | null | null | null | tools/tool_load_prediction/src/tool.cpp | jusch196/chameleon-apps | b63a6b20a62c450565403b0768551cca9c288156 | [
"BSD-3-Clause"
] | 2 | 2020-03-30T08:08:53.000Z | 2021-04-16T10:24:50.000Z | #include "tool.h"
//================================================================
// Variables
//================================================================
static cham_t_set_callback_t cham_t_set_callback;
static cham_t_get_rank_data_t cham_t_get_rank_data;
static cham_t_get_thread_data_t cham_t_get_... | 38.169872 | 121 | 0.653287 | jusch196 |
e24d1e8b8a9be0041d7790e11dbee71d320af3e1 | 1,438 | cpp | C++ | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | src/start.cpp | eostitan/eosio-wps | 02be171c267b35e9be3ef250da706e2e6c972752 | [
"MIT"
] | null | null | null | [[eosio::action]]
void wps::init()
{
require_auth( get_self() );
const name ram_payer = get_self();
check( !_state.exists(), "already initialized" );
auto state = _state.get_or_default();
auto settings = _settings.get_or_default();
_state.set( state, ram_payer );
_settings.set( settings, ... | 31.26087 | 109 | 0.700974 | eostitan |
e24f9319dc8e4e15a01678d1bc16795557e21cec | 4,057 | hpp | C++ | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/include/procStat.hpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /*** Copyright (c), The Regents of the University of California ***
*** For more information please refer to files in the COPYRIGHT directory ***/
/* procStat.h - This dataObj may be generated by a program or script
*/
#ifndef PROC_STAT_HPP
#define PROC_STAT_HPP
/* This is a Object File I/O API call */
... | 36.881818 | 93 | 0.681538 | PlantandFoodResearch |
e250f6db4f581914b7d9947082dd2dfd43c27541 | 2,116 | cpp | C++ | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | 1 | 2022-03-04T16:06:41.000Z | 2022-03-04T16:06:41.000Z | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | Leetcode/res/Remove Invalid Parentheses/1.cpp | AllanNozomu/CompetitiveProgramming | ac560ab5784d2e2861016434a97e6dcc44e26dc8 | [
"MIT"
] | null | null | null | \*
Author: allannozomu
Runtime: 24 ms
Memory: 11.5 MB*\
class Solution {
private:
int minimun_removed;
public:
string buildFromMask(string& s, vector<int>& mask){
string res = "";
for (int i = 0 ; i < mask.size(); ++i){
if (mask[i]){
res += s[i];
}
... | 35.266667 | 138 | 0.547259 | AllanNozomu |
e25489f1fbef7a0c2bb34822f8e953e95351f9e6 | 2,110 | cpp | C++ | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | samples/Hello/third-party/fuzzylite/examples/takagi-sugeno/matlab/sltbu_fl.cpp | okocsis/ios-cmake | ca61d83725bc5b1a755928f4592badbd9a8b37f4 | [
"BSD-3-Clause"
] | null | null | null | #include <fl/Headers.h>
int main(int argc, char** argv){
//Code automatically generated with fuzzylite 6.0.
using namespace fl;
Engine* engine = new Engine;
engine->setName("sltbu_fl");
engine->setDescription("");
InputVariable* distance = new InputVariable;
distance->setName("distance");
distance->setDescription("... | 31.969697 | 87 | 0.759716 | okocsis |
e256b0f147945b96164c23b7a8e0484d18ca5441 | 603 | cpp | C++ | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | src/TextsHelper.cpp | TB989/Game | 9cf6e1267f1bc08b2e7f5f9a8278914f930c7c51 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <string>
#include "TextsHelper.h"
std::string getNextToken(std::ifstream &file,char delim){
std::string token;
while(true){
char ch;
file.get(ch);
if(ch==delim){
break;
}
else{
token+=ch;
}
... | 17.735294 | 57 | 0.532338 | TB989 |
e25d6b3ec6918c719b9450c0d4cb211513cf0d56 | 8,221 | cpp | C++ | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | test/TestUnicode.cpp | m5knt/Pits | 7f7f9ab3013f446ffc8faee3b832a7b8043d4bed | [
"MIT"
] | null | null | null | #include "Pits/Unicode.hpp"
#include "Pits/Timer.hpp"
#include <uchar.h>
#include <cassert>
#include <string_view>
#include <iostream>
#include <codecvt>
#include <vector>
using namespace std::literals;
#if __cplusplus <= 201703L
namespace std {
using u8string = basic_string<char>;
}
#endif
template <class Job... | 36.537778 | 110 | 0.554069 | m5knt |
e25fb5a1c1f4767600c624b4ed6b0508e58b11f3 | 187 | hh | C++ | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 177 | 2021-05-13T01:03:45.000Z | 2021-08-30T18:45:58.000Z | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 130 | 2021-05-18T13:43:08.000Z | 2021-08-30T18:16:01.000Z | macos/cc/WindowDelegate.hh | rgkirch/JWM | 390fc92398758171e402529f8a6da4cce2a3efc6 | [
"Apache-2.0"
] | 13 | 2021-09-16T14:12:08.000Z | 2022-03-21T00:58:01.000Z | #pragma once
#import <Cocoa/Cocoa.h>
#include "WindowMac.hh"
@interface WindowDelegate : NSObject<NSWindowDelegate>
- (WindowDelegate*)initWithWindow:(jwm::WindowMac*)initWindow;
@end
| 18.7 | 62 | 0.775401 | rgkirch |
e26277d11b08f7820dc2270d8b1ab03dc700694a | 5,138 | cpp | C++ | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | 1 | 2018-10-07T00:56:57.000Z | 2018-10-07T00:56:57.000Z | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | Code/CmLib/Segmentation/PlanarCut/code/CutGrid.cpp | JessicaGiven/SalBenchmark_Analysis_Given | 0b0d8c3373be9105e9e94bc20b0eeb0bd7c06198 | [
"MIT"
] | null | null | null | /*****************************************************************************
* PlanarCut - software to compute MinCut / MaxFlow in a planar graph *
* Version 1.0.2 *
* *
* ... | 24.122066 | 78 | 0.550603 | JessicaGiven |
e267a48b8e237d9e45bb5b4214c264315dabdd82 | 1,771 | hpp | C++ | src/projects/error_correction/edit_distance.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 53 | 2021-10-10T22:16:27.000Z | 2022-03-23T06:21:06.000Z | src/projects/error_correction/edit_distance.hpp | AntonBankevich/LJA | 979d7929bf0b39fd142ec6465dc0c17814465ef9 | [
"BSD-3-Clause"
] | 20 | 2021-05-10T07:44:24.000Z | 2022-03-24T13:23:58.000Z | src/projects/error_correction/edit_distance.hpp | AntonBankevich/DR | 73450ad3b25f90a3c7747aaf17fe60d13d9692d3 | [
"BSD-3-Clause"
] | 6 | 2022-01-27T01:45:56.000Z | 2022-03-18T04:23:33.000Z | #pragma once
#include "sequences/sequence.hpp"
inline size_t edit_distance(Sequence s1, Sequence s2) {
size_t left_skip = 0;
while(left_skip < s1.size() && left_skip < s2.size() && s1[left_skip] == s2[left_skip]) {
left_skip++;
}
s1 = s1.Subseq(left_skip, s1.size());
s2 = s2.Subseq(left_sk... | 39.355556 | 129 | 0.508187 | AntonBankevich |
e268f822976e0bb32f98f0c35cab8c0813aef33c | 1,629 | cpp | C++ | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 308 | 2016-02-23T11:59:20.000Z | 2022-03-14T18:40:24.000Z | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2017-01-21T17:33:13.000Z | 2020-08-17T10:33:42.000Z | src/vpp/bufferOps.cpp | nyorain/vpp | ccffafa0b59baa633df779274d7743f169d61c06 | [
"BSL-1.0"
] | 11 | 2016-02-23T10:35:08.000Z | 2021-12-18T16:15:39.000Z | // Copyright (c) 2016-2020 Jan Kelling
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#include <vpp/bufferOps.hpp>
#include <vpp/queue.hpp>
#include <vpp/vk.hpp>
#include <dlg/dlg.hpp>
#include <cstring>
namespace vpp {
v... | 30.735849 | 80 | 0.698588 | nyorain |
e26c8c4ebcd6d2f696a66d9958ef8a978cbcaa48 | 2,142 | hh | C++ | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | 3 | 2021-12-08T06:53:40.000Z | 2022-03-23T09:41:01.000Z | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | null | null | null | src/HomologyInference/BlockedProperty.hh | jsb/HomologyInference | a8b6f9ecad375072bd45e96e08c906c8332c3e4f | [
"MIT"
] | null | null | null | /*
* Author: Janis Born
*/
#pragma once
#include <HomologyInference/Types.hh>
#include <HomologyInference/Utils/ExternalProperty.hh>
#include <set>
namespace HomologyInference
{
using BlockedEdgeProperty = ExternalProperty<EH, bool>;
using BlockedVertexProperty = ExternalProperty<VH, bool>;
template<typename M... | 25.2 | 68 | 0.699813 | jsb |
e270f0db65b1608430b2b40a9805bc0d265eece6 | 328 | cpp | C++ | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/14000/14915.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
char arr[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
int main()
{
int m, n;
string ans, a;
cin >> m >> n;
while (m)
{
a = ans;
ans = arr[m%n];
ans += a;
m /= n;
}
if (ans == "")
ans = "0";
cout <... | 14.26087 | 96 | 0.411585 | upple |
e272fe434103717fe92a4b9f83d0e9a1808a036c | 3,775 | hpp | C++ | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Headers/Molten/Renderer/Vulkan/Utility/VulkanPhysicalDevice.hpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 31.458333 | 112 | 0.744901 | jimmiebergmann |
e275ff5046336033409b67fd70dbc06aea8ec7a1 | 822 | cpp | C++ | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 46 | 2017-02-15T14:24:14.000Z | 2021-10-01T14:25:57.000Z | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 27 | 2017-02-15T15:13:42.000Z | 2021-08-28T15:29:01.000Z | hwlib/demo/native/native-#0020-string/main.cpp | TheBlindMick/MPU6050 | 66880369fa7a73755846e60568137dfc07da1b5c | [
"BSL-1.0"
] | 39 | 2017-05-18T11:51:03.000Z | 2021-09-14T09:07:01.000Z | // ==========================================================================
//
// hwlib::string demo
//
// (c) Wouter van Ooijen (wouter@voti.nl) 2017
//
// 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)
//
// ... | 27.4 | 77 | 0.457421 | TheBlindMick |
e27a9e517fca9ca546376a68178b0fd26256f754 | 4,145 | cpp | C++ | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | lib/glimac/src/Controls.cpp | elisacia/World-Imaker | c168521c168336a4be7835a2adeee9cc7a672681 | [
"MIT"
] | null | null | null | #include <glimac/Controls.hpp>
namespace glimac {
const void moveCamera(const SDL_Event &e, FreeFlyCamera &camera)
{
switch(e.key.keysym.sym)
{
case SDLK_z:
camera.moveFront(1);
break;
case SDLK_s:
camera.moveFront(-1);
break;
case SDLK... | 24.96988 | 157 | 0.55006 | elisacia |
e27b3021b3d243450a0c23ecbe6fd92f225f1569 | 14,240 | cpp | C++ | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 4 | 2019-11-10T21:56:40.000Z | 2021-12-11T20:10:55.000Z | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | null | null | null | Atomic/AtMimeReadWrite.cpp | denisbider/Atomic | 8e8e979a6ef24d217a77f17fa81a4129f3506952 | [
"MIT"
] | 1 | 2019-11-11T08:38:59.000Z | 2019-11-11T08:38:59.000Z | #include "AtIncludes.h"
#include "AtMimeReadWrite.h"
#include "AtImfReadWrite.h"
#include "AtMimeGrammar.h"
#include "AtMimeQuotedPrintable.h"
namespace At
{
namespace Mime
{
// FieldWithParams
void FieldWithParams::ReadParam(ParseNode const& paramNode, PinStore& store)
{
// Name
Pa... | 25.293073 | 157 | 0.630969 | denisbider |
e283e756b3c4851cbdfe690b435ffdf1fa24f275 | 5,504 | cpp | C++ | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | reporters/html_benchmark_reporter.cpp | Kristian-Popov/opencl-benchmark-and-fractals | b88fe08ea540c5743e9b590b160a995ead272a6e | [
"MIT"
] | null | null | null | #include "html_benchmark_reporter.h"
#include <chrono>
#include <unordered_map>
#include <algorithm>
#include <iterator>
#include "html_document.h"
#include "utils.h"
#include "devices/device_interface.h"
#include "devices/platform_interface.h"
#include "fixtures/fixture_id.h"
#include "indicators/duration_indicator.... | 33.560976 | 133 | 0.593932 | Kristian-Popov |
e2857683f842c1b798db84e767486d2327318212 | 9,589 | cpp | C++ | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/src/plugins/platforms/winrt/qwinrttheme.cpp | chihlee/phantomjs | 644e0b3a6c9c16bcc6f7ce2c24274bf7d764f53c | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the plugins of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees hol... | 38.051587 | 122 | 0.724059 | chihlee |
e2893983296a54d0a98e9fe11d5382e26457c54f | 3,731 | cpp | C++ | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 73 | 2020-07-10T03:22:14.000Z | 2022-03-02T21:22:18.000Z | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 4 | 2020-07-13T05:59:39.000Z | 2021-04-09T03:53:01.000Z | src/sequence.cpp | liangjin2007/smplxpp | 9a0d1cea136ea924628a9a031fa673fc9531dd85 | [
"Apache-2.0"
] | 16 | 2020-07-10T03:22:20.000Z | 2022-02-11T19:09:41.000Z | #include "smplx/sequence.hpp"
#include <fstream>
#include <iostream>
#include <cnpy.h>
#include "smplx/util.hpp"
#include "smplx/util_cnpy.hpp"
namespace smplx {
namespace {
using util::assert_shape;
} // namespace
// AMASS npz structure
// 'trans': (#frames, 3)
// 'gender': str
// 'mocap_framer... | 33.017699 | 80 | 0.551327 | liangjin2007 |
e2897e5886fec358d757012ab5d190e56439589e | 6,020 | cpp | C++ | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | 2 | 2016-03-21T10:48:34.000Z | 2017-03-17T19:50:34.000Z | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | src/tools/ThreadGestion.cpp | etrange02/Fux | 2f49bcd8ec82eb521092c9162e01c8b0d00222ab | [
"CECILL-B"
] | null | null | null | /***************************************************************
* Name: ThreadGestion.cpp
* Purpose: Code for Fu(X) 2.0
* Author: David Lecoconnier (david.lecoconnier@free.fr)
* Created: 2010-05-07
* Copyright: David Lecoconnier (http://www.getfux.fr)
* License:
*************************************... | 28 | 146 | 0.634219 | etrange02 |
e289a2a9b7a1347a9de65f3ad3194948f5550a39 | 4,782 | cpp | C++ | src2/freevariablesofterm.cpp | tamaskenez/forrestlang | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | null | null | null | src2/freevariablesofterm.cpp | tamaskenez/forrestlang | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | 1 | 2019-03-19T18:11:21.000Z | 2019-03-19T18:11:21.000Z | src2/freevariablesofterm.cpp | tamaskenez/somenewlanguage | 76b82803ac435f627ad52f9cfc12fe9c863a8495 | [
"MIT"
] | null | null | null | #include "freevariablesofterm.h"
#include "store.h"
namespace snl {
FreeVariables GetFreeVariablesCore(Store& store, TermPtr term)
{
using Tag = term::Tag;
const static FreeVariables empty_fvs;
switch (term->tag) {
case Tag::Abstraction: {
auto abstraction = term_cast<term::Abstraction... | 38.564516 | 100 | 0.557716 | tamaskenez |
e28f417b66cf026be331d48c20c12478da28b11a | 5,015 | hpp | C++ | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 4 | 2016-06-24T09:22:18.000Z | 2019-06-13T13:50:53.000Z | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | null | null | null | code/include/graphicPrimitives/FrameRenderable.hpp | Shutter-Island-Team/Shutter-island | c5e7c0b2c60c34055e64104dcbc396b9e1635f33 | [
"MIT"
] | 2 | 2016-06-10T12:46:17.000Z | 2018-10-14T06:37:21.000Z | #ifndef FRAME_RENDERABLE_HPP
#define FRAME_RENDERABLE_HPP
/**@file
* @brief Define a class to render the world frame.
*
* This file defines the class FrameRenderable to render the world frame.
*/
#include "../HierarchicalRenderable.hpp"
#include <vector>
#include <glm/glm.hpp>
/**@brief Render the world frame.
*
... | 38.875969 | 87 | 0.698106 | Shutter-Island-Team |
e290b27c13bab64d24723a7681fda41b9acd7c83 | 646 | cpp | C++ | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | data-structure/Raiz.cpp | ejpcr/libs-c | e544e4338ea9f2fe8c57de83045944f38ae06a07 | [
"MIT"
] | null | null | null | //Programa que calcula la raiz de un entero positivo N.
//Sin utilizar la libreria math.h
//Alumno: Castillo Gardea Mariano
//No Control: 01070097
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
void captura(int &);
void validacion(int &);
void raiz(int &);
void main()
{int numero; clrscr();
captura(numer... | 17.459459 | 55 | 0.682663 | ejpcr |
e299e516b3c7bb22b7e0ebcf9328c7fd00722361 | 4,061 | cpp | C++ | RunInBash/RunInBash.cpp | neosmart/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 83 | 2017-04-25T03:39:53.000Z | 2022-03-17T03:37:59.000Z | RunInBash/RunInBash.cpp | benpope82/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 6 | 2017-04-25T20:13:01.000Z | 2021-08-02T05:03:08.000Z | RunInBash/RunInBash.cpp | neosmart/RunInBash | 3e2368f95030f1cd39c27001cb21fa50f2e289d1 | [
"MIT"
] | 11 | 2017-05-13T10:14:58.000Z | 2021-08-12T17:06:27.000Z | #include "stdafx.h"
#include <cassert>
#include <memory>
#include "ArgHelper.h"
template <typename T> //for both const and non-const
T *TrimStart(T *str)
{
assert(str != nullptr);
while (str[0] == _T(' '))
{
++str;
}
return str;
}
//There is no CommandLineToArgvA(), so we rely on the caller t... | 25.067901 | 112 | 0.622014 | neosmart |
e29c1cafb8d6986ad83ffad1dd2ed9726774d92d | 298 | cpp | C++ | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | src/searchResultsLv.cpp | romdb/romdbLauncher | 492e6d124817b11f16e7d8329d854ed837a76ea0 | [
"Zlib"
] | null | null | null | #include "searchResultsLv.h"
#include "Resource.h"
LRESULT SearchResultsLv::OnDblClick(DWORD fwKeys, int X, int Y)
{
LVHITTESTINFO hti = {};
hti.pt.x = X;
hti.pt.y = Y;
int idx = HitTest(&hti);
if (idx != -1)
{
SendMessageW(GetParent(Handle), WM_COMMAND, ID_OPENROM, idx);
}
return 0;
}
| 18.625 | 63 | 0.667785 | romdb |
e29e300a0fbccbea4d87c0c7ef05878613e14c66 | 3,112 | cpp | C++ | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 19 | 2018-07-02T17:06:54.000Z | 2021-03-04T18:29:21.000Z | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 1 | 2019-04-06T13:46:41.000Z | 2020-06-15T14:59:26.000Z | sdl/main.cpp | bduvenhage/Bits-O-Cpp | a2325978646fd27fc14de99b45c42072447af2db | [
"MIT"
] | 3 | 2020-04-14T09:19:43.000Z | 2021-03-27T06:40:52.000Z | #include "../defines/tc_defines.h"
#include "../math/tc_math.h"
#include "../sdl/sdl.h"
#include <iostream>
#include <iomanip>
#include <vector>
using Vertex = std::pair<int, int>;
using Line = std::pair<Vertex, Vertex>;
//! Grow the snowflake one level deeper.
std::vector<Line> grow_koch_snowflake(const std::vect... | 27.785714 | 86 | 0.541131 | bduvenhage |
e29ed02de4ad3f403c946707012cff195fa80cdc | 3,714 | cpp | C++ | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | src/common/containers/trie-pool.cpp | asgerfv/ai_boggle | 7ea541124296e730d10e64de0a7038090a876bb5 | [
"MIT"
] | null | null | null | #include "trie-pool.hpp"
// ----------------------------------------------------------------------------
#define ROTA_USE_CUSTOM_ALLOCATOR 1
// ----------------------------------------------------------------------------
/// Note: Could also have used "__declspec(selectany)" in the header, but this is
... | 24.27451 | 104 | 0.600969 | asgerfv |
e2a1546692645f661d2b57fc2aec06b24dbdc63a | 247 | cpp | C++ | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | 1 | 2021-03-23T06:15:30.000Z | 2021-03-23T06:15:30.000Z | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | null | null | null | SDLEngine/SDLEngine/SDLEngine/src/Collision.cpp | AyushNathJha007/SDLEngine | ef779884fac9e72c038387f976c6e75eb2dd4187 | [
"MIT"
] | null | null | null |
#include "Collision.h"
bool Collision::CheckCollisonAABB(const SDL_Rect & RectA, const SDL_Rect & RectB)
{
return (RectA.x + RectA.w >= RectB.x && RectB.x + RectB.w >= RectA.x && RectA.y + RectA.h >= RectB.y && RectB.y + RectB.h >= RectA.y);
}
| 30.875 | 135 | 0.651822 | AyushNathJha007 |
e2a1b19379e49506277b71c350e108a2b1c638b2 | 1,320 | cpp | C++ | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 54 | 2018-09-28T17:28:02.000Z | 2022-01-25T20:30:32.000Z | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 2 | 2019-11-21T20:16:26.000Z | 2020-03-27T12:55:31.000Z | test/pprm_irs_integration_test.cpp | elishafer/mpt | e0997259fbd1431bab4b5ffb6f0d2f00fa380660 | [
"BSD-3-Clause"
] | 27 | 2019-05-15T00:18:46.000Z | 2021-07-30T00:41:37.000Z | #define MPT_LOG_LEVEL WARN
#include "planner_integration_test.hpp"
#include <mpt/pprm_irs.hpp>
#include <nigh/gnat.hpp>
#include <nigh/linear.hpp>
using namespace unc::robotics;
using namespace mpt;
using namespace mpt_test;
TEST(pprm_irs_until_solved) {
testSolvingBasicScenario<PPRMIRS<>>();
}
TEST(pprm_irs_unt... | 27.5 | 97 | 0.758333 | elishafer |
e2a7eb02618e1146d3dcc4face2b43a79ee039dd | 706 | cpp | C++ | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | examples/keyboard_example.cpp | yamaha-bps/cbr_drivers | 64e971c0a7e79c414e81fe2ac32e6360adb266eb | [
"MIT"
] | null | null | null | // Copyright Yamaha 2021
// MIT License
// https://github.com/yamaha-bps/cbr_drivers/blob/master/LICENSE
#include <cbr_drivers/keyboard.hpp>
#include <thread>
#include <chrono>
#include <iostream>
int main(int argc, char ** argv)
{
if (argc != 2) {
std::cerr << "usage: keyboard_example <device>" << std::endl;
... | 27.153846 | 98 | 0.626062 | yamaha-bps |
e2ab3dfaa11c7ab8c72a35523b37b1b5fedf4220 | 19,759 | cpp | C++ | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | 1 | 2018-01-07T18:11:04.000Z | 2018-01-07T18:11:04.000Z | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | src/core/impl/StdPlayQueue.cpp | varunamachi/tanyatu | ce055e0fb0b688054fe19ef39b09a6ca655e2457 | [
"MIT"
] | null | null | null | /*******************************************************************************
* Copyright (c) 2014 Varuna L Amachi. All rights reserved.
*
* 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 ... | 30.921753 | 81 | 0.557974 | varunamachi |
e2af05453b217872a1efe228e70abdbbdee2d7c8 | 4,892 | cpp | C++ | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 4 | 2022-01-25T15:54:29.000Z | 2022-03-18T21:32:16.000Z | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 1 | 2022-02-08T12:37:47.000Z | 2022-02-08T12:37:47.000Z | csvfix/src/csved_fmerge.cpp | moissinac/csvfix | 06cd5638e3a3bb0049fb7138c72211aef972c8d4 | [
"MIT"
] | 5 | 2021-12-14T05:42:52.000Z | 2022-03-11T04:23:47.000Z | //---------------------------------------------------------------------------
// csved_fmerge.cpp
//
// merge multiple sorted csv files
//
// Copyright (C) 20011 Neil Butterworth
//---------------------------------------------------------------------------
#include "a_base.h"
#include "a_collect.h"
#include ... | 26.879121 | 79 | 0.370196 | moissinac |
e2b91deab820a163ea6533cda2728508541ec8c7 | 402 | cpp | C++ | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | null | null | null | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | 1 | 2015-09-24T02:11:17.000Z | 2015-09-24T02:11:17.000Z | protocol_lib/ServiceDelegate.cpp | ThoughtWorksIoTGurgaon/nodes | 2973a331b744c7f2abd412b0e0e760f6111ce687 | [
"Apache-2.0"
] | null | null | null | /*
* File: ServiceDelegate.cpp
* Author: Anuj
*
* Created on 29 November, 2015, 10:13 AM
*/
#include "ServiceDelegate.h"
ServiceDelegate::ServiceDelegate() {
}
void ServiceDelegate::didWriteToCharacteristic(char id, int len, char * value) {}
void ServiceDelegate::didReadFromCharacteristic(char id, int len,... | 23.647059 | 82 | 0.738806 | ThoughtWorksIoTGurgaon |
e2ba4a8bd05cb9fca6d510aa2b05975d4cfc3e42 | 342 | cc | C++ | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | src/ast/literals.cc | anurudhp/decaf-compiler | 67a72bb9cf77d46515165074c2ca8786738b02e6 | [
"MIT"
] | null | null | null | #include "literals.hh"
#include "../visitors/visitor.hh"
#include "variables.hh"
void LiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void IntegerLiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void BooleanLiteralAST::accept(ASTvisitor &V) { V.visit(*this); }
void StringLiteralAST::accept(ASTvisitor &V... | 26.307692 | 65 | 0.710526 | anurudhp |
e2c5da21e0c4be2c2cdde04b62a614c9b5c97567 | 605 | cpp | C++ | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | Game/Source/Boss.cpp | BooStarGamer/Makers-Vs-Players-v2 | db7f32e978f682e55f9d2542ac5879f7137e40ff | [
"MIT"
] | null | null | null | #include "Boss.h"
#include "App.h"
#include "Textures.h"
Boss::Boss() : Entity(EntityType::BOSS)
{
}
Boss::Boss(BossClass bClass) : Entity(EntityType::BOSS)
{
bossClass = bClass;
// LIFE -> ((x / 1.5) + 20)
// STRG -> ((x / 2) + 8)
// DEFS -> ((x / 4) + 2) nose
// EXPR -> expActLvl + expNextLvl / 2
}
Boss::~Bos... | 16.805556 | 93 | 0.634711 | BooStarGamer |
e2c6d4dcf2ef538a5ee27808e7c3a82e63a97086 | 20,493 | cxx | C++ | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 1 | 2019-04-15T14:10:58.000Z | 2019-04-15T14:10:58.000Z | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | null | null | null | resip/stack/Contents.cxx | dulton/reSipServer | ac4241df81c1e3eef2e678271ffef4dda1fc6747 | [
"Apache-2.0"
] | 2 | 2019-10-31T09:11:09.000Z | 2021-09-17T01:00:49.000Z | #include <vector>
#if defined(HAVE_CONFIG_H)
#include "config.h"
#endif
#include "resip/stack/Contents.hxx"
#include "rutil/ParseBuffer.hxx"
#include "rutil/Logger.hxx"
#include "resip/stack/OctetContents.hxx"
#include "rutil/MD5Stream.hxx"
#include "rutil/WinLeakCheck.hxx"
using namespace resip;
using namespace std... | 28.0342 | 108 | 0.611819 | dulton |
e2c7250919917ab7e48d5f7a5ccb8bdb691ee30b | 11,209 | cpp | C++ | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneTrajectoryPlanner/src/sources/potencialFieldMap.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////
// potencialFieldMap.cpp
//
// Created on: Jul 3, 2013
// Author: joselusl
//
// Last modification on: Oct 26, 2013
// Author: joselusl
//
//////////////////////////////////////////////////////
#include "potencialFieldMap.h"
using namespace std;
... | 21.514395 | 164 | 0.646356 | MorS25 |
e2d957adf0fc88c1af7466201525729df6da168a | 731 | cpp | C++ | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | 2 | 2018-10-01T09:03:35.000Z | 2019-05-24T08:53:06.000Z | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | null | null | null | Cpp_Programs/lougu/oj/P1008.cpp | xiazeyu/OI_Resource | 1de0ab9a84ee22ae4edb612ddeddc712c3c38e56 | [
"Apache-2.0"
] | null | null | null | #include <cstdio>
#include <iostream>
using namespace std;
bool check(int a, int b, int c){
if((a > 999) || (b > 999) || (c > 999)) return false;
int i;
int t[10] = {0};
t[a % 10] = 1;
t[(a % 100) / 10] = 1;
t[a / 100] = 1;
t[b % 10] = 1;
t[(b % 100) / 10] = 1;
... | 17 | 58 | 0.347469 | xiazeyu |
e2db74577ced00a689d0405635de3263496311e0 | 3,775 | cpp | C++ | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | algorithms/cpp/Problems 201-300/_210_CourseScheduleII.cpp | shivamacs/LeetCode | f8f8b4e9872c47fbaaf9196c422f7e04986e6c3a | [
"MIT"
] | null | null | null | /* Source - https://leetcode.com/problems/course-schedule-ii/
Author - Shivam Arora
*/
#include <bits/stdc++.h>
using namespace std;
bool dfs(vector<vector<int>>& graph, unordered_set<int>& visited, vector<bool>& recStack, stack<int>& st, int src) {
visited.insert(src);
recStack[src] = true;
for(in... | 24.673203 | 116 | 0.509934 | shivamacs |
e2ddc96b8f612c794049531c117810a073c8de18 | 4,671 | cpp | C++ | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | 9 | 2020-05-07T17:30:04.000Z | 2020-07-22T02:11:45.000Z | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | null | null | null | app/genCSV.cpp | yukatayu/tentee_image_similarity | ae787c1b530483b30fdd152dbe51e8b50a1d9c5b | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <vector>
#include <utility>
#include <string>
#include <algorithm>
#include <fstream>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/features2d.hpp>
#include <illust_image_similarity.hpp>
using namespace illust_im... | 32.213793 | 107 | 0.61079 | yukatayu |
e2e0191f848a36905cd9e826c939e59b0ed66ac0 | 335 | cc | C++ | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | nofx/nofx_ofTexture/nofx_ofGetUsingCustomTextureWrap.cc | sepehr-laal/nofx | 7abc9da3d4fc0f5b72c6b3d591a08cf44d00277e | [
"MIT"
] | null | null | null | #include "nofx_ofGetUsingCustomTextureWrap.h"
#include "ofTexture.h"
namespace nofx
{
namespace ClassWrappers
{
NAN_METHOD(nofx_ofGetUsingCustomTextureWrap)
{
NanReturnValue(ofGetUsingCustomTextureWrap());
} // !nofx_ofGetUsingCustomTextureWrap
} // !namespace ClassWrappers
} // ... | 25.769231 | 52 | 0.722388 | sepehr-laal |
e2e3b44726b15ea0fa6726997db88f50fdcb0b6c | 5,867 | cpp | C++ | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 49 | 2018-02-20T12:47:28.000Z | 2021-08-14T17:06:19.000Z | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 117 | 2017-06-30T18:26:02.000Z | 2021-08-17T19:50:18.000Z | src/sorting_network.cpp | afnaanhashmi/smt-switch | 73dd8ccf3c737e6bcf214d9f967df4a16b437eb8 | [
"BSD-3-Clause"
] | 21 | 2019-10-10T22:22:03.000Z | 2021-07-22T14:15:10.000Z | /********************* */
/*! \file sorting_network.cpp
** \verbatim
** Top contributors (to current version):
** Makai Mann
** This file is part of the smt-switch project.
** Copyright (c) 2020 by the authors listed in the file AUTHORS
** in the top-level source... | 26.309417 | 122 | 0.63593 | afnaanhashmi |
e2eb0f892f50f04886c4aa27d03cc01a76b60bcd | 2,264 | cpp | C++ | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | zap/src/zap.cpp | colugomusic/blockhead_fx | e03f493b76f8747aea5522d214f3e8c3bb404110 | [
"MIT"
] | null | null | null | #include <rack++/module/smooth_param.h>
#include <rack++/module/channel.h>
#include <snd/misc.h>
#include "zap.h"
using namespace rack;
using namespace std::placeholders;
Zap::Zap()
: BasicStereoEffect("Zap")
{
param_spread_ = add_smooth_param(0.0f, "Spread");
param_spread_->set_transform([](const ml::... | 29.025641 | 79 | 0.699647 | colugomusic |
e2edde13f8bd56ca97d153ea6c610c7940641ed8 | 5,174 | hpp | C++ | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | lonfr/eagleye | 8c5880827cd41ce62b6f2a1e2f10e90351bab19b | [
"BSD-3-Clause"
] | 329 | 2020-03-19T00:41:00.000Z | 2022-03-31T05:52:33.000Z | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | yxw027/eagleye | b5eab2fd162841d7be17ef320faf0bbd4f9627c4 | [
"BSD-3-Clause"
] | 22 | 2020-03-20T09:14:19.000Z | 2022-03-24T23:47:55.000Z | eagleye_util/fix2kml/include/fix2kml/GoogleEarthPath.hpp | yxw027/eagleye | b5eab2fd162841d7be17ef320faf0bbd4f9627c4 | [
"BSD-3-Clause"
] | 79 | 2020-03-19T03:08:29.000Z | 2022-03-09T00:54:03.000Z | // 1 tab = 8 spaces
/**
* ID: GoogleEarthPath.hpp
* EDITED: 23-09-2014
* AUTOR: Andres Gongora
*
* +------ Description: -----------------------------------------------------------+
* | |
* | Class to store GPS coordinates in a Google Earth compatible KML file. |
* | This can then be loaded a... | 32.3375 | 111 | 0.473521 | lonfr |
e2f0970a4793179463cf01ac6c1cd4a28c13fce6 | 294 | cpp | C++ | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | 4 | 2020-10-05T19:24:10.000Z | 2021-07-15T00:45:43.000Z | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | codeforces/contests/round/622-div2/b.cpp | tysm/cpsols | 262212646203e516d1706edf962290de93762611 | [
"MIT"
] | null | null | null | #include <cpplib/stdinc.hpp>
int32_t main(){
desync();
int t;
cin >> t;
while(t--){
int n, x, y;
cin >> n >> x >> y;
int lo = min(n, 1+max((int)0, (x+y)-n));
int hi = min(n, x+y-1);
cout << lo << ' ' << hi << endl;
}
return 0;
}
| 18.375 | 48 | 0.394558 | tysm |
e2f70fecbc94632b3e8635ec2962c9468f336e2a | 2,588 | cpp | C++ | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | Olimpiada/2013/betasah.cpp | rlodina99/Learn_cpp | 0c5bd9e6c52ca21e2eb95eb91597272ddc842c08 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <climits>
using namespace std;
int main(){
ifstream f("betasah.in");
int n,d,k;
f >> n >> d >> k;
int mat[n][n];
for(int i=0;i<n;i++){
for(int j=0;j<n;j++){
mat[i][j]=0;
}
}
for(int i=0;i<n;i++){
for(int j=n-1;j>i;j--){
mat[i][j]=9;
}
}
in... | 15.046512 | 38 | 0.362056 | rlodina99 |
e2fd2b9e121b52834370eaba288ccfb959c9505a | 1,405 | hpp | C++ | source/oc/ocEngine/Components/ocComponentAllocator.hpp | mackron/openchernobyl | 47c854ce37e1c361b184e29a59e4881a6faa387c | [
"BSD-3-Clause"
] | 2 | 2021-05-24T21:18:13.000Z | 2021-12-20T07:21:20.000Z | source/oc/ocEngine/Components/ocComponentAllocator.hpp | openchernobyl/openchernobyl | 47c854ce37e1c361b184e29a59e4881a6faa387c | [
"BSD-3-Clause"
] | null | null | null | source/oc/ocEngine/Components/ocComponentAllocator.hpp | openchernobyl/openchernobyl | 47c854ce37e1c361b184e29a59e4881a6faa387c | [
"BSD-3-Clause"
] | null | null | null | // Copyright (C) 2018 David Reid. See included LICENSE file.
typedef ocComponent* (* ocCreateComponentProc)(ocEngineContext* pEngine, ocComponentType type, ocWorldObject* pObject, void* pUserData);
typedef void (* ocDeleteComponentProc)(ocComponent* pComponent, void* pUserData);
struct ocComponentAllocatorIns... | 37.972973 | 175 | 0.814235 | mackron |
e2fd49c1a4ad988db34e8acb9d050ed78d2ee2bb | 6,653 | cpp | C++ | book_samples/opencl_interop/my_vx_tensor_map_impl.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 220 | 2016-03-20T00:48:58.000Z | 2022-03-31T09:46:21.000Z | book_samples/opencl_interop/my_vx_tensor_map_impl.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 28 | 2016-06-16T19:17:41.000Z | 2021-09-16T16:19:18.000Z | book_samples/opencl_interop/my_vx_tensor_map_impl.cpp | jwinarske/openvx_tutorial | 3b57b1c043c5e28e03b6c7121bad87f4ce67ea8c | [
"MIT"
] | 84 | 2016-03-24T01:13:07.000Z | 2022-03-22T04:37:03.000Z | /*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentation files (the
* "Materials"), to deal in the Materials without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and... | 35.57754 | 110 | 0.620171 | jwinarske |
c3b3be02cd5e6b18b4c670130f18b31ae9fcae99 | 20,235 | cxx | C++ | test/unit/config/config_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/unit/config/config_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/unit/config/config_test.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Arthur N. Klassen
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions... | 35.437828 | 91 | 0.586064 | ANSAKsoftware |
c3b899b877daa6a822136cf309b6e165c4c3e3dc | 2,820 | cpp | C++ | sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp | wirx6/LLGL | 2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee | [
"BSD-3-Clause"
] | null | null | null | sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp | wirx6/LLGL | 2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee | [
"BSD-3-Clause"
] | null | null | null | sources/Renderer/Direct3D12/Command/D3D12CommandContext.cpp | wirx6/LLGL | 2fc63aa5ddf4f5bd006c496cd9bbf6b40c2133ee | [
"BSD-3-Clause"
] | null | null | null | /*
* D3D12CommandContext.cpp
*
* This file is part of the "LLGL" project (Copyright (c) 2015-2018 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "D3D12CommandContext.h"
#include "../D3D12Resource.h"
#include "../../DXCommon/DXCore.h"
namespace LLGL
{
void D3D12CommandContext::Set... | 27.647059 | 122 | 0.669149 | wirx6 |
c3b9a85b1d2b939baf36f5aa43b50e021a7dc906 | 115 | hpp | C++ | gtrc_vehicles/CfgAmmo.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null | gtrc_vehicles/CfgAmmo.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null | gtrc_vehicles/CfgAmmo.hpp | kzfoxx/GTRC-Framework | e60b1f6d7c5d594e22ef6c2d95c0db61d7d3d0f6 | [
"MIT"
] | null | null | null |
class CfgAmmo {
class BulletBase;
class Gatling_30mm_HE_Plane_CAS_01_F: BulletBase {
caliber = 6;
};
}; | 16.428571 | 52 | 0.695652 | kzfoxx |
c3bba75286889988256e08f90493166842347443 | 7,911 | cpp | C++ | src/Mesh.cpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | src/Mesh.cpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | src/Mesh.cpp | akoylasar/PBR | 17e6197fb5357220e2f1454898a18f8890844d4d | [
"MIT"
] | null | null | null | /*
* Copyright (c) Fouad Valadbeigi (akoylasar@gmail.com) */
#include "Mesh.hpp"
#include <cmath>
#include "Debug.hpp"
namespace Akoylasar
{
constexpr double kTwoPi = Neon::kPi * 2.0;
std::unique_ptr<Mesh> Mesh::buildSphere(double radius,
unsigned int hSegments,
... | 36.456221 | 137 | 0.551511 | akoylasar |
c3c0b8d89474801267ed5e37059dfe1f44fc8778 | 730 | cpp | C++ | src/utils/InetUtils.cpp | GbaLog/wad_packer | 212af80a8e1e475221be4b5ec241bd77ec126899 | [
"MIT"
] | 4 | 2021-09-12T00:13:04.000Z | 2022-02-19T11:18:33.000Z | src/utils/InetUtils.cpp | GbaLog/wad_packer | 212af80a8e1e475221be4b5ec241bd77ec126899 | [
"MIT"
] | null | null | null | src/utils/InetUtils.cpp | GbaLog/wad_packer | 212af80a8e1e475221be4b5ec241bd77ec126899 | [
"MIT"
] | null | null | null | #include "InetUtils.h"
//-----------------------------------------------------------------------------
#ifdef _WIN32
#include <winsock2.h>
#else
#include <arpa/inet.h>
#endif
//-----------------------------------------------------------------------------
namespace ratel
{
//-----------------------------------... | 30.416667 | 80 | 0.217808 | GbaLog |
c3cd2c2feb1535207804a141f2d25998822e240a | 993 | cpp | C++ | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut | aabedb5cb108513173951a5fc86ad589e7c8ccbc | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut | aabedb5cb108513173951a5fc86ad589e7c8ccbc | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-OMTut | aabedb5cb108513173951a5fc86ad589e7c8ccbc | [
"MIT"
] | null | null | null | #include "tic_tac_toe_manager.h"
TicTacToeManager::TicTacToeManager(TicTacToeData & data)
{
games = data.get_games();
for (auto& game : games)
{
update_winner_count(game->get_winner());
}
}
void TicTacToeManager::save_game(unique_ptr<TicTacToe> & game)
{
update_winner_count(game->get_winner());
games.push_b... | 16.55 | 69 | 0.632427 | acc-cosc-1337-spring-2020 |
c3ce1e2623ad89e78d9d3b8d43b3f82b4a3530b8 | 1,809 | cpp | C++ | src/res/animation.cpp | crockeo/cpp-whatisthisgame | 90fe2f69f380635050aa746f280288aa0b7c5f54 | [
"MIT"
] | null | null | null | src/res/animation.cpp | crockeo/cpp-whatisthisgame | 90fe2f69f380635050aa746f280288aa0b7c5f54 | [
"MIT"
] | 1 | 2015-02-02T02:08:02.000Z | 2015-02-02T04:48:27.000Z | src/res/animation.cpp | crockeo/cpp-whatisthisgame | 90fe2f69f380635050aa746f280288aa0b7c5f54 | [
"MIT"
] | null | null | null | #include "animation.hpp"
//////////
// Code //
// Calculating the current frame index.
unsigned int Animation::calcCurrentFrameIndex() const {
int frame = this->timer->getTime() / frameLength;
if (frame >= this->textures.size())
return this->textures.size() - 1;
return frame;
}
// Creating a new ... | 31.736842 | 89 | 0.688778 | crockeo |
c3d326ab78155934dfa9180a0789d3b8f2f6b7c6 | 1,139 | cpp | C++ | src/erhe/scene/viewport.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 36 | 2021-05-03T10:47:49.000Z | 2022-03-19T12:54:03.000Z | src/erhe/scene/viewport.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 29 | 2020-05-17T08:26:31.000Z | 2022-03-27T08:52:47.000Z | src/erhe/scene/viewport.cpp | tksuoran/erhe | 07d1ea014e1675f6b09bff0d9d4f3568f187e0d8 | [
"Apache-2.0"
] | 2 | 2022-01-24T09:24:37.000Z | 2022-01-31T20:45:36.000Z | #include "erhe/scene/viewport.hpp"
#include "erhe/scene/log.hpp"
#include "erhe/toolkit/math_util.hpp"
namespace erhe::scene
{
auto Viewport::unproject(
const glm::mat4 world_from_clip,
const glm::vec3 window,
const float depth_range_near,
const float depth_range_far
) const -> std::optional<g... | 24.234043 | 50 | 0.653205 | tksuoran |
c3daccd7cb4ce0df04859e39032c133934ccc4d2 | 77,794 | cpp | C++ | src/vm/vm8051.cpp | koalajack/koalachain | 84b5d5351072947f79f982ca24666047e955df3d | [
"MIT"
] | null | null | null | src/vm/vm8051.cpp | koalajack/koalachain | 84b5d5351072947f79f982ca24666047e955df3d | [
"MIT"
] | null | null | null | src/vm/vm8051.cpp | koalajack/koalachain | 84b5d5351072947f79f982ca24666047e955df3d | [
"MIT"
] | null | null | null | // ComDirver.cpp: implementation of the CComDirver class.
//
//////////////////////////////////////////////////////////////////////
#include "vm8051.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "hash.h"
#include "key.h"
#include "main.h"
#include <openssl/des.h>
#include <vector>
#include "... | 22.138304 | 117 | 0.639098 | koalajack |
c3debfa947362fdc46cb23f328eb5e9f0e5ce3cf | 3,561 | cpp | C++ | src/CoordinateAxes.cpp | sosswald/gpu-coverage | da36062272244573abd938996d8cb6ecd25a55e7 | [
"BSD-3-Clause"
] | 2 | 2018-09-17T15:21:06.000Z | 2020-03-27T11:57:04.000Z | src/CoordinateAxes.cpp | sosswald/gpu-coverage | da36062272244573abd938996d8cb6ecd25a55e7 | [
"BSD-3-Clause"
] | null | null | null | src/CoordinateAxes.cpp | sosswald/gpu-coverage | da36062272244573abd938996d8cb6ecd25a55e7 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018, Stefan Osswald
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this
* list of cond... | 35.969697 | 89 | 0.693906 | sosswald |
c3ef135143b457c16bc80960ba3b059435f2efb5 | 6,127 | cpp | C++ | src/burner/win32/memcard.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/win32/memcard.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | src/burner/win32/memcard.cpp | tt-arcade/fba-pi | 10407847a98f0d315b05e44f0ecf01824f4558aa | [
"Apache-2.0"
] | null | null | null | // Memory card support module
#include "burner.h"
static TCHAR szMemoryCardFile[MAX_PATH];
int nMemoryCardStatus = 0;
int nMemoryCardSize;
static int nMinVersion;
static bool bMemCardFC1Format;
static int MakeOfn()
{
memset(&ofn, 0, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = hScrnWnd;
ofn.lps... | 19.764516 | 99 | 0.651053 | tt-arcade |
c3f73f9cba29aeb9b9bb27693805d0b332995276 | 2,933 | hpp | C++ | include/jbr/reg/var/perm/Rights.hpp | j-bruel/Register | 4fa991ed86fedb3883514031e51dc62057d0abd0 | [
"MIT"
] | null | null | null | include/jbr/reg/var/perm/Rights.hpp | j-bruel/Register | 4fa991ed86fedb3883514031e51dc62057d0abd0 | [
"MIT"
] | null | null | null | include/jbr/reg/var/perm/Rights.hpp | j-bruel/Register | 4fa991ed86fedb3883514031e51dc62057d0abd0 | [
"MIT"
] | 1 | 2019-05-06T14:12:44.000Z | 2019-05-06T14:12:44.000Z | //!
//! @file jbr/reg/var/perm/Rights.hpp
//! @author jbruel
//! @date 30/07/19
//!
#ifndef JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP
# define JBR_CREGISTER_REGISTER_VAR_PERM_RIGHTS_HPP
# include <jbr/reg/Permission.hpp>
//!
//! @namespace jbr::reg::var::perm
//!
namespace jbr::reg::var::perm
{
//!
//! @st... | 38.592105 | 122 | 0.475963 | j-bruel |
c3fa7a9f74907ae5ec230fd9742c729e637b4c31 | 446 | cpp | C++ | solutions/leetcode/944. Delete Columns to Make Sorted.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | 1 | 2021-08-12T14:53:37.000Z | 2021-08-12T14:53:37.000Z | solutions/leetcode/944. Delete Columns to Make Sorted.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | solutions/leetcode/944. Delete Columns to Make Sorted.cpp | MohanedAshraf/competitive-programming | 234dc6113b39462c64a2719cd1071f3d99655508 | [
"MIT"
] | null | null | null | static int __=[](){std::ios::sync_with_stdio(false);return 1000;}();
class Solution {
public:
int minDeletionSize(vector<string>& strs) {
int c = 0 , n = strs.size() , m = strs[0].size() ;
for(int i= 0 ; i<m ; i++)
for(int j = 0; j<n-1 ; j++ )
if(strs[j... | 24.777778 | 68 | 0.392377 | MohanedAshraf |
7f0adede716cb763e559b3e8d4533efb7a003b74 | 524 | cpp | C++ | Payoffs.cpp | ThibaultLacharme/tddc_pde_solver | c735ff4aff8a9cba33ed86c59b1fcd569745b74f | [
"BSD-3-Clause"
] | null | null | null | Payoffs.cpp | ThibaultLacharme/tddc_pde_solver | c735ff4aff8a9cba33ed86c59b1fcd569745b74f | [
"BSD-3-Clause"
] | null | null | null | Payoffs.cpp | ThibaultLacharme/tddc_pde_solver | c735ff4aff8a9cba33ed86c59b1fcd569745b74f | [
"BSD-3-Clause"
] | null | null | null | #include "Payoffs.hpp"
#include <algorithm>
namespace dauphine
{
Payoffs::Payoffs()
{
}
// For other products add the corresponding function at maturity, if there are more arguments than the spot and strike adjust the function in Boundaries too
double Payoffs::call(double spot, double strike)
... | 22.782609 | 160 | 0.627863 | ThibaultLacharme |
7f17e6c64789dd102403d3119f4f4374d892b6c0 | 250 | cpp | C++ | Programs/14 Recursion/basics/power.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 5 | 2021-04-04T18:39:14.000Z | 2021-12-18T09:31:55.000Z | Programs/14 Recursion/basics/power.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | null | null | null | Programs/14 Recursion/basics/power.cpp | Lord-Lava/DSA-CPP-Apna-College | 077350c2aa900bb0cdb137ece2b95be58ccd76a8 | [
"MIT"
] | 1 | 2021-09-26T11:01:26.000Z | 2021-09-26T11:01:26.000Z | #include<iostream>
using namespace std;
int power(int n, int p){
if(p==0){
return 1;
}
int prevPower= power(n,p-1);
return n*prevPower;
}
int main(){
int n,p;
cin>>n>>p;
cout<<power(n,p)<<endl;
return 0;
} | 12.5 | 32 | 0.536 | Lord-Lava |
7f1e039ff387c51c40d914d25c573aef36a51a2b | 24,259 | cpp | C++ | Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 51 | 2020-12-26T18:17:16.000Z | 2022-03-15T04:29:35.000Z | Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | null | null | null | Source/AllProjects/CQCIGKit/CQCIGKit_DriverClient.cpp | MarkStega/CQC | c1d0e01ec2abcaa5b8eb1899b9f0522fecee4b07 | [
"MIT"
] | 4 | 2020-12-28T07:24:39.000Z | 2021-12-29T12:09:37.000Z | //
// FILE NAME: CQCIGKit_DriverClient.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 11/16/2001
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2020
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://o... | 30.668774 | 93 | 0.513294 | MarkStega |
7f205320f9c7145eca5fbd3fc58c41693d413567 | 20,948 | cpp | C++ | libraries/plugins/chain/chain_plugin_full.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 8 | 2018-07-25T20:42:43.000Z | 2019-03-11T03:14:09.000Z | libraries/plugins/chain/chain_plugin_full.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 13 | 2018-07-25T17:41:28.000Z | 2019-01-25T13:38:11.000Z | libraries/plugins/chain/chain_plugin_full.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 11 | 2018-07-25T14:34:13.000Z | 2019-05-03T13:29:37.000Z | #include <sophiatx/chain/database/database_exceptions.hpp>
#include <sophiatx/chain/genesis_state.hpp>
#include <sophiatx/plugins/chain/chain_plugin_full.hpp>
#include <sophiatx/chain/database/database.hpp>
#include <sophiatx/utilities/benchmark_dumper.hpp>
#include <sophiatx/chain/get_config.hpp>
#include <sophiat... | 36.880282 | 271 | 0.634142 | SophiaTX |
7f26a584009c9e5e484626852f8a51d27adebacd | 958 | cpp | C++ | C++/problem0922.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0922.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem0922.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | #include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <cmath>
#include <ctime>
#include <cstdlib>
#include <windows.h>
#include <string>
#include <numeric>
using namespace std;
class Solution {
public:
vector<int> sortArrayByParityII(vector<int>& A) {... | 19.16 | 53 | 0.44572 | 1050669722 |
7f2ce710398c6aa5fc53cac0665671b65a6e8174 | 1,648 | cc | C++ | src/Gateway.cc | Swair/Function-Distributed-Network | 55c2c9caa2b6de6c06c99009b2063703601e7956 | [
"Apache-2.0"
] | null | null | null | src/Gateway.cc | Swair/Function-Distributed-Network | 55c2c9caa2b6de6c06c99009b2063703601e7956 | [
"Apache-2.0"
] | null | null | null | src/Gateway.cc | Swair/Function-Distributed-Network | 55c2c9caa2b6de6c06c99009b2063703601e7956 | [
"Apache-2.0"
] | null | null | null | #include "Gateway.h"
Gateway& Gateway::getInstance()
{
static Gateway gw;
return gw;
}
Gateway::Gateway()
{}
Gateway::~Gateway()
{}
void Gateway::reg(const std::string& method, std::function<void(std::string&, const std::string&)> func)
{
routeTable_[method] = func;
}
void Gateway::route(std::string& ... | 24.969697 | 105 | 0.508495 | Swair |
b5290f40d62908ad95681d974cbce979eb8641f5 | 252 | cpp | C++ | Game/Client/WXClient/Network/PacketHandler/GCMySelfEquipmentListHandler.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/WXClient/Network/PacketHandler/GCDetailEquipmentListHandler.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "StdAfx.h"
#include "GCDetailEquipmentList.h"
uint GCDetailEquipmentListHandler :: Execute( GCDetailEquipmentList* pPacket, Player* pPlayer )
{
__ENTER_FUNCTION
return PACKET_EXE_CONTINUE ;
__LEAVE_FUNCTION
return PACKET_EXE_ERROR ;
}
| 16.8 | 96 | 0.801587 | hackerlank |
b529f379479b6a73c191611f277d3980470cabd8 | 1,091 | cpp | C++ | usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | usaco_practice/bronze/bronze_A/A4_array_two/Roll_cake.cpp | juneharold/USACO | a96b54f68e7247c61044f3c0d9e7260952c508e2 | [
"MIT"
] | null | null | null | // 롤 케이크
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;
int main()
{
int L, N;
cin >> L;
cin >> N;
int ranges[2000] = {};
for (int i=0; i<2*N; i++)
{
cin >> ranges[i];
}
// number of cake
int max_expected=0;
int max_received=0;
// nu... | 20.584906 | 49 | 0.463795 | juneharold |
b52d3581cedf7fffe7a94047630d9129e71c264c | 137 | hh | C++ | Include/Luce/AI/Configuration.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | 23 | 2017-02-09T11:48:01.000Z | 2017-04-08T10:19:21.000Z | Include/Luce/AI/Configuration.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | null | null | null | Include/Luce/AI/Configuration.hh | kmc7468/luce | 6f71407f250dbc0428ceba33aeef345cc601db34 | [
"MIT"
] | null | null | null | #ifndef LUCE_HEADER_AI_CONFIGURATION_HH
#define LUCE_HEADER_AI_CONFIGURATION_HH
#include <Luce/AI/Configuration/ComputeByCpu.hh>
#endif | 22.833333 | 48 | 0.868613 | kmc7468 |
b531574b7fbbf60c47356dc23f1ef5ad56585873 | 5,537 | cpp | C++ | src/TowerEntity.cpp | Smokey1105/Strife.SingleplayerDemo | 586865f66e7b08a6e16385fe400c3dd2fe886489 | [
"NCSA"
] | null | null | null | src/TowerEntity.cpp | Smokey1105/Strife.SingleplayerDemo | 586865f66e7b08a6e16385fe400c3dd2fe886489 | [
"NCSA"
] | null | null | null | src/TowerEntity.cpp | Smokey1105/Strife.SingleplayerDemo | 586865f66e7b08a6e16385fe400c3dd2fe886489 | [
"NCSA"
] | null | null | null | #include "TowerEntity.hpp"
#include "Engine.hpp"
#include "PlayerEntity.hpp"
#include "FireballEntity.hpp"
#include "CastleEntity.hpp"
#include "ObstacleComponent.hpp"
#include "Components/RigidBodyComponent.hpp"
#include "Components/SpriteComponent.hpp"
#include "Physics/PathFinding.hpp"
#include "Net/ReplicationMana... | 25.753488 | 110 | 0.609536 | Smokey1105 |
b5400e1794ee4d2bbfcf0b5fba231f428da08d3b | 4,401 | cpp | C++ | ilwiscoreui/models/workspacemodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwiscoreui/models/workspacemodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | ilwiscoreui/models/workspacemodel.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include <QSqlQuery>
#include <QSqlRecord>
#include <QSqlError>
#include "kernel.h"
#include "ilwiscontext.h"
#include "workspacemodel.h"
WorkSpaceModel::WorkSpaceModel(const QString &name, QObject *parent) :
CatalogModel( Ilwis::Resource("ilwis://internalcatalog/workspaces/" + name,itWORKSPACE),parent)
{
}
WorkS... | 32.843284 | 134 | 0.601 | ridoo |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.