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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c51453f8db01038fd8d53ef93e9dea32122949ea | 9426475939c7c7a02c6be8bb0845a655b7528735 | /CommandFactory.cpp | f82c9d16e889f8e6027292353d0590f97d8c3b19 | [] | no_license | ernezto/arduino-ci-monitor | 43729548af1a28f35d2ef21442703a321cf7bacb | 4c4ef6c28986f5c072af03a5d0808a30e03abd92 | refs/heads/master | 2016-09-03T01:12:06.837359 | 2014-03-14T15:35:31 | 2014-03-14T15:35:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,476 | cpp | CommandFactory.cpp | #include "CommandFactory.h"
#include "BrokenBuildCommand.h"
#include "PassedBuildCommand.h"
#include "StartingBuildCommand.h"
CommandFactory::CommandFactory(int red_light, int green_light, int blue_light, int buzzerPin, LiquidCrystal *lcd) {
_lcd = lcd;
_player = new Player(buzzerPin);
brokenBuild = new BrokenBu... |
7f2ccd633c920307fa6c30df85fc8df7077893b2 | 967bcba49595cef66241d0ec6652be74dc6e86e5 | /Geometry/ccw.cpp | edfbf848ddc1de4e9409bdeff562b019c9fb2da7 | [] | no_license | mgood2/Algorithm | 668bb8d67d628b146c1a694586f7aa63d2316291 | cd1ddf0c422c6f2aac4e0c1e9605b83dee021c13 | refs/heads/master | 2021-01-19T17:00:25.880775 | 2017-07-30T08:11:35 | 2017-07-30T08:11:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 650 | cpp | ccw.cpp | // =====================================================================================
//
// Filename: ccw.cpp
// Created: 2017년 01월 15일 02시 56분 38초
// Compiler: g++ -O2 -std=c++14
// Author: baactree , bsj0206@naver.com
// Company: Chonnam National University
//
// =========... |
1f0b13ee5cac1fa2c848adc7dc0a9e95594cac10 | cf96c3961e5e0bb883945c41fb4227e2fa1ded0f | /shallow/details/BoundingBox.hpp | 50cf202b89c8acb620221b9b13747948f564a531 | [] | no_license | sabjohnso/shallow | 39afbed486ad2ac81ebea697a61008cfe804aebe | 54eeee508e03b603e40db3492ade69bdce232632 | refs/heads/master | 2022-11-28T09:37:37.465616 | 2020-08-07T01:00:18 | 2020-08-07T01:00:18 | 282,773,982 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 514 | hpp | BoundingBox.hpp | #pragma once
//
// ... Shalow header files
//
#include <shallow/details/Point.hpp>
namespace Shallow::Details
{
template<typename T>
class BoundingBox
{
public:
BoundingBox() = delete;
BoundingBox(Point<T> lower, Point<T> upper)
: lower{lower}
, upper{upper}
{}
const Point<T> l... |
2e6bbb3cc0e02945d60d9c0c9cb8337ce4a3d3c0 | dcced388ee83ff57a270f115757f46bdf5bd3868 | /ezEnrollment/tools/atflib/include/atf/ExceptionLogger.h | 800d39865d7c17de2b73da82f74828bef5b5bb0d | [] | no_license | VB6Hobbyst7/vault_repo | a6aebc1dfd9f9f111b21829d92c5f8bdde80d068 | e6f074bfcf04c6a7598edd43f0cbef3ed4c50d01 | refs/heads/master | 2021-12-03T21:58:16.422079 | 2014-11-19T13:23:08 | 2014-11-19T13:23:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,085 | h | ExceptionLogger.h | /*
* $RCSfile: ExceptionLogger.h,v $
*
* $Revision: 1.2 $
*
* last change: $Date: 2003/09/05 07:18:17 $
*/
// TagExceptionLogger.h: interface for the CTagExceptionLogger class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TAGEXCEPTIONLOGGER_H__EE2DCA14_1802_49E2_9... |
d02dc1529ca2877ebd859b392154fcfc9b94fcae | 0019f0af5518efe2144b6c0e63a89e3bd2bdb597 | /antares/src/apps/networkstatus/NetworkStatusWindow.h | 26e2cd2115b450f8cb9dc01a70cb288251e43398 | [] | no_license | mmanley/Antares | 5ededcbdf09ef725e6800c45bafd982b269137b1 | d35f39c12a0a62336040efad7540c8c5bce9678a | refs/heads/master | 2020-06-02T22:28:26.722064 | 2010-03-08T21:51:31 | 2010-03-08T21:51:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 446 | h | NetworkStatusWindow.h | /*
* Copyright 2006-2007, Antares, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* Axel Dörfler, axeld@pinc-software.de
*/
#ifndef NETWORK_STATUS_WINDOW_H
#define NETWORK_STATUS_WINDOW_H
#include <Window.h>
class NetworkStatusWindow : public BWindow {
public:
Net... |
91667a5f2b9f5b04077de5bad09e61c34694d76b | 6063111e01bde568104c2113f2fa59884f600ae6 | /cluster_extractor/src/cluster.cpp | 8f0845ec1182e3f3b194ae8c433386d87d1e4a66 | [] | no_license | ajanani85/laser_analysis | 7de061ff1a860fc29f37d2d7bd5275761a52f6c5 | df40cfba596ec83e5d8226629335019662a8c5e8 | refs/heads/master | 2021-08-08T11:30:11.292140 | 2017-11-10T07:30:02 | 2017-11-10T07:30:02 | 108,410,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,660 | cpp | cluster.cpp | #include<ros/ros.h>
#include<cluster_extractor/cluster.h>
#include<sensor_msgs/PointCloud.h>
#include<utility>
#include<math.h>
#include<vector>
using namespace std;
Cluster::Cluster()
{
}
Cluster::~Cluster()
{
}
void Cluster::addMember(geometry_msgs::Point32 p)
{
members.points.push_back(p);
sum_x ... |
51b0e475debc9d0dbce904a5027e146ab97c4c11 | 95a43c10c75b16595c30bdf6db4a1c2af2e4765d | /codecrawler/_code/hdu1861/16209388.cpp | 13d029f2e60f78ccb44d40ecbf2a1cd480c3e099 | [] | no_license | kunhuicho/crawl-tools | 945e8c40261dfa51fb13088163f0a7bece85fc9d | 8eb8c4192d39919c64b84e0a817c65da0effad2d | refs/heads/master | 2021-01-21T01:05:54.638395 | 2016-08-28T17:01:37 | 2016-08-28T17:01:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,315 | cpp | 16209388.cpp | //hdu_1861
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
typedef struct _rent
{
int cnt;
int stim;
int etim;
int ttim;
bool flag;
}rent;
rent rt[101];
int main()
{
// freopen("input.in", "r", stdin);
int bnum, i, ttime, cnt;
char op;
int timh, timm;... |
b15ff63b2e094e5db711a57ba80a586f399cfac5 | 84161e06a39ed7357647ebfbed0cf2ef8f2f841a | /contest/1397/d/d.cpp | cb395b74c0c80af1964eb49db414f8fbc2ad48ed | [] | no_license | chachabai/cf | 7dee0a989c19a7abe96b439032c1ba898790fb80 | 069fad31f2e2a5bad250fe44bb982220d651b74a | refs/heads/master | 2022-12-30T09:16:30.876496 | 2020-10-20T06:39:15 | 2020-10-20T06:39:15 | 293,874,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 584 | cpp | d.cpp | #include <bits/stdc++.h>
#define watch(x) std::cout << (#x) << " is " << (x) << std::endl
#define print(x) std::cout << (x) << std::endl
using LL = long long;
int main() {
//freopen("in","r",stdin);
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int cas;
std::cin >> cas;
while (cas--) {
int n;
std:... |
c7a2c2829fc43592f4c61e4b64eb91c0626dc20e | 1edca9aee917e444eb7317a930bcb6d1f1ea4c09 | /Filter/factory.h | 5d342b4d3269ff2374af0e70c2134c083e497d37 | [] | no_license | VitalyGrachev/Nsu-computer-graphics | cd17041cb53389d0125edb5f2d6bc15c212ae39f | 13c33506e7ec4069d61aed1098eaca4668bb976e | refs/heads/master | 2021-01-25T04:16:08.978422 | 2018-10-11T15:51:52 | 2018-10-11T15:51:52 | 93,420,905 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,539 | h | factory.h | #ifndef FACTORY_H
#define FACTORY_H
#include <map>
template<class ID, class PRODUCT>
class Factory {
public:
PRODUCT * create(const ID & id) const;
template<class T>
bool register_type(const ID & id);
static Factory & instance()
{
static Factory f;
return f;
}
private:
F... |
2614fd7d6d72b61314987c0931b7d078cbeb3684 | 973d723394437d646d0f27f6edd5c4860ee1fd63 | /dsaac/1_C++_Review.hpp | 532e17b5c5b7dab03f38c09f213058fefebc57e6 | [] | no_license | 333mhz/learncpp | a4ffcb4f8baf140974776713b319e76e70075f06 | d2e875ff97b10d3a0c9da7f9aa0b6c389989cb9e | refs/heads/master | 2020-06-25T00:36:04.656244 | 2020-01-19T00:21:12 | 2020-01-19T00:21:12 | 199,141,405 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,140 | hpp | 1_C++_Review.hpp | #ifndef CXX_REVIEW
#define CXX_REVIEW
#include "stdafx.hpp"
//1-1
//1-2
template<class T>
int countvalue(T* a,int length, T value)
{
if(length < 1)
throw "Array length should be > 0";
int count=0;
for(int i = 0;i<length;++i)
{
if(a[i] == value)
++count;
}
return coun... |
e65d08f4f15228b905330b01e8d6f4fe33c94168 | eb70adcfcc30ac8301341ccf72ec146de41a1665 | /src/tagsmanager.cpp | 6880433a73dce234fc8532e085a66cc254daf140 | [] | no_license | Beliaf/leechcraft | ff2166070913f2d7ee480f40542ccdf148e49cad | 0823a7d8f85d11bed0b81e61ddb3bf329f9d5d39 | refs/heads/master | 2021-01-18T11:00:38.531356 | 2009-06-14T22:44:13 | 2009-06-14T22:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,717 | cpp | tagsmanager.cpp | #include "tagsmanager.h"
#include <boost/bind.hpp>
#include <QStringList>
#include <QSettings>
#include <QtDebug>
#include <plugininterface/proxy.h>
#include <plugininterface/tagscompleter.h>
using namespace LeechCraft;
TagsManager::TagsManager ()
{
ReadSettings ();
GetID (tr ("untagged"));
LeechCraft::Util::TagsC... |
bf36b22bb2a04d8b326100250f552f34026619e6 | a4af8baee721e7c3610688a6e68586d839095c70 | /rtrim_ws.cpp | be897c7f14083d36b9da13e5684c6cdfc8231f1e | [] | no_license | timothyshull/cpp_scratchpad_old | 0b086916a6b93189d842f89806428976925ecc2b | f670085fa92b8cf4b911a522f88d75d7cc6a759b | refs/heads/master | 2021-01-22T20:34:31.008988 | 2017-03-17T15:52:41 | 2017-03-17T15:52:41 | 85,329,261 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | cpp | rtrim_ws.cpp | #include<string>
#include<iostream>
#include"utility.h"
int main() {
std::string s = "zing ";
std::wstring ws = L"zong ";
rtrimws(s);
rtrimws(ws);
std::cout << s << "|\n";
std::wcout << ws << L"|\n";
return 0;
}
|
bbb7236b476eb7e4cc8a416e23ccd5e6f0944c5b | ebe7b84877fe669a097fec357fc54bf665be0b5a | /accelerated-cpp/ch0/chapter0Exercises.hpp | f2eff689e54c5b0f6934a283801fd7f9ed7ce7be | [] | no_license | treknuts/accelerated-cpp | 71d08c6c0dbdff9516c5ad08bf1a1a91f8fa9d23 | 9e4ddbc7b20675f3d76d3c5f55be62f884683003 | refs/heads/master | 2022-12-11T05:49:22.036039 | 2020-08-27T15:21:06 | 2020-08-27T15:21:06 | 283,932,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 356 | hpp | chapter0Exercises.hpp | //
// chapter0Exercises.hpp
// accelerated-cpp
//
// Created by Trevor Knutson on 7/30/20.
// Copyright © 2020 Trevor Knutson. All rights reserved.
//
#ifndef chapter0Exercises_hpp
#define chapter0Exercises_hpp
#include <stdio.h>
#endif /* chapter0Exercises_hpp */
namespace ch0 {
void helloWorld();
void... |
aac2e448beb4a5f169ddb6a6b44147f3c30aac03 | fe4eaed1d457379d262c8cc6537bf5fa428f430b | /1 - Introdução à linguagem C e C++/Questionário 1 sobre a linguagem C e C++/Lourdes Oshiro Igarashi/3.cpp | 484e226a95f09042fb768025c7047e915ae522ae | [
"MIT"
] | permissive | GOOOL-UFMS/Algoritmos-e-Programacao-II | 22b0b553960da1d9fa4a392e29b61e9bbd4ba7d9 | 153aab24c37f0a3895630e1ee6ec582e4fd6b96c | refs/heads/main | 2023-08-05T13:29:17.904649 | 2021-09-30T22:15:10 | 2021-09-30T22:15:10 | 395,465,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,137 | cpp | 3.cpp | /*
Projete e implemente um programa para calcular
o saldo da sua conta corrente.
Seu programa deve ler o saldo disponível,
a operação a ser realizada, (D) depósito ou (S) saque
e o valor da operação.O programa deve calcular
e imprimir o saldo após a operação.
O valor máximo a ser impresso é R$ +99999.99 ou... |
7d0a0bd2062ff61b550b6bcb359eab9beefa6674 | 8d2ce459b5f03e2982ba764c5cc383b63f6b19c0 | /1281蹦蹦跳跳/1281.cpp | b10a0a56c9e0e3a398c6b80f9b71cfa16fac3fc4 | [] | no_license | elicassion/SJTU_OnlineJudge | 37a2eebdd4f1d41c23090be79e1771fb8a96bad4 | 532289168c782aca8444ff45764432c9863be2b3 | refs/heads/master | 2021-01-10T12:33:39.186794 | 2016-04-12T12:44:52 | 2016-04-12T12:44:52 | 36,080,058 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | 1281.cpp | #include<iostream>
#include<fstream>
#include<iomanip>
#include<cstdlib>
#include<ctime>
#include<cstring>
#include<string>
#include<cmath>
#include<algorithm>
#include<cstdio>
#include<queue>
#include<stack>
#include<list>
#include<vector>
#include<set>
#include<map>
#define FOR(i,bg,ed) for(int i=bg;i<=ed;++i)
#defin... |
6b3e4acf370ab399c8934d2d9dfda5e492c6f1d9 | acc35c8382eff69dbfa109f857eae7ad715be121 | /task1/57.HshTable/Source.cpp | 321bcbdbb081f8b82d22c5d4eebdf8b83eb83e1a | [] | no_license | varya1441/Algorithms | bf74767cfa2297bfe90f6c1ac742250f8a656722 | 5725fa153b8106509dc0c5546bbb6a8ed932db98 | refs/heads/master | 2020-04-22T20:57:59.055308 | 2019-08-06T10:46:59 | 2019-08-06T10:46:59 | 170,657,962 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | Source.cpp | #pragma warning(disable : 4996)
#include <stdio.h>
#include<iostream>
#include<numeric>
#include<algorithm>
#include<vector>
#include<map>
using namespace std;
long m, n, c, x;
//map<int,int>h;
vector <long>ht;
void f(long x) {
int j = 0;
int num;
while (true) {
num= ((x%m) + c * (j++)) % m;
if (ht[num] == -1)... |
7d923349280e54d187aa8057b2c9c5156718deac | be635b55527f1a439d9b6d34dac281cb20f49f3d | /GLEngine/src/Base/Material.cpp | 8b771c475170844a6f5bc695c0ca194e1bbccceb | [] | no_license | xcxcmath/DVRstudy | a468f86815ed353a62a59325a985cb9bc2e43c25 | bd804543f65f0889ff9b7e3a25176a808f9d099a | refs/heads/master | 2020-07-30T05:50:31.848630 | 2019-10-08T07:59:01 | 2019-10-08T07:59:01 | 210,108,327 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 326 | cpp | Material.cpp | //
// Created by bjk on 19. 8. 3..
//
#include <GLEngine/Base/Material.hpp>
GLEngine::Material::Material()
: m_program(std::make_shared<GLEngine::Program>())
{
}
const std::shared_ptr<GLEngine::Program> &GLEngine::Material::getProgram() const noexcept {
return m_program;
}
GLEngine::Material::~Material() = def... |
0f10d1d41f9bcc96c7824622d66ced4938a2d7ce | 447808a8134b89f6f199198da13dd110cf02c47b | /Ficha.h | 821d2c27b9ab3a13e9ea856ca016b67fe18e3d66 | [] | no_license | AlbertoCasasOrtiz/UCM-Informatica_grafica-Practica_1 | fb4b3bcbc4958f1a71a5c473b63bb62f10e6d7d9 | 3863cdb4de6921f8bbd88dc9d62d5c0395b9fdd3 | refs/heads/master | 2020-12-30T16:41:26.259392 | 2017-05-11T18:52:23 | 2017-05-11T18:52:23 | 91,013,244 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,708 | h | Ficha.h | #ifndef FICHA_H
#define FICHA_H
#include "Quesito.h"
#include "Malla.h"
class Ficha : public Malla{
private:
/*Número de vértces en el perfil.*/
const GLint numVerticesPerfil = 3;
/*Perfil que generará el tubo.*/
PV3D** perfil;
/*Crea el perfil.*/
void creaPerfil(GLfloat radio, GLfloat altura) {
this->perfi... |
d48831b41778e94c017cd68272a63766bd326e14 | 8a7a6282c6a2fe94240b1ad896e879211f02b33b | /qutilities/trace-whois/traceroute.cpp | d39c1a3c20038b502976ccf140171efee1b93b03 | [] | no_license | mboyar/fundamentals | d580a3cca602c1610ef8e21d67189c0b74e972f1 | 6f424987c87772a9efa4334f00b223ea896caf01 | refs/heads/master | 2021-10-01T00:09:43.973368 | 2018-11-26T06:57:20 | 2018-11-26T06:57:20 | 115,797,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | cpp | traceroute.cpp | #include "traceroute.h"
Traceroute::Traceroute(QObject *parent) : QObject(parent)
{
proc.setProgram("traceroute");
proc.setArguments(QStringList() << QCoreApplication::arguments().at(1));
proc.start();
proc.waitForFinished();
qDebug() << proc.readAll();
}
void Traceroute::readOutline()
{
}
|
bef342d537fdb26577eec6582ba85ff690495ce8 | 406b6f3e8355bcab9add96f3cff044823186fe37 | /src/poisson/cpu_parallel/parallel_data_octree.h | 7dd57e23c8f3967f78419a9a10a1e85e50ee3188 | [] | no_license | Micalson/puppet | 96fd02893f871c6bbe0abff235bf2b09f14fe5d9 | d51ed9ec2f2e4bf65dc5081a9d89d271cece28b5 | refs/heads/master | 2022-03-28T22:43:13.863185 | 2019-12-26T13:52:00 | 2019-12-26T13:52:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 707 | h | parallel_data_octree.h | #pragma once
#include "parallel_octree_nodes.h"
#include "parallel_octree_vertex.h"
#include "paralled_octree_edges.h"
#include "parallel_octree_faces.h"
class ParallelDataOctree
{
public:
ParallelDataOctree();
~ParallelDataOctree();
void SetParameters(int depth, float box_extend);
void BuildFromPoints(const std:... |
23ba4bfb86df01d52678eb12619ec559e3b83d98 | 2b5fbd62812f10cfd41c37bb223bbaca8ce1dfe2 | /draft/random_split.hpp | bdbe030cb35ede263d7a8920f9851952a43d07c5 | [
"Apache-2.0"
] | permissive | Better-Idea/Mix-C | 5e6adaa2399cc94437a18d2962ebbca016bc6e71 | 71f34a5fc8c17a516cf99bc397289d046364a82e | refs/heads/master | 2021-12-10T04:59:17.280741 | 2021-09-30T13:36:05 | 2021-09-30T13:36:05 | 208,288,799 | 45 | 9 | Apache-2.0 | 2021-01-05T07:08:29 | 2019-09-13T15:06:16 | C++ | UTF-8 | C++ | false | false | 989 | hpp | random_split.hpp | #define xuser mixc::powerful_cat::inc
#include"math/random.hpp"
#include"interface/ranger.hpp"
namespace mixc::powerful_cat{
inline bstate_t random_split(inc::ranger<uxx> list, uxx total){
uxx length = list.length();
if (total < length or length == 0){
return bstate_t::fail;
... |
5156d62321b2f69c789977032e696de8156dcc93 | cd2687ef4ea9bd09c35fc437c14eae59ee85c360 | /HW4/GameShow/GameShow/Source.cpp | e267c524ab3041c206362d58ba7c6b4b4d5ca05e | [] | no_license | zacharyjung/CS-171 | 461ebe8fff23d92ef9910ad0a02d3043ba49d5aa | 5b6e62ef5e9028ccf86b43a03839c21ee8c2031e | refs/heads/master | 2020-04-02T03:41:05.113762 | 2016-07-08T03:47:50 | 2016-07-08T03:47:50 | 62,855,515 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,409 | cpp | Source.cpp | #include <iostream>
#include <string>
#include <cmath>
#include <ctime>
using namespace std;
void setupDoors(char &door1, char &door2, char &door3);
void result(char door1, char door2, char door3, int &doorPlayer);
void pickDoorChoices(char door1, char door2, char door3, int &doorPlayer, int &doorMonty);
void chart(do... |
2901b9ca1e0b3a266fcdf1d14eedec261387f611 | 9cceb49420b9b53923e4c04c50bbb7c146a14064 | /NicoJK/TVTComment/IPC/IPCMessage/TimeIPCMessage.cpp | 3555d2d8ac3ab22e3faf407ce89a0a4cde4ee6d3 | [
"MIT"
] | permissive | flatomoya/TVTComment | fbe3810cb3d7b701c6e5407c5aadaa25f54219db | 12d4029da74be1b3054d10fa6b573e392042b222 | refs/heads/master | 2023-07-10T03:31:11.995992 | 2021-08-14T15:52:07 | 2021-08-14T15:52:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 396 | cpp | TimeIPCMessage.cpp | #include "stdafx.h"
#include "TimeIPCMessage.h"
namespace TVTComment
{
std::string TimeIPCMessage::GetMessageName() const
{
return u8"Time";
}
std::vector<std::string> TimeIPCMessage::Encode() const
{
return { std::to_string(this->Time) };
}
void TimeIPCMessage::Decode(const std::vector<std::string> &)
{... |
1a0c7e5a6f8df9f5abcc6b3dbeb12eeb9891cc6e | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/collectd/gumtree/collectd_repos_function_1726_last_repos.cpp | 94ca0f3238f427e498fd10bd7b7b782cabf517cd | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 177 | cpp | collectd_repos_function_1726_last_repos.cpp | static uint64_t ovs_uid_generate() {
uint64_t new_uid;
pthread_mutex_lock(&ovs_uid_mutex);
new_uid = ++ovs_uid;
pthread_mutex_unlock(&ovs_uid_mutex);
return new_uid;
} |
0980730fdb2facc777b5a0f3006b5eda0a4a899b | be9d60bc856095989a7eabb0b629f432cd062a67 | /4 сем/TA/67.2_3568/main.cpp | e221cb37192f91188d0d6edadf759c9090cd87b5 | [] | no_license | Viiktorias/2_course | 01682c9d172c61008ef8b3c49e97e378aa5eb192 | 26fd5fab667e37569436221765edfe49e1d6bd34 | refs/heads/master | 2022-01-29T12:12:40.682971 | 2019-08-07T13:36:56 | 2019-08-07T13:36:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | main.cpp | #include <fstream>
#include <vector>
#include <stack>
using namespace std;
int isAll(vector<int> &metka, int n)
{
int i;
for (i = 0; ((i < n) && (metka[i] != 0)); i++)
{
}
return i;
}
int main()
{
ifstream fin("input.txt");
int n;
fin >> n;
int curmetka = 1;
vector<vector<int>... |
8c4f7db38ca78de78c3b670249dbfb21296e9877 | b3cdbc27a122f122b62ce8f7430a21108b2a5c0e | /tracetable.h | 93a6e7e654fa4375b262de8a7c95796b12580586 | [] | no_license | lyro41/Calculator | 1a82252cea4a756aeccec347361e09c1058e446c | 0535d8a1a7361dac8c1855fee8a8f02ee3196919 | refs/heads/master | 2021-10-26T09:56:34.005067 | 2019-04-11T20:01:18 | 2019-04-11T20:01:18 | 180,868,480 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 891 | h | tracetable.h | #ifndef TRACETABLE_H
#define TRACETABLE_H
#include <QDialog>
#include <QStandardItemModel>
#include <vector>
#include <string>
#include <algorithm>
typedef unsigned long long ull;
extern void stoull_list(std::string field, std::vector<ull> &list);
extern void command_separate(std::string field, std::vector<ull> ... |
178bd57c570c99c7097f10b89c5efe3fbc1f53b5 | d274817dac1dcff8cbe4e1651ab31efcfd658a83 | /include/boo2/inputdev/DeviceSignature.hpp | 0198347b2e741d838c97ef623c7fedb4d5e1e1ce | [
"MIT"
] | permissive | AxioDL/boo2 | 9574999af8fafb9ba884b6f789b8ca52e4cfd371 | c49c028a38b12746ca60c0db6dd7a25d85851856 | refs/heads/master | 2021-04-12T17:15:44.915086 | 2020-10-21T04:53:57 | 2020-10-21T04:53:57 | 249,095,732 | 0 | 2 | NOASSERTION | 2022-11-16T04:51:33 | 2020-03-22T02:02:33 | C++ | UTF-8 | C++ | false | false | 1,653 | hpp | DeviceSignature.hpp | #pragma once
#include <cstdint>
#include <functional>
#include <memory>
#include <string>
#include <typeindex>
#include <vector>
namespace boo2 {
enum class DeviceType { None = 0, USB = 1, Bluetooth = 2, HID = 3, XInput = 4 };
class DeviceToken;
class DeviceBase;
#define dev_typeid(type) std::hash<std::string>()(#... |
99b80167d26e8244f770c715a88a7f5c082bb5a8 | 8eb8b4b4fb59ba95ce6362a4adc55f44dee27b2c | /HolaOGRE/sinbad.h | 692d0ae45086b1f035a0170c4093e7f4b1f3b603 | [] | no_license | RockekScripts/IG-2-Ogre | 80cf6d61f81956dfd8c0cb669383218c21d43083 | cab18624912f83d7cfbb38bd3a48542451e49c08 | refs/heads/master | 2021-05-07T05:55:32.428890 | 2018-01-28T18:05:46 | 2018-01-28T18:05:46 | 111,676,460 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,001 | h | sinbad.h | #pragma once
#include <OgreInput.h>
#include <Ogre.h>
#include <vector>
#include "ObjectMan.h"
class sinbad : public OgreBites::InputListener,public ObjectMan
{
public:
sinbad(Ogre::SceneNode* scnMgr_);
~sinbad();
virtual bool keyPressed(const OgreBites::KeyboardEvent& evt);
//virtual bool mousePressed(const Ogre... |
c8bc14e91b7545f8a96ae78d4dccbcfaf7d40793 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /inc/StepBasic_ApprovalAssignment.hxx | 049f818d7d8e4d0623a9f1a930d04b2787a1ed79 | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,455 | hxx | StepBasic_ApprovalAssignment.hxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _StepBasic_ApprovalAssignment_HeaderFi... |
fe3996175e34ea3f3d1167582f34db4ef2e8b2cf | 6bba188d1bac735374fda6db8d6abe7798c2c17a | /project 2020/Smart irrigation/Water_level_relay_code/Water_level_relay_code.ino | 5fedc3cd4a162ae2e0f14df02a7cdc69ac6d316a | [
"MIT"
] | permissive | pankajdahilkar/FishPondMonetor | 7231b1890cad13bc1194f06668ae880a6dd1c3cf | 5ef1d10001606a9f6ea55415484b15bff663da79 | refs/heads/master | 2023-03-31T20:24:23.225896 | 2021-04-06T14:26:42 | 2021-04-06T14:26:42 | 277,061,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,341 | ino | Water_level_relay_code.ino | #include "DHT.h"
#include <LiquidCrystal.h>
#define ON 1
#define OFF 0
#define DHTPIN 2
#define DHTTYPE DHT11
const int rs = 3, en = 4, d4 = 5, d5 = 6, d6 = 7, d7 = 8;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
int incomingByte; // a variable to read incoming serial data into
unsigned long previousMillis = 0, pre... |
76052dfa6a1388b77ac851e1355607da3080eda9 | 293c244b17524210780b4fcb644c03d5cd6f1729 | /src/plugin/scripting/pythonlib/include/py_enum.hh | 0284e9668e66a7442fb5d97c1a20136eb6b424ac | [
"BSD-3-Clause"
] | permissive | bugengine/BugEngine | 380c0aee8ba48a07e5b820877352f922cbba0a21 | 1b3831d494ee06b0bd74a8227c939dd774b91226 | refs/heads/master | 2021-08-08T00:20:11.200535 | 2021-07-31T13:53:24 | 2021-07-31T13:53:24 | 20,094,089 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,106 | hh | py_enum.hh | /* BugEngine <bugengine.devel@gmail.com>
see LICENSE for detail */
#ifndef BE_PYTHONLIB_PY_ENUM_HH_
#define BE_PYTHONLIB_PY_ENUM_HH_
/**************************************************************************************************/
#include <bugengine/plugin.scripting.pythonlib/stdafx.h>
#include <py_object.hh>
... |
fad4c5462fda744c08c0e885d4b164a931d9ea4b | 100cd26be1c2196462814902190f3842c09e288f | /source/pkb/relationshipTables/NextTable.cpp | fe0938ed8a37f19cb53bdf66ad08a1e2f9bd924f | [] | no_license | brandonyeoxg/cs3201-simple-spa | bcb9f951d101311e4f92af66b780a083d11d3d96 | deb47a51bbeaaa22c20979cb1669bf4c61dd9361 | refs/heads/master | 2021-03-27T20:31:10.144994 | 2017-11-13T05:57:06 | 2017-11-13T05:57:06 | 101,005,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,980 | cpp | NextTable.cpp | #pragma once
#include "NextTable.h"
NextTable::NextTable() {
MAX_LINE_NUM = 0;
m_afterGraph = std::map<PROG_LINE, LIST_OF_PROG_LINES>();
m_beforeGraph = std::map<PROG_LINE, LIST_OF_PROG_LINES>();
}
void NextTable::insertNextRelationship(PROG_LINE t_line1, PROG_LINE t_line2) {
if (MAX_LINE_NUM < t_line1 + 1) ... |
7f96b1fa8def09b2aed870ff009cec0337340e2e | 25e90a9e57dfd488e531b049eca36d2f0f47a0ba | /cores/gba/src/platform/qt/utils.cpp | 1c16df9327fc9d489dc43299bc7d69efa74658ce | [
"MIT",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.1-only",
"MPL-1.1",
"LicenseRef-scancode-mame",
"GPL-1.0-or-later",
"Zlib",
"GPL-2.0-only",
"LGPL-2.1-or-later",
"MPL-2.0",
"CC-PDDC",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-brian-gladman-3-clause",
"BSD-3-Clause"... | permissive | Pandinosaurus/retro | b9a0df960083f0f0d6563f05e8d102e45afc1e98 | 094531b16221d9199c2e9b7913259ba448c57e37 | refs/heads/master | 2023-04-29T17:59:25.810054 | 2023-04-12T20:48:22 | 2023-04-12T20:48:22 | 221,809,513 | 0 | 0 | MIT | 2023-04-13T01:24:38 | 2019-11-15T00:11:40 | C | UTF-8 | C++ | false | false | 833 | cpp | utils.cpp | /* Copyright (c) 2013-2017 Jeffrey Pfau
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "utils.h"
#include <QObject>
namespace QGBA {
QString niceSi... |
560b129f4afe842f0f9ba0b307a555159456c0ce | c8b39acfd4a857dc15ed3375e0d93e75fa3f1f64 | /Engine/Source/Editor/IntroTutorials/Private/EditorTutorialImportFactory.cpp | 9b196e1c5e4dc11f2497accd3bd14b3f6c4d0df5 | [
"MIT",
"LicenseRef-scancode-proprietary-license"
] | permissive | windystrife/UnrealEngine_NVIDIAGameWorks | c3c7863083653caf1bc67d3ef104fb4b9f302e2a | b50e6338a7c5b26374d66306ebc7807541ff815e | refs/heads/4.18-GameWorks | 2023-03-11T02:50:08.471040 | 2022-01-13T20:50:29 | 2022-01-13T20:50:29 | 124,100,479 | 262 | 179 | MIT | 2022-12-16T05:36:38 | 2018-03-06T15:44:09 | C++ | UTF-8 | C++ | false | false | 5,609 | cpp | EditorTutorialImportFactory.cpp | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "EditorTutorialImportFactory.h"
#include "Misc/Paths.h"
#include "Engine/Blueprint.h"
#include "Engine/BlueprintGeneratedClass.h"
#include "EditorTutorial.h"
#include "Kismet2/KismetEditorUtilities.h"
#include "IDocumentationPage.h"
#include "IDocum... |
f0600b69c18fa31edfb673a087c520cafed91761 | 050c8a810d34fe125aecae582f9adfd0625356c6 | /E. Santa Claus and Tangerines/main.cpp | 1fbb2d397a42ef6b06f3b613c1a761db1cb50fa5 | [] | no_license | georgerapeanu/c-sources | adff7a268121ae8c314e846726267109ba1c62e6 | af95d3ce726325dcd18b3d94fe99969006b8e138 | refs/heads/master | 2022-12-24T22:57:39.526205 | 2022-12-21T16:05:01 | 2022-12-21T16:05:01 | 144,864,608 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | cpp | main.cpp | #include <iostream>
#include <bits/stdc++.h>
#include <cstdio>
#include <algorithm>
#define LL int
using namespace std;
LL N,K,ma;
LL A[1000005];
int dp[10000005];///cate parti de mandarina de i felii pot obtina care sa aiba cel putin val felii
bool ok(LL val)
{
LL nr=0;
for(LL i=1;i<=ma;i++)
{
dp[i... |
7584f51478827443aca334b8f342e497d23ae62a | 87006e5c8da39e87482fe2ab0c675c1c2a1cea12 | /win/win32/cmd_args.cpp | 37c40d7a01bee6ab04392c5838154440b0fdaf90 | [] | no_license | jelly-lemon/C_Cpp_Study | 85f02dd28b1adc2cdf8bed84fecb88aa64d438c3 | de496675940c5041fc50e5926d9945ff6f55b72a | refs/heads/master | 2023-09-04T18:56:20.530885 | 2021-11-14T03:17:39 | 2021-11-14T03:17:39 | 331,022,316 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,163 | cpp | cmd_args.cpp |
#include <windows.h>
#include <cstdio>
using namespace std;
/**
* 解析命令行参数
*
* lpCmdLine 包含了参数,不过是一个字符串(不包含程序名)
*
* WinMain: LPSTR
* wWinMain:LPWSTR lpCmdLine
*/
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
int argc = 0;
//
// 获取 Unicode 命令行参数... |
51c2ae6d357b6a6c5491072a548aba7700bbfe57 | 2321e819ad6da204371a2f27333ae39e3feccb25 | /src/crypt/QDataEnDe.h | 0abb01e50bc99f10d33dd1d77d7f865dc13d4818 | [] | no_license | fzzn-2020/qui | 09e7b61aecfe652a95447cb377462c479e812d3b | a77170bfb7e1e3e57647c42558fe35eb79988f5b | refs/heads/master | 2022-10-25T00:54:47.742791 | 2020-06-03T15:59:41 | 2020-06-03T16:01:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 272 | h | QDataEnDe.h | #pragma once
// // #include "QUI.h"
#include "QBuffer.h"
class QDataEnDe
{
public:
BOOL SetCodeData(LPCBYTE p,int len);
BOOL SetCodeData( QBuffer& d );
BOOL DecryptData(__inout QBuffer &buf);
BOOL EncryptData(__inout QBuffer &buf);
private:
BYTE m_code[16];
};
|
775884e1f4b0f077e88eb3a005b4cc857e6c4f43 | db20275e9ef80a3f6c47c954092cbfab1e42e2d6 | /Raven.CppClient/GetResponse.h | b58c2b8746b60810104f5efe288af8772fdf8685 | [
"MIT"
] | permissive | maximburyak/ravendb-cpp-client | 2ccb4d95678a1d0640aff2133892f7c8c9830106 | ab284d00bc659e8438c829f1b4a39aa78c31fa88 | refs/heads/master | 2020-04-26T18:10:12.216454 | 2019-02-28T07:44:40 | 2019-02-28T07:44:40 | 173,736,480 | 0 | 0 | MIT | 2019-03-04T11:58:54 | 2019-03-04T11:58:53 | null | UTF-8 | C++ | false | false | 1,255 | h | GetResponse.h | #pragma once
#include "HttpStatus.h"
namespace ravendb::client::impl::utils
{
struct CompareStringsIgnoreCase;
}
namespace ravendb::client::documents::commands::multi_get
{
struct GetResponse
{
std::optional<std::string> result{};
std::map<std::string, std::string, impl::utils::CompareStringsIgnoreCase> header... |
ecbdd02a4a9b3b187fd4f39569ffa62013056a4d | af0ecafb5428bd556d49575da2a72f6f80d3d14b | /CodeJamCrawler/dataset/12_24318_60.cpp | fbdb014b8d02268d07e2b2dce2d94be4aa8ad3f8 | [] | no_license | gbrlas/AVSP | 0a2a08be5661c1b4a2238e875b6cdc88b4ee0997 | e259090bf282694676b2568023745f9ffb6d73fd | refs/heads/master | 2021-06-16T22:25:41.585830 | 2017-06-09T06:32:01 | 2017-06-09T06:32:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 994 | cpp | 12_24318_60.cpp | /*By Zine.Chant*/
#include<algorithm>
#include<iterator>
#include<iostream>
#include<vector>
#include<sstream>
#include<string>
#include<vector>
#include<map>
#include<cstring>
#include<cstdio>
#include<cstdlib>
#include<ctime>
#include<cmath>
using namespace std;
const int maxn=3000001;
int v,a,b,x,y,z,t;
int d[maxn];... |
cd317946c854b457714613f15b7a0238ed5ea798 | 47d1033dff5dafe8df5e8c7e31429c467bca3644 | /src/GlobalData.h | c4e5d8a81c108cc5dbe62650bd3013fbae247c1a | [] | no_license | mmavipc/NoName | a370bc64f1b0b2f567ea2da366c91c5ac54d6b47 | b7f8c5f49be0535425a2d46dcb20853b31e78371 | refs/heads/master | 2016-09-05T20:27:46.723565 | 2011-06-13T02:22:20 | 2011-06-13T02:22:20 | 1,878,619 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 445 | h | GlobalData.h | #ifndef GlobalData_H
#define GlobalData_H
#include "Networking\TCPSocket.h"
#include "Bot\GenericBot.h"
#include <vector>
class GlobalData
{
public:
GlobalData(const std::string &configFile, TCPSocket *tcpsock); //Dummy for now
static GlobalData* GetGlobalData();
const std::string& GetServerName();
TCPSock... |
25a9cd9cf61296058a52a8d47694a861615a12b1 | f03d0e9305dbd45a6fbe4d13ee43cb34bfaf89f7 | /src/shared/renderer/render_context.cpp | 83352a1c8ed8595dab10974728db624b0a0bfece | [] | no_license | TomHaygarth/GOAT-Engine | a6013cafc3112db747452b2a0b844facb7b8555f | 8bdf519bd57f6a82df4c8e5119236a47bdfad60f | refs/heads/master | 2023-04-26T00:20:09.961381 | 2021-05-20T16:58:49 | 2021-05-20T16:58:49 | 198,925,137 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 123 | cpp | render_context.cpp | #include "render_context.hpp"
Renderer::IRenderContext::~IRenderContext()
{
// This page is intentionally left blank
} |
367596c0e79e22dca39fb563d655b17151f0fc01 | c071863a05d23461493a5e5ca021489c8275fd84 | /erts/emulator/asmjit/core/osutils.h | a4691295b204f8e46d78ccd71ebc519a1f65e10e | [
"Apache-2.0",
"Zlib"
] | permissive | spawnfest/eep49ers | 06a8b55a55256d0404e72e62bd2d498e8bccc938 | 2fa5789fe176661ae86283663d3e86b0c991b0ce | refs/heads/eep-49 | 2023-08-01T11:27:26.809499 | 2021-09-19T23:18:39 | 2021-09-19T23:18:39 | 406,154,995 | 14 | 1 | Apache-2.0 | 2021-09-19T22:34:18 | 2021-09-13T23:06:36 | Erlang | UTF-8 | C++ | false | false | 2,597 | h | osutils.h | // AsmJit - Machine code generation for C++
//
// * Official AsmJit Home Page: https://asmjit.com
// * Official Github Repository: https://github.com/asmjit/asmjit
//
// Copyright (c) 2008-2020 The AsmJit Authors
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the... |
f8a220e71bf82de231f4d9c3513299745e37735b | 691c8f2849b72b2a3207631abc482086c833f435 | /tests/adc_test.cpp | 1858b0cce74c1fd0822d27fd01aa1f6aa0f41d93 | [] | no_license | nckswt/FARSHAPE | 205ceaad25df174851be0a56911ce28363eafcca | 3bbb96559cada2af857ffd449b633f530fb75889 | refs/heads/master | 2021-01-10T20:13:17.818687 | 2013-04-04T03:52:23 | 2013-04-04T03:52:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | cpp | adc_test.cpp | #include "../system/ADC_SPI.h"
#include <iostream>
int main() {
ADC_SPI adc(0, 0);
while (1) {
std::cout << "Single value grab: ";
std::cout << adc.getSingle() << std::endl;
sleep(1);
std::cout << "Averaging of " << AVERAGING << ": ";
std::cout << adc.getAverage() << std::endl;
s... |
f79ca1a4630d9b791038592c08a8687972f31098 | 5b741fb3f38acf58bde184508739c4697690a199 | /CarND-Unscented-Kalman-Filter-Project/src/ukf.cpp | 6ea680d2cba1f7b3a1226c8820ebc420c20a8207 | [] | no_license | nav13n/carnd | 296e0820b41edf68c08a2c31905d28431b862197 | 431d6ffc56965874487a10732583e11e4a3d05db | refs/heads/master | 2021-01-13T05:57:55.488591 | 2018-08-02T23:39:57 | 2018-08-02T23:39:57 | 94,936,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,053 | cpp | ukf.cpp | #include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
#define EPS 0.0001
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ign... |
9320cda2f62d250206dacbde72c22eaf676a4337 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/vc6addon/ide/pkgs/dbg/stsfile.cpp | 096d8d42502ed3684adad6f88c1a06ff1b2acce7 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,194 | cpp | stsfile.cpp | // STSFILE.C
// Status file handling
//
//
#include "stdafx.h"
#pragma hdrstop
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
// [CAVIAR #5459 11/27/92 v-natjm]
// RebuildBreakpoint
//
static BOOL NEAR PASCAL RebuildBreakpoint (
PBREAKPOIN... |
987ec928662bb791221f1a4fe4b34bd659985e10 | 1af43c4ba32d78c60f007a4d068136ce575d917f | /system/apps_experiments/95_sht20/DFRobot_SHT20.h | 52ebb672d0ee935f89f31c4a1043dfb826909898 | [
"MIT"
] | permissive | gabonator/LA104 | a4f1cdf2b3e513300d61c50fff091c5717abda9e | 27d0eece7302c479da2cf86e881b6a51a535f93d | refs/heads/master | 2023-08-31T22:09:36.272616 | 2023-08-27T20:08:08 | 2023-08-27T20:08:08 | 155,659,451 | 500 | 69 | MIT | 2023-08-17T08:44:32 | 2018-11-01T03:54:21 | C | UTF-8 | C++ | false | false | 1,735 | h | DFRobot_SHT20.h | #ifndef DFRobot_SHT20_h
#define DFRobot_SHT20_h
#include "platform.h"
#define ERROR_I2C_TIMEOUT 998
#define ERROR_BAD_CRC 999
#define SLAVE_ADDRESS 0x40
#define TRIGGER_TEMP_MEASURE_HOLD 0xE3
#define TRIGGER_HUMD_MEASURE_HOLD ... |
59cb930aecbde9c98c5815de0f5995c35d163670 | d55755141c0e12552562cca50837020e73737ac7 | /source/spring-recruitment/119. Pascal's Triangle II.cpp | 252b5c76a49689d3fc2f332d19622b555deaef7a | [] | no_license | xulzee/LeetCodeProjectCPP | 5452e218b57b5bf28117cab98b163f07bcce7329 | 129bea6296560676eca4fa9b20fe83dc935a3b92 | refs/heads/master | 2020-06-26T00:09:27.612312 | 2020-03-22T09:06:54 | 2020-03-22T09:06:54 | 199,463,509 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | 119. Pascal's Triangle II.cpp | // @Time : 2019/3/30 21:26
// @Author : xulzee
// @Email : xulzee@163.com
// @Software: CLion
#include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
vector<int> getRow(int rowIndex) {
vector<int> res(rowIndex + 1, 1);
for (int i = 1; i <= rowIndex; ++i) {
... |
26ca704ff1e2042c96e115b2b3f0db1e0184aa88 | a4ff0ed0b66ab58d5bc1bfd2bdd17a4cd8cadbe3 | /Langranges4squareMethod.c++ | 8b8d1c13be0f1d507b07db1835c80917512c5f47 | [] | no_license | rajatsvits/AlgorithmsImplementation | 2783139fe2138549cc6ba4a7f76882ad6deac829 | b90c7a078d5aba4be7a601f067e0ea3b2e365566 | refs/heads/master | 2021-09-06T21:25:34.990014 | 2018-02-11T18:16:28 | 2018-02-11T18:16:28 | 112,160,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,856 | Langranges4squareMethod.c++ | /*package whatever //do not write package name here
Adrien-Marie Legendre completed the theorem in 1797–8 with his three-square theorem, by proving that a positive integer can
be expressed as the sum of three squares if and only if it is not of the form {\displaystyle 4^{k}(8m+7)} 4^{k}(8m+7)
for integers {\displaysty... | |
dd6e8b02686688ade5851157fc4ba67092a2a0a1 | 4110496fb8b6cf7fbdabf9682f07255b6dab53f3 | /String/1576. Replace All to Avoid Consecutive Repeating Characters.cpp | 926c4bcbf5f1c78608c0b1806a93695d009b314f | [] | no_license | louisfghbvc/Leetcode | 4cbfd0c8ad5513f60242759d04a067f198351805 | 1772036510638ae85b2d5a1a9e0a8c25725f03bd | refs/heads/master | 2023-08-22T19:20:30.466651 | 2023-08-13T14:34:58 | 2023-08-13T14:34:58 | 227,853,839 | 4 | 0 | null | 2020-11-20T14:02:18 | 2019-12-13T14:09:25 | C++ | UTF-8 | C++ | false | false | 477 | cpp | 1576. Replace All to Avoid Consecutive Repeating Characters.cpp | // O(N). Simulate. just make no repeat char.
class Solution {
public:
string modifyString(string s) {
for(int i = 0; i < s.size(); ++i){
if(s[i] != '?') continue;
char l = '?', r = '?';
if(i) l = s[i-1];
if(i+1 < s.size()) r = s[i+1];
for(int k = ... |
1c7955ef243218937426bf1e76fc5728ffdd2d87 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/arithmetic/include/functions/simd/fast_hypot.hpp | 0cf60f13cfb68477fa34edc733323b14a229e1b9 | [] | 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 | 266 | hpp | fast_hypot.hpp | #ifndef NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SIMD_FAST_HYPOT_HPP_INCLUDED
#define NT2_ARITHMETIC_INCLUDE_FUNCTIONS_SIMD_FAST_HYPOT_HPP_INCLUDED
#include <nt2/arithmetic/functions/fast_hypot.hpp>
#include <boost/simd/arithmetic/functions/generic/fast_hypot.hpp>
#endif
|
d4b6d53a7d5b16330134f4012a906d0ee32a6c0d | 9019188667d35cca4b7a48be48eb2d9e83a31b0d | /Code/Cryptography/XORCipher.cpp | 2a7476adf076a2043fe4cd29e56782b6786cf20c | [
"MIT"
] | permissive | BambooFlower/Math-Scripts | d7ba7daab429eedb7fab833fee2c93e7c2841f61 | fbe0a672c69f5b120125d72c558bf18b5e973a1b | refs/heads/master | 2022-04-30T17:44:10.488485 | 2022-04-23T10:19:52 | 2022-04-23T10:19:52 | 246,305,495 | 4 | 3 | MIT | 2020-10-21T17:35:32 | 2020-03-10T13:16:27 | MATLAB | UTF-8 | C++ | false | false | 810 | cpp | XORCipher.cpp | // Simple cipher that XORs the plaintext with a key
/* Usage: crypto key input_file output_file */
void main (int argc, char *argv[])
{
FILE *fi, *fo;
char *cp;
int c;
if ((cp = argv[1]) && *cp!='\0') {
if ((fi = fopen(argv[2], “rb”)) != NULL) { ... |
054c0b72d0a67da392a064408dbf0182f92bcf14 | 88a39e7a97abd90faa04ebf11de2d7eb53e06a10 | /uva/10783.cpp | 9a4ed555f688e617c0a11ea16a7d65ce53899feb | [] | no_license | leonnardo/icpc | a835661410b93a0d472fd4389517fe5c560dca4c | a0d718e31be458c0923fec5472c86b01bdbf032e | refs/heads/master | 2021-01-15T12:26:32.058008 | 2013-06-28T20:23:28 | 2013-06-28T20:23:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | 10783.cpp | #include <cstdio>
int main() {
int a,b,t,soma,i,caso,n;
scanf("%d", &t);
caso = 1;
while (t--) {
scanf("%d", &a);
scanf("%d", &b);
if (a%2 == 0)
a++;
if (b%2 == 0)
b--;
n = ((b-a)/2)+1;
soma = (a+b)*n/2;
printf("Case %d: %d\n", caso, soma);
caso++;
}
return 0;
}
|
bab9fd52b50413b861d75b3e368f46c02bb6f642 | 0328d5d07344c7269699ea12ec0aa402798015e1 | /Cluster20150816/Cluster/NELbfgs.cpp | 07641b392742e3512364344776395d8c89667712 | [] | no_license | NelabCluster/Cluster-DE | 4821233cc341e11249453409c118ba3e6b2fe3d3 | 8295fa6a11350c19d20e28b18e94703d1ab7fb1c | refs/heads/master | 2021-01-18T22:02:03.447158 | 2016-06-12T11:31:57 | 2016-06-12T11:31:57 | 47,805,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,477 | cpp | NELbfgs.cpp | #include "NELbfgs.h"
#include "PE_Tool.h"
#include "Tool.h"
static lbfgsfloatval_t evaluate(
void *instance,
const lbfgsfloatval_t *x,
lbfgsfloatval_t *g,
const int n,
const lbfgsfloatval_t step
)
{
int i;
lbfgsfloatval_t fx = 0.0;
int N = n /3;
double *cood = (double *)malloc(n * sizeof(double));
for (i =... |
0c7882e12066db7bd5657f6ec722fee7a7adccbe | 1b2eae8cae0c85c0657aa00d2e13f6fb0e93d0e0 | /LinkStack/test.cpp | beb1b8c31f7ff63761ea6d464ba1a402cf1a46ba | [] | no_license | Beautyzizi/myc- | d76942af92b7cb29799dab98a643615917f16993 | 58e620091e4b2885218148b07478b4e66ea60873 | refs/heads/master | 2021-09-14T07:57:40.966913 | 2018-05-10T08:56:10 | 2018-05-10T08:56:10 | 107,508,643 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | cpp | test.cpp | #include<iostream>
#include<string>
#include"LinkStack.h"
using namespcae std;
int main()
{
LinkStack<string> lin;
lin.push("i'am");
lin.push(" ");
lin.push("cool");
cout << "栈顶元素" << lin.top()<<endl;
cout << "栈的大小" << lin.size()<<endl;
while(!lin.isEmpty())
{
lin.pop();
}
cout << "栈的大小" << lin.size() << en... |
05fa42c7c19a43c8982b0ada954eef1fdb5e340d | 2b60d3054c6c1ee01f5628b7745ef51f5cd3f07a | /Gemotry/AdaptDynamicMeshes/ADM/surfaces/parametric.h | efd266e6b029ee6b0408e675a4844bf9c94c6dfe | [] | no_license | LUOFQ5/NumericalProjectsCollections | 01aa40e61747d0a38e9b3a3e05d8e6857f0e9b89 | 6e177a07d9f76b11beb0974c7b720cd9c521b47e | refs/heads/master | 2023-08-17T09:28:45.415221 | 2021-10-04T15:32:48 | 2021-10-04T15:32:48 | 414,977,957 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,913 | h | parametric.h | #ifndef _PARAMETRIC_SURF_
#define _PARAMETRIC_SURF_ 1
#include <adm.h>
class ParametricSurf : public ADM::Oracle
{
protected:
ADM::Matrix Jac, Wein, EigVec;
ADM::Array EigVal;
public:
ParametricSurf()
: Jac(3,2), Wein(2,2), EigVec(2,2), EigVal(2)
{ }
virtual ~ParametricSurf() { }
/*------... |
b16aad8c931e391d90bdb19a525b2ceeb330eb7c | 7d023c350e2b05c96428d7f5e018a74acecfe1d2 | /my_auv2000_ros/devel/include/utils/altimeter_stamped.h | a92d438cfb52b9f645841d81f17a970500ad1e01 | [] | no_license | thanhhaibk96/VIAM_AUV2000_ROS | 8cbf867e170212e1f1559aa38c36f22d6f5237ad | fe797304fe9283eaf95fe4fa4aaabb1fe1097c92 | refs/heads/main | 2023-06-06T14:15:39.519361 | 2021-06-19T06:01:19 | 2021-06-19T06:01:19 | 376,807,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,465 | h | altimeter_stamped.h | // Generated by gencpp from file utils/altimeter_stamped.msg
// DO NOT EDIT!
#ifndef UTILS_MESSAGE_ALTIMETER_STAMPED_H
#define UTILS_MESSAGE_ALTIMETER_STAMPED_H
#include <string>
#include <vector>
#include <map>
#include <ros/types.h>
#include <ros/serialization.h>
#include <ros/builtin_message_traits.h>
#include ... |
35d2245b33996aae53db5066d4ce1478a6e4c0fe | 2cf73a50d11af8104e979bb9a2180f482ac5af8b | /bai8task4.cpp | eea25e169dd9e2751fa7a0dbc6f3645a54532e43 | [] | no_license | phamvannam191199/task4 | 2efa696b85b7bcf08ea1503aba404a3b326bcead | 13daece2b914b907dcd7869c49382b3cad1908c0 | refs/heads/main | 2023-04-14T17:09:11.004818 | 2021-04-22T11:56:20 | 2021-04-22T11:56:20 | 360,501,889 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | bai8task4.cpp | #include<stdio.h>
int main(){
printf("/*=========kich thuoc cua cac kieu du lieu=======*\n");
printf("kieu int : 4 byet\n");
printf("so nguyen :15\n");
printf("kieu float : 4 byet \n");
printf("so thuc kieu float : 3.456000\n");
printf("kieu double : 8 byet \n");
printf("so thuc kieu double ... |
464e571684c7f25107bdd8efd28102875b139c66 | cd9e6b3d7de4080f03fef3a543bcbb251b6f1c99 | /tp2/ast/astArrayElementValue.cpp | 2ca598ae332bfadf7d6873ee88f3b4ca6f331d7c | [] | no_license | DanielaSimoes/Compilers-LFA | c072d3dd6e8df4f93d43b43653e21211f96ab813 | ba8303278fc6dee3351095419bf999e52ed991ca | refs/heads/master | 2021-01-17T16:04:02.931342 | 2016-06-28T22:57:30 | 2016-06-28T22:57:30 | 62,659,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 958 | cpp | astArrayElementValue.cpp | #include "astArrayElementValue.h"
#include <stdint.h>
#include <stdio.h>
////////////////////////////////////////////////////
void ASTArrayElementValue::show(uint32_t indent)
{
fprintf(stdout, ";%*s ASTArrayElementValue\n", 4*indent, "");
}
void ASTArrayElementValue::generateLSM(FILE* fout)
{
fprintf(fout, ... |
75843b3e322ecf2f3d725735f7d3e97dfbd4df8b | ca18adcd3a4b75f34316a4f0b417158ea5ce91be | /round1review/309. Best Time to Buy and Sell Stock with Cooldown.cpp | 81630d7d5fc05a41f271979589e57aa45c99debd | [] | no_license | lzhpku/leetcode | 0abcd655dfd0bbd17300f8efe76167bdf76cee5e | 6b3b0a429f6d0661fb65cc9f78ec34407a2e2037 | refs/heads/master | 2021-01-19T03:31:36.473193 | 2016-10-28T15:42:28 | 2016-10-28T15:42:28 | 65,123,502 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cpp | 309. Best Time to Buy and Sell Stock with Cooldown.cpp | class Solution {
public:
int maxProfit(vector<int>& prices) {
int sold = 0, cool = 0, hold = -0x7fffffff;
for(int i = 0; i < prices.size(); i ++) {
int presold = sold;
sold = hold + prices[i];
hold = max(hold, cool - prices[i]);
cool = max(pre... |
5b0ec4e17e7de356eafc277fb771cbd9ff791269 | fbbab7857b52b54e6df14ddae84e8a1d4229c19f | /rotate_array.cpp | 5f7a9b5ffc0f0854f0b33569a1109e0fa98f573f | [] | no_license | mansigarg-nith/Array-DataStructures | b6e5f32b089e5ef733db81e0bb1342e177009686 | f719f8b04379cf59f154b4610977180a8aedacae | refs/heads/main | 2023-02-15T09:59:43.492175 | 2021-01-12T13:25:08 | 2021-01-12T13:25:08 | 328,993,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,272 | cpp | rotate_array.cpp | #include <iostream>
using namespace std;
void left(int arr[], int n){
int x;
cout<<"Enter the no. of elements by which array is to be rotated: ";
cin>>x;
int temp[x];
for(int i=0; i<x; i++){
temp[i] = arr[i];
}
for(int j=0; j<x; j++){
for(int i=0; i<n; i++){
arr[i] = arr[i+1];
}
}
for(in... |
ac1b614ae0b92dc248839933c5072b6dcfde3e3e | 536ba9f25d2b6b87dae8d05b3bcdf614b848232c | /UI/Widgets/Attachments/attachment.cpp | 9ec1d54203ae300d691c59f65297fc0ce7912071 | [] | no_license | Shilza/QTsatTCPClient | fcfdef0117ac5a0e979303029f00370793cd600a | df8462a27e4940469e687a033b18488ce5b69376 | refs/heads/master | 2021-09-07T06:03:36.144907 | 2018-02-18T11:40:32 | 2018-02-18T11:40:32 | 115,352,832 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 836 | cpp | attachment.cpp | #include "attachment.h"
Attachment::Attachment(QWidget *parent) : QWidget(parent){
mainFrame = new QPushButton;
mainFrame->setCursor(Qt::PointingHandCursor);
connect(mainFrame, SIGNAL(released()), SLOT(open()));
connect(&(FTPClient::getInstance()), SIGNAL(getting(QByteArray)), SLOT(fill(QByteArray)));
... |
a116508bd618140fff6dff40b919e7ea6d670e69 | abd55b2805cd3930cf00e96beae28e69c2bf2f86 | /source/adios2/toolkit/format/dataman/DataManSerializer.h | e2092d2d76bfd6a2a5e69bb0bf3683ad918e934f | [
"Apache-2.0"
] | permissive | fbudin69500/ADIOS2 | 2789226d9ab798860778fb5a590955b20b985d59 | 2c6dfa753b7ab59615a9bd1e2ab1b6bad19f909c | refs/heads/master | 2020-03-18T04:40:40.005617 | 2019-01-15T04:02:42 | 2019-01-15T04:02:42 | 134,300,059 | 0 | 0 | null | 2018-05-21T17:08:38 | 2018-05-21T17:08:37 | null | UTF-8 | C++ | false | false | 2,909 | h | DataManSerializer.h | /*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* DataManSerializer.h Serializer class for DataMan streaming format
*
* Created on: May 11, 2018
* Author: Jason Wang
*/
#ifndef ADIOS2_TOOLKIT_FORMAT_DATAMAN_DATAMANSERIALIZER_H_
#d... |
2b837e620d17afa229841ff419a2bfe925326013 | 00c3d76394707da69cb24c1aaea0fe6f726a9b8b | /NUTS/ROMDiskDirectory.h | e923b7fd4a60e9e772de8e390ed49c563b009d0c | [] | no_license | RebeccaPhu/NUTS | 73de317e35a43775aa0ab3cbff3e09f4379e84b8 | b571d1ac8225cae7faa9d036a33838886cee7f90 | refs/heads/master | 2023-03-08T02:08:45.290139 | 2023-02-10T22:53:19 | 2023-02-10T22:53:19 | 256,739,354 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | h | ROMDiskDirectory.h | #pragma once
#include "Directory.h"
#include "NUTSConstants.h"
#include "TempFile.h"
#include "FOP.h"
#define ROMDiskFSType L"ROMDisk_Extraneous"
class ROMDiskDirectory :
public Directory
{
public:
ROMDiskDirectory( DataSource *pDataSource ) : Directory( pDataSource )
{
DirectoryID = 0;
}
~ROMDiskDirectory(v... |
1086404cf194cc60f4e83aa443dfdf7737cd0d16 | 910d634de833e81bdbd6269be1950f36b75b765d | /Tile2D/Physics/TileSet.cpp | c6743f9f825d484eb2dcc620a849ab1202435140 | [
"MIT"
] | permissive | mipelius/tile2d | ccc2c3adb4fd3375797babfd3e3ba9090967e805 | 7cbc62d6b47afdea11a7775d25f9e91c900cc627 | refs/heads/master | 2021-09-20T18:34:50.480325 | 2018-07-26T22:16:07 | 2018-07-26T22:16:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,576 | cpp | TileSet.cpp | // MIT License
//
// This file is part of SpaceGame.
// Copyright (c) 2014-2018 Miika Pelkonen
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without lim... |
ac0cd233c8fc73b5b34bc3671442e542a579f3d2 | 0bad107153966793c10523f9ea0c4e6536ed86dc | /chapter05/519.cpp | 28ea536cf37c45aca94770cadeee7d68a0e025a4 | [] | no_license | HersonaREAL/my_cpp_primer_code | 489b50a20be929ef702afa1a19f9401f31530b9d | 87265a26ece711ae42c45ef92868597c561b7331 | refs/heads/master | 2023-03-16T13:26:52.418336 | 2021-03-11T07:46:54 | 2021-03-11T07:46:54 | 318,469,858 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | cpp | 519.cpp | #include<iostream>
#include<vector>
#include<cctype>
using std::cin;
using std::cout;
using std::endl;
using std::string;
using std::vector;
int main(){
string rsp;
do{
string str1,str2;
cout<<"input first string:";
cin>>str1;
cout<<"input second string:";
cin>>str2;
cout<<"The shorter string is : "<<(s... |
1522f415b2a1c6f582449ec029af7d226bf340b7 | 7b025df774510c8da329f2c9a32af01d4534b36d | /src/logger_dummy.cpp | e11949c9ca9fe999f5efebf264d4f4fef4751e98 | [] | no_license | zhou0/torchat | 93c751ed51333ccb73f598a744c6ab0fdffa1c9d | 2531eccd7d1fc28b88b33d4e386b9bcc3a463783 | refs/heads/master | 2021-06-25T00:40:26.504710 | 2017-05-02T23:27:45 | 2017-05-02T23:27:45 | 105,850,559 | 1 | 1 | null | 2017-10-05T04:50:11 | 2017-10-05T04:50:11 | null | UTF-8 | C++ | false | false | 837 | cpp | logger_dummy.cpp | #define LOGURU_IMPLEMENTATION 1
#include "include/loguru.hpp"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <pthread.h>
#include <string.h>
#include <stdlib.h>
static pthread_mutex_t *sem = NULL; // mutex to initialize when the log files are used outside of loguru
// eg: when pars... |
15eb3d4c818a0b26cb393aec70742184ccbe102c | 9939aab9b0bd1dcf8f37d4ec315ded474076b322 | /components/containers/partitioned_vector/include/hpx/components/containers/partitioned_vector/partitioned_vector_decl.hpp | 0e9afacaa09f7ff968080d852dca46f61e8c817f | [
"BSL-1.0",
"LicenseRef-scancode-free-unknown"
] | permissive | STEllAR-GROUP/hpx | 1068d7c3c4a941c74d9c548d217fb82702053379 | c435525b4631c5028a9cb085fc0d27012adaab8c | refs/heads/master | 2023-08-30T00:46:26.910504 | 2023-08-29T14:59:39 | 2023-08-29T14:59:39 | 4,455,628 | 2,244 | 500 | BSL-1.0 | 2023-09-14T13:54:12 | 2012-05-26T15:02:39 | C++ | UTF-8 | C++ | false | false | 50,154 | hpp | partitioned_vector_decl.hpp | // Copyright (c) 2014 Anuj R. Sharma
// Copyright (c) 2014-2022 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
/// \file hpx/components/partitioned_vector... |
13fa3b7e834bab35b72b7e48df8314fb320d3de5 | beede1d5be2e49f4656251d8020c1ff7452b9c92 | /store/store.cc | 022996f43a941592ca955150cda053d8e5f26e0d | [] | no_license | kryzthov/gooz | 62e47026346e690086076a148bce1eec86ebb663 | 318cf7a8c3b878233a58777c16115627d2956b63 | refs/heads/master | 2020-05-17T17:51:23.069850 | 2017-12-06T07:23:39 | 2017-12-06T07:23:39 | 37,021,627 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,251 | cc | store.cc | #include "store/store.h"
#include <glog/logging.h>
#include "store/values.h"
namespace store {
HeapStore::HeapStore()
: nallocs_(0),
size_(0) {
}
HeapStore::~HeapStore() {
}
// virtual
void* HeapStore::Alloc(uint64 size) {
nallocs_++;
size_ += size;
return new char[size];
}
HeapStore* const kHeap... |
7d0ef8586711905b925316ba46e02ad08b03daba | a239184157a518bf68c7f4c99ce835bbafafe77d | /MediaPlayer/RingBuffer.cpp | 1df1884cf58890304bb612e19a643e9903bb1631 | [] | no_license | xc724655471/MediaPlayer | 6f320ee0112b0a98f3b4fabdfe77667f05dd01db | 13f0f518fd4e9e0ecb763ca1b23bf12bbd1ab249 | refs/heads/master | 2020-03-25T16:57:20.800532 | 2018-08-31T09:41:26 | 2018-08-31T09:41:26 | 143,955,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,812 | cpp | RingBuffer.cpp | #include "stdafx.h"
#include "RingBuffer.h"
#define MAX_RING_BUFFER_SIZE (2*1024*1000)
#define MIN_RING_BUFFER_SIZE (128*1000)
#define DEFAULT_RING_BUFFER_SIZE (512*1000)
RingBuffer::RingBuffer()
{
m_iWidx = 0;
m_iRIdx = 0;
m_uBufferSize = DEFAULT_RING_BUFFER_SIZE;
m_pBuffer = new char[m_uBufferSize];
m_bOutside... |
eea0d8cbefe18296965e3dabfc5399f0da3126e7 | 71c53955083e9cc22e2c46a18f15aae33acf79ae | /5_taskcode/mainwindow.h | b0f0308b32b9e3c93a21db93ea42c0cd8b2f5cf9 | [] | no_license | vlad23345/5-task | ce7b3628c41cca6b948fa1efcbcbd7944bfbdb67 | 0d383dfa7a23be43f62c1e9736b308a2881d8000 | refs/heads/master | 2022-08-30T07:25:49.279637 | 2020-06-01T08:36:30 | 2020-06-01T08:36:30 | 268,464,159 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 611 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QThread>
#include <QVector>
#include <QTableWidget>
#include <QProgressBar>
#include <QHeaderView>
#include "longprocess.h"
namespace Ui {
class MainWindow;
}
typedef QPair<QThread *,LongProcess *> TPair;
class MainWindow : public QMainWindow
... |
88ff47c595f7f384d6de4bbac413f480d081e68a | 0c87a04068a61a5f68e9139a31ff9250e4f68fb2 | /Timer.h | 487b13a94e458aaa3d94303d578952ecf9fc31e0 | [] | no_license | Iqbal-1013/lib | 88151dfd2e5937ac3d56ddb58875cc314b6496fb | a48d43753a2fb5c595ccd971e4efc0f80048cb28 | refs/heads/master | 2020-03-11T19:27:33.243586 | 2018-04-19T11:53:23 | 2018-04-19T11:53:23 | 130,208,148 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | Timer.h | #ifndef Timer_h
#define Timer_h
namespace Timer
{
unsigned long start = 0;
void Start()
{
start = millis();
}
void Start(unsigned long &start)
{
start = millis();
}
unsigned long Duration()
{
return millis() - start;
}
unsigned long Duration(unsigned long &start)
{
return millis() - start;
... |
6fdbccf66f4b6e17c509e850da6ba2ae2555702d | d043fed5f640de4057aecf9dfeeed0ec34e69582 | /include/node.h | e7bf38fdc9aed3e308f4919087afb6366f1b1973 | [] | no_license | cristina-gcm/binary-search-tree | 08df388127f6d901bea86cd9202b38f0f1d09691 | 3d0caf749449b9af3da598642632cb73c625b47b | refs/heads/master | 2021-04-24T06:40:34.182206 | 2020-03-25T21:31:18 | 2020-03-25T21:31:18 | 250,094,825 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 155 | h | node.h | #ifndef NODE_H
#define NODE_H
class node
{
int info;
node *st, *dr;
public
node();
node(int info);
~node();
};
#endif // NODE_H
|
375a2e02bd045dbc99149a7a3066937c6f260eda | aa0917a80f2164d4b8a13a73e3a9926fe05ecb5b | /include/poisson2d.hpp | b066c9e6ead30f1788fdc9d3482919afab40591c | [
"BSD-3-Clause"
] | permissive | jasondegraw/skyline | 5ba43405708664e5b529825d61f533f1c8756a3e | e706c86550929b2aab6e6f758682b72f9a476ce4 | refs/heads/master | 2020-06-16T01:12:16.622530 | 2019-08-26T00:16:22 | 2019-08-26T00:16:22 | 195,441,326 | 0 | 0 | BSD-3-Clause | 2019-07-05T16:46:00 | 2019-07-05T16:46:00 | null | UTF-8 | C++ | false | false | 19,477 | hpp | poisson2d.hpp | // Copyright (c) 2019, Alliance for Sustainable Energy, LLC
// Copyright (c) 2019, Jason W. DeGraw
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must ... |
20721ccec6c0d618cfabe06b4d2e191f5403e073 | e89c3fdb417976fc813da96510bba8da42235c71 | /editor/paintItems/shapes/triangleitem.cpp | c011656d61bf4a4ea3ebd7b052673483cff462f0 | [] | no_license | sm-jalali-f/jetprint | ec02f796d9445b497b424f01af739438146005eb | fb8c5fc669ae3ab5b6b787207ebcdf2a7567a7f4 | refs/heads/master | 2021-01-09T05:28:54.478245 | 2017-03-18T08:11:51 | 2017-03-18T08:11:51 | 80,773,364 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,489 | cpp | triangleitem.cpp | #include "triangleitem.h"
TriangleItem::TriangleItem(QWidget *parent, QPointF position1, QPointF position2, QPointF position3)
:DrawItem()
{
this->parent = parent;
this->position1 =position1;
this->position2 =position2;
this->position3 =position3;
this->itemType = SHAPE_TRIANGLE;
}... |
b6c45a3b5611519627612085a9c014836a123e0c | e6b96681b393ae335f2f7aa8db84acc65a3e6c8d | /atcoder.jp/agc010/agc010_c/Main.cpp | f04dadfa0f1717a24cd08d96ffdd89222de0551a | [] | no_license | okuraofvegetable/AtCoder | a2e92f5126d5593d01c2c4d471b1a2c08b5d3a0d | dd535c3c1139ce311503e69938611f1d7311046d | refs/heads/master | 2022-02-21T15:19:26.172528 | 2021-03-27T04:04:55 | 2021-03-27T04:04:55 | 249,614,943 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,793 | cpp | Main.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef pair<int,int> P;
#define pb push_back
#define mp make_pair
#define eps 1e-9
#define INF 2000000000
#define LLINF 1000000000000000ll
#define sz(x) ((int)(x).size())
#define fi first
#define sec seco... |
e931a85ce5b1869ecd3ac43092a21af11f2a861c | 478570cde911b8e8e39046de62d3b5966b850384 | /apicompatanamdw/bcdrivers/os/ossrv/stdlibs/apps/libc/testoffsetof/inc/toffsetof.h | 98979b280ed6a4e443701b94ab69535b57e757b0 | [] | no_license | SymbianSource/oss.FCL.sftools.ana.compatanamdw | a6a8abf9ef7ad71021d43b7f2b2076b504d4445e | 1169475bbf82ebb763de36686d144336fcf9d93b | refs/heads/master | 2020-12-24T12:29:44.646072 | 2010-11-11T14:03:20 | 2010-11-11T14:03:20 | 72,994,432 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 940 | h | toffsetof.h | /*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl... |
9505f5358a743f877f86af168b5ffb6bc351c63b | 9f5dd76fe21a66f90700f83840f2491dd34b17f9 | /third_party/mlir/test/lib/Transforms/TestCallGraph.cpp | debf5e77645555b5e328b204fec2ba156b1ba77f | [
"Apache-2.0"
] | permissive | thuanvh/tensorflow | b328964da68744bbd77799b13729835dcf4dbf79 | a599e0e2fc5a0e7964ad25c2f5c7e6ed5b679dc6 | refs/heads/master | 2021-07-20T13:55:40.451003 | 2019-12-03T06:34:09 | 2019-12-03T06:34:09 | 119,012,773 | 3 | 1 | Apache-2.0 | 2019-12-03T06:42:38 | 2018-01-26T06:05:36 | C++ | UTF-8 | C++ | false | false | 1,422 | cpp | TestCallGraph.cpp | //===- TestCallGraph.cpp - Test callgraph construction and iteration ------===//
//
// Copyright 2019 The MLIR Authors.
//
// 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.... |
2782527c7634908bc690e696fef6b9a79b9200b7 | 1487d7451af7de570b3b1d2c4b56040fc11e8ba3 | /app/src/main/cpp/player/CPlayer.h | 1ea098ff36dc60dfdeb3568373a5aa9acf5d5d8f | [] | no_license | BlueLucky/NdkPlayer | d39c5dcea06a9d3c878b137a2580a113bc671dac | cf83d75ea7f5a4a7ca8c3c8d8408356354126d30 | refs/heads/master | 2023-05-04T12:07:41.101809 | 2021-05-31T10:21:00 | 2021-05-31T10:21:00 | 368,521,415 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | h | CPlayer.h | #ifndef NDKPLAYER_CPLAYER_H
#define NDKPLAYER_CPLAYER_H
#include <cstring>
#include <pthread.h>
#include "../channel/AudioChannel.h"
#include "../channel/VideoChannel.h"
#include "../callback/JNICallbackHelper.h"
#include <android/log.h>
#define TAG "Lucky_log"
// ... 我都不知道传入什么 借助JNI里面的宏来自动帮我填充
#define LOGD(...) __... |
3bd0fe14738a120120c7a9f359d29bfb178ff84d | 227c9efed80c3279526696ddaeaaee552de6a691 | /src/accumulate_cpu.cpp | 52ac14af65ff50a638dd66149b33650eba1708c5 | [] | no_license | ajis01/vvision-kernels | 7090b3b882bef5b638790fdff6dfa611e18db31d | e9e43ebc8ac4911b98fc856f49a6c81c4049b6ea | refs/heads/main | 2023-04-01T02:06:21.605303 | 2021-04-12T08:30:37 | 2021-04-12T08:30:37 | 339,648,972 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | cpp | accumulate_cpu.cpp | #include "cpu_kernels.h"
namespace cpu {
//accumalate src into dest with mask
int accumulate(float const* src, int srcRows, int srcCols, int srcStep, int srcChannels,
float* dest, int destRows, int destCols, int destStep, int destChannels){
assert(srcRows == destRows && srcCols ==... |
b027ffcf3bafb1d894931601906266ed682dc8ee | 1786f51414ac5919b4a80c7858e11f7eb12cb1a9 | /USST/2019夏集训/day3/I.cpp | c956ea7cf45838e418ba56a1c506863816ea86d0 | [] | no_license | SetsunaChyan/OI_source_code | 206c4d7a0d2587a4d09beeeb185765bca0948f27 | bb484131e02467cdccd6456ea1ecb17a72f6e3f6 | refs/heads/master | 2020-04-06T21:42:44.429553 | 2019-12-02T09:18:54 | 2019-12-02T09:18:54 | 157,811,588 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,143 | cpp | I.cpp | #include <bits/stdc++.h>
using namespace std;
int par[10005],val[10005][20],lg[10005],dep[10005],fa[10005][20],m,n,q,tot=0,vis[10005];
struct edge
{
int x,y,z;
}e1[50005];
vector<int> e[10005],v[10005];
int _find(int x){return x==par[x]?x:par[x]=_find(par[x]);}
bool cmp(edge a,edge b){return a.z>b.z;}
void dfs(i... |
d59187b48e2925df9be5332daf8f5a151bf6330d | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /media/formats/dts/dts_stream_parser.cc | 108de4dc5fad3d45eb56f68af4689f3d9b62277d | [
"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 | 2,927 | cc | dts_stream_parser.cc | // Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/formats/dts/dts_stream_parser.h"
#include <stddef.h>
#include "build/build_config.h"
#include "media/base/media_log.h"
namespace media {
DTSStreamParser::DT... |
f8768f2d2c402867379e2f80096167891a3e7086 | 55405bda5a9063b53f643d46bf520433e1d647d8 | /AddressBook/TableViewCustom.hpp | a916fd9ccbe02921d13959419af2053891282318 | [] | no_license | InvictusInnovations/keyhotee | c6f41e8c7856e54feeb3ba6b3b950174813a8d0e | cb4d1402559e645fb843affd221079f979c807d6 | refs/heads/master | 2021-01-23T03:44:20.215606 | 2014-09-05T08:44:12 | 2014-09-05T08:44:12 | 13,315,798 | 8 | 6 | null | 2014-03-13T16:33:17 | 2013-10-04T03:41:43 | C | UTF-8 | C++ | false | false | 461 | hpp | TableViewCustom.hpp | #pragma once
#include <QTableView>
class IModificationsChecker;
class TableViewCustom : public QTableView
{
Q_OBJECT
public:
explicit TableViewCustom(QWidget *parent = nullptr);
virtual ~TableViewCustom();
void setModificationsChecker (IModificationsChecker*);
protected:
virtual bool viewportEvent(QEvent... |
1a2aae74e9a5d1a3e8d69fd702bc72d9108dbb3c | 96583bbe1987f76286d781ed612e641451e08741 | /Delta_Firmware/WifiSettings.h | 0dcf2d84a629dc812d09c73347aae9b332126aee | [] | no_license | VanThanBK/deltax_opensource_old | b3ceac05f65dfb0b003e03e0c3cf7f0798127c56 | 48fdcb0104b27dae6c92fbb993732fa8efce9a5f | refs/heads/master | 2023-03-27T15:50:28.124724 | 2021-02-26T04:33:22 | 2021-02-26T04:33:22 | 342,460,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | h | WifiSettings.h | // WifiSettings.h
#ifndef _WIFISETTINGS_h
#define _WIFISETTINGS_h
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
#include <EEPROM.h>
#include "config.h"
class WifiSettingsClass
{
protected:
public:
void init();
void Save();
void SaveIP();
void IP();
void Ge... |
de453ae7170a50c02ba30877e7e38ef4c6db0c1e | 0da0d68390d4c82632259e1775d5ff70d00bbd0e | /modules/le_tessellator/le_tessellator.h | 86930feaaecd554f4f1d9f2413243e78bace3736 | [
"MIT"
] | permissive | tgfrerer/island | 1974c1c574d3037fe3364e6a10633f97395a0b9b | a2f91d050b49a3f2a0ae5ce4c8cdc21e6f8d8fd3 | refs/heads/wip | 2023-08-29T22:26:24.367135 | 2023-08-09T15:37:36 | 2023-08-09T15:37:36 | 150,248,562 | 844 | 35 | MIT | 2023-08-01T19:28:37 | 2018-09-25T10:36:37 | C++ | UTF-8 | C++ | false | false | 2,948 | h | le_tessellator.h | #ifndef GUARD_le_tessellator_H
#define GUARD_le_tessellator_H
#include "le_core.h"
#ifdef __cplusplus
# include <glm/fwd.hpp>
#endif
struct le_tessellator_o;
// clang-format off
struct le_tessellator_api {
typedef uint16_t IndexType;
struct le_tessellator_interface_t {
static constexpr auto OptionsWindingsOf... |
57fa97c13bb21d451e8548ec1f59b8509545b62d | e2181e9439866cbf1455fdff66e4e27879eb034e | /src_my/utils/log.hpp | dd346deed579c804ca37b4f3857a76bf0da75843 | [] | no_license | lineCode/game_server-1 | 3fb841d3a4973d47e9c2692bbf9b1e440c499e5d | d9178ee8a0a504e5873bee3616d323056c9c9764 | refs/heads/master | 2020-05-19T08:01:02.835874 | 2019-05-03T11:10:57 | 2019-05-03T11:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | hpp | log.hpp | #pragma once
#define BOOST_LOG_DYN_LINK 1
#include "proto/config_options.pb.h"
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks/text_file_backend.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attri... |
1c0e9fcb61af199a472c00a724948fb8e9b6a01a | e1de41ce287bbd0181b92f4746290233c4bb7755 | /client/Classes/View/GalleryLayer.cpp | e90a4da8d57b4f857df3679e253fcf5880e66deb | [] | no_license | yf0994/game-DarkWar | c7572cb80eced4356a0faadbd1a4b97d1b90f2ce | ba39e4b57c381e9a4e969b2ed58990bc1cfd94a9 | refs/heads/master | 2021-05-29T15:47:01.214082 | 2015-08-29T03:28:06 | 2015-08-29T03:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,728 | cpp | GalleryLayer.cpp | #include "GalleryLayer.h"
using namespace cocos2d;
using namespace cocos2d::extension;
CCPoint distance = ccp(10,0);
GalleryLayer::GalleryLayer()
{
mCallBack = NULL;
mDataSet = NULL;
itemArray = CCArray::createWithCapacity(5);
itemArray->retain();
mCurrentPageIndex = 0;
mPageNum = 0;
pageWidth = 0;
touch... |
547c4feb700c57d4ad8de8cbe6d3dbc4d8f14387 | 17c5982b29c3a7c8294d5a25ddf9bb179f570d08 | /Classes/AGalacticThingyUI.h | e77fd24b48981542a7dec138618443771a00df84 | [] | no_license | fozolo/galactica-anno-dominari-3 | 89e1881c9312b8c5d51fb9ba05f13838eaf2fdd6 | c17049494120e8a2ad68309c4dda7ca37fd89e43 | refs/heads/master | 2020-09-11T20:09:28.562762 | 2016-01-12T19:06:04 | 2016-01-12T19:06:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,937 | h | AGalacticThingyUI.h | // AGalacticThingyUI.h
// ===========================================================================
// Copyright (c) 1996-2002, Sacred Tree Software
// All rights reserved
// ===========================================================================
// 3/9/96 ERZ, 4/18/96
// 3/14/02 ERZ, separated from AGalacticThin... |
067e31740ed132440c4361b6e1fd718946b7bb49 | b18c7355c25b98cbe5ba699a2ff5961f85594bf5 | /src/InfiniTAM/studio/app/src/main/jni/tangoMain.h | 7f35c886226e28fed51e9a1d46ad8a46497b40aa | [] | no_license | KastnerRG/infinitam_fpga | 963656807303ac6cf859337a3e8da32edf96928a | 771202a2db0da71c06f1d50b0e9cc4e9063d9313 | refs/heads/master | 2020-05-26T05:01:54.483419 | 2019-07-11T23:52:37 | 2019-07-11T23:52:37 | 188,115,310 | 24 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,408 | h | tangoMain.h |
#ifndef TANGO_MAIN_H_
#define TANGO_MAIN_H_
#include <jni.h>
#include "logging.h"
//#include "ImageDataBuffer.h"
//#include "DataBuffer.h"
//#include "DataWriter.h"
//#include "TangoImages.h"
typedef void* TangoConfig;
class TangoMain
{
public:
TangoMain();
~TangoMain();
// Check that the install... |
9eeeaabb5e15dc7a55c555778f798959352faeb5 | 5220ec44bd018f12c32da698cacf8a4ee5108ecf | /Data Structures/Programs/Program2/service.h | bbf365b30b9271b5ebfa704dc3db92f4096b29fc | [] | no_license | ace0625/school-work | bf994f96a0821aaf6aa73194189a98c8feb96b07 | bf41322ec812924e1d60a26d9378afd28555298d | refs/heads/master | 2021-01-01T03:34:55.865381 | 2016-05-25T21:23:14 | 2016-05-25T21:23:14 | 59,698,576 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,124 | h | service.h | //CS163
//Assignment #2
//4/29/2015
//Hyunchan Kim
//service.h
//This class is the base class implements creating an order, copying order, getting current time,
//displaying service, total remaining time, and average time. The data go to the queue and stacks
//classes to manage different data structures.
#if... |
02c151abf072abf876874d94a62907a5e3413873 | 8194c153de598eaca637559443f71d13b729d4d2 | /ogsr_engine/xrGame/ai/monsters/ai_monster_squad_manager.cpp | 6446fc2ba8e535b202d312cd4ceeeb18ce1db097 | [
"Apache-2.0"
] | permissive | NikitaNikson/X-Ray_Renewal_Engine | 8bb464b3e15eeabdae53ba69bd3c4c37b814e33e | 38cfb4a047de85bb0ea6097439287c29718202d2 | refs/heads/dev | 2023-07-01T13:43:36.317546 | 2021-08-01T15:03:31 | 2021-08-01T15:03:31 | 391,685,134 | 4 | 4 | Apache-2.0 | 2021-08-01T16:52:09 | 2021-08-01T16:52:09 | null | UTF-8 | C++ | false | false | 3,379 | cpp | ai_monster_squad_manager.cpp | #include "stdafx.h"
#include "ai_monster_squad_manager.h"
#include "ai_monster_squad.h"
#include "../../entity.h"
//////////////////////////////////////////////////////////////////////////
// SQUAD MANAGER Implementation
//////////////////////////////////////////////////////////////////////////
CMonsterSquadManager *g... |
79f97de934b6f5f2060c2f846478ef3fa6953c0f | b2e0629201d0390bb78a651cc9cc070ec41d7703 | /9.2/main.cpp | b45cddc61626ee03eb29dd9704515b04068535c8 | [] | no_license | joook/DesignPatternProjects | b702e63531f0a08f09046dfe3b7406315f16178a | 1e881a0b397f91350f562e026f14bd20bf396239 | refs/heads/master | 2023-02-10T09:38:15.282012 | 2021-01-10T13:32:36 | 2021-01-10T13:32:36 | 262,780,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | cpp | main.cpp | #include "component.h"
#include <iostream>
using namespace std;
int main()
{
Box OuterBox(1.00);
Box AccessoryBox;
Product iPhone("iPhone 4s", 5000.00);
Product Charger("iPhone Charger", 50.00);
Product EarPhones("iPhone EarPhones", 100.00);
OuterBox.add(&iPhone);
OuterBox.add(&Charger);
... |
8d41bbe5c5359632f113ec5477f75c23c3a43396 | 6b18884327584cd84e677b53a5c1c121cbed7aaf | /2D Physics Engine ERawlings/GhostParticlePhysics.h | 2608cdb40aedd7a9799411a556b3d84056877fa4 | [
"MIT"
] | permissive | EmmaRawlings/2D-Physics-Engine-ERawlings | dfa9ef64d71ac71aed0c57cfa88ade5e9859a85d | 63e1c330321bb7f826049ca12dfa95c4ddb346e8 | refs/heads/master | 2021-11-27T00:32:03.064186 | 2017-02-07T20:21:42 | 2017-02-07T20:21:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 282 | h | GhostParticlePhysics.h | #pragma once
#include "PointObject.h"
class GhostParticlePhysics :
public PointObject
{
public:
GhostParticlePhysics();
GhostParticlePhysics(const Vector2 &position, const Vector2 &momentum, const double &mass);
void update(const double &seconds);
~GhostParticlePhysics();
};
|
fcaf443a0c190f68c3c9df49b1a609b0674ad7ba | 15d64c874329eac5ac609983205ccaf53ffc1f62 | /src/msg/MsgManager.cc | 4bcc23e9099123a71ca8e2b71ca28ed49df24084 | [] | no_license | Gancc123/flame | 75fb0f1b91a8f3117a4faf02df16a367d6b2d8b2 | b680dee8bf6a263dd65024e37fb3d8f1017e3b09 | refs/heads/master | 2022-11-30T03:36:54.335864 | 2020-05-09T13:03:37 | 2020-05-09T13:03:37 | 285,832,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,743 | cc | MsgManager.cc | #include "MsgManager.h"
#include "msg_common.h"
#include "msg_data.h"
#include "msg_types.h"
#include "Stack.h"
#include "socket/TcpStack.h"
#ifdef HAVE_RDMA
#include "rdma/RdmaStack.h"
#endif
#ifdef HAVE_SPDK
#include "spdk/SpdkMsgWorker.h"
#endif
namespace flame{
namespace msg{
MsgManager::MsgManager(Ms... |
17b2c52bb8d1bf2b74b4244253597617923a2fc4 | 50c1c675fef2c560dd904df9ab80791847f83f2c | /include/NearestNeighborGenerator.hxx | 57247d38749486eba6421c5cc4540ad7693ca6f5 | [] | no_license | xlou/BOT | 3bf9089c91b86f22ec2d2da01ffac00bd009c12f | 1046b11ffd038468693055422f5b00c50ba96a9b | refs/heads/master | 2016-09-06T01:56:02.951423 | 2013-02-01T16:34:59 | 2013-02-01T16:34:59 | 2,142,202 | 5 | 3 | null | null | null | null | IBM852 | C++ | false | false | 7,270 | hxx | NearestNeighborGenerator.hxx | /*!
* @author Xinghua Lou <xinghua.lou@iwr.uni-heidelberg.de>
*
* @section LICENSE
*
* BOT. Copyright (c) 2010 by Xinghua Lou.
*
* This software was developed by Xinghua Lou.
* Enquiries shall be directed to: xinghua.lou@iwr.uni-heidelberg.de.
*
* All advertising materials mentioning features or use of this... |
e9066fdcd2d424c42adb6011deb6ca8e6011e73f | b64d126327d55b6030c917a7754c2d9eb5af4e60 | /GameTemplate/Game/IItemObject.cpp | 1899979e227e1c2008271c246afb9f4169654efe | [] | no_license | TakuyaI/FPSGame | c0a880c7e2f6e9816cc626e98fcd7c3e92b958f1 | e2856ccde8a7f7058ec89e77b7b8f6027b7229d5 | refs/heads/master | 2022-12-27T12:51:55.154331 | 2020-10-05T05:21:15 | 2020-10-05T05:21:15 | 225,989,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 112 | cpp | IItemObject.cpp | #include "stdafx.h"
#include "IItemObject.h"
IItemObject::IItemObject()
{
}
IItemObject::~IItemObject()
{
}
|
be88a082599ffdbf35286e5e91ffa60fca82bace | 437beb6be23b9263493d633a638a6dc2e2eb891a | /3. Medium/3. 661 - Blowing Fuses.cpp | 96d3f316e0f0d03f3128baa5c5fa10a5fb8ccfcc | [
"MIT"
] | permissive | Preetam2114/Competitive-Programming-3 | f16e045741a8df7e78bdfc9a44c3be5dae182083 | 1dd2eb3ec6371a645041eb9874ea2404ab636ba3 | refs/heads/main | 2023-01-18T23:44:41.458840 | 2020-11-19T18:24:29 | 2020-11-19T18:24:29 | 305,607,762 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,668 | cpp | 3. 661 - Blowing Fuses.cpp | /*
* Chef : preetam rane
* Chef-Id : pvr2114
* Dish : 3. 661 - Blowing Fuses
* Created on : Sunday, 1st November 2020 9:22:07 am
*/
#include <bits/stdc++.h>
using namespace std;
#ifndef preetam
#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#pragma GCC target ("sse,sse2,s... |
756d6a468ca2b2c52de5852e52ea1a8c5e7bf7c4 | 32dad2f438a7b4313ee81b73815a32243bb3830f | /Program 6.cpp | b0a499cc0eac1425140810e44fffdcfa88f4cfad | [] | no_license | furkanmidik/programlama | cb56f0d7f404cd96fafe2144da1512db23a9f029 | 2b82bd83642c39f9bdfd727e04d36d0f9356aa60 | refs/heads/master | 2021-08-15T22:40:45.994576 | 2017-11-18T13:22:39 | 2017-11-18T13:22:39 | 111,206,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 193 | cpp | Program 6.cpp | #include <stdio.h>
#include <conio.h>
main()
{
char kelime[20];
printf("Bir kelime giriniz : ");
scanf("%s",kelime);
printf("Girilen kelime : %s",kelime);
getch();
}
|
494a7ce8bb72a545d8648acef5d6a0528f8c522a | cf9146c1a3dd4d0ae6b5f490de33a65dac418c15 | /sprint00/t04/referenceOrPointer.cpp | e09c97e98cef79ca8faf54e2ed109ed8fd844e05 | [] | no_license | dmushynska/marathon_c_plus_plus | 5fe63e71dffcf783ddbfeaecfb1d42f62c7c27e0 | 69782b3dc8cede716fe0e4528df0f77e3e00facb | refs/heads/master | 2022-12-15T04:54:11.176178 | 2020-09-17T10:04:45 | 2020-09-17T10:04:45 | 290,715,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | cpp | referenceOrPointer.cpp | #include "referenceOrPointer.h"
void multiplyByPointer(int* ptr, int mult) {
*ptr *= mult;
}
void multiplyByReference(int& ref, int mult) {
ref *= mult;
}
// int main() {
// int a = 3;
// int &b = a;
// multiplyByPointer(&a, a);
// std::cout << a << std::endl; // 9
// multiplyByReference(... |
1944826ade89920b7e8e13a958a5246075b52949 | 903dac660b0db25b05ac375a5916f023ef199fc0 | /src/SSEEncrypter.cpp | d0fd0fb7445545f5e85348eec2f33bb0efb4d5e1 | [] | no_license | TANGO-Project/cryptsdc | d6af5dd9e4252462cabf383fd52b9814d0dc0a29 | 4428fc289c97818d58a8010593636c64bde56e82 | refs/heads/master | 2020-03-28T05:57:34.072152 | 2018-10-23T13:29:24 | 2018-10-23T13:29:24 | 147,806,026 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,570 | cpp | SSEEncrypter.cpp | /*
* Copyright 2018 James Dyer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
6b2c3d6f2fde2d1f8df76895913be1fc6c193141 | 2814b4ed8ebe8bbeb2e4210ed083326dd6ce7252 | /Easy/160. Intersection of Two Linked Lists/getIntersectionNode.cpp | 751d04966242858b6a58e36fd0197bd5c34ca9fe | [] | no_license | teddy8997/LeetCode | 31970b5efe1945204bf2f8fc4e5d6924f05636db | 399edc5300fb1cb2cb0fe51b42ce3a913c830d25 | refs/heads/master | 2023-04-10T21:14:28.684276 | 2021-04-19T06:12:34 | 2021-04-19T06:12:34 | 303,752,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | cpp | getIntersectionNode.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
/*
先計算出listA跟listB的長度lengthA跟lengthB
再計算兩個長度大小的差值,較長list的先走差值步
兩個list再一步一步互相比較,如果沒有相交點代表會走到null
*/
class Solution {
public:
ListNode *getIn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.