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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
46d3eb11a28643fee1b734a67864e09a887400aa | 877d022e8c1e4047cd7d23367cbc2c8991b49ee5 | /2014-2015/2015 summer/duoxiao/2015 Multi-University Training Contest 10/1007 g.cpp | ea3ed277d748a8110943c56e49b45205e648653f | [] | no_license | kimnoic/ACM-ICPC | 59963e4542ac92d46640699a60ff8bb4b3dc3b96 | f52cd20a804f04aced4f3f77278f62a1bf8ff329 | refs/heads/master | 2020-12-21T16:09:18.585974 | 2016-11-11T18:15:53 | 2016-11-11T18:15:53 | 73,498,395 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,994 | cpp | 1007 g.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 200002;
const int INF = 1e9;
struct Tnode{
int c, lc, rc, fa , size;
} T[N];
int lsize(int p)
{
if(T[p].lc) return T[T[p].lc].size;
else return 0;
}
int rsize(int p)
{
if(T[p].rc)
r... |
2e7463edf5ec87f9af019ebd0959ebcf773bb88b | 01ad3df9cde9e88a1dafa77865c9347cec32c42a | /Fingerprint_Recognition/filenameOperations.cpp | 13930251647df7c38954b4c384fc3fb9e05c63e5 | [
"MIT"
] | permissive | nflash24/Intro-to-Software-Engineering | 352895526002e04419968380d4d1f2d90591b8ad | be64d94240df1846f4e3a572f5407a8158d3f93c | refs/heads/main | 2023-01-22T14:20:11.753908 | 2020-12-02T00:47:51 | 2020-12-02T00:47:51 | 309,509,405 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,042 | cpp | filenameOperations.cpp | #include <stdlib.h>
#include <iostream>
#include <vector>
#include <string.h>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "filenameOperations.h"
/*
Default empty constructor.
*/
filenameOperations::filenameOperations() {
// Empt... |
b6a3ccf781d0b3d260b461cb1bb27a9f92cc983a | 716fa41a6596329b30035c258446165cf7052e58 | /src/CLIK/ScrollingList.cpp | 5d8ccc0c1a52fb606acd1a33d2c92c8e06886e9a | [
"MIT"
] | permissive | ahzaab/Skywind | 9ab218b3e145df49651232bc3c8b9abccc19cad9 | 473e348927e327cf0ef5cc5ec6a677fddadd4c6b | refs/heads/master | 2022-11-08T07:21:58.652847 | 2020-06-25T02:44:23 | 2020-06-25T02:44:23 | 267,191,014 | 0 | 1 | MIT | 2020-06-25T02:44:24 | 2020-05-27T01:28:50 | null | UTF-8 | C++ | false | false | 3,514 | cpp | ScrollingList.cpp | #include "PCH.h"
#include "CLIK/ScrollingList.h"
namespace CLIK
{
namespace GFx
{
namespace Controls
{
ScrollingList::ScrollingList() :
super()
{}
ScrollingList::ScrollingList(const ScrollingList& a_rhs) :
super(a_rhs)
{}
ScrollingList::ScrollingList(ScrollingList&& a_rhs) :
super... |
0d935b2003d793194bfeee2207bc15449fff3b2d | cadf9f2b9f281f2adc2732c165b561f30830cc71 | /Libraries/Source/og/Shared/String.cpp | a2128d0d84c7af1085a6557888304a8b3b9cf0c4 | [
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ensiform/open-game-libraries | 0f687adc42beb2d628b19aa0261ed7398245c7e7 | 265c0d13198bd1910fe3c253b4ac04d55016b73f | refs/heads/master | 2020-05-16T23:42:18.476970 | 2014-04-26T17:47:21 | 2014-04-26T17:47:21 | 8,855,538 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,910 | cpp | String.cpp | /*
===========================================================================
The Open Game Libraries.
Copyright (C) 2007-2010 Lusito Software
Author: Santo Pfingsten (TTK-Bandit)
Purpose: String interaction (UTF-8)
-----------------------------------------
This software is provided 'as-is', without any ex... |
2f46dd77330de64610740a617c772314d8289c00 | 80fd9493d9f2b0df745c333f2b36e19c8db098a8 | /old/Marda.old/msvc/Marda.test/test_memorypool.cpp | d2a0a48219b659c990d03f71672de721c82897c5 | [] | no_license | erio-nk/MyCxxProgram2011 | 12c6f96e4b7a4f2cf61bd367cfa9a7143ee3d024 | be1192e34fa6d7c863b0e50c43441245493c84a4 | refs/heads/master | 2021-01-01T16:56:17.535209 | 2012-06-12T14:48:20 | 2012-06-12T14:48:20 | 4,638,409 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,619 | cpp | test_memorypool.cpp | #include <iostream>
// 1,2,4,8,16,32...2の階乗にアラインメントするメタ関数 色々やったけど結局使わない系
#if 1
/* MetaProgramingLibs.hとか作るか・・・
template <bool Expr, int Then, int Else>
struct If;
template <int Then, int Else>
struct If<true, Then, Else>
{
enum { result = Then };
};
template <int Then, int Else>
struct If<false, Then, Else>
{
enu... |
1490aafecf24f21e27fad030b61feb05e1de17ba | 9b101a0f0211b0f8ceb8baeddee71c148e88f80a | /Template/chapter_3/stack1.cpp | acb387c27ebc6dad24e1dee6c00d0a8bba79a15b | [] | no_license | whatcat/Template_c- | 0548f2293ac0f4fdd5f00531667334dcfcd0c5f6 | 0f1babfd12e34d1ae91dd9eb7a573923c3cf3ae8 | refs/heads/master | 2020-04-17T07:53:48.891609 | 2016-08-24T13:00:13 | 2016-08-24T13:00:13 | 66,276,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 463 | cpp | stack1.cpp | #include <iostream>
#include <string>
#include <cstdlib>
#include "stack1.hpp"
int main()
{
try
{
stack<int> intstack;
stack<std::string> stringstack;
intstack.push(7);
std::cout << instack.top() << std::endl;
stringstack.push("hello");
std::cout << stringsatck.top() << std::endl;
intstack.pop();... |
a3fbe6794c482c4f59f97ac2f5de3fd60f3ff0fa | bb69043c8e8037af7b5f3b01e3ce9e10d8bd2aa3 | /BackJoon/bruteforce/7568.cpp | bc52bc605253c94c5af6ef13fdec97d6db1975ec | [] | no_license | youlive789/AlgorithmStudy | 30b7ca7b5fcd630d4f2bf7784bb4a31ecb96ecb1 | c61c01d0ded255acf1ace397e138c9b895cfd332 | refs/heads/master | 2022-05-15T19:17:45.128031 | 2022-04-21T00:30:15 | 2022-04-21T00:30:15 | 183,837,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | cpp | 7568.cpp | #include<iostream>
#include<cstring>
#include<vector>
using namespace std;
int main() {
int cases;
cin >> cases;
vector<pair<int,int>> bodyTable;
vector<int> rank;
while (cases--) {
int weight, length;
cin >> weight >> length;
bodyTable.push_back(make_pa... |
0cdb83e65d051d43d8a81841993b6120422a3767 | c10006ef30bede2a78735f5e126abbc035f5fbfa | /MyBrowser/MyBrowserDoc.h | 666600d9ec5c436fe9476e420403d80e67372121 | [] | no_license | Ye1in/MyBrowser | d86dbcb850c1c0a3a7361e491289b5017b78d9e0 | a4e9201feff8fd5f9107eb5de72e1fb9729d45a2 | refs/heads/master | 2020-03-22T00:26:40.214150 | 2018-06-30T11:38:01 | 2018-06-30T11:38:01 | 139,244,670 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 599 | h | MyBrowserDoc.h | // MyBrowserDoc.h : CMyBrowserDoc 类的接口
//
#pragma once
class CMyBrowserDoc : public CDocument
{
protected: // 仅从序列化创建
CMyBrowserDoc();
DECLARE_DYNCREATE(CMyBrowserDoc)
// 属性
public:
// 操作
public:
// 重写
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
// 实现
public:
virtual ~CMyBro... |
5daa1137a30b5ececc4c99db8cec6e2c0985ce33 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /components/password_manager/core/browser/affiliation/affiliation_fetcher_factory_impl.h | bf05bf5118f565ba508d3dd062acce66cedabc19 | [
"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 | 955 | h | affiliation_fetcher_factory_impl.h | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_AFFILIATION_FETCHER_FACTORY_IMPL_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_AFFILIATION_AFFILIATION_FETCHE... |
6fa43e041c0866a86e7df5e5abf5ade62b743ef8 | 721543fec45960038aeb1d467b8398baf8173b2c | /statistics.h | 77e43220e6c4df8cd3832fa7d74a4cf1fa24eadf | [] | no_license | Lindany/TypingChamps | 4d6faf748a67dd9b4deb7a850a2d8a0355ff986b | b83cf72add1abae5e8402d06a5a6c5cfc7bdb9e5 | refs/heads/master | 2020-03-10T19:46:41.116844 | 2018-04-14T23:02:17 | 2018-04-14T23:02:17 | 129,555,314 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 125 | h | statistics.h | #ifndef STATISTICS_H
#define STATISTICS_H
class Statistics
{
public:
Statistics();
};
#endif // STATISTICS_H |
6d09775c1f433116c32ad4e05e5a56e6ded80998 | 46a270c50ca6d41d92c085aad2d8f8dfa3dc55df | /client/Classes/Player/FmGodAnimal.h | c849420930705d824896e59d6f37c69058959d92 | [] | no_license | PenpenLi/YXLDGameServer | 74e4eb05215373121029beefb9712f94b0488aea | 6f6e709271a0f47aa8d55226fed436308aae2365 | refs/heads/master | 2022-10-20T15:49:13.793932 | 2020-07-15T07:50:00 | 2020-07-15T07:50:00 | 279,802,517 | 0 | 0 | null | 2020-07-15T07:49:15 | 2020-07-15T07:49:14 | null | UTF-8 | C++ | false | false | 620 | h | FmGodAnimal.h | #ifndef _FMGODANIMAL_H_
#define _FMGODANIMAL_H_
#include "FmConfig.h"
#include "../Numeric/GodAnimalData.h"
#include "FmEntity.h"
NS_FM_BEGIN
class GodAnimal: public Entity{
protected:
GodAnimal( uint8 entityType, uint entityId, const string& name );
public:
static Entity* Create( uint entityId, const string& entity... |
7261bb9a3dae2d60809eee20b0bc619942e3560b | 3e1551295154d40d22c5e94b421ed3b1c3f32fcc | /1.5POS_pro/POS/Commodity.cpp | 554b93fa01cf6f72990859777dd945dfc85cbe93 | [] | no_license | letusget/Cplusplus_work | 2cdd81a029839c1fa530ea86e20818576b884333 | 24590a90dd4afe8081744084b40511710f674490 | refs/heads/master | 2023-06-01T01:58:25.726968 | 2021-07-02T15:37:42 | 2021-07-02T15:37:42 | 373,537,522 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,278 | cpp | Commodity.cpp | #include <iostream>
#include "Commodity.h"
// CCommodity类实现
#define N 10
using namespace std;
CCommodity::CCommodity() {
//cout << "CommodityInfo is being created!" << endl;
}
void CCommodity::setInfo(long ld, char upc[], char name[], double price, char manu[]) {
m_nld = ld;
m_pszUpc = upc;
m_pszName = name;
... |
a96eb564c095bd615b06baeb0bb94f4fb7916cbd | 4f1beb085b28c67e1da491a2026a95251ff45bd9 | /main.cpp | c36510c36c7b324272854752bf4cfb9cc0c756b8 | [
"Apache-2.0"
] | permissive | meego-tablet-ux/meego-app-satk | 1f7281407014c39edd4e61ad383df9f36218fffd | 3bede9d18de80ffe43942db4542b0ceecc400fab | refs/heads/master | 2016-09-06T00:02:14.448847 | 2011-07-28T13:50:16 | 2011-07-28T13:50:16 | 32,042,211 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,249 | cpp | main.cpp | /*
* satk - SIM application toolkit
* Copyright © 2011, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Written by - Luc Yriarte <luc.yriarte@linux.int... |
09aefac66ddfb57e35f58032535bd1dced734c6f | 2fda9e8e3cce71f0b11c72df92d1b931b57ba572 | /src/rtValue.h | 353df65af9c9d4f21e1585309e36164716619c1c | [
"Apache-2.0"
] | permissive | mateusz-hobgarski-red/pxCore | 519385eabd37e23818c37b73577d232356001a22 | dddf99ed360c7fa4a98a40c92fc3d0ded864e841 | refs/heads/master | 2020-08-09T19:59:56.287360 | 2019-11-20T13:37:18 | 2019-11-20T13:37:18 | 214,161,586 | 1 | 0 | NOASSERTION | 2019-10-10T11:11:26 | 2019-10-10T11:11:23 | null | UTF-8 | C++ | false | false | 10,132 | h | rtValue.h | /*
pxCore Copyright 2005-2018 John Robinson
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... |
0275378d34f4ecd66de4c56f05d2e4ede3dc9cde | 115c6d0b28478f068cc666d1be0f7aa0b645fc41 | /e08_11/src/e08_11.cpp | 2aa8a38872a8e938d5a4d12c7d594f2c967ee4ef | [] | no_license | ddtBeppu/meikaicpp_beppu | 586e758911472323a8f0b4fa6f5eba5d568ff1b9 | c0aa321ca8a7886789181e4265901c0d47c17183 | refs/heads/master | 2021-04-28T20:09:23.297808 | 2018-05-02T02:35:41 | 2018-05-02T02:35:41 | 121,744,700 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,057 | cpp | e08_11.cpp | //============================================================================
// Name : e08_11.cpp
// Author : Naoto Beppu
// Version :
// Copyright : Your copyright notice
// Description : 演習8-11
// p.312で学習したstrcmp関数およびstrncm関数と同等な関数を作成せよ。
//===========================================... |
57f756b35c2280827e967c0cb6950e5351303bd0 | 26e5083169107af48582ddca8301851397c6669c | /src/Agmd3D/Core/Model/GeometryFactory.cpp | a168acd47fd8652b25abb8bf0e0b60b42c4821bc | [] | no_license | lqq1985/AgmdEngine | 6e62dc44d96a1f92b2e84257fec1e6fb0ff481d7 | 5e9e3b56f8cb2905c5c190794e6db84505eb3433 | refs/heads/master | 2020-12-15T19:31:02.207165 | 2015-01-05T01:15:25 | 2015-01-05T01:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,446 | cpp | GeometryFactory.cpp | #include <Core/Model/GeometryFactory.h>
#define _USE_MATH_DEFINES
#include <math.h>
namespace Agmd
{
#define SELECT(i, size) ((i) >= ((int)size) ? (i)%((int)size) : (i))
void GeometryFactory::lathe( BaseSpline* p1,BaseSpline* p2, std::vector<Model::TVertex>& vertices, std::vector<Model::TIndex>& index,int splice )
... |
3a58e566ceb24c015400dcb6613b08035c993d28 | 38c3018c19fc935b54d02407bf92e4f22e477e04 | /EssayGenerator/Essayomat.cpp | 7369f0010ce587eedcf0e0f2cd68fe2cceec6901 | [
"MIT"
] | permissive | GabrielGhe/CppPractice | 460f6301b40a9e1a8d7aabe10bd7fe4fcc3da4b1 | 4b8645c7a5c38dd1644a470a7129ba4a61427c5d | refs/heads/master | 2020-12-24T13:44:20.413223 | 2014-09-15T18:04:28 | 2014-09-15T18:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,963 | cpp | Essayomat.cpp | #include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include "Essayomat.h"
#include "Sentence.h"
using namespace std;
// Implementation of Essayomat.h
const bool Essayomat::DEBUG = true;
/***********************************************************
* PUBLIC FUNCTIONS
... |
7cff0cee53d6389a59d6bd00580dd3544cd11f55 | d625c2ae433b76affa3c1973d8e951478624ea83 | /TFG_ELO/Simulation.h | 70dc89a0a1569d494036b3c962743467c52e440b | [] | no_license | ArnauGP3599/TFG_ELO | 7ca53b0612c28157769a7fa346c2480b22bf8c97 | d1a8d21a5554a60a445f5e4099404f41009a9710 | refs/heads/main | 2023-06-04T22:10:10.828939 | 2021-06-27T20:47:43 | 2021-06-27T20:47:43 | 335,338,134 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,531 | h | Simulation.h | #pragma once
#include "PlayersDB.h"
#include "Player.h"
#include "TeamBuilder.h"
#include "MatchMaker.h"
#include "MatchSimulator.h"
#include "Classification.h"
#include "Statistics.h"
#include "EloCalculator.h"
#include "Result.h"
#include "ExcelExporter.h"
#include "PropertiesDB.h"
extern "C" {
#include "Lua542/... |
9e17741498eb7a02a870fe1c8aa489a95c65f384 | ef5d89719fe83dd358c6c98f05ddde7ddd702534 | /StrFilter.h | 025694860ee06146e5cbc8ae44232c14f806e417 | [
"BSD-3-Clause"
] | permissive | guozanhua/FTL | 9d20a229ea4a39189709a379a048f362c4df31dd | fdec6f8022fe744a729b7e55a82677d9fcbdde48 | refs/heads/pablo | 2021-01-17T06:27:41.545208 | 2015-04-17T19:52:57 | 2015-04-17T19:52:57 | 34,206,908 | 0 | 2 | null | 2015-04-19T13:04:53 | 2015-04-19T13:04:52 | null | UTF-8 | C++ | false | false | 616 | h | StrFilter.h | /*
* Copyright 2010-2015 Fabric Software Inc. All rights reserved.
*/
#ifndef _FTL_StrFilter_h
#define _FTL_StrFilter_h
#include <FTL/Config.h>
#include <string>
FTL_NAMESPACE_BEGIN
template<typename MatchChar>
std::string StrFilter( char const *cStr )
{
MatchChar const fn;
std::string result;
for (;;)
... |
879d12db232c9b0ddbac69552262ce544e95db48 | d522149c49bde56a02be5df328314ab10ed8940a | /Temp/il2cppOutput/il2cppOutput/Bulk_Assembly-CSharp_0.cpp | 4c2a211b485c68eb155935faf128ab1f7704095f | [] | no_license | cong91/Roulette-Unity2D-Tutorial | 6c3e99993b63047d440da128f2ccf84e296348cb | b1eed2b010cbb46d131b0e93ec9dee55c832fe8d | refs/heads/master | 2020-03-18T13:37:28.159579 | 2017-04-05T14:43:54 | 2017-04-05T14:43:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,688 | cpp | Bulk_Assembly-CSharp_0.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include "class-internals.h"
#include "codegen/il2cpp-codegen.h"
#include "mscorlib_System_Array38294689... |
7a91f8acaabcdff26df89d3c3376f7c0f09b1411 | 24c8ae2fd55150f0c7adc5914f08b920f855903e | /potrace/support/4DPlugin-trans.cpp | ccea281e8785cbd66c5f48e3083b071d43be6d64 | [
"MIT"
] | permissive | miyako/4d-plugin-potrace-v2 | 44ef2845966ceeea2d841a7180c8af87b420ba41 | 985d1ba1510836dc7b877e7d93d99fc4a8cdceaf | refs/heads/master | 2023-06-07T09:50:20.682305 | 2023-05-31T12:28:39 | 2023-05-31T12:28:39 | 193,454,401 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,912 | cpp | 4DPlugin-trans.cpp | #include "4DPlugin-trans.h"
/* rescale the coordinate system to size w x h */
void trans_scale_to_size(trans_t *r, double w, double h) {
double xsc = w/r->bb[0];
double ysc = h/r->bb[1];
r->bb[0] = w;
r->bb[1] = h;
r->orig[0] *= xsc;
r->orig[1] *= ysc;
r->x[0] *= xsc;
r->x[1] ... |
15be7bf0a7f1b2cd8ab34f49ecd04acaacd5e5a8 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/LArCalorimeter/LArGeoModel/LArGeoCode/LArGeoCode/DatabaseAccessTool.h | 9b28d75d2bec25b3c94f85210f9f47a90cee755f | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,152 | h | DatabaseAccessTool.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef DATABASEACCESSTOOL_H_
#define DATABASEACCESSTOOL_H_
#include <string>
//---------------------------------------------------------------------
//
// This class gets data from the detector description database. If no
// connection ... |
0fd22735c6128f1fcf544733f76e51f2e26153f4 | 96e4cba8a8d8045e4b56f991fb79a54c6e2f4d36 | /Arduino /terraindentente/terraindentente.ino | cd4c198e4b439238381443cabbf3236e1c816034 | [] | no_license | natstripe/terrain | cc684d3327e373eea5c8c93be07136144f410a4f | cfdc15823664d618b706c04dd69560675b7a174e | refs/heads/master | 2021-08-23T21:12:08.954818 | 2017-12-06T15:23:04 | 2017-12-06T15:23:04 | 111,234,699 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,160 | ino | terraindentente.ino | #include <CapacitiveSensor.h>
/*
CapitiveSense Library Demo Sketch
Paul Badger 2008
Uses a high value resistor e.g. 10M between send pin and receive pin
Resistor effects sensitivity, experiment with values, 50K - 50M. Larger resistor values yield larger sensor values.
Receive pin is the sensor pin - tr... |
d47ca3a6be24142a6f7aae0e5be9c0eeb24fc7b8 | 1eca33c595bd7c0b7d1e7e320be5b9a39563921a | /Boj_1182.cpp | 44dcf62ca1c812a7c224c37e134aa8db36f86223 | [] | no_license | JoonSCode/Problem-Solving | f56acddd4f863ed99548ae55aed89c457bfab2bd | bea92941f7ae60b76bfec9abfff7078172d0001f | refs/heads/master | 2023-05-25T14:38:18.450665 | 2021-10-19T00:46:28 | 2021-10-19T00:46:28 | 232,744,765 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 706 | cpp | Boj_1182.cpp | //Main idea: next_permutation, prev_permutation을 이용하여 부분순열
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
void run() {
int N, S;
cin >> N >> S;
vector<int> nums;
int answer = 0;
for (int i = 0; i < N; i++) {
int tmp;
cin >> tmp;
nums.push_back(tmp);
}
for (int i = 1; i... |
f08189aa8dd612b6859caae169496068403f8169 | c157037f0e05acb77bdb794f27adefc041875fe2 | /Occultus/Temp/StagingArea/Data/il2cppOutput/AssemblyU2DCSharp_Drawer2055070993.h | bb33d8bdf0fde80d0bc0b7376450914d1549c238 | [] | no_license | gadielxavier/Occultus | 2d8bbade4e29a357ed3c9517190a7c44860baffa | 2ed863760a84b0dad4ca4e2589c1180d65e795d8 | refs/heads/master | 2020-06-17T17:05:10.355507 | 2018-08-05T13:20:10 | 2018-08-05T13:20:10 | 74,987,525 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,088 | h | AssemblyU2DCSharp_Drawer2055070993.h | #pragma once
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <stdint.h>
// UnityEngine.Animator
struct Animator_t2776330603;
// UnityEngine.AudioSource
struct AudioSource_t1740077639;
#include "UnityEngine_UnityEngine_MonoBehaviour667441552.h"
#ifdef __... |
56cffea3de92c393faa246b31d821e62fa95cee6 | ab645fd0c3fddfab1198e8602f0cb05bc7048f91 | /mininero/brief/Ecdh.h | cbca065c6034cebfe91afb0adaec05c2987a0831 | [
"BSD-3-Clause",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | arnuschky/RingCT | 3d2e256a5a912f28e8468278e796b3d4c7193747 | 3a3ce47aed4f147cbbab82f5c8cea7a9f0284dc2 | refs/heads/master | 2021-01-11T20:59:25.011381 | 2017-01-07T19:50:24 | 2017-01-07T19:50:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 637 | h | Ecdh.h | /*
* File: Ecdh.h
* Author: Shen Noether <shen.noether@gmx.com>
*
*/
#pragma once
#include <cstddef>
#include <mutex>
#include <vector>
#include <tuple>
#include "generic-ops.h"
#include "crypto-ops.h"
#include "random.h"
#include "keccak.h"
#include "MiniNero.h"
#include "PaperWallet.h"
#ifndef ECDH_H
#de... |
2542dfe0fbafbdf7b63949db06d7094a3a3d2370 | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/cpp/f041db62c039837611e9ae93871b7b27aa5cacc0StreamStream.cpp | f041db62c039837611e9ae93871b7b27aa5cacc0 | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | C++ | false | false | 947 | cpp | f041db62c039837611e9ae93871b7b27aa5cacc0StreamStream.cpp | #include "Main.h"
StreamStream::StreamStream(std::ostream & Stream)
: ConceptStream(),
m_Stream(Stream)
{
}
StreamStream::~StreamStream()
{
}
StreamStream & StreamStream::operator << (const ConceptId ConceptId)
{
*this << GetConcept(ConceptId);
return *this;
}
StreamStream & StreamStream::operator << (const ... |
9505558e37bdc2cfd617b70b1a29c22e13571c16 | b75cc7aaa17f869946f562062df48155537150d9 | /week2_test_programming/arduino/test_turns_needed_for_360/test_turns_needed_for_360.ino | 6bb8ac734ce78fe5b0408c85f0c5d647e726cef7 | [] | no_license | KevHH/LBB_Kevin | fd0b45660ce16db9633aaffcd2732139c4b89f4c | 33de8d0492826cf88b0cfeb02820570108b9bdae | refs/heads/master | 2022-12-20T04:19:21.828999 | 2020-09-29T14:50:08 | 2020-09-29T14:50:08 | 299,280,498 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,426 | ino | test_turns_needed_for_360.ino | /*
Test code by Kevin to test number of turns needed for one rotation
255 - 187500
*/
int pwmFreq = 255;
const long guessTurns = 5140; // CONFIRMED
bool botOn = false;
const int rMotEnaPin = 9; // A3 pin connecting to right motor
const int rMotEncBacPin = A1; // A1 pin connecting to the back encoder of the... |
465d25c23dd48c79f6201fc7e510544484226fc7 | ce612174574d1b0da370e926ce51c7046ce79acd | /백준/Class3/S2_1931_회의실 배정.cpp | bf67a3f72618616aec9b4659be086bd57c778d93 | [] | no_license | sunga08/Algorithm_Study | b90fcd39878078bcc1e1fdbd7b4c7deab65b85e8 | b266add531c8be9dffe39d8b7ec126e55e2c9664 | refs/heads/master | 2023-04-08T17:35:12.023793 | 2021-04-27T07:17:40 | 2021-04-27T07:17:40 | 328,632,383 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,344 | cpp | S2_1931_회의실 배정.cpp | //시작시간 기준으로 정렬하면 (1,6)(2,3)(3,4)(4,5)(6,8)와 같은 경우 (1,6)(6,8) 사이에 있는 것을 선택할 때 더 많이 선택할 수 있는 경우가 생기게 됨
//종료시간 기준으로 정렬 => 종료시간이 같은면 그 중 어떤걸 선택해도 결과가 같다.
//(1,4)(2,4)(3,4)(5,10) => (1,4)~(3,4) 어떤걸 선택해도 그 다음에 (5,10)을 선택하게 됨
#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
vector<pair<int, ... |
b275714f25cbb7f703e9d3f5fab9783887358672 | e40ab4abdac7880360d64293cd912264f8156f12 | /spider/client/client/USocket.h | 3cff13cadecbb0f0c9d022ac5f5ba286dccda0a0 | [] | no_license | tacite/cpp_spider | 4271a8e2aae336cd8a39ea555529b518ac67c7d9 | 7008fc2ff8a71117292e17c78032785831b4829e | refs/heads/master | 2020-12-24T19:46:49.726391 | 2016-05-10T15:18:30 | 2016-05-10T15:18:30 | 58,471,520 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 585 | h | USocket.h | #ifndef __USOCKET_HPP__
# define __USOCKET_HPP__
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <netdb.h>
# include "ISocketHandler.h"
class USocket : public ISocketHandler {
private:
int fd_serv;
struct sockaddr_in s_in;
struct in_addr addr;
str... |
b7f4def632e86d8b5fff186e101d6f6f5e68003b | 58b686096701388d4ca4c6c464959728950780ef | /zip/lempel.h | 54f5dfd8a2129dbb0ea24cf35fdcc1f96a074f4d | [] | no_license | cjpatton/misc | 1359383d604b7121dad735c40bcda9cb254ebeff | 89ff4a89f98327bcfba4554a41160e0791d1cb83 | refs/heads/master | 2023-08-16T18:03:08.541919 | 2023-08-03T19:01:36 | 2023-08-03T19:01:36 | 41,977,538 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 582 | h | lempel.h | #ifndef LEMPEL_H
#define LEMPEL_H
#include "hashtable.h"
#include <cstdio>
#define WINDOW 3
#define MAX_MATCH 32
/**
* Lempel-Ziv
*/
struct match_t {
match_t (char *s, int i) : index(i), str(s)
{
}
match_t (char *s) : index(-1), str(s)
{
}
match_t (): index(-1), str(NULL)
{
}
int index;
ch... |
abff6bd702a2c85f4c552905ad6b908afabc1b4f | e8a92e691336b5089209936460880f36524e2600 | /HLIN603-Objets-avancés/C++/TD-TP/TP3/b.cc | 02c5343435289905bf7b5cd6cca0f2f9a0a53c7e | [] | no_license | Alex-Overlord/L3-S6 | c68159e6d67b5ccf2286c819570d12ee1b570274 | e6e4666963366c662e58469d57505fe02f713b21 | refs/heads/master | 2020-12-21T04:19:27.204970 | 2020-05-15T13:17:08 | 2020-05-15T13:17:08 | 236,302,844 | 1 | 1 | null | 2020-02-25T20:01:22 | 2020-01-26T11:29:41 | CSS | UTF-8 | C++ | false | false | 881 | cc | b.cc | class C1 {
private:
virtual void f() {}
protected:
friend class A;
friend class B;
public:
virtual void mc1();
};
class C2 : public virtual C1 {
public:
virtual void mc2();
};
void C1::mc1() {
C1 *c1;
c1->f();
C2 *c2;
c2->f(); // fonctionne car c2 utilisable partout dans la hiérarchie et dans C1
}
... |
1fd32eddbab0e3a8ae3932b60b4229e50810011d | b2fc9233276bc886c43b046a07f101c4c8c53995 | /ioc/worker.cpp | 37bde95ce1878d7a47bb9acacba064382d3cf9d8 | [
"MIT"
] | permissive | jklim1253/code-draft | fc7ce0cd875f28879f9e79bbb0a3ba4e32ad070a | 32ff5e7969f2bdcc6063fb978c7070629aa568f4 | refs/heads/master | 2021-07-17T05:59:13.708634 | 2021-02-24T06:39:57 | 2021-02-24T06:39:57 | 47,970,132 | 1 | 0 | MIT | 2021-02-24T06:39:57 | 2015-12-14T11:09:03 | C++ | UTF-8 | C++ | false | false | 683 | cpp | worker.cpp | #include "worker.hpp"
namespace normal
{
worker::worker(std::shared_ptr<task> t)
: m_need_to_stop(false)
, m_task(t)
{
m_thread = std::thread([&](){ loop(); });
}
worker::~worker()
{
{
std::lock_guard<std::mutex> lock(m_mutex);
m_need_to_stop = true;
}
m_cv.notify_all();
if (m_thread.joinable()... |
b1c103736e3f9c788e6ae15410bbdecddea5344c | 68215f5baddf225e278681d21adf82b65f069db0 | /MuyLeetCodeSolu/ToxicToolA.cpp | 59b179b46a9a9b0eb23fd8c0f875ebdc3eec1fa8 | [] | no_license | 2C2C2C/MuyLeetCodeWa | 2663f96b766ef50d072e27f6d8b46c8a7ebac92b | 973ccafdfb372ad6c8c49a88f7cf2201521e5781 | refs/heads/master | 2021-01-03T20:45:42.656038 | 2020-02-24T09:12:07 | 2020-02-24T09:12:07 | 240,229,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25 | cpp | ToxicToolA.cpp | #include "ToxicToolA.h"
|
2975fc2571cd28dd680146a5e278e91c0d6eda61 | 4b50dd80ebcd273d85c0af584838faa09b537d29 | /cfgFunctions.hpp | effe129c4f7c82b49d6421a5aeef01c6f979b90f | [] | no_license | gruppe-adler/grad-sectors | 7f09618ec9d1de94124dbb7e39b9d299b8e8ca9a | 62ec6ad10b057d4059bb57f9bda4d3b30ccedafe | refs/heads/master | 2022-11-28T21:25:02.764664 | 2020-07-25T11:29:41 | 2020-07-25T11:29:41 | 280,135,074 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | hpp | cfgFunctions.hpp | class grad_flagsector {
class all {
file = "grad-flagsector\functions"
class blockSector;
class createMarker;
class createSector;
class createTasks;
class evaluateSector;
class flagCreate;
class flagListener;
class flagSetOwner;
clas... |
5ca0c6a3872e73c98b42c24603c3a3a535715097 | c550cbe73bc67359f87e05d4faf1569956aa8c7a | /LSC_Blink_RGBW.ino | df398f47d022ea893046c9a319e4c8d0fd59a1cc | [] | no_license | P7uis/LSC_LEDstrip_ActionNL | 7f9701df009cfca47bb5e0ddc19eb9c95a3ecd24 | 7408ab65b4765a9fe3c4f380de6760740e5016be | refs/heads/main | 2023-05-02T13:59:44.585255 | 2021-05-24T10:07:59 | 2021-05-24T10:07:59 | 370,306,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,222 | ino | LSC_Blink_RGBW.ino | //Datasheet for this TYWE3L board
//https://developer.tuya.com/en/docs/iot/wifie3lpinmodule?id=K9605uj1ar87n
//Red
const int rpin = 4;
//Green
const int gpin = 12;
//Blue
const int bpin = 14;
//White
const int wpin = 13;
// the setup function runs once when you press reset or power the board
void... |
3417e8ee716d905b54ad77b2a31f337ed5462cc1 | 334aedf95c4b275727cb3c913a03a9e3d37b24e0 | /String to Integer.cpp | a5811a0431d48a4622dd84a0d732efcc492eb4fc | [] | no_license | XCHYang/Leetcode | 30e92b6632325089983e16c2d548f7f74ef3cfe3 | b2b1ff513fae4c3ab750b03c585a0f4bf378f2bf | refs/heads/master | 2020-03-30T08:00:38.081508 | 2015-04-06T15:20:04 | 2015-04-06T15:20:04 | 32,775,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,161 | cpp | String to Integer.cpp | class Solution {
public:
int atoi(string str) {
if(str == "") return 0;
long long sum = 0;
int str_len = str.length();
int start_pos = 0;
int flag = 1;
for(int i = 0; i < str_len ; i++){
if(str[i] == ' ')
continue;
else{
... |
c1ad6fb9c66ac7fc5feda450aa2638b9864f51f1 | e48a40b19ebe1ca64d877885f9f19e9a78b192c3 | /vtkKWStartupPageWidget.h | 5ebd719cb5db264c22ad5397e18be8dc50da9aab | [] | no_license | SIVICLab/KWWidgets | dbe2034caf065c30eafed92d73e9df9ff60a6565 | f5a3e16063db773eaf79736ec31314d392fa934d | refs/heads/master | 2021-01-18T20:08:02.372034 | 2017-04-01T20:57:19 | 2017-04-01T20:57:19 | 86,941,196 | 1 | 0 | null | 2017-04-01T20:34:24 | 2017-04-01T20:34:23 | null | UTF-8 | C++ | false | false | 12,056 | h | vtkKWStartupPageWidget.h | /*=========================================================================
Module: vtkKWStartupPageWidget.h,v
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
t... |
4cdeef3df644f930b367029b5041292e6e92d762 | 2c78de0b151238b1c0c26e6a4d1a36c7fa09268c | /MDProcess/MDAModel/impl/ParsersImpl/AttributeParserImpl_factory.cpp | 473e87d1fd77bc2dc5b5c724b2001646b9d149fd | [] | no_license | bravesoftdz/realwork | 05a3b308cef59bed8a9efda4212849c391b4b267 | 19b446ce8ad2adf82ab8ce7988bc003221accad2 | refs/heads/master | 2021-06-07T23:57:22.429896 | 2016-11-01T18:30:21 | 2016-11-01T18:30:21 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 1,598 | cpp | AttributeParserImpl_factory.cpp | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// Модуль: "w:/MDProcess/MDAModel/impl/ParsersImpl/AttributeParserImpl_factory.cpp"
// генератор файлов реализации для фабрик интерфейсов (.cpp)
// Generated from UML model, root element: <<Servan... |
34ae0c371b6a24cf13a395aebd40d8975e3deaff | 9b1362ed41b9455c43bb424ecf64404abc2ac28e | /Project2/src/stv_election_record.cc | eb669a1cd868ad4e1aca6d6f9c36e47f8ff4ca99 | [] | no_license | joshspitzerresnick/ranked-choice-plurality-voting-system | 5e3211ddc4567384fb1426dc6d200f14620ccc17 | a03ec6563b8e0a3cd566d1dca601202b521c13d6 | refs/heads/master | 2023-04-08T17:19:44.461808 | 2021-04-17T22:00:25 | 2021-04-17T22:00:25 | 358,966,104 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,444 | cc | stv_election_record.cc | /**
* @file STVElectionRecord.cc
*
* @copyright 2020 5801 Team3, All rights reserved.
*/
#include "stv_election_record.h"
STVElectionRecord::STVElectionRecord
(std::list<STVCandidate*> candidates, std::list<Ballot*> ballots, int droop) {
this->nonDistributedBallotList_ = ballots;
this->nonElectedCandidate... |
7c9eb16e815eacbfa328d2d80c451620e3dd2a9d | 20014dd546eefd89772b309eb7dcb23722bfea93 | /Hayes_Game.cpp | cafa6c106429c2f99c3be8ce25dc44a29ec0c63c | [] | no_license | zjhayes/Cpp_Text_Based_Game | 4bf27f22761e5ca90e0f4141cf54d000bf3af8f6 | ceb175f7169985cebccf8d70104ab90d069df3fc | refs/heads/master | 2020-09-16T14:57:19.641217 | 2019-11-29T18:03:26 | 2019-11-29T18:03:26 | 223,806,633 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 198 | cpp | Hayes_Game.cpp | // A text based game.
// Zachary Hayes - zjhayes@dmacc.edu - November 19th, 2019
#include "GameManager.hpp"
int main()
{
GameManager game = GameManager();
game.runGame();
return 0;
}
|
da869e88faa1e2c34fe3f9e03baa875edd82c83d | c0b7aa11aeae559a6b0a6635019ca6051edc162b | /main.cpp | 8edb53584d85b92e66d41f90564c96f4a0eed2a7 | [] | no_license | Aqho/Rubix | ec4088c32506040384eb0de6158f7a6adec7624a | 423d71d53eb21ca81621e8be37bdafe6dca727fa | refs/heads/master | 2020-03-16T14:57:49.450452 | 2018-06-17T11:44:37 | 2018-06-17T11:44:37 | 132,720,575 | 0 | 0 | null | 2018-06-17T09:37:44 | 2018-05-09T07:43:55 | C++ | UTF-8 | C++ | false | false | 5,162 | cpp | main.cpp | #define GL3_PROTOTYPES 1
// X compilation libraries
#ifdef __unix__
#include <GL/glu.h>
#else
#include <OpenGL/gl.h>
#include <OpenGL/glu.h>
#include <GLUT/glut.h>
#endif
// Libraries
#include <SDL2/SDL.h>
#include <math.h>
#include "graphic_function/headers/camera_position.hpp"
#include "render/headers/render.hpp"
#... |
1540e4b55e74ea8dbb1388ec2d393bbe8c996079 | b9dd98d301aa2055616f21fd1026a5e4ff9e81fb | /TJU/2555 - Encrypting Passwords.cpp | ad1b46b9f3be46f408902e83f12991b3e047dbeb | [] | no_license | AlaaAbuHantash/Competitive-Programming | f587fcbbe9da33114c6bed3eb76f5cf0429fbf95 | 179a8473662d04b8c5c129e852f6eab075e80fb2 | refs/heads/master | 2021-07-25T08:17:49.841307 | 2018-08-06T10:06:54 | 2018-08-06T10:06:54 | 128,920,319 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,338 | cpp | 2555 - Encrypting Passwords.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <utility>
#include <stack>
#include <cstring>
#include <math.h>
#include<cstdio>
#include<deque>
#include<sstream>
using namespace std;
#de... |
07a6a5a08de6bda0b84b80f46d50d097926b6fb1 | 39eca8f785bb50992d5d1ce97e1b05cb8445954a | /UVa/10931 - Parity.cpp | 1557ab1584b508ec77a84542bb27acb61991887e | [] | no_license | diegoteran/Contest-Archive | eea5c14f17812216d48e89ec121a326328d8b6a5 | 0992a5914ec0b9140a33c2219b3cf740b2dc0658 | refs/heads/master | 2021-05-16T02:45:57.126921 | 2017-09-28T02:37:50 | 2017-09-28T02:37:50 | 42,429,676 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 381 | cpp | 10931 - Parity.cpp | #include <iostream>
#include <cstdio>
using namespace std;
long long N;
long long count,i;
void print(long long n){
if(n>0){
print(n/2);
printf("%lld", n%2);
}
}
int main() {
while(scanf("%lld", &N), N){
count=0;
for(i=N; i; i/=2 )
if(i%2!=0)
count++;
if(!i) {
printf("The parity of ");
... |
f03b28a29b7ffdd5d4851fe99f91491867089c59 | a77cdfda0b72adc3a11fb1e10fe8a2878e9d6350 | /WS06/lab6/Utilities.h | a207e8aedecb3bdf92b9c7b80ed5a59564204097 | [] | no_license | navpreetkaurr/OOP345 | 171cd3fb003396b63aa857e9b6aa7074b76e53cb | 85efab188f42eed8733b01682fe9c714e3fe69cd | refs/heads/master | 2022-07-07T05:06:46.154442 | 2020-03-16T16:25:14 | 2020-03-16T16:25:14 | 239,623,763 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 386 | h | Utilities.h | // Name: Navpreet Kaur
// Seneca Student ID: 148332182
// Seneca email: nk79
// Date of completion: 4 march, 2020
//
// I confirm that the content of this file is created by me,
// with the exception of the parts provided to me by my professor.
#ifndef SDDS_UTILITIES_H
#define SDDS_UTILITES_H
#include"Vehicle.h"
na... |
9921fdac3c729111e455a662b7c84893dba82778 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/admin/dcpromo/exe/forceddemotionpage.cpp | 9f60f87879b20153b4e93f1255aecef9cd1f698b | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 2,305 | cpp | forceddemotionpage.cpp | // Copyright (c) 2001 Microsoft Corporation
//
// forced demotion page
// NTRAID#NTBUG9-496409-2001/11/29-sburns
//
// 29 Nov 2001 sburns
#include "headers.hxx"
#include "page.hpp"
#include "ForcedDemotionPage.hpp"
#include "resource.h"
#include "state.hpp"
ForcedDemotionPage::ForcedDemotionPage(... |
18689d566c835de71aa174c7b29f49c61e0e6be4 | 3c62b3207c7b575f07324158bf6aa8f474bcfdd6 | /packingsolver/rectangle/branching_scheme.cpp | 73fdac875c0144539fd7cdf060a15cb86e915a1b | [
"MIT"
] | permissive | fontanf/packingsolver | 2d590a3b23a313b0f8ef675ff0c501d9bcdb9803 | 8aeb6346eee890d35bd41f6c188b33871b35474d | refs/heads/master | 2023-08-21T06:25:46.325143 | 2023-07-22T18:35:53 | 2023-07-22T18:35:53 | 238,145,072 | 54 | 10 | null | null | null | null | UTF-8 | C++ | false | false | 40,810 | cpp | branching_scheme.cpp | #include "packingsolver/rectangle/branching_scheme.hpp"
#include <string>
#include <fstream>
#include <iomanip>
#include <locale>
using namespace packingsolver;
using namespace packingsolver::rectangle;
////////////////////////////////////////////////////////////////////////////////
/////////////////////////////// B... |
74a9d8231e6ad05ae29822b77bc29c750a6c20de | aa89fd83bd86f6475c73d171d56a4de141877a6a | /ChatView.h | 367b5b22d462c0b13d9d500c4bdd96a1ec7f2c68 | [] | no_license | afisher/miqrochat | a61cecade58075b7515dd7af0f0c033f15968759 | 7079503a43bd7ad2fb76ff455c215a6ed8066137 | refs/heads/master | 2021-01-20T18:20:13.750071 | 2012-05-24T23:31:05 | 2012-05-24T23:51:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 176 | h | ChatView.h | #ifndef CHATVIEW_H
#define CHATVIEW_H
#include <QPlainTextEdit>
class ChatView: public QPlainTextEdit {
Q_OBJECT
public:
explicit ChatView(QWidget *parent=0);
};
#endif
|
19ded943f3ae784c34fd98a87ccbca6a85c73990 | ca4addbffbfb641cc2b88a212e7553696e193887 | /CH04 - 구현/게임 개발.cpp | 1210a98a2b5f4d5a01c47697d62258faf9dfff6d | [] | no_license | wjh51333/CodingTestBook_ndb | 464dfccefece50103a4a484c283b593015f15d2b | 6190358ffdd3b41b01215e5299cd6d562de345af | refs/heads/main | 2023-04-07T09:37:07.812669 | 2021-04-02T14:53:53 | 2021-04-02T14:53:53 | 349,367,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | cpp | 게임 개발.cpp | /*
* 구현
* 게임 개발
*/
#include <iostream>
using namespace std;
int n, m;
int map[51][51];
bool visited[51][51];
int dx[] = { -1, 0, 1, 0 };
int dy[] = { 0, 1, 0, -1 };
int main()
{
ios::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin >> n >> m;
int x, y, d;
cin >> x >> y >> d;
for (int i = 0; i... |
ebd7f766d2b7f27522cb46aad6136c7e7ff2b286 | 42b43f9ccefca516777c3a779e507e61b19a1e82 | /include/ansu/tester.hpp | 0c40c4bf47fcbeb508557ee391ba4dd858c42620 | [
"MIT"
] | permissive | xiaozhi24/ansu | 12325a35983e64003e617292baf8905cc746f71d | 5e1c74944c4a2a637f0cf9d0f8e3404cfb6e761a | refs/heads/master | 2023-05-28T15:34:19.185925 | 2021-04-22T15:26:10 | 2021-04-22T15:26:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,903 | hpp | tester.hpp | #include "backend/hls/ansu.ipp"
#include "ints.hpp"
#include <fstream>
#include <iomanip>
#include <iostream>
#include <stack>
#include <string>
#include <vector>
#define IN_DIR "res/in/"
#define COMPRESSED_OUT_DIR "res/compressed/"
#define DECOMPRESSED_OUT_DIR "res/decompressed/"
#define GOLDEN_OUT_DIR "res/golden/"... |
dfd812239e82270e10519eeff2cc51abc99812bd | 5e46db511a3d51843769c248232d4951d5f4e566 | /source/tests/catch_transformation.cpp | 39f4d8db8359bf4d21cfc16d93292c70d4d199b3 | [
"Apache-2.0"
] | permissive | ndoxx/wcore | 32d34172406c9e384cc1d1bdc94813eb01cc1634 | 8b24519e9a01b0397ba2959507e1e12ea3a3aa44 | refs/heads/master | 2020-04-05T02:18:08.760468 | 2019-09-20T11:48:26 | 2019-09-20T11:48:26 | 156,471,374 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,344 | cpp | catch_transformation.cpp | #include <catch2/catch.hpp>
#include <iostream>
#include "catch_math_common.h"
#define __DEBUG__
#include "transformation.h"
using namespace math;
static const float precision = 1e-4;
TEST_CASE("Initializing transformation object.", "[transf]")
{
Transformation trf(vec3(1.0, 2.0, 3.0),
q... |
0b09cab60a670745cd315c2d7e14c65f185b5d27 | 24a59c24cdd10ba511a7a32cc4730fed5597e51b | /NTHieu_SE1405_BT bo sung/NTHieu_SE1405_C2.Aray_Post/CS.P09.cpp | 24c14cdc4cce165329a09a58931887e1d2e51dd4 | [] | no_license | hieuntse/LAB101 | 2ae1bf2e94b7dd7f596dff31d2f789b729412ba1 | 0ce3b0a6ff86524888bf7768776a0282246634e7 | refs/heads/master | 2023-01-27T23:51:51.094245 | 2020-12-02T03:02:05 | 2020-12-02T03:02:05 | 317,417,005 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 709 | cpp | CS.P09.cpp | #include <stdio.h>
#define max 100
//Enter a array
int Input(int *A,int &n){
int i;
printf("Please enter size of array: ");
scanf("%d",&n);
for (i=0; i<n; i++){
printf("Element[%d]: ",i);
scanf("%d",&A[i]);
}
}
/*Loop up the smallest element position in the array
Display the smallest element and its positio... |
fa0495f6be9967a164a4be59bb83df5bd4edaeba | 1d4b43425baf5527cdd7651d551dcd079f9ed873 | /M1_TIIR_2017_2018/ACT/TP/2_choco/src/dyn_sym_minimal_space.cpp | 5b29dc2c6b04b206c880af7c2e5a1aee38cb403b | [] | no_license | capsian/Lille1 | fb2c37cf8516b5847e395400eea4dcc6e860ece7 | 9c2d8c0b320d61a4a1c907d7a230a15db287c24d | refs/heads/master | 2022-01-29T09:56:59.292585 | 2022-01-17T17:25:38 | 2022-01-17T17:25:38 | 156,289,416 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,437 | cpp | dyn_sym_minimal_space.cpp | #include <iostream>
#include <stdlib.h>
using namespace std;
int* cube;
int w ,h , d ,o;
void display_space(int* minim_space_config) {
cout << "minimal space :m = " << minim_space_config[0] << ", n = " << minim_space_config[1] << ", i = " << minim_space_config[2] << ", j = " << minim_space_config[3] << endl;
}
... |
fe4cca1df70be245bb368fd98eaf5c20cbc4f8a6 | 19a4fffd52c60cc83132e6bb622b1c2ed85bc67c | /No91_DecodeWays.cpp | 25664b5e9ea71e060e4d00506dd0e2415366313c | [] | no_license | XingwenZhang/Leetcode | 2562d8f475b381a44b891105e29f23844b6bf4a4 | 3ce14802a0494988e5372565ccac709ac2489f7a | refs/heads/master | 2021-04-26T07:29:05.063883 | 2018-01-01T08:16:29 | 2018-01-01T08:16:29 | 65,857,071 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | No91_DecodeWays.cpp | // A message containing letters from A-Z is being encoded to numbers using the following mapping:
// 'A' -> 1
// 'B' -> 2
// ...
// 'Z' -> 26
// Given an encoded message containing digits, determine the total number of ways to decode it.
// For example,
// Given encoded message "12", it could be decoded as "AB" (1 2)... |
6c6a441f709ac16709a02e19e1beeeddc43e0059 | e796f7cf7c2f46bad7ac9e2a017e6f3c1e92e6a1 | /QtDemo/sqlitehelper.cpp | 54db1dadd0cad8ca0bec3b72ec72ffd0ab3f8aa5 | [] | no_license | goodgeek/QtDemo | 84ef23e436419510b31e39fc36f0374b1c586003 | 9869a06ccf6233f2104f4a564b41b952e8d9b379 | refs/heads/master | 2020-07-23T21:05:53.009502 | 2016-09-02T07:07:48 | 2016-09-02T07:07:48 | 66,939,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,187 | cpp | sqlitehelper.cpp | #include "sqlitehelper.h"
#include <QtSql/QSqlDatabase>
#include <QtSql/QSqlQuery>
#include <qtsql/QSqlError>
#include <QDebug>
SQLiteHelper::SQLiteHelper(QObject *parent) : QObject(parent)
{
}
void SQLiteHelper::dbOperator()
{
QSqlDatabase db;
if (QSqlDatabase::contains("test_db_connect"))
db = QSql... |
fc837ac934187e6c067e28f7da8f72cc4c2bceff | 12b84386e6b9539c082dbea87ca83d8cdff8c254 | /The Great Outdoors Vr_BackUpThisFolder_ButDontShipItWithYourGame/il2cppOutput/Valve.Newtonsoft.Json1.cpp | 32d99611a0ae91bda219027ae9ae222c86aaf2ce | [] | no_license | ichanner/The-Great-Outdoors-VR | 4b9b6cb0455c534eb740868212ab96a390259a7a | 2691d10bab4323c33545e6dbb6c478026935810c | refs/heads/main | 2023-01-03T19:32:29.210991 | 2020-10-31T05:14:37 | 2020-10-31T05:14:37 | 302,486,787 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,129,451 | cpp | Valve.Newtonsoft.Json1.cpp | #include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <assert.h>
#include <stdint.h>
#include "codegen/il2cpp-codegen.h"
#include "il2cpp-object-internals.h"
template ... |
8645a3a4c89c23de09f23bb5b7b75d47d13d975c | e3f9b57aa3ae210f5099cace1d97b2294562b70a | /Algorithms_code/RMQLightoj1082.cpp | d385e33d31be81964f978762502ce8a689bb3097 | [] | no_license | JahedulKaderForman/Algorithms-Implementation | e089484717281f83732f0e7bca701089dac2cd1a | d21252aa657fe8915e0c656dc1c720b715f819f7 | refs/heads/master | 2020-03-26T11:25:06.227291 | 2018-08-18T07:13:42 | 2018-08-18T07:13:42 | 144,841,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | cpp | RMQLightoj1082.cpp | #include<bits/stdc++.h>
#define mx 100009
using namespace std;
int tree[mx*3],arr[mx];
void init(int node,int b,int e)
{
if(b==e)
{
tree[node]=arr[b];
return;
}
int left=node*2;
int right=(node*2)+1;
int mid=(b+e)/2;
init(left,b,mid);
init(right,mid+1,e);
if(tree[lef... |
cbff502bd8f6cddd2ebe9687d5a81bf1e3ae9ec4 | a2811206138ac04ea34be547d47d0530e454bb36 | /src/graph/dinic.cpp | 0142083da70089bda76a0855572b8a2188680790 | [] | no_license | wx-csy/code_library | e92eef5b356c0ba84107c4dfc2fb47aa0341284d | 7f0f89ae225479e53a4299987ed18a5b33f2cdce | refs/heads/master | 2020-04-01T12:56:54.865587 | 2019-12-06T07:11:46 | 2019-12-06T07:11:46 | 153,230,535 | 3 | 3 | null | 2019-12-06T07:04:09 | 2018-10-16T05:59:59 | TeX | UTF-8 | C++ | false | false | 1,960 | cpp | dinic.cpp | struct edge{
int from, to;
LL cap, flow;
};
const int MAXN = 1005;
struct Dinic {
int n, m, s, t;
vector<edge> edges;
vector<int> G[MAXN];
bool vis[MAXN];
int d[MAXN];
int cur[MAXN];
void add_edge(int from, int to, LL cap) {
edges.push_back(edge{from, to, cap, 0});
... |
9c8b7ee4718e4145243f070c11329ab424bd8a00 | f0ce29b579d8883cd6183a0383a561fb6511aa58 | /lap_trinh_huong_doi_tuong/cau_truc_dieu_kien/bai4.cpp | c3ed4f80509cc761ce7754e93494007347c81447 | [] | no_license | bkit9x/cpp | 70c0846f52c0a69d0838134bb085e960eba9a717 | 8544072b17623f8e07abac8f24ac07cafc17ae7f | refs/heads/master | 2021-06-14T15:23:32.332155 | 2021-03-25T15:26:22 | 2021-03-25T15:26:22 | 153,547,285 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | bai4.cpp | #include <iostream>
#include <math.h>
using namespace std;
main(){
int n, i=1;
long temp=0;
cout<<"nhap so nguyen duong n: ";
cin>>n;
//a
for(i; i<=n; i++){
temp+=i;
}
cout<<"S1="<<temp*1.0/n<<endl;
//b
temp=0;
for(i=0; i<=n; i++){
temp+=i*i;
}
cout<<"S2="<<sqrt(temp)<<endl;
cout<<sqr(4,2);
}
|
39d3ddf54d788c5e7b2f68279c3f50f0c1ee8160 | 909194dc80d6c1cd4d8ab68d2e5dd70bcca7e060 | /src/binarysort/BinarySort.h | cfa38a8fb41b699ed88080f7a861e5f7314b7aa1 | [] | no_license | LinuXperia/completesearch | da33139f769180de1f47c484be44732d50d50db6 | f4154b848eaea1443f5b252923373121dab55901 | refs/heads/master | 2023-07-02T01:20:37.553414 | 2021-02-10T18:27:41 | 2021-02-10T18:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,175 | h | BinarySort.h | // Copyright 2010, University of Freiburg, Chair of Algorithms and Data
// Structures.
// Author: Simon Skilevic <skilevis>
#ifndef BINARYSORT_BINARYSORT_H_
#define BINARYSORT_BINARYSORT_H_
#include <stxxl/io>
#include <stxxl/mng>
#include <stxxl/sort>
#include <stxxl/vector>
#include <string>
using std::string;
usi... |
3b107143a78943e8d3e93b37e9ff3702150be37a | 14dc72fd771b1b935757983e77a7929fd4ba9aa2 | /UI/ConfigDialog.cpp | 6792137bbea29df1ca39189f07f8aa359348cf05 | [
"MIT"
] | permissive | xeyos/RM-Kaepora | 1599d9b3049d1b074335caa3ff00885effde2754 | 46a955b974d0ca972bfbee05c048f254d9c167f7 | refs/heads/master | 2016-09-06T01:45:14.147032 | 2015-02-06T16:58:46 | 2015-02-06T16:58:46 | 19,490,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,923 | cpp | ConfigDialog.cpp | #include "ConfigDialog.h"
#include "ui_ConfigDialog.h"
#include "Security/BlowFish.h"
#include "MainWindow.h"
#include <QDebug>
#include <fstream>
using namespace std;
ConfigDialog::ConfigDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ConfigDialog)
{
ui->setupUi(this);
}
ConfigDialog::~ConfigDialog... |
194a42c38b4db183da15bbbc06d5098b41b8fd88 | 9c67c720f62493adade9c90946951cea020ebc62 | /core/Packet.cpp | cc058650740530c0bc2c7de8186049c38e7dcc9b | [] | no_license | gapost/rtlab-old | f222505550f201b1fc589effb0cbaf4518e273e5 | d9da7711694b4d803f4ed1b0772cb20c2a03fdc5 | refs/heads/master | 2016-09-05T16:54:34.699367 | 2014-12-31T07:47:34 | 2014-12-31T07:47:34 | 27,383,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,524 | cpp | Packet.cpp | #include <QDebug>
#include <assert.h>
#include "Packet.h"
template<class T>
Packet<T>::Packet(T* p, int ad, int aw, mngr_t amngr, int aid):
mem(p), d(ad), w(aw), mngr(amngr), id(aid)
{
}
template<class T>
Packet<T>::~Packet(void)
{
}
template<class T>
void Packet<T>::ref()
{
ref_count.ref();
//qDebug() << "Ref pac... |
c341d4468a8a8334919a8d6f448163e1e8920419 | 900eedab24fff228cb0086a6122fbf7343a0eae8 | /template_linked_list.h | 93656989bf50cccf31340c6a67ec3055e8a3f30f | [] | no_license | zshehov/sda | ec407fc7b1ec51a546b98fa511d45d8ec8df4152 | 88b7bd622c23a7b4963088498701e797b92b0c03 | refs/heads/master | 2021-01-11T00:13:48.239042 | 2017-02-25T15:09:00 | 2017-02-25T15:09:00 | 70,574,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,736 | h | template_linked_list.h | #ifndef _LINKED_LIST
#define _LINKED_LIST
template<typename T>
struct Node {
T data;
Node<T> * next;
Node(const T & _data, Node<T>* _next = nullptr);
};
template<typename T>
Node<T>::Node(const T& _data, Node<T>* _next = nullptr) :
data(_data),
next(_next) {}
template<typename T>
class LinkedList {
private:... |
0062d4c332732ab82f9a33eecfd42ba16b9fe910 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/windows/core/ntgdi/gre/verifier.hxx | 91f5f2c9b304d254eb7781c7d455dd0c7e066bec | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 6,940 | hxx | verifier.hxx | /******************************Module*Header*******************************\
* Module Name: verifier.hxx
*
* GRE DriverVerifier support.
*
* If DriverVerifier is enabled for a particular component, the loader will
* substitute VerifierEngAllocMem for EngAllocMem, etc. The VerifierEngXX
* functions will help tes... |
93c99ec7d90f8b085d32f850a612af89ee981720 | dccd1058e723b6617148824dc0243dbec4c9bd48 | /codeforces/819A.cpp | 2ce32cbb74c464fa954cf9e1f8b34d9d4a08450b | [] | no_license | imulan/procon | 488e49de3bcbab36c624290cf9e370abfc8735bf | 2a86f47614fe0c34e403ffb35108705522785092 | refs/heads/master | 2021-05-22T09:24:19.691191 | 2021-01-02T14:27:13 | 2021-01-02T14:27:13 | 46,834,567 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,171 | cpp | 819A.cpp | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i,n) for(int (i)=0;(i)<(int)(n);++(i))
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define fi first
#define se second
#define dbg(x) cout<<#x" = "<<((x))<<endl
template<class T,class U> ostream& operator<<(ostream& o, const pa... |
5c9395afa8f1e988440506ee05560bef0ead0e11 | e9774bd2d0cd9aaad49eacd092ba97e95dbf9a5f | /problems/A - Number of Apartments.cpp | 955fad4ea30fb4fd23f91e0e143b882e054ebe24 | [] | no_license | My-Competitive-Programming-Legacy/CodeForces | fb589c187706060d8a33eccf75597dad4dab904d | f9df0ffe76b1d37215f063e87920c0044fe226a4 | refs/heads/master | 2023-06-23T06:04:30.369027 | 2021-07-19T12:20:19 | 2021-07-19T12:20:19 | 387,414,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,418 | cpp | A - Number of Apartments.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define space " "
#define debug(val) "[ " << #val " : " << (val) << " ]" << space
#define vi vector<int>
#define vl vector<ll>
#define vll vector<vector<ll>>
#define vii vector<vector<int>>
#define PI (double)(atan(1)*4)
#define pb push_back
#defi... |
8afed8b62e80cd5a5b7bb1c12acb95d76e6aa41f | cee179ac9c79c15109cddfc83ba81bb971eb1b7e | /vtkMED/Testing/PPolynomialTest.cpp | 66b0e847ba59ca0cc46c467d8981c90eedb72787 | [] | no_license | besoft/MAF2Medical | 8f88ea90a8091d99c70412ce6bca2cc988d6dfe4 | 8fed46786e9b34e7ff4871d2f11728abd69d9541 | refs/heads/master | 2021-01-15T22:29:48.224711 | 2019-07-31T13:57:22 | 2019-07-31T13:57:22 | 41,854,951 | 0 | 3 | null | 2015-09-03T10:52:01 | 2015-09-03T10:52:00 | null | UTF-8 | C++ | false | false | 2,535 | cpp | PPolynomialTest.cpp | /*=========================================================================
Program: MAF2Medical
Module: PPolynomialTest
Authors: Roberto Mucci
Copyright (c) B3C
All rights reserved. See Copyright.txt or
http://www.scsitaly.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; wit... |
5dd1baf536b8708d83850b9511571a7149bcdaa3 | 3b6ca8a44bce25eb2d5d763a11cdcc9b38f21d1c | /mySTL/vector.cpp | e2c0395d8166e57ccf7efdbd62ea33d8911803b2 | [] | no_license | yanfengneng/algorithm | a51b78910384e041d708ff573c9f5376b87390f3 | d39ea285830a366dc83ba557fac41351be3845d0 | refs/heads/master | 2023-05-11T16:20:09.006176 | 2023-05-03T14:55:06 | 2023-05-03T14:55:06 | 189,338,325 | 11 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,708 | cpp | vector.cpp | #include <memory>
#include <algorithm>
template <class T,class Alloc>
class vector{
public:
//vector的元素类型定义
typedef T value_type; //元素值类型
typedef value_type* pointer; //指针类型
typedef value_type* iterator; //迭代器类型
typedef value_type& reference; //引用类型
... |
1665fec1321dbb0ff83dd7a9e13b1c550c807efe | b1fa90f76f916d29b5d68b7048268f4d8b71c111 | /src/lightspeed/base/containers/stack.tcc | 92028e6364baa578dc3d15b7d531a0363d910139 | [
"MIT"
] | permissive | ondra-novak/lightspeed | 742092dbf5925027a7c4281f61b008fcd18a40e5 | 21028adb7e47bebd264e02978da5edd7463ef621 | refs/heads/master | 2021-01-24T06:35:55.151750 | 2019-12-13T12:56:21 | 2019-12-13T12:56:21 | 27,496,470 | 2 | 2 | null | 2015-08-19T14:50:36 | 2014-12-03T16:32:35 | C++ | UTF-8 | C++ | false | false | 316 | tcc | stack.tcc | /*
* stack.tcc
*
* Created on: 29.9.2010
* Author: ondra
*/
#ifndef LIGHTSPEED_CONTAINERS_STACK_TCC_
#define LIGHTSPEED_CONTAINERS_STACK_TCC_
#include "stack.h"
#include "deque.tcc"
namespace LightSpeed {
//---------------------------------- implemenetation ----------
}
#endif /* STACK_TCC_ */
|
ed3a73cc951820c9b2892ac7586d09f06eaa4ed6 | 09a20466c1650ab4beb6554ceabc8649a7540c06 | /core/test/lib/libledger-test/MemPreferencesBackend.cpp | ac9af99ac91f7de135c6f0e28fdcbef9f87df130 | [
"MIT"
] | permissive | LedgerHQ/lib-ledger-core | 2f1153655ed7c116b866d2b21920a8a3017f5d96 | ad1e271b5f61e92f663ff08c337acc8b107fc85f | refs/heads/main | 2023-07-09T18:24:41.408616 | 2023-07-06T13:09:06 | 2023-07-06T13:09:06 | 68,716,694 | 99 | 99 | MIT | 2023-06-30T08:36:20 | 2016-09-20T13:51:06 | C++ | UTF-8 | C++ | false | false | 2,336 | cpp | MemPreferencesBackend.cpp |
#include <MemPreferencesBackend.hpp>
#include "utils/optional.hpp"
namespace ledger {
namespace core {
namespace test {
MemPreferencesBackend::~MemPreferencesBackend() {}
std::experimental::optional<std::vector<uint8_t>> MemPreferencesBackend::get(const std::vector<uint8_... |
347304b29fd71aae7bb40b9404c1fda589787938 | 304a41e6c37e04684590891fb23b61db1e6a3e78 | /EAWebKitSupportPackages/EAThread/local_1.33.00/source/libunwind/eathread_callstack_libunwind.cpp | 0ec763d5c983b3819e914fdc954923fc924b6c39 | [
"BSD-2-Clause"
] | permissive | mundak/eawebkit | 445322bc07066abd045574365b7e314677b9c9fe | 3306465e17595fc454ea4ae228b2c72710809f4e | refs/heads/main | 2023-08-25T05:01:08.997135 | 2021-10-10T04:59:02 | 2021-10-10T04:59:02 | 415,479,861 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | cpp | eathread_callstack_libunwind.cpp | ///////////////////////////////////////////////////////////////////////////////
// Copyright (c) Electronic Arts Inc. All rights reserved.
///////////////////////////////////////////////////////////////////////////////
#include <EABase/eabase.h>
#include <eathread/eathread.h>
#include <eathread/eathread_atomic.h>
#inc... |
f65f6b3762251eeeb970b9db8740520dd5d85766 | 8e251e452449d2aa219d72ed9871bb6030f6eea8 | /test_inlet/1900/epsilon | a06d8be05a39c712035e68e43034b9bd5e3ac773 | [] | no_license | glaciercoder/sky_cooling | e1a1482ecd900fe7df9bc8f71fb59fbf9c39428f | 0af1390bb7aaca9e828d980ed4aa92299071b37d | refs/heads/master | 2023-03-29T20:02:11.619786 | 2021-04-09T01:15:33 | 2021-04-09T01:15:33 | 349,085,961 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373,079 | epsilon | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
4a5d57e8d126b4ab86bd6e8debcb3e906074d891 | 224bb4c15505e0b494eec0b911ee3fc67e6935db | /SourceSDK/filesystem.cpp | 1c6eeb11d372d85d661dadd51f9acd4c36bbae7f | [] | no_license | MoeMod/Thanatos-Launcher | 7b19dcb432172ee35f050b4f4f46e37a1e46c612 | 1f38c7cc1ebc911805ecf83222b5254d4b25a132 | refs/heads/master | 2021-12-27T15:27:02.097029 | 2021-09-09T17:05:04 | 2021-09-09T17:05:04 | 128,214,239 | 9 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,195 | cpp | filesystem.cpp | #include "filesystem.h"
#include <windows.h>
#include <malloc.h>
wchar_t *UTF8ToUnicode(const char* str);
char *GetFileType(const char fileName[], char type[])
{
int i = strlen(fileName) - 1, j;
char ch;
for (type[0] = '\0'; i >= 0; i--)
{
if (fileName[i] == '.')
{
for (j = i; fileName[j] != '\0'; j++)
... |
f1ff2abcd799c7cbaa965c2fe5dcae1d711210e6 | c552e4caf87b824466fa298cdddd2c495eb5ae50 | /SEERC/16/C.cpp | 86f6d40989858ce3e69506fb60ea38175ead2b8e | [] | no_license | BufferNihility/acm-icpc | d2dffc535061f0f2a5bedda4f53533634d14347f | e7261bdf35fe390e32872d89eb54f4a4835feb0f | refs/heads/master | 2022-02-22T03:54:57.445377 | 2019-10-08T11:09:17 | 2019-10-08T11:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cpp | C.cpp | #include <bits/stdc++.h>
using namespace std;
#define PII pair<int, int>
#define AA first
#define BB second
#define MP make_pair
const int N = 2e6+1000;
char a[N];
int f[N], Next[N];
int getNext(char b[N], int m) {
int j, k;
j = 0;
k = -1;
Next[0] = -1;
for(int i = 0; i < m; i++) {
while(k != -1 && b[k ... |
6ffceb5d2886bfb4a7c72cc78c7e699f7982edcd | a725f75e7d70539f7b3e8cacac48a8c39c90b68f | /RandomMover.h | 7c5b10e49d87e4d38ff2a8845922ec2177e022c1 | [] | no_license | simonwulf/StarClone64 | f9b1bd805980028f4e4f5248d25d4c34654c71c5 | 75db2d03e4a36af0a5def87c81a526ffcb940f1e | refs/heads/master | 2016-09-05T10:24:49.699552 | 2014-01-19T17:44:48 | 2014-01-19T17:44:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | h | RandomMover.h | #ifndef RANDOMMOVER_H
#define RANDOMMOVER_H
#include <glm/core/type_vec3.hpp>
#include "ControllerComponent.h"
#include "Event.h"
class RandomMover : public ControllerComponent {
public:
RandomMover();
~RandomMover();
void update(const Event& e);
private:
glm::vec3 m_vTarget;
float m_fSpeed;
void update... |
cd420f1f300220202f56dd18b27c0f47cfe223de | f3e673e43674feb6746948e76160335bfab7585e | /q_lib/include/q/synth/sin.hpp | 4e04357c8f910edda89bfb04591a756caa46e117 | [
"MIT"
] | permissive | christofmuc/Q | df008d0b1617a3b7ea01b1279881d3f16796e1da | 38c14796241ed8fb453bc39f7801e9ddb4dae7c8 | refs/heads/master | 2020-09-07T13:19:55.440427 | 2020-04-01T13:05:15 | 2020-04-01T13:05:15 | 220,793,497 | 2 | 1 | null | 2020-04-01T13:05:16 | 2019-11-10T13:23:53 | C++ | UTF-8 | C++ | false | false | 979 | hpp | sin.hpp | /*=============================================================================
Copyright (c) 2014-2019 Joel de Guzman. All rights reserved.
Distributed under the MIT License [ https://opensource.org/licenses/MIT ]
=============================================================================*/
#if !defined(CYCFI... |
ef03559b57195846746427acac6112d75529932d | a4e432c33f2637061790bdbebef44dd8aa84e061 | /SGFramework-Master/SGFramework-Master_ToExe/02_CustomVariable/DeletePointer/DeletePointer.hpp | 60301cadada8459d13e8b0926d2fd51e5c8496d9 | [] | no_license | pusanmodoki/SG-Framework | e2725ac1fd02faa01e4a7dde5288866006b74b20 | 8c55b7bbdb54784f811791f1e217eadcc209802d | refs/heads/master | 2022-12-22T01:01:01.395236 | 2020-08-24T18:02:06 | 2020-08-24T18:02:06 | 288,960,715 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 4,165 | hpp | DeletePointer.hpp | /*----------------------------------------------------------------------------------
ポインタをdeleteするためだけに作成したDeletePointer.h
------------------------------------------------------------------------------------*/
#ifndef SGFRAMEWORK_HEADER_DELETE_POINTER_HPP_
#define SGFRAMEWORK_HEADER_DELETE_POINTER_HPP_
#include <vector... |
0764e682e0b6a2c8ca0379bbc61dd3a94495970d | 6d8c5e578ba64574257e229ede28d7ac3817ea44 | /pos/Src/TransactionUtility.hpp | c09838915603bfbf5a6a76ec7c133ff235e6e1a3 | [] | no_license | suyuti/Hypercom | 0771b4a1a88fdf0077799de6fb9146ae4884c998 | fca325792378f83008d19f9f0f577e3f2ed6cb83 | refs/heads/master | 2021-01-13T01:28:46.126789 | 2015-02-26T20:39:25 | 2015-02-26T20:39:25 | 31,387,832 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,559 | hpp | TransactionUtility.hpp | //=============================================================================
// Company:
// Hypercom Inc
//
// Product:
// Hypercom Foundation Classes
// (c) Copyright 2006
//
// File Name:
// TransactionUtility.hpp
//
//
// File Contents:
// Declaration of the class TransactionUtility
//
//... |
99b086517fa281b423362a21de54a488854c4279 | 5271bbc481638119722568b9ab0f34f5b561554c | /webserviceDay2/webserviceDay2.ino | 613573b05942d7fd49a16a67b6e93a69ff34ef6e | [] | no_license | pritambuzz/Internet-of-things | a5e6dc5b97b2c1317a28dcbd7a36ccf08655cd1b | c284b8771197153b31c035e49e9accb2c1c6ad12 | refs/heads/master | 2020-06-01T03:22:35.436992 | 2019-06-07T02:28:21 | 2019-06-07T02:28:21 | 190,614,058 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,565 | ino | webserviceDay2.ino | #include <dht11.h>
#include<LiquidCrystal.h> //include LCD library to work with LCD display
#include <SoftwareSerial.h>
SoftwareSerial WiFi_Serial(3, 4); //WiFi module connected to pins 3-Rx, 4-Tx
LiquidCrystal lcd(8, 9, 10, 11, 12, 13); //LCD connected to pins RS-En, E-Rs, 10-D4, 11-D5, 12-D6, 13-D7
/*===============... |
c36c8114148290349cd04fb610e5da30be144a82 | 09eaf2b22ad39d284eea42bad4756a39b34da8a2 | /ojs/icpc/4643/4643.cpp | fcb6b8c1030873bc6ae74f603ec546b096662d1a | [] | no_license | victorsenam/treinos | 186b70c44b7e06c7c07a86cb6849636210c9fc61 | 72a920ce803a738e25b6fc87efa32b20415de5f5 | refs/heads/master | 2021-01-24T05:58:48.713217 | 2018-10-14T13:51:29 | 2018-10-14T13:51:29 | 41,270,007 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,403 | cpp | 4643.cpp | #include <bits/stdc++.h>
using namespace std;
typedef unsigned long long int ull;
typedef long long int ll;
#define DEBUG(...) {fprintf(stderr, __VA_ARGS__);}
const int N = 200;
const int K = 13;
const int M = (1<<11);
char memo[M][M];
int visi[M][M], turn;
char it[N][K];
int n, m;
string prt (int ms) {
return... |
fa9b6b9c1707ef2ae4e236e57d05a1fa88d38bbd | 45874c847c5a2fc4e89e05a7fc8ad9b63d8c4860 | /libclc/generic/include/clc/integer/gentype.inc | 032bdc0cadbaf00e4b8c8845d63a93a4a69a548f | [
"NCSA",
"Apache-2.0",
"LLVM-exception",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | intel/llvm | 2f023cefec793a248d8a237267410f5e288116c5 | a3d10cf63ddbdcc23712c45afd1b6b0a2ff5b190 | refs/heads/sycl | 2023-08-24T18:53:49.800759 | 2023-08-24T17:38:35 | 2023-08-24T17:38:35 | 166,008,577 | 1,050 | 735 | NOASSERTION | 2023-09-14T20:35:07 | 2019-01-16T09:05:33 | null | UTF-8 | C++ | false | false | 18,491 | inc | gentype.inc | //===----------------------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
e9654bd4825a764d1ea13890f2958af180f8ec98 | b39efc1753e05829ae50f516969efdf088de4e59 | /450qstns/01array/22.cpp | 7c74dc941c343c68907ae20cf5868b6802e24321 | [] | no_license | iamshm/myCppPractice | cccbf5e13023d98bf06eda957925fdd8369ee4ed | 53afd204c3957e0d1b8c60dcceee493770ee4929 | refs/heads/main | 2023-06-14T06:05:51.029639 | 2021-07-05T18:35:28 | 2021-07-05T18:35:28 | 335,724,940 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,016 | cpp | 22.cpp | //factorial of a large number
#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define mod 1000000007
#define inf 1e18
#define MAX 100000
void shm() {
#ifndef ONLINE_JUDGE
freopen("D:\\cpp\\input.txt", "r", stdin);
freopen("D:\\cpp\\output.txt", "w", stdout);
#endif
ios_base::sync_with_stdio(0); cin... |
20c818a8647659780e4af649f4a50f672f30a1a6 | e872bbb9d9105b58515ca4d2546841bb8e02f783 | /ACMContest/BUAASummerPractice/Week1/F.cpp | b4169b08e941c017358577cd87d4857fb241b93e | [] | no_license | SyncShinee/ACM-ICPC | 91049d2ef9a107732c1ad0094a761d95767f0bf8 | 81ab1f424dd2cdd9acfa070c7395029ea76c750b | refs/heads/master | 2020-12-24T03:33:06.389897 | 2016-07-17T12:48:30 | 2016-07-17T12:48:30 | 35,202,594 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,438 | cpp | F.cpp | #include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
#include <vector>
#include <stack>
#define N 100010
using namespace std;
typedef long long ll;
struct edge {
ll to, next;
}e[N << 1];
ll vis[N], head[N], n, side, u, v, pre[N], nxt[N], deep[N], dmt1, dmt2, dmt_len, f[N][2];
queue <ll> q;
void b... |
330a170baa9f80316c86a6bd54f0f8870909d4d5 | b1171d64287d2152b9609b222a8a8ef2e1525cf9 | /src/shaderprogram.cpp | 7660e9686217dfb35e27be1047fe568c293767c5 | [] | no_license | lfilipozzi/3DRenderer | 07eac201f84d5917bb613b67b50edac53e02a23f | a06388e3bb7f9f907b2c0d967eba403c094aba6e | refs/heads/master | 2021-07-20T06:21:25.660916 | 2021-01-23T00:02:21 | 2021-01-23T00:02:21 | 234,675,889 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,956 | cpp | shaderprogram.cpp | #include "../include/shaderprogram.h"
#include <QOpenGLFunctions>
/***
* _____ _ _
* / ____|| | | |
* | (___ | |__ __ _ __| | ___ _ __
* \___ \ | '_ \ / _` | / _` | / _ \| '__|
* ____) || | | || (_| || (_| || __/| |
... |
aef0671dfa46237e36337958b91c052e1b21e10e | 05cf250793d00cdd7fc7c03cd60a2a705865eab9 | /libmazinger-engine/src/main/native/hll/HllMatcher.cpp | f3ec2ec409ee86eb331a163fbf3532474e48d0e5 | [] | no_license | SoffidIAM/esso | 53dcfcbf22b02f0b2fdc1314eb55749c5d1ca158 | 8b3e04e596a549b9b8ecab186f16680298afd1dc | refs/heads/master | 2022-07-25T06:59:29.348943 | 2022-07-07T13:10:37 | 2022-07-07T13:10:37 | 19,988,314 | 9 | 5 | null | 2020-10-12T23:51:27 | 2014-05-20T16:25:21 | C++ | UTF-8 | C++ | false | false | 1,955 | cpp | HllMatcher.cpp | /*
* HllMatcher.cpp
*
* Created on: 26/03/2014
* Author: bubu
*/
#include <MazingerInternal.h>
#include <HllMatcher.h>
#include <HllApplication.h>
#include "HllRowPatternSpec.h"
#include "HllPatternSpec.h"
#include <ConfigReader.h>
#include <stdlib.h>
#include <stdio.h>
HllMatcher::HllMatcher():
m_apps(... |
66e6cf783f3d0250f10c634295a8a23147587df8 | 7f6e5bde1cb6b34ece975f9903a780b0aa0a101d | /chp05/난수만들기.cpp | 262697821195b64f5877995b1ac84619d5ecfba4 | [] | no_license | BackYunki/cpp-ModernCPPStudy | d3e172b81eb3b52b118b44e2cf7ed9666af9b5ea | dbb32711c014f7b1c953036ac96fbc7bb6d21296 | refs/heads/master | 2020-04-26T08:27:24.972904 | 2019-08-24T16:03:53 | 2019-08-24T16:03:53 | null | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 814 | cpp | 난수만들기.cpp | #include <iostream>
#include <ctime> // std::time();
#include <cstdlib> // std::rand(), std::srand();
#include <random> // c++11 에 추가된 라이브러리
int main()
{
using namespace std;
//// 랜덤넘버를 가지고 만든 프로그램의 디버깅은 시드를 고정시킨뒤 할것
//srand(static_cast<unsigned int>(time(0)));
//for (size_t i = 1; i <= 100; i++)
//{
// cout <<... |
e5c41971ac262c0c6b5d4c66326a4f0eb4649fe8 | 0ba1f65704a4b678f9705c5632daf32a9c67990d | /LG/LGP2657.cpp | 0696694c471c9029a7f83f2fddec22c6c3e4aab9 | [] | no_license | Challestend/challestends-code-set | 7f9e3a239ca32bc6424ac2a68ad46fb60b55ee43 | bd7d6935216d56f3667a6f939298eb84fe44fa6a | refs/heads/master | 2020-03-26T15:59:18.440653 | 2020-01-06T09:22:30 | 2020-01-06T09:22:30 | 145,075,894 | 0 | 0 | null | 2018-08-17T05:44:32 | 2018-08-17T05:30:09 | null | UTF-8 | C++ | false | false | 1,827 | cpp | LGP2657.cpp | #include<cstdio>
#include<cstring>
#define re register
#define max(a,b) ((a)>=(b)?(a):(b))
#define min(a,b) ((a)<=(b)?(a):(b))
#define abs(a) ((a)>=0?(a):(-(a)))
namespace cltstream{
template <typename _tp>
inline void read(_tp& x){
int sn=1;
char c=getchar();
for(;c!=45&&(c<48||c>57);c... |
6ad7c712f3ea9f9951bfee6d93b46653b99d6eeb | 4718b9b11110db8eb23980c6d12940bd5b754f34 | /bench/ml2cpp-demo/GradientBoostingRegressor/RandomReg_10/ml2cpp-demo_GradientBoostingRegressor_RandomReg_10.cpp | b43eddafa5dd8732014abe46b7ac2e481876f9eb | [
"BSD-3-Clause"
] | permissive | ssh352/ml2cpp | 74d38935256cf9d034d08ede37a7d8bdcfa25540 | 999eb1e7238b9ee2ee32d47ac4f12e1530a3ba6f | refs/heads/master | 2023-01-27T12:07:15.929729 | 2020-12-07T12:26:54 | 2020-12-07T12:26:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 43,142 | cpp | ml2cpp-demo_GradientBoostingRegressor_RandomReg_10.cpp | // ********************************************************
// This C++ code was automatically generated by ml2cpp (development version).
// Copyright 2020
// https://github.com/antoinecarme/ml2cpp
// Model : GradientBoostingRegressor
// Dataset : RandomReg_10
// This CPP code can be compiled using any C++-17 compi... |
c1c8258d5f0b2fd8867fbd01c1911af52690eae4 | a18daf3156b54a92f26b37cc9f995827fa61363f | /study_2dbuffer.cpp | a71924c5b4ecb2935a7eebace7baac95cd5b9fdb | [] | no_license | hhcoder/StudyTMP | 59127083b086305f2ef1fe09325d844bd977cf7b | 5519c09aaac3095362c239cfcf318e56b9ddd4ad | refs/heads/master | 2021-06-26T15:57:25.252646 | 2021-04-10T18:43:07 | 2021-04-10T18:43:07 | 225,933,582 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,458 | cpp | study_2dbuffer.cpp | #include <string>
#include <fstream>
#include <vector>
#include <iostream>
namespace StudyBuffer
{
template <typename T>
class placement_memory_allocator
{
void* pre_allocated_memory;
public:
typedef size_t size_type;
typedef T* pointer;
typedef const T* const_pointer;
template<typename _Tp1>... |
1ca9c692421d1a8e7b3de2aabe88386d63ebda2a | b1b7e3d27e41651187295a4d1a10343a85f00646 | /src/luxa/style/MenuStyle.cxx | 0d7c62ba9a8fd56e728019dff94bfb94d6560860 | [] | no_license | sigsegv42/luxa | 75f74c8c370112c27737250948286f6f8f67f4b8 | 325971feac0027ddbd0b5146f885f3dd5af9d472 | refs/heads/master | 2020-05-19T03:17:59.665938 | 2013-05-18T05:55:28 | 2013-05-18T05:55:28 | 28,616,277 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cxx | MenuStyle.cxx | /**
* (c) Joshua Farr <j.wgasa@gmail.com>
*/
#include "MenuStyle.h"
using namespace Luxa;
MenuStyle::MenuStyle(const std::string & str) : Style(str, "menu")
{
}
MenuStyle::~MenuStyle()
{
}
|
36b8fe81043b42d7388b6462c1eca706a2a04cf5 | ef187d259d33e97c7b9ed07dfbf065cec3e41f59 | /work/atcoder/arc/arc080/F/answers/487822_MTWOCZWEIXVI.cpp | 18bb14dc827496cd36525eb82e33809274af9651 | [] | no_license | kjnh10/pcw | 847f7295ea3174490485ffe14ce4cdea0931c032 | 8f677701bce15517fb9362cc5b596644da62dca8 | refs/heads/master | 2020-03-18T09:54:23.442772 | 2018-07-19T00:26:09 | 2018-07-19T00:26:09 | 134,586,379 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,445 | cpp | 487822_MTWOCZWEIXVI.cpp | #include<bits/stdc++.h>
#define HEAP priority_queue
#define rep(i, n) for(int i = 0, _end_ = (n); i < _end_; ++i)
#define per(i, n) for(int i = (n) - 1; i >= 0 ; --i)
#define forn(i, l, r) for(int i = (l), _end_ = (r); i <= _end_; ++i)
#define nrof(i, r, l) for(int i = (r), _end_ = (l); i >= _end_; --i)
#define FOR(a,... |
7aac142481c7f16fabdf01be2d26ff6257fc2b1c | dfc8fe480708a27a892d03a98fcccea22fee59fb | /port.cpp | 91f134ba833904765a041fdd91c8aa2cedee121e | [] | no_license | puddingmomentum/Azriel | dd4c4003ca44c48db326120afa7786f96a57cf28 | b7ed0e1425332ab7782114cbed8b1b3e353a4039 | refs/heads/master | 2022-10-08T18:06:49.990276 | 2022-09-16T09:44:37 | 2022-09-16T09:44:37 | 55,926,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,054 | cpp | port.cpp | #include "port.h"
Port::Port() : id(0), name(), latitude(), longitude(), gun(false), commodities()
{
commodities.insert("Food", 0);
commodities.insert("Cloth", 0);
commodities.insert("Minerals", 0);
commodities.insert("Wine", 0);
commodities.insert("Grain", 0);
commodities.insert("Timber", 0);
... |
4d2d1153b071e950af1929c23903c622414dab3c | efc68e0a567bbb4b236a2bd27650743f2859ad9b | /trivia.cpp | fd0edf8c3e27af4df319cbb27ecb2a118b46a222 | [] | no_license | MiaArmstrong/Trivia | b5ae98ca604ed9a806c80198a7588bc171065630 | f1c4aaa1fc6d3b3eaef0e519a490a33b89dc35c5 | refs/heads/master | 2021-01-01T17:56:12.780461 | 2015-09-12T04:15:15 | 2015-09-12T04:15:15 | 42,344,298 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,886 | cpp | trivia.cpp | //Mia Armstrong
//CS 163 Assignment 5
//File: trivia.cpp
/* This file contains the functions for the trivia class. */
#include "trivia.h"
//This function sets the title and notes to NULL
trivia::trivia()
{
title = NULL;
notes = NULL;
}
//This function deallocates the title and notes if they... |
e6071994f0cbbf5c44ba19d6f31d4b9879b744d8 | bd78a2da8093c8d0bfe87fca42e3a9497a1420e1 | /SourcesCode/ball.cpp | 645a467c40ae180e8c862a864e530ad42b3da184 | [] | no_license | lzh280/CoolBall | eeef8c1bbe48c4f33c0b6607e2eda641b5fd40e6 | c84877e87c4b58c20085658a51c0c49a866b845a | refs/heads/master | 2023-03-18T11:14:14.354185 | 2014-05-01T14:12:15 | 2014-05-01T14:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,209 | cpp | ball.cpp | #include "ball.h"
#include "utility.h"
#include <QPainter>
Ball::Ball()
{
m_color=produceRandomNumber(5);
m_isSelected=false;
}
Ball::Ball(bool load)
{
if(load)
m_isSelected=false;
}
Ball::~Ball()
{
}
void Ball::beenDrawed(QRect &rect,QPainter *paint)
{
if(!paint)
... |
549a78d24492e110fd3d3ce48a62a590c11a550e | a680ef85bfdfe1a68a84ac60d92ffb78bb04f2cb | /NearestNeighbor/topological_search.hpp | e7e0b142c96cf3ca1a747e991282e775e048a799 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jingtangliao/ff | b2eaceac674b85cf4928fa89ee7f5eb156d6a6a2 | d308fe62045e241a4822bb855df97ee087420d9b | refs/heads/master | 2021-01-01T05:49:49.404482 | 2015-05-19T16:26:57 | 2015-05-19T16:26:57 | 39,890,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,379 | hpp | topological_search.hpp | /**
* \file topological_search.hpp
*
* This library contains two simple nearest-neighbor search algorithms implemented
* as functor templates. This library contains, in fact, three algorithms.
*
* First, a simple min_dist_linear_search algorithm is provided which is similar to std::min_element
* excep... |
909a80acd2173d6fdfb04127e6cec5394bf674c6 | 492976adfdf031252c85de91a185bfd625738a0c | /src/Game/AI/AI/aiMagneGrabbedPartsRangeSelector.cpp | c6ea32c02f59a7bdfecb52a4994f5fd89daeaeb7 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 734 | cpp | aiMagneGrabbedPartsRangeSelector.cpp | #include "Game/AI/AI/aiMagneGrabbedPartsRangeSelector.h"
namespace uking::ai {
MagneGrabbedPartsRangeSelector::MagneGrabbedPartsRangeSelector(const InitArg& arg)
: RangeSelect(arg) {}
MagneGrabbedPartsRangeSelector::~MagneGrabbedPartsRangeSelector() = default;
bool MagneGrabbedPartsRangeSelector::init_(sead::He... |
49dcb7fb4bf77b5f72d9e123eb134dfe72054e7d | 3d98be08e31adc10cc3fdcc17c5a3c1b64c9681f | /nservicesecurity/model/NSecGroupModelAccess.cpp | 9182d698c08571b10ebcdfa85fa5f17e058c1db3 | [] | no_license | Strohhalm/nwebmedia | 3cf340e5c3c05b5aa942e97470e18f2281f8508c | 5fa80222b7618a8c44a1ec18668590f0dc198826 | refs/heads/master | 2021-01-23T14:46:29.661366 | 2015-09-04T12:21:52 | 2015-09-04T12:21:52 | 39,181,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,641 | cpp | NSecGroupModelAccess.cpp | //
// Created by strohhalm on 10.06.15.
//
#include <nmodel/NTypedResultSet.h>
#include "NSecGroupModelAccess.h"
namespace nox
{
namespace security
{
namespace model
{
NSecGroupModelAccess::NSecGroupModelAccess() : INModelAccess(NCOMPONENT_SERVICE_SECURITY, NXS(NOX_SEC_GROUP))
... |
67153f461736e33a355a9ccbc0c5db4440ee3bbb | 138b2169832202bb9db8dd3ab3621921b7420163 | /cpp/src/cacm_busq_local_main.cpp | 446cbd27b7038bdc36eea57b5d3624ee96955220 | [] | no_license | fcanay/algo3-tp3 | 111ec6c5401350c69c37929c8a880d19293f4749 | 3cad9e7610740cf22e2f0370be1b5d3845ca3721 | refs/heads/master | 2021-01-17T13:17:33.654788 | 2014-07-18T21:48:09 | 2014-07-18T21:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 278 | cpp | cacm_busq_local_main.cpp | #include "cacm.h"
#include "cacm_busq_local.h"
using namespace cacm;
using namespace cacm_busq_local;
int main(int argc, char const *argv[])
{
entrada e;
while (leer_instancia_listas_ordenadas(e))
{
salida s = resolver(e);
escribir_salida(s);
}
return 0;
}
|
9e601b0f42cb590ddcde92f80ebb992b7261a03d | 8911eae8c3b902b8f8128556da6e43345a011f23 | /src/bpffeature.h | df4f4839366ef59d6196db0e83db2a39a8cc5e04 | [
"Apache-2.0"
] | permissive | delphix/bpftrace | 85aeff7c2e5c5d2f6cde93a8c97e7ee13e6a457e | 5c01e35c47e5a3c37e37f6fbeac91c6119c53bd9 | refs/heads/master | 2023-08-16T19:49:47.777296 | 2021-04-29T04:19:16 | 2021-04-29T04:19:16 | 157,599,611 | 4 | 12 | Apache-2.0 | 2023-04-06T23:59:32 | 2018-11-14T19:25:09 | C++ | UTF-8 | C++ | false | false | 5,954 | h | bpffeature.h | #pragma once
#include <bcc/libbpf.h>
#include <memory>
#include <optional>
#include <string>
namespace libbpf {
#undef __BPF_FUNC_MAPPER
#include "libbpf/bpf.h"
} // namespace libbpf
namespace bpftrace {
#define DEFINE_MAP_TEST(var, maptype) \
protected: ... |
ac1edac05da45d222179b12087b418f69c42cd76 | 2abf85f2a387d6e47adf4046823e4f561a918d71 | /Tiway-var/main.cpp | 0ef2c4c402693c9da74a4e2d8d820ec28757135d | [] | no_license | tiway-deng/phpcpp- | 488345221627819ada39ed0a9a12fd8749e974f4 | b6ddc29076089151613927a4b54af643a160dfbb | refs/heads/main | 2023-06-12T14:27:20.748405 | 2021-07-09T03:14:55 | 2021-07-09T03:14:55 | 381,301,780 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,213 | cpp | main.cpp | #include <phpcpp.h>
#include <iostream>
#include<cstdio>
#include<time.h>
#include<stdlib.h>
#include <string>
/**
*
* 通过 char * 指针获取定长随机字符
* */
Php::Value gen_by_charp(Php::Parameters ¶ms)
{
//长度参数
int len = params[0];
//声明返回值长度,并返回指针给str
char* str = new char[len+1];
//srand函数是随机数发生器rand的初... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.