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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b6d3feda37fa4e0f6bec953600d6261b6a710baf | 2,357 | cpp | C++ | src/core/header_chain.cpp | mbroemme/bamboo | 07e8a42fa90d9ddd4ea6cfc55f000277b65e5d1b | [
"MIT"
] | null | null | null | src/core/header_chain.cpp | mbroemme/bamboo | 07e8a42fa90d9ddd4ea6cfc55f000277b65e5d1b | [
"MIT"
] | null | null | null | src/core/header_chain.cpp | mbroemme/bamboo | 07e8a42fa90d9ddd4ea6cfc55f000277b65e5d1b | [
"MIT"
] | null | null | null | #include "header_chain.hpp"
#include "api.hpp"
#include "block.hpp"
#include "logger.hpp"
#include <iostream>
using namespace std;
HeaderChain::HeaderChain(string host) {
this->host = host;
this->failed = false;
this->totalWork = 0;
this->chainLength = 0;
}
bool HeaderChain::valid() {
return !this... | 27.406977 | 88 | 0.536699 | mbroemme |
b6d4cc78319054635e348aded64612294078730c | 563 | cpp | C++ | July LeetCode Challenge/Day_19.cpp | mishrraG/100DaysOfCode | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 13 | 2020-08-10T14:06:37.000Z | 2020-09-24T14:21:33.000Z | July LeetCode Challenge/Day_19.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | null | null | null | July LeetCode Challenge/Day_19.cpp | mishrraG/DaysOfCP | 3358af290d4f05889917808d68b95f37bd76e698 | [
"MIT"
] | 1 | 2020-05-31T21:09:14.000Z | 2020-05-31T21:09:14.000Z | class Solution {
public:
string addBinary(string a, string b) {
int n1 = a.size() - 1;
int n2 = b.size() - 1;
int carry = 0;
int sum = 0;
string s;
while (n1 >= 0 || n2 >= 0) {
int c1 = n1 >= 0 ? a[n1] - '0' : 0;
int c2 = n2 >= 0 ? b[n2] - '0' : 0;
sum = c1 + c2 + carry;
carry = 0;
if (sum =... | 17.060606 | 39 | 0.436945 | mishrraG |
b6d8fcc2ea0b4a861850a233402fef00db4b63d6 | 643 | cpp | C++ | ares/ws/cpu/dma.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/ws/cpu/dma.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/ws/cpu/dma.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | auto CPU::DMA::transfer() -> void {
//length of 0 or SRAM source address cause immediate termination
if(length == 0 || source.byte(2) == 1) {
enable = 0;
return;
}
self.step(5);
while(length) {
self.step(2);
u16 data = 0;
//once DMA is started; SRAM reads still incur time penalty, but do ... | 25.72 | 83 | 0.547434 | CasualPokePlayer |
b6e503221d683591490f46a242856e349da208ab | 402 | hpp | C++ | wrbb-v2lib-firm/firmware/gr_common/lib/ArduinoJson/ArduinoJson/Numbers/Integer.hpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | 1 | 2018-12-04T02:38:37.000Z | 2018-12-04T02:38:37.000Z | wrbb-v2lib-firm/firmware/gr_common/lib/ArduinoJson/ArduinoJson/Numbers/Integer.hpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | 3 | 2019-08-15T06:59:48.000Z | 2019-10-16T10:02:09.000Z | wrbb-v2lib-firm/firmware/gr_common/lib/ArduinoJson/ArduinoJson/Numbers/Integer.hpp | h7ga40/gr_citrus | 07d450b9cc857997c97519e962572b92501282d6 | [
"MIT"
] | 1 | 2019-02-22T08:27:15.000Z | 2019-02-22T08:27:15.000Z | // ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2019
// MIT License
#pragma once
#include "../Configuration.hpp"
#include <stdint.h> // int64_t
namespace ARDUINOJSON_NAMESPACE {
#if ARDUINOJSON_USE_LONG_LONG
typedef int64_t Integer;
typedef uint64_t UInt;
#else
typedef long Inte... | 19.142857 | 39 | 0.738806 | h7ga40 |
b6e5fddc9312308e7f4772b027e76a4161050cde | 2,416 | hh | C++ | include/dsfs.hh | hspabla/DFS-FUSE | a47e30616f31a78fba23b2b1b0ddb25c97c7beea | [
"Apache-2.0"
] | 3 | 2020-04-08T10:32:44.000Z | 2022-02-17T07:04:07.000Z | include/dsfs.hh | hspabla/DFS-FUSE | a47e30616f31a78fba23b2b1b0ddb25c97c7beea | [
"Apache-2.0"
] | 1 | 2019-10-25T12:24:20.000Z | 2019-10-25T12:24:20.000Z | include/dsfs.hh | hspabla/DFS-FUSE | a47e30616f31a78fba23b2b1b0ddb25c97c7beea | [
"Apache-2.0"
] | null | null | null |
#ifndef dsfs_hh
#define dsfs_hh
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <fuse.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/xattr.h>
#include <unistd.h>
#include <vector>
#include <unordered_map>
#in... | 33.555556 | 120 | 0.682119 | hspabla |
b6e7e930580d7745467e975c038790b896bc10e2 | 1,167 | cpp | C++ | develop/patch.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | develop/patch.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | develop/patch.cpp | chriku/cserial | 70fb65373d73757ef58c92195d5b4de0a7f3ba87 | [
"BSD-3-Clause"
] | null | null | null | #include "cserial/patch.hpp"
#include "cserial/serialize.hpp"
#include <iostream>
using namespace std::literals;
struct file_content3 {
bool a = false;
};
template <>
struct cserial::serial<file_content3> : serializer<"file_content3", //
field<&file_content3::a, "a... | 30.710526 | 113 | 0.610968 | chriku |
b6ea3fb5ca44876eec9baa809f3cd0b2b23ab2cc | 3,806 | hpp | C++ | ModSource/breakingpoint_ui/config/unused/CfgCommunicationMenu.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 70 | 2017-06-23T21:25:05.000Z | 2022-03-27T02:39:33.000Z | ModSource/breakingpoint_ui/config/unused/CfgCommunicationMenu.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 84 | 2017-08-26T22:06:28.000Z | 2021-09-09T15:32:56.000Z | ModSource/breakingpoint_ui/config/unused/CfgCommunicationMenu.hpp | nrailuj/breakingpointmod | e102e106b849ca78deb3cb299f3ae18c91c3bfe9 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 71 | 2017-06-24T01:10:42.000Z | 2022-03-18T23:02:00.000Z | // Generated by unRap v1.06 by Kegetys
class CfgCommunicationMenu {
class Default {
text = "";
submenu = "";
expression = "";
icon = "\a3\Ui_f\data\GUI\Cfg\CommunicationMenu\call_ca.paa";
iconText = "";
cursor = "";
enable = "";
};
class A {
text = $STR_A3_RADIO_A;
iconText = "A";
expression =... | 17.62037 | 69 | 0.609827 | nrailuj |
b6eb570c9b2ac7a802c69f5765f523e67005bf39 | 1,565 | cpp | C++ | uploads/test/Disaster.cpp | l3lackclevil/ARIN-grader | fdfc1ff13402ae5cf327be32733a4cc1fdecf811 | [
"Apache-2.0"
] | null | null | null | uploads/test/Disaster.cpp | l3lackclevil/ARIN-grader | fdfc1ff13402ae5cf327be32733a4cc1fdecf811 | [
"Apache-2.0"
] | null | null | null | uploads/test/Disaster.cpp | l3lackclevil/ARIN-grader | fdfc1ff13402ae5cf327be32733a4cc1fdecf811 | [
"Apache-2.0"
] | null | null | null | #include<cstdio>
#include<iostream>
#include<vector>
using namespace std;
int countt[1000]={0},check[400]={0},c=0,n,sth=0,vc[400][400]={0};
char path[400][2],ans[400],bf;
vector<int>v[1000];
void walk(int p)
{
if(c==n+1)
{
if(sth==0)
{
for(int i=0;i<c;i++)
{
... | 17.197802 | 66 | 0.292013 | l3lackclevil |
b6ed298b2b87dd2507cd67a323eb786ade9d90e3 | 14,732 | cpp | C++ | src/trace/D3DStadistics/StatsManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 23 | 2016-01-14T04:47:13.000Z | 2022-01-13T14:02:08.000Z | src/trace/D3DStadistics/StatsManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 2 | 2018-03-25T14:39:20.000Z | 2022-03-18T05:11:21.000Z | src/trace/D3DStadistics/StatsManager.cpp | attila-sim/attila-sim | a64b57240b4e10dc4df7f21eff0232b28df09532 | [
"BSD-3-Clause"
] | 17 | 2016-02-13T05:35:35.000Z | 2022-03-24T16:05:40.000Z | #ifdef WORKLOAD_STATS
#include "UserStats.h"
#include "StatsManager.h"
#include <fstream>
#include <iostream>
#include "support.h"
#include "Log.h"
using namespace std;
using namespace workloadStats;
/* Create singleton */
StatsManager& StatsManager::instance()
{
/**
* @fix
*
* Previous code caused a memory... | 22.664615 | 125 | 0.523283 | attila-sim |
b6f5c1412e66019b23ff971ae9a9ed28e868d6b4 | 7,333 | cpp | C++ | src/FastRoute/third_party/pdrev/src/pdrev.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/FastRoute/third_party/pdrev/src/pdrev.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | src/FastRoute/third_party/pdrev/src/pdrev.cpp | ax3ghazy/OpenROAD | 2d41acd184d2fb5c551fbdb1f74bbe73a782de6f | [
"BSD-3-Clause-Clear"
] | null | null | null | #include "pdrev.h"
#include "aux.h"
namespace PD{
void PdRev::setAlphaPDII(float alpha){
alpha2 = alpha;
}
void PdRev::addNet(int numPins, std::vector<unsigned> x, std::vector<unsigned> y){
my_graphs.push_back(new Graph(numPins, verbose, alpha1, alpha2,
... | 37.798969 | 159 | 0.472931 | ax3ghazy |
b6f8076d7844f29d7572fd5a4900bdf2923288ef | 9,797 | cpp | C++ | EMA_HFODE/src/EMA_main.cpp | NctuICLab/GREMA | 1ded5168e644b6cf4e219e28320f7e84aa3dba84 | [
"MIT"
] | 3 | 2019-04-27T10:34:27.000Z | 2021-11-08T12:20:59.000Z | EMA_HFODE/src/EMA_main.cpp | NctuICLab/GREMA | 1ded5168e644b6cf4e219e28320f7e84aa3dba84 | [
"MIT"
] | null | null | null | EMA_HFODE/src/EMA_main.cpp | NctuICLab/GREMA | 1ded5168e644b6cf4e219e28320f7e84aa3dba84 | [
"MIT"
] | null | null | null | //
// EMA_main.cpp
// EMA_Hillsum_mask
//
// Created by Mingju on 2017/3/10.
// Copyright (c) 2015 Mingju. All rights reserved.
//
#include "Define.h"
#include "IGA.h"
#include "OrthogonalArray.h"
#include "Model.h"
#include "Getknowledge.h"
#include "Objfunction.h"
using namespace std;
int iteration;
int test_mode... | 27.213889 | 137 | 0.557109 | NctuICLab |
b6fa6bb10e760f6a1214161ac9d0ab9518d9fbcd | 12,390 | cpp | C++ | Codegen/RVInst.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | 1 | 2020-01-23T14:34:11.000Z | 2020-01-23T14:34:11.000Z | Codegen/RVInst.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | null | null | null | Codegen/RVInst.cpp | Yveh/Compiler-Mx_star | e00164537528858ed128dbc5a5c4cf7006d6276e | [
"MIT"
] | null | null | null | #include "RVInst.h"
RVFunction::RVFunction(std::string _name) : name(_name) {
regcnt = 0;
paramInStackOffset = 0;
}
std::string RVFunction::to_string() {
return name;
}
RVBlock::RVBlock(int _label) : label(_label) {}
std::string RVBlock::to_string() {
return "." + funcName + "_.bb" + std::to_string(... | 25.030303 | 196 | 0.549395 | Yveh |
b6fe175e57a621f051f8f4632fb5265364b39c73 | 245 | hpp | C++ | Kmer.hpp | harkoslav/BioInformatics-Project-2019 | 65ce99e834c73cb1efc8021dbe2c5065050dd7f1 | [
"MIT"
] | null | null | null | Kmer.hpp | harkoslav/BioInformatics-Project-2019 | 65ce99e834c73cb1efc8021dbe2c5065050dd7f1 | [
"MIT"
] | null | null | null | Kmer.hpp | harkoslav/BioInformatics-Project-2019 | 65ce99e834c73cb1efc8021dbe2c5065050dd7f1 | [
"MIT"
] | null | null | null | #include <string>
#ifndef KMER
#define KMER
/*
Class representing k-mer substring and it's index
in the reference string.
*/
class Kmer {
public:
std::string str;
int index;
Kmer(std::string, int i);
};
#endif | 13.611111 | 49 | 0.616327 | harkoslav |
8e028d821a1e056348937e629dbb15b7cf0b9b05 | 2,775 | hpp | C++ | src/Main/mixing.hpp | pwang234/lsms | 6044153b6138512093e457bdc0c15c699c831778 | [
"BSD-3-Clause"
] | 16 | 2018-04-03T15:35:47.000Z | 2022-03-01T03:19:23.000Z | src/Main/mixing.hpp | pwang234/lsms | 6044153b6138512093e457bdc0c15c699c831778 | [
"BSD-3-Clause"
] | 8 | 2019-07-30T13:59:18.000Z | 2022-03-31T17:43:35.000Z | src/Main/mixing.hpp | pwang234/lsms | 6044153b6138512093e457bdc0c15c699c831778 | [
"BSD-3-Clause"
] | 9 | 2018-06-30T00:30:48.000Z | 2022-01-31T09:14:29.000Z | /* -*- c-file-style: "bsd"; c-basic-offset: 2; indent-tabs-mode: nil -*- */
#ifndef LSMS_MIXING_H
#define LSMS_MIXING_H
#include "Real.hpp"
#include "SystemParameters.hpp"
#include "SingleSite/AtomData.hpp"
// #include "Communication/LSMSCommunication.hpp"
#include <vector>
#include <deque>
#include <cmath>
#include ... | 33.035714 | 119 | 0.667387 | pwang234 |
8e029220884062c1ec415c51f364117ed200c02a | 495 | cpp | C++ | lib/dtrsm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 6 | 2015-12-13T09:10:11.000Z | 2022-02-09T23:18:22.000Z | lib/dtrsm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | lib/dtrsm.cpp | langou/latl | df838fb44a1ef5c77b57bf60bd46eaeff8db3492 | [
"BSD-3-Clause-Open-MPI"
] | 2 | 2019-02-01T06:46:36.000Z | 2022-02-09T23:18:24.000Z | //
// dtrsm.cpp
// Linear Algebra Template Library
//
// Created by Rodney James on 1/1/13.
// Copyright (c) 2013 University of Colorado Denver. All rights reserved.
//
#include "blas.h"
#include "trsm.h"
using LATL::TRSM;
int dtrsm_(char& side, char& uplo, char& trans, char& diag, int &m, int &n, double &alpha,... | 23.571429 | 132 | 0.650505 | langou |
8e03ea38d25c8473485c5684c18025236108bbe2 | 3,260 | cpp | C++ | source_code/system_sys/source_code/gui/_Sys_Abstract_Base_Wid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/_Sys_Abstract_Base_Wid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | source_code/system_sys/source_code/gui/_Sys_Abstract_Base_Wid.cpp | dabachma/ProMaIDes_src | 3fa6263c46f89abbdb407f2e1643843d54eb6ccc | [
"BSD-3-Clause"
] | null | null | null | //#include "_Sys_Abstract_Base_Wid.h"
#include "Sys_Headers_Precompiled.h"
#include <QScrollBar>
//Default constructor
_Sys_Abstract_Base_Wid::_Sys_Abstract_Base_Wid(QWidget *parent): _Sys_Data_Wid(parent) {
//Qt stuff
this->setupUi(this);
this->ptr_database=NULL;
this->edit_icon = QIcon(":hydro/Preferences");
... | 33.265306 | 166 | 0.767485 | dabachma |
8e0afdfe586781c6848373db847af2aa113a764e | 753 | cpp | C++ | txttobmp.cpp | DBFritz/ParticleDetections | cd05979c58b79c27259479e948c445867a7a838f | [
"MIT"
] | 1 | 2018-04-05T02:26:57.000Z | 2018-04-05T02:26:57.000Z | txttobmp.cpp | DBFritz/ParticleDetections | cd05979c58b79c27259479e948c445867a7a838f | [
"MIT"
] | null | null | null | txttobmp.cpp | DBFritz/ParticleDetections | cd05979c58b79c27259479e948c445867a7a838f | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "rawImages.hpp"
#include "rawFilters.hpp"
int main(int argc, char *argv[])
{
using namespace std;
using namespace raw;
if (argc <= 2) {
cout << "usage: " << argv[0] << " /path/to/photo.txt /path/to/new/photo.bmp [minValue] [maxValue]";
return... | 25.1 | 107 | 0.616202 | DBFritz |
8e0ef9add2847f1e92644c7e0dfbc0dd17287b3c | 9,211 | cpp | C++ | HTTPProxy.cpp | kytvi2p/i2pd | 73d402525636276ac78aa92ea88535911e21928c | [
"BSD-3-Clause"
] | 4 | 2015-09-28T16:01:55.000Z | 2021-04-08T19:26:50.000Z | HTTPProxy.cpp | kytvi2p/i2pd | 73d402525636276ac78aa92ea88535911e21928c | [
"BSD-3-Clause"
] | null | null | null | HTTPProxy.cpp | kytvi2p/i2pd | 73d402525636276ac78aa92ea88535911e21928c | [
"BSD-3-Clause"
] | null | null | null | #include <cstring>
#include <cassert>
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
#include <string>
#include <atomic>
#include "HTTPProxy.h"
#include "util.h"
#include "Identity.h"
#include "Streaming.h"
#include "Destination.h"
#include "ClientContext.h"
#include "I2PEndian.h"
#include "I2PTunnel.h"
... | 30.703333 | 140 | 0.685159 | kytvi2p |
8e14d135e6b5fcd11430de516e3b4204aab09577 | 1,179 | cpp | C++ | GazeTracker/GazeTracker_Qt/GazeTracker.cpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | GazeTracker/GazeTracker_Qt/GazeTracker.cpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | GazeTracker/GazeTracker_Qt/GazeTracker.cpp | bernhardrieder/GazeTracker | b468a03cb986a4950ee1d2a49df759e17a80c5cc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "GazeTracker.h"
GazeTracker::GazeTracker(int argc, char* argv[]) : qApplication(argc, argv)
{
CreateDirectory(LPWSTR(std::wstring(L"C:/GazeTracker").c_str()), NULL);
CreateDirectory(LPWSTR(std::wstring(L"C:/GazeTracker/Output").c_str()), NULL);
CreateDirectory(LPWSTR(std::wstring(L"C:/... | 31.026316 | 178 | 0.737913 | bernhardrieder |
8e14d6363768e8360a9e08995d1ef621c8b61e7a | 2,508 | cpp | C++ | beringei/lib/BucketUtils.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 2,780 | 2016-12-22T19:25:26.000Z | 2018-05-21T11:29:42.000Z | beringei/lib/BucketUtils.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 57 | 2016-12-23T09:22:18.000Z | 2018-05-04T06:26:48.000Z | beringei/lib/BucketUtils.cpp | pidb/Gorilla | 75c3002b179d99c8709323d605e7d4b53484035c | [
"BSD-3-Clause"
] | 254 | 2016-12-22T20:53:12.000Z | 2018-05-16T06:14:10.000Z | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include "... | 28.179775 | 79 | 0.732057 | pidb |
8e1d27d157cca0f5c76c77c661ae3e821bd5b046 | 1,641 | hh | C++ | transformations/base/ViewHistBased.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | 5 | 2019-10-14T01:06:57.000Z | 2021-02-02T16:33:06.000Z | transformations/base/ViewHistBased.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | transformations/base/ViewHistBased.hh | gnafit/gna | c1a58dac11783342c97a2da1b19c97b85bce0394 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include "GNAObject.hh"
#include "GNAObjectBind1N.hh"
#include <boost/optional.hpp>
namespace GNA{
namespace GNAObjectTemplates{
template<typename FloatType>
class ViewHistBasedT: public GNAObjectBind1N<FloatType>,
public TransformationB... | 34.914894 | 104 | 0.645338 | gnafit |
8e26a0fcbb823784a5633a2804b8d1e894e4486b | 1,562 | cpp | C++ | packages/+GT/GenericTargetCode/source/GenericTarget/TargetTime.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 1 | 2021-02-02T09:01:24.000Z | 2021-02-02T09:01:24.000Z | packages/+GT/GenericTargetCode/source/GenericTarget/TargetTime.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | null | null | null | packages/+GT/GenericTargetCode/source/GenericTarget/TargetTime.cpp | RobertDamerius/GenericTarget | 6b26793c2d580797ac8104ca5368987cbb570ef8 | [
"MIT"
] | 2 | 2021-02-02T09:01:45.000Z | 2021-10-02T13:08:16.000Z | #include <TargetTime.hpp>
TimeInfo::TimeInfo(){
nanoseconds = 0;
second = 0;
minute = 0;
hour = 0;
mday = 1;
mon = 0;
year = 0;
wday = 1;
yday = 0;
isdst = -1;
}
TimeInfo::TimeInfo(const TimeInfo& time){
this->nanoseconds = time.nanoseconds;
this->second = time.second;... | 21.108108 | 57 | 0.597951 | RobertDamerius |
8e29bd542577cb6885007975f0ac9c79f5b4dcee | 1,010 | cpp | C++ | 1.cpp | nitin-maharana/CODE | 126826c36d8b7fa578c8e78e570117c53327e461 | [
"MIT"
] | 1 | 2016-03-05T11:40:39.000Z | 2016-03-05T11:40:39.000Z | 1.cpp | nitin-maharana/CODE | 126826c36d8b7fa578c8e78e570117c53327e461 | [
"MIT"
] | null | null | null | 1.cpp | nitin-maharana/CODE | 126826c36d8b7fa578c8e78e570117c53327e461 | [
"MIT"
] | null | null | null | /*
* Written by Nitin Kumar Maharana
* nitin.maharana@gmail.com
*/
#include <iostream>
using namespace std;
template <class T>
struct node
{
T val;
struct node *next;
};
template <class T>
class Stack
{
struct node<T> *top;
public:
Stack()
{
top = nullptr;
}
void push(T item)
{
struct node... | 11.609195 | 51 | 0.541584 | nitin-maharana |
8e2dcdcaad06eec9461def636d8c13e1cabd2840 | 1,537 | cpp | C++ | Full.cpp | satans404/Project-2--CS205-C-C-Program-Design | 53f555145858bfa58564c57eee2706be60becf78 | [
"Apache-2.0"
] | null | null | null | Full.cpp | satans404/Project-2--CS205-C-C-Program-Design | 53f555145858bfa58564c57eee2706be60becf78 | [
"Apache-2.0"
] | null | null | null | Full.cpp | satans404/Project-2--CS205-C-C-Program-Design | 53f555145858bfa58564c57eee2706be60becf78 | [
"Apache-2.0"
] | null | null | null | #include "Full.h"
#include "Matrix.h"
using namespace std;
Full::Full():Layer(Layer::Type::Full)
{
this->inX=0;
this->inY=0;
this->inDimX=0;
this->inDimY=0;
this->outX=0;
this->outY=0;
this->outDimX=0;
this->outDimY=0;
this->pad=0;
}
Full::Full(int inDimX,int inD... | 18.975309 | 75 | 0.540664 | satans404 |
8e2e58e183d0f3a0a3d3db1b893fa692e22e758c | 3,126 | cpp | C++ | Boss2D/element/boss_matrix.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/element/boss_matrix.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | Boss2D/element/boss_matrix.cpp | Yash-Wasalwar-07/Boss2D | 37c5ba0f1c83c89810359a207cabfa0905f803d2 | [
"MIT"
] | null | null | null | #include <boss.hpp>
#include "boss_matrix.hpp"
namespace BOSS
{
Matrix::Matrix()
{
m11 = 1;
m12 = 0;
m21 = 0;
m22 = 1;
dx = 0;
dy = 0;
}
Matrix::Matrix(const Matrix& rhs)
{
operator=(rhs);
}
Matrix::Matrix(float ... | 28.162162 | 98 | 0.493282 | Yash-Wasalwar-07 |
8e33160405802224bf3cf0d56c8a29ca37336602 | 2,887 | hpp | C++ | libs/dmlf/include/dmlf/colearn/update_store.hpp | marcuswin/ledger | b79c5c4e7e92ff02ea4328fcc0885bf8ded2b8b2 | [
"Apache-2.0"
] | 1 | 2019-09-11T09:46:04.000Z | 2019-09-11T09:46:04.000Z | libs/dmlf/include/dmlf/colearn/update_store.hpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | null | null | null | libs/dmlf/include/dmlf/colearn/update_store.hpp | qati/ledger | e05a8f2d62ea1b79a704867d220cf307ef6b93b9 | [
"Apache-2.0"
] | 1 | 2019-09-19T12:38:46.000Z | 2019-09-19T12:38:46.000Z | #pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the Licen... | 35.641975 | 91 | 0.656044 | marcuswin |
8e347e5be5d2d3f3c9e4cf2410cc925090f906a3 | 4,771 | cpp | C++ | test/network/TcpClient.cpp | kubasejdak/utils | efc491e5f682f365bf4752a26f086910c89d6b25 | [
"BSD-2-Clause"
] | null | null | null | test/network/TcpClient.cpp | kubasejdak/utils | efc491e5f682f365bf4752a26f086910c89d6b25 | [
"BSD-2-Clause"
] | null | null | null | test/network/TcpClient.cpp | kubasejdak/utils | efc491e5f682f365bf4752a26f086910c89d6b25 | [
"BSD-2-Clause"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////
///
/// @file
/// @author Kuba Sejdak
/// @copyright BSD 2-Clause License
///
/// Copyright (c) 2021-2021, Kuba Sejdak <kuba.sejdak@gmail.com>
/// All rights reserved.
///
/// Redistribution and use in source and binary forms, with or... | 35.340741 | 87 | 0.646405 | kubasejdak |
8e39bbf4687cfa58e7db8d9236e27f8c64514864 | 5,443 | cpp | C++ | solver.cpp | georgekouzi/solver-a | 594ea86eda750d20f6befe78b629a5c6bf06c6da | [
"MIT"
] | null | null | null | solver.cpp | georgekouzi/solver-a | 594ea86eda750d20f6befe78b629a5c6bf06c6da | [
"MIT"
] | null | null | null | solver.cpp | georgekouzi/solver-a | 594ea86eda750d20f6befe78b629a5c6bf06c6da | [
"MIT"
] | null | null | null | #include <iostream>
#include "solver.hpp"
using namespace std;
namespace solver{
double solve(RealVariable t){
return 1.0;
}
complex<double> solve(ComplexVariable) {
return complex<double>();
}
////////////////////////// func ComplexVariable/////////////////////////
////////////////////////... | 28.952128 | 80 | 0.534815 | georgekouzi |
8e3c304af56aa9d35b80d3624e903c87bb898124 | 1,515 | cpp | C++ | libz/types/real64.cpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | 5 | 2017-01-11T03:20:57.000Z | 2017-01-15T11:20:30.000Z | libz/types/real64.cpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | null | null | null | libz/types/real64.cpp | kmc7468/zlang | 08f9ba5dab502224bea5baa6f7a78c546094b7d0 | [
"MIT"
] | null | null | null | #include "real64.hpp"
namespace libz::types
{
int real64::compare(const instance& ins) const
{
if (ins.type() == type::real64)
{
const real64& ins_conv = (const real64&)ins;
if (this->m_data == ins_conv.m_data) return 0;
else if (this->m_data > ins_conv.m_data) return 1;
else return -1;
}
throw... | 22.61194 | 84 | 0.648185 | kmc7468 |
8e40af3902e91b0044e56e6e8e3b1f00f27d7706 | 1,734 | hpp | C++ | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/infrastructure_action.hpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/infrastructure_action.hpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/infrastructure_action.hpp | autocore-ai/scenario_simulator_v2 | bb9569043e20649f0e4390e9225b6bb7b4de10b6 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015-2020 Tier IV, Inc. 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 app... | 35.387755 | 97 | 0.700115 | autocore-ai |
8e4161ac8b1ff3c0ea278995007a8a776e1d52d0 | 3,909 | cpp | C++ | persist/tests/test_core/test_fsm/test_fsl.cpp | ketgo/persist | 623a5c32a9a0fd3e43987421aa1f91ab8284d356 | [
"MIT"
] | null | null | null | persist/tests/test_core/test_fsm/test_fsl.cpp | ketgo/persist | 623a5c32a9a0fd3e43987421aa1f91ab8284d356 | [
"MIT"
] | 11 | 2020-09-30T07:33:10.000Z | 2021-05-01T05:59:13.000Z | persist/tests/test_core/test_fsm/test_fsl.cpp | ketgo/persist | 623a5c32a9a0fd3e43987421aa1f91ab8284d356 | [
"MIT"
] | null | null | null | /**
* test_fsl.cpp - Persist
*
* Copyright 2021 Ketan Goyal
*
* 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, co... | 30.779528 | 80 | 0.724482 | ketgo |
8e41825b206c4b4d2de955950434199dd3f3720b | 4,864 | cpp | C++ | ige/src/plugin/physics/bullet3/BulletWorld.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 3 | 2021-06-05T00:36:50.000Z | 2022-02-27T10:23:53.000Z | ige/src/plugin/physics/bullet3/BulletWorld.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 11 | 2021-05-08T22:00:24.000Z | 2021-11-11T22:33:43.000Z | ige/src/plugin/physics/bullet3/BulletWorld.cpp | Arcahub/ige | b9f61209c924c7b683d2429a07e76251e6eb7b1b | [
"MIT"
] | 4 | 2021-05-20T12:41:23.000Z | 2021-11-09T14:19:18.000Z | #include "igepch.hpp"
#include "BulletGhostObject.hpp"
#include "BulletRigidBody.hpp"
#include "BulletWorld.hpp"
#include "ige/ecs/Entity.hpp"
#include "ige/ecs/World.hpp"
#include "ige/plugin/TransformPlugin.hpp"
#include "ige/plugin/physics/Constraint.hpp"
#include "ige/plugin/physics/GhostObject.hpp"
#include "ige/... | 30.21118 | 78 | 0.657484 | Arcahub |
8e42ea4ea3f9f071a18200c6f3982101826ab673 | 44,791 | cpp | C++ | spheroidal/sphwv/common_spheroidal.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | 5 | 2016-05-02T11:51:54.000Z | 2021-10-04T14:35:58.000Z | spheroidal/sphwv/common_spheroidal.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | null | null | null | spheroidal/sphwv/common_spheroidal.cpp | SabininGV/scattering | 68ffea5605d9da87db0593ba7c56c7f60f6b3fae | [
"BSD-2-Clause"
] | 10 | 2016-03-17T03:58:52.000Z | 2021-10-04T14:36:00.000Z | //
// Copyright (c) 2014, Ross Adelman, Nail A. Gumerov, and Ramani Duraiswami
// 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 cop... | 30.826566 | 429 | 0.540979 | SabininGV |
8e4850d32d9150a7bd458a3aac406739d0b10131 | 1,900 | cpp | C++ | example/sqlite.cpp | vashman/data_pattern_sqlite | 8ed3d1fe3e86ea7165d43277feb05d84189f696e | [
"BSL-1.0"
] | null | null | null | example/sqlite.cpp | vashman/data_pattern_sqlite | 8ed3d1fe3e86ea7165d43277feb05d84189f696e | [
"BSL-1.0"
] | null | null | null | example/sqlite.cpp | vashman/data_pattern_sqlite | 8ed3d1fe3e86ea7165d43277feb05d84189f696e | [
"BSL-1.0"
] | null | null | null | //
// Copyright Sundeep S. Sangha 2015 - 2017.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <cassert>
#include <data_pattern/raw.hpp>
#include "../src/sqlite.cpp"
using data_pa... | 24.675325 | 103 | 0.692632 | vashman |
8e56dacb9ee6afeda813d52865390d9dae70ab66 | 956 | hpp | C++ | boost/network/protocol/http/message/wrappers/uri.hpp | sureandrew/cpp-netlib | a4dabd50dcd42f46ac152c733a3d39f32040185d | [
"BSL-1.0"
] | null | null | null | boost/network/protocol/http/message/wrappers/uri.hpp | sureandrew/cpp-netlib | a4dabd50dcd42f46ac152c733a3d39f32040185d | [
"BSL-1.0"
] | null | null | null | boost/network/protocol/http/message/wrappers/uri.hpp | sureandrew/cpp-netlib | a4dabd50dcd42f46ac152c733a3d39f32040185d | [
"BSL-1.0"
] | 1 | 2018-08-07T07:27:49.000Z | 2018-08-07T07:27:49.000Z | #ifndef BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_WRAPPERS_URI_HPP_20100620
#define BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_WRAPPERS_URI_HPP_20100620
// Copyright 2010 (c) Dean Michael Berris.
// Copyright 2010 (c) Sinefunc, Inc.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0... | 26.555556 | 71 | 0.781381 | sureandrew |
8e57e7856a533c08f12ef719a0868f644ad6d3f9 | 1,331 | cpp | C++ | core/main_thread.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 81 | 2019-09-18T13:53:17.000Z | 2022-03-19T00:44:20.000Z | core/main_thread.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 4 | 2019-10-03T15:17:00.000Z | 2019-11-03T01:05:41.000Z | core/main_thread.cpp | mail-ru-im/im-desktop | d6bb606650ad84b31046fe39b81db1fec4e6050b | [
"Apache-2.0"
] | 25 | 2019-09-27T16:56:02.000Z | 2022-03-14T07:11:14.000Z | #include "stdafx.h"
#include "main_thread.h"
#include "core.h"
#include "network_log.h"
using namespace core;
main_thread::main_thread()
: threadpool("core main", 1 )
{
set_task_finish_callback([](std::chrono::milliseconds _task_execute_time, const stack_vec& _st, std::string_view _name)
{
... | 24.648148 | 124 | 0.53118 | mail-ru-im |
8e5cd80a6c178aa7527c6a86043feb6b5f7019f2 | 10,986 | cpp | C++ | src/entity/RTraceEntity.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/entity/RTraceEntity.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/entity/RTraceEntity.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD 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 3 of the License,... | 47.558442 | 143 | 0.712725 | ouxianghui |
769defd8740a99022c6aa54d6f2c3fa273a2c056 | 2,595 | cpp | C++ | include/h3api/H3AdventureMap/H3TileVision.cpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3AdventureMap/H3TileVision.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3AdventureMap/H3TileVision.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 34.144737 | 105 | 0.522158 | Patrulek |
76a737fb754ed01d961158bf576bab13ca7e6ebe | 887 | cpp | C++ | MPI2Send/MPI2Send27.cpp | bru1t/pt-for-mpi-2-answers | 81595465725db4cce848a1c45b3695203d97db03 | [
"Unlicense"
] | 2 | 2021-12-26T20:18:24.000Z | 2021-12-28T10:49:42.000Z | MPI2Send/MPI2Send27.cpp | bru1t/pt-for-mpi-2-answers | 81595465725db4cce848a1c45b3695203d97db03 | [
"Unlicense"
] | null | null | null | MPI2Send/MPI2Send27.cpp | bru1t/pt-for-mpi-2-answers | 81595465725db4cce848a1c45b3695203d97db03 | [
"Unlicense"
] | null | null | null | #include "pt4.h"
#include "mpi.h"
void Solve()
{
Task("MPI2Send27");
int flag;
MPI_Initialized(&flag);
if (flag == 0)
return;
int rank, size;
MPI_Comm_size(MPI_COMM_WORLD, &size);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
int n;
pt >> n;
if (n == -1) {
int num = 0;
... | 16.127273 | 93 | 0.487035 | bru1t |
76a7965ffae35f6c73dacb9213b012580a657853 | 735 | cpp | C++ | include/general.cpp | denisjackman/Cee | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | null | null | null | include/general.cpp | denisjackman/Cee | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | 2 | 2016-06-30T14:31:43.000Z | 2016-07-01T08:43:03.000Z | include/general.cpp | denisjackman/game | 2176e9dccc17ac93463bd5473f437f1c76ba9c3c | [
"CC-BY-4.0"
] | null | null | null | #include <cstdlib>
#include <ctime>
#include <cmath>
#include <string>
#include <iostream>
#include <fstream>
#include <vector>
#include <list>
using namespace std;
bool gDebugMode = false;
string gDebugLogFileLocation = "debug.log";
ofstream gDebugLogFile;
void DebugModeInitialise()
{
if (gDebugMode)
{
... | 15.978261 | 58 | 0.634014 | denisjackman |
76a7fad4d057925cfa08390226478c081f689f57 | 103 | cxx | C++ | tests/TestUtil/message_for_assert.cxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | tests/TestUtil/message_for_assert.cxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | tests/TestUtil/message_for_assert.cxx | SergeyKleyman/elastic-apm-agent-cpp-prototype | 67d2c7ad5a50e1a6b75d6725a89ae3fc5a92d517 | [
"Apache-2.0"
] | null | null | null | // TODO: Sergey Kleyman: Remove if I don't need it anymore
// #include "message_for_assert.hxx"
//
| 20.6 | 58 | 0.68932 | SergeyKleyman |
76a995b55aba98ae09015b150c7896960361cf93 | 15,342 | hpp | C++ | INCLUDE/Vcl/ibinstall.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/ibinstall.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/ibinstall.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'IBInstall.pas' rev: 6.00
#ifndef IBInstallHPP
#define IBInstallHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <IBX... | 42.735376 | 253 | 0.752118 | earthsiege2 |
76ad7c947d4264f5fa2762a3d199e6addfc13541 | 5,471 | cpp | C++ | test/fibex/out.cpp | cepsdev/sm4ceps | e333a133ac3b3aff066a63046f0f8f7b339110e1 | [
"Apache-2.0"
] | 7 | 2021-02-25T19:06:27.000Z | 2022-01-18T03:46:27.000Z | test/fibex/out.cpp | cepsdev/sm4ceps | e333a133ac3b3aff066a63046f0f8f7b339110e1 | [
"Apache-2.0"
] | 10 | 2021-04-18T22:29:48.000Z | 2022-01-26T11:07:13.000Z | test/fibex/out.cpp | cepsdev/sm4ceps | e333a133ac3b3aff066a63046f0f8f7b339110e1 | [
"Apache-2.0"
] | 1 | 2021-09-16T14:21:14.000Z | 2021-09-16T14:21:14.000Z | /* out.cpp
CREATED Fri Mar 17 05:02:44 2017
GENERATED BY THE sm4ceps C++ GENERATOR VERSION 0.90.
BASED ON cepS (c) 2017 Tomas Prerovsky <tomas.prerovsky@gmail.com> VERSION 1.1 (Mar 10 2017) BUILT WITH GCC 5.2.1 20151010 on GNU/LINUX 64BIT (C) BY THE AUTHORS OF ceps (ceps is hosted at github: https://github.c... | 36.473333 | 236 | 0.735149 | cepsdev |
76add05f31a823cb55f1e87e4914d8e3d2b4f9c1 | 2,299 | cpp | C++ | src/join.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | 1 | 2021-07-19T11:07:24.000Z | 2021-07-19T11:07:24.000Z | src/join.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | null | null | null | src/join.cpp | robhz786/strf-benchmarks | e783700317ef1fea0d9e7217c8c42884c3c0371e | [
"BSL-1.0"
] | null | null | null | // Distributed under the Boost Software License, Version 1.0.
// ( See accompanying file LICENSE or copy at
// http://www.boost.org/LICENSE_1_0.txt )
#include <benchmark/benchmark.h>
#include <strf/to_cfile.hpp>
#define CREATE_BENCHMARK(PREFIX) \
static void PREFIX (benchmark::State& st... | 35.921875 | 100 | 0.597216 | robhz786 |
76b1757a87800c7b549d40adfcab3a6320719bd1 | 7,292 | cpp | C++ | 2004/samples/graphics/traits_dg/traits.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 1 | 2021-06-25T02:58:47.000Z | 2021-06-25T02:58:47.000Z | 2004/samples/graphics/traits_dg/traits.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | null | null | null | 2004/samples/graphics/traits_dg/traits.cpp | kevinzhwl/ObjectARXMod | ef4c87db803a451c16213a7197470a3e9b40b1c6 | [
"MIT"
] | 3 | 2020-05-23T02:47:44.000Z | 2020-10-27T01:26:53.000Z | // (C) Copyright 1996,1998 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warr... | 28.936508 | 73 | 0.652907 | kevinzhwl |
76b17f81649a6999c1a3fce0974c4946ee13a356 | 3,264 | cpp | C++ | src/StartUpDialog.cpp | Nodens-LOTGA/CircuitTester | 23438f49651f537c43cd78f64e61c2a5024ec8c8 | [
"MIT"
] | null | null | null | src/StartUpDialog.cpp | Nodens-LOTGA/CircuitTester | 23438f49651f537c43cd78f64e61c2a5024ec8c8 | [
"MIT"
] | null | null | null | src/StartUpDialog.cpp | Nodens-LOTGA/CircuitTester | 23438f49651f537c43cd78f64e61c2a5024ec8c8 | [
"MIT"
] | null | null | null | #include "startupdialog.h"
#include "./ui_startupdialog.h"
#include "Settings.h"
#include "tools.h"
#include <QCryptographicHash>
#include <QMessageBox>
#include <QRegExpValidator>
#include <QSerialPort>
#include <QSerialPortInfo>
#include <QSettings>
#include <QStyledItemDelegate>
StartUpDialog::StartUpDialog(QWidge... | 28.631579 | 77 | 0.620098 | Nodens-LOTGA |
76bc8541fdab340404c8957ff292fec175c6d853 | 163 | cpp | C++ | src/common.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | 1 | 2018-10-02T15:29:14.000Z | 2018-10-02T15:29:14.000Z | src/common.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null | src/common.cpp | sdadia/deep-learning-and-optimization | b44be79de116e2d4b203452a161641519f18f580 | [
"MIT"
] | null | null | null |
#include "common.hpp"
#include <xtensor/xarray.hpp>
#include <xtensor/xio.hpp>
#include <xtensor/xtensor.hpp>
#include <glog/logging.h> // for check macro
| 20.375 | 50 | 0.705521 | sdadia |
76bf34c486ee92c78bf855f06a705c386d700b6e | 202 | cpp | C++ | application/src/main.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | 1 | 2019-01-23T18:34:33.000Z | 2019-01-23T18:34:33.000Z | application/src/main.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | null | null | null | application/src/main.cpp | EgorSidorov/EasySiteCreator | 100203b49386d6905a6e9456c9f2b7644f7f6ff0 | [
"Apache-2.0"
] | null | null | null | #include <QApplication>
#include "mainwindow.h"
int main(int argc, char *argv[])
{
QApplication *app=new QApplication(argc,argv);
MainWindow window(app);
window.show();
app->exec();
}
| 16.833333 | 50 | 0.658416 | EgorSidorov |
76c93f51cbe86587f1467e4b4da18f7e80e39978 | 1,633 | hpp | C++ | AVLWordTree.hpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | AVLWordTree.hpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | AVLWordTree.hpp | SinaRaoufi/AVLWordTree | 87e18951175b9cf93fa9d2323e8df52de2e3c2ab | [
"MIT"
] | null | null | null | #ifndef AVL_WORD_TREE_IG
#define AVL_WORD_TREE_IG
#include <string>
#include <vector>
class AVLNode
{
public:
explicit AVLNode(const std::string &);
void setValue(const std::string &);
std::string getValue() const;
void setHeight(int);
int getHeight() const;
void setRightChild(AVLNode *);
... | 27.216667 | 73 | 0.679731 | SinaRaoufi |
76caf89b9574be170f7fa9d2acaf3db9a0213ef2 | 10,283 | cpp | C++ | packages/Search/test/tstBoostGeometryAdapters.cpp | dalg24/DataTransferKit | 35c5943d8f2f516b1da5f4004cbd05d476a8744e | [
"BSD-3-Clause"
] | null | null | null | packages/Search/test/tstBoostGeometryAdapters.cpp | dalg24/DataTransferKit | 35c5943d8f2f516b1da5f4004cbd05d476a8744e | [
"BSD-3-Clause"
] | 4 | 2017-03-27T12:17:42.000Z | 2018-12-04T19:44:44.000Z | packages/Search/test/tstBoostGeometryAdapters.cpp | dalg24/DataTransferKit | 35c5943d8f2f516b1da5f4004cbd05d476a8744e | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
* Copyright (c) 2012-2019 by the DataTransferKit authors *
* All rights reserved. *
* *
* This ... | 41.297189 | 80 | 0.550715 | dalg24 |
76ccbf5bfac42b9745d142340f704e261e1b6276 | 119 | cpp | C++ | server/instance.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | server/instance.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | server/instance.cpp | irl-game/irl | ba507a93371ab172b705c1ede8cd062123fc96f5 | [
"MIT"
] | null | null | null | #include "instance.hpp"
Instance::Instance() : SimServer(static_cast<Sched &>(*this), static_cast<World &>(*this)) {}
| 29.75 | 93 | 0.697479 | irl-game |
76ce217b72a19bb05df50f736e02594e4669b538 | 2,493 | cpp | C++ | libs/server/server_base.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | 6 | 2017-11-16T06:12:20.000Z | 2021-02-06T06:58:20.000Z | libs/server/server_base.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | null | null | null | libs/server/server_base.cpp | caodhuan/CHServer | 823c4a006528a3aa1c88575c499eecda45d9022d | [
"Apache-2.0"
] | null | null | null | #include "server_base.h"
#include "event_dispatcher.h"
#include "session.h"
#include "log.h"
#include "socket_tcp.h"
#include "uv.h"
#include "timer_factory.h"
#include "resource _manager.h"
#include "config.h"
namespace CHServer {
template<>
ServerBase* SingletonInheritable<ServerBase>::m_Instance = 0;
ServerBas... | 21.307692 | 109 | 0.680706 | caodhuan |
76d55a9f58257315c5914ab7967a59c03c78b85c | 5,612 | cc | C++ | lesson4/compression.cc | Frzifus/hoema | c5f9ab6760f4a3f044c008b08e62eaab5760fb7b | [
"BSD-2-Clause"
] | null | null | null | lesson4/compression.cc | Frzifus/hoema | c5f9ab6760f4a3f044c008b08e62eaab5760fb7b | [
"BSD-2-Clause"
] | null | null | null | lesson4/compression.cc | Frzifus/hoema | c5f9ab6760f4a3f044c008b08e62eaab5760fb7b | [
"BSD-2-Clause"
] | null | null | null | // BSD 2-Clause License
//
// Copyright (c) 2016, frzifus
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice, this
//... | 34.219512 | 80 | 0.619922 | Frzifus |
76d8f508e50a3ea1a907ea0847bd10b4754c935d | 650 | cpp | C++ | src/Utilization.cpp | mansonjones/CppND-System-Monitor | 269f9e189234cf7479f9eb1652af5600554cc017 | [
"MIT"
] | null | null | null | src/Utilization.cpp | mansonjones/CppND-System-Monitor | 269f9e189234cf7479f9eb1652af5600554cc017 | [
"MIT"
] | null | null | null | src/Utilization.cpp | mansonjones/CppND-System-Monitor | 269f9e189234cf7479f9eb1652af5600554cc017 | [
"MIT"
] | null | null | null | #include "Utilization.h"
#include "linux_parser.h"
#include <vector>
#include <thread>
#include <chrono>
long Utilization::Jiffies() const {
return LinuxParser::Jiffies();
}
long Utilization::IdleJiffies() const {
return LinuxParser::IdleJiffies();
}
void Utilization::setCachedActiveJiffies(long activeJif... | 20.967742 | 62 | 0.76 | mansonjones |
76db8866e4ef3b62abd03eb7c6d2101f35333389 | 19,878 | cpp | C++ | src/UserMenu.cpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | src/UserMenu.cpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | src/UserMenu.cpp | gryffyn/USW20_P2 | bfad201375a6388453b5b03633a12b5bba45c141 | [
"MIT"
] | null | null | null | //
// Created by gryffyn on 10/03/2020.
//
#include "UserMenu.hpp"
#include <mhash.h>
#include <Admin.hpp>
#include <DataTools.hpp>
#include <Lecturer.hpp>
#include <Student.hpp>
#include <User.hpp>
#include <boost/algorithm/string.hpp>
#include <ios>
#include <iostream>
#include <limits>
#include <mariadb++/connect... | 36.141818 | 127 | 0.558054 | gryffyn |
76e4bf332ff7106217b8ccef74c531a75e8aa3fa | 377 | hh | C++ | pipeline/include/hooya/pipeline/CountingSemaphore.hh | hooya-network/libhooya | bbc7b0f85b616bdbed99914023a45fe9a9adf2e9 | [
"MIT"
] | 1 | 2021-07-26T06:24:22.000Z | 2021-07-26T06:24:22.000Z | pipeline/include/hooya/pipeline/CountingSemaphore.hh | hooya-network/libhooya | bbc7b0f85b616bdbed99914023a45fe9a9adf2e9 | [
"MIT"
] | 1 | 2021-08-05T03:45:52.000Z | 2021-08-05T03:45:52.000Z | pipeline/include/hooya/pipeline/CountingSemaphore.hh | hooya-network/libhooya | bbc7b0f85b616bdbed99914023a45fe9a9adf2e9 | [
"MIT"
] | null | null | null | #pragma once
#include <cassert>
#include <mutex>
namespace hooya::pipeline {
/**
* A semaphore that counts how many times it has been raised
*/
class CountingSemaphore {
public:
CountingSemaphore();
/**
* Increment the semaphore
*/
void Raise();
/**
* Decrement the semaphore
*/
void Lower();
private:... | 13.464286 | 60 | 0.668435 | hooya-network |
76e64d1c519b3be8a71102594e35a23b1c6a7dec | 10,279 | hxx | C++ | the/lib/common/errors.hxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | the/lib/common/errors.hxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | the/lib/common/errors.hxx | deni64k/the | c9451f03fe690d456bae89ac2d4a9303317dd8cd | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <variant>
#include <utility>
#include "common.hxx"
// #define _GNU_SOURCE
// #define try
// #define catch(...)
// #include <boost/stacktrace.hpp>
// #undef _GNU_SOURCE
// #undef try
// #undef catch
namespace the {
struct Error {
virtual ~Error();
virtual void What(std::ostream &os) const ... | 32.222571 | 99 | 0.651814 | deni64k |
76e955ca1bbb753640623213e01ccc4e7537ab77 | 980 | cpp | C++ | UVA/UltraQuickSort.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | UVA/UltraQuickSort.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | UVA/UltraQuickSort.cpp | sourav025/algorithms-practices | 987932fe0b995c61fc40d1b5a7da18dce8492752 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string.h>
#include <algorithm>
#include <stdio.h>
using namespace std;
#define MX 500009
#define ll long long
ll tree[MX+7],ar[MX+7],br[MX+7],n;
ll query(ll idx);
void update(ll idx, int x);
int main() {
while(scanf("%lld",&n)==1 && n)
{
memset(tree, 0, sizeof(tre... | 16.896552 | 63 | 0.443878 | sourav025 |
76f10ee3b54fdd34398caa407a9cc96c8ec5322e | 8,764 | cpp | C++ | mr.Sadman/Classes/GameAct/Objects/Tech/Saw.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | mr.Sadman/Classes/GameAct/Objects/Tech/Saw.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | 3 | 2020-12-11T10:01:27.000Z | 2022-02-13T22:12:05.000Z | mr.Sadman/Classes/GameAct/Objects/Tech/Saw.cpp | 1pkg/dump | 0ee579cb6a97ae64d5367cc624b2407d7d4b1c7b | [
"MIT"
] | null | null | null | #include "Director.hpp"
#include "GameAct/Act.hpp"
#include "GameAct/Objects/Factories/ObjectsFactory.hpp"
#include "Saw.hpp"
#include "Resources/Cache/Cache.hpp"
#include <cmath>
namespace GameAct
{
namespace Tech
{
Saw::Saw()
: _decorator( Director::getInstance().getGameAct()->getObjectsFactory()-... | 28.828947 | 112 | 0.637608 | 1pkg |
76f964cabbe329b0e3c09bcdbc775200858ce885 | 2,767 | cpp | C++ | Shader.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | 2 | 2021-07-06T01:01:55.000Z | 2021-07-07T01:30:31.000Z | Shader.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | null | null | null | Shader.cpp | HeckMina/CGI | 976dfe064ec8021ef615354c46ca93637c56b8c6 | [
"MIT"
] | 1 | 2021-03-31T05:36:27.000Z | 2021-03-31T05:36:27.000Z | #include "Shader.h"
#if ALICE_OGL_RENDERER
#include "utils.h"
namespace Alice {
void Shader::Init(const char* vs, const char* fs) {
int nFileSize = 0;
const char* vsCode = (char*)LoadFileContent(vs, nFileSize);
const char* fsCode = (char*)LoadFileContent(fs, nFileSize);
GLuint vsShader = CompileShader(GL_VERTE... | 42.569231 | 121 | 0.738345 | HeckMina |
0a012814f275542a7122359c744a11b78c54fc76 | 5,675 | cpp | C++ | src/cl-utils/str-args.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | src/cl-utils/str-args.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | src/cl-utils/str-args.cpp | codalogic/cl-utils | 996452272d4c09b8df7928abdaea75b0e786a244 | [
"BSD-3-Clause"
] | null | null | null | //----------------------------------------------------------------------------
// Copyright (c) 2016, Codalogic Ltd (http://www.codalogic.com)
// All rights reserved.
//
// The license for this file is based on the BSD-3-Clause license
// (http://www.opensource.org/licenses/BSD-3-Clause).
//
// Redistribution and use i... | 32.614943 | 127 | 0.597181 | codalogic |
0a023ff0a7846fabea47bb9f8bbce6955f1a5ffc | 734 | hpp | C++ | libs/options/include/fcppt/options/base_unique_ptr_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/include/fcppt/options/base_unique_ptr_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | libs/options/include/fcppt/options/base_unique_ptr_fwd.hpp | pmiddend/fcppt | 9f437acbb10258e6df6982a550213a05815eb2be | [
"BSL-1.0"
] | null | null | null | // Copyright Carl Philipp Reh 2009 - 2018.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef FCPPT_OPTIONS_BASE_UNIQUE_PTR_FWD_HPP_INCLUDED
#define FCPPT_OPTIONS_BASE_UNIQUE_PTR_FWD_H... | 17.47619 | 80 | 0.741144 | pmiddend |
0a117fdeca03b2c8e3f53053fbe68a19b9187031 | 8,533 | cpp | C++ | 008_social_distancing.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | 008_social_distancing.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | 008_social_distancing.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | /*
CODE SAMPLE # 008: Social Distancing
This code sample allows users to check if the distance between two people is within a limit or not.
>>>>>> Compile this code using the following command....
g++ 008_social_distancing.cpp /usr/src/tensorrt/bin/common/logger.o ../lib/libPAL.so ../lib/libPAL_CAMERA... | 30.475 | 471 | 0.677253 | DreamVu |
0a119fc12cfcae022b721e0096cda6eac2b5ab21 | 1,470 | cpp | C++ | Rush/Platform.cpp | kayru/librush | 70fe4af6c8a635f4eac6ab20dbc1f251d299dc3a | [
"MIT"
] | 49 | 2015-01-18T17:24:44.000Z | 2022-03-31T01:31:38.000Z | Rush/Platform.cpp | kayru/librush | 70fe4af6c8a635f4eac6ab20dbc1f251d299dc3a | [
"MIT"
] | null | null | null | Rush/Platform.cpp | kayru/librush | 70fe4af6c8a635f4eac6ab20dbc1f251d299dc3a | [
"MIT"
] | 4 | 2015-05-22T21:22:18.000Z | 2019-07-31T23:18:04.000Z | #include "Platform.h"
#include "GfxDevice.h"
#include "UtilLog.h"
#include "Window.h"
namespace Rush
{
Window* g_mainWindow = nullptr;
GfxDevice* g_mainGfxDevice = nullptr;
GfxContext* g_mainGfxContext = nullptr;
void Platform_Startup(const AppConfig& cfg)
{
RUSH_ASSERT(g_mainWindow == nullptr);
RUSH_ASS... | 18.846154 | 56 | 0.734694 | kayru |
0a13d15d930cc8b2f5140ad360b68e166490c565 | 1,594 | cpp | C++ | Chapter02/vector_access_fast_or_safe.cpp | raakasf/Cpp17-STL-Cookbook | bf889164c515094d37f18023af48fe86fcbb1824 | [
"MIT"
] | 480 | 2017-06-29T14:58:34.000Z | 2022-03-29T03:22:49.000Z | Chapter02/vector_access_fast_or_safe.cpp | raakasf/Cpp17-STL-Cookbook | bf889164c515094d37f18023af48fe86fcbb1824 | [
"MIT"
] | 10 | 2017-09-06T10:33:38.000Z | 2021-05-31T11:54:23.000Z | Chapter02/vector_access_fast_or_safe.cpp | raakasf/Cpp17-STL-Cookbook | bf889164c515094d37f18023af48fe86fcbb1824 | [
"MIT"
] | 133 | 2017-07-04T01:55:22.000Z | 2022-03-20T12:44:54.000Z | #include <iostream>
#include <vector>
#include <array>
#include <numeric> // for std::iota
int main()
{
constexpr size_t container_size {1000};
#if 0
std::vector<int> v (container_size);
// Fill the vector with rising numbers
std::iota(std::begin(v), std::end(v), 0);
// Chances are, that the fol... | 27.964912 | 71 | 0.55207 | raakasf |
0a168dcda9d9249f937af3534e479e275c1f2bfb | 2,429 | cpp | C++ | test/testjson.cpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | test/testjson.cpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | test/testjson.cpp | StuffByDavid/Base | d37713fcf48655cb49032c576a1586c135e2e83d | [
"MIT"
] | null | null | null | #include "test.hpp"
#include "file/json.hpp"
#include "util/timer.hpp"
void Base::TestApp::testJSON()
{
cout << "testJSON" << endl;
// Loading and saving
try
{
Timer t1("JSON load");
JsonFile jf(((TextFile*)resHandler->get("hello.json"))->getText());
t1.stopAndPrint();
... | 32.824324 | 106 | 0.515438 | StuffByDavid |
0a174cfa21c3f4ce6d344c80a5f79f8b13fc4911 | 2,179 | cpp | C++ | kernel/archive/vga_text_buffer.cpp | drali/danos | 874438cf8c3331baaa3e6250fbadcbeaf240d75e | [
"MIT"
] | null | null | null | kernel/archive/vga_text_buffer.cpp | drali/danos | 874438cf8c3331baaa3e6250fbadcbeaf240d75e | [
"MIT"
] | null | null | null | kernel/archive/vga_text_buffer.cpp | drali/danos | 874438cf8c3331baaa3e6250fbadcbeaf240d75e | [
"MIT"
] | null | null | null | #include "vga_text_buffer.h"
#include "kernel/io.h"
#include "core/types.h"
namespace danos {
VgaTextBuffer::VgaTextBuffer(const VgaColor background, const VgaColor foreground) {
this->Clear();
this->SetColors(background, foreground);
this->UpdateCursor();
}
void VgaTextBuffer::UpdateCursor() const {
... | 26.901235 | 117 | 0.57687 | drali |
0a1a92656c83521198200ea0471eb3cf9e33d76e | 15,622 | cpp | C++ | project/Harman_T500/testform.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | project/Harman_T500/testform.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | project/Harman_T500/testform.cpp | happyrabbit456/Qt5_dev | 1812df2f04d4b6d24eaf0195ae25d4c67d4f3da2 | [
"MIT"
] | null | null | null | #include "testform.h"
#include "ui_testform.h"
#include "mainwindow.h"
TestForm::TestForm(QWidget *parent) :
QWidget(parent),
ui(new Ui::TestForm)
{
ui->setupUi(this);
m_mapString.insert(1,tr("Please set the parameters, then click Test button, the test can begin to go. "));
resetTestHandle();
... | 32.545833 | 144 | 0.588657 | happyrabbit456 |
0a1acd486ffe2573706c39d2cc80b8c72acee621 | 307 | cpp | C++ | examples/example1.cpp | Lallapallooza/YACL | 4f2d56b5aef835e3da9aacf018e63f1a41316df7 | [
"MIT"
] | 11 | 2018-08-19T00:07:12.000Z | 2021-01-08T05:28:11.000Z | examples/example1.cpp | Lallapallooza/YACL | 4f2d56b5aef835e3da9aacf018e63f1a41316df7 | [
"MIT"
] | null | null | null | examples/example1.cpp | Lallapallooza/YACL | 4f2d56b5aef835e3da9aacf018e63f1a41316df7 | [
"MIT"
] | 2 | 2018-08-19T08:01:33.000Z | 2018-08-22T15:50:18.000Z | #include <iostream>
#include <YACL/config.h>
// CONFIG_PATH setted in CMakeLists.txt
const std::string config_path = CONFIG_PATH;
int main() {
const yacl::SettingsUniquePtr root =
yacl::Config::parseConfigFromFile(config_path + "/example.yacl");
yacl::Config::printConfig(*root);
return 0;
}
| 19.1875 | 69 | 0.71987 | Lallapallooza |
0a1f81157651a74e62edf4e74d91cc04a20d0d72 | 2,872 | cpp | C++ | test/core/test_read_integrator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 12 | 2017-02-01T08:28:38.000Z | 2018-08-25T15:47:51.000Z | test/core/test_read_integrator.cpp | Mjolnir-MD/Mjolnir | 043df4080720837042c6b67a5495ecae198bc2b3 | [
"MIT"
] | 60 | 2019-01-14T08:11:33.000Z | 2021-07-29T08:26:36.000Z | test/core/test_read_integrator.cpp | yutakasi634/Mjolnir | ab7a29a47f994111e8b889311c44487463f02116 | [
"MIT"
] | 8 | 2019-01-13T11:03:31.000Z | 2021-08-01T11:38:00.000Z | #define BOOST_TEST_MODULE "test_read_integrator"
#ifdef BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#else
#include <boost/test/included/unit_test.hpp>
#endif
#include <mjolnir/core/BoundaryCondition.hpp>
#include <mjolnir/core/SimulatorTraits.hpp>
#include <mjolnir/input/read_integrator.hpp>
BOOST_AUTO_TE... | 35.45679 | 90 | 0.654596 | yutakasi634 |
0a23228e4cbe1410a64afc44bf67c9fddb7a7b97 | 5,364 | hpp | C++ | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | ProMini_Slave/include/ArduinoNano_Iic.hpp | RafaelReyesCarmona/DucoCluster | 755fa6ab57129afdc65050514e654660a6b9e8eb | [
"MIT"
] | null | null | null | /*
* Project: DuinoCoinRig
* File: ArduinoNano_Iic
* Version: 0.2
* Purpose: Communication with the master
* Author: Frank Niggemann
*/
/***********************************************************************************************************************
* Code Iic
*************************************... | 28.531915 | 120 | 0.634787 | RafaelReyesCarmona |
0a2426fc10dd21a7083989c1545325e579e1a868 | 153 | cpp | C++ | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | null | null | null | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | 2 | 2020-07-17T20:01:46.000Z | 2020-07-17T20:01:54.000Z | src/La Trop/map/map.cpp | branchwelder/SoftSysHedonisticHibiscus | c6c652191bb10fcbf2e6f990de84fa9a9211f459 | [
"MIT"
] | null | null | null | //
// map.cpp
// La Trop
//
// Created by Sam Myers on 4/24/17.
// Copyright © 2017 Hedonistic Hibiscus. All rights reserved.
//
#include "map.hpp"
| 15.3 | 62 | 0.633987 | branchwelder |
0a251785a9c469357a6cd7c1c93f59e78f6e22d1 | 243 | hpp | C++ | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | 1 | 2015-11-29T04:47:29.000Z | 2015-11-29T04:47:29.000Z | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | null | null | null | TemplateRPG/Items/special/other_items.hpp | davideberdin/Text-Turn-based-RPG-Template | 3b1e88b6498b7473b3928e7188157a7d7f1ba844 | [
"MIT"
] | null | null | null | //
// other_items.hpp
// TemplateRPG
//
// Created by Davide Berdin on 28/11/15.
// Copyright © 2015 Davide Berdin. All rights reserved.
//
#ifndef other_items_hpp
#define other_items_hpp
#include <stdio.h>
#endif /* other_items_hpp */
| 16.2 | 56 | 0.703704 | davideberdin |
0a2da9b4c2cc96a78f94d4e4b641a652457f26c5 | 8,737 | cpp | C++ | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | src/raytracer/misc/Computations.cpp | extramask93/RayTracer | ba7f46fb212971e47b296991a7a7e981fef50dda | [
"Unlicense"
] | null | null | null | //
// Created by damian on 10.07.2020.
//
#include "Computations.h"
#include <intersections/Intersections.h>
#include <thread>
#include <iostream>
#include <misc/Shader.h>
namespace rt {
Computations prepareComputations(const Intersection &i, const Ray &ray,const rt::Intersections &intersections){
(void)intersection... | 33.996109 | 119 | 0.643241 | extramask93 |
0a2e17982d67e6ab4bd9078d49fc7f981caa8c63 | 2,753 | cxx | C++ | vtk/8.1.0/src/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | Fresher-Chen/tarsim | 9d2ec1001ee82ca11325e4b1edb8f2843e36518b | [
"Apache-2.0"
] | 1 | 2020-03-02T17:31:48.000Z | 2020-03-02T17:31:48.000Z | vtk/8.1.0/src/ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | Fresher-Chen/tarsim | 9d2ec1001ee82ca11325e4b1edb8f2843e36518b | [
"Apache-2.0"
] | 1 | 2019-06-03T17:04:59.000Z | 2019-06-05T15:13:28.000Z | ThirdParty/vtkm/vtk-m/vtkm/cont/testing/UnitTestRuntimeDeviceInformation.cxx | metux/vtk8 | 77f907913f20295e1eacdb3aba9ed72e2b3ae917 | [
"BSD-3-Clause"
] | 1 | 2020-07-20T06:43:49.000Z | 2020-07-20T06:43:49.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
// PURPOSE... | 31.284091 | 93 | 0.6996 | Fresher-Chen |
0a432c95eaa8f35a40257072c7e15d9a4f7280d2 | 808 | hpp | C++ | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | 1 | 2019-03-19T03:14:22.000Z | 2019-03-19T03:14:22.000Z | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | 11 | 2015-01-27T17:35:12.000Z | 2018-08-13T07:48:35.000Z | lib/world/map.hpp | julienlopez/QCityBuilder | fe61a56bcdeda301211d49a9e358258eefafa14c | [
"MIT"
] | null | null | null | #ifndef MAP_HPP
#define MAP_HPP
#include "namespace_world.hpp"
#include <utils/array2d.hpp>
#include <utils/rect.hpp>
BEGIN_NAMESPACE_WORLD
class Map
{
public:
enum class SquareType : unsigned char
{
Empty = 0,
Building,
Road
};
using square_container_t = std::vector<utils::... | 17.565217 | 58 | 0.683168 | julienlopez |
0a46dbeb7021722dceacef81b50700c9116d9984 | 574 | hh | C++ | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 19 | 2018-04-23T09:30:48.000Z | 2022-03-06T21:35:18.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 22 | 2017-11-27T23:39:25.000Z | 2019-08-09T08:56:57.000Z | src/Zynga/Framework/StorableObject/V1/Test/Mock/ValidNestedMap.hh | chintan-j-patel/zynga-hacklang-framework | d9893b8873e3c8c7223772fd3c94d2531760172a | [
"MIT"
] | 28 | 2017-11-16T20:53:56.000Z | 2021-01-04T11:13:17.000Z | <?hh // strict
namespace Zynga\Framework\StorableObject\V1\Test\Mock;
use Zynga\Framework\Type\V1\StringBox;
use Zynga\Framework\StorableObject\V1\Base as StorableObjectBase;
use Zynga\Framework\StorableObject\V1\StorableMap;
use Zynga\Framework\StorableObject\V1\Test\Mock\Valid;
class ValidNestedMap extends Stora... | 22.076923 | 65 | 0.763066 | chintan-j-patel |
0a49edde0124a86c6ca945d3368947d26b181ae1 | 2,568 | cpp | C++ | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | SJF Scheduling.cpp | Anikcb/Operating-System | 3a39e86686fa24bfa72b56d5061c3c177a635863 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int burst_time[100];
int arrival_time[100];
int waiting_time[100];
int turnaround_time[100];
vector<int>v;
void space_fun(int num)
{
for(int i=1;i<=num;i++)cout<<" ";
}
int check(int st)
{
int mn=1e5,pos=-1,mn_arr=1e5,result;
for(int i=0;i<(int)... | 25.68 | 120 | 0.528816 | Anikcb |
0a4aef98c14edfb926ac99bf26b4209e22e0115f | 1,089 | cpp | C++ | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | src/ReadWrite/WriteImage.cpp | pateldeev/cs474 | 4aeb7c6a5317256e9e1f517d614a83b5b52f9f52 | [
"Xnet",
"X11"
] | null | null | null | #include <iostream>
#include <fstream>
#include "Image.h"
#include "ReadWrite.h"
int writeImage(const char fname[], const ImageType & image) {
int i, j;
int N, M, Q;
unsigned char * charImage;
std::ofstream ofp;
image.getImageInfo(N, M, Q);
charImage = (unsigned char *) new unsigned char [M... | 20.54717 | 86 | 0.513315 | pateldeev |
0a4ca286a8b0ca0c1b4f8da01c1c36ff51cf413b | 4,883 | cpp | C++ | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/minisef/networksystem/networkserver.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//===========================================================================//
#include "networkserver.h"
#include "networksystem.h"
#include "icvar.h"
#include "filesystem.h"
#include "UDP_Socket.h"
#include "sm_protocol... | 21.702222 | 121 | 0.632808 | cstom4994 |
0a4cb9edec566a07e3e86a91be221479c3978078 | 2,677 | cpp | C++ | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.9.27/Luogu1295.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
#define lson (now<<1)
#define rson (lson|1)
const int maxN=201000;
const int inf=2147483647;
const ll INF=1e17;
class SegmentData
{
public... | 22.123967 | 74 | 0.605902 | SYCstudio |
aeaa8fe0a1f9ad2666609dc10d64678dacd55ecc | 1,682 | hpp | C++ | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2017-05-12T10:12:41.000Z | 2017-05-12T10:12:41.000Z | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | null | null | null | app/GUI/widgetPacks/CraftingWindow.hpp | isonil/Survival | ecb59af9fcbb35b9c28fd4fe29a4628f046165c8 | [
"MIT"
] | 1 | 2019-01-09T04:05:36.000Z | 2019-01-09T04:05:36.000Z | #ifndef APP_CRAFTING_WINDOW_HPP
#define APP_CRAFTING_WINDOW_HPP
#include "engine/util/Vec2.hpp"
#include <vector>
namespace engine { namespace GUI { class Window; class Button; class RectWidget; class Image; class Label; } }
namespace app
{
class Character;
class Structure;
class CraftingWindow
{
public:
Craf... | 26.28125 | 111 | 0.706302 | isonil |
aead11d0a4d5056f721fdf7cd09985ff74eac382 | 14,040 | cpp | C++ | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | src/crl_camera/CRLPhysicalCamera.cpp | M-Gjerde/MultiSense | 921a1a62757a4831bd51b2659e2bff670641d962 | [
"MIT"
] | null | null | null | //
// Created by magnus on 3/1/22.
//
#include <thread>
#include <bitset>
#include "CRLPhysicalCamera.h"
#include <iostream>
bool CRLPhysicalCamera::connect(const std::string& ip) {
if (cameraInterface == nullptr) {
cameraInterface = crl::multisense::Channel::Create(ip);
if (cameraInterface != nu... | 39.327731 | 147 | 0.664245 | M-Gjerde |
aebb08a2b4518fcfd7b6e94719f4b0c2bad58865 | 2,306 | cpp | C++ | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | src/Telnet/CmdLineRegistry.cpp | vinthewrench/FooServer | 1e00a80df41235d29c6402cb8ae4d1f7bbbe07a6 | [
"MIT"
] | null | null | null | //
// CmdLineRegistry.cpp
//
// Created by Vincent Moscaritolo on 4/6/21.
//
#include <sstream>
#include <iostream>
#include <iomanip>
#include "CmdLineRegistry.hpp"
#include "CmdLineHelp.hpp"
CmdLineRegistry *CmdLineRegistry::sharedInstance = 0;
CmdLineRegistry::CmdLineRegistry(){
_commandMap.clear();
}
CmdLin... | 20.589286 | 83 | 0.654814 | vinthewrench |
aebecd48c6f11466a99c5486da998a4bdeac832e | 1,755 | cpp | C++ | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | 8 | 2019-12-29T17:17:00.000Z | 2020-02-07T08:08:01.000Z | NYP_Framework_Week08_SOLUTION/Base/Source/SceneGraph/UpdateTransformation.cpp | KianMarvi/Assignment | 8133acec4dd65bc49316aec8deb3961035bdef27 | [
"MIT"
] | null | null | null | #include "UpdateTransformation.h"
CUpdateTransformation::CUpdateTransformation()
: curSteps(0)
, deltaSteps(1)
, minSteps(0)
, maxSteps(0)
{
Update_Mtx.SetToIdentity();
Update_Mtx_REVERSED.SetToIdentity();
}
CUpdateTransformation::~CUpdateTransformation()
{
}
// Reset the transformation matrix to identity ma... | 23.4 | 106 | 0.756695 | KianMarvi |
aec2cd8d25f33e6972d435b5b4c5d2b0780563a9 | 43,881 | cpp | C++ | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | 1 | 2022-03-22T15:16:56.000Z | 2022-03-22T15:16:56.000Z | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | ycsb-bench/FPTree/fptree.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Simon Fraser University. All rights reserved.
// Licensed under the MIT license.
//
// Authors:
// George He <georgeh@sfu.ca>
// Duo Lu <luduol@sfu.ca>
// Tianzheng Wang <tzwang@sfu.ca>
#include "fptree.h"
#ifdef PMEM
inline bool file_pool_exists(const std::string& name)
{
return ( a... | 33.471396 | 131 | 0.548825 | mkatsa |
aec41824da20a509025fbe466e62fd40970fc2aa | 3,221 | cc | C++ | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 99 | 2020-06-09T05:52:44.000Z | 2022-03-08T06:06:55.000Z | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 35 | 2020-06-09T15:00:26.000Z | 2022-03-15T10:22:32.000Z | driver/mmio/coherent_allocator.cc | ghollingworth/libedgetpu | d37e668cd9ef0e657b9e4e413df53f370532e87e | [
"Apache-2.0"
] | 23 | 2020-06-09T14:50:54.000Z | 2022-03-15T11:18:16.000Z | // Copyright 2019 Google LLC
//
// 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 w... | 29.281818 | 79 | 0.737659 | ghollingworth |
aec4fa5f013ce3542d2a8234f7c2c087f2eb5e70 | 15,288 | cpp | C++ | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | ess/src/v20201111/model/FlowCreateApprover.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 30.273267 | 157 | 0.699241 | suluner |
aec6d145325c12f73507b85aeee31a2a9738846e | 1,330 | cpp | C++ | machine-learning/small-tasks/f-score.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | machine-learning/small-tasks/f-score.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | machine-learning/small-tasks/f-score.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <iostream>
#include <iomanip>
long double harmonic_mean(long double a, long double b) {
return a + b == 0 ? 0 : 2 * a * b / (a + b);
}
int main() {
size_t size;
std::cin >> size;
unsigned int sum = 0;
unsigned int column[size] = {};
unsigned int row[size] = {};
unsigned int trac... | 25.09434 | 86 | 0.502256 | nothingelsematters |
aec923f14b582423c7c0faad661e1a3bfc8b1fa1 | 1,792 | tpp | C++ | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/algorithms/reachability/contexts/ContextFactory.tpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "ContextFactory.h"
namespace hypro {
template <typename State>
IContext* ContextFactory<State>::createContext( const std::shared_ptr<Task<State>>& t,
const Strategy<State>& strat,
WorkQueue<std::shared_ptr<Task<State>>>* localQueue,
WorkQueue<std::shared_ptr<Task<State>>>* ... | 54.30303 | 157 | 0.719866 | hypro |
aed30bdabeeb57f2d1140cbb35e0babf9f062166 | 6,273 | cxx | C++ | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 3 | 2020-08-03T08:52:20.000Z | 2021-04-10T11:55:49.000Z | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | null | null | null | xp_comm_proj/rd_dbase/dbfhdr.cxx | avs/express-community | c699a68330d3b678b7e6bcea823e0891b874049c | [
"Apache-2.0"
] | 1 | 2021-06-08T18:16:45.000Z | 2021-06-08T18:16:45.000Z | //
// This file contains the source code for the dBASE file header object.
// This object provides utilities to read and manage a dBASE (dbf)
// header record.
//
#include <stdio.h>
#ifdef MSDOS
#include <basetsd.h>
#endif
#include "dbfhdr.h"
#include "gsbyteu.h"
static DBF_ByteUtil_c ByteUtil; // used to... | 23.671698 | 85 | 0.65774 | avs |
aed5f87bd00067fe657b6c61aee8dda14c13eb09 | 1,015 | cpp | C++ | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | src/console/src/console_gear.cpp | RoyAwesome/raoe | d9350cf50bb2cd1d313df2944fb6a48354142ae8 | [
"MIT"
] | null | null | null | /*
Copyright 2022 Roy Awesome's Open Engine (RAOE)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law o... | 30.757576 | 87 | 0.722167 | RoyAwesome |
aee05ae09abe8b68c650c5bfbaabeeeed0e20759 | 130 | hpp | C++ | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-02-18T06:12:13.000Z | 2021-02-18T06:12:13.000Z | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:08:30.000Z | 2021-08-28T14:09:32.000Z | include/git.hpp | fcharlie/git-analyze-sync | 1c974ac4b6f695c01ee666aff60d7817f6c0acaf | [
"MIT"
] | 1 | 2021-08-28T14:00:29.000Z | 2021-08-28T14:00:29.000Z | //// GIT BASE HEAD
#ifndef AZE_GIT_BASE_HPP
#define AZE_GIT_BASE_HPP
#include "details/git.hpp"
#include "details/git.ipp"
#endif
| 18.571429 | 26 | 0.769231 | fcharlie |
aee119ebe9faf08b7fb22f61ba2d49e1ba1003ba | 715 | cpp | C++ | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | SPOJ/NSTEPS(Adhoc maths).cpp | abusomani/DS-Algo | b81b592b4ccb6c1c8a1c5275f1411ba4e91977ba | [
"Unlicense"
] | null | null | null | //Sometimes I feel like giving up, then I remember I have a lot of motherfuckers to prove wrong!
//@BEGIN OF SOURCE CODE ( By Abhishek Somani)
#include <bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
typedef long long ll;
ll MOD = 1000000007;
int main()
{
f... | 23.833333 | 96 | 0.562238 | abusomani |
aee92e6a1097cae65f1cdf7bd7db8e938d768b2c | 10,040 | cpp | C++ | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 2 | 2020-09-13T20:38:14.000Z | 2020-09-13T20:38:23.000Z | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | 1 | 2021-01-10T13:39:51.000Z | 2021-01-12T10:50:56.000Z | glscene/source/ResourceRef.cpp | Morozov-5F/glsdk | bff2b5074681bf3d2c438216e612d8a0ed80cead | [
"MIT"
] | null | null | null |
#include "pch.h"
#include <glload/gl_all.hpp>
#include "glscene/ResourceRef.h"
#include "ResourceData.h"
namespace glscene
{
std::string ResourceMultiplyDefinedException::GetErrorName(
const std::string &resourceId, const std::string &resourceType )
{
return std::string("The resourceId '") + resource... | 36.245487 | 127 | 0.735159 | Morozov-5F |
aef187e33dbf7062d00aa0bb3907cf9eb6e92098 | 667 | cpp | C++ | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | c++_for_programmers/01_basics/3_enums.cpp | Joy110900/cpp | 3d8c582d5b1d3af47d44ae3cef2f6015e272f287 | [
"MIT"
] | null | null | null | /*Enum example*/
/*
Enum is a user defined datatype which is initialised as below.
*/
#include <iostream>
using namespace std;
int main()
{
//define MONTHS as having 12 possible values
enum MONTH {Jan, Feb, Mar, Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec}; // Jan is assigned 0, Feb is assigned 1 and so on.
... | 23 | 122 | 0.646177 | Joy110900 |
aef288d79580780fb962856320b1fb494d05d53f | 12,516 | cpp | C++ | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | BulletLeague3D/ModulePlayer.cpp | AaronGCProg/RacingBullet3D | d64b852b3b6eb53c1285d4e49746f842645e721a | [
"MIT"
] | null | null | null | #include "Globals.h"
#include "Application.h"
#include "ModulePlayer.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "ModuleSceneIntro.h"
ModulePlayer::ModulePlayer(Application* app, bool start_enabled, int playerNum) : Module(app, start_enabled), vehicle(NULL), playerNum(playerNum)
{
turn = acceleration =... | 25.336032 | 145 | 0.669942 | AaronGCProg |
aef9ece3a8db2a41fdfd31d983bd33449d35f811 | 2,009 | hpp | C++ | include/GDE/Core/CoreTypes.hpp | genbetadev/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 3 | 2016-05-04T23:36:27.000Z | 2021-05-02T06:46:50.000Z | include/GDE/Core/CoreTypes.hpp | fordream/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 3 | 2015-01-13T22:45:29.000Z | 2019-03-07T16:35:37.000Z | include/GDE/Core/CoreTypes.hpp | fordream/Genbeta-Dev-Engine | 1bda1f92a927c7657df7fcc6460474c9ef8ac9cd | [
"MIT"
] | 4 | 2015-01-16T14:41:41.000Z | 2020-04-21T21:12:19.000Z | #ifndef GDE_CORE_TYPES_HPP
#define GDE_CORE_TYPES_HPP
#include <map>
#include <string>
namespace GDE
{
// Fowards Declarations
class App;
class Scene;
class SceneManager;
class ConfigReader;
class ConfigCreate;
/// Nivel o tipo de Log
enum LogLevel
{
Debug = 0,
Info = 1,
Warning = 2,
Error = 3
};
/// Enumara... | 25.1125 | 83 | 0.708313 | genbetadev |
4e07ffded9aab7c634229dcf72f6f1acfc7061d6 | 403 | cpp | C++ | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | 5 | 2021-11-25T10:53:24.000Z | 2022-03-31T08:17:45.000Z | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | Applications/calculator/main.cpp | Butterzz1288/ButterOS | 4faee625eba83bd22bc8d180e0c4136f543c3404 | [
"BSD-2-Clause"
] | null | null | null | #include <Lemon/GUI/Window.h>
#include <Lemon/GUI/Messagebox.h>
#include <Lemon/System/Spawn.h>
Lemon::GUI::Window* window;
window = new Lemon::GUI::Window("Addition", {600, 348}, WINDOW_FLAGS_RESIZABLE, Lemon::GUI::WindowType::GUI);
box = new Lemon::GUI::textInput("Input 1")
box = new Lemon::GUI::textInput("Input 2"... | 36.636364 | 109 | 0.702233 | Butterzz1288 |
4e0e0a55682db38fc988fc71a7b830d5ba500dd4 | 9,786 | cpp | C++ | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 7 | 2018-03-10T02:01:49.000Z | 2021-09-14T15:42:10.000Z | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | null | null | null | speedcc/lua-support/src/native/SCLuaRegisterSCDateTimeDate.cpp | kevinwu1024/SpeedCC | 7b32e3444236d8aebf8198ebc3fede8faf201dee | [
"MIT"
] | 1 | 2018-03-10T02:01:58.000Z | 2018-03-10T02:01:58.000Z | /****************************************************************************
Copyright (c) 2017-2020 Kevin Wu (Wu Feng)
github: http://github.com/kevinwu1024
Licensed under the MIT License (the "License"); you may not use this file except
in compliance with the License. You may obtain a copy of the License a... | 28.614035 | 114 | 0.747394 | kevinwu1024 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.