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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1a91fd69b846ab4cb9cb1e429e02b506d70993cd | bbde14e3268e9ce97ccd36ba61f1695cd3d709bc | /Algorithm Practice/attemptPrimeNumberFinder.cpp | 0453eb9f35b88f3e659663c055b232c5d57feb09 | [] | no_license | johnwsmithv/Programming-Projects | 1ff5359014a2ecd286e291b7dc2df21fdc37c038 | 77273abc3a6ebfd015afbbbad48f6e3221914735 | refs/heads/master | 2022-05-30T16:25:03.278416 | 2022-05-28T13:48:15 | 2022-05-28T13:48:15 | 237,014,814 | 1 | 0 | null | 2020-10-14T00:21:19 | 2020-01-29T15:24:12 | Java | UTF-8 | C++ | false | false | 2,134 | cpp | attemptPrimeNumberFinder.cpp | #include <vector>
#include <iostream>
#include <Windows.h>
#include <omp.h>
inline long double PerformanceCounter() noexcept
{
LARGE_INTEGER li;
::QueryPerformanceCounter(&li);
return li.QuadPart;
}
inline long double PerformanceFrequency() noexcept
{
LARGE_INTEGER li;
::QueryPerformanceFrequency(... |
3f5a5c79230548f392fb2c12313f20c5d00470ea | 7f3b8c3110a0b2d037082cca05afd5ab6bb07384 | /模拟-官员点人/模拟-官员点人/main.cpp | 11cc87747cbc9575e24d5a81c2fbecadad913e56 | [] | no_license | SHIELD-SKY/Practice-of-Date-Structures | 5c1cffd98f58f42a61b7f8a562e08823209bb7e3 | 2b3b61d3d24709c044e8f09550ec287bb0532ccd | refs/heads/master | 2021-07-08T15:24:11.466778 | 2020-07-10T12:39:04 | 2020-07-10T12:39:04 | 147,606,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | cpp | main.cpp | //
// main.cpp
// 模拟-官员点人
//
// Created by APTX on 9/2/2019.
// Copyright © 2019 APTX. All rights reserved.
//
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <string>
#include <algorithm>
#include <cmath>
const int maxn = 25;
int flag[maxn];
void shu(int &a, int t, int d, in... |
e1afbb0341292ea3c9c194ebc655f81ec521fef6 | 2b2da3c294d188fa7c2795364ab26859e29ffb87 | /OFSample-Windows/depends/dwinternal/framework2015/include/yycomponent/yychannellogic/private/yychannelLogic_i.h | d72e3b7388370175623004e9f576cc1933f62ac0 | [] | no_license | JocloudSDK/OFSample | 1de97d416402b91276f9992197bc0c64961fb9bd | fa678d674b3886fa8e6a1c4a0ba6b712124e671a | refs/heads/master | 2022-12-28T05:03:05.563734 | 2020-10-19T07:11:55 | 2020-10-19T07:11:55 | 294,078,053 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,509 | h | yychannelLogic_i.h | #pragma once
#include "dwbase/dwcomex.h"
#ifndef DW_COMPONENT_ENV
#include "biz/biz_channel.h"
#endif
#include "yycomponent/yychannel/yychannelinfo_i.h"
#include "yycomponent/yychannel/yychannelecho_i.h"
class IPannelButtonMagr;
class IBulletinMagr;
define_interface(IChannel);
class YYChannelComponentServiceImpl
{... |
9cc0d45cd749dda6de88bf092e8e40cdab51237a | 78b28019e10962bb62a09fa1305264bbc9a113e3 | /common/modular/static/modular_io.h | d84a04cdae8cd037be3ad8134bb9053e2de46f17 | [
"MIT"
] | permissive | Loks-/competitions | 49d253c398bc926bfecc78f7d468410702f984a0 | 26a1b15f30bb664a308edc4868dfd315eeca0e0b | refs/heads/master | 2023-06-08T06:26:36.756563 | 2023-05-31T03:16:41 | 2023-05-31T03:16:41 | 135,969,969 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 614 | h | modular_io.h | #pragma once
#include "common/modular/static/modular.h"
#include <istream>
#include <ostream>
namespace modular {
namespace mstatic {
template <uint64_t mod, bool is_prime, bool is_32bit>
inline std::ostream& operator<<(std::ostream& s,
const Modular<mod, is_prime, is_32bit>& m) {
re... |
555c7607adaa2b6d4c7e1daa8c013c5fc9701cdc | f73a36db6fa9f53cb1524fda87a341f494ae60a4 | /doubly-linked-list/genDLList.h | 7ab64d3822a5230ac36dfd6e1f6818d3a477c946 | [] | no_license | tianyuyifang/data-structures-and-algorithms-c- | ac7b5bfc99881e5da4a5404eb10e1f9f603584d6 | ab38070bff543377fcbd925e77a72c53f9ce0f37 | refs/heads/master | 2021-05-14T03:04:58.090041 | 2018-01-10T00:32:33 | 2018-01-10T00:32:33 | 116,612,087 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 727 | h | genDLList.h | #ifndef DOUBLY_LINKED_LIST
#define DOUBLY_LINKED_LIST
template<class T>
class DLLNode{
public:
DLLNode() {
next = prev = 0;
}
DLLNode(const T& val, DLLNode *n = 0, DLLNode *p = 0) {
info = val;
next = n;
prev = p;
}
T info;
DLLNode *next, *prev;
};
template<class T>
class DoublyLinkedList {
public:
D... |
4e252f8f2077e653e6966d06a453000adc732f4f | fe843923c3e8dc09e445229ea1e18cd3f0910587 | /mystring/string.hpp | cf7dd35b43535715197248aeb79e72757a2f2519 | [
"MIT"
] | permissive | dtoma/cpp | 815d5613a87db602a800d754391e8b989a0aefd7 | 1c6c726071092d9e238c6fb3de22fed833a148b2 | refs/heads/master | 2021-01-18T17:38:56.027685 | 2020-04-22T07:09:37 | 2020-04-22T07:09:37 | 70,047,111 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,958 | hpp | string.hpp | #pragma once
#include <climits>
#include <cstring>
#include <iterator>
#include <memory>
#include <string>
/**
* Implement bit-fiddling helper functions for the SSO.
*/
namespace
{
static std::size_t const high_bit_mask = static_cast<std::size_t>(1) << (sizeof(std::size_t) * CHAR_BIT - 1);
static std::size_t const... |
eeb7cabc6d70f95e3565018e263f861901e0304b | 7b1a4f705d331ca543cc46641ada12df616a684b | /example/Analyzer.hxx | 2dcf0129b6706f8a3c88dbc5d73758326f093ba5 | [] | no_license | gchristian321/rootbeer | 5070b229d377e1e7841464a080df322b57e87be0 | 16734e566d711a0734b890a50777bbb51aa8ef54 | refs/heads/master | 2020-05-30T06:45:04.205238 | 2013-09-18T03:00:09 | 2013-09-18T03:00:09 | 3,372,154 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | hxx | Analyzer.hxx | ///
/// \file Analyzer.hxx
/// \brief Example analysis codes for an experiment.
///
#ifndef ROOTBEER_ANALYZER_ANALYZER_HXX
#define ROOTBEER_ANALYZER_ANALYZER_HXX
/// Number of detector channels
static const int NUM_CHANNELS = 32;
/// Sample Class for a detector
class Detector {
public: // Methods
/// Calls Reset();
... |
21b59d53b77eb368d1a19bb14d3a98c77328a117 | 8f11b828a75180161963f082a772e410ad1d95c6 | /packages/sonar/test/src/TestFFTWSpectrum.cpp | 754e13dae5a04898f1d870c000921eafb3db13bf | [] | no_license | venkatarajasekhar/tortuga | c0d61703d90a6f4e84d57f6750c01786ad21d214 | f6336fb4d58b11ddfda62ce114097703340e9abd | refs/heads/master | 2020-12-25T23:57:25.036347 | 2017-02-17T05:01:47 | 2017-02-17T05:01:47 | 43,284,285 | 0 | 0 | null | 2017-02-17T05:01:48 | 2015-09-28T06:39:21 | C++ | UTF-8 | C++ | false | false | 1,532 | cpp | TestFFTWSpectrum.cpp | /**
* TestSparseSDFTSpectrum.cpp
*
* @author Leo Singer
* @author Copyright 2008 Robotics@Maryland. All rights reserved.
*
*/
#include <UnitTest++/UnitTest++.h>
#include <cstdlib>
#include "Sonar.h"
#include "spectrum/FFTWSpectrum.h"
#include "spectrum/SDFTSpectrum.h"
using namespace ram::sonar;
using namespac... |
797a960a32ad5746e401d12364b2b2dc39c945a7 | 69e1199b2daffa17e4842e94a54be152df540828 | /暑假集训/暑假集训2/图论/最大流模板(通过北大1273但是考虑残留的话应该可以更快一些).cpp | 94b4fe64c3f0c0d15bb980d70608ad43d61451cf | [] | no_license | shaobozhong/myAcmCodes | 8c63e7992d0975626e6e583a49e59fe03f73017c | 55b31b8a4600fd3084795f71ac0d244cbdc58800 | refs/heads/master | 2023-08-04T20:05:29.165456 | 2023-07-26T03:19:52 | 2023-07-26T03:19:52 | 21,147,335 | 0 | 1 | null | 2023-07-26T03:19:53 | 2014-06-24T00:49:13 | null | GB18030 | C++ | false | false | 1,732 | cpp | 最大流模板(通过北大1273但是考虑残留的话应该可以更快一些).cpp | #include<iostream>
#include<queue>
using namespace std;
#define MAX 1000
struct Node
{
int la;
struct Node *next;
};
int map[MAX][MAX];//存储图
bool find_path(int n,int s,int t,int *pre )//利用广度遍历 寻找增广路 总个数 n个 数组要往后放一个
{
queue<int> q;
bool vis[MAX];
int top;//队列中头的值
int i;// 循环变量
for(i=1;i<=n;++i)
{
vis[i... |
5eb9ad231635a135943523e299b9c3f41b199d5f | 411dade9424ceaa085d1798ab11083b6e657bb52 | /Unnamed/Source/Unnamed/Public/Bush.h | a2fe42314a29da0768328b957def3c2a0f83865f | [] | no_license | ApprenticeSoft/unnamed_ue4_project | 30635006611cdd5c1282cb4fe62eb522161333e7 | 58bd5fabac4a65018e52d44935ff23b679bbcba2 | refs/heads/master | 2020-04-14T22:48:25.222334 | 2019-07-01T05:45:44 | 2019-07-01T05:45:44 | 164,178,603 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | Bush.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Bush.generated.h"
class UActorComponent;
class ASingleLeave;
class ASol;
UCLASS()
class UNNAMED_API ABush : public AActor
{
GENERATED_BODY()
public:
//... |
0689acc4df5ffa09e362495464ec98c49ba710dc | 1df85af2b19f93220edf661c1cc6a893283da6ba | /cpu_tromp/cpu_tromp.hpp | cfdb2ab87a8f37d39783d76b77a0ec11282786d6 | [
"MIT"
] | permissive | omittones/nheqminer | 7e8931fbed9e9990db160b93ecd6c4bbf761aa0e | 14b6c1d07761644cbad083b5880375da035befab | refs/heads/master | 2021-01-12T14:40:32.026039 | 2016-11-11T14:48:36 | 2016-11-11T14:48:36 | 72,042,137 | 2 | 0 | null | 2016-10-26T20:34:56 | 2016-10-26T20:34:55 | null | UTF-8 | C++ | false | false | 701 | hpp | cpu_tromp.hpp | #ifdef _LIB
#define DLL_PREFIX __declspec(dllexport)
#else
#define DLL_PREFIX
#endif
#include "solver/solver.h"
#if defined(__AVX__)
#define CPU_TROMP_NAME "CPU-TROMP-AVX"
#else
#define CPU_TROMP_NAME "CPU-TROMP-SSE2"
#endif
struct DLL_PREFIX cpu_tromp : Solver
{
public:
cpu_tromp() {
}
std::string getdevin... |
307db23038a651659d9d0a92da984ffc80affa38 | 989aa92c9dab9a90373c8f28aa996c7714a758eb | /HydraIRC/ServerMonitor.cpp | c620ec5c1d4e2dbb29690644a9cedd6b93d596e5 | [] | no_license | john-peterson/hydrairc | 5139ce002e2537d4bd8fbdcebfec6853168f23bc | f04b7f4abf0de0d2536aef93bd32bea5c4764445 | refs/heads/master | 2021-01-16T20:14:03.793977 | 2010-04-03T02:10:39 | 2010-04-03T02:10:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,528 | cpp | ServerMonitor.cpp | /*
HydraIRC
Copyright (C) 2002-2006 Dominic Clifton aka Hydra
HydraIRC limited-use source license
1) You can:
1.1) Use the source to create improvements and bug-fixes to send to the
author to be incorporated in the main program.
1.2) Use it for review/educational purposes.
2) You ca... |
76ce0f65ab93af55cb8fbd9d67311d43e3cd60a8 | ab60cf7ed7c5b7c5808624eebffd773dc2a678a6 | /module/extension/Director/tests/util/diff_string.hpp | 0367bc98d64e650e2cea034f08f9b6b35097e9fc | [] | no_license | NUbots/NUbots | a5faa92669e866abed7b075359faa05e6dc61911 | e42a510a67684027fbd581ff696cc31af5047455 | refs/heads/main | 2023-09-02T19:32:50.457094 | 2023-09-01T19:54:01 | 2023-09-01T19:54:01 | 23,809,180 | 34 | 20 | null | 2023-09-12T12:55:08 | 2014-09-08T21:30:48 | C++ | UTF-8 | C++ | false | false | 1,300 | hpp | diff_string.hpp | /*
* This file is part of the NUbots Codebase.
*
* The NUbots Codebase 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, or
* (at your option) any later version.
*
* The ... |
3e47aff1d5398f27b58a40248f6d71fb2979b466 | c06a4d9938428058abdfc8ea5bfc3a9d5f58acc1 | /DP/DP/src.cc | 1681ccba38865b3ed82aa6419f664a6fc0cce42b | [] | no_license | TMACCAMTTT/LeetCode__ | 400a74a05aae604e868978129471b2f669084287 | 687100ca6d2bd86f822279b60cd3ff5c52c62f8d | refs/heads/master | 2020-04-08T04:35:12.366378 | 2019-01-20T04:35:27 | 2019-01-20T04:35:27 | 159,023,353 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 10,131 | cc | src.cc | #include "head.h"
int uniquePathsWithObstacles(vector<vector<int>>& obstacleGrid) {
//63
if (obstacleGrid.empty()) return 0;
int n = obstacleGrid.size();//n行m列
int m = obstacleGrid[0].size();
if (obstacleGrid[0][0] || obstacleGrid[n - 1][m - 1]) return 0;
vector<vector<int>> dp(n, vector<int>(m, 0));
for (int i... |
8b4fd57f5531316a1369e8a5cef1152837f35bb2 | 1408c9b234d8d94f182c11c53f92dd0c8f80c16d | /ACore/test/TestStr.cpp | c3998ee29a53a1dc883dbe647db0a4496147d06a | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MIT",
"BSL-1.0"
] | permissive | XiaoLinhong/ecflow | 8f324250d0a5308b3e39f3dd5bd7a297a2e49c90 | 57ba5b09a35b064026a10638a10b31d660587a75 | refs/heads/master | 2023-06-19T04:07:54.150363 | 2021-05-19T14:58:16 | 2021-05-19T14:58:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,846 | cpp | TestStr.cpp | //============================================================================
// Name :
// Author : Avi
// Revision : $Revision: #24 $
//
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licen... |
0f5b9f0bfb0db77826099bdbdfb779ad1b9a382c | e9b59c72580f82e2ef735cb84b56afb55f59d4b4 | /include/Reconstructor.h | 9f4350d551e80f819788c52f9c9f98d6b0b5d41a | [
"MIT"
] | permissive | lty972100804/template-based-3d-reconstruction | 5a8980e6333a8e54dbfda5d8dff8e75d11b9a068 | 4df604d9ad276358482d07d7547c275bfe86ae12 | refs/heads/master | 2023-03-18T08:13:05.867901 | 2017-07-06T09:59:08 | 2017-07-06T09:59:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,714 | h | Reconstructor.h | /*********************************************************************/
/* */
/* BASED ON: */
/* Template-Based Monocular 3D Shape Recovery Using Laplacian Meshes */
/* ... |
6c7cfd0212960f4215ee795cc022d576bda1770c | 973f62647c373222e3300cf6ca506f6877a10c9b | /nha_khong_ke_nhau.cpp | 1bf392922a8b3ab847df12b237a7f0c07290a97c | [] | no_license | cudevconst/Cau_truc_du_lieu_giai_thuat | a55eb5ecf6cb88c4dc5c5a671590da285113b654 | 807f76b0df4dbedec40c993b3204eb904322495e | refs/heads/master | 2023-06-24T01:26:25.499096 | 2021-07-12T15:25:48 | 2021-07-12T15:25:48 | 384,460,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 638 | cpp | nha_khong_ke_nhau.cpp | #include <bits/stdc++.h>
#define ll long long;
using namespace std;
int res(int arr[], int n)
{
int check = arr[0];
int ok = 0;
int ok1;
for (int i = 1; i < n; i++)
{
if (check > ok)
ok1 = check;
else
ok1 = ok;
check = ok + arr[i];
ok = ok1;
... |
1fe4afd0d9de2027c8e8773539d1aae3f841d104 | 9441518348b77e1b64e5418cc4a73d981a6daa84 | /swapchain.h | 7e309def018cb4cae026134b4013ff7ded0dc73c | [] | no_license | ChuangTseu/DogeVk | 7ef4cce50a1e6067b0a49ebf066cd64849a6b60a | 5707a6fb22cc745c07584ce056852e978cd77390 | refs/heads/master | 2021-05-04T09:48:58.684387 | 2016-11-25T23:25:20 | 2016-11-25T23:30:20 | 52,181,190 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | h | swapchain.h | #pragma once
#include "doge_vulkan.h"
#include "custom_types.h"
#include <vector>
#include "physical_device.h"
#include "device.h"
#include "surface.h"
struct SwapChain {
void initializeSwapchain(u32 desiredNumberOfCustomSwapchainImages);
void initializeSwapchainImageViews();
void Destroy();
u32 ImageCount(... |
da6b1d4c2dd7405be08fa041463da963938c3cdb | 3c01e15337b8a1c8704feed470e6b1aa75ab6b39 | /contest/407/a/63757302.cpp | 59ebc163c99caff3e6d9a2f8b7040bacd1e572e6 | [] | no_license | varunragu23/codeforces | 4a901c6e88f14ba081c8873e7d03647a077b4f66 | 9a272ca4416fbf8f1478cd07a5eb8fc7f2e535fa | refs/heads/master | 2020-09-03T04:42:30.094910 | 2019-11-04T00:57:12 | 2019-11-04T00:57:12 | 219,388,791 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | cpp | 63757302.cpp | #include <iostream>
#include <iomanip>
#include <cstdio>
#include <set>
#include <vector>
#include <map>
#include <cmath>
#include <algorithm>
#include <memory.h>
#include <string>
#include <cstring>
#include <sstream>
#include <cstdlib>
#include <ctime>
#include <cassert>
using namespace std;
int... |
aa83c2d2f13dee93ebf0b00647f39bf5c29212b3 | 31b9721d77a3fb8dd00a9b5415ee6bdb61743099 | /Map.cpp | 46afef4fe66bc1a54d85e116a418ca68b02977d5 | [] | no_license | razvanch/tetris | ceb54dd6a57902ab79e42789fedf5f828eec5184 | 732c4597e24bbdb2cf8d8657a5eb5799d735c46a | refs/heads/master | 2021-01-18T19:00:42.575656 | 2015-05-01T16:53:34 | 2015-05-01T16:53:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,197 | cpp | Map.cpp | #include "Map.h"
#include <iostream>
#include <time.h>
// A passive tetris arena
Map::Map(const int &hght, const int &wdth) {
score = 0;
height = hght;
width = wdth;
// Each map has a starting width, but also must be extendable to double
// this initial value
maxWidth = 2 * wdth;
tiles = n... |
77f14268d00c1aa02c03d40fdb04fbd382c35644 | 7aee2215a936bf30bfb9fb6f7d928768ec3cf1a2 | /_old/deprecated/sound_device/sound_device.cc | e2c3226b3d43ac0bdaea6cf859407aa92411cede | [] | no_license | SJMdev/mallib | 8d1563d5f9b289868417019dd123a3728ce3e38c | b13933131fa8b99245b775f378fd0d6db7e01ae0 | refs/heads/master | 2022-09-06T14:26:47.451936 | 2022-08-28T13:47:47 | 2022-08-28T13:47:47 | 190,599,950 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,280 | cc | sound_device.cc | #include "sound_device.h"
#ifdef __APPLE__
#include <OpenAL/al.h>
#include <OpenAL/alc.h>
#elif __linux
#include <AL/al.h>
#include <AL/alc.h>
#endif
#include <iostream>
#include <string>
#include <fstream>
#include "../file_handler/file_handler.h"
#include <algorithm>
using std::cin;
using std::cout;
using std::cerr... |
3efe253c99720c566f7848c31dc2fe63c0ff15cb | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/core/include/functions/cdiff.hpp | 7873041b22ef2d6b88f395f3d17409f1ea6b64e0 | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 296 | hpp | cdiff.hpp | #ifndef NT2_CORE_INCLUDE_FUNCTIONS_CDIFF_HPP_INCLUDED
#define NT2_CORE_INCLUDE_FUNCTIONS_CDIFF_HPP_INCLUDED
#include <nt2/core/functions/cdiff.hpp>
#include <nt2/core/functions/common/cdiff.hpp>
#include <nt2/core/functions/expr/cdiff.hpp>
#include <nt2/core/functions/scalar/cdiff.hpp>
#endif
|
cf609b6d8d5f5ad4d5065b19ebab34389342d2f1 | 990cf3d5cefa814d8c75f9c25a72fc71baa1d776 | /Project4/ices_algs.hpp | 419b676092e95ddfe416be481269735c86c3d03f | [
"MIT"
] | permissive | jrubix/Algorithms335 | 9b14d1601a7445a8f156be5ecc0feb5266af3402 | d2c8d7f791007015f8aff05e53793896fde75b3f | refs/heads/master | 2022-08-14T19:30:34.585767 | 2020-05-18T05:10:50 | 2020-05-18T05:10:50 | 256,338,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,776 | hpp | ices_algs.hpp | ///////////////////////////////////////////////////////////////////////////////
// crossing_algs.hpp
//
// Algorithms that solve the iceberg avoiding problem.
//
// All of the TODO sections for this project reside in this file.
//
// This file builds on ices_types.hpp, so you should familiarize yourself
// with that fi... |
2cfebdba7613db5abbc738bcdc718be1a137f9ae | 883e5d18c0486691ef437cfc9f2e9ee168d83343 | /DirectDragon/Ex04_Color.cpp | 2c6d23c08ad02f1cf3ad1e8dfae912c2b88d92e8 | [] | no_license | nevermores88/Direct3D_temp | 18521ef24c0c3e68ac6102d37850d3ec7d73b53c | ab72d4aa066ebf37b0eb34d65c5bf605734e8bbc | refs/heads/master | 2021-09-08T21:24:21.149241 | 2018-03-12T09:34:13 | 2018-03-12T09:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | cpp | Ex04_Color.cpp | #include "stdafx.h"
#include "Ex04_Color.h"
CEx04_Color::CEx04_Color()
{
}
CEx04_Color::~CEx04_Color()
{
}
void CEx04_Color::Create(LPDIRECT3DDEVICE9 pdev, DWORD dwExType)
{
m_dwExType = dwExType;
m_pdev = pdev;
memset(m_WorldMat, 0, sizeof(m_WorldMat));
VB = NULL;
m_pdev->CreateVertexBuffer(3 * sizeof(Color... |
fa19d4ca2d8d66f87b47ebc941d8a7838af20a04 | 16c0e930d5df96886bc9f9915d8923f10db410e6 | /ReportSystem/DAL/src/Entities/DTeamReport.cpp | 8ad74ffdf6ca7c561b3170d4e09e9cf8eae0cce8 | [] | no_license | Rassska/OOP | fbacc6e3022aed44dfef826426d89dd722408d89 | 2d3f76258c246e0f318a590795d51d2131e211cc | refs/heads/main | 2023-03-27T14:27:15.967857 | 2021-03-21T13:49:46 | 2021-03-21T13:49:46 | 306,287,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,475 | cpp | DTeamReport.cpp | #include "DAL/src/Entities/DTeamReport.h"
#include <iostream>
#include <string>
#include <vector>
#include "DAL/src/Entities/DReport.h"
DTeamReport::DTeamReport(std::string_view name, std::string_view description, std::vector <DTeamReport> reports) {
m_Name = name;
m_Description = description;
m_ReportsLi... |
e96f2daff6cd7d7f326a5b1e394ddea452ca643d | 3a187a7c3562714eba8c2b96dd2fe980e7003e0b | /client/view/SkeletonAnimation.cpp | 7a17f782f23c6bd4dcc34ab428052128b402ade9 | [] | no_license | tomasnocetti/taller-trabajo-final | 08ccdfc0d6a398cfbfd525174a65520b7c69816d | 366c3089e010418dbae190405172336edab15298 | refs/heads/master | 2022-11-26T20:19:38.789010 | 2020-08-03T16:33:32 | 2020-08-03T16:33:32 | 268,593,609 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,431 | cpp | SkeletonAnimation.cpp | #include "SkeletonAnimation.h"
SkeletonAnimation::SkeletonAnimation(LTexture* texture) :
Animation(texture) {
forwardFrames = 5;
backwardFrames = 5;
leftFrames = 5;
rightFrames = 5;
index = 0;
cropAnimationFrames();
}
void SkeletonAnimation::cropAnimationFrames() {
SDL_Rect frame = {0, 0, 25, 47};
forwardA... |
7f6eda924704da7f36862b0f7b570f57adc9cd53 | a337de9e586a3db00198ed2bd19b69098c363923 | /geo_vector.h | 850946b7ed2897e012ff4cfb6d82f8f774aef82d | [
"MIT"
] | permissive | MGauravSaini/Geometric-vector-class | 81b59c72be00ea4e5145bcd08ce2e406f0f75fd6 | 6cd716bf448c0a0184a6a971cccdb96644bf0a49 | refs/heads/master | 2020-05-05T13:15:03.984406 | 2019-10-17T07:10:24 | 2019-10-17T07:10:24 | 180,068,597 | 6 | 1 | MIT | 2019-10-17T07:10:25 | 2019-04-08T04:17:25 | C++ | UTF-8 | C++ | false | false | 14,820 | h | geo_vector.h |
#ifndef _GEO_VECTOR_
#define _GEO_VECTOR_
#include <iostream>
#include <boost/units/quantity.hpp>
#include <boost/units/systems/si/io.hpp>
#include <boost/geometry.hpp>
using namespace boost::units;
using namespace boost::units::si;
using namespace boost::geometry::model;
using namespace boost::geometry::cs;
nam... |
397db56e2737be0d806ad8272e2b6082de647910 | 4bae230b4972d71ed3e041ef7c6b6d5084074d63 | /dsa-roadmaps/Beginners/Problem Solving/non divisible subset/solution.cpp | fd4207c21b7d937dd877d32681cf2daf7b10725b | [] | no_license | AkshataABhat/dsa-roadmaps | 14c8699d83d5696831aaf558123f272a8470d2b2 | 2c80dfe05eba1294b1c452e944ce50094ec2749f | refs/heads/master | 2023-08-12T13:23:16.550376 | 2021-10-09T13:43:51 | 2021-10-09T13:43:51 | 417,504,541 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,312 | cpp | solution.cpp | #include <bits/stdc++.h>
using namespace std;
int nonDivisibleSubset(int k, vector<int> s) {
int max=0;
int c=0;
int d=0;
if(k%2==0)
{
d++;
}
for(int i=0;i<s.size();i++)
{
s[i]=s[i]%k;
if(s[i]==0)
{
c++;
}
if(s[i]==(k/2) &&... |
77580f3383858b438975982a2f72424b8771ed43 | 55540f3e86f1d5d86ef6b5d295a63518e274efe3 | /toolchain/riscv/Darwin/lib/gcc/riscv64-unknown-elf/10.2.0/plugin/include/lra-int.h | 01fcbfa2664a24eea21bb31d46c4ed18d179614c | [
"Apache-2.0"
] | permissive | bouffalolab/bl_iot_sdk | bc5eaf036b70f8c65dd389439062b169f8d09daa | b90664de0bd4c1897a9f1f5d9e360a9631d38b34 | refs/heads/master | 2023-08-31T03:38:03.369853 | 2023-08-16T08:50:33 | 2023-08-18T09:13:27 | 307,347,250 | 244 | 101 | Apache-2.0 | 2023-08-28T06:29:02 | 2020-10-26T11:16:30 | C | UTF-8 | C++ | false | false | 18,683 | h | lra-int.h | /* Local Register Allocator (LRA) intercommunication header file.
Copyright (C) 2010-2020 Free Software Foundation, Inc.
Contributed by Vladimir Makarov <vmakarov@redhat.com>.
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public Licen... |
84395c838a4fc2a61080628a5e32fa1228339f12 | f6738ad1752b42ccfdce2ac6b323f9944a8300ad | /PracticeProblems/GCDCNT.cpp | a52b4625c5e5aef27daf948205fbc7b2936fcc69 | [] | no_license | ihsakash1994/Prepration | 72552a746164394960949d34c9eecd82e0c46bee | 677fadcd708386203b35cc385f9532946322de18 | refs/heads/master | 2021-04-27T08:14:46.102136 | 2018-03-17T06:22:31 | 2018-03-17T06:22:31 | 122,651,326 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,262 | cpp | GCDCNT.cpp | #include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<cmath>
#include<set>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define maxm 51234
#define maxn 100004
using namespace std;
using namespace __gnu_pbds;
int a[maxm];
vector<int> t[maxm];
bool prime[maxn]... |
b92d4216209c6dbac1663ae43ad778677611690c | 35b3a9665aaf21a2f9eea8fd99e1fc057daa12e1 | /src/Page_GfxTest.h | 0084af34dd780121a7a7be87d250c34704d8c036 | [] | no_license | OggYiu/rag-engine | 04677c3cb4604e5e8b0de78673680cbfdea0132b | 986c0ac5008a661dba9151b8216806df0e8f4646 | refs/heads/master | 2021-01-17T07:41:31.232070 | 2014-11-08T06:52:57 | 2014-11-08T06:52:57 | 24,141,419 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 262 | h | Page_GfxTest.h | #ifndef __PAGE_GFXTEST_H__
#define __PAGE_GFXTEST_H__
#include "Page.h"
class Page_GfxTest : public Page
{
public:
Page_GfxTest();
~Page_GfxTest();
public:
virtual void update(const double dt);
protected:
virtual void resolved();
protected:
};
#endif
|
ee108adda8f3c7f6f3a8c4391e8f724a4de570b0 | f6e477f1d91b84cfe50781d17c8fa6767fe6667f | /node/anagram-node-js.h | 7542c60bbf3051d4c9cd2cd0c6c0c1236c58aea8 | [] | no_license | dlecocq/anagrammer | 5776360335bcbe641057410068637f05d0c9f4ff | 2a52ecd60e8c4a93888050431c281026cf94ebb7 | refs/heads/master | 2016-09-06T05:47:31.718673 | 2012-02-25T23:39:24 | 2012-02-25T23:39:24 | 3,548,123 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | h | anagram-node-js.h | #ifndef ANAGRAM_NODE_H
#define ANAGRAM_NODE_H
#include <node.h>
// This is the underlying C library
#include "../src/anagram.h"
class Node : public node::ObjectWrap {
public:
static void Init(v8::Handle<v8::Object> target);
private:
Node();
~Node();
static v8::Handle<v8::Value> New(const v8::Arguments... |
14aaec1c11f5491894b31adacc30fc1d681a7473 | 608a2e871c7b534a3922914595c294dc147a5310 | /Intermediate/Build/Win64/UE4/Inc/FireAndIce/PlatformBase.gen.cpp | 4091ef4fa970e9a8b0fdc0bac2a6246d9cfa4412 | [] | no_license | aokeefe97/FireAndIce-Test | 0214094f2e8f2d1ed3cb06981b67c2265d8e58c9 | e665709bc18d384c5046164105b59e7a46d2b27d | refs/heads/master | 2020-03-11T10:09:48.629277 | 2018-04-17T16:31:16 | 2018-04-17T16:31:16 | 129,934,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,541 | cpp | PlatformBase.gen.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
/*===========================================================================
Generated code exported from UnrealHeaderTool.
DO NOT modify this manually! Edit the corresponding .h files instead!
==============================================================... |
e740c839b6239126a389d693da2ecc4765e0a96d | 93fbf65a76bbeb5d8e915c14e5601ae363b3057f | /1st sem C/pattern9.cpp | 882b893a93841329e8ba8675f4b5f3b13cfbe6cd | [] | no_license | sauravjaiswa/Coding-Problems | fd864a7678a961a422902eef42a29218cdd2367f | cb978f90d7dcaec75af84cba05d141fdf4f243a0 | refs/heads/master | 2023-04-14T11:34:03.138424 | 2021-03-25T17:46:47 | 2021-03-25T17:46:47 | 309,085,423 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | pattern9.cpp | /*pattern-
ABCDE
BCDE
CDE
DE
E */
#include<stdio.h>
int main()
{
int i,j;
for(i=65;i<=69;i++)
{
for(j=i;j<=69;j++)
printf("%c",j);
printf("\n");
}
}
|
92c3afb129fdac1c7f2558c6073ae469c0abb3dc | ee762a7468148835a4e375168d4acc507abfc67d | /MasterTroll.cpp | 406d8520fb6186d0a8fa024d8d42a83f525ebbda | [] | no_license | MatudaGames/Classes | a7c6ddfadd630bf3a34b33f7a8970a6553ce0221 | b2ac0e22f647d916c4842c6c50f8d1f68d40f8d5 | refs/heads/master | 2020-05-29T16:01:56.421884 | 2015-04-09T18:07:51 | 2015-04-09T18:07:51 | 32,596,808 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,084 | cpp | MasterTroll.cpp | //
// MasterTroll.cpp
// DwarfForest
//
// Created by Kristaps Auzins on 06/03/15.
//
//
#include "MasterTroll.h"
#include <SimpleAudioEngine.h>
#include "GameScene.h"
#include "AppMacros.h"
#include "Utils.h"
#include "User.h"
USING_NS_CC;
using namespace CocosDenshion;
MasterTroll* MasterTroll::create(GameS... |
0c4eab70a4b7a120ba8833a2a2d4017d4d73475d | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/MTDGeometryBuilder/src/MTDPixelTopologyBuilder.cc | 922569d0214b9e9dd787dd7d1802a4be123a7966 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 3,236 | cc | MTDPixelTopologyBuilder.cc | //#define EDM_ML_DEBUG
// Make the change for "big" pixels. 3/06 d.k.
#include "Geometry/MTDGeometryBuilder/interface/MTDPixelTopologyBuilder.h"
#include "Geometry/MTDGeometryBuilder/interface/RectangularMTDTopology.h"
#include "DataFormats/GeometrySurface/interface/Bounds.h"
#include "FWCore/MessageLogger/interface/... |
30b332f5e61236bb781118443604874aa0155cfe | dea4fc659757039c4c49b6893ca26cda72ce12a1 | /src/bilinear.hpp | d005761f2b0564b20f34b2023db0992f49a9d68a | [] | no_license | bartfrenk/cpp-img | c69e4e897226de6c0e578aad216d094162079f69 | d3dc6eb2816371e915ae3e6ce47159d9f8ddf17f | refs/heads/master | 2021-01-10T13:22:24.729642 | 2016-03-29T22:12:02 | 2016-03-29T22:12:02 | 54,597,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 471 | hpp | bilinear.hpp | #ifndef INTERPOLATED_HPP
#define INTERPOLATED_HPP
#include "orthotope.hpp"
namespace img {
// statically assert that A is float or double
template <typename I, typename A>
class Bilinear {
public:
using pixel_t = typename I::pixel_t;
using coord_t = A;
Bilinear(const I &base) : base_(base) {};
Rect... |
0832876421f6b24c8bc2e677847cb598a90a0749 | c70a796815100246f53c724a2476b392a7606dd7 | /testVector/testVector.cpp | 936cf14683189ec7fa0f2a4d66154c272f75170c | [] | no_license | xjr01/BouncingBall | cec42cb4b475bf8a763da3e19bafb92dd804885f | 38dfa9c981039920e939c08ebf782f5c20a966ca | refs/heads/master | 2023-06-13T06:24:24.866594 | 2021-07-08T16:35:48 | 2021-07-08T16:35:48 | 341,279,165 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,701 | cpp | testVector.cpp | #include "pch.h"
#include "CppUnitTest.h"
#include <vector2d.h>
#include <EasyX_Draw.h>
#include <Windows.h>
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace testVector
{
TEST_CLASS(testVector)
{
public:
/*TEST_METHOD(TestAdd)
{
Vector2D a(2, 3), b(4, 5);
Assert::IsTrue(a + b =... |
4aba0296032899eed130ecbc6e8be801b524bb96 | 24428e5723e8da29838d104ee125fcd417e4092c | /BaseGraphics/ggGraphicsTextItem.cxx | 7ef025f25ed4a38fea48a3765a596e57c31a2c0e | [] | no_license | TheGoofy/ggClassyArchitect | d606013151549f241149c415fbabae3630aeb79d | eec47e6013cd1b057e972a0450087eabeda566bd | refs/heads/master | 2021-09-06T18:38:05.439918 | 2018-02-09T20:04:33 | 2018-02-09T20:04:33 | 112,534,809 | 2 | 0 | null | 2017-12-01T11:00:25 | 2017-11-29T22:23:33 | C++ | UTF-8 | C++ | false | false | 6,691 | cxx | ggGraphicsTextItem.cxx | // 0) include own header
#include "ggGraphicsTextItem.h"
// 1) include system or QT
#include <QMimeData>
#include <QClipboard>
#include <QFont>
#include <QKeyEvent>
#include <QDebug>
#include <QTextCursor>
#include <QTextDocument>
#include <QPainter>
#include <QGraphicsSceneDragDropEvent>
// 2) include own project-re... |
7f67ce73df9f709ddc8bbaddfaf92b86e73792b6 | 04cdc91f88a137e2f7d470b0ef713d72f79f9d47 | /Vitis_Platform_Creation/Feature_Tutorials/03_Vitis_Export_To_Vivado/aie/hb27_2i.cc | 406f09938dd6aab34cad658bfed477c37114b012 | [
"MIT"
] | permissive | Xilinx/Vitis-Tutorials | 80b6945c88406d0669326bb13b222b5a44fcc0c7 | ab39b8482dcbd2264ccb9462910609e714f1d10d | refs/heads/2023.1 | 2023-09-05T11:59:43.272473 | 2023-08-21T16:43:31 | 2023-08-21T16:43:31 | 211,912,254 | 926 | 611 | MIT | 2023-08-03T03:20:33 | 2019-09-30T17:08:51 | C | UTF-8 | C++ | false | false | 3,744 | cc | hb27_2i.cc | /*
Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
SPDX-License-Identifier: MIT
*/
#include <adf.h>
#include "include.h"
#include "aie_api/aie.hpp"
#include "aie_api/aie_adf.hpp"
#include "aie_api/utils.hpp"
/*
// 27-tap FIR and 2x up-sampling
Interpolation rate: 2x
Coefficients: c0 ... |
9403cacb26163277256c1019c52d684391eef3a2 | e8cd536ef02e8635517c4e70798164a1fef65204 | /subProj/SubSpectrumEditor/spectrumeditorcustom.h | 51cfc4a31a24a082b44ddb612d8fb3a23fe2f837 | [] | no_license | DawidMaciazek/Polichromator | 1b205c233be3f7687a7aab1d092dd140c40f7df7 | 092a98d2e9b572630a305ebc1a88f1ef271e03f7 | refs/heads/master | 2020-12-14T09:43:32.279376 | 2016-10-24T06:35:51 | 2016-10-24T06:35:51 | 68,298,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | h | spectrumeditorcustom.h | #ifndef SPECTRUMEDITORCUSTOM_H
#define SPECTRUMEDITORCUSTOM_H
#include <QWidget>
#include "spectrum.h"
#include "spectrumeditorcustomitem.h"
#include "expparser.h"
namespace Ui {
class SpectrumEditorCustom;
}
class SpectrumEditorCustom : public QWidget
{
Q_OBJECT
public:
explicit SpectrumEditorCustom(Spect... |
94228728bcd15ab75c06bcb67bd8ea7e3e1b4886 | 1cc5d45273d008e97497dad9ec004505cc68c765 | /cheatsheet/ops_doc-master/Qt/pro/sstd_introduce_qmake/simple_library/the_app/main.cpp | c3fb346e5d41b661c1ba08fc2c1e99bf79d6272c | [] | no_license | wangfuli217/ld_note | 6efb802989c3ea8acf031a10ccf8a8a27c679142 | ad65bc3b711ec00844da7493fc55e5445d58639f | refs/heads/main | 2023-08-26T19:26:45.861748 | 2023-03-25T08:13:19 | 2023-03-25T08:13:19 | 375,861,686 | 5 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 118 | cpp | main.cpp | #include <TheLib.hpp>
int main(int ,char ** ) {
sstd::TheLib varTestLib;
varTestLib.printHellowWorld();
}
|
bc032711027dbfc57d89e4f060a1e7c809615895 | df8464ba771a8a5de42fd82b4801d1f039d754ad | /discrete_math/4 term/lab1/B.cpp | 6f68bc9a278906aebe2f0f99c0780e45fe877815 | [] | no_license | nowiwr01w/itmo | b13c135158de109acdaa9ee324cf5ea5e9c5343f | 64c775a7779777e120bc5e6a098b49ee8eebc876 | refs/heads/master | 2022-12-17T04:50:24.002941 | 2020-09-13T12:27:33 | 2020-09-13T12:27:33 | 220,715,265 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,897 | cpp | B.cpp | #include <vector>
#include <iostream>
using namespace std;
const int MODULE = 998244353;
const vector<uint64_t> square_precomputed {
1, 499122177, 124780544, 935854081, 38993920, 970948609, 20471808, 982159361, 13069056,
987353473, 9257248, 990249457, 6995534, 992055996, 255086407, 868491022, 89746735... |
1f0493af7133d3d5499521c9e2f5a8df2a8eec1d | 71e7675390503901564239473b56ad26bdfa13db | /src/iofwdutil/completion/BMIResource.hh | bc6ca6025fe70dd346cedd4b2f90c7af13f30b3b | [] | no_license | radix-io-archived/iofsl | 1b5263f066da8ca50c7935009c142314410325d8 | 35f2973e8648ac66297df551516c06691383997a | refs/heads/main | 2023-06-30T13:59:18.734208 | 2013-09-11T15:24:26 | 2013-09-11T15:24:26 | 388,571,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,668 | hh | BMIResource.hh | #ifndef IOFWDUTIL_COMPLETION_BMIRESOURCE_HH
#define IOFWDUTIL_COMPLETION_BMIRESOURCE_HH
extern "C"
{
#include <bmi.h>
}
#include <boost/thread.hpp>
#include "Resource.hh"
#include "ContextBase.hh"
#include "IDAllocator.hh"
#include "iofwdutil/assert.hh"
#include "BMICompletionID.hh"
namespace iofwdutil
{
namesp... |
c145a573cc9629bd6de2012961f48b14b15309ad | 079dc0044cd3cf48223e2012b1588c3332ca32ba | /Packet/packetBuffer.cpp | 82e6ee8ab8644842ff6b9cc2fa31699c0490abc0 | [] | no_license | 3dElf/packet-manipulation-library | dddfdcfce3b35c0b224638960bf8e11e2d74aacf | ab4c12e5a745184daac408b6ec2a237cc520bba8 | refs/heads/master | 2023-03-17T06:42:24.080775 | 2013-08-26T20:19:31 | 2013-08-26T20:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,578 | cpp | packetBuffer.cpp | /*
* PacMan - Packet Manipulation Library
* Copyright © 2011 Jeff Scaparra
*
* This file is a part of PacMan.
*
* 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 3 of the ... |
697b862effc300447a75164173d48a641221a08a | 1b0730016881aafc0d7fbdefc58680c96e3a9a78 | /src/agents.cpp | 48c2bde3ec2bd57d511329102c6740ba6a5d59ce | [] | no_license | dstreett/shybold_2.0 | 0d9cca91bd50b8d5ae23ef79c1bdd51b1922a616 | ed6f01d9e3a25bdaebee2afbf33310ffac8c532c | refs/heads/master | 2021-01-16T17:59:09.559871 | 2017-03-02T00:52:35 | 2017-03-02T00:52:35 | 68,311,748 | 0 | 1 | null | 2017-02-24T18:48:17 | 2016-09-15T16:34:15 | C++ | UTF-8 | C++ | false | false | 4,860 | cpp | agents.cpp | #include <iostream>
#include <algorithm>
#include <fstream>
#include <cmath>
#include "agents.h"
#define PI 3.14159
void agent::updatePrey() {
std::vector<double> inputs;
if (input_agent.size() != 0 && input_agent[0]) { //change this (loop througth input_agents and push_back onto inputs
saw_last = tru... |
acaf5ae836e7661b751d8c6182c33be1846c80d1 | 511a5bf496b106ba90984e0348292d8aa0b794d4 | /sem_01/lab_01/trash/cxx/inc/Monomial.h | 83b1ccfdc82312962546be9e227c0670aad38fbf | [] | no_license | rflban/MathModeling | 936b8c0114d982ee5ff4836bd800a4da0b5fcddb | 6c04b86cb7bd9a619a8f0c9b936fcb42014545bd | refs/heads/master | 2022-07-14T11:12:56.960095 | 2021-10-05T12:03:01 | 2021-10-05T12:03:01 | 240,927,065 | 0 | 0 | null | 2022-06-22T04:34:01 | 2020-02-16T16:42:40 | TeX | UTF-8 | C++ | false | false | 580 | h | Monomial.h | #ifndef MMLAB01_MONOMIAL_H_
#define MMLAB01_MONOMIAL_H_
#include <string>
template <typename _T>
struct Node;
class Monomial
{
public:
Monomial(int power=1);
Monomial(const Monomial &other);
~Monomial();
double operator()(double x);
Monomial &operator*=(double r);
Monomial &operator*=(cons... |
2f9bb66b0813608038f8764bb3b64f520d17c2da | af09dc0fd61b78d622b8c4dd641288ef8162947c | /deferred_shading_dx11/profilemarker.cpp | e3d150e2695d32fabd312a8d79f7d7c3de00ec44 | [
"LicenseRef-scancode-other-permissive"
] | permissive | alex-leleka/DeferredShadingOptimization | d6eb8d42bc9fd8911d5e3d6d5b0273bb7e942c1f | 9913cd073c2a7004724ad90b3545a05b284f6be5 | refs/heads/master | 2020-09-14T05:26:02.657643 | 2019-12-11T00:11:41 | 2019-12-11T00:11:41 | 223,032,616 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 924 | cpp | profilemarker.cpp | #include "profilemarker.h"
#include <d3d11_1.h>
#include <stdexcept>
void CProfileMarker::Init(ID3D11DeviceContext* d3dDeviceContext)
{
HRESULT hr = d3dDeviceContext->QueryInterface(__uuidof(m_pPerf), reinterpret_cast<void**>(&m_pPerf));
if (FAILED(hr))
{
throw std::runtime_error("Error when Quer... |
1c01f0819679c22e4416deb79ec8a91f0c98a9d6 | ba2d4b40fa527cd1a281f9b0fe56a970318a68ad | /FY‘s code/search.cpp | 1a6ffcdf1f17360a0cf38abe519e2a95f2513d74 | [] | no_license | EventideX/Algorithm-and-Data-Structure | c0f7823bde721c19d5d077be698aee56f34a2edc | 1d517cc38e87079984a70ee7e5cb24d63ba4d053 | refs/heads/master | 2021-08-29T02:05:56.712961 | 2017-12-13T11:17:54 | 2017-12-13T11:17:54 | 108,253,215 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | search.cpp | #include<stdio.h>
#include<string.h>
struct TreeNode
{
int p,son[2],x,FirstTime;
};
TreeNode tree[100001];
int n,m;
void InitializationSearch(int CurrentNode,int &Time){
tree[CurrentNode].FirstTime=Time;
int NextNode=0;
if (tree[CurrentNode].son[NextNode]!=0){
if (tree[CurrentNode].son[NextNode^1]!=0){
if (... |
da2517b88956affc207cc7296d6c3c867317d78c | c7ad1dd84604e275ebfc5a7e354b23ceb598fca5 | /src/objtools/cleanup/cleanup.cpp | 45c7e4f19fa1fe32679414576b4d57e49cdf8771 | [] | no_license | svn2github/ncbi_tk | fc8cfcb75dfd79840e420162a8ae867826a3d922 | c9580988f9e5f7c770316163adbec8b7a40f89ca | refs/heads/master | 2023-09-03T12:30:52.531638 | 2017-05-15T14:17:27 | 2017-05-15T14:17:27 | 60,197,012 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 131,031 | cpp | cleanup.cpp | /* $Id$
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Work" under the
* terms of the United States Copyrigh... |
684349ce94d69b63cb7098a98ebbdce8efa1611e | 08b8cf38e1936e8cec27f84af0d3727321cec9c4 | /data/crawl/git/old_hunk_8119.cpp | ebb991e06abf951140d3a1ee77849f668e8fcb19 | [] | no_license | ccdxc/logSurvey | eaf28e9c2d6307140b17986d5c05106d1fd8e943 | 6b80226e1667c1e0760ab39160893ee19b0e9fb1 | refs/heads/master | 2022-01-07T21:31:55.446839 | 2018-04-21T14:12:43 | 2018-04-21T14:12:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | cpp | old_hunk_8119.cpp | find_unique_abbrev(sha1_new, DEFAULT_ABBREV));
}
static int update_ref(const char *action,
const char *refname,
unsigned char *sha1,
unsigned char *oldval)
{
char msg[1024];
char *rla = getenv("GIT_REFLOG_ACTION");
static struct ref_lock *lock;
if (!rla)
rla = "(reflog update)";
snpri... |
a69d8a757eb17518873a3bd481f93675ba2f1d46 | cde9f27c01539ab78e3e7e9a26c4c074b4c4026c | /Files/EEPROM_Programmer/ControlUnit/io.ino | f127a44f86b7790af6d6e2c36d6a0f74f41c1fe5 | [
"Apache-2.0"
] | permissive | NuwanJ/peraSAP-I | 41bea0ea87974e8ab278b92bc842f034e8e8d189 | b7d1fe367e5127cf8bb3aac8edbb09615b190156 | refs/heads/master | 2021-06-25T08:21:16.411527 | 2020-10-20T05:48:19 | 2020-10-20T05:48:19 | 143,249,599 | 1 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,478 | ino | io.ino |
void writeAddress(int data) {
// Write given address to ports
if (data == 0) {
for (int i = 0; i < 7; i++) {
digitalWrite(addPins[i], LOW);
}
} else {
for (int i = 0; i < 7; i++) {
digitalWrite(addPins[i], bitRead(data, 6 - i));
//Serial.print(bitRead(data, i));
}
}
dela... |
cb6cc7714dbf70aa2187f77fdb928f270a801f6a | acf18a78cba53c9955df152cf9d3af02a6f66e16 | /source/YoloMouse/Dll/CursorVault.hpp | 2a375b145656a1ea0f4154c93b5d385a75999773 | [
"Unlicense"
] | permissive | Mydcj/YoloMouse | 7c6435902773ee0b8c8a6a91ee3f6c6461a8243c | ffff8e2fdf5852d54abd5f8e2416bf34a92db47c | refs/heads/master | 2020-04-24T17:40:32.598367 | 2018-08-13T22:59:21 | 2018-08-13T22:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,695 | hpp | CursorVault.hpp | #pragma once
#include <Core/Container/Array.hpp>
#include <YoloMouse/Share/Constants.hpp>
#include <YoloMouse/Share/SharedState.hpp>
namespace YoloMouse
{
/**/
class CursorVault
{
public:
/**/
CursorVault();
~CursorVault();
/**/
Bool Load( Index resource_ind... |
4ca88b0fb66629a9942c9014556261c423b5fb85 | 648d3c449ac8bdb46adba4a3baedded7833f5f77 | /level-editor/tileselectorview.cc | 144466b1a4d6770fc7986dea830538d4d1942b1d | [] | no_license | datalate/another-jrpg | fed3e95cfbbdc10db5738e174ad66900eb3a24e9 | 6863eb7af7ff3687ec4dfab56977e854fc7d73cc | refs/heads/master | 2021-01-20T07:02:16.400848 | 2018-08-08T23:53:32 | 2018-08-08T23:53:32 | 89,947,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 291 | cc | tileselectorview.cc | #include "tileselectorview.hh"
#include <QDebug>
TileSelectorView::TileSelectorView(QWidget *parent) :
QGraphicsView{parent} {
}
void TileSelectorView::resizeEvent(QResizeEvent *event) {
emit sizeChanged(event->oldSize(), event->size());
QGraphicsView::resizeEvent(event);
}
|
4d68236cef8e669e5d2b45d8aa102931aab59baa | 45d300db6d241ecc7ee0bda2d73afd011e97cf28 | /OTCDerivativesCalculatorModule/Project_Cpp/lib_static/FpmlSerialized/GenClass/fpml-shared-5-4/SharedAmericanExercise.cpp | 0781129e6872ec9ac9bd985b42815ce9840b0b3d | [] | no_license | fagan2888/OTCDerivativesCalculatorModule | 50076076f5634ffc3b88c52ef68329415725e22d | e698e12660c0c2c0d6899eae55204d618d315532 | refs/heads/master | 2021-05-30T03:52:28.667409 | 2015-11-27T06:57:45 | 2015-11-27T06:57:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,413 | cpp | SharedAmericanExercise.cpp | // SharedAmericanExercise.cpp
#include "SharedAmericanExercise.hpp"
#ifdef ConsolePrint
#include <iostream>
#endif
namespace FpmlSerialized {
SharedAmericanExercise::SharedAmericanExercise(TiXmlNode* xmlNode)
: Exercise(xmlNode)
{
#ifdef ConsolePrint
std::string initialtap_ = FileManager::instance()... |
531e5b12979fda9c061480cb4ec4bb39ff9ae984 | 73ff1e7e1ac2d8d5168a6c653f70d5f6d0dc2c45 | /PR2_Test3/backup/person.h | 184c46888f094ee07267bf42f14c4ed5f3ddf769 | [] | no_license | mahdyfalah/Bank_App | 187948981dc41597af39ec686cb363e76248d660 | d3ff0b6a5587c1fc54565672b6ba80f85786505e | refs/heads/master | 2021-12-24T03:06:10.146958 | 2021-12-21T12:06:08 | 2021-12-21T12:06:08 | 237,261,184 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 794 | h | person.h | #ifndef PERSON_H
#define PERSON_H
#include<iostream>
#include<string>
#include<vector>
#include<memory>
#include"konto.h"
using namespace std;
class Account;
class Person : public enable_shared_from_this<Person>{
string name;
vector<shared_ptr<Account>> accounts;
public:
Person(string);
~Person() { }
strin... |
48cd9c06f90588b9e63a00397c5659ee2c86ac85 | 5d374665ab5b298ab3af3dd9c188261d632c44c4 | /jni/PE-like-PC_hooks.cpp | 877dc3fed75e1c99ee42d55aa749052ddb5c686b | [] | no_license | TrinityDevelopers/PE-like-PC-new-api | 451529b88739d8496e611af2723f03940bc43533 | 751f9cc523c5770a3f820d3dcc564fb8055abd61 | refs/heads/master | 2016-09-10T01:21:20.134127 | 2015-07-21T00:56:05 | 2015-07-21T00:56:05 | 37,752,457 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,739 | cpp | PE-like-PC_hooks.cpp | #include <jni.h>
#include <dlfcn.h>
#include <android/log.h>
#include <string>
#include "Substrate.h"
#include "mcpe/Common.h"
#include "mcpe/world/level/tile/Tile.h"
#include "mcpe/world/level/tile/LiquidTileDynamic.h"
#include "mcpe/world/material/Material.h"
#include "mcpe/world/item/Item.h"
#include "mcpe/world/it... |
cdfad1f9f5f552dbd488e5ee5acbba94c9fa6251 | dfe17656275246adba7598053461e3ae9ee8cfad | /Db/vCode.h | 91f823a48b92cfa04afabb641a6714bba38dba78 | [] | no_license | weijunbao/Db | 911bbafd524a43bfa1c1619a4d085bc8214decbe | 455aa72fd86ee928c31063e88dc7717cc67bc0b0 | refs/heads/master | 2020-05-27T04:11:20.499418 | 2013-06-25T07:40:23 | 2013-06-25T07:40:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 500 | h | vCode.h | #pragma once
#include "commonType.h"
#include <stdint.h>
#define ASSERT_VCODE_SIZE(vSize)\
assert(vSize>0 && vSize<10);
class vCode :
public NonCreate
{
public:
/*vCode(void);
virtual ~vCode(void);*/
public:
static int vCodei8(uint8_t i,char* pData);
static int vCodei16(uint16_t i,char* pData);
static int vCo... |
2780194271cadf8506cee0f660c87ccc902b136d | f8d40ed3f14be5f56831b1bcfbaab13feb056d45 | /Sabertooth/Layer.h | 58c0f28ce2f6b4a23256aa92e7fba8431f9b70b7 | [
"MIT"
] | permissive | matheusmoraesporto/RoadFighter | a14d96ee38b7fe95bbbc2e3c328a149fb33ca2fc | 0b6cfa2604cb48a18ecf716c117230eda8b67a82 | refs/heads/master | 2022-04-26T03:09:27.914362 | 2020-05-03T21:28:22 | 2020-05-03T21:28:22 | 260,494,124 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 547 | h | Layer.h | #pragma once
#include <GL\glew.h>
class Layer
{
public:
Layer();
Layer(int widthValue, int heightValue, int tidValue);
void setTid(GLuint value);
void setId(int value);
void setWidth(int value);
void setHeight(int value);
void setTx(float value);
void setTy(float value);
void setScrollRateX(float value);
void... |
38327e81af93967ef0e329284f4039343561c419 | f7ba28001db6d0b984c1fcfeb8182826985f20fc | /module1/2taskA.cpp | ab1596268457837f36412ae2cd8d7bfe3743c3b5 | [] | no_license | artek0chumak/DIHT_3semester | baa139759ec2dba573b4f6875d61efd34d93210d | ad8e4b56a183dd151d3ec269e1c0016dab6dac0d | refs/heads/master | 2020-04-13T19:26:27.773487 | 2018-12-28T11:31:25 | 2018-12-28T11:31:25 | 163,402,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,201 | cpp | 2taskA.cpp | #include <iostream>
#include <vector>
#include <algorithm>
class StringFunctions {
public:
std::vector<uint> stringToPrefix(std::string_view str) {
std::vector<uint> prefixValues(str.size(), 0);
for(auto i = 1; i < str.size(); ++i) {
prefixValues[i] = prefixValues[i - 1];
wh... |
f67ff626bb7bcb8df3b0efa37dde07f5d07de652 | 64721ef654f98e1e4b68ed415f6886f6b8775372 | /src/common/validation.cpp | b33108957e33151a0ac04df363eee92ae8185cb4 | [] | no_license | cloudhc/my_scons_project | 67f3df498c150b6da93237f8ba5e72df8e3609aa | 7f0d2065c8106da2dbf0f63719c4b35dda3ce49d | refs/heads/master | 2022-06-17T00:45:21.915535 | 2020-04-24T05:40:58 | 2020-04-24T05:40:58 | 257,807,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,873 | cpp | validation.cpp | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* Copyright (c) 2014 Xabyss Inc. All rights reserved.
*/
/**
* @mainpage Main Page
*
* Validation helper API documentation.
*/
/**
* @file validation.cpp
*
* @brief Xabyss's Validation helper library source fi... |
d3e2f1bb395fdb9c9752dbc0fd311452144be95c | 9757b1f64403138b68a1ae3a61e65a5a50114e5a | /2015-contest/0804/a.cc | bbc503f9d5cc9f99cd0f412e0c56732990a5f127 | [] | no_license | ailyanlu/acm-code | 481290d1b7773a537fe733a813ca5f9d925d8e93 | 0a5042c16eae3580ea443b5ab4109c8f317350af | refs/heads/master | 2018-01-15T11:49:29.599393 | 2015-10-30T02:39:17 | 2015-10-30T02:39:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cc | a.cc | #include <cstdio>
#include <iostream>
#include <string>
#include <map>
using namespace std;
map<string, int> m;
string x, y;
int main() {
int t;
scanf("%d", &t);
while (t--) {
cin >> x >> y;
int a = x.length(), b = y.length(), u , v;
m.clear();
for (int i = 1; i <= a; ++i) {
... |
32d2409e8756bab3fd5762ab10ffad567a7b0e8b | 7985054c887810f37345f6508f1a7d4fdc65b81b | /Development/Core/PlayerSpawn.cpp | cb9971ce20b8746ed682ff0fe0e45bc0f4a8e11c | [] | no_license | ghostuser846/venicelight | 95e625a8e9cb8dd3d357318c931ee9247420c28d | cdc5dfac8fbaa82d3d5eeb7d21a64c3e206b7ee2 | refs/heads/master | 2021-01-01T06:44:51.163612 | 2009-06-01T02:09:27 | 2009-06-01T02:09:27 | 37,787,439 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,561 | cpp | PlayerSpawn.cpp | /*
* Copyright (C) 2005-2008 SREmu <http://www.sremu.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 of the License, or
* (at your option) any later version... |
1cc7826bcd012020616d5ddd0563ad468f434ed9 | 7092d3a8dd5d75f30827bdf0d3a06878ba6cc75d | /FeatureTracker.cpp | 243b05418a97e18f43e813987727cc966fb391dc | [] | no_license | MarkRunWu/paraft-non-parallel | 007cee5826660c9175c1100f9e43cf0852782d6d | f8c196a8476b4616a9831e07057abc1bb3dddf0f | refs/heads/master | 2021-01-21T01:06:08.272722 | 2013-05-19T15:07:56 | 2013-05-19T15:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,142 | cpp | FeatureTracker.cpp | #include "FeatureTracker.h"
FeatureTracker::FeatureTracker(Vector3i dim) : blockDim(dim) {
maskValue = 0.0f;
tfRes = 0;
pTfMap = NULL;
volumeSize = blockDim.Product();
pMaskCurrent = new float[volumeSize]();
pMaskPrevious = new float[volumeSize]();
if (pMaskCurrent == NULL || pMaskPreviou... |
b9a1abba1dbac8aebea126d90b3cd3628589f2fb | fb6df08ae247e17245802c880eb0db783d074f4c | /lesson2/graphcut.cpp | 2771b38247b24cd1d267965929a26724e167c0f9 | [] | no_license | cvlabmiet/cvclasses16 | e64b71aebcd0db060182ddb553594122ef48557b | 0d92410629eac97608d30f4025030361120abca3 | refs/heads/master | 2021-01-20T23:08:49.683823 | 2016-12-24T08:24:42 | 2016-12-24T08:24:42 | 62,642,856 | 0 | 10 | null | 2016-12-26T19:59:27 | 2016-07-05T14:20:53 | C++ | UTF-8 | C++ | false | false | 5,669 | cpp | graphcut.cpp | #include <iostream>
#include <vector>
#include <chrono>
#include "opencv2/core/utility.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc.hpp"
using namespace cv;
using namespace std;
static string imgname;
static Mat imgOrigin, img2Show;
static Rect rect;
static bool rectIsSet = false;
static cons... |
8c81460d549c72ba503bcd952c99da20b63b5eb8 | 3172e1455ae3d40289c122f1e39da054c3137f40 | /Ishrakk_Tawsif-ac/UVA/12442/8272038_AC_670ms_0kB.cpp | 860f58285a20f34929ee1a22b518967045301609 | [] | no_license | Ishrak-Tawsif/Accepted-Codes | 959d2e1b444e3a7727ad78945f0590f62819ba31 | 24254c00e4b1c5a0b5ffc8eb2a01ee1d53f9a467 | refs/heads/master | 2020-12-26T19:36:15.048621 | 2020-02-01T13:27:56 | 2020-02-01T13:27:56 | 237,616,661 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,337 | cpp | 8272038_AC_670ms_0kB.cpp | #include<bits/stdc++.h>
using namespace std;
#define mx 50003
vector <int> graph[mx];
//bitset <mx> vis;
int dis[mx],vis[mx],vis2[mx],max_;
int dfs(int s)
{
vis[s]=vis2[s]=1;
for(int i=0; i<graph[s].size(); i++)
{
int v=graph[s][i];
if(!vis2[v]) {
dis[v]=... |
bff926c7f3ffeca93813b9f2d87a14cb4980c251 | 6d51efbb264ef5920a99c54e2e436bc2f0a4ec40 | /C++-Practise/TRIE.cpp | 1395f60e98c29484ce5cb1a792412f418e90a55b | [] | no_license | Sarvesh1990/Coding-Practise | db3adc0d4fca25ddee6ea5c99ad6a26baac917de | 6c64219f058d89c3fb76cc86ece4ec14dffd286e | refs/heads/master | 2021-01-10T15:33:56.291896 | 2016-01-09T11:37:01 | 2016-01-09T11:37:01 | 47,115,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,513 | cpp | TRIE.cpp | #include <iostream>
#include <string>
#define DIFF(c) ((int)c - (int)'a')
using namespace std;
struct Node
{
int value;
Node * children [26];
};
Node * newNode()
{
Node * myNode = new Node();
myNode->value=0;
for(int i=0; i<26; i++)
myNode->children[i]=NULL;
return myNode;
}
/*
int DIFF... |
8810141f0190b0311f55ddceefb3405266df54fd | 0f7bdf7a3c719f2437f79ec0605e66de4ec33859 | /src/swizzles/uci/go.cpp | 1e981237c635e623feab0444ac4733823e287656 | [
"MIT"
] | permissive | kz04px/swizzles | 0646fe1b6ffec80bfabe6f30cdc5d09694afb28f | d77585055922e64ed4f5ff3acd1a9a28c80ae399 | refs/heads/master | 2022-05-31T06:30:41.553468 | 2022-05-07T20:17:58 | 2022-05-07T20:17:58 | 356,985,339 | 1 | 13 | MIT | 2022-04-12T20:42:30 | 2021-04-11T21:39:32 | C++ | UTF-8 | C++ | false | false | 3,264 | cpp | go.cpp | #include <cstdint>
#include <iostream>
#include <thread>
#include "../search/pv.hpp"
#include "../search/root.hpp"
#include "../search/settings.hpp"
#include "../settings.hpp"
#include "uci.hpp"
namespace swizzles::uci {
std::thread search_thread;
std::atomic<bool> search_stop = false;
auto uci_info_printer = [](cons... |
4bde0980b7744078058e5685f78c89d761de2383 | a0798af89acaa5fb2959e2bba20e26d0b9e84da9 | /Editor/src/gdeditor.h | 974f149fdeee954a2bb5e378678e785d22e35e56 | [
"Apache-2.0"
] | permissive | guilmont/GDManager | b562a114176d2a986e90d7e41a6b764ea8f61fa9 | dedb0b6c5e1c55886def5360837cbce2485c0d78 | refs/heads/master | 2023-08-06T14:31:15.696019 | 2021-10-01T06:39:42 | 2021-10-01T06:39:42 | 397,579,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | h | gdeditor.h | #include "GDManager.h"
#include "GRender.h"
class GDEditor : public GRender::Application
{
public:
GDEditor(void);
~GDEditor(void);
void onUserUpdate(float deltaTime) override;
void ImGuiLayer(void) override;
void ImGuiMenuLayer(void) override;
void openFile(const fs::path& inPath); // So we can o... |
5691da0fa23ec95c3e2c4f69a1a31a246698f3ee | acbc41a1399241aaebbd8704a93fabae4d6f276d | /src/qt/myrestrictedassetrecord.cpp | fda030aa531d04f29ad38d4000c60f26e0d6b932 | [
"MIT"
] | permissive | RavenProject/Ravencoin | 208d9be7fcc833ff4e997aa5e47b28502062547b | e48d932ec70267a62ec3541bdaf4fe022c149f0e | refs/heads/master | 2023-08-24T16:19:21.693091 | 2023-03-12T00:02:22 | 2023-03-12T00:02:22 | 96,713,114 | 1,218 | 871 | MIT | 2023-06-04T06:12:44 | 2017-07-09T21:42:06 | C | UTF-8 | C++ | false | false | 2,839 | cpp | myrestrictedassetrecord.cpp | // Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017-2019 The Raven Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "myrestrictedassetrecord.h"
#include "assets/assets.h"
#includ... |
546da843dcc32caea226c4368c7856c8edebb65f | 13d7dd2ec7e94721edce66e01075e3024c6ece28 | /M2TWEOP/Params.h | bf1d543ae3686f0c7d5a340ce63ac76ae153c2bb | [] | no_license | youneuoy/M2TWEOP | 7918717e0621c0d053f464a77edd65bc053aa7c9 | 8e4d9697d447322f478448e1dbcf335ed8720b28 | refs/heads/master | 2023-03-02T12:40:56.377072 | 2021-02-08T07:17:11 | 2021-02-08T07:17:11 | 302,403,597 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 493 | h | Params.h | #pragma once
#include <string>
#include <vector>
#include <windows.h>
using namespace std;
class Params
{
public:
static void readStringInQuotes(string* arg, string s, string param);
static void findOWParam(char* arg, string s, string param);
static string getParrentDir(string patch);
static string getFileNam... |
3a1b0a3c4ce4942b3bea639bbcb9adccb6d72688 | 19555fc7ebb58e6d915b78a22b9b8a29de4fabe0 | /inc/platform/application.h | 380780c55745974bd321c77eabf5328c7f30b770 | [
"Unlicense"
] | permissive | wyrover/freeimage-PhotoViewer | 1713a79d0f4a98b0b0ee7cca31aadc6e88c476a6 | 9d8fa6024e81e50904bab941501c639716cf26e0 | refs/heads/master | 2021-05-27T18:05:11.281823 | 2013-09-03T03:20:54 | 2013-09-03T03:20:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,354 | h | application.h | #ifndef _PLATFORM_APPLICATION_H_INCLUDED_
#define _PLATFORM_APPLICATION_H_INCLUDED_
#include <string>
#include "platform/registrysettings.h"
#include "platform/eventhandler.h"
namespace Platform
{
class Application : public Platform::EventHandler
{
public:
Application(const std::wstring &name,
... |
508f979f6782120f174cef875a426fa76c5d8965 | 59b8ea5e919fe9761fe5799e9f591850d71383c0 | /codechef/long/jan_2020/BreakingBricks.cpp | 227681abecbff4c7f3403302f469bd99bf6ac1f1 | [] | no_license | utsavkuchhal/Competitive-Programming | a25db05aaf16009910497c1b1127815fece332aa | fd16601f223dbd168c4a3efda7d78af799ac4602 | refs/heads/master | 2023-04-18T00:33:31.738464 | 2021-04-24T03:07:50 | 2021-04-24T03:07:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 604 | cpp | BreakingBricks.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int s,w1,w2,w3;
cin>>s>>w1>>w2>>w3;
int count=0;
if(w1+w2+w3<=s){
count++;
cout<<count<<endl;
}
else{
if(w1+w2<=s){
count+=... |
6f6af2641c4ba695c7cca2bf9d23262a359c2b56 | 749f3d84569bf9de824d9b5d941a1c3030c6fb8a | /Ch3_Oscillation/oscillatorObjects/src/oscillatorObjectsApp.cpp | 27fb620de5197be44925e526a2d19970ac07b377 | [] | no_license | jefarrell/NatureOfCode_Cinder | 1da74b6d1f3680f2fcd0883e3fa68c0d673225f0 | 54f096c0ab94663e6611b7b37acfa42822b1c864 | refs/heads/master | 2021-01-10T08:57:47.102139 | 2016-03-25T17:45:41 | 2016-03-25T17:45:41 | 50,674,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 954 | cpp | oscillatorObjectsApp.cpp | #include "cinder/app/App.h"
#include "cinder/app/RendererGl.h"
#include "cinder/gl/gl.h"
#include "Oscillator.hpp"
using namespace ci;
using namespace ci::app;
using namespace std;
class oscillatorObjectsApp : public App {
public:
void setup() override;
void mouseDown( MouseEvent event ) override;
void update() ... |
4f8116da202e3a3ac0da18212583cbae75203cb9 | 2d8e60c31515daf8865642304c6fedf228399707 | /Game2D/Renderer.cpp | 093ba9a191ddf05cf793c4c2e279f5a5fb8d2bd1 | [] | no_license | Bargestt/Game2D-ShootingDuel | fd3ad3c2e57cfdc63536ac068f976e41e00dee24 | 2ed3ef053bef7869e1ae11ca9fd5b1904a814ef6 | refs/heads/master | 2020-03-15T12:40:53.721554 | 2018-05-06T08:14:35 | 2018-05-06T08:14:35 | 132,149,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | Renderer.cpp | #include "stdafx.h"
#include "Renderer.h"
using namespace std;
using namespace sf;
Renderer::Renderer(const GameContext& context)
: pWindow(context.window)
{
}
Renderer::~Renderer()
{
}
void Renderer::finishRender()
{
pWindow->clear();
for (auto shape : drawables)
{
pWindow->draw(*shape);
}
drawables... |
82880709041df153a5b6b0edba53c05945ebdf7c | bdbdeda733fb1f44ec3f08dc071136f6e0347439 | /reportvalidator.h | f3c49b1caff92945235b81a13cafd8f6ffbaa7eb | [] | no_license | theunusingname/filingCheck | 54c220b29fe30f5e977d4dfdb76aca084e7451d1 | 31529427144cfa2cf12d407eab11800a95ed807d | refs/heads/master | 2021-01-10T02:31:01.935980 | 2016-01-29T19:30:39 | 2016-01-29T19:30:39 | 50,236,090 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | h | reportvalidator.h | #ifndef REPORTVALIDATO_H
#define REPORTVALIDATO_H
#include <QFile>
#include <QTextStream>
#include <qfiledialog.h>
#include <QString>
class ReportValidator
{
private:
QStringList filesList;
QStringList watingList;
int schema;
public:
enum{V2,V3,XML};
ReportValidator();
ReportValidator(int sc... |
afc9c5566d2417a113bfee97298a0e49d9f4f5b2 | 9a33566bdd5fd8a1a7f40b27f69ad8d1118f8f18 | /epoch/ayla/include/ayla/serialization/vertex_serializer.hpp | a134b9d2bebec059ef4ba10fcc833198f2424461 | [
"MIT"
] | permissive | nwalablessing/vize | d0968f6208d608d9b158f0b21b0d063a12a45c81 | 042c16f96d8790303563be6787200558e1ec00b2 | refs/heads/master | 2023-05-31T15:39:02.877681 | 2019-12-22T14:09:02 | 2019-12-22T14:09:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | hpp | vertex_serializer.hpp | #ifndef AYLA_VERTEX_SERIALIZER_HPP
#define AYLA_VERTEX_SERIALIZER_HPP
namespace ayla {
class Vertex;
}
namespace boost {
namespace serialization {
template <class Archive>
void serialize(Archive& ar, ayla::Vertex& vertex, const unsigned int version);
}
}
#endif // AYLA_VERTEX_SERIALIZER_HPP |
a91a261fad56ac2c8f646346431f16b87fac537e | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Alignment/OfflineValidation/plugins/MuonAlignmentAnalyzer.cc | 38cb8d0adaf394d06c8f52633c3f078fcfe1b783 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 135,953 | cc | MuonAlignmentAnalyzer.cc | /** \class MuonAlignmentAnalyzer
* MuonAlignment offline Monitor Analyzer
* Makes histograms of high level Muon objects/quantities
* for Alignment Scenarios/DB comparison
*
* $Date: 2011/09/04 17:40:58 $
* $Revision: 1.13 $
* \author J. Fernandez - Univ. Oviedo <Javier.Fernandez@cern.ch>
*/
#include "Al... |
2735a931ea47bc46a55b5a6db36702aa0dc4885a | b47a67b1293864730ec4d8dc231c01e408c200fa | /lessons/02-branches/src/exercise_01_sol.cpp | b3dd2ecc20369f53eee591a39bdaf87e15fdb040 | [
"BSD-3-Clause"
] | permissive | alvarovm/LearnCPP11 | 4f04b20fcc767f95692c39aecb8d696a907c6ccd | 025a6e043c6eadb61324c261168bbd0478d9690b | refs/heads/master | 2021-09-16T11:05:35.555785 | 2018-06-20T00:17:17 | 2018-06-20T00:17:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,520 | cpp | exercise_01_sol.cpp | #include <iostream>
int main(int argc, char** argv) {
// Usage printing if less than two arguments
if (argc < 3) {
std::cout << "Usage: " << argv[0] << " <char1> <char2>\n";
return 0;
}
// Assigning the characters to c1 and c2
char c1 = *argv[1];
char c2 = *argv[2];
// Checking if they are c... |
e4a08f2324c7034cce33d9d3dc164335a7c17aa4 | d1ffdefc460487f97c937df25f10c40cf150797a | /leNet.h | bdf1822c49be35566da7ef20018ba54bd3ef5c1a | [] | no_license | saurav2000/Image-Processing-TrainedCNN | cdbe7ff9b4071bcf6fc2f844f0529400592e8462 | 43a620c70a385fe9a83b17b87ec1c0fc009a92c1 | refs/heads/master | 2020-04-15T18:43:48.106615 | 2019-10-20T16:53:50 | 2019-10-20T16:53:50 | 164,922,483 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 148 | h | leNet.h | #include <vector>
int leNetArchitecture(std::vector<std::vector<float> > &img, char* c1, char* c2, char* fc1, char* fc2, std::vector<float> &prob); |
f7c07c5eb32f96aa8fa8f0a6f4c57bde818656db | 20164225b26f3d07893496ecf1b33d294b2d10ff | /entregable/backend-multi/RWLock_sem_librito.h | a9fe61d42bfef1e4fdee16f69a91cc27f9b71f71 | [] | no_license | mnsantos/sistemas-tp2 | 07b0c8cf630fb8b2369f7708238027b852c870ac | 0a13d94f5b8c93726f1f55a215ae87899b4a0570 | refs/heads/master | 2020-05-20T09:39:08.685149 | 2013-12-09T00:50:01 | 2013-12-09T00:50:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 348 | h | RWLock_sem_librito.h | #ifndef RWLock_h
#define RWLock_h
#include <iostream>
#include <semaphore.h>
#include <assert.h>
class RWLock {
public:
RWLock();
~RWLock();
void rlock();
void wlock();
void runlock();
void wunlock();
private:
sem_t turnstile;
sem_t roomEmpty;
sem_t mutex;... |
703e1641dc5283507dac9d9623ff955ceda9dc40 | 8f267f2f54ac5d58f9715eb57e1d279cb5e31e80 | /src/core/unittype.hpp | 6b469e8780b00f8b588aba21cfb0ff413c8b7c8f | [] | no_license | LodePublishing/Evolution-Forge-2 | d455293b1736abcbacc5277b77aad1e4699b0671 | bca5dcd7c652d3b4525a8159bc58d24d5b9b4c4e | refs/heads/master | 2021-03-27T10:56:03.473667 | 2016-12-01T10:38:12 | 2016-12-01T10:38:12 | 67,313,513 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,015 | hpp | unittype.hpp | #ifndef _CORE_UNITTYPE_HPP
#define _CORE_UNITTYPE_HPP
#include <string>
#include <list>
#include <vector>
#pragma warning(push, 0)
#include <boost/shared_ptr.hpp>
#include <boost/assign/list_of.hpp>
#pragma warning(pop)
#include <misc/uuid.hpp>
#include "unitresourcetype.hpp"
#include "race.hpp"
#include "enums/un... |
236acf9c405b177c4193bf0d717dbef2db0b4b34 | 06bed8ad5fd60e5bba6297e9870a264bfa91a71d | /JavaQt/imageicon.cpp | 277c27b48a6f46e9e31c2aec5df38fedbfc71af1 | [] | no_license | allenck/DecoderPro_app | 43aeb9561fe3fe9753684f7d6d76146097d78e88 | 226c7f245aeb6951528d970f773776d50ae2c1dc | refs/heads/master | 2023-05-12T07:36:18.153909 | 2023-05-10T21:17:40 | 2023-05-10T21:17:40 | 61,044,197 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 20,280 | cpp | imageicon.cpp | #include "imageicon.h"
ImageIcon::ImageIcon(QObject *parent) : QObject(parent)
{
init();
}
/**
* An implementation of the Icon interface that paints Icons
* from Images. Images that are created from a URL, filename or byte array
* are preloaded using MediaTracker to monitor the loaded state
* of the image.
*
* ... |
4de7d216844e52bc9c6b95e2241918295ac5303d | 107a54b3709a8b4f20ff1ab110187652d6438395 | /Server/Frame/login.h | 4b7b52b5789729831edcf92232ace22bcf09c661 | [] | no_license | liugang-kv7/GraduationDesign-github | 82ed5a98eed704c3717e481930f6e1552db15223 | 496f355bf727a6191add4435afafd20d566e9cbc | refs/heads/master | 2021-01-20T19:39:11.455923 | 2016-06-05T15:35:42 | 2016-06-05T15:35:42 | 60,467,119 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 660 | h | login.h | #ifndef _LOGIN_H__
#define _LOGIN_H__
#include "../Include/server_base.h"
#include "mysql.h"
namespace IslandSurvival{
#define dbconfig "./config/database.txt"
enum
{
db_error = 0,
login_succeed = 1,
login_failed = 2,
regist_succeed = 3,
regist_used = 4
};
class Login
{
public:
static Login* Instance();
i... |
2a922dbd4ddd1305afa6b57b096071d628bcb528 | 95a254c8eaa6fae336e918111a039c8ec027793b | /sum-of-substrings-easy.cpp | 823e24f382252ae255ec0053aa19ad80a069bee7 | [] | no_license | kpratik2015/Interview-Code-Practice | 9d17b042a1c991215e40cd2cb6e30cafa02b1e9a | 6242c681a19617e410a30300e0d21dae103b56ae | refs/heads/master | 2020-12-03T00:04:02.779405 | 2018-02-05T03:25:43 | 2018-02-05T03:25:43 | 95,981,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 760 | cpp | sum-of-substrings-easy.cpp | /*
SIMPLER SOLUTION:
Input : num = “1234”
Output : 1670
Sum = 1 + 2 + 3 + 4 + 12 + 23 +
34 + 123 + 234 + 1234
= 1670
*/
#include <iostream>
#include <string>
using namespace std;
int main() {
string num = "1234";
int length = num.length();
// cout << "String length: " << length << endl;
int sum ... |
9e6c2e461d28baa1280da498884c04f5af99fb2c | 2a8a290eb1d0703a7c7b21429b07870c5ffa868e | /Include/ecrD3D11Renderer/D3D11Include.h | 6e21c5e278c0575591fdbd6fbe85cb93561e6b38 | [] | no_license | sigmaco/gamebryo-v32 | b935d737b773497bf9e663887e326db4eca81885 | 0709c2570e21f6bb06a9382f9e1aa524070f3751 | refs/heads/master | 2023-03-31T13:56:37.844472 | 2021-04-17T02:30:46 | 2021-04-17T02:30:46 | 198,067,949 | 4 | 4 | null | 2021-04-17T02:30:47 | 2019-07-21T14:39:54 | C++ | UTF-8 | C++ | false | false | 1,580 | h | D3D11Include.h | // EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION
//
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Emergent Game Technologies and may not
// be copied or disclosed except in accordance with the terms of that
// agreement.
//
// Copyright (c) 1996-... |
26983ffdea40e792a42bd313d4b8a40e399aa44a | 600df3590cce1fe49b9a96e9ca5b5242884a2a70 | /chrome/test/base/ash_test_environment_chrome.h | 06708c85e85f5763f4d042723d23e4bf9eab3f48 | [
"BSD-3-Clause"
] | permissive | metux/chromium-suckless | efd087ba4f4070a6caac5bfbfb0f7a4e2f3c438a | 72a05af97787001756bae2511b7985e61498c965 | refs/heads/orig | 2022-12-04T23:53:58.681218 | 2017-04-30T10:59:06 | 2017-04-30T23:35:58 | 89,884,931 | 5 | 3 | BSD-3-Clause | 2022-11-23T20:52:53 | 2017-05-01T00:09:08 | null | UTF-8 | C++ | false | false | 782 | h | ash_test_environment_chrome.h | // Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_TEST_BASE_ASH_TEST_ENVIRONMENT_CHROME_H_
#define CHROME_TEST_BASE_ASH_TEST_ENVIRONMENT_CHROME_H_
#include "ash/test/ash_test_environment.h... |
5ffa45c729ca68ca9ebee095d0dfec10ff54ee17 | 75db20d51489f9cce049474945850cfd38f71096 | /Orderfile.h | ed6e680ea6db5be8481f87c14073c0ff385cc02f | [] | no_license | Dark-Patrick/text | d7b4546557ff76d71e2fa9cdabc33593cde10c79 | a37a9209eaccae93c868a2327532ba3cf700dcf7 | refs/heads/main | 2023-02-17T14:34:30.520770 | 2020-12-28T13:10:11 | 2020-12-28T13:10:11 | 324,261,186 | 2 | 0 | null | null | null | null | GB18030 | C++ | false | false | 315 | h | Orderfile.h | #pragma once
#include<iostream>
#include<map>
#include"globalFile.h"
using namespace std;
class Orderfile {
public:
Orderfile();
void updateOrder();
map<int, map<string, string>>m_orderData;
//!!key:int 代表机录的条数 key:string 代表date interval 等属性
int order_size;
};
|
b4a12d733c05c5bc617a1dbc28fb6ff320623e81 | 755a05dbf86eedc8ee02c999bc867e5acf4c94b4 | /dcp_cpp/test/TestDay304.cpp | c82e226351876e569f56355ee1273b2284342e85 | [
"MIT"
] | permissive | sraaphorst/daily-coding-problem | b667b9dcd5c60756806101905047a50e25fdd51f | 5981e97106376186241f0fad81ee0e3a9b0270b5 | refs/heads/master | 2022-12-11T23:56:43.533967 | 2022-12-04T09:28:53 | 2022-12-04T09:28:53 | 182,330,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 722 | cpp | TestDay304.cpp | /**
* TestDay304.cpp
*
* By Sebastian Raaphorst, 2020.
*/
#include <catch.hpp>
#include <cmath>
#include <day304/day304.h>
using namespace dcp::day304;
TEST_CASE("Day 304: Make sure all positions in [0,3]x[0,3] match for five steps") {
for (size_t x = 0; x < 3; ++x)
for (size_t y = 0; y < 3; ++y)
... |
cf8cb9d8a0c261a3e8f1a054496afd40a9919d41 | f08ebf4a9a4019239c8eedf1d8e7249828b47dd2 | /MSVC/Common_utilities/PantheiosLogHelper.h | 8e190399f6ea824b23e4b9e81a2277e5ba1e4178 | [] | no_license | baniuk/A2F | 473e30fbc95b3c7f4dbc9439263d78876b321970 | 79298f1348d01e17dc7da45ea3847e768bb69de4 | refs/heads/master | 2020-04-28T23:21:58.557787 | 2014-04-11T18:41:59 | 2014-04-11T18:41:59 | 175,651,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 933 | h | PantheiosLogHelper.h | /**
* \file PantheiosLogHelper.h
* \brief Helps in logging
* \author PB
* \date 2014/01/20
* \version 0.5
* \remarks Requires "Pantheios_header.h" and <comutil.h>
*/
#ifndef PantheiosLogHelper_h__
#define PantheiosLogHelper_h__
// user includes
#include "Pantheios_header.h"
#include <comutil.h>
#inclu... |
294a2d58deec97c18eb428b161a603c869ec6a3f | 21ef516c20961b9a29148258552cf1072c93715c | /lib/Galois/libgalois/include/galois/runtime/Iterable.h | c41bef9b06353c4b1952bfb79b8cc99a6a6357ad | [
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | rovinski/LSOracle | b6426c3e45129faa4c41e0f569c323d9d78a9643 | 0a3f08fb9925e45fa912799d0ee96513c02005e1 | refs/heads/master | 2023-06-08T05:35:28.164760 | 2021-07-02T00:46:41 | 2021-07-02T00:46:41 | 382,189,413 | 0 | 0 | MIT | 2021-07-02T00:33:59 | 2021-07-02T00:33:59 | null | UTF-8 | C++ | false | false | 2,045 | h | Iterable.h | /*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
77b7552b59cc81ed8c59004ccd138d86ea94e772 | 9a49a034538934bb733af731de0b6be527ea4f23 | /leetcode_c++/54.spiral-matrix.cpp | 40b8976d541543fbdcb9fc79f2419467df4533af | [] | no_license | bjut-hz/basics | a34b793d279adf5d1d2dcd7cdd92a865e036116a | 0d355e2b47bb8de5c7c7fd79363d279eda8f1243 | refs/heads/master | 2021-07-23T13:18:25.902620 | 2021-07-04T08:15:11 | 2021-07-04T08:15:11 | 144,576,914 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | 54.spiral-matrix.cpp | /*
* @lc app=leetcode id=54 lang=cpp
*
* [54] Spiral Matrix
*/
// @lc code=start
class Solution {
public:
/*
在展开数组时,我们可以看到,我们按照的顺序是:
向右->向下->向左->向上
假如说一个矩阵是m*n的,那么,首先向右走m步,然后向下走n-1步;接着向左走m-1步,之后向上走n-2步。。。
当我们发现需要走的步数为0时,自然就结束了。
*/
vector<int> spiralOrd... |
0028c4f9fb0bb6292500cd706989087207fa925f | 95c669a8f5732cd9efe831eaae3e50fdc7261297 | /qinteractivemaptool.h | 05108d50a9b155a7196468fbbe1b81f8a1154615 | [] | no_license | xin0111/QMapInteractiveHelp | 44b953d0b9407a4a5cec93443448327b5167b05c | e00ee7005ef3fddf0deb2ad9100157e88c753fb2 | refs/heads/master | 2020-05-24T05:54:16.059860 | 2019-05-17T02:43:37 | 2019-05-17T02:43:37 | 187,128,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,581 | h | qinteractivemaptool.h | #ifndef QGSMAPTOOL_H
#define QGSMAPTOOL_H
#include <QCursor>
#include <QString>
#include <QObject>
#include "qmapinteractive_global.h"
class QWidget;
class QKeyEvent;
class QMouseEvent;
class QWheelEvent;
class QPoint;
class QAction;
class QAbstractButton;
class QInteractiveManager;
/**
* \ingroup gui
* Abstract ... |
35009c51f9010958a9ca95bc8f378301c8d88ce8 | 7e1107c4995489a26c4007e41b53ea8d00ab2134 | /game/code/main/gcplatform.h | ddab488e7ff625bc43dd0dc7bac3b270dfd8be96 | [] | no_license | Svxy/The-Simpsons-Hit-and-Run | 83837eb2bfb79d5ddb008346313aad42cd39f10d | eb4b3404aa00220d659e532151dab13d642c17a3 | refs/heads/main | 2023-07-14T07:19:13.324803 | 2023-05-31T21:31:32 | 2023-05-31T21:31:32 | 647,840,572 | 591 | 45 | null | null | null | null | UTF-8 | C++ | false | false | 5,284 | h | gcplatform.h | //=============================================================================
// Copyright (C) 2002 Radical Entertainment Ltd. All rights reserved.
//
// File: gcplatform.h
//
// Description: Abstracts the differences for setting up and shutting down
// the different platforms.
//
// History: ... |
59c6d924f7c1e426940cb4105b959b896abb6be0 | ba69594df5b20968f64346c28a98eba34513d449 | /OOP-Task-1c_Skelington-master/CurrentAccount.h | e0941cdf005bb0970f5af96a08c3b1308bacc414 | [
"Apache-2.0"
] | permissive | rooleyzee123/C-Example-work | 164a9e1edcb5a7bf0b16af974da03bc1ce3a3fa8 | cdadd902e5cb9a071b72f3456a6e7bccfd113780 | refs/heads/master | 2020-03-24T05:58:41.240408 | 2018-07-27T01:17:12 | 2018-07-27T01:17:12 | 142,511,403 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 747 | h | CurrentAccount.h | //Pascale Vacher - February 18
//OOP Assignment Task 1c - Semester 2
//Group Number: 16
//Team: Dion Perez-France, Daniel Rose, Zak Bond, Zak Rooley
#ifndef CurrentAccountH
#define CurrentAccountH
//---------------------------------------------------------------------------
//CurrentAccount: class declaration
//-----... |
427c3efdefaea3b52cc0db41c9fe80a744d05ecf | 1b90be9561c10508eea59cb36c1f1665d0ef947f | /test/unit/math/prim/prob/discrete_range_ccdf_log_test.cpp | e4e8d900aba456528c363ad31199beecb2d6ee55 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | stan-dev/math | 473e7c1eaf11f84eaf2032c2455e12ba65feef39 | bdf281f4e7f8034f47974d14dea7f09e600ac02a | refs/heads/develop | 2023-08-31T09:02:59.224115 | 2023-08-29T15:17:01 | 2023-08-29T15:17:01 | 38,388,440 | 732 | 240 | BSD-3-Clause | 2023-09-14T19:44:20 | 2015-07-01T18:40:54 | C++ | UTF-8 | C++ | false | false | 1,248 | cpp | discrete_range_ccdf_log_test.cpp | #include <stan/math/prim.hpp>
#include <gtest/gtest.h>
TEST(ProbDiscreteRange, cdf_log_matches_lccdf) {
using stan::math::discrete_range_ccdf_log;
using stan::math::discrete_range_lccdf;
for (int lower = 0; lower < 5; ++lower) {
for (int upper = lower; upper < 5; ++upper) {
for (int y = lower; y <= up... |
28b26c2a25fa533a376d98484f4bc034f3293091 | 80a945c29335f6a9ad6de57392b8563952b3feda | /LinkedList/DoubleLinkedList/DoubleLinkedList.cpp | 1f412c8216f9337ef1f6baab9c1320c6ee7aadfb | [] | no_license | NTZemp/LinkedList_M411 | edbd5bb16431166cb0be4e903ad8b2694a1fac8b | 4e885729a4a6e17f1b2d985aaee787aa6ba3a8dd | refs/heads/master | 2020-04-10T05:09:09.124404 | 2019-01-11T12:49:23 | 2019-01-11T12:49:23 | 160,818,957 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 13,531 | cpp | DoubleLinkedList.cpp | #include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "time.h"
#include "chrono"
typedef struct Person {
char firstname[40];
char lastname[40];
int year;
struct Person* pNext;
struct Person* pPrev;
} struPerson;
/*
Autor: Lino Meyer
Gibt einen zufälligen Grossbuchstaben zurü... |
a763d9e2408528adae878c2f215bf125aa1118b8 | 2168abb68394404d9402cc3be9e4a6c186866197 | /WiiRemote.cpp | 7cae018212deb9f2e80c73dd8209d03c868120cf | [] | no_license | ZalophusDokdo/WiiRemote-2WS-Control | 737235a05f365dac7be7fe67736bec2c6329a63e | 4ebe1d5a13815b699f53ba4002d31f6d5b249ef4 | refs/heads/master | 2021-01-18T01:41:06.700845 | 2019-02-24T18:41:33 | 2019-02-24T18:41:33 | 62,112,717 | 4 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 36,405 | cpp | WiiRemote.cpp | /*
WiiRemote.cpp - WiiRemote Bluetooth stack on Arduino with USB Host Shield
Copyright (C) 2010 Tomo Tanaka
This program is based on <wiiblue.pde> which is developed by Richard Ibbotson.
This program also needs MAX3421E and USB libraries for Arduino written by Oleg Mazurov.
The source codes can be grabbed from <https:... |
c4c7429d9a795a093fac4f2330d2e6544a0d5b5c | 857d865574bb4eabd9dfdd12c39fa8038c1317a0 | /Source/Runtime/D3D11RHI/DX11/Bindable/Topology.h | a9a31e7db153ebd2097a24246a3766e1b45b97f7 | [] | no_license | WssIDs/SimpleGameEngine | ee112af1e4910a891888121628e621566ecb2e07 | 92b310a90858d4b8301308d00de4dd40584e73ff | refs/heads/master | 2021-12-27T13:42:29.027676 | 2021-12-21T00:15:10 | 2021-12-21T00:15:10 | 222,161,333 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 469 | h | Topology.h | #pragma once
#include <Runtime/D3D11RHI/DX11/Bindable/Bindable.h>
namespace Bind
{
class Topology : public Bindable
{
public:
Topology(DX11RHI& gfx, D3D_PRIMITIVE_TOPOLOGY type);
virtual void Bind(DX11RHI& gfx) override;
static std::shared_ptr<Topology> Resolve(DX11RHI& gfx, D3D_PRIMITIVE_TOPOLOGY type);
s... |
33cfc1d4ea236897e1384555c84e06aebc47e278 | 27595b0aa0ab23e6307adb1e22aebc6b11619c36 | /LP_Lab14/Automat.h | 6edb6a5bad5c4d4a97e2e1addaf4a2a608d3bc38 | [] | no_license | Harwex213/Prog_Langs_3sem | 16f888ed1dee46cacb8a8fe5132301dd9a176aad | aa070c7061d3d62f2f7cdde180c1bbad5a123e6b | refs/heads/master | 2023-02-01T04:37:34.690024 | 2020-12-15T23:51:52 | 2020-12-15T23:51:52 | 293,024,483 | 0 | 2 | null | 2020-09-11T07:15:34 | 2020-09-05T07:17:34 | C++ | UTF-8 | C++ | false | false | 249 | h | Automat.h | #pragma once
#include "FST.h"
#include "IT.h"
#include "Graph.h"
namespace Automat
{
struct AUTOMAT
{
FST::FST* KeyWord = NULL;
char* nothing = NULL;
FST::FST selectGraph = { GRAPH_SELECT };
FST::FST& operator[] (const char index);
};
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.