blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M โ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 โ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 โ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5bb52aee875844399060c4d038bf15e40cdfb984 | ec9452c4b59a23589d45c1324b9d0a488b1b73dc | /CommProto/include/CommProto/network/network_graph/network_graph_builder.h | b6b6de2faa6423de81853b31b71860e0bbc839dc | [] | no_license | NGCP/CommProtocol | 107767c40c4a2e0e84857295c922effd054c5a58 | b48217a893cf93cc637c6fa34dc77998a390388b | refs/heads/Dev-2018 | 2021-01-13T10:57:29.664094 | 2019-02-28T05:06:41 | 2019-02-28T05:06:41 | 72,263,319 | 1 | 5 | null | 2018-06-05T06:37:50 | 2016-10-29T03:42:54 | C++ | UTF-8 | C++ | false | false | 286 | h | network_graph_builder.h | /**
*/
#ifndef __COMMPROTOCOL_NETWORK_GRAPH_BUILDER_H
#define __COMMPROTOCOL_NETWORK_GRAPH_BUILDER_H
#include <CommProto/network/network_graph/algorithms/algorithms.h>
namespace comnet {
namespace network {
} // network
} // comnet
#endif // __COMMPROTOCOL_NETWORK_GRAPH_BUILDER_H |
1cd7334a00954807463cc54e59412dafae0f3741 | 69e6c82c848156f8426797767304aa42c6849d35 | /minCostPaintingHouse.cpp | 39930bc396d4a4f69cd0223f74733f6eea714899 | [] | no_license | dalanlan/algo | cea8d79e914f3e973d4ac256e9bb1eaf2a12925c | 94e85d1e1a79646c44f09c58096584b2521628b9 | refs/heads/master | 2020-04-05T18:57:33.051988 | 2016-10-18T08:06:57 | 2016-10-18T08:06:57 | 38,982,619 | 0 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,056 | cpp | minCostPaintingHouse.cpp |
/*
Painting house: Facebook interview
There are a row of houses, each house can be painted with three colors,
red, blue and green. The cost of painting each house with a certain color
is different. You have to paint all the houses such that no two adjacent
houses have the same color. You have to paint the houses with... |
87ea4583a5686822940786abea6fde800cdd80ba | 0950668c5e12460782b4ad672228cd811af29d94 | /src/ENDFtk/TabulationRecord/src/verifyVectorSizes.hpp | cac09a2b77c0d22099f8e08b5846aad955628ec4 | [
"BSD-2-Clause"
] | permissive | njoy/ENDFtk | 2b8cbe35ebf349b07db6f677967e07b1f64fc4ae | eb505f152c9e1260576d08643dae55e1dde330cd | refs/heads/master | 2023-08-09T13:23:47.910869 | 2023-03-30T12:48:36 | 2023-03-30T12:48:36 | 61,145,680 | 26 | 6 | NOASSERTION | 2023-09-07T21:58:52 | 2016-06-14T18:17:43 | C++ | UTF-8 | C++ | false | false | 493 | hpp | verifyVectorSizes.hpp | static void
verifyVectorSizes( const std::vector< double >& xValues,
const std::vector< double >& yValues ) {
const bool mismatchedEvaluationVectorLengths =
( xValues.size() != yValues.size() );
if ( mismatchedEvaluationVectorLengths ) {
Log::error( "Mismatched evaluation pair vector... |
70176f9899b2b4dbd0c8ec2f6c48af89b56dbcae | 9f51606f24146950e0858491163e11446035ba12 | /Controllers/AuraSMBusController/AuraSMBusController.h | e2151c73755a7fb49b136609419be81be34ec918 | [] | no_license | hko0451/OpenSourceSWIntroductionProject | 9366d7aaedfef26fbbd1cb4d326655ff70972f40 | 5a435eb6e7db64f5ae5bc15deabf8405d1174ac8 | refs/heads/main | 2023-05-08T23:35:00.496239 | 2021-06-01T12:22:06 | 2021-06-01T12:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,979 | h | AuraSMBusController.h | /*
* AuraSMBusContoller.h
* ASUS Aura RGB lighting ์ปจํธ๋กค๋ฌ์ ๋ํ ์ ์์ ํ์
*/
#include <string>
#include "i2c_smbus.h"
#pragma once
typedef unsigned char aura_dev_id;
typedef unsigned short aura_register;
#define AURA_APPLY_VAL 0x01 // Apply Change ๋ ์ง์คํฐ
enum
{
AURA_REG_DEVICE_NAME = 0x1... |
5f8aecea9a868364a0c58b57b964f1360a70dacf | 424823cca73a825a8929b30403e781e5fb63c010 | /kickstart-practice/C.cpp | 171af44cd09953285034f922b32f0f65aea6136e | [
"MIT"
] | permissive | dyong0/codejam | 2fe237597d440a9f072010cf4821ba2680e62d94 | 436816dc2fc9712bb4b256b4f8786baa0e0b2eb8 | refs/heads/master | 2021-01-19T13:19:51.790904 | 2017-02-19T08:36:14 | 2017-02-19T08:36:14 | 82,386,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | C.cpp | #include "once.hpp"
int L;
int R;
inline void init() {
}
int solve() {
return (min(L, R)*(min(L, R)+1)) / 2;
}
int main() {
init();
int nCases; cin >> nCases;
for (int i=1; i<=nCases; i++) {
//INPUT
cin >> L >> R;
//OUTPUT
cout << "Case #" << i << ": " << solve() <... |
001269697c89a533e7899ee7904cb2446142eb06 | 52ca17dca8c628bbabb0f04504332c8fdac8e7ea | /boost/asio/detail/resolver_service.hpp | f6df0679268c3334aeaf0a5ac114fa14dd36f393 | [] | no_license | qinzuoyan/thirdparty | f610d43fe57133c832579e65ca46e71f1454f5c4 | bba9e68347ad0dbffb6fa350948672babc0fcb50 | refs/heads/master | 2021-01-16T17:47:57.121882 | 2015-04-21T06:59:19 | 2015-04-21T06:59:19 | 33,612,579 | 0 | 0 | null | 2015-04-08T14:39:51 | 2015-04-08T14:39:51 | null | UTF-8 | C++ | false | false | 74 | hpp | resolver_service.hpp | #include "thirdparty/boost_1_58_0/boost/asio/detail/resolver_service.hpp"
|
f180b8097e92ab1ed3302691785b7a31c71d45d5 | 465bb2bc4b6bdaf6b55c4928636d88c9a1a726c0 | /HiDecoder.h | 615e00e0a58ad1b3c87bf84e0ad59fc96accf6a3 | [] | no_license | Spitzbube/hiplayer | 41cb3abe7ca247acb2b992f1dd348675d7f0ecdb | 37bf97abb0b65cff48e5fb90d73eb2e92cf9ed4f | refs/heads/master | 2020-03-25T08:31:54.507553 | 2018-09-01T15:09:54 | 2018-09-01T15:09:54 | 143,617,667 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,996 | h | HiDecoder.h | #pragma once
/*
* Copyright (C) 2005-2013 Team XBMC
* http://xbmc.org
*
* 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, or (at your option)
* any later ver... |
22600892ca50511eb226266330c869ed8ffd0461 | fe6d55233610a0c78cfd63cc25564400982b0a4e | /src/osd/opensubdiv/osd/clPatchTable.cpp | 6fec5b98fe7f591f32872bb023e07916c0123d53 | [
"MIT",
"MIT-0",
"Zlib",
"BSD-3-Clause",
"ISC",
"BSL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | syoyo/tinyusdz | 6cc9c18ec4df61a514571cda8a5f8c3ee4ef279a | cf6e7f3c6428135109c1d66a261e9291b06f4970 | refs/heads/dev | 2023-08-19T06:06:10.594203 | 2023-08-18T12:34:09 | 2023-08-18T12:34:09 | 255,649,890 | 345 | 23 | MIT | 2023-07-14T09:20:59 | 2020-04-14T15:36:33 | C++ | UTF-8 | C++ | false | false | 6,957 | cpp | clPatchTable.cpp | //
// Copyright 2015 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
... |
4f1b4d02ddd8c93b5a4a61df1a4563022b2189ce | 22bb656bb8b2d416cdb5ba5777e76c55b04d9ecb | /include/exchcxx/impl/builtin/kernels/pz81_mod.hpp | 3a681f9ef33b5e879ea4122bb9fed2fc67e9270c | [
"BSD-3-Clause-LBNL",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | ValeevGroup/ExchCXX | 4417cb118343b5739b50f13671c6197875dd2468 | 7a8f7ac8d2e9384706975b8fa02d23770c20aa44 | refs/heads/master | 2023-08-03T19:06:05.033599 | 2021-07-02T18:27:44 | 2021-07-02T18:27:44 | 313,393,907 | 0 | 0 | NOASSERTION | 2021-01-05T15:53:01 | 2020-11-16T18:36:24 | C++ | UTF-8 | C++ | false | false | 12,794 | hpp | pz81_mod.hpp | #pragma once
#include <cmath>
#include <exchcxx/impl/builtin/fwd.hpp>
#include <exchcxx/impl/builtin/constants.hpp>
#include <exchcxx/impl/builtin/kernel_type.hpp>
#include <exchcxx/impl/builtin/util.hpp>
#include <exchcxx/impl/builtin/kernels/screening_interface.hpp>
namespace ExchCXX {
template <>
struct kernel... |
33535a220a753355ea56304aed6bffd161d1b686 | 5993cb1b965b073a23b148d0841c6f441d43bb68 | /xyg-org/xyg-org/trunk/src/fetion.cpp | c5de1d62c3d444344ebb6a5960e53c91506a7d56 | [] | no_license | hygkui/ffsion-cn | 8cf7368608fdf04f0b90c9d1750b1f6c8ddb1ddc | 6b923b861669f66133a05f20f45aee968174a9cc | refs/heads/master | 2021-01-01T05:48:54.255208 | 2008-06-04T09:01:15 | 2008-06-04T09:01:15 | 22,066 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,944 | cpp | fetion.cpp | #include "include/fetion.h"
#include "include/xyg.h"
#include "include/send.h"
#include "include/libxyg.h"
#include <iostream>
#include <vector>
#include <string>
using namespace std;
using namespace xyg;
extern ServiceConnector* SRVCONN;
void fx_register(Transaction &trans) {
static string username("");
stat... |
692c36ffc3e599b88bd972cfc6d2139b18e9a3f6 | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/11_4251_45.cpp | 5a0d98c19a168a279c34d86e979dcce2f0969475 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,957 | cpp | 11_4251_45.cpp | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Robots {
public static Robot orange;
public static Robot blue;
public static int current = 0;
public static int moves = 0;
/**
* @param args
*/
public static void main(String[] args) {
Scanner scn = new Scan... |
30611743a9fed5bb7fd84c274326df9004b810a1 | 836cb834b9de5c74346966317bf2f6c758391c1b | /DistantLands/src/utils/file io/FileIO.h | a0d1f2565bf5f5386692d9e583c80828dacb128c | [] | no_license | Lars-Schneider/DistantLands | aabb1ee599bf686348341b3c6830344efc7af7ae | 241ac3b50c022cc2159513fb6d23320095410d4a | refs/heads/master | 2023-08-10T09:59:31.159124 | 2021-09-13T03:49:28 | 2021-09-13T03:49:28 | 405,521,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 823 | h | FileIO.h | #pragma once
#include <string>
#include <fstream>
#include <stdio.h>
static void WRITE_TO_FILE(std::string file_path, std::string text)
{
std::ofstream file;
file.open(file_path, std::ios::app);
file << text;
file.close();
}
static std::string READ_FROM_FILE(std::string file_path)
{
std::ifstr... |
038e6d2c4e8558abceebd1f6ae93073490b27a62 | 50784ea37f339d86da8417ee741c6767efeddf4a | /ServerF/timeoutmanager.cpp | 268dabfd4ad7079103f9821c1e4a41ca83970e3c | [] | no_license | ehossam/P2P-Image-Sharing | 5d0701765e1e0c38cb74a3261a34fd437773bad7 | da9ac91d4e7ed1d5ce65d42886e17dd972efbfde | refs/heads/master | 2023-01-09T23:20:07.550823 | 2020-11-14T18:47:41 | 2020-11-14T18:47:41 | 312,877,237 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 612 | cpp | timeoutmanager.cpp | #include "timeoutmanager.h"
#include "client.h"
TimeoutManager::TimeoutManager(QObject *parent) : QObject(parent)
{
sessionCheckTimer = new QTimer(this);
QObject::connect(sessionCheckTimer, SIGNAL(timeout()), this, SLOT(checkClientsTimeout()));
}
void TimeoutManager::checkClientsTimeout()
{
for(int i = 0... |
2baf6e14f277054fcc817a7624b867eae2394a45 | bfa638f5455c76a8aba251db229efba0eb0643ca | /chapter16/16_12/BlobPtr.h | 9d6449d3a2ab1be41ea4e77f3fa56688a418939a | [] | no_license | Ain-Crad/Cpp_Primer_Solution | 3c6abfbe5b0c2323a351eb5c633b4484248a0e8a | ba995dd8e612a6bdaecb074af5ec2a2b0f7ba47d | refs/heads/master | 2023-03-29T16:20:11.985983 | 2021-04-05T13:47:10 | 2021-04-05T13:47:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,434 | h | BlobPtr.h | #ifndef _BLOB_PTR_H
#define _BLOB_PTR_H
#include <memory>
#include <string>
#include <vector>
#include "Blob.h"
template <typename T> class BlobPtr {
public:
BlobPtr() : curr(0) {}
BlobPtr(Blob<T> &b, size_t sz = 0) : wptr(b.data), curr(sz) {}
T &operator*() const;
BlobPtr &operator++();
BlobPtr &operato... |
3e10ecb3967171c3fe7f7a75b4f07d8657ae020b | 82198e2706d8544b7f556399982639320fed47d4 | /cpp04/ex01/SuperMutant.cpp | d4961f6664b20c7c946bcc87383293842b3a8024 | [] | no_license | jimi-1337/cpp | 1b7891fbeebc1ed3a6f1a7d7fa4aa61fafbe7f09 | 0c5493e2a3cc380b551ed18f879df674b3b9f782 | refs/heads/main | 2023-02-28T00:04:51.139975 | 2021-02-07T16:26:27 | 2021-02-07T16:26:27 | 326,432,691 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,449 | cpp | SuperMutant.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* SuperMutant.cpp :+: :+: :+: ... |
59f8dd25ccf7dfd6130d417b20bd6c78a3a6430c | 17a53a1c81e34ad5934a8820020d5492d7334f58 | /CS303_Program2/Customer.h | a5c72980e91d89cd24b6c651d5cb56520d4f995f | [] | no_license | cderk6/CS303-Program-2B | 239fb85f4c08f5465e171fb5b4f0da0120cd058b | e23404c4265474e5393815e19a059c0af56cc00c | refs/heads/master | 2021-01-12T12:34:10.344350 | 2016-11-12T01:17:29 | 2016-11-12T01:17:29 | 72,576,033 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,521 | h | Customer.h | #ifndef CUSTOMER_H
#define CUSTOMER_H
#include <algorithm>
#include <string>
#include <vector>
#include "BinarySearchTree.h"
#include "Review.h"
#include "omp.h"
using namespace std;
class Customer
{
public:
//constructor
Customer(int id, string name)
{
ID = id; Name = name; reviews = {}, degrees_of_similarit... |
1e0544f76ab43047f4d2c58dbb012b91164163fa | 7159a8a2096508c480d015f1fb191ce1716dd9f3 | /test_imu_data_filter.cpp | cf873b65dab068ad9b133510c45b7a914dba271f | [] | no_license | HustMrZhang/IMU_Data_Filter_1 | 679a59e34872e542be5a81e81bf723118a9460c8 | 8b6c0e2b7af999d16a4c471d9bed0a443f8fee8d | refs/heads/master | 2020-03-20T19:23:30.607235 | 2018-06-17T07:05:42 | 2018-06-17T07:05:42 | 137,635,846 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 980 | cpp | test_imu_data_filter.cpp | #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#define FILTER_SIZE 10
double filter_mat[FILTER_SIZE];
double filter_data(double fx);
int main()
{
int i;
double data_line[6] = {0.0};
double f_ax;
// filter_mat initialization
for(i=0;i<FILTER_SIZE;i++)
filter_mat[i] = 0.0;
// read data from file
FILE... |
0e9f36a8bb02eba7d73420c5385d9728499d9a00 | 698f95f17785f5b41d02687e38c5225228078acc | /HDU/4433.cpp | ca73f1e932af895d8543e4089162496fa3b07091 | [] | no_license | yanyikai/Code | 7672f9994687721d03b563028574a2dec6584204 | d8dae461a8beb08065b872fb1d21563291aa3cff | refs/heads/master | 2021-10-11T10:24:06.748148 | 2021-10-04T11:34:16 | 2021-10-04T11:34:16 | 139,777,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cpp | 4433.cpp | #include<cstdio>
#include<cstring>
using namespace std;
char s[1005],t[1005];
int dp[1005][10][10];
int main()
{
for(;~scanf("%s%s",s,t);)
{
memset(dp,63,sizeof dp);
dp[0][0][0]=0;int n=strlen(s);
for(int i=0;i<n;++i)
for(int j=0;j<10;++j)
for(int k=0;k<10;++k)
if... |
4d981be64cbf288b7cc868a6fb9e21e4c5181b8e | b4c451b85661dbe1d2dd752c9b459a9ff82dcd75 | /graphs/dfs.cpp | dc594582b4127e5db33af1a93b6a2d514f7a3b6c | [
"Apache-2.0"
] | permissive | Hannibal404/data-structure-and-algorithms | ac250cd71cc6f519a867013aeec1bed3ca420307 | 9dd7203fcede6d75fddefdd6dabef32498b9fbaf | refs/heads/master | 2023-01-03T12:48:16.075552 | 2020-10-03T05:53:53 | 2020-10-03T05:53:53 | 300,664,021 | 1 | 1 | Apache-2.0 | 2020-10-19T09:14:52 | 2020-10-02T15:49:26 | C++ | UTF-8 | C++ | false | false | 958 | cpp | dfs.cpp | #include<bits/stdc++.h>
using namespace std;
void dfsUtil(int currentNode, vector< vector<int> > &adj, vector<bool> &visited) {
visited[currentNode] = true;
cout << currentNode << " ";
for(int i = 0; i < adj[currentNode].size(); i++) {
int neighbour = adj[currentNode][i];
if(!visited[neighb... |
db6820afdca1066c0583868b482098fc203d7979 | 986cabc81e1aaeb5246ccd684e685a91d8c6d189 | /room.h | dd0cfcf452ddeb9018f558be86316b60bc733924 | [] | no_license | bigjimbeef/text-adventure | 4e45bd5e80d748e90f1a194e06c8d6a33a799656 | c14ddfdc156f0f1e7cd167d951ef8d39525aeea4 | refs/heads/master | 2021-01-22T11:38:20.229707 | 2012-10-26T12:04:25 | 2012-10-26T12:04:25 | 6,403,168 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 505 | h | room.h | #ifndef D_ROOM_H
#define D_ROOM_H
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string>
#include "enemy.h"
class Game;
class Room
{
public:
Room();
~Room();
void Init();
void Update();
inline bool Initialised() { return m_initialised; }
... |
541cf1fd01fcb2517106ee5d23ecf35495906695 | 64c797c1aebccdd8d87f1c9e5806a01a8bde7355 | /RSDKv3/Script.hpp | 51bd95adc15ebfdf8b654c830614ad150bf68b35 | [] | no_license | SonicMastr/Sonic-CD-Vita | d83ad99441c4fe758832c9e11b31d9cfc8d8e769 | 525b0e6035e4b10135cd043e479c96b1f937b9a9 | refs/heads/master | 2023-07-19T14:49:27.317584 | 2023-07-04T19:35:05 | 2023-07-04T19:35:05 | 326,148,412 | 36 | 1 | null | 2021-01-09T03:00:55 | 2021-01-02T09:22:25 | C++ | UTF-8 | C++ | false | false | 2,277 | hpp | Script.hpp | #ifndef SCRIPT_H
#define SCRIPT_H
#define SCRIPTDATA_COUNT (0x40000)
#define JUMPTABLE_COUNT (0x4000)
#define FUNCTION_COUNT (0x200)
#define JUMPSTACK_COUNT (0x400)
#define FUNCSTACK_COUNT (0x400)
#define RETRO_USE_COMPILER (1)
struct ScriptPtr {
int scriptCodePtr;
int jumpTablePtr;
};
struct ScriptFunc... |
8dccb7e75ce4954fb5d1b4d68204631d10662427 | 4f52a4da323feb3bfaa3c67d141999f46cfd3d9e | /BOJ_2753/BOJ_2753/BOJ_2753.cpp | 5d22d04d56a98e2a4c711d3178cbba1a81151cfc | [] | no_license | LHI0915/StudyBackjoon | 407b4c7c3fbbec60e6cc719714303570ddf34a1f | e649de567abea81e49ea8d95249ad735a2bc0a37 | refs/heads/master | 2021-07-22T22:12:26.399750 | 2021-07-13T17:35:53 | 2021-07-13T17:35:53 | 141,692,612 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 178 | cpp | BOJ_2753.cpp | #include <cstdio>
using namespace std;
int main(void) {
int n;
scanf("%d", &n);
if (n % 4 == 0 && n % 100 != 0 || n % 400 == 0) printf("%d\n", 1);
else printf("%d\n", 0);
} |
239654f13ded1b214da4b17dd7e2210cea14f321 | 6a3f097cfc870443ae2b1ef648fb326d4dec6385 | /Advance/A1064.cpp | 445d894c681b8a82c58e1b9c2e238a8d01f1ae6c | [] | no_license | cx563/PAT | 8c970579023d2a8bf1b9c08c84d87ae81bf86dc1 | 86fe880252badd8301bc38b178dcf79a4fe26a0c | refs/heads/master | 2023-08-10T18:05:57.907522 | 2021-09-19T01:18:17 | 2021-09-19T01:18:17 | 390,920,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | A1064.cpp | #include <bits/stdc++.h>
using namespace std;
using gg = long long;
const gg maxn = 1e3 + 10;
gg n;
void inorder(vector<gg>& v,vector<gg>& res,gg root,gg& index){
if(root > n) return;
inorder(v,res,2 * root,index);
res[root] = v[index++];
inorder(v,res,2 * root + 1,index);
}
int main()
{
ios::sync_wi... |
11e820e41260f429368231de4555afce3f8a3c81 | 60bd79d18cf69c133abcb6b0d8b0a959f61b4d10 | /libraries/RunningAverage/examples/ra_two_sensors/ra_two_sensors.ino | 763145ae4cf3db6e1c9eeae5a1939d0491927bd2 | [
"MIT"
] | permissive | RobTillaart/Arduino | e75ae38fa6f043f1213c4c7adb310e91da59e4ba | 48a7d9ec884e54fcc7323e340407e82fcc08ea3d | refs/heads/master | 2023-09-01T03:32:38.474045 | 2023-08-31T20:07:39 | 2023-08-31T20:07:39 | 2,544,179 | 1,406 | 3,798 | MIT | 2022-10-27T08:28:51 | 2011-10-09T19:53:59 | C++ | UTF-8 | C++ | false | false | 1,213 | ino | ra_two_sensors.ino | //
// FILE: ra_two_sensors.ino
// AUTHOR: Rob Tillaart
// DATE: 2020-12-06
// PUPROSE: show working of runningAverage for two sensors
#include "RunningAverage.h"
RunningAverage RAT(10);
RunningAverage RAH(10);
int samples = 0;
float temperature = 25.0;
float humidity = 40.0;
void setup(void)
{
Serial.be... |
bf67f9b71fd7e262845b37e9586323960460970c | 742182b23044c91df9a3d99652697152fc13f91d | /Div1/SRM495Div1/Easy.cpp | ac391a97adc69852f007e816cb9eb837b4278ce2 | [] | no_license | iseki-masaya/topcoder | 15e052bff8043f60a15969acc723e2550eae262c | c85ba323476b03abbc22a758e5724f15796ee62b | refs/heads/master | 2016-09-11T02:00:10.773000 | 2015-04-26T02:41:05 | 2015-04-26T02:41:05 | 9,335,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,840 | cpp | Easy.cpp | #include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <list>
#include <algorithm>
#include <sstream>
#include <set>
#include <cmath>
#include <map>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <numeric>
#include <bits... |
1e7c1ea500516fee2565a07b49804e5a17a9541c | e4385506c8a86f0466a970a055a6eb56982d04ec | /source/file.cpp | 433c708a8ef79db395fcc88f1e9b463ccf7322be | [] | no_license | calegxm999/Line_for_3DS | 6beb23e97da45276b85822961aecc9ce0203f293 | dd02cd7ddcf8644d42eac6e0d29ed994d9160beb | refs/heads/master | 2023-01-28T02:07:54.568300 | 2020-12-01T12:03:20 | 2020-12-01T12:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,339 | cpp | file.cpp | #include <3ds.h>
#include <cstring>
#include <string>
#include "error.hpp"
#include "unicodetochar/unicodetochar.h"
#include "types.hpp"
#include "file.hpp"
#include "log.hpp"
Result_with_string File_save_to_file(std::string file_name, u8* write_data, int size, std::string dir_path, bool delete_old_file, Ha... |
658d2e746c24d0bc1bab9a68fda0c7485e8ac792 | 54cadb53c12cfd15d8225d44ebd18e6216970779 | /Source/Project/Public/CanLookAtDecorator.h | ae63078c7ec50913b7faf29be80be66eaf3a4df1 | [] | no_license | cl4nk/Gladiator_UE4 | 4d8d43a2094eabe2d4abb52643c9d68e8f51a6d2 | e8e43b71ce8ee2dc0d0db9eaec8f4c0e4c41c508 | refs/heads/master | 2021-05-05T15:38:54.031078 | 2017-10-02T20:58:10 | 2017-10-02T20:58:10 | 103,172,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 624 | h | CanLookAtDecorator.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "BehaviorTree/BTDecorator.h"
#include "CanLookAtDecorator.generated.h"
/**
*
*/
UCLASS()
class PROJECT_API UCanLookAtDecorator : public UBTDecorator
{
GENERATED_UCLASS_BODY()
virtual bool CalculateRawCondition... |
21ae9907e9a4d797000c36c4823f7861bc0174c4 | 7f62f204ffde7fed9c1cb69e2bd44de9203f14c8 | /DboServer/Server/GameServer/WorldManager.cpp | bfb02e88b302e2fee57e691978e3466c2ed94b3e | [] | no_license | 4l3dx/DBOGLOBAL | 9853c49f19882d3de10b5ca849ba53b44ab81a0c | c5828b24e99c649ae6a2953471ae57a653395ca2 | refs/heads/master | 2022-05-28T08:57:10.293378 | 2020-05-01T00:41:08 | 2020-05-01T00:41:08 | 259,094,679 | 3 | 3 | null | 2020-04-29T17:06:22 | 2020-04-26T17:43:08 | null | UTF-8 | C++ | false | false | 10,734 | cpp | WorldManager.cpp | #include "stdafx.h"
#include "WorldManager.h"
#include "World.h"
#include "WorldFactory.h"
#include "TableContainerManager.h"
#include "char.h"
#include "NtlNavi.h"
#include "GameServer.h"
CWorldManager::CWorldManager()
{
Init();
}
CWorldManager::~CWorldManager()
{
Destroy();
}
int CWorldManager::Create(CWorldFa... |
bab33d9fb64c413ad8b5d32fa78f922d192d4399 | abac66205dd0ce94edbf8e733659457402abe848 | /94-Binary Tree Inorder Traversal-C++/main.cpp | 1ba72257f3a27219785801d3a79d8f6400d77e4e | [] | no_license | delta1037/LeetCode | 83d718776aefc482eb9852a80be92fa6e45a4142 | 7bb791823e8546cfa051af747ac30c5008c5db61 | refs/heads/master | 2021-09-19T23:31:54.132222 | 2018-08-01T09:27:07 | 2018-08-01T09:27:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | cpp | main.cpp | #include <iostream>
#include <vector>
/**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right... |
c740beff992ee4420aed4e1639e7602cea936613 | 0702aaa2ab86f06fedc7e8fcddb7f2f16e2489e6 | /src/versioninfo.h | 9a44d48ab4a03991b67a178702353f5ee147b4a9 | [] | no_license | BenWenger/lusch | c31c81a706ded9803ff49b6bc5244036a6bf8aad | c3002745931afef96b8a2b9826a9089bac729e4b | refs/heads/master | 2020-06-19T04:54:26.063586 | 2017-10-19T19:18:00 | 2017-10-19T19:18:00 | 94,177,540 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 913 | h | versioninfo.h |
#ifndef LUSCH_VERIONINFO_H_INCLUDED
#define LUSCH_VERIONINFO_H_INCLUDED
namespace lsh
{
namespace
{
/////////////////////////////////////////////
// Settings File
const char* const settingsFileHeaderString = "Lusch settings file";
const char* const settingsFileVer... |
78d25b751e9451fd0b07020d5d51c27580f7c285 | af96a2fc2b01fcea3db4ef453c5098df9c29081c | /tools.cpp | eaa2747ffa21ecf4ba1b61e5e3f929f43c48be7f | [] | no_license | Norcrossover/Table-Waiting-App | 47186f065ac00a24996718e16d3e1e99d4f68ffd | 9eb5fed61e6b3950d8afcc5723b3118100210f16 | refs/heads/main | 2023-06-28T16:39:14.463985 | 2021-08-03T04:44:56 | 2021-08-03T04:44:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,896 | cpp | tools.cpp | // Kobe Norcross, CS 260, tools.cpp
// Implementation file for all of the helper functions
#include "tools.h"
void printOptions()
{
cout << endl << endl << endl;
cout << "=======================================================" << endl << endl;
cout << " OPTIONS" << endl;
cout << " ... |
b3cea1e395ce40ccd9c76ec0884d34de5ba15fad | 237197ec6d89a7eb62f6f0df98934f0202e86772 | /macintosh/adobe/macintosh_carbon_safe.hpp | 1a1540675120242a8d7930fc9385154b4889e98e | [] | no_license | ilelann/adobe_platform_libraries | acb7efab62cbae6fce61ef2c04cc080f6d085de7 | 55768ef67fdc24dd018e3e674dfe2d63754db5a9 | refs/heads/master | 2021-01-18T04:58:32.699240 | 2017-10-30T00:31:40 | 2018-07-19T06:42:11 | 20,827,777 | 2 | 0 | null | 2015-04-07T21:27:54 | 2014-06-14T07:54:34 | C++ | UTF-8 | C++ | false | false | 1,244 | hpp | macintosh_carbon_safe.hpp | /*
Copyright 2013 Adobe
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 ADOBE_MACINTOSH_CARBON... |
758288ed03fa07bd7b41d1eaa177b68155dedf7f | 1f83dde7406ac2495136da7e37914975cbc14df9 | /progteam/kattis/batterup.cpp | 11783d85b0578b0a296c7e4bb0864627e6532700 | [] | no_license | FernandoCaudillo10/programmingTeamChallenges | fedee59a816827908ecb3c22c4774a6885d13a79 | 698b4f245ee70747f8b54f80e4a0fd4888802670 | refs/heads/master | 2021-09-07T08:14:40.370955 | 2018-02-20T02:06:33 | 2018-02-20T02:06:33 | 108,187,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 226 | cpp | batterup.cpp | #include <iostream>
using namespace std;
int main(){
int t, avg=0, tc=0;
cin >> t;
while(t-->0){
int num;
cin >> num;
if(num == -1){
continue;
}
avg += num;
tc++;
}
cout << avg/(double)tc;
return 0;
}
|
4696bc1f1a70ab71310205fbf3bab1fce614f5c3 | 25844df17a7f79911f4481809baba4d9c4f1ad3b | /Expressions/AddExpr.h | fcb7ea25847b4f4f658cfb4f91cd9533d4af9405 | [] | no_license | VladimirVolodya/Pascal_Interpreter | c756599d9a5b9d97834481feba4232e080f01f19 | 8332992b7d3fc9e1d3102db5b1cc746cf6cffde5 | refs/heads/master | 2023-02-24T21:52:38.165018 | 2020-12-24T15:27:10 | 2020-12-24T15:27:10 | 319,766,788 | 0 | 0 | null | 2020-12-24T15:26:22 | 2020-12-08T21:36:07 | C++ | UTF-8 | C++ | false | false | 342 | h | AddExpr.h | #ifndef PARSEREXAMPLE_ADDEXPR_H
#define PARSEREXAMPLE_ADDEXPR_H
#include "BaseElements/BaseExpr.h"
class AddExpr : public BaseExpr {
public:
AddExpr(BaseExpr* p_lhs, BaseExpr* p_rhs);
BaseExpr* p_lhs;
BaseExpr* p_rhs;
~AddExpr() override;
var_t Accept(Visitor& visitor) override;
};
#endif //PA... |
6eb1ef72836a2d74f8792b73bd04cd6249d59ccb | 2d1f82fe5c4818ef1da82d911d0ed81a0b41ec85 | /codeforces/gym/NCPC 2017/CF101572I.cpp | cc65d96abdda8d6888ea5e490aeab4f49629ced9 | [] | no_license | OrigenesZhang/-1s | d12bad12dee37d4bb168647d7b888e2e198e8e56 | 08a88e4bb84b67a44eead1b034a42f5338aad592 | refs/heads/master | 2020-12-31T00:43:17.972520 | 2020-12-23T14:56:38 | 2020-12-23T14:56:38 | 80,637,191 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,950 | cpp | CF101572I.cpp | #include <bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (long long i = (a); i <= (b); i++)
#define FORD(i,a,b) for (long long i = (a); i >= (b); i--)
#define REP(i,a) FOR(i,0,(long long)(a)-1)
#define reset(a,b) memset(a,b,sizeof(a))
#define all(x) x.begin(), x.end()
#define uni(x) x.erase(unique(al... |
3818ccf8ece6b3f72af744b1a9a3d1ceb52761b5 | 13396abd486a21ebaec813efed3e5b839abca3d0 | /OpenGL_Polys.cpp | 4ace08a9d02e439a935788aafd71355f303fef35 | [] | no_license | soggyburito/openglPolys | ee58cbd971780084f1f6edd46271f499b343c1f4 | abcbc2c4d8ae552f85945e6ff8622ec0bbdd34dc | refs/heads/master | 2021-04-09T11:09:05.087321 | 2018-03-16T15:12:40 | 2018-03-16T15:12:40 | 125,532,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,355 | cpp | OpenGL_Polys.cpp | #include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <chrono>
const char* vertexSource = R"glsl(#version 150 core
in vec2 position;
in float color;
out float Color;
void main(){
Color=color;
gl_Position = vec4(-position, 0.0, 1.0);
})glsl";
const char* fragmentSource = R"glsl(
#versio... |
0c0fb9ea0555c595fb9e8aedad0a9ed7abd9b790 | 19c1f3a8d3b370ab8e8c0596579b22f46cd0e958 | /20-Reference.cpp | 379f965fde1bd8639eadb56d4dbaaaed890c7e5f | [] | no_license | hoklavat/beginner-cpp | dbab715cee9d3cb7cd4ff78b78562ed88260aec9 | 838f21de713fcb8d2d58ae38d43495c549e78511 | refs/heads/master | 2023-01-08T17:38:14.747038 | 2020-11-09T14:09:27 | 2020-11-09T14:09:27 | 294,480,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 587 | cpp | 20-Reference.cpp | //20-Reference
//reference directive: process with variable itself rather than creating a copy.
#include <iostream>
#include <vector>
using namespace std;
int main(){
int n1{100};
int &r1{n1}; //r1 is reference to n1.
vector<string> v1 {"Ali", "Burhan", "Cemal"};
cout << "r1=" << r1 << ", n1=" << n1 << endl;
r... |
dcef10700d90887e2caccb94e44e3f6fcca63e11 | 289eed19480194a4e8e79db91a0521dd72c7ef5f | /ๅๅญ่ฟๅ/Compute the distances between leaves.cpp | 649fc0702382b3d9a144f0819f8d4dc421dcbcc0 | [] | no_license | luoguanghao/bioinfo_algo_script | 86190b9611ea4e47bf2e25b5b876709ecfde5d69 | 5937a4744da7a33bd1ea585676e048479433fe51 | refs/heads/master | 2020-05-30T15:57:23.996963 | 2020-04-09T08:32:42 | 2020-04-09T08:32:42 | 189,834,435 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,915 | cpp | Compute the distances between leaves.cpp | /*
Distances Between Leaves Problem: Compute the distances between leaves in a weighted tree.
Input: An integer n followed by the adjacency list of a weighted tree with n leaves.
Output: An n x n matrix (di,j), where di,j is the length of the path between leaves i and j.
Code Challenge: Solve the Distances ... |
16ba296c6198d78dd2425ee94122bf4877193a12 | 19d92ec2e125803bd892b3dc806d475ad775b43c | /src/item7/partial_delete.cpp | f5011f725135bf673280955c1508eb83b03f8bd6 | [] | no_license | xiaoqiangkx/effective_cpp_notes | 18fa3f224cbac818d6f525385832a6682bad374d | 168df21fc69f70278a6626c2f7a01527b3ac9975 | refs/heads/master | 2021-01-18T16:04:38.278074 | 2014-05-12T13:58:30 | 2014-05-12T13:58:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | cpp | partial_delete.cpp | #include <iostream>
class Base {
public:
virtual ~Base() {}
virtual void test() {}
private:
static int a;
int b; // ไธๆฆๆทปๅ ่ฟไธชๅ, sizeof(Base) ๆไธบไบ16, ็ฑไบๅฟ
้กปๅฏน้ฝไธบ8็ๅๆฐ
};
// int Base::a = 1;
class Derived: public Base {
public:
Derived(): p(new char[10]) {}
~Derived() {... |
8cc14f28f9846a930fba89a0a1327652c9870266 | 91f1d5b6789fbc97191dcac3e18a77c5d141e639 | /linux/sources/server/http/HtmlManager.cpp | d7ddd7a48f99854b547a80651503757525a35980 | [] | no_license | werayn/cpp_zia | 632d1041f601a7972b01c2fe6439b6b5f1f19262 | 4d834230e2499ba3f6e2baff4fcf4b5cc15b7c1c | refs/heads/master | 2020-04-17T18:03:14.008953 | 2019-01-21T12:30:45 | 2019-01-21T12:30:45 | 166,809,633 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,190 | cpp | HtmlManager.cpp | #include "http/HtmlManager.hpp"
namespace zia::api {
std::string HtmlManager::viewDirectory(std::string const &path, std::string uri) {
std::string body = Utils::readFile(VIEW_DIR_FILE);
DIR *dir = opendir(path.c_str());
struct dirent *odir = NULL;
if (!(dir = opendir(path.c_str())))
... |
0d3867dc18cd1311ebe20c73a1be6a00478cccac | 8a59f50cd2d8f786a6b5fad9a7cfb81d3d3f7f01 | /Old stuff/includes/stack.h | fe77d190b01c546e8ea0f685ed68c904d288c944 | [] | no_license | jjasoliya/Algorithms | 44f0da41ce4dfea63203b0d72af0d7d278f281b1 | 7b86dff2bbff52832f2bcc822009388f0b171917 | refs/heads/master | 2022-04-27T15:35:52.527366 | 2022-04-11T00:10:53 | 2022-04-11T00:10:53 | 83,158,624 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | h | stack.h | // class for stack
#define MAX_SIZE 5
class stack
{
public:
stack()
{
int stack_pointer = 0;
};
~stack()
{
};
void push(int item);
int pop();
int stack_pointer;
int stack_arr[MAX_SIZE];
private:
};
void stack::push(int item)
{
if (stack_pointer == MAX_SIZE)
{
cout << "Stack is FULL.." << endl;
... |
1cf639a0937e68ba3a3c8f6cdbc1a80fa83876ad | 335efdfc6d9e86630c6ed9b53b332991a71e7795 | /include/selfup/ns_log.h | 690e1e2eed25fea269188385d2a8c97d9d839c01 | [] | no_license | nOOb3167/gittest_selfup_ns | ce1e54a298222e604b7a2711e51ac12a3be903d3 | 0c44b7ecfaae8cd093ecf6ec74bd3786cb68656d | refs/heads/master | 2021-05-10T21:17:47.457797 | 2018-04-09T02:02:24 | 2018-04-09T02:02:24 | 118,224,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,174 | h | ns_log.h | #ifndef _NS_LOG_H_
#define _NS_LOG_H_
#include <memory>
#include <mutex>
#include <stdexcept>
#include <string>
#include <selfup/ns_systemd.h>
#define NS_LOG_SZ(msg, msg_len) do { g_log->logSimple((msg), (msg_len)); } while (0)
#define NS_SOG_DUMP(msg, msg_len) do { g_log->srvLogDump((msg), (msg_len)); } while (0)
... |
9caa9d72a0a52fae3ddfb95108575585bb895541 | 52c7069296f37db4298b83903371fb3ad426e391 | /CallControlServer/reflow/dtls_wrapper/test/TestTimerContext.cxx | 68cc899dda0ecdf3c26a1c5e1095de6001a95d67 | [
"BSD-3-Clause"
] | permissive | github188/zjsipserver | 4c8f3dfabca83bac5066859d188345dc0e3e0a59 | 829234121573e41ae7ab9a3b9f7a584eeb905964 | refs/heads/master | 2021-01-11T04:54:40.965594 | 2009-02-16T03:08:13 | 2009-02-16T03:08:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,544 | cxx | TestTimerContext.cxx | #include <iostream>
#include "DtlsTimer.hxx"
#include "TestTimerContext.hxx"
#include "rutil/Timer.hxx"
using namespace std;
using namespace dtls;
using namespace resip;
TestTimerContext::TestTimerContext()
{
mTimer=0;
}
void
TestTimerContext::addTimer(DtlsTimer *timer, unsigned int lifetime)
{
if(mTimer)
... |
c74cb503fe3e6aed622e8f8939163cb03f305a95 | 8979c43a5a7810d2f099b30a936b321d672c8608 | /TwoServo/TwoServo/TwoServo.ino | f3bd14da24230c8da555e98527739716c13e0107 | [] | no_license | OUinterncode/Antennae | 0903c700125ef4349cba9da13a204227fc0032a2 | 056a9e6806d9cd19ce96ea69579d0e05648cde03 | refs/heads/master | 2020-05-17T22:23:41.712815 | 2012-08-27T15:05:21 | 2012-08-27T15:05:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,211 | ino | TwoServo.ino | #include <Servo.h>
Servo servoSetH;
Servo servoSetV;
int posA = 0;
int posB = 45;
int posC = 90;
int posD = 135;
int posE = 180;
const int buttonPin1 = 2;
const int buttonPin2 = 4;
const int buttonPin3 = 6;
const int buttonPin4 = 8;
int buttonState = 0;
void setup()
{
servoSetA.attach(13);
servoSetB.attach(12... |
178671189d4894f3dcda1b799cd76f62ff308252 | 59dc938d387e0fbd1970391f27d26a4adc0423a6 | /EngineTest/Source/Utility/has_member_test.cpp | 65c98d199b3653be14cad607b7be5dc0e536146a | [
"MIT"
] | permissive | VovoWang/Photon-v2 | 35d06bcc279a887c1e4a301744fa97cb77210216 | 82687ba650e98a2bfb73d897f673aa9a856245af | refs/heads/master | 2021-04-26T22:19:04.520190 | 2018-03-06T11:44:13 | 2018-03-06T11:44:13 | 124,069,900 | 0 | 0 | null | 2018-03-06T11:40:25 | 2018-03-06T11:40:25 | null | UTF-8 | C++ | false | false | 2,518 | cpp | has_member_test.cpp | #include <Utility/has_member.h>
#include <gtest/gtest.h>
#include <string>
TEST(HasMemberTest, HasMultiplyOperator)
{
EXPECT_TRUE((ph::has_multiply_operator<int, int, int>{}));
EXPECT_TRUE((ph::has_multiply_operator<float, float, float>{}));
EXPECT_FALSE((ph::has_multiply_operator<float, float, std::string>{}));
... |
fb355835135349ac904c1e71c6888809e713bc3a | ab38afefb1eafe430b670a3bae3dd6b63cf8dcce | /include/andromeda/Game/view_component.h | 4943bb7acd4074954471b51ef861049121fa917b | [] | no_license | SpiritualXTC/andromeda | 6fc07770701f507eac2056828ffd8d1346bc4a54 | d426830902dded1f0633079450921b26ef5a4382 | refs/heads/master | 2021-01-18T04:04:11.367580 | 2019-12-13T22:52:25 | 2019-12-13T22:52:25 | 36,509,398 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | h | view_component.h | #ifndef _ANDROMEDA_GAME_VIEW_COMPONENT_H_
#define _ANDROMEDA_GAME_VIEW_COMPONENT_H_
#include "component.h"
namespace andromeda
{
/*
A View Component Contains a Render Target
*/
class ViewComponent : public Component<ViewComponent>
{
public:
ViewComponent() {}
virtual ~ViewComponent() {}
private:
}... |
f6322c71db437a7333aeb5a98124d57d807dd51d | 56a505d087ceb3a11ccc5e50fcc79221dea0826a | /backend/src/InvertedFile.cpp | 9114098ea111282469b2f1c9ff125c0ef9a555f0 | [] | no_license | tempteamcode/TextIndexing | 45a35427eea230f34714d5ea7ed7431920405e9e | 2e5f234251ed82850ee7e6f3dd712074daee1a32 | refs/heads/master | 2022-12-24T00:46:04.978295 | 2019-12-04T18:37:39 | 2019-12-04T18:40:47 | 220,420,098 | 0 | 1 | null | 2022-12-13T16:35:25 | 2019-11-08T08:20:33 | C++ | UTF-8 | C++ | false | false | 2,541 | cpp | InvertedFile.cpp | #include <fstream>
#include "InvertedFile.h"
TFID_t TFC_to_TFID(const TFC_t& src)
{
TFID_t result;
unsigned int total = 0;
for (const auto& item : src)
{
total += item.second;
}
for (auto it = src.begin(); it != src.cend(); ++it)
{
result[it->first] = Frequency_t(it->second, total);
}
return result;
... |
a3795d0dfdbec584f68417eaa53a0a2d032db8bf | ff9d9f472e468fdf5b07a2633e137eea9ba9278b | /cube/BaseWidget.cpp | 75c8cf38b84711a0b52cde1e02667956cdfb1e5b | [] | no_license | thetrueoneshots/CWSDK | 033985a450eebb29825fe02ebd652b3b5539198a | 4709b77180a77acc85cb74bcb91b31a1b45b5e7e | refs/heads/master | 2022-04-30T20:13:01.344783 | 2022-04-17T12:01:46 | 2022-04-17T12:01:46 | 412,755,911 | 2 | 0 | null | 2021-10-02T09:55:22 | 2021-10-02T09:55:21 | null | UTF-8 | C++ | false | false | 1,937 | cpp | BaseWidget.cpp | #include "BaseWidget.h"
#include "../cwsdk.h"
cube::BaseWidget* cube::BaseWidget::ctor(plasma::D3D11Engine* engine, plasma::Node* node, std::wstring* name)
{
return ((cube::BaseWidget* (*)(cube::BaseWidget*, plasma::D3D11Engine*, plasma::Node*, std::wstring*))CWOffset(0x268A70))(this, engine, node, name);
}
... |
6d40d9615534a04ed32b6ada89fe7b56d6da3d59 | 209776e95e1c1bc7c838e1b57ef08a7adc9a0a06 | /src/Segmentor.cpp | c856bed909416433fdd27ee5214a8f8335e911b1 | [] | no_license | JWHennessey/edit_transfer_selection_interface | 141b7f50a8e420ec10d49aea0bbcbcc4d31214a5 | 445f71bfde5ab2e39abdb6d392862ac7e8a58fc5 | refs/heads/master | 2021-05-10T09:12:01.928647 | 2018-01-25T21:31:36 | 2018-01-25T21:31:36 | 118,917,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,929 | cpp | Segmentor.cpp | #include "Segmentor.h"
Segmentor::Segmentor(Mat &channel, cv::Mat polygonMask)
: mChannel(channel), mPolygonMask(polygonMask)
{
mMask = segmentGrabCut();
}
Mat Segmentor::getMask() { return mMask; }
Mat Segmentor::segmentGrabCut()
{
Mat bgdModel, fgdModel, segmentation, image;
mChannel.convertTo(imag... |
1244e3b97c095556c86907ab055b4c223ff71737 | 704bb87f2eea85d184baad2d8a7f8157b95a9956 | /puzzle_ravi.cpp | 7d5c3a3763744f39507d6805525c2680775eea3b | [] | no_license | vikram89813/c-Codes | 32162f710bee61cc371625434b6c936dafeef0b3 | 3ab27fbc1a82901ce5068f7451a9e4f36a22e6be | refs/heads/master | 2020-04-22T10:54:18.046320 | 2019-02-12T13:35:00 | 2019-02-12T13:35:00 | 170,321,455 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,613 | cpp | puzzle_ravi.cpp | #include <malloc.h>
#pragma GCC optimize ("-Ofast")
int gN = 0, gM = 0, gK = 0, pId = 0, pSize = 0;
typedef struct puzDS
{
i int data[60]; // MAXM*4
short adjpId[4];
int onesCount;
}puzDS;
puzDS *puzzles = NULL;
void init(int N, int M, int K)
{
if (puzzles != NULL)
{
delete puzzles;
... |
de71a1dfed0270f14e8ee961dbb9dbc3021b3cac | 3e4f9c2856564e2314cb71d07909891d1b740e6a | /src/filters/renderer/VideoRenderers/VMR9AllocatorPresenter.cpp | a317cf9fe73f6127349a36a7f392de3c2174c332 | [
"MIT"
] | permissive | chinajeffery/MPC-BE--1.2.3 | 62dd1adbb2c0ef3deed85c6c8ad7de03764e7144 | 2229fde5535f565ba4a496a7f73267bd2c1ad338 | refs/heads/master | 2021-01-10T13:36:59.981218 | 2016-03-16T07:46:05 | 2016-03-16T07:46:05 | 53,302,468 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,605 | cpp | VMR9AllocatorPresenter.cpp | /*
* $Id: VMR9AllocatorPresenter.cpp 2652 2013-05-08 06:25:38Z aleksoid $
*
* (C) 2006-2013 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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; ... |
3da41a3488b3dc68f670a0702bbc580181579613 | d23f5a0fa48aae622ebb87c8444995b7212ef6f1 | /Recursive programs/recursiv1/main.cpp | ab251b66d9a9fc995b7ddfe03521a18fe8c32749 | [] | no_license | AndreiCatalinN/college | 8693207a90bbcd2a5e94b2d966941efb088dce6a | 84d1450e409f477cb70258bf0150d3597c1e9475 | refs/heads/master | 2021-07-19T19:05:00.117902 | 2020-07-26T12:58:57 | 2020-07-26T12:58:57 | 199,473,120 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 360 | cpp | main.cpp | #include <iostream>
using namespace std;
void afisare(int n)
{
if(n>0)
{if(n%10%2==0)
{
cout<<n%10<<" ";
afisare(n/10);
}
else if(n%10%2==1)
{
afisare(n/10);
cout<<n%10<<" ";
}}
else if (n==0) cout<<endl;
}
int main()
{int n;
... |
79788145637cba18fc0168febeb7a8139a3142a6 | 38b9daafe39f937b39eefc30501939fd47f7e668 | /tutorials/2WayCouplingOceanWave3D/EvalResults180628-Eta/28.4/p_rgh | d39b6f8fe4f99a74b4269748b888023d85c2cdc8 | [] | no_license | rubynuaa/2-way-coupling | 3a292840d9f56255f38c5e31c6b30fcb52d9e1cf | a820b57dd2cac1170b937f8411bc861392d8fbaa | refs/heads/master | 2020-04-08T18:49:53.047796 | 2018-08-29T14:22:18 | 2018-08-29T14:22:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 197,048 | p_rgh | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 3.0.1 |
... | |
d9bad063cbd1751ed3c7e4a3b62f1107ea3ffd81 | 1ec57716e1d0d7dc5e9c93457f0826c0feb6b777 | /LinuxEpoll/broadcastServer.cpp | d10eb6b1cb387d8a6905fa612cb4d36fbd4e783c | [] | no_license | smallinsect/MySocket | 91fa6140c0f88df393ac597c2ea48dfbe77003f7 | ccb439d01c4545e49422f2cbff471c7d1a60da57 | refs/heads/master | 2023-02-22T10:54:12.309761 | 2021-01-24T14:08:02 | 2021-01-24T14:08:02 | 185,744,452 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,530 | cpp | broadcastServer.cpp | //
//ๅนฟๆญๆๅกๅจไปฃ็
//
//
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
int main(int argc, char *argv[]){
//ๅๅปบๅฅๆฅๅญ
int fd = socket(AF_INET, SOCK_DGRAM, IPPROTO_UDP);
if(fd == -1){
printf("[sever] socket error ...\n");... |
e49868511e07c1e6ebb47d5773eba2cdd288376b | 318b9a5fe958e536428eaff5a4217f9f96b2bcc8 | /apollo/modules/planning_btree/common/trajectory1d/piecewise_jerk_trajectory1d.cc | 59aaa64bb6cf6c7c78efdd58220a5de9ae46ba70 | [] | no_license | mengxingshifen1218/BehaviourPlanning | 96bcf040f6ec63fb5989c6ca3007fe9aad213006 | ce91810fe8b423fd7ec9b6303ff4f05affad9aa8 | refs/heads/main | 2023-04-30T03:11:26.405582 | 2021-05-20T08:07:18 | 2021-05-20T08:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,800 | cc | piecewise_jerk_trajectory1d.cc | #include "modules/planning_btree/common/trajectory1d/piecewise_jerk_trajectory1d.h"
#include <algorithm>
#include "cyber/common/log.h"
namespace apollo {
namespace planning_btree {
// TODO: move this to config
namespace
{
constexpr double kNumericalEpsilon = 1e-6;
}
PiecewiseJerkTrajectory1d::PiecewiseJerkTraject... |
e0c427fe23a4e876feb122a62e0be8885f168989 | 110353759c00f0bde5a6dccacdf87ebc817edd78 | /lonely.cpp | 873ac75d844cb5d7003ed1f8ec5ba48566dc24b8 | [] | no_license | RichardTry/Lonely | dcf71c881f383249c5be255f7226954882e5945d | 915c66d85dc838699135cec4df4f33da8002eb87 | refs/heads/master | 2021-05-05T15:20:25.584020 | 2017-09-12T19:23:27 | 2017-09-12T19:23:27 | 103,163,458 | 1 | 0 | null | 2017-09-11T16:58:43 | 2017-09-11T16:58:43 | null | UTF-8 | C++ | false | false | 10,577 | cpp | lonely.cpp | #ifdef USE_SDL2
#include <SDL2/SDL.h>
#else
#include <SDL/SDL.h>
#endif
#include <iostream>
#include <cstdlib>
#include <vector>
#include <map>
#include <ctime>
#include <cmath>
using namespace std;
typedef struct
{
int r;
int g;
int b;
} biome;
const biome arctic = {40000, 40000, 65536};
const biome tun... |
db9788142e93891dbd515c6a0f90fa9f4463e1d5 | b898ad7280f0f358bbea09633115eb1b166cb430 | /src/exportpngform.h | a6649bdff85396e9ca4335bef5645841089a4fe1 | [] | no_license | chankame/AnimationCreator | 520d89568e4c047faf596b56aa97bc22531925c6 | 7fbf4c984e67b66b0fc52fd41d5f8c6415d96125 | refs/heads/master | 2021-01-15T17:08:22.608934 | 2013-01-15T02:50:12 | 2013-01-15T02:50:12 | 2,824,833 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | h | exportpngform.h | #ifndef EXPORTPNGFORM_H
#define EXPORTPNGFORM_H
#include <QWidget>
#include <QtGui>
#include "editdata.h"
#include "setting.h"
namespace Ui {
class ExportPNGForm;
}
class ExportPNGForm : public QWidget
{
Q_OBJECT
public:
explicit ExportPNGForm(CEditData *pEditData, CSettings *pSetting, QWidget *parent = 0)... |
5ebe690ba3c5d6d7818164a3e6cc7fb5b1dd7310 | 00d59fc683ae26dbda511bab355836b9e2e6b43d | /vjudge/HDU/4284/4698238_AC_3556ms_5716kB.cpp | 5249cc30d2b663c8b5a29ec50f38d4d6da40f938 | [] | no_license | howardchina/ACM-ICPC-solved-problem | 01f8744c12b765ffc0ea23600fab79c58a5f6e0e | 63805f390c754c4561d43c4902939eff26ad7cbd | refs/heads/master | 2020-04-01T20:22:33.562335 | 2018-12-11T09:09:03 | 2018-12-11T09:09:03 | 153,601,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,273 | cpp | 4698238_AC_3556ms_5716kB.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
using namespace std;
const int INF= 0x3f3f3f3f ;
const int maxn = 105;
int N,M,Money,H, C[20], D[20], A[20] ;
int dis[maxn][maxn], g[20][20] ;
int dp[1<<16][16];
int main()
{
// freopen("data.in", "r" ,stdin) ;
int ... |
f74a7d3cdf52f4ef11308ae8b704998e5aeac9a5 | 417795cf9f659d63fa6758692e271694582897b3 | /ResearchPaper.cpp | 10f7742fe6ef3c83f423d360b488c7e48558a2f9 | [] | no_license | swn881/CSCI222-Group-1-afterConflict | fdf611105f516f9ac863ca09deb3dd9aaabdcb81 | dea95a920568130ce13bd6c76f7026641b8f8310 | refs/heads/master | 2020-03-30T21:46:51.536379 | 2014-10-30T02:51:23 | 2014-10-30T02:51:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,151 | cpp | ResearchPaper.cpp | #include <iostream>
#include <vector>
#include "ResearchPaper.h"
#include <stdlib.h>
using namespace std;
ResearchPaper::ResearchPaper()
{
paperID = 0;
numContributors = 0;
title = "";
abstract = "";
keywords = "";
approval = -1;
}
ostream& operator<< (ostream& out, const ResearchPaper& temp)... |
2e583860cf770f9d6e3125f292f5b9db6a3f6333 | 7957d1d8aadd523b618e2fa0c4fe7b1c85787a06 | /permCheck.h | a09fe593b25f1f9e766f1946ef46f0e8becc1c91 | [] | no_license | bbaskurt/codingAssessments | d11c0e0a77291db5df62bb4031208f591e94b618 | 5c4e3129bb45b894eb57b766fd18e2b1ebb9b911 | refs/heads/master | 2021-03-18T06:32:26.567165 | 2020-05-10T15:50:11 | 2020-05-10T15:50:11 | 247,053,413 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 157 | h | permCheck.h | #pragma once
#include <vector>
// codility test score: %100
class permCheck
{
public:
permCheck();
~permCheck();
int solution(std::vector<int> &A);
};
|
b73dec279dbbf56a5506a5d78e2133f0e7fff4a9 | cd8eef1d73c9aed00d69c383338a9b505079131a | /ASFIFOSystem.h | a1210cffbde7917b548e0cf21f3cda6dfd88486a | [] | no_license | penta-dev/Food-Delivery-Simulator | 3e6d4e4dac93e44f5856c2964bfb5131a8d4b5f5 | d5ca8146a696515937cbedb0d0b4313cdd9be8a0 | refs/heads/main | 2023-05-27T04:51:02.780758 | 2021-06-10T08:12:27 | 2021-06-10T08:12:27 | 375,590,032 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | h | ASFIFOSystem.h | #pragma once
#include "ASSystem.h"
class ASFIFOSystem :
public ASSystem
{
public:
virtual void process(float time);
};
|
94a28b552e267a1590eb6951fba4cad5be763648 | 877fff5bb313ccd23d1d01bf23b1e1f2b13bb85a | /app/src/main/cpp/dir7941/dir29315/dir29510/file29672.cpp | d8b66978b4412b665f341696f771241c08bfb8ac | [] | no_license | tgeng/HugeProject | 829c3bdfb7cbaf57727c41263212d4a67e3eb93d | 4488d3b765e8827636ce5e878baacdf388710ef2 | refs/heads/master | 2022-08-21T16:58:54.161627 | 2020-05-28T01:54:03 | 2020-05-28T01:54:03 | 267,468,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | cpp | file29672.cpp | #ifndef file29672
#error "macro file29672 must be defined"
#endif
static const char* file29672String = "file29672"; |
0257740eed79e7f3e32a8f25b804ed1d03b91266 | 3aaae0ea6f1ba4cd94faf8a4d0134f9336ab854c | /EPL-Project3/EPL-Project3/TestForm.cc | 2b555fcfbaab76c528b9a3740c37c9ce9d00b6ed | [] | no_license | ytchen/example | b41733f0d8a8b554f2a5b906357c9d2adf2622e0 | f99c66747bd106804f1f4cfdd41ebe97272d6dd7 | refs/heads/master | 2016-09-09T17:39:41.489496 | 2012-05-10T04:56:31 | 2012-05-10T04:56:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,884 | cc | TestForm.cc | #include <iostream>
#include <cstdlib>
#include <math.h>
#include "Params.h"
//#include "TestResults.h"
#include "TestForm.h"
#include "QuadTree.h"
#include "Window.h"
#include "ObjInfo.h"
#include "LifeForm.h"
using namespace std;
double eat_success = 1.0;
double age_frequency = 1.0e9;
bool g_use_algae_spores = fa... |
841a5532269b3dbdda9364a922dc401081664e0b | 0fee103f9ed82978144d9741e46882c7df9eedb1 | /Atcoder/AGC021/F.cpp | a604abbcfc29549c14996152ede0eebd31100832 | [] | no_license | Flying2019/testgit | 2776b6bc3a5839a005726ff108fb69d971065871 | 86a42bb1d4bfd65b5471373f03162270013da2af | refs/heads/main | 2023-07-15T00:57:55.321869 | 2021-08-21T01:16:53 | 2021-08-21T01:16:53 | 302,891,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,174 | cpp | F.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
const int N=8010,mod=998244353;
int fac[N],inv[N];
int ksm(int a,int b=mod-2)
{
int r=1;
for(;b;b>>=1)
{
if(b&1) r=1ll*r*a%mod;
a=1ll*a*a%mod;
}
return r;
}
int C(int a,int b){return a<b || a<0... |
1f6b4ad65712dceac887ba41e93f841dbb5dd696 | 215e57248338428dff3b8a2ebafa5ba638879f82 | /test/AccountUnitTest.cpp | 00e39a4f4c51c6bf3239bd230bd6854c4be52246 | [] | no_license | xfresh-aiRx/Bank_Account | 35aad3208b79aeffb98503473998dfe918a9e16f | 2ec2cf910a1041b13f99f6d406b49548cf8f8e7a | refs/heads/main | 2023-02-24T01:51:05.861510 | 2021-01-27T22:16:29 | 2021-01-27T22:16:29 | 301,164,571 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 48 | cpp | AccountUnitTest.cpp | #include <gtest/gtest.h>
#include "Account.hpp"
|
1a06c64385f1bb2d20d5e6583eee717f1bdc05ed | d1acc39b165df125fa292f6b74d020e607d1e25d | /applications/gui2/src/modules/calibration/calibration.hpp | fa766093a532378dcea414bf3d8edaf604299699 | [
"MIT"
] | permissive | knicos/voltu | 1e30cb44ec1938fe805d4c09b6f154434bd5cfb9 | 70b39da7069f8ffd7e33aeb5bdacc84fe4a78f01 | refs/heads/master | 2023-07-12T02:14:11.356168 | 2021-08-12T09:08:42 | 2021-08-12T09:08:42 | 318,145,509 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 14,454 | hpp | calibration.hpp | /**
* @file calibration.hpp
* @copyright Copyright (c) 2020 University of Turku, MIT License
* @author Sebastian Hahta
*/
#pragma once
#include "../../module.hpp"
#include <ftl/calibration/object.hpp>
#include <ftl/calibration/extrinsic.hpp>
#include <ftl/calibration/structures.hpp>
#include <opencv2/core/types.... |
c0e8643f2788728dee06c37ffbba53fc90133857 | e27eb828b38e634279c767a4cf6d8caa2a35b018 | /ports-juce5/klangfalter/source/UI/IRComponent.cpp | 3d13070967524945e2517564e65b49648cd6fc76 | [] | no_license | DISTRHO/DISTRHO-Ports | 8d9ea43ac7f6264f1b28ff4150e432e43683a9b4 | f2dbaded0a05732e3499fa374a586e5b32370da5 | refs/heads/master | 2023-08-18T12:45:11.671939 | 2022-07-13T00:12:08 | 2022-07-13T00:12:08 | 16,835,158 | 233 | 45 | null | 2023-06-08T05:10:21 | 2014-02-14T11:14:11 | C++ | UTF-8 | C++ | false | false | 11,014 | cpp | IRComponent.cpp | /*
==============================================================================
This is an automatically generated file created by the Jucer!
Creation date: 8 Mar 2013 10:37:54am
Be careful when adding custom code to these files, as only the code within
the "//[xyz]" and "//[/xyz]" sections will... |
6a2809ec162653a698475c9b3595813c0702601e | ea969a48a512684fcc49e4eae48df26df165f91e | /src/findInterestSure.cpp | d27bec1b17a2b6f196e93217cfe2f1b499a8690b | [] | no_license | azaganidis/generalp | 1c08ba8cf3b77c5549fd08845fdf66a58da6b8a6 | 05191e889b2e7f93316bb62f87d3e94797ffd040 | refs/heads/master | 2020-04-17T14:09:26.794857 | 2016-12-20T15:02:05 | 2016-12-20T15:02:05 | 67,408,396 | 0 | 1 | null | 2016-10-21T13:22:53 | 2016-09-05T09:43:28 | C++ | UTF-8 | C++ | false | false | 3,458 | cpp | findInterestSure.cpp | #include <cmath>
#include <string>
#include <vector>
#include <sure/sure_estimator.h>
#include <pcl_conversions/pcl_conversions.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <ros/ros.h>
#include <sensor_msgs/PointCloud2.h>
using std::sin;
using std::cos;
using std::atan2;
float featureSize(1.2... |
3bf127d4b99205d79d065bbf4339d30f782e0c2d | 6b7bc2fb57178cb0430d73136fa8e3f04d26ae39 | /C#/SDK Samples/High Level COM/C++/Twin Turbo/VC SampleDlg.cpp | b078e093be717041db7b842b543bbc4a6753f0a5 | [] | no_license | pixalynxdev/dymoCafe | 2897345e233cab9b7578305cbdcc112b67b88c8b | 1ee742c8b78cb702f95b3933c35a210d20d70043 | refs/heads/master | 2020-03-21T22:19:11.060429 | 2018-06-29T07:50:52 | 2018-06-29T07:50:52 | 139,118,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,426 | cpp | VC SampleDlg.cpp | // VC SampleDlg.cpp : implementation file
//
#include "stdafx.h"
#include "VC Sample.h"
#include "VC SampleDlg.h"
#include ".\vc sampledlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CAboutDlg dialog used for App About
class CAboutDlg : public CDialog
{
public:
CAboutDlg();
// Dialog Data
enum { IDD = IDD_... |
b54de5aa36034e4389a5abea9b917d8669cf6ea5 | 6397057f97b6aefc2d4c95db0f2815aa8b3ebca8 | /codeforces/339/A.cpp | 0057cac80177b97acb8fa7da1ae758e1e0095a1b | [] | no_license | masterace007/codeforces_harwest | 7a212012e437d7809753c12022698ee819516205 | 8d35a4e9fd200ebce33fd99f26ea93ea5d30f509 | refs/heads/master | 2023-04-28T17:23:59.157691 | 2021-02-06T12:05:00 | 2021-05-16T16:41:54 | 330,159,824 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 786 | cpp | A.cpp | #include<bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define mod 1000000007
#define int long long int
#define hii cout<<"yes\n";
#define all(x) x.begin(),x.end()
#define deb(x) cout<<#x<<" : "<<x<<"\n";
#define FASTIO ios_base::sync_with_stdio(0);cin.tie(0);cin.t... |
7dd412c9a4d19dcf790d4418c0903aa4458beb39 | a330d03e8c306fa7179d9d3adc105f702640f6fb | /Maps/DAG.cpp | e0f5c5c6add0560db709a67dcc24ddc69a710841 | [] | no_license | davidbejenariu/Maps_OOP_Project1 | baa04dd8f51da408dcd9be93da8b2da92c635d19 | 47ef83579451d0173ed8452eb740665c8808ee0a | refs/heads/main | 2023-03-20T07:47:00.726755 | 2021-03-19T19:38:53 | 2021-03-19T19:38:53 | 349,536,735 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,506 | cpp | DAG.cpp | //
// Created by david on 18/03/2021.
//
#include "DAG.h"
void DAG::topologicalSort(int city, bool *visited, stack<int> &S)
{
int N = m_cities[city].getNeighboursCount();
Neighbour *neighbours = m_cities[city].getNeighbours();
visited[city] = true;
for (int i = 0; i < N; ++i)
{
int w = n... |
2cac0010f61a2656cda05dc72f05c96f25e89a09 | 3ec10fcbacdd8f9dc475a8ae6d146eaabc1eb3c2 | /Lesson-04/Final/src/main.cpp | 6186ede0c971468bccfac83dc3cdd970c11984f9 | [
"MIT"
] | permissive | tomaszbabiuk/esp8266-training | 5fb462a041779fde6d826c9ac21174343a49b0b6 | 0597265297a7c167c971da90dd228b9bd106af1a | refs/heads/master | 2020-07-26T21:42:13.468808 | 2019-09-30T10:44:12 | 2019-09-30T10:44:12 | 208,773,945 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 825 | cpp | main.cpp | #include <Arduino.h>
#include "Morse.h"
Morse morse;
String s;
void receiver(char e) {
// receiving a message (letter by letter)
Serial.print(e);
delay(50);
}
void transmiter(uint8_t e) {
s += String(e);
if (e == MORSE_GAP) Serial.print("");
if (e == MORSE_CHAR) Serial.print("/");
else if (e == MORS... |
cfce9682579e110f176992fd7c04d6f99d914862 | fcdea24e6466d4ec8d7798555358a9af8acf9b35 | /Engine/mrayEngine/include/CommonValueProviders.h | adc1df4b2165a275c2c0bcb2aea574bb0356d710 | [] | no_license | yingzhang536/mrayy-Game-Engine | 6634afecefcb79c2117cecf3e4e635d3089c9590 | 6b6fcbab8674a6169e26f0f20356d0708620b828 | refs/heads/master | 2021-01-17T07:59:30.135446 | 2014-11-30T16:10:54 | 2014-11-30T16:10:54 | 27,630,181 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 847 | h | CommonValueProviders.h |
/********************************************************************
created: 2014/03/03
created: 3:3:2014 15:43
filename: C:\Development\mrayEngine\Engine\mrayEngine\include\CommonValueProviders.h
file path: C:\Development\mrayEngine\Engine\mrayEngine\include
file base: CommonValueProviders
file ex... |
f666aed6a59fc8feb93ff765673d24f3c5c19a21 | b133065419866205155d0cea5ff85a833dc32d64 | /testing/old/balance_optim.cpp | f7eef8ce4926ac58f4da9cb07876bb4f5cfd9674 | [] | no_license | mcomas/coda.base | 985a7e99b66abea34cbdb04457c00c7a693ad778 | ef9e03e345ff8c9e980f5bdc716999cf105ccffc | refs/heads/master | 2023-03-05T07:16:35.090759 | 2023-03-01T17:47:03 | 2023-03-01T17:47:03 | 97,572,580 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,952 | cpp | balance_optim.cpp | #define ARMA_NO_DEBUG
// [[Rcpp::depends(RcppArmadillo)]]
#include <RcppArmadillo.h>
#include "balance.h"
#include "coda.h"
class PredictiveBalance: public EvaluateBalance {
arma::mat lY;
arma::mat x;
public:
PredictiveBalance (arma::mat Y, arma::mat X): EvaluateBalance(X.n_cols){
lY = log(Y);
x = X;
... |
8636ca61f1d02f49ad931907c3bdfd3190f559d9 | 91863cbd27940164ed20f2b27b227e9d83f889bc | /1ยบSemestre/Programaรงรฃo C/Lista 1 (5ยชaula)/Exercicio17(lista aula 5).cpp | 703b1ccacccf871b88f878876a1a270da44a6fe8 | [] | no_license | leonardoaguirre/UMC | dba6b6122ad8ccf7e5f40089d3274e9ea938ff73 | 4b687b3c643a388e617b6d94ecc97af2d154d5cb | refs/heads/main | 2023-06-05T18:27:41.558430 | 2021-07-06T00:17:33 | 2021-07-06T00:17:33 | 382,501,662 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 631 | cpp | Exercicio17(lista aula 5).cpp | #include <stdio.h>
/* Funรงรฃo do programareceba as duas dimensรตes de um cรดmodo (em metros). Calcule e mostre a sua
รกrea (em m2) e a potรชncia de iluminaรงรฃo que deverรก ser utilizada.
Programador: Leonardo
Data:08/03/18*/
main ()
{
float LadoA, LadoB, Pot, M2;
printf ("Programa para calcular a potencia da lampada por com... |
951d3358f9e1d58697183d7ca26dd411d7f98ed5 | 508188ce839f454a128c3a1e9bb50c09cb83fcc0 | /DotNet/IlAsm2Cpp/bin/Release/il2cpp/Root.T_x3.cpp | 5537cb2583f734c19fe4e17849611593021b8567 | [] | no_license | dreamanlan/OldWork | 1162bd208c9c5697ac4a30570b134c8b717e6ee6 | f49b780e7094ae8d4be6920da0a900a5feb5cce8 | refs/heads/master | 2020-07-02T06:35:07.616480 | 2019-09-29T02:32:50 | 2019-09-29T02:32:50 | 67,272,042 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 360,169 | cpp | Root.T_x3.cpp | #include "global_xref.h"
inline Root::T_x3::T_x3(Reflector::IAssemblyBrowser^ A_0,Reflector::CodeModel::IAssemblyManager^ A_1,Reflector::ICommandBarManager^ A_2)
{
//temp variables , should be optimized by C++/cli compiler.
Root::T_x79^ Temp_0 = nullptr;
Root::T_x79^ Temp_1 = nullptr;
Root::T_x3::T_x5^ Temp_2 = nu... |
9328205382474a88e16a4c7a13b9315f381d5e09 | 509b32cf65d208b8f6284b139999b59a29556d1b | /alvere/alvere/src/alvere/graphics/material_instance.hpp | 7a16ee8389ffaec257ea487c47cd8f46a3a9921b | [] | no_license | geoorgeous/alvere_engine | 1725b57aea848635cc667a0d64d66be54d8079ed | 71176a6690ffd46c0b1953450afaa6fb4b990647 | refs/heads/master | 2021-08-04T06:05:12.879753 | 2020-05-18T21:43:08 | 2020-05-18T21:43:08 | 172,511,977 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,596 | hpp | material_instance.hpp | #pragma once
#include "alvere/graphics/material.hpp"
#include "alvere/graphics/texture.hpp"
#include "alvere/math/matrix/matrix_4.hpp"
#include "alvere/math/vectors.hpp"
namespace alvere
{
class MaterialInstance;
struct IMaterialPropertyData
{
const MaterialPropertyInfo * m_propertyInfo;
protected:
friend ... |
96b12a6f2c8c54ee19d3323f34980ccbb93e8168 | 0cd6775e19970891b2d4589c21f40f29e470b5e7 | /includes/html.h | 83b48e263022e69c24b1fb26ba9e491928f3f59b | [
"PHP-3.01"
] | permissive | wxphp/wxphp | c36fdf8ad6e14add274321839d18d7df54074237 | 3f0d139babe6e20444d381eeb9c4548c335c9529 | refs/heads/master | 2023-08-28T12:10:21.522326 | 2023-07-12T11:59:00 | 2023-07-12T11:59:00 | 4,215,368 | 290 | 58 | NOASSERTION | 2023-07-12T11:59:01 | 2012-05-03T15:25:55 | C++ | UTF-8 | C++ | false | false | 110,616 | h | html.h | /*
* @author Mรกrio Soares
* @contributors Jefferson Gonzรกlez
* @contributors Renรฉ Vรถgeli / Rangee GmbH
*
* @license
* This file is part of wxPHP check the LICENSE file for information.
*
* @note
* This file was auto-generated by the wxPHP source maker
*/
#ifndef WXPHP_HTML_H_GUARD
#define WXPHP_HTML_H_GUAR... |
e3478ccaea0d998cbffd12f2564d6c12b6f86ed4 | c1c5a8dc79cacf3b419bad77881213c5db2f80c3 | /UVa/C++/374.cpp | 9fdf6d90ad1237675790cc7a2c37649b895eb943 | [] | no_license | EoinDavey/Competitive | 7ff8b6b6225814ac60c3ace659bb63190eb52420 | b2b6909b93f5c073b684477f8a4b06dac22ec678 | refs/heads/master | 2023-01-08T00:06:19.076941 | 2022-12-26T14:00:31 | 2022-12-26T14:00:31 | 67,259,478 | 17 | 1 | null | 2022-01-19T18:17:59 | 2016-09-02T22:46:26 | C++ | UTF-8 | C++ | false | false | 680 | cpp | 374.cpp | #include <stdio.h>
#include <iostream>
#include <string>
#include <sstream>
#include <cmath>
#include <climits>
#include <stdlib.h>
#include <vector>
#include <string.h>
#include <stack>
#include <algorithm>
#include <queue>
#include <stdint.h>
using namespace std;
int main(){
long long int B,P,M;
while(cin >> B >> P... |
d02404184753380aa9b4c9a7b290442fe4ae8f84 | 06b39f0bac43504a69c3c2e09c865ced75bef5fa | /Project to Debug/debugExerciseProject/Debugging Exercise/Zergling.h | 78d9c725a2041b7af363bbd8e26bc9829537c64a | [] | no_license | EthanSewall/CPP-assessment | 0689106351976bf01ebf0de2f40bc036bf79419f | b6007b23397c6960f74b8c1cb18aee381f49f919 | refs/heads/main | 2023-01-27T16:05:12.453450 | 2020-12-10T23:42:26 | 2020-12-10T23:42:26 | 314,660,473 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 164 | h | Zergling.h | #pragma once
class Zergling
{
public:
Zergling();
~Zergling();
int health = 10;
int attack();
void takeDamage(int damage);
bool isAlive(Zergling ling);
};
|
864ab896dc1cf4e186c96dc6cbff8878c12e219e | 74362e40264edb43ac0383b5668ecee84839a7a7 | /cpp/lifegame_sdl/model.hpp | 4de1d165423be9e78c0a22cf1d5673a678ebf0a0 | [] | no_license | arch-jslin/mysandbox | 96625e0fcf156098a9ab9eb44a46b64becaf0bd5 | ab93dd2d695e5712637d2821497226847ca3d1af | refs/heads/master | 2021-03-13T00:11:15.419018 | 2020-06-20T15:00:37 | 2020-06-20T15:00:37 | 670,355 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,585 | hpp | model.hpp | #ifndef _LIFEGAME_MODEL_
#define _LIFEGAME_MODEL_
template<typename T>
inline int neighbor_count(T old, size_t const& y, size_t const& x)
{
int count = (old[y-1][x-1] + old[y-1][x] + old[y-1][x+1]) +
(old[y][x-1] + old[y][x+1]) +
(old[y+1][x-1] + old[y+1][x] + old... |
b2dac923eee5343ffff53f7c6404785986bfd48f | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/policy/test/accessibility_policy_browsertest.cc | bc3bcf8bd72fafb63128999643e528ec85f78d5d | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 21,549 | cc | accessibility_policy_browsertest.cc | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/constants/ash_pref_names.h"
#include "build/build_config.h"
#include "chrome/browser/ash/accessibility/accessibility_manager.h"
#include "chrome/browser/ash/acces... |
5a3a5c7fc0fabb62eeba84ee8536d2e934acef32 | d40deaab4681f6dd0a6a4d919a5a8381397b1a0b | /Cses_Introductory/permutations.cpp | 5fc2ce26ef7d25a9b8ffbf460e5b30c377321805 | [] | no_license | harrdy272/CSES-Problem-Solutions | 13be95158e54b90f5984d572ba68e393d6872626 | 94d82457bb70bdaee04c23c2b3ae0ee21f863eb4 | refs/heads/master | 2023-01-24T08:14:37.767796 | 2020-12-06T10:31:14 | 2020-12-06T10:31:14 | 315,845,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 550 | cpp | permutations.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int n;
cin>>n;
if(n==1){
cout<<1<<endl;
}
else if(n==2 || n==3){
cout<<"NO SOLUTION"<<endl;
}
else{
int arr[n];
int i=0,j=2,k=1;
while(j<... |
8e0617efee39f5d0015b357897ebf744200c9672 | 67d83d35a19f512279ea38bd83ea538a1dde5854 | /LBM-cpu/src/lbm.cpp | 0fd7f6afa220e91620774667e1f1069192e3a719 | [] | no_license | ryan42210/LBM_solver | 9551862f20bade8f1b47ff55abf2b3912856aa00 | 0316af581a50cc4c8c768e368011bad4701dba3a | refs/heads/main | 2023-08-03T22:20:25.761853 | 2021-09-18T10:54:38 | 2021-09-18T10:54:38 | 407,834,747 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,370 | cpp | lbm.cpp | //
// Created by ryan on 2021/8/26.
//
// OpenGL specific headers
#include <GLFW/glfw3.h>
// the usual gang of C++ headers
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <ctime> // clock_t, clock(), CLOCKS_PER_SEC
#include <omp.h>
// problem parameters
const int N = 128; ... |
0139a0d499055a2ff950394fc318d46161efc678 | 4b8c9495b0296b349b54b4f1d5f6a8f0469c479d | /api/include/stm32f446/USART.h | 6ee52c849e1fe2c14c39d699ae2495fe435ff40d | [] | no_license | isundaylee/stm32 | b3bc5defce06409b0e3b02b5856d1f104508bc44 | 07adefc89d3c0b6f3da46f980050e97b7fc794c0 | refs/heads/master | 2020-03-07T21:26:59.087527 | 2019-06-03T01:27:25 | 2019-06-03T01:27:48 | 127,726,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | h | USART.h | #pragma once
#include <DeviceHeader.h>
#include <RingBuffer.h>
const size_t USART_RX_BUFFER_SIZE = 32;
extern "C" void isrUSART1();
extern "C" void isrUSART2();
extern "C" void isrUSART3();
extern "C" void isrUSART6();
class USART {
private:
USART_TypeDef* usart_;
RingBuffer<uint8_t, USART_RX_BUFFER_SIZE> buff... |
ea7dea1b98a191b01bde3180b69b22a2e5eb3037 | 47a4b9901faf9742273b02ba14444d8d555b65a4 | /LAN QIAO/G.cpp | 61defa15158a7109cc763007ba3a282406285582 | [] | no_license | Aulene/Competitive-Programming-Solutions | a028b7b96e024d8547e2ff66801e5377d7fb76cd | 81d2705263313755399f2e3b6e01e029d40f61a6 | refs/heads/master | 2021-06-27T20:03:53.657351 | 2019-04-25T19:48:29 | 2019-04-25T19:48:29 | 101,798,734 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,799 | cpp | G.cpp | #include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define int long long int
#define mod 1000000007
#define p push
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define vi vector <int>
#define vvi vector < vector <int> >
#define pi pair <int, int>
#define ppi pair < pair <... |
0df7d51b6d6127e1a37984e00eb615a5db0c6cdd | b6cddb6389285c3ceaf8ffa3320963bae522189d | /contest_training/2018ICPC็ฝ็ป่ต/4็ฆไฝ่ต/G.cpp | 13ff30243ff176d89e4f08b558dad8ba598684ca | [] | no_license | BBBob/Pikachu-s-naughtiness | a60f4c552fa71dbe37d7c04d68c112a7cbbc4f77 | 034efaa214bd212693d54ecda969d92f31533154 | refs/heads/master | 2021-07-13T08:32:40.464526 | 2018-10-04T13:44:45 | 2018-10-04T13:44:45 | 129,676,531 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | G.cpp | //#define test
#include<bits/stdc++.h>
using namespace std;
const int Nmax=1e6+7;
typedef long long ll;
const ll mod = 1e9+7;
char s[Nmax];
ll a,b,c,inv[Nmax];
inline ll qpow(ll base,ll n)
{
ll ans=1LL;
base%=mod;
while(n>0)
{
if(n&1)
ans=ans*base%mod;
base=base*base%mod;
... |
249c112dffb7a353d15328048353d97174aca453 | c2e4358e1e510546481f5e80c0f7b38b247801ef | /float/4DPlugin.cpp | 2f48bb94682f3fe85f90c63382378b36e7c5620f | [] | no_license | miyako/4d-plugin-float | 3c79a658e56ca9338a2c03fb8a11547e60643e31 | 4092cda2f44dfdcbfb3660237d0296fe7f556d53 | refs/heads/master | 2020-04-25T14:47:34.167119 | 2019-10-19T23:36:22 | 2019-10-19T23:36:22 | 172,854,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,324 | cpp | 4DPlugin.cpp | /* --------------------------------------------------------------------------------
#
# 4DPlugin.cpp
# source generated by 4D Plugin Wizard
# Project : Float
# author : miyako
# 2019/02/27
#
# --------------------------------------------------------------------------------*/
#include "4DPluginAPI.h... |
075602c7d715895a4ae763d79be879b4f1a16ca3 | 8d9dda309a910eed7066384558ebecefc928a60d | /DxLibTacticalGame/src/Battle/BUI/UnitStatusDisplay.cpp | 7504a5fa70935dfa9b9c7086e0cbadf33d66bbfd | [
"MIT"
] | permissive | mngh1200/DxLibTacticalgame | e7e4aa22018449bc35d76c977bcc96a2ffd2d8d3 | c471637fa498f5605096c8873aa8acfe1b317e2a | refs/heads/main | 2023-04-26T10:58:22.444709 | 2021-05-24T14:24:11 | 2021-05-24T14:24:11 | 311,380,285 | 0 | 1 | MIT | 2020-11-15T08:03:16 | 2020-11-09T15:23:05 | null | SHIFT_JIS | C++ | false | false | 4,640 | cpp | UnitStatusDisplay.cpp | #include "UnitStatusDisplay.h"
namespace Entity {
/**
* @fn
* ใณใณในใใฉใฏใฟ
*/
UnitStatusDisplay::UnitStatusDisplay()
: animation_{}, extraStatusHoverId_ (EXTRA_STATUS_ID_NONE)
{
shape_.set(X, WIN_H, WIDTH, BUI_LINE_HEIGHT * BUI_LINE_COUNT + BUI_LINE_MARGIN);
}
/**
* @fn
* ๆ็ป
*/
void UnitStatusDisp... |
9c2de8b33bd20ffb72618d61b588f488b39d28cc | 853e9e098a5a003ae80750fba2c9abc94d6cfe2d | /src/Cross.h | 76c6a3c1cab4ae019c98e8906a394b3c19944ef2 | [] | no_license | YoukaiCat/QtCBM | 5bebf8dd7c4462d64f5b173e17a7460b3adca1a9 | e1dbe60c69d7d01818ba61ab85e9dc45f94b010d | refs/heads/master | 2021-05-06T09:02:25.041897 | 2017-12-12T21:15:25 | 2017-12-12T21:15:25 | 114,039,898 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 315 | h | Cross.h | #ifndef CROSS_H
#define CROSS_H
#include <QString>
#include <QWidget>
class Cross
{
public:
Cross(const QString& marker);
virtual ~Cross();
virtual QWidget* getWidget() = 0;
QString getMarker() const;
void setMarker(const QString& value);
private:
QString marker;
};
#endif // CROSS_H
|
d433db643d71d5101953f23154c34a2e5cee4804 | 4b15494c1fac858b83d26c99e071580efa554368 | /Source/Allogen/JNI/Converter/Map.hpp | 84110242af6e9e712b9d460eab7efecea51ba11b | [
"BSD-3-Clause"
] | permissive | Allogica/Allogen | 87c9b58c26446cfe6ab7e158b5074e3d30ed5d73 | ec3b82544659403896d95ed933890b761b35cddb | refs/heads/master | 2020-07-12T05:46:25.663068 | 2019-05-16T17:23:46 | 2019-05-16T17:23:46 | 94,276,348 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,125 | hpp | Map.hpp | /*
* Copyright (c) 2017, Allogica
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of c... |
d327fda00f5597c2d4b8122a427c6018a57ef635 | 96b946f54a8283ec11c44a6cadae67d4d0371fcf | /cpp/c4_exercise_1.cpp | 748e4dd6947df39e82cfce77d8f0e7f3ae5f5775 | [
"MIT"
] | permissive | DeactivatedWhatSoever/code | ce351597001a3df078e7a10966f5693afcf1064f | f5fc0a7e25ebfbe7efe2bff13d745683fce6a9d5 | refs/heads/master | 2022-01-30T07:00:37.413297 | 2019-07-04T04:37:38 | 2019-07-07T04:37:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | cpp | c4_exercise_1.cpp | #include <iostream>
enum Chess
{
King,
Queen,
Bishop,
Knight,
Rook,
Pawn,
Empty
};
int main()
{
Chess chessBoard [8][8] = {
{ Rook, Knight, Bishop, Queen, King, Bishop, Knight, Rook },
{ Pawn, Pawn, Pawn, Pawn, Pawn, Pawn, Pawn, Pawn },
{ Empty, Empty, Empty, Empty, Empty, Empty, Empty, Em... |
ae9670d6d133a150a887d23ff3c440211dc62318 | 145b146c6a316d3f3e4a3e598f34ba10750421a9 | /VSIDHandler/VSIDHandler.cpp | c86e5ec51e195dffe5f6dc27ba005363cebaf313 | [] | no_license | ajorians/FlowdockBot | e0ae5e352837236b74dbd6ab8e760dde5e4e36ec | 6eb5f8daa63df189bb4a93d72674850a6edb1cb8 | refs/heads/master | 2021-01-18T15:16:39.208146 | 2015-02-09T14:39:41 | 2015-02-09T14:39:41 | 26,290,095 | 0 | 0 | null | 2014-11-12T16:40:10 | 2014-11-06T21:06:02 | C++ | UTF-8 | C++ | false | false | 7,347 | cpp | VSIDHandler.cpp | #include "VSIDHandler.h"
#include "HandlerAPI.h"
#include <sstream>
#include <stdlib.h>
#include <cstring>
int StringToInt(const std::string& str)
{
return atoi(str.c_str());
}
std::string IntToString(int nValue)
{
std::ostringstream oss;
oss << nValue;
return oss.str();
}
void Replace(std::string& s, c... |
485746772ec97aed826bf3e97b0dbdee6f46f821 | ace194a37091c9e43262e3f73dc3a6f64f40ea53 | /src/solvers/heatConduction.hpp | 6ae441c6a9104c536d5672e8c5f41e05dc7c07c3 | [
"MIT"
] | permissive | jtoumey/fieldSolve | 04db57bbb8c995ddd4f72f2f317342a6b7a14c39 | 14c4ace19ca5ccd460cf57db960762cee271adde | refs/heads/master | 2022-11-21T13:57:17.409938 | 2020-06-26T19:31:03 | 2020-06-26T19:31:03 | 200,500,519 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54 | hpp | heatConduction.hpp | #ifndef HEATCONDUCTION_HPP
#define HEATCONDUCTION_HPP
|
56f921bbad7881da70bab33cff30bf1c6cd4f21c | 009a6da4eaede647ec83fe1f253402315bb3390e | /annlight/include/SVDSolver.h | c6c233b0a92ea8833dfee4ac4e142991a2d4eb0d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | scimerc/sparrow | 5a8901cebe1b9af7bb85c93b9bf3922454e8d146 | 29743d186f8eb477da411ca0da4f5b3e147590ce | refs/heads/master | 2021-06-16T09:29:16.880587 | 2017-04-05T11:18:18 | 2017-04-05T11:18:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,068 | h | SVDSolver.h | #ifndef SVD_SOLVER_H_
#define SVD_SOLVER_H_
#define SVD_SYMMETRIC_STORAGE
typedef enum t_solving_type
{
TAKE_BEST,
TAKE_ABOVE_THRESHOLD,
LEAVE_OUT_WORST,
LEAVE_OUT_BELOW_THRESHOLD,
TAKE_PERCENTAGE
};
/**
* The class contains all data of the linear equation system as well as the eigenvalues and eigenvector... |
78ef5e70990341dca51859aa21a5700ce090bb38 | b9600cf869519c83dd28b9d04e125d5c65300fa1 | /Casper_Seq_Finder/main.cpp | d6117c475aa72d27e934725bba1272f03b8445bb | [] | no_license | bdoze90/Casper_Seq_Finder | 08539b1bbd3a98cffa3ebd8172594fffa1249fda | 14c72204fb3bcba3d6ae3db2b965f9e084ef6eb4 | refs/heads/master | 2021-06-17T06:02:26.909707 | 2020-01-22T19:49:40 | 2020-01-22T19:49:40 | 129,822,840 | 0 | 1 | null | 2020-01-22T19:49:41 | 2018-04-17T00:31:02 | C++ | UTF-8 | C++ | false | false | 6,290 | cpp | main.cpp | //
// main.cpp
// Casper_Seq_Finder
//
// Created by Brian Mendoza on 3/26/16.
// Copyright (c) 2016 Brian Mendoza. All rights reserved.
//
#include <iostream>
#include <ctime>
#include "Read.h"
#include <string.h>
#include <vector>
#include <set>
#include "gRNA.h"
#include "CrisprGroup.h"
#include "set.h"
#includ... |
0587e38e8309b8574ad2c531de52b043d3fbba82 | ae4dbf03315419da05e7ba1bf897f527d161db73 | /src/JHelper.cpp | 5e6972781204d70f1b9968440153516c23031437 | [] | no_license | Jdasi/ATBlock2 | da0d05f9f6431474bfe9914cfdec8cea100e77b6 | 7986d167b2dce1e58728bdb1bce97a3028228e39 | refs/heads/master | 2021-09-09T04:17:44.296993 | 2018-03-13T19:52:37 | 2018-03-13T19:52:37 | 109,885,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 951 | cpp | JHelper.cpp | #include "JHelper.h"
int JHelper::calculateIndex(const unsigned _x, const unsigned _y, const unsigned _size_x)
{
return (_y * _size_x) + _x;
}
DirectX::XMINT2 JHelper::calculateCoords(const unsigned int _index, const unsigned int _size_x)
{
DirectX::XMINT2 coords;
coords.x = _index % _size_x;
coord... |
ef54c46be8479cb51cd1476f28f0684a71e6fca7 | 028173f576b5f2364b800bbfca3dc6be8a238bc3 | /include/asio2/rpc/rpc_session.hpp | 770067b5f19664cd52026f615a41650b559ae2b4 | [
"ICU",
"BSL-1.0"
] | permissive | zhllxt/asio2 | ca6f98b0c599ebb3eeb13cd79ddb9db6e8ca3666 | ac8c79964d79020091e38fcbb4ae9dccccb3b03c | refs/heads/main | 2023-09-02T18:56:45.036564 | 2023-05-09T04:57:23 | 2023-05-09T04:57:23 | 108,554,985 | 636 | 166 | BSL-1.0 | 2023-04-10T09:27:16 | 2017-10-27T14:17:35 | C++ | UTF-8 | C++ | false | false | 9,353 | hpp | rpc_session.hpp | /*
* Copyright (c) 2017-2023 zhllxt
*
* author : zhllxt
* email : 37792738@qq.com
*
* Distributed under the Boost Software License, Version 1.0. (See accompanying
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
*/
#ifndef __ASIO2_RPC_SESSION_HPP__
#define __ASIO2_RPC_SESSION_HPP__... |
765a53757fe299e9902f716e48cdf6de9831d1f2 | 0f08276e557de8437759659970efc829a9cbc669 | /tests/p74.cpp | aef1b9bc793d0db384982be2aa523ac650fd9732 | [] | no_license | petru-d/leetcode-solutions-reboot | 4fb35a58435f18934b9fe7931e01dabcc9d05186 | 680dc63d24df4c0cc58fcad429135e90f7dfe8bd | refs/heads/master | 2023-06-14T21:58:53.553870 | 2021-07-11T20:41:57 | 2021-07-11T20:41:57 | 250,795,996 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | cpp | p74.cpp | #include "pch.h"
#include "../problems/p74.h"
TEST(p74, t0)
{
p74::Solution s;
std::vector<std::vector<int>> mat = {{1, 3, 5, 7}, {10, 11, 16, 20}, {23, 30, 34, 50}};
auto res = s.searchMatrix(mat, 3);
EXPECT_TRUE(res);
}
TEST(p74, t1)
{
p74::Solution s;
std::vector<std::vector<int>> mat ... |
9c2d4a2fdbc62ea2528be717f64187b39fd30fe6 | 5aa338927cc045e2cf92c95ab0a4ecaa03f378c5 | /USACO/2016-2017 Season/January/Bronze/notlast.cpp | 08b8b39cfa941c53ed727d157ddaedda8b2c5813 | [] | no_license | walnutwaldo/Programming_Contests | 40cc236a1336be881aad82867be96ef52aaf2c5e | cd83bdb117d82b0eeb89701ed4ea719fe80313a8 | refs/heads/master | 2022-12-11T13:17:09.867234 | 2022-12-04T16:03:49 | 2022-12-04T16:03:49 | 98,487,399 | 28 | 5 | null | 2017-12-24T02:57:21 | 2017-07-27T02:56:50 | C++ | UTF-8 | C++ | false | false | 1,423 | cpp | notlast.cpp | #include <bits/stdc++.h>
#define SQ(a) (a)*(a)
#define F0R(i, a) for(int i = 0; i < (a); i++)
#define FOR(i, a, b) for(int i = (a); i < (b); i++)
#define R0F(i, a) for(int i = (a) - 1; i >= 0; i--)
#define ROF(i, a, b) for(int i = (a) - 1; i >= (b); i--)
#define F first
#define S second
#define PB push_back
#define ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.