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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c1a88e491b1f0d20d779922f7b7b1684e61633c8 | 645 | cc | C++ | src/test/eventloop_test4.cc | bodu93/leanet | d64d2c357e2b3a09144f2bce7bf65c66fbe90abc | [
"BSD-3-Clause"
] | null | null | null | src/test/eventloop_test4.cc | bodu93/leanet | d64d2c357e2b3a09144f2bce7bf65c66fbe90abc | [
"BSD-3-Clause"
] | null | null | null | src/test/eventloop_test4.cc | bodu93/leanet | d64d2c357e2b3a09144f2bce7bf65c66fbe90abc | [
"BSD-3-Clause"
] | null | null | null | #include <unistd.h>
#include <sys/timerfd.h>
#include <strings.h>
#include <leanet/channel.h>
#include <leanet/eventloop.h>
using namespace leanet;
EventLoop* g_loop;
void timeout() {
printf("Timeout!\n");
g_loop->quit();
}
int main() {
EventLoop loop;
g_loop = &loop;
int timerfd = ::timerfd_create(CLOCK_MON... | 16.973684 | 77 | 0.706977 | bodu93 |
c1a9e7daa47659353d544f35049be979527a1931 | 1,810 | cpp | C++ | src/+cv/dft.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 571 | 2015-01-04T06:23:19.000Z | 2022-03-31T07:37:19.000Z | src/+cv/dft.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 362 | 2015-01-06T14:20:46.000Z | 2022-01-20T08:10:46.000Z | src/+cv/dft.cpp | 1123852253/mexopencv | 17db690133299f561924a45e9092673a4df66c5b | [
"BSD-3-Clause"
] | 300 | 2015-01-20T03:21:27.000Z | 2022-03-31T07:36:37.000Z | /**
* @file dft.cpp
* @brief mex interface for cv::dft
* @ingroup core
* @author Amro
* @date 2017
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
/**
* Main entry called from Matlab
* @param nlhs number of left-hand-side arguments
* @param plhs pointers to mxArrays in the left-hand-side
... | 31.754386 | 76 | 0.59337 | 1123852253 |
c1abf3fb7b0342f630b57bc9252adaabe5645977 | 1,943 | cpp | C++ | StdDev.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | StdDev.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | StdDev.cpp | adityas129/ECE-150 | 0db483690ad2ce8fe1d5df4994c55bddc7a32569 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <float.h>
#include <limits.h>
#include <math.h>
using namespace std;
int main(const int argc, const char* const argv[]){
if (argc < 2 ){
cerr << "Error: Unable to compute statistics over data set because not enough inputs arguments were given." << endl;
retu... | 22.858824 | 120 | 0.592383 | adityas129 |
c1ad5772dfb7223210a9f21cabc209b38f0faab1 | 590 | cpp | C++ | stones.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | stones.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | stones.cpp | shirishbahirat/algorithm | ec743d4c16ab4f429f22bd6f71540341b3905b3b | [
"Apache-2.0"
] | null | null | null | #include <cstring>
#include <iostream>
using namespace std;
class Solution
{
public:
int numJewelsInStones(string jewels, string stones)
{
int count = 0;
for (int i = 0; i < jewels.size(); ++i)
{
for (int j = 0; j < stones.size(); ++j)
{
if (jewels[i] == stones[j])
count... | 15.526316 | 53 | 0.564407 | shirishbahirat |
c1ad7a2a435efa59ad906dc427d153a34fc25e87 | 5,564 | cc | C++ | kanon/net/connector.cc | Conzxy/kanon | 3440b0966153a0b8469e90b2a52df317aa4fe723 | [
"MIT"
] | null | null | null | kanon/net/connector.cc | Conzxy/kanon | 3440b0966153a0b8469e90b2a52df317aa4fe723 | [
"MIT"
] | null | null | null | kanon/net/connector.cc | Conzxy/kanon | 3440b0966153a0b8469e90b2a52df317aa4fe723 | [
"MIT"
] | null | null | null | #include "kanon/net/connector.h"
#include "kanon/net/sock_api.h"
#include "kanon/net/event_loop.h"
#include "kanon/net/channel.h"
using namespace kanon;
#define INIT_RETRY_INTERVAL 500
#define MAX_RETRY_INTERVAL 30000
Connector::Connector(
EventLoop* loop,
InetAddr const& serv_addr)
: loop_{ loop }
, serv_... | 26.369668 | 88 | 0.642703 | Conzxy |
c1ae5e0e7504bf0145e0d1dc9e3f13cf1b1dbacc | 595 | hpp | C++ | include/type_array/u_tarr_pop.hpp | czjone/type_string | 2cbb31964169dbafa3d146319cab77af09711c6f | [
"MIT"
] | 12 | 2016-02-04T11:36:00.000Z | 2018-01-06T12:13:18.000Z | include/type_array/u_tarr_pop.hpp | czjone/type_string | 2cbb31964169dbafa3d146319cab77af09711c6f | [
"MIT"
] | null | null | null | include/type_array/u_tarr_pop.hpp | czjone/type_string | 2cbb31964169dbafa3d146319cab77af09711c6f | [
"MIT"
] | 6 | 2016-02-01T13:58:56.000Z | 2018-04-08T06:11:37.000Z | #ifndef INC__U_TARR_POP_HPP__
#define INC__U_TARR_POP_HPP__
namespace utl
{
/*!
* \brief Pos a type at the position represented by index.
*/
template< class T, unsigned int index = 0 >
class u_tarr_pop
{
typedef u_tarr_fix_type< index, T > fix_t;
public:
enum { m_parent_const = fix_t::m_parent_const };
typedef ty... | 17.5 | 58 | 0.721008 | czjone |
c1b170dcc51844aaf6f2fcf4b9c911ab6657ca4e | 2,931 | cc | C++ | src/2lgc/pattern/publisher/connector_subscriber.cc | Joyero/lib2lgc | 5ef337ebe167fd68d2432b6297e25d4e533cb612 | [
"Apache-2.0"
] | null | null | null | src/2lgc/pattern/publisher/connector_subscriber.cc | Joyero/lib2lgc | 5ef337ebe167fd68d2432b6297e25d4e533cb612 | [
"Apache-2.0"
] | null | null | null | src/2lgc/pattern/publisher/connector_subscriber.cc | Joyero/lib2lgc | 5ef337ebe167fd68d2432b6297e25d4e533cb612 | [
"Apache-2.0"
] | 1 | 2019-04-23T14:53:34.000Z | 2019-04-23T14:53:34.000Z | /*
* Copyright 2018 LE GARREC Vincent
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 30.216495 | 119 | 0.74855 | Joyero |
c1b5a593acbdc3548a5a863c1c247ab99fee149d | 2,793 | cpp | C++ | 3_1_three_in_one/3_1_three_in_one.cpp | ltowarek/coding-interview | 7d53ae43a7a0985f59d5eeb0bcbe7a2845d8f465 | [
"MIT"
] | null | null | null | 3_1_three_in_one/3_1_three_in_one.cpp | ltowarek/coding-interview | 7d53ae43a7a0985f59d5eeb0bcbe7a2845d8f465 | [
"MIT"
] | null | null | null | 3_1_three_in_one/3_1_three_in_one.cpp | ltowarek/coding-interview | 7d53ae43a7a0985f59d5eeb0bcbe7a2845d8f465 | [
"MIT"
] | null | null | null | // Three in One: Describe how you could use a single array to implement three
// stacks.
#include "gtest/gtest.h"
template <class T> class MultiStack {
public:
MultiStack(const size_t _max_stack_size)
: max_stack_size(_max_stack_size),
sizes(std::vector<T>(number_of_stacks, 0)),
values(std::ve... | 25.390909 | 77 | 0.653061 | ltowarek |
c1b6dc24ed2a26017fa22c1f6a35be8ef8571a34 | 6,511 | hpp | C++ | xlib/include/Host/impl/Statistics.i.hpp | divyegala/hornet | 7c4cbc3b9a56ce208e35d7733aeeda18d0c9ff93 | [
"BSD-3-Clause"
] | 61 | 2017-10-09T01:26:35.000Z | 2022-03-18T12:39:18.000Z | xlib/include/Host/impl/Statistics.i.hpp | divyegala/hornet | 7c4cbc3b9a56ce208e35d7733aeeda18d0c9ff93 | [
"BSD-3-Clause"
] | 37 | 2017-10-18T14:01:57.000Z | 2022-02-18T18:23:30.000Z | xlib/include/Host/impl/Statistics.i.hpp | divyegala/hornet | 7c4cbc3b9a56ce208e35d7733aeeda18d0c9ff93 | [
"BSD-3-Clause"
] | 32 | 2017-10-11T15:33:01.000Z | 2020-12-11T17:41:19.000Z | /*------------------------------------------------------------------------------
Copyright © 2016 by Nicola Bombieri
XLib is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Softwar... | 39.222892 | 82 | 0.632468 | divyegala |
c1b8d5e9528cd53e120389775ea27b606b3847cb | 5,181 | cpp | C++ | Testing/Core/albaAxesTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Testing/Core/albaAxesTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Testing/Core/albaAxesTest.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaAxesTest
Authors: Stefano Perticoni
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
th... | 26.706186 | 90 | 0.688091 | IOR-BIC |
c1ba5767b78e8005aa807ce4c9b28ef2db5dd211 | 943 | cpp | C++ | Make_Pair.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | Make_Pair.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | Make_Pair.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
string s;
cin>>s;
//'(' and ')' count how many times occur in the string
int count_open=0;
int count_close=0;
for(int i=0;i<s.size();i++){
if(s[i]=='('){
count_open++;
}
else if(s[i]==')'){
count_close++;
}
}... | 17.145455 | 70 | 0.468717 | jnvshubham7 |
c1be1b70a2f4c1a8a9a1ed229460d8722db3e3b6 | 1,067 | hpp | C++ | plugins/network/NetLng.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | 1 | 2019-11-15T10:13:04.000Z | 2019-11-15T10:13:04.000Z | plugins/network/NetLng.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | null | null | null | plugins/network/NetLng.hpp | TheChatty/FarManager | 0a731ce0b6f9f48f10eb370240309bed48e38f11 | [
"BSD-3-Clause"
] | null | null | null | enum
{
MOk,
MCancel,
MError,
MYes,
MNetMenu,
MDiskMenuString,
MF5,
MF6,
MSHIFTF5,
MSHIFTF6,
MF8,
MF8Fav,
MF4,
MWaitForNetworkBrowse1,
MWaitForNetworkBrowse2,
MNetCannotBrowse,
MNetCannotConnect,
MAlreadyRemembered,
MOpenFiles,
MAskDisconnect,
MNetCannotDisconnect,
MNoFreeLetters,
MNetUser... | 13.679487 | 31 | 0.816307 | TheChatty |
c1c7589cbf75b72403eadbaaf0f005504bde0b2d | 1,771 | cpp | C++ | src/units/compl-check.cpp | vhavlena/ranker | 837a98b462ea92769c82bf6f1678cc40d63937b0 | [
"MIT"
] | null | null | null | src/units/compl-check.cpp | vhavlena/ranker | 837a98b462ea92769c82bf6f1678cc40d63937b0 | [
"MIT"
] | null | null | null | src/units/compl-check.cpp | vhavlena/ranker | 837a98b462ea92769c82bf6f1678cc40d63937b0 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <set>
#include <map>
#include <fstream>
#include <chrono>
#include <iomanip>
#include "units-config.h"
#include "../Automata/BuchiAutomaton.h"
#include "../Algorithms/Simulations.h"
#include "../Complement/BuchiAutomatonSpec.h"
#include "../Automata/BuchiAutomataParser.h"
#include "../Com... | 23.302632 | 87 | 0.614907 | vhavlena |
c1c9b7e86b8a7b5e779ae92cd95c4d09d971cf9d | 385 | cpp | C++ | test_variant.cpp | mikecovlee/toys | 58e5b0b2eb51350cd1817eb79b3a13488f2e576a | [
"Apache-2.0"
] | 10 | 2017-06-15T05:11:02.000Z | 2021-08-18T12:08:26.000Z | test_variant.cpp | mikecovlee/toys | 58e5b0b2eb51350cd1817eb79b3a13488f2e576a | [
"Apache-2.0"
] | null | null | null | test_variant.cpp | mikecovlee/toys | 58e5b0b2eb51350cd1817eb79b3a13488f2e576a | [
"Apache-2.0"
] | 5 | 2019-03-12T15:16:59.000Z | 2021-08-15T03:41:11.000Z | #include <iostream>
#include <string>
#include "./variant.hpp"
using variant_impl::variant;
int main()
{
variant<int, double, std::string> var;
std::cout<<var.type().name()<<std::endl;
var=10;
std::cout<<var.get<int>()<<std::endl;
var=3.14;
std::cout<<static_cast<double>(var)<<std::endl;
var.force_emplace("Hel... | 21.388889 | 48 | 0.65974 | mikecovlee |
c1d716ce9f05b9036a6b9b9098ff66965dd69de2 | 3,342 | cc | C++ | tensorflow/core/common_runtime/single_threaded_cpu_device.cc | Sonata-Wang/tensorflow | 8bbef0cd77879d05ed69bf30e76087847a8ca4a2 | [
"Apache-2.0"
] | 36 | 2016-12-17T15:25:25.000Z | 2022-01-29T21:50:53.000Z | tensorflow/core/common_runtime/single_threaded_cpu_device.cc | YaoYaoZhi/tensorflow | 83903c9dd9b5235996ec9158c30a1607fcfb4c73 | [
"Apache-2.0"
] | 30 | 2016-10-04T15:38:08.000Z | 2020-07-16T12:09:33.000Z | tensorflow/core/common_runtime/single_threaded_cpu_device.cc | YaoYaoZhi/tensorflow | 83903c9dd9b5235996ec9158c30a1607fcfb4c73 | [
"Apache-2.0"
] | 36 | 2017-07-27T21:12:40.000Z | 2022-02-03T16:45:56.000Z | /* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... | 35.935484 | 80 | 0.716936 | Sonata-Wang |
c1ddf7b9423438da09acad3c115ec300e43957dd | 2,885 | cpp | C++ | src/LibAmqp/Transport/Connection/TestSupport/ReadInterceptor.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 6 | 2015-11-05T10:28:59.000Z | 2021-05-06T03:50:12.000Z | src/LibAmqp/Transport/Connection/TestSupport/ReadInterceptor.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 2 | 2015-04-21T09:57:43.000Z | 2015-04-21T10:00:46.000Z | src/LibAmqp/Transport/Connection/TestSupport/ReadInterceptor.cpp | travelping/libamqp | afd15eec16bab7be4da9e4cc371392ea3f1a881e | [
"Apache-2.0"
] | 4 | 2016-09-14T08:01:24.000Z | 2021-06-15T11:24:14.000Z | /*
Copyright 2011-2012 StormMQ Limited
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 31.358696 | 167 | 0.666205 | travelping |
c1e109ff9313a61759ffbaef64ce5c4f30260dbb | 2,189 | cpp | C++ | DynamicProgramming/palindromicsubstrings.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 4 | 2020-12-29T09:27:10.000Z | 2022-02-12T14:20:23.000Z | DynamicProgramming/palindromicsubstrings.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-27T06:15:28.000Z | 2021-11-27T06:15:28.000Z | DynamicProgramming/palindromicsubstrings.cpp | thisisnitish/cp-dsa- | 9ae94930b65f8dc293d088e9148960939b9f6fa4 | [
"MIT"
] | 1 | 2021-11-17T21:42:57.000Z | 2021-11-17T21:42:57.000Z | /*
Leetcode Question 647. Palindromic Substrings
https://leetcode.com/problems/palindromic-substrings/
*/
//Brute Force
class Solution
{
public:
//Time: O(N^3)
int countSubstrings(string s)
{
int count = 0;
for (int i = 0; i < s.size(); i++)
{
for (int j = 1; j <= s.size... | 25.453488 | 90 | 0.372773 | thisisnitish |
c1e4cc02b9e50ea2bfaa7933630a7947dfde706f | 7,846 | cpp | C++ | src/lib/logger.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | src/lib/logger.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | src/lib/logger.cpp | dyle71/hcs-logger | aa3061d160b8bf84e2e4de05c5b29f09a8428bde | [
"MIT"
] | null | null | null | /*
* This file is part of the headcode.space logger.
*
* The 'LICENSE.txt' file in the project root holds the software license.
* Copyright (C) 2021 headcode.space e.U.
* Oliver Maurhart <info@headcode.space>, https://www.headcode.space
*/
#include <headcode/logger/logger_core.hpp>
#include <headcode/logger/sin... | 23.008798 | 115 | 0.593296 | dyle71 |
c1e614095c886ce49da94e8032e77a23e7a7f0a6 | 7,436 | cpp | C++ | src/unity/toolkits/object_detection/od_yolo.cpp | funnymania/turicreate | d35780f2c70acb34543a2372e24b011654e9a409 | [
"BSD-3-Clause"
] | null | null | null | src/unity/toolkits/object_detection/od_yolo.cpp | funnymania/turicreate | d35780f2c70acb34543a2372e24b011654e9a409 | [
"BSD-3-Clause"
] | 1 | 2018-12-11T10:37:10.000Z | 2018-12-11T10:37:10.000Z | src/unity/toolkits/object_detection/od_yolo.cpp | pj520/turicreate | 72d81e35ec4c2d4d0ff3188a858f2c9b5e6973d9 | [
"BSD-3-Clause"
] | null | null | null | /* Copyright © 2018 Apple Inc. All rights reserved.
*
* Use of this source code is governed by a BSD-3-clause license that can
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
*/
#include <unity/toolkits/neural_net/model_spec.hpp>
#include <logger/assertions.hpp>
using turi::... | 35.75 | 86 | 0.574233 | funnymania |
c1e7caf8b8907edc7aa965a26208085796b3fd99 | 10,255 | cxx | C++ | ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/exec/testing/UnitTestParametricCoordinates.cxx | DogIsMe/myvtk9.03 | 4fd2319624d90c120816aa06d65e1e350a590542 | [
"BSD-3-Clause"
] | 1 | 2021-07-21T07:15:44.000Z | 2021-07-21T07:15:44.000Z | ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/exec/testing/UnitTestParametricCoordinates.cxx | DogIsMe/myvtk9.03 | 4fd2319624d90c120816aa06d65e1e350a590542 | [
"BSD-3-Clause"
] | null | null | null | ThirdParty/vtkm/vtkvtkm/vtk-m/vtkm/exec/testing/UnitTestParametricCoordinates.cxx | DogIsMe/myvtk9.03 | 4fd2319624d90c120816aa06d65e1e350a590542 | [
"BSD-3-Clause"
] | 2 | 2020-07-06T06:32:00.000Z | 2020-08-24T14:08:15.000Z | //============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURP... | 37.981481 | 100 | 0.704047 | DogIsMe |
c1e87451898702dc8c080367488dacce0efde31e | 20,670 | cpp | C++ | QueryEngine/GeosRuntime.cpp | yeyuqiang/omniscidb | b1c183de411b5d0e9d6fbe622c092c3234fe4333 | [
"Apache-2.0"
] | null | null | null | QueryEngine/GeosRuntime.cpp | yeyuqiang/omniscidb | b1c183de411b5d0e9d6fbe622c092c3234fe4333 | [
"Apache-2.0"
] | 31 | 2021-06-22T07:52:23.000Z | 2022-02-08T00:00:09.000Z | QueryEngine/GeosRuntime.cpp | yeyuqiang/omniscidb | b1c183de411b5d0e9d6fbe622c092c3234fe4333 | [
"Apache-2.0"
] | 10 | 2021-05-31T08:44:38.000Z | 2022-01-27T08:24:50.000Z | /*
* Copyright 2019 OmniSci Technologies, Inc.
*
* 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 la... | 31.365706 | 90 | 0.629221 | yeyuqiang |
c1ecad7d7874890c74da3d655e0b2d9a87e4fb44 | 1,972 | cpp | C++ | src/models/datelistmodel.cpp | sailfish-os-apps/zatraty | 0211a86875acbff87b288272bf80c28ca1cef17d | [
"Apache-2.0"
] | 1 | 2017-03-01T20:12:31.000Z | 2017-03-01T20:12:31.000Z | src/models/datelistmodel.cpp | sailfish-os-apps/zatraty | 0211a86875acbff87b288272bf80c28ca1cef17d | [
"Apache-2.0"
] | 6 | 2017-03-02T12:45:50.000Z | 2019-02-14T09:28:01.000Z | src/models/datelistmodel.cpp | sailfish-os-apps/zatraty | 0211a86875acbff87b288272bf80c28ca1cef17d | [
"Apache-2.0"
] | 8 | 2017-03-01T20:25:12.000Z | 2019-07-04T09:54:53.000Z | #include "datelistmodel.h"
#include "database.h"
DateListModel::DateListModel(QObject *parent)
: QAbstractListModel(parent)
{
refresh();
connect(&DataBase::instance(), &DataBase::updated, this, &DateListModel::refresh);
}
int DateListModel::rowCount(const QModelIndex& parent) const
{
Q_UNUSED(parent);... | 20.978723 | 86 | 0.61359 | sailfish-os-apps |
c1ecd0c27ae3144fc519ffd7ed07ae15996e3157 | 3,460 | cpp | C++ | foedus_code/foedus-core/src/foedus/snapshot/mapreduce_base_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/src/foedus/snapshot/mapreduce_base_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/src/foedus/snapshot/mapreduce_base_impl.cpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 34.949495 | 99 | 0.706936 | sam1016yu |
c1ed00ea4db51bc83e75ee60acc9cc9ff130140f | 1,660 | cc | C++ | code/2018-05-02-trivial-offset-ptr.cc | allenlu2009/blog | fe42bdf72731ded38c32cc25c60d6d03b144c312 | [
"MIT"
] | 15 | 2019-02-06T05:54:16.000Z | 2021-11-26T13:25:54.000Z | code/2018-05-02-trivial-offset-ptr.cc | allenlu2009/blog | fe42bdf72731ded38c32cc25c60d6d03b144c312 | [
"MIT"
] | 1 | 2018-04-26T17:48:31.000Z | 2018-04-26T17:48:31.000Z | code/2018-05-02-trivial-offset-ptr.cc | allenlu2009/blog | fe42bdf72731ded38c32cc25c60d6d03b144c312 | [
"MIT"
] | 14 | 2018-04-26T13:53:20.000Z | 2022-03-09T11:33:06.000Z | #include <assert.h>
#include <stdio.h>
#include <stdint.h>
#define TRIVIAL_ABI __attribute__((trivial_abi))
template<class Ptr>
Ptr incr(Ptr p) {
p += 1;
return p;
}
template<class T>
class offset_ptr {
intptr_t value_;
public:
offset_ptr(T *p) : value_((const char*)p - (const char*)this) {}
offs... | 26.774194 | 109 | 0.612048 | allenlu2009 |
c1ed22cafa59c6c2de1b6d1ac32fe85b99578041 | 431 | cpp | C++ | src/connectdialog.cpp | rebecca-odonoghue/digiscope | 3f6c448d72866f9976e7e47ecc6b52b0a2338f26 | [
"MIT"
] | 1 | 2021-06-30T08:59:01.000Z | 2021-06-30T08:59:01.000Z | src/connectdialog.cpp | rebecca-odonoghue/digiscope | 3f6c448d72866f9976e7e47ecc6b52b0a2338f26 | [
"MIT"
] | null | null | null | src/connectdialog.cpp | rebecca-odonoghue/digiscope | 3f6c448d72866f9976e7e47ecc6b52b0a2338f26 | [
"MIT"
] | null | null | null | #include "connectdialog.h"
#include "ui_connectdialog.h"
ConnectDialog::ConnectDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ConnectDialog)
{
ui->setupUi(this);
setWindowTitle("Connect to Host");
}
ConnectDialog::~ConnectDialog()
{
delete ui;
}
// Called when the IP address is specified t... | 19.590909 | 63 | 0.693735 | rebecca-odonoghue |
c1ee715b97833cbc9da1649a6c62986de0d5df5b | 397 | cpp | C++ | brute/NandM/nm2.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | brute/NandM/nm2.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | brute/NandM/nm2.cpp | SiverPineValley/algo | 29c75c6b226fdb15a3b6695e763ee49d4871094e | [
"Apache-2.0"
] | null | null | null | // 15650
// 백준's 코드
#include <iostream>
using namespace std;
int a[10];
void nm(int index, int start, int N, int M)
{
if(index == M)
{
for(int i = 0; i < M; i++)
{
cout << a[i];
if(i != M-1) cout << " ";
}
cout << "\n";
return;
}
for(int i = start; i<=N; i++)
{
a[index] = i;
nm(index+1,i+1,N,M)... | 13.233333 | 43 | 0.481108 | SiverPineValley |
c1f2b50863c0c3f59cb8b871e1b1091ecb82dcfa | 2,214 | cpp | C++ | contracts/system/contract/donations.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | contracts/system/contract/donations.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | contracts/system/contract/donations.cpp | EOSPowerNetwork/system-epn | dfa836101f6b148916b08b3c2988b591ed92ce9e | [
"MIT"
] | null | null | null | #include "donations.hpp"
#include <eosio/action.hpp>
#include <eosio/eosio.hpp>
#include <eosio/name.hpp>
#include <eosio/print.hpp>
#include <eosio/system.hpp>
#include <string>
#include <token/token.hpp>
#include "core/errormessages.hpp"
#include "core/fixedprops.hpp"
#include "interface/include/donationsIntf.hpp"... | 44.28 | 168 | 0.755646 | EOSPowerNetwork |
c1fc15d1d8fb32609137614302adbecc146adcbb | 604 | cpp | C++ | Coil/Source/Coil/GUI/GUIOverlay.cpp | ikold/Coil | 190c8629853d024e1e7bbac5ae32aafdbbeec885 | [
"Apache-2.0"
] | null | null | null | Coil/Source/Coil/GUI/GUIOverlay.cpp | ikold/Coil | 190c8629853d024e1e7bbac5ae32aafdbbeec885 | [
"Apache-2.0"
] | null | null | null | Coil/Source/Coil/GUI/GUIOverlay.cpp | ikold/Coil | 190c8629853d024e1e7bbac5ae32aafdbbeec885 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "GUIOverlay.h"
#include "imgui.h"
namespace Coil
{
GUIOverlay::GUIOverlay(const GUIWindowProps& properties)
: GUIWindow(properties)
{
Flags = ImGuiWindowFlags_NoDecoration | ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoFocusOnAppearing | I... | 22.37037 | 203 | 0.774834 | ikold |
de0165d60536a89f21a6d0b02cc12556192cfffb | 556 | hpp | C++ | nacl/misc/lis.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | 3 | 2021-08-31T17:51:01.000Z | 2021-11-13T16:22:25.000Z | nacl/misc/lis.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | nacl/misc/lis.hpp | ToxicPie/NaCl | 8cb50bacc25f2b99a33fb5938ea4ec9906d8d65c | [
"MIT"
] | null | null | null | /// source: KACTL
template <class I> vi lis(const vector<I> &S) {
if (S.empty()) return {};
vi prev(sz(S));
typedef pair<I, int> p;
vector<p> res;
rep(i, 0, sz(S)) {
// change 0 -> i for longest non-decreasing subsequence
auto it = lower_bound(all(res), p{S[i], 0});
if (it == res.end())
res... | 26.47619 | 59 | 0.532374 | ToxicPie |
de020c8b6219335b15a32889d8aad1afeb5e4ce1 | 655 | cpp | C++ | test/test_rl.cpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 12 | 2020-01-09T22:15:00.000Z | 2022-03-15T21:36:21.000Z | test/test_rl.cpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 2 | 2021-05-05T16:34:29.000Z | 2021-09-19T20:14:58.000Z | test/test_rl.cpp | pratzl/graph | 4bb50e92ab77bb1e672285340acf221ae5ae75af | [
"BSL-1.0"
] | 3 | 2020-01-30T21:41:55.000Z | 2021-05-05T10:48:04.000Z | #include "graph/directed_adjacency_vector.hpp"
#include <catch2/catch.hpp>
struct rl_weight_value {
float weight = 0;
rl_weight_value() = default;
rl_weight_value(const rl_weight_value&) = default;
rl_weight_value& operator=(const rl_weight_value&) = default;
rl_weight_value(const floa... | 32.75 | 97 | 0.679389 | pratzl |
de056590a5141d4229aa4729a4953645edf5548a | 9,227 | cpp | C++ | src/demos/vehicle/demo_SuspensionTest/demo_VEH_SuspensionTestRig.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | 1 | 2015-03-19T16:48:13.000Z | 2015-03-19T16:48:13.000Z | src/demos/vehicle/demo_SuspensionTest/demo_VEH_SuspensionTestRig.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | null | null | null | src/demos/vehicle/demo_SuspensionTest/demo_VEH_SuspensionTestRig.cpp | chfeller/chrono | 652d5a6ed433611f2d335cf33b7da5658bf6f620 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 40.469298 | 118 | 0.647448 | chfeller |
de05cefec9be531d8dbb8e968340331d75f938d2 | 493 | cpp | C++ | cplusplus/arrays/contemplations/crux02.cpp | cs-joy/cpp-2a | 3c62f582d8b4fe808153d0639c762ccec0c76af6 | [
"MIT"
] | 1 | 2022-03-07T16:57:04.000Z | 2022-03-07T16:57:04.000Z | cplusplus/arrays/contemplations/crux02.cpp | cs-joy/cpp-2a | 3c62f582d8b4fe808153d0639c762ccec0c76af6 | [
"MIT"
] | null | null | null | cplusplus/arrays/contemplations/crux02.cpp | cs-joy/cpp-2a | 3c62f582d8b4fe808153d0639c762ccec0c76af6 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int arr[6] = {1, 2, 3, 4, 5, 6};
void relocate_print(int in, int array[6], int nu) {
for(int u = 6; u > 6; u=u-1) {
array[u] = array[u-1];
}
array[in] = nu;
for(int i = 0; i <= 6; i++) {
cout << array[i] << "\n";
}
return;
}
int main(... | 17 | 51 | 0.484787 | cs-joy |
de05d2dbe61bece30051bddb29181daebf9f1aca | 1,866 | cpp | C++ | moc_NuanceGLWidget.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | moc_NuanceGLWidget.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | moc_NuanceGLWidget.cpp | andkrau/nuance | 32b9d6b9257c6c51944727456fce2e7caf074182 | [
"W3C"
] | null | null | null | /****************************************************************************
** NuanceGLWidget meta object code from reading C++ file 'NuanceGLWidget.h'
**
** Created: Sun Nov 7 23:54:24 2004
** by: The Qt MOC ($Id: //depot/qt/main/src/moc/moc.y#178 $)
**
** WARNING! All changes made in this file will be lo... | 25.561644 | 79 | 0.639335 | andkrau |
de0673f7a615c62eabee303a4a6842b461442619 | 894 | hpp | C++ | plugins/opengl/include/sge/opengl/xrandr/configuration.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/include/sge/opengl/xrandr/configuration.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/include/sge/opengl/xrandr/configuration.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef SGE_OPENGL_XRANDR_CONFIGURATION_HPP_INCLUDED
#define SGE_OPENGL_XRANDR_CONFIGURATION_HPP_IN... | 24.162162 | 69 | 0.766219 | cpreh |
de069d816a62bcba19cb61d33fa898186cb9bf92 | 735 | cpp | C++ | 416.分割等和子集/canPartition_回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2019-10-21T14:40:39.000Z | 2019-10-21T14:40:39.000Z | 416.分割等和子集/canPartition_回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | null | null | null | 416.分割等和子集/canPartition_回溯法.cpp | YichengZhong/Top-Interview-Questions | 124828d321f482a0eaa30012b3706267487bfd24 | [
"MIT"
] | 1 | 2020-11-04T07:33:34.000Z | 2020-11-04T07:33:34.000Z | class Solution {
public:
int sumhalf;
bool flag;
bool canPartition(vector<int>& nums) {
int sum=0;
for(int i=0;i<nums.size();++i)
{
sum=sum+nums[i];
}
if(sum%2==1)
return false;
sumhalf=sum/2;
flag=false... | 19.342105 | 49 | 0.376871 | YichengZhong |
900250bfba568933fd5f3ff3bc73e32ef004c6c9 | 11,454 | cpp | C++ | Kawakawa/KawaiiGraphic/RHI/DX12GraphicRHI.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/KawaiiGraphic/RHI/DX12GraphicRHI.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/KawaiiGraphic/RHI/DX12GraphicRHI.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "DX12GraphicRHI.h"
#include "DX12Device.h"
#include "DX12CommandContext.h"
#include "DX12Texture.h"
#include "DX12MemoryAllocator.h"
using Microsoft::WRL::ComPtr;
namespace RHI
{
DX12GraphicRHI::DX12GraphicRHI()
{
}
DX12GraphicRHI::~DX12GraphicRHI()
{
Destroy();
}
void DX12Graphi... | 30.544 | 165 | 0.755544 | JiaqiJin |
90083f3edc99102cecac5935ed4ff6c524885f9a | 2,381 | cpp | C++ | array/segregate-even-odd-numbers.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | 1 | 2018-08-28T17:44:45.000Z | 2018-08-28T17:44:45.000Z | array/segregate-even-odd-numbers.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | array/segregate-even-odd-numbers.cpp | HarshitKaushik/ds-algorithms-revision | 98fddca7b196179dd795dfde822a1d9bb1518b74 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
// Given an array a[], write a function that segregates even and odd numbers.
// The functions should put all even numbers first, and then odd numbers.
// Reference links:
// https://www.geeksforgeeks.org/segregate-even-and-odd-numbers/
// https://www.geeksforgeeks.org/segregat... | 25.329787 | 85 | 0.587568 | HarshitKaushik |
900dce72721e52cffdd2fc0236a27bc836ec1d1e | 1,248 | hpp | C++ | src/SphericModel.hpp | mboussah/libori2.0 | aef2217ee6390c094e50d769258614f5dfc0b31d | [
"MIT"
] | 1 | 2019-08-14T09:58:54.000Z | 2019-08-14T09:58:54.000Z | src/SphericModel.hpp | mboussah/libori2.0 | aef2217ee6390c094e50d769258614f5dfc0b31d | [
"MIT"
] | null | null | null | src/SphericModel.hpp | mboussah/libori2.0 | aef2217ee6390c094e50d769258614f5dfc0b31d | [
"MIT"
] | 1 | 2019-11-12T11:09:00.000Z | 2019-11-12T11:09:00.000Z | #ifndef __SPHERIC_MODEL_HPP__
#define __SPHERIC_MODEL_HPP__
#include "IntrinsicModel.hpp"
class SphericModel : public IntrinsicModel
{
public:
#if HAVE_XML
bool Read(TiXmlNode* node);
bool Write(std::ostream& out) const;
#endif
#if HAVE_JSON
bool Read(const Json::Value& json, double position... | 31.2 | 117 | 0.696314 | mboussah |
90129f7c4587fc4fa2facb0467e17dd6bfcb1119 | 20,576 | hpp | C++ | src/ai/api/ai_road.hpp | trademarks/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 8 | 2016-10-21T09:01:43.000Z | 2021-05-31T06:32:14.000Z | src/ai/api/ai_road.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | null | null | null | src/ai/api/ai_road.hpp | blackberry/OpenTTD | fd7fca73cf61a2960e8df8fa221b179d23ae3ef0 | [
"Unlicense"
] | 4 | 2017-05-16T00:15:58.000Z | 2020-08-06T01:46:31.000Z | /* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... | 41.991837 | 185 | 0.720257 | trademarks |
9014c4d8a36ee8ffd22ed4aaedb87adf068cb3c9 | 4,592 | cpp | C++ | other/reader2.cpp | expression-dev/C- | fb1f3cc59783daa85d76783d82a9f48ee749ec99 | [
"MIT"
] | 1 | 2016-08-03T06:19:35.000Z | 2016-08-03T06:19:35.000Z | other/reader2.cpp | expression-dev/C- | fb1f3cc59783daa85d76783d82a9f48ee749ec99 | [
"MIT"
] | 1 | 2016-08-03T06:21:12.000Z | 2016-08-03T06:21:12.000Z | other/reader2.cpp | expression-dev/C- | fb1f3cc59783daa85d76783d82a9f48ee749ec99 | [
"MIT"
] | null | null | null |
{
std::ifstream in ("in");
std::string curr_line;
std::string def;
while (!in.eof())
{
Start2:
{
getline (in, curr_line);
def = "";
int i = 0;
for (i = 0 ; curr_line [i] != ' ' and curr_line [i] != '[' ; i ++)
def += curr_line [i];
std::cout << def << std::endl;
if (def == "var")
... | 30.613333 | 111 | 0.448606 | expression-dev |
9016b30a1915f4990ff4800fa2e7b8d7a8c40905 | 4,063 | cpp | C++ | Dungeon Engine/Shader.cpp | 62bit/Dungeon | e83526c2d4f63a816e231942b87b1d4c8988897a | [
"MIT"
] | 2 | 2020-08-02T01:41:03.000Z | 2020-08-11T16:37:10.000Z | Dungeon Engine/Shader.cpp | 62bit/Dungeon | e83526c2d4f63a816e231942b87b1d4c8988897a | [
"MIT"
] | null | null | null | Dungeon Engine/Shader.cpp | 62bit/Dungeon | e83526c2d4f63a816e231942b87b1d4c8988897a | [
"MIT"
] | 1 | 2020-08-11T18:29:39.000Z | 2020-08-11T18:29:39.000Z | #include "Shader.h"
Shader::Shader(ShaderPaths sp)
{
_programID = LoadShaders(sp.vertexPath , sp.fragmentPath);
}
Shader::~Shader()
{
glDeleteProgram(_programID);
}
void Shader::Bind() const
{
glUseProgram(_programID);
}
GLuint Shader::LoadShaders(const char* vs, const char* fs)
{
GLuint VertexShaderID = glCr... | 28.815603 | 108 | 0.762737 | 62bit |
901a59f000c6111ef56c536489ecb81bba9144fe | 2,832 | cpp | C++ | Userland/Libraries/LibIMAP/QuotedPrintable.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Userland/Libraries/LibIMAP/QuotedPrintable.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Userland/Libraries/LibIMAP/QuotedPrintable.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Luke Wilde <lukew@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/CharacterTypes.h>
#include <AK/GenericLexer.h>
#include <AK/StringBuilder.h>
#include <LibIMAP/QuotedPrintable.h>
namespace IMAP {
static constexpr bool is_illegal_character(char c)
{
return (... | 32.551724 | 144 | 0.5625 | r00ster91 |
9023479e8456e5477c59acd4e11980abddfd2ba3 | 31,389 | cpp | C++ | wp-storage-file.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 2 | 2020-11-22T23:45:19.000Z | 2020-12-14T06:54:31.000Z | wp-storage-file.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | null | null | null | wp-storage-file.cpp | commandus/wpn | 7064b4effd1d1e502daf6bddcdf126165706ca32 | [
"MIT"
] | 1 | 2021-05-13T12:23:19.000Z | 2021-05-13T12:23:19.000Z | #include <algorithm>
#include <fstream>
#include <inttypes.h>
#include <cctype>
#include "utilinstance.h"
#include "wp-storage-file.h"
#include "utilstring.h"
#include "utilvapid.h"
#include "endpoint.h"
#include "errlist.h"
#ifdef USE_JSON_RAPID
#include "rapidjson/error/en.h"
#endif
// --------------- ClientOptio... | 20.637081 | 161 | 0.695403 | commandus |
902a068b534c2b56a1d8769d156f51fd1f772a43 | 655 | cpp | C++ | .archived/pluscode/util/stringifier.cpp | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 4 | 2022-01-13T03:39:01.000Z | 2022-03-15T03:16:33.000Z | .archived/pluscode/util/stringifier.cpp | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | null | null | null | .archived/pluscode/util/stringifier.cpp | gearbird/calgo | ab48357100de2a5ea47fda2d9f01ced6dc73fa79 | [
"MIT"
] | 1 | 2021-12-09T12:33:07.000Z | 2021-12-09T12:33:07.000Z | #include <string>
#include <vector>
#include "typeutil.hpp"
namespace utilities {
using std::string;
string to_string(const string &s) {
return s;
}
string to_string(const char* t) {
return t;
}
string to_string(bool b) {
return b == true ? "true" : "false";
}
... | 19.848485 | 48 | 0.480916 | gearbird |
902ab9df4ee59d4a4d508a33ae525fe3e16c8d7d | 2,588 | cpp | C++ | crossy_road/src/finishScene.cpp | Bram-Pl/Crossy_Road_GBA | b8db9a001d69776af36d791b082674d560153953 | [
"MIT"
] | null | null | null | crossy_road/src/finishScene.cpp | Bram-Pl/Crossy_Road_GBA | b8db9a001d69776af36d791b082674d560153953 | [
"MIT"
] | null | null | null | crossy_road/src/finishScene.cpp | Bram-Pl/Crossy_Road_GBA | b8db9a001d69776af36d791b082674d560153953 | [
"MIT"
] | null | null | null | //
// Created by pless on 13/01/2021.
//
#include <libgba-sprite-engine/background/text_stream.h>
#include <libgba-sprite-engine/effects/fade_out_scene.h>
#include "finishScene.h"
#include "HomeStartScene.h"
#include "../background/bgFinishScene.c"
#include "../music/finish.h"
///Multiplier for coins that get deducte... | 33.61039 | 158 | 0.703632 | Bram-Pl |
903e30796e46c346d9a8e6b7feca99215320f313 | 12,362 | cpp | C++ | src/base/AutoRig.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/base/AutoRig.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/base/AutoRig.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | /*
* Copyright 2018 <copyright holder> <email>
*
* 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 la... | 36.682493 | 182 | 0.57612 | serserar |
90402e5bb507274826547c6ba33f6ccf69229ba0 | 2,216 | cpp | C++ | BlitzSharp3D/gxruntime/graphics/bgfx/BGFXShader.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | 8 | 2019-05-28T20:02:50.000Z | 2021-10-12T23:34:02.000Z | BlitzSharp3D/gxruntime/graphics/bgfx/BGFXShader.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | BlitzSharp3D/gxruntime/graphics/bgfx/BGFXShader.cpp | blitzimagine/BlitzSharp3D | 8bb122db92e17a685543b810700b8b47a2930f60 | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2019-12-25T01:02:00.000Z | 2019-12-25T01:02:00.000Z | #include "BGFXShader.h"
#include <string>
#include <SDL.h>
#include "BGFXUtil.h"
#include "BGFXShaderDefine.h"
BGFXShader::BGFXShader(bgfx::ProgramHandle program) : mProgram(BGFX_INVALID_HANDLE)
{
mProgram = program;
}
BGFXShader::~BGFXShader()
{
bgfx::destroy(mProgram);
}
BGFXShader* BGFXShader::loadShader(c... | 24.351648 | 96 | 0.71074 | blitzimagine |
904386b621692b98f04aa1c1e5a053650d2b8597 | 7,717 | cpp | C++ | engine/src/qlccapability.cpp | joepadmiraal/qlcplus | ca7f083012c92eb4263bc38d957b2feda6d04185 | [
"Apache-2.0"
] | null | null | null | engine/src/qlccapability.cpp | joepadmiraal/qlcplus | ca7f083012c92eb4263bc38d957b2feda6d04185 | [
"Apache-2.0"
] | null | null | null | engine/src/qlccapability.cpp | joepadmiraal/qlcplus | ca7f083012c92eb4263bc38d957b2feda6d04185 | [
"Apache-2.0"
] | null | null | null | /*
Q Light Controller
qlccapability.cpp
Copyright (C) Heikki Junnila
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.txt
Unless requ... | 24.893548 | 86 | 0.594402 | joepadmiraal |
9047d6a4fbe2983e97dda453d9d31051df77b743 | 4,017 | hpp | C++ | DirectProgramming/DPC++FPGA/Tutorials/DesignPatterns/simple_host_streaming/src/multi_kernel.hpp | Anihilator2/oneAPI-samples | f25a2ae2d97954d67c9589d90f2f586310b4c83e | [
"MIT"
] | 1 | 2021-06-11T01:40:22.000Z | 2021-06-11T01:40:22.000Z | DirectProgramming/DPC++FPGA/Tutorials/DesignPatterns/simple_host_streaming/src/multi_kernel.hpp | Anihilator2/oneAPI-samples | f25a2ae2d97954d67c9589d90f2f586310b4c83e | [
"MIT"
] | 1 | 2021-04-16T19:00:35.000Z | 2021-04-22T18:44:52.000Z | DirectProgramming/DPC++FPGA/Tutorials/DesignPatterns/simple_host_streaming/src/multi_kernel.hpp | Anihilator2/oneAPI-samples | f25a2ae2d97954d67c9589d90f2f586310b4c83e | [
"MIT"
] | 1 | 2021-05-13T15:13:35.000Z | 2021-05-13T15:13:35.000Z | //
// This file contains all of the FPGA device code for the multi-kernel design
//
#ifndef __MULTI_KERNEL_HPP__
#define __MULTI_KERNEL_HPP__
#include <CL/sycl.hpp>
#include <CL/sycl/INTEL/fpga_extensions.hpp>
using namespace sycl;
// Forward declare the kernel names to reduce name mangling
class K0;
... | 32.395161 | 81 | 0.529002 | Anihilator2 |
904c241a7c210a53cfe064d557c007fbadb44e85 | 4,883 | cpp | C++ | src/managers/DialogManager.cpp | CEDV-2016/arrow-tfc | 1b4de4dde445aca0337151f0c7b48d8df6fab2c6 | [
"MIT"
] | null | null | null | src/managers/DialogManager.cpp | CEDV-2016/arrow-tfc | 1b4de4dde445aca0337151f0c7b48d8df6fab2c6 | [
"MIT"
] | null | null | null | src/managers/DialogManager.cpp | CEDV-2016/arrow-tfc | 1b4de4dde445aca0337151f0c7b48d8df6fab2c6 | [
"MIT"
] | null | null | null | #include "DialogManager.hpp"
#include "DialogState.hpp"
template <> DialogManager* Ogre::Singleton<DialogManager>::msSingleton = 0;
DialogManager::DialogManager (): _dialogGUI(nullptr), _exitAnim(false), _next_dialogue(false),
_finish_dialogue(false), _message(false), _speed(false), _dialogue_cont(1), _phase(1),
_mov... | 27.744318 | 118 | 0.63547 | CEDV-2016 |
904c8f0da2544553419367a2a33a9a17f2303d83 | 911 | hpp | C++ | include/SSVOpenHexagon/Utils/ArgExtractor.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Utils/ArgExtractor.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | include/SSVOpenHexagon/Utils/ArgExtractor.hpp | AlphaPromethium/SSVOpenHexagon | f9e15e9397d6188e3dced97da97d5c6e2de4186a | [
"AFL-3.0"
] | null | null | null | // Copyright (c) 2013-2020 Vittorio Romeo
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: http://opensource.org/licenses/AFL-3.0
#pragma once
#include <cstddef>
#include <tuple>
namespace hg::Utils
{
template <typename>
struct ArgExtractor;
template <typename R, typename F, typename... Args>
... | 22.219512 | 66 | 0.663008 | AlphaPromethium |
904e6f5fb255534a95f2ffae70131aa46278ac7e | 3,794 | cpp | C++ | fuzzbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | fuzzbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | fuzzbrevno.cpp | phma/mitobrevno | 30526eac54d0d619abd165b803b143347f4ade9d | [
"Apache-2.0"
] | null | null | null | /******************************************************/
/* */
/* fuzzbrevno.cpp - main program for fuzzing */
/* */
/******************************************************/
/* Copyright 2020 Pierre Abbat.
* ... | 27.294964 | 91 | 0.627043 | phma |
904f4be1cc0c51d9f954d27cff6d45832ec48795 | 5,130 | cpp | C++ | android-app/app/src/main/cpp/rendering.cpp | echopen/PRJ-medtec_androidapp | 33c58126589490ea6df13127cab9bde56cc49665 | [
"BSD-3-Clause"
] | 25 | 2017-01-01T18:14:04.000Z | 2022-03-16T10:34:50.000Z | android-app/app/src/main/cpp/rendering.cpp | echopen/PRJ-medtec_androidapp | 33c58126589490ea6df13127cab9bde56cc49665 | [
"BSD-3-Clause"
] | 32 | 2016-11-21T18:56:51.000Z | 2020-05-29T10:12:46.000Z | android-app/app/src/main/cpp/rendering.cpp | echopen/project | 33c58126589490ea6df13127cab9bde56cc49665 | [
"BSD-3-Clause"
] | 43 | 2016-12-17T12:59:19.000Z | 2020-09-18T09:05:25.000Z | //
// Created by clecoued on 10/01/19.
//
#include <jni.h>
#include "scan_conversion_float.hpp"
#include "ThreadPool.h"
#include "Convolution3x3Filter.hpp"
#include "LinearQuantificationFilter.hpp"
#include <memory>
#include <android/log.h>
bool gIsContextReady = false;
std::shared_ptr<scan_conv> gScanConv;
std::shar... | 49.326923 | 313 | 0.473684 | echopen |
9053b8424312a5e593267bfdde170b98afb9a9af | 6,805 | cpp | C++ | oslo/node/ipc/action_handler.cpp | oslocurrency/oslo-node | a38aed4e5845c11dd952e338e1ae27f836e3d0dc | [
"BSD-3-Clause"
] | null | null | null | oslo/node/ipc/action_handler.cpp | oslocurrency/oslo-node | a38aed4e5845c11dd952e338e1ae27f836e3d0dc | [
"BSD-3-Clause"
] | null | null | null | oslo/node/ipc/action_handler.cpp | oslocurrency/oslo-node | a38aed4e5845c11dd952e338e1ae27f836e3d0dc | [
"BSD-3-Clause"
] | null | null | null | #include <oslo/ipc_flatbuffers_lib/generated/flatbuffers/nanoapi_generated.h>
#include <oslo/lib/errors.hpp>
#include <oslo/lib/numbers.hpp>
#include <oslo/node/ipc/action_handler.hpp>
#include <oslo/node/ipc/ipc_server.hpp>
#include <oslo/node/node.hpp>
#include <iostream>
namespace
{
oslo::account parse_account (st... | 36.983696 | 225 | 0.760911 | oslocurrency |
905a38dd1d9c624c94e99beb15bb145ae29f4eb6 | 32,173 | cpp | C++ | src/ui/wxWidgets/PWFiltersEditor.cpp | ronys/pwsafe | 39f9525a9f14cc5fe46214367cf714c5770283ef | [
"Artistic-2.0"
] | 578 | 2015-08-18T19:43:05.000Z | 2022-03-27T11:57:07.000Z | src/ui/wxWidgets/PWFiltersEditor.cpp | ronys/pwsafe | 39f9525a9f14cc5fe46214367cf714c5770283ef | [
"Artistic-2.0"
] | 521 | 2015-08-27T18:39:33.000Z | 2022-03-24T09:48:00.000Z | src/ui/wxWidgets/PWFiltersEditor.cpp | ronys/pwsafe | 39f9525a9f14cc5fe46214367cf714c5770283ef | [
"Artistic-2.0"
] | 160 | 2015-08-18T19:46:09.000Z | 2022-01-31T12:08:24.000Z | /*
* Copyright (c) 2003-2021 Rony Shapiro <ronys@pwsafe.org>.
* All rights reserved. Use of the code is allowed under the
* Artistic License 2.0 terms, as specified in the LICENSE file
* distributed with this code, or available from
* http://www.opensource.org/licenses/artistic-license-2.0.php
*/
/** \file PWFil... | 30.237782 | 190 | 0.68629 | ronys |
905d28956156f0e0598f3d26d609777a8ddb69e0 | 1,735 | hpp | C++ | src/util/dir.hpp | Kerndog73/EnTT-Pacman | 791e7e4ee33992978b6c1257d89133ed8b1cf5d5 | [
"MIT"
] | 150 | 2018-09-30T06:30:16.000Z | 2022-03-30T07:20:14.000Z | src/util/dir.hpp | Kerndog73/EnTT-Example | cd577ad6ce9193247389af5d9266d9a28b892050 | [
"MIT"
] | 6 | 2019-05-18T18:52:39.000Z | 2022-03-19T07:12:48.000Z | src/util/dir.hpp | Kerndog73/EnTT-Example | cd577ad6ce9193247389af5d9266d9a28b892050 | [
"MIT"
] | 23 | 2019-02-27T08:19:05.000Z | 2022-03-20T15:19:23.000Z | //
// dir.hpp
// EnTT Pacman
//
// Created by Indiana Kernick on 8/5/20.
// Copyright © 2020 Indiana Kernick. All rights reserved.
//
#ifndef UTIL_DIR_HPP
#define UTIL_DIR_HPP
#include <cstdint>
// An orthogonal direction
enum class Dir : std::uint8_t {
up,
right,
down,
left,
none,
begin = up,
end... | 19.942529 | 77 | 0.625937 | Kerndog73 |
905d83289a0b6beb9c14878fd93ff79608ddb156 | 2,514 | cc | C++ | phSolver/common/phio_posix.cc | yangf4/phasta | a096094f33b98047de0a2e28225c4d74875a88d8 | [
"BSD-3-Clause"
] | 1 | 2020-09-08T08:04:35.000Z | 2020-09-08T08:04:35.000Z | phSolver/common/phio_posix.cc | yangf4/phasta | a096094f33b98047de0a2e28225c4d74875a88d8 | [
"BSD-3-Clause"
] | 17 | 2017-03-21T03:08:31.000Z | 2018-04-03T17:53:08.000Z | phSolver/common/phio_posix.cc | yangf4/phasta | a096094f33b98047de0a2e28225c4d74875a88d8 | [
"BSD-3-Clause"
] | 5 | 2016-02-08T15:51:11.000Z | 2019-10-13T00:55:14.000Z | #include "phIO.h"
#include "phio_base.h"
#include "phio_posix.h"
#include "phComm.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <phastaIO.h>
#include <sstream>
#include <string>
namespace {
std::string appendRank(const char* phrase) {
std::stringstream ss;
ss << p... | 24.407767 | 62 | 0.645585 | yangf4 |
905dfc5ac61fe186a1f47b78d877aac13511b814 | 5,224 | cpp | C++ | src/Bindings/LuaTCPLink.cpp | Eliminationzx/cuberite | be916bc7e85843291c5ab8cb4f268bd1daa57b76 | [
"Apache-2.0"
] | 1 | 2021-01-26T16:50:09.000Z | 2021-01-26T16:50:09.000Z | src/Bindings/LuaTCPLink.cpp | Eliminationzx/cuberite | be916bc7e85843291c5ab8cb4f268bd1daa57b76 | [
"Apache-2.0"
] | null | null | null | src/Bindings/LuaTCPLink.cpp | Eliminationzx/cuberite | be916bc7e85843291c5ab8cb4f268bd1daa57b76 | [
"Apache-2.0"
] | null | null | null |
// LuaTCPLink.cpp
// Implements the cLuaTCPLink class representing a Lua wrapper for the cTCPLink class and the callbacks it needs
#include "Globals.h"
#include "LuaTCPLink.h"
#include "LuaServerHandle.h"
#include "../PolarSSL++/X509Cert.h"
#include "../PolarSSL++/CryptoKey.h"
cLuaTCPLink::cLuaTCPLink(cLuaState... | 15.687688 | 112 | 0.684916 | Eliminationzx |
9061c93f8937b4dcbb61932d6eca5e5a545a0274 | 748 | cc | C++ | src/tiles/one_tile_project_test.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 4 | 2019-03-19T17:31:33.000Z | 2022-01-08T12:27:33.000Z | src/tiles/one_tile_project_test.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | null | null | null | src/tiles/one_tile_project_test.cc | jinnaiyuu/pbnf | d197723e7499a91e2c15042de243ccab2cb0f9d5 | [
"MIT"
] | 1 | 2019-04-26T08:17:22.000Z | 2019-04-26T08:17:22.000Z | // © 2014 the PBNF Authors under the MIT license. See AUTHORS for the list of authors.
/**
* \file one_tile_project_test.cc
*
*
*
* \author Ethan Burns
* \date 2008-11-18
*/
#include <math.h>
#include <iostream>
#include "tiles.h"
using namespace std;
int main(void)
{
vector<unsigned int>::iterator iter;
... | 17 | 86 | 0.628342 | jinnaiyuu |
9067735f9bf27e2dc58dce6e430c7a91b2c745e2 | 317 | cpp | C++ | Module7/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Module7/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | null | null | null | Module7/main.cpp | ariyonaty/ECE3310 | 845d7204c16e84712fab2e25f79c0f16cb1e7c99 | [
"MIT"
] | 1 | 2021-09-22T04:01:52.000Z | 2021-09-22T04:01:52.000Z | #include <iostream>
#include "llist.h"
int main(int argc, char const *argv[])
{
Node *n1 = new Node(1);
LList mylist;
if (mylist.empty())
{
std::cout << "List is empty." << std::endl;
}
mylist.insertfirst(n1);
mylist.insert(n1, NULL);
mylist.display();
return 0;
}
| 15.85 | 51 | 0.55205 | ariyonaty |
906adbf2914194f88c5ee7fcdf50df1e578b7034 | 13,925 | hpp | C++ | include/framework/evaluator/evaluator.hpp | Bensuo/visioncpp | 8b4233809fbc9f0ad2ee59ec8dfe6de078e44777 | [
"Apache-2.0"
] | 156 | 2016-09-15T13:05:21.000Z | 2022-03-04T01:41:39.000Z | include/framework/evaluator/evaluator.hpp | Bensuo/visioncpp | 8b4233809fbc9f0ad2ee59ec8dfe6de078e44777 | [
"Apache-2.0"
] | 24 | 2016-09-20T11:25:23.000Z | 2022-02-01T02:20:27.000Z | include/framework/evaluator/evaluator.hpp | Bensuo/visioncpp | 8b4233809fbc9f0ad2ee59ec8dfe6de078e44777 | [
"Apache-2.0"
] | 58 | 2016-09-15T14:08:28.000Z | 2022-02-28T04:55:55.000Z | // This file is part of VisionCpp, a lightweight C++ template library
// for computer vision and image processing.
//
// Copyright (C) 2016 Codeplay Software Limited. All Rights Reserved.
//
// Contact: visioncpp@codeplay.com
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this ... | 46.416667 | 84 | 0.743555 | Bensuo |
906d9af25986960ff5fcff1420b131ddf93d346c | 27,735 | cc | C++ | graphs/RWBSubwordGraph.cc | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/RWBSubwordGraph.cc | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | graphs/RWBSubwordGraph.cc | aalto-speech/wdecoder | 096225714558d1f97a5d3f4814408ad4efaa3788 | [
"BSD-2-Clause"
] | null | null | null | #include <cassert>
#include "RWBSubwordGraph.hh"
using namespace std;
RWBSubwordGraph::RWBSubwordGraph()
{
}
RWBSubwordGraph::RWBSubwordGraph(const set<string> &prefix_subwords,
const set<string> &subwords,
bool verbose)
{
create_graph(pref... | 43.540031 | 119 | 0.598522 | aalto-speech |
906ffb0bd3ae72a7927f567671d8eb7690a44dd3 | 674 | cpp | C++ | Programação Básica para Competições de Programação (em C++)/olimpiadas.cpp | Garotos-de-Programa/NEPS-Academy | a321fab09909587533697268c907816ecc8522fe | [
"MIT"
] | 1 | 2021-09-17T19:03:41.000Z | 2021-09-17T19:03:41.000Z | Programação Básica para Competições de Programação (em C++)/olimpiadas.cpp | Garotos-de-Programa/NEPS-Academy | a321fab09909587533697268c907816ecc8522fe | [
"MIT"
] | null | null | null | Programação Básica para Competições de Programação (em C++)/olimpiadas.cpp | Garotos-de-Programa/NEPS-Academy | a321fab09909587533697268c907816ecc8522fe | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define fastio ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL)
using namespace std;
struct pais{
int O,P,B,id;
};
bool comparaM(pais x, pais y){
if(x.O!=y.O) return (x.O>y.O);
else if(x.P!=y.P) return (x.P>y.P);
else if(x.B!=y.B) return (x.B>y.B);
else return (x.id<y.id);... | 17.282051 | 78 | 0.54451 | Garotos-de-Programa |
907021d5a6d430676d9c3f39a36ce878915938f2 | 72,521 | cc | C++ | skysim/onnc-cimHW/lib/cimHWSimulator.cc | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | 2 | 2021-07-05T02:26:11.000Z | 2022-01-11T10:37:20.000Z | skysim/onnc-cimHW/lib/cimHWSimulator.cc | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | null | null | null | skysim/onnc-cimHW/lib/cimHWSimulator.cc | ONNC/ONNC-CIM | dd15eae6b22b39dcd2bff179e14ad0eda40e4338 | [
"BSD-3-Clause"
] | 1 | 2022-01-11T10:39:01.000Z | 2022-01-11T10:39:01.000Z | //===- cimHWSimulator.cc --------------------------------------------------===//
//
// The CIM Hardware Simulator Project
//
// See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// This file is auto-generated, be causion to modify
#inc... | 24.450775 | 86 | 0.782546 | ONNC |
90729276fb54223ab6b0b2a6896126936456cce2 | 4,689 | cpp | C++ | factory-simulation/WorkerStation.cpp | turbosree/vishwakarma | 710517f82dfdf123b6afcb985d02584a0cf25362 | [
"MIT"
] | null | null | null | factory-simulation/WorkerStation.cpp | turbosree/vishwakarma | 710517f82dfdf123b6afcb985d02584a0cf25362 | [
"MIT"
] | null | null | null | factory-simulation/WorkerStation.cpp | turbosree/vishwakarma | 710517f82dfdf123b6afcb985d02584a0cf25362 | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------
/// \file WorkerStation.cpp
/// \brief WorkerStation class implementation
/// \author Sreejith.Naarakathil@gmail.com
/// \date 23/1/2021
// ----------------------------------... | 33.255319 | 140 | 0.444018 | turbosree |
9076c0b28226448dde72f9303b06a52837df75eb | 1,298 | cpp | C++ | 01.TestCallbackTimer/02.Mock/Test/CallbackTimerTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | 01.TestCallbackTimer/02.Mock/Test/CallbackTimerTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | 01.TestCallbackTimer/02.Mock/Test/CallbackTimerTest.cpp | XoDeR/CppTdd | dd06f234b121965a6144be6d82d8aedd067d9caa | [
"MIT"
] | null | null | null | #include "CallbackTimerTest.h"
#include "../../Tools/CallbackTimer.h"
#include "../Mock/LoggingCallbackTimerHandleCallback.h"
#include "../../Tools/Utils.h"
#include "../../TestTools/TestException.h"
using AmstelTech::Test::CTestException;
using AmstelTech::Win32::Output;
using AmstelTech::Win32::_tstring;
using Ams... | 25.96 | 73 | 0.729584 | XoDeR |
90772edc5f5c25a517c63eed3154cad72fb23fbd | 35,419 | cpp | C++ | code/MikoEngine/Renderer/Resource/Scene/Culling/SceneCullingManager.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | 5 | 2020-08-04T17:57:01.000Z | 2021-02-07T12:19:02.000Z | code/MikoEngine/Renderer/Resource/Scene/Culling/SceneCullingManager.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | code/MikoEngine/Renderer/Resource/Scene/Culling/SceneCullingManager.cpp | warzes/MikoEngine | 1199f59a71ab3dfcbea5d02238639db55eded0d4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Renderer/Resource/Scene/Culling/SceneCullingManager.h"
#include "Renderer/Resource/Scene/Culling/SceneItemSet.h"
#include "Renderer/Resource/Scene/Item/Camera/CameraSceneItem.h"
#include "Renderer/Resource/Scene/SceneNode.h"
#include "Renderer/Resource/CompositorWorkspace/CompositorContext... | 45.998701 | 316 | 0.692143 | warzes |
9078707eb1ddcc7d20a6f43e9e24d65124dd862a | 1,197 | hpp | C++ | include/config.hpp | angelicadavila/UNIZAR_PHD | 532a87467ceb49d3c3851bb23e26003bfc1888d3 | [
"MIT"
] | null | null | null | include/config.hpp | angelicadavila/UNIZAR_PHD | 532a87467ceb49d3c3851bb23e26003bfc1888d3 | [
"MIT"
] | null | null | null | include/config.hpp | angelicadavila/UNIZAR_PHD | 532a87467ceb49d3c3851bb23e26003bfc1888d3 | [
"MIT"
] | null | null | null | #ifndef ENGINECL_CONFIG_HPP
#define ENGINECL_CONFIG_HPP
#define CL_LWS 128
#define ECL_UNIZAR 3
#define ECL_FPGA 0
#define ECL_CPU 1
#define ECL_GPU 2
//Maximun memory global size in MB
#define ECL_mem_FPGA 2112
#define ECL_mem_CPU 4000
#define ECL_mem_GPU 12000
#define ECL_GRENDEL 1
#define ECL_NOOVERLAP 1
#d... | 23.019231 | 59 | 0.807853 | angelicadavila |
907a99c81a5b08f63c5a8bd647ec351a9152fe76 | 1,635 | cpp | C++ | Algorithms/Longest_Substring_Without_Repeating_Characters.cpp | amberbhardwaj/Competitive_Programming | b0826a701f672e607dc1baa01538103bf1620be2 | [
"MIT"
] | 1 | 2020-05-11T04:42:05.000Z | 2020-05-11T04:42:05.000Z | Algorithms/Longest_Substring_Without_Repeating_Characters.cpp | amberbhardwaj/Competitive_Programming | b0826a701f672e607dc1baa01538103bf1620be2 | [
"MIT"
] | null | null | null | Algorithms/Longest_Substring_Without_Repeating_Characters.cpp | amberbhardwaj/Competitive_Programming | b0826a701f672e607dc1baa01538103bf1620be2 | [
"MIT"
] | null | null | null | // Copyright 2020 AmberBhardwaj
// Licensed under MIT License or any later version
class Solution {
public:
int lengthOfLongestSubstring(string s) {
if (s.length() == 1) return 1;
int cnt = 0;
unordered_set<char> lookup;
int start=0, move =0;
/*
Algor... | 33.367347 | 96 | 0.465443 | amberbhardwaj |
90817457fbc9f055113ae7cce6b1690b538f3aa7 | 3,287 | cxx | C++ | src/photonintersector.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | 16 | 2018-04-25T08:14:14.000Z | 2022-01-29T06:19:16.000Z | src/photonintersector.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | src/photonintersector.cxx | DaWelter/NaiveTrace | a904785a0e13c394b2c221bc918cddb41bc8b175 | [
"FSFAP"
] | null | null | null | #include "photonintersector.hxx"
PhotonIntersector::PhotonIntersector(double search_radius, const ToyVector<Double3> &items)
{
rtdevice = rtcNewDevice(nullptr);
rtscene = rtcNewScene(rtdevice);
RTCGeometry geom = rtcNewGeometry(rtdevice, RTC_GEOMETRY_TYPE_DISC_POINT);
float *point_vertices = (float*)rtcSetNew... | 29.088496 | 140 | 0.685732 | DaWelter |
908bc81760ec1ee8b14eac94bb531914ca2648e6 | 1,135 | cc | C++ | utils/ntf_decrypt.cc | Network-Tokens/ntf | 88780bb2ad04f5c67fd48eb72076ec6ed54e81ca | [
"Apache-2.0"
] | 7 | 2020-06-17T00:49:11.000Z | 2021-04-23T23:18:39.000Z | utils/ntf_decrypt.cc | Network-Tokens/ntf | 88780bb2ad04f5c67fd48eb72076ec6ed54e81ca | [
"Apache-2.0"
] | 2 | 2020-10-28T04:38:54.000Z | 2021-03-01T18:41:01.000Z | utils/ntf_decrypt.cc | Network-Tokens/ntf | 88780bb2ad04f5c67fd48eb72076ec6ed54e81ca | [
"Apache-2.0"
] | 1 | 2020-08-06T00:40:11.000Z | 2020-08-06T00:40:11.000Z | /*
* License : Apache-2.0
* Copyright(c) 2020 Selfie Networks, Inc
*/
#include "ntf_api.h"
#include <cjose/cjose.h>
#include <cjose/jwe.h>
#include <cjose/jwk.h>
#include <glog/logging.h>
#include <jansson.h>
extern "C" json_t *
ntf_token_decrypt( const char * token_buf,
size_t ... | 23.645833 | 83 | 0.542731 | Network-Tokens |
908d366aba066d632f17bde008f9e0b0caf86f88 | 1,485 | hpp | C++ | include/memoria/api/common/ctr_api_btss.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2021-07-30T16:54:24.000Z | 2021-09-08T15:48:17.000Z | include/memoria/api/common/ctr_api_btss.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | null | null | null | include/memoria/api/common/ctr_api_btss.hpp | victor-smirnov/memoria | c36a957c63532176b042b411b1646c536e71a658 | [
"BSL-1.0",
"Apache-2.0",
"OLDAP-2.8",
"BSD-3-Clause"
] | 2 | 2020-03-14T15:15:25.000Z | 2020-06-15T11:26:56.000Z |
// Copyright 2017 Victor Smirnov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to... | 28.018868 | 97 | 0.698316 | victor-smirnov |
9094e43e4a51f0c7f0898f0f974a5b5c55d6e6d8 | 5,630 | cpp | C++ | libs/network/src/muddle/subscription_registrar.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/network/src/muddle/subscription_registrar.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | libs/network/src/muddle/subscription_registrar.cpp | jinmannwong/ledger | f3b129c127e107603e08bb192eb695d23eb17dbc | [
"Apache-2.0"
] | null | null | null | //------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... | 30.106952 | 96 | 0.625577 | jinmannwong |
909a4b355893278cb1717dfe6a4d86003d450914 | 810,596 | cpp | C++ | test/bidi_test_941.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/bidi_test_941.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/bidi_test_941.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gtest/gtest.h>
#include <algorithm>
std::vector<int> expected_levels;
std::vector<int> expected_reordered_indices;
TEST(bidi, bidi_941_000)
{
expected_levels = { 1, 2, 2, 4 };
expected_reor... | 32.933653 | 77 | 0.404531 | eightysquirrels |
909c4d0c83bc4497a6f66f17954372a1c7671994 | 2,690 | hpp | C++ | src/components/ray_list.hpp | thvaisa/onetracer | b6567194148a441370dbdb7040631fd43ec50ae2 | [
"MIT"
] | null | null | null | src/components/ray_list.hpp | thvaisa/onetracer | b6567194148a441370dbdb7040631fd43ec50ae2 | [
"MIT"
] | null | null | null | src/components/ray_list.hpp | thvaisa/onetracer | b6567194148a441370dbdb7040631fd43ec50ae2 | [
"MIT"
] | null | null | null | #ifndef RAYLIST_H
#define RAYLIST_H
#include "ray.hpp"
#include <stack>
#include <vector>
#define INITITIAL_STORAGE_SIZE 100
//Iterator that gives rays that are only "alive". Used to iterate ray_list and hide
//implementation for later modification
template <typename T>
class RayListIterator{
private:
T... | 25.619048 | 108 | 0.602974 | thvaisa |
909dcfbae6c34f7b2edf991493dd0be9c03c7efb | 3,848 | cpp | C++ | test/src/test_server_main_1211.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | test/src/test_server_main_1211.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | test/src/test_server_main_1211.cpp | georgekap1an/tuxpp | eb62d765b029c63c35a35375fb040227c7e7d96b | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <xa.h>
#include <atmi.h>
#if defined(__cplusplus)
extern "C" {
#endif
extern int _tmrunserver _((int));
extern void BAD_SVC _((TPSVCINFO *));
extern void CALC _((TPSVCINFO *));
extern void ECHO_CLIENTID _((TPSVCINFO *));
extern void ECHO_XML _((TPSVCINFO *));
extern void FORWARDING_SVC _((T... | 34.053097 | 123 | 0.668919 | georgekap1an |
909e0915df6ce3781aa673fa01c2c49ad39d4dbf | 2,139 | cpp | C++ | cpp/bjyd/02/ege/man/netfriendsdemo/doufuguolyl_barrage.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | cpp/bjyd/02/ege/man/netfriendsdemo/doufuguolyl_barrage.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | 18 | 2020-07-16T21:36:57.000Z | 2022-03-25T18:59:38.000Z | cpp/bjyd/02/ege/man/netfriendsdemo/doufuguolyl_barrage.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | /////////////////////////////////////////
// 程序名:弹幕
// 编译环境:visual C++ / EGE库
/////////////////////////////////////////
#include <graphics.h>
#include <math.h>
#define MaxNum 500
#define PI 3.1415926
#define Mid_X 320
#define Mid_Y 240
/////////////////////////////////////////
// 定义类、常量
////////////////////////////////... | 20.567308 | 79 | 0.473118 | skyofsmith |
909f65f842eabb5f4d712e09c37e3ee54523f0af | 1,362 | cpp | C++ | detector_core/detectors/sizeof/sizeofrule_pointer.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | 2 | 2022-03-22T05:50:40.000Z | 2022-03-22T06:00:42.000Z | detector_core/detectors/sizeof/sizeofrule_pointer.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | null | null | null | detector_core/detectors/sizeof/sizeofrule_pointer.cpp | zhlongfj/cppdetector | 0907720cdb82661ae137e4883346fc33cb115794 | [
"MIT"
] | null | null | null | #include "sizeofrule_pointer.h"
#include "detectorcommon/detectorhelp.h"
#include "../../common/stringhelper.h"
#include "detectorcommon/variabledefinition.h"
SizeOfRulePointer::SizeOfRulePointer() : Rule("SizeOfRulePointer")
, m_variableDefinition(make_unique<VariableDefinition>())
{
m_ruleContent = make_shared<... | 24.763636 | 82 | 0.657122 | zhlongfj |
90b19e7eb268f163eab6b25aa5c09566fe8c111c | 8,274 | cpp | C++ | src/caffe/layers/inner_product_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 1 | 2016-06-09T16:44:58.000Z | 2016-06-09T16:44:58.000Z | src/caffe/layers/inner_product_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | null | null | null | src/caffe/layers/inner_product_layer.cpp | gnina/caffe | 59b3451cd54ae106de3335876ba25f68b9553098 | [
"Intel",
"BSD-2-Clause"
] | 3 | 2016-02-10T17:38:44.000Z | 2018-10-14T07:44:19.000Z | #include <vector>
#include "caffe/filler.hpp"
#include "caffe/layers/inner_product_layer.hpp"
#include "caffe/util/math_functions.hpp"
namespace caffe {
template <typename Dtype>
void InnerProductLayer<Dtype>::LayerSetUp(const vector<Blob<Dtype>*>& bottom,
const vector<Blob<Dtype>*>& top) {
const int num_out... | 34.475 | 82 | 0.615301 | gnina |
ff98fbcd84b33f6a5bfac17a4d730f55e9e1389b | 192 | cpp | C++ | examples/align/align_var_def_colon/true_01.cpp | beardog-ukr/uncrustify-config-examples | 23308192b377107cf287bdb073ae7eccbbf06383 | [
"Unlicense"
] | 1 | 2021-06-23T00:12:23.000Z | 2021-06-23T00:12:23.000Z | examples/align/align_var_def_colon/true_01.unc.cpp | beardog-ukr/uncrustify-config-examples | 23308192b377107cf287bdb073ae7eccbbf06383 | [
"Unlicense"
] | null | null | null | examples/align/align_var_def_colon/true_01.unc.cpp | beardog-ukr/uncrustify-config-examples | 23308192b377107cf287bdb073ae7eccbbf06383 | [
"Unlicense"
] | null | null | null | #include <iostream>
struct S {
unsigned char b1 : 3;
unsigned char : 0;
unsigned char bTwo : 6;
unsigned char b3 : 2;
};
int main()
{
std::cout << sizeof(S) << '\n'; // usually prints 2
} | 17.454545 | 52 | 0.614583 | beardog-ukr |
ff99fa77030c611d63d8f02794b2377b896dff89 | 14,185 | cpp | C++ | ExampleSandGame/ExampleSandGame.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 37 | 2020-06-14T18:14:08.000Z | 2022-03-29T18:39:34.000Z | ExampleSandGame/ExampleSandGame.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 2 | 2021-04-05T15:34:18.000Z | 2021-05-28T00:04:56.000Z | ExampleSandGame/ExampleSandGame.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 10 | 2020-06-25T17:07:03.000Z | 2022-03-08T20:31:17.000Z | #include "BBE/BrotBoxEngine.h"
#include <iostream>
constexpr int32_t WINDOW_WIDTH = 1280;
constexpr int32_t WINDOW_HEIGHT = 720;
constexpr int32_t MENU_WIDTH = 100;
constexpr int32_t CELL_SIZE = 4;
constexpr int32_t GRID_WIDTH = (WINDOW_WIDTH - MENU_WIDTH) / CELL_SIZE;
constexpr int32_t GRID_HEIGHT = WINDOW_HEIGHT ... | 27.122371 | 344 | 0.650617 | siretty |
ff9d340bc8f3b33d90894d6eab0c3b9adca764b1 | 1,477 | cpp | C++ | Data structure/queue/1.sqQueue.cpp | Joker-Yi/408-postgraduate | 7984bf601fb71cb7d2cfab22165a676ce4d9f82d | [
"Apache-2.0"
] | null | null | null | Data structure/queue/1.sqQueue.cpp | Joker-Yi/408-postgraduate | 7984bf601fb71cb7d2cfab22165a676ce4d9f82d | [
"Apache-2.0"
] | null | null | null | Data structure/queue/1.sqQueue.cpp | Joker-Yi/408-postgraduate | 7984bf601fb71cb7d2cfab22165a676ce4d9f82d | [
"Apache-2.0"
] | null | null | null | //
// Created by Yee on 2021/9/9.
//
// 队列 同样也是操作受限的线性表
// 先进先出 FIFO 队尾插入 队头删除
// 顺序存储结构 的 队列
// 1。顺序队列: 存在假溢出的问题,入队中途执行出队操作会有假溢出的问题,出队留下的空间不能利用
// 2。循环队列:解决了假溢出的问题,但是会浪费一个存储单元
// 队满:(Q.rear+1)%MAXSIZE = Q.front
// 对空:Q.front = Q.rear
// 当前队列元素个数:(rear + )
// 解决循环队列会浪费一个存储单元的问题
// 方法1: 在结构体定义的时候 int s... | 21.405797 | 81 | 0.583615 | Joker-Yi |
ffa2a78cebcee2b1604067d29a11b9fab761a237 | 561 | cpp | C++ | inou/tech/import_verilog.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | inou/tech/import_verilog.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | inou/tech/import_verilog.cpp | tamim-asif/lgraph-private | 733bbcd9e14a9850580b51c011e33785ab758b9d | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
// YAML to YAML graph conversion
#include "import_verilog.hpp"
#include <fstream>
#include <iostream>
#include <regex>
//FIXME: consider replacing with a simple lex/yacc parser?
//This only parses
void Import_verilog::update() {
... | 20.777778 | 85 | 0.71123 | tamim-asif |
ffa4540e969dc9f63bb6d2cce73b454bbe46cb43 | 567 | cpp | C++ | src/0543.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0543.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | src/0543.cpp | shuihan0555/LeetCode-Solutions-in-Cpp17 | 8bb69fc546486c5e73839431204927626601dd18 | [
"MIT"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
int diameterOfBinaryTree(TreeNode* root) {
int res = 0;
depth(root, res);
... | 21.807692 | 59 | 0.513228 | shuihan0555 |
ffa80083463647bd5c41ed7a143c0742415ff252 | 19,571 | cpp | C++ | src/ui/slider.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | src/ui/slider.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | 8 | 2018-07-12T14:10:53.000Z | 2020-09-17T11:15:52.000Z | src/ui/slider.cpp | Shtille/scythe | 795b482921bed9ab36fd9ced38863371c75367ab | [
"MIT"
] | null | null | null | #include "slider.h"
#include "math/constants.h"
#include <math.h>
namespace scythe {
Slider::Slider(F32 x, F32 y, F32 width, F32 height, F32 bar_radius, U32 flags)
: Widget(x, y, flags)
, width_(width)
, height_(height)
, old_position_(0.0f)
, radius_((width < height) ? (0.5f * width) : (0.5f * height))
, bar... | 27.83926 | 101 | 0.643963 | Shtille |
ffa952fd8329c605f7e0ad7530876274c1fa0d4f | 6,063 | cxx | C++ | ParaViewCore/VTKExtensions/vtkTilesHelper.cxx | XiaoboFu/ParaViewGeo | 0089927885fd67a3d70a22a28977a291bed3fcdd | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 17 | 2015-02-17T00:30:26.000Z | 2022-03-17T06:13:02.000Z | ParaViewCore/VTKExtensions/vtkTilesHelper.cxx | aashish24/paraview-climate-3.11.1 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | [
"BSD-3-Clause"
] | null | null | null | ParaViewCore/VTKExtensions/vtkTilesHelper.cxx | aashish24/paraview-climate-3.11.1 | c8ea429f56c10059dfa4450238b8f5bac3208d3a | [
"BSD-3-Clause"
] | 10 | 2015-08-31T18:20:17.000Z | 2022-02-02T15:16:21.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 34.645714 | 80 | 0.60696 | XiaoboFu |
ffa9542029f4ffbd008885fe6c5cb1acd6b55107 | 633 | cpp | C++ | Company: Amazon/2.Longest_Mountain.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Amazon/2.Longest_Mountain.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | Company: Amazon/2.Longest_Mountain.cpp | vaibhavkrishanyadav/6Companies30Days | a6f72ffce08a67df8b2ebada6008d01a90291d49 | [
"MIT"
] | null | null | null | //2.Longest Mountain
//https://leetcode.com/problems/longest-mountain-in-array/
class Solution {
public:
int longestMountain(vector<int>& arr) {
int n=arr.size(), ans = 0;
vector<int> a(n, 0), b(n, 0);
for(int i=1, j=n-2; i<n || j>=0; i++, j--) {
if(arr[i] > arr[i-1]) {
... | 25.32 | 58 | 0.369668 | vaibhavkrishanyadav |
ffa9dea6e8ef4e7af58b3c51cadac1cd8a3d4615 | 2,640 | cpp | C++ | compiler/pintype.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | 4 | 2016-02-18T00:48:10.000Z | 2016-03-02T23:41:54.000Z | compiler/pintype.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | null | null | null | compiler/pintype.cpp | UnnamedCompany/UnnamedSoftware | 3251dc9844f35622f616fd3d5a40cb8c89ac0b28 | [
"MIT"
] | 1 | 2016-02-29T18:13:34.000Z | 2016-02-29T18:13:34.000Z | #include "pintype.h"
#include <QJsonValue>
#include <QHash>
#include <QString>
#include <QMap>
#include <QJsonArray>
#include <QJsonObject>
#include <QJsonValue>
QJsonValue PinType_toJson(PinType obj) {
return QJsonValue((int)obj);
}
PinType PinType_fromJson(QJsonValue node, bool *ok) {
bool success = node.i... | 26.938776 | 83 | 0.583333 | UnnamedCompany |
ffaa703b989394c79719775f243108b9a47cecda | 524 | cpp | C++ | src/DoubleFunctor.cpp | kroolp/betterKMeans | fdbd537aef534bcea6f7963f6b0db8dafb990257 | [
"MIT"
] | null | null | null | src/DoubleFunctor.cpp | kroolp/betterKMeans | fdbd537aef534bcea6f7963f6b0db8dafb990257 | [
"MIT"
] | 1 | 2017-06-04T00:54:04.000Z | 2017-06-06T22:14:19.000Z | src/DoubleFunctor.cpp | kroolp/betterKMeans | fdbd537aef534bcea6f7963f6b0db8dafb990257 | [
"MIT"
] | null | null | null | #include "../include/DoubleFunctor.hpp"
DoubleFunctor::DoubleFunctor(mat matrix, StringFunction& function)
: matrix(matrix), function(function) {}
int DoubleFunctor::inputs() const
{
return matrix.n_rows;
}
int DoubleFunctor::values() const
{
return matrix.n_rows;
}
int DoubleFunctor::operator()(const Eigen::Ve... | 20.153846 | 93 | 0.692748 | kroolp |
ffad72dd1ec93ef58b2b64a41c788778ba4eaa15 | 4,015 | cc | C++ | openfst-1.3.2/src/bin/fstsymbols.cc | glecorve/rnnlm2wfst | 2bb1dcfb0ee34ddfb7959614820aec5fc79e18d4 | [
"Apache-2.0"
] | 51 | 2015-01-10T09:46:03.000Z | 2022-03-30T00:07:19.000Z | openfst-1.3.2/src/bin/fstsymbols.cc | glecorve/rnnlm2wfst | 2bb1dcfb0ee34ddfb7959614820aec5fc79e18d4 | [
"Apache-2.0"
] | 3 | 2017-01-18T07:10:42.000Z | 2020-03-16T03:43:35.000Z | openfst-1.3.2/src/bin/fstsymbols.cc | glecorve/rnnlm2wfst | 2bb1dcfb0ee34ddfb7959614820aec5fc79e18d4 | [
"Apache-2.0"
] | 20 | 2015-01-19T05:11:34.000Z | 2022-02-08T01:57:20.000Z | // fstsymbols.cc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, softwa... | 34.025424 | 80 | 0.688418 | glecorve |
ffb04e1e31504863dc6b992057233bb66c5c7f6f | 484 | cpp | C++ | src/codeGen/Generator.cpp | YourBroDuke/Toy-Java-Compiler | 7307391825325a84f66a4cdcf0d0cb911ccb667e | [
"MIT"
] | 2 | 2020-07-30T03:11:42.000Z | 2021-01-05T08:09:10.000Z | src/codeGen/Generator.cpp | YourBroDuke/Toy-Java-Compiler | 7307391825325a84f66a4cdcf0d0cb911ccb667e | [
"MIT"
] | null | null | null | src/codeGen/Generator.cpp | YourBroDuke/Toy-Java-Compiler | 7307391825325a84f66a4cdcf0d0cb911ccb667e | [
"MIT"
] | 1 | 2020-07-30T03:13:07.000Z | 2020-07-30T03:13:07.000Z | #include "Generator.hpp"
#include <iostream>
using namespace std;
JasminFileGenerator::JasminFileGenerator(JContext *context)
{
this->context = context;
}
JasminFileGenerator::~JasminFileGenerator()
{
}
bool JasminFileGenerator::Generate(){
cout << this->context << endl;
cout << this->context->root << e... | 21.043478 | 59 | 0.704545 | YourBroDuke |
ffb41bd65683daaf8c656fdb8f14aa078a2e27bd | 3,054 | cpp | C++ | example.cpp | JeppeDruedahl/SuiteSparsePythonWindows | 566c92313240107dc4f4bd17310a5a7311cf70cd | [
"MIT"
] | null | null | null | example.cpp | JeppeDruedahl/SuiteSparsePythonWindows | 566c92313240107dc4f4bd17310a5a7311cf70cd | [
"MIT"
] | null | null | null | example.cpp | JeppeDruedahl/SuiteSparsePythonWindows | 566c92313240107dc4f4bd17310a5a7311cf70cd | [
"MIT"
] | null | null | null | //////////////
// INCLUDES //
//////////////
#include <windows.h>
#include <stdio.h>
#include <omp.h>
#include "cholmod.h"
#define EXPORT extern "C" __declspec(dllexport)
///////////////
// FUNCTIONS //
///////////////
void _example(double *diag, double *result){
FILE* log_file;
fopen_s(&log_file, "log.txt", "a... | 19.329114 | 98 | 0.571709 | JeppeDruedahl |
ffb4ab7d1698c97da937a1e3941d1342240bfa83 | 2,946 | cpp | C++ | plugins/sourcetools/source/camio/camioloader.cpp | xNWP/Cinema-4D-Source-Tools | 441fb548e72e1c3983fab41d88c5184f002daa2f | [
"MIT"
] | 25 | 2018-02-11T10:12:56.000Z | 2021-06-20T22:32:31.000Z | plugins/sourcetools/source/camio/camioloader.cpp | xNWP/Cinema-4D-Source-Tools | 441fb548e72e1c3983fab41d88c5184f002daa2f | [
"MIT"
] | 10 | 2018-04-09T18:47:33.000Z | 2022-01-05T02:46:26.000Z | plugins/sourcetools/source/camio/camioloader.cpp | xNWP/Cinema-4D-Source-Tools | 441fb548e72e1c3983fab41d88c5184f002daa2f | [
"MIT"
] | 5 | 2019-08-16T04:17:15.000Z | 2021-07-03T08:01:30.000Z | #include "camioloader.h"
#include "camioparser.h"
#include "error.h"
#include "c4d_symbols.h"
#include "c4d_resource.h"
#include "c4d_baseobject.h"
#include "c4d_basedocument.h"
#include "lib_description.h"
#include "obase.h"
#include "c4d_canimation.h"
#define MAX_CAMIO_VERSION 1
namespace st::camio
{
NodeData* L... | 28.601942 | 154 | 0.71928 | xNWP |
ffbe32056f7a0e546e814c3ec8fe9f72b07e1fa1 | 924 | hpp | C++ | image-processing/include/neighboring_regions.hpp | AlenK123/V.A.Silly | 385a875847080efc355ee5e500a68cfaa85e0d07 | [
"MIT"
] | 13 | 2019-04-13T16:57:24.000Z | 2020-07-19T10:23:29.000Z | image-processing/include/neighboring_regions.hpp | AlenK123/V.A.Silly | 385a875847080efc355ee5e500a68cfaa85e0d07 | [
"MIT"
] | 2 | 2019-05-15T13:57:36.000Z | 2021-09-01T06:39:09.000Z | image-processing/include/neighboring_regions.hpp | AlenK123/V.A.Silly | 385a875847080efc355ee5e500a68cfaa85e0d07 | [
"MIT"
] | 1 | 2019-05-14T22:26:10.000Z | 2019-05-14T22:26:10.000Z | #pragma once
#include <opencv2/ximgproc/segmentation.hpp>
#include "region_similarity.hpp"
#include <vector>
class neighboring_regions {
private:
const cv::Mat ℑ
cv::Rect r1;
cv::Rect r2;
double _similarity;
/*
* calculates the color similarity between to regions
* **(input: image... | 28.875 | 93 | 0.678571 | AlenK123 |
ffc08a2acfab6c8ead99b2f47b3a37e254348433 | 13,907 | hpp | C++ | HugeCTR/include/pybind/model_wrapper.hpp | rhdong/HugeCTR | b596bcc44e14bb0c62c4f7e9c0b55301d94f2154 | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/pybind/model_wrapper.hpp | rhdong/HugeCTR | b596bcc44e14bb0c62c4f7e9c0b55301d94f2154 | [
"Apache-2.0"
] | null | null | null | HugeCTR/include/pybind/model_wrapper.hpp | rhdong/HugeCTR | b596bcc44e14bb0c62c4f7e9c0b55301d94f2154 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 ... | 62.363229 | 100 | 0.62544 | rhdong |
ffc0eba6a09d0614aee4655f1da07b9f18fc6d73 | 3,812 | cpp | C++ | TreeAlgorithms/SubtreeQueries/m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 27 | 2019-12-23T21:20:00.000Z | 2022-02-06T04:28:27.000Z | TreeAlgorithms/SubtreeQueries/m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 2 | 2020-04-14T21:40:43.000Z | 2020-09-06T11:15:42.000Z | TreeAlgorithms/SubtreeQueries/m.cpp | 0x5eba/CSES-solutions | c18b66262f5dbef44b58d793f5185c3d0cf3a77c | [
"MIT"
] | 9 | 2020-05-22T08:00:29.000Z | 2021-09-14T09:01:58.000Z | #include<bits/stdc++.h>
using namespace std;
#define ll long long
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
template<typename T> T getint() {
T val=0;
char c;
bool neg=false;
while((c=getchar()) && !(c>='0' && c<='9')) {
neg|=c=='-';
}
do {
val=(val*10)+c-'0';
} while((c=getchar()) && (c>='0'... | 22.034682 | 76 | 0.485834 | 0x5eba |
ffc32b8d7c9065334a0b37dd8f149aec52462d60 | 5,572 | cpp | C++ | ULog/source/CXX/CXX-Log.cpp | macmade/ULog | fc076e03ee469da3c957d3e2618e52d2a5b37111 | [
"MIT"
] | 13 | 2016-10-26T20:25:58.000Z | 2020-04-09T09:37:43.000Z | ULog/source/CXX/CXX-Log.cpp | macmade/ULog | fc076e03ee469da3c957d3e2618e52d2a5b37111 | [
"MIT"
] | null | null | null | ULog/source/CXX/CXX-Log.cpp | macmade/ULog | fc076e03ee469da3c957d3e2618e52d2a5b37111 | [
"MIT"
] | 3 | 2016-10-27T18:46:49.000Z | 2022-01-05T12:31:52.000Z | /*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016 Jean-David Gadina - www.xs-labs.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 21.596899 | 80 | 0.46967 | macmade |
ffca6da861916a89c66e03d331addfec0e4be28e | 809 | cpp | C++ | source/lix/parser/parse-main.cpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | 2 | 2018-09-15T10:17:32.000Z | 2022-01-29T04:01:02.000Z | source/lix/parser/parse-main.cpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | source/lix/parser/parse-main.cpp | vector-of-bool/lix | b4f590abbdc9aedc92347d3b7a33854c05f7066e | [
"MIT"
] | null | null | null | #include <lix/parser/parse.hpp>
#include <algorithm>
#include <fstream>
#include <iostream>
namespace {
int parse_istream(std::istream& in) {
std::string code;
using iter = std::istreambuf_iterator<char>;
std::copy(iter(in), iter{}, std::back_inserter(code));
try {
auto node = lix::ast::parse(... | 23.794118 | 69 | 0.527812 | vector-of-bool |
ffcb7f339f4125684ef0fe4d74b07d5c67f1929b | 2,460 | cpp | C++ | src/busca_nodo.cpp | grvcPerception/interbeacon | 84c932845cb53a61bc2bbd7670df7dfc5c79df74 | [
"MIT"
] | null | null | null | src/busca_nodo.cpp | grvcPerception/interbeacon | 84c932845cb53a61bc2bbd7670df7dfc5c79df74 | [
"MIT"
] | null | null | null | src/busca_nodo.cpp | grvcPerception/interbeacon | 84c932845cb53a61bc2bbd7670df7dfc5c79df74 | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
#include <stdio.h>
#include <time.h>
#include "cntronmod.h"
#include "ros/ros.h"
#include "interbeacon/measure.h"
using namespace std;
/*
*
*/
#define NMAX_NODOS 24
int main(int argc, char** argv) {
ros::init(argc, argv, "busca_nodo");
ros::NodeHandle n;
ros::Pu... | 24.117647 | 136 | 0.556504 | grvcPerception |
ffcb96e47f5ac5ce132d6c25afa8e2a2fcc944ae | 6,735 | hpp | C++ | libs/easy/sat2/cnf_from_xcnf.hpp | wjyoumans/staq | d5227bd4651ce64ba277aab5061e3a132be853bb | [
"MIT"
] | 96 | 2019-12-11T10:18:10.000Z | 2022-03-27T20:16:33.000Z | libs/easy/sat2/cnf_from_xcnf.hpp | wjyoumans/staq | d5227bd4651ce64ba277aab5061e3a132be853bb | [
"MIT"
] | 43 | 2020-01-08T00:59:07.000Z | 2022-03-28T21:35:59.000Z | libs/easy/sat2/cnf_from_xcnf.hpp | wjyoumans/staq | d5227bd4651ce64ba277aab5061e3a132be853bb | [
"MIT"
] | 21 | 2019-12-15T01:40:48.000Z | 2021-12-31T05:27:34.000Z | /* easy: C++ ESOP library
* Copyright (C) 2018 EPFL
*
* 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, mo... | 31.619718 | 78 | 0.499332 | wjyoumans |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.