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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5c40a3b6e312a49db5ad54fdc54c531465d67541 | 4ab030516baab368419e64c8a5452d02d72daeb8 | /example/calculator/main.cpp | 8af8feab9a88757aef07602029574a417847f794 | [] | no_license | Leopard-C/ExpressionEvaluator | 0e3cd78a570a624a47fb9b621ca34e6080b9ff41 | bef8e57d2588e04dff10d590a608234486c68711 | refs/heads/master | 2021-05-23T08:19:06.117190 | 2020-04-05T09:17:13 | 2020-04-05T09:17:13 | 253,194,541 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cpp | main.cpp | #include "../../ExpressionEvaluator.h"
#include <unistd.h>
#include <getopt.h>
#include <iostream>
#include <iomanip>
#include <cstring>
void run();
int main(int argc, char** argv) {
if (argc == 1) {
run();
return 0;
}
else if (argc == 2) {
ExpressionEvaluator expEv;
doubl... |
76200d71b702b28122e6184726f19de3458acdef | abced4f3967faf64cc21cf8f6d4392464e1be734 | /protobuf/protobuf_test.h | 44bd2a45099f7ba920aeaecbb99bf0ff6a1d2700 | [] | no_license | gmlyytt-YANG/cxx_grammar | ad9f5cd05ea7d775135a0b4f4be99bbb1f519ba6 | 9b18551b6a3650264b1431d19f13351579a9bb42 | refs/heads/master | 2020-06-19T18:07:18.236590 | 2019-11-17T12:32:16 | 2019-11-17T12:32:16 | 196,814,882 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 716 | h | protobuf_test.h | /*************************************************************************
*
* Copyright (c) 2019 liyang. All Rights Reserved
*
************************************************************************/
/*
* @file protobuf_test.h
* @author gmlyytt@outlook.com
* @date 2019-07-21
* @brief
* */
#ifndef SELF_PROTO... |
a2e45a248ab3c9fe9298a04b0eebae751d1f88f7 | 63fadaa93caca22ca6b6546584243daf24e0e3fd | /sangwon/ch29_BFS/29-5.cpp | 5576b5982f919e48b6c06bdbabbea2f2605b6de1 | [] | no_license | snulion-study/algorithm-int | 60e69f58d0a94560798881ef98bd7a434c472733 | 7ac1cefe7b1e77b5ade9a28f302b5db0bb67a427 | refs/heads/master | 2023-03-14T09:52:47.139136 | 2021-02-27T05:13:02 | 2021-02-27T05:13:02 | 293,447,189 | 0 | 5 | null | 2021-02-27T05:13:03 | 2020-09-07T06:57:35 | C++ | UTF-8 | C++ | false | false | 20 | cpp | 29-5.cpp | // 어린이날 pass |
68ed704534145e972c49cc5adab3bbd6a0fa05a0 | fce4a30a8b4a7967bc57d94e25258319c4a40121 | /Practica1 c++/PersonaMascota/Persona/Mascota.cpp | 02a90199e25750b5d2cc29da23d38db709716949 | [] | no_license | jcvincenti/Estructuras-de-datos | 8b4cae3cbb2e7e6b37b493a1f1233e44381b4571 | 8f03da4ff519d837b51fe95766a1f28d0b4f7ee0 | refs/heads/main | 2023-04-14T15:32:27.424124 | 2021-04-28T02:29:15 | 2021-04-28T02:29:15 | 362,313,271 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 407 | cpp | Mascota.cpp | #include "Mascota.h"
struct MascotaSt {
string nombre;
string especie;
};
Mascota crearM(string nombre, string especie) {
MascotaSt* m = new MascotaSt;
m->nombre = nombre;
m->especie = especie;
return m;
}
string getNombre(Mascota m) {
return m->nombre;
}
void cambiarNombre(string nombre... |
4313840af6bcf357bb1e6eeebd8172a74446c9ba | e62458a3b66b818511eecff600aec7e40bc9da6b | /GhostHouse/GhostHouse/SourceCode/Object/Gimmick/BookShelf/BookShelf.h | 3cac739e1c5986c97f1d1c8846b1861c6fc24c6d | [] | no_license | OTakotiri/GhostHouse | 273e55e138ff15b519f79600ebe41befcfe92f43 | b8c4dc358a40960c709f5f2b2830475644f521e6 | refs/heads/master | 2021-01-01T13:53:26.019850 | 2020-02-13T16:52:44 | 2020-02-13T16:52:44 | 239,307,602 | 0 | 1 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,176 | h | BookShelf.h | #ifndef BOOK_SHELF_H
#define BOOK_SHELF_H
#include "..\..\..\ObjectBase\GimmickBase\GimmickBase.h"
class CBookShelf : public CGimmickBase
{
const char* MAIN_MODEL_NAME = "BookShelf"; // 仕様モデル名.
const float MODEL_SCALE = 0.08f;
const float SPHERE_COLLISION_RADIUS = 1.0f; // 当たり判定用の半径の大きさ.
const float MOVE_POWER =... |
3cfa8b288c851600a9dd7e94bd8d8d9c0390ab9f | 95450959948d7d2e301d960ea6bda47f31a16130 | /ctp2_code/robotcom/fuzzy/FliAction.cpp | 269daa79eabfc341db89054b22791d4d42e04239 | [] | no_license | ptitSeb/ctp2 | 88de6f9be54b97bf9cf4358dc1c14dc6f8d20eb2 | ac46e601b94fad8162677b964ff87a2e07923c9e | refs/heads/master | 2021-05-16T13:49:17.280404 | 2020-09-17T19:09:48 | 2020-09-17T19:09:48 | 105,444,215 | 31 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,756 | cpp | FliAction.cpp | #include "c3.h"
#include "fliif.h"
#include "globals.h"
#include "ic3player.h"
#include "FliAction.h"
#include "globals.h"
#include "aimain.h"
#include "FliEngine.h"
#include "pointerlist.h"
#include "FliSymbol.h"
#include "common.h"
#include "linked_list.h"
#include "semi_dynamic_array.h"
#include "sorted_array.h"
#in... |
b16cc88057dc2ec4a35c696e5b8604f0b50e0e9c | 216666b411f104e18602464e967a9b4f76890293 | /Array/Find_Duplicate-using_Hashing.cpp | a0990d2b94f6e108de34a9d8f27687417001e45c | [] | no_license | dhiman-007/DSA | b98f2f57c6b0ca9c6cd452ca96f6c84df5c97ba5 | 097b1ea3c7c1c2a82b32157e5699904c4a00158b | refs/heads/master | 2022-11-26T19:25:20.434817 | 2020-08-03T05:41:13 | 2020-08-03T05:41:13 | 283,533,711 | 1 | 0 | null | 2020-07-29T15:20:09 | 2020-07-29T15:20:08 | null | UTF-8 | C++ | false | false | 550 | cpp | Find_Duplicate-using_Hashing.cpp | #include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int a[n];
int p;
for(int i=0;i<n;i++)
{
cin>>a[i];
}
p = *max_element(a,a+n); // this is use to calculate maximum from an array i.e using STL
int H[p]; // size of array is the maximum element in array B
for... |
6c9447a33b5cf100edbd36b4c84835f9107f7941 | dc5fa623bf004f37d759384921220eb9e2b3482b | /sketch_jun16a3/sketch_jun16a3.ino | f015f8e75e885a2ab086d9b24b4e99cd4d6dedf0 | [] | no_license | nakaimauricio/BrewControl | e892d69391a2a6f8daf2d1d50c751e5e8908957c | 6ce0a64653195ce1504510e79f34bb997347bc6c | refs/heads/master | 2022-12-02T12:57:49.410136 | 2020-08-20T14:02:53 | 2020-08-20T14:02:53 | 286,577,645 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,246 | ino | sketch_jun16a3.ino |
/*
* Projeto para Arduino UNO
* Controle de temperatura para fermentação da cerveja
* Criação: 23/07/2020
* Atualização: 23/07/2020
* Autor: Mauricio Eiji Nakai
*/
#include <LiquidCrystal.h>
#include <OneWire.h>
#include "sensor_temperatura.h"
#include "timer.h"
#define saida_aquecedor 12
Liqu... |
6ba4625ad1d412f3fe2479bcadf1babe9ed68461 | 1cdf43d103a1c5664a9197fdc6002905f8fcf73a | /MOLab3/MOLab3/Non-linear.cpp | 22c6591ed5e2aa9b0dd6fe33cfec7fbb266b5feb | [] | no_license | RomanTymchyshyn/NumericalMethods | 8750ce23fa94dac72db27f1313c2e1d13bd6cac0 | 344333f5706f9209a37f81c53b90ac1c97d29aed | refs/heads/master | 2016-08-12T13:48:27.059598 | 2016-03-28T20:49:08 | 2016-03-28T20:49:08 | 54,922,630 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,413 | cpp | Non-linear.cpp | #include "Non-linear.h"
double f(const double & x, const double & y)
{
return (0.7*x - (1.0/3.0)*sin(y) - 2);
}
double g(const double & x, const double & y)
{
return (1.1*x + 2*y - sin(x/5.0) + 1);
}
double f1x(const double & x, const double & y)
{
return 0.7;
}
double f1y(const double & x, const double & y)
{
... |
41a4bfb7bea14c43b46087bca752cee99c34800a | 4039fe60cb7e643d61049b99038a5b6d9ec30314 | /DateTime.cpp | 0c5653b72b6407b9c7e4f1a763b9cc3125d2b78e | [] | no_license | anthonyho007/Kattis | 2a93fb0d8b358a08861594c3cf0874e9f2b0689c | 1907888794b17d8226121438f557edf29c6cb94f | refs/heads/master | 2021-01-19T16:40:12.325606 | 2017-10-11T08:15:52 | 2017-10-11T08:24:39 | 88,276,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,488 | cpp | DateTime.cpp | // #include <stdlib.h>
// #include <stdio.h>
#include <string.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main () {
char date[100];
char input_format[100];
char out_format[100];
char year[5];
char month[3];
char day[3];
... |
1713fbc062cdd01afe7d26ecc01ec68eb3b7e0db | 9937103d8a80958b97eab699ab0334d8f91c98ca | /Queue/DoubleListQueue.cpp | a89f79a37e68af053fdc0cfec66f0c4e723dd798 | [] | no_license | Lokol1337/DataStructures | 57726c73b2061bdfec832b38a538e8b0d9913107 | 4a3e984554b049f3774fdaf585462fb90bb9b523 | refs/heads/master | 2022-11-05T06:14:10.927549 | 2020-06-15T17:39:11 | 2020-06-15T17:39:11 | 258,742,358 | 0 | 0 | null | 2020-04-25T10:03:44 | 2020-04-25T10:03:43 | null | UTF-8 | C++ | false | false | 503 | cpp | DoubleListQueue.cpp | #pragma once
#include "DoubleListQueue.h"
#include <cstddef>
DoubleListQueue::DoubleListQueue() {}
void DoubleListQueue::enqueue(const ValueType& value) {
pushFront(value);
}
void DoubleListQueue::dequeue() {
this->removeBack();
}
const ValueType& DoubleListQueue::front() const {
return getNode(size()-1)->value;... |
a19c83067673812bc9a20b222272f28656cbc21b | ef7d308ff157eb43d9056dae91ea24effd2f32b2 | /XorBoard.cpp | 491ab1a0b7427aef03aebca6ebe00fccd82e089e | [] | no_license | abhiranjankumar00/TopCoder-SRM-submissions | cd37f2f2638c2e40daa571d08e2b068382921f23 | d0d3ee3bde2be630f6126d53f4bb0ea008a03150 | refs/heads/master | 2021-01-18T01:42:20.313261 | 2018-04-09T19:04:42 | 2018-04-09T19:04:42 | 5,789,738 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 7,299 | cpp | XorBoard.cpp | #include <vector>
#include <list>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cst... |
94d38d1b869a42eeaa4dfce36ed5fb9ac272a8c8 | d2d4dadbbb4f4c4df145ac8cdfed585a9bc5e701 | /src/main/cpp/disenum/TransferType.cpp | cd34e1db2a89893ed7fc17419e67202d98c1a1ae | [
"BSD-2-Clause"
] | permissive | Updownquark/DISEnumerations | c5e0368d4780a7d1c0de24603f4ab2dbe8c312ae | 6b90dd4fb4323d3daf5e1d282078d9c0ffe0545c | refs/heads/master | 2021-03-04T22:33:52.529451 | 2020-03-09T15:26:36 | 2020-03-09T15:26:36 | 246,071,613 | 0 | 0 | NOASSERTION | 2020-03-09T15:25:08 | 2020-03-09T15:25:07 | null | UTF-8 | C++ | false | false | 2,552 | cpp | TransferType.cpp | #include <sstream>
#include <cstddef>
#include <disenum/TransferType.h>
namespace DIS {
hashMap<int,TransferType*> TransferType::enumerations;
TransferType TransferType::OTHER(0, "Other");
TransferType TransferType::CONTROLLING_APPLICATION_REQUESTS_TRANSFER_OF_AN_ENTITY(1, "Controlling application requests transfer... |
c56c32209083661b2845c1c3a3ed3a389fb81948 | 631f1edc4281df77469586e85cbc91e526287c2e | /GLSL-Particle-Systems-CLR/Engine/ParticleSystem/ParticleExportAndHeaders/ContainerXMLData.hpp | cb866e6ebceb340519e386791bced5a933d2993e | [] | no_license | CesarRocha/GLSL-Particle-Systems | dd9e647a830c1d6b81b84d23c1a04db7cda54624 | a93607fc34fa3cf58e6a2c32e22ffe8e3f373d8f | refs/heads/master | 2021-01-12T11:37:32.153909 | 2016-11-04T05:56:50 | 2016-11-04T05:56:50 | 72,234,975 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 748 | hpp | ContainerXMLData.hpp | #pragma once
#ifndef _ContainerXMLData_
#define _ContainerXMLData_
#include "EmitterXMLData.hpp"
//===================================================================================================
// struct ContainerXMLData ==
//===================================================================... |
f145158064f1fdf71be76ca978f258b5c7d96bcd | 5c1b2e754c434c1af197c7087ba5230ca8005bed | /src/zed_processor/src/capture.cc | 93b1915d0862745819ac649caa3c55907a586ae7 | [] | no_license | konstantin-azarov/robomagellan | 7748c874fa5610784bad7effb5c1c09c6791364d | 9151fe151dc9281df503e4891387d9b0d2f88021 | refs/heads/master | 2021-01-20T11:48:10.432035 | 2017-04-22T05:55:40 | 2017-04-22T05:55:40 | 45,894,456 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,854 | cc | capture.cc | #include <boost/format.hpp>
#include <boost/program_options.hpp>
#include <stdio.h>
#include <opencv2/opencv.hpp>
#include <pthread.h>
#include <string>
#include <iostream>
#include <iomanip>
#include "camera.hpp"
#include "utils.hpp"
#define BACKWARD_HAS_DW 1
#include "backward.hpp"
using namespace std;
using boost... |
18b632758f68138d2594e6d10e65d1abb696ee4f | b1ccd1f03f9c3d28bb4bba83c3001a988e7ba54d | /inc/flymove.h | 5e6b91485cd39c2b31cd0bc59f839f1ba44ff9c7 | [] | no_license | twixthehero/GameEngine | ebb0a9570738c7bbdd97c9f965d4edf89aa7438f | cf611ce9bc18d763dce79fab56b1481657492f27 | refs/heads/master | 2021-01-19T03:01:13.916975 | 2015-11-16T01:50:29 | 2015-11-16T01:50:29 | 44,633,788 | 0 | 0 | null | 2015-11-16T01:50:29 | 2015-10-20T20:42:51 | C++ | UTF-8 | C++ | false | false | 212 | h | flymove.h | #pragma once
#include "gamec.h"
class Transform;
class FlyMove : public GameComponent
{
public:
FlyMove();
virtual void init();
virtual void update();
double moveSpeed = 5.0f;
private:
Transform* trans;
}; |
52704c01d41f4f3a446fdb21fb5298ec9fb4f9ec | 141fc7929c4d8327bd5ae929230552f52ce0c1d6 | /filereader.h | afcadfb00cf9fe5bd2426c9caccdeeae1e987bf3 | [] | no_license | bradishungry/CS-sound-project | db0eeda33a1c70223917c132aae83183eba5de41 | fb0f5e2fd14ba2b5979bf22bef799b160052d6ca | refs/heads/master | 2022-07-22T12:57:46.322735 | 2022-06-13T15:43:24 | 2022-06-13T15:43:24 | 46,454,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 792 | h | filereader.h | /*
* File: filereader.h
* Author: bboswell
*
* Created on November 11, 2015, 12:29 PM
*/
#ifndef FILEREADER_H
#define FILEREADER_H
#include <iostream>
#include <fstream>
#include "help.h"
using namespace std;
class filereader : public help {
public:
filereader();
filereader(string, int *, int *, int *... |
92c3a481488bcfa25a86d55296b345feb1b5e7ce | a215932246c9fb7623f17b9ccc9ef04d3e4d85c3 | /cloudDiskServer/server.cpp | 17aeb23709c63f9d171dc7afe3c81813d0485874 | [] | no_license | JachinLin2022/cloudDisk | 80ba7774c285bfe23f9e3f868af62da602716e9c | 74b638aa09fa2a43d87d430dccd42b92b5ad194a | refs/heads/main | 2023-06-03T14:41:26.147287 | 2021-06-26T14:37:45 | 2021-06-26T14:37:45 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 8,251 | cpp | server.cpp | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<errno.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<unistd.h>
#include<sys/ioctl.h>
#include<sys/fcntl.h>
#include<net/if.h>
#include<iostream>
#include <vector>
#include <mysql.h>
using namespace st... |
2129e372bf06ea8a661aba95c7c35431b07697db | 68a34bffe4cdfab1e968c05b0e0def8ec972c348 | /Source/PlayerSystem.h | 778b66d72be77e18f9e9a0b621b85b0329a58fc6 | [] | no_license | pkuzmickas/HomecomingDEMO | 2b890012bbbf53cadad48fc8f4f4c879e6428240 | acdeb5cde5b2365782e4bbd12745feb7741e32f6 | refs/heads/master | 2023-03-12T08:08:10.285979 | 2021-02-28T18:36:39 | 2021-02-28T18:36:39 | 126,629,237 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | PlayerSystem.h | #pragma once
#include "Movement.h"
#include "PlayerStats.h"
#include "PlayerInput.h"
#include "PlayerMovement.h"
#include "PlayerAnimator.h"
#include "DialogueSystem.h"
#include "PlayerAbilities.h"
class PlayerSystem {
public:
static Entity* createPlayer(int globalPosX, int globalPosY, SDL_Texture* texture, SDL_Rende... |
0b43efdbb89c8123562ae124ee071499d0d96ac0 | b7f1b4df5d350e0edf55521172091c81f02f639e | /ui/ozone/platform/drm/gpu/overlay_plane.h | 4bfb9b4738c959671df557043efb9218148f979c | [
"BSD-3-Clause"
] | permissive | blusno1/chromium-1 | f13b84547474da4d2702341228167328d8cd3083 | 9dd22fe142b48f14765a36f69344ed4dbc289eb3 | refs/heads/master | 2023-05-17T23:50:16.605396 | 2018-01-12T19:39:49 | 2018-01-12T19:39:49 | 117,339,342 | 4 | 2 | NOASSERTION | 2020-07-17T07:35:37 | 2018-01-13T11:48:57 | null | UTF-8 | C++ | false | false | 1,498 | h | overlay_plane.h | // Copyright 2014 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 UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
#define UI_OZONE_PLATFORM_DRM_GPU_OVERLAY_PLANE_H_
#include <vector>
#include "base/bind.h"
#include ... |
e13d819cf943bd5164caf00a9eafefe52c739f22 | bd138afefd41e09026e564e26f78d40f60ee834b | /c-cpp/closure_lambda/closure.cpp | 0a8dca312d8991e7338018f01f3b14e62e65b5c5 | [] | no_license | GCZhang/Tests | 698bc44fc7261102b7a8de37091f449f06763651 | 33798024b759a741b3a1d30eb03570402dffa524 | refs/heads/master | 2022-12-01T07:09:40.070014 | 2022-11-20T03:09:29 | 2022-11-20T03:09:29 | 72,281,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,045 | cpp | closure.cpp | #include <iostream>
#include <functional>
std::function<void(void)> closureWrapper1()
{
int x = 10;
// if we write "x += 1; ..." here, then the compiler would complain "error: assignment of read-only variable 'x'"
return [x]()
{ std::cout << "Value in the closure: " << x << std::endl; };
}
std::functi... |
b8fe009149b4d56f7c98fa292596fd08f434f84e | 3d35cfdcff63dee9851d600e0ea88a5b2702edc0 | /src/cyrt/graph/node.hpp | f997f0ed7a12fa22aec206b8eaee6239fea5ab32 | [] | no_license | andyjost/Sprite | 20cfef31ad91f7b1625aecbce9c28b8cca47128d | c28c09ca100ac102fcaa8559ad2e12eb0d12d7d5 | refs/heads/master | 2023-05-01T06:17:05.173021 | 2023-04-24T19:59:29 | 2023-04-24T19:59:29 | 614,023,214 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,706 | hpp | node.hpp | #pragma once
#include <iosfwd>
#include "cyrt/fwd.hpp"
#include "cyrt/graph/cursor.hpp"
#include <string>
namespace cyrt
{
struct Node
{
InfoTable const * info;
// Create a complete node.
static Node * create(InfoTable const *, Arg const * = nullptr);
template<typename ... Args> static Node * crea... |
4ca2bb165ac2e09e66150d503af1d289238c877c | a5b566fe7906ec05fa0e638eab99d623eac8564e | /sources/Permutation.hpp | 24f453757bd6621becf32fbb20ed3b55138abd74 | [] | no_license | bayesiancook/bayescode | 6d44f97ee617164538ac977cb5219ae670135674 | 855ac3b331267b9626d2ac25952d36a6a9374bdd | refs/heads/master | 2023-08-29T03:37:01.202960 | 2022-10-05T16:06:57 | 2022-10-05T16:06:57 | 92,596,965 | 4 | 4 | null | 2022-04-14T08:36:06 | 2017-05-27T12:20:15 | C++ | UTF-8 | C++ | false | false | 923 | hpp | Permutation.hpp | #ifndef PERM_H
#define PERM_H
#include "Array.hpp"
/**
* \brief A permutation of 1..N
*/
class Permutation : public SimpleArray<int> {
public:
//! constructor (parameterized by N)
Permutation(int size) : SimpleArray<int>(size) { Reset(); }
~Permutation() {}
//! set equal to identity permuation
... |
7af585a1636e0a3159462d8d3d24b5ef3ce918cf | 95f8ed7c4ad87975c4caf2dedb906bde1f2fdb3c | /examples/Due_Energyboard_Test/Due_Energyboard_Test.ino | 86614d698b1be43b374ee412178bd1e9a31db174 | [] | no_license | fhackenberger/SBS_CAN | 91e96ead4c3a5bb050d03a4453f0dcee736626c6 | 9912491fe01256d94078091940f3b19bfcea7ea4 | refs/heads/master | 2020-03-30T13:07:47.409259 | 2019-08-06T16:16:27 | 2019-08-06T16:16:27 | 151,257,667 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,347 | ino | Due_Energyboard_Test.ino | // This was tested with:
// Arduino Due on pins CANRX/TX connected to the CAN transceiver
// CJMCU-1051 based on NXP TJA1051 CAN Transceiver
// Wiring as documented in "2018-07-20 Report Leader 50V Battery CAN Readings": https://docs.google.com/document/d/1OmkW_UTGWCwyDriThNI7dI2qDYE3IVobrKOOHKtsnHs/edit#
// SbsCAN.h a... |
e44065881161d77018f7531a87ca415458f7a015 | af23d6a348ae0e9a97bfcd6d2c40d3393b8ae55c | /src/rendering/CursesInstance.cpp | f1a891832166bf31d37f0920c414a1570a0643d1 | [
"MIT"
] | permissive | evan1026/ncurses-maze | ae5bbcfa0954b39f4636daa42f04892cd6d3fa22 | ab41d7f4ab8099440b813ca01e3f6bf7461beea6 | refs/heads/master | 2021-01-15T15:32:02.344269 | 2016-07-17T16:41:00 | 2016-07-17T16:41:00 | 43,563,130 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | cpp | CursesInstance.cpp | #include <ncurses.h>
#include "CursesInstance.h"
int CursesInstance::instCount = 0;
bool CursesInstance::isColor = false;
CursesInstance::CursesInstance() {
if (instCount == 0) {
//Init ncurses
initscr(); //Basic init
cbreak(); //Don't wait for \n to put chars in buffer
... |
4a520a0e228e5f5c181d47ff800584f6ca7d98fa | 8162087251f674ed90c5d3ae89713f4e09e24c7e | /pbfs/pennant.h | 5652ba651d395907f7bcf9bbf4e7979fdd4d6497 | [] | no_license | puhach/pbfs | 1455599ae0c6d8d1122fd212c3f03542699e0096 | 45e4bd69490f48debe18ab52499e443f992beebc | refs/heads/master | 2023-05-23T07:16:41.113204 | 2021-06-01T13:08:53 | 2021-06-01T13:08:53 | 304,072,456 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | h | pennant.h | #ifndef PENNANT_H
#define PENNANT_H
#include <cstddef>
#include <memory>
#include <cassert>
class Pennant
{
public:
constexpr Pennant(int vertex) noexcept
: vertex(vertex), size(1) {}
Pennant(const Pennant& other);
Pennant(Pennant&& other) = default;
Pennant& operator = (const Pennant& other);
Pennant& ope... |
f263a48650ffe7cb50246cd67a6346f9134c9eec | d35486bdd83fc83c71a115eaf5b304270b795587 | /ApertusVR/plugins/ogre21Render/ApeOgre21RenderPlugin.cpp | 7e2f0a3b6d115d82749925bb90b768878fbcd7d1 | [] | no_license | MTASZTAKI/Experimental | e6c952df1af31cd1d3b11272ebb8d26133dd82d0 | d759890152b5ded54db7ecb689a282250cd03b3b | refs/heads/master | 2021-11-29T01:11:42.333398 | 2021-11-25T12:41:20 | 2021-11-25T12:41:20 | 211,269,901 | 1 | 2 | null | null | null | null | ISO-8859-2 | C++ | false | false | 115,954 | cpp | ApeOgre21RenderPlugin.cpp | /*MIT License
Copyright (c) 2016 MTA SZTAKI
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distri... |
2b2dc0e8a065ad7dd988de7392d98dd4730d4cd0 | 81ace47dd4f4ea67330a12c31bee887d3ff38885 | /graph/graph.cpp | ea4ccc10e9bd8ca9d1be34dc54c8a1493791f8b6 | [] | no_license | macabdul9/ds-algo | df86a58198235b89c0b99133903bb1b8c4154313 | 2b7a3f21049118eaa78254e2da0c2eba5efd8159 | refs/heads/master | 2020-03-25T15:54:38.592779 | 2019-09-24T19:20:23 | 2019-09-24T19:20:23 | 143,906,641 | 0 | 0 | null | 2019-04-21T21:50:20 | 2018-08-07T17:33:35 | C++ | UTF-8 | C++ | false | false | 2,787 | cpp | graph.cpp | /*
* @author : macab (macab@debian)
* @file : graph
* @created : Friday Apr 19, 2019 04:28:50 IST
*/
#include<bits/stdc++.h>
#define endl "\n"
#define merge(a, b) a##b
#define loop(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define rloop(i,a,b) for(int i=(int)a;i<=(... |
0948adc87c9d3441efa59cce17251c8f098bcf4e | d678392676b34b0822da7832ae9db330662a9f20 | /AquaLand/DecorCastle.h | bd5e321b171edc5292464d7c7c50ccfe26d7d46a | [] | no_license | shreyjindal81/CSE335-Aqualand | cbf53f22a20d1eff24d27ceb1e44060017e97161 | 0ba489440cf811ca02dc9293b58beb8e44a8496c | refs/heads/master | 2023-04-18T23:37:05.592520 | 2021-04-14T11:37:16 | 2021-04-14T11:37:16 | 357,883,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | h | DecorCastle.h | /**
*
*\file DecorCastle.h
*
* \ by Shrey Jindal
* THis is one of the items floating in the aquarium.
*/
#pragma once
#include <string>
#include <memory>
#include "Item.h"
using namespace std;
/**
* Implements a Castle
*/
class CDecorCastle : public CItem
{
public:
/// constructor for CDecorCastle
CDecorCas... |
aff1e2d3eb69e19bccfc991367f690945faff524 | 7f8ebd131b35df3adcb7a4ae5414ef9acb6a64b9 | /include/config/device/DeviceConfig.hpp | bfdc37019425a55503b7574513e447deb1955ab7 | [
"MIT"
] | permissive | alemoke/RoomHub | 19f0a8a339d9de326e7d8e355e7ecbda03efc779 | 9661c5a04a572ae99a812492db7091da07cf5789 | refs/heads/master | 2023-02-15T22:14:08.232081 | 2021-01-16T23:13:20 | 2021-01-16T23:13:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | hpp | DeviceConfig.hpp | #pragma once
#include <stdint.h>
enum class DeviceType {
DIGITAL_INPUT = 1,
DIGITAL_OUTPUT = 2,
ANALOG_INPUT = 3,
DHT22 = 4,
BME280 = 5,
SCT013 = 6,
EMULATED_SWITCH = 7
};
enum class WireColor {
ORANGE_WHITE = 1,
ORANGE = 2,
GREEN_WHITE = 3,
BLUE = 4,
BLUE_WHITE = 5,
... |
06fce96589ec71282727d9ccbd12bf6e70e7907a | f7d1eb441baf395e884fb47937d2944a753bca1f | /plexus_test.cpp | 7c0ea55d5d2c4ac1b97f9c0dcc7da3d340a5965a | [] | no_license | tamwaiban/boba | 0a2a55973bd07de7d8fe319a664c2f9d8bae160f | e420d60f7d8416c1e34eebe05fa746f8547d6bde | refs/heads/master | 2020-12-28T15:26:29.382030 | 2014-09-30T13:27:32 | 2014-09-30T13:27:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 25,905 | cpp | plexus_test.cpp | #include "plexus_test.hpp"
#include "graphics.hpp"
#include "deferred_context.hpp"
#include "app.hpp"
#include "demo_engine.hpp"
#include "proto_helpers.hpp"
#include "resource_manager.hpp"
#include "init_sequence.hpp"
#include "boba_loader.hpp"
#include "protocol/effect_settings_generator_bindings.hpp"
#include "scen... |
465eed3d736c659f3328c16a7fc490422aea7d4c | 20ffe3ddc443ec996c08a2271542c224c464f4d4 | /NUAASwimmingAssociationVersion/NUAASwimmingAssociationVersion/ControlWindow.cpp | 86e5ddd140999321bf46c15221db2bcbe140ce1a | [] | no_license | fuookami/SCSGS | 0209052f31de4d6c8a765f1f0b4fd4383ca388c6 | 4b5331887e49e4944556bf56996c0ac84ee926b2 | refs/heads/master | 2021-01-18T15:45:49.994450 | 2017-05-31T16:07:03 | 2017-05-31T16:07:03 | 86,682,203 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 17,465 | cpp | ControlWindow.cpp | #include "ControlWindow.h"
#include <ctime>
ControlWindow::ControlWindow(QMainWindow *parent /* = NULL */) :QMainWindow(parent)
{
thisCom = new Competion();
screenWin = new ScreenWindow(Screen, thisCom->getTeamNames());
screenWin->show();
monitor = new ScreenWindow(Monitor, thisCom->getTeamNames());
monitor->show... |
b93a9971172e2cc040d0a765180835cc45b918ff | 254f91a2567d485954ea9089cd0e915a9f71edda | /Stack/Overlapping Intervals.cpp | fabd93a0d5a0c17de2c44658fcb3de61cef9f706 | [] | no_license | Aleena-Mishra-10/Data-Structure | dfd1b5058f8db6b7675d6593072fd4de5f980371 | 58a5c84186011c6487768f4f38e1cf4e688875f1 | refs/heads/master | 2023-04-25T16:59:10.252996 | 2021-05-24T18:04:11 | 2021-05-24T18:04:11 | 280,817,293 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 655 | cpp | Overlapping Intervals.cpp | bool compare(pair<int,int>a,pair<int,int>b){
return a.first<b.first;
}
vector<pair<int,int>> overlappedInterval(vector<pair<int,int>> v, int n) {
int i;
sort(v.begin(),v.end(),compare);
for(i=1;i<v.size();i++){
if(v[i].first<=v[i-1].second&&v[i-1].first!=-1){
v[i].first=v[i-1].first;... |
6ff9852f501ac841f9bfaa16476257743530636b | 09824dbcc644fb45b1e6de06f3c75d3e95bfad91 | /Chapter06/main_book.cpp | a7600495eb4bc63bb148a20e5972796425a2a827 | [] | no_license | ScienceBoy/Guide-to-scientific-computing-C- | 8de0dd4b0ff78444fb5d4cb3ca0c63c8e2f4e9f6 | 390fe22c4489d32426d44457cedb1ce629e27118 | refs/heads/main | 2023-05-12T06:02:33.075702 | 2021-06-08T12:52:03 | 2021-06-08T12:52:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 619 | cpp | main_book.cpp | #include <iostream>
#include "Book.hpp"
int main(int argc, char* argv[])
{
Book my_favourite_book;
my_favourite_book.author = "Lewis Carroll";
my_favourite_book.title =
"Alice's adventures in Wonderland";
my_favourite_book.publisher = "Macmillan";
my_favourite_book.price = 199;
my_fa... |
82bcfc3229b0d8df48258d549550bb03125bc42b | a8dead89e139e09733d559175293a5d3b2aef56c | /src/addons/K2/Fx/SineForceController.cpp | afa50713e1ba075df56370dda92b2059937e8304 | [
"MIT"
] | permissive | riyanhax/Demi3D | 4f3a48e6d76462a998b1b08935b37d8019815474 | 73e684168bd39b894f448779d41fab600ba9b150 | refs/heads/master | 2021-12-04T06:24:26.642316 | 2015-01-29T22:06:00 | 2015-01-29T22:06:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,067 | cpp | SineForceController.cpp |
/**********************************************************************
This source file is a part of Demi3D
__ ___ __ __ __
| \|_ |\/|| _)| \
|__/|__| || __)|__/
Copyright (c) 2013-2014 Demi team
https://github.com/wangyanxing/Demi3D
Released under the MIT License
https://github.com/wangyanxing/D... |
9c9831de231855d6f1b29cccff9355dfa116cb1c | 53487542f1d068b817b877d6b8f672c82e2bab96 | /network_helper/http_helper.h | ca5ebebd69dcdc4134cae3fca74857396fd069f3 | [] | no_license | z-h-s/NetworkThirdParty | e071c6b8e1fd6a9df9ffc403e77d11798ca38aaf | 0169cb63756801d84c07ee91dd3614ef01700d88 | refs/heads/master | 2023-03-19T18:13:51.584510 | 2021-03-11T09:00:24 | 2021-03-11T09:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,420 | h | http_helper.h | #ifndef HTTP_HELPER_H
#define HTTP_HELPER_H
#include <string>
#include"timer_queue.h"
#include "c_log.h"
#include <map>
namespace micagent {
using namespace std;
enum HTTP_PACKET_TYPE{
HTTP_POST_REQUEST,//for post request
HTTP_GET_REQUEST,//for get request
HTTP_RESPONSE,//for response
HTTP_UNKNOWN,//def... |
615d570eeba86c0e20c9f6ed0fadfe9cfa1d2aa4 | 9d23a4abfad737b1194bc80328653ecae9cbd847 | /Motor2D/JungleCampManager.cpp | dd547b2c80e5da8fe55bf11d6ba83c421ee7272a | [] | no_license | bubleegames/Project2_Zelda | 8cb900144ce22e3e58c3269fe31ec62f1a3ed468 | 0ea5121e0a123db710fb2d7605c3c38ab592ca73 | refs/heads/master | 2020-04-29T12:01:10.692097 | 2017-06-12T09:18:23 | 2017-06-12T09:18:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,622 | cpp | JungleCampManager.cpp | #include "JungleCampManager.h"
#include "j1App.h"
#include "j1Map.h"
#include "j1Entity.h"
#include "j1Timer.h"
#include "Snakes.h"
#include "Skeleton.h"
#include "MageSkeleton.h"
#include "Guards.h"
#include "p2Log.h"
#include "j1Audio.h"
#define SNAKE_RESPAWN_TIME 60
#define SKELETON_RESPAWN_TIME 100
#define MAGESKE... |
04af7e01666dc27c8dc6dd6dff694264a5b25a37 | 5c2addf99fb73b7a95897eb0486e28e9929fdd08 | /이분매칭/상어의저녁식사 1671.cpp | 0afb16695c3b72895fd713a393b242e01ccff326 | [] | no_license | UmJaeJeong/Algorithm-DataStruct | 902bc7b86dc4b74b8334984a78c0159bd2bc3e5d | 51cdd53a7cf815eb20801215d8147fb537d67e59 | refs/heads/master | 2020-04-03T15:28:36.084262 | 2019-02-15T01:14:08 | 2019-02-15T01:14:08 | 155,363,765 | 1 | 0 | null | null | null | null | UHC | C++ | false | false | 1,084 | cpp | 상어의저녁식사 1671.cpp | #include<iostream>
#include<vector>
using namespace std;
//최대2마리
#define MAX 51
vector<int> a[MAX];
int d[MAX];
bool c[MAX];
int n;
int s[MAX], v[MAX], k[MAX];//지능, 속도, 크기를 비교
bool dfs(int x) {
for (int i= 0; i < a[x].size(); i++) {
int y = a[x][i];
if (c[y])continue;
c[y] = true;
if (d[y] == 0 || dfs(d[y])... |
768c759245ed9c1790a4b217590d90bc8f73c4b7 | f26ef5026614c9a1a53c1ddc09794ba1b1971947 | /XML-Parse-Library/XML_CDATA.hpp | b97ce383474fdd517b16634b1bcb24bfe8e1465a | [
"Apache-2.0"
] | permissive | PiotrGardocki/XML-Parse-Library | 651d77c52383714f9bd196c71b9c9796c847a04c | 2ae94ba3275b30bc1c8909c7013c568655215cfc | refs/heads/master | 2020-03-31T02:38:03.289550 | 2019-01-16T18:33:54 | 2019-01-16T18:33:54 | 151,833,326 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 870 | hpp | XML_CDATA.hpp | #ifndef XML_CDATA_HPP_
#define XML_CDATA_HPP_
#include <string>
#include "XML_BaseElement.hpp"
class XML_CDATA : public XML_BaseElement
{
public:
XML_CDATA() = default;
explicit XML_CDATA(const std::string & value);
virtual XML_ElementType getElementType() const override;
virtual void setValue(const std::string... |
aaab06940095f804c3e03211cf9029e65cdd1b48 | 76748c80f9fe11ac9dc7e0b287c4ea28c98c7e55 | /inputs02.h | 72a7ea73b3c49b9f8c0239ce5ffa4bb59328db85 | [
"Apache-2.0"
] | permissive | andrewPetti/AdventOfCode-2019 | 3ac157fd761cf8a4f348b22f02e0e035ee060d36 | 6726be899ed9535e6345b7a762fd25c7b595af85 | refs/heads/master | 2020-09-22T08:38:25.218000 | 2019-12-19T00:05:17 | 2019-12-19T00:05:17 | 225,123,602 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | h | inputs02.h | #pragma once
#include <vector>
namespace inputs
{
std::vector<int> GetInputs02()
{
std::vector<int> input{
1, 0, 0, 3, 1, 1, 2, 3, 1, 3, 4, 3, 1, 5, 0, 3, 2, 13, 1, 19, 1, 19, 9, 23, 1, 5, 23, 27, 1, 27, 9, 31, 1, 6, 31, 35, 2, 35, 9, 39, 1, 39, 6, 43, 2, 9, 43, 47, 1, 47, 6, 51, 2, 51, 9, 55, 1, 5, 55, 5... |
6cc2e4bc18794806bb47070b1cd91870b35e2e2a | f4b1d1c3707e008254101c80f5b43ff61f6810b6 | /1_CppGrundlagen/own/Chars.cpp | 946d2cd010562f3ffb50de796986c8f270a859a8 | [
"MIT"
] | permissive | stefan-ewald/e_fork_UdemyCpp | 94e0841c4d8a64f973e63113220bef9fb5e2a78f | f880b566774882a1722e2c76c5ce3bdbd33b35d0 | refs/heads/master | 2023-07-24T09:39:57.463769 | 2021-08-28T15:02:29 | 2021-08-28T15:02:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 153 | cpp | Chars.cpp | #include <iostream>
int main()
{
char myCharacter = 'A';
char offset = 2;
std::cout << myCharacter + offset << std::endl;
return 0;
}
|
b2e4a46898eb29bcc5a8d8f429f6b93a2e090874 | 06c58b02c8411a416a881759ee4ba6de67299241 | /SNNS/start.cpp | 19673739cb86b4892686803921f7881ed233515f | [] | no_license | siarheikapkovich/SNNS | e3f798a2e726020d28df817e59633a6e213a8acd | eca40965e931c353c279231dc0de0c24ffb13aea | refs/heads/master | 2022-04-18T00:45:22.659399 | 2020-04-19T14:56:35 | 2020-04-19T14:56:35 | 257,025,017 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,099 | cpp | start.cpp | #include "global.h"
LRESULT CALLBACK WndFunction(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
INT RetVal = 0;
static INT DragNum = -1;
static INT CyrObj = -1;
static INT DesObj = -1;
POINT pt;
NEURON_VIEW nv;
switch(message)
{
case WM_COMMAND:
switch(wParam)
{
case IDM_NEW:
RetVal = (I... |
8cc064244626d266de2c05b3faf9ae8163e67c77 | 72a86345ceb63b187a52632e828c81210919fa78 | /35.search-insert-position.cpp | 1895d28a159c60248242441c1cc994ccde6d67f9 | [] | no_license | stomachacheGE/leetcode | 535a6af727faa7c85ba2453b93fadf34876b75b7 | 579f903d4656e3877a7c75efe0ac9626a7efc44f | refs/heads/master | 2021-03-12T10:00:18.227887 | 2020-03-11T15:39:59 | 2020-03-11T15:39:59 | 246,610,086 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,074 | cpp | 35.search-insert-position.cpp | /*
* @lc app=leetcode id=35 lang=cpp
*
* [35] Search Insert Position
*
* https://leetcode.com/problems/search-insert-position/description/
*
* algorithms
* Easy (40.80%)
* Total Accepted: 396.6K
* Total Submissions: 972.1K
* Testcase Example: '[1,3,5,6]\n5'
*
* Given a sorted array and a target value, ... |
4e995e6f7d2c015f02163e065831c1aadbf8d249 | 116bf4d86f67aa5c18037b18bc1589e38400fa0c | /SDK/ZC_PlayerPawnCharacter_parameters.hpp | 26370833f9375f8d08d47392c7f790af1a6d193e | [] | no_license | hinnie123/ZeroCaliber_SDK | 67de4b0469acf273ca8b52450aa4036256ecdaef | 20786d77bb83366d8faa152aad117e8f90872c43 | refs/heads/master | 2020-04-03T03:41:38.590945 | 2018-11-10T14:32:07 | 2018-11-10T14:32:07 | 154,992,910 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 100,015 | hpp | ZC_PlayerPawnCharacter_parameters.hpp | #pragma once
// ZeroCaliber (0.6.0 EA) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function Playe... |
910bedc4919fec35c0b37af305842717b91718e5 | 0cbf8b4b0f823ba851342173d40c58c71d82b51f | /src/Physics/NuclearState/SRCNuclearRecoil.h | 426ac1e8c8bdb94db91dcdf3e6eea4da09e90474 | [] | no_license | GENIE-MC/Generator | 0a62ba4ee7b1ff88c625156554759bdfc4f3fab5 | eda8a5a7a5dae1e10a902b25a45fa83c4bf4b90e | refs/heads/master | 2023-08-30T23:45:31.474160 | 2023-08-08T09:59:14 | 2023-08-08T09:59:14 | 150,272,240 | 48 | 91 | null | 2023-09-13T09:37:46 | 2018-09-25T13:46:01 | C++ | UTF-8 | C++ | false | false | 1,742 | h | SRCNuclearRecoil.h | //____________________________________________________________________________
/*!
\class genie::SRCNuclearRecoil
\brief Created this new module that controls the addition of the recoil nucleon in the event record
and extracts its kinematics
\author Afroditi Papadopoulou <apapadop \at mit.ed... |
fea3eccdea378a3bdbd4f5ba3a4231ae795f2d7a | 2da298b950c8d3303235b33f870320f2733c516c | /LED_Strip_Functions/LN_strip_control.cpp | 9dcea7ec83e8ab5ab40e582f19bacf86bce8764e | [] | no_license | shibbs/Light_node | 421ba964710f9235ed3d18be14b2d996c9bf79a3 | 0156f0760526c2867e0fbcae887c68fd8649bf24 | refs/heads/master | 2021-09-06T07:22:23.420747 | 2018-02-03T18:31:41 | 2018-02-03T18:31:41 | 109,891,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,004 | cpp | LN_strip_control.cpp | #include "LN_strip_control.h"
#define LEDS_PIN 4
int NUM_PIXELS = 0;
uint32_t * curr_pixels;
Adafruit_NeoPixel strip ;//=Adafruit_NeoPixel(10, LEDS_PIN, NEO_GRB + NEO_KHZ800);;
void InitializeStrip(int num_LEDs){
strip = Adafruit_NeoPixel(num_LEDs, LEDS_PIN, NEO_GRB + NEO_KHZ800);
NUM_PIXELS =... |
eacde6ce998e47ff0d009a3eb410246e23ce7458 | 1c8a39b0d79d784228fdc1d9c1e034316cec87fe | /SparseWeightedGraph.hpp | 572cf63a18a2ff8f4179c6d0698dfa6bc43949ac | [] | no_license | rodrigueztonyk/SparseWeightedGraph | a6af760f3047023e2bc1839a8de3b6d2e8862b0b | bf7fec66b49f76c540a350b2d75ce46c0c0d0d80 | refs/heads/master | 2021-01-19T05:49:33.570115 | 2016-08-18T15:22:08 | 2016-08-18T15:22:08 | 64,867,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,447 | hpp | SparseWeightedGraph.hpp | // SparseWeightedGraph.hpp C++ interface for manipulating weighted graphs stored in a sparse format
// It is assumed vertices are labeled 0,1,...,(n-1)
// This utilizes nauty, so nauty must be installed
#include <vector>
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <sstream>
#in... |
01770a34ac04d71a732373723347b9ca672f7f2d | 332c6e2de1d9729e337411adb23d2fdbef70da66 | /src/postgresql.cpp | 0f2946e8c8d7883856ff17152622fb48d46dd361 | [] | no_license | blake-sheridan/py-postgresql | 87b747ceef1d33b4e29f6c58299defdffc12bfe4 | 4d4b0fb4ecfde3289ed6bc83483e0f86309e65d2 | refs/heads/master | 2021-01-02T23:13:34.961018 | 2014-03-31T15:53:18 | 2014-03-31T15:53:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 33,001 | cpp | postgresql.cpp | #include "Python.h"
#include "libpq-fe.h"
#include "b/Identifier.hpp"
#include "b/python.h"
#include "b/type.hpp"
#include "postgresql/parameters.hpp"
#include "postgresql/type.hpp"
typedef struct {
PyObject_HEAD
PGconn *pg_conn;
// Properties, cached upon first access
PyObject *host;
PyUnicodeObj... |
f81e7b3d3dcb3056ed504a00d17816af502246ee | c79c1b95213b83a0e5a1ba612a578cb6f132a9ea | /Lab11/code/player_sprite.h | 208a9781a9dbb28290a2da04a8b5260ed5d08158 | [] | no_license | japaolillo/Mario1 | e6c65dd9e136bd42139876340076625e07b5ab4f | 701cca23a70c301736f4d80bafd45bdf51b98742 | refs/heads/master | 2020-03-11T22:03:23.414286 | 2018-05-03T22:42:10 | 2018-05-03T22:42:10 | 130,281,734 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 841 | h | player_sprite.h | #ifndef __CDS_PLAYER_SPRITE_H
#define __CDS_PLAYER_SPRITE_H
#include "phys_sprite.h"
#include <allegro5/allegro_acodec.h>
#include <allegro5/allegro_audio.h>
namespace csis3700 {
class player_sprite : public phys_sprite {
public:
player_sprite(float initial_x=0, float initial_y=0);
virtual void advance_by_... |
9196a9a44498ff6939bcd13b64df36cdfa3435fe | 3a3aed5d61271f5e222bf282775da998f5046e25 | /CPP/d03/ex03/ClapTrap.cpp | b271e548969174c65247ddad2ac30d095ce4e106 | [] | no_license | Nariom/42 | 6d1b7dd06dd9545066898a2dacc0c233faa1b0ca | a5990e7f3a5651a2df79c6e567831a62d295023b | refs/heads/master | 2020-09-08T22:18:26.392378 | 2019-11-12T16:21:08 | 2019-11-12T16:21:08 | 221,257,981 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,888 | cpp | ClapTrap.cpp | #include "ClapTrap.hpp"
ClapTrap::ClapTrap( void ) :
_hp(100),
_maxHp(100),
_level(1),
_name("ClapTrap")
{
std::cout << "ClapTrap " << this->_name << " - constructed.";
std::cout << std::endl;
return;
}
ClapTrap::ClapTrap( ClapTrap const & src ) {
*this = src;
std::cout << "ClapTrap " << this->_name << " - c... |
3f5ddc3e97b653ff96db7511e42fb762df3f82be | 2efe73e573da0bf48fbec9ee83283d8dea9804f3 | /MyThreadTimer/mythreadtimerwidget.cpp | 75ad247995f04908860869bc5f4aa3860e0705d5 | [] | no_license | yamero/qtexamples | 1559195d92f52bac5a7e1aaf33b7eb979bea25a0 | 868aa0cc1b9133d0ecad43c50d6b142d4aaa4c01 | refs/heads/master | 2020-09-30T17:53:23.573797 | 2019-12-11T10:54:20 | 2019-12-11T10:54:20 | 227,340,756 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,214 | cpp | mythreadtimerwidget.cpp | #include "mythreadtimerwidget.h"
#include "ui_mythreadtimerwidget.h"
#include <QThread>
#include <QDebug>
MyThreadTimerWidget::MyThreadTimerWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::MyThreadTimerWidget)
{
ui->setupUi(this);
myTimer = new MyTimer; // 实例化自己写的定时器类
QThread *thread = new QT... |
77690bebfa897635248486ffd29fc1ab2e0a6f98 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/git/gumtree/git_old_hunk_1847.cpp | 7ac8ecbd0b2d6883c9cc58d1c53a197194ba547d | [] | 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 | 411 | cpp | git_old_hunk_1847.cpp | fn->name = xmemdupz(name, namelen);
fn->fn = ll_ext_merge;
*ll_user_merge_tail = fn;
ll_user_merge_tail = &(fn->next);
}
if (!strcmp("name", key)) {
if (!value)
return error("%s: lacks value", var);
fn->description = xstrdup(value);
return 0;
}
if (!strcmp("driver", key)) {
if (!value)
retur... |
bf8044eb43937dd6407ce00726175c388cd108a4 | fcdfe976c9ed60b18def889692a17dc18a8dd6d7 | /cpp/misc/kbhit-test.cpp | e9464f99a5f85a4067e6eb63ef9542edf6759d57 | [] | no_license | akihikoy/ay_test | 4907470889c9bda11cdc84e8231ef3156fda8bd7 | a24dfb720960bfedb94be3b4d147e37616e7f39a | refs/heads/master | 2023-09-02T19:24:47.832392 | 2023-08-27T06:45:20 | 2023-08-27T06:45:20 | 181,903,332 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,866 | cpp | kbhit-test.cpp | //-------------------------------------------------------------------------------------------
/*! \file kbhit-test.cpp
\brief certain c++ source file
\author Akihiko Yamaguchi, akihiko-y@is.naist.jp / ay@akiyam.sakura.ne.jp
\version 0.1
\date Dec.03, 2013
compile:
x++ -slora kbhit-te... |
935586902011cafa2ba12b04e93f1acf1d5f7bf0 | b80322e91645595c1f93b474acfcfbe1fb28066d | /Graph/Medium/no_of_islands.cpp | b55ce725f6005d26e5cee0b79f9255cdf5da1ee0 | [] | no_license | Priyanshu-24/Data-Structures-Level-2 | 4e012ddeb3dd6cd9fc3e517cc2a310fceecae7f9 | 3586b54cf84bdb9681cda5522b442c9c91f804bd | refs/heads/main | 2023-06-19T05:34:50.797798 | 2021-07-19T11:49:27 | 2021-07-19T11:49:27 | 331,359,546 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,704 | cpp | no_of_islands.cpp | // we have to find the no islands
// islands are group with 1
// 1 = island, 0 = water
// just traverse the whole matrix using dfs and increase the count as we encounter another island
// as soon as we encounter a 1 we mark it as visited as a part a island part so that in next iteration
// it will not be counted
voi... |
a5d63b7503dcca6e24ce9ff37f1ce59ff9c82af6 | bca98f9cfc1b87f393c8c446f56a4f43db1e7baa | /thread/mutual.cpp | a41facabc1009469c7beef22401aa311f081ec19 | [] | no_license | jaye1944/lcpp | ccc4209d1b935f1686b38bbe8dbf4d3f52f917d0 | 0349e7da48ecdbf7302f84c8dd649edd019ff166 | refs/heads/master | 2021-01-10T08:55:25.487973 | 2017-09-13T09:14:02 | 2017-09-13T09:14:02 | 44,486,420 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | mutual.cpp | #include <iostream>
#include <map>
#include <string>
#include <chrono>
#include <thread>
#include <mutex>
#include <memory>
#define NO_THREAD 10
#define ELEMENTS 10000
// std::this_thread::sleep_for(std::chrono::milliseconds(10));
/*
5 thread write to map and other 5 threads read from map
*/
std::map<std::string, std:... |
cb3789a747e9223f9a2dc5d428b118ba664cc1b7 | f1f3eb170abdee28d74e31d80d847f8ef19329b3 | /FBXConverterProject1/FBXConverterProject/Manager1.cpp | 3ea624cb17c7cfdbaa6ade336db476d5802f5af2 | [] | no_license | RavioliFinoli/FBXConverter | 58655d3e44042acca01d38a319cff8b2f702b876 | 84bbaaf3de709ca791484b8d7972e83229682f1d | refs/heads/master | 2020-03-30T06:38:07.466893 | 2018-12-12T15:40:22 | 2018-12-12T15:40:22 | 150,876,414 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 73,672 | cpp | Manager1.cpp | #include "Manager.h"
#include <windows.h>
#define EXPORT_DIRECTORY "C:/Repos/RipTag/Assets/"
#define COPY_DOUBLE_FLOAT(COUNT, PTR1, PTR2) \
{ \
int counter = -1; while(counter++ < COUNT-1) PTR2[counter] = (float)PTR1[counter]; \
};
Converter::Converter(const char* fileName)
{
sdk_Manager = FbxManager::Crea... |
efe6cf0f928d32e90578e520ce8e340ad79f2840 | 43c4a41448dc7ddcec8441f38b5ae0a86f8db7dc | /AutoDiff/back_up/VariableInfo.hpp | 862297dcec752d8d85ce92928de4adca517e4c02 | [] | no_license | msupernaw/ATL1 | 4473c9f7ba1b64f6562e8406d7b0dfe639911e56 | 72cf1f73725eb3e8eb69c3ddd0445ee28eaa46e5 | refs/heads/master | 2021-06-13T18:26:45.568944 | 2017-02-23T14:02:28 | 2017-02-23T14:02:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,030 | hpp | VariableInfo.hpp | /*
* File: DerivativePointer.hpp
* Author: matthewsupernaw
*
* Created on April 8, 2015, 12:12 PM
*/
#ifndef DERIVATIVEPOINTER_HPP
#define DERIVATIVEPOINTER_HPP
#include <atomic>
#include <mutex>
#include <stack>
#include "../Utilities/Platform.hpp"
#ifndef ATL_WINDOWS
#include "third_party/clfmalloc.h"
#endi... |
ffba77f7e490a510d2dfd165a873795448ee43a3 | e8d783d45ac0f3ef7f38eadc5b44b7e2a595179f | /libuv/echo_client.cpp | d65dbbd521793511040296f048b0ee648f18d4dc | [
"Zlib"
] | permissive | osom8979/example | e3be7fd355e241be6b829586b93d3cbcb1fbf3a5 | 603bb7cbbc6427ebdc7de28f57263c47d583c2e4 | refs/heads/master | 2023-07-21T19:55:55.590941 | 2023-07-20T02:06:42 | 2023-07-20T02:06:42 | 52,238,897 | 2 | 1 | NOASSERTION | 2023-07-20T02:06:43 | 2016-02-22T01:42:09 | C++ | UTF-8 | C++ | false | false | 1,235 | cpp | echo_client.cpp | // TCP echo client.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <uv.h>
#define DEFAULT_PORT 7000
#define DEFAULT_BACKLOG 128
uv_loop_t * loop;
uv_tcp_t * tcp_client;
uv_write_t write_request;
void write_cb(uv_write_t * req, int status)
{
uv_close((uv_handle_t*) req->handle, NULL);
}... |
a88aa475bad0842bc751db97779c7aec9c00e2b2 | 8d2ef01bfa0b7ed29cf840da33e8fa10f2a69076 | /code/RenderDevice/fxRenderDevice.cpp | 364c6e9173b6f756aa31b95a581627bcf862877d | [] | no_license | BackupTheBerlios/insane | fb4c5c6a933164630352295692bcb3e5163fc4bc | 7dc07a4eb873d39917da61e0a21e6c4c843b2105 | refs/heads/master | 2016-09-05T11:28:43.517158 | 2001-01-31T20:46:38 | 2001-01-31T20:46:38 | 40,043,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 298 | cpp | fxRenderDevice.cpp | //---------------------------------------------------------------------------
#include "fxRenderDevice.h"
#include <assert.h>
//---------------------------------------------------------------------------
void fxRenderDevice::CloseWindow(void)
{
assert(wnd);
delete wnd;
wnd = NULL;
}
|
c3a6443d4be5230ec2228b98665bb53910600da2 | 8ca1d9752b1ff9f6df5ec954de2685f18b4015ee | /AMS_cpp_hpp/AMS_CalcClothoid_template.cpp | 6106722e45d13d95170fb06f07e557f8506462b8 | [] | no_license | sunsided/bht-ams-sommer | 0d3754733a43ec3124e048d24b4b4c33124217ca | d9c96f259a18fa72f856f6ec0d981da0004b99df | refs/heads/master | 2020-06-01T05:55:18.133385 | 2014-01-30T12:30:47 | 2014-01-30T12:30:47 | 15,311,458 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,267 | cpp | AMS_CalcClothoid_template.cpp | /// Beuth Hochschule für Technik Berlin
/// Autonome Mobile Systeme
/// Prof. Dr.-Ing. Volker Sommer
#include "AMS_Robot.hpp"
#include <newmat/newmatap.h> // Linear algebra
using namespace AMS;
AMS_Robot robot; // Roboterobjekt
int main(int argc, char **argv)
{
ColumnVector P0(2); // S... |
ac0cf3db101ed2f2c0604d7649702225c002b901 | 2ac707be53115c7fe21fe722582750b0e4205c3f | /examples/Better-Callbacks/TraditionalCallbacks/SimpleTimer.h | 0dabcebfa3a6139ce90f723e8e14c0bf92e39dbd | [] | no_license | TeensyUser/doc | db3dd34783fdd992046ac19cdde9c619d2bb1ed2 | 546708fae3b675ee6cf98291feb6a05420eef745 | refs/heads/master | 2022-02-20T11:07:02.539904 | 2022-01-11T10:08:33 | 2022-01-11T10:08:33 | 246,367,593 | 68 | 6 | null | 2021-04-01T07:38:08 | 2020-03-10T17:40:15 | null | UTF-8 | C++ | false | false | 427 | h | SimpleTimer.h | #pragma once
#include "Arduino.h"
using callback_t = void (*)(void); // c++ way to define a function pointer (since c++11)
//typedef void (*callback_t)(void); // traditional C typedef way works as well
class SimpleTimer
{
public:
void begin(unsigned period, callback_t callback);
void tick(); // call this ... |
961da01bfbdea530357c42663bdbdde6cc5e98dd | efe1928f5f3a38e37e6127c38f3ddab4f3953b41 | /src/nnfusion/engine/pass/graph/manager.hpp | b51972441b20467787f0173fa6aae7b42e41c2a2 | [
"MIT",
"LicenseRef-scancode-generic-cla"
] | permissive | xiezhq-hermann/nnfusion | 8cdf0b6d03b6a43a781caa061e0b7b3e4caed45e | 1b2c23b0732bee295e37b990811719e0c4c6e993 | refs/heads/osdi20_artifact | 2023-01-19T06:25:09.755500 | 2020-09-05T09:49:54 | 2020-09-05T09:49:54 | 293,049,048 | 0 | 0 | MIT | 2020-09-23T07:43:08 | 2020-09-05T10:01:08 | null | UTF-8 | C++ | false | false | 1,354 | hpp | manager.hpp | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#pragma once
#include "graph_pass_base.hpp"
#include "nnfusion/core/graph/graph.hpp"
namespace nnfusion
{
namespace pass
{
namespace graph
{
class GraphPassManager
{
public:
... |
29f3e7dd85546724f283ae9f0f3143e724798b17 | 9eb2245869dcc3abd3a28c6064396542869dab60 | /benchspec/CPU/621.wrf_s/build/build_base_mytest-64.0001/inc/state_subtypes.inc | b9c6e8216cd6d10a8c7171b48eab989cbc419a95 | [] | no_license | lapnd/CPU2017 | 882b18d50bd88e0a87500484a9d6678143e58582 | 42dac4b76117b1ba4a08e41b54ad9cfd3db50317 | refs/heads/master | 2023-03-23T23:34:58.350363 | 2021-03-24T10:01:03 | 2021-03-24T10:01:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,051 | inc | state_subtypes.inc | !STARTOFREGISTRYGENERATEDINCLUDE 'inc/state_subtypes.inc'
!
! WARNING This file is generated automatically by use_registry
! using the data base in the file named Registry.
! Do not edit. Your changes to this file will be lost.
!
TYPE fdob_type
integer :: domain_tot
integer ... |
fa3c7b9a7440822b3080998c43e29d228686a7d6 | e55a8acd526b5489a421cde6ce2faad97faefea1 | /gltt/GLTTGlyphPolygonizerHandler.h | f8bcc9bc1d62c19d9620aa90df062a37f7238643 | [] | no_license | sgooding/HighSchoolProjects | 5d042f2490d68066c786ae352d27c6e03ce76ab5 | 3d487443dfa2075d5042664a379e795c6a7e54fd | refs/heads/master | 2022-11-11T05:27:09.680977 | 2022-10-28T03:21:35 | 2022-10-28T03:21:35 | 22,287,066 | 0 | 0 | null | 2022-10-28T03:18:09 | 2014-07-26T13:23:46 | C | UTF-8 | C++ | false | false | 1,770 | h | GLTTGlyphPolygonizerHandler.h | /*
* gltt graphics library
* Copyright (C) 1998-1999 Stephane Rehel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any la... |
25a67f74bcb8a975f44799c792256379b1781f71 | cadb9fa72959531e04757c28593467733f419b52 | /halfling.cc | 824836e4c3a3ae8ddf104550748d14c9cbc4ad67 | [] | no_license | Tengzin/cc3k | 27489d37a280bc59e3e152a0ba3d6994a4fab38a | 829923758b112531c7d23d79c79b774be5075ad0 | refs/heads/master | 2022-01-21T01:48:46.256138 | 2019-06-15T14:20:56 | 2019-06-15T14:20:56 | 111,860,696 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 662 | cc | halfling.cc | #include "halfling.h"
#include "maplayout.h"
#include "player.h"
#include <ctime>
#include <cstdlib>
#include <string>
using std::string;
int RandomNumberH(int n) {
srand(time(0));
int randNum;
randNum = 1 + (rand() % n);
return randNum;
}
Halfling::Halfling():
Enemy{ 100, 15, 20 } {}
char Halfling::whatType(In... |
7d42d8471c3dc2a87f4c7e894191a7d52ecd0780 | 6fb9a64452c83fc2ae26f9cf98057b87d381caa3 | /ASCIIRogueLike/RogueLikeMain.cpp | 079663bb2122f14b534804feeaef1f551ad970b9 | [] | no_license | pladams9/Game_ASCIIRogueLike | 483a6f160e251240f1853b93b330f6251fab26b1 | 165e831083cab942f9cb93adc3412d2e8d7b6ed9 | refs/heads/master | 2020-09-02T23:06:39.970435 | 2019-11-03T18:42:34 | 2019-11-03T18:42:34 | 219,327,968 | 0 | 0 | null | 2019-11-03T16:10:32 | 2019-11-03T16:10:32 | null | UTF-8 | C++ | false | false | 232 | cpp | RogueLikeMain.cpp | #include <iostream>
#include <conio.h>
#include "GameManager.h"
int main()
{
GameManager gameManger("../levels/Level_test.level");
gameManger.runGame();
std::cout << "\nPress ENTER to continue...\n";
_getch();
return 0;
}
|
1bb7d93d8dcd1d1fad15b2b45b6327abf24cea2b | ec915bf2f3fc0f9b05ff7e9f7b13d39fce78c7be | /batch/main.cc.norun | 3f46e90329db8ed5c08f106f12c6f750a27e82e2 | [] | no_license | cmstas/SSAnalysis | ed85d6ecd2ccc9c191482bf53a586c41ee1c8941 | 658798ad51b8ca508ed38e23c6116178580ce9f2 | refs/heads/master | 2020-04-04T07:28:51.773617 | 2018-02-21T00:42:07 | 2018-02-21T00:42:07 | 30,431,428 | 1 | 0 | null | 2016-06-15T17:16:28 | 2015-02-06T20:24:36 | C++ | UTF-8 | C++ | false | false | 69,066 | norun | main.cc.norun |
#include "./CORE/CMS3.h"
#include "./CORE/SSSelections.h"
#include "TTree.h"
#include "TFile.h"
#include "helper_babymaker.h"
#include "base.h"
#include "CORE/Tools/goodrun.h"
#include "CORE/Tools/JetCorrector.h"
#include "CORE/Tools/jetcorr/JetCorrectionUncertainty.h"
#include "CORE/Tools/jetcorr/SimpleJetCorrectio... |
aa41166b0c7db247771c6ac8dbd2a216ff97c8e1 | 9063052d8e2c294efa3b501d42aef2ac59d84fa0 | /jiju_algo_practice/7급adv/7급adv/hamming.cpp | 22fd161f92e72e44f1e5dc7cb8122e892c752e03 | [] | no_license | yes99/practice2020 | ffe5502d23038eabea834ebc2b18ff724f849c4a | 100ac281f4fe6d0f991213802fbd8524451f1ac2 | refs/heads/master | 2021-07-08T00:54:19.728874 | 2021-06-13T05:52:07 | 2021-06-13T05:52:07 | 245,789,109 | 0 | 1 | null | null | null | null | UHC | C++ | false | false | 1,154 | cpp | hamming.cpp | #include <iostream>
#include<fstream>
#include<string>
#include <math.h>
using namespace std;
// ii >>
// oo <<
int main()
{
string hamming;
//ifstream ii("C:\\이현석\\input.txt");
ifstream ii("input.txt");
//ofstream oo("C:\\이현석\\output.txt");
ofstream oo("output.txt");
getline(ii, hamming);
int c1=0, c2=0, c3=0... |
db63c7c1f3876c01f2c79b97b0e6e94b91fea032 | 62c8d47803da82bc6b7a276e0c54796601c66276 | /src/sound/sounddriver.h | b5825bf5a4797ac3da107f01574bb3a0d31a8d2e | [
"MIT",
"GPL-2.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | autc04/executor | a01d1c5081251a331067596141422568159a7596 | ada40683c14d9dfb2a660e52378e9864e0d51357 | refs/heads/master | 2023-07-21T14:33:48.612380 | 2023-05-07T21:33:31 | 2023-05-07T21:33:31 | 106,850,181 | 125 | 9 | MIT | 2023-07-07T14:12:07 | 2017-10-13T16:48:51 | C++ | UTF-8 | C++ | false | false | 978 | h | sounddriver.h | #if !defined(_RSYS_SOUNDDRIVER_H_)
#define _RSYS_SOUNDDRIVER_H_
#include <sound/soundopts.h>
namespace Executor
{
struct HungerInfo
{
snd_time t2; /* Time of earliest sample which can be provided */
snd_time t3; /* Time of latest sample which must be provided */
unsigned char *buf; /* nullptr means ther... |
11201e0a6a4d26a5f07d2225c13baa3b5e4d96fd | 0ab72b7740337ec0bcfec102aa7c740ce3e60ca3 | /include/km/step-propagator/property-name.h | 48cbd8269560c3f7a923ad19bda307143a6ba10d | [] | no_license | junwang-nju/mysimulator | 1d1af4ad7ddbe114433ebdadd92de8bb3a45c04f | 9c99970173ce87c249d2a2ca6e6df3a29dfc9b86 | refs/heads/master | 2021-01-10T21:43:01.198526 | 2012-12-15T23:22:56 | 2012-12-15T23:22:56 | 3,367,116 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 316 | h | property-name.h |
#ifndef _Step_Propagator_Property_Name_H_
#define _Step_Propagator_Property_Name_H_
namespace mysimulator {
enum MassPropertyName {
UniqueMass=0,
ArrayMass,
UnknownMassProperty
};
enum FrictionPropertyName {
UniqueFriction=0,
ArrayFriction,
UnknownFrictionProperty
};
}
#endif
|
4273a2c8add9d13e85d0a10c747dd16f034513eb | f1aaed1e27416025659317d1f679f7b3b14d654e | /MenuMate/MenuMate/Source/ManagerMenus.cpp | f807c5ed686d673ffc5c8980e5f1fe1f0d5ebd47 | [] | no_license | radtek/Pos | cee37166f89a7fcac61de9febb3760d12b823ce5 | f117845e83b41d65f18a4635a98659144d66f435 | refs/heads/master | 2020-11-25T19:49:37.755286 | 2016-09-16T14:55:17 | 2016-09-16T14:55:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 61,408 | cpp | ManagerMenus.cpp | //---------------------------------------------------------------------------
#pragma hdrstop
#include "ManagerMenus.h"
#include "MMLogging.h"
#include "MMUtilFunc.h"
#include "MM_Menu.h"
#include "ItemSize.h"
#include "ListCourse.h"
#include "enumMenu.h"
#include "ItemRecipe.h"
#include "ItemSizeCategory.h"
#includ... |
208796b291bfbca22a75f664fc102bd9aba3b365 | d1605c2576e479fc81da1dcf74d42c8a4edbac28 | /strategies/src/strategies/forexalpha/faparameters.h | 7817b4e1232ca63ca18a940df6e8c4a5abcf7cb2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | simhaonline/siis-rev | 5532aaf51527d504b20fdaa86fdd8c44c901ece3 | b73897fdeae7d0b36746cb62c43ea0218833f856 | refs/heads/master | 2020-08-07T11:30:30.410693 | 2019-09-11T14:45:38 | 2019-09-11T14:45:38 | 213,432,105 | 1 | 2 | null | 2019-10-07T16:25:10 | 2019-10-07T16:25:10 | null | UTF-8 | C++ | false | false | 4,667 | h | faparameters.h | /**
* @brief SiiS strategy forexalpha default parameters.
* @copyright Copyright (C) 2019 SiiS
* @author Frederic SCHERMA (frederic.scherma@gmail.com)
* @date 2019-03-17
*/
#ifndef SIIS_FAPARAMETERS_H
#define SIIS_FAPARAMETERS_H
namespace siis {
/**
* @brief Strategy forexalpha default parameters.
* @author F... |
6db8598d812151c95e68007f2db3162db8928e6a | 0d0fd5bebda3a6305c3f8d5017b99c0f28c4667e | /800/Magnets.cpp | 0a9ce087de98ba7477dc82598797a316f72f3818 | [] | no_license | manmeet-kaur18/CodeForces_Leetcode | 9b7b88daa8ba8ecca48d92a665bf2ac11a437f0a | 8c129d6a6d1ffb57e224f573177c443baf835ad6 | refs/heads/master | 2023-07-13T09:50:42.888171 | 2021-08-26T05:00:44 | 2021-08-26T05:00:44 | 287,578,703 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 290 | cpp | Magnets.cpp |
#include <iostream>
using namespace std;
int main()
{
int NofMagnatics;
cin>>NofMagnatics;
int counter=1;
int arr[100000];
for(int i=0;i<NofMagnatics;i++){
cin>>arr[i];
}
for(int i=0;i<NofMagnatics-1;i++){
if(arr[i]!=arr[i+1])
counter++;
}
cout<<counter<<endl;
}
|
bd1f086b447eb9bf775392e55e6666f049e0a1c2 | d668209e9951d249020765c011a836f193004c01 | /src/layer/riscv/clip_riscv.cpp | 8c43e06a4d823dc17fb6353556129d83ef834c1d | [
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | Tencent/ncnn | d8371746c00439304c279041647362a723330a79 | 14b000d2b739bd0f169a9ccfeb042da06fa0a84a | refs/heads/master | 2023-08-31T14:04:36.635201 | 2023-08-31T04:19:23 | 2023-08-31T04:19:23 | 95,879,426 | 18,818 | 4,491 | NOASSERTION | 2023-09-14T15:44:56 | 2017-06-30T10:55:37 | C++ | UTF-8 | C++ | false | false | 4,212 | cpp | clip_riscv.cpp | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
beacde2d318fa1c1b2c13417104dd51e1e0f956c | 3434f05df84d8335b6bc46ffd22c8e9c90ba093c | /blog/code/2022-02-25-data-from-mic-macos/main.cpp | a5e5ebff75f016f85f66768c5da705edb90cf6fa | [] | no_license | kunigami/kunigami.github.io | d3058f132ed305e10d47c36587d428bb3718f127 | 6970151977b428635b16501f74652e5c764428f2 | refs/heads/master | 2023-08-10T03:30:46.509819 | 2023-08-05T19:20:35 | 2023-08-05T19:20:35 | 18,582,971 | 13 | 13 | null | 2022-09-26T16:50:56 | 2014-04-09T02:48:32 | CSS | UTF-8 | C++ | false | false | 6,275 | cpp | main.cpp | #include <AudioToolbox/AudioToolbox.h>
#include <fstream>
#include <iostream>
struct Options {
double bufferSizeInSecs;
int bufferCount;
};
// generic error handler - if error is nonzero, prints error message and exits
// program.
static void CheckError(OSStatus error, const char *operation) {
if (error == noE... |
4dbe71b91ef4e8614e4d09e6bd50138ba3353630 | a91e7a6f4555dada1df77fd3d422cad85f24eaff | /source/matrixForms/denseForms.cpp | abdd035bef0d893b55e1bffed92633cc6fcc4019 | [] | no_license | TedStudley/mc-mini | 405093be855b01692a4a1bb698b191c0cdffaef9 | 72e40fb3c88e97560610ada5755db8133c12b919 | refs/heads/master | 2020-04-06T04:35:35.542552 | 2016-01-04T23:47:30 | 2016-01-04T23:47:30 | 15,949,815 | 2 | 5 | null | 2016-01-04T18:44:52 | 2014-01-15T21:58:12 | C++ | UTF-8 | C++ | false | false | 10,070 | cpp | denseForms.cpp | #include <iostream>
#include <Eigen/Dense>
#include "geometry/dataWindow.h"
#include "matrixForms/denseForms.h"
#include "debug.h"
using namespace Eigen;
using namespace std;
namespace DenseForms {
void makeStokesMatrix (Ref<MatrixXd> stokesMatrix,
const int M,
co... |
fac5ec8460add94e16c0d7bf19767147f0f9030a | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Graphs/2469.cpp | 10213eec63d69d6050886071738a37445af6dead | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | 2469.cpp |
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define ff first
#define ss second
ll n,u,v,col[10005],cnt;
vector<ll> adj[10005];
void dfs(ll ver,ll par,ll color)
{
if(col[ver]!=color)
cnt++;
for(ll i=0;i<adj[ver].size();++i... |
5b38e7dded63fee076c39e3c1183eaa765629302 | 40bb05c86ce83769172b4dfe0ef26c9239c156db | /src/utils/SslHelper.cpp | 7cba795d4342dc24f806aaf552402ecafebf7ea6 | [
"Apache-2.0"
] | permissive | xDimon/primitive | 204d5763db9e292e8c2dd5a2e78435ebaf786f2a | 092e9158444710cdde45c57c4115efa06c85e161 | refs/heads/master | 2022-03-28T09:24:10.728615 | 2019-05-30T16:27:00 | 2019-05-30T16:27:00 | 103,276,659 | 12 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 7,597 | cpp | SslHelper.cpp | // Copyright © 2017-2019 Dmitriy Khaustov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or a... |
204a19ac86e19bf0cdfd82d9b59fe85bccea9706 | 76376635cac89942001870eacaaebf5a1ca6edcd | /DicomTest/dicom_test/data/string_converter/detail/RangeAssignment.h | 79d6e95b996774d1f0d370f8f69227093ec7a210 | [
"MIT",
"BSL-1.0"
] | permissive | drleq/CppDicom | e22678a6b6a2ef3c1ab5ee2a3c0beddfd15e98a7 | e320fad8414fabfb51c5eb80964f8b6def578247 | refs/heads/master | 2020-04-12T16:28:17.237266 | 2019-01-09T17:49:40 | 2019-01-09T17:49:40 | 162,613,526 | 0 | 0 | MIT | 2019-01-09T17:50:11 | 2018-12-20T17:55:46 | C++ | UTF-8 | C++ | false | false | 819 | h | RangeAssignment.h | #pragma once
namespace dicom_test::data::string_converter::detail {
class RangeAssignment
{
public:
RangeAssignment(
const std::string& start_byte_sequence,
const std::string& end_byte_sequence,
uint32_t start_unicode,
uint32_t end_unicode... |
fc3b7b3f75cf1857782fd3787f3f8291cb69dd36 | a3f13cad42d0e7288a95e28ce5d83ef5029754a8 | /src/Compiler/Frontend/Scanner.cpp | 7b5fde6135a9e1135b152c326791a35434945092 | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | HeYuHan/XShaderCompiler | 3f8039d5b6ad1f46a08f940276c0ccb7fa97bc30 | c1d5018f80beaaf7eca8f6b1ab6952b3f2841be5 | refs/heads/master | 2022-03-13T17:36:35.416287 | 2019-09-05T23:46:36 | 2019-09-05T23:46:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,916 | cpp | Scanner.cpp | /*
* Scanner.cpp
*
* This file is part of the XShaderCompiler project (Copyright (c) 2014-2018 by Lukas Hermanns)
* See "LICENSE.txt" for license information.
*/
#include "Scanner.h"
#include "Helper.h"
#include "ReportIdents.h"
#include <cctype>
namespace Xsc
{
Scanner::Scanner(Log* log) :
log_ { log }
... |
af81959d6533402ff63cea7a72f991a9719fdd1b | 61a9a2e8727111b5cf18296217cd3b3eda891162 | /Practica2/esqueleto/OtherIsAliveCondition.h | 59464b1ea0089b82c4e1dd66e3ceccac1378c4ed | [] | no_license | Lepticidio/StateMachineExercise | 750b2842fb942d99c0cdb7db9123b95636653a36 | 8def11d401078b2495cee3e4843f7d6a30f1f6f9 | refs/heads/master | 2022-11-08T03:05:19.714076 | 2020-06-29T08:51:25 | 2020-06-29T08:51:25 | 275,401,221 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 202 | h | OtherIsAliveCondition.h | #pragma once
#include "Condition.h"
class Character;
class OtherIsAliveCondition : public Condition
{
Character* m_pOther;
public:
OtherIsAliveCondition(Character* _pOther);
bool check() const;
};
|
5d4e5bf934a7a62abaada80b42866bd721e939a7 | 6aeccfb60568a360d2d143e0271f0def40747d73 | /sandbox/SOC/2008/graphs/branches/tagged/boost/graphs/adjacency_list/undirected/vertex.hpp | 72a930f6eb774ad7d30a650dd8b9e3b1826c71e4 | [] | no_license | ttyang/sandbox | 1066b324a13813cb1113beca75cdaf518e952276 | e1d6fde18ced644bb63e231829b2fe0664e51fac | refs/heads/trunk | 2021-01-19T17:17:47.452557 | 2013-06-07T14:19:55 | 2013-06-07T14:19:55 | 13,488,698 | 1 | 3 | null | 2023-03-20T11:52:19 | 2013-10-11T03:08:51 | C++ | UTF-8 | C++ | false | false | 6,228 | hpp | vertex.hpp |
#ifndef BOOST_GRAPHS_ADJACENCY_LIST_UNDIRECTED_VERTEX_HPP
#define BOOST_GRAPHS_ADJACENCY_LIST_UNDIRECTED_VERTEX_HPP
// #include <boost/graphs/adjacency_list/vertex.hpp>
namespace boost {
namespace graphs {
namespace adj_list {
template <typename VertexProps, typename EdgeStore>
struct undirected_vertex
{
};
#if 0
... |
425d98a90d4e068ec2389cae6fdc24f8275697a1 | 0de3ff33c6098ef2d7461b99c17fe000f75edd9d | /GetLowEngine.Engine/TextureManager.h | e4fe74827195a4ec14f3a0a808e6f68c60880cdd | [
"MIT"
] | permissive | ticticboooom/GetLowEngine | 0e1ca507937a91eaf1eb4342cd2319729ea583de | 3303bc414a8b89c605161193d7284b6f91c4a5b6 | refs/heads/master | 2023-06-26T22:22:59.266248 | 2021-07-31T16:55:17 | 2021-07-31T16:55:17 | 215,819,241 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 254 | h | TextureManager.h | #pragma once
class TextureManager
{
public:
TextureManager();
static std::shared_ptr<TextureManager> GetInstance();
int CreateSRVFromTextureFile(std::wstring texturePath);
private:
static std::shared_ptr<TextureManager> instance;
int m_SRVSlot;
};
|
e0e4e9149286c17f36884dee3679ac67a9581fa0 | 4c4ac45dadd143c2de854a6b6087250a249f2706 | /src/cores/virtuanes/NES/Mapper/Mapper000.h | 1054f9d05d3faa25f2425ac66adc18a2ddb66933 | [] | no_license | TBirdSoars/VirtuaNES | 5cf9e5a88115e9d5dccfb7844ed26b00cfe50958 | cc4e5fa9e003f75d8b000bb22adb37961f33bf3e | refs/heads/master | 2023-05-29T13:33:35.601498 | 2023-05-03T03:30:47 | 2023-05-03T03:30:47 | 208,385,383 | 20 | 2 | null | 2020-05-08T00:52:14 | 2019-09-14T03:51:29 | C++ | UTF-8 | C++ | false | false | 1,105 | h | Mapper000.h | //////////////////////////////////////////////////////////////////////////
// Mapper000 //
//////////////////////////////////////////////////////////////////////////
class Mapper000 : public Mapper
{
public:
Mapper000( NES* parent ) : Mapper(parent) {}
... |
cfc52db693526049493edf98944b631da9a0f099 | 82e6375dedb79df18d5ccacd048083dae2bba383 | /src/alchemy/tests/test-balance.cpp | dbadc8fd8ef859c3e5bc09c93f0c54b47b07ff22 | [] | no_license | ybouret/upsylon | 0c97ac6451143323b17ed923276f3daa9a229e42 | f640ae8eaf3dc3abd19b28976526fafc6a0338f4 | refs/heads/master | 2023-02-16T21:18:01.404133 | 2023-01-27T10:41:55 | 2023-01-27T10:41:55 | 138,697,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,326 | cpp | test-balance.cpp |
#include "y/alchemy/reactor.hpp"
#include "y/utest/run.hpp"
#include "y/yap.hpp"
#include "y/sequence/vector.hpp"
#include "support.hpp"
#include "y/alchemy/weak-acid.hpp"
#include "y/mkl/kernel/apk.hpp"
#include "y/lua++/state.hpp"
using namespace upsylon;
using namespace Alchemy;
Y_UTEST(balance)
{
Library ... |
ffbf912ccfdfc8eabf40a89489e92db5128c9628 | c19fbae37e0361d44cbc4ef93df055b336467709 | /C++/FtpFileUpload/ftplib/ftp-ls.cpp | 7417405347f4f5d6fd88a53535b5d09f89d9cc4c | [] | no_license | cuidx/codememo | 6894bd4668b63c8981ee7a35bd98496b404add13 | 3bad4d3039a60c1369d74c77962d3b33a14cdbe1 | refs/heads/master | 2021-09-04T03:00:18.695532 | 2021-08-13T01:04:35 | 2021-08-13T01:04:35 | 104,612,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,292 | cpp | ftp-ls.cpp | /* Parsing FTP `ls' output.
Copyright (C) 1995, 1996, 1997, 2000, 2001
Free Software Foundation, Inc.
This file is part of GNU Wget.
GNU Wget is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version... |
9237ddc5f17150c74124670c8949f064c9cba04d | 220c48a1ef7cf32a039c2d2ca69b9bd1541f294b | /glsdk/freeglut/progs/demos/Lorenz/lorenz.c | 6a816b2f16bab15fa387bceab3ad29cd7f3c7882 | [
"LicenseRef-scancode-unknown-license-reference",
"X11",
"Zlib",
"MIT",
"LicenseRef-scancode-public-domain",
"CC-BY-3.0"
] | permissive | paroj/gltut | 9b46265787530a512e7bbdf15b0985589d6a1543 | 849521f162f4b4f04f8f959c6759b93c524eba55 | refs/heads/master | 2023-08-22T17:08:22.414353 | 2022-08-20T10:23:35 | 2022-08-20T10:23:35 | 48,700,835 | 1,406 | 389 | MIT | 2022-08-20T10:05:17 | 2015-12-28T16:12:54 | C++ | UTF-8 | C++ | false | false | 11,152 | c | lorenz.c | /*
* Lorenz Strange Attractor
*
* Written by John F. Fay in honor of the "freeglut" 2.0.0 release in July 2003
*
* What it does:
* This program starts with two particles right next to each other. The particles
* move through a three-dimensional phase space governed by the following equations:
* dx/dt =... |
3e81b943c8c2c4107b9c4add6e6f18dbec500e3a | 8dff49c4dc92983cbd0934725f97224fd9754d1d | /ZeroJudge/b836.cpp | 1f0222b6ca2f79dad79db00b6ed2b0e16ea6c3c4 | [] | no_license | cherry900606/OJ_Solutions | 1c7360ca35252aec459ef01d8e6a485778d32653 | b70f8baed30f446421fd39f311f1d5071a441734 | refs/heads/main | 2023-05-14T13:38:44.475393 | 2021-06-19T07:29:35 | 2021-06-19T07:29:35 | 378,026,385 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 289 | cpp | b836.cpp | #include <iostream>
using namespace std;
int main()
{
long long int n,m;
while(cin>>n>>m)
{
if(m==0) cout<<"Go Kevin!!"<<endl;
else if((n-1)%m==0) cout<<"Go Kevin!!"<<endl;
else cout<<"No Stop!!"<<endl;
}
return 0;
}
|
322b7f9630ec1be08bdb158d36c67c618b24bf27 | a89131609d513678bef864616ec282ec3470862d | /src/Android/TraceAction.hpp | 2be7f6dfe80342184b37b3bc6fe9523e44042e68 | [] | no_license | hlhtddx/AndroidTrace | 05228131e7b6952193c839e0e4d389d81ba6a9fe | d34c6f1aa0fef79e754cc60543c527265e4b87a1 | refs/heads/master | 2020-04-06T06:16:13.601947 | 2018-01-29T09:40:39 | 2018-01-29T09:40:39 | 41,125,284 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | hpp | TraceAction.hpp |
#pragma once
#include "Call.hpp"
namespace Android {
#ifdef CLOCK_SOURCE_THREAD_CPU
typedef enum ActionType {
ACTION_ENTER = 0,
ACTION_EXIT = 1,
ACTION_INCOMPLETE = 2,
} ActionType;
class TraceAction final
{
public:
int mAction;
int mCall;
public:
TraceAction(ActionType action, int call)
{
... |
6842711d28ba7b29eac7c170d92c5cc79876cd84 | eecb64a0eb8b6d28e22eb12926a7590d9a43b4d4 | /internal/libmdict/adler32_test.cc | 6c0ba7449b4118b0fc3e64b0a699b3152f248a8e | [] | no_license | terasum/medict | d960f4da14e68943c1513a0584c4af3cc734da97 | dac8ccab4e6a8cebaed947475463864baa2d7606 | refs/heads/v3-dev | 2023-03-17T11:46:45.929964 | 2022-09-03T06:45:21 | 2022-09-03T06:45:21 | 121,977,288 | 241 | 30 | null | 2023-09-11T11:46:13 | 2018-02-18T18:15:37 | C | UTF-8 | C++ | false | false | 357 | cc | adler32_test.cc | // adler32.cpp - originally written and placed in the public domain by Wei Dai
#include "adler32.h"
int main() {
// Adler32 adler32hasher;
char *str = const_cast<char *>("helloworld");
uint32_t hash = adler32checksum((unsigned char *)str, 10);
if (hash != 0x1736043D) {
printf("adler32 test failed, PANIC\n... |
514005022ac87667e2abef43d42489431920c8dc | 33a2a48e8774a7ab52c3c20f11b646a676188028 | /DP/ChainOfPair.cpp | d72b4bf4126aa8c10d1a4dc25e7f66fa32932dd7 | [] | no_license | Avi7997/Algo_DS-codes-in-Btech | 12123f574b88a8613aa78c0b6bd74e818f759d6d | 2b1e3e0c06230cf7ae728e809476c92c29c366a1 | refs/heads/master | 2021-09-06T17:52:06.543603 | 2018-02-09T09:27:38 | 2018-02-09T09:27:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | cpp | ChainOfPair.cpp | #include<bits/stdc++.h>
using namespace std;
struct hey{
int a;
int b;
};
void chain(struct hey ar[], int n){
int dp[n], mac[n]={0};
dp[n-1] = 1;
mac[n-1] = 1;
for( int i = n-2; i >= 0; i--){
int j = i+1;
mac[i] = mac[i+1];
//cout<<"mac "<<mac[i]<<endl;
... |
f80b56815576c62e555d90cd161f5ded676d2030 | e1967a72410844f8a3368ab8cc488b1a7362334f | /src/quickMovementDemo.cpp | f7cd1eca95779eca7ae74a545c269a3df903647a | [] | no_license | sarossilli/lim-demo | e63b4086156d26673db56986453dc08ef2cf3bfd | b38436a0a1bcac826e0f97db26da272e69bb637b | refs/heads/master | 2022-12-24T16:51:59.464309 | 2020-10-06T22:30:40 | 2020-10-06T22:30:40 | 284,764,647 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,693 | cpp | quickMovementDemo.cpp | // Demonstrator Pod Fast Movements Code
// Use the uncommented version for actual arduino upload!
// This version makes the cart move back and forth along the track
// 11-11-19
//########################################## BACKGROUND INFO ###########################################################... |
c8ccff7a4608f8021ee708649eaf8a1f29d42329 | 4d4822b29e666cea6b2d99d5b9d9c41916b455a9 | /Example/Pods/Headers/Private/GeoFeatures/boost/fusion/container/list/list_fwd.hpp | 32832a9e9c3556d151491aa5228058ed9a0ef5a6 | [
"BSL-1.0",
"Apache-2.0"
] | permissive | eswiss/geofeatures | 7346210128358cca5001a04b0e380afc9d19663b | 1ffd5fdc49d859b829bdb8a9147ba6543d8d46c4 | refs/heads/master | 2020-04-05T19:45:33.653377 | 2016-01-28T20:11:44 | 2016-01-28T20:11:44 | 50,859,811 | 0 | 0 | null | 2016-02-01T18:12:28 | 2016-02-01T18:12:28 | null | UTF-8 | C++ | false | false | 79 | hpp | list_fwd.hpp | ../../../../../../../../../GeoFeatures/boost/fusion/container/list/list_fwd.hpp |
689b13c1bbeda7de04814ec39fff1031fc7d0174 | 48fff87acdaeafdf024d57dce70b68b0e85e6498 | /J1939Reader/J1939Reader.ino | 1277903b485913786135c97797627bb9ca80eb21 | [] | no_license | Fusickb/TheoreticalVibrations | 8cdd34a11995bf946f858f7aeab29330d9a3e6c7 | 2368a37ce63fdd8e4c5b7cbc0e2accabf0d9f837 | refs/heads/master | 2021-01-18T05:53:35.621598 | 2016-09-27T17:17:55 | 2016-09-27T17:17:55 | 68,475,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,254 | ino | J1939Reader.ino | #include <FlexCAN.h> // Includes Arduino's FlexCAN library. For reference this is available at https://github.com/teachop/FlexCAN_Library
#define ledPin 13 // Defines the pin 13 as the ledPin
FlexCAN J1939bus(2500... |
dadb008427a148b1231f690b4f1bb29ccca38711 | ff0cc7e931d038a9bd9a56665b20cd8dab071959 | /src/Apps/Plugins/NeuroToolsPlugin/widgets/ImageContrastWidget/coreImageContrastWidgetUI.cpp | d11f2ae36e92420747e832b4e6c90136def65614 | [] | no_license | jakubsadura/Swiezy | 6ebf1637057c4dbb8fda5bfd3f57ef7eec92279b | bd32b7815b5c0206582916b62935ff49008ee371 | refs/heads/master | 2016-09-11T00:39:59.005668 | 2011-05-22T19:38:33 | 2011-05-22T19:38:33 | 1,784,754 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,123 | cpp | coreImageContrastWidgetUI.cpp | // -*- C++ -*- generated by wxGlade 0.6.3 on Thu Jul 01 11:35:34 2010
#include "coreImageContrastWidgetUI.h"
// begin wxGlade: ::extracode
// end wxGlade
coreImageContrastWidgetUI::coreImageContrastWidgetUI(wxWindow* parent, int id, const wxPoint& pos, const wxSize& size, long style):
wxScrolledWindow(parent, ... |
fce876c0ab28f6d51567e16a16bf0c00246ef406 | 99a0c9b3c6dfaea7e60288fe3bf0a99e0c250d98 | /2D-Portfolio/Client/LogoStatic.cpp | 6c34d60a37c1c46926af35631ec14180c0406c6f | [] | no_license | Ryujaehyeon/Portfolio | d6232cb0350a89d2be26526fe94feedc61d9271f | 4be010721d03340560edbc0514252bf58402954e | refs/heads/master | 2020-05-29T15:08:14.275370 | 2016-09-23T01:52:09 | 2016-09-23T01:52:09 | 65,179,835 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 217 | cpp | LogoStatic.cpp | #include "StdAfx.h"
#include "LogoStatic.h"
CLogoStatic::CLogoStatic(void)
{
}
CLogoStatic::CLogoStatic(const OBJINFO& Info, const OBJ_TYPE _ObjType)
:CObj(Info, _ObjType)
{
}
CLogoStatic::~CLogoStatic(void)
{
}
|
ffc4ed6ce7b6f6d4da789b29fcd6d98dafb8ff1c | 319bba205ce1659bdae52f12e8352ffeffdebab5 | /src/sdl-modules/impl/sdl_ttf.cc | e8f4f6c468cb99acc34154f2c09a44d5eca94341 | [] | no_license | woguls/GE | e43e4f79ec4ec19438b850dab8564551a2545c32 | 984247555ab3af633e01b4f18d54f7f77e7ea036 | refs/heads/master | 2020-05-04T23:50:22.451590 | 2019-04-07T04:57:40 | 2019-04-07T04:57:40 | 179,556,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,288 | cc | sdl_ttf.cc | #include <sdl-modules/sdl_ttf.h>
#include <v8pp/module.hpp>
#include <v8pp/class.hpp>
#include <common-util.h>
SdlTTF::SdlTTF
( resource_reference_t& ref, int ptsize )
{
ResourceReference* ref_ptr = ref.Get();
if (ref_ptr == nullptr) {
LOG("Attempted to create ttf from empty reference");
retur... |
d4e1c82548295d7c835b6b911d006392eacd3ef5 | f8cf477528a74720409dd454308e1a38dd84ffbd | /src/ActiveBSP/include/actormsg/ReleaseResultPartMessage.h | 65cbf3a91acd599bb8a56b8e6f0df7181fb7a386 | [
"BSD-3-Clause"
] | permissive | fbaude/activebsp | c949f7f776585c5d7edcdc9607da9139e87480e0 | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | refs/heads/main | 2023-05-07T23:45:25.169736 | 2021-05-28T13:57:45 | 2021-05-28T13:57:45 | 371,710,866 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 454 | h | ReleaseResultPartMessage.h | #ifndef __RELEASE_RESULT_PART_MESSAGE_H__
#define __RELEASE_RESULT_PART_MESSAGE_H__
#include "ActorMessage.h"
namespace activebsp
{
class ReleaseResultPartMessage : public activebsp::ActorMessage
{
public:
ReleaseResultPartMessage(int src, char * buf, int buf_size);
ReleaseResultPartMessage(int resid);
... |
d4d14e9f157e3eb7f0f1993a4bacb77f3e1842d1 | 07263bc11131f3a1cc9bb56fa88d0d2db4c00eae | /src/backend/executor/exchange_hash_join_executor.h | a1991093a8f0817452724e7cc5e091993cc4e3e7 | [
"Apache-2.0"
] | permissive | TailofJune/peloton | a89cc8f5b91fe333efa688996fdd8e1c93df1138 | 092c5625fd1011f98e61553f183eb7193a0583c4 | refs/heads/master | 2020-12-26T03:11:42.522692 | 2016-05-10T02:35:14 | 2016-05-10T02:35:14 | 56,364,070 | 1 | 0 | null | 2016-04-16T03:42:16 | 2016-04-16T03:42:15 | null | UTF-8 | C++ | false | false | 4,398 | h | exchange_hash_join_executor.h | #pragma once
#include <deque>
#include <vector>
#include "backend/executor/abstract_join_executor.h"
#include "backend/executor/exchange_hash_executor.h"
#include "backend/executor/hash_executor.h"
#include "backend/planner/hash_join_plan.h"
#include <atomic>
#include "backend/common/barrier.h"
#include "backend/com... |
dc086dc18d7c4d684f14339ac196958c1086403c | d8571a050518855e11f14688fb30efba304d8850 | /Snake/src/Snake/Window.h | 8414d79dc6115b372faf0bad59c46615761ee37c | [] | no_license | PatrickJessen/Snake | f5a006d90c77fe34c8fefa52d3d269758db9d9c8 | a5a188431649383bb0c7cab88f2d68ae576090ed | refs/heads/master | 2023-07-10T16:46:14.104401 | 2021-08-11T16:50:43 | 2021-08-11T16:50:43 | 395,057,964 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 601 | h | Window.h | #pragma once
#define SDL_MAIN_HANDLED
#include "SDL.h"
#include "SDL_image.h"
#include <iostream>
class Window
{
public:
Window(const char* title, int xpos, int ypos, int width, int height, bool fullscreen);
~Window();
//void Init(const char* title, int xpos, int ypos, int width, int height, bool fullscreen);
vo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.