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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
519b0a647a5f1b7b3e6fc1ee46227fb8689867c5 | bb79366c36a43ed2526dbaf9925175b98cdfe1a8 | /Source/InceptionEngine/ECS/Components/AudioComponent/AudioComponent.cpp | 101b82eb4c75843dbdecae03396f654601d6491a | [] | no_license | vincore/InceptionEngine | caa01a406a6df0794013663db58f276fa7598045 | cc1e5b13c9b195c8a48064ace067bafa951376d6 | refs/heads/master | 2023-07-12T12:15:22.435629 | 2021-08-07T06:46:20 | 2021-08-07T06:46:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | AudioComponent.cpp |
#include "IE_PCH.h"
#include "AudioComponent.h"
#include "PathHelper.h"
#include "ThirdPartyLibraries/irrKlang/include/irrKlang.h"
namespace inceptionengine
{
static irrklang::ISoundEngine*& GetSoundEngine()
{
static irrklang::ISoundEngine* SoundEngine = irrklang::createIrrKlangDevice();
return SoundEngine;... |
831574cc7065173105170a309e86e007fa352da0 | 5b5d6bbc5ae57928aa7a4256bc12af15d2743191 | /VerifyingCommand.cpp | 159457206faa36e05fb9f7f5a819791168e5292f | [] | no_license | gherman7755/ELSD | 54286f8e4609be86d673bfcde2329b7d67838da8 | 474f9a7e116125fa87364dcae9d9db8f821fbf71 | refs/heads/main | 2023-04-05T15:40:58.269795 | 2021-04-08T19:26:29 | 2021-04-08T19:26:29 | 340,071,522 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,570 | cpp | VerifyingCommand.cpp | #include <string>
#include <iostream>
#include "VerythingCommand.h"
using namespace std;
void call_error(){
cout << "Invalid command" << endl;
exit(0);
}
bool valid_end(string input){
char end = ';';
if(input.find(end) == input.size() - 1)
return true;
else{
cout << ... |
8f3041e5ec76a8dc538e5eca63c5a1b870613133 | db21b28ec9e64c33cf8f2a725d56cd8585720a91 | /leetcde_1003.cpp | 2ffd6f77c79a012bc29bbe9abf421797b6afe08e | [] | no_license | 2018hsridhar/Leetcode_Solutions | afb6a88f2b1075af3f6339956e499f228cde0ba3 | f6b356ff5393113d0a6cc29118e6ef6c45a4f0ee | refs/heads/master | 2023-08-30T22:43:23.308370 | 2023-08-29T04:15:31 | 2023-08-29T04:15:31 | 78,995,027 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 928 | cpp | leetcde_1003.cpp | /*
1003. Check If Word Is Valid After Substitutions
URL = 1003. Check If Word Is Valid After Substitutions
Let N = len(s)
Time = O(N)
Space = O(N) ( EXP ) O(1) ( IMP )
*/
class Solution {
public:
bool isValid(string s) {
bool stat = true;
std::stack<char> stk;
for(char c : s){
... |
b3f1043f5ad37667cdac19e190624fd53eec2815 | db41952df56d92531f34f6b1c0005b5581ba5994 | /src/service/GraphService.cpp | e6e0a3c38694e00cb0d3e363a7c01be1fc52b2ab | [
"Apache-2.0",
"LicenseRef-scancode-commons-clause"
] | permissive | yixinglu/nebula-graph | 3d48e72ae4e1d0a46ec1cc4d4084c6fd0ed86160 | faf9cd44d818b953da98b5c922999560c89867bd | refs/heads/master | 2023-06-28T21:39:25.637732 | 2020-09-22T06:27:01 | 2020-09-22T06:27:01 | 288,141,709 | 1 | 0 | Apache-2.0 | 2020-08-17T09:45:46 | 2020-08-17T09:45:46 | null | UTF-8 | C++ | false | false | 4,586 | cpp | GraphService.cpp | /* Copyright (c) 2018 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "common/base/Base.h"
#include "common/time/Duration.h"
#include "common/encryption/MD5Utils.h"
#include "common... |
297db1d46b4123f3c2d35dee292744da78e4d0fb | 03b5b626962b6c62fc3215154b44bbc663a44cf6 | /src/operator/substruction.cpp | e68bc212d267b7d57e7b143cafdd137112f69d20 | [] | no_license | haochenprophet/iwant | 8b1f9df8ee428148549253ce1c5d821ece0a4b4c | 1c9bd95280216ee8cd7892a10a7355f03d77d340 | refs/heads/master | 2023-06-09T11:10:27.232304 | 2023-05-31T02:41:18 | 2023-05-31T02:41:18 | 67,756,957 | 17 | 5 | null | 2018-08-11T16:37:37 | 2016-09-09T02:08:46 | C++ | UTF-8 | C++ | false | false | 534 | cpp | substruction.cpp | #include "substruction.h"
int Csubstruction::my_init(void *p)
{
this->name = "Csubstruction";
this->alias = "substruction";
this->symbol = "-";
this->op_priority = 6;
this->combination = Combination::L2R;
return 0;
}
Csubstruction::Csubstruction()
{
this->my_init();
}
Csubstruction::~Csubstruction()
{
}
#ifn... |
7451d462bd2ac70a72eea197b6d58722d1bfb8a8 | b533cc85d6de35b0e6a9664dce6b31e6945531a1 | /VideoGraphics/TScheduler.cpp | c778c065208d6e4c76358a199e88133a55ae3441 | [] | no_license | TrecApps/AnaGame | efa90d4af51aea14fd0ecd834341193cb1c36cbc | 23b349a2f4afa64d6410e47a3c5e56c99c136d57 | refs/heads/master | 2022-08-11T17:30:07.756655 | 2021-07-03T15:55:56 | 2021-07-03T15:55:56 | 142,814,475 | 0 | 2 | null | 2021-06-23T03:10:11 | 2018-07-30T02:25:01 | C++ | UTF-8 | C++ | false | false | 4,208 | cpp | TScheduler.cpp | #include "TScheduler.h"
#include "TStreamSink.h"
#include <mfapi.h>
#include <Mferror.h>
TScheduler::TScheduler(TrecComPointer<IMFStreamSink> s):
callBack(this, &TScheduler::OnTimer)
{
streamer = s;
waiter = 0;
this->timerKey = 0;
}
TScheduler::~TScheduler()
{
}
void TScheduler::SetFrameRate(const MFRatio& fps)
... |
2bf9b78fc8769b56a67b25e809428d00d5b84a30 | 6887283e83fd110f3d5d3806c14108243f7fc4ae | /CloudNecklace/CloudNecklace.ino | 57316cb04627b5bbdfbf56f41d67aa249d01a20c | [] | no_license | alzulas/Arduino | a1dac40ffca043f4079b9e2864be5d62513d49f8 | 0438e371ad206869e3c63e182f25e6d71fa5ac3d | refs/heads/master | 2020-12-24T08:00:35.957769 | 2017-02-01T22:45:19 | 2017-02-01T22:45:19 | 58,186,642 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,159 | ino | CloudNecklace.ino | // Scrolling cloud pendant for Adafruit Pro Trinket and ST7735R display.
// Inspired by Cory Arcangel's "Super Mario Clouds."
// Triggered with vibration switch between digital pins 3 and 4.
// This is NOT a good learning example for the Adafruit_GFX library!
// To achieve fast frame rates, the code does horrible irr... |
898ef3d654afe63e4f59306aa3fd7bf348791ca5 | a283563f58064cb78239dfb12f7efaa77f793b1c | /src/Som.h | 241aca6324a7d42704f641d12781975ad4a038b4 | [] | no_license | vadimostanin/libkohonen | eea419bd2e806731625b41153f21ec1a27aeb9e4 | c76e07a6d29fa445a11c1f22e5396d2c91e403fb | refs/heads/master | 2020-06-03T20:43:53.710591 | 2015-08-25T05:51:33 | 2015-08-25T05:51:33 | 41,311,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | Som.h | /*
* Som.h
*
* Created on: 24 авг. 2015
* Author: vadim
*/
#ifndef SOM_H_
#define SOM_H_
#include "SomNeuron.h"
#include <vector>
using namespace std;
class Som
{
public:
Som( uint32_t width, uint32_t height );
virtual ~Som();
private:
void init();
typedef SomNeuron ColorSomNeuron;
vector<vector<Co... |
b197829c2bd58d0533b3a1f5b185624c9a68ea4c | 6730a7ab749dd360d5e0cb3eb3715d83b210bc3d | /CommandJob.cpp | 24d469cec4a857fe4471c9375a6396d5209b0775 | [] | no_license | maxkunes/APCSReminder | 69209f4157f4774c4f5f3fbdd77557fa9ce78d62 | b23e4c26afdd6584bb2114f03d97c484997a24dc | refs/heads/master | 2020-03-12T08:18:42.604983 | 2018-10-26T19:51:44 | 2018-10-26T19:51:44 | 130,524,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 318 | cpp | CommandJob.cpp | #include "CommandJob.h"
#include <algorithm>
CommandJob::CommandJob(const std::string name)
{
commandName = name;
std::transform(commandName.begin(), commandName.end(), commandName.begin(), ::tolower); // convert command name to lowercase
}
const std::string& CommandJob::GetCommandName()
{
return commandName;
}
|
613abf15b5441c66f4cd39f5095da7a94137a7b6 | 1063f7e13f50fa0fee6723a77dc533d786e3082f | /trunk/src/utils/ReportControl/ListCtrlEL/ELInplaceControls.h | cd82090c5eccb42d6366977feaad42d23a2bf458 | [] | no_license | zjm1060/HandSet | 9e9b8af71ee57a7b90a470473edb72ef7b03c336 | 59a896e38996fe9f9b549316974bf82ffa046e1e | refs/heads/master | 2022-12-21T19:52:10.349284 | 2017-03-10T08:20:14 | 2017-03-10T08:20:14 | 112,681,985 | 0 | 0 | null | 2020-09-25T01:00:09 | 2017-12-01T01:50:46 | C++ | GB18030 | C++ | false | false | 8,445 | h | ELInplaceControls.h | #pragma once
#include "ELDefines.h"
#include "ELRecordItem.h"
#include "../Template/ListBoxExt.h"
//
//-----------------------------------------------------------------------------
// CELInplaceControl
//
// inplace控件父类, 所有inplace控件有此派生,
// 通常inplace控件都是一个真实的弹出的, 模态的窗口
//-----------------------------------------... |
74d102401c02aae03c1fe5940b5d177bfbd9b51e | e908f7546ebbdb7f03a007295c4521063b6b8855 | /RJ/AudioItem.cpp | 204e4bbe4f70b4c9a65eb0a74b16b9d196745948 | [] | no_license | RobJenks/rj-engine | 6c1fd8bf6e9892fa02b6834a012e7a2d732fadf9 | b3ae7c977d149b7ce6fd406e80b0693705226f17 | refs/heads/master | 2022-12-25T03:09:51.260463 | 2020-10-04T16:21:49 | 2020-10-04T16:21:49 | 301,125,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,057 | cpp | AudioItem.cpp | #include <string>
#include "HashFunctions.h"
#include "ErrorCodes.h"
#include "FastMath.h"
#include "Logging.h"
#include "AudioManager.h"
#include "AudioItem.h"
// Constructor with all mandatory parameters
AudioItem::AudioItem(Audio::AudioID id, const std::string & name, AudioType type, const std::string & filename, ... |
10521fc65634005220759f40aea07e8320fbf91f | d5ad10c9b97f1b020284be9ec6eb31c3b555d029 | /from_novice_to_expert/Recursion_Quick-sort_Merge-sort/INOI1201.cpp | 977183a8a95606ae01db8e4b25e9468a2b5a2e74 | [] | no_license | pavalucas/Competitive-Programming | 3504fbe2752c5211d61cf248382de84bf2cc9129 | 2ada9c407c281ca36bc85dea477a641ea40cd57d | refs/heads/master | 2023-06-10T21:03:00.575969 | 2023-06-02T04:05:35 | 2023-06-02T04:05:35 | 63,376,497 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,304 | cpp | INOI1201.cpp | #include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
#define ub upper_bound
#define lb lower_bound
#define mp make_pair
#define mt make_tuple
#define pb push_back
#define cl(x, v) memset((x), (v), sizeof(x))
#define db(x) cerr << #x << " == " << x << endl
#define dbs(x) cerr << x << endl... |
a21be82ebec5432df532738f2021e460af9c4aa2 | eef673dbdfdaae4b350a16fc976953d53028e731 | /CS202-S20/projx/SmartPtr.cpp | 9c42611b14dfa486098bd0e003fde1c21e687d07 | [] | no_license | atozc/UNR-Undergrad-Courses | 6efb14796e1ff2d4651dbe1d8dd22b633f239bba | 1f0b8fd118d07c2d04f67a4a6bdcf00aac4fd0fe | refs/heads/main | 2023-09-01T02:20:00.520248 | 2021-08-04T20:35:13 | 2021-08-04T20:35:13 | 392,803,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,232 | cpp | SmartPtr.cpp | /**
* @ Name: CS 202 - Project X
* @ Desciption: SmartPtr.cpp
* @ Author: Crystal Atoz
* @ Date Last Modified: 4/6/20
*/
#include <iostream>
#include "DataType.hpp"
#include "SmartPtr.hpp"
using namespace std;
SmartPtr::SmartPtr() {
try {
m_ptr = new DataType;
m_refcount = new size_t;
... |
2e9b73d77c002375e8bbaf9f19b5e828800924c1 | 27c5a20b400819a1059c9ef5b1f9bb499bd39b28 | /BluFeather_AdaloggerLight.ino | 1388c895ce8384b8228d82b33c9e5fd1c5dff242 | [
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | AnchorageBot/YouTube | 1ae515eaf57450d0edfd17cd6b3554bb3d05bf45 | 4752a649d1184207c267863c82d28373d15323f3 | refs/heads/master | 2023-07-21T23:49:51.214361 | 2023-07-08T20:46:46 | 2023-07-08T20:46:46 | 174,719,444 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 6,859 | ino | BluFeather_AdaloggerLight.ino | /*
* This sketch will log (SD card) and print (serial monitor) data from the PT550 sensor and the RTC shield every 6 seconds
using Arduino IDE 1.8.10
Materials Schedule
(1 each) Adafruit Feather 32u4 Bluefruit LE with stacking headers
https://learn.adafruit.com/adafruit-feather-32u4-bluefruit-le?view=all... |
059a32739f37f5728206a3146caa37d0ae8fd83c | a9c2a987d99ccc0114b7bfd3756af981384b23c0 | /source/addonX11GL/openGL_bitmap.cpp | 2a0b8606a6f65a21e5ce2d5c16b502290a68165b | [] | no_license | discostubee/gamestool | 631fd303c95e2815887685c59ff70d35604c7378 | f6201cd9ffefec0994419099e8d31818b4101361 | refs/heads/master | 2021-01-10T13:02:42.146215 | 2015-04-10T21:59:50 | 2015-04-10T21:59:50 | 46,010,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 255 | cpp | openGL_bitmap.cpp | #include "openGL_bitmap.hpp"
using namespace gt;
cBitmap_X11GL::cBitmap_X11GL(){
}
cBitmap_X11GL::~cBitmap_X11GL(){
}
cBitmap::ptrBitmap
cBitmap_X11GL::getBitmap(){
return ptrBitmap(NULL);
}
void
cBitmap_X11GL::applyDirt(const dListDirty pDirt){
}
|
a094e59016e4b38235311168ddb0984d8465a2ae | 2b1729ee2db6b6f473b9459d7b93d177ed91cd66 | /out-of-tree/old/convert_async.cpp | e7c2f7b269a83665c46b1dfd9a84c4c7079b9657 | [] | no_license | LiamMehle/playground | d9a36b9faaca2b37e981b0b83b9bb03326540996 | 179f9bf7acba98586097cf800f5bd9673c5a2e91 | refs/heads/master | 2023-03-04T11:01:38.597812 | 2020-12-30T12:53:31 | 2020-12-30T12:53:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 618 | cpp | convert_async.cpp | /*#include <iostream> // std::cout
#include <future> // std::async, std::future
#include <chrono> // std::chrono::milliseconds
*/
#include <pch.h>
#define mi_km 1.609344 //mi to km multiplier
#define gal_l 3.7854 //gal to l multiplier
float convert (double imperial)
{
return 100*gal_l/(imperi... |
624c3af697be04f7383c3d8b2589ad5bc2dec288 | 8177a59eb31f17bad3bd88f2371e70c175971a14 | /main/a_indexing.cpp | 0d58104ca169b1c020ec37d8edb6b664d088a1c9 | [] | no_license | joniali/Cg-Saar-RayTracer | 6be9452b37fdb50f2769e4d5b2bfb23661a0909c | 03b554188dd8bcda593a68431ff04b6843953878 | refs/heads/master | 2020-05-18T12:13:42.865606 | 2014-12-13T15:48:09 | 2014-12-13T15:48:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,747 | cpp | a_indexing.cpp |
#include <core/assert.h>
#include <core/scalar.h>
#include <core/image.h>
#include <rt/world.h>
#include <rt/renderer.h>
#include <rt/loaders/obj.h>
//#include <rt/groups/bvh.h>
#include <rt/groups/kd.h>
#include <rt\groups\simplegroup.h>
#include <rt/solids/sphere.h>
#include <rt/cameras/perspective.h>
#include <rt/i... |
f30f5f3be97ee7fd978df5808ba0d8e973beb0fe | 7a81be09ee6f278b7061eeb83f408d822a617dde | /cpp/examples/fractionClass/fractionSubmit/testCode.cpp | 253205dfbc2a1781300b9ba332280ab7d1291aaf | [] | no_license | amithjkamath/codesamples | dba2ef77abc3b2604b8202ed67ef516bbc971a76 | d3147d743ba9431d42423d0fa78b0e1048922458 | refs/heads/master | 2022-03-23T23:25:35.171973 | 2022-02-28T21:22:23 | 2022-02-28T21:22:23 | 67,352,584 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,853 | cpp | testCode.cpp | #include <cassert> // for assert.
#include <iostream> // for cout
#include "testCode.h"
#include "fraction.h" // for gcd, and fraction class.
void testGCD()
{
// tests the euclidean gcd function.
// algorithm written after referring wikipedia.
assert(gcd(3,6) == 3);
assert(gcd(1,10) == 1);
assert(gcd(5,5)... |
c4981930e2f260c91e28ce6991b845c7de2dc05e | e85c629762498e5c8ffcdf8e5e230bfa208b2ccc | /Bit Manipulation/bitManipulation.cpp | 7ffeb820a212b869c163ccb432e6b4da15f6c209 | [] | no_license | DevSiddhartha/Cplusplus | b16cee26d40b1a9bf72d4c9499e4259f24107728 | 61f80dabf05bf3f8bd711d1f8087689af40dfc30 | refs/heads/master | 2023-01-02T14:20:48.156059 | 2020-10-29T20:04:23 | 2020-10-29T20:04:23 | 289,363,647 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | bitManipulation.cpp | #include <iostream>
using namespace std;
int main() {
// int a = 5;
// int b = 7;
// cout << (a & b) << endl; // 5
// cout << (a | b) << endl; // 7
// cout << (a ^ b) << endl; // 2
// cout << (8 | 2) << endl;
// int n = 21;
// cout << "Right shift" << endl;
// cout << (n >> 1) << endl; // 10
// cout <... |
c883b3e408472daa893f1b47d99c9ba366d183f9 | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /SimG4Core/PhysicsLists/src/CMSHadronPhysicsFTFP_BERT.cc | 963c0fff7d604afda45f253a92405fee4a66ba2e | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 6,957 | cc | CMSHadronPhysicsFTFP_BERT.cc | //
#include <iomanip>
#include "SimG4Core/PhysicsLists/interface/CMSHadronPhysicsFTFP_BERT.h"
#include "globals.hh"
#include "G4ios.hh"
#include "G4SystemOfUnits.hh"
#include "G4ParticleDefinition.hh"
#include "G4ParticleTable.hh"
#include "G4PionBuilder.hh"
#include "G4BertiniPionBuilder.hh"
#include "G4FTFPPionBuil... |
c21ffc6c6072a7e5e4aca86026bb7186cf3579e0 | 39d246cb9cc3048dd9b1fea8cc870ea8352c1b15 | /src/proc/Text.cpp | 3216eae445102ac442c8bde860afb60f4faa69fd | [] | no_license | XiaoYuhao/UNIX-V6 | f200a03a02e2506c4a33be8af626f7a6a1243554 | 316c69c490d2a0eeec462a9307b248d4f3e96184 | refs/heads/master | 2020-05-07T13:57:14.468812 | 2019-04-27T02:31:20 | 2019-04-27T02:31:20 | 180,568,387 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 782 | cpp | Text.cpp | #include "Text.h"
#include "Kernel.h"
Text::Text()
{
//nothing to do here
}
Text::~Text()
{
//nothing to do here
}
void Text::XccDec()
{
if ( this->x_ccount == 0 )
return;
/* 如果x_ccount递减至0,则释放该共享正文段占据的内存。*/
if ( --this->x_ccount == 0 )
{
Kernel::Instance().GetUserPageManager().FreeMemory(this->x_size, th... |
1f0f46fa9b815edfb42c043c4eb800caebeb02ce | 738c23931738d6caf1fb2ac7b1a673abf1876104 | /cpp0x/detail/predefined_engine_types | 12d5a8d9f3b20a48601b057e93a1da5e8c0e360e | [] | no_license | DUNE/fnal-cpp0x | bf08e3252a04dd0b93a481ba9a56ccc23c678e97 | d1e4b531e59831564d07ced85f61b89d15166597 | refs/heads/master | 2020-05-17T13:09:35.136991 | 2015-05-06T17:40:10 | 2015-05-06T17:40:10 | 23,426,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,170 | predefined_engine_types | #ifndef DETAIL_PREDEFINED_ENGINE_TYPES
#define DETAIL_PREDEFINED_ENGINE_TYPES
// ======================================================================
//
// predefined_engine_types: per 26.5.5 [rand.predef]
//
// ======================================================================
#include "cpp0x/cstdint"
#include... | |
eb093fd158e8c6e6b5cb41fb2512fd8136ddb508 | 28dcbced3958550f0aa248e3057d2653e938dd3d | /server/network/joblistforstudentprocessimp.cc | 6efa3cc2851fb7bdcb686de43e274bf883cd0999 | [] | no_license | felix021/woj | 83762f6c4cebe8520944a9a0538c2deceae36021 | 3ecf91ac9bfec1b5ee68987700e9e83dad145dcb | refs/heads/master | 2021-01-25T03:54:12.195148 | 2015-03-14T06:08:09 | 2015-03-14T06:08:09 | 32,136,481 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,080 | cc | joblistforstudentprocessimp.cc | #include "joblistforstudentprocessimp.h"
#include <string>
#include <set>
#include <vector>
#include "object/student.h"
#include "object/info.h"
#include "object/list.h"
#include "util/calulate.h"
#include "data/teachinterface.h"
#include "object/job.h"
#include "base/util.h"
#include "base/logging.h"
#include "base/... |
fd0daa9cd3f15c726f69a4493251a615e99b8cec | 8ef8b1c11b0736ff4c624f6ad0f34913883ddec2 | /201811050962陈呈涛/1.1/1.1.3/源.cpp | 9b584b348eb6af235540fae8345834fce6fdc266 | [] | no_license | imRashau/Car-Information-Management-System | 6756d9229343deefc1dfd415fc8839253a1cadff | fbfaf69d98fb88a2d577f9762bcd6d19b4b3039c | refs/heads/master | 2023-02-11T09:37:03.947951 | 2021-01-05T08:22:12 | 2021-01-05T08:22:12 | 323,482,222 | 0 | 0 | null | null | null | null | ISO-8859-6 | C++ | false | false | 317 | cpp | 源.cpp | #include <iostream>
#include <ostream>
using namespace std;
int main()
{
int fun(int*a,int*b,int*c);
int a,b,c;
cout<<"تلبًa,b:"<<endl;
cin>>a>>b;
fun(&a,&b,&c);
cout<<"c ="<<c<<endl;
return 0;
}
int fun(int*a,int*b,int*c)
{
*c=*a%10*1000+*b%10*100+*a/10*10+*b/10;
return 0;
} |
bfa0e0238db2f45c754a3b90a2b5979517504d02 | 31e3b479cb186199bf99dfe33504be6462583a83 | /example/private/cholmod_solve.cpp | acd42b119e6d7c18f4a89fcb4a4b013d610756ff | [] | no_license | bradbell/cppad_mixed | decf2a30045bf07e4aa2733f9ec0adfc0a3badba | 134126527cbf8f9bfe9125ff9cc645cd3425f29e | refs/heads/master | 2023-02-05T07:17:26.296928 | 2023-01-12T13:58:00 | 2023-01-12T13:58:00 | 47,637,452 | 10 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,104 | cpp | cholmod_solve.cpp | // SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-FileCopyrightText: University of Washington <https://www.washington.edu>
// SPDX-FileContributor: 2014-22 Bradley M. Bell
// ----------------------------------------------------------------------------
/*
{xrst_begin cholmod_solve_xam dev}
{xrst_spell
cc
}
Examp... |
c3f055952804e599a22e4696e8998acd343ecfeb | 956e9725a5340b2b04b2e19b53fa24c29cd8b077 | /include/txt_book.h | 3c82162d159213d3eb09bf328bc49cf0d0591d66 | [
"MIT"
] | permissive | seasona/ebook-web | 840ddb2eb1283564c765b12fbe76968187ca7ce7 | c153156961f8ce67d17273b4b001b758f631d284 | refs/heads/master | 2022-11-23T16:22:48.790345 | 2020-08-02T14:55:28 | 2020-08-02T14:55:28 | 243,928,725 | 8 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 858 | h | txt_book.h | #pragma once
#include "ebook.h"
#include "compact_enc_det/compact_enc_det.h"
#include <vector>
namespace Jebook {
class TxtBook : public Ebook {
public:
TxtBook(const std::string book_path, const std::string out_directory)
: Ebook(book_path, out_directory) {}
~TxtBook() = default;
virtual std::s... |
68b47518fc5ba8269e982bac0fa3f632cd22c6d4 | de56a68d56ec23a9a1068758b05bc051211fd01e | /zookeeper/transaction/dataset.cpp | 8648e4379f19154e9eaa90eacef48656fb60b291 | [
"MIT"
] | permissive | ooeyusea/zookeeper | e3b36ce4c69acc0640205ad829af5fdb06d7c3c3 | 6dc5297ba2248d809b2b0344085f2e00331e0a61 | refs/heads/master | 2020-04-26T21:50:20.718312 | 2019-08-28T15:37:29 | 2019-08-28T15:37:29 | 173,853,264 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,211 | cpp | dataset.cpp | #include "dataset.h"
#include "file_system.h"
#define SNAP_COUNT 100000
DataSet::DataSet(IStateDataFactory * factory)
: _mutex(false)
, _factory(factory) {
_stateData = _factory->Create();
}
DataSet::~DataSet() {
_stateData->Release();
}
bool DataSet::Load(std::string path) {
if (!path.empty() && *path.rbegin(... |
68403b52f7b2f817ec68d4b6d6dc58a04584cd25 | 3846cf64aa57ccf3c9672d8ed76952d019cddcbe | /BTVN/BT03/BT03C2.cpp | d4c6093af4a3a0d3ec213eaa519c14e516fc4507 | [] | no_license | Adriannguyen/LTNC | c31c75ed9b2a88c3a071beaea6663b0f5f4cb464 | 10736ec710772396f5827a572e0ae4a848fdad11 | refs/heads/master | 2023-06-22T12:14:11.728421 | 2021-07-20T00:14:29 | 2021-07-20T00:14:29 | 333,381,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 273 | cpp | BT03C2.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
string t;
cin >> t;
int dem=0;
for (int i = 0; i< t.size()/2; ++i) {
if(t[i] != t[t.size()-1-i]) {
dem++;
}
}
if(dem==0){cout<< "yes";}
else {cout<< "no";}
}
|
2afceb599f25596c02a48b3db755488d855e389d | f81124e4a52878ceeb3e4b85afca44431ce68af2 | /re20_1/processor47/constant/polyMesh/pointProcAddressing | 652102b9d3cfecdfe7fe7fea135bfb5942d4e1b7 | [] | no_license | chaseguy15/coe-of2 | 7f47a72987638e60fd7491ee1310ee6a153a5c10 | dc09e8d5f172489eaa32610e08e1ee7fc665068c | refs/heads/master | 2023-03-29T16:59:14.421456 | 2021-04-06T23:26:52 | 2021-04-06T23:26:52 | 355,040,336 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,501 | pointProcAddressing | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 7
\\/ M anipulation |
\*-------... | |
97f8e7daa57056f42cd576adb38af5fb8814b036 | 971b000b9e6c4bf91d28f3723923a678520f5bcf | /PaperSizeScroll/scribemime.h | 61c2c23a4870ff1f8334c2a073c1fcfabca9f327 | [] | no_license | google-code-export/fop-miniscribus | 14ce53d21893ce1821386a94d42485ee0465121f | 966a9ca7097268c18e690aa0ea4b24b308475af9 | refs/heads/master | 2020-12-24T17:08:51.551987 | 2011-09-02T07:55:05 | 2011-09-02T07:55:05 | 32,133,292 | 2 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 17,791 | h | scribemime.h | #ifndef SCRIBEMIME_H
#define SCRIBEMIME_H
#include <QtGui>
#include <QtCore>
#include <QDebug>
#include <QWidget>
#include <stdio.h>
#include <math.h>
#include <QtGui/qtextdocument.h>
#include <QtGui/qtextoption.h>
#include <QtGui/qtextcursor.h>
#include <QtGui/qtextformat.h>
#include <QtGui/qtextedit... |
53b7d58586fb2d21600f3da4097a1e149d6fab43 | a82dfb61b17fa66b9c75fe871401cff77aa77f56 | /libmcell/generated/gen_config.cpp | fdef8d1a9ad18953638b7e52125a3919b8ae8f57 | [
"MIT"
] | permissive | mcellteam/mcell | 49ca84048a091de8933adccc083d31b7bcb1529e | 3920aec22c55013b78f7d6483b81f70a0d564d22 | refs/heads/master | 2022-12-23T15:01:51.931150 | 2021-09-29T16:49:14 | 2021-09-29T16:49:14 | 10,253,341 | 29 | 12 | NOASSERTION | 2021-07-08T01:56:40 | 2013-05-23T20:59:54 | C++ | UTF-8 | C++ | false | false | 24,863 | cpp | gen_config.cpp | /******************************************************************************
*
* Copyright (C) 2021 by
* The Salk Institute for Biological Studies
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*
***********... |
95cebae57a763b5b8662a670169e76df4b7c1a64 | ada1d3ec3255268ca422cc143035b321f7cf7103 | /LifeOfPI/StateFader.cpp | a3d63af758806bea0b88be399a702c0216f58df7 | [] | no_license | VladislavNedodaiev/Life-Of-PI | f2842a272c10bbda0f4e46d15efe9849aa9ce256 | f842e7f14133e8f2f264c39b37043f89ca4b8ca9 | refs/heads/master | 2020-03-19T14:56:14.684714 | 2018-06-26T18:29:37 | 2018-06-26T18:29:37 | 136,647,235 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | StateFader.cpp | #include "StateFader.h"
/*StateFader::StateFader(sf::Image &spriteSheet) : GameObject(spriteSheet, 12, 0, sf::IntRect(0, 0, 12, 12))
{
this->setSize(sf::Vector2f(BasicSettings::VIEW_SIZEX, BasicSettings::VIEW_SIZEY));
_texture.create(BasicSettings::VIEW_SIZEX, BasicSettings::VIEW_SIZEY);
_texture.setRepeated(true);... |
1ec22711376f85f172c859737a20c9b039b63cf3 | 7aeba440d8c456ce2c1779bfbc560c78fed3de64 | /Ex10_AS/10.2/classi.h | 86cd8a5bfacbbb82cc6d382a6d0c601a883c7bca | [] | no_license | andreasala98/LSN_AndreaSala | 38210e48b4598b6bc2c772fabc49a6bc96beb490 | 98d60ca173a32b77e4e9e4b4b8cb53d0f137121c | refs/heads/master | 2022-12-11T11:43:10.710223 | 2020-08-31T08:38:27 | 2020-08-31T08:38:27 | 289,984,982 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 826 | h | classi.h |
#ifndef __TSPClasses__
#define __TSPClasses__
#include <iostream>
#include <fstream>
#include <string>
#include <cmath>
#include <vector>
#include <cstdlib>
#include <algorithm>
#include "../../RandomGen/random.h"
using namespace std;
class Itinerario {
private:
int m_N;
vector<int> m_v;
double m_le... |
15a2577a5b76753083feead4ee3b5fca39153a26 | fa425c0b3c15794c36f463139b807cc4e4d31c3c | /config.h | 4644fd3388f42ce74a8b0d5fa93c8ef843efd411 | [] | no_license | lygn128/Tinyfs | f8cb925325f8ba65b06cb8eeea4b37e778907c99 | 13ba9727d17afeab295e0f7e87214549583c8693 | refs/heads/master | 2021-01-10T07:42:32.398402 | 2016-04-08T11:35:48 | 2016-04-08T11:35:48 | 54,556,831 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 526 | h | config.h | //
// Created by lygn128 on 16-3-14.
//
#ifndef TFNODE_CONFIG_H
#define TFNODE_CONFIG_H
#include <map>
#include <string>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
using namespace std;
class config {
map <string,string> data;
char * raw;
public:
int loadConfig(c... |
90fb5b0023e579433a4ea75e4a6c8918214381b7 | e9d25873a3ad52f77938bae1789bb2f95a877bce | /indra/test/test.cpp | 823205e1f2f2af5fd927a378b5c1c48128f70585 | [] | no_license | Shyotl/SingularityViewer | e9267237a93a13f68c7c6f538a59990f08ddc332 | ab5bce69ee11b116e4e57639532d8c0a49af23fd | refs/heads/master | 2021-01-17T05:59:12.026799 | 2020-05-17T03:52:08 | 2020-05-17T03:52:08 | 1,090,174 | 14 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 8,778 | cpp | test.cpp | /**
* @file test.cpp
* @author Phoenix
* @date 2005-09-26
* @brief Entry point for the test app.
*
* $LicenseInfo:firstyear=2005&license=viewergpl$
*
* Copyright (c) 2005-2009, Linden Research, Inc.
*
* Second Life Viewer Source Code
* The source code in this file ("Source Code") is provided by Linden Lab... |
f7a368e219a660034e26b9f984704a25fb41f029 | 3e4fd5153015d03f147e0f105db08e4cf6589d36 | /Cpp/SDK/ForgedSteamLoop_classes.h | eade114a310431b3cd6f81acbb1851bfb688a155 | [] | no_license | zH4x-SDK/zTorchlight3-SDK | a96f50b84e6b59ccc351634c5cea48caa0d74075 | 24135ee60874de5fd3f412e60ddc9018de32a95c | refs/heads/main | 2023-07-20T12:17:14.732705 | 2021-08-27T13:59:21 | 2021-08-27T13:59:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,819 | h | ForgedSteamLoop_classes.h | #pragma once
// Name: Torchlight3, Version: 4.26.1
/*!!DEFINE!!*/
/*!!HELPER_DEF!!*/
/*!!HELPER_INC!!*/
#ifdef _MSC_VER
#pragma pack(push, 0x01)
#endif
namespace CG
{
//---------------------------------------------------------------------------
// Classes
//-----------------------------------------------------... |
9834e8da4b66830c8f886fa75e88d40999e9edc1 | 4c578a03202f39c471dfb7bcbd02fb90b46a0867 | /Warcaby/Pawn.cpp | 60c32f0e13cfe868e517cae123d69d0594fc588d | [] | no_license | Totalq09/Warcaby | a90ad6a65c16ac56dbc314e65de762913b38d8d9 | 1deca53e3bbdebaff2fe1d2f0ea08e9686de3a7e | refs/heads/master | 2021-01-13T10:58:30.794512 | 2017-05-14T21:34:21 | 2017-05-14T21:34:21 | 76,996,412 | 0 | 0 | null | 2017-01-10T19:50:03 | 2016-12-20T22:29:17 | C++ | UTF-8 | C++ | false | false | 1,448 | cpp | Pawn.cpp | #include "Pawn.h"
Pawn::Pawn()
{
}
Pawn::Pawn(sf::Vector2f pos, sf::Color col, float s, sf::Texture * crown)
{
shape.setRadius(s-10);
shape.setFillColor(col);
shape.setPosition(pos + sf::Vector2f(10, 10));
this->crown = crown;
}
Pawn::Pawn(const Pawn & pawn)
{
shape.setRadius(pawn.shape.getRadius());
shape.set... |
85f0325019a41e2ebc23f92fe463c287ecef0980 | d1cddbf610add2630066e3434ce27312c7a6502f | /DistributedRayTracerClient/Source.cpp | 7f9304d43c35568ca13a861492b24cd4009c60ec | [
"MIT"
] | permissive | Andrewcjp/DistributedRayTracer | 1e38462ae731eddead1b72d0646003b9196260a0 | 78c8cb35ab7ed74cd067d07d973f85c7584b0d47 | refs/heads/master | 2021-01-12T06:18:08.055440 | 2016-12-28T17:56:52 | 2016-12-28T17:56:52 | 77,338,267 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | Source.cpp | //#include <stdio.h>
//#include "Scene.h"
//#include "RayTracer.h"
//class MyClass
//{
//public:
// MyClass();
// ~MyClass();
//
// void Initilise(int width, int height);
//
//private:
// Scene* scene;
// RayTracer* rtracer;
//};
//
//MyClass::MyClass()
//{
//}
//
//MyClass::~MyClass()
//{
//}
//void MyClass::Initilise... |
8f44816fb2b93e4a18c45fd12e50a1b83670b5c2 | ba81288ebd47c1075857b429190fc405b2746ecc | /Laser_Gun/A_MotorTask.ino | 72abd9844ea51b1415fe8cc6c1d9064ae6883c82 | [] | no_license | enricoaleandri/LaserGun-IoT-driver | d39ffba8da7d70d0249124ba65b08098daab5e35 | 1772f87ddfb24052a7c4b8ff90a69996e35a1788 | refs/heads/master | 2020-06-13T23:20:20.983670 | 2016-12-08T18:04:07 | 2016-12-08T18:04:07 | 75,532,262 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 780 | ino | A_MotorTask.ino |
class MotorTask{
public:
String nome; // Name of task
int hour; //hours of execution of task
int minute; //minute of execution of task
int duration; // duration time of task
int servoLaserTaskNumber; //Number of movement to execute
MotorTask(String nome, int hour, int minute, int dura... |
0d804028b5244e3787c8b33c122930a5455eccc5 | 35ac2fb98b1f51b52f6478a857ea78ef9329d6c9 | /src/overlay/frame.cpp | 5f91300cde6f57e77cb515fe8daaad185f48383e | [] | no_license | malasiot/xviz | 3759d3265f2184d51ff5b6c674212984241efef0 | be347349e40da02f4879d6ef0dd3c11f8d504df9 | refs/heads/master | 2023-07-12T23:38:45.208826 | 2023-07-10T08:30:44 | 2023-07-10T08:30:44 | 309,635,509 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,121 | cpp | frame.cpp | #include <xviz/overlay/frame.hpp>
#include "gl_rect.hpp"
namespace xviz {
void Frame::draw() {
impl::OpenGLRect rect ;
rect.render(x_ + margins_.left_ + bw_/2.0,
y_ + margins_.top_ + bw_/2.0,
w_ - margins_.left_ - margins_.right_ - bw_,
h_ - margins_.top_ - ma... |
a24384c4eb9890ad8c338a799a8e2cd4c0e4c4f4 | bc615aa1487d1cea5e5f84b67849feffd86938fc | /StudentManagerSystem-master/han.cpp | f705216c1e4db177f94156b754921b800585449b | [] | no_license | han1254/StudentManager | 35f310358bfc53ecf8bfdb2816bfd303a4a82c77 | adf5daba4701f0cc717607cf14167cadac45fe19 | refs/heads/master | 2020-12-03T13:09:57.051323 | 2020-01-02T07:27:43 | 2020-01-02T07:27:43 | 231,329,468 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 770 | cpp | han.cpp | #include "student.h"
#include "han.h"
#include "primary.h"
#include "high.h"
#include "college.h"
void show(student *a)//定义show函数,传入地址,分别对应不同的输出
{
a->show_info();
}
void rece(string n)
{
check=n;
}
bool check_(primary *a)
{
for(int i=0; i<primary_num; i++)
{
if(a[i].info.id==check)
{
... |
1c41f08369f5b1d5b6c2f9a9937509818126a0df | 36af3394a0fb1c12cc34e8c65d2061d2bf5fef35 | /hash.h | f7714b0d78f98309e8b360cdbc5f9272f1d9caf7 | [] | no_license | mo-zawy/separate-chaining | cc19b765b0e20e2a0fd6e7fc70b37c776526fd7f | 257ef7bcbddd0ae816029f3ab0a7150f97d5812f | refs/heads/master | 2022-07-12T21:47:09.194254 | 2020-05-14T02:13:18 | 2020-05-14T02:13:18 | 263,792,107 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 793 | h | hash.h | #ifndef HASH_H
#define HASH_H
#include <string>
using namespace std;
class hash
{
public:
hash();
int Hash(string key);
void AddItem(string email);
void printTable();
void findEmail();
void removeItem(string email);
void update();
private:... |
308e17c167513d916df0e7050141d3104c0028ec | 23939b88feae85abfd72601120a54b637661c164 | /RemoveLastDialog.cpp | eb147204f76caa7d51896809873a620c886108c0 | [] | no_license | klanestro/textCalc | e9feae14be270cd22de347e2e4b764fadfb0709c | 2634f92702aaf7d9a61187b2a34b998d92780672 | refs/heads/master | 2021-01-19T13:50:28.692058 | 2010-01-21T09:29:53 | 2010-01-21T09:29:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,900 | cpp | RemoveLastDialog.cpp | // RemoveLastDialog.cpp : implementation file
//
#include "stdafx.h"
#include "sample.h"
#include "RemoveLastDialog.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// RemoveL... |
ba1e6a9d60b4fcfa63afd633abf853558743ebd0 | 1731957bc326a91be56a895e278cc41af26b99e7 | /BackupApp/Extensions.h | 35ceee5c43d5a03b06ddfb968bd66995f80ccfac | [] | no_license | adsamcik/BackupApp | 719336447656a7873394fbdd57fb69e3f9fa6c9c | d6e036030268c4ada1f06c083834798f4d8e5fa3 | refs/heads/master | 2021-01-22T13:08:19.432361 | 2016-06-20T20:20:05 | 2016-06-20T20:20:05 | 59,588,256 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,838 | h | Extensions.h | #include "stdafx.h"
#include <cctype>
#include <algorithm>
#include <stdio.h>
#include <cstring>
#ifdef _WIN32
#include <windows.h>
#endif
#include <sys/stat.h>
#pragma once
#define ws " \t\n\r\f\v"
#define MAX_PATH_LENGTH 4096
#ifdef _WIN32
#define SEPARATOR '\\'
#else
#define SEPARATOR '/'
#endif
using std::strin... |
e751de9c230c01c8022917a4202c6ee1aeefdd71 | a5a7c59b04a1a64fe34653c7970c3cf173f9c1df | /kernel/src/modelingTools/RelayNSL.cpp | f87c47228fcf5bdf7ca27b3b135f96362d4b23d8 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | siconos/siconos | a7afdba41a2bc1192ad8dcd93ac7266fa281f4cf | 82a8d1338bfc1be0d36b5e8a9f40c1ad5384a641 | refs/heads/master | 2023-08-21T22:22:55.625941 | 2023-07-17T13:07:32 | 2023-07-17T13:07:32 | 37,709,357 | 166 | 33 | Apache-2.0 | 2023-07-17T12:31:16 | 2015-06-19T07:55:53 | C | UTF-8 | C++ | false | false | 1,619 | cpp | RelayNSL.cpp | /* Siconos is a program dedicated to modeling, simulation and control
* of non smooth dynamical systems.
*
* Copyright 2022 INRIA.
*
* 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
*
*... |
bbd6bcd6414270dc1d95b9093dd690e72a9a9065 | 32dbd930e0bf309d47c574dc97dfbd00d1293001 | /SpaceInvaders/Alien1.cpp | f27de3907028e81081480dc72214a07cf896a39b | [] | no_license | melman1996/SpaceInvaders | e2db7575a47b8bc9b52b9754150f4267ce45c2ab | 8fc05d721e93a81d73a9a31de6861d45eae799ec | refs/heads/master | 2021-05-12T02:35:15.890788 | 2018-01-15T20:15:45 | 2018-01-15T20:15:45 | 117,591,128 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 929 | cpp | Alien1.cpp | #include "stdafx.h"
#include "Alien1.h"
Alien1::Alien1(int x = 0, int y = 0)
{
point = std::make_shared<Point>(x, y);
mSymbol = char(220);
}
Alien1::~Alien1()
{
}
void Alien1::draw()
{
Buffer::write(point, mSymbol);
}
void Alien1::shoot()
{
Bullet * tmp = new Bullet(point->x, point->y + 1, 1);
mBullets.push_b... |
f0c7f8543da1f5523adabcad9693957b943f934f | 1db44bf1197d4912605e68df80f3b8368023b00c | /polynomial.cpp | e09d8a8a0f52adb8e47d8c1803d21f459d06f0a6 | [] | no_license | MKorobov/Integrals | cec227c129370af2408960e2551d78b5ab13ba5f | 1dfc915d0339bb68d23d2bb24f51a18c7f0bbc16 | refs/heads/master | 2020-04-06T06:44:07.037836 | 2013-04-04T19:49:32 | 2013-04-04T19:49:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,797 | cpp | polynomial.cpp | #include "polynomial.h"
#include "functions.h"
#include <cmath>
#include <QDebug>
#include <algorithm>
#define EPS 1e-6
using namespace std;
Polynomial::Polynomial()
{
n=0;
memset(degrees,0,sizeof(degrees));
}
Polynomial::Polynomial(int _n)
{
n=_n;
memset(degrees,0,sizeof(degrees));
}
Polynomial::Pol... |
f140d2a968b8f7a97910fda90439d6383c4a4305 | 64f6d0ced93e5e26a439a1605df376e8321fe3c5 | /src/Socket_Thread/Socket.h | b9822ca65b4014ee9ea11592f5fd451054ac945c | [] | no_license | lyw414/Tool_Cpp | 126e375eb19c670b19e5d7dd069c37da36c8d284 | 63d71ea86e9e0e7cf1e72a4d2b80c7e1b4597098 | refs/heads/master | 2021-06-23T12:21:01.425873 | 2020-12-30T08:52:50 | 2020-12-30T08:52:50 | 161,110,266 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 350 | h | Socket.h | #include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
namespace LYW_CODE
{
typedef struct ClinetInfo
{
}
class SimpleSckSvr
{
public:
... |
29f43782810765e58a4ec9cc99c379669c945a7f | b6b4498c37162dc9ea235ea857b65e2e8c837876 | /KeyboardCode/KeyboardCode.ino | 5cc6d25bf1d08f5c91cab7d8307b1a2d316f8863 | [] | no_license | DanWScott/enigma-machine | 42a5ee064d6c2ddc25775877e2e0379916e6819d | 1e6945dc156588a3d535399748526960c24634cf | refs/heads/master | 2023-09-03T02:20:06.943416 | 2021-10-19T21:42:46 | 2021-10-19T21:42:46 | 340,288,058 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 574 | ino | KeyboardCode.ino | #include <Key.h>
#include <Keypad.h>
const byte ROWS = 2;
const byte COLS = 13;
char KEYS[ROWS][COLS] = {
{'q', 'w', 'e', 'r', 't', 'z', 'u', 'i', 'o', 'k', 'j', 'h', 'g'},
{'a', 's', 'd', 'f', 'p', 'y', 'x', 'c', 'v', 'l', 'm', 'n', 'b'}
};
byte colPins[COLS] = {50, 51, 52, 53, 44, 45, 46, 47, 42, 39, 41, 40, 4... |
a29bda00e5002f7f9c1358829a96c6ecdf6889ef | f3b374c634979ceff941172fd484637b6103fca7 | /fw_caffe/src/caffe/layers/sig_scale_layer.cpp | 546a9a498a66028d3a045d1b410d1dad4c7d8643 | [
"BSD-3-Clause",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause",
"LicenseRef-scancode-generic-cla"
] | permissive | sunke123/FW-Net | a02581d0a02489c628d55a477a5e2de9774fbc02 | 0c9e59cf4b50b65383bb6172a7229f1df9731295 | refs/heads/master | 2021-01-24T16:56:54.709310 | 2018-03-27T11:37:20 | 2018-03-27T11:37:20 | 123,219,314 | 8 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 5,165 | cpp | sig_scale_layer.cpp | #include <algorithm>
#include <vector>
#include <cmath>
#include "caffe/filler.hpp"
#include "caffe/layers/neuron_layer.hpp"
#include "caffe/layers/sig_scale_layer.hpp"
namespace caffe {
template <typename Dtype>
inline Dtype sigmoid(Dtype x) {
return 1. / (1. + exp(-x));
}
template <typename Dtype>
void SigScal... |
90c92628c2975f0229cf40d55108a04b4d1f2288 | b8ed71f3d1a36c119d846e97f1aa7d8ba6774f52 | /38_Count_and_Say.cpp | 9fb97d6513056970dc1c994bbbdb43582de2eaf9 | [] | no_license | imjaya/Leetcode_solved | 0831c4114dd919864452430c4e46d3f69b4bd0cd | 374eb0f23ae14d9638d20bbfe622209f71397ae0 | refs/heads/master | 2023-05-24T17:57:56.633611 | 2023-05-16T06:31:42 | 2023-05-16T06:31:42 | 284,203,426 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 495 | cpp | 38_Count_and_Say.cpp | class Solution {
public:
string next(string & a)
{
string n="";
char ch=a[0];int c=1;
for(int i=1;i<a.size();i++)
{
if(a[i]==ch)c++;
else{
n+=c+'0';
n+=ch;
ch=a[i];c=1;
}
}
n+=c+'0... |
fd9c61bf99e036fb83144fe49f8ab7607f0b9a2e | f5013412b3b6a9400e4636251c5b5b3b23e7b22b | /openscenario/openscenario_interpreter/include/openscenario_interpreter/syntax/reach_position_condition.hpp | 7d4c1cbfa788656272392592e5b1434885ecae52 | [
"Apache-2.0"
] | permissive | pijaro/scenario_simulator_v2 | 852ee729609f8bc9dd999f28ae35c98ac595eb41 | be1a8359229010188df24aef7eaace5a889e0b30 | refs/heads/master | 2023-08-25T17:22:58.145835 | 2021-09-13T09:25:49 | 2021-09-13T09:25:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,583 | hpp | reach_position_condition.hpp | // Copyright 2015-2020 Tier IV, Inc. All rights reserved.
//
// 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 app... |
16af5ff808f7901b4cb948d8e7ab2d7a88c95a34 | f5da80db350b8cebbdbe1d391870031ef4ce4729 | /engine/engine_race/snapshot.cpp | 5d50a66b103d1ba07240514779aeb1259743db76 | [] | no_license | qqiangwu/engine_race | b5c36a5806b70da2be3cfa9b6b396b670e0e4a1b | 3915f82a9f9556ffc650516e57ad171e7c7fe87a | refs/heads/master | 2020-03-29T11:56:05.058698 | 2018-10-06T04:53:39 | 2018-10-06T04:53:39 | 149,877,494 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 632 | cpp | snapshot.cpp | #include "snapshot.h"
using namespace zero_switch;
Snapshot::Snapshot(uint64_t seq, std::vector<Memfile_ptr> memfiles, std::vector<SSTable_ptr> sstables)
: seq_(seq),
memfiles_(std::move(memfiles)),
sstables_(std::move(sstables))
{
}
optional<std::string> Snapshot::read(const string_view key)
{
f... |
b05e2d304faa8c24b8f56525b0958280b1791b4c | 61ce0d519af925410c427e6d468c7e149b790c92 | /GopiAndSandwich.cpp | 6051f9bc5a2c227656fefb9be1537f868c6988f1 | [] | no_license | sengarmadhur/SPOJ | 17dd23147ed312ea541e7f8c77fc68405ea18333 | 1560476ae8cb7c2f33e71d0b0d8c7fac972ff8c5 | refs/heads/master | 2020-08-22T05:23:50.279292 | 2020-05-21T19:08:15 | 2020-05-21T19:08:15 | 216,326,392 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 365 | cpp | GopiAndSandwich.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
const int MOD = 1e9 +7;
ll a[1000001];
void pre()
{
a[2]=2;
for(int i=3;i<1e6+1;i++)
{
a[i] = (a[i-1]*(a[i-1]+1))%MOD;
}
}
int main()
{
int t; cin>>t;
pre();
while(t--)
{
int n; cin>>n;... |
efcdcb728761078b87f3347b0908fe56a47f8ec6 | 74f845c189be8fa5c24265c4eaa47dea2081381c | /RyanHammond_GameEngineMidterm/Question1/GettingStarted/cStrawberry.cpp | 5fc5bc3fbbc834384761061b2951ce3641df033f | [] | no_license | MlLHoUzE/Game-Engine-EcoSystem-Sim | 74e75f359424fb82b6291c5f2138186514a7d8bb | 52c17d8601e11bc01bfa69a05a6e72af62c91fc6 | refs/heads/master | 2021-01-19T18:36:49.018125 | 2017-04-15T19:31:57 | 2017-04-15T19:31:57 | 88,369,544 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,670 | cpp | cStrawberry.cpp | #include "cStrawberry.h"
#include "global.h"
cStrawberry::cStrawberry()
{
m_eTransform = glm::mat4(1.0f);
m_eLinearSpeed = getRandFloat(0.05f, 0.25f);
m_eAngularSpeed = 1.0f;
m_eMeshEntry = sMeshEntry();
m_eMeshEntry.BaseIndex = 0;
m_eMeshEntry.BaseVertex = 0;
m_eMeshEntry.NumIndices = 0;
}
//cEnemy::~cEnemy()... |
3ca9158bb4aee69ae232cfe289e9da47b50324c8 | 824c937769f09aa2da69a10cc8ca5490af34d3ea | /src/orders/OrdersDriver.cpp | 7507467b106fd3314965c7f9639aacfda7daa5cc | [] | no_license | DYu24/Warzone | 2aed8bca3300f2f77fd74350c98711b2b9306fa6 | 7d4fbebd8476136836c4259c6480e54b768a1d56 | refs/heads/master | 2023-02-26T18:53:29.855480 | 2020-12-01T00:06:10 | 2020-12-01T00:06:10 | 296,401,714 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,965 | cpp | OrdersDriver.cpp | #include "../game_engine/GameEngine.h"
#include "Orders.h"
int main()
{
// Setup
Territory* t1 = new Territory("Quebec");
Territory* t2 = new Territory("BC");
Territory* t3 = new Territory("Ontario");
t1->addArmies(10);
t2->addArmies(5);
t3->addArmies(10);
Player* player = new Player("... |
b477a079d0eb8a35fe3a5c8026901c8a0ca5f1a1 | 9ac86eb5a08611d480643622260b9384bd59f0ae | /hw6/src/Archiver.cpp | 168ff9bb99784a28f5c08b1c93f72453a3640b64 | [] | no_license | smirok/hse-operating-systems | a7b4b9c7e8f45fd702794acc478ef3fd950b491e | 65253118df7bf156cf3b163a6d52ff39a96ef631 | refs/heads/master | 2023-05-10T14:03:15.292315 | 2021-06-08T09:52:35 | 2021-06-08T09:52:35 | 356,514,829 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,968 | cpp | Archiver.cpp | #include <vector>
#include "Archiver.hpp"
#include "fstream"
#include <sys/types.h>
#include <unistd.h>
#include <dirent.h>
#include <sys/stat.h>
#include <iostream>
#include <FileWriter.hpp>
#include <FileReader.hpp>
#include <Creator.hpp>
#include "ArchiverException.hpp"
namespace utar {
void Archiver::create... |
99f3ad324321096523f6c7114a7b3a6347340efc | 846a7668ac964632bdb6db639ab381be11c13b77 | /android/test/vts/testcases/target/hal_power/hal_power_basic_test.cpp | 3103ed7be3410c36cd23bf17708886bf4934de6f | [] | no_license | BPI-SINOVOIP/BPI-A64-Android8 | f2900965e96fd6f2a28ced68af668a858b15ebe1 | 744c72c133b9bf5d2e9efe0ab33e01e6e51d5743 | refs/heads/master | 2023-05-21T08:02:23.364495 | 2020-07-15T11:27:51 | 2020-07-15T11:27:51 | 143,945,191 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,905 | cpp | hal_power_basic_test.cpp | /*
* Copyright (C) 2016 The Android Open Source Project
*
* 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 app... |
8354cc1f09c3dff42d8b0f5ac59834d32b390202 | 74d39af63662f617c5710b46fa287d170505ef75 | /graph-theory/topological_sort.cpp | bb274bacf161f52d4a5d8c3b34ece8f26e48965c | [
"MIT"
] | permissive | Swaraj-Deep/data-structures-algorithms | 86a8f1d401220761617c7ca8870a0369f8325efd | 0ffef6806a3e0348b56e685c73857c99341a39d8 | refs/heads/master | 2022-10-29T23:14:58.584829 | 2020-06-15T19:04:47 | 2020-06-15T19:04:47 | 250,481,689 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,114 | cpp | topological_sort.cpp | /*
***************************
* *
* Author: Swaraj Deep *
* *
***************************
*/
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
// Assumption that the Graph is Directed Acyclic Graph ie. it doesn't contains any cycles.
void... |
d0462cbf1505cd7eb4d78af472a3c5d6f4d1bada | f2436342adc149e8aed87b55530c579170ad8f00 | /cpp/boost.cpp | 9da6f8ffc410885e04429e346f36b5bf765691bd | [] | no_license | wtnb75/printf | 65e0f2ac1377627f27da9125e64d7015af129e93 | dad56f1831c96f6b758bc1bc3cca62c5d32907a5 | refs/heads/master | 2021-01-10T02:20:47.018127 | 2016-02-22T07:05:20 | 2016-02-22T07:05:20 | 36,014,816 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 186 | cpp | boost.cpp | #include <iostream>
#include <boost/format.hpp>
using namespace std;
int main(int argc, char **argv){
cout << boost::format("%#x %#x %#o %#o") % 0 % 1 % 0 % 1 << endl;
return 0;
}
|
0ca9dea3f0a81345bc6031f46eb03d38332d9056 | cffc460605febc80e8bb7c417266bde1bd1988eb | /before2020/ZeroJudge/ZJ d553.cpp | 683f80872491191bb320b4a6a388aa957f159780 | [] | no_license | m80126colin/Judge | f79b2077f2bf67a3b176d073fcdf68a8583d5a2c | 56258ea977733e992b11f9e0cb74d630799ba274 | refs/heads/master | 2021-06-11T04:25:27.786735 | 2020-05-21T08:55:03 | 2020-05-21T08:55:03 | 19,424,030 | 7 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 841 | cpp | ZJ d553.cpp | #include <iostream>
#include <vector>
using namespace std;
struct dot{
int d[2];
}p[1000];
struct point{
int x,t;
bool ox[2];
}ree;
vector<point> v[1000];
void bfs(int a,int b,int c) {
int i;
if (p[a].d[b]>c) {
for (i=0;i<v[a].size();i++) v[a][i].ox[b]=0;
}
p[a].d[b]=min(p[a].d[b],c);
... |
1dff60562503443f426b733ad5a5a78886d5074c | c9f9cb567c2453f73b6a58673e06e28d5b5c4b8a | /CommpetitiveProgramming/BitMasking/MaxXorValue.cpp | 7553ae20f94b8c6015655319741c57ff8314ea56 | [] | no_license | imsaurabh1998/CodeForces | b446b0f0ea5f6cc919402d3b42b00c67f904474d | fab60e8f6372993f74be0f9df7e8b55e9bc1aa7b | refs/heads/master | 2020-09-04T04:39:03.708454 | 2020-06-12T05:49:18 | 2020-06-12T05:49:18 | 219,659,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,645 | cpp | MaxXorValue.cpp | //
// Created by Saurabh on 2/11/2020.
//
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main() {
ll a,b;
cin>>a>>b;
ll x[64]={0};
ll y[64]={0};
ll aTemp=a;
ll bTemp=b;
ll aVal=a;
ll bVal=b;
ll maxCount_bit=0;
for(ll i=0;a>0 ||b>0;i++){
if(a&1) x[i]=1;
... |
3f501ebc49ce7912f9afa5de17519c07d31fa05d | 42614c9938e56d9349f82e632fededd10a4382de | /0709-toLowerCase.cpp | 065ecf458320a3f380a6f92993afef1dd52b9594 | [] | no_license | rouman321/code-practice | fe1e092f0f99c689e0ffb3398222d6482cda3fe3 | d43c73c8a74a95b5e5a568fe40b5cb0cda6c8974 | refs/heads/master | 2020-07-29T06:29:30.820220 | 2019-11-25T19:26:12 | 2019-11-25T19:26:12 | 209,698,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 594 | cpp | 0709-toLowerCase.cpp | /*
Implement function ToLowerCase() that has a string parameter str, and returns the
same string in lowercase.
*/
#include "../LCInput/stringVector.h"
#include <iostream>
class Solution {
public:
string toLowerCase(string str) {
for(int i = 0;i < str.size();i++)
{
if(str[i] >= 'A'&&str[... |
6237cb62163f401a35143bafa1177246c7519d5e | 491bd2213c67fd8f3f95dabd577aa43325c453da | /RetroGame/MapTileData.cpp | 09738faad86018423fe9ba35e53786588a35f62e | [] | no_license | JacobLawson/2043-Retro-Space-Shooter | ed4e4e1bce5212524170a2b7cd1d6ee46d8faf93 | 2e14fb232806aef7beff035eaa72d07de6880d2c | refs/heads/main | 2023-02-13T15:38:20.204138 | 2021-01-17T15:04:44 | 2021-01-17T15:04:44 | 330,417,534 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 63 | cpp | MapTileData.cpp | #include "MapTileData.h"
intialTopOfScreen = stageHeight - 15; |
6bc2455a6e7d92da92afcd99fe252fc3074015b5 | af094f515059fdbfe7bbed604929be16bd3b4076 | /src/mst.h | 49f615393e487097e6cb109e83f82278a080f364 | [] | no_license | dd167/SimpleAlgorithm | 74e38d63ea15e87d7a1215575eac1b4aaec8bb5a | 11c34d7cff14799406bb6095ece00e232ed92832 | refs/heads/master | 2020-03-07T04:01:07.623952 | 2018-05-30T13:29:07 | 2018-05-30T13:29:07 | 127,253,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,140 | h | mst.h | #pragma once
#include "graph.h"
#include <list>
#include "pq.h"
/*最小生成树:给定一幅加权无向图,找到它的一颗最小生成树(minimal spanning tree)
算法基本原理:
切分定理:在一幅加权图中,给定任意的切分,他的横切边中权重最小者必然属于图的最小生成树。
切分定理是解决最小生成树问题的所有算法的基础,更确切的说,这些算法都是一种贪心算法的特殊情况:使用切分
定理找到最小生成树的一条边, 不断重复直到找到最小生成树的所有边。
应用场景:在一幅图中,找到访问所有顶点且边的权值之和最小的无环联通子图,即最小生成树,如机场路线设计。
*/
class... |
7e8f22f9b803f0f15216d7907cec2c56a8fa1a7c | ae07f700a0279f7ce8353f534b528e174ff9e5c1 | /Comportamientos/PlantillaPracticas/include/font.h | 4e2effc4437d70e702e46be09bf8290249f26aa5 | [] | no_license | CarlosCasVen/UTad | c068fa9f6c38fda9221a723a5f5d2a3af6af2a62 | f4d407355721c7fcc81b3199ce9178861482906d | refs/heads/master | 2020-12-24T15:58:02.897534 | 2014-05-15T19:58:09 | 2014-05-15T19:58:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | h | font.h | #ifndef UGINE_FONT_H
#define UGINE_FONT_H
#include "types.h"
#include "string.h"
#include "image.h"
#include "renderer.h"
#include "glyph.h"
class Font : public Image {
public:
Font(const String& filename);
virtual uint16 GetSize() const { return GetHeight(); };
virtual uint32 GetTextWidth(const String& text) con... |
4eac543d8cd34e05c3143729df2d55faf0dcd111 | 8994999b72eea32afcd3ee0915cc7d7b88a0d945 | /include/ResumeLinePrinterMock.h | 433c01e1b92c2cf3023eae78a77188b444429a21 | [] | no_license | MichaelRFairhurst/ncurses-resume | 4b4b75242668524bdbc8c0c48e0ee9e00012a97a | 8cbb838c9aa59538b41497962d73b6afc32ec957 | refs/heads/master | 2020-05-22T14:24:25.598994 | 2013-08-10T16:10:45 | 2013-08-10T16:10:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 398 | h | ResumeLinePrinterMock.h | #ifndef HEADER_RESUMELINEPRINTERMOCK
#define HEADER_RESUMELINEPRINTERMOCK
#include "gtest/gtest.h"
#include "gmock/gmock.h"
#include <string>
#include "ResumeLinePrinterInterface.h"
using namespace std;
class ResumeLinePrinterMock: public ResumeLinePrinterInterface {
public:
ResumeLinePrinterMock() {};
MOCK_MET... |
872504039b9d9f12588c448ab66f447515e52be5 | 84a78ada89114c646ef791f801a0ff5f1507e0fb | /engine/src/io.cpp | 9727a74171ccbd2b71f401d57265b6c7379e8feb | [] | no_license | mmmonkeytao/oscl | af9ac8025bdebf6c25672f678c5362819152acb3 | c650171738d3a54351ec44ed2779ea6ba0e12cfb | refs/heads/master | 2020-12-24T13:20:33.590459 | 2015-07-31T14:20:07 | 2015-07-31T14:20:07 | 29,822,174 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,648 | cpp | io.cpp | #include "io.h"
#include <opencv2/highgui/highgui.hpp>
#include <cstdint>
#include <cmath>
#include <fstream>
#include <opencv2/core/eigen.hpp>
#include <stdexcept>
std::string oscl::engine::readParameter(const char file[], const char param[])
{
std::ifstream ifile(file);
while(!ifile.eof()){
std::string name... |
56df8e165b3f5feeda3e230e5315a9547a7a41cc | c4fecae46c70e024c9d3d2a5098b91efbcba7ada | /LineConner/Global/Global.h | 1b2b07cc7f9343c0f6197c5260f09e9d7c86ed5f | [] | no_license | damien3D/MorseSmale | 700374cbc520083c96bef681e430a974dd95d402 | 576c7e59ac8f5ecf07d88d284e9bbc482b3bf151 | refs/heads/master | 2021-01-10T12:46:19.770111 | 2016-01-28T18:47:48 | 2016-01-28T18:47:48 | 50,604,358 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,575 | h | Global.h | #ifndef GLOBAL_H_
#define GLOBAL_H_
#include "..\..\MeshUI\MeshLib\MeshModel.h"
#include "..\..\MeshUI\MeshLib\Utility.h"
#include "..\..\MeshUI\MeshLib\MeshLocalParamExp.h"
#include "..\..\MeshUI\MeshLib\HSVColor.h"
#include <windows.h>
#include <gl/glut.h>
#include <iostream>
#include <fstream>
#include <queue>
#in... |
4f8d3ab5a884ea4a706b58c1106b2b91fd84fc52 | 76b638fea4832d74890762492fa8e729b64f2171 | /Code/arm_window_code/updatecurrrentbuslocation.h | 95fc9cce9bf51658cee0a139d1ccc6466cb0f972 | [] | no_license | fallinyourshadow/bus_system | f1b662b78a39f5029d63167314c38c2e53766b3b | d55e88aa66b560fa5494a40f0ea1e7def89374e6 | refs/heads/master | 2020-09-13T18:57:19.071851 | 2019-11-28T07:47:43 | 2019-11-28T07:47:43 | 222,875,147 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 515 | h | updatecurrrentbuslocation.h | #ifndef UPDATECURRRENTBUSLOCATION_H
#define UPDATECURRRENTBUSLOCATION_H
#include <QDialog>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QStringListModel>
#include <QSqlQuery>
#include <QSqlRecord>
class Bus
{
public:
Bus(){
bnum = '0';
current_se = 0;
spot_se = 0;
spot... |
f9586297a495c5c9aa3b5b4e1505f4053a7cc2bc | 38cdd8fe67239909721c84199fc2132400830d40 | /726d.cpp | 81a679b77ffecdbdec84cf74798e5bc5b9ed61bd | [] | no_license | YogaVicky/Codeforces-Solutions | 5cf38fb431456799d303fc38957c49b16f6696dc | 5e8c1a83829db9c5e226bc2984630e4cc617d80e | refs/heads/master | 2022-05-12T13:19:15.324034 | 2022-03-24T13:59:53 | 2022-03-24T13:59:53 | 252,093,118 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 852 | cpp | 726d.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mod 1000000007
#define mp make_pair
// for(i=0;i<n;i++)
// for(auto it = m.begin();it!=m.end();it++)
// sort(a.begin(),a.end());
bool isPrime(ll n)
{
// Corner cases
if (n <= 1)
return false;
if (n <=... |
f0ad448c4330e13bc6062127f02a6eab3196366e | d2eb155c96b9c3c10dae124b66d243bcf49990be | /Source/SimpleFootIK/SimpleFootIKGameMode.cpp | 4d950cf72a17d11dff4ccee6166a8ce622bf6614 | [
"MIT"
] | permissive | CatDarkGame/UE4SimpleFootIKcpp | a091d9c0708e2e3a0469cbe51352c2ae2926fa36 | b80a9ef52cec25ba2179dc02664eb5240e74a626 | refs/heads/master | 2020-05-20T14:21:36.983837 | 2019-05-08T16:56:12 | 2019-05-08T16:56:12 | 185,620,208 | 31 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 488 | cpp | SimpleFootIKGameMode.cpp | // Copyright(c) 2019 CatDark, All Rights Reserved.
#include "SimpleFootIKGameMode.h"
#include "SimpleFootIKCharacter.h"
#include "UObject/ConstructorHelpers.h"
ASimpleFootIKGameMode::ASimpleFootIKGameMode()
{
// set default pawn class to our Blueprinted character
static ConstructorHelpers::FClassFinder<APawn> Playe... |
e2c4e90787087afcdaa2e0b6736c40a2bb1bea55 | a04078faf89c87b81b15800c9a3d53b229c1ba20 | /estructuras/Prácticas/Práctica_TAD_formales/Programa_4.cxx | 4c2cf4de1ebd50b30635fcb5a37d7be66d7ce33a | [] | no_license | dbetm/algoritmia-programacion-y-estructuras-datos | 43f36dfbab5ae88b40cd0baec4a593850e194e03 | ce1922047c4a018f725b81834e43a75148b07780 | refs/heads/master | 2022-04-05T04:17:32.960769 | 2020-02-18T02:40:12 | 2020-02-18T02:40:12 | 67,320,653 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,503 | cxx | Programa_4.cxx | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
/* Nombre: David Betancourt Montellano
* NL: 3
* Fecha: 15/02/2017
* UA: Estructuras de datos
* Programa académico: ISC
* Evidencia: Práctica TAD (formales)
* Maestra: M. en Ed. Karina Rodríguez Mejía
* Grupo: 2CM1.
*/
using namespace std;... |
a7d9b7ec4400528a5a5f805fc69deed68c7be1a3 | d215b2af0bb5a81cd319d4144e5307c610fa105b | /libvideo_compensator/src/sequence_compensator_imp.h | 235f27b7a7ba836c61d16d1e70f98110c535227d | [] | no_license | HuiChihWang/VideoCompensator | 20987543ff7b918d7bab656bcf5b85da5538091d | c1564cf20d3553e9888e95f08b552226028a1f64 | refs/heads/master | 2020-12-24T04:49:42.743392 | 2020-02-03T04:06:00 | 2020-02-03T04:06:00 | 237,387,621 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | h | sequence_compensator_imp.h | #pragma once
#include "../include/seq_compensator.h"
namespace Ivs
{
class CSequenceCompensator: public ISequenceCompensator
{
public:
CSequenceCompensator() = default;
~CSequenceCompensator();
void SetInputMeta(const TInputImageMeta& tInput) override;
void Process() override;
... |
f7961f28c8c2a53cfd813e30e1713f12fe7543e8 | 538febeb1c939aca386ae089ec60525d136775d7 | /src/buffer/lru_replacer.cpp | 2ee0f439d43c8f6b1116598cf3652e61cee22b47 | [
"MIT"
] | permissive | forest-lingree/15445-2020FALL | 56f463c2ecd6f1bc4c69478198364202b42397ac | 06243289415cad9ec2f66e1de6b2c1c6607a8a11 | refs/heads/master | 2023-06-28T18:14:06.834896 | 2021-08-08T02:37:22 | 2021-08-08T02:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,336 | cpp | lru_replacer.cpp | //===----------------------------------------------------------------------===//
//
// BusTub
//
// lru_replacer.cpp
//
// Identification: src/buffer/lru_replacer.cpp
//
// Copyright (c) 2015-2019, Carnegie Mellon University Database Group
//
//===------------------------------------------------... |
65dd431bd1072ec07c9cd36d7f9f4a45ab114030 | ece8832d90debb3be98252ae1ca7ed70af9717e5 | /hspace.h | 2c4066b4a4fee9e48db0b17c25ddf9db143aff91 | [] | no_license | browe/hspace-old | ee2425d115cc3ca5aa89ab644a43cb9c42feaad4 | 4736457793b2830ff8b71ba936a15446e8ccb135 | refs/heads/master | 2023-03-19T00:38:39.561242 | 2012-02-28T23:51:18 | 2012-02-28T23:51:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,742 | h | hspace.h | // -----------------------------------------------------------------------
//! $Id: hspace.h,v 1.6 2007/08/19 17:41:27 grapenut_org Exp $
// -----------------------------------------------------------------------
#ifndef __HSPACE_INCLUDED__
#define __HSPACE_INCLUDED__
#include "hstypes.h"
// Message definitions, use... |
304b80b4b16b339671c8f786c0baed912da8ad32 | 608a84f2232730e9a94d849a33d809de9351a77d | /SceneMain/PerspectiveCamera.cpp | 1f32bc8ccfbc4bba2fc6113cd5283f691c1c81f6 | [] | no_license | VGAFIB/VBE-Particles | d8fd814c53964482086a49bc3e7b75a1db425d56 | ba80a031ce0c2619d87e657968e223d912ff7889 | refs/heads/master | 2016-09-02T02:14:22.667566 | 2013-10-27T15:15:59 | 2013-10-27T15:15:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 702 | cpp | PerspectiveCamera.cpp | #include "PerspectiveCamera.hpp"
PerspectiveCamera::PerspectiveCamera(const vec3f& pos, const vec3f& rot)
: pos(pos), rot(rot), projection(1.0f), view(1.0f) {
this->setName("cam");
this->setUpdatePriority(2);
this->projection = glm::perspective(FOV,float(SCRWIDTH)/float(SCRHEIGHT),ZNEAR,ZFAR);
}
void PerspectiveC... |
b0c1e0455d152d74e46a4bd39e2b61fa348e534b | 7f56e60a2e464f9932c3afb521d0022defb2b15b | /WomxnDevelopUbisoftDemo/Game/Character.cpp | 618716c17197b234b9c5f8c4c067cddfde6467da | [] | no_license | AndreaC21/WomxnDevelopUbisoft | fbe9f8482faa7d53d466913b9eb1aa23b1997491 | 5132e9d5b8f416a8ef3f76c1011ff640df06e794 | refs/heads/master | 2023-04-17T11:43:23.232051 | 2021-05-02T14:31:30 | 2021-05-02T14:31:30 | 341,294,247 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,605 | cpp | Character.cpp | #include "stdafx.h"
#include "Character.h"
Character::Character()
{
}
Character::Character(const Character& c) : Displayable(c)
{
m_IsDead = c.m_IsDead;
m_Collision = c.m_Collision;
m_Velocity = c.m_Velocity;
m_SpeedMax = c.m_SpeedMax;
m_MaxLifePoint = c.m_MaxLifePoint;
m_CurrentLifePoint = c.... |
14b438652abc6550120d8f046d43043d4cdbacd3 | 7652715ca3c0ecb393ce57074bdbf6443ad89acf | /Direction.cpp | df81bad80253ff96e999fc93a0413aa667686a66 | [] | no_license | gbernardf/AntsSim | f1352810c423b95c78003b10db671eeb40626f67 | d2e04f97156275e41039d153caa14ccbca4a83a9 | refs/heads/master | 2021-06-10T03:41:10.825521 | 2021-03-04T08:47:37 | 2021-03-04T08:47:37 | 27,433,335 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 167 | cpp | Direction.cpp | #include "Direction.h"
Direction::Direction(int x, int y):
dirX(x),
dirY(y)
{
}
int Direction::getX(){
return dirX;
}
int Direction::getY(){
return dirY;
}
|
53552b3cae9d407121c23449450fbaab49a6dfcc | b0e233b9b173a866cf78f6e74a9b95c1e64eeb51 | /Tools/MakeLinks/Libs/win/Server/behaviac/include/behaviac/common/memory/memory.h | b4344e28754ed68b5be9180fe8e0754e9ec00dcf | [] | no_license | xiaol-luo/Utopia | 47a6e987ebd6aaebb7759b736a4590859a6c4eb3 | 798741067114467680c6bcf9d22301f12f127f02 | refs/heads/master | 2021-07-10T13:21:24.547069 | 2019-01-14T14:03:31 | 2019-01-14T14:03:31 | 100,261,666 | 6 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 24,764 | h | memory.h | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the ... |
245b8454a0699eb1cb066b1c6ee2bbdc09ef6441 | 7bd326030f414ee75a43d0cfa42f1d49b23c01aa | /src/SE.cpp | a4a7e48b2536595f5ac13f2b34c270beaf882b28 | [] | no_license | Wenchao-Ma/GDINA | 4b898e5a1ec9944dada566bc846d2f551c6e1a3e | cbc5f44d05d38d77d938895816be8dec7906e52f | refs/heads/master | 2022-11-08T07:17:32.549442 | 2022-11-04T17:32:46 | 2022-11-04T17:32:46 | 76,151,284 | 39 | 12 | null | 2022-09-16T07:46:34 | 2016-12-11T03:12:34 | R | UTF-8 | C++ | false | false | 4,125 | cpp | SE.cpp | #include <RcppArmadillo.h>
// [[Rcpp::depends(RcppArmadillo)]]
//using namespace Rcpp;
// [[Rcpp::export]]
Rcpp::List SE(arma::mat mX,
arma::mat mlogPost,
arma::mat itmpar,
arma::mat parloc,
arma::vec model,
arma::mat mIndmiss,
int SE_type){
// model must be a vector; its elements must be 0, 1 or 2... |
b08b68fb1ceb7dee872d5a4e4e4d073248c09f3a | 7ce2c6142c7bc56b2c5e9f1238687e94dd56a1bb | /RetailItem/RetailItem/BinaryNode.h | b8d7e51ffe33626cf4bf88a08d9f031fdd8736ab | [] | no_license | AntEncarnacion/cpp-playground | fa56735615a34ab992f3e1c7415269c4f33a97ff | 156e2dabb85a5d276de469940f44e467652f5f15 | refs/heads/main | 2023-07-31T19:58:13.409711 | 2021-09-12T19:02:00 | 2021-09-12T19:02:00 | 364,772,684 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,321 | h | BinaryNode.h | // Created by Frank M. Carrano and Tim Henry.
// Copyright (c) 2013 _Pearson Education_. All rights reserved.
/** A class of nodes for a link-based binary tree.
Listing 16-2.
@file BinaryNode.h */
//#include ""
//using namespace std;
#ifndef _BINARY_NODE
#define _BINARY_NODE
#include "RetailItem.h";
typedef char... |
dd77027096cd792fda0845c577ff463a9cff73a1 | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5662291475300352_0/C++/dancingsoul/main.cpp | 276717207fb24a46963b9b9d5abc6b813dd896e5 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 1,322 | cpp | main.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
vector <pair <int , int> > v;
bool cmp (const pair <int , int> &a , const pair <int , int> &b) {
return (a.first != b.first) ? a.first < b.first : a.second > b.second;
}
int main () {
// freopen ("input.txt" , "r" , stdin);
// fre... |
a6ccf0a15765e122c9436e42911faf0f9fad0b75 | dc360804e41f5bbe510cf5f8eb7da0e105ab527c | /libInc/Fishino/src/Fishino.h | 7182e22c4e5f1c600ede674e0129b6a9ff6b5536 | [
"CC0-1.0"
] | permissive | aaron5523/fishino-monitoring | 05673426b15943d3fc5bf513ce60605c3b274a34 | bc904435a495fc1759186814f8e5607220d89b2c | refs/heads/master | 2021-01-10T14:45:03.113625 | 2016-02-21T20:36:23 | 2016-02-21T20:36:23 | 52,212,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,041 | h | Fishino.h | /*
Fishino.h - Library for ESP8266 WiFi module
Copyright (c) 2015 MicioMax. All right reserved.
This library 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.1 of the License, ... |
3e41c1fcb92300de9f1a839f0761e22f42772a19 | c31610540cf9f256933e6b4d0b7f8e2e14fcc4a8 | /src/Game/Systems/MainMenuSystem.cpp | 1be751f0585bfc83723399a53a9fe97992649f43 | [
"MIT",
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause",
"Zlib",
"Libpng"
] | permissive | Stiffly/TacticalZ | b0286f930cf8b1b0b9b9cd8203fb76870d7a2196 | 7ebc9108679a6cabca166de202419741d039409d | refs/heads/master | 2020-12-31T07:32:38.148101 | 2017-01-04T13:46:14 | 2017-01-04T14:39:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,920 | cpp | MainMenuSystem.cpp | #include "../Game/Systems/MainMenuSystem.h"
MainMenuSystem::MainMenuSystem(SystemParams params, IRenderer* renderer)
: System(params)
, ImpureSystem()
, m_Renderer(renderer)
{
EVENT_SUBSCRIBE_MEMBER(m_EPressed, &MainMenuSystem::OnButtonPress);
EVENT_SUBSCRIBE_MEMBER(m_EReleased, &MainMenuSystem::On... |
6a53cfd4caad6cb14bb0d2ca47ad0a443997c2da | 2b70fe3ed98141b9c979ec8053e8e745d0ce2e59 | /Project2/quick_sort.h | 4d52a485c8c29ae8241727258f91066509053e7a | [] | no_license | abdutr/CLRS_Implementation_Intro_to_Algo | 73fe2406dfb3a5a579600edac274d20c8d158f06 | 82b02f79427569552f7b241e15e95650e231f083 | refs/heads/master | 2022-11-06T10:06:07.480965 | 2020-06-21T09:11:58 | 2020-06-21T09:11:58 | 273,869,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 756 | h | quick_sort.h | #pragma once
#include "utils.h"
template <class T>
int partition(vector<T>& arr, int start, int end);
template <class T>
void quick_sort(vector<T>& arr, int start, int end);
template <class T>
int partition(vector<T>& arr, int start, int end) {
T var = arr[start];
int i = start;
for (int k =... |
c28bc2a93ee0eac76456103ed5ee715aa002c812 | 945e7fc4f7cf0910eb4401dd69355b433b67ff06 | /Flight_Controller_deprecated/yaw_pitch_roll.ino | 9bd51e1904efa95dd939498944fc606639a8a814 | [] | no_license | itamakatz/Drone | 69a8839b9963d382e0dab0b539e404b1db6d6b7d | f154fc9e390ef09e3af8747e39b6958e0ea1716a | refs/heads/master | 2023-02-26T23:40:12.839231 | 2021-02-10T20:36:33 | 2021-02-10T20:36:33 | 139,272,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 985 | ino | yaw_pitch_roll.ino | void set_absolute_motors_speed(long c_altitude, long c_yaw, long c_roll, long c_pitch){
long new_speeds[NUM_OF_MOTORS];
// if(c_altitude < 300){
// for (int i = 0; i < NUM_OF_MOTORS; ++i) {
// all_motors[i].set_absolute_speed(0);
// }
// }
// altitude
for (int i = 0; i < NUM_OF_MOTORS; i++) { new_speeds... |
6c21983a086495eb34937aee36222c1b1295235c | 5ceb016de598bdba87cb03025d077942d54fdff6 | /Publisher/IPublisher.h | 0856a2f17f4ac5634f7db2e47b161ea6d5dcef95 | [] | no_license | YueLiu-ada/code-display | f312caf4155d79d11fdb1e6fc62ce618d67d8696 | 9e49b77b80edea0befaa5ebeb060184cd0bd9b7d | refs/heads/master | 2020-12-02T14:28:33.245774 | 2020-02-21T05:44:55 | 2020-02-21T05:44:55 | 231,036,583 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,548 | h | IPublisher.h | #pragma once
///////////////////////////////////////////////////////////////////////////
// Publisher.h : This package replaces the Executive package, from //
// Project #2, with an interface and a class that //
// implements the interface to use CodePublisher's //... |
9cbb4ab307214f78a23ef9e4489a8bc5e549ae52 | c8bf21641de892160316fd8cc6a896708d6a4575 | /Utility.hpp | df085fcf5fda34036c7a5414e84ac5fd2d16b157 | [] | no_license | momijzi/DirectXLibTestData | dd92babc14725f2baa0f655453ab890431a93b5f | 3aae9bf6ff6711a0535312ccdfa0e888f86a17ba | refs/heads/master | 2021-04-18T22:12:28.933683 | 2018-04-04T04:27:19 | 2018-04-04T04:27:19 | 126,421,632 | 1 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 7,790 | hpp | Utility.hpp | #pragma region Float2
struct Float2 : public DirectX::XMFLOAT2
{
Float2() : DirectX::XMFLOAT2()
{
}
Float2(float x, float y) : DirectX::XMFLOAT2(x, y)
{
}
Float2(float value) : DirectX::XMFLOAT2(value, value)
{
}
Float2(const DirectX::XMVECTOR& vector) : DirectX::XMFLOAT2()
{
DirectX::XMStoreFloat2(thi... |
7108416d60faaf84da2892a9235618364df3a9ab | d8c6c2433f32c35b0039e876a837ba3a64d8a14d | /euler/94/slow_brute_force.cpp | 3cbe8ded00f93cebb06b684f9bb5d542c0abd0f1 | [] | no_license | jmerizia/programming-team-solutions | 863158105b54ba1fd78be2b429f2bcfff92499b3 | 29f052f7f34a00a88fce0bcb701027b8d1477ee3 | refs/heads/master | 2021-11-29T07:57:43.291653 | 2021-11-13T07:42:59 | 2021-11-13T07:42:59 | 119,102,254 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,395 | cpp | slow_brute_force.cpp | // I think I can actually brute force it in reasonable time
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <l... |
5f0103a9cf6147322f802fd4f8e37dafa95d463b | 23fa78c85948dc6c61195633dd06b2e868c05d81 | /CompSci1/Labs/11-16/11-16/main.cpp | f90046a17604bf9873e24f710907b4fb87faac3a | [] | no_license | bmburkhardt/School | f09bedeadf9afd7db893a243293d06a2b0580a0f | ec2f8a001f7cf22f662c890b3a43c3a592eeb341 | refs/heads/master | 2021-08-23T12:04:17.281239 | 2017-12-04T20:48:54 | 2017-12-04T20:48:54 | 103,216,476 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,176 | cpp | main.cpp | //Bryan Burkhardt
//CS201
//Lab 11-16 - Create a class containing functions for a complex number.
#include <iostream>
#include "Complex.h"
using namespace std;
int main()
{
Complex com;
Complex com1;
Complex com2;
Complex com3;
//Create com1
com1.setReal(3.0);
com1.setImag(5.0);
... |
d87a62228e7f196fa2a2b2868ae227599e792e02 | 1f3a35be869e9539fc59595824fb00155b441067 | /src/gss/gss_garbage_collector.h | 758e789c9c93d62fb2f7003ad4b05a0d491477ea | [] | no_license | daid/GruesomeSpace | 9354688213b787aa03dbe14746e536b6c876d65b | 9aa667cd2af0a41d7d916947901992fe56a1b4b4 | refs/heads/master | 2021-01-21T04:19:19.272678 | 2016-07-16T19:42:40 | 2016-07-16T19:42:40 | 43,640,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 606 | h | gss_garbage_collector.h | #ifndef GSS_GARBAGE_COLLECTOR_H
#define GSS_GARBAGE_COLLECTOR_H
#include "gss_memory.h"
#include <map>
class GssGarbageCollector : sf::NonCopyable
{
public:
GssGarbageCollector(GssMemory* memory);
void run();
private:
GssMemory* memory;
void* old_memory;
std::map<unsigned int, unsigned int>... |
21372d0fe4478f78ce7f889e62edca1c96a86331 | 7392fd78c5d32ea1efdfc4aee6f6281a9b193452 | /problemSolving/1335-c.cpp | f2f948a1d468de518d9a2ff49860b7e2fc1e4a07 | [] | no_license | sagar104g/geeksforgeeks | 17a71f64f9eea0d3dbddf0db50be332e3831e828 | 7ea5f1b3f8008bf8ed91073522bcf0f1c9753f8c | refs/heads/master | 2023-07-12T05:02:26.709685 | 2021-08-08T18:00:38 | 2021-08-08T18:00:38 | 276,051,987 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 753 | cpp | 1335-c.cpp | #include <bits/stdc++.h>
using namespace std;
int main(){
int t,n,a,b,c,d;
cin>>t;
while(t--){
d = -1;
b = c = 0;
cin>>n;
map<int,int> m;
map<int,int>::iterator mit;
for(int i=0;i<n;i++){
cin>>a;
// m.find(a) != m.end()
if(m[a] != 0){
m[a] = m[a]+1;
}else{... |
45edd1efb6cf6e5d23f35af117e3ad55b5725407 | e107d391b7f06a679176885265be2b13052c1762 | /hard/distributed_systems.cpp | 880a2f2a7376f8319cf4f408824fe34b3ea3bda8 | [] | no_license | vadimkhu/binarysearch.io | a5fb28b9f791d83f1441b84d1af1198315fbf765 | f10ce833f63f8057cfa3d8807e3e76b2a3363468 | refs/heads/main | 2023-04-01T08:57:37.638168 | 2021-04-08T03:18:04 | 2021-04-08T03:18:04 | 321,651,350 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,011 | cpp | distributed_systems.cpp | /*
Distributed Systems
Question 214 of 1004
https://binarysearch.com/problems/Distributed-Systems
*/
int dijkstra(vector<vector<pair<int, int>>> &g, int n, int s) {
const int INF = 1000000000;
vector<int> dist(n + 1, INF);
priority_queue<pair<int, int>, vector<pair<int, int>> , greater<pai... |
d2f76c10bfddbf05aba0492974eba7d4f941573c | c70ffe04668c4e81622f30a6ff6db27df9c518e3 | /app/rest/tests/response_binary_test.cc | 4e0a82f63a37eeb7536a1100d33b6138650f2287 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | firebase/firebase-cpp-sdk | 469a8514beb1425afdcc923e0f5f9fb64092cdc1 | f55c43c2485e91c67a52ce60e1191fa3b0c4df61 | refs/heads/main | 2023-09-01T11:50:35.258358 | 2023-08-31T00:35:26 | 2023-08-31T00:35:26 | 175,263,313 | 270 | 112 | Apache-2.0 | 2023-09-14T19:41:20 | 2019-03-12T17:23:01 | C++ | UTF-8 | C++ | false | false | 3,386 | cc | response_binary_test.cc | /*
* Copyright 2017 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
3e39a7f4c638cee489c2bdfb64ead9755ee758fb | 8f50c262f89d3dc4f15f2f67eb76e686b8f808f5 | /TestBeam/TBEventAthenaPool/src/TBScintillatorContCnv.h | cc32d70db5faa463ae19614f28d6136f1ad4395f | [
"Apache-2.0"
] | permissive | strigazi/athena | 2d099e6aab4a94ab8b636ae681736da4e13ac5c9 | 354f92551294f7be678aebcd7b9d67d2c4448176 | refs/heads/master | 2022-12-09T02:05:30.632208 | 2020-09-03T14:03:18 | 2020-09-03T14:03:18 | 292,587,480 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,460 | h | TBScintillatorContCnv.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
// -------------------------------------------------------------------
// Modified pool converter which complies with the standards of the
// transient/persistent scheme.
// See: https://twiki.cern.ch/twiki/bin/view/Atlas/TransientPersiste... |
dbf360dacc342a9c6edac1b9dccad226736aa5c6 | 927c9d8c024aa0c1d5b07091dad3a8e94b6dc0c5 | /Compiler/Single String Token/main.cpp | f6301813680f2b7eabb3a9e3a3027d75b6ca82de | [] | no_license | srkonok/L3T2Lab | b62a1866bc1bd2d28454f6a6052b540bbdadb9b4 | 640a0c7c4ed2f34d96b3ed3c98cf00a05b61bb6b | refs/heads/main | 2023-02-20T20:41:23.902233 | 2021-01-24T02:17:48 | 2021-01-24T02:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 275 | cpp | main.cpp | #include <stdio.h>
int main() {
char _a1 = 'H';
int b = 8;
float d = 5.6;
char _string[200] = "demodotcom";
if(b<10)
printf("Character Value : %c\n",_a1);
else
printf("Float value : %f\n",d);
printf("String Value : %s\n", _string);
return 0;
} |
940d97ca190b5e1f2f4f75ff461f1dbe0e895752 | 9e71ac89bb0eae0d1fd50187dfa72ae819083439 | /C++_LeetCode/RemoveDuplicateFromSortedListII.cpp | c2e94918fd2be5c0c042dcbd2b4e771b68708051 | [] | no_license | faizak1/LeetCode-Solutions | de483b95bfdca06b4f979a6a1edb893e61cb5bc7 | 714fe19b02b688d4a6fa045bd5147273a8b8ef4e | refs/heads/master | 2022-12-27T23:18:04.739305 | 2020-10-05T00:11:40 | 2020-10-05T00:11:40 | 299,140,415 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 898 | cpp | RemoveDuplicateFromSortedListII.cpp | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* deleteDupli... |
1942d37a6dcc6f9e33b3afbf891b1150c63262f2 | 9c7168e0c107f3214e355b8696de689fd4aec253 | /SchemeValue.h | 834a70153fc7404c0ddb0e5464838f23cf903eca | [] | no_license | chenxiangyang/scheme-cpp | 10dd2d6e3767452bda77a329f433bb7e8405b2e2 | 7b7f47ae10695ae425e924d4a857b162c25f84d4 | refs/heads/main | 2023-03-01T18:12:04.655935 | 2021-02-09T01:43:32 | 2021-02-09T01:43:32 | 334,800,547 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | h | SchemeValue.h |
#ifndef _SCHEME_VALUE_H_
#define _SCHEME_VALUE_H_
#include <memory>
class SchemeValue
{
public:
virtual ~SchemeValue(){}
virtual bool is_pair(){return false;}
virtual bool is_symbol(){return false;}
virtual bool is_number(){return false;}
virtual bool is_boolean(){return false;}
virtual bool ... |
fc30f791fe817facf85a2b00690146f0a6043c40 | 968b28a79bc4fbe418ee6f728411e67eaecc4131 | /example.cpp | 555d87f04b749915c90b0a060fc6ba55e94b45ae | [
"MIT"
] | permissive | cesarblum/propertypp | aa2b1a8628ea7e7b33e4fc148fa7928ee5189fbe | f4f0b38f6bfba6e15eeb7285e848ab431b2d3771 | refs/heads/master | 2021-05-26T18:23:13.842078 | 2011-08-21T01:52:07 | 2011-08-21T01:52:07 | 2,231,398 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,509 | cpp | example.cpp | #include <iostream>
#include "propertypp.h"
class Example
{
public:
Example();
void printProperties();
PROPERTYPP_DECLARE(int, i, i_)
PROPERTYPP_DECLARE(float, f, f_)
PROPERTYPP_DECLARE(int*, p, p_)
};
Example::Example()
{
PROPERTYPP_INIT(i);
PROPERTYPP_INIT(f);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.