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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f8c59963719857d8db04b106592397314638a782 | d0ecb5695223c1c8866d7aa551ae0ffadb2a829d | /NewTrainingFramework/Terrain.h | 2d4dae96775d99d741015d408056ffd47a1559e8 | [] | no_license | HyperdiXx/OPenGL | 5f2b5e5473d5c4367956164c8b916ad6b8a90fb8 | 20d0b6b007aeb12c242a82d8e9738794f652d25b | refs/heads/master | 2020-03-21T21:12:02.131702 | 2019-01-28T22:36:38 | 2019-01-28T22:36:38 | 139,051,436 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 874 | h | Terrain.h | #pragma once
#ifndef _TeRRAIN_
#define _TERRAIN_
#include <vector>
#include <fstream>
#include <string>
#include "../Utilities//utilities.h"
#include "Vertex.h"
#include "Indices.h"
#include "Shaders.h"
#include "Texture.h"
struct Vertex;
struct Indices;
class Terrain
{
public:
Terrain();... |
a0a66c826270a6d9b93d0349b63cc2670843f534 | 2e95a7cddef63cf283db50dca2446a79f6fcd98c | /ACMAmman2017/B.cpp | 7f955a00b5c37594eafa67d67e81403f78688339 | [] | no_license | jameszang/ACM | 78536415c604ed153f37184d959e8e6d98b5b7f2 | 3960d04cf92a471d2335eb94c58b88f1623acb21 | refs/heads/master | 2020-04-08T06:19:47.140333 | 2018-11-26T01:31:04 | 2018-11-26T01:31:04 | 159,092,844 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 639 | cpp | B.cpp | #include <iostream>
#include <vector>
#include <string>
using namespace std;
#define nl '\n'
int main() {
int T;
cin >> T;
for (int t = 0; t < T; t++) {
vector<int> second(26, 0);
string a, b;
cin >> a >> b;
for (int i = 0; i < b.length(); i++) {
second[b[i]... |
a8eeb731aeca4da1bc30e1e6f810d2a190302a7c | 8200602192c30c01760407dbea45b106c42bf155 | /apps/dht/apps/multi_regression/h_smooth.cpp | 184c4012d5af5b281f988cc734953e6690e00016 | [
"BSD-3-Clause"
] | permissive | MAYHEM-Lab/cspot | 861e292b5ab38813cb49d78e9f7a3b188e9e22aa | d310543a15d5ccba80732d3ddd84c01bcf70ce49 | refs/heads/master | 2023-07-10T13:21:03.909211 | 2023-07-07T22:09:48 | 2023-07-07T22:09:48 | 92,332,092 | 24 | 6 | NOASSERTION | 2023-05-25T22:53:06 | 2017-05-24T20:07:36 | C | UTF-8 | C++ | false | false | 2,110 | cpp | h_smooth.cpp | #include "dht_client.h"
#include "dht_utils.h"
#include "multi_regression.h"
#include <algorithm>
#include <cstdint>
#include <iostream>
#define SMOOTH_WINDOW (60 * 60 * 1000)
using namespace std;
extern "C" int h_smooth(char* topic_name, unsigned long seq_no, void* ptr) {
DATA_ELEMENT* el = (DATA_ELEMENT*)ptr;... |
06a68800225cf2e9c73705ab05b4261d9637ebf0 | 3af51a95b34798ae637a27f6f286632064c2d987 | /als_img_processing/trunk/als_img_processing/n_spe.h | 0eb0ccd89cc9cfff452fcbdfae6a87e44a6d44a6 | [] | no_license | godsic/als-image-processing | 9c2e6ba7446ea33ab33800384b09953820a27ffe | a1b9eda56bb9953bd0c3d2918c58dd204ae54fcc | refs/heads/master | 2021-01-10T10:50:17.326276 | 2012-04-28T19:07:57 | 2012-04-28T19:07:57 | 43,128,194 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,398 | h | n_spe.h |
#ifndef _N_SPE_H
#define _N_SPE_H
//#include <msclr/marshal.h>
#pragma unmanaged
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <omp.h>
#include <acml.h>
#define SPEHEADER 4100
#define INTERVALS 16384
typedef __int16 WORDS;
typ... |
c01faa1e2e725ff220bc55edb8e558610852bf24 | a71b7287cb45a56f919a057b8446f67433b3bd9b | /ds/graph/search/problems/graphPath.cpp | 511d138389b7ba99de32dd42a9dbe31401ab41e5 | [] | no_license | Alexoner/dsa | dc716505c77f281f46f84eaeab14fbf223935b5f | e5339cecaa0ddcf95ef08508b3a2134dd09e7a5c | refs/heads/master | 2023-06-08T17:23:01.110024 | 2023-05-31T06:38:43 | 2023-05-31T06:38:43 | 13,384,800 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,227 | cpp | graphPath.cpp | /**
*
* Hamiltonian path problem or Euler Path?
*
* Euler Path is to visit every EDGE exactly once(like seven bridges problem).
* Hamiltonian path is visiting every VERTEX exactly once.
*
* #############################################################################################
* Google interview question:... |
d6b1f2bb17955df0bce52a86c1f45cc573884a09 | 77d8bf6f033194b71805b5822b05b85f4a4dba7d | /test/console_arguments_test.h | 801bf08f222eca99d7778b1de3facbeef50c862e | [] | no_license | vomelnit/Linked_List_Manipulator | 1f7dcc2d601b6e767b9fd09fffaea9b7526825a0 | 21e90d363ec40ac54f8dea645f99445a5891be44 | refs/heads/master | 2023-02-22T01:15:25.392429 | 2021-01-28T16:41:28 | 2021-01-28T16:41:28 | 327,264,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,444 | h | console_arguments_test.h | #include <gtest/gtest.h>
#include "file_processing.h"
class ConsoleArgumentsTest : public ::testing::Test
{
protected:
int argc;
char **argv;
char *filename_for_list_data;
virtual void SetUp()
{
argv = (char **) calloc (3, sizeof(char*));
argv[0] = (char *... |
adc6b4ea9534d38fa5be6e0b3d26933150ce5179 | 4623dc0050cf5d846b551b073a6d0be36e114675 | /C-Plus-Plus/cp/Leftmostnonrepeatingchar.cpp | a79811d920d691921181d895f531eaec7d18a351 | [
"MIT"
] | permissive | UG-SEP/NeoAlgo | 95a12a86ac6365f9e80b4538f020ceb20d939f22 | 1b26304fb448ce938ef40d167d1cac1aa01f5b13 | refs/heads/UG | 2023-04-01T19:25:36.486113 | 2021-04-17T17:24:14 | 2021-04-17T17:24:14 | 351,339,729 | 2 | 0 | MIT | 2021-03-25T07:03:28 | 2021-03-25T07:03:27 | null | UTF-8 | C++ | false | false | 1,376 | cpp | Leftmostnonrepeatingchar.cpp | // Description: This program finds the leftmost non repeating character in a string.
// For example: s = "aabcdb", output should be: 3 (index of c)
#include<bits/stdc++.h>
using namespace std;
int leftmostnonrepeatingchar(string s){
int res = numeric_limits<int>::max(); //Initialised res to infinity
vector<in... |
f8ceeb174ac2d1fd2cfa2677f5c461ad7d7d6171 | e37d0e2adfceac661fbd844912d22c25d91f3cc0 | /CPP-Programming-Principles/chapter12-display-model/ex08_olympic.cpp | 522d6262c54009836c27ca322be3baa521fe8088 | [] | no_license | mikechen66/CPP-Programming | 7638927918f59302264f40bbca4ffbfe17398ec6 | c49d6d197cad3735d60351434192938c95f8abe7 | refs/heads/main | 2023-07-11T20:27:12.236223 | 2021-08-26T08:50:37 | 2021-08-26T08:50:37 | 384,588,683 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,298 | cpp | ex08_olympic.cpp | #include "./GUI/Simple_window.h"
#include "./GUI/Graph.h"
#include <string>
#include <iostream>
using namespace Graph_lib;
int main()
try {
Point tl {100, 100};
Simple_window win {tl, 600, 400, "Chapter 12 Ex 8"};
// Olympic rings
Circle bl {Point{100, 100}, 75};
bl.set_style(Line_style(Line_sty... |
3a0758b1043fb83a96c30a634b973d01650c3a90 | aabf07214c1e2ac79d2fcb50170631b616edba04 | /wizard-basic-2-framework/source/thewizardplusplus/wizard-basic-2/framework/sound/exceptions/InvalidSoundIdException.h | 6c3f49c84e174754bd7b1beb57ffeee53f069a8b | [
"MIT"
] | permissive | thewizardplusplus/wizard-basic-2 | 0a4c2aed35cdd1bdc3061325695bdcfccc17af19 | eb608e8c8fa1f7606224309b983f35d682cf31b7 | refs/heads/master | 2021-01-01T16:25:44.154306 | 2015-03-29T11:54:00 | 2015-03-29T11:54:00 | 12,039,182 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 346 | h | InvalidSoundIdException.h | #ifndef INVALIDSOUNDIDEXCEPTION_H
#define INVALIDSOUNDIDEXCEPTION_H
#include "SoundException.h"
namespace thewizardplusplus {
namespace wizard_basic_2 {
namespace framework {
namespace sound {
namespace exceptions {
class InvalidSoundIdException : public SoundException {
public:
InvalidSoundIdException(float sound_... |
67ad364b887a38ae467564cd24fd21ad9d853e18 | 0e0a3dc9dce1bc689d6819ab1494415fcb9342ab | /hash_table.inl | fd2d8cfc70b64aa01acb8b647ebe03503c3aaed8 | [] | no_license | dtheese/state_space_search | 83bb58a8b4bf286b75f78ac8e601982b5689207a | 46674e7801d74e1da156bd8505dade1de5b69ff7 | refs/heads/master | 2023-05-29T19:32:28.723878 | 2021-10-31T22:09:43 | 2021-10-31T22:09:43 | 235,227,253 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,327 | inl | hash_table.inl | #include <algorithm>
namespace dct
{
// **************************************************************************
// **************************************************************************
// **************************************************************************
template <typename ELEMENT_TYPE, uns... |
769bdfe027d1cd6abafbf1363b3c4ca7b36607df | beab47f1bb1ddbcae32eb5f732bb65817e981956 | /src/libOL/Blocks/PlayerHeader.h | 7292cdf78112bf671de2783881365fc80ac5ad30 | [
"MIT"
] | permissive | themasch/libOL | 438ba9ab5760a060b76e98d2b615774eb1f1b2f7 | b3eb6293c10b00de84afef47eaf393dd76c13c22 | refs/heads/master | 2021-01-22T16:31:49.823096 | 2014-08-25T21:39:47 | 2014-08-25T21:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 643 | h | PlayerHeader.h | // Copyright (c) 2014 Andrew Toulouse.
// Distributed under the MIT License.
#ifndef __libol__PlayerHeader__
#define __libol__PlayerHeader__
#include "Block.h"
#include <cstdint>
#include <array>
#include <vector>
#include <string>
namespace libol {
class PlayerHeader {
public:
uint32_t entityId;
... |
4ded615f19b8af79373ec7d0fad1d7a382bdbb47 | 29382a25484c7e23e7ef87a8e0964883599c1e31 | /VrMath/PolygonClip.cpp | fe73e89ab8a4c6067382662690855361e92e7879 | [] | no_license | topjohnwu/VR_RayTracing | 0f6d2943aa89d526b9218a488301eef975a5d7ef | 4cfae839f55ef87e5117d5444b32a5c0b30af442 | refs/heads/master | 2021-06-20T13:41:12.549796 | 2017-06-19T03:17:22 | 2017-06-19T03:17:22 | 93,495,873 | 12 | 1 | null | 2017-06-10T16:56:42 | 2017-06-06T08:41:11 | C++ | UTF-8 | C++ | false | false | 14,351 | cpp | PolygonClip.cpp | /*
*
* RayTrace Software Package, release 3.0. May 3, 2006
*
* Author: Samuel R. Buss
*
* Software accompanying the book
* 3D Computer Graphics: A Mathematical Introduction with OpenGL,
* by S. Buss, Cambridge University Press, 2003.
*
* Software is "as-is" and carries no warranty. It may be use... |
30b1adec6fb50274be3c104e9b115d9261a867cb | 8abc484cc5f64307d1e398ac61bb891a8e760d83 | /Hash_research/main.cpp | 0e8ac132b4a8c0a6d61e5fea207aa6d84597ab20 | [] | no_license | MagicalBrain/HashTable | f7c7c8ba8d025b07294efc5834cf6a9c0206cfad | 175140668b5c731d57184819a32f1e2432e33de6 | refs/heads/master | 2020-04-26T09:34:14.053129 | 2019-11-18T15:33:59 | 2019-11-18T15:33:59 | 173,460,157 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 557 | cpp | main.cpp | #include <iostream>
#include "Hash.h"
using namespace std;
//哈希表输出函数
void hashout(ChainHashTab H,int m)
{
HLink p, q;
for (int i = 0; i < m; i++)
{
p = H.rcd[i];
while (p)
{
cout << i << " " << p->data<<endl;
p = p->next;
}
}
cout << endl;
cout << "输出结果:" << endl;
cout << H.count << endl;
cout ... |
f97cac99120d7ce3cb3ef622e6f259c2ea8e202c | a39cecf80a8760070655aa31c259185623fc88b9 | /src/ParserInfoPerfSonar.cpp | 40cda07328c27d1b5dcc0d02f20ec29973f6a661 | [] | no_license | cern-it-sdc-id/fts3-perfsonar | 4d1b1f7bdc8a03934a45b8273a9e4afd33e1b33f | 3b2d6aa72ac31b696d59a9d5512b724948214bd6 | refs/heads/master | 2021-01-24T23:34:42.163784 | 2013-08-30T16:34:48 | 2013-08-30T16:34:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,423 | cpp | ParserInfoPerfSonar.cpp | /*
* FileProcess.cpp
*
* Created on: Jul 22, 2013
* Author: rocio
*/
#include "ParserInfoPerfSonar.h"
using boost::property_tree::ptree;
using namespace std;
const char *ParserInfoPerfSonar::sourceURL = "/results?action=getServices&source=";
const char *ParserInfoPerfSonar::destinationURL = "&destination=... |
53f8252ad61a65810c0e0f4a37dbb73faae67f50 | e98c22d1a8cc8d9ac711096558f4945b814622d0 | /CubeRubik/src/RubiksCubeFace.cpp | 18642c91da78e36ea21ecfd9c50fd390639941fd | [] | no_license | rmartella/ComputerGraphicsProjects | a519085487ef188802e1842237d6f8238e9cf97e | 7824eb8c94605bca6befa949d7aa7ce6bafd0a23 | refs/heads/master | 2021-07-03T07:11:23.905627 | 2017-09-25T06:32:06 | 2017-09-25T06:32:06 | 104,603,780 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 3,919 | cpp | RubiksCubeFace.cpp | /*
* RubiksCubeFace.cpp
*
* Created on: 04/04/2015
* Author: rey
*/
#include "Headers/RubiksCubeFace.h"
float currAngle;
/**
* Constructor de una cara del cubo.
* @param centerCubie Cubo centrico.
* @param axis Eje de giro.
*/
RubiksCubeFace::RubiksCubeFace(Node * centerCubie, glm::vec3 axis) {
this... |
6e585d0da053ad5cd1cedff4d4c31f47150de171 | ab95be20a1920fcdf3ffba1e2c4a4e7bf1eccd6b | /백준/Platinum/11790. Primorial vs LCM/Primorial vs LCM.cc | 115b4dbe97659a2646840f0bd27d07e85282e39d | [] | no_license | sean9892/BOJ | ce3684cd4ebcdf05c396d4a3030b40abecd66263 | 283b041cbf22451f32e4026086b2e700196927e5 | refs/heads/main | 2023-03-16T05:55:22.175522 | 2022-09-19T23:51:06 | 2022-09-19T23:51:06 | 229,585,349 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,234 | cc | Primorial vs LCM.cc | #include<bits/stdc++.h>
using namespace std;
using ll=long long;
using pii=pair<int,int>;
using pli=pair<ll,int>;
#define fi first
#define se second
const ll MOD = 1e9+7;
int sv[10101010];
ll ps[1000000];
ll e[1000000];
ll res[50010];
vector<pli> q;
vector<ll> diff[50010];
int pc=0;
int main(void){... |
87eb8374778b6912e8c0541bd57a2978c9f9df46 | 56f825ab4e7691286e4792d85abc4eb8a5c85e7e | /乙级/test.cpp | ab7f76cbcb482871c8c5512445f8a2b7acde4e54 | [] | no_license | eldarxuan/PAT | 734fe82f02adf0ad492122f4a180b51182fa7f4b | f752ca819423852b9211f7e4ad7a2a44466fe445 | refs/heads/master | 2020-03-25T11:32:05.099034 | 2018-12-08T12:56:09 | 2018-12-08T12:56:09 | 143,736,521 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | test.cpp | #include<iostream>
using namespace std;
int main()
{
#ifdef LOCAL
freopen("a.in","r",stdin);
freopen("b.oout","w",stdout);
#endif
int K;
cin >> K;
int temp;
int sum = 0;
int maxn = 0;
for(int i = 0; i < K; i++){
cin >> temp;
//if(temp > 0) x = x + 1;
... |
ab7d018420db2de6d15829412bf682423a506674 | df870e5c8b6cd95ba7fb37004df63d331d23176c | /src/ASMTranslator/VMParser.cpp | f9de20f875bfee56af56f57794be0733588a464e | [] | no_license | aneax/nand2tetris | ed379a79d85446e75a8584635e017f26bdfbd4a4 | b232a4ab7f8f0fd626df11d7d09d6a7296ad5de5 | refs/heads/master | 2023-08-26T14:07:28.699541 | 2023-01-03T22:46:41 | 2023-01-03T22:46:41 | 535,426,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,803 | cpp | VMParser.cpp | #include "VMCommand.hpp"
#include "VMParser.hpp"
#include "VMData.hpp"
#include <Errors.hpp>
#include <Iterator.hpp>
#include <Reader.hpp>
#include <Characters.hpp>
#include <cstdlib>
#include <string>
#include <string_view>
#include <type_traits>
#include <unordered_map>
namespace hack::vasm
{
using PredefinedVMToken... |
457ae2a99b3588b3818ffb7d655976271edefda5 | 7e560a387697c31531e14a8a32f8177285c8744c | /test/jsonTest.cpp | 37e36b6e64ece96a3de775af26915e0c5bdfafcc | [] | no_license | joyme123/search | 1f820fe8ca4087c580284d734a6591890d81f874 | 5dba0bb3e084f34030c783462d027cd556ce017d | refs/heads/master | 2020-04-16T05:21:14.926693 | 2017-05-18T10:31:25 | 2017-05-18T10:31:25 | 73,711,569 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 214 | cpp | jsonTest.cpp | #include "src/include/json.hpp"
using json = nlohmann::json;
int main(){
json j;
j["app"] = "app";
j["id"] = 1;
j["document"] = "dasd测试中文支持";
std::cout << j.dump(4) << std::endl;
} |
ab2f0b83fc7fa711a065785227832f427eef041f | b8ab39cc47fb826144cc057b5552c085916b8037 | /sketch_aug06a_Relay/sketch_aug06a_Relay.ino | cc22e4c152eef983c7ba8fead06c971217a3ac5b | [] | no_license | truonghoangduy/arduino_code_collection | f39954d4344c50004fe9130879f735fbfb1e05d3 | afe73f9ef1ba10b647e08b2dcb19afdaf94b6310 | refs/heads/master | 2022-02-23T08:06:34.439058 | 2019-11-05T03:21:20 | 2019-11-05T03:21:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 477 | ino | sketch_aug06a_Relay.ino | // Relay Order :
//
// GND
// 5V
// Signal D10
//
// With the Text reversed vertically.
#include <Arduino.h>
int relay = 6; // at D10
int led = 13; // at D13
void setup() {
// output like LED
pinMode(relay, OUTPUT);
// actual LED
pinMode(led, OUTPUT);
}
void loop() {
// put your main code here, to run r... |
a524d51f28f78cd696d7193d12e9340ac1b3bb18 | 1dada93830dd345cb1b06cd995aa2c377e2801a0 | /Collectables/HourGlass.h | ed5b0a1258753025ea56c2457c1b5ebae93203e5 | [] | no_license | chegestar/CM | 0864197ed106714195b027779100db86d7dee557 | 116f20c23bd8d299bc88b3ddf8412d6e400d9b84 | refs/heads/master | 2021-01-22T11:12:11.559280 | 2016-01-19T01:20:41 | 2016-01-19T01:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 320 | h | HourGlass.h | #include <Collectable.h>
#ifndef __HOURGLASS__H__
#define __HOURGLASS__H__
class HourGlass : public Collectable {
private:
bool isRed;
public:
HourGlass(Level* l, float x_, float y_,bool isR);
std::vector<Line> getLines() const;
virtual int activate();
void render(sf::RenderWindow& window);
};
#endif
|
fe47651c52be9dc80bcee4538840682333929687 | 46245a4d16ac9f4288d7c3edbf98a73891d6b3f1 | /arduino/goout_release_v1.0/ledSystem.ino | 9766bc5aad13912b9581419396b2d4727d1990ee | [] | no_license | maru536/goout | b152a481d164928e8e6f4654e2ac774bd802b605 | d36c929726cc7dd0720adc6fcb3d20641471afc6 | refs/heads/master | 2021-01-20T06:00:17.551893 | 2017-07-16T07:33:37 | 2017-07-16T07:33:37 | 89,832,159 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,748 | ino | ledSystem.ino | //파라미터에 바이트 정의한것 넣으면 해당 led에 점등
void ledON(byte b)
{
//OR연산을 통해 해당바이트에 쓴다
ledByte |= b;
//전원 LED는 항상 들어와야하므로 추가한다
ledByte |= powerByte;
//레지스터 동작
digitalWrite(STORE_CLK, false);
shiftOut(LED_DATA, SHIFT_CLK, LSBFIRST, ledByte);
digitalWrite(STORE_CLK, true);
}
//파라미터에 바이트 정의한것 넣으면 해당 led에 소등
void ledOF... |
cad8bb5ed095e74d641d487c01bed4f3c21c1fab | 4861067392a62a94eb6754e002c4348cfc378e43 | /src/corelib/thread/qgenericatomic.h | 91ccbbd1cdc03d3535ce742ebbc92a5fc0fcf1b5 | [] | no_license | qt/qtbase | 10c7d55cfa1e34e4d23c00e96c6199a1657095e1 | 0e5f60a6cae61c5086f25c039a953a5ade5fa471 | refs/heads/dev | 2023-09-01T20:11:09.742148 | 2023-08-31T15:56:57 | 2023-09-01T16:06:27 | 9,880,335 | 2,175 | 1,249 | null | 2023-07-17T10:11:10 | 2013-05-06T06:01:22 | C++ | UTF-8 | C++ | false | false | 917 | h | qgenericatomic.h | // Copyright (C) 2011 Thiago Macieira <thiago@kde.org>
// Copyright (C) 2016 Intel Corporation.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QGENERICATOMIC_H
#define QGENERICATOMIC_H
#include <QtCore/qcompilerdetection.h>
#include <QtCore/qtconfigmacros... |
5b0011638f377b5e32198f96e1d188ee77fe24f6 | ecf2527a8d15709e3d5f27408ee271b7bf321f3b | /Lab7/partA3.cpp | 1dd7437f377e102836101b5e21daadd67764e246 | [] | no_license | frankiefazlollahi/CSCI-60-And-Lab | 18232126804bfc833a7202fa4e530bf774ae56a6 | cc9fe7a133a66ff0ad23cefda0029461ba0f55bb | refs/heads/main | 2023-09-05T06:33:44.299454 | 2021-10-27T03:48:25 | 2021-10-27T03:48:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 431 | cpp | partA3.cpp | #include <iostream>
#include <fstream>
#include <vector>
using namespace std;
int main()
{
vector<string> nameList;
fstream input;
input.open("names.txt");
string s;
int count = 0;
while(getline(input,s))
{
nameList.push_back(s);
count++;
}
input.close();
for (vector<str... |
d8e2b3636104074a49a9614e9b0a8654e3265441 | 9798261e3e8b96aaa8393c190e32bb246e340eb8 | /ToTestProject/ToTestProject/Base/BaseDataType.h | 7ad71f2472c5aac96afbb36e22a0418f623b1461 | [
"MIT"
] | permissive | GameForPeople/GameDevLibrary | 9a673dcc48f031268586f1665d7c4f5fad0b8755 | 8434077c30a88dde1b7046677f6a1abcfad6e90a | refs/heads/master | 2020-03-21T09:36:15.766426 | 2018-09-19T15:32:42 | 2018-09-19T15:32:42 | 138,408,308 | 0 | 0 | null | null | null | null | TIS-620 | C++ | false | false | 4,701 | h | BaseDataType.h | #pragma once
#include <iostream>
#include <cmath>
#include <string>
#include "BaseRandomEngine.h"
#define INLINE __inline
#define PI 3.141592f
/*
BaseDataType
- Vectors;
*/
//struct FVector2D
//{
// float x;
// float y;
//};
struct FVector3D
{
public:
// Vector's X Value
float x;
// Vector's Y Value
... |
dbb5c7d6a3d57c19635a479b59ee97f11902381b | d8da6a2f8be73240b81370ffac737bd643c8a1e3 | /src4/EMWinVideoShuffleOutputFilter/Framework/Media/DXVideoSourceForDiskWrite/EMWinVideoShuffleOutputPin.h | 3d1a625257cbaffc18c628d1e19ebc2b02576b0b | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | EmbeddedSystemClass/TitanMedia | d0f28f6f67858bff96bbf3da559d314d2da9f91a | 135984a67ea3bb58b237b5d5342d1f51936bb9ab | refs/heads/master | 2021-03-08T08:37:32.561381 | 2017-04-21T00:56:52 | 2017-04-21T00:56:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,807 | h | EMWinVideoShuffleOutputPin.h | #include "EMGlobals.h"
#ifdef PLATFORM_WINDOWS
#ifndef __EM_WIN_VIDEO_SHUFFLE_OUTPUT_PIN
#define __EM_WIN_VIDEO_SHUFFLE_OUTPUT_PIN
#include "EMWinVideoShuffleOutputFilter.h"
#include <list>
#include <streams.h>
DEFINE_GUID(CLSID_DUMMY, 0x00000001, 0x0000, 0x0010, 0x80, 0x00,0x00, 0xAA, 0x00, 0x38, 0x9B... |
9be2679987b97a1992fef2ca2940a3e3b40e05d0 | 46f53e9a564192eed2f40dc927af6448f8608d13 | /content/browser/notifications/notification_database_unittest.cc | 35ea1a38ee19ae6251687d89fa8849b14696d33b | [
"BSD-3-Clause"
] | permissive | sgraham/nope | deb2d106a090d71ae882ac1e32e7c371f42eaca9 | f974e0c234388a330aab71a3e5bbf33c4dcfc33c | refs/heads/master | 2022-12-21T01:44:15.776329 | 2015-03-23T17:25:47 | 2015-03-23T17:25:47 | 32,344,868 | 2 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,621 | cc | notification_database_unittest.cc | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/notifications/notification_database.h"
#include "base/files/scoped_temp_dir.h"
#include "testing/gtest/include/gtest/gtest.h"
#... |
792c9b4e6454959569160a65ad876296a18cdd5b | 65b99b5c82f2d9db696129d691b0a861bec5d43d | /filter_iterator.hpp | f719f1a82c099732c202517790cede0687e9f880 | [] | no_license | nikolaAV/pipeline | b0cd56d8e4b9cd8877c27565d16c8a63507e9e98 | 394374be3af58df544cf22a61125bc6d83101497 | refs/heads/main | 2023-05-06T23:39:52.669100 | 2021-05-18T13:49:21 | 2021-05-18T13:49:21 | 368,493,300 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,710 | hpp | filter_iterator.hpp | #ifndef STD_EXT_FILTER_ITERATOR_INCLUDED_
#define STD_EXT_FILTER_ITERATOR_INCLUDED_
#include <utility>
#include <iterator>
#include <algorithm>
#include "assignable.hpp"
namespace stdext {
namespace input {
/**
\brief shifts the filter function into the input iterator.
\param Iterator - a type of... |
820b680e19aa7ba60de7c05a76a32d0a7c55d622 | 49cf207cd8698aefbc6b853b4c209bf39b3f69f9 | /libraries/depth_mesh/include/CameraExtrinsics.hpp | e003b4f5a33ba331403bfc584ba91f255043b54d | [
"BSD-3-Clause"
] | permissive | jlygit/xrcap | 62e308b9d961fca65240cfa1d7dd1f2e72532e74 | d3c5900c44861e618fd28b4256387725646b85c7 | refs/heads/master | 2023-03-19T03:48:50.613194 | 2020-12-06T05:36:24 | 2020-12-06T05:36:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,368 | hpp | CameraExtrinsics.hpp | // Copyright (c) 2019 Christopher A. Taylor. All rights reserved.
/*
From a set of point clouds, find a transform that best fits them together,
producing the extrinsics for the depth cameras that generated the clouds.
*/
#pragma once
#include <DepthMesh.hpp> // depth_mesh
#include <Eigen/Eigen>
#include <c... |
5f4a7908fdaee45a8d6b91937429fa4297dc8ee6 | 59127d1a6060e8cc1c37116665dac955e4c4bbe4 | /ndoor-ctrl/ReadAngle.cpp | 2aedd148d34f3e9e6e2b1249c67151c7dea01237 | [] | no_license | dnsd/tools | b06544375440df860b43fa72873cb06e5af104ff | 2001e2edefd20144e9f829d61837009661721851 | refs/heads/master | 2021-01-18T01:30:43.761176 | 2014-03-13T09:34:48 | 2014-03-13T09:34:48 | 17,362,586 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,814 | cpp | ReadAngle.cpp | #include <iostream>
#include <fstream>
#include <cmath>
#include <sys/time.h>
#include "decision.h"
double beta2angle(long angle)
{
// センサから取得した角度データを使える形に加工する
double alpha, beta;
beta = (double)angle;
alpha = ((2*beta)/(pow(2, 24)-1)) - 1; // 北陽独自の変換式
return alpha;
}
void calc_xyz(double angle_x,... |
a39815435cd38c8de80b0a7ecf375218a24d9083 | 17f02d64048686aa1a6d692b3feb1484f8e9d0b9 | /mergesort.cpp | 40a88c1f1a9b422a45134792aeac93e33a63a850 | [] | no_license | akshett/cpp_mergeSort | bea62c20c5780e1f3f1c6c5e448c1dce768a8a92 | 34ebe165b85ecf4b0d017c4317b0fa184769b4c0 | refs/heads/master | 2021-04-15T08:13:59.501933 | 2018-03-22T10:08:39 | 2018-03-22T10:08:39 | 126,315,477 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,176 | cpp | mergesort.cpp | #include <iostream>
template <typename T>
void merge(T& arr,T& aux, int lo, int mid, int hi)
{
int i = lo;
int j = mid + 1;
for (int k = lo; k <= hi; k++)
{
if (i > mid)
{
arr[k] = aux[j++];
continue;
}
if (j > hi)
{
arr[k] = aux[i++];
continue;
}
if (aux[i] <= aux[j]... |
42fcae23a5b76702443b7ac252acc4fe26a677e7 | 89bf15ad7e1c9401845387d63936a993ceac7bb9 | /210317_WinAPI/config.h | 6fcc097afaebbfe97132d6a179db6e68bfe5afd8 | [] | no_license | soapunny/BattleCity | a37f92e18a27e5e617ce6909c8261086f409f054 | e2fc4d946f3310fa03960e66d52028565a8ca740 | refs/heads/main | 2023-04-20T22:16:27.802330 | 2021-05-02T08:09:34 | 2021-05-02T08:09:34 | 362,022,702 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 1,637 | h | config.h | // config.h
#pragma once
#pragma comment(lib, "Winmm.lib")
#include <Windows.h>
#include <string>
#include <ctime>
#include <bitset>
#include <map>
using namespace std;
#include "KeyManager.h"
#include "ImageManager.h"
#include "TimerManager.h"
#define WINSIZE_X 1080
#define WINSIZE_Y 720
#define TILEMAPTOOLSIZE_X... |
c18bd997bb4c09d00e2876a3c3ef493a4eaf60b8 | 6a9c9988b3f0299381961be7d677dca9b6aa4e20 | /Code/Remove Vowels from a String.cpp | 8dc6f94c6b127e3ff4c93c3abb3aa87a112dd7b7 | [] | no_license | siddiqui-zeeshan/Leetcode | d703d551a509339b3d952bb51bae9f73dd31f891 | 94cdfff5fa67f98e915d36aa0bc1db500d589dd3 | refs/heads/master | 2022-12-17T19:34:08.094485 | 2020-09-16T10:43:10 | 2020-09-16T10:43:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | cpp | Remove Vowels from a String.cpp | class Solution {
public:
string removeVowels(string S) {
int l=S.length();
string w="";
for(int i=0;i<l;i++)
{
char x=S[i];
if (x == 'a' || x == 'e' || x == 'i' || x == 'o' || x == 'u')
{
int a=0;
}
else
... |
9c2c8c9fb70684c34820cb1817cb671edb9d0b14 | dca6b027adb163f63922dd48556b87b12cc2fa4d | /utils.cpp | f8d3f6b9976424eaaea155b88ba8979a1cd487c6 | [] | no_license | Tobacco-cn/t.hex | 0b38edec4afcc1513448c6e732448fa7e2b7b8e7 | 319e8678310bd5ca7dbfbb079177bffbc576ace2 | refs/heads/master | 2022-01-11T17:29:32.440565 | 2012-09-24T03:02:28 | 2012-09-24T03:02:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 54,775 | cpp | utils.cpp | #include "precomp.h"
#include "utils.h"
#include "settings.h"
#include "thex.h"
#include <wx/regex.h>
#define new New
wxString GetLastErrorMsg(int code /*= 0*/)
{
if (!code)
code = GetLastError();
wxString s;
if (!code)
//return "No error.\n";
return s;
if (FormatMessage(
... |
31bc5de48c3d369ecb3271dfa0f7c3b9498b75d4 | 6685563f47afd43c49a7bcf1edc054b100f72695 | /snackdown/2/DIVNINE.cpp | 2310228966da175ed9823224b9e65d89ead27bc8 | [] | no_license | Noxitu/contests | e6c7841897f981e43429043390b9fb14603939d2 | c8b1502a21e150fd60b8450d15598d49b89f45f6 | refs/heads/master | 2021-06-23T16:00:39.576815 | 2020-12-10T21:16:17 | 2020-12-10T21:16:17 | 29,066,178 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 491 | cpp | DIVNINE.cpp | #include <iostream>
#include <algorithm>
using namespace std;
char T[1000000];
void test() {
cin >> T;
int sum=0, up = 0, down = T[1] == 0 ? 0 : -1;
for( char *c = T; *c; c++ ) {
sum += *c - '0';
up += '9'-*c;
down += *c - '0';
}
sum %= 9;
int xsum = (9-sum)%9;
if(... |
48d41b205ba6cbc1f1dfb33928bd5556dbe29446 | cf3b7a05d909baa22a270fa4f4b926dbdd25e45f | /getWidths.cpp | 959d500ec490f51ff5bf6370ae3c5b7ff9de09f2 | [] | no_license | a-pankov/test_repo | 250b04c601b350d92ee4e952609ac4e7612132bd | 6d274a10d8b2eea2c03a32ca6cf5cd8fc4eb1f71 | refs/heads/master | 2021-01-17T11:58:43.339118 | 2015-03-14T17:28:44 | 2015-03-14T17:28:44 | 32,188,839 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,189 | cpp | getWidths.cpp | //
// subset_name.cpp
// subset by read name
//
// Created by Alex on 1/21/14.
// Copyright (c) 2014 Alex. All rights reserved.
//
#include <iostream>
#include <api/BamReader.h>
#include <api/BamWriter.h>
#include <tr1/unordered_map>
#include <ctime>
#include <unistd.h>
#include <sys/types.h>
#include <pwd.h>
st... |
424de7b49b7d24f8ae89935d76ac66f7a2873391 | b504ae6c2adce8406359c9843147df91be026325 | /[PlatformIO][ESP32]ADC_Keypad4x4/src/oled.cpp | 92facc778ffcb3864c5f27d26436300ff66318b4 | [] | no_license | TardSu/ESP32 | f5e3c435415566cbb2e6e662f7c3219e7c1efaa2 | 1bd386c5a315df4f562f63f877e6af04d82ba280 | refs/heads/master | 2021-06-21T20:22:21.059065 | 2017-08-27T14:10:08 | 2017-08-27T14:10:08 | 97,948,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,808 | cpp | oled.cpp | #include "ARDUINO.h"
#include <Wire.h>
#include "oled.h"
#include "num.h"
#define LED_BUILTIN 16
#define NUM_WIDTH 32
#define NUM_HEIGHT 48
// Variables will change:
int ledState = LOW; // ledState used to set the LED
long previousMillis = 0; // will store ... |
57e3dba3ff4a5c88433853982ddc48726c6a6755 | 399705334f88e0b88adb86163c988d9e1c24314a | /Practise/Codeforces/Watering_Flowers.cpp | 66f4e9e555c65ef4b21527a5b25f621b72fe3b81 | [] | no_license | shivangstreak/comp | d4d27b6726291d29d9216b632127399f4c7cf18b | 0ba7f89d6cd6f548449fdbbbff19c2fec42579c6 | refs/heads/master | 2023-08-13T02:53:07.867755 | 2023-08-07T08:01:52 | 2023-08-07T08:01:52 | 380,742,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 986 | cpp | Watering_Flowers.cpp | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define ll long long int
#define faster std::ios::sync_with_stdio(false);cin.tie(NULL)
/*struct node{
int x,y;
}a[2005];*/
double v1[2005],v2[2005];
double dist(double x,double y,double s,double d){
return (x-s)*(x-s)+(y-d)*(y-d);
}
int main(){
int n;... |
cf199e6bf7fd53790b6b4aad7cf1800b7c35912c | d387cfdc5ea05b2c05c7c524e4df0ce3269ac0b3 | /main.cpp | 7fa4c8bde057a7135c6b0012e5f77b968955dd2b | [] | no_license | jamesbc123/ComPhys-project-1 | 058d8b6dc5bc0434565223a3d9a743c15ceef1eb | 008ebf39f93ede69e3c2ca3db6bcbe920da75982 | refs/heads/master | 2022-12-15T21:14:26.464826 | 2020-09-09T17:40:49 | 2020-09-09T17:40:49 | 290,452,103 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,940 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cmath>
#include "gaussElim.cpp"
using namespace std;
/* Description of the whole data plotting process:
- Set the initial parameter values of the problem.
- Use the functions in gaussElim.h to solve the system of linear equations (u... |
eb3453060ddb7678e3d87cb33f561f368836c96a | 1791461e6740f81c2dd6704ae6a899a6707ee6b1 | /HSAHRBNUOJ/P19xx/P1994.cpp | 53e6e3fb1c50b37aa9b06e60573fa980aaaae845 | [
"MIT"
] | permissive | HeRaNO/OI-ICPC-Codes | b12569caa94828c4bedda99d88303eb6344f5d6e | 4f542bb921914abd4e2ee7e17d8d93c1c91495e4 | refs/heads/master | 2023-08-06T10:46:32.714133 | 2023-07-26T08:10:44 | 2023-07-26T08:10:44 | 163,658,110 | 22 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,328 | cpp | P1994.cpp | #include <queue>
#include <cstdio>
#include <climits>
#include <cstring>
#include <iostream>
#define MAXN 15000
#define COW 510
using namespace std;
bool vis[MAXN];
int head[MAXN], nex[MAXN], to[MAXN], cnt;
int wei[MAXN];
int farm[COW];
int dis[MAXN];
int n, p, c;
int u, v, w;
int flag;
int i, j;
int ans = INT_MAX;
qu... |
349ec16de58e64b937637ece07dd2ca32fee0d3e | 7daa65d5e98fdd11bea069541eff706aa6396ed2 | /CopolTest/src/main.h | 427a02f9323747d642bc94c499450952f499635b | [] | no_license | hvdbrand/Copol | c36ef77f22e592956db496b5b78cb583ff7dc12e | cb5458b6a033972c5675fa43776f61512f6b0955 | refs/heads/master | 2021-01-21T14:08:35.282751 | 2016-06-23T12:13:11 | 2016-06-23T12:13:11 | 59,377,474 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,280 | h | main.h | /*
* main.h
*
* Created on: 21 mei 2016
* Author: HBrand
*/
#ifndef MAIN_H_
#define MAIN_H_
// Preprocessor Macro's
// Macro for numerical to string conversion (double expansion required)
#define STR2(X) #X
#define STR(X) STR2(X)
// Include standard libraries
#include <sstream>
#include <... |
abe183529e27d16b04e29d46645067a9a0efb44f | 7472dac3c6389c158799f1dbcfe7cd6307b12dba | /Kernel/Math/Quaternion.h | 6d9cb046695891e6297a5d4175e607077db9c74f | [] | no_license | gustavo-castillo-bautista/Mercury | fe28978f408af10a386e8e4aad9881d51d5efc81 | eeb402ccec8e487652229d4595c46ec84f6aefbb | refs/heads/master | 2023-07-28T06:25:31.278761 | 2021-09-10T14:08:25 | 2021-09-10T14:08:25 | 404,780,941 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,725 | h | Quaternion.h | //Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistribut... |
70d094cd7c7b1859000722da435d2bbf2388878b | 3a7247e5382e028de6f06d4be35d5300fb08bf83 | /Union/RoleData/RoleBaseInc.h | 769b8bf0e41cede99e4ec84587e0735adbf5a75e | [] | no_license | g91/RomLibraries | 8c68cfabe6a68dad7937941a9ec90c3948588a85 | 55a98a86057500527e208a6fd593397839465384 | refs/heads/main | 2023-05-14T07:03:34.253295 | 2021-06-08T07:44:44 | 2021-06-08T07:44:44 | 356,100,453 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 213 | h | RoleBaseInc.h | #ifndef __ROLEBASEINC_H_2004_03_04__
#define __ROLEBASEINC_H_2004_03_04__
#include <windows.h>
#include <VECTOR>
#include <deque>
#include "ObjectStructEx.h"
using namespace std;
#include "RoleBasedef.h"
#endif |
c56e4f91222a475aefe4ecd600c1db8f8bf48b79 | ec98c3ff6cf5638db5c590ea9390a04b674f8f99 | /components/RelatednessComponent/include/components/RelatednessComponent/mean_centre_genotypes.hpp | 28ffd1a900904a8a1d2f21ef4bf8af65df720b4d | [
"GPL-1.0-or-later",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | gavinband/qctool | 37e1122d61555a39e1ae6504e4ca1c4d75f371e9 | 8d8adb45151c91f953fe4a9af00498073b1132ba | refs/heads/master | 2023-06-22T07:16:36.897058 | 2021-11-13T00:12:26 | 2021-11-13T00:12:26 | 351,933,501 | 6 | 2 | BSL-1.0 | 2023-06-12T14:13:57 | 2021-03-26T23:04:52 | C++ | UTF-8 | C++ | false | false | 1,036 | hpp | mean_centre_genotypes.hpp |
// Copyright Gavin Band 2008 - 2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#ifndef RELATEDNESS_COMPONENT_MEAN_CENTRE_GENOTYPES_HPP
#define RELATEDNESS_COMPONENT_MEAN_CENTRE_GENOTY... |
88407cda3c1b4f0e13d0089ae8a9f0cb1090b364 | 7cc59ca225d016e887d9bd41e9b55b44406efba9 | /HashTable/HashTable/test.cpp | 11778cb4627af722646c8caef5c5ea686ababf10 | [] | no_license | Zhaonnnnnnna/Seven-First | 4d955d927d4bf739909081ff95569f1313d4a2c0 | a410856d6a71985cdd5e05d7a78ef6925637f641 | refs/heads/master | 2021-01-17T00:38:59.403746 | 2016-07-18T11:15:18 | 2016-07-18T11:15:18 | 59,896,620 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,584 | cpp | test.cpp | #include"HashTable.h"
void test1()
{
frist::HashTable<int> ht;
ht.Insert(1);
ht.Insert(2);
ht.Insert(3);
ht.Insert(4);
ht.Insert(5);
ht.Print();
}
void test2()
{
frist::HashTable<int> ht;
ht.Insert(1);
ht.Insert(2);
ht.Insert(3);
ht.Insert(4);
ht.Insert(5);
ht.Print();
//cout <<... |
5007e0942e556ea27315424d185a911a342b801c | 0fa8a85b9a83cf0eb6ab9173f2cdfa7d26741a26 | /Sources/Overload/OvTools/include/OvTools/Utils/String.h | 8d5fa0652003da3f7c5646298748bed8d2ed7c0e | [
"MIT"
] | permissive | adriengivry/Overload | 79221401de4cc5864bfdb97289249f23fa2d299b | 151972a6d299cb08d2824af398c12abe4ea3f2e7 | refs/heads/develop | 2023-07-20T12:09:25.481109 | 2023-06-27T13:49:50 | 2023-06-27T13:49:50 | 191,771,083 | 1,465 | 207 | MIT | 2023-07-06T19:30:12 | 2019-06-13T13:45:15 | C++ | UTF-8 | C++ | false | false | 1,144 | h | String.h | /**
* @project: Overload
* @author: Overload Tech.
* @licence: MIT
*/
#pragma once
#include <string>
#include <functional>
namespace OvTools::Utils
{
/*
* Handle random numbers generation
*/
class String
{
public:
/**
* Disabled constructor
*/
String() = delete;
/**
* Replace the first occurence ... |
be59f0d9b6ce993a51c80f7c7803cd3280f33f27 | 6a070489af967c0434589854621316e0615b7f84 | /236labs/3lab236/Scheme.h | 5d1371f23b28750e2305567624bc37efe08144b2 | [] | no_license | jbelyeu/old_class_code | 5fbfcfc0687bb8a9e16234eace72db61b31e3287 | 6a3afb5d795b7d6aca5e6885394f84f0a5a141ee | refs/heads/master | 2021-01-10T08:55:34.728873 | 2016-03-30T23:25:19 | 2016-03-30T23:25:19 | 54,907,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 165 | h | Scheme.h | #pragma once
#include <string>
#include <vector>
using namespace std;
class Scheme: public vector<string>
{
public:
Scheme(): vector<string>()
{}
~Scheme(){}
}; |
d34236f725079e727d6c9a5e0fdaf4826bb2c129 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/3384.cpp | c6d488d7098bcd076960ed6242d15476fe163953 | [] | 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 | 645 | cpp | 3384.cpp | #include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
ll n;
bool fun(ll x){
ll vv=n;
ll s1=0,s2=0;
int cnt=0;
while(vv){
if(cnt%2){
ll val=vv/10;
s2+=val;
vv-=val;
}else{
ll val=min(vv,x);
... |
3cf53209ce7b8af64a626e4d0c83ff921879dc48 | cd28a35b77a4fe9ade88ab8a683d9ead2b780b10 | /pms/catkin_ws/src/rosopencv_node/wrks/skeletonStart/src/rosopencvListner_node.cpp | b436ff70b944d8124913dee38eaebcaa17ab4d7c | [
"BSD-3-Clause"
] | permissive | smagri/uni_masters | e749b06cdb50a7438de4d429c2607a113566c774 | 7b3ce7d27f123f86d206eb58d08d9048081fa546 | refs/heads/master | 2022-11-19T10:11:35.731442 | 2020-07-23T04:09:21 | 2020-07-23T04:09:21 | 281,613,348 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 498 | cpp | rosopencvListner_node.cpp | #include "rosopencv_node/rosopencvListner.h"
int main(int argc, char **argv){
// Set up ROS.
ros::init(argc, argv, "rosopencvListner");
ros::NodeHandle nh;
// eg. Create a new node_example::Talker object.
// node_example::ExampleListener node(nh);
// eg. Create a new node_example::Talker object.
/... |
6a630dedcad7032c798b0d9f9ae2b66bdbd70123 | e4ecca96e8011e578d019e49feb5a8b17a264166 | /CshDetect/reverseSide/creversesidedetect.cpp | ba34cc00d57c6907d3897ef95fa42a398091421a | [] | no_license | wondron/selfSoftWare | eda189a36a82d590702601da303e68bc40f96808 | e735eabe38213d6ebddd134dd22a819dbf7a7683 | refs/heads/master | 2023-06-27T01:05:29.568524 | 2021-08-05T15:00:45 | 2021-08-05T15:00:45 | 393,076,901 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,903 | cpp | creversesidedetect.cpp | #include "creversesidedetect.h"
#include "qdebug.h"
#include "QLine"
namespace CSHDetect {
#define CHECKAlGERR(a, di) \
if(err.isWrong()){\
qDebug()<<"err info:"<< err.msg();\
di.clsName = Algorithm::getErrDescri(err.code());\
di.result = false; \
goto thread_end; \
}
CReverseS... |
9c960f61de783f3d8a70d8a0a0a534a1b48d68b5 | 91c49abf81011a221703afee257b6d6d11f2fb4d | /ai/nn/include/activations.hpp | cfb917130b35d5beeed39033e207c028570db1a8 | [] | no_license | milesand/UniversityCodes | 017660e742cd6cc03f19900545d5a97b48c92dc6 | 3cad638ae9f6bc72fe25281b8f3aff0ebbac4fdb | refs/heads/master | 2022-12-01T09:28:34.107805 | 2020-08-13T07:43:48 | 2020-08-13T07:43:48 | 287,214,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 361 | hpp | activations.hpp | #ifndef ACTIVATIONS_HPP
#define ACTIVATIONS_HPP
class ReLU {
public:
static float activate(float at);
static float derivative(float at);
};
class Tanh {
public:
static float activate(float at);
static float derivative(float at);
};
class Sigmoid {
public:
static float activate(float at);
stat... |
ac291f9080b67822aa2724332ba1c0c21a60113d | f3744bcfa8904ecbf2f052677314ae4c00232257 | /src/directionUpdate.cc | 57ceffb9adc6b4dbe06dcc7ba8f9702258bf2ed6 | [
"MIT"
] | permissive | elifesciences-publications/TeamHJ-tissue | 7b706a50d3cc78b152aa4faef6552e8b7b85ea44 | d16e26ee628ccd06ba2e45c4c7386b31126c86b5 | refs/heads/master | 2021-06-28T06:04:05.868300 | 2017-09-07T07:06:50 | 2017-09-07T07:06:50 | 103,869,914 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 39,946 | cc | directionUpdate.cc | //
// Filename : directionUpdate.cc
// Description : Classes describing direction updates
// Author(s) : Henrik Jonsson (henrik@thep.lu.se)
// Created : June 2007
// Revision : $Id:$
//
#include"directionUpdate.h"
#include"baseDirectionUpdate.h"
#include"myMath.h"
StaticDirection::
StaticDirection(std... |
c04bd1c53d281f4ec7d37a1eba52c0b102ded112 | a7c42ac5ec2199cbb259253944272a8f78051b71 | /303.区域和检索-数组不可变.cpp | aec230181ba937a06723ad4a01c5a9646ac7ecda | [] | no_license | ImportMengjie/Leetcode | 9a894e5a0971860275bfea8ffa1cc69d33298ce8 | 584d3cda27fafcc7d4dd0a101472ebaccfd6a9dd | refs/heads/master | 2023-05-25T13:43:16.397448 | 2023-05-22T08:34:12 | 2023-05-22T08:34:12 | 200,491,766 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,352 | cpp | 303.区域和检索-数组不可变.cpp | /*
* @lc app=leetcode.cn id=303 lang=cpp
*
* [303] 区域和检索 - 数组不可变
*
* https://leetcode-cn.com/problems/range-sum-query-immutable/description/
*
* algorithms
* Easy (60.74%)
* Likes: 159
* Dislikes: 0
* Total Accepted: 39.8K
* Total Submissions: 64.7K
* Testcase Example: '["NumArray","sumRange","sumRa... |
fa75ba3efd32e762bcf3dff75cdd932d34de8233 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HcalAlgo/plugins/DDHCalFibreBundle.cc | d459b46b4f1a9ef05d2263a8ac7c88fcd57ffe84 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | C++ | false | false | 7,388 | cc | DDHCalFibreBundle.cc | ///////////////////////////////////////////////////////////////////////////////
// File: DDHCalFibreBundle.cc
// Description: Create & Position fibre bundles in mother
///////////////////////////////////////////////////////////////////////////////
#include <cmath>
#include <algorithm>
#include <map>
#include <string>
... |
25987a3726f12661586ab04c8f86dcc407a48452 | ea00e619d7504f2346b2fd437b3d1d77b918ff7c | /lib/Sprite.cpp | 2cf68121af92a7cfb193a868aa21c30b4afb61f9 | [] | no_license | nishiokozo/hv | 1e93aa25138b22eb09ffa76a9ddb68ad92d74ae5 | 1b30678f82adb926dd6eb23119a12bd074ae16c3 | refs/heads/master | 2020-03-28T16:12:31.798659 | 2019-04-15T16:39:56 | 2019-04-15T16:39:56 | 148,669,988 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,837 | cpp | Sprite.cpp | #include <iostream>
using namespace std;
#include <string>
#include <stdio.h>
#include <math.h>
#include <ctype.h>
#include <windows.h>
#include <GL/glew.h>
#include <GL/wglew.h>
// #include <AL/al.h>
// #include <AL/alut.h>
#include "vec.h"
#include "gl.h"
#include "bmp.h"
//--------------------------------------... |
ab64a5cb07cb364f1bcbb49182a91a42a7256611 | 2ccb99e0b35b58622c5a0be2a698ebda3ab29dec | /gfx/skia/skia/src/ports/SkImageDecoder_WIC.cpp | fa408836a4a4c09f71d3389ea1121b9d3f653cc8 | [
"BSD-3-Clause"
] | permissive | roytam1/palemoon27 | f436d4a3688fd14ea5423cbcaf16c4539b88781f | 685d46ffdaee14705ea40e7ac57c4c11e8f31cd0 | refs/heads/master | 2023-08-20T10:11:13.367377 | 2023-08-17T07:28:43 | 2023-08-17T07:28:43 | 142,234,965 | 61 | 16 | NOASSERTION | 2022-03-30T07:54:03 | 2018-07-25T02:10:02 | null | UTF-8 | C++ | false | false | 14,769 | cpp | SkImageDecoder_WIC.cpp |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#if defined(SK_BUILD_FOR_WIN32)
// Workaround for:
// http://connect.microsoft.com/VisualStudio/feedback/details/621653/
// http://crbug.com/225822
// ... |
31790c8c6c31d183ffe1d267c0c84f6a13086c32 | 342e6ba96a03dc3904d55a81c5c36a1c59397690 | /GameObjects/GameObjectWithAnimatedSprite.h | 30e68796113b704f4514cffb4079472990c2e114 | [] | no_license | Danboy634/university-module-coding-work-examples | d3c008f655e103aad59d50b382f3b1f8598cf7ef | ad668cedd13d17fc544b9c55eb9b489be885afcb | refs/heads/master | 2020-06-20T06:15:09.387733 | 2019-07-15T17:20:30 | 2019-07-15T17:20:30 | 197,021,923 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 884 | h | GameObjectWithAnimatedSprite.h | #ifndef _GAME_OBJECT_WITH_ANIMATED_SPRITE_H
#define _GAME_OBJECT_WITH_ANIMATED_SPRITE_H
#include "../../Engine/Core/GameObject.h"
#include "../../Engine/Renderer/AnimatedSprite.h"
#include "../../Engine/System/Context/SysContextProvider.h"
#include "../../Engine/Input/InputManager.h"
#include "../../Engine/Inpu... |
1063fffbbcbd73a8fd8a46416c880e375b8505d2 | 50a61e7486db32bfa7322bac1a0f230de25728aa | /EN/ex4/lovedate.cpp | 74908bb50113e8394096db2b1bf651f2d8d36715 | [] | no_license | stefanandonov/OOP_2021 | 3836cb90fe5dca23ad2bf861816d2e2c1edbaac7 | 0a63a5ec49b2e99e32390792537622ab49c6824b | refs/heads/master | 2023-04-28T08:16:15.867270 | 2021-05-20T12:22:00 | 2021-05-20T12:22:00 | 344,101,366 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,527 | cpp | lovedate.cpp | //
// Created by Stefan Andonov on 3/18/21.
//
#include<iostream>
using namespace std;
enum Gender {
M,
F
};
class Mate {
char name[50];
int age;
Gender gender;
public:
Mate(char name[50] = "", int age = 18, Gender gender = F) {
strcpy(this->name, name);
this->age = age;
... |
b1789af02904e8655d226c305bf5ef96b97792ab | ac8fc47476ca70f56697895939f5a33b4f883d1e | /HDU/hdu1233/main.cpp | 1ee77120576502186325dbd4c5dd455bced103bb | [] | no_license | vanxkr/ACM | 50a073d6ce09f1369cf679a4a60009210ed1ca56 | 2b0da89d60ea87c8de9d7a8a6f1c344c601dd76f | refs/heads/master | 2021-05-30T06:43:15.164144 | 2015-12-21T06:02:25 | 2015-12-21T06:02:25 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,046 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <cstdio>
#include <cstring>
using namespace std;
struct map
{
int a;
int b;
int len;
};
int cmp(const void *x ,const void *y)
{
return ((map *)x)->len > ((map *)y)->len ? 1 : -1;
}
int main()
{
ios::sync_with_stdio(false);
int i;
... |
b825aea9c4001a264bb65236e52fc72f4d3a5cd2 | 379ba4a2d468c69b3410d22086c754f03b8cdfed | /xolotl/xolotlPerf/ITimer.h | 54257830f30d06e11743e69acff6dfaf6138d789 | [] | no_license | yankang84/xolotl | 8bf6a31c4dce21f7738a74ebcb8b4bf00d754ac7 | 6e2de59ff3c81d7a0e2f115bbdaaeab3e692788e | refs/heads/master | 2020-03-21T14:46:41.096624 | 2018-06-13T20:04:38 | 2018-06-13T20:04:38 | 138,675,299 | 1 | 0 | null | 2018-06-26T02:40:00 | 2018-06-26T02:40:00 | null | UTF-8 | C++ | false | false | 1,299 | h | ITimer.h | #ifndef ITIMER_H
#define ITIMER_H
#include "mpi.h"
#include <string>
#include <float.h>
#include "../xolotlCore/IIdentifiable.h"
using namespace std;
namespace xolotlPerf {
/**
* Realizations of this interface are responsible for the collection
* of performance timing statistics.
*/
class ITimer: public virtual ... |
4a4c3742eb8ab9bbd730ef331ea86752bf1b1c68 | 3d18159fdbf4ec82f79a2c04110879a04c044366 | /src/image.cpp | 2997b852fc6eb10e091c6b9c0905409e5a72838b | [] | no_license | MattiHyvonen/bicellular | 127d9384316ebaf1b9c3d57ab441684c126f5b9f | 0f32cd369a55947f8e420dcdcf6c2ff8f9a345ef | refs/heads/master | 2020-06-13T05:51:26.103421 | 2019-06-30T22:59:58 | 2019-06-30T22:59:58 | 194,559,665 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,515 | cpp | image.cpp | #include "image.h"
#include "waveField.h"
#include "lodepng.h"
#include <iostream>
static const GLfloat rectangleVertices[] = {
-1.0f, -1.0f, 0.0f,
1.0f, -1.0f, 0.0f,
-1.0f, 1.0f, 0.0f,
-1.0f, 1.0f, 0.0f,
1.0f,-1.0f, 0.0f,
1.0f, 1.0f, 0.0f
};
static const GLflo... |
05a95eb7370b0764162529b67a33edfb2c00a735 | 102c6ad2ea6d1a7481a7079873b27f277e774a7c | /Engine/raytracer/camera.h | 421b0ae68d6d63bd64eabfe252ac6c2a950bbf46 | [] | no_license | panz0r/UniverseEngine | 33fd894de211dee60d31833a95fa7f18219271f9 | 49e2840038db7dbbdce7e2e9f40f4fc413a1fe94 | refs/heads/master | 2021-01-10T18:49:12.417476 | 2016-01-11T08:35:25 | 2016-01-11T08:35:25 | 33,628,658 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 428 | h | camera.h | #pragma once
#include <math/math_types.h>
namespace ue {
class Camera
{
public:
Camera() {}
Camera(const Camera& iCamera);
Camera(unsigned iWidth, unsigned iHeight, float iFov, const Matrix4x4& iLookAt);
virtual ~Camera();
virtual void GenerateRay(float iSampleX, float iSampleY, Ray* oRay);
//private:
Matri... |
988afdeaa7d53ce9d1b834292e0e5add31b68c49 | 8f7c8beaa2fca1907fb4796538ea77b4ecddc300 | /services/ui/ws/window_server.h | 7553519cbc030a2350a0c66114387db2f912ef27 | [
"BSD-3-Clause"
] | permissive | lgsvl/chromium-src | 8f88f6ae2066d5f81fa363f1d80433ec826e3474 | 5a6b4051e48b069d3eacbfad56eda3ea55526aee | refs/heads/ozone-wayland-62.0.3202.94 | 2023-03-14T10:58:30.213573 | 2017-10-26T19:27:03 | 2017-11-17T09:42:56 | 108,161,483 | 8 | 4 | null | 2017-12-19T22:53:32 | 2017-10-24T17:34:08 | null | UTF-8 | C++ | false | false | 17,185 | h | window_server.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 SERVICES_UI_WS_WINDOW_SERVER_H_
#define SERVICES_UI_WS_WINDOW_SERVER_H_
#include <stdint.h>
#include <map>
#include <memory>
#include <string>
#... |
7e7969b152fde7f45c07354f57f3411b67722e03 | b49ef6816d9207f64196bdb97cc93396db4db306 | /loj1006.cpp | b43735d573e9513f475f3c5865da7326752cea12 | [] | no_license | pijushbarai/Light-oj_Solve | ed701d74b2251480dc541fd3ccc86b81fdddaccd | ab3b14095e020144dfcd78c4af074d93e02f9228 | refs/heads/master | 2020-09-25T03:55:09.095927 | 2020-01-05T18:38:32 | 2020-01-05T18:38:32 | 225,912,023 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,173 | cpp | loj1006.cpp | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll dp[100000];
ll a, b, c, d, e, f;
ll fn( ll n ) {
if( n == 0 ) {
//cout << "i am in a " << endl;
dp[0] = a;
return dp[0];
}
if( n == 1 ) {
//cout << "i am in b " << endl;
dp[1] = b;
return dp... |
d0ff2a8a05c0405060521027487c62a4a786e7e8 | 7a7b7288c90a5a6c73662d246e891df09cb1e942 | /src/plugins/mission/mission_equality_operator_test.cpp | e0fbadd439951d6ae587206557208d2939e2139d | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | LeonVincii/MAVSDK | ae64e2cc6a3dd6d4a6133af1041e5c7a1447f3b6 | f2a0b24c964a256917168bc732556f94b2f8372b | refs/heads/master | 2023-03-23T12:54:41.475639 | 2021-03-18T02:48:54 | 2021-03-18T11:45:15 | 348,919,142 | 0 | 0 | BSD-3-Clause | 2021-03-18T02:43:47 | 2021-03-18T02:43:46 | null | UTF-8 | C++ | false | false | 6,673 | cpp | mission_equality_operator_test.cpp | #include <gtest/gtest.h>
#include <limits>
#include "plugins/mission/mission.h"
using namespace mavsdk;
TEST(MissionOperator, MissionItemEqualsOperatorIsValidForDefaultItems)
{
Mission::MissionItem mission_item1;
Mission::MissionItem mission_item2;
ASSERT_EQ(mission_item1, mission_item2);
}
TEST(Missio... |
05d7403492c9e95b6cae9162af9cebb83b39f953 | 58fa1a4852233ae7133cf191ab6ea8b7f8d2408f | /include/ceres/internal/port.h | 513bfa716f8ba4221b4663d3742c30b11eb29665 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | ceres-solver/ceres-solver | 0c4fcbe4f20e6b62bf6c929dc8775ebd9c206780 | ed9921fc2417faeca52ceb4b35287bc9611454eb | refs/heads/master | 2023-08-30T17:25:16.021682 | 2023-08-29T02:53:36 | 2023-08-29T02:53:36 | 15,667,250 | 3,401 | 1,157 | NOASSERTION | 2023-04-30T12:08:50 | 2014-01-06T06:44:59 | C++ | UTF-8 | C++ | false | false | 3,682 | h | port.h | // Ceres Solver - A fast non-linear least squares minimizer
// Copyright 2022 Google Inc. All rights reserved.
// http://ceres-solver.org/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of so... |
cbb6a36f6b9f7a96cc80ad57bd1a818f7e42e902 | 2eecd74bcc98db5c9215155c650cb5639224b6a7 | /hpx/util/preprocessed/bind.hpp | 80198c334739cf0ac1ee859504c4d849429c641c | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | sqandr/hpx | ce1a7f4e06e7f2249c1d7ba59934486ab3381241 | 8a0032be63debae7022fb3b28ec32fcff8e31c5d | refs/heads/master | 2023-09-01T00:17:28.376961 | 2012-08-08T03:02:06 | 2012-08-08T03:02:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 880 | hpp | bind.hpp | // Copyright (c) 2007-2012 Hartmut Kaiser
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_PREPROCESSED_BIND_HPP)
#define HPX_PREPROCESSED_BIND_HPP
#if HPX_FUNCTION_ARGUMENT_LIMIT <= 5
#inclu... |
ecc092c92753ca82c3c98f9cac3186f38cbe321b | 71a3feb35b74211edf3387a039fb8ff6b83d8683 | /llvm/lib/Target/VE/VECustomDAG.h | 84baadfbdd8452dae5cbf75ecde21aa4502dc928 | [
"NCSA",
"LLVM-exception",
"Apache-2.0"
] | permissive | sx-aurora-dev/llvm-project | db6a1f43f10a8877400ed7a4af47f7063fbd8792 | f00086659181f788508904d3e24af41d69b7025c | refs/heads/develop | 2023-09-02T09:46:38.587654 | 2023-09-01T02:07:46 | 2023-09-01T02:07:46 | 204,588,982 | 21 | 10 | NOASSERTION | 2023-09-14T01:30:33 | 2019-08-27T00:56:47 | null | UTF-8 | C++ | false | false | 20,302 | h | VECustomDAG.h | //===------------ VECustomDAG.h - VE Custom DAG Nodes -----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
13a1db4ed820a7aaea843fc4e96ad4a043d9ef60 | abbb1e132b3d339ba2173129085f252e2f3311dc | /inference-engine/src/plugin_api/cpp_interfaces/impl/ie_executable_network_internal.hpp | f432b63a6a40bf3aa5d296f2dbe9a194ed97f76b | [
"Apache-2.0"
] | permissive | 0xF6/openvino | 56cce18f1eb448e25053fd364bcbc1da9f34debc | 2e6c95f389b195f6d3ff8597147d1f817433cfb3 | refs/heads/master | 2022-12-24T02:49:56.686062 | 2020-09-22T16:05:34 | 2020-09-22T16:05:34 | 297,745,570 | 2 | 0 | Apache-2.0 | 2020-09-22T19:03:06 | 2020-09-22T19:03:04 | null | UTF-8 | C++ | false | false | 4,936 | hpp | ie_executable_network_internal.hpp | // Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "cpp_interfaces/impl/ie_infer_async_request_internal.hpp"
#include "cpp_interfaces/impl/ie_infer_request_internal.hpp"... |
83cf3c8f5a10b67f31abb3dd85a024924c7d435c | ebe1223f3f71e06150784aef4dbd33724ae7ed40 | /Projeto-Canvas/Projeto_LP1_ParteII/inserir_retangulo.h | 480b6dcc7c8b5f811f4fabaf2c68f40991d2018c | [] | no_license | Rafael-Praxedes/Projetos | 6a4d836dc1ad15fb2a309541c2a54bf75adb9d7b | 17a5e97b66dd309415b737a9b0936a7d6dc6e3cb | refs/heads/master | 2020-07-08T12:06:16.042369 | 2019-08-22T02:49:43 | 2019-08-22T02:49:43 | 203,667,488 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 556 | h | inserir_retangulo.h | #ifndef INSERIR_RETANGULO_H
#define INSERIR_RETANGULO_H
#include <QDialog>
namespace Ui {
class InserirRetangulo;
}
class InserirRetangulo : public QDialog
{
Q_OBJECT
public:
explicit InserirRetangulo(QWidget *parent = 0);
~InserirRetangulo();
private slots:
void on_Ok_clicked()... |
311f3d7b66d16e72a11d8bc09005f3b5ee23e9f6 | 1791461e6740f81c2dd6704ae6a899a6707ee6b1 | /ZJU/3726.cpp | 143a43e9cf56506c3345a7024deab88653771f0f | [
"MIT"
] | permissive | HeRaNO/OI-ICPC-Codes | b12569caa94828c4bedda99d88303eb6344f5d6e | 4f542bb921914abd4e2ee7e17d8d93c1c91495e4 | refs/heads/master | 2023-08-06T10:46:32.714133 | 2023-07-26T08:10:44 | 2023-07-26T08:10:44 | 163,658,110 | 22 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 573 | cpp | 3726.cpp | #include<bits/stdc++.h>
using namespace std;
const int MAXN=1e5+10;
typedef long long ll;
ll s[MAXN],p[MAXN],c[MAXN];
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
int n,m;
scanf("%d%d",&n,&m);
for(int i=1;i<=n;i++) scanf("%lld%lld",&s[i],&p[i]);
for(int i=1;i<=n;i++) c[i]=s[i]*p[i];
for(int i=n-1;i>... |
8d2fb6cb87bb93ac8bf0936e3cf9621d523a10b4 | cc207c3d434b30c0cb63b3720839af590cc4cdf0 | /암네시아/2017-09-01_Amnesia/Dx3D/cTimer_Manager.h | 0785e95043e5a688376cc4d96f68a880fd45c328 | [] | no_license | SDW101411/SGA | dba730af1c2472c013d25a4e32b743d54531172a | 0a46b3e9241752a828ce083fca8ef157e3cb2c02 | refs/heads/master | 2021-07-11T09:58:13.436851 | 2017-10-14T18:48:47 | 2017-10-14T18:48:47 | 102,058,641 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 723 | h | cTimer_Manager.h | #pragma once
#include "singletonbase.h"
#include "cTimer.h"
//==========================================
//======= ## 20170511 timeManager ## ========
//==========================================
class cTimer_Manager : public singletonBase <cTimer_Manager>
{
private:
cTimer* _timer;
public:
HRESULT init(void);
v... |
3312ae89c4ccc835450504688459ca84e34919bc | 22f801ef0ad614dfe3584cc88e8ee9af4423d504 | /MbedQuadCopter/Scheduler/Tasks/AltimeterTask/AltimeterTask.cpp | 22c2cbe1269bce6bd1da3d9af26e37a74f2ad5fa | [] | no_license | Scubaboy/MbedQuad | 007ee11a7dd5be4daea306a6f955c5a866a3c2e4 | 5a02ce4d27cc66224c20403d99a941a4245755b5 | refs/heads/master | 2021-01-10T15:36:52.590917 | 2015-11-06T15:46:54 | 2015-11-06T15:46:54 | 45,548,575 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | AltimeterTask.cpp | #include "AltimeterTask.h"
#include "mbed.h"
#include "BusUsers.h"
AltimeterTask::AltimeterTask(AltiMeterBase* altimeter,BusCtrl* busCtrl)
{
this->altimeter = altimeter;
this->busCtrl = busCtrl;
}
void AltimeterTask::Init()
{
}
void AltimeterTask::ExecuteTask(int interval)
{
if (thi... |
9e01c8d928843914e27b8f6f70ec5aafbeb2e118 | a637e58ef6dc70053d9ea764ddffd40fe13200a5 | /3.3task/ukkonen/ukkonen.cpp | 79f9f5caffb7559b9e216c822a9944b52e254437 | [] | no_license | IlyaGusev/Algorithms | e45b0e18875449ab56b3c77490d199ae1757e23a | d2d3246c2c44748e504c9dd9f551584bef143037 | refs/heads/master | 2020-04-15T00:40:00.181041 | 2015-08-09T19:49:21 | 2015-08-09T19:49:21 | 8,272,681 | 6 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | ukkonen.cpp | #include <gtest/gtest.h>
#include "ukkonen.h"
#include <algorithm>
TEST(UkkonenTest, Test1){
Ukkonen u("lear.txt");
EXPECT_EQ(u.count("Lear"), 201);
EXPECT_EQ(u.count("Lea"), 214);
EXPECT_EQ(u.count("ear"), 416);
EXPECT_EQ(u.count("Kent"), 134);
EXPECT_EQ(u.count("Edmond"), 12);
EXPECT_EQ(u... |
fc23187c593e92f2065fb97933f125a047f1e5a7 | 5d83739af703fb400857cecc69aadaf02e07f8d1 | /Archive2/b1/301f9633bf81af/main.cpp | 83f8df922814aaa39ea77971b88887513adac711 | [] | no_license | WhiZTiM/coliru | 3a6c4c0bdac566d1aa1c21818118ba70479b0f40 | 2c72c048846c082f943e6c7f9fa8d94aee76979f | refs/heads/master | 2021-01-01T05:10:33.812560 | 2015-08-24T19:09:22 | 2015-08-24T19:09:22 | 56,789,706 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 977 | cpp | main.cpp | #include <boost/preprocessor.hpp>
// This works on both compilers, expands to ( a ) as expected
#define PARENS_AND_SUCH1(FLAG) BOOST_PP_IF(FLAG, BOOST_PP_LPAREN() a BOOST_PP_RPAREN(), b)
// MSVC: syntax error/unexpected end of file in macro expansion
// NDK: unterminated argument list
#define PARENS_AND_SUCH2... |
de4dc6e5683f9b25c459ff285a84a6a875aed520 | 58e9379f76e32f8c4d51fce8586dabcc761d24e6 | /src/barrier/body/BarrierOption.cpp | 646520c05303ce34696a8b7b5cc257b49dc60931 | [] | no_license | Tchoks/Finance | f07dd904f97b945f15e85880f98b81ca742fd717 | e121ecc048a658e9b21679bf2b4034500b64ef3c | refs/heads/master | 2021-03-27T18:54:33.605715 | 2018-01-06T19:55:44 | 2018-01-06T19:55:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,490 | cpp | BarrierOption.cpp | //
// Created by marti on 21/05/2017.
//
#include <iostream>
#include "../header/BarrierOption.h"
BarrierOption::BarrierOption() {}
BarrierOption::BarrierOption(const double &_strike,
const double &_spot,
const double &_rate,
cons... |
aba5195460fc36fa09cbcfdd0c9a498fe1e8cb4d | c71af56951d1c661a5819db72da1caccd9130df2 | /cpp/problems/syntax/syntax258.cpp | 51ecc0a4720155346c7b1f6e57dec36862d1ec0e | [] | no_license | adrianpoplesanu/personal-work | 2940a0dc4e4e27e0cc467875bae3fdea27dd0d31 | adc289ecb72c1c6f98582f3ea9ad4bf2e8e08d29 | refs/heads/master | 2023-08-23T06:56:49.363519 | 2023-08-21T17:20:51 | 2023-08-21T17:20:51 | 109,451,981 | 0 | 1 | null | 2022-10-07T04:53:24 | 2017-11-03T23:36:21 | Python | UTF-8 | C++ | false | false | 264 | cpp | syntax258.cpp | #include <iostream>
void change(int *a) {
(*a)++;
}
int main(int argc, char *argv[]) {
int *a = new int();
*a = 5;
std::cout << a << " " << *a << "\n";
change(a);
std::cout << a << " " << *a << "\n";
delete a;
return 0;
}
|
37d3a9408685efa3cfbf06d860c6b7407b704310 | a78a81a9a6a863602c66a23cbb7e7830fe986e64 | /Codility/PrefixSums/MinAvgTwoSlice.cpp | 90ec3748a0aa3925d1b8211e4f40cc65944b0177 | [] | no_license | PoWeiChiao/Cpp | 9c271818d16182f5b56e47c0709ff10d01e06c4b | 02fcb07d2b2e30f8fe627cdcb68512859d32e042 | refs/heads/main | 2023-06-05T05:46:56.349164 | 2021-06-30T12:59:44 | 2021-06-30T12:59:44 | 370,227,776 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 545 | cpp | MinAvgTwoSlice.cpp | #include <vector>
using namespace std;
int solution(vector<int> &A) {
float min = 2147483647.0;
int minIndex = 0;
for (int i = 0; i < (int)A.size() - 1; ++i) {
int sum = A[i];
int count = 1;
for (int j = i + 1; j < (int)A.size(); ++j) {
sum += A[j];
count++;... |
ceb6375c41af7dcd757a132e209a7769b0411004 | 3100766555672b9ecdad617b9d088322493e5b7a | /ioexa.cpp | 740c5396806db575baff13c7af1c80c4e9f66ab0 | [] | no_license | demonbuaa/learning-IO | 141fbb1972523e2df1712292f264608b1d618559 | 49c1659cf381a3a887d3cd76048565800fe6f030 | refs/heads/master | 2022-12-14T19:20:55.323075 | 2020-09-06T04:32:16 | 2020-09-06T04:32:16 | 293,008,580 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 644 | cpp | ioexa.cpp | #include <iostream>
#include <string>
#include <fstream>
using namespace std;
class Print
{
public:
Print(const string _prefix);
void print(const string info)const;
void prefixUpdate(const string _prefix);
private:
string prefix;
};
Print::Print(const string _prefix)
{
... |
fdf1a0277e81560afc08682295bde2293acbfc0b | 368736720afa8899f9e2efc0f9c0a95200ef4cae | /UVA/11060.cpp | ec159a30b4a88b80152966f1e3e47bc657617b2a | [] | no_license | SamehEtman/Problem-Solving | 91fde8c80ef7097183d29fc18c79358f62576130 | ef2ad281092c111feb056f5e3b735bd255740f7b | refs/heads/master | 2021-12-02T18:14:50.290586 | 2021-10-28T13:53:35 | 2021-10-28T13:53:35 | 392,392,127 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,478 | cpp | 11060.cpp | #include <iostream>
#include <cstdio>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <limits>
#include <cctype>
#include <iomanip>
#include <math.h>
#include <cstdio>
#include <stack>
#include <bitset>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#incl... |
f58b755a4ce0502fcd62b43777c6c79d409a9e1b | e014c8bf5ec7995e1744ebe14fc33d7e4d14bd72 | /src/account/ApplicationSubscription.cpp | a44037ba4e7ddc219af693998bb6f8ebfac58d9d | [
"MIT"
] | permissive | captain-igloo/greentop | 85482995fcf92e4e9fdf0c853ef7399d1a66e390 | 1d534722a4784744b7b52354487fe2fb21770b5a | refs/heads/master | 2021-10-07T17:23:39.812303 | 2021-10-02T08:29:30 | 2021-10-02T08:29:30 | 34,045,300 | 5 | 7 | null | null | null | null | UTF-8 | C++ | false | false | 6,082 | cpp | ApplicationSubscription.cpp | /**
* Copyright 2017 Colin Doig. Distributed under the MIT license.
*/
#include "greentop/account/ApplicationSubscription.h"
namespace greentop {
namespace account {
ApplicationSubscription::ApplicationSubscription() {
}
ApplicationSubscription::ApplicationSubscription(const std::string& subscriptionToken,
c... |
f29ab3fccefb3c834c6ca254538c1726ca054346 | 38287f262bcc40bd1f1706478bd65b3054e17aa5 | /qt/glue.cpp | aeb46534e4356cbddfa6c50a21ce761dc82a0fe0 | [
"MIT"
] | permissive | joeyadams/nukesnake | 70324d955f0ed969322bf2a5f0d811b17cb61c5e | 49dcb2f412d6b665057529981bf81d6cab1dc256 | refs/heads/master | 2021-01-13T02:51:26.369160 | 2017-06-25T22:56:13 | 2017-06-25T22:56:13 | 77,105,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,911 | cpp | glue.cpp | #include "glue.h"
#include "../engine/game.h"
extern "C" unsigned long rand32(void)
{
//randintany assumes RAND_MAX is 32767 or any greater value of 2^n-1 where n is an integer (like 65535, 131071...).
unsigned long ret=rand();
ret|=((unsigned long)rand())<<15;
ret|=((unsigned long)rand... |
6bbd54d7a099a2c6f2dfb2db7a9bf180e865e46a | e81e866997efa1b1f2122db5843c642b890d0c73 | /STL Maps/Map_operators.cpp | 43845da1ca4646f05c0e2d91d1c956e8dbbadcde | [] | no_license | Feroz455/The-CPP-Standard-Template-Library-STL | 99f6795c76d54526be9675ff20fb94e65433ee23 | ee2bd8428f1f6448693e703aec39a9982f9fe3fe | refs/heads/main | 2023-06-04T06:29:59.278389 | 2021-06-22T17:13:56 | 2021-06-22T17:13:56 | 378,417,491 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,265 | cpp | Map_operators.cpp | /*
Cpp_STL_Reference
MAP
program Map_operator
TYPE& operator = (const key_type& key);
map operator = (const map& c2);
bool operator == (const map& c1, const map& c2);
bool operator != (const map& c1, const map& c2);
bool operator < (const map& c1, const map& c2);
bool operator > (const map& c1, const map& c2);... |
c364d9998d276ab63f90cc489184a1e6701365ac | f11632486e338934565632ba052d9c4ea7c20c36 | /src/ecs/system/reinforcingsystem.h | f0864763a11b2756ce3f2cb7bac11f1d6779a639 | [] | no_license | alesegdia/phackman | 3e354169673ed54d868c35f2dba48aef4e97f475 | e3b1930350634ca158ea244856d730a91db36c90 | refs/heads/master | 2022-11-02T06:03:50.920353 | 2022-10-28T07:01:31 | 2022-10-28T07:01:31 | 52,993,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,788 | h | reinforcingsystem.h | #pragma once
#include <secs/secs.h>
#include "../components.h"
#include "../../map/mapscene.h"
#include "../entityfactory.h"
class ReinforcingSystem : public secs::TypedEntitySystem<ReinforceComponent, TileComponent, ResourceStorageComponent>
{
public:
ReinforcingSystem( MapScene& map_scene, EntityFactory& fact... |
90fd112cdda4c8148d70f20aabaf1b83fa658b4b | 2f8a62036809b47734acd58db13efa3b8160d8db | /src/kernels/gpu/common.hxx | c3c13ca93605336f18bfc944998cab85b8acc40c | [
"BSD-3-Clause"
] | permissive | NLAFET/SyLVER | 2cb89735cd5487524cef587b46e45f4928c7c825 | a8e13c55b77b04420a74b70085a359de845c18e7 | refs/heads/master | 2022-06-28T04:16:34.848131 | 2020-05-11T20:14:16 | 2020-05-11T20:14:16 | 69,860,877 | 10 | 5 | BSD-3-Clause | 2020-03-23T20:49:43 | 2016-10-03T10:26:49 | C++ | UTF-8 | C++ | false | false | 2,238 | hxx | common.hxx | /// @file
/// @copyright 2016- The Science and Technology Facilities Council (STFC)
/// @author Florent Lopez
#pragma once
// SyLVER
#include "sylver_ciface.hxx"
// STD
#include <iostream>
#include <string>
// CUDA
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <cublas_v2.h>
namespace sylver {
namespace g... |
581571f4b8f6a11ba3c5bcfcfbb96861e2c7ded4 | 60b974cfc58382e94af7de68abed22e249801139 | /ABC/ABC063/ABC063C.cpp | ff19fc3157174dc60c640e2182bde3fe0aee5db3 | [] | no_license | Masahiro-Obuchi/Atcoder | dc9dcbc6cf80a24f1f4b93b53b55f5b7250d98af | b0f07eddef7dd634d49f754ca653d1f7537a0555 | refs/heads/master | 2022-03-10T17:57:02.771330 | 2022-03-02T15:04:30 | 2022-03-02T15:04:30 | 182,256,969 | 0 | 1 | null | 2020-07-02T09:34:32 | 2019-04-19T11:49:46 | C++ | UTF-8 | C++ | false | false | 716 | cpp | ABC063C.cpp | #include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 1LL << 60;
int main()
{
int N;
cin >> N;
vector<int> s(N);
for (int i = 0; i < N; i++)
cin >> s[i];
int ans = 0;
for (int i = 0; i < N; i++)
{
ans += s[i];
}
if (ans % 10 !... |
12291771ac713c5e256a9daf829411746aea85fd | a2e9639153e71dcf84d34b7349d69aa31b2eb678 | /zBTLC/zBTLC/game_sa/CLoadedCarGroup.h | 754bc7edc64d9dbe7d41d1a97b7b7a2cdcff9266 | [] | no_license | DaDj/GTA-BTLC | ade014b3d8dbb1ecce6422328be95631226cd6f4 | 15d60cb5d5f14291317235066d64a639fffaf3ea | refs/heads/master | 2023-08-16T23:12:57.867204 | 2023-08-13T21:45:06 | 2023-08-13T21:45:06 | 83,485,003 | 4 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 179 | h | CLoadedCarGroup.h | #pragma once
#include "plbase/PluginBase_SA.h"
class CLoadedCarGroup {
public:
short m_members[22]; // model ids
short field_2C;
};
VALIDATE_SIZE(CLoadedCarGroup, 0x2E); |
3579036c550535b810dd8abefe818396ef09722f | ec2bd2f949d0e74e444b1fc9c0335790e623880a | /Menu.cpp | 1c056bdd4c5a077dd977abdc6c40708d9230efe6 | [] | no_license | A1xarT/DSA_CourseWork | 22d6dda8500dd8fc6141f205b7d96a9ef0fae51b | c6df870a91060a8ca17d67df297a47e0fdb9af62 | refs/heads/master | 2022-11-28T06:07:20.529778 | 2020-08-09T11:47:52 | 2020-08-09T11:47:52 | 260,264,089 | 1 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 3,439 | cpp | Menu.cpp | #define _CRT_SECURE_NO_WARNINGS
#include "Menu.h"
#include <stdio.h> // для printf()
#include "Printing.h" // для доступу до функції виведення масиву й вектора
#include "Windows.h" // для system("cls")
#include <conio.h> // для _getch()
#include "Table.h" // для виклику table_form()
const int l = 5; // змінна д... |
4a8f2a7da91f95b87bfa5f13f1972f0058eaa6e4 | 79a224abb4777f7590165104fe1b2c0d95df1ee1 | /MyVirus/Flu.h | 7d79652ca2dee760fde87f37a8337bd64bc9f93c | [] | no_license | cntt2-linhhua/C-plus-plus | cb540016fe4f9284f12550517b8183279a3f6dba | ed9b07e9549496620f30ada15c851afd79218a25 | refs/heads/master | 2020-05-31T04:46:59.308661 | 2019-06-20T03:20:18 | 2019-06-20T03:20:18 | 190,106,033 | 0 | 0 | null | 2019-06-20T03:20:19 | 2019-06-04T01:15:18 | C++ | UTF-8 | C++ | false | false | 316 | h | Flu.h | #pragma once
#include<iostream>
#include<list>
#include "MyVirust.h"
class Flu :public MyVirust
{
private:
int m_color;
public:
Flu();
Flu(int m_color);
Flu(const Flu *flu);
~Flu();
void setM_color(int);
int GetM_color();
void DoBorn();
list<MyVirust*> DoClone();
void DoDie();
void InitResistance();
};
|
2ba5729cafbbe0bdd2697e27836eea3cb91bad01 | eca09688c34f3a7daa7ecdbfa11b3cf34bf03ac2 | /src/cryptonote_core/protobuf/cryptonote_to_protobuf.h | 52fcc42ad8c30f87536c6fb4506ec8d634dbbf11 | [
"BSD-3-Clause"
] | permissive | VanGrx/safexcore | 46d0ecdb113df39e8420b78a6ee6a59c323002da | 99468d78ea628ceed7e332b11839ae4b037263b6 | refs/heads/master | 2021-11-21T15:05:38.657902 | 2021-08-31T16:27:27 | 2021-08-31T16:27:27 | 210,320,866 | 5 | 0 | NOASSERTION | 2020-08-03T10:48:47 | 2019-09-23T09:52:42 | C++ | UTF-8 | C++ | false | false | 6,455 | h | cryptonote_to_protobuf.h | // Copyright (c) 2019, The Safex Project
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of
// ... |
01847a1a5328947b471e23d521e12662376ab3a3 | 4c1f8e1a5e67f088d1507670fb3964afe6ac4b62 | /apps/pipslab/StripMocap/src/testApp.cpp | a247bee4d0edc49f53c11239ba73961a4d39ad91 | [] | no_license | keezpipslab/potator | 613b7654489fd537e303ee67ea9336564c2d2f88 | 36bd711dc1e3be296995ebd90f7a91c3df9eca2e | refs/heads/master | 2021-01-25T03:40:22.144966 | 2012-12-28T12:26:31 | 2012-12-28T12:26:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 60,291 | cpp | testApp.cpp | #include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
vidBig = true;
camWidth = 720; // try to grab at this size.
camHeight = 576;
singleField= true;
if (singleField){
picHi= 2048;
bigCharTexture = new unsigned char[camWidth*picHi*3];
... |
aeee4aeb2654075171f0ac5ed2a815363a11ada3 | ada6fba5c8bf6f6e389c7207e2017339be02a7f0 | /2webclient/MNDBServer.h | f64849da5bdb9a7563eabf820688583bf0d6d467 | [] | no_license | JasonOldWoo/linux-C-CPP | 93131c524cded72a0843666c8d854def54192a99 | 47e060aa8ce3f66727a4ea6a3916c9b6b7861087 | refs/heads/master | 2021-01-24T13:33:11.522681 | 2019-05-16T15:49:02 | 2019-05-16T15:49:02 | 20,249,842 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 4,656 | h | MNDBServer.h | #ifndef __MNDBSERVER_H_
#define __MNDBSERVER_H_
#include <iostream>
#include <string>
using namespace std;
#include "udxos.h"
#include "DeviceSDK.h"
#ifdef WIN32
#ifdef _DEBUG
#pragma comment(lib,"../../DeviceSDK/fastudx_win32/DeviceSDK.lib")
#pragma comment(lib,"../../DeviceSDK/fastudx_win32... |
8fbff371d9d88471510ad70df4c002ef4d4759bd | 9ff69f2638fe679b9fbb3ac682d356b59c50b068 | /code archive/GJ/a027.cpp | 9666119d9bb136ce63f5edf028dcc3d402aeb151 | [
"MIT"
] | permissive | brianbbsu/program | 7f7c3d4aacea32ada7f74cf5caffa9931be280c4 | c4505f2b8c0b91010e157db914a63c49638516bc | refs/heads/master | 2021-05-23T04:53:49.618057 | 2020-04-18T15:21:10 | 2020-04-18T15:21:10 | 81,056,684 | 4 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 700 | cpp | a027.cpp | /**********************************************************************************/
/* Problem: a027 "倒數計時 (*)" from for 迴圈 */
/* Language: C++ */
/* Result: AC (4ms, 184KB) on ZeroJudge ... |
48d737ef4a93ed28cd561a8d90c703816a8644f0 | c3de57676ebc2c4f6d0849347798534f85ab9a72 | /Apps/BenderApp/IDCustomYuMiControlInterface.h | 710147b56dc150a5fc3068b0ab76016244da6eb9 | [] | no_license | plusminus34/Interactive_thin_shells_Bachelor_thesis | 0662f6d88d76d8d49b2b6066bf1d2b0fc258f01e | 85f034a476eeab8d485f19a6ea3208498061a4da | refs/heads/main | 2023-03-10T15:15:53.666726 | 2021-02-24T08:01:25 | 2021-02-24T08:01:25 | 341,820,202 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,671 | h | IDCustomYuMiControlInterface.h | #pragma once
#include <future>
#include <atomic>
#include <deque>
#include "ControlLib/YuMiControlInterface.h"
#include "RobotMount.h"
class IDCustomYuMiControlInterface;
class YuMiJointTarget
{
public:
YuMiJoints targetJointsLeft, targetJointsRight;
double targetTime;
};
class YuMiCommandBuffer
{
friend I... |
43d4b6f62ac47dd1a9d52a2790cc5e2e098fcc15 | 3bee709220615c9b12c8e2fa155e95820e6f26b8 | /superneurons/src/initializer.cpp | e4fb60c6f00b1540075e994ee586578fcb8a3107 | [
"MIT"
] | permissive | Phaeton-lang/baselines | a9f61bb3e2b4565cb56b3de2fd5617d508d2dd72 | c09ad62d9ca336713ee6b523a725ccf49f9784c2 | refs/heads/main | 2023-04-06T20:14:33.522817 | 2022-02-20T05:55:50 | 2022-02-20T05:55:50 | 331,187,281 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,517 | cpp | initializer.cpp | //
// Created by ay27 on 7/11/17.
//
#include <initializer.h>
#include <util/common.h>
#include <sys/time.h>
#include <math.h>
namespace SuperNeurons {
template<class value_type>
void sequential_initializer_t<value_type>::call(value_type *cpu_ptr, size_t N, size_t C, size_t H, size_t W) {
long total = N * C * H *... |
28f3e3946cb24bd639bb878b3ab593c05e18f8e5 | d3502f987afe040a0907d9b99bca4b595fd7d944 | /D3D9CallbackSC2/Threads/WorkerThread.h | a791bdfa1ad478ef26700819fb01f5f41b9e06b1 | [] | no_license | cnsuhao/sc2bot | e23e2519a978cfe6d6fcec279826073106006831 | 8789647503963b4904646b5b541dda2f087f3e56 | refs/heads/master | 2021-05-26T15:58:11.861886 | 2012-10-09T02:22:28 | 2012-10-09T02:22:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 257 | h | WorkerThread.h | //
// WorkerThread.h
//
// AIThread responsible for idle workers
//
class WorkerThread : public AIThread
{
public:
void Reset();
void Update();
void ProgramSucceeded();
void ProgramFailed();
private:
ProgramIdleWorker _IdleWorker;
};
|
b928848a635870287d47b8ee75e2c47b75b4413d | 9478ad42528ee09c697f6833bba21b21c0452712 | /Products/f_stockcounts.cpp | 1b54f9eaf2727bc4b5db635b0198788b85ae581b | [] | no_license | ashraf-kx/stock-manager | 2afc5e4e0d83fe97b9b145ddc2980b4cffb7e4f3 | e755063e23f10a60f39a125626e05a7ab6dd624f | refs/heads/master | 2020-05-09T17:29:09.623493 | 2017-08-17T12:12:53 | 2017-08-17T12:12:53 | 181,310,048 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 235 | cpp | f_stockcounts.cpp | #include "f_stockcounts.h"
#include "ui_f_stockcounts.h"
F_StockCounts::F_StockCounts(QWidget *parent) :
QFrame(parent),
ui(new Ui::F_StockCounts)
{
ui->setupUi(this);
}
F_StockCounts::~F_StockCounts()
{
delete ui;
}
|
20559981eeace26e2e3acd10f0aff6faa8864a35 | 27fb19be57e62afecc937d8d0a2d04b0622a19c7 | /160-C.cpp | 2ad471b13e95114f812ed1b46f25bb79f915d0e4 | [
"MIT"
] | permissive | anant-agarwal/codeforces | cbf1d836db52ee93690a483a2ed312996353c128 | 3907be04bc0a86e39d429e33ed21dd7a452a6e5d | refs/heads/master | 2021-01-10T13:48:48.084680 | 2015-11-12T20:40:40 | 2015-11-12T20:40:40 | 46,074,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 559 | cpp | 160-C.cpp | #include<iostream>
#include<cstdio>
#include<vector>
#include<cstring>
#include<algorithm>
using namespace std;
int main()
{
long long n,k;
cin>>n>>k;
//cout<<n<<" "<<k;
vector<long long>v;
for(long i=0;i<n;i++)
{
long long x;
cin>>x;
v.push_back(x);
}
sort(v.begin(),v.end());
long long q=(k-1)/n;
long ... |
40ff2861ad6d8742de8110730722c145e7bfb23a | 510c0ebffbd90a6b288d41545fa301f71686f421 | /lib/desContext.h | 55158ab4bb8a459fc23b018009fe8e893c491378 | [] | no_license | Quantum-Platinum-Cloud/libsecurity_apple_csp | dd1a4dc18be2507a9af7f9e84d9c28f4887a189f | f31695b5799499c91c0751f30468b0c4353cb1df | refs/heads/main | 2023-08-22T10:28:40.375438 | 2011-05-23T21:50:43 | 2021-10-06T05:22:56 | 589,054,570 | 1 | 0 | null | 2023-01-14T22:43:55 | 2023-01-14T22:43:54 | null | UTF-8 | C++ | false | false | 3,059 | h | desContext.h | /*
* Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
*
* The contents of this file constitute Original Code as defined in and are
* subject to the Apple Public Source License Version 1.2 (the 'License').
* You may not use this file except in compliance with the License. Please obtain
* a copy o... |
657e70af31ec1fbb107c3b86b2b002bd9f64885b | c77ea774a15b87212f0fbc73513673716804cb13 | /inc/Graphs/EdgeGraph.h | 066d15a8c64afd02567dfbae6ea79d530ebe64b5 | [] | no_license | jalamao/netvizGL | d49b6e2b0f52904abfff991a98ec6dec630b84c2 | 18bcf376a9109c43dc447bd8a13e9c3b1e164741 | refs/heads/master | 2021-01-16T21:30:15.418333 | 2017-03-29T17:42:58 | 2017-03-29T17:42:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 491 | h | EdgeGraph.h | //
// Created by werl on 11/11/16.
//
#ifndef NETVIZGL_EDGEGRAPH_H
#define NETVIZGL_EDGEGRAPH_H
#include "Graph.h"
class EdgeGraph : public Graph {
public:
EdgeGraph(char *filePath);
EdgeGraph(char *filePath, vector<int *> newEdgeList);
EdgeGraph(vector<int *> newEdgeList);
virtual void draw();
virtual v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.