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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
de1ed43d9644c7958abc9cabc4e4bb292e868ef7 | 34c8fbdf8808159fd4a1447b7e5263c10d1a2122 | /Visual Studio 2012/Projects/final/Fighter.cpp | 921d7afa61ab91bba55747733a7dbbd9386d1131 | [] | no_license | cjpwrs/Cplusplus-Projects | 35759c304577c6938d99aeb3c224efb2a7d35823 | d5fbda0dbf9b2718c8ecb8b4e7d2563b24a8296f | refs/heads/master | 2021-01-10T13:07:07.704098 | 2015-10-02T03:07:41 | 2015-10-02T03:07:41 | 43,533,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,000 | cpp | Fighter.cpp | #include "Fighter.h"
#include <vector>
#include<sstream>
Fighter::Fighter(string name, int hp, int strength, int magic)
{
}
Fighter::~Fighter(void){}
/*Fighter::Fighter(string name, int hp, int speed, int magic)
{
}*/
/*
* getName()
*
* Returns the name of this fighter.
*/
s... |
799bbf4fa3ad7e932b725d794734f81ee82a638e | 5178ebecc4458b360b7593e31353ab18e519953e | /src/npstat-4.9.0/examples/C++/lorpe_multivariate.cc | 7204c7c8c8589496fda782b3a9f4e529813e7516 | [
"MIT"
] | permissive | KanZhang23/Tmass | 9ee2baff245a1842e3ceaaa04eb8f5fb923faea9 | 6cf430a7a8e717874298d99977cb50c8943bb1b9 | refs/heads/master | 2022-01-10T10:51:49.627777 | 2019-06-12T14:53:17 | 2019-06-12T14:53:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,797 | cc | lorpe_multivariate.cc | // The following program illustrates multivariate LOrPE usage.
// It generates a set of multivariate Gaussian random numbers
// and then reconstructs the distribution using LOrPE.
#include <tr1/array>
#include "npstat/nm/BoxNDScanner.hh"
#include "npstat/nm/rectangleQuadrature.hh"
#include "npstat/rng/MersenneTwiste... |
9c831443317261398badd0975f0c8843d30fe775 | ab0a8234e443a6aa152b9f7b135a1e2560e9db33 | /Server/CGSF/BaseLayer/CPUDesc.h | 7bf86d5a434f961a389d809e4d76393e4277de21 | [] | no_license | zetarus/Americano | 71c358d8d12b144c8858983c23d9236f7d0e941b | b62466329cf6f515661ef9fb9b9d2ae90a032a60 | refs/heads/master | 2023-04-08T04:26:29.043048 | 2018-04-19T11:21:14 | 2018-04-19T11:21:14 | 104,159,178 | 9 | 2 | null | 2023-03-23T12:10:51 | 2017-09-20T03:11:44 | C++ | UTF-8 | C++ | false | false | 2,201 | h | CPUDesc.h | #pragma once
class CPUInfo;
typedef struct tagProcessorInfo
{
DWORD dwProcessorIndex;
// Serial Number
char szSerialNumber[128];
// On-Chip Hardware Features
BOOL bAPICPresent;
int APICID;
BOOL bACPICapable;
BOOL bOnChipThermalMonitor;
BOOL bL1Cache;
int L1CacheSize;
BOOL bL2Cache;
int L2CacheSiz... |
f9040d762f0db3f3bd834d14d7c812dfc5fd752c | 6ff6338d11c8659055d8709450c979be2cc3fc2c | /src/core/cv/include/s3d/cv/image_operation/input_output_adapter.h | b597922c81546126c2e48227e6ae92ada3c75358 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | introlab/OpenS3D | 80e6a6b50743852a1b139fe241d76ce575a8154e | dad9ef18ce78e99b8a29c934f09d1eb12f1b6a66 | refs/heads/master | 2019-07-08T01:43:16.502294 | 2018-03-21T12:23:45 | 2018-03-21T12:23:45 | 88,108,814 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 890 | h | input_output_adapter.h | #ifndef S3D_CV_IMAGE_OPERATION_INPUT_OUTPUT_ADAPTER_H
#define S3D_CV_IMAGE_OPERATION_INPUT_OUTPUT_ADAPTER_H
#include <s3d/multiview/stan_results.h>
#include <opencv2/core/mat.hpp>
#include <gsl/gsl>
namespace s3d {
namespace image_operation {
class ImageOperations;
class InputOutputAdapter {
public:
InputOutput... |
9adfe735ad19f19b7abf77f5c3cab01c3b168b9c | 95ade71b4d0e315abb0ffe6263db7e1eecef7146 | /apps/sssp/sssp_outer.cc | 7b643a6d06c84d590115bcd6dc1e70ead5fdff02 | [
"MIT"
] | permissive | masabahmad/CRONO | 884da229b4c4e9928b76d182a94e5b6d89ae77f8 | 244d54823edb841ee11673174b4d5976bd3ace53 | refs/heads/master | 2022-07-27T13:22:32.960356 | 2022-07-18T15:09:38 | 2022-07-18T15:09:38 | 40,583,630 | 34 | 22 | MIT | 2022-07-18T15:09:39 | 2015-08-12T06:17:10 | C++ | UTF-8 | C++ | false | false | 13,688 | cc | sssp_outer.cc | /*
Distributed Under the MIT license
Uses the Bellman-Ford/Dijkstra Algorithm to find shortest path distances
Programs by Masab Ahmad (UConn)
*/
#include <cstdio>
#include <cstdlib>
#include <pthread.h>
//#include "carbon_user.h" /*For the Graphite Simulator*/
#include <time.h>
#include <sys/timeb.h>
#... |
a1bab8df0301126fb451a4d0f12b992b2ce187da | f9d34402f5ff9fed3baa23728f724c8250944697 | /learncpp_com/5-flow_control/133-quiz_free_fall/src/main.cpp | 0090f90d3edbddd227331b66812e474603e9fcb8 | [
"MIT"
] | permissive | mitsiu-carreno/cpp_tutorial | deb45e4c593bbceed7e33ea4fddcb6dc2023eeb5 | 71f9083884ae6aa23774c044c3d08be273b6bb8e | refs/heads/master | 2021-06-27T00:25:14.031408 | 2020-10-26T17:54:22 | 2020-10-26T17:54:22 | 139,908,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,721 | cpp | main.cpp | #include <iostream>
#include <cmath>
#include "constants.hpp"
bool validInput()
{
if(std::cin.fail())
{
std::cin.clear();
std::cin.ignore(32767, '\n');
return false;
}
// Clear any aditional bad input
std::cin.ignore(32767, '\n');
return true;
}
// gets initial height f... |
264fd7a057128dbfcb34ba58e11a1454ae5d8b7c | c14500adc5ce57e216123138e8ab55c3e9310953 | /Mesh/delaunay_refinement.h | 3360315f727d5ce3b6f0c8462a49ec153ab8906e | [
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.0-or-later",
"LicenseRef-scancode-generic-exception",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"GPL-2.0-only",
"GPL-2.0-or-later",
"LicenseRef-scancode-other-copyleft",
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ResonanceGroup/GMSH304 | 8c8937ed3839c9c85ab31c7dd2a37568478dc08e | a07a210131ee7db8c0ea5e22386270ceab44a816 | refs/heads/master | 2020-03-14T23:58:48.751856 | 2018-05-02T13:51:09 | 2018-05-02T13:51:09 | 131,857,142 | 0 | 1 | MIT | 2018-05-02T13:51:10 | 2018-05-02T13:47:05 | null | UTF-8 | C++ | false | false | 523 | h | delaunay_refinement.h | // Gmsh - Copyright (C) 1997-2017 C. Geuzaine, J.-F. Remacle
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@onelab.info>.
#ifndef _DELAUNAY_REFINEMENT_H
#define _DELAUNAY_REFINEMENT_H
#include "SPoint3.h"
#include <vector>
class Tet;
cla... |
d7f6653793702c943cbc4b0c4b3af423356d431c | fed6e1017a0dbae0b50169a588a0e6e7b04222af | /typical90/solved/32.cpp | 3d400fb6bb570571b5c34e0f439023b226351e72 | [] | no_license | yukimiii/competitive-programming | 1d8a69ded2532b177b43f077c16a27f2d6fa27f1 | cdec5d902ba2a87c8d7d1d3ed25182ca5693fe04 | refs/heads/main | 2023-07-19T04:57:40.789558 | 2021-09-16T07:15:57 | 2021-09-16T07:15:57 | 385,468,197 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 944 | cpp | 32.cpp | #include <bits/stdc++.h>
#define FOR(i, a, n) for (int i = a; i < n; i++)
#define REP(w, n) FOR(w, 0, n)
using namespace std;
typedef long long ll;
int main()
{
int n;
cin >> n;
vector<vector<ll>> vv(n, vector<ll>(n));
REP(i, n)
{
REP(j, n) { cin >> vv[i][j]; }
}
int m;
cin >> m;
int re[n][n] = {};
REP(i, ... |
b2aed6d89c2ad5913575780594315e4516afe2d4 | 190398e9ea8f1159f643594043412b3620e7febb | /synthesizer/synthesizer.cpp | 1081e782b1bb3e2bcc9a6f5a433a1ada709b8988 | [] | no_license | connormarshall/lofi-synth | d27c9c2552ba406e04e3499f175aaf2ea16622a8 | ba5a5a94b271c20d4a2d36f234fab50b48c8baaa | refs/heads/master | 2023-03-08T10:51:42.235778 | 2021-02-24T03:58:09 | 2021-02-24T03:58:09 | 340,941,842 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,390 | cpp | synthesizer.cpp | // synthesizer.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
#include "olcNoiseMaker.h";
// Oscilator function types
#define OSC_SINE 0
#define OSC_SQUARE 1
#define OSC_TRIANGLE 2
#define OSC_SAW_ANA 3
#define OSC_SAW_DIG 4
#define OSC_SAW_REV 5
#defin... |
1fef48a36a667123878b1f2bd8b3300ed4856053 | 3da7190f48b8f8c6b731e574d3fea48b20b91b8c | /MNIST/nn_controller.cpp | 36ed6fe96811f419131cf20c8434fe1dab885e89 | [] | no_license | aaddaamm30/tohoku_nn_research | 157ae535ca8a113ed6c9a7dbe852398e1e1f46c2 | 6df6b7560f42f310aad2a96363b19215cceae61a | refs/heads/master | 2021-01-20T01:46:02.809323 | 2019-01-09T23:38:07 | 2019-01-09T23:38:07 | 89,326,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,307 | cpp | nn_controller.cpp | /****************************************************************
*
* File : nn_controller.cpp
* Description : structual support for the neural_controller
* class. Handles reading and writing weights
* through the backbone to the weight driver
* and vice versa. Also uses reader_mnist class
* to pip... |
b600100b4692f1eaf1573b9175ccac9f358a09b3 | 67c59778d6e05181c1ab92717927259aa3544a7f | /Source/VCLUtils/AnsiStringUtils_.h | 82479808cd49fc01f8224b01e517a1683246461e | [] | no_license | fpawel/stg3old | 2640358c2b278cc08e7367d3e11dff4f2651b0a7 | df01e48047bef6c75d6bc34aeadf17c2958d681f | refs/heads/master | 2020-03-28T23:00:27.287834 | 2019-03-13T08:20:43 | 2019-03-13T08:20:43 | 149,270,631 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,746 | h | AnsiStringUtils_.h | //---------------------------------------------------------------------------
#ifndef AnsiStringUtils_H
#define AnsiStringUtils_H
//---------------------------------------------------------------------------
#include <SysUtils.hpp>
#include <utility>
#define MYSPRINTF_ AnsiString().sprintf
// translates a specified ... |
55f5aeb2b25a7ba1f0adf37de4409ad11b2e27fc | 6ed5ffddef4fc4033742b88e3ebf14e8660cf4c1 | /AI/AIRacer.h | 6f9a1f42ce167e8c784b52f588de2e33f3d9afb6 | [] | no_license | erenik/SpaceRace | 5e4b169b7aefa264305b33f5f52c9883f63cd787 | d9f441ab3a7f80f394be1e9f90f0fe379fcf0040 | refs/heads/master | 2021-01-17T16:45:05.592070 | 2016-06-20T22:49:30 | 2016-06-20T22:49:30 | 57,668,489 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,077 | h | AIRacer.h | // Emil Hedemalm
// 2013-07-28
#ifndef AI_RACER_H
#define AI_RACER_H
#include "AI/AI.h"
#include "MathLib.h"
class RacingShipGlobal;
class Racing;
class Entity;
class SRPlayer;
class Waypoint;
class Path;
class AIRacer : public AI {
public:
AIRacer(Entity * shipEntity, SRPlayer * player, RacingShipGlobal * shipSta... |
1ad0928dc4cf7f1c70a6362ab84c5df0bc99143e | f10a7a5e92f2d657ec7f5be87cd862792cad4772 | /server/proba2/widget.cpp | 9e3acbce8af5c9ac6d1e23ec2e013d3a07a5bcf7 | [] | no_license | shiroyasha/oldPorjects | 88af98532bb9232c2a036346a0f2d3d77b7ca2fe | b062bcaceb2a1919e23a04877e06037e50f862c0 | refs/heads/master | 2021-01-10T21:17:10.678714 | 2012-12-05T13:44:13 | 2012-12-05T13:44:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | cpp | widget.cpp | #include "widget.h"
#include <QPainter>
#include <QDebug>
widget::widget(QWidget *parent) :
QWidget(parent)
{
m_x = 1;
m_y = 1;
}
void widget::paintEvent(QPaintEvent *e)
{
QPainter p;
p.begin(this);
p.drawRect( m_x, m_y, 100, 100);
p.end();
qDebug() << m_x << m_y;
}
void widget::cr... |
c5c733d0a06b63ecb4885de2bacb4e922ac29faf | 6d2e9d2dc37fb9f2a8cb77eeb926741185e481e7 | /apps/maxtree_comparison/bench_serial_hqueue.cpp | 933a654d482ac7782e27a44d49ab8ea4c7ee9b57 | [] | no_license | onvungocminh/The-Dahu-distance | ad41a1412b85bcb00f449a74188f923fa2fd59e3 | edbb135c5a5195c9bf591bf409c796c0f45517b7 | refs/heads/master | 2022-06-17T18:27:39.804634 | 2020-05-05T19:14:57 | 2020-05-05T19:14:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 124 | cpp | bench_serial_hqueue.cpp | #include "bench_maxtree_algorithm.hpp"
int main(int argc, char** argv)
{
run_test(argc, argv, meta_serial_hqueue ());
}
|
4dc50227849ff7a3ac4c87af0369e323949cfd68 | ec68c973b7cd3821dd70ed6787497a0f808e18e1 | /Cpp/SDK/Dialog_OkDialogAlt_parameters.h | 60c9de652797aa0def7f3cb7e2897e93f12c0ed9 | [] | no_license | Hengle/zRemnant-SDK | 05be5801567a8cf67e8b03c50010f590d4e2599d | be2d99fb54f44a09ca52abc5f898e665964a24cb | refs/heads/main | 2023-07-16T04:44:43.113226 | 2021-08-27T14:26:40 | 2021-08-27T14:26:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | h | Dialog_OkDialogAlt_parameters.h | #pragma once
// Name: Remnant, Version: 1.0
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Parameters
//---------------------------------------------------------... |
eb916b19ecacc5beeb098ba88dd20a7156dcc1bc | c09debdf9721a95e44417d4d01ec6dcd643569b5 | /cpp_algorithms/Problems_461_HammingDistance.cpp | 9a3ad91df56c81e5ebc4196cd0250df50d6c1c9c | [] | no_license | minwookim/algorithm_problems | f2c438c647ec8206d56d6b8490fce8cc3e253126 | 1cfbe5d217757882ac9239fa127b41b13e8e50f3 | refs/heads/main | 2023-04-10T13:48:07.517853 | 2021-04-20T04:44:24 | 2021-04-20T04:44:24 | 360,805,640 | 0 | 0 | null | 2021-04-23T07:50:36 | 2021-04-23T07:50:35 | null | UTF-8 | C++ | false | false | 371 | cpp | Problems_461_HammingDistance.cpp | #include <iostream>
#include <bitset>
using namespace std;
class Solution {
public:
int hammingDistance(int x, int y) {
bitset<32> xBit(x);
bitset<32> yBit(y);
int count = 0;
for (int i = 0; i < xBit.size(); ++i)
if (xBit[i] == yBit[i])
++count;
return 32 - count;
}
};
//int main(int argc, cha... |
364e1f570fee51ac0811df2999d924022b3c1949 | ca32d531ff2596425ce5218a8e2b732a6744faa0 | /asterisk-cpp/src/manager/actions/SetCdrUserFieldAction.cpp | e391fff2a213dcf32901f70a458c55b5a0bc87b1 | [
"Apache-2.0"
] | permissive | augcampos/asterisk-cpp | a8a115a164194db6e9712c676111af164a8526fb | 921423e0d1b6042d0ce2be6d7b9d98af4feb7460 | refs/heads/master | 2022-07-06T00:37:41.907214 | 2022-07-01T03:51:25 | 2022-07-01T03:51:25 | 2,310,863 | 22 | 15 | null | 2017-09-26T00:10:45 | 2011-09-01T23:05:30 | C++ | UTF-8 | C++ | false | false | 1,483 | cpp | SetCdrUserFieldAction.cpp | /*
* SetCdrUserFieldAction.h
*
* Created on: Jun 27, 2013
* Author: augcampos
*/
#include "asteriskcpp/manager/actions/SetCdrUserFieldAction.h"
namespace asteriskcpp {
SetCdrUserFieldAction::SetCdrUserFieldAction() {
}
SetCdrUserFieldAction::~SetCdrUserFieldAction() {
}
SetCd... |
2eb9a43a18f1397a5bc6cdb3dc627ea266bb9325 | e2eeb3d362c55e678c559e3a85500b26b0a38e77 | /src/Thread.h | 03eecbfc8ce6b632279377151546da8ffb3e3357 | [] | no_license | LJH960101/JHNet | b016f2dc76f291b7b5d929ff71e218a17c7e53cd | 99159c849576457935fb0234a4d5eed8ea78657d | refs/heads/master | 2023-05-07T08:28:10.898085 | 2021-05-31T08:33:21 | 2021-05-31T08:33:21 | 325,768,993 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | h | Thread.h | #pragma once
#include <thread>
class CThread{
public:
CThread();
~CThread();
bool Begin();
void End();
protected:
virtual void _Tick() = 0;
private:
void _ThreadProc();
std::thread m_thread;
volatile bool m_bRunning;
volatile bool m_bTerminated;
}; |
4459503545fc9334aebaba971851e40e1480b09c | 6ab9a3229719f457e4883f8b9c5f1d4c7b349362 | /uva/Volume I/00167.cpp | eb28508f29fcf5996205b595a02b572a624b1ba1 | [] | no_license | ajmarin/coding | 77c91ee760b3af34db7c45c64f90b23f6f5def16 | 8af901372ade9d3d913f69b1532df36fc9461603 | refs/heads/master | 2022-01-26T09:54:38.068385 | 2022-01-09T11:26:30 | 2022-01-09T11:26:30 | 2,166,262 | 33 | 15 | null | null | null | null | UTF-8 | C++ | false | false | 902 | cpp | 00167.cpp | /////////////////////////////////
// 00167 - The Sultan's Successors
/////////////////////////////////
#include<cstdio>
#include<cstdlib>
#define MAXCAND 8
unsigned int cnum,i,j,max,temp;
char m[8][8];
void getcand(int a[], int k, int c[], int *cnd){
int i,j;
bool go;
*cnd = 0;
for(i = 0; i < 8; i++){
go = 1;
f... |
ce6a2b26ce95ee94c2e8135399549e4325f8e950 | 04809ec45c1de2047da142e9e91f2cc71f4ee6eb | /VulkanTest1/GameObjectManager.h | 8d5d404cd657cf39dfa2df3d8308f0ecb1fdd76e | [] | no_license | PazerOP/VulkanTest1 | 3296e77280c4b2645eb97d9c6b8ec08b444d3377 | ae29ce2fca771d01685a8454b7a060976e7171af | refs/heads/master | 2021-01-20T14:22:39.914441 | 2017-05-27T21:19:59 | 2017-05-27T21:19:59 | 90,596,667 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | h | GameObjectManager.h | #pragma once
class IGameObject;
class GameObjectManagerImpl
{
public:
GameObjectManagerImpl();
private:
std::vector<std::shared_ptr<IGameObject>> m_GameObjects;
};
extern GameObjectManagerImpl& GameObjectManager(); |
b633a0adb975774ca00ad06c5823aa72adb755f9 | 5eec5d7633f043db35ab078589811ce8391a4855 | /Projects/SolverTest/Macroblock_Utilities/Common/KernelCommon.h | c37165bdc82d4976936d14a0b342cec1b09c3a5a | [] | no_license | uwgraphics/HierarchicalSolver | 842f627feba18f2bebcd35217e5452fef168cc27 | 23fba2571307dc475d13d32cb248048e14a62264 | refs/heads/master | 2020-05-23T06:58:53.681850 | 2019-05-14T17:08:04 | 2019-05-14T17:08:04 | 186,670,294 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,977 | h | KernelCommon.h | //#####################################################################
// Copyright (c) 2011-2013 Nathan Mitchell, Eftychios Sifakis.
// This file is covered by the FreeBSD license. Please refer to the
// license.txt file for more information.
//#####################################################################
... |
36dd6ad8fda76f6f19ba1c018c9009f7c3385c6b | 08688f4613f7961462696936a1720bbd87680607 | /SaldaniaTp2/Final.cpp | 408a7bf213373a8414a53670a772f671b5707f80 | [] | no_license | vloxomire/TrabajosPracticosCPP | 17a453b990cd5d62f5d96d365f9843205396eae4 | cfeddbeefd1eb47db56657d84e03b7e37522ef4d | refs/heads/master | 2022-07-04T20:13:47.149872 | 2020-05-17T21:37:38 | 2020-05-17T21:37:38 | 264,177,427 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,854 | cpp | Final.cpp | #include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<time.h>
int main() {
float vida = 100.0f, inicialVida = 100.0f, inicialEscudo = 50.0f, escudo = 50.0f, cura = 0;
int powerUp = 0;
int damagePlayer = 35.0f;
int oro = 0, item, menus = 0;
int valorItem = 0;
int numRan = 0, seleccion = 0;
int aux = 0;... |
4dce213a6856171321d16697b7fada96799251b9 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_old_new_new_log_1541.cpp | 5cc82916c342a60c6fe20d2abaf2c2b3643e80e8 | [] | 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 | 198 | cpp | Kitware_CMake_old_new_new_log_1541.cpp | msg << "FilesDiffer failed to read files (allocated: "
<< statSource.st_size << ", read source: " << finSource.gcount()
<< ", read dest: " << finDestination.gcount() << std::ends; |
cb4266691260b31752faeba80d3bcc67b969c3eb | 20be2e5541b10a2f570ea5f843da61ef04e29442 | /hyperon_1_0_1/hyperon/storage/ini/ini_file.h | af4dcfc0cbd857ded24589d94ee1633d6ff49d4f | [] | no_license | barby1138/fridmon | e3925530f1ba402e7ad843219056fa015b2dc8c5 | a1e0583b10a4db1a68cb00cdeabb61f982803bfb | refs/heads/master | 2020-03-30T12:04:18.781879 | 2020-02-29T09:19:44 | 2020-02-29T09:19:44 | 151,206,729 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,059 | h | ini_file.h | // ini_file.h: interface for the ini_file class.
//
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
// The Hyperon Library
// Copyright (c) 2004-2005 by Library Dream Team (Oli Tsisaruk, Serge Gaziev... |
d4e231cec8cbe5a223a6c69d5584e01ac0297329 | ec80c341817ea3ef219b4c93539513fcce49942f | /core/parameters/evaluable.cc | 4f45317213e50b30df9f0387ad3e215fe3a1090d | [
"MIT"
] | permissive | gnafit/gna | b24182b12693dfe191aa182daed0a13cfbecf764 | 03063f66a1e51b0392562d4b9afac31f956a3c3d | refs/heads/master | 2023-09-01T22:04:34.550178 | 2023-08-18T11:24:45 | 2023-08-18T11:24:45 | 174,980,356 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 134 | cc | evaluable.cc | #include "evaluable.hh"
template class evaluable<double>;
#ifdef PROVIDE_SINGLE_PRECISION
template class evaluable<float>;
#endif
|
0e22c88c98fa119afb532f14d072a6b2b57406ae | 129ccca0ef7febc8775ccaacbd2fcd8347adf20d | /SinglePendulum/pendulum.cpp | cd6d1f3438829d4109a4e64ce4377c3dcdeb0e4e | [
"MIT"
] | permissive | philj56/robot-swing | 8798ccfeee448933a1880f7c5bedfbdcd66c7dc7 | eb2527c9dabdb02dd7e4a8bb7240417479d50b1d | refs/heads/master | 2021-01-19T03:04:01.005485 | 2016-08-01T15:03:23 | 2016-08-01T15:03:23 | 49,964,467 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,133 | cpp | pendulum.cpp | /* Simple damped-driven pendulum solver
*/
#include <iomanip>
#include <iostream>
#include <fstream>
#include <cmath>
#include <gsl/gsl_errno.h>
#include <gsl/gsl_odeiv.h>
const int columnWidth = 20; // Width of output columns
const int precision = 10; // Decimal places to output
const double m = 5.2; // Mass of p... |
f91b2b0789a58710dd7ab06b28966d11f2f4d0f4 | 16d6f0160cb776b4cb8ef69ac6ce4e0431fa00a8 | /2stackForqueue/stackForQueue.cpp | d69d783550476dc4302a31fc0cf47eac23ae547e | [] | no_license | bingtaoli/algo | efab7096fa28ccda92b316a4a1fbb7057d0f3293 | 6f3b99dcdc091fcf58ac40459db2b615e271cb6a | refs/heads/master | 2021-01-22T02:24:37.279206 | 2020-02-08T08:17:25 | 2020-02-08T08:17:25 | 92,359,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 439 | cpp | stackForQueue.cpp | #include "stackForQueue.h"
int StackForQueue::pop()
{
if (0 != s2.size())
{
int value = s2.top();
s2.pop();
return value;
}
//s1 to s2
while ( !s1.empty() )
{
int value = s1.top();
s1.pop();
s2.push(value);
}
if (0 != s2.size())
{
int value = s2.top();
s2.pop();
return value;
}
}
void Stac... |
2c1378af233332a1e5d7cb26af1c899fc119fd27 | 266e641df3f6ee7c2de19fc60c941532c1f5c05d | /main.cpp | 29d5bf6d9e923656e3530c414256a5086175322f | [] | no_license | pranavmodx/modlang-old | 9ec75070884a062b6b41a263b555ecca73c005dd | 3d3b5824b8cb5d8582671c94d8a475a38d257e12 | refs/heads/main | 2023-01-30T15:14:34.552202 | 2020-12-12T14:41:51 | 2020-12-12T15:12:19 | 317,954,329 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | main.cpp | #include <iostream>
#include <assert.h>
#include <string.h>
#include <vector>
#include <fstream>
#include "./header/lexer.hpp"
std::string read_file(const std::string &file_name) {
std::ifstream ifs(file_name.c_str(), std::ios::in | std::ios::binary | std::ios::ate);
std::ifstream::pos_type file_size = ifs.tell... |
32437c53becf0327c001eaa5c1419548ce755f39 | dbc5fd6f0b741d07aca08cff31fe88d2f62e8483 | /tools/clang/test/zapcc/multi/weakref/file2.cpp | 4009257634e98f7cf236862f9e19d9c9859c3e6b | [
"LicenseRef-scancode-unknown-license-reference",
"NCSA"
] | permissive | yrnkrn/zapcc | 647246a2ed860f73adb49fa1bd21333d972ff76b | c6a8aa30006d997eff0d60fd37b0e62b8aa0ea50 | refs/heads/master | 2023-03-08T22:55:12.842122 | 2020-07-21T10:21:59 | 2020-07-21T10:21:59 | 137,340,494 | 1,255 | 88 | NOASSERTION | 2020-07-21T10:22:01 | 2018-06-14T10:00:31 | C++ | UTF-8 | C++ | false | false | 56 | cpp | file2.cpp | #include "f.h"
void foo2() { __gthrw_pthread_equal(); }
|
628226d41ce5969fe3d01952acb61efc21c1a552 | 1cd995744a830f70b068b3ff925e06188d94e1c3 | /tests/rom/utils/utils_eigen.hpp | cac7422ef3544716c6e0738c503944e1c3f5e3a1 | [
"BSD-3-Clause"
] | permissive | zeta1999/pressio | 41dcf4ac6787f0463b4e7f4820e801ce1ee677a4 | 0cc57a071fb5e0719462c259de2565d9bea8144c | refs/heads/master | 2022-12-27T11:31:52.258613 | 2020-09-14T15:18:15 | 2020-09-14T15:18:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | hpp | utils_eigen.hpp |
#ifndef ROM_TEST_UTILS_EIGEN_HPP_
#define ROM_TEST_UTILS_EIGEN_HPP_
#include "pressio_utils.hpp"
namespace pressio{ namespace rom{ namespace test{ namespace eigen{
template <typename T = std::size_t>
auto convertFromVVecToMultiVec(
const std::vector<std::vector<double>> & A0,
T nrows, T ncols)
-> pres... |
f72f9b653bcbf2b1a44cd792f4d219c3a7e186f3 | f4dc1073def4c95a19d4183475405c439cfc0aff | /Source/Core/AresPerlinNoise.cpp | a1d30a72a3b3b4bd2c520aa15dbfbc393adddba9 | [] | no_license | timi-liuliang/aresengine | 9cf74e7137bb11cd8475852b8e4c9d51eda62505 | efd39c6ef482b8d50a8eeaa5009cac5d5b9f41ee | refs/heads/master | 2020-04-15T15:06:41.726469 | 2019-01-09T05:09:35 | 2019-01-09T05:09:35 | 164,779,995 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,488 | cpp | AresPerlinNoise.cpp | #include <Core/AresPerlinNoise.h>
namespace Ares
{
// 构造函数
CPerlinNoise::CPerlinNoise()
{
SetUp();
}
// 设置
void CPerlinNoise::SetUp()
{
float stepDegree = 2 * PI / EM_TABLE_SIZE;
float degree = 0.0f;
srand(GetTickCount());
for (int i=0; i<EM_TABLE_SIZE; i++)
{
// sinA的平方 + cosA的平方 = 1; 以确保为单位向... |
debb5816f9716191a6eb33c9d05ad9d3a2b8a1d8 | e92a8e7ba8dbad9339ba14db9a32a772e9415ac3 | /baekjoon/8958.cpp | fd741d7b883624b0fff9037cd52f19f3b85a0a8d | [] | no_license | Lee-Jungyu/algorithm | ec3155a4424d97d12ab96d98f7a7f14589f8ec70 | 6a18758ba3d4ee55a6cfae33ed86258ddda9bc96 | refs/heads/master | 2021-08-06T15:28:06.919063 | 2021-07-14T12:49:37 | 2021-07-14T12:49:37 | 232,481,372 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 433 | cpp | 8958.cpp | #include <iostream>
#include <string>
using namespace std;
char OX[80];
int main()
{
int tc;
int sum;
string input;
scanf("%d", &tc);
while (tc--)
{
sum = 0;
cin >> input;
for (int i = 0; i < input.length(); i++)
{
OX[i] = input[i];
}
int cnt = 0;
for (int i = 0; i < input.length(); i++)
{
... |
56cf12cd6d3d5da0eb115d92257fac7e2cc3053c | 35f345dd1b4f6be564b7753b7b45d772b59a55b9 | /Pong/renderer.h | f859db790663acf9d1e499d60652cbde502f3acb | [] | no_license | shindelus/Pong | 42a58e7a76f4759f133ae7432827463012d3d225 | 7fca7985fdc014b2dde4605deff43ce19713f6bb | refs/heads/master | 2021-05-24T12:05:50.290936 | 2020-04-27T23:54:41 | 2020-04-27T23:54:41 | 253,550,559 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | h | renderer.h |
#pragma once
#include "glew/include/GL/glew.h"
#include "vertexarray.h"
#include "indexbuffer.h"
#include "shader.h"
/**
Clear all (unrelated) previous errors.
*/
//void GLClearError();
/**
Check for an error and log the error to the console.
@param function The function where the error happend
@param file The fi... |
f3ccd46e4a44006c9d8b83d4ae01669afbd89c6c | acf11da3a33c609c0e356057d1522fa790b34c22 | /Livraria2.0/build-Livraria-Desktop_Qt_5_10_0_GCC_64bit-Debug/ui_mainwindow.h | 1f6d298510d95fd879dadab85c2dc65b5d8ed181 | [] | no_license | leonarck00/Livraria | 5fc8f33298f73d5a15bf7e408134d47e4558b11a | f6f58f14b65f0dd7e2cfc1ce4a4798ac1671de9c | refs/heads/master | 2020-04-11T21:24:55.954392 | 2018-12-17T09:21:44 | 2018-12-17T09:21:44 | 162,104,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,146 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.10.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
474e782c1046242c090c6f0eab1643f6fcb7df81 | e96dead1ea358d9e524a175a75d6d13df243955c | /test_join_chain.cpp | ac99e5dcede4afce223b6405b7d815601123d2e0 | [] | no_license | peterxie/482p2 | fbbd80926c247833eb3d8ae20e502cd9ae515ff5 | 54d9485bf895ff0af2b8f026c2cf313ab39b7d01 | refs/heads/master | 2021-06-25T10:52:00.458539 | 2017-09-09T15:09:16 | 2017-09-09T15:09:16 | 102,963,043 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,184 | cpp | test_join_chain.cpp | #include<iostream>
#include "thread.h"
using namespace std;
mutex mutex1;
cv cv1;
int child_done = 0;
void child(void *a)
{
char *message = (char*) a;
mutex1.lock();
cout << "child run with message " << message << ", setting child_done = 1\n";
child_done = 1;
mutex1.unlock();
}
void parent(void *a)
{
i... |
92a6b140042250b3bdddae9607fd76d2ae7fe23c | d502885744b7b4b8a3696af532a4aceecea5ea8d | /Ejercicio8.cpp | 89b2408802bfc8082a4b55f8f681cf249c5b07b8 | [] | no_license | noeliarodriguez/eclipse | 9baa08358accc4188a3a01fc8585413a7d8ff2bb | 140a7591d2dcb2caa3bd07b12d4d5ae8d144e060 | refs/heads/master | 2021-01-11T11:00:16.009929 | 2015-09-21T19:08:03 | 2015-09-21T19:08:03 | 40,254,332 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | cpp | Ejercicio8.cpp | //============================================================================
// Name : Ejercicio8.cpp
// Author :
// Version :
// Copyright : Your copyright notice
// Description : Dado un triángulo representado por sus lados L1, L2, L3,
// determinar e imprimir una leyenda según sea: equilátero, i... |
5c6e627f28632e0bb5ccc741712e7459025170ed | 972c428c38e47c55ebe9b6a6d479762400f14090 | /PrueVirtual.cpp | 1ee604fedd144f1314aee02d398b55aaaddf72f9 | [] | no_license | francliu/cplusplusAndUnix | 0d221a9ec81589b9bd93353f0229b8651d9318b1 | 4dc24d6a2b05a48b8cac9c549f2bb18e2173cc54 | refs/heads/master | 2020-04-10T00:07:13.291312 | 2016-01-31T13:20:10 | 2016-01-31T13:20:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 914 | cpp | PrueVirtual.cpp | /*************************************************************************
> File Name: template.cpp
> Author: 刘建飞
> Mail: liujianfei526@163.com
> Created Time: 2016年01月22日 星期五 19时52分44秒
************************************************************************/
#include<iostream>
using namespace std;
... |
531b40a51b7edd923ced73f0277b6b2707507971 | 8257ab5293edaebc1321184e59dadf820fee26d1 | /include/Vorb/RingBuffer.inl | 4ed13703b6f2696288b1685913a4eed7ed160b3f | [
"MIT"
] | permissive | RegrowthStudios/Vorb | 50812d53aac605e62660b40dab45f8b6c39a7f7f | bd6fc2b3df672227e8302c38223fac123abcbb2f | refs/heads/develop | 2021-08-18T22:38:46.417800 | 2019-10-29T12:32:45 | 2019-10-29T12:32:45 | 27,497,366 | 67 | 36 | MIT | 2019-10-29T12:32:46 | 2014-12-03T16:53:03 | C++ | UTF-8 | C++ | false | false | 3,444 | inl | RingBuffer.inl | namespace impl {
template<typename T, typename Arg1, typename... Args>
inline void moveAll(std::vector<T>& data, const size_t& i, Arg1&& v1, Args&&... values) {
data[i % data.size()] = std::move<Arg1>(v1);
moveAll(data, i + 1, values...);
}
template<typename T, typename Arg1>
inline ... |
3f6146c61562d85566cf9c1efad129d56bb74826 | c0c44b30d6a9fd5896fd3dce703c98764c0c447f | /cpp/Targets/MapLibNG/WindowsMobile/include/WinMobileNativeTextInterface.h | d940ff6025519520d5198dcc23a7c5f70fdbc5cc | [
"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 | 5,243 | h | WinMobileNativeTextInterface.h | /*
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 condit... |
c26ae6cc65c742e50f28eaa75e7d2fa1050ac3e2 | 4269cd72884e1ae157527c7bf06bfac2ace60e6b | /sqlparser/libsqlparser/src/SelectItem.cpp | 833acc31b2cff1c39cb17efeb35ada347d2b4828 | [] | no_license | Raphael2017/sqlparsernxl | 14943eb10d4af3e1d62a2bf07ae9a8a53a9a6125 | 5b25ccff72eab198674d18a60ed4565c65bc9e9e | refs/heads/master | 2020-04-07T23:35:58.187820 | 2019-08-16T05:53:35 | 2019-08-16T05:53:35 | 158,818,649 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 110 | cpp | SelectItem.cpp | #include "SelectItem.h"
#include "LogicPlan.h"
#include "expr.h"
#include "TableRef.h"
namespace resolve
{
} |
3731fdbb94cc93ad61bc57dbf642312bfe9e6e31 | 33980e68c638b4947ff74bfdd2373e0ed43a1c17 | /src/BeeHandleSimple.hpp | 60332d0c183d0a445a172a389d165ebfd50ab1f0 | [] | no_license | cdfritz7/OutlineDetectionAndSwarmDynamics | c95bf0aac816832ea1e897e697465311cd4893f9 | 02d1eb81c5f1ff4366254681995c8355704d629a | refs/heads/master | 2020-07-23T00:14:24.106523 | 2020-05-02T21:26:15 | 2020-05-02T21:26:15 | 207,376,311 | 0 | 1 | null | 2020-04-19T15:54:01 | 2019-09-09T18:23:42 | Python | UTF-8 | C++ | false | false | 6,064 | hpp | BeeHandleSimple.hpp | #include <iostream>
#include <vector>
#include <opencv.hpp>
#include <thread>
#include <math.h>
#define NUM_THREADS 8
// number of directions to average
#define DIR_MEMORY 10
using namespace std;
class BeeHandle
{
private:
int move_dist;
int max_x;
int max_y;
vector<cv::Point> bees;
vector<cv::Point> flow... |
ac1a00784957338ef0947f031e4d51c876843bcd | 9362d0cf299e3f196c05586028988ebcd906407e | /src/Relation.cpp | 17d34c621b14f306dee6bf8078f93ff4b55feed1 | [] | no_license | parisbre56/devel_part_1 | 91d92e88765755b5407c1706daa9e6e3675ae010 | 5efaff53985118c6cab432e7838caa62b52e191d | refs/heads/master | 2020-04-02T05:12:46.180716 | 2019-01-20T20:10:56 | 2019-01-20T20:10:56 | 154,058,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,575 | cpp | Relation.cpp | /*
* Relation.cpp
*
* Created on: 21 ��ô 2018
* Author: parisbre56
*/
#include "Relation.h"
#include <cstring>
#include <sstream>
#include <stdexcept>
using namespace std;
Relation::Relation(uint64_t arraySize,
uint32_t sizeTableRows,
size_t sizePayloads,
... |
93078c1f42550e6b26c23a28d26caa4dda9d91e0 | 979646a5c119cdc775cb048c1d288310d165db51 | /338_Counting_Bits.cpp | 40606d72ecbd09583147356bd36fc5e2b02adb65 | [] | no_license | liuminghao0830/leetcode | 72a5a0a9539eb1f6b4f4446eaba97a8c94294abe | 0d58a2f5a3062617e233674dd08f2e8e13fa327d | refs/heads/master | 2021-06-22T16:33:25.636444 | 2021-02-15T07:23:36 | 2021-02-15T07:23:36 | 192,244,101 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 641 | cpp | 338_Counting_Bits.cpp | #include<bits/stdc++.h>
using namespace std;
/*
Given a non negative integer number num. For every numbers i
in the range 0 ≤ i ≤ num calculate the number of 1's in their
binary representation and return them as an array.
*/
class Solution {
public:
vector<int> countBits(int num) {
vector<int> dp(num +... |
ebbb983cb8fba02d11c0aa2ccfabdca2c5c685b6 | 492976adfdf031252c85de91a185bfd625738a0c | /src/KingSystem/GameData/gdtSpecialFlags.cpp | 0ecc96bf57654232a248a3d146e85d059b73eb82 | [] | no_license | zeldaret/botw | 50ccb72c6d3969c0b067168f6f9124665a7f7590 | fd527f92164b8efdb746cffcf23c4f033fbffa76 | refs/heads/master | 2023-07-21T13:12:24.107437 | 2023-07-01T20:29:40 | 2023-07-01T20:29:40 | 288,736,599 | 1,350 | 117 | null | 2023-09-03T14:45:38 | 2020-08-19T13:16:30 | C++ | UTF-8 | C++ | false | false | 7,185 | cpp | gdtSpecialFlags.cpp | #include "KingSystem/GameData/gdtSpecialFlags.h"
#include <prim/seadStringUtil.h>
#include "KingSystem/GameData/gdtCommonFlagsUtils.h"
#include "KingSystem/GameData/gdtFlagUtils.h"
namespace ksys::gdt {
const char* str_Dungeon = "Dungeon";
const char* str_Remains = "Remains";
const char* sSmallKeyNumFlagSuffix = "_Sm... |
a3591671a0aac722dc7f363b21a735589f1e422a | 2745f82d157f71c9fab6e6fd4f82699654c84f0f | /src/include/ext/station.cpp | 3c7d958f7edd75af110f21d9f933cf42ea1bc079 | [
"MIT"
] | permissive | smorey2/libcu | cbfc10bdaab38f0caff04436adbf133601d8f746 | b5deba3e9d011c550745ed9506e08ef1b8c8750c | refs/heads/master | 2020-03-27T22:48:46.138258 | 2020-02-10T00:10:29 | 2020-02-10T00:10:29 | 147,263,110 | 0 | 0 | null | 2018-09-03T23:28:41 | 2018-09-03T23:28:41 | null | UTF-8 | C++ | false | false | 1,749 | cpp | station.cpp | #if __OS_WIN
#include <windows.h>
#elif __OS_UNIX
#include <stdlib.h>
#include <string.h>
#endif
#include <stdio.h>
#include <assert.h>
#include <cuda_runtimecu.h>
#include <ext/station.h>
void stationCommand::dump() {
register unsigned char *b = (unsigned char *)&data;
register int l = length;
printf... |
818274c1a8ced007e5969437fc62607fef4058f9 | 515c4872cb974fa0e806368f75c5041bed6b4f0a | /Clases/Render.h | 1176885beecf10153a7d411ab00d3a4bb5d81712 | [] | no_license | AlexRex/FV2015 | 2975f595b5a764471c154af19688fa5f02daf72c | fd67c0ee3be9ced5a32ee0e16385eb04883f2e6d | refs/heads/master | 2021-01-13T02:37:46.516724 | 2015-05-20T21:35:07 | 2015-05-20T21:35:07 | 33,857,682 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,170 | h | Render.h | /*
* File: Render.h
* Author: aletormat
*
* Created on 17 de abril de 2015, 9:54
*/
#ifndef RENDER_H
#define RENDER_H
#include <SFML/Graphics.hpp>
#include "../Includes/AnimatedSprite.hpp"
#include "Camara.h"
#include "Hud.h"
#include <iostream>
class Render {
public:
Render();
Render(const Render& o... |
0d490badb7bb7b5abc3ad6eac516a558fbec1b14 | d112993968aa5f26d94e94b1d949f8d54ca2b435 | /sudoku.cpp | 590e2cfd4f06925c3434bfb351f797391debabb0 | [] | no_license | igel-kun/sudoku | 6d4783af629c8675479db8bd9a5dbc0492fd5093 | 47e19f660e748b85ba6e877817733f67bb2b119f | refs/heads/master | 2021-01-25T07:08:23.910757 | 2014-11-06T12:52:06 | 2014-11-06T12:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,046 | cpp | sudoku.cpp | /*****************************************
* general header file for sudoku puzzles
* and rules wrapper
* by M.Weller
****************************************/
#ifndef sudoku_cpp
#define sudoku_cpp
#include "sudoku.h"
void sudoku_cell::init(const uint _num_digits, const uint _x, const uint _y, const uint _content... |
a5e6c61ae20c80381a086af9ee0bda8c931bc5d6 | 2572a2dc50392495be992c1f5b9225feac707dce | /CodeForces/Div2&3/80/A.cpp | deabdf4bac1db8b32be1d55b3ee1d5852d1b4927 | [] | no_license | agentmishra/DSA | f60aabb0c77f07a665944f224935103b29cedcf5 | 63cd024bafec0b25e150b51b88e4563e31a62ef9 | refs/heads/master | 2023-03-25T23:44:44.199513 | 2021-01-02T16:00:08 | 2021-01-02T16:00:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | cpp | A.cpp | #include <bits/stdc++.h>
#define ll long long
#define newline "\n";
#define loop(from,to) for(int i=from;i<to;i++)
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
using namespace std;
int main()
{
OJ;
int n;
cin >> n;
int reqd = n - 10;
int ans = 0;
... |
f8a46b996e7382956ef2388fc1f1bacd4ef12662 | 7092ff8d7cf0289e17da2ecc9c622fe21581addf | /sg_agent/src/remote/monitor/monitor_collector.h | 32b4d23b50382fe7e226a410d0f42d8e2618929f | [
"Apache-2.0"
] | permissive | fan2008shuai/octo-ns | e37eaf400d96e8a66dc894781574e2b5c275f43a | 06827e97dc0a9c957e44520b69a042d3fb6954af | refs/heads/master | 2020-05-27T19:40:42.233869 | 2019-06-09T15:09:48 | 2019-06-09T15:09:48 | 188,765,162 | 0 | 0 | Apache-2.0 | 2019-05-27T03:30:23 | 2019-05-27T03:30:21 | null | UTF-8 | C++ | false | false | 2,152 | h | monitor_collector.h | /**
* xxx is
* Copyright (C) 20xx THL A29 Limited, a xxx company. All rights reserved.
*
* Licensed under the xxx
*
* Unless required by applicable law or agreed to in writing, software distributed
* under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either ex... |
a834dbfb9370e11341734e15506f3494d891d4fa | bef08bfd164a6783e38706c5faf9b3773472f81c | /unused/input.cpp | 4cb83407dbf8eabe8e209d13cb5ead42d12546d8 | [] | no_license | s89162504/CSE231-LLVM_Program_Analysis | a8011f6557c287ae1e68577be1585923aa7d3eb1 | 98fcfb260c187bd126cd7167294fbc5646074de0 | refs/heads/master | 2021-06-13T12:52:59.253801 | 2017-03-28T21:42:37 | 2017-03-28T21:42:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 357 | cpp | input.cpp | #include <iostream>
using namespace std;
//opt -load LLVMTestPass.so -TestPass < ./input.ll > /dev/null
int f(int a){
if(a < 3){
return 0;
}
return a + 5;
}
int main(){
int a = 3;
if (a == 3){
int d = 4;
a++;
if(a > 5){
a = a * d;
}
}
int b = 5;
cout << a * b << endl;
// ... |
015f86520045562d6baf7947669a0d269c912fec | c6309c911ec4bb5a849caac75251dc26a5232372 | /main.cpp | 0b4993fc53121d66dcd2ab9540b5692fcbffe502 | [] | no_license | williamchoi7090/one-C--1 | a4a43de1a37edc023a779f172dbb6075c32e2e98 | dcea77142f50410218b4b1a79bce402b219c45ba | refs/heads/master | 2023-03-31T10:33:02.785745 | 2021-04-05T04:07:32 | 2021-04-05T04:07:32 | 354,713,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,728 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
int precedence(char cpp){
if(cpp == '+'||cpp == '-')
return 1;
if(cpp == '*'||cpp == '/')
return 2;
return 0;
}
int applycpp(int a, int b, char cpp){
switch(cpp){
case '+': return a + b;
case '-': return a - b;
case '*': return a * b;
case '/':... |
39d2abfaa814a6776c7415874a7cd30c59e6833a | 86d1211fec5bd1c2259844aca1c6d2ef89c91045 | /C-Compiler/cifa.cpp | 5c44e3364a461398e2ef169629f1dfe572de1964 | [] | no_license | LokeZhou/Compiler_Loke | 5d1a602b1f0813f7fe4609fb0d1e609c6d34bb7f | 2d52fb2a8d82b9243ffcd698521b6d38aa71da9d | refs/heads/master | 2021-01-12T06:30:49.824210 | 2016-12-26T09:10:01 | 2016-12-26T09:10:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 24,224 | cpp | cifa.cpp | #include "cifa.h"
Token tok;
vector<Token> token;
char ch; //当前字符
string strToken;
string programme;
vector<string> keywords; //保留字表
vector<string> Id; //符号表code=0
vector<string> ConstNum; //常数表code=3
vector<string> ConstString; //字符串常量表code=2
vector<string> ConstChar; //字符常量表code=1
int file_pointer;
/**
Token串
... |
08e66790f594e1eb2cfc2b91763f4ffe0d6d1690 | 238b81c4b46cedf4f94c0ccde4486e55602ec2be | /public/libgc/server/resp_processor.cpp | 6cbb182159f2757ea975dbfa2dd7d37ec097b962 | [] | no_license | adidos/proj_repos | 0e0641711fff7351454f9164c99176c4a21f60f8 | 07911257202c4238580f9ab4d982e99f3f5e30ea | refs/heads/master | 2021-01-20T03:35:16.423273 | 2014-07-12T08:08:39 | 2014-07-12T08:08:39 | null | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,973 | cpp | resp_processor.cpp | #include "resp_processor.h"
#include "response_manager.h"
#include "session_manager.h"
#include "client_manager.h"
#include "epoll_server.h"
#include "common/logger.h"
#include "common/index.h"
#include "common/utility.h"
RespProcessor::RespProcessor(SessionManager* pSessMgr,
ClientManager* pClientMgr) :_sess_mgr_p... |
b42e6987cffa804aeff6c5b8afcf65fb6f04125f | 0f41e546cf59b389e6e657980ea1019a811b1c54 | /hdu/fire_net.cpp | 767a4deefa26485535c936953767119d3c836167 | [] | no_license | aim-for-better/acm | ef23964e02016361e9dd70cff2520cb86a57f3f4 | 6d4d939b811bb00b3f148b74f3d3b3720b61bf97 | refs/heads/master | 2020-07-18T03:53:15.455644 | 2017-10-30T14:26:52 | 2017-10-30T14:26:52 | 73,922,672 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,230 | cpp | fire_net.cpp | #include <iostream>
#include<cstring>
#include<cstdio>
using namespace std;
int n;
char arr[5][5];
bool visited[5][5];
int dir[][2]={0,1,0,-1,1,0,-1,0}; //r,l,d,u
int nmax;
void dfs(int pos,int num){
int x=pos/n;
int y=pos%n;
if(arr[x][y]=='X'|| visited[x][y]) return ;
int buf[4][4];
fo... |
678c12976cca25c24ce9192a4f8cb1ea474daf28 | 992a387ba9edbdd60d018d300d3cb5c2217a7a8e | /2022/new-concepts/tries.cpp | da068dc0c7f904f87cc4a734106d57bd0390a6d3 | [] | no_license | ashishnagpal2498/CPP_Concepts_and_Codes | 7e5f8d5a1866c3658c61a8a4b2015526ab8de38f | a1828c639816fd23ec9b04635e544b27a4bc27bc | refs/heads/master | 2022-07-21T16:01:29.461619 | 2022-07-15T06:18:56 | 2022-07-15T06:18:56 | 167,674,604 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,018 | cpp | tries.cpp | // Tries - DataStructure -
#include<bits/stdc++.h>
using namespace std;
class TrieNode{
public:
char data;
TrieNode** children;
bool isTerminal;
TrieNode(char d){
data = d;
children = new TrieNode*[26];
for(int i=0;i<26;i++){
children[i] = NULL;
}
... |
e71ae993a8363086aeb040321fab0236c61bcb87 | 924de80dab7907fdb03ab1cafeea6e399d9759c6 | /PROJECTS/GAMES/MULTIPOLY/CODE/GAMEPLAY/GAME/CARD/GAMEPLAY_GAME_CARD.h | e8dc902c104bf14e02403be015859762694ff8b5 | [] | no_license | x-tox-man/xengine | 866fd44d79207c71c6ad2709a66496d392ec0f6d | 81b9445795422969848acfffde59136e1eb66fbe | refs/heads/master | 2021-04-29T10:39:43.257184 | 2020-10-25T10:48:54 | 2020-10-25T10:48:54 | 77,837,329 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,692 | h | GAMEPLAY_GAME_CARD.h | //
// GAMEPLAY_GAME_CARD.hpp
// MULTIPOLY
//
// Created by Christophe Bernard on 27/02/17.
// Copyright © 2017 cbe. All rights reserved.
//
#ifndef GAMEPLAY_GAME_CARD_hpp
#define GAMEPLAY_GAME_CARD_hpp
#include "CORE_HELPERS_CLASS.h"
#include "GAMEPLAY_COMPONENT_ENTITY.h"
#include "CORE_MATH_QUATERNION.h"
#includ... |
ef4ed335e6fae0075859c4020a828751e324e480 | 40942829eb12bde7c255cd09b4d2de929868d489 | /NOTATRI.cpp | 27a4d66b8cc048b57a4d10bdf29528240e2966ce | [] | no_license | sanjana12345/Spoj-Solution | cccda06a34ff0feb541612e6928e8b894b21c17b | ce928017bdd36c86c4bafa07953bc0b263466ab7 | refs/heads/master | 2022-08-26T06:53:04.273589 | 2020-05-27T09:30:25 | 2020-05-27T09:30:25 | 267,261,513 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | cpp | NOTATRI.cpp | #include<bits/stdc++.h>
using namespace std;
int a[2002];
int binarysearch(int p,int q, int x)
{
while(q-p>1)
{
int b=(p+q)/2;
if(a[b]>x)
q=b;
else
p=b;
}
if(a[p]>x)
return p;
return q;
}
int main()
{
int i,j,n,b,c,d,e;
unsigned long long ans;
cin>>n;
while(n!=0)
{
ans=0;
for(i=1;i<=n;i++)
... |
4effcfb8a2d5ab18c41119f5a83cf76bfa916b79 | da1500e0d3040497614d5327d2461a22e934b4d8 | /third_party/llvm-project/compiler-rt/test/msan/fstat64.cpp | 8e3a6d553bfcf93b252cad47834aa56a471e1d3a | [
"NCSA",
"MIT",
"LLVM-exception",
"Apache-2.0",
"BSD-3-Clause",
"GPL-1.0-or-later",
"LGPL-2.0-or-later"
] | permissive | youtube/cobalt | 34085fc93972ebe05b988b15410e99845efd1968 | acefdaaadd3ef46f10f63d1acae2259e4024d383 | refs/heads/main | 2023-09-01T13:09:47.225174 | 2023-09-01T08:54:54 | 2023-09-01T08:54:54 | 50,049,789 | 169 | 80 | BSD-3-Clause | 2023-09-14T21:50:50 | 2016-01-20T18:11:34 | null | UTF-8 | C++ | false | false | 238 | cpp | fstat64.cpp | // REQUIRES: linux
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#include <stdlib.h>
#include <sys/stat.h>
int main(void) {
struct stat64 st;
if (fstat64(0, &st))
exit(1);
if (S_ISBLK(st.st_mode))
exit(0);
return 0;
}
|
1a5da285b45b45657fca334cc54b66a283beb334 | 19907e496cfaf4d59030ff06a90dc7b14db939fc | /POC/oracle_dapp/node_modules/wrtc/third_party/webrtc/include/chromium/src/third_party/WebKit/Source/core/inspector/InspectorHighlight.h | 886851b362e238423b28e4e3ee7923e26d905ad5 | [
"BSD-2-Clause"
] | permissive | ATMatrix/demo | c10734441f21e24b89054842871a31fec19158e4 | e71a3421c75ccdeac14eafba38f31cf92d0b2354 | refs/heads/master | 2020-12-02T20:53:29.214857 | 2017-08-28T05:49:35 | 2017-08-28T05:49:35 | 96,223,899 | 8 | 4 | null | 2017-08-28T05:49:36 | 2017-07-04T13:59:26 | JavaScript | UTF-8 | C++ | false | false | 2,180 | h | InspectorHighlight.h | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef InspectorHighlight_h
#define InspectorHighlight_h
#include "core/CoreExport.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geomet... |
da701786de76a21f92270cc0f71e54288237b54d | 1f3dd4320acfafb283266491edfb6d571b6f0e50 | /src/client/OutputStreamImpl.h | 4967e0f23d90b1372dcb6b684fe9d6fa03164665 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | erikmuttersbach/libhdfs3 | d193c6b787b33f2339a8ff73ab4356ef835ca5d3 | 9a60d79812d6dee72455f61bff57a93c3c7d56f5 | refs/heads/apache-rpc-9 | 2020-12-25T22:58:48.860681 | 2019-11-05T00:53:35 | 2019-11-05T00:53:35 | 27,222,933 | 42 | 25 | Apache-2.0 | 2019-11-05T00:53:36 | 2014-11-27T11:42:59 | C++ | UTF-8 | C++ | false | false | 5,187 | h | OutputStreamImpl.h | /********************************************************************
* Copyright (c) 2013 - 2014, Pivotal Inc.
* All rights reserved.
*
* Author: Zhanwei Wang
********************************************************************/
/********************************************************************
* 2014 -
* op... |
67159670e3e66d254fddddb3687aec97321fb067 | 08e02b157cd7ac94f638bd0133f40f11ead47b73 | /src/Core/Memory.cpp | fd5bc0a8aa034df40b22142a2c01473f6493c550 | [
"MIT"
] | permissive | thennequin/Texeled | 9c040993e0608321a17a493a6ca6386e40428cbe | 538dbc078b572754c012faa34f590ccf8a971af4 | refs/heads/master | 2022-11-16T16:54:24.260714 | 2022-11-10T20:32:04 | 2022-11-10T20:32:04 | 176,142,597 | 66 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 2,952 | cpp | Memory.cpp | #include "Core/Memory.h"
#include <stdlib.h> // malloc / free
#include <string.h> // memcpy
namespace Core
{
////////////////////////////////////////////////////////////////
// PointerVoid
////////////////////////////////////////////////////////////////
PointerVoid::PointerVoid()
{
m_iMemory = -1;
m_iSize =... |
e8c13d8e0a340ecf62dd211a9e28b8310a9a76d2 | 1b080901551c6681e49509fac070e740526b5b0d | /impulse/source/impulse-0.5.1/src/parser/parsers/message.h | 06d06040bf4cdd7ee849b6b45c4bb54a33931e03 | [
"BSD-3-Clause"
] | permissive | mikeaustin/www.mike-austin.com | 90c4240b7f5869db47183290b2cdab58d71f949b | 47bd99d52d6e9249ac8cd2a46e72dc70464f9eaf | refs/heads/master | 2021-01-22T18:57:52.479708 | 2017-06-29T19:55:45 | 2017-06-29T19:55:45 | 85,132,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,055 | h | message.h | namespace impulse { namespace parser {
//
// class MessageParser
//
void MessageParser::identifier( Express& expr, Token peek )
{
BEG( "Message::identifier( " << peek.value().inspect() << " )" );
Token token = lexer().nextToken();
expr.push( new Message( *token.value().get<Symbol>... |
7988e32aa3e63e947e3554ac47671d863fdd0e48 | d3e3d0a300deca29aae01e8265bf3d72f6c0c13d | /study/ZombieAI.cpp | 58a431804fdfbcac6fb53a2e0be218023f4a457b | [] | no_license | nanaya7896/SourceFile | 41bf546ffa7785f7a14e804c54b306fec7d2e060 | 9c6337b5b14d466956f7404a085167c04890c2b8 | refs/heads/master | 2021-01-17T18:17:10.205448 | 2016-10-21T02:12:30 | 2016-10-21T02:12:30 | 71,336,958 | 0 | 0 | null | 2016-10-21T02:12:31 | 2016-10-19T08:44:50 | Logos | UTF-8 | C++ | false | false | 865 | cpp | ZombieAI.cpp | #include"ZombieAI.h"
CZombieAI::CZombieAI()
{
}
CZombieAI::~CZombieAI()
{
}
void CZombieAI::Update()
{
}
/*
CHASER_Mode,
DEATH_Mode,
FLOW_Mode,
WALLOW_Mode,
STAIRS_Mode,
HITSTOP_Mode
*/
void CZombieAI::ZombieAISelect(ZombieAIName name)
{
switch (name)
{
CHASER_Mode:
test(1);
break;
DEATH_Mode:
break;
F... |
f06f66e4b1f14b7283bd4cb5e1a2b057d9e1b6ac | d34dc5af1fdbb694f5ce0c56b9cc6108f4d355ee | /c++/demo/io.cpp | 265bb8948dc4974cdc28f3f8df45373369fec185 | [] | no_license | masinfund/code | 09faa655b4a37501683588a0f05a849ece1eed5f | 08a012902cce40b841490db6ec21b372def1bfec | refs/heads/master | 2020-04-27T20:55:53.829998 | 2019-03-09T10:45:15 | 2019-03-09T10:45:15 | 174,676,493 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,247 | cpp | io.cpp |
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <deque>
#include <list>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <numeric>
#include <iomanip>
... |
2053f802f8dfec3291f0b95f97d8128e93a07dd8 | c777564eb4ae9d2536729cdc2d2d8b00b46e63af | /Source/ASCII_GAME/Core/Maths/Rect.h | 20644a443c43127c060ab4a878b04dc54515042c | [
"MIT"
] | permissive | asimpson2004/Chip8Emulator | 90abf1a7d56c50bb485bece40f3c51cf868b09ae | fffd07fc6a993ead0267a3cabd5ee076948af1d8 | refs/heads/master | 2022-11-12T07:32:14.463109 | 2020-07-05T16:16:13 | 2020-07-05T16:16:13 | 276,463,310 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 184 | h | Rect.h | #ifndef _RECT_H_
#define _RECT_H_
class Rect
{
public:
Rect();
Rect(float _x, float _y, float _w, float _h);
~Rect();
float x;
float y;
float w;
float h;
private:
};
#endif
|
d2dbe686af7fa6e9202f31d2c42d676c0cb1b9ab | 33a21a0c98ed16c1dc12b4f66417dff1dff48992 | /astar.3pfrk.cpp | da71071c4d14b126b444ae97496f350f6109669f | [] | no_license | j000/ASD2.projekt | cbbd6fbace71b4ccda24407171a2113246f09f4e | fb5d1c76f29a41aec8cfdf2cff1b3490883a3711 | refs/heads/master | 2020-06-01T19:35:42.903642 | 2019-06-10T01:21:15 | 2019-06-10T01:21:15 | 190,902,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,531 | cpp | astar.3pfrk.cpp | #include "astar.hpp"
#include "dijkstra.hpp"
#include "Graph.hpp"
#include <cmath>
#include <cstdint>
#include <functional>
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
Graph<std::pair<float, float>, double> g;
constexpr std::size_t grid_size = 16u;
const auto sqrt_2 = std::sqrt(2.);
... |
4136b6871a3332593773fcdbd9a9a7d360cfe855 | 94a85a1b28ca1a55634490c32540241f4f60a3e6 | /module_0/ex02/Account.class.cpp | 77a7550101289642b97b45ff90055547d97858f1 | [] | no_license | Saske912/cpp | 054507793021d90bb174f3039639b74f36f4f05d | 05691dca31531b3ce865189dee2c692ba4d5f21f | refs/heads/master | 2023-05-28T12:29:28.884531 | 2021-06-08T01:46:30 | 2021-06-08T01:46:30 | 353,736,381 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,080 | cpp | Account.class.cpp | //##################################################################
// ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⣀⣠⣴⣖⣁⣀⣀⡄⠀⠀⠀
// ⠀⠀⠀⠀⠀⠀⢀⣀⣠⣴⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⣤⣄⣀⣀
// ⠀⠀⠀⠀⠀⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⠛⠁
// ⠀⠀⠀⠀⠀⢸⣿⣿⣿⣿... |
55791d2eb0bf460c8cb744777dc35c209d3c2ee2 | 6822829627ff78514736f5bd9475b8ef0e10acfc | /Homework_8/grocery.cpp | 3f09ed1b280384171f59acf0d106214200e1eebe | [] | no_license | ChadFunckes/CU_Denver_CSCI2421 | f845943aedd2a9083518e5e759a97ca3a806425f | 272f0314bdf3a093b7ed0f7077db4a6dcb1f4edd | refs/heads/master | 2021-01-17T15:06:24.032070 | 2016-06-23T02:48:36 | 2016-06-23T02:48:36 | 31,835,790 | 0 | 0 | null | null | null | null | MacCentralEurope | C++ | false | false | 4,124 | cpp | grocery.cpp | // FILE: grocery.cxx
// A small test program to test the simulate function for series of grocery store line.
#include <iostream> // Provides cout
#include <vector> // Provides vector
#include <cstdlib> // Provides EXIT_SUCCESS
#include <queue> // Provides queue
#include "grocery.h" // Provides averager, b... |
57b3fcf2542a8a007fd13dae537b5df6c2c82df7 | 868f30e81e44c2bfc75c4eadc21c455bda68fb6a | /dlg/ZImgeSelect.cpp | 8f588599dc2c3d73f29d7eb8a5d1a2deeb77aba8 | [] | no_license | BGCX261/zmessanger-hg-to-git | 8ed5220d762fb660dd06f51cbcd6ce672c2e28e2 | 03384d2cbf061eddb0672a85e74e6c44acebbbb8 | refs/heads/master | 2021-01-19T22:32:54.683969 | 2010-09-09T10:53:31 | 2010-09-09T10:53:31 | 41,378,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,570 | cpp | ZImgeSelect.cpp | //
// Project: zMessanger (zIM)
//
// Version: 0.3
//
// Description: ICQ client for MOTOMAGX Platform.
// In future planed support XMPP protocol.
//
// Author: Ant-ON <prozanton@gmail.com>, (C) 2009-2010
//
#include "ZImgeSelect.h"
#include "ZXStatusText.h"
#include <qlabel.h>
#include <ZApplication.h>
#include <... |
7002bbd1a9663bea5b16efa0d01fe01d74bbd2e7 | a7cf10df662b66f2c152e739bca80c7c7e9c3ec8 | /Assignment2/DeusExMachina.h | 6cfa81729c15cce0967588c27aa1a74080dcb86a | [
"MIT"
] | permissive | choidongkyu/cplus_study | e72bad9e9328d68e9bf10f5a476d575be791873d | 1b0554d5bbf5aeb831de3747426457d4b33bdb76 | refs/heads/master | 2022-04-23T17:08:20.494557 | 2020-04-05T18:23:04 | 2020-04-05T18:23:04 | 232,004,199 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 440 | h | DeusExMachina.h | #pragma once
#include "Vehicle.h"
using namespace std;
namespace assignment2
{
class DeusExMachina
{
public:
static DeusExMachina* GetInstance();
~DeusExMachina();
void Travel() const;
bool AddVehicle(Vehicle* vehicle);
bool RemoveVehicle(unsigned int i);
const Vehicle* GetFurthestTravelled() const;
pri... |
20772df36ea780a2bc9f4b61931d521a8452550c | 5146b09937c316af95b8692aad5fac57004c1a39 | /cpp/GildedRoseUnitTests.cc | 8157daf6d838ae168a41f12a0bd6eca346123c44 | [
"MIT"
] | permissive | hoxensu/GildedRose-Refactoring-Kata | 842a69bf25976d1e717d0d12366e2beb05214d71 | 3c923efbb59a13262149059376f528bcc7888164 | refs/heads/master | 2021-03-20T13:15:25.681451 | 2020-03-14T07:12:00 | 2020-03-14T07:12:00 | 247,209,367 | 0 | 0 | MIT | 2020-03-14T04:10:12 | 2020-03-14T04:10:12 | null | UTF-8 | C++ | false | false | 4,648 | cc | GildedRoseUnitTests.cc | #include <gtest/gtest.h>
#include "GildedRose.h"
TEST(GildedRoseTest, NormalItem) {
vector<Item> items;
items.push_back(Item("+5 Dexterity Vest", 0, 0));
items.push_back(Item("+5 Dexterity Vest", 0, 1));
items.push_back(Item("+5 Dexterity Vest", 0, 2));
items.push_back(Item("+5 Dexterity Vest", 0,... |
406b838105599c5f4326debd2561e14be8475883 | 23918d407cbcf5977da0505206ac4ad815e47835 | /spatial_mix/src/spikes/test_stan.cpp | 54d8094217cda46d33a190d9dfc57e46586c71d4 | [] | no_license | mberaha/spatial_mixtures | 5ed5735671529f9ff1e91b9d4c812b89a936d6f3 | 96cdba90fc5d2167d44776074657a5860e6a74d7 | refs/heads/master | 2023-08-19T07:27:16.593276 | 2021-09-13T08:51:09 | 2021-09-13T08:51:09 | 216,822,967 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | test_stan.cpp | #include <iostream>
#include <stan/math/prim/mat.hpp>
#include <random>
int main() {
Eigen::VectorXd mean(2);
mean << 0, 10;
std::mt19937_64 rng;
Eigen::MatrixXd var(2, 2);
var << 1, 0.5, 0.5, 1;
Eigen::VectorXd normalMat = stan::math::multi_normal_rng(mean, var, rng);
std::cout << "nor... |
599b297fa6a6da84ed49d5bc73ad7ef28d353d67 | 447e824ca0111d087f74b079747c523659f54215 | /trivia-Project/Server/GameRequestHandler.cpp | 1681ec9e2dfc0ff8037ce66bde1c8b5e0ec86289 | [] | no_license | yego163/Portfolio-Avi | 03c9b7469802c2e47c3c16cbd4859875d24e4070 | d7d409144da4d1f5aa0cb43ff1a854b7c479f644 | refs/heads/main | 2023-05-05T12:16:49.747585 | 2021-05-09T20:58:59 | 2021-05-09T20:58:59 | 365,840,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,824 | cpp | GameRequestHandler.cpp | #include "GameRequestHandler.h"
GameRequestHandler::GameRequestHandler(RequestHandlerFactory* fac, LoggedUser user, Game* game, Room room) : m_game(game), m_room(room)
{
m_handlerFactory = fac;
m_user = user;
/*std::thread t(&GameRequestHandler::checkPlayersInGame, this);
t.detach();*/
}
GameRequestH... |
0d6ac211267c774863cd27441133a3453835c1a1 | 171939de0a904c90f9af198b8e5d65f8349429d7 | /CQ-00198/traffic/traffic.cpp | 491b6742e7d663963ad016c969cafab2549d2afb | [] | no_license | LittleYang0531/CQ-CSP-S-2021 | 2b1071bbbf0463e65bfc177f86a44b7d3301b6a9 | 1d9a09f8fb6bf3ba22962969a2bac18383df4722 | refs/heads/main | 2023-08-26T11:39:42.483746 | 2021-10-23T14:45:45 | 2021-10-23T14:45:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,946 | cpp | traffic.cpp | #include<bits/stdc++.h>
using namespace std;
#define MAXN 300005
typedef long long LL;
const LL INF=0x3f3f3f3f3f3f3f3f;
template<typename _T>
void read(_T &x){
_T f=1;x=0;char s=getchar();
while('0'>s||s>'9'){if(s=='-')f=-1;s=getchar();}
while('0'<=s&&s<='9'){x=(x<<3)+(x<<1)+(s^48);s=getchar();}
x*=f;
}
int n,m,T,a... |
6982405d965c14c96705fa01eeb7e65a41f1a026 | 7b08283d294593b2161e3ab8bdbc51549cfc643c | /src/World.cpp | 901131836a769c748d016eff53323cac81a80da1 | [
"MIT"
] | permissive | kwangsing3/Asteroid-GE-archive- | 7be2bd314a048b1a25260fe9b4f83e8c03fb1ff4 | a982293ab3f7652eff923bfdc2931836c9f9d60e | refs/heads/master | 2020-12-31T23:49:03.955628 | 2020-02-08T07:00:52 | 2020-02-08T07:00:52 | 191,006,911 | 0 | 0 | null | null | null | null | BIG5 | C++ | false | false | 9,633 | cpp | World.cpp | #include <World.hpp>
#include <Camera.hpp>
#include <Window.hpp>
#include <SceneManager.hpp>
extern unsigned int Window_Width, Window_Height;
void World::_Pivot::CreateMouseCollision()
{
_needdebug = true;
if (this->_visable)
{
colshape.clear();
btCollisionShape* _shap;
_shap = new btCapsuleShapeX(0.2f, 0... |
61385340fc2b260bf12d239ec02123a543ffa8c2 | 8406743c27fbfa2ba2ee623497a748067c7cd236 | /estetimage/src/include/notifications.hpp | edde56513213d4a3fa9dd3dcf784fabfbd3e8387 | [] | no_license | sayanel/ESTETIMAGE_PTUT | 087479c5d86f7e528e4c75d86189d75378cd1e94 | d63d957b1a517d8a21c01ae80c733a9b9ac1ab29 | refs/heads/master | 2021-01-10T04:07:48.720580 | 2015-05-25T16:14:54 | 2015-05-25T16:14:54 | 36,240,742 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 242 | hpp | notifications.hpp | #pragma once
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <gphoto2/gphoto2-camera.h>
void error_func (GPContext *, const char *, va_list , void *);
void message_func (GPContext *, const char *, va_list, void *); |
53cb2557dbba52ad3f193e0f9b7fdde80fd3e3b0 | 828a0516fb6900639ba7a51c6a6ceeb61796f598 | /source/camera/camera.h | 500ee25326e3cddc6b45f926f885e5af6dbeea82 | [] | no_license | leoburgos/engine_old | 960b8afb26b06a8a1f5c5e8840076774ccfebc79 | e89673ed494e654e8acba6ce5be61f7b27d673b8 | refs/heads/master | 2021-09-06T14:50:35.550927 | 2018-01-31T20:03:46 | 2018-01-31T20:03:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,159 | h | camera.h | #pragma once
class CCamera {
VEC3 pos; // eye
VEC3 target;
VEC3 up_aux;
// 3 orthonormals axis in world space
VEC3 front;
VEC3 up;
VEC3 left;
// Prepective params
float fov_vertical; // in radians!!
float z_near;
float z_far;
float aspect_ratio;
// Matrix
MAT44 view;
... |
8d1da2eb18005b1e097f386d4219d6fa478e9231 | e9b325d8572f05cd7a6db974afac864d4f8112eb | /algorithm_structure/heap/heap.h | 26ee106e27188d143bd133204493cfbc5d904c3c | [] | no_license | CXinsect/Daily_Learning | 78abe46fbc4228ca419e43d42f4e659bafe6df86 | 4e1baa947915d58b4bb8ecc487817f1276c0d88c | refs/heads/master | 2020-04-27T06:41:12.469818 | 2020-04-26T08:46:10 | 2020-04-26T08:46:10 | 174,115,582 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | h | heap.h | #pragma once
#include "array.cpp"
class heap
{
public:
heap() {}
heap(int capicaty) {
array b(capicaty);
a = b;
}
~heap() {}
private:
//获取父亲结点下标
int parent(int index) {
return (index - 1)/2;
}
//获取左孩子结点下标
int leftChild(int index) {
return index * 2 + 1... |
482df71eb74437249bc0e6e31c0f073f17a70829 | f576eacfd93e5db78dcaaf5199a430e5a7b0ce47 | /MP3Player.cpp | 29013128ad9b8ca5cbc49c6f8e0a66dde7d904e8 | [] | no_license | AKQuaternion/Spring2014CS342DesignPatterns | 00f47ca77d547e82e76a3bd6f693243175d81a27 | 5acf001e07fc28d379226a7e416a0908f9710c4a | refs/heads/master | 2021-01-23T11:50:26.380353 | 2014-05-02T21:21:06 | 2014-05-02T21:21:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | cpp | MP3Player.cpp | //
// MP3Player.cpp
// CS394State
//
// Created by Chris Hartman on 4/1/13.
// Copyright (c) 2013 Chris Hartman. All rights reserved.
//
#include "MP3Player.h"
#include <iostream>
using std::cout;
MP3Player::MP3Player(unique_ptr<MP3PlayerState> state):_state(std::move(state))
{}
void MP3Player::pushPlayButton()
... |
8d195af267dbe4d4caf820068b9b77b532775049 | fcab6942912e1e75628238599411f46126654a80 | /project/typetable/typetable.h | c362fcc9e55913226d65ab2e56fc43b18860506e | [] | no_license | Mpandura/Dependency-Based-Code-Publisher | 5f4af2ba79c16402e198cb3619bc4ef08c2b85d1 | 5a04b704893ef15514bf4fe930e62847b00cfb4a | refs/heads/master | 2021-09-03T06:17:14.971792 | 2018-01-06T08:57:06 | 2018-01-06T08:57:06 | 116,468,579 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,126 | h | typetable.h | #pragma once
#include "../Parser/ActionsAndRules.h"
#include<iostream>
#include<stack>
#pragma warning (disable : 4101)
namespace CodeAnalysis {
class Tuple
{
public:
using Type_name = std::string;
using Namespace_name = std::string;
using File_name = std::string;
Tuple() {};
Tuple(std::string typ, std:... |
fd32feaecdc52cf47bcc492040e90e78f8c73fe7 | b4e1d16c276be34c0548c01d8fb69bb3b91d9964 | /Atum/Support/Spark/Extensions/Emitters/SPK_SphericEmitter.cpp | 22b23cdb3eed45ec42fd4cb64267aee17ca17592 | [
"Zlib"
] | permissive | ENgineE777/Atum | 034b884abf115fbdbd5dbbacddd27353044923cb | 3e9417e2a7deda83bf937612fd070566eb932484 | refs/heads/master | 2023-01-11T23:22:15.010417 | 2020-11-14T07:12:09 | 2020-11-14T07:12:09 | 86,157,927 | 23 | 4 | Zlib | 2019-05-01T06:20:27 | 2017-03-25T13:06:05 | C++ | UTF-8 | C++ | false | false | 5,052 | cpp | SPK_SphericEmitter.cpp | //
// SPARK particle engine
//
// Copyright (C) 2008-2011 - Julien Fryer - julienfryer@gmail.com
// Copyright (C) 2017 - Frederic Martin - fredakilla@gmail.com
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising fro... |
19910aa4516aa3d116a6d844fdc11636e17e0088 | 066fca52e8dfb65baecd0e6e8a5bb7724590385c | /src/core_util/config_vars.cpp | d190c671b3dc76929112579c7135d0f4cd2c93cc | [
"MIT"
] | permissive | nsdrozario/clashing-countries | 05e27b4f32c686eb7b0ce0b0bab430d924f14350 | b42d0cd88642951d7f75cd45c74b70ac93f05df5 | refs/heads/master | 2023-02-06T14:06:26.878692 | 2020-12-25T05:25:26 | 2020-12-25T05:25:26 | 284,347,577 | 0 | 0 | NOASSERTION | 2020-10-08T02:46:21 | 2020-08-01T22:14:59 | C++ | UTF-8 | C++ | false | false | 410 | cpp | config_vars.cpp | #include <clashingcountries/core_util/config_vars.hpp>
const std::vector<std::string> settings_ints {
"screen_width",
"screen_height"
};
const std::vector<std::string> settings_bools {
"fullscreen"
};
const std::vector<std::string> settings_strings {
};
std::map<std::string, int> int_settings;
std:... |
7c67e448f6987e5e8b1842e89d6ce79bf1b4a294 | 041d4521b9a490711b411827a06c0c84504948b4 | /Classes/lines/Lines.hpp | 0669673729ce2d83d5875ff8f1cd344b5ee1a39a | [] | no_license | shunter55/slotmachine | 0afdddd2112bc166e8358f292330cbeff6440d05 | b57c2c9651f772ffc2423970b240cc91cb661e54 | refs/heads/master | 2020-11-29T05:41:38.996055 | 2019-12-30T21:52:24 | 2019-12-30T21:52:24 | 230,035,545 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | hpp | Lines.hpp | //
// Lines.hpp
// slotmachine-mobile
//
// Created by Stephen Kobata on 12/23/19.
//
#ifndef Lines_hpp
#define Lines_hpp
#include <stdio.h>
#include "Line.hpp"
class Lines {
public:
Lines();
static const int TOTAL_LINES = 25;
static const std::string lineDefs[];
Line *lines[25];
};
#endif /... |
27b85274131bc8bc08cc733c4cad6ea3b814d271 | cf81c267f29dab0e1bdf39854e84f8e8b0d9392e | /src/AppRegistry.h | 02edd8b0ee959ea5b276cecb9198038b8f4cbb91 | [
"Apache-2.0"
] | permissive | RogerParkinson/vortex-manipulator | 840f449c663e630ece3bf667ced36df0b6e0a889 | 133989143f3f931ae8cdf7865ee34dff58039e2b | refs/heads/master | 2021-06-19T08:17:43.424063 | 2021-01-29T22:38:34 | 2021-01-29T22:38:34 | 32,247,073 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,367 | h | AppRegistry.h | /*
* AppRegistry.h
*
* Created on: 23/05/2013
* Author: roger
*/
#ifndef APPREGISTRY_H_
#define APPREGISTRY_H_
#include "App.h"
#include <Logger.h>
#define MAX_APPS 10
//#define DEBUG_APPREGISTRY
class AppRegistry {
private:
Logger *loggerAppRegistry;
int count=0;
App *apps[MAX_APPS];
App *currentApp... |
3d80edaee2996d4ec1d193bbe8bc30949e4aefdb | 5ed390298d2f738a6dff9628ed24a2f78e05218f | /app/src/main/cpp/OpenCVLearn.cpp | 5d5e13706e2fef9adacf1ef8222632f296e799a4 | [] | no_license | tianshaokai/OpenCVLearn | 6fd4984a1d7e3831f53680f284ad82691495a6f0 | 0f4d91b4157775bfc8a272929bad4e5b3b8f6a3f | refs/heads/master | 2021-07-12T16:44:58.996302 | 2020-06-26T15:21:24 | 2020-06-26T15:21:24 | 165,164,269 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 14,220 | cpp | OpenCVLearn.cpp | #include <jni.h>
#include <string>
#include "opencv2/opencv.hpp"
#include "android_log.h"
#include "FaceDetector.h"
#include "BitmapMatUtil.h"
using namespace cv;
extern "C" JNIEXPORT jintArray JNICALL
Java_com_tianshaokai_opencv_OpenCVLearn_gray
(JNIEnv *env, jclass, jintArray buf, jint w, jint h) {
//获取... |
1754a8b60afdf47372f7e0bd66026b1d53076d09 | 5218777f96dad9adb655c738ac171369c4ae243a | /ExamPrep2/TopView/TopView.h | c6324c17cd1f58eb0199c9952d350a9547917e37 | [] | no_license | Pavel-Romanov99/Data-Structures-and-Programming | ddb234ac2146f903abf1b1a837ab79a50198d6d8 | 8d0ac679e717ff5f0cecf14f69b6a5b9f0a7f2c5 | refs/heads/master | 2022-04-02T06:28:39.155165 | 2020-01-17T09:54:48 | 2020-01-17T09:54:48 | 212,769,727 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,031 | h | TopView.h | #pragma once
#include <iostream>
#include <map>
#include <queue>
#include <iterator>
using namespace std;
struct node
{
int data;
node* left;
node* right;
int key;
bool visited = 0;
};
node* getNewNode(int data){
node* temp = new node();
temp->data = data;
temp->left = NULL;
temp->right =... |
56ecf96b2b0d6ae1a776caef268dee8553a9c297 | 1d28a48f1e02f81a8abf5a33c233d9c38e339213 | /SVEngine/src/basesys/SVPickProcess.cpp | ff31e754840a588c765c2b2b2682e19783d41e46 | [
"MIT"
] | permissive | SVEChina/SVEngine | 4972bed081b858c39e5871c43fd39e80c527c2b1 | 56174f479a3096e57165448142c1822e7db8c02f | refs/heads/master | 2021-07-09T10:07:46.350906 | 2020-05-24T04:10:57 | 2020-05-24T04:10:57 | 150,706,405 | 34 | 9 | null | null | null | null | UTF-8 | C++ | false | false | 12,121 | cpp | SVPickProcess.cpp | //
// SVPickProcess.h
// SVEngine
// Copyright 2017-2020
// yizhou Fu,long Yin,longfei Lin,ziyu Xu,xiaofan Li,daming Li
//
#include "SVPickProcess.h"
#include "../app/SVInst.h"
#include "../app/SVGlobalMgr.h"
#include "../event/SVEventMgr.h"
#include "../event/SVOpEvent.h"
#include "../basesys/SVSceneMgr.h"
#include "... |
15fb17913edba69a83849c0e18f58167a2b76095 | 971713859cee54860e32dce538a7d5e796487c68 | /unisim/unisim_lib/unisim/component/tlm2/chipset/attic/arm926ejs_pxp/vic/vic.hh | 91494bf07121c50628603f48af1208c3e8b9a770 | [] | no_license | binsec/cav2021-artifacts | 3d790f1e067d1ca9c4123010e3af522b85703e54 | ab9e387122968f827f7d4df696c2ca3d56229594 | refs/heads/main | 2023-04-15T17:10:10.228821 | 2021-04-26T15:10:20 | 2021-04-26T15:10:20 | 361,684,640 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,684 | hh | vic.hh | /*
* Copyright (c) 2010,
* Commissariat a l'Energie Atomique (CEA)
* 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 copyri... |
39031feae842490a718480b30aeb37379757d068 | 324b47d0434a5c829b1e0dfb8ba024f82c0092cf | /BullsCows.cpp | 843bbe4a12bbfd123d876a540c76aa9b27b9b401 | [] | no_license | jolin1337/Bulls-Cows | ef76dfe0677e37af1dcdf4af181fbda071277209 | 1cebe183082cae49d03a8b7eb97dc7f2c4a5d2cf | refs/heads/master | 2021-01-23T14:56:30.332407 | 2012-12-20T13:35:51 | 2012-12-20T13:35:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,276 | cpp | BullsCows.cpp | #include "BullsCows.h"
#include "DistinktNumber/DistinktNumber.h"
#include "header.h"
using namespace std;
using SR::ScreenRender;
BullsCows::BullsCows():menues(&sr, &keys), solveres(&sr, &keys){
playing = true; // så länge spelet håller igång är denna true, så nu startas spelt
resultPos.X = 10; // t... |
5989f6557b7608124a6e006dc6aff6899b9fa4ad | 245724709dfc7ee5c1c2d4ce6ec55d523f78d60c | /src/Algorithms/FruchtermanReingold.cpp | 6d4782518b2fffcf29c456b785bc709a1f0b1706 | [] | no_license | joemcdonnell50/Qt_NetvizGL2 | 47aeca8b3c808d96567e1986457b3014d45a891f | 08c1929ed8735029ed40ea6ad99e4cf175d76780 | refs/heads/master | 2021-05-13T13:23:56.045366 | 2018-04-18T16:33:46 | 2018-04-18T16:33:46 | 116,705,618 | 0 | 0 | null | 2018-01-08T17:14:39 | 2018-01-08T17:14:39 | null | UTF-8 | C++ | false | false | 2,639 | cpp | FruchtermanReingold.cpp | //
// Created by werl on 10/02/17.
//
#include <sys/time.h>
#include <zconf.h>
#include "../../inc/Algorithms/FruchtermanReingold.h"
FruchtermanReingold::FruchtermanReingold(Graph *g) : Algorithm(g) {
W = 40;
L = 30;
area = W * L;
t = graph->numVertices;
k = sqrt(area / (double)t);
initialPlac... |
a7d9dec0e8378b973875b1b7d98e39028afe75dd | 33a600802348b155b21e919139c311f207cbc8a7 | /src/cpp/utils.cpp | 31cf6705475492d2d33200ff22ee8a93080ed067 | [] | no_license | oldmannt/gearsbox | 0f48f1f256d88f199cf7c984fb0a10667aa79c21 | 27d41745844dd2795e079aaf43b46e31e10970b0 | refs/heads/master | 2020-04-12T06:34:12.126992 | 2016-11-05T00:16:29 | 2016-11-05T00:16:29 | 58,963,862 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,656 | cpp | utils.cpp | //
// utils.cpp
// gearsbox
//
// Created by dyno on 6/23/16.
//
//
#include <fstream>
#include <chrono>
#include "macro.h"
#include "utils.hpp"
#include "async_task_pool.cpp"
using namespace gearsbox;
bool gearsbox::readJson(const std::string& param, Json::Value& config){
CHECK_RTF(param.size()>0, "param siz... |
ee59ee3b3a90a844f76725679c3661a891c70709 | 6e3b59d15607630869f518aee24c762d5dd71d06 | /CODES/D_Binary_String_To_Subsequences.cpp | 0157ffebd9832f72bf301725a068e92712b03119 | [] | no_license | Aman-droid/CP_Essentials | c74ffce2c4acc9fa6b0ebc409f9f6e9640f92c91 | 40758de037a4b380bd7d921cd3cd7c4f8fc86be1 | refs/heads/master | 2023-06-05T13:56:29.053495 | 2021-06-29T18:13:14 | 2021-06-29T18:13:14 | 381,141,371 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,907 | cpp | D_Binary_String_To_Subsequences.cpp | #include<bits/stdc++.h>
#define ll long long
#define int long long
#define endl '\n'
#define rep(i,a,b) for(int i=a;i<=b;i++)
#define pll pair<ll,ll>
#define pii pair<int,int>
#define vpll vector<pll>
#define SZ(x) ((int)x.size())
#define FIO ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL)
#define watch(x)... |
ef8eafaf2f303fedb21a07911d72b7306d375053 | 00845730e8c3f66af4687a44f93c46295ad91db3 | /lab5/dns/cal_ans.cpp | 7494a83a94b4b145a0e25fe25bf675e2661d974b | [
"MIT"
] | permissive | Yangfan-Jiang/High-Performance-Computing-Fall-2019 | 57464fb7c5f7df14055da9108b782c0c191c7c0c | b0292d17cbf1ce93e8df024a53721f94cefa95e4 | refs/heads/master | 2022-11-30T11:29:00.250326 | 2020-08-14T14:03:11 | 2020-08-14T14:03:11 | 206,923,025 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,648 | cpp | cal_ans.cpp | #include<iostream>
#include<cstdlib>
#include<cmath>
#include<fstream>
#include"omp.h"
#define N 32768
using namespace std;
void init_matrix(double **A, double **B, double **C, double **C2 ,int local_i, int local_j, int block_size);
void init_matrix_s(double **A, double **B, double **C);
void matrix_multi_serial(dou... |
74e97340c2d34ed78419645057251720c17d571f | 4f0ecbd419ee957d65930209ef890ad391f3723e | /src/worker.hxx | ec0d74e60f3b2f028f98534647c47fc0529c8f97 | [
"MIT"
] | permissive | moskupols/mipt-parallel-labs | 0bd0402f954ee975908a85462660620ca028082c | 4762733d50f7e1dd46f7cdd13c4861b9f9f73e37 | refs/heads/master | 2016-09-11T02:47:54.059647 | 2015-09-30T02:36:39 | 2015-09-30T02:37:06 | 42,747,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 219 | hxx | worker.hxx | #ifndef WORKER_HXX_INCLUDED
#define WORKER_HXX_INCLUDED
#include "tile.hxx"
namespace game_of_life
{
class Worker
{
public:
static void makeIteration(const AbstractTile& prev, AbstractTile& next);
};
}
#endif
|
91dba47cd455067e0f0a8074f0e237483454d8f4 | 08509d1d559f3f7eab7495cd4e072f229488166a | /Solution/Entity/SpawnpointComponentData.h | c5ed3200c3444f8f1cd7e0709fbb2f8f467d575c | [] | no_license | LastVision/DistortionGamesFPS | 8a9da37990c68bb6ba193a289633f91ffa47bd6b | e26bd778b3ce16e01e6c9d67ad8e0ce7d1f0f6e0 | refs/heads/master | 2021-06-01T08:32:46.430309 | 2016-04-28T10:34:38 | 2016-04-28T10:34:38 | 51,527,472 | 2 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 270 | h | SpawnpointComponentData.h | #pragma once
#include <GrowingArray.h>
struct SpawnpointComponentData
{
bool myExistsInEntity = false;
CU::GrowingArray<std::string> myUnitTypes;
float mySpawnpointLifetime = 0.f;
float mySpawnInterval = 0.f;
int mySpawnPerInterval = 0;
int myUnitCount = 0;
}; |
8486fd20c3ba98a72f597f10e0cc80a20abe62c1 | 2f6a9ff787b9eb2ababc9bb39e15f1349fefa3d2 | /inet/src/inet/physicallayer/modulation/Qam1024Modulation.cc | c8c49979ce95b72c7f8031978d97c0b340263924 | [
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-free-unknown"
] | permissive | ntanetani/quisp | 97f9c2d0a8d3affbc709452e98c02c568f5fe8fd | 47501a9e9adbd6adfb05a1c98624870b004799ea | refs/heads/master | 2023-03-10T08:05:30.044698 | 2022-06-14T17:29:28 | 2022-06-14T17:29:28 | 247,196,429 | 0 | 1 | BSD-3-Clause | 2023-02-27T03:27:22 | 2020-03-14T02:16:19 | C++ | UTF-8 | C++ | false | false | 29,262 | cc | Qam1024Modulation.cc | //
// Copyright (C) 2014 OpenSim Ltd.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program i... |
01ff383a4cd3a5c49b0e3a5226ef7068b360c386 | 77861deda8b3046bdda221d3cb80b77e84b14523 | /parseip4/common.cpp | f2196ae5dcecec36b2ccd6332e6dff087ec85f8c | [
"BSD-2-Clause"
] | permissive | WojciechMula/toys | b73f09212ca19f1e76bbf2afaa5ad2efcea95175 | 6110b59de45dc1ce44388b21c6437eff49a7655c | refs/heads/master | 2023-08-18T12:54:25.919406 | 2023-08-05T09:20:14 | 2023-08-05T09:20:14 | 14,905,115 | 302 | 44 | BSD-2-Clause | 2020-04-17T17:10:42 | 2013-12-03T20:35:37 | C++ | UTF-8 | C++ | false | false | 912 | cpp | common.cpp | #include "common.h"
struct errorName {
unsigned mask;
std::string name;
}
const errorName[8] = {
{errTooShort, "input too short"},
{errTooLong, "input too long"},
{errEmptyField, "field has no digits"},
{errTooBig, "field value greater than 255"},
{errWrongChara... |
8c5a938cc3252a02f545fa7ede093a30899c90b9 | f86f01c7cb696d47fff935de60ab36a88bea7c7c | /Software/mex_code/ALP/ALP-4.2/Samples/Alp42Sample/AlpSample.h | fe855918c4dcb35d7f8dc450e3e024e20272cdec | [] | no_license | dicarlolab/Fiberscope | 02da70f8a6b53fee19544261b3acbd72782acf4b | 49f389ee98cb699cf5b5acf6db105492226e8e2e | refs/heads/master | 2021-08-29T17:45:28.793239 | 2017-12-14T14:09:52 | 2017-12-14T14:11:01 | 113,343,819 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 1,471 | h | AlpSample.h | // AlpSample.h : main header file for the ALPSAMPLE application
//
// This is a part of the ALP application programming interface.
// Copyright (C) 2004 ViALUX GmbH
// All rights reserved.
//
#if !defined(AFX_ALPSAMPLE_H__AA820937_C345_408A_90D2_8025C7E13002__INCLUDED_)
#define AFX_ALPSAMPLE_H__AA820937_C345_408A_90D2... |
380ebef5dc758d93e150dcfe3929fed948872577 | 8784cd8d2f440fe97c4da4a30f6f86589ad37749 | /Server/src/ClientStruct.cpp | 929db779a38688c4a21739eba7459bd565452165 | [] | no_license | ZnHoang/SocketChat | 604a1849b1ea5fc7c6afcfc25ecbde539950992b | 0926b230b67c91c677dc02179d411d025b31adfb | refs/heads/main | 2023-05-31T13:05:56.032871 | 2021-06-12T10:00:02 | 2021-06-12T10:00:02 | 371,892,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,271 | cpp | ClientStruct.cpp | #include "ClientStruct.h"
ClientStruct::ClientStruct(int clitfd)
: clitFd(clitfd),
readFlag(ReadFlag::NONE),
writeFlag(WriteFlag::NONE),
evs(EPOLLONESHOT)
{
qMsg = std::make_shared<MyQueue<std::string>>();
}
const ReadFlag ClientStruct::setRead(const mRR& otFlags)
{
ulm lk(mtRead... |
8390efb9f0ea89c7e35ada9234bc687616f8902b | f90bffd8f373733fa0a1350f4c65fc607e585b09 | /MovieStore.h | b7059dadf1a717a8d5b2496b0de52f79181187ea | [] | no_license | joeghorton/HW4 | a1aab253ba2ecefd81e1ad83a2476380b13cec21 | 92376a81872cf85531cf851f4591d5c099402e8b | refs/heads/master | 2021-04-27T00:09:43.304522 | 2018-03-06T07:28:45 | 2018-03-06T07:28:45 | 123,759,081 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,300 | h | MovieStore.h | //
// Created by emma on 3/1/18.
//
#ifndef ASSIGNMENT4_MOVIESTORE_H
#define ASSIGNMENT4_MOVIESTORE_H
#include "RentalStore.h"
#include "MovieFactory.h"
#include "ActionHandler.h"
class MovieStore : public RentalStore {
public:
MovieFactory factory;
ActionHandler actionHandler;
// constructors
Mov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.