hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
398a8aa8d2a685a8d41d5aacc5e7cf810d75073b | 8,341 | cpp | C++ | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 19 | 2019-04-28T11:53:46.000Z | 2021-04-16T21:05:58.000Z | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 6 | 2019-05-25T17:27:18.000Z | 2020-09-01T01:11:25.000Z | jit.gl.isf/jit.gl.isf/ISFFileManager_Win.cpp | mrRay/jit.gl.isf | 81553e0c48f6030fcd67e0df2a48d38f0d98ee90 | [
"MIT"
] | 1 | 2020-08-14T15:39:10.000Z | 2020-08-14T15:39:10.000Z | #include "ISFFileManager_Win.hpp"
#include "VVISF.hpp"
//#include <unistd.h>
#include <sys/types.h>
//#include <pwd.h>
#include <algorithm>
/*
#include "jit.common.h"
#include "jit.gl.h"
//#include "ext_mess.h"
*/
#include <filesystem>
using namespace std;
using namespace VVGL;
using namespace VVISF;
void ISFF... | 32.582031 | 245 | 0.687927 | mrRay |
39906832e9940940eb1e4d81e5ad9fd0bd6da26f | 172 | hpp | C++ | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | include/TextureManager.hpp | Frostie314159/FrostEngine | bb7781c5c90baf77ca836d69d6c38a4a5381e27f | [
"MIT"
] | null | null | null | #ifndef TEXTURE_MANAGER_HPP_
#define TEXTURE_MANAGER_HPP_
#include <iostream>
#include <vector>
#include "stb/stb_image.h"
class TextureManager
{
private:
public:
};
#endif | 15.636364 | 28 | 0.796512 | Frostie314159 |
39906b9a591240b78755180ee0087bdcebf54ed5 | 1,647 | cpp | C++ | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | 1 | 2018-06-24T13:58:07.000Z | 2018-06-24T13:58:07.000Z | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | 018/4Sum.cpp | Lixu518/leetcode | f8e868ef6963da92237e6dc6888d7dda0b9bdd19 | [
"MIT"
] | null | null | null | #include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
vector<vector<int>> fourSum(vector<int>&nums, int target){
vector<vector<int>> total;
int n = nums.size();
if(n<4) return total;
sort(nums.begin(),nums.end());
for (int i=0;i<n-3;i++){
if(i>0&&num... | 35.804348 | 93 | 0.453552 | Lixu518 |
39990e6a9d4dd6137bf85bcf89a84be908e31afd | 5,553 | cpp | C++ | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | 1 | 2020-04-10T21:19:03.000Z | 2020-04-10T21:19:03.000Z | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | 9 | 2020-04-10T18:47:54.000Z | 2020-04-10T18:57:52.000Z | src/rrrobot_ws/src/rrrobot/src/rrrobot_node.cpp | EECS-467-W20-RRRobot-Project/RRRobot | f5bfccab3b96e1908a81a987d5fed51ae3b9c738 | [
"MIT"
] | null | null | null | // rrrobot_node.cpp
#include <algorithm>
#include <vector>
#include <string>
#include <stdlib.h>
#include <time.h>
#include <fstream>
#include <iostream>
#include <ros/ros.h>
#include <osrf_gear/LogicalCameraImage.h>
#include <osrf_gear/Order.h>
#include <osrf_gear/Proximity.h>
#include <osrf_gear/VacuumGripperState... | 24.355263 | 116 | 0.730956 | EECS-467-W20-RRRobot-Project |
399a2f37e219aff62ff05cca7e9dba3d15403c80 | 623 | hh | C++ | Tek2/Piscine-CPP/cpp_santa/Wrap.hh | Estayparadox/Epitech-Bundle | e4395961bb86bf494e3c84ab44c27b5a9afc6c6c | [
"MIT"
] | 30 | 2018-10-26T12:54:11.000Z | 2022-02-04T18:18:57.000Z | Tek2/Piscine-CPP/cpp_santa/Wrap.hh | Estayparadox/Epitech-Bundle | e4395961bb86bf494e3c84ab44c27b5a9afc6c6c | [
"MIT"
] | null | null | null | Tek2/Piscine-CPP/cpp_santa/Wrap.hh | Estayparadox/Epitech-Bundle | e4395961bb86bf494e3c84ab44c27b5a9afc6c6c | [
"MIT"
] | 26 | 2018-11-20T18:11:39.000Z | 2022-01-28T21:05:30.000Z | //
// Wrap.hh for in /home/guarni_l/cpp_santa
//
// Made by Luca GUARNIERI
// Login <guarni_l@epitech.net>
//
// Started on Sat Jan 16 14:37:19 2016 Luca GUARNIERI
// Last update Sun Jan 17 07:18:04 2016 Luca GUARNIERI
//
#ifndef WRAP_HH_
# define WRAP_HH_
# include "Object.hh"
class Wrap : public Object
{
pro... | 18.878788 | 68 | 0.65008 | Estayparadox |
399a41d35d5666fda21d70dbb83dc61a8c6a0928 | 3,149 | cc | C++ | src/starkware/commitment_scheme/merkle/merkle_commitment_scheme.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | null | null | null | src/starkware/commitment_scheme/merkle/merkle_commitment_scheme.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | null | null | null | src/starkware/commitment_scheme/merkle/merkle_commitment_scheme.cc | ChihChengLiang/ethSTARK | 032eda9f83d419eb2eaeef79d446fb77ecc3f019 | [
"Apache-2.0"
] | null | null | null | #include "starkware/commitment_scheme/merkle/merkle_commitment_scheme.h"
#include <algorithm>
#include <string>
#include "starkware/crypt_tools/blake2s_160.h"
#include "starkware/error_handling/error_handling.h"
#include "starkware/math/math.h"
#include "starkware/stl_utils/containers.h"
namespace starkware {
Merkl... | 39.3625 | 100 | 0.765005 | ChihChengLiang |
399c99bd2be8831407f02b878cc0f7c6deb5856b | 4,738 | cpp | C++ | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 5 | 2019-12-02T12:28:57.000Z | 2021-04-07T21:21:13.000Z | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | null | null | null | shirabeengine/shirabeengine/modules/vulkan_integration/code/source/resources/types/vulkanshadermoduleresource.cpp | BoneCrasher/ShirabeEngine | 39b3aa2c5173084d59b96b7f60c15207bff0ad04 | [
"MIT"
] | 1 | 2020-01-09T14:25:42.000Z | 2020-01-09T14:25:42.000Z | //
// Created by dottideveloper on 29.10.19.
//
#include <material/serialization.h>
#include "vulkan_integration/resources/types/vulkanshadermoduleresource.h"
#include "vulkan_integration/vulkandevicecapabilities.h"
namespace engine::vulkan
{
//<---------------------------------------------------------------------... | 41.2 | 130 | 0.436471 | BoneCrasher |
399d5128af1add1705289fa1dbfa47b61822ea4c | 5,855 | cc | C++ | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2018-07-17T00:17:13.000Z | 2020-05-26T08:39:25.000Z | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 1 | 2020-06-04T10:26:04.000Z | 2020-06-04T10:26:04.000Z | gazebo/physics/Atmosphere_TEST.cc | SamFerwerda/Gazebo10-commits | b33ac5982fb75cac894fa145f7268146d44e0724 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2019-11-10T07:19:09.000Z | 2019-11-21T19:11:11.000Z | /*
* Copyright (C) 2016 Open Source Robotics Foundation
*
* 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 appl... | 34.64497 | 80 | 0.713749 | SamFerwerda |
399d894f9b444c6a9f8b02cd4559b64037312864 | 15,160 | cpp | C++ | test/hotspot/jtreg/vmTestbase/nsk/jvmti/IsMethodObsolete/isobsolete001/isobsolete001.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | test/hotspot/jtreg/vmTestbase/nsk/jvmti/IsMethodObsolete/isobsolete001/isobsolete001.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | test/hotspot/jtreg/vmTestbase/nsk/jvmti/IsMethodObsolete/isobsolete001/isobsolete001.cpp | 1690296356/jdk | eaf668d1510c28d51e26c397b582b66ebdf7e263 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 37.432099 | 118 | 0.577309 | 1690296356 |
399db7b9cb01f3cad58f6479f2145cf6826b3046 | 14,799 | inl | C++ | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | include/UDRefl/details/Object.inl | zerger/UDRefl | 1a2f67a3d94f191d6eafd520359428ac3d579ab2 | [
"MIT"
] | null | null | null | #pragma once
#include <array>
namespace Ubpa::UDRefl {
//
// ObjectPtrBase
//////////////////
template<typename... Args>
InvocableResult ObjectPtrBase::IsInvocable(StrID methodID) const noexcept {
std::array argTypeIDs = { TypeID::of<Args>... };
return IsInvocable(ID, methodID, Span<const TypeID>{argTypeIDs... | 36.905237 | 116 | 0.693493 | zerger |
39a22d72475d40fe80590b67e8c7068a5926cedf | 821 | cpp | C++ | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | HackerRank/Challenges/compare-the-triplets.cpp | Diggzinc/solutions-spoj | eb552311011e466039e059cce07894fea0817613 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdlib>
#include <vector>
using namespace std;
void addIf(vector<int> &results, int a, int b)
{
if (a > b)
{
results[0]++;
}
else if (a < b)
{
results[1]++;
}
}
vector<int> solve(int a0, int a1, int a2, int b0, int b1, int b2)
{
vector<int> r... | 17.847826 | 65 | 0.501827 | Diggzinc |
39a5cab860d715ba666ff4c97e096f82308098f1 | 5,307 | cpp | C++ | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | Bebop2cpp-master/SNAP/SNAP_rudi.cpp | jmenden1/SNAP | a253aa052e4568cdc35e7ff5789b3e716ccbb4da | [
"MIT"
] | null | null | null | #include <vector>
#include "Drone.h"
#include <math.h>
#include <boost/asio/io_service.hpp>
#include <Fullnavdata.h>
#include <gnuplot_iostream.h>
#include <deque>
#include <fstream>
#include <iostream>
#include <sstream>
/*
* PRIVATE HEADER
*/
#define DRONE_IP "192.168.42.1"
#define DRONE_MAX_ALT... | 21.313253 | 102 | 0.655172 | jmenden1 |
39b190ab03896db9404c35ee98c9abbbe5ec8e95 | 1,898 | cpp | C++ | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-06-29T19:26:35.000Z | 2021-06-29T19:26:35.000Z | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-04-28T07:54:41.000Z | 2021-04-28T07:54:41.000Z | od/audio/SampleSaver.cpp | bapch/er-301 | e652eb9253009897747b0de7cfc57a27ac0cde1a | [
"MIT"
] | 1 | 2021-03-02T21:32:52.000Z | 2021-03-02T21:32:52.000Z | /*
* SampleSaver.cpp
*
* Created on: 24 Oct 2016
* Author: clarkson
*/
#include <od/audio/SampleSaver.h>
#include <od/audio/WavFileWriter.h>
namespace od
{
SampleSaver::SampleSaver()
{
}
SampleSaver::~SampleSaver()
{
}
bool SampleSaver::set(Sample *sample, const char *filenam... | 18.427184 | 127 | 0.611697 | bapch |
39b3080d167cecd1cf34fe5bdca3aea61bbf180c | 1,991 | hpp | C++ | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | null | null | null | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | 1 | 2018-03-27T19:43:26.000Z | 2018-03-28T14:04:40.000Z | ThreadPool.hpp | Linsexy/thread-pool | 0e9667c8c95fefc65054d8022c1a736aebf330d5 | [
"MIT"
] | null | null | null | //
// Created by benito on 3/25/18.
//
#ifndef THREAD_POOL_THREADPOOL_HPP
#define THREAD_POOL_THREADPOOL_HPP
/* Written for the Arfang Engine
*
* https://github.com/Linsexy/arfang-engine
*
*/
#include <array>
#include <vector>
#include <functional>
#include <list>
#include <future>
#include <queue>
#include <iost... | 27.273973 | 108 | 0.549975 | Linsexy |
39ba6efd5d7a862e8522d5e90a3fc1a4f0959e9a | 1,267 | cpp | C++ | lib/LanguageService.cpp | LibProtection/libprotection-cpp | 4dc7860c8d9db15854764525e37c3f60cd2f9362 | [
"MIT"
] | 2 | 2018-11-24T13:29:35.000Z | 2018-11-24T13:29:36.000Z | lib/LanguageService.cpp | LibProtection/libprotection-cpp | 4dc7860c8d9db15854764525e37c3f60cd2f9362 | [
"MIT"
] | 1 | 2018-01-24T15:51:00.000Z | 2018-02-08T13:11:01.000Z | lib/LanguageService.cpp | LibProtection/libprotection-cpp | 4dc7860c8d9db15854764525e37c3f60cd2f9362 | [
"MIT"
] | 3 | 2017-11-28T09:42:07.000Z | 2021-04-30T10:22:41.000Z | #include "protection/LanguageService.h"
#include <algorithm>
#include <unordered_map>
namespace protection {
namespace injections {
SanitizeResult::SanitizeResult(bool sanitized, std::vector<Token> t, std::string sanitizedStr, Token token)
: success{sanitized}, tokens{std::move(t)}, sanitizedString{sanitizedStr}... | 31.675 | 109 | 0.651144 | LibProtection |
39c13e97f233560c6fdf20a9c88db6c3884accb5 | 758 | cpp | C++ | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 36 | 2020-03-29T19:23:00.000Z | 2022-03-28T22:07:11.000Z | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 7 | 2020-08-01T13:35:16.000Z | 2022-01-27T00:43:44.000Z | Win32/GroupBox.cpp | soncfe/Win32GUI | c7bf6f24f2d4a66456c701017005e58f75a57c3c | [
"Unlicense"
] | 10 | 2020-04-07T15:55:44.000Z | 2021-12-16T20:25:12.000Z | #include "GroupBox.h"
GroupBox::GroupBox()
{
}
GroupBox::GroupBox(Control* parent, std::string name, RECT rect)
: Control(parent, name, rect.right, rect.bottom)
{
cmnControlInit(ICC_STANDARD_CLASSES);
setLocation(rect.left, rect.top);
mStyle = WS_CHILD | WS_VISIBLE | BS_GROUPBOX | BS_NOTIFY;
mType = WC_BUTTON;
... | 23.6875 | 76 | 0.738786 | soncfe |
39c6bbf7bcac20ca09842384382a854c334d6afd | 1,098 | cpp | C++ | doc/snippets/compile_JacobiSVD_basic.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 15 | 2021-02-27T11:00:51.000Z | 2022-03-11T10:31:46.000Z | doc/snippets/compile_JacobiSVD_basic.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 1 | 2018-11-14T23:14:58.000Z | 2018-11-14T23:14:58.000Z | doc/snippets/compile_JacobiSVD_basic.cpp | mousepawmedia/libdeps | b004d58d5b395ceaf9fdc993cfb00e91334a5d36 | [
"BSD-3-Clause"
] | 4 | 2021-03-13T13:28:55.000Z | 2021-11-05T02:26:02.000Z | static bool eigen_did_assert = false;
#define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;}
#include <iostream>
#include <Eigen/Eigen>
#ifndef M_PI... | 36.6 | 224 | 0.668488 | mousepawmedia |
39c7bed1fe699371925ee5a737b47ce59df42389 | 156 | cpp | C++ | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 9 | 2019-05-10T05:39:21.000Z | 2022-02-22T08:04:52.000Z | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | null | null | null | chapter04/4.6_The_Member_Access_Operators .cpp | NorthFacing/step-by-c | bc0e4f0c0fe45042ae367a28a87d03b5c3c787e3 | [
"MIT"
] | 6 | 2019-05-13T13:39:19.000Z | 2022-02-22T08:05:01.000Z | /**
* 4.6 成员访问运算符
* @Author Bob
* @Eamil 0haizhu0@gmail.com
* @Date 2017/7/28
*/
int main(){
/**
* p->size(); 等价于 (*p).size()
*/
return 0;
}
| 12 | 31 | 0.49359 | NorthFacing |
39ca362c7922dde9d34d3c17724aa77e6c4c43ce | 652 | hpp | C++ | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | Sources/Physics/Colliders/ColliderSphere.hpp | dreadris/Acid | 1af276edce8e6481c44d475633bf69266e16ed87 | [
"MIT"
] | null | null | null | #pragma once
#include "Collider.hpp"
class btSphereShape;
namespace acid {
class ACID_EXPORT ColliderSphere : public Collider::Registrar<ColliderSphere> {
public:
explicit ColliderSphere(float radius = 0.5f, const Transform &localTransform = {});
~ColliderSphere();
btCollisionShape *GetCollisionShape() const ov... | 22.482759 | 84 | 0.76227 | dreadris |
39ca7ec225ef050296a50f9a169889b1a73db298 | 3,314 | hpp | C++ | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 121 | 2020-04-21T13:21:55.000Z | 2021-11-15T09:48:47.000Z | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 3 | 2020-04-23T05:29:54.000Z | 2021-07-18T18:37:57.000Z | tests/data.hpp | ChrisAHolland/constexpr-sql | 3ea390a3f8a5d0e1dcb9b5f187121d4649e5f9c3 | [
"MIT"
] | 5 | 2020-04-23T05:01:02.000Z | 2022-02-21T21:00:30.000Z | #pragma once
#include <string>
#include <type_traits>
#include "sql.hpp"
using books =
sql::schema<
"books", sql::index<>,
#ifdef CROSS
sql::column<"book", std::string>,
#else
sql::column<"title", std::string>,
#endif
sql::column<"genre", std::string>,
sql::column<"year", unsigned>,
sql::column<"pages",... | 20.45679 | 65 | 0.646952 | ChrisAHolland |
39cadcd1cc8192bf943bc237abdaabb52e2fa9fe | 1,578 | hpp | C++ | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | include/DREAM/ConvergenceChecker.hpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | #ifndef _DREAM_CONVERGENCE_CHECKER_HPP
#define _DREAM_CONVERGENCE_CHECKER_HPP
#include <string>
#include <unordered_map>
#include <vector>
#include "FVM/NormEvaluator.hpp"
#include "FVM/UnknownQuantityHandler.hpp"
namespace DREAM {
class ConvergenceChecker : public FVM::NormEvaluator {
private:
std::u... | 30.346154 | 90 | 0.679975 | chalmersplasmatheory |
39cd665f158df7b7981492c8c02d51edefce8d11 | 1,872 | cpp | C++ | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | src/question34.cpp | lxb1226/leetcode_cpp | 554280de6be2a77e2fe41a5e77cdd0f884ac2e20 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
class Solution {
public:
// 法一:
vector<int> searchRange1(vector<int>& nums, int target) {
if(nums.size() == 0) return {-1, -1};
int l = 0, r = nums.size() - 1;
int mid = 0;
while(l <= r){
... | 27.130435 | 113 | 0.444444 | lxb1226 |
39d7c9e0998fda2cdc29ac309fb7e0712ae06c90 | 1,709 | cc | C++ | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | src/sheet_painter.cc | d0iasm/liumos | f9600bd26f15ebd194d35d5e76877650e25b9733 | [
"MIT"
] | null | null | null | #include "sheet_painter.h"
#include "asm.h"
// @font.gen.c
extern uint8_t font[0x100][16];
void SheetPainter::DrawCharacter(Sheet& s,
char c,
int px,
int py,
bool do_flush) {
if (!s.b... | 28.016393 | 77 | 0.426565 | d0iasm |
39d8dafd5118ea5b48ded9852aee0f07e48802f6 | 813 | hpp | C++ | include/cues.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | include/cues.hpp | stefanofortu/intoTheWild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | 1 | 2015-12-23T16:26:12.000Z | 2015-12-23T16:26:34.000Z | include/cues.hpp | stefanofortu/intothewild | 000af8d5b7a480e0f14e1a2deb047899c8469b41 | [
"Unlicense"
] | null | null | null | #ifndef _CUES_HPP_
#define _CUES_HPP_
#include "config.hpp"
vector<double> ComputeEHOG(Mat source, vector<vector<Point> > regions);
vector<double> ComputePD(Mat source, vector<vector<Point> > regions);
vector<double> ComputeStrokeWidth(Mat source, vector<vector<Point> > regions);
vector<int> regions_cue(vector<dou... | 42.789474 | 168 | 0.738007 | stefanofortu |
39d9cd2a51eb44da0fd11031f2d53dd4e72bed47 | 45 | cpp | C++ | src/NGFX/Private/Vulkan/vk_log.cpp | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/NGFX/Private/Vulkan/vk_log.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/NGFX/Private/Vulkan/vk_log.cpp | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include "vk_common.h"
namespace vulkan
{
} | 7.5 | 22 | 0.711111 | PixPh |
39de3ef7de48233da97491f31e295f3e2792d4b0 | 9,319 | cpp | C++ | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 2 | 2020-12-10T02:05:29.000Z | 2021-05-30T15:23:56.000Z | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | null | null | null | programming/sampleProject/startScanner.cpp | ljyang100/dataScience | ad2b243673c570c18d83ab1a0cd1bb4694c17eac | [
"MIT"
] | 1 | 2020-04-21T11:18:18.000Z | 2020-04-21T11:18:18.000Z | #include "startScanner.h"
void StartScanner::StartEntryPoint()
{
AllData a;
a.initializeTraderParameters(); a.initializeOtherParameters();
a.initializeSymbolVectors_Prev();
a.m_backTest = false; //**** IMPORTANT! This must be false all the time for real trading.
a.initializeSymbolVectors();
a.initializeBaseV... | 65.167832 | 322 | 0.725722 | ljyang100 |
39e02ac39c3e1f70da83cc9ff39059161777e515 | 38,695 | cpp | C++ | extensions/DRM/dream/DRMSignalIO.cpp | mfkiwl/FlyDog_SDR_GPS | d4870af35e960282a3c1b7e6b41444be4cb53fab | [
"MIT"
] | 9 | 2020-09-22T17:26:17.000Z | 2022-03-10T17:58:03.000Z | extensions/DRM/dream/DRMSignalIO.cpp | hikijun/FlyDog_SDR_GPS | d4870af35e960282a3c1b7e6b41444be4cb53fab | [
"MIT"
] | null | null | null | extensions/DRM/dream/DRMSignalIO.cpp | hikijun/FlyDog_SDR_GPS | d4870af35e960282a3c1b7e6b41444be4cb53fab | [
"MIT"
] | 4 | 2021-02-10T16:13:19.000Z | 2021-09-21T08:04:25.000Z | /******************************************************************************\
* Technische Universitaet Darmstadt, Institut fuer Nachrichtentechnik
* Copyright (c) 2001
*
* Author(s):
* Volker Fischer, Cesco (HB9TLK)
*
* Description:
* Transmit and receive data
*
*******************************************... | 33.79476 | 144 | 0.592816 | mfkiwl |
39e2e124b0dbd8950a1a7d138a1b5ee8464995d5 | 656 | cpp | C++ | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 16 | 2020-09-07T18:53:39.000Z | 2022-03-21T08:15:55.000Z | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 23 | 2017-03-29T21:21:43.000Z | 2022-03-23T07:27:55.000Z | src/gui/widget/BodyWidget/BodyController.cpp | bartkessels/GetIt | 8adde91005d00d83a73227a91b08706657513f41 | [
"MIT"
] | 4 | 2020-06-15T12:51:10.000Z | 2021-09-05T20:50:46.000Z | #include "gui/widget/BodyWidget/BodyController.hpp"
using namespace getit::gui::widget;
BodyController::BodyController(std::shared_ptr<IBodyView> view):
view(view)
{
}
void BodyController::registerTab(std::shared_ptr<getit::domain::BeforeRequestPipeline> controller, std::shared_ptr<QWidget> tab, std::string nam... | 28.521739 | 146 | 0.760671 | bartkessels |
39e2e6f4d2351b8444b28edacee97376057ee6d6 | 665 | hpp | C++ | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | core/impl/memory/free_first_fit.hpp | auyunli/enhance | ca99530c80b42842e713ed4b62e40d12e56ee24a | [
"BSD-2-Clause"
] | null | null | null | #ifndef E2_FREE_FIRST_FIT_HPP
#define E2_FREE_FIRST_FIT_HPP
#include "i_free.hpp"
#include "memory_common.hpp"
namespace e2 { namespace memory {
class free_first_fit_impl {
public:
template< class T >
bool deleting( void * p_mem_start, size_t p_mem_len, std::list< memory_block_info > * mem_blocks... | 28.913043 | 161 | 0.714286 | auyunli |
39e3b63b95788224b22bcbcfb41c9ecca1964d06 | 457 | cpp | C++ | ExampleTemplate/ExampleTemplate.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 37 | 2020-06-14T18:14:08.000Z | 2022-03-29T18:39:34.000Z | ExampleTemplate/ExampleTemplate.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 2 | 2021-04-05T15:34:18.000Z | 2021-05-28T00:04:56.000Z | ExampleTemplate/ExampleTemplate.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 10 | 2020-06-25T17:07:03.000Z | 2022-03-08T20:31:17.000Z | #include "BBE/BrotBoxEngine.h"
#include <iostream>
class MyGame : public bbe::Game
{
virtual void onStart() override
{
}
virtual void update(float timeSinceLastFrame) override
{
}
virtual void draw3D(bbe::PrimitiveBrush3D & brush) override
{
}
virtual void draw2D(bbe::PrimitiveBrush2D & brush) override
{
}... | 14.741935 | 60 | 0.682713 | siretty |
39e64f1ecc077a97d5a64894fa9edc174bd0f1cd | 120,568 | cc | C++ | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | lib/ArgParseConvert/test/argument_map_test.cc | JasperBraun/PasteAlignments | 5186f674e51571319af3f328c661aaa62dbd0ca9 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 Jasper Braun
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, ... | 50.069767 | 82 | 0.639332 | JasperBraun |
39ee83e54d46b60df4100a62c6ceedca042acc2d | 5,627 | cpp | C++ | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | 1 | 2021-12-10T06:27:47.000Z | 2021-12-10T06:27:47.000Z | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | poker/src/DecisionMaker.cpp | JMassing/Pokerbot | 40b2e4756fc8ef1be4af4d649deb6035a9774bdc | [
"MIT"
] | null | null | null | #include "DecisionMaker.hpp"
#include <iostream>
namespace poker{
void DecisionMaker::decideBetsize()
{
int bet = 0;
double winning_probability = this->data_.probability.first + this->data_.probability.second;
if(this->data_.players.at(0).current_decision == CALL)
{
... | 36.538961 | 182 | 0.513773 | JMassing |
39f0c4371e2a6bf05e595d225be791b4b51cac0a | 1,018 | cpp | C++ | Leetcode2/207.cpp | nolink/algorithm | 29d15403a2d720771cf266a1ab04b0ab29d4cb6c | [
"MIT"
] | null | null | null | Leetcode2/207.cpp | nolink/algorithm | 29d15403a2d720771cf266a1ab04b0ab29d4cb6c | [
"MIT"
] | null | null | null | Leetcode2/207.cpp | nolink/algorithm | 29d15403a2d720771cf266a1ab04b0ab29d4cb6c | [
"MIT"
] | null | null | null | class Solution {
public:
bool hasCircle(vector<vector<int>>& graph, vector<bool>& inGraph, vector<bool>& visited, int current){
visited[current] = true;
inGraph[current] = true;
for(auto adj : graph[current]){
if(!visited[adj]){
if(hasCircle(graph, inGraph, visite... | 32.83871 | 106 | 0.543222 | nolink |
39f60abaee0d398121d6905751915372ae22d6dc | 11,163 | cpp | C++ | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | CReader_bin.cpp | MechLabEngineering/SICKRPi-Scanner | 19d7603a7bee444c8cfbd646f9773178ecf2e188 | [
"MIT"
] | null | null | null | /*
* CReader.cpp
* save laser data to binary file
*
* Created on: 22.12.2014
* Author: Markus
*/
#include <iostream>
#include <string>
#include "CReader.h"
#include <sstream>
#include <fstream>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
#include <math.h>
#include <list>
#include <octomap/octom... | 21.717899 | 128 | 0.636746 | MechLabEngineering |
39faac70104bdf4137ca1f7d167af3c961ccf7d0 | 10,540 | cpp | C++ | tools/alive-worker.cpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | 1 | 2021-11-03T02:26:36.000Z | 2021-11-03T02:26:36.000Z | tools/alive-worker.cpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | 3 | 2021-10-22T03:48:11.000Z | 2021-11-03T03:39:48.000Z | tools/alive-worker.cpp | yotann/alive2 | ee6f38748c4278d1d261a1a399772da0f1d61dd9 | [
"MIT"
] | null | null | null | // Copyright (c) 2021-present The Alive2 Authors.
// Distributed under the MIT license that can be found in the LICENSE file.
// This program connects to a memodb-server server, gets alive.tv and
// alive.interpret jobs, evaluates them, and sends the results back to the
// server. You need a separate program to submit... | 31.8429 | 80 | 0.681879 | yotann |
39fb491fd6f308f2fc4e92febae3038da1953a38 | 11,209 | cpp | C++ | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | src/engine/job_system.cpp | nemerle/LumixEngine | 6cfee07c4268c15994c7171cb5625179b1f369e2 | [
"MIT"
] | null | null | null | #include "engine/atomic.h"
#include "engine/array.h"
#include "engine/engine.h"
#include "engine/fibers.h"
#include "engine/allocator.h"
#include "engine/log.h"
#include "engine/math.h"
#include "engine/os.h"
#include "engine/sync.h"
#include "engine/thread.h"
#include "engine/profiler.h"
#include "job_system.h"
name... | 22.328685 | 115 | 0.686323 | nemerle |
39fc8b02a547193c70cf3a351b0c8f934e67566e | 2,434 | cpp | C++ | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | 2 | 2019-02-18T01:01:29.000Z | 2019-04-22T12:28:04.000Z | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | 1 | 2018-01-04T22:14:25.000Z | 2018-01-06T19:17:12.000Z | lib/WebServer/WebServer.cpp | sidoh/esp8266_pin_server | 31912034f660a9e174876aef7c3aa250f1674a9a | [
"MIT"
] | null | null | null | #include <PinHandler.h>
#include <Settings.h>
#include <WebServer.h>
#include <FS.h>
using namespace std::placeholders;
WebServer::WebServer(Settings& settings, PinHandler& pinHandler)
: settings(settings)
, authProvider(settings)
, server(80, authProvider)
, pinHandler(pinHandler)
{ }
void WebServer::begin(... | 26.747253 | 108 | 0.703369 | sidoh |
39feac86d433c898a5ebe6884160056bccfcb72b | 685 | cpp | C++ | Pairs.cpp | nateshmbhat/Hackerrank | 5ff65e8cb82da6c15cf068450cae503d2fb02952 | [
"MIT"
] | null | null | null | Pairs.cpp | nateshmbhat/Hackerrank | 5ff65e8cb82da6c15cf068450cae503d2fb02952 | [
"MIT"
] | null | null | null | Pairs.cpp | nateshmbhat/Hackerrank | 5ff65e8cb82da6c15cf068450cae503d2fb02952 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int pairs(int k, vector <int> arr) {
// Complete this function
int diff , count = 0 ,i=0 , j =1 ;
while(i<=j && j<=arr.size())
{
diff = arr[j]-arr[i] ;
if(diff<k)
j++ ;
else if(diff>k)
i++ ;
else
... | 17.564103 | 43 | 0.424818 | nateshmbhat |
260a596df97a0373c60f2a6b819b0d7762acd37c | 460 | hpp | C++ | src/graphics/renderers/terrain_renderer.hpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | null | null | null | src/graphics/renderers/terrain_renderer.hpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | null | null | null | src/graphics/renderers/terrain_renderer.hpp | alexkafer/planets | ad118c7ba9d479afc29ba9d5b65222c8c7f2cde2 | [
"Unlicense",
"MIT"
] | 1 | 2021-03-02T16:54:40.000Z | 2021-03-02T16:54:40.000Z | #pragma once
// Local Headers
#include "renderer.hpp"
#include "common/planet.hpp"
#include "graphics/shader.hpp"
#include "graphics/texture.hpp"
#include "graphics/texture_array.hpp"
class TerrainRenderer: public Renderer {
private:
SharedTexture grass; //, ground, rock, sand, snow;
SharedTexArr... | 23 | 58 | 0.686957 | alexkafer |
260b82ff984fb3982bf266d67275f4a12127f6ef | 7,821 | cc | C++ | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 4 | 2015-06-12T05:08:56.000Z | 2017-11-13T11:34:27.000Z | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | null | null | null | DED/i3-old/test.cc | flipk/pfkutils | d8f6c22720b6fcc44a882927c745a822282d1f69 | [
"Unlicense"
] | 1 | 2021-10-20T02:04:53.000Z | 2021-10-20T02:04:53.000Z | /*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... | 29.513208 | 79 | 0.588927 | flipk |
260baed23247e7fdc04a28da812ef4d91946fa20 | 1,354 | hpp | C++ | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 10 | 2021-06-06T15:30:05.000Z | 2022-03-20T09:48:18.000Z | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 1 | 2021-09-23T08:44:50.000Z | 2021-09-23T08:44:50.000Z | app/src/main/cpp/graphics/resources/base.hpp | ktzevani/native-camera-vulkan | b9c03c956f8e9c2bda05ae31060d09518fd5790b | [
"Apache-2.0"
] | 2 | 2021-08-09T07:50:10.000Z | 2021-12-31T13:51:53.000Z | /*
* Copyright 2020 Konstantinos Tzevanidis
*
* 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 ... | 25.54717 | 95 | 0.687592 | ktzevani |
260cb79404b9b57eecb28e6a5c2b65e36e695a54 | 49,193 | cpp | C++ | cppcrypto/whirlpool.cpp | crashdemons/kerukuro-cppcrypto | 090d0e97280c0c34267ab50b72a2ffa5b991110b | [
"BSD-2-Clause"
] | null | null | null | cppcrypto/whirlpool.cpp | crashdemons/kerukuro-cppcrypto | 090d0e97280c0c34267ab50b72a2ffa5b991110b | [
"BSD-2-Clause"
] | null | null | null | cppcrypto/whirlpool.cpp | crashdemons/kerukuro-cppcrypto | 090d0e97280c0c34267ab50b72a2ffa5b991110b | [
"BSD-2-Clause"
] | null | null | null | /*
This code is written by kerukuro for cppcrypto library (http://cppcrypto.sourceforge.net/)
and released into public domain.
*/
#include "cpuinfo.h"
#include "whirlpool.h"
#include "portability.h"
#include <functional>
#include <memory.h>
//#define CPPCRYPTO_DEBUG
extern "C"
{
#ifndef _M_X64
void whirlpool_compre... | 70.98557 | 252 | 0.814791 | crashdemons |
260e6d3bdac5631718004f8e99dd6e4539deca0f | 2,655 | cpp | C++ | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | 1 | 2015-10-10T14:05:56.000Z | 2015-10-10T14:05:56.000Z | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | src/base64.cpp | Oberon00/jd | 0724e059cfa56615afb0a50c27ce9885faa54ed6 | [
"BSD-2-Clause"
] | null | null | null | // Part of the Jade Engine -- Copyright (c) Christian Neumüller 2012--2013
// This file is subject to the terms of the BSD 2-Clause License.
// See LICENSE.txt or http://opensource.org/licenses/BSD-2-Clause
#include "base64.hpp"
#include <array>
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cst... | 26.818182 | 84 | 0.534087 | Oberon00 |
261109756f4725a31c8361d39f975f87b8415af7 | 3,449 | cpp | C++ | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/APSParser/elements/APSDictionary.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/APSParser/elements/APSDictionary.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMCocos2D/Source/extensions/CCArtPig/APSParser/elements/APSDictionary.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /* --------------------------------------------------------------------------
*
* File APSDictionary.cpp
* Author Y.H Mun
*
* --------------------------------------------------------------------------
*
* Copyright (c) 2012 ArtPig Software LLC
*
* http://www.artpi... | 28.741667 | 150 | 0.574079 | mcodegeeks |
2611e2856e3ac8d7acd24edab7ee13f10e239bdc | 2,660 | cpp | C++ | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | src/data/SourceCodeLocationsModel.cpp | vitorjna/LoggerClient | b447f36224e98919045138bb08a849df211e5491 | [
"MIT"
] | null | null | null | #include "SourceCodeLocationsModel.h"
#include "util/NetworkUtils.h"
SourceCodeLocationsModel::SourceCodeLocationsModel(QObject *parent)
: StandardItemModel(parent)
{
setupHeader();
}
SourceCodeLocationsModel::~SourceCodeLocationsModel() = default;
QString SourceCodeLocationsModel::getColumnName(const Source... | 32.048193 | 138 | 0.59812 | vitorjna |
2612601b86ac87bb1928207ed4b547cdeb80a239 | 3,461 | cc | C++ | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | base/io_buffer_test.cc | wuyongchn/trpc | ee492ce8c40ef6a156f298aa295ed4e1fe4b4545 | [
"BSD-2-Clause"
] | null | null | null | #include "base/io_buffer.h"
#include "base/scoped_refptr.h"
#include <glog/logging.h>
#include <gtest/gtest.h>
#include <string.h>
namespace pbrpc {
namespace unittest {
TEST(IOBufferWithSizeTest, TestConstructor) {
const int kBufSize = 128;
auto buffer = MakeRefCounted<IOBufferWithSize>(kBufSize);
}
TEST(IOBuf... | 30.359649 | 69 | 0.737937 | wuyongchn |
2613c230b86e3ace3ee1dc68d5649ce109d96676 | 4,009 | cpp | C++ | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | 2 | 2020-04-23T17:47:27.000Z | 2020-04-25T19:40:50.000Z | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | null | null | null | SPOJ/SPOJ CERC07K - Key Task.cpp | bishoy-magdy/Competitive-Programming | 689daac9aeb475da3c28aba4a69df394c68a9a34 | [
"MIT"
] | 1 | 2020-06-14T20:52:39.000Z | 2020-06-14T20:52:39.000Z | #include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<vector>
#include<cmath>
#include<list>
#include <algorithm>
#include<vector>
#include<set>
#include <cctype>
#include <cstring>
#include <cstdio>
#include<queue>
#include<stack>
#include<bitset>
#include<time.h>
#include<fstream>
/******************... | 20.880208 | 116 | 0.467199 | bishoy-magdy |
2617d234f36327f4a417092231cbeac3db3a699b | 1,687 | cpp | C++ | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null | src/Arduino/ADXL345/example_grativity_to_tilt.cpp | smurilogs/EmbeddedSystems-ATmega328P-ArduinoPlatform-InterfacingLibraries | 30795f46112ab5b56a8244b198f0193afb8755ba | [
"MIT"
] | null | null | null |
#include <Arduino.h>
#include <stdint.h>
#include <Math.h>
#include "ADXL345.h"
#define OFFSETX 270
#define OFFSETY 270
ADXL345 accel;
void setup()
{
Serial.begin(9600);
Wire.begin();
accel.begin();
delay(1500);
}
void loop()
{
// Data acquisition from accelerometer
float x = (int16_t... | 22.197368 | 59 | 0.571429 | smurilogs |
2619264756c7ffa89a744f064279c8a85a05d335 | 3,117 | cc | C++ | src/sim/parsim/cplaceholdermod.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 15 | 2021-08-20T08:10:01.000Z | 2022-03-24T21:24:50.000Z | src/sim/parsim/cplaceholdermod.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 1 | 2022-03-30T09:03:39.000Z | 2022-03-30T09:03:39.000Z | src/sim/parsim/cplaceholdermod.cc | eniac/parallel-inet-omnet | 810ed40aecac89efbd0b6a05ee10f44a09417178 | [
"Xnet",
"X11"
] | 3 | 2021-08-20T08:10:34.000Z | 2021-12-02T06:15:02.000Z | //==========================================================================
// CPLACEHOLDERMOD.CC - header for
//
// OMNeT++/OMNEST
// Discrete System Simulation in C++
//
// Author: Andras Varga, 2003
// Dept. of Electrical and Computer Systems Engineering,
// Monas... | 23.976923 | 91 | 0.641001 | eniac |
26194c3bdf8b2234686f873fc6c989481ab274f2 | 15,419 | cpp | C++ | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 383 | 2018-07-02T07:20:32.000Z | 2022-03-31T12:51:06.000Z | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 117 | 2018-07-16T10:32:52.000Z | 2022-02-02T20:15:16.000Z | fuse_publishers/test/test_pose_2d_publisher.cpp | congleetea/fuse | 7a87a59915a213431434166c96d0705ba6aa00b2 | [
"BSD-3-Clause"
] | 74 | 2018-10-01T10:10:45.000Z | 2022-03-02T04:48:22.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2018, Locus Robotics
* 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 re... | 41.117333 | 109 | 0.728841 | congleetea |
2619858f4c1b9cb2a74da55cafd12f8a801bc386 | 3,854 | cpp | C++ | applications/plugins/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | applications/plugins/ManifoldTopologies/ManifoldEdgeSetGeometryAlgorithms.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 47 | 106 | 0.630254 | sofa-framework |
261c3a982176fb59cb4adb48f6970cbe839b934c | 7,690 | cpp | C++ | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | 1 | 2017-05-21T15:31:02.000Z | 2017-05-21T15:31:02.000Z | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | src/downloads/downloadfilehelper.cpp | bubapl/QupZilla | 3555a92eaf864fb00cce0c325c4afef582bd2024 | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2010-2012 David Rosca <nowrep@gmail.com>
*
* 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 ... | 32.041667 | 148 | 0.597529 | bubapl |
1c7a16b52d0a2598419413ef6684c2331805539d | 10,204 | cpp | C++ | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/AvilovaEM/05/BI.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <cstdlib>
#include <cstring>
#include <stdint.h>
#include <utility>
#include <ostream>
#include <iostream>
#include <algorithm>
#include <memory>
class BigInt
{
public:
BigInt()
: sign(0)
, length(0)
, dataSize(0)
, data(nullptr) {}
BigInt(const long long &x)
{
... | 24.353222 | 85 | 0.409643 | nkotelevskii |
1c7b3fe3cf86dba04992823ab919c18ad59f7092 | 367 | hpp | C++ | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | 2 | 2020-09-22T13:44:47.000Z | 2021-12-10T07:46:24.000Z | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | null | null | null | glib/include/triangle.hpp | cesarus777/kt_glib | 96b4740f660535c3481645c4b45a3fd89a08c9e2 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include <base.hpp>
namespace mygeo
{
class Triangle : public Polygon
{
public:
Triangle(Point p1, Point p2, Point p3) : Polygon({ p1, p2, p3 }, TRIANGLE) {}
Triangle(std::vector<Point> v) : Polygon(v, TRIANGLE)
{
if(v.size() != 3)
throw std::invalid_argument("Invalid Tri... | 19.315789 | 81 | 0.613079 | cesarus777 |
1c7d2a3d01ed78eabca75cff56475777866f1206 | 1,470 | hpp | C++ | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | 1 | 2020-07-12T13:43:40.000Z | 2020-07-12T13:43:40.000Z | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | null | null | null | include/proton/_mapped_type.hpp | calmdan/libproton | 229f2a963771049523c8a58dfa25d79b4b2417e0 | [
"BSD-2-Clause"
] | null | null | null | #ifndef PROTON_MAPPED_TYPE_HEADER
#define PROTON_MAPPED_TYPE_HEADER
namespace proton{
template <typename mapT, typename K>
typename mapT::mapped_type get(const mapT& x, K&& key)
{
auto it=x.find(key);
PROTON_THROW_IF(it==x.end(), "can't find the key in a map");
return it->second;
}
template <typename map... | 21.304348 | 82 | 0.631293 | calmdan |
1c80b6327bfbc8e4e1b6903e5ffc1e73575f323b | 2,387 | cpp | C++ | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | source/std.groupboxbuttonscontrol.cpp | wilsonsouza/stdx.frame.x86 | c9e0cc4c748f161367531990e5795a700f40e5ec | [
"Apache-2.0"
] | null | null | null | //-----------------------------------------------------------------------------------------------//
// dedaluslib.lib for Windows
//
// Created by Wilson.Souza 2012, 2013
// For Libbs Farma
//
// Dedalus Prime
// (c) 2012, 2013
//----------------------------------------------------------------------------------... | 34.1 | 100 | 0.385002 | wilsonsouza |
1c85325531a36596e3ceaa4b65f7076b2f8050e4 | 181 | hpp | C++ | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 43 | 2015-10-10T12:59:52.000Z | 2018-07-11T18:07:00.000Z | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | null | null | null | include/FrogJump.hpp | yanzhe-chen/LeetCode | d82f0b9721ea613ab216c78e7286671d0e9e4187 | [
"MIT"
] | 11 | 2015-10-10T14:41:11.000Z | 2018-07-28T06:03:16.000Z | #ifndef FROG_JUMP_HPP_
#define FROG_JUMP_HPP_
#include <vector>
using namespace std;
class FrogJump {
public:
bool canCross(vector<int> &stones);
};
#endif // FROG_JUMP_HPP_ | 13.923077 | 39 | 0.745856 | yanzhe-chen |
1c87b3a731b5caabbb11384d8e86864be62d7c23 | 2,026 | cpp | C++ | LMS7002M/lms7suite/controlPanelGUI/dlgViewIRAM.cpp | myriadrf/lms-suite | 41c3e7e40a76d2520478e9f57bcd01d904907425 | [
"Apache-2.0"
] | 14 | 2015-01-16T17:01:05.000Z | 2020-10-31T17:52:53.000Z | LMS7002M/lms7suite/controlPanelGUI/dlgViewIRAM.cpp | serojik91/lms-suite | 41c3e7e40a76d2520478e9f57bcd01d904907425 | [
"Apache-2.0"
] | null | null | null | LMS7002M/lms7suite/controlPanelGUI/dlgViewIRAM.cpp | serojik91/lms-suite | 41c3e7e40a76d2520478e9f57bcd01d904907425 | [
"Apache-2.0"
] | 12 | 2015-02-01T23:32:31.000Z | 2021-01-09T16:34:51.000Z | /**
@file dlgViewIRAM.cpp
@author Lime Microsystems
@brief dialog for viewing MCU IRAM data
*/
#include "dlgViewIRAM.h"
//(*InternalHeaders(dlgViewIRAM)
#include <wx/sizer.h>
#include <wx/grid.h>
#include <wx/intl.h>
#include <wx/string.h>
//*)
//(*IdInit(dlgViewIRAM)
const long dlgViewIRAM::ID_GRID1 = wxNewId();
//... | 21.784946 | 103 | 0.692991 | myriadrf |
1c8c19d674c1611e12874901794e29cc4ed89d85 | 10,093 | cpp | C++ | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 14 | 2021-01-08T15:43:37.000Z | 2021-11-06T19:30:15.000Z | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | 5 | 2021-03-07T06:51:33.000Z | 2021-07-01T09:54:30.000Z | tests/http/http_fields/main.cpp | Stiffstream/arataga | b6e1720dd2df055949847425f12bb1af56edbe83 | [
"MIT",
"Newsletr",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT_WITH_MAIN
#include <doctest/doctest.h>
#include <arataga/acl_handler/buffers.hpp>
#include <restinio/helpers/string_algo.hpp>
#include <tests/connection_handler_simulator/pub.hpp>
#include <asio.hpp>
using namespace std::string_view_literals;
using namespace std::chrono_literals;
... | 26.012887 | 75 | 0.688497 | Stiffstream |
1c8fdeb36ffc81fbe2ba897bdcf5e51799311342 | 1,828 | cpp | C++ | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgDB/Archive.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 3 | 2018-08-20T12:12:43.000Z | 2021-06-06T09:43:27.000Z | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgDB/Archive.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | null | null | null | deform_control/external_libs/OpenSceneGraph-2.8.5/src/osgDB/Archive.cpp | UM-ARM-Lab/mab_ms | f199f05b88060182cfbb47706bd1ff3479032c43 | [
"BSD-2-Clause"
] | 1 | 2022-03-31T03:12:23.000Z | 2022-03-31T03:12:23.000Z | /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
* included with ... | 34.490566 | 163 | 0.727024 | UM-ARM-Lab |
1c97d0af2d6e76bd95eb25c247ed0c479bf1420e | 1,306 | hpp | C++ | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | includes/text_analysis.hpp | JaredsAlgorithms/CS-131-Project-6 | e911ef84ed3cdc89251ead24eb5cf21da7282272 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm> /* std::transform */
#include <iostream>
#include <list>
#include <set>
#include <string> /* not needed for Mac OSX */
#include <unordered_map>
#include <vector>
class TextAnalysis {
public:
TextAnalysis() = default;
void add_word(const std::string&, size_t); // IMPLEMENT BELOW
... | 31.095238 | 78 | 0.671516 | JaredsAlgorithms |
1c98609ac81992193bbb7728945e00c6f3bfbee2 | 5,232 | cpp | C++ | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 26 | 2017-12-04T17:51:22.000Z | 2022-02-17T16:50:54.000Z | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 1 | 2019-07-08T12:48:30.000Z | 2019-08-09T11:51:08.000Z | VkMaterialSystem/os_input.cpp | khalladay/VkMaterialSystem | b8f83ed0ff0a4810d7f19868267d8e62f061e3c3 | [
"MIT"
] | 4 | 2018-06-14T18:31:07.000Z | 2022-02-28T12:16:00.000Z | #pragma once
#include "stdafx.h"
#include "os_input.h"
#include "os_support.h"
#define checkhf(expr, format, ...) if (FAILED(expr)) \
{ \
fprintf(stdout, "CHECK FAILED: %s:%d:%s " format "\n", __FILE__, __LINE__, __func__, ##__VA_ARGS__); \
CString dbgstr; ... | 27.536842 | 125 | 0.728402 | khalladay |
1c9a2ee7e7d53924ad0bc7a2663238d2aeb48c86 | 1,222 | cpp | C++ | 0639-Word Abbreviation/0639-Word Abbreviation.cpp | akekho/LintCode | 2d31f1ec092d89e70d5059c7fb2df2ee03da5981 | [
"MIT"
] | 77 | 2017-12-30T13:33:37.000Z | 2022-01-16T23:47:08.000Z | 0601-0700/0639-Word Abbreviation/0639-Word Abbreviation.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 1 | 2018-05-14T14:15:40.000Z | 2018-05-14T14:15:40.000Z | 0601-0700/0639-Word Abbreviation/0639-Word Abbreviation.cpp | jxhangithub/LintCode-1 | a8aecc65c47a944e9debad1971a7bc6b8776e48b | [
"MIT"
] | 39 | 2017-12-07T14:36:25.000Z | 2022-03-10T23:05:37.000Z | class Solution {
public:
/**
* @param dict: an array of n distinct non-empty strings
* @return: an array of minimal possible abbreviations for every word
*/
vector<string> wordsAbbreviation(vector<string> &dict) {
// write your code here
int n = dict.size();
unordered_map<... | 27.772727 | 82 | 0.438625 | akekho |
1ca2a7117330734b01c768bfca8c047ff7a1daa8 | 5,469 | cpp | C++ | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | src/obj_reg.cpp | robinzhoucmu/MLab_TrackingMocap | e9bd71ea546c545dfb1f4f406e72fe2822992046 | [
"BSD-2-Clause"
] | null | null | null | #include "obj_reg.h"
ObjectReg::ObjectReg() {
}
void ObjectReg::Serialize(std::ostream & fout) {
// First 3 lines of cali marker positions.
for (int i = 0; i < 3; ++i) {
const Vec& p = cali_markers_pos[i];
for (int j = 0; j < 3; ++j ) {
fout << p[j] << " ";
}
fout << std::endl;
}
// Seri... | 31.796512 | 126 | 0.669592 | robinzhoucmu |
1caab0212a24f6b421caa406dfc7099da758fd9c | 2,749 | cc | C++ | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | autolign.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include "project.hh"
#include "topology.hh"
#include "random.hh"
#include "cudamem.hh"
#include "project.hh"
#include "ppm.hh"
#include "warp.hh"
#include "partrait.hh"
#include "encgen.hh"
#include "autoposer.hh"
#include "imgutils.hh"
#include <math.h>
#include <map>
using namespace makemore;
int main(int argc,... | 26.432692 | 83 | 0.624227 | jdb19937 |
1cac5bf0ffb66bfd0e666fa89b54afb0ff511e1c | 1,961 | cpp | C++ | src/libmerklecpp/test/demo_tree.cpp | rneatherway/CCF | e04c6bbbe0b5ba044abaab9f972287194b6fc6cc | [
"Apache-2.0"
] | 2 | 2020-08-06T04:12:36.000Z | 2021-09-09T04:15:25.000Z | src/libmerklecpp/test/demo_tree.cpp | rajdhandus/CCF | 96edbc9db6bd14c559a8c59bcda1c2a4835768d2 | [
"Apache-2.0"
] | 1 | 2021-02-09T22:43:48.000Z | 2021-02-09T22:43:48.000Z | src/libmerklecpp/test/demo_tree.cpp | syhamza/CCF | 67eafefb1f6ce4ce4812a733746c952e25b907e8 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache 2.0 License.
#include <chrono>
#include <iomanip>
#include <iostream>
#ifdef HAVE_EVERCRYPT
# include <MerkleTree.h>
#endif
#include "util.h"
#include <merklecpp.h>
#define PRINT_HASH_SIZE 3
int main()
{
try
{
const... | 22.802326 | 75 | 0.5487 | rneatherway |
1cac63c7b53ef8aa89468f7fd2a0f13da2f162e5 | 24,976 | cpp | C++ | qd/cae/dyna_cpp/db/DB_Elements.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 104 | 2017-08-29T19:33:53.000Z | 2022-03-19T11:36:05.000Z | qd/cae/dyna_cpp/db/DB_Elements.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 72 | 2017-08-10T10:59:43.000Z | 2021-10-06T19:06:50.000Z | qd/cae/dyna_cpp/db/DB_Elements.cpp | martinventer/musical-dollop | debb36b87551a68fddee16a3d1194f9961d13756 | [
"MIT"
] | 37 | 2017-11-20T14:00:56.000Z | 2022-03-09T17:19:06.000Z |
#include <algorithm>
#include <unordered_set>
#include "DB_Elements.hpp"
#include "DB_Nodes.hpp"
#include "DB_Parts.hpp"
#include "Element.hpp"
#include "FEMFile.hpp"
#include "Node.hpp"
#include "Part.hpp"
namespace qd {
/** Constructor
*
* @param FEMFile* _femfile : parent file
*/
DB_Elements::DB_Elements(FEMF... | 29.00813 | 79 | 0.640014 | martinventer |
1caec02ccb4ba824ff1e2d75823f90c070b3d911 | 1,362 | hpp | C++ | need to install for velocity smothor/ecl_time_lite/include/ecl/time_lite/macros.hpp | michaelczhou/control | c5ee58bf65c7d8e7517659a52169cea3e4e81d46 | [
"MIT"
] | 1 | 2022-03-11T03:31:15.000Z | 2022-03-11T03:31:15.000Z | RasPi_Dev/ros_ws/src/third_packages/ecl/ecl_time_lite/include/ecl/time_lite/macros.hpp | bravetree/xtark_driver_dev | 1708888161cf20c0d1f45c99d0da4467d69c26c8 | [
"BSD-3-Clause"
] | null | null | null | RasPi_Dev/ros_ws/src/third_packages/ecl/ecl_time_lite/include/ecl/time_lite/macros.hpp | bravetree/xtark_driver_dev | 1708888161cf20c0d1f45c99d0da4467d69c26c8 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file /include/ecl/time_lite/macros.hpp
*
* @brief Macros for error-checking and program termination.
*
* Macros for error-checking and program termination.
*
* @date April 2013.
**/
/*****************************************************************************
** Ifdefs
**********************************... | 31.674419 | 78 | 0.499266 | michaelczhou |
1cb37e2cd6062198c9923ef3446250367fbe4e49 | 802 | hpp | C++ | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | include/pipes/override.hpp | LouisCharlesC/pipes | 1100066894ceca3aebfc3e2fa12287600ab3a0f6 | [
"MIT"
] | null | null | null | #ifndef BEGIN_HPP
#define BEGIN_HPP
#include "pipes/operator.hpp"
#include "pipes/base.hpp"
#include <iterator>
#include <utility>
namespace pipes
{
template<typename Iterator>
class override_pipeline : public pipeline_base<override_pipeline<Iterator>>
{
public:
template<typename T>
... | 21.675676 | 96 | 0.630923 | LouisCharlesC |
1cb66e935ca49d985104a89158474a839c9f6220 | 102,717 | cpp | C++ | Common/MapGuideCommon/Services/ProxyFeatureService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/MapGuideCommon/Services/ProxyFeatureService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/MapGuideCommon/Services/ProxyFeatureService.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2004-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 47.998598 | 136 | 0.511259 | achilex |
1cb99fd40fc6812f6632aa8a1ff51529c4cc4960 | 254 | hpp | C++ | PythonModule/icp_matcher/icp_matcher.hpp | JooseRajamaeki/ICP | a4fb25efd6f2c128cc643f62b9dd90758872b842 | [
"MIT"
] | 4 | 2017-11-20T06:05:08.000Z | 2018-11-28T10:21:39.000Z | PythonModule/icp_matcher/icp_matcher.hpp | JooseRajamaeki/ICP | a4fb25efd6f2c128cc643f62b9dd90758872b842 | [
"MIT"
] | null | null | null | PythonModule/icp_matcher/icp_matcher.hpp | JooseRajamaeki/ICP | a4fb25efd6f2c128cc643f62b9dd90758872b842 | [
"MIT"
] | 1 | 2019-10-30T12:49:36.000Z | 2019-10-30T12:49:36.000Z | #ifndef ICP_MATCHER_HPP
#define ICP_MATCHER_HPP
#include "Eigen\Dense"
#include <algorithm>
#include <vector>
std::vector<int> alternating_icp_matching(std::vector<std::vector<float>> predictions, std::vector<std::vector<float>> true_outputs);
#endif | 25.4 | 133 | 0.779528 | JooseRajamaeki |
1cbb247d98e296b1933ce7cc4988b8bd682a6119 | 743 | hpp | C++ | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DmgType_Trike_Reflected_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_DmgType_Trike_Reflected_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//-------------------------------------------------... | 20.081081 | 116 | 0.621803 | 2bite |
1cbd40bcb66fa97295d9aa8d00ca9c9fbcd3c811 | 1,163 | hpp | C++ | higan/sfc/controller/controller.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | 3 | 2016-03-23T01:17:36.000Z | 2019-10-25T06:41:09.000Z | higan/sfc/controller/controller.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | higan/sfc/controller/controller.hpp | ameer-bauer/higan-097 | a4a28968173ead8251cfa7cd6b5bf963ee68308f | [
"Info-ZIP"
] | null | null | null | // SNES controller port pinout:
// -------------------------------
// | (1) (2) (3) (4) | (5) (6) (7) )
// -------------------------------
// pin name port1 port2
// 1: +5v
// 2: clock $4016 read $4017 read
// 3: latch $4016.d0 write ... | 29.820513 | 81 | 0.517627 | ameer-bauer |
1cc82d801b9f1424e65d621a3e0e8fc020dc0117 | 882 | cpp | C++ | C++/problem1464.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1464.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | C++/problem1464.cpp | 1050669722/LeetCode-Answers | c8f4d1ccaac09cda63b60d75144335347b06dc81 | [
"MIT"
] | null | null | null | // class Solution {
// public:
// static bool cmp(int a, int b)
// {
// return a > b;
// }
// int maxProduct(vector<int>& nums) {
// sort(nums.begin(), nums.end(), cmp);
// return (nums[0] - 1) * (nums[1] - 1);
// }
// };
class Solution {
public:
int maxProduct(vector<i... | 25.941176 | 162 | 0.441043 | 1050669722 |
1cc857d7109c3a2fb6533f74f35509711c370f64 | 1,598 | cc | C++ | VisionSLAM14/ch3/UsingGeometry/using_geometry.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 23 | 2020-04-10T01:53:46.000Z | 2021-12-31T03:43:10.000Z | VisionSLAM14/ch3/UsingGeometry/using_geometry.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 1 | 2020-12-10T07:08:37.000Z | 2021-04-14T07:47:01.000Z | VisionSLAM14/ch3/UsingGeometry/using_geometry.cc | DLonng/Go | a67ac6d6501f9fadadec6a6cf766d4b4a356d572 | [
"MIT"
] | 9 | 2020-04-05T11:49:22.000Z | 2021-11-04T10:23:37.000Z | #include <iostream>
#include <cmath>
#include <Eigen/Core>
#include <Eigen/Geometry>
int main() {
Eigen::Matrix3d rotation_matrix = Eigen::Matrix3d::Identity();
Eigen::AngleAxisd rotation_vector(M_PI / 4, Eigen::Vector3d(0, 0, 1));
std::cout << "rotation_matrix = \n" << rotation_vector.matrix() << std::endl... | 32.612245 | 96 | 0.638298 | DLonng |
1cc928e75a74953ba64f61bca33b3fc73614c19f | 162 | cpp | C++ | src/classwork/01_assign/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | src/classwork/01_assign/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | src/classwork/01_assign/main.cpp | acc-cosc-1337-spring-2020/acc-cosc-1337-spring-2020-ChelliBean | 9e2f45a1d9682f5c9391a594e1284c6beffd9f58 | [
"MIT"
] | null | null | null | #include"output.h"//use file code that I created
#include<iostream>// use standard library
using std::cout;
int main()
{
cout<<"Hello World!";
return 0;
}
| 12.461538 | 48 | 0.679012 | acc-cosc-1337-spring-2020 |
1cc9ecac8d616fb6f3838d8d373d5c39896fb602 | 1,277 | cpp | C++ | examples/ftqc_qrt/repeat-until-success.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 59 | 2019-08-22T18:40:38.000Z | 2022-03-09T04:12:42.000Z | examples/ftqc_qrt/repeat-until-success.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 137 | 2019-09-13T15:50:18.000Z | 2021-12-06T14:19:46.000Z | examples/ftqc_qrt/repeat-until-success.cpp | ausbin/qcor | e9e0624a0e14b1b980ce9265b71c9b394abc60a8 | [
"BSD-3-Clause"
] | 26 | 2019-07-08T17:30:35.000Z | 2021-12-03T16:24:12.000Z | #include <qalloc>
// Compile with: qcor -qpu qpp -qrt ftqc repeat-until-success.cpp
// Execute: ./a.out
// We should get the print out conditioned by the measurement.
// If not using the "ftqc" QRT, this will cause errors since the Measure results
// are not available yet.
// Using Repeat-Until-Success pattern to prep... | 29.022727 | 111 | 0.595928 | ausbin |
1ccac54f5a92974a050a80140b1d77874ae85e8d | 7,700 | cpp | C++ | Classes/C2DXShareSDK/Android/ShareSDKUtils.cpp | rhzx3519/C2DXShareSDKSample | 98630665c8d6b8ad0625e4c12bf6a542985aca07 | [
"MIT"
] | null | null | null | Classes/C2DXShareSDK/Android/ShareSDKUtils.cpp | rhzx3519/C2DXShareSDKSample | 98630665c8d6b8ad0625e4c12bf6a542985aca07 | [
"MIT"
] | null | null | null | Classes/C2DXShareSDK/Android/ShareSDKUtils.cpp | rhzx3519/C2DXShareSDKSample | 98630665c8d6b8ad0625e4c12bf6a542985aca07 | [
"MIT"
] | null | null | null | #include "ShareSDKUtils.h"
#if 1
#define LOG_TAG "ShareSDKUtils"
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG,LOG_TAG,__VA_ARGS__)
#else
#define LOGD(...)
#endif
#ifdef __cplusplus
extern "C" {
#endif
C2DXAuthResultEvent authCb;
C2DXGetUserInfoResultEvent infoCb;
C2DXShareResultEven... | 31.174089 | 129 | 0.697403 | rhzx3519 |
1ccd7bf9ca6d81ebe9e0d75b43440091ed17433c | 13,814 | cxx | C++ | main/sfx2/source/doc/iframe.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sfx2/source/doc/iframe.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sfx2/source/doc/iframe.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 35.060914 | 224 | 0.655929 | Grosskopf |
1cce7151dbb70ffb24ff24d4371c453a2d454913 | 3,333 | cpp | C++ | src/core/Input.cpp | pixelsquare/atom-engine | 763ed2446107f4baccb4a652effdd58303852ae4 | [
"MIT"
] | null | null | null | src/core/Input.cpp | pixelsquare/atom-engine | 763ed2446107f4baccb4a652effdd58303852ae4 | [
"MIT"
] | null | null | null | src/core/Input.cpp | pixelsquare/atom-engine | 763ed2446107f4baccb4a652effdd58303852ae4 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2012 PixelSquareLabs - All Rights Reserved
*
* Created: 06/05/2018
* Author: Anthony Ganzon
* Email: pixelsquarelabs@yahoo.com
* pixelsquarelabs@gmail.com
*/
#include "Input.h"
#include "StdC.h"
#include "PlatformGL.h"
ATOM_BEGIN
void (*mousePtr)(int x, int y);
void (*m... | 18.414365 | 61 | 0.563756 | pixelsquare |
1cd134969c6b8998180c25147ea56a350991b341 | 2,758 | cpp | C++ | chromium/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | chromium/third_party/WebKit/Source/modules/serviceworkers/InstallEvent.cpp | wedataintelligence/vivaldi-source | 22a46f2c969f6a0b7ca239a05575d1ea2738768c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "modules/serviceworkers/InstallEvent.h"
#include "core/dom/ExceptionCode.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScopeClient.h"
... | 32.833333 | 150 | 0.728789 | wedataintelligence |
1cd240e2bc97c431a30e18912baccb00632fab33 | 6,452 | cpp | C++ | src/ui/WaterfallDialog.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 6 | 2020-07-11T11:16:18.000Z | 2021-12-17T23:30:36.000Z | src/ui/WaterfallDialog.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | 9 | 2020-07-03T21:23:50.000Z | 2022-02-15T12:56:16.000Z | src/ui/WaterfallDialog.cpp | tlmrgvf/drtd | bf31747b963673797239cb11cd45c1c1ee4aeaa6 | [
"BSD-2-Clause"
] | null | null | null | /*
BSD 2-Clause License
Copyright (c) 2020, Till Mayer
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 of conditio... | 44.496552 | 178 | 0.734656 | tlmrgvf |
1cd3cb26a4adf887f1c2097296d3436f242fe359 | 2,320 | cpp | C++ | HRtoSQLite_tests/g.tests/src/Integral_Test.cpp | victorkryz/HRtoSQLite | 4eda35cacf5fde897646baf2acb795b8aefef3da | [
"MIT"
] | null | null | null | HRtoSQLite_tests/g.tests/src/Integral_Test.cpp | victorkryz/HRtoSQLite | 4eda35cacf5fde897646baf2acb795b8aefef3da | [
"MIT"
] | null | null | null | HRtoSQLite_tests/g.tests/src/Integral_Test.cpp | victorkryz/HRtoSQLite | 4eda35cacf5fde897646baf2acb795b8aefef3da | [
"MIT"
] | null | null | null | /**
* HRtoSQLite_tests
*
* @author Victor Kryzhanivskyi
*/
#include "Ora/Connection.h"
#include "Ora/Utils.h"
#include "Ora/Selector.h"
#include "Ora/Reader.h"
#include "TestCommon.h"
#include "Sqlt/DbsWriter.h"
#include "Ora/ConnectionHelper.h"
class IntegralTest : public ::testing::Test,
... | 22.095238 | 132 | 0.63319 | victorkryz |
1cd433e8fb746b8fff90e2cf62bb81df29035495 | 3,222 | cpp | C++ | libs/libsmlibraries/src/collection.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | libs/libsmlibraries/src/collection.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | libs/libsmlibraries/src/collection.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | /*
Copyright 2020 Simon Meaden
Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify, merge,
publish, dis... | 27.538462 | 161 | 0.629423 | simonmeaden |
1cd43a448911fbd04fe83949b42db9d78d125efa | 816 | cpp | C++ | LeetCodeSolutions/LeetCode_0340.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 24 | 2020-03-28T06:10:25.000Z | 2021-11-23T05:01:29.000Z | LeetCodeSolutions/LeetCode_0340.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | null | null | null | LeetCodeSolutions/LeetCode_0340.cpp | lih627/python-algorithm-templates | a61fd583e33a769b44ab758990625d3381793768 | [
"MIT"
] | 8 | 2020-05-18T02:43:16.000Z | 2021-05-24T18:11:38.000Z | class Solution {
public:
int lengthOfLongestSubstringKDistinct(string s, int k) {
unordered_map<char, int> counter;
int ret = 0;
int tmp = 0;
for(int i = 0; i < s.size(); ++i){
char &c = s[i];
++counter[c];
++tmp;
if(counter.size() <= k... | 28.137931 | 60 | 0.344363 | lih627 |
1cd7513293e95c643e2ada032f4d77d64a5b82e3 | 2,244 | cpp | C++ | src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.cpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 159 | 2020-06-17T01:01:55.000Z | 2022-03-28T10:33:37.000Z | src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.cpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-06-27T01:16:35.000Z | 2022-02-06T20:33:24.000Z | src/pal/tests/palsuite/c_runtime/_mbsdec/test1/test1.cpp | elinor-fung/coreclr | c1801e85024add717f518feb6a9caed60d54500f | [
"MIT"
] | 19 | 2020-05-21T08:18:20.000Z | 2021-06-29T01:13:13.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================================
**
** Source: test1.c
**
** Purpose:... | 28.769231 | 78 | 0.581105 | elinor-fung |
1cd76b72dd753f1e5cca7d97c06545594d848357 | 18,429 | cpp | C++ | core/evolution.cpp | Siddhant-K-code/darwin | 86781c9dabeceda7f8666bb1bb4b5ca7d725d81d | [
"Apache-2.0"
] | 94 | 2018-11-24T20:07:07.000Z | 2022-03-13T01:34:45.000Z | core/evolution.cpp | JJ/darwin | d5519b6d542c179cbc0f6575dcfce25e68e2f1df | [
"Apache-2.0"
] | 3 | 2020-11-21T04:49:43.000Z | 2021-02-09T18:15:23.000Z | core/evolution.cpp | JJ/darwin | d5519b6d542c179cbc0f6575dcfce25e68e2f1df | [
"Apache-2.0"
] | 18 | 2018-11-24T20:07:21.000Z | 2021-12-19T10:48:57.000Z | // Copyright 2018 The Darwin Neuroevolution Framework Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required ... | 29.022047 | 89 | 0.689348 | Siddhant-K-code |
1cd8988875fbb32d3d262aa03d8f50ce0797f1f3 | 5,336 | cpp | C++ | moos-ivp/ivp/src/lib_geometry/XYCommsPulse.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_geometry/XYCommsPulse.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | moos-ivp/ivp/src/lib_geometry/XYCommsPulse.cpp | EasternEdgeRobotics/2018 | 24df2fe56fa6d172ba3c34c1a97f249dbd796787 | [
"MIT"
] | null | null | null | /*****************************************************************/
/* NAME: Michael Benjamin */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: XYCommsPulse.cpp */
/* DATE: Dec 5th 2011 ... | 25.409524 | 70 | 0.498501 | EasternEdgeRobotics |
1cdb022200e0341dfef07f4b2cafc079b8f72fc0 | 90 | cpp | C++ | Source/FSD/Private/PLSEncounterComponent.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | Source/FSD/Private/PLSEncounterComponent.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | Source/FSD/Private/PLSEncounterComponent.cpp | trumank/DRG-Mods | 2febc879f2ffe83498ac913c114d0e933427e93e | [
"MIT"
] | null | null | null | #include "PLSEncounterComponent.h"
UPLSEncounterComponent::UPLSEncounterComponent() {
}
| 15 | 50 | 0.811111 | trumank |
1cde9554045fac17fee74ce98256b8f38e00a5f0 | 1,779 | cpp | C++ | src/owlVulkan/core/descriptor_set_layout.cpp | auperes/owl_engine | 6da8b48b1caf6cf9f224f1a1d5df59461e83ce9a | [
"MIT"
] | null | null | null | src/owlVulkan/core/descriptor_set_layout.cpp | auperes/owl_engine | 6da8b48b1caf6cf9f224f1a1d5df59461e83ce9a | [
"MIT"
] | null | null | null | src/owlVulkan/core/descriptor_set_layout.cpp | auperes/owl_engine | 6da8b48b1caf6cf9f224f1a1d5df59461e83ce9a | [
"MIT"
] | null | null | null | #include "descriptor_set_layout.h"
#include <array>
#include "vulkan_helpers.h"
namespace owl::vulkan::core
{
descriptor_set_layout::descriptor_set_layout(const std::shared_ptr<logical_device>& logical_device)
: _logical_device(logical_device)
{
VkDescriptorSetLayoutBinding uniform_layout_bin... | 46.815789 | 140 | 0.767285 | auperes |
1ce1d9e1c2bc974a6eb73a02948038db7a816bfc | 842 | cpp | C++ | UAlbertaBot/Source/strategies/zerg/ThreeHatchScourge.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 2 | 2017-07-06T18:27:41.000Z | 2018-03-14T06:19:43.000Z | UAlbertaBot/Source/strategies/zerg/ThreeHatchScourge.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 18 | 2017-10-29T20:37:47.000Z | 2019-08-25T16:01:28.000Z | UAlbertaBot/Source/strategies/zerg/ThreeHatchScourge.cpp | kant2002/ualbertabot | b4c75be8bf023f289f2e58e49ad600a9bda38fcd | [
"MIT"
] | 1 | 2017-09-13T07:02:23.000Z | 2017-09-13T07:02:23.000Z | #include "ThreeHatchScourge.h"
#include "..\..\UnitUtil.h"
using UAlbertaBot::MetaPairVector;
using UAlbertaBot::MetaPair;
using UAlbertaBot::UnitUtil::GetAllUnitCount;
AKBot::ThreeHatchScourge::ThreeHatchScourge(BWAPI::Player self): _self(self)
{
}
void AKBot::ThreeHatchScourge::getBuildOrderGoal(MetaPairVector& go... | 28.066667 | 94 | 0.766033 | kant2002 |
1cec3f6a74dc297e4082b3694dede3711fc066db | 2,729 | cc | C++ | source/common/http/conn_pool_base.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2021-12-10T23:58:57.000Z | 2021-12-10T23:58:57.000Z | source/common/http/conn_pool_base.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 30 | 2022-02-17T02:28:37.000Z | 2022-03-31T02:31:02.000Z | source/common/http/conn_pool_base.cc | jaricftw/envoy | 766f3fb8dbdafce402631c43c16fda46ed003462 | [
"Apache-2.0"
] | 1 | 2019-11-03T03:46:51.000Z | 2019-11-03T03:46:51.000Z | #include "common/http/conn_pool_base.h"
namespace Envoy {
namespace Http {
ConnPoolImplBase::PendingRequest::PendingRequest(ConnPoolImplBase& parent, StreamDecoder& decoder,
ConnectionPool::Callbacks& callbacks)
: parent_(parent), decoder_(decoder), callbacks_(callb... | 46.254237 | 99 | 0.751557 | jaricftw |
1cec87866a9ada7ac611ed3a82cc35c828bd8104 | 7,002 | cpp | C++ | YorozuyaGSLib/source/_dh_mission_mgrDetail.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_dh_mission_mgrDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_dh_mission_mgrDetail.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_dh_mission_mgrDetail.hpp>
#include <common/ATFCore.hpp>
START_ATF_NAMESPACE
namespace Detail
{
Info::_dh_mission_mgrGetLimMSecTime2_ptr _dh_mission_mgrGetLimMSecTime2_next(nullptr);
Info::_dh_mission_mgrGetLimMSecTime2_clbk _dh_mission_mgrGetLimMSecTime2_user(nullptr);
... | 54.703125 | 163 | 0.699372 | lemkova |
1ced9b79f8b3dd329e525472b67c8ebea77b2953 | 32,862 | cpp | C++ | plugins/CaptureTheFlag.cpp | PsychoLogicAu/GPUSteer | 99c23f0e27468b964207d65758612ade7d7c4892 | [
"MIT"
] | null | null | null | plugins/CaptureTheFlag.cpp | PsychoLogicAu/GPUSteer | 99c23f0e27468b964207d65758612ade7d7c4892 | [
"MIT"
] | null | null | null | plugins/CaptureTheFlag.cpp | PsychoLogicAu/GPUSteer | 99c23f0e27468b964207d65758612ade7d7c4892 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
//
//
// OpenSteer -- Steering Behaviors for Autonomous Characters
//
// Copyright (c) 2002-2003, Sony Computer Entertainment America
// Original author: Craig Reynolds <craig_reynolds@playstation.sony.com>
//
// Permission is hereby grante... | 34.124611 | 121 | 0.603493 | PsychoLogicAu |
1cee2ff8ee63ba51aec389c7f3406455fdd7a3e5 | 892 | hpp | C++ | SDK/ARKSurvivalEvolved_StructureSettings_BrokenByPlasma_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_StructureSettings_BrokenByPlasma_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_StructureSettings_BrokenByPlasma_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_StructureSettings_BrokenByPlasma_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//----------------------------------------... | 22.871795 | 134 | 0.676009 | 2bite |
1cee6deb9ddf0e9cbdaa8cd033483d87f792e1e0 | 500 | cpp | C++ | acmicpc/1946.cpp | juseongkr/BOJ | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 7 | 2020-02-03T10:00:19.000Z | 2021-11-16T11:03:57.000Z | acmicpc/1946.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2021-01-03T06:58:24.000Z | 2021-01-03T06:58:24.000Z | acmicpc/1946.cpp | juseongkr/Algorithm-training | 8f10a2bf9a7d695455493fbe7423347a8b648416 | [
"Apache-2.0"
] | 1 | 2020-01-22T14:34:03.000Z | 2020-01-22T14:34:03.000Z | #include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
vector<pair<int, int>> vec;
int t, n, a, b;
cin >> t;
while (t--) {
cin >> n;
for (int i=0; i<n; ++i) {
cin >> a >> b;
vec.push_back({a, b});
}
sort(vec.begin(), vec.end());
int ans = 1;
int prev = vec... | 13.888889 | 31 | 0.498 | juseongkr |
1cf155d7cd0580a126aa817059e5ad5c89fdbcbd | 21,127 | cxx | C++ | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimRoot.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 3 | 2016-05-30T15:12:16.000Z | 2022-03-22T08:11:13.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimRoot.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | 21 | 2016-06-13T11:33:45.000Z | 2017-05-23T09:46:52.000Z | SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimRoot.cxx | EnEff-BIM/EnEffBIM-Framework | 6328d39b498dc4065a60b5cc9370b8c2a9a1cddf | [
"MIT"
] | null | null | null | // Copyright (c) 2005-2014 Code Synthesis Tools CC
//
// This program was generated by CodeSynthesis XSD, an XML Schema to
// C++ data binding compiler.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
// published by the Fre... | 26.147277 | 123 | 0.558432 | EnEff-BIM |
1cf2697aa4fa44c82a42f2d8a0aaab20c26c2d3a | 10,661 | hpp | C++ | source/housys/include/hou/sys/pixel.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/housys/include/hou/sys/pixel.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/housys/include/hou/sys/pixel.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_SYS_PIXEL_HPP
#define HOU_SYS_PIXEL_HPP
#include "hou/sys/color.hpp"
#include "hou/sys/pixel_fwd.hpp"
#include "hou/sys/sys_config.hpp"
#include "hou/cor/pragmas.hpp"
#include <array>
namespace hou
{
HOU_PRAG... | 24.395881 | 80 | 0.658381 | DavideCorradiDev |
1cf3f12450e1339a4385eab14590f24f95726ca8 | 1,298 | cpp | C++ | src/CefView/CefBrowserApp/CefViewBrowserClient_KeyboardHandler.cpp | daiming/CefViewCore | 89837575e8d5f50aa16a91ef19b0ad7ddbff205e | [
"MIT"
] | null | null | null | src/CefView/CefBrowserApp/CefViewBrowserClient_KeyboardHandler.cpp | daiming/CefViewCore | 89837575e8d5f50aa16a91ef19b0ad7ddbff205e | [
"MIT"
] | null | null | null | src/CefView/CefBrowserApp/CefViewBrowserClient_KeyboardHandler.cpp | daiming/CefViewCore | 89837575e8d5f50aa16a91ef19b0ad7ddbff205e | [
"MIT"
] | null | null | null | #include <CefViewBrowserClient.h>
#pragma region std_headers
#include <sstream>
#include <string>
#include <algorithm>
#pragma endregion std_headers
#pragma region cef_headers
#include <include/cef_app.h>
#pragma endregion cef_headers
#include <Common/CefViewCoreLog.h>
CefRefPtr<CefKeyboardHandler>
CefViewBrowserC... | 24.490566 | 81 | 0.645609 | daiming |
1cf4a0b3678f6ac840485a14f35105d2cfcb4e71 | 702 | cpp | C++ | Dataset/Leetcode/train/56/22.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/56/22.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/56/22.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
vector<vector<int>> XXX(vector<vector<int>>& intervals) {
vector<vector<int>> res;
mer(intervals,res);
return res;
}
void mer(vector<vector<int>>& intervals,vector<vector<int>> &res)
{
int ed = -2e9,st = -2e9;
sort(intervals.begin(),inter... | 25.071429 | 69 | 0.465812 | kkcookies99 |