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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcb2c00ad8ebd6ea2a0a1aded9aecf7a9d104605 | a25610811f2fb34a3d8d2512affdf5be44e6e45b | /include/OpenCLCopy.hpp | 7f0db3a7077ea9d69e6bba0ce29c54547d109045 | [
"BSD-3-Clause"
] | permissive | pavanky/forge | e712cfb5716bcc9b09f6b3bb42b72ba4d6b06f17 | e40b30a0330a492f54757b5efeee1ecdfa573cf3 | refs/heads/master | 2021-01-24T23:12:38.145290 | 2015-11-12T18:47:38 | 2015-11-12T18:47:38 | 36,021,004 | 2 | 0 | null | 2015-05-21T15:29:32 | 2015-05-21T15:29:32 | null | UTF-8 | C++ | false | false | 1,740 | hpp | OpenCLCopy.hpp | /*******************************************************
* Copyright (c) 2015-2019, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
*****************************************... |
9308d0a2cd06a7035f9726c19edd26a2841f0547 | 5bbaeac40717a0bd16ba8ba8faf3fbfb29c5b7c9 | /src/fastqpattern.h | ceeafac7f29ea30888a11ec1a9f6fbc2b9867e50 | [
"MIT"
] | permissive | LaoZZZZZ/bartender-1.1 | 46bbbd91c824216a211aa9f3b5a132d77c59c0c1 | 439b1a23a21ad035468fb6c00a9efaa21ec4045a | refs/heads/master | 2023-04-27T16:29:29.410121 | 2023-04-27T02:44:33 | 2023-04-27T02:44:33 | 50,738,171 | 29 | 10 | MIT | 2023-09-05T15:52:47 | 2016-01-30T18:23:06 | C++ | UTF-8 | C++ | false | false | 480 | h | fastqpattern.h | /*
* Copyright 2014, Lu Zhao <luzhao1986@gmail.com>
*
* This file is part of suffix matching project.
*/
#ifndef FASTQPATTERN_H
#define FASTQPATTERN_H
#include "patternparser.h"
namespace barcodeSpace{
class fastqPattern : public patternParser
{
public:
fastqPattern(const std::string&);
private:
void pars... |
d525a3ac5fe2e58b64a35aa2a0bbc123fed6cf27 | 9473aca2ebeaa77bcf9275171866597e10507691 | /src/apkworkstation/ui/toolbar.h | f913814ec8dbfba75dac220e7542a3bc6d6c286f | [] | no_license | redlee90/APKWorkstation | 5aec3c5af0c84dfe4764d2c7632c57e04e6201b7 | ca4caddc3582d060f8cb9f18d19edf4f7f56c105 | refs/heads/master | 2020-04-14T08:57:23.004717 | 2015-04-13T22:17:09 | 2015-04-13T22:17:09 | 33,635,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,123 | h | toolbar.h | #ifndef VPZ_APKSTUDIO_UI_TOOLBAR_H
#define VPZ_APKSTUDIO_UI_TOOLBAR_H
#include <QAction>
#include <QIcon>
#include <QObject>
#include <QToolBar>
#include <QWidget>
#include "../utility/resource.h"
namespace UI {
class Toolbar : public QToolBar
{
Q_OBJECT
public:
// Action
QAction *... |
49a98afca57a8ff46eb3dba743ca3c0c641c3f6e | 6bf780488942d14c601944ddac0cc39983ba3c67 | /src/Basis/SpatialIntegrator/GaussLaguerreIntegrator.h | 93ae9894a50eab234770e4a78b97498ea5ff2177 | [] | no_license | sigvebs/StandardCI | cd7411ce22c296188b676e20f928fd813e7ce9da | 9c3420d2349a9a3b7865d52a0fb56ff6d3fcf4f5 | refs/heads/master | 2016-08-03T15:53:31.638783 | 2013-01-28T11:43:46 | 2013-01-28T11:43:46 | 7,647,665 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 650 | h | GaussLaguerreIntegrator.h | /*
* File: GaussLaguerreIntegrator.h
* Author: sigve
*
* Created on January 9, 2013, 8:54 PM
*/
#ifndef GAUSSLAGUERREINTEGRATOR_H
#define GAUSSLAGUERREINTEGRATOR_H
#include "SpatialIntegrator.h"
class GaussLaguerreIntegrator: public SpatialIntegrator {
public:
GaussLaguerreIntegrator(Config *cfg, WaveFun... |
f0de9bab6efe7f63ec4189826faa63b84e6e1f53 | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /vespalib/src/vespa/vespalib/util/typify.h | 3df59f488e511fc283d0542faef8b4e4ed299705 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 4,301 | h | typify.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include "traits.h"
#include <cstddef>
#include <utility>
namespace vespalib {
//-----------------------------------------------------------------------------
/**
* Typification result for values ... |
1552b2001c91ad71caada8d36e622517919072dd | d203c273c79cc3e728003f61988c3e116ba6d044 | /Binary Tree - Max num formed from root to Leaf.cpp | 2c9164dc2cf31ed4c495090e2a25284063315847 | [] | no_license | Pulkit1080/Imp-DS-ALGO-Ques | 84299f2d1188d44e6a146304aebdb336ca6b0b53 | ec6574f8846d5c3d8d2b9d8818f1d09bfe215478 | refs/heads/main | 2023-01-13T06:29:20.052430 | 2020-11-19T07:59:19 | 2020-11-19T07:59:19 | 313,989,677 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,211 | cpp | Binary Tree - Max num formed from root to Leaf.cpp | #include<bits/stdc++.h>
using namespace std;
class node
{
public:
int data;
node*left;
node*right;
node(int d)
{
data = d;
left = right = nullptr;
}
};
node*buildTree()
{
int d;
cin>>d;
if(d == -1)
return nullptr;
node*root = new node(d... |
225d862c5bd81908a1e1cccd3111ca6527a88284 | 6fee5fd1b5412e65a3a6c4df3edfa608c885f11b | /Cpp/12289 one two three.cpp | 73ba56c7d15902eaebbc262eeaece70ef94b5802 | [] | no_license | PrinceCuet77/UVa | d47f000ae6c05465b5582c77626a7d9f2942eb71 | d45e0d895bf56696d5bb0c331a517249b7ba6ef1 | refs/heads/master | 2020-12-15T00:39:33.049648 | 2020-05-31T07:52:21 | 2020-05-31T07:52:21 | 234,930,506 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 501 | cpp | 12289 one two three.cpp | #include<iostream>
#include<string.h>
using namespace std;
int main()
{
int test,len;
char letter[15];
cin>>test;
while(test--){
cin>>letter;
len=strlen(letter);
if(len==5)
cout<<"3"<<endl;
else{
if((letter[0]=='o' && letter[2]=='e') || (letter[0... |
caba98209b6c991af4c7bf03e921b20e0fb5f696 | b603a14c383ad30eab1d6db79db7f333b3b9d839 | /src/Antonova/Task5/Plane.h | f3b515c6d0881a944ddcffe92969687e0f468d85 | [
"MIT"
] | permissive | sadads1337/fit-gl | 37d66fff2c44664e67b8b43061f48dc18deace2e | 88d9ae1f1935301d71ae6e090aff24e6829a7580 | refs/heads/master | 2023-05-03T17:23:25.170430 | 2021-05-23T18:26:56 | 2021-05-24T04:59:44 | 334,793,424 | 2 | 9 | MIT | 2021-05-24T06:55:24 | 2021-02-01T01:03:08 | C++ | UTF-8 | C++ | false | false | 294 | h | Plane.h | #pragma once
#include "Hittable.h"
class Plane : public Hittable {
public:
Plane(QVector3D p, QVector3D n) : position(p), normal(n){};
virtual ~Plane() = default;
virtual std::optional<Hit> intersect(const Ray &ray) const override;
public:
QVector3D position;
QVector3D normal;
};
|
e08ad27e5f20e54dcaec56879bb344fdddc4c4d2 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/multimedia/directx/dplay/dplay8/sp/wsock/unk.cpp | 03c083f106b748c8a4323a01a6b17066ce17e818 | [] | 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 | 20,579 | cpp | unk.cpp | /*==========================================================================
*
* Copyright (C) 1998-2002 Microsoft Corporation. All Rights Reserved.
*
* File: Unk.cpp
* Content: IUnknown implementation
* History:
* Date By Reason
* ==== == ======
* 08/06/00 RichGr IA64: Use %p format sp... |
c095c9faf3ae31a516598a65ec226f667981a4b9 | 4b53076dd75ff8bed7b8cafd64a2add306a00761 | /src/client.hpp | 82502b23048697a83cc8312433a7fb4a89f6095b | [] | no_license | nesro/NCursesGomoku | c184d366c53e2d3d582ed8d597872437aeb40aa4 | d37c1252a44189b488600c4d01d4bb6af8a04e78 | refs/heads/master | 2021-01-10T07:06:45.845198 | 2015-03-23T14:42:30 | 2015-03-23T14:42:30 | 8,541,243 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | hpp | client.hpp | /**
* @file client.hpp
* @brief Header file for network opponent as client.
*
* @author Tomas Nesrovnal nesro@nesro.cz
* @version 1.0
*/
#include "local.hpp"
#include "board.hpp"
#include "network.hpp"
#include "game.hpp"
/******************************************************************************/
#ifndef... |
ecd7668ba75329a7b451dcc7cbfb7dae09c4dd27 | d899d124b02eed2c7f1786805286113ec6960c24 | /Hmwk/Assignment 4/Ch13 pg1/Date.cpp | 570d1d051c2a4c4fb009579c701f84b0a376574b | [] | no_license | AyinDJ/He_Xiaojun_CSC17A_48096 | cd30267f6f9e836b886515b844779755ee1774b8 | d29cafa946a37d40e62e233f5bf7f0fcfca0b143 | refs/heads/master | 2020-04-11T00:43:04.782496 | 2016-12-09T03:04:31 | 2016-12-09T03:04:31 | 68,043,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,572 | cpp | Date.cpp | /*
* File: Date.cpp
* Author: Jimmy
*
* Created on November 17, 2016, 7:30 PM
*/
#include "Date.h"
#include <iostream>
#include <string>
using namespace std;
Date::Date(int year, int month, int day) {
this->year=year;
this->month=month;
this->day=day;
}
void Date::setDay(int day) {
bool inva... |
a9b75651a8ea986089bc1049c851c052fe2df6b7 | efb16fa1079141fad502b532844237a8f75d8229 | /MST/generateRandomGraph.cxx | 7014cbb4911f31289bb76dbbfe9f0437cdf86465 | [] | no_license | demikandr/homework | 77f3f42ed671ab30d44223a7aac8ca2e894e39b0 | 155efdc65dea7c34e1aa8c5c864b6a4ecdee79c2 | refs/heads/master | 2021-01-10T11:55:58.135538 | 2016-02-25T20:07:18 | 2016-02-25T20:07:18 | 52,553,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,308 | cxx | generateRandomGraph.cxx | #include <vector>
#include <iostream>
#include <random>
#include <set>
typedef std::mt19937 RNG;
RNG rng;
std::uniform_int_distribution<int> uint_dist;
std::uniform_real_distribution<long double> ureal_dist(0.0, 1.0);
int countOfVerticles, counter=0;
class DisjointSet {
public:
std::vector<int> parent, rank;
... |
6e83a844876cde71a0ffef56c7ebd55f2849e0df | 4867181d10768e7dc3f6b82716d04f0e4a5bcad7 | /xReference.h | 324d6d7d9e4a416bb4c770b7345dec2a6f978386 | [] | no_license | AllanCh/MeshMem | e3d4d3bac265284857fcbd4dbcfacbbdc2d2591b | 06fe8823ad81ccb93c5134e4da339ca400594eef | refs/heads/master | 2020-09-11T11:45:11.287543 | 2016-10-08T00:12:35 | 2016-10-08T00:12:35 | 67,572,001 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,028 | h | xReference.h | //
// Created by dilan on 11/09/16.
//
#ifndef MESH_MEM_XREFERENCE_H
#define MESH_MEM_XREFERENCE_H
#include <typeinfo>
#include<iostream>
#include<string>
using namespace std;
template <typename T> class xReference {
private:
T tipo;
int Size;
string datoalmacenado;
public:
string ID;
xReferen... |
48cfaf6529cc8aa80679816389510bc1f72cc0e2 | b93fecee400e9490aa742660f3fc6e32b2f1de47 | /my_controllers/src/patrol2.cpp | 9e32ba62a521390f3c2ac479ff6fffcd7011adaf | [
"MIT"
] | permissive | WardAlshalabi/DAS_UAV_Sim | a5e51ba1d53e7b872a6685499ad5f2fc8c2c2e43 | fa223f5666da6d9d43d6df73ff449b6a2acf643a | refs/heads/master | 2020-03-10T19:52:59.595634 | 2018-05-03T20:01:48 | 2018-05-03T20:01:48 | 129,557,869 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,881 | cpp | patrol2.cpp | #include <ros/ros.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/Point.h>
#include <tf/transform_datatypes.h>
#include <tf/transform_broadcaster.h>
#include <std_msgs/Int16MultiArray.h>
#include <std_msgs/Float32.h>
#include <std_msgs/Empty.h>
#include <sensor_msgs/Range.h>
#... |
630f9ef130a24f36bec911e87a03235425a58858 | b6d19d7a76556a67d5af0df84676473c594379e6 | /MusicSynth/DemoEnvelopes.cpp | b45f3220fb755b832da5724cfe5ebcdf6749f1db | [] | no_license | wesleygriffin/MusicSynth | 8df6886cda8c9d678abde645d03f098b91c299f5 | a7712bb72fe451c6f656ef0109ca20831d365646 | refs/heads/master | 2020-04-18T12:55:12.711447 | 2016-07-05T16:26:49 | 2016-07-05T16:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,269 | cpp | DemoEnvelopes.cpp | //--------------------------------------------------------------------------------------------------
// DemoEnvelopes.cpp
//
// Logic for the demo of the same name
//
//--------------------------------------------------------------------------------------------------
#include "DemoMgr.h"
#include <algorithm>
namespac... |
083149d56342ebfe417b5bfba186380d7bf46438 | 23c4109411bb6490d76430d485c19152c56e037a | /llvm/lib/Target/AMDGPU/BBSchedStrategy.h | 2a6f059e2f6a714da6d29cd736a9ff22dcd86921 | [] | no_license | AlexErf/GPUProject | f9a060e63caec0c07584aa2a2826432dc6cfc0b5 | c2740b6ca052436a73d05564187c473a37f362b9 | refs/heads/main | 2023-02-02T05:41:53.330592 | 2020-12-14T03:04:19 | 2020-12-14T03:04:19 | 310,434,160 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,808 | h | BBSchedStrategy.h | //===-- BBSchedStrategy.h - BB Scheduler Strategy -*- C++ -*-------------===//
//
// 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
//
//===-----------------------------... |
f86deb73ee4561b82ea4134dbb7e1db2c3e0262a | 42f82a4d6f768687989832ec980820ac565360fa | /main.cpp | 439c83a3209ee82b57a17b280f0b7174c2524ab0 | [] | no_license | jogi91/ballrecognition | d498c4fe7db3ab3fb3f2c0fe164e947a84613ee9 | 975faf4fbfb685f7070f6e90f986b481b3c28112 | refs/heads/master | 2016-09-06T15:26:50.791372 | 2011-04-08T16:54:06 | 2011-04-08T16:54:06 | 1,161,350 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 9,628 | cpp | main.cpp | #include <stdio.h>
#include "cv.h"
#include "highgui.h"
#include <iostream>
#include <fstream>
#include <math.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <signal.h>
using namespace std;
#define LINKS 2
#define RECHTS 1
#define BEIDE 3
//Globale Variablen fuer die Ref... |
5a72a5b51dddde73ee739d607ead2fcb0c3ab763 | b95739405a1468d6a693175b54bbabf2b6afde9a | /abxy/GL/GLShader.cpp | aa4f4533ee6142bf0932a45a869e5b04963fca1b | [] | no_license | xymostech/abxy | 02304d4d33e442792f93ef2f05b7fa2fee87e675 | 0d13b34f021ee2583cf56feacf22a9e6a5fd4a21 | refs/heads/master | 2020-05-29T13:18:54.851817 | 2013-03-25T02:58:55 | 2013-03-25T02:58:55 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | cpp | GLShader.cpp | #include <abxy/GL/GLShader.hpp>
#include <stdexcept>
#include <abxy/util/File.hpp>
GLShader::GLShader(std::string file, GLenum shader_type)
: shader(shader_type)
{
std::string file_data = Util::Read(file);
shader.SetSource(file_data);
shader.Compile();
if (shader.GetParam(GL_COMPILE_STATUS) == GL_FALSE) {
st... |
f591a0088b205b4c0d86e369582483fd0b16ed89 | 20d024bd04ace59987ba05f864d6d9dece72fbab | /ACdream/9-24 数论/C.CPP | 6dcb4b6d70889bf02e34dcb613bef51f566783e9 | [] | no_license | Yeluorag/ACM-ICPC-Code-Library | 8837688c23bf487d4374a76cf0656cb7adc751b0 | 77751c79549ea8ab6f790d55fac3738d5b615488 | refs/heads/master | 2021-01-20T20:18:43.366920 | 2016-08-12T08:08:38 | 2016-08-12T08:08:38 | 64,487,659 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,360 | cpp | C.CPP | #include <algorithm>
#include <iostream>
#include <sstream>
#include <cstring>
#include <cstdio>
#include <vector>
#include <string>
#include <queue>
#include <stack>
#include <cmath>
#include <set>
#include <map>
using namespace std;
typedef long long LL;
#define mem(a, n) memset(a, n, sizeof(a))
#define rep(i, n) fo... |
434209f8d4bed635e0c5e5bd9ca5e0b11ed23959 | 6279ea52416d92f1642322e61a597a6dba852497 | /main.cpp | 4eff05d61a3b9728746dc0c912ad41a05d2f4de3 | [] | no_license | owong1/Complex | 1da58c63bffd293667dcba597c674589e6e8ee4c | 451358e99d7f18160b6520a8937d4571ce62fc03 | refs/heads/master | 2021-01-21T11:11:03.374392 | 2017-03-01T08:32:23 | 2017-03-01T08:32:23 | 83,531,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | cpp | main.cpp | #include <iostream>
#include "Complex.h"
using namespace std;
int main(){
Complex<int> c1(3, 2);
Complex<int> c2(6, 4);
Complex<int> ans;
cout << "complex 1: " << c1 << endl;
cout << "complex 2: " << c2 << endl;
cout << endl;
ans = c1 + c2;
cout << c1 << " + " << c2 << " = " << ans << endl;
ans = c1 - c2... |
07c553cc3fd11a5b2189a63ba02817bcbe4b95ff | 8a36111745077e680b3c60a1aa61e2137a288fa3 | /WindowsNetworkServer/Main.cpp | 9dee44f6199eec9ad14d16c6ab71b3d68ee0a688 | [] | no_license | SamuelLouisCampbell/WindowsNetworkServer | fb09545b174cdf339cd8009c4432f4af1a3f382e | 16c176091c2f6c0fc3260f0cb5f87efe49a98bec | refs/heads/master | 2022-04-21T15:56:18.402938 | 2020-04-21T11:22:57 | 2020-04-21T11:22:57 | 257,570,593 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,101 | cpp | Main.cpp | #define PORT 7000
#define IP_ADDRESS 127.0.0.1
#include <algorithm>
#include<io.h>
#include<stdio.h>
#include<winsock2.h>
#pragma comment(lib,"ws2_32.lib") //Winsock Library
int main(int argc, char* argv[])
{
WSADATA wsa;
SOCKET s, new_socket;
struct sockaddr_in server, client;
int c;
const char* message;
cons... |
d7d0a7856c6fca42227a8f417985eaeecc955c5b | b33a9177edaaf6bf185ef20bf87d36eada719d4f | /qtxmlpatterns/src/xmlpatterns/schema/qxsdinstancereader.cpp | 9c7337c38cd43f372019e26668113c395d0555b1 | [
"LGPL-2.0-or-later",
"LGPL-3.0-only",
"GPL-3.0-only",
"LGPL-2.1-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference",
"GPL-2.0-only",
"GFDL-1.3-only",
"Qt-LGPL-exception-1.1",
"LGPL-2.1-only",
"LicenseRef-scancode-digia-qt-preview",
"LicenseRef-scancode-warranty-discl... | permissive | wgnet/wds_qt | ab8c093b8c6eead9adf4057d843e00f04915d987 | 8db722fd367d2d0744decf99ac7bafaba8b8a3d3 | refs/heads/master | 2021-04-02T11:07:10.181067 | 2020-06-02T10:29:03 | 2020-06-02T10:34:19 | 248,267,925 | 1 | 0 | Apache-2.0 | 2020-04-30T12:16:53 | 2020-03-18T15:20:38 | null | UTF-8 | C++ | false | false | 5,836 | cpp | qxsdinstancereader.cpp | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the QtXmlPatterns module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid... |
ed3803b7eacb15c6ab0eb34905fefd802468f5cb | cf7750ded027a1f9ff38efc3f7e525277987f424 | /src/read_buffer.h | 632a923fe3a2a63a6633124fe6200c3d6b556b8b | [] | no_license | MeiK2333/blog | 47d3ddae9dd0a2a707814ce039f7f7d42ccf8001 | 5ae8a75756d98d5e134e6abb8741a9a54eecec67 | refs/heads/master | 2020-03-23T18:15:00.080248 | 2018-08-16T11:44:59 | 2018-08-16T11:44:59 | 141,897,343 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 263 | h | read_buffer.h | #ifndef BLOG_READ_BUFFER_H
#define BLOG_READ_BUFFER_H
class ReadBuffer {
public:
ReadBuffer(int);
~ReadBuffer();
int Read();
char *buffer;
bool End();
private:
int fd;
int offset;
int size;
void resize(int);
};
#endif |
2dcd2be4807dadbee3df42d27fb631c4cf671c3b | cabbfaf53165be9c1c4a9def4a8697bd4a8e648c | /src/Chunk.cpp | 557dfe419e3e98b9728be18861dbb2a6d539934a | [
"Apache-2.0"
] | permissive | yurirocha15/Gradius | c285eef1ff49c7361cacb00ca76bb539d6a0746d | 9c033a2b79823283ca901023bf485ed16bb8d5b4 | refs/heads/master | 2021-04-27T00:09:20.894641 | 2018-03-04T06:59:37 | 2018-03-04T06:59:37 | 123,757,711 | 1 | 0 | Apache-2.0 | 2020-01-17T03:15:02 | 2018-03-04T04:47:37 | C++ | UTF-8 | C++ | false | false | 387 | cpp | Chunk.cpp | /*
* Chunk.cpp
*
* Created on: 27/06/2013
* Author: yuri
*/
#include "Chunk.h"
Chunk::Chunk() {
// TODO Auto-generated constructor stub
chunk = NULL;
}
Chunk::~Chunk() {
// TODO Auto-generated destructor stub
Mix_FreeChunk(chunk);
}
void Chunk::loadFile(string path) {
chunk = Mix_LoadWAV(path.c_str(... |
8b729a58a961f17228f9c53458849292cc393b7e | bf634993187db67766662c635879caf545b10d3d | /deep500/frameworks/reference/custom_operators/cpp/operators/reshape_op.cpp | 3e99cafc115318f0840933c2bcd5a358a1ecc859 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | deep500/deep500 | e94b1fa067466adf7b6b4a2d7bba06a6f9a07a3c | cd9b21ec9d494388d5e44ac1057d9bedea44d9ba | refs/heads/master | 2022-06-02T19:26:10.368021 | 2022-05-23T12:01:31 | 2022-05-23T12:01:31 | 153,253,963 | 93 | 28 | BSD-3-Clause | 2022-05-23T12:01:32 | 2018-10-16T08:53:53 | Python | UTF-8 | C++ | false | false | 2,252 | cpp | reshape_op.cpp | #include <deque>
#include "deep500/deep500.h"
#include "../utility/tensor/copy_data.hpp"
#include "../utility/tensor/set_all.hpp"
template<typename T>
class ReshapeLayer : public deep500::CustomOperator{
protected:
std::deque<uint32_t> m_input_shape;
uint32_t m_input_size;
int64_t m_output_rank;
publ... |
8f6fd2a412d5dae07ed7bffa91fd5081363d1a61 | 1063f7e13f50fa0fee6723a77dc533d786e3082f | /trunk/tools/ProduceTester/ProduceTester/DT6000功能性测试/DT6000被测设备端/PC端/FunctionTest/SerialPortTest.cpp | bc41365431dfa2178a62e367d0f93a6dc582fc26 | [] | no_license | zjm1060/HandSet | 9e9b8af71ee57a7b90a470473edb72ef7b03c336 | 59a896e38996fe9f9b549316974bf82ffa046e1e | refs/heads/master | 2022-12-21T19:52:10.349284 | 2017-03-10T08:20:14 | 2017-03-10T08:20:14 | 112,681,985 | 0 | 0 | null | 2020-09-25T01:00:09 | 2017-12-01T01:50:46 | C++ | GB18030 | C++ | false | false | 9,410 | cpp | SerialPortTest.cpp | #include <Windows.h>
#include <atlstr.h>
#include "connect.h"
#include "testBase.h"
#include "testManager.h"
#include "SerialPortTest.h"
#include "assertMsg.h"
//将全功能串口的各功能线编号
enum SIGNAL_LINE_INDEX
{
LINE_DCD=0,
LINE_DTR,
LINE_DSR,
LINE_RTS,
LINE_CTS,
LINE_RI,
LINE_RXD,
LINE_TXD,
};
... |
f72ba03e521640638ab0a344d55e9ec3c987e600 | e79cb86744b9cc5d46912f2f9acdb5ffd434f745 | /src/dpl/src/Grid.cpp | 02647d5bd3fe93a8e122fa10a57f9a1a194a6bda | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | The-OpenROAD-Project/OpenROAD | 555cbb00ec250bb09b9e4f9a7d1454e7ac7a01ab | 1f6ccc9066e7df4509ed391d87b01eadb4b3b197 | refs/heads/master | 2023-08-31T05:35:25.363354 | 2023-08-31T05:04:27 | 2023-08-31T05:04:27 | 218,110,222 | 979 | 461 | BSD-3-Clause | 2023-09-14T21:51:36 | 2019-10-28T17:48:14 | Verilog | UTF-8 | C++ | false | false | 23,057 | cpp | Grid.cpp | /////////////////////////////////////////////////////////////////////////////
// Original authors: SangGi Do(sanggido@unist.ac.kr), Mingyu
// Woo(mwoo@eng.ucsd.edu)
// (respective Ph.D. advisors: Seokhyeong Kang, Andrew B. Kahng)
// Rewrite by James Cherry, Parallax Software, Inc.
//
// Copyright (c) 2019, The... |
11ad9fb451ed40b27fa259955ace4e9c332eaf87 | 288142619cbcc38de32f5ab0344b375c0e460dd7 | /src/Game/Gameplay/Objects/Portal.cpp | c1da40afe6eca2e75fb541bb290cd0771df4888b | [] | no_license | Mati365/Rectangle-Adventures | 80b443beff88d830548c4a68c9bf5e83a59d4cae | fd4d161c5207980d80755dab54fa60e3749f51f6 | refs/heads/master | 2020-07-06T13:22:35.198154 | 2013-11-03T10:56:19 | 2013-11-03T10:56:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,590 | cpp | Portal.cpp | /*
* Portal.cpp
*
* Created on: 09-09-2013
* Author: mateusz
*/
#include "Objects.hpp"
#include "../Gameplay.hpp"
using namespace Gameplay;
Portal::Portal(float _x, float _y, usint _orientation, usint _flag) :
Body(_x, _y, 32, 1),
linked(nullptr),
teleport_procent(0.f) {
body_inside = {nullpt... |
b26bb2bfd54411d9c348d5e0fbbf32d502dad84d | c7feda8bb2b63bb0b1e346d9019f261e5e5a88e2 | /leetcode/621.cpp | da4054ed59ecf9fbb42894fac4a37b46bcf6dc6d | [] | no_license | EcutDavid/oj-practices | f6f05ee179b53fca436d6be33ef873033c72d895 | 831502fe83f7611d2031365663e8409919e2b0b0 | refs/heads/master | 2021-06-30T23:47:04.197213 | 2020-11-13T10:53:37 | 2020-11-13T10:53:37 | 152,569,918 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 877 | cpp | 621.cpp | #include <vector>
using namespace std;
class Solution {
public:
int leastInterval(vector<char>& tasks, int n) {
vector<pair<int, int>> tL(26);
for (char t : tasks) {
tL[t - 'A'].first++;
}
int ret = 0;
int round = tasks.size();
while (round--) {
int c = -1;
for (int i = 0;... |
ac83224cd87c68a74b1e7217a10ec883a95b9e9d | 19f1daea6861f2e4f08c76f07ac0f84306d240c8 | /Tools/WebServer/include/Tools/WebServer/RedirectService.h | 937c761472b508042ad64e463da7363507f6ffaa | [] | no_license | erdoukki/PraeTor | e1ded122c51c45fdacf1f8733173ae509bcdd106 | 42173cfa97612c05a99b9913929e13f5f549e126 | refs/heads/master | 2021-12-23T16:29:22.260165 | 2017-11-18T11:22:16 | 2017-11-18T11:22:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 735 | h | RedirectService.h | #pragma once
#include <map>
#include <string>
#include "Tools/WebServer/IWebService.h"
namespace Tools
{
namespace WebServer
{
class RedirectService : public Tools::WebServer::IWebService
{
public:
RedirectService(const std::string &from, const std::string &to, int httpStatus);
~RedirectService();
... |
3abbb5bc5af79232def86d82a055f3aebfbbf73a | 528ec322ee4552897c73c685baacff7c8afd2dce | /include/bud_cleanup.inc | 82a9d09e8fdf7c8201c474052ba652f081171a69 | [
"MIT"
] | permissive | siesta-project/buds | c0a1bfe9b90715c351013dff97dc1dd3570144b8 | f82fa8d80fb78b46d0baf3ef215b36716e9abd41 | refs/heads/master | 2021-06-26T13:08:28.848172 | 2020-11-13T19:41:41 | 2020-11-13T19:41:41 | 51,718,630 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,044 | inc | bud_cleanup.inc |
! Here we clean up a mixture of preprocessor
! statements that are defined in the
! include/[inc] files
! Excluding the _utils.inc file!
! These flags are generic
#undef BUD_MOD_NAME
#undef BUD_MOD_NAME_STR
#undef BUD_TYPE_NAME
#undef BUD_TYPE_NAME_
#undef BUD_TYPE_NAME_STR
! bud_finitestack.inc
#undef B... |
63ab5368bc1e8f186c284312705fb05eb6953eba | 4aa4f304b7ed19e6534c9974e323cc872ea77a06 | /FriendGraph.hpp | 55ffcbfa8daa38bb4a4ab784be634e5be70efaf5 | [] | no_license | p2phan/6-degrees-of-Kevin-Bacon | 005a752d222f00a93acf989a98833352eab58407 | 4f1f52c6223b49de3d73fed5287c7e9986f1da0d | refs/heads/master | 2021-05-08T06:27:22.448712 | 2017-03-15T06:56:23 | 2017-03-15T06:56:23 | 106,618,130 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,774 | hpp | FriendGraph.hpp | /**
* FriendGraph.hpp
* Author: Peter Phan, A13042904 cs100wdh
* Dephanie Ho A12705618 cs100wam
*
* Date: 03/14/2017
*
* Implements a graph that shows a network of friends on Facebook.
*/
#ifndef FRIENDGRAPH_HPP
#define FRIENDGRAPH_HPP
#include <iostream>
#include <fstream>
#include <sstream>
#include... |
8fd38394ae90c36b55d2b5516784b50133e35e6d | 231fa411e61ad9564e7e75f9d55713b5ea259506 | /ppl1(w2).cpp | da6915cc6fa99f55f29e4bc7a93ccb31fd948042 | [] | no_license | ujjwal56/principal-of-programming-languages | 8d4f6345e17c1da9a4e30275a6d5bf35171bbc64 | 4541a685503518720783770e694362b11f358431 | refs/heads/master | 2020-04-19T22:52:10.005194 | 2019-03-28T07:08:46 | 2019-03-28T07:08:46 | 168,481,291 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 215 | cpp | ppl1(w2).cpp | #include<iostream>
using namespace std;
int main()
{
int sum=0,num,d=0;
cout<<"enter the number";
cin>>num;
while( num != 0)
{
d=num%10;
sum=sum+d;
num=num/10;
}
cout<<"result is"<<sum;
}
|
c74764cfd4bb71400b42e8b03a98db51359381a3 | c44fb0847f55d5a9a187e6e9518c1fa28957c480 | /AdvancedLib/CompileLib/AbstractSyntaxTree/IST2ASTConverter.cpp | d9c0535086cc7cc25ea1ce613cb1beff43ebbde1 | [] | no_license | Spritutu/hiquotion_cpp | 54567d5d0e62c36415d94f851ef9631932480e33 | 39e35053f979f7b613075c6a582fe58333c95dff | refs/heads/master | 2022-03-29T13:08:54.752069 | 2020-01-21T05:00:19 | 2020-01-21T05:00:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 549 | cpp | IST2ASTConverter.cpp | // IST2ASTConverter.cpp: implementation of the IST2ASTConverter class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "IST2ASTConverter.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
////////////////////////////... |
32a35e1a3b80615ed78b2f9b156de2c66ebf9663 | 73186061592adaab2f8b2e79f072609b28af51b1 | /DiploidEngine/DiploidEngine/src/header/GraphicsFunction/Graphics.h | b58b0173b7925faf49f469dc6ba282bffe297ad0 | [] | no_license | Keioh/openFrameworks | 09a5b4d4cb9d8dda62ce0d4d79555ac05a4f9a9e | bbd8c15413c2533edac07c97c29ed2e5f177c575 | refs/heads/master | 2020-04-06T03:51:55.773795 | 2018-06-23T12:06:54 | 2018-06-23T12:06:54 | 83,141,813 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 188 | h | Graphics.h | //グラフィクス管理クラス
#pragma once
#include "ofMain.h"
#include "GraphicsFunction/GraphicsLoader.h"
class Graphics
{
private:
public:
GraphicsLoader graphics_loader;
}; |
8a090278a600e1e7bae81c27dc6566ad01ad003f | 0e5fbe9927923daba7173e6ef39c2fddc01b2e60 | /stl/list/public.h | e39825fd8ddd10f09b99b072d587f91edf01d76c | [] | no_license | easyfun/cplusplus_exercise | cd7737a6b2382da28c034a792a960c93ae7f8cd8 | e27def85d98943a0608c3da7c06f3dff9d41f24c | refs/heads/master | 2020-04-08T19:56:06.407366 | 2015-03-30T00:17:58 | 2015-03-30T00:17:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 489 | h | public.h | #ifndef _PUBLIC_H
#define _PUBLIC_H
#include<list>
#include<iostream>
using namespace std;
//显示整型list元素
void PrintListContents(const list<int>& listInput)
{
if(listInput.size()>0)
{
cout<<"{ ";
list<int>::const_iterator ci;
for (ci=listInput.begin();
ci!=listInput.end();
... |
9227b2bb83a44563f281bc4a5b3e61591cc32e00 | b8765e762b1087505189506a35cffce43638fba7 | /question/CCF/2013_12/2/x.cpp | f81b24c042ee8a47e5cd6a9f3d2f2659da66446c | [] | no_license | yaoling1997/desktop | 0d0782f44cca18ac97e806e919fc7c6446872a00 | 1053d1a30b1e45e82ceec90cfd3b31eec361c1e2 | refs/heads/master | 2022-02-17T12:50:54.349782 | 2019-05-18T06:13:03 | 2019-05-18T06:13:03 | 120,167,243 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 649 | cpp | x.cpp | #include<cstdio>
#include<cstdlib>
#include<algorithm>
#include<string>
#define pb push_back
using namespace std;
const int maxn= 1e5;
string s;
char t[maxn];
char c;
char getSbm(string s){
int i,re= 0;
for (i= 0;i<9;i++)
re= re+(i+1)*(s[i]-'0');
re%= 11;
if (re==10)
return 'X';
else
return '0'+re;
}
int ma... |
464e39a9d5fdf86f5c35cb21c913ff941cfce701 | a05e6ce8088ffb946c6e7278f271ef7cd9ee5f55 | /UVA-10226.cpp | 6ba4c0cd76ba2428e9d651707e15675b139d2d44 | [] | no_license | workat60474/UVA | 3b2ae74e9ab5bd60d75a3efb96f52e38f724592e | 39b2b638f2bb541d098710e1ca9ddf86c3cce35c | refs/heads/master | 2021-06-18T05:10:05.154130 | 2017-06-17T06:00:46 | 2017-06-17T06:00:46 | 84,585,517 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | UVA-10226.cpp | #include<cstdio>
#include<string>
#include<iostream>
#include<map>
using namespace std;
int main()
{
int test_num;
map<string,int>::iterator iter;
while(scanf("%d",&test_num)!=EOF)
{ //printf("test=%d\n",test_num);
getchar();
string tree_name;
getline(cin,tree_name);
//cout<<"tree_name="<<tree_name<<endl;
... |
99870dec97d496457320c3e4112947e94747f07e | 3001fcfe996fb82ad6cfb1843a71e54434975373 | /2013/03/cfr169/e.cpp | 42d638c4583a337f625b4a5e12e0fadde24a72ff | [] | no_license | niyaznigmatullin/nncontests | 751d8cde9c18feae165dd7d1b0ea2cf1f075d39c | 59748ce96f521e832c5a511ba849a523e35ad469 | refs/heads/master | 2022-07-14T08:33:27.055971 | 2022-06-28T17:58:23 | 2022-06-28T17:58:23 | 36,932,376 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,918 | cpp | e.cpp | #include <cstdio>
const int MAXN = 222222;
const int MAXF = 222222;
int ss[MAXN], ff[MAXN], md[MAXN], vv[MAXN], id[MAXN], de[MAXN];
int fcaca[MAXN * 10];
int * f[MAXN];
int * allf;
int getSum(int * f, int m, int x) {
int ret = 0;
for (int i = x; i >= 0; i = (i & (i + 1)) - 1) {
ret += f[... |
86369d5deef18758bd4ed84be992ae0f9a8fef98 | 05cdd8362ba8686fe1dd4f2d1c47b337d94ce923 | /Google Kickstart 2020/Round-A/Plates.cpp | 445b9d1e680b0edd3e95fa5e2655127b5d395218 | [] | no_license | vismit2000/compCode-II | 162411aed8483cf0f3c7cc67488aed4b78aeb3a5 | eaad7d1475d2314de533df9017d5788e9a30b0b2 | refs/heads/master | 2022-12-23T04:54:21.431142 | 2022-12-17T04:51:15 | 2022-12-17T04:51:15 | 191,161,603 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,612 | cpp | Plates.cpp | // Approach: Brute Force (That's why only small testcase passed, not the large one)
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define INF 0x3f3f3f3f
#define MOD 1000000007
#define boost ios_base ::sync_with_stdio(0); cin.tie(0);
int main()
{
boost;
int t;
cin >> t;
for(int q ... |
4de6a4547275c935e7b310ed9c1411a624ecd453 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2692487_1/C++/aechavarria/a2.cpp | 1e933ea2fefbb12c18ed9ade2a22f18a7291c25f | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,447 | cpp | a2.cpp | using namespace std;
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <sstream>
#include <fstream>
#include <cassert>
#include <climits>
#include <cstdlib>
#include <cstring>
#include <string>
#include <cstdio>
#include <vector>
#include <cmath>
#include <queue>
#include <deque>
... |
a65c9db3eec85cb5deedcc874bf0dca2d8d2fba7 | fe30b3d8b24c6b026bc1c9b0cc6f7df6a9df2e33 | /untitled1/X.cpp | 0b30b81b26d611b2e3f8456e004ec4ccd97ddc3f | [] | no_license | qiang-dai/cplusplus | de1ac861269c4cd5384690f5dcd5bf065c8891e7 | de6b2b86f3e0fb7800de4517ff57e97ea6dee249 | refs/heads/master | 2020-04-13T18:34:51.565671 | 2019-01-16T15:45:34 | 2019-01-16T15:45:34 | 163,378,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61 | cpp | X.cpp | //
// Created by xinmei365 on 2018/12/28.
//
#include "X.h"
|
4ab5cd6e153425fd52564fa98f5b70d92e261c51 | 1d18bbc37229f905e105a65e295f627f8417823b | /BaconBox/Audio/SDL/SDLMixerBackgroundMusic.h | d072dacff909cb2aca4fa49b33c2b1487a247027 | [] | no_license | anhero/BaconBox | 57b82a889fe12f5524267a9bb5035973d054706d | afa4b97d86be876f8375f3898667aabb3610c52c | refs/heads/develop | 2021-01-17T09:35:05.986399 | 2017-04-07T04:36:43 | 2017-04-07T04:36:43 | 22,391,368 | 1 | 0 | null | 2015-03-12T19:21:30 | 2014-07-29T18:49:08 | C++ | UTF-8 | C++ | false | false | 5,409 | h | SDLMixerBackgroundMusic.h | /**
* @file
* @ingroup Audio
*/
#ifndef BB_SDL_MIXER_BACKGROUND_MUSIC_H
#define BB_SDL_MIXER_BACKGROUND_MUSIC_H
#include "BaconBox/PlatformFlagger.h"
#include <stdint.h>
#include <SDL2/SDL_mixer.h>
#include <sigly.h>
#include "BaconBox/Audio/BackgroundMusic.h"
namespace BaconBox {
/**
* SDL_mixer implementa... |
109f8d0dfa0dbaca241b788be2cd334b45f0cf03 | 1f6526b7b35e89cfc266299b4324f6fa915cbae5 | /Common/src/bin/CommThreadTest/CommThreadTest.cpp | e879700920554fb7e32e8651f39453ac21699db3 | [] | no_license | gordoneill/PiBox | f850c0f41d283ef677e6142f8458c2945d008395 | cb9ef7597ed23ad52cf3eb478a716680317565b5 | refs/heads/master | 2020-07-30T04:21:12.688533 | 2019-12-05T01:13:51 | 2019-12-05T01:13:51 | 210,084,062 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,299 | cpp | CommThreadTest.cpp | #include "WMsg_encoder.h"
#include "msgQueueConst.h"
#include "LogMgr.h"
#include <string.h>
#include <iostream>
#include <mqueue.h>
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
enum eSystemType {
CONSOLE,
CONTROLLER
};
mqd_t sendBox, recvBox;
static void recvBoxOnData(union sigval sv)
{
st... |
6ef8e5c477774d529e4df308ca1731e9b2c67a2e | 38dc0dea190777d43bc8d2fb2ea76dd1a1ace41f | /code/25_recursion_bag.cpp | a9e6e0b5d50151f3fb159a744726be001a58ce8d | [] | no_license | chenkeshuai/algorithom | 07f149be2a7711010eaa9b769f9b08a3b695cb35 | 740a4df01fc28a01a337a25438787d098fe32872 | refs/heads/master | 2023-02-10T11:02:28.601794 | 2021-01-12T16:58:07 | 2021-01-12T16:58:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,284 | cpp | 25_recursion_bag.cpp | #include<iostream>
#include<queue>
#include<stack>
#include<unordered_set>
#include<algorithm>//max
#include<cmath>//abs
using namespace std;
//给定两个长度都为N的数组weights和values,weights[i]和values[i]分别代表 i号物品的重量和价值。
//给定一个正数bag,表示一个载重bag的袋子,你装的物品不能超过这个重量。返回你能装下最多的价值是多少?
class Solution{
public:
//===========暴力递归
... |
00f2bd5fa8e42557b5479a05ab7324d39e0db7aa | 2d9579fca8df884176077ec4d49c40e7840762e8 | /dquery.cpp | 685558d8952e49a76550968b774689fc54e24e60 | [] | no_license | Princu7/SPOJ | 20377e5a741616218d36f33ac0c50ef0f608342a | 26123aa3f8d53d886f686d3b90dfa093e33794bb | refs/heads/master | 2020-04-06T06:28:40.949103 | 2016-10-26T03:46:40 | 2016-10-26T03:46:40 | 69,349,856 | 0 | 1 | null | 2016-10-26T03:46:40 | 2016-09-27T11:29:21 | C++ | UTF-8 | C++ | false | false | 2,070 | cpp | dquery.cpp | # include <iostream>
# include <cstdio>
# include <math.h>
# include <algorithm>
using namespace std;
int counter=0,blockSize=0,answer=0,a[30009];
struct queries
{
int left,right,index;
}Q[200003];
int freq[1000009]={0};
bool funcSort(const queries& a,const queries& b)
{
if(a.left/blockSize<b.left/blockSize)
... |
2ddb05888171c01a0a43585f1e927377b796da7b | 2d1716576d0342fe5f6a184046e3ceb5bf474cdd | /openCv/program4/src/program4.cpp | 3ca91f151bf621593fc5529315899933b90c5922 | [] | no_license | zuza3012/cpp_nauka | 580aa438e884b49de1878729081e07c98bdd4ed8 | feb7a4bb420fcd889551d1e0d4832a0a9f8b0c10 | refs/heads/master | 2020-04-12T17:10:26.547603 | 2019-01-09T20:55:55 | 2019-01-09T20:55:55 | 162,636,930 | 0 | 1 | null | 2018-12-20T23:46:21 | 2018-12-20T22:18:01 | C++ | UTF-8 | C++ | false | false | 5,686 | cpp | program4.cpp | #include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/imgcodecs.hpp>
#include <string>
#include <iostream>
using namespace std;
using namespace cv;
const int alpha_slider_max = 100;
int alpha_slider;
double alpha;
double beta1;
Mat src1, src2, dst;
static void on_trackbar (... |
ba34a15970afa07c2a4e8aa1d63baec12873891f | 6ac980a4b545f5409b742160c04167d0aaf23902 | /Game.h | 4de19bf03c2d26c68ca105a5d08c8d12fe17a556 | [] | no_license | haydenmc/SDLHelloWorld | 9d1e74e2e455b7b2d27ab68ec6c3722a851ec010 | 7c80a21731fb31b4b59d1f8d06445673141710c6 | refs/heads/master | 2020-11-25T07:32:21.315991 | 2019-12-28T22:29:12 | 2019-12-29T00:53:24 | 228,558,172 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 732 | h | Game.h | #pragma once
#include "Graphic.h"
#include <chrono>
#include <memory>
#include <SDL.h>
#include <SDL_image.h>
#include <vector>
class Game
{
public:
Game(int w, int h, int frameRateLimit = 0);
void Start();
private:
// Private methods
void initialize();
void update(std::chrono::nanoseconds delta... |
053b407649554acf5482ccccb5bf95358c4926f3 | 68be1b49e9625b5cf010389af16fb08b4dcf7926 | /src/Game.cpp | b4e7df63aedb008decf0874d24932f1874bdef7b | [
"ISC"
] | permissive | 12o3-design/open-space-project | 3022ac03627129254fd1d327e950f523335cc27c | 4f50e0f317b0be83a3c30ebe6d62c4930783bb8f | refs/heads/master | 2021-01-13T01:07:03.429084 | 2016-05-09T18:46:41 | 2016-05-09T18:46:41 | 51,089,855 | 1 | 1 | null | 2016-02-11T03:53:08 | 2016-02-04T16:43:57 | C++ | UTF-8 | C++ | false | false | 2,574 | cpp | Game.cpp | #include "Game.h"
#include "Player.h"
#include "DrawComponent.h"
#include <stdio.h>
#include <SDL2/SDL.h>
bool Game::inst_ = false;
Game::Game()
{
if (!inst_)
{
window_ = NULL;
renderer_ = NULL;
entities_ = new Entity*[numEntities_];
for (int i = 0; i < numEntities_; i++)
{
entities_[i] ... |
943f4fc8b35f9339ad37015158334211e7e096b5 | d0d0ae6bb5a300fe15b075b6857834def9435a89 | /Sort a Stack Using Recursion/main.cpp | c954ad7df7a862060414c7d93dc0cb12781a915a | [] | no_license | gagan86nagpal/Interview-prep | 4664eaaea3ac3e00215d3d7ac4945c25050785eb | 0548575edf81e9de3b7324fcf16c8b52ccb0ec71 | refs/heads/master | 2021-01-16T18:17:56.974517 | 2017-11-04T02:08:39 | 2017-11-04T02:08:39 | 100,056,019 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,030 | cpp | main.cpp | #include <iostream>
using namespace std;
class Stack{
private:
int top=-1;
static const int max=1000;
int a[1000];
public:
void push(int c)
{
a[++top]=c;
}
int pop()
{
return a[top--];
}
bool isEmpty()
{
return top==-1;
}
int getTop()
{
... |
c8240f4baad8eb0dbc7d408093d3545f35853796 | 85dceead425044850dd53bedba5cfc47e2798fea | /strtype.cpp | ecae43763751d7a1ab60656450b346d751ee9bcd | [] | no_license | goshabog/study | 2d0ce16ad285bb5ca732b39fcf198e71c053b6ae | 68a53836e0662f4131a845b684a8071cec342b9d | refs/heads/master | 2023-08-22T07:00:59.182484 | 2021-10-24T18:34:16 | 2021-10-24T18:34:16 | 113,469,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,223 | cpp | strtype.cpp | #include <iostream>
#include <cstring>
using namespace std;
class strtype
{
char *str;
int len;
public:
strtype(char *s);
strtype(int l);
strtype();
~strtype();
void show() { cout << str << endl;}
strtype operator+(strtype s2);
strtype &operator=(strtype s2);
};
strtype::strtype(... |
76948be23df91621fc4a2ad9f33d6f2ff2ca1deb | 1b90be9561c10508eea59cb36c1f1665d0ef947f | /test/unit/math/mix/fun/rows_dot_self_test.cpp | 4693dba707ca744ad5b68bdfb2a546dd72ae6839 | [
"BSD-3-Clause",
"GPL-2.0-only",
"Apache-2.0"
] | permissive | stan-dev/math | 473e7c1eaf11f84eaf2032c2455e12ba65feef39 | bdf281f4e7f8034f47974d14dea7f09e600ac02a | refs/heads/develop | 2023-08-31T09:02:59.224115 | 2023-08-29T15:17:01 | 2023-08-29T15:17:01 | 38,388,440 | 732 | 240 | BSD-3-Clause | 2023-09-14T19:44:20 | 2015-07-01T18:40:54 | C++ | UTF-8 | C++ | false | false | 1,849 | cpp | rows_dot_self_test.cpp | #include <test/unit/math/test_ad.hpp>
TEST(MathMixMatFun, rowsDotSelf) {
auto f = [](const auto& x) { return stan::math::rows_dot_self(x); };
Eigen::MatrixXd a00(0, 0);
Eigen::VectorXd v0(0);
Eigen::RowVectorXd rv0(0);
stan::test::expect_ad(f, a00);
stan::test::expect_ad_matvar(f, a00);
stan::test::expe... |
2be6f817796e1695dd7e60a80f42661e77f2760c | c4b84b41e2de66623d08f9c57ffb05e1ba22b1a1 | /stage_2/src/loginwindow.h | 596c080da7dd4a7074407d68464ac922c45b6f59 | [
"MIT"
] | permissive | FerrisChi/E-trading-platform | 986dc5a833986f20aefc326a318d74dbf56bb59b | c00fce8415c9254433a1d50b3db18fb9f1421dfc | refs/heads/main | 2023-08-29T10:14:21.550642 | 2021-10-29T09:42:05 | 2021-10-29T09:42:05 | 371,100,852 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | h | loginwindow.h | #ifndef LOGINWINDOW_H
#define LOGINWINDOW_H
#include <QMainWindow>
#include <QValidator>
#include "product.h"
#include"user.h"
namespace Ui {
class LoginWindow;
}
class LoginWindow : public QMainWindow
{
Q_OBJECT
public:
explicit LoginWindow(QWidget *parent = nullptr);
~LoginWindow();
signals:
void ... |
2b9417142268f650b2251cf14e7f5f77c75c3b66 | ece990e9a519b09dca33f1820a2e5ea9f094683e | /src/Network/Algorithm/base64.cpp | de13d4f1dc19380f8dc4de72cb3e9d38bb40faa3 | [] | no_license | rodRigocaU/Final-Proyect-Redes | 9b5ed56bb4b224fa18d5472155a3ca7289b807a0 | 59dc888d55d43df69693ca813793d58738e768d9 | refs/heads/main | 2023-06-16T13:02:46.254676 | 2021-07-13T19:35:19 | 2021-07-13T19:35:19 | 371,067,421 | 0 | 5 | null | 2021-07-13T02:17:10 | 2021-05-26T14:40:26 | C++ | UTF-8 | C++ | false | false | 1,314 | cpp | base64.cpp | #include "Network/Algorithm/base64.hpp"
#include <bitset>
#include <iostream>
#include <sstream>
const int8_t base64_chars[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789/+";
int32_t getIdxBase64(const int8_t& c){
for(int32_t letter = 0; letter < 65; ++letter)
if(c == base64_chars[letter]... |
1b223f790a4c22cf68bf6b7f08738bef454985f2 | 84111e5fadf24303d6dfad2aa8113a396eed6f89 | /examples/FIR/src/main.cpp | 248a03ed71dc76aa442ee675640cbea37156a9de | [] | no_license | yrasik/SystemC_AMS_Lua | dcc8f1a90bcb80cc04ceed2dfb601be47054e411 | 771c50e58c42ac67236231ac607eda2465054734 | refs/heads/main | 2023-02-16T20:41:49.670505 | 2021-01-16T19:38:31 | 2021-01-16T19:38:31 | 321,004,655 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,820 | cpp | main.cpp | /*
* This file is part of the "SystemC AMS Lua" distribution (https://github.com/yrasik/SystemC_AMS_Lua).
* Copyright (c) 2020 Yuri Stepanenko.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Founda... |
6567eab96e47e8984bbc17eea82b8effd008ecb5 | ca33ef9ad2e3149a9e441ba5b2ac4557ccd94150 | /assignment-05-alhusseindev/task-02/main.cpp | 0fd60484189cd35d32c23797809607b499826f84 | [] | no_license | alhusseindev/C-Plus-Plus | f5a89bf75cb9654bf4f40393dde420bc7b028a93 | 9aee0bb306346137734e3d612c0198eb263e46cc | refs/heads/main | 2023-02-11T07:25:52.887614 | 2021-01-02T19:30:54 | 2021-01-02T19:30:54 | 324,780,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <random>
#include <fmt/format.h>
#include <cmath>
#include <ruc-sci-comp/plot.hpp>
using namespace std;
int main(int argc, char **argv){
auto max_count = std::stoi(argv[1]);
if(argc < 2){
cerr << "Invalid number of arguments - ... |
5212ccafa94c5f4c510c154633edcc76dd48f2b4 | 50bf585579f799a3055f8676b1b275f50be6150a | /Project/car/car/usr/inc/motor.h | 15de8b7f4de019ab0148961ae85758e6a7d87687 | [] | no_license | 15712311828/diansaicamera | c73814d04f967c5e2479075dd97642430b49b6ed | efb5a61f4c91a3063eaf61a3aaa8eb6b76e6770a | refs/heads/master | 2022-04-11T06:56:45.065106 | 2017-08-14T13:27:46 | 2017-08-14T13:27:46 | 100,270,605 | 0 | 1 | null | 2020-03-08T10:02:28 | 2017-08-14T13:28:25 | C | UTF-8 | C++ | false | false | 741 | h | motor.h | #ifndef _MOTOR_H_
#define _MOTOR_H_
#include"common.h"
#include"ftm.h"
#define MOTOR_HZ (10*1000)
#define PWM_EN PTC0
#define PWM_EN_INSTANCE HW_GPIOC
#define PWM_EN_PIN 0
#define MOTOR_FTM HW_FTM0
#define MOTOR1_PWM HW_FTM_CH0
#define MOTOR2_PWM HW_FTM_CH1
#define MOTOR3_PWM HW_FTM_CH2
#define MOTOR4_PWM HW_FTM... |
6678806b26ec7fff49596713de4e7a356a3df61f | 55aec4540ef7dcd52c26aa04e4557e5d9aa72771 | /generateData.cc | 0efe2d475fa269a096bd5e9d11e6e9e0009cccd9 | [] | no_license | SridharaDasu/UltraFastSim | 255f91a309b125f00d11a6edc127208bde4d67c7 | 321bbd49f64d07d812fa9c543ebc188dc378dde3 | refs/heads/master | 2021-01-21T11:45:04.056423 | 2016-03-06T02:35:58 | 2016-03-06T02:35:58 | 11,505,448 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,480 | cc | generateData.cc | // This simple program generates various signal processes for
// various physics processes.
// It includes the mixing of required level of pileup.
// It then takes pythia output and runs it through very simplistic
// detector simulation using parameterizations, including making
// isolated light leptons, photons, comp... |
c1d20a264402154a7c15d6224ce8b5c1199e0fa3 | 6667a25d9b41bd8487848a0c7721f97cd301b8eb | /embeddedgmetric.h | 20015d472cb9f55a6edeef5f574097a94aa8ae80 | [] | no_license | dionysusxie/gmetric | b882b9f280bf8539d8822fc896ec40de62ddf505 | 820b5b181536418490515bd179facfccbcfa679c | refs/heads/master | 2020-04-05T23:41:11.651294 | 2013-07-05T06:08:09 | 2013-07-05T06:08:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,398 | h | embeddedgmetric.h | /**
* This is the MIT LICENSE
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright (c) 2007 Nick Galbreath
*
* 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
* r... |
7471cab642195702542e9db7c9794bdc82ccb477 | 8bc5715e9fb0a18cb4c70a271b22dc108fdfe4f8 | /Test1/turn_right.ino | 32fc6e45e7c760605c8b28515566d6a4bf441be1 | [] | no_license | ossilampe/PCB-Projekte | f2c8fd85ee67a5c2eace2e35d7f48481efd394b3 | f07ad613103d3a10ed10fa0b44190b0359f76f91 | refs/heads/master | 2020-05-29T15:11:18.245514 | 2017-10-30T17:50:03 | 2017-10-30T17:50:03 | 60,724,086 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | ino | turn_right.ino | void TurnRight() {
int SLEEP=350;
// Lift Leg1 leg3 leg5
LEG1_B180();
LEG1_C0();
LEG3_B180();
LEG3_C0();
LEG5_B180();
LEG5_C0();
delay(SLEEP);
// Turn leg1 leg3 and leg5 and body to the right (leg2 leg4 leg6)
LEG1_A180();
LEG3_A0();
LEG5_A0();
LEG2_A0();
LEG4_A0();
LEG6_A180();
delay... |
260d021916f4186fd9e6885ac1316f66891ed068 | 80e206a65755fc516cd4e76ef0dc32569785132f | /include/detectclass.hpp | 45f17f99f6e9ead5e532a6e6f1e8711097dcbace | [] | no_license | sakshi-s/Ground_based_people_detection | ddeb45066177fbdfaa83422c49c2b53a846f9818 | 1d9de90fdfa156428472df0792a292f3b0676b1c | refs/heads/master | 2020-06-28T21:20:03.211219 | 2019-08-03T07:22:13 | 2019-08-03T07:22:13 | 200,344,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,975 | hpp | detectclass.hpp | #ifndef _MY_DETECT_CLASS_HPP_
#define _MY_DETECT_CLASS_HPP_
#include "detectpeople.h"
template <typename PointT>
GroundBasedPeopleDetectionApp_M<PointT>::GroundBasedPeopleDetectionApp_M ()
{
rgb_image_ = pcl::PointCloud<pcl::RGB>::Ptr(new pcl::PointCloud<pcl::RGB>);
// set de... |
4bb52bb7b4a0d369fa9a5f8e5fb35cd93e4b3444 | 11525b5baa183425c555212d96fa8d03f10544b4 | /src/gamemachineqt/src/gamemachinewidget.cpp | 8873b54886d6481736ea476dee5c19e24ed3ada0 | [] | no_license | heusunduo/gamemachine | 4f9e19f7900b43b75061db7295130d967dd9ef82 | a3b1082519c8526855ec862af3378e46de335f93 | refs/heads/master | 2023-03-17T23:17:04.231411 | 2020-10-14T02:28:06 | 2020-10-14T02:28:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,614 | cpp | gamemachinewidget.cpp | #include "stdafx.h"
#include "gamemachinewidget.h"
namespace
{
using namespace gm;
bool g_isGameMachineInited = false;
IWindow* createGameMachineChildWindow(IGameHandler* handler, float renderWidth, float renderHeight, HWND hContainer, IFactory* factory)
{
IWindow* window = NULL;
factory->create... |
0d062018111706b3c436c606d6f51827eb16957f | 9b6eced5d80668bd4328a8f3d1f75c97f04f5e08 | /bluetooth/btstack/avdtp/avdtpLogicalChannelFactory.h | 6e621294843e58ec567a43c38a729a98900d5329 | [] | no_license | SymbianSource/oss.FCL.sf.os.bt | 3ca94a01740ac84a6a35718ad3063884ea885738 | ba9e7d24a7fa29d6dd93808867c28bffa2206bae | refs/heads/master | 2021-01-18T23:42:06.315016 | 2010-10-14T10:30:12 | 2010-10-14T10:30:12 | 72,765,157 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,199 | h | avdtpLogicalChannelFactory.h | // Copyright (c) 2003-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/e... |
c9d57c3f4fd428d4b044293cc903a66707de95c8 | b08a4eeabc5495d24f309d9a9ea6da7104277f4a | /All Them Pixels/All Them Pixels/MontoneChain.cpp | 8b5c34c81e985f2366b4cd257cc91c249e635ad1 | [] | no_license | Kanel/AllThemPixels | f776b49005eeff7cb99e32184c86dfcea55c2339 | 61be150419c46ac2a832a06f95f3bdc3af3c7125 | refs/heads/master | 2021-01-10T19:32:32.066249 | 2013-09-22T17:07:52 | 2013-09-22T17:07:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,137 | cpp | MontoneChain.cpp | #include "MonotoneChain.h"
bool MonotoneChain::compare(Vector2f a, Vector2f b)
{
return (a.x < b.x) || (a.x == b.x && a.y < b.y);
}
float MonotoneChain::cross(std::vector<Vector2f> verticies, Vector2f next)
{
Vector2f o = verticies[verticies.size() - 2];
Vector2f a = verticies[verticies.size() - 1];
Ve... |
56c45ee0f236b77bcc3481d87c3922b3c122075e | 1e229c70a50309e6082abe7266eb53d6021d6433 | /src/octreeliquid/scenetester3.cpp | b00b2f593ccab1200eabdd6c386d0e96f69752cd | [] | no_license | ryichando/shiokaze | e3d8a688c25a5aabb4eac6576bcc4510436d181d | 62e25b38882a1676c4a84181aa8eedaf716a0d0e | refs/heads/master | 2022-06-21T04:10:44.898687 | 2022-06-13T11:04:55 | 2022-06-13T11:04:55 | 149,598,476 | 57 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,937 | cpp | scenetester3.cpp | /*
** scenetester3.cpp
**
** This is part of Shiokaze, a research-oriented fluid solver for computer graphics.
** Created by Ryoichi Ando <rand@nii.ac.jp> on January 10, 2020.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy of
** this software and associated documentation files (the "... |
872550023280d1c3253f4def71525f55e6ff7074 | 39e0e92f15cea8203df588d420b466cad1c92927 | /include/db/collection.hpp | cbf4908071bc323cf9ce441726e7ccbef6568f49 | [] | no_license | hellodoge/dbson | 8a4941b74d57b34ce6aa6fe20d1a9309c6b38779 | 7630def26c56a8a80b0faa3c13e6f43401c8f040 | refs/heads/master | 2023-07-17T17:53:50.877128 | 2021-08-10T13:53:09 | 2021-08-10T13:53:09 | 393,194,194 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 622 | hpp | collection.hpp | #ifndef DBSON_COLLECTION_HPP
#define DBSON_COLLECTION_HPP
#include <map>
#include <chrono>
#include <string>
#include <string_view>
#include <boost/optional.hpp>
#include "db/object.hpp"
#include "binary_json/object.hpp"
using namespace std::chrono_literals;
namespace db {
struct Collection {
Object &... |
112c4d6b529114f812d4adc0601e61b95464875f | 2340859cdfd21ecf9bf5dd3d4dc3304b89ebf115 | /dogpack-developer/lib/tests/test_dog_math.cpp | f07df298e89367b673fcfc941baa603aeaca1baf | [] | no_license | smoe1/ThesisCode | 56c97c440f7f8182f5be7dba76848741dcf9a9d6 | bd535bc99d0add16787524bd2ac5c4a53f2d86ee | refs/heads/master | 2021-01-24T07:18:55.455846 | 2017-06-07T02:15:40 | 2017-06-07T02:15:40 | 93,338,238 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,532 | cpp | test_dog_math.cpp | #include "dog_math.h"
#include "dogdefs.h"
void test_minmod()
{
double a[3];
double b[3];
a[2] = 2.;
a[1] = 1.;
a[0] = 0.;
b[2] = -2.;
b[1] = -1.;
b[0] = -0.;
for(int i=0;i<3;i++)
{
printf(
" signbit(a[%d]) = %d"
" signbit(b[%d]) = %d\n",
i, signbit(a[i]),
i, signbit(b[i... |
48fc7be9c6be80f2f75eb1e5fa38af9128c65a79 | b9a94bff810960060dcfcf3bce367b1068122d15 | /lab10_circbuf.cpp | c4ce1792b0fc2fcf86dea2f3608f3a93216fe19c | [] | no_license | woodnat3/cse_232 | 982b19c16f6d87feb8c0ad6eff10b8027305092a | 1e71f6fb968b08eda4ccb3f857715891cbd7567d | refs/heads/master | 2021-02-07T09:42:06.564209 | 2020-02-29T17:33:47 | 2020-02-29T17:33:47 | 244,010,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,784 | cpp | lab10_circbuf.cpp | //Nate Wood
#include "lab10_circbuf.h"
#include<exception>
using std::runtime_error;
CircBuf::CircBuf(size_t s){
sz_ = static_cast<int>(s);
buf_.resize(s);
}
CircBuf::CircBuf(initializer_list<long> l, size_t n){
try{
if (l.size() < n){
buf_.resize(n);
copy(l.begin(), l.end()... |
400c821932e2dbcf835949db4dc964432448c057 | 8787c0542d1c4aa970453664f478a5b11ab811c7 | /squirrel_planning_execution/src/FinalReviewRedux.cpp | 700d17a9ba643a4598e8b92986bc6852d9c1c71e | [] | no_license | squirrel-project/squirrel_planning | fc065daec981ba046953ebea17ca299046230b69 | 270e8e6f2906fe310699d14bb5d77fd48b309581 | refs/heads/indigo_dev | 2021-01-20T10:46:22.638661 | 2018-03-12T08:49:31 | 2018-03-12T08:49:31 | 19,309,294 | 0 | 10 | null | 2018-03-12T09:00:21 | 2014-04-30T09:52:18 | C++ | UTF-8 | C++ | false | false | 19,345 | cpp | FinalReviewRedux.cpp | /**
* Main function for the final review.
*
* It is a loop that selects what goals to plan for, givent the current state. Options are:
*
* - Explore the room to find objects to identify.
* - Examine objects.
* - Tidy examined objects.
*
* These can be used within a single planning problem. All the while the... |
70d24672b6a9ee3528cb980861a00c6366f3949b | 1b6631fdb38955bcce9df1fe1f96945c0582daf7 | /development/c/msg/2.05/DISE/YYYYMMDDhhmm.h | 85f68452f3bd2403e3ad8709b2de33af176d6f2b | [] | no_license | ARPASMR/elab_msg_rss | 3720212fb4e5b26c6513417f788f509841ab3ee9 | d75d89e20c2090b61b52ddc7e3770f9581252fba | refs/heads/master | 2020-03-15T06:09:50.384136 | 2018-05-30T08:41:45 | 2018-05-30T08:41:45 | 132,001,628 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,494 | h | YYYYMMDDhhmm.h | #ifndef YYYYMMDDhhmm_included
#define YYYYMMDDhhmm_included
/*******************************************************************************
TYPE:
Free functions.
PURPOSE:
Conversion of a CMSGTime object from/to a 'YYYYMMDDhhmm'- or
'YYYYMMDDhhmmss'-formatted string.
FUNCTION:
Conversion of a CMSG... |
5a2082da1ba575885e7b50064983608055ac591c | c0c44b30d6a9fd5896fd3dce703c98764c0c447f | /cpp/Shared/NavGzipUtil.cpp | 04c9b813694a94761052e693885b21abdb0caa1e | [
"BSD-3-Clause"
] | permissive | wayfinder/Wayfinder-CppCore-v2 | 59d703b3a9fdf4a67f9b75fbbf4474933aeda7bf | f1d41905bf7523351bc0a1a6b08d04b06c533bd4 | refs/heads/master | 2020-05-19T15:54:41.035880 | 2010-06-29T11:56:03 | 2010-06-29T11:56:03 | 744,294 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,710 | cpp | NavGzipUtil.cpp | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of co... |
cb60b196b2c0c1f0ec2becbc760784cdce313b73 | c8bc7f4de1543b4a5d5f0d50ef75b1afd995c47b | /main.cpp | b861f95fe7534d9787dd362290e5c65a3109d426 | [] | no_license | AGlass0fMilk/ep-example-ble-serial | 74942c25cdcc6ae572ff7dea0f002f19433fbd2d | f1cbc7a321fa1617e2f0de96684e399038e0f0ea | refs/heads/master | 2023-01-03T22:44:10.040503 | 2020-10-19T20:44:49 | 2020-10-19T20:44:49 | 305,508,939 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,534 | cpp | main.cpp | /* mbed Microcontroller Library
* Copyright (c) 2017-2019 ARM Limited
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... |
527f14c91ccf60f602acb8b4d9f439ab7a47f7e6 | 80c1f66a145ea8f37191d7df5e3893ca9826c7b6 | /Source.cpp | c37d3f2c13fa5eb0a9a41851992b75463c5871d7 | [
"MIT"
] | permissive | AneesMuzzafer/21-Flags | beba10bad25b273aa1af2e0708b6c97d42facfd8 | dca29c219a75400621a1756148cf1846ef581b3a | refs/heads/master | 2021-08-08T04:20:45.169208 | 2017-11-09T15:10:57 | 2017-11-09T15:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,466 | cpp | Source.cpp | #include<stdio.h>
int main()
{
int a[21];
int i, j = 0;
int p1, p2, t;
for (i=0;i<21; i++)
{
a[i] = 21-i;
}
printf("\n\n\n\t\t\t\t21 FLAGS\n\n\t\t\t\tInstructions.\nThere are 21 flags. Each player can take 1,2 or 3 flags in each turn.The player to take the last flag wins.\n\n\t\t\t|");
for (i = 0... |
f1a7c2a3352ee218effc618c84b64f16810d0c96 | a5ad5f4fcbc5dcc8423f04f587b50a11d38441de | /AllProject/All.ino | 1689a19a3319c6b14b23277067a3ae74c6959abd | [] | no_license | mananssnay/SuperAlcoholDispenser | 677a81848c808f6265e872874f79b50660d2e36a | e80e39201306700b9af8b868edaf81601807f735 | refs/heads/master | 2022-11-10T09:46:54.294930 | 2020-06-26T03:51:39 | 2020-06-26T03:51:39 | 272,053,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,894 | ino | All.ino | #include <Servo.h>
Servo myservo;
#include <Wire.h>
#include <Adafruit_MLX90614.h>
#include <LiquidCrystal_I2C.h>
Adafruit_MLX90614 mlx = Adafruit_MLX90614();
LiquidCrystal_I2C lcd(0x27, 16, 2);
int trigPin = 13;
int echoPin = 12;
int servoPin = 9;
long duration, distance, average;
long aver[13];
... |
5fa960e45473005c66af39a485c522dee8b3c226 | b39dba38a99bc970d7c861517ab82bb92f5fc548 | /mptrack/MPTrackUtilWine.h | bae1d38edc2cf13c0e550598ab93d0f25e81af5d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | OpenMPT/openmpt | 711aef385c6a098a9a2aaefa25f6563e4501d2e8 | 41c5bde364ed61afb414ac38792715ee9433c01c | refs/heads/master | 2023-09-01T21:37:18.329917 | 2023-09-01T10:10:22 | 2023-09-01T10:10:22 | 82,913,630 | 501 | 87 | BSD-3-Clause | 2023-07-14T08:47:12 | 2017-02-23T10:04:01 | C++ | UTF-8 | C++ | false | false | 1,129 | h | MPTrackUtilWine.h | /*
* MPTrackUtilWine.h
* -----------------
* Purpose: Wine utility functions.
* Notes : (currently none)
* Authors: OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#pragma once
#include "openmpt/all/BuildSettings.hpp"
#include "../misc/mptWine.h"
... |
0fa7a69b5c5bfcbe80611079b7c0833cb00eb911 | f3f1c3fdd9054ad5cef148f82d401a238f27a305 | /PT STG/stage.cpp | f2fb1d3b593d37aae0673c312e786de006ca08c6 | [] | no_license | handmanp/PT-STG | 1c1ae2d4c1babd8993b23a0251c6691bebdc8064 | 5b02d2ea336a659ba4fabc58c2836bb84ffec8c7 | refs/heads/master | 2021-08-27T22:21:47.015652 | 2017-11-14T21:13:49 | 2017-11-14T21:13:49 | 107,426,721 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 13,626 | cpp | stage.cpp | #include "global.h"
using namespace std;
// ステージの初期化
// sx:ステージ幅 sy:ステージ高さ
void my_Stage::init(int sx, int sy) {
// クラス用再定義
stage_size_x = sx; //サイズ
stage_size_y = sy;
// 3次元配列の動的確保(カッコイイ)
stage_size = new int*[stage_size_x];
for (int i = 0; i < stage_size_x; i++) {
stage_size[i] = new int[st... |
3a8098732613ac7c762ffa554788ee2f23fdc1ec | 45ff2429af133fc2e36803a2a8e1492be5b73dc9 | /Question9/9_2.cpp | fdb64ce8c926566a4e3a355d140a05675aa58dd8 | [] | no_license | piyushkandpal/CrackingTheCodingInterview | f663d7398a88201df43d44134abecb0cd5e03e1e | a5afb5ee3b5dc6b859141ed7d13a8e47c67d6d4f | refs/heads/master | 2016-09-06T21:29:16.629512 | 2015-05-10T19:02:13 | 2015-05-10T19:02:13 | 35,383,539 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,142 | cpp | 9_2.cpp | #include<iostream>
#include<vector>
#include<map>
using namespace std;
class Point
{
private:
int x,y;
public:
Point(int x,int y)
{
this->x = x;
this->y = y;
}
friend bool operator<(const Point& lhs,const Point& rhs);
/* OR we can also kee... |
4d1ad0ad9cd68e1d64c09d43eaafd4f5906a9b3d | 2dbb600c36513e2a43aed48e83403fd20dbb4507 | /ND_A2WR/asr_ftc_local_planner/include/ftc_local_planner/join_costmap.h | e6cd72c385118ad15aadbf3e2a1120f03e3f738d | [
"Unlicense",
"BSD-3-Clause"
] | permissive | Nurullahdmrly/autonomous2wvehicle_rl_nc | 5cf5c652c8d067e2bb400c7d883cd3f5ac8b4e38 | 45bcc2e201f8d4028f1baa24962b6021baa8e437 | refs/heads/main | 2023-02-09T17:16:54.472107 | 2021-01-07T08:04:41 | 2021-01-07T08:04:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,645 | h | join_costmap.h | /**
Copyright (c) 2016, Marek Felix
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following d... |
17dc23c76aeaa2035d22b791a289265ccb42412e | b2e3a31147b8dd73890287a53b6ae7c2923adaf9 | /cicada/base/fd.cc | 3675a94984f67155d60fa65af3e63fea1cb96d83 | [
"BSD-2-Clause"
] | permissive | ivanallen/cicada | ca3a5dbc09ee9333c30955cd6a6da2ab82a0dc2c | 0842d6133612d15d8867d0696d88251885a7c628 | refs/heads/main | 2023-07-29T17:18:11.839905 | 2021-09-05T15:54:33 | 2021-09-05T15:56:17 | 403,044,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cc | fd.cc | // Author: allen
#include "cicada/base/fd.h"
#include <fcntl.h>
#include <unistd.h>
#include "cicada/base/macro.h"
namespace cicada::base {
Fd::Fd(int fd) : _fd(fd) {
}
Fd::Fd() {
}
Fd::~Fd() {
reset(-1);
}
void Fd::set_block() {
int fd = _fd;
int flags = fcntl(fd, F_GETFL, 0);
if (flags < 0) ... |
011dbf203ebf28d26fe655d1c90bcab762c1342f | 2787a95f57672d5519d8f14549abe05af31ceeb2 | /src/enemy.h | 99d8c173c5db65617f416f92b48fc17266e8e285 | [] | no_license | cm4233/CppND-Pacman-Game | 77105f38ffd2f898e4a04adcf5483107766b065b | 96dcefcc43a82559555f6ec47d26f48618c44a9f | refs/heads/master | 2022-07-12T20:59:20.743953 | 2020-05-18T15:09:44 | 2020-05-18T15:09:44 | 264,972,007 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,462 | h | enemy.h | #pragma once
#include "grid.h"
#include "player.h"
#include <vector>
#include <memory>
#include <future>
class Enemy{
public:
// constructor
Enemy(int a, int b): x(a), y(b){}
// position
int x;
int y;
// virtual function to move enemy
virtual void AI_Move(Grid& grid, Player& player, std::promise<voi... |
06f5deb43133eb3807473eda01bdf4c436da7605 | ab4e13ab16da57d8a15afc7d43be74bf98cc1d4d | /stat_moses/tools/moses/moses/LM/oxlm/Mapper.cpp | f1363ccf0cbeea68f9d1b88d7707321648b1f793 | [
"Apache-2.0"
] | permissive | Deependra-Patel/cs626_project | 48c77c30acf2dc27e75cfdd5f603cac5fa767071 | 4d456e9b41ab63f642b0cb10ee0e2e67c35c3cf3 | refs/heads/master | 2020-03-09T06:48:56.529079 | 2014-11-16T23:57:15 | 2014-11-16T23:57:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,442 | cpp | Mapper.cpp | #include "Mapper.h"
#include "moses/FactorCollection.h"
using namespace std;
namespace Moses
{
OXLMMapper::OXLMMapper(const oxlm::Dict& dict) : dict(dict)
{
for (int i = 0; i < dict.size(); ++i) {
const string &str = dict.Convert(i);
FactorCollection &fc = FactorCollection::Instance();
const Moses::Factor *facto... |
7572ee729c343548b8b1a2f0dd1d3d0b2fe303c5 | 0f73598c7fd6bcb55d83a26353c809b2651e7b44 | /hpp/TimeFormat.hpp | e7caeda6f92b35eea2cd7b1b646615f421629d04 | [
"MIT"
] | permissive | soft9000/era | 5ef5ab45b7216de6bc610593f9ba7a2d652f0733 | 213f6eea2974b7c0f17a4b6bac18763518bd879c | refs/heads/master | 2023-07-10T03:45:05.967994 | 2023-06-24T16:52:05 | 2023-06-24T16:52:05 | 86,218,896 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | hpp | TimeFormat.hpp | #ifndef TimeFormat_hpp1
#define TimeFormat_hpp1
#include "era.hpp"
namespace era01 {
enum FormatType { ftGlobal, ftLocal };
class TimeFormat {
public:
static TimeStruct Parse(string str);
static string Format(const TimeStruct& time, FormatType ft);
static string Format(const TimeGlobal& time);
static stri... |
7655c6695379896f0d31a03b43c31be8c68bb031 | 5cfc68d4a24e7969e78bb15e124fa579400e810d | /Design_Patterns/Smart_pointer.cpp | d016ad9959c878cc5386ad2e74b631ad40984545 | [] | no_license | Pavankumar46/GNP_PROG | 8e7566cd196c991211d58ff30f51d3b057cee5ea | 82ce027595168901e63bebf3d5c70e4df6330d75 | refs/heads/master | 2021-12-31T08:14:24.840944 | 2021-09-24T10:35:04 | 2021-09-24T10:35:04 | 204,048,305 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 865 | cpp | Smart_pointer.cpp | #include <iostream>
using namespace std;
// A generic smart pointer class
class abc
{
public:
int a;
};
class bcd
{
public:
int b;
};
template <class T>
class SmartPtr {
T* ptr; // Actual pointer
public:
// Constructor
explicit SmartPtr(T* p = NULL) { ptr = p; ... |
97dd0bb8469be840bc6a22885df221843120f394 | 070e501345cb31b04f9bee9c437d6e374522081f | /Playstation4/Playstation4/Data.cpp | 1d918d68f018dd1ff472280b0d73af9629936899 | [] | no_license | WallacePereira/Playstation4 | 5e06d3ae1a318dbc8a88ef3c8ffb0a0662d7ed43 | 50eb4df7759fc665b02d0e07e362e5352145a235 | refs/heads/master | 2021-01-12T02:03:44.014950 | 2017-02-06T21:25:24 | 2017-02-06T21:25:24 | 78,463,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,020 | cpp | Data.cpp | #include "Data.h"
#include "Playstation4.h"
#include <iostream>
using namespace std;
Data::Data(int dia, int mes, int ano)
{
this->mes = mes;
this->ano = ano;
this->dia = checarDia(dia);
}
Data::Data(const Data &novaData)
{
this->mes = novaData.mes;
this->ano = novaData.ano;
this->dia = ... |
dfbfbfbdd95c94437254d7da6eddc2fb200dd3b8 | 35cbe063788fbeb956b1c9f26e12eacf5bbe1d00 | /src/builtins/eval_file.hpp | 9ff072bea739a24a7645f201dabf7b6c62553173 | [] | no_license | cbosoft/lisp-interpreter | fcdf8ce5fd1e912cc89926a07e2574ed9981d520 | a9a8b3fefa4bceff22ca731f3f6a90da122dbc35 | refs/heads/master | 2020-09-07T07:40:19.790415 | 2020-06-23T22:02:55 | 2020-06-23T22:02:55 | 220,708,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,218 | hpp | eval_file.hpp | #pragma once
#include "../types.hpp"
#include "../util/formatter.hpp"
#include "../util/debug.hpp"
#include "../util/exception.hpp"
#include "../util/exception_check.hpp"
#include "../object/object.hpp"
#include "../list/list.hpp"
#include "../atom/atom.hpp"
#include "../parser/parser.hpp"
#include "builtin.hpp"
exte... |
3d3bd8d260c6f838f0ec3daa289999488b1534b4 | cbbd486d6bbc1b7c2ace1249412f5240db6efbe0 | /sw_study/1767.cpp | 3c9dcd5802c7475072f86935d15ac70f848ce6fd | [] | no_license | Cafemug/baekjoon-cpp | f383708e17affbaf3be3ed797c8dac14771e1cc8 | cb5452f8d08d071b2f3535009b545555c6a92190 | refs/heads/master | 2021-10-21T02:18:44.017457 | 2021-10-18T12:10:50 | 2021-10-18T12:10:50 | 116,027,319 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | 1767.cpp | #include <iostream>
#include <cstring>
using namespace std;
long long mod = 1000001;
long long n,m,k;
long long d[101][101][101];
long long go(long long x, long long y, long long cnt){
if(cnt ==0) return 1;
if(x<=0 || y<=0 || cnt<0) return 0;
long long &ans = d[x][y][cnt];
if(ans !=-1) return ans;
... |
f040c30436c631ff2d935f17547398f976a069eb | 8e63e4fd669ced86bf07b20be364da5a06bce70d | /UVA/12024 - Hats.cpp | 552e08749804a1fa6846d0b9f4832554b6f14ba5 | [] | no_license | AliOsm/CompetitiveProgramming | 00a1e75a2635532651fcdfb0e478c009adf84032 | af25b7f806e9c22a2176bfd05a1406ce5f1492c3 | refs/heads/master | 2023-03-07T01:17:25.555911 | 2023-02-10T09:09:17 | 2023-02-10T09:09:17 | 70,904,119 | 125 | 58 | null | 2021-02-27T13:13:18 | 2016-10-14T11:29:55 | C++ | UTF-8 | C++ | false | false | 934 | cpp | 12024 - Hats.cpp | /*
Idea:
- We can solve this problem using Dynamic programming and bit masking.
- For each query start with mask contains zeros only and where are
we now in the mask.
- In each state try to put each number i (0 <= i <= n - 1) in the current
mask if the i_th bit is not set and the idx does not ... |
98ea5903dba743f530de335ea17467fe75501b76 | e46f94683c2b48f4b0b79ca1fbe82d3151e95992 | /SmartBin/SmartBin_1/AirQual_TGS26xx/AirQual_TGS26xx.cpp | ef8e6d62df9feb9d28750d46004c9d47fea1427e | [] | no_license | martinosecchi/PervasiveProject | f8a298559bef2c0dc3ebf3217cdba761688d73dd | e4d569557045230575f062669a2d6d64605baf8e | refs/heads/master | 2021-01-15T09:14:33.334357 | 2016-12-13T11:39:13 | 2016-12-13T11:39:13 | 68,688,450 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,571 | cpp | AirQual_TGS26xx.cpp | /**
AirQual_TGS26xx.h - Library for interfacing with the Figaro TGS26xx series of sensors.
Created by Ivan Naumovski, inau @ github.com.
**/
#include "Arduino.h"
#include <SPI.h>
#include <Wire.h>
#include "AirQual_TGS26xx.h"
int TGS26xx::GetGasPercentage(int gas_id) {
float rs_ro_ratio;
float ro; //= Ro;
if ... |
0c3d9346fcfd03c38856966c880043cb9bd3a1ab | d04b8c80334da2e0882db40480e7f7e418306abd | /image_encode.cpp | f784070fbd3bc5253ea94dce4f444e510b1d194d | [] | no_license | ankitvi/stego-crypto | 9733525a2714f5bb64b326c659222e4c48c2e448 | 18147f9a40d6db57b81118f5b5137a3d44144c37 | refs/heads/master | 2020-12-11T07:47:58.113208 | 2015-12-13T10:50:28 | 2015-12-13T10:50:28 | 47,881,592 | 0 | 0 | null | 2015-12-12T14:39:54 | 2015-12-12T14:39:54 | null | UTF-8 | C++ | false | false | 2,627 | cpp | image_encode.cpp | #include "stegosecure.h"
int im_encoder(char *ip,char *hidedata,char *stegokey)
{
IplImage *input,*hide,*output;
uchar *outdata,*indata,*hdata;
//input of images - cover and secret images
input=cvLoadImage(ip,-1);
hide=cvLoadImage(hidedata,-1);
int in_height,in_width,in_channels,dataPos=0,h_heigh... |
ad5347b57920c74afffd25cc3a7adc1fc23dbaf6 | a76a99161691abccc664e52ed1c855fac3768427 | /PlayFabSDK/ExampleProject/Plugins/PlayFab/Source/PlayFab/Private/PlayFabMatchmakerModelDecoder.cpp | e44766102af4b3676c31bdacc2e43426bb383cff | [
"Apache-2.0"
] | permissive | PlayFabTim/UnrealBlueprintSDK | b52f1abcd642a8b80bc53a3b3e3d1588ace58fa3 | dc45d7fdb0e56b641f6e2c2e46aebc5c17a1f2ba | refs/heads/master | 2021-01-21T01:06:18.159938 | 2016-02-12T06:45:37 | 2016-02-12T06:45:37 | 50,624,164 | 0 | 1 | null | 2016-01-29T00:14:24 | 2016-01-29T00:14:24 | null | UTF-8 | C++ | false | false | 3,968 | cpp | PlayFabMatchmakerModelDecoder.cpp | //////////////////////////////////////////////////////////////////////////////////////////////
// Automatically generated cpp file for the play fab models
//
// API: Matchmaker
// SDK Version: 0.0.160125
//////////////////////////////////////////////////////////////////////////////////////////////
#include "PlayFabPri... |
7a06cd5ac40543490d76c9480ffeba2467b30de1 | e14ec17704daafa8bc7945613603a727f0c63aa9 | /CSCPatterns/include/EmulationTreeCreator.h | ac75f063b4ad1e5e9529570ff3e0b3bf359eeebb | [] | no_license | sidhari/CSCUCLA | ec2bf5f866776bb87da388bd7e53d00f09bbf24e | cd82a7f5185efa1360e9ea664e6970a0dde9685e | refs/heads/master | 2020-05-23T09:02:47.452758 | 2019-11-18T19:18:12 | 2019-11-18T19:18:12 | 186,700,179 | 0 | 0 | null | 2019-05-14T21:03:54 | 2019-05-14T21:03:54 | null | UTF-8 | C++ | false | false | 403 | h | EmulationTreeCreator.h | /*
* EmulationTreeCreator.h
*
* Created on: July 9, 2019
* Author: Siddharth Hariprakash
*/
#ifndef CSCPATTERNS_INCLUDE_EmulationTreeCreator_H_
#define CSCPATTERNS_INCLUDE_EmulationTreeCreator_H_
#include "../include/Processor.h"
class EmulationTreeCreator : public Processor {
int run(std::... |
4294535edf0a5b67ff13e07eaa3c96c0f198eb95 | a5cdba8139aa6800601b9f7794050dcd39e81c39 | /Gunfire/src/gun/Timer.cpp | 6a0309565083b1d0813cd15df0217bc73d317f26 | [] | no_license | dsc5085/Gunfire | d17c0119937a10c8971292a170bc467f7e5c56e1 | f4f0c84153a154c2249547a690ac5269acabca50 | refs/heads/master | 2021-01-23T15:08:21.652624 | 2014-10-18T03:14:08 | 2014-10-18T03:14:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 674 | cpp | Timer.cpp | #include "Timer.h"
gun::Timer::Timer()
: is_running_(true), max_time_(0), current_time_(0)
{
}
gun::Timer::Timer(double max_time)
: is_running_(true), max_time_(max_time), current_time_(max_time)
{
}
gun::Timer::Timer(double max_time, double current_time)
: is_running_(true), max_time_(max_time), current_time_(cu... |
e8a5592c962130f19840385c594a9a4b2b4a0cca | a533446d05eb182521869a9bea731280e031c293 | /shogi/shogilib/Notation/Sfen.h | 77a281a77bef295a8d91e5c14f93e00b9bff9ba0 | [] | no_license | ai5/shogi_repeat | be0eb6b03b3cedb0ca38c523f41a508a026a9b0b | 09336dd33b0d37aea5b4912c465e6e3612d6aa9a | refs/heads/master | 2021-01-18T21:24:48.085244 | 2016-05-23T09:39:40 | 2016-05-23T09:39:40 | 49,412,900 | 6 | 3 | null | 2018-04-22T23:40:00 | 2016-01-11T08:38:36 | C++ | UTF-8 | C++ | false | false | 1,682 | h | Sfen.h | #pragma once
#ifndef SHOGI_SFEN_H_
#define SHOGI_SFEN_H_
#include <string>
#include "types.h"
#include "Move.h"
class Notation;
class Position;
class Sfen
{
private:
static const PieceType handPieceType[];
public:
Sfen();
~Sfen();
void Load(Notation& notation, const std::string& filename);
void Save(Notatio... |
5d5d3608a444089e240bb8878387c4854fb26434 | d266eb7b6ba92c7658b563975c14b64d4e5d50cc | /libs/guicore/solverdef/solverdefinitiongridattributeintegeroptioncell.h | dcdc3783f4a349d1ed93df96112c16f267bcb76a | [] | no_license | scharlton2/prepost-gui | 5c0a7d45c1f7156513d63e915d19f71233f15f88 | 007fdfcaf4d3e42b606e8edad8285b6de2bfd440 | refs/heads/master | 2023-08-31T01:54:11.798622 | 2022-12-26T01:51:06 | 2022-12-26T01:51:06 | 68,759,445 | 0 | 0 | null | 2020-05-14T22:28:47 | 2016-09-20T22:47:28 | C++ | UTF-8 | C++ | false | false | 931 | h | solverdefinitiongridattributeintegeroptioncell.h | #ifndef SOLVERDEFINITIONINTEGEROPTIONCELLGRIDATTRIBUTE_H
#define SOLVERDEFINITIONINTEGEROPTIONCELLGRIDATTRIBUTE_H
#include "solverdefinitiongridattributeintegercell.h"
#include "integerenumloader.h"
class SolverDefinitionGridAttributeIntegerOptionCell : public SolverDefinitionGridAttributeIntegerCell, public In... |
7e96108d1a84c0b14008383fa23448487caba300 | c76e78581983830158b2a6f56b807e37132f4bba | /CSES/p1629.cpp | c38a9dbc562f89bd7739fadf57cb5f3a35f23e87 | [] | no_license | itslinotlie/competitive-programming-solutions | 7f72e27bbc53046174a95246598c3c9c2096b965 | b639ebe3c060bb3c0b304080152cc9d958e52bfb | refs/heads/master | 2021-07-17T17:48:42.639357 | 2021-05-29T03:07:47 | 2021-05-29T03:07:47 | 249,599,291 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | p1629.cpp | // 03/15/2021
// https://cses.fi/problemset/task/1629
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
#define CLR(a) memset(a, 0, sizeof(a))
#define REP(i, n) for(int i=0;i<n;i++)
#define FOR(i, n) for(int i=1;i<=n;i++)
#define F first
#define S second
inline ll gcd(ll a, ... |
46a957092905a5af5275c3341dee9fb1ec13396a | 0d39f41dfa42bb9164309700d21ab7fed00264d1 | /phoenix/vkw/With_Pipeline/WithDynamicStates.h | 80ae0f7de925eca06a14e92dcaa39f5c52b887a6 | [] | no_license | qnope/Phoenix | 832dc271dcf445a9b78d75e50e402789e7aaaf75 | f4259bc625f6b2150e1c823078c80e3be9fd79c6 | refs/heads/master | 2021-07-09T15:17:53.975985 | 2020-07-26T17:45:18 | 2020-07-26T17:50:55 | 166,474,743 | 0 | 0 | null | 2020-06-24T22:31:19 | 2019-01-18T21:28:18 | C++ | UTF-8 | C++ | false | false | 2,101 | h | WithDynamicStates.h | #pragma once
#include "../vulkan.h"
#include <ltl/Tuple.h>
#include <ltl/ltl.h>
#include <ltl/traits.h>
namespace phx {
namespace dynamic_state {
struct DynamicState {
protected:
constexpr DynamicState() = default;
};
struct DynamicViewport : DynamicState {
static constexpr auto state = vk::DynamicState::eV... |
940839fba6a5a9cb50ac87a5fdbc29674cdcd02c | c923e1055b70ee24b120a7e5e5aa44de3fd98306 | /ms5611_log.cpp | 8c5e1bcff5886f737378a69fefc65f7363dc3645 | [] | no_license | jdfin/baro | 10dbe1064418bb1dfd6f9f53fda3f7a577aeac47 | 06149fc089a3c2733bfd4fc667e456cd915d2b48 | refs/heads/master | 2021-01-11T02:24:31.065364 | 2016-10-15T04:35:43 | 2016-10-15T04:35:43 | 70,966,407 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,660 | cpp | ms5611_log.cpp | #include <cassert>
#include <cmath>
#include <cstring>
#include <ctime>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <thread>
#include <unistd.h>
#include "ms5611.h"
using namespace std;
const char *dev_name = "/dev/spidev0.0";
constexpr unsigned spi_clk = 20000000;
constexpr unsigned log_interva... |
b09227b02e4dca7662d76daaab0def1d5d1dbb24 | ec8f4cf382d7033dd8ba0042a28a5559997920f5 | /interviewCode/src/others/sqrtx/sqrtx.cpp | 5c546a26801f86a32ca82a55cadbf712022809ab | [] | no_license | jiguosong/coding_practice | 7d5b008fbf0cb4181497020fef97e68669f969b0 | 4313bd943c7755ed8127626cad194d7a60d05a14 | refs/heads/master | 2020-12-14T06:09:52.598169 | 2016-12-31T21:40:26 | 2016-12-31T21:40:26 | 68,734,717 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 317 | cpp | sqrtx.cpp |
#include "sqrtx.h"
void sqrtx::dummy()
{
}
unsigned int sqrtx::sqrt(unsigned int x)
{
int left = 0;
int right = x;
while(left < right) {
int mid = left + (right-left)/2;
long long sqrt = mid*mid;
if(sqrt == x) return mid;
else if (sqrt < x) left = mid + 1;
else right = mid-1;
}
return right;
}
|
4211ca13bf65becd7c7cdef6f8a12cde9368a07c | 2825baf383c78b235d7786aec58289415dc17053 | /src/Monster.cpp | 08498712bfc8e4c4cc9fcb58ed04ee2b26e3d126 | [] | no_license | johnlihello/CardGame | 1ef2910da5d3bc763449819b0b822921342deb63 | 3596a32e9b941942e9e73a01c378fb03063fa36b | refs/heads/main | 2023-06-06T10:41:13.588069 | 2021-06-23T05:16:44 | 2021-06-23T05:16:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,029 | cpp | Monster.cpp | #include "Monster.h"
#include "Player.h"
void Monster::attack(Player* victim){
vector<Monster*> &monsterList = victim->getMonsterList();
if(monsterList.size() != 0){
vector<Monster*>::iterator it = monsterList.begin();
bool isDead;
isDead = decreaseMonsterBlood((*it),attackValue);
... |
974865bfd5c95e2967e6a10dacc4080eb715bd8a | a6a2239f454639d7a79bacf8a961abfa3fc94528 | /lib.h | 12186e992e6ca138cabf767c36ddb87db52942b8 | [] | no_license | AngieHoo/peerster | 2d243adaedf3bbc57dad679ea896afa955d26705 | 3a4ee355eab039591539dbf0c905385c7038030c | refs/heads/master | 2021-07-25T21:34:14.005153 | 2017-10-06T21:20:42 | 2017-10-06T21:20:42 | 105,475,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 444 | h | lib.h | #ifndef LIB_H
#define LIB_H
namespace peerster{
const QString DEST = "Dest";
const QString ORIGIN = "Origin";
const QString CHAT_TEXT= "ChatText";
const QString HOP_LIMIT = "HopLimit";
const QString SEQ_NO = "SeqNo";
const QString WANT = "Want";
const QString LAST_IP = "LastIP";
const QString LAST_PORT = "LastPort";
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.