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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5eb2ffdb5a4dea1425a7d8593fee3646a33b2c3d | 193f83a14d8df7812754692a8a1e849e5f24ac55 | /3lr/2.cpp | 4aec89dd30f0c85a693c29199edfdcfd5380170e | [] | no_license | denchik666s/c | c0d941a68a88a4fd02ccbd984904381622541672 | a450777f2ba2f287d2664db166e2c29117f6426b | refs/heads/master | 2021-05-22T15:59:42.298517 | 2020-04-16T08:40:43 | 2020-04-16T08:40:43 | 252,993,193 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 150 | cpp | 2.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main() {
int n = 10+ rand() %(91);
cout<<n;
return 0;
}
|
7b7b0fdc90ad3a1a969fd8e457b4fc87cd1f5813 | 5975831759e2a4cb5e10c2423b0ebdffde9ffab9 | /src/bucket_sampler.h | 8970374ae14ba59f9ccd18a49a27e8794399635b | [] | no_license | cvtuge/vstab | 5b7b82c57c468e88680e8872d1b76d4e030e730f | 8fe6f3f23d51429f96d9e578091e648ae8e7f691 | refs/heads/master | 2022-01-10T22:38:24.142515 | 2019-04-20T09:47:43 | 2019-04-20T09:47:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 464 | h | bucket_sampler.h | #pragma once
#include <random>
class BucketSampler {
public:
using Bucket = std::vector<int>;
BucketSampler(const cv::Mat& m1, const cv::Mat& m2, const int num_buckets_x=8, const int num_buckets_y=5);
bool getSubset(cv::Mat& out_ms1, cv::Math out_ms2, const int model_points, const int max_attempts);
private:
... |
4950b89511272cd7c649dc15f9d8918e67526239 | b9e9938343b60cb636923fa062b665794de2d16f | /log/inc/handle.h | 8d89d20b8dafd6776ecd791603ebd1b7b28f61cc | [] | no_license | changyuezhou/commlib | d4d2a5feb45820b0ea65939924e3e2bda46bde7f | d1d2a87f84fc5a6f52e53fda612da9f23d85663a | refs/heads/master | 2021-09-11T19:10:11.500357 | 2018-04-11T06:42:45 | 2018-04-11T06:42:45 | 109,566,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,573 | h | handle.h | // Copyright (c) 2013 zhou chang yue. All rights reserved.
#ifndef COMMLIB_LOG_INC_HANDLE_H_
#define COMMLIB_LOG_INC_HANDLE_H_
#include <unistd.h>
#include <string>
#include <cstdio>
#include <iostream>
#include "commlib/public/inc/type.h"
#include "commlib/log/inc/record.h"
#include "commlib/log/inc/format.h"
#inclu... |
5147ea1a3ee0fff593df3bfa4cf21ade4e82fc34 | b2ab7d82c16746012a90530554718af5b58fc3bc | /class_practice/main.cpp | de635a5a3c883db11e30bc693af8317b842e04c1 | [] | no_license | RVL224/EstimationTheory | 08f8b01c4f2d11b1d83af0425dcc918444c83f29 | c1d3ef19d63a82fe69bcf18c1219eee2986e7269 | refs/heads/master | 2022-08-31T11:10:30.168936 | 2020-05-30T09:10:26 | 2020-05-30T09:10:26 | 256,185,388 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 889 | cpp | main.cpp | #include "tool.h"
#include<iostream>
using namespace std;
int main()
{
CComplex a(1,2);
CComplex b(3,4);
CComplex c = a+b;
cout << c.GetReValue()<<","<< c.GetImValue() << endl;
CComplex d = a+1;
cout << d.GetReValue()<<","<< d.GetImValue() << endl;
CComplex e = 1+a;
cout << e.GetReValu... |
95a31ebc465f23f58e24c971533a4afc6c2023ff | f28a73354b449c690b4aaa712d3338fce3a91c79 | /TreeFiller/src/FillerPhotons.cc | c0f518cb0a2f78dba45b862e0fc3bb852684874a | [] | no_license | GuillelmoGomezCeballos/MitProd | 035c358598acc48eaa631e3f68102a24eec1be16 | 5de27f8a5b807623999ea829d677830d18772be5 | refs/heads/master | 2021-01-20T06:38:50.958185 | 2014-08-14T02:16:36 | 2014-08-14T02:16:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,746 | cc | FillerPhotons.cc | // $Id: FillerPhotons.cc,v 1.33 2013/07/01 20:18:00 paus Exp $
#include "MitProd/TreeFiller/interface/FillerPhotons.h"
#include "DataFormats/TrackReco/interface/Track.h"
#include "DataFormats/TrackReco/interface/TrackFwd.h"
#include "DataFormats/EgammaCandidates/interface/Photon.h"
#include "DataFormats/EgammaCandidat... |
e376e7d60dd911bdf0519ec8c42f2babb96f932a | fd7ed208359ad08fa6bb716e1b008aa4e39e7efe | /labs/J70_State/cpp/complete/src/OrderStatus.hpp | a6a19cb5de499bb70c201508310b854179804a48 | [
"MIT"
] | permissive | Meera94/design_patterns | 54ca8f2796d5c878487c82f5d758b5811d3bcef2 | bf9f599149359921c8171b82d102a2f2904f915e | refs/heads/main | 2023-07-02T04:02:11.116457 | 2021-08-09T14:49:44 | 2021-08-09T14:49:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,716 | hpp | OrderStatus.hpp | #pragma once
#include <memory>
using namespace std;
class OrderStatus
{
public:
virtual shared_ptr<OrderStatus> next(shared_ptr<OrderStatus> newStatus) = 0;
virtual string toString() =0;
};
namespace OrderStatuses {
extern shared_ptr<OrderStatus> created;
extern shared_ptr<OrderStatus> filled;
extern share... |
aef0eb16dc258b5e6ce4b3047b00d770f1a6b2cc | 085036d7cca1839f4296a6ed55639ba326bf3f75 | /APT 1020B/Area of a rectangle using a function.cpp | 3fcf577877c2715a51ef8dc69826a30d63134dee | [] | no_license | IanMwiti/C-projects | 436d003f57f3831fa2fff89eb36838c58b5635a7 | 3b08e773138cac51394f416f245ac657aa773e44 | refs/heads/master | 2020-06-24T05:03:17.743590 | 2019-07-25T16:05:15 | 2019-07-25T16:05:15 | 198,856,077 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 195 | cpp | Area of a rectangle using a function.cpp | #include <iostream>
using namespace std;
int area(int x,int y)
{
int area;
area=x*y;
return (area);
}
int main()
{
int x, y, p;
x=9;
y=8;
p=area (x,y);
cout<<"The area is \n"<<p<<endl;
}
|
a52056c7b633093b494ee81b924a331023b16095 | 9e84d7a0a22eb94722cbef7bd819afb06b28d49a | /pgwriter.cpp | 41bea955b27af4699e467d2d7ddbeef5bcdb7d9d | [
"MIT",
"OLDAP-2.8"
] | permissive | commandus/wacs | 606e4830d1b5d9d9edac112f9d98bf93bd640972 | e00740fc856edbf1bf1b0fa13a7f51533145be80 | refs/heads/master | 2020-09-22T10:06:28.160547 | 2019-07-02T01:57:28 | 2019-07-02T01:57:28 | 225,149,885 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,820 | cpp | pgwriter.cpp | /**
* Write to the PostgreSQL database
*/
#include <algorithm>
#include <iostream>
#include <cstring>
#include <unistd.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <nanomsg/nn.h>
#include <nanomsg/bus.h>
#include "errorcodes.h"
#include "pgwriter.h"
#include ... |
8e789da2ba14d107f1dde09ceae4a854da38091b | ea02017f2a5bd6ac68791993083b249da60b2602 | /include/PlayerModelInventory.h | f8cd0aafa62b3f17c526f6262b1f7478834430ab | [] | no_license | aarribas/WizardsAndOrcs | fc7fbdb888f17f1f677ea0ddbd650eeff9ba0aff | c8e7e1c9ae0f6f1f852ac5f7f80fe8ccc902fdba | refs/heads/master | 2020-05-19T07:38:34.978921 | 2013-09-20T18:41:33 | 2013-09-20T18:41:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 971 | h | PlayerModelInventory.h | #pragma once
class PlayerModelInventory
{
friend class PlayerModel;
public:
PlayerModelInventory();
~PlayerModelInventory();
public:
static const int INVENTORY_MORE_COINS;
static const int INVENTORY_MORE_PROTECTION;
static const int INVENTORY_MORE_GEMS;
static const int INVENTORY_MORE_BOOTS;
static const int IN... |
68226da4bd6b4c9a2640df73cd6361b3224848a0 | 908f7c9be9f879c914ed2298d62e5fb5bd13ecb2 | /data-struct-and-algorithms-III/List.h | 7e3100dd1b2296121e88e6a3e262f5caea5523ba | [] | no_license | bartoszpogoda/data-struct-and-algorithms-III | a864d2d3d2ff5f6abb025f1094af5370b65a62e6 | b93f1f90baae9463bb1bb47183a3b7f9c84d3f87 | refs/heads/master | 2021-03-30T18:17:07.938467 | 2017-06-08T05:18:52 | 2017-06-08T05:18:52 | 92,441,857 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,497 | h | List.h | #pragma once
#include "ListNode.h"
#include <iostream>
template <class Element>
class List {
ListNode<Element>* head;
ListNode<Element>* tail;
int currentSize;
public:
List() : currentSize(0), head(nullptr), tail(nullptr) {}
~List();
int size() { return currentSize; }
void addFront(Element element);
void ad... |
42be97430ecf6c0826022c8c535656ff2ae63cc9 | a02ccb5dff094fad8bcd691dda234d50ff768299 | /plugin/multilevelProposeROI/multilevelProposeROIPlugin.cpp | d9ad8adddf8fd21a8430b64b6e2c7bd9252c66c4 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"ISC",
"BSD-2-Clause"
] | permissive | NVIDIA/TensorRT | 5520d5a6a5926a2b30dbdd2c5b2e4dfe6d1b429b | a167852705d74bcc619d8fad0af4b9e4d84472fc | refs/heads/release/8.6 | 2023-07-29T05:39:45.688091 | 2023-06-09T22:29:09 | 2023-06-09T23:04:18 | 184,657,328 | 8,026 | 2,096 | Apache-2.0 | 2023-09-13T17:30:16 | 2019-05-02T22:02:08 | C++ | UTF-8 | C++ | false | false | 18,962 | cpp | multilevelProposeROIPlugin.cpp | /*
* SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
*
* 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 Lic... |
6239714233b098940bb061d43d1be0bd13e06d0b | 9209a62997622a50e1520048381ac6651b32030a | /hprof/test/types/test_instance.h | bd9797a57d91b867c0336ded0472c4ed14413514 | [
"Apache-2.0"
] | permissive | pvoid/android-hprof-browser | c88529591e97c10c98a10ad90a6f8b9107ce1288 | 548d5429becde0bbb746ecf71f505dd1b70d8547 | refs/heads/master | 2021-09-25T17:03:36.456763 | 2017-11-23T09:27:02 | 2017-11-23T09:27:02 | 103,631,792 | 1 | 0 | Apache-2.0 | 2018-10-24T11:15:19 | 2017-09-15T08:09:52 | C++ | UTF-8 | C++ | false | false | 2,699 | h | test_instance.h | ///
/// Copyright 2017 Dmitry "PVOID" Petukhov
///
/// 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 ... |
8c66d0bafaf1816506886bf3d9dd28eba32c56b9 | e3e8b7056b8c5a604cc1a576da0d6d5134870f93 | /src/lc153/lc153.cpp | 38b99f6cf162a5c76bfe74451b4fd7637614902d | [] | no_license | zou-song/leetcode | a2acc8d01538f8bc84dbb83f11c24fe876cd071b | 5172da312cba7e185d155386bc5527432c40c2f8 | refs/heads/master | 2020-04-25T14:57:22.251872 | 2019-05-20T11:59:18 | 2019-05-20T11:59:18 | 172,860,827 | 0 | 0 | null | 2019-05-20T11:59:19 | 2019-02-27T06:55:26 | C++ | UTF-8 | C++ | false | false | 950 | cpp | lc153.cpp | #include "lc.h"
class Solution {
public:
int findMin(vector<int>& nums) {
int len = nums.size();
int beg = 0, end = len - 1;
while (beg < end)
{
int mid = (beg + end) / 2;
if (nums[beg] <= nums[mid] && nums[mid] <= nums[end])
return nums[beg];... |
f497549bcba75e84ad8c1c9d302c6dd52f7fa555 | 17ea9e26a0aefd6ebc5f0ac5bec4918c92d8415c | /src/CliOptions.cpp | c24cf53a5c0d2cc28e87de6df640670b2cc1ef4c | [
"MIT"
] | permissive | jieziww/JoSIM | 5232d780b32f48786a132b078d31cd34ac014595 | a5a055b8aedb4e5966ae7c83257489e2be28ed16 | refs/heads/master | 2023-01-08T04:56:23.212464 | 2020-08-18T08:44:38 | 2020-08-18T08:44:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,737 | cpp | CliOptions.cpp | // Copyright (c) 2019 Johannes Delport
// This code is licensed under MIT license (see LICENSE for details)
#include "JoSIM/CliOptions.hpp"
#include "JoSIM/Errors.hpp"
#include <iostream>
#include <iomanip>
#include <cstring>
using namespace JoSIM;
CliOptions CliOptions::parse(int argc, const char **argv) {
CliOp... |
9ef6e76199ae6530b202784ed04f5328b2a3b756 | 2f2c2a0bf9d77c0a5ee10fbc6390a7aaca637c4b | /algorithms/calc_force.cpp | 23458e7b16f37ab1c3acfb5e90c7672c10a1ad07 | [] | no_license | carisamuelson/StepRite | 143d622113fe726331c43e5d16d7897b56ae27d5 | bd2f9cc21cd885af7c62985dca2c313b2756451e | refs/heads/master | 2016-09-15T20:41:21.925429 | 2014-01-08T14:51:34 | 2014-01-08T14:51:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,074 | cpp | calc_force.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include "lib.cpp"
double * ForceCalculations(double ** lcsv, double ** rcsv, int num_elements, int weight, int target);
double * ForcePerSensor(double ** lcsv, double ** rcsv, int num_elements);
using namespace std;
int main(int argc, char *argv[])
{
if... |
5ab2447ccf3e6391d9d8f2191ab2da8cfb4374f9 | 1b57a5c1d0a85b6d9092a354fd5bbc9e950d4446 | /Include/Tubo.h | 10cb54ccc2ff40aaf1eb80ab9ebd7b2c083efca2 | [] | no_license | martinscairo/tubos | 3e157025440692e17e0d28bffe363ff6d300f18a | e189ff5fc40c8a763baf338483931c06dd1118d6 | refs/heads/master | 2021-01-01T04:26:46.575616 | 2016-04-26T02:12:43 | 2016-04-26T02:12:43 | 56,858,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,316 | h | Tubo.h |
#ifndef TUBO_H
#define TUBO_H
//==============================================================================
// INCLUDE C++
//==============================================================================
#include <Ponto2D.h>
#include <Geometria.h>
#include <iostream>
/... |
b7b8ca2be8cd331cdf403ef4747c4680e9793619 | 8ebc3dcfd7d046672d1847b9308b8c57accb564b | /src/obj/camera.hpp | f274150737beb3f852b8d021eb05d7449c22fb07 | [] | no_license | tcmug/gpm | 9a4e4baef45523a78939b4e8cb20576f709045a6 | 11e9d266fa4387be422271f4d921689a732aea76 | refs/heads/master | 2021-01-23T13:09:50.971655 | 2018-01-11T19:35:05 | 2018-01-11T19:35:05 | 93,231,838 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,722 | hpp | camera.hpp | #ifndef CORE_CAMERA_HPP
#define CORE_CAMERA_HPP
#include "common.hpp"
class pipeline;
class object;
void gl_uniform(const char *name, const glm::vec3 &p);
void gl_uniform(const char *name, const glm::mat4x4 &p);
/*
Class: camera_base
Base camera class
*/
class camera_base {
protected:
/*
Variable: world_... |
bc76e115a04b2bc0a3cc370afce4e257f1e1235a | 6e05f42e0f12960277ef1c71a6f9dc4bcbe89729 | /Solution/pangda/1_D.cc | f960302dd5015dcfacfffcec13567340ff85edbb | [] | no_license | Linfanty/TeamA | 946cdb8890be7c19ef0a51e60751755c39378b19 | a95109c4e22701f8f421d9c0e1a806838cc15197 | refs/heads/master | 2020-03-28T10:57:05.984215 | 2018-10-18T16:39:28 | 2018-10-18T16:39:28 | 148,162,759 | 1 | 0 | null | 2018-09-10T13:51:02 | 2018-09-10T13:51:01 | null | UTF-8 | C++ | false | false | 242 | cc | 1_D.cc | #include <iostream>
int gcd(int a, int b)
{
return (b > 0) ? gcd(b, a % b) : a;
}
int main(int argc, char *argv[])
{
for (int a, b; std::cin >> a >> b; ) {
std::cout << a * b / gcd(a, b) << std::endl;
}
return 0;
} |
2f836ced22de04b1d32a6a71617fd8912ca6298c | fb81d60eaea26c8feed34cdf8bcb302e6246caad | /examples_theory/teacher/4_struct_class/opera/opfun/Vector2D.cc | 7e90cec7b2fffb38478a2ae87ee27c1f812de28e | [] | no_license | auroraleso/Cpp-course | e03ff719c7b6dc8ee56f1dde9b5a0521231edc94 | dce1cd39da03c22e595f513379aa0b7e14228c1e | refs/heads/main | 2023-03-27T07:14:24.730861 | 2021-03-25T17:41:00 | 2021-03-25T17:41:00 | 345,602,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | cc | Vector2D.cc | #include "Vector2D.h"
#include <cmath>
Vector2D& operator*=( Vector2D& v, float f ) {
v = Vector2D( v.getX() * f, v.getY() * f );
return v;
}
Vector2D operator+( const Vector2D& vl, const Vector2D& vr ) {
return Vector2D( vl.getX() + vr.getX(), vl.getY() + vr.getY() );
}
Vector2D::Vector2D():
xv( 0.0 ),
yv( ... |
097d91ddaf819fa171b9b29e390e3eae72c93b20 | ee6caf788762d7e297aed4c291b20012ed681410 | /90. 언어 연습/2. C연습/11021.cpp | 5d4f6e59e97f451266990feb3619871c702d1cf0 | [] | no_license | dmlimgo/Problem-Solving | 61ea51f1737f572714bc5030470a73a6e0339336 | c265ccac046b3e87c34d014876fde11f33a15ed9 | refs/heads/master | 2020-08-30T15:45:08.895947 | 2020-02-02T14:45:28 | 2020-02-02T14:45:28 | 218,424,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 179 | cpp | 11021.cpp | #include <stdio.h>
int main() {
int t, i = 0;
scanf("%d", &t);
while (i < t) {
i++;
int n, m;
scanf("%d %d", &n, &m);
printf("Case #%d: %d\n", i, n+m);
}
return 0;
} |
b1b3b5165de736693e09d774b19fe7a12fb29c58 | 23ce9939fddf910c090bda03618023f74a7337de | /FlockingBoids/MultiThreaded_OpenCL/Source/BaseBehavior.h | 09b9c9206400355a9bba35faa175d9e9cb5e30ea | [] | no_license | schwittlick/ParallelOptimization | 4f21d88ab9d703b8f179e661488257a3fa3eb59a | b2160c4781aec83103eab249f361a5462501e2ae | refs/heads/master | 2021-05-27T19:26:08.065894 | 2013-09-27T10:22:38 | 2013-09-27T10:22:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 712 | h | BaseBehavior.h | /**
* FlockingBoids - Base Behavior Module.
*
* @author Andy Liebke<coding@andysmiles4games.com>
* @file Source/BaseBehavior.h
* @version 1.0.0 30-Jun-13
* @version 1.1.0 11-Jul-13
* @copyright Copyright (c) 2013 by Andy Liebke. All rights reserved. (http://andysmiles4games.com)
*/
#ifndef __BASE_BEHAVIOR_H... |
def77ee13ecc0d6d5c290bd9868a3fce9e1ccaf7 | feb941d499e01917ed1065624813ece36ee3753c | /src/game/game_listener.cc | 6beb358103bff2a4a479dba7bd203a354bdcb62d | [
"BSD-3-Clause"
] | permissive | cpatrasciuc/nine-men-morris | 5212252733c5104e0149983d904a86259f381fc3 | acf6ba0aec0230faf617cda1c4ce6718ee3a825e | refs/heads/master | 2016-09-09T18:54:40.089624 | 2013-12-30T20:14:52 | 2013-12-30T20:14:52 | 5,828,379 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 603 | cc | game_listener.cc | // Copyright (c) 2013 Cristian Patrasciuc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "game/game_listener.h"
#include "game/piece_color.h"
#include "game/player_action.h"
namespace game {
GameListener::GameListener() {}
Game... |
2bba001205d0fd012a04e8541745034ac47bf62a | 9011166b29eefb4d0fabfa087bfa97402272c5f7 | /Problem Solving Paradigms/10487 - Closest Sums/10487 - Closest Sums.cpp | a74dfece8cbfbff16c96a3e934c0cfe901934e35 | [
"MIT"
] | permissive | matheuscr30/UVA | b6ad38e92dc75dba9c19b6c3ae335bbec5f85d96 | 2623f15de4a3948146fe4148a236d932750633b3 | refs/heads/master | 2021-03-27T18:56:08.551238 | 2019-06-07T01:14:08 | 2019-06-07T01:14:08 | 71,507,615 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 696 | cpp | 10487 - Closest Sums.cpp | #include <bits/stdc++.h>
using namespace std;
main()
{
vector<int>vet;
int n, m, cases=1,num;
while(cin >> n && n != 0)
{
vet.clear();
for (int i = 0; i < n; i++)
{
cin >> num;
vet.push_back(num);
}
cin >> m;
cout << "Case " << cases++ << ":" << endl;
while(m--)
... |
b1ebdaa22551df9f6338e998f5fca4348d75a9d3 | d299c3dff77b8ec5cfa0313b60d78f02010fd425 | /openfpga/src/base/openfpga_context.h | c85bf8607ffe8d49f0558132757d45af7210808a | [
"MIT"
] | permissive | AyaseErii/OpenFPGA | 547eebefa2419a5a3e59c60d6fd711cc0759f140 | 1603c9b40413a4256c7718b72d0cb40183bfb88b | refs/heads/master | 2023-08-15T08:18:50.615270 | 2021-09-22T02:02:29 | 2021-09-22T02:02:29 | 414,767,999 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,893 | h | openfpga_context.h | #ifndef OPENFPGA_CONTEXT_H
#define OPENFPGA_CONTEXT_H
#include <vector>
#include "vpr_context.h"
#include "openfpga_arch.h"
#include "simulation_setting.h"
#include "bitstream_setting.h"
#include "vpr_netlist_annotation.h"
#include "vpr_device_annotation.h"
#include "vpr_clustering_annotation.h"
#include "vpr_placemen... |
911210fe7b8dadf9ca5964b9782ffc0278f7ef0e | 9426ad6e612863451ad7aac2ad8c8dd100a37a98 | /ULLib/include/ULFrameWnd.h | aeaf149ed51fd7de27e34078b9f7b5028584a70f | [] | no_license | piroxiljin/ullib | 61f7bd176c6088d42fd5aa38a4ba5d4825becd35 | 7072af667b6d91a3afd2f64310c6e1f3f6a055b1 | refs/heads/master | 2020-12-28T19:46:57.920199 | 2010-02-17T01:43:44 | 2010-02-17T01:43:44 | 57,068,293 | 0 | 0 | null | 2016-04-25T19:05:41 | 2016-04-25T19:05:41 | null | WINDOWS-1251 | C++ | false | false | 1,786 | h | ULFrameWnd.h | ///\file ULFrameWnd.h
///\brief Заголовочный файл класса главного окна(2006)
#pragma once
#ifndef __UL_ULFRAMEWND_H__
#define __UL_ULFRAMEWND_H__
#include "ULWnd.h"
namespace ULWnds
{
namespace ULFrames
{
///\class CULFrameWnd
///\brief Класс главного окна(2006)
class CULFrameWnd:
public CULWn... |
a2de2a9208078ef541085ded33f6afc09cdde095 | 8c7a3e006411447223a7e68f9d0c8f3f997104a7 | /src/net/socket.cpp | 14d8995975eecc1ead3589335af8eeda08d4f259 | [
"MIT"
] | permissive | ruoka/net4cpp | 0075dd29f9194ef4a468975ce1088476da8934be | a4874be5a50a050b54f0898e588d1077d8695b6b | refs/heads/master | 2023-06-27T22:46:26.547047 | 2023-06-20T22:32:31 | 2023-06-20T22:32:31 | 36,616,987 | 12 | 4 | MIT | 2021-03-25T14:34:12 | 2015-05-31T18:50:03 | C++ | UTF-8 | C++ | false | false | 1,118 | cpp | socket.cpp | #include "net/socket.hpp"
#include "net/network.hpp"
namespace net {
socket::socket(int domain, int type, int protocol) : m_fd{native_handle_npos}
{
m_fd = ::socket(domain, type, protocol);
}
socket::socket(int fd) : m_fd{fd}
{}
socket::socket(socket&& s) : m_fd{native_handle_npos}
{
m_fd = s.m_fd;
s.m_... |
77f5b8784713e415fa9f67c9539a2056c4a0b7db | 11a76a55f1cbf8a7ef3d894f14a65a72ff96fb84 | /src/server/math/geometry/SimplifyCurve.h | c16b1b9d51529a5947a59600527840f6d8cc88b2 | [
"MIT"
] | permissive | florent-engineering/anemomind | 61db624de0df0354275da27d271108ab7ef33215 | 86a5833d670331c9ce113d194651138a35dcfac5 | refs/heads/master | 2023-02-10T02:09:37.817653 | 2021-01-04T08:35:46 | 2021-01-04T08:35:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,641 | h | SimplifyCurve.h | // Julien Pilet, 2014
#ifndef MATH_GEOMETRY_SIMPLIFY_CURVE_H
#define MATH_GEOMETRY_SIMPLIFY_CURVE_H
#include <cmath>
#include <vector>
// A curve is an ordered collection of connected 2D points.
// The point might be closed or open.
//
// The "priorities" method returns one priority value for each point.
// The lower... |
c3a1e68a2d9696562b084c97a7bc8cb0bbaa104a | bcf922683a3db8bc41afff404c392c5c85efceb8 | /Data_struture/SeqList.cpp | eef865235ab9e456ceff550d5a6ac6e18b3c9910 | [] | no_license | hezeqiang/Data_struture | 3c5ca24e3fc4928024a88400b2e9e4684ee2f5f5 | b2332aeaac4e1cd2d042785a20403620a849c876 | refs/heads/master | 2022-05-28T16:31:17.989792 | 2022-05-24T05:59:34 | 2022-05-24T05:59:34 | 230,293,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,605 | cpp | SeqList.cpp | #include <stdio.h>
#include <stdlib.h>
#define ElementType int
SeqList* L;
int i,j,k;
typedef struct{
ElementType *array;
int length;
int capacity;
}SeqList;
SeqList* creatList(int capacity)
{
L = ( SeqList * )malloc(sizeof(SeqList));
L->length = 0;
L->capacity = capacity;
L->array = (ElementType * )malloc... |
5f70a63a2568d3f7cba656e8188ae8e3a222121f | 34bb46af0e2363229048227ff10faf88c12b4f02 | /BasicFramework_DX/CustomMesh.h | c204769beef752c67b459460590c505aeeac6210 | [] | no_license | KidCozy/BasicDX11Framework | 2521d5849aa48a2dc78f75205cc233102dd5ef91 | 4c1e5edb39964fd57d6400e1cdac36da63e5273c | refs/heads/master | 2020-08-08T18:05:27.922546 | 2019-10-17T16:01:13 | 2019-10-17T16:01:13 | 213,884,338 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | h | CustomMesh.h | #pragma once
#include "Model.h"
class CustomMesh :
public Model
{
private:
std::string Name;
public:
CustomMesh();
virtual ~CustomMesh();
};
|
afeb9e761948094fe6c7174610cb093d82b5804a | f2dfc26d73b10dafa88a9aec856461292b4e7904 | /dice-roll/Test.cpp | 6cf32afb61fdfee6a988531e887ef57d4058dab0 | [] | no_license | fellicienta/pr | daaa9b8e076ebef78b11dd0a2e62f95882933a5f | 85199f50e1d50acf4095698c9a4cff7b73a94cfb | refs/heads/main | 2023-06-05T02:59:40.274578 | 2021-06-29T14:30:25 | 2021-06-29T14:30:25 | 350,853,536 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 130 | cpp | Test.cpp | #include "lib.h"
#include <gtest/gtest.h>
TEST(RollDice, main)
{
EXPECT_EQ(7, get_most_frequent_dice_roll(2, 6, 100000));
}
|
654da65735b92522c1a34200b13d6d7cce203f43 | 2fe370454d774a0247a3bcb473ba48f57914b7ff | /ir_send/ir_send.ino | c5019411e9c6734cb0f9ecd5471aa1a2f0055bf1 | [] | no_license | snt/rpi_arduino_ir_remote | 222be63c4b89151bf32b0ec790cdf48b7ee94cb6 | 47aef1ed9cd607aaac00d73169329a90adbd4dc2 | refs/heads/master | 2021-01-20T05:31:33.611769 | 2014-09-08T07:09:44 | 2014-09-08T07:09:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,126 | ino | ir_send.ino | #define IR_RECV_PIN 2
#define IR_SEND_PIN 4
#define IR_TIMEOUT_USEC 1000000
#define BUFFER_SIZE 256
void setup()
{
Serial.begin(115200);
pinMode(IR_RECV_PIN, INPUT);
pinMode(IR_SEND_PIN, OUTPUT);
}
void loop()
{
int irdata[BUFFER_SIZE];
int i = 0;
Serial.println("ready");
while(true) {
int c = Seria... |
003614bcdb0ab70889501ede10daa5e551d87b59 | def16c78851f1f6f214d26a69c5ff7f066266671 | /ReversiGame/src/Client.cpp | 6e0a3dc092891a425a282edde6a558f6e8405589 | [] | no_license | Mazgana/Reversi | ae7e110c9f243c64124feb2b4e64825169a00b25 | 9a4ed749886b642b6c03db7817383455d85c60eb | refs/heads/master | 2021-09-05T07:40:54.548720 | 2018-01-25T09:52:58 | 2018-01-25T09:52:58 | 111,842,261 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,811 | cpp | Client.cpp | #include "Client.h"
Client::Client(const char *serverIP, int serverPort): serverIP(serverIP), serverPort(serverPort), clientSocket(0){
displayer = new ConsoleDisplay();
}
Client :: ~Client() {
}
void Client::connectToServer() {
//create a socket point
this->clientSocket = socket(AF_INET, SOCK_STREAM, 0);
... |
c78c8a7c93f636e75baf16d93954c6487018deab | 8aad0674a89e5b5785e3b28acd5c2a0d453bb92a | /EPSILON/core/common/inc/common/basics/shapes.h | 007bff3d38f33d88d9be5b8c8683820b36d82e4e | [
"MIT"
] | permissive | Mesywang/EPSILON_Noted | d047b9434a563d991d66f415bac48e52734cb91a | 099ce4e74bd3245e89c50379bb93270b7fba99e0 | refs/heads/main | 2023-01-09T19:29:18.380687 | 2020-11-12T08:30:32 | 2020-11-12T08:30:32 | 312,210,761 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 11,942 | h | shapes.h | /**
* @file shapes.h
* @author HKUST Aerial Robotics Group
* @brief
* @version 0.1
* @date 2019-03-17
*
* @copyright Copyright (c) 2019
*/
#ifndef _COMMON_INC_COMMON_BASICS_SHAPES_H__
#define _COMMON_INC_COMMON_BASICS_SHAPES_H__
#include <map>
#include <opencv2/core/core.hpp>
#include "common/basics/basics.h"... |
84b07881e1abc87f93b43fe56ba7990a88771f97 | 996ff94e796804be7edc7c76720e9c6f44234e5f | /src/Interface/Application/GuiCommands.h | 0b1ebcb41e3567ff12a1aa905c78dc2f7e93866a | [
"MIT"
] | permissive | manual123/SCIRun | aad3e304dcb329baad71fd5f38db9402cca0f0d6 | 053ec3dd005c43d5850460e2a0ea482dc172b108 | refs/heads/master | 2023-07-06T22:19:23.764845 | 2023-02-06T20:49:32 | 2023-02-06T20:49:32 | 178,338,084 | 1 | 0 | MIT | 2019-03-29T05:26:35 | 2019-03-29T05:26:35 | null | UTF-8 | C++ | false | false | 4,226 | h | GuiCommands.h | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
942eb6637477a51ff7c1081598ade6460aabd803 | 465df8cc43f0fed03e36c06897fe29ee59b49c5b | /frameworks/runtime-src/Classes/sunmap/MapPrivoder/GoogleSatelliteMapStrategy.h | 53e6ab0766039d2e261b66d545e65e5d3258f744 | [
"MIT"
] | permissive | wish-wish/skyheroes | 781ed41a707eacaadc3d618036bf96c8b1d71b47 | 6411a3834f0ef152371d732ef76321793e5a3955 | refs/heads/master | 2023-04-16T21:00:23.253065 | 2021-05-01T07:05:16 | 2021-05-01T07:05:16 | 339,356,308 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 353 | h | GoogleSatelliteMapStrategy.h | #ifndef __COCOS2D_GoogleSatelliteMapStrategy_H__
#define __COCOS2D_GoogleSatelliteMapStrategy_H__
#include "cocos2d.h"
#include "MapStrategy.h"
USING_NS_CC;
class GoogleSatelliteMapStrategy : public MapStrategy
{
public:
std::string getUrl(int x, int y, int z);
std::string getDescription();
std::string getImageTy... |
345d76aa75693edf305d15538da91b214a8d04fd | e9481553419aa5956f6f94a68eceadafadb95ab5 | /db_proxy/src/tb/kai_fu_act_log.cpp | c8ab16e84c65e713d2ea0cb88e1c5abe6fa35144 | [] | no_license | OrAlien/gserver | 4b5ed7cde428062361413495b290b0c6b0a96bed | 463471cf62a155bc695119c84f5d67f5a36ce376 | refs/heads/master | 2021-05-10T17:56:05.324201 | 2015-03-27T12:32:36 | 2015-03-27T12:32:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,290 | cpp | kai_fu_act_log.cpp | #include "db_async_store.h"
#include "mblock_pool.h"
#include "tb_msg_map.h"
#include "proxy_obj.h"
#include "kai_fu_act_log.h"
#include "sys_log.h"
#include "istream.h"
#include "message.h"
static ilog_obj *s_log = sys_log::instance()->get_ilog("base");
static ilog_obj *e_log = err_log::instance()->get_ilog("base");
... |
2744f9f7e1c64ee31b7a27a8f3c190eaeba45394 | d8f1d71fcd714a16b805f94b318a91641d53bb68 | /src/libgraphic/src/message/entity/MoveGraphicEntityMessage.cpp | 497d88ba81ee117eb88828aad0d5802347c2a6fb | [
"Apache-2.0"
] | permissive | SimonPiCarter/GameEngine | 0b72a3bed7054af5df7ffb8134f19ceb58fbd564 | 10d366bd37d202a5a22eb504b2a2dd9a49669dc8 | refs/heads/main | 2023-05-29T11:53:22.338760 | 2021-06-19T12:28:04 | 2021-06-19T12:28:04 | 365,501,044 | 0 | 0 | Apache-2.0 | 2021-05-18T20:40:32 | 2021-05-08T11:49:07 | C++ | UTF-8 | C++ | false | false | 384 | cpp | MoveGraphicEntityMessage.cpp | #include "MoveGraphicEntityMessage.h"
#include "message/GraphicMessageHandler.h"
MoveGraphicEntityMessage::MoveGraphicEntityMessage(GraphicEntity * entity_p, std::array<double, 3> const &vector_p)
: GraphicMessage("")
, _entity(entity_p)
, _vector(vector_p)
{}
void MoveGraphicEntityMessage::visit(GraphicMessageHa... |
fa8733407674cb4c95c748ba87cb1050bc9a0e37 | 500b22f28ebce4c398c8af837e657adf83eff27f | /clientservice.h | bef1406c4609e767b049549ff97f08a201210db2 | [] | no_license | MarcSky/localDB | 8c91e183f0e62d12b312858c71af56e2003d5824 | 66e7a7e5ff2dd261245123a49570c0e1034c85d4 | refs/heads/master | 2016-09-06T12:55:21.401090 | 2015-06-09T04:44:32 | 2015-06-09T04:44:32 | 37,110,717 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 950 | h | clientservice.h | #ifndef __localDB__clientservice__
#define __localDB__clientservice__
#include <stdio.h>
#include <string>
#include <vector>
#include "file.h"
#include <iostream>
#include <ctime>
const char events[] = "/Users/Levan/xcode/localDB/localDB/files/events.txt";
enum EVENTS_TYPE{EVENT_SECONDS=0, EVENT_SMS};
typedef struct... |
b3997f55681dcf1b8389431ba24f3ed6318b4bdb | 13b92b899893f5337a3ce13e033dc18bfd40dcd9 | /tests/main.cc | 954e8f640743de422fb8f8883f3bc06887fa36a5 | [
"MIT"
] | permissive | mbetten89/CppProjectTemplate | d57869368fba79e41a9ea626907beda760ed043b | d8214722da773d722d4caa77f5a6b924ee5475a1 | refs/heads/master | 2023-08-27T02:01:29.573912 | 2021-11-03T13:34:31 | 2021-11-03T13:34:31 | 424,193,178 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cc | main.cc | #define CATCH_CONFIG_MAIN
#include "catch2/catch.hpp"
#include "my_lib.h"
TEST_CASE("Test my cout function", "TestCout")
{
cout_hello_world();
}
TEST_CASE("Test my vector function", "TestVector")
{
linalg::aliases::float3 v = print_linalg_vector();
REQUIRE(1 == v[0]);
REQUIRE(2 == v[1]);
REQUIR... |
943c985a4bce4def471cc0bcfd1533392ce70422 | 29eb3d1bd7a8d2905faf1eef532f20baddfcb259 | /Public/FbxBuilderTextureImportData.h | aa6a87708627659bde92ef49b6959f7bec01c836 | [] | no_license | alexanderyyg/load | 836b811b5fde30bb6163483ee936fb7714dd3c12 | 94b3a2d38b89c36ac8ee66ac63c8f7535436c6c7 | refs/heads/master | 2020-04-17T21:43:06.320042 | 2019-01-25T07:58:27 | 2019-01-25T07:58:27 | 166,963,024 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,935 | h | FbxBuilderTextureImportData.h | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "UObject/ObjectMacros.h"
#include "UObject/SoftObjectPath.h"
#include "FbxBuilderAssetImportData.h"
//#include "MaterialImportHelpers.h"
#include "Engine.h"
#include "FbxBuilderTextureImportData.generated.h"
/... |
e99c87f3ce4fbf04f46714fa0009d3fbe3929b12 | a6b09b1f27e0aae2753dc68600eaaad8ca3e9c1a | /Monopoly/Player/Player.h | 082c9f7bf1c1544e4304c71114ed42d9f4ac1bc1 | [] | no_license | Berlisia/Monopoly | 7d1c44660ffcec5ecb5b818a91ccbe2a814cb51b | 4fe0d1b0b91045a69a5ea369e99ec0a7193ee594 | refs/heads/master | 2021-07-10T06:20:04.908004 | 2020-11-22T21:34:25 | 2020-11-22T21:34:25 | 215,247,323 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,211 | h | Player.h | #pragma once
#include "Contestant.h"
#include "PlayerFsm.h"
#include "PlayerPropertis.h"
namespace
{
const unsigned int moneyOnStartGame = 1500;
}
class Estate;
class Dice;
using Fsm = std::unique_ptr<FsmBase<PlayerState, PlayerEvent>>;
class Player : public Contestant
{
public:
Player(std::string p_name, cons... |
31edf18a8f66c9979e9e3e0e207e4422d8a24c2f | 7a8153e3fde0807462b6b6696b796d772639fa74 | /src/system/graphic/DynamicObject.h | ce4fa2b2e80b26ce58cf22ed52f1b72f81f1f996 | [] | no_license | qaze/violetland | 7183f9670676d05da3970cd2fbd8cf7e5f5197c2 | 9f0fc9aff4ca1a4111b45fb105fc33fd9ae97dad | refs/heads/master | 2021-01-02T22:38:01.687080 | 2011-10-10T12:35:36 | 2011-10-10T12:35:36 | 32,754,552 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 693 | h | DynamicObject.h | #ifndef DYNAMICOBJECT_H_
#define DYNAMICOBJECT_H_
#ifdef _WIN32
#define _USE_MATH_DEFINES
#endif //_WIN32W
#include "../Object.h"
#include "Sprite.h"
class DynamicObject: public Object {
private:
int m_lastFrameRollTime;
public:
DynamicObject(float x, float y, Sprite *sprite);
void rollFrame(bool for... |
92c04bd53b353369438e658ccdbd8271a10930b8 | dd629803899abbb8b6d8b4503b3591bb7eae6e73 | /include/forge/base/gf/line.h | 8fb88e9817481bcf1dead7636bc6a4c791cebf23 | [] | no_license | furby-tm/Winggverse | 8d78bb691d2e5eecc5197845e9cbfb98f45c58bd | 0dc9db7057f52fca3e52e73491e24f298d108106 | refs/heads/main | 2023-04-21T17:32:20.350636 | 2021-04-30T04:24:30 | 2021-04-30T04:24:30 | 362,732,238 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,788 | h | line.h | #line 1 "C:/Users/tyler/dev/WINGG/forge/base/gf/line.h"
/*
* Copyright 2021 Forge. All Rights Reserved.
*
* The use of this software is subject to the terms of the
* Forge license agreement provided at the time of installation
* or download, or which otherwise accompanies this software in
* either electronic or h... |
98192934c88ebb5ce8bff740720e09afa7d7eba3 | eab8d3252193ed1e66732e042443d5cb88eb3c02 | /Lista Circular/List.cpp | 302deb61534b92989e6aeba2f3bc61d56e30e0c6 | [
"MIT"
] | permissive | lunebakami/projeto-ed | acc000d42826b42e701fdb5c6f4ee24961da9a54 | 09a58bf5624c5cfc0d6fbce5f3b2f6f82670ce29 | refs/heads/main | 2023-03-16T16:40:35.203942 | 2021-02-28T23:22:33 | 2021-02-28T23:22:33 | 340,897,237 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,981 | cpp | List.cpp | // José Luis dos Santos Araujo - 472435
// Joyce Kelly Chaves Barros da Silva - 472032
#include <iostream>
#include <sstream>
#include "List.h"
using namespace std;
struct Node {
int value;
Node* next;
Node* prev;
};
// José Luis
List::List() {
// Definindo head e tail
head = new Node;
tail = ... |
0927dea1f00d379d2d04f0c3e97d9c3dffdd331d | 7b5e6b1c54fc8729b5f1a3c595f3d409e8868840 | /CGWork/Scene.cpp | 375448405aaa627e4c53803049ad182856cdec34 | [] | no_license | asafanter/Graphics_Hw3 | f2f35face4ad6fbd540e30f922b1b5f78d102c7c | 4ca1d08eee08a2bcf66efd54d7dd0474a7548fd7 | refs/heads/master | 2020-12-13T21:37:12.010070 | 2020-03-04T20:14:40 | 2020-03-04T20:14:40 | 234,537,440 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,277 | cpp | Scene.cpp | #include "Scene.h"
#include "Line.h"
#include "Draw.h"
#define DEF_BOUNDING_BOX_SCREEN_RATION 3
Scene::Scene() :
_objs(),
_view(),
_projection(),
_is_initialized(false),
_background_color(RGB(0, 0, 0)),
_camera({}),
_look_at(),
_drawing_mode(DrawingMode::SOLID),
_lights(),
_ambient(),
_is_... |
77bb46f52b9889a56b61824708507f3f93c39e61 | f20e965e19b749e84281cb35baea6787f815f777 | /Online/Online/DataSvcTests/src/EvtDataSvc_Test.cpp | 2c9591947264b04899fd604d75943c271b6a7fa7 | [] | no_license | marromlam/lhcb-software | f677abc9c6a27aa82a9b68c062eab587e6883906 | f3a80ecab090d9ec1b33e12b987d3d743884dc24 | refs/heads/master | 2020-12-23T15:26:01.606128 | 2016-04-08T15:48:59 | 2016-04-08T15:48:59 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,210 | cpp | EvtDataSvc_Test.cpp | #include "GaudiKernel/System.h"
#include "GaudiKernel/IService.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/IDataManagerSvc.h"
#include "GaudiKernel/IEventDataSvc.h"
#include "DataSvcTests/UnitTest.h"
#include "DataSvcTests/EventDataSvcSetup.h"
// C/C++ header files
#include <stdexcept>
using na... |
8a6a2cfd6a3da9309a08d6591edacab934090a1d | c51febc209233a9160f41913d895415704d2391f | /library/ATF/UnloadInfo.hpp | 7be209b3d6c37be7396cb6b65464492d9aa0b95f | [
"MIT"
] | permissive | roussukke/Yorozuya | 81f81e5e759ecae02c793e65d6c3acc504091bc3 | d9a44592b0714da1aebf492b64fdcb3fa072afe5 | refs/heads/master | 2023-07-08T03:23:00.584855 | 2023-06-29T08:20:25 | 2023-06-29T08:20:25 | 463,330,454 | 0 | 0 | MIT | 2022-02-24T23:15:01 | 2022-02-24T23:15:00 | null | UTF-8 | C++ | false | false | 312 | hpp | UnloadInfo.hpp | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
#include <ImgDelayDescr.hpp>
START_ATF_NAMESPACE
struct UnloadInfo
{
UnloadInfo *puiNext;
ImgDelayDescr *pidd;
};
END_ATF_NAMESPACE
|
6bc82a600a314ea01b89a7586d0a7dba971766e5 | bf5ed404acf947792f3755847d9b9168ffae6e20 | /config/config.h | 0ebddf706309732cb0c3ea2d3638492f60c6e08b | [] | no_license | 1071496910/c-redis-cli | 85d46d55c37883c5828dbf06456abb35e88a4f7e | 5c2165c924a337d4d4082b3af3f163951628c86c | refs/heads/master | 2021-01-01T17:12:29.767818 | 2017-09-26T12:33:10 | 2017-09-26T12:33:10 | 98,023,650 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | h | config.h | #ifndef C_REDIS_CLI_CONFIG_CONFIG_H_
#define C_REDIS_CLI_CONFIG_CONFIG_H_
#include <map>
#include <string>
const int kDefaultLineSize = 1024;
class Config {
std::map<std::string,std::string> config_storage_;
std::string config_file_;
char line_buffer[kDefaultLineSize];
bool is_inited_;
public:
... |
d92bf7a20321f5aff5beb281488ac2eb299f2faf | f5dd10b51cdd86a2461ada5c81b87ed933094440 | /project/red_black_tree.cpp | 4e6153b274ce15787bfb7e85bf3e1485967ef417 | [] | no_license | ElRomanenkova/4_sem | faa0195b6cec0112893ac8f7019953bba66d5d5c | a7e555390f48f8a2788039120413fc28e16c9456 | refs/heads/master | 2022-07-18T00:36:34.245129 | 2020-05-23T10:55:51 | 2020-05-23T10:55:51 | 255,391,317 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,788 | cpp | red_black_tree.cpp | #include "red_black_tree.h"
RB_Node::RB_Node() {
this->parent = nullptr;
this->left_ch = nullptr;
this->right_ch = nullptr;
this->color = Poison_color;
this->key = Poison_key;
}
RB_Node::RB_Node(int node_key) {
this->parent = nullptr;
this->left_ch = nullptr;
this->right_ch = nullptr... |
da78d755a86db94dff1e02f34224268111017e0f | 33526483a755fa5e1dca9f42759cd2f2db765aa1 | /MouseRun/species.cpp | 37852924a26a8a8234d35b67db40df1da6bf6420 | [] | no_license | jovanovic16942/MouseRun | 76c9dd123a342d51b63b1789692a0c585d1464ea | 268248df7754011711706ba7ce6bf47631fba736 | refs/heads/master | 2020-04-25T01:32:59.563484 | 2019-05-28T19:50:29 | 2019-05-28T19:50:29 | 172,411,533 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 5,267 | cpp | species.cpp | #include "species.h"
#include <random>
#include <QDebug>
Species::Species(Genome *p)
: bestFitness{0}, averageFitness{0}, stagnantCoeff{0}, allowedReproduction{true},
excessCoeff{1}, weightDiffCoeff{0.4}, compatibilityThreshold{3}
{
genomes.push_back(p);
bestFitness = p->fitness; // Best fitnes... |
c3b81246b05883968fac92e1b146b375add00a28 | d19bc21a959615c232354c87c916edba2be9aa17 | /Tree/0226_InvertBinaryTree/main.cpp | f3532eebe3c8ba3a251fcc8dda56d74b98ba0186 | [] | no_license | Aierhaimian/LeetCode | 47a48bded9cb790c21f73c6ff2abff1e9eaec3aa | 67a54618efbb37437412ee7d471688c5770eedd6 | refs/heads/master | 2020-04-25T20:57:13.066885 | 2019-09-19T10:57:47 | 2019-09-19T10:57:47 | 173,065,705 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 681 | cpp | main.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cassert>
using namespace std;
// Definition for a binary tree node.
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
class Solution {
public:
T... |
e3ad5194784c1e9945deae90d566f77d85fede9e | 3ddea841d0d2b067c7a339d44a290c854abbd9ec | /Rasterizer/includes/Rendering/SDL_Manager.h | 387f7708d6e5fa9d217efbf1deb327dc803c34d9 | [] | no_license | gnoailles/softwareRasterizer | 6ddd2e44fddddce868ef9636b9dd416d0a8d2d8f | 23245593ce1844d5ce844e3b7931d8b71d954266 | refs/heads/master | 2021-04-09T16:18:27.864460 | 2019-05-07T00:06:01 | 2019-05-07T00:06:01 | 125,764,492 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 441 | h | SDL_Manager.h | #pragma once
#include <SDL.h>
#include "Graphics/Texture.h"
using namespace Graphics;
namespace Rendering
{
class SDL_Manager
{
protected:
SDL_Window * m_window;
SDL_Renderer* m_renderer;
Texture* m_activeBuffer;
public:
SDL_Manager();
~SDL_Manager();
bool Init(int p_w, int p_h);
void Close();
... |
ec4f7b288919578c850f4fb16d59cb1a67bca341 | b53bdc4576f948e6066bbead8a93451fa1598726 | /templates/centroid.cpp | f3fef5677a5cc2f523ad6bcf5afd2f551d4941b7 | [] | no_license | Clouder0/AlgorithmPractice | da2e28cb60d19fe7a99e9f3d1ba99810897244a4 | 42faedfd9eb49d6df3d8031d883784c3514a7e8b | refs/heads/main | 2023-07-08T11:07:17.631345 | 2023-07-06T12:15:33 | 2023-07-06T12:15:33 | 236,957,049 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 755 | cpp | centroid.cpp | #include <algorithm>
#include <cstdio>
const int maxm = 1e5 + 100;
const int maxn = 1e5 + 100;
struct node {
int to, next;
} E[maxm];
int head[maxn], tot;
inline void add(const int &u, const int &v) {
E[++tot].next = head[u], E[tot].to = v, head[u] = tot;
}
int n, root, maxsiz;
int fa[maxn], siz[maxn];
void init(... |
5da15df3393031262269fe2cb4da0871ae731813 | 82c1a68d8e133baaa5f2fb7aa15300a49a34b8db | /HomeWork1/HWLauncher/main.cpp | 446f2db222aebaccf5c42486ff59fcf3c1e86db4 | [] | no_license | MizraelAnael/homework1 | 299cd6fa1c7170f9894859a17a871f9926aa400e | 0131b010c1d5db1bbace15bde162aa5193d03c44 | refs/heads/master | 2020-05-20T12:35:45.921633 | 2014-09-08T18:55:46 | 2014-09-08T18:55:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 181 | cpp | main.cpp | #include <iostream>
#include "Task 1.h"
#include "Task 2.h"
#include "Task 3.h"
using namespace std;
int main()
{
task1 ();
task2 ();
task3 ();
system ( "pause" );
} |
81aa8bea754ebc1037a38ded5eeb7a485c84ab98 | 757c6647ebd75909785b3a730cd123f2065f1b70 | /pat1041.cpp | be6df7b42b73e93de3710243942cefe0856e5bd1 | [
"Apache-2.0"
] | permissive | iceco1a/PAT-Advanced-Level- | c67a3cc26bac7b7b51c5ffd29af5e47708fb1ad7 | 1896890df32ed162601b96bbbb3c56ce904a6122 | refs/heads/master | 2021-06-05T19:50:34.179569 | 2016-09-21T05:33:28 | 2016-09-21T05:33:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 415 | cpp | pat1041.cpp | #include<stdio.h>
#include<string.h>
using namespace std;
int n;
int ary[100002];
int ary1[100002];
int main(void){
int i,temp;
while(scanf("%d",&n)!=EOF){
memset(ary,0,sizeof(ary));
for(i=0;i<n;i++){
scanf("%d",&temp);
ary1[i] = temp;
ary[temp]++;
}
for(i=0;i<n;i++){
if(ary[ary1[i]]==1){
pr... |
2337a2197ce32704e96d01103e5ad81e7daf4302 | f70366f4a01a50e627b52f2f67496ae7e2e8c0a4 | /DatabaseHandling/databaseConnection.h | 03cf7f8a915009cec7daaa043f3298007619d460 | [] | no_license | hammadar/ECE656ProjectHRTScpp | e14ad96f2f09bf14309359c7da2f45b536b1bb33 | 0416abec5b1a45dd3f5791d21c4547a92b7176ab | refs/heads/master | 2023-01-27T13:47:33.022953 | 2020-12-13T13:03:33 | 2020-12-13T13:03:33 | 312,749,283 | 0 | 0 | null | 2020-12-10T21:13:36 | 2020-11-14T05:01:43 | C++ | UTF-8 | C++ | false | false | 874 | h | databaseConnection.h | //
// Created by Hammad Rehman on 2020-11-13.
//
#ifndef ECE656PROJECTHRTS_DATABASECONNECTION_H
#define ECE656PROJECTHRTS_DATABASECONNECTION_H
#endif //ECE656PROJECTHRTS_DATABASECONNECTION_H
#include <cstdlib>
#include <iostream>
#include <mysql_driver.h>
#include <mysql_error.h>
#include <mysql_connection.h>
#incl... |
f03339ec222158b2bcf3dc6cbe86ad7eb37165b3 | 6911d7ba9eb53bd885917e6fbed8eec694f00488 | /2013TGS07班/TGS_Team7_Projects_Ver1.17/TGS_Team7_Projects/Souse/Scene/GamePlay.h | 59ee636599fa350cb9e4513fd5aeffe92666aa83 | [] | no_license | KORYUOH/koryuohproject-svn-server | 86fc2128546bb6000af65f65e210775004cd03fc | eea045863cab70fc8534917b6a1356690e6fc10e | refs/heads/master | 2021-01-19T13:25:33.993255 | 2015-04-04T08:10:21 | 2015-04-04T08:10:21 | 32,276,044 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,897 | h | GamePlay.h | /******************************************************************************
* File Name : GamePlay.h Ver : 1.00 Date : 2012-12-14
*
* Description :
*
* ゲームプレイクラス.
*
******************************************************************************/
#ifndef _GAMEPLAY_H_
#define _GAMEPL... |
66ea65d68d9a8fd2d9cc48043874c2dbeb0440ff | 570d07d53f01a27215c796a0aeaba6c4324de536 | /basicGameEngine/Player.cpp | f14b9d1cc48d0fa89750e010c6f2bcc95a5f2467 | [] | no_license | RicardoGonzalezJ/basicgameengine | e5206a1626a5230baef0cc40fbd7e76df46145a4 | b6fd9e931b8e4e302f5a6d4502a9642b41ec11d3 | refs/heads/master | 2020-03-20T11:24:29.404962 | 2018-07-17T20:21:22 | 2018-07-17T20:21:22 | 137,401,765 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,488 | cpp | Player.cpp | #include "Player.h"
// Player class implementation using game object
/*void Player::load(int x, int y, int width, int height, std::string textureID) {
GameObject::load(x, y, width, height, textureID);
}
void Player::draw(SDL_Renderer* pRenderer) {
GameObject::draw(pRenderer);
}
void Player::update() {
m_x -= 1;... |
961145e16ee5ac55d01ea7c8d302af4de0df405c | 049f41a76f64320dc64fba091ae3f215fd9fcf6e | /include/types/filters/GRADIENTBEVELFILTER.hpp | 6c3a98570c404fb5be684013fedef58f71b2fc76 | [] | no_license | piepie62/NSWF | f8c8e47864d39b2d439f99007551795ace625b3e | cec15e9c33f8a4810315895bb3e04f9b718dbe57 | refs/heads/master | 2023-05-25T23:54:29.084716 | 2021-05-29T20:53:55 | 2021-05-29T20:53:55 | 370,969,031 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 537 | hpp | GRADIENTBEVELFILTER.hpp | #pragma once
#include "types/RGBA.hpp"
#include "types/basic/fixed16.hpp"
#include "types/basic/fixed32.hpp"
#include <cstdint>
#include <vector>
namespace NSWF
{
struct GRADIENTBEVELFILTER
{
std::vector<RGBA> gradientColors;
std::vector<uint8_t> gradientRatio;
fixed32 blurX;
f... |
4870f33c3da66d60e84489bb24b4cc7f29077597 | 07e6fc323f657d1fbfc24f861a278ab57338b80a | /cpp/sketches_OCL/Grids/convolve2D.h | bbf55c57fb91a3c6bddf7bd971b33377d58b9b19 | [
"MIT"
] | permissive | ProkopHapala/SimpleSimulationEngine | 99cf2532501698ee8a03b2e40d1e4bedd9a12609 | 47543f24f106419697e82771289172d7773c7810 | refs/heads/master | 2022-09-05T01:02:42.820199 | 2022-08-28T10:22:41 | 2022-08-28T10:22:41 | 40,007,027 | 35 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,178 | h | convolve2D.h | #ifndef convolve2D_h
#define convolve2D_h
//============== Globals
constexpr int nx = 256+2;
constexpr int ny = 256+2;
//constexpr int nx = 1024+2;
//constexpr int ny = 1024+2;
constexpr int ntot = nx*ny;
float buff [nx*ny];
float buff_[nx*ny];
void genXOR2D(int nx, int ny, float * data){
float scale_... |
1048d9258f91c484f79b236e6e2dc1858716c223 | 16df3cdc7e6373b2888a125fbea6ae805e0aa6a1 | /battle/SpecialAttackHandler.cpp | 6a3eb8b3f99e01c68cb3d99a518cb3c8d9bdd7cd | [] | no_license | functionoliveira/darkness-age | df52656b0f6fb0754efd2a998e5cf7ef3c3f0061 | 2aff60df94d5590beda259176050efe4eb1273d6 | refs/heads/master | 2023-03-31T20:49:35.006734 | 2021-04-03T16:41:27 | 2021-04-03T16:41:27 | 352,785,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | SpecialAttackHandler.cpp | class SpecialAttackHandler
{
public:
enum class SpecialAttackType
{
// magic attacks
MAGIC_MISSEL = 1
// psychic attacks
// physical attacks
}
SpecialAttack handle(int type)
{
switch (type)
{
... |
e418670526c322acec0f8507c899e3ccd7d7c474 | e2cf0b5db389ebc82565c4ceb1d664a29dcbf79a | /csrc/cpu/scatter_cpu.cpp | b7dc82d2d9981a6ab16630c656f4a945c0513d5d | [
"MIT"
] | permissive | rusty1s/pytorch_scatter | d1a78c5fabbb64f270769e83bd374cb4798e2084 | a2a2afb9e946094e7e89b3a35568ac793fe7e70b | refs/heads/master | 2023-08-29T02:08:00.131102 | 2023-06-04T07:48:29 | 2023-06-04T07:48:29 | 114,475,042 | 1,350 | 186 | MIT | 2023-08-17T01:03:08 | 2017-12-16T16:34:23 | Python | UTF-8 | C++ | false | false | 2,757 | cpp | scatter_cpu.cpp | #include "scatter_cpu.h"
#include "index_info.h"
#include "reducer.h"
#include "utils.h"
std::tuple<torch::Tensor, torch::optional<torch::Tensor>>
scatter_cpu(torch::Tensor src, torch::Tensor index, int64_t dim,
torch::optional<torch::Tensor> optional_out,
torch::optional<int64_t> dim_size, st... |
2ca202ea851cd9202f000586e443a939218e804f | 351899b0585d68190c20d84b91324a16a7e863ed | /source/mainDoubleSolution.cpp | 3cb17c0ced8d5303f90cb26fcaa03c918047508b | [] | no_license | casfeq/Geomec2D | 9cf2d6cc2663f4b1ec68647a9fcf2028f5cf9b0b | 0e9faeb647583922a1d52c5640638c4366ad9628 | refs/heads/master | 2022-10-20T11:28:19.001334 | 2020-06-11T08:54:25 | 2020-06-11T08:54:25 | 225,952,799 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,903 | cpp | mainDoubleSolution.cpp | /*
This source code implements a Finite Volume Method for discretization and solution of the consolidation problems with double porosity. The governing equations are discretized within the FVM and the resulting linear system of equations is solved with a LU Factorization found in PETSc [1].
Written by FERREIRA, C. ... |
7907ac55532ac83c8f86fc2c398a4b16264a9ae2 | 060067983bb02e1046743da5af92f9aa9fe85f04 | /enumerator/testpp.cpp | 62e37fa09ec6b49ccf137f9fde5cbc27e500bd0c | [
"MIT"
] | permissive | MichaelBrim/tedium | ef0de9398cae2b2f6bc280c79ffb790cf7200a9c | 79ae6533d87217b6f61d6ae12df0c2f46a119441 | refs/heads/master | 2020-03-08T00:01:07.217280 | 2018-06-15T18:12:39 | 2018-06-15T18:12:39 | 127,795,915 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 965 | cpp | testpp.cpp | /* Copyright (c) 2018 - Michael J. Brim
*
* See https://github.com/MichaelBrim/tedium/blob/master/LICENSE for licensing
*/
#include <cstring>
#include <cstdio>
#include "enumerator.h"
int main(int argc, char* argv[])
{
int checkval;
prefix_e testval;
const char* estr;
for( checkval = (int)PREFI... |
2d6d418305a95d32f0e00256c3bd40e13e510808 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/third_party/mozilla_security_manager/nsNSSCertHelper.cpp | 81eae702f8d78c335c05d37285859c02d6084c22 | [
"LGPL-2.1-or-later",
"MPL-1.1",
"GPL-2.0-or-later",
"GPL-2.0-only",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-only",
"LGPL-2.1-only",
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 2,592 | cpp | nsNSSCertHelper.cpp | /* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
f95dda501206a33720037ecdca6cefdcda50bb72 | 6b8325aedb956175071e93f005a98057095dbb3d | /UGen/core/ugen_Bits.h | 6dd37d1262a8221a16667a11efa5972db925eebe | [] | no_license | 0x4d52/ugen | 73bdf090d8328e469977991cb9b662c8031cf467 | 590c03ba6e1e9caa20992327189dfcd74438ac86 | refs/heads/master | 2021-07-13T16:55:20.969401 | 2016-09-27T10:53:32 | 2016-09-27T10:53:32 | 34,687,605 | 22 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,294 | h | ugen_Bits.h | // $Id$
// $HeadURL$
/*
==============================================================================
This file is part of the UGEN++ library
Copyright 2008-11 The University of the West of England.
by Martin Robinson
------------------------------------------------------------------------------
UGEN++ ca... |
7ce03022c5849673cc0b8ccaddc39ad69a27e9a7 | 88b130d5ff52d96248d8b946cfb0faaadb731769 | /searchlib/src/vespa/searchlib/util/dirtraverse.h | c26246e2596ed0c2e304d42309328b7ebd7f142d | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vespa-engine/vespa | b8cfe266de7f9a9be6f2557c55bef52c3a9d7cdb | 1f8213997718c25942c38402202ae9e51572d89f | refs/heads/master | 2023-08-16T21:01:12.296208 | 2023-08-16T17:03:08 | 2023-08-16T17:03:08 | 60,377,070 | 4,889 | 619 | Apache-2.0 | 2023-09-14T21:02:11 | 2016-06-03T20:54:20 | Java | UTF-8 | C++ | false | false | 487 | h | dirtraverse.h | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#pragma once
#include <cstdint>
#include <string>
namespace search {
/*
* Class used to get size of directory tree on disk.
*/
class DirectoryTraverse
{
private:
std::string _base_dir;
public:
uint64_t... |
36e384bd899409e350d4ce2865443497a281f22d | 7fea47e6aee75e90e39c09020bb66ae3d18355d0 | /leetcode/leetcode_cpp/path-sum-iii.cpp | a3c399ca9e2fdf2e019f1142c25da00cc36def78 | [] | no_license | doum1004/code_assessment | 52facd8b361702ef7d342896921ec328eb80ad4a | 4b930bb9596adc5153e897a7f95625e78aebcd8a | refs/heads/master | 2020-12-04T20:06:04.993844 | 2020-08-19T00:23:56 | 2020-08-19T00:23:56 | 231,888,307 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,072 | cpp | path-sum-iii.cpp | #include <iostream>
#include <cassert>
#include <vector>
#include <stack>
#include <unordered_map>
#include "../tree.h"
using namespace std;
/**
https://leetcode.com/problems/path-sum-iii/
// Solution1. Recursion DSF (preorder)
// time: o(n^2)
// space: o(n)
10
15 5
18 8 3 (o)
21 11 6 3
16 9 4 -2
17 7
18 8 1 (o)
... |
cbc171de0b2bf48b63fab8d1da4b1b7c4d22e6e9 | 45874c847c5a2fc4e89e05a7fc8ad9b63d8c4860 | /sycl/test-e2e/DeviceCodeSplit/Inputs/split-per-source-second-file.cpp | d5ee857ec4df3b91342870bcd83f9dcc69ce154a | [
"NCSA",
"LLVM-exception",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | intel/llvm | 2f023cefec793a248d8a237267410f5e288116c5 | a3d10cf63ddbdcc23712c45afd1b6b0a2ff5b190 | refs/heads/sycl | 2023-08-24T18:53:49.800759 | 2023-08-24T17:38:35 | 2023-08-24T17:38:35 | 166,008,577 | 1,050 | 735 | NOASSERTION | 2023-09-14T20:35:07 | 2019-01-16T09:05:33 | null | UTF-8 | C++ | false | false | 727 | cpp | split-per-source-second-file.cpp | #include "split-per-source.h"
void runKernelsFromFile2() {
sycl::queue Q;
int Data = 0;
{
sycl::buffer<int, 1> Buf(&Data, sycl::range<1>(1));
auto KernelID1 = sycl::get_kernel_id<File2Kern1>();
auto KB = sycl::get_kernel_bundle<sycl::bundle_state::executable>(
Q.get_context(), {KernelID1});
... |
9f2533f0d3cbc2c1d359f2462b72a14792e7e5d0 | e024ddd3c3bf037c08187d7ac9c7fec37b06c0b1 | /Builder/main.cpp | 2ea31cff4f9ce12560cab0a1cba6d2f5fcb3013d | [] | no_license | Andrew22674/ExamenVanguardia | ffa90294525000c4d04db22168664af09eb90b76 | c98221ce243c72e7baedb4181ca8513bdf0fdd13 | refs/heads/master | 2021-01-15T00:39:48.649267 | 2020-02-24T19:38:59 | 2020-02-24T19:38:59 | 242,815,695 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 335 | cpp | main.cpp | #include <iostream>
#include "Director.cpp"
using namespace std;
int main(){
Director dir;
Note10Builder nb;
GalaxyA10Builder gb;
Phone *note = dir.createPhone(&nb);
Phone *galaxy = dir.createPhone(&gb);
note-> showPhone();
galaxy -> showPhone();
delete note;
delete galaxy;
... |
b8ff5cfbcf37a29f9182cb9ad9b3703e9560259f | b04fc6477319e8deb95a2e98332190cfc744f758 | /Consensus.cpp | 0058b1e34f4b51d9a24ada2aac3780b3930696b5 | [] | no_license | mattheww95/MSA_Con | d59e85e571c3414b3eb653c197a1184864097806 | 450609d9d6de15d6b60b4fbda1619ee21d0ae48f | refs/heads/main | 2023-07-16T04:20:20.011407 | 2021-09-07T15:14:21 | 2021-09-07T15:14:21 | 404,025,044 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,310 | cpp | Consensus.cpp | #include <iostream>
#include <fstream>
#include <vector>
#include <string>
typedef unsigned long long int __uint64;
struct nucleotides {
/// From MSAIndex as well :^)
__uint64 A = 0;
__uint64 T = 0;
__uint64 C = 0;
__uint64 G = 0;
__uint64 N = 0;
__uint64 other = 0;
__uint64 del = 0;
}... |
d9218e2239bf8dc603aff42737abd27b39059c0c | 23d7dc823f9e50f326c08b716362ab46e26fb5a8 | /ophidian/placement/PlacementMapping.cpp | 7b63a2231cff9b6f0dfe645043368db5b2212425 | [
"Apache-2.0"
] | permissive | joaovicentesouto/ophidian | f15251c1f19ab379cb37efb0b4fb0110cab7d981 | 6871c18e7be0674fd0363f4f10a2b9d04027516b | refs/heads/development | 2021-09-19T11:47:22.034011 | 2017-10-30T13:23:34 | 2017-10-30T13:23:34 | 101,916,908 | 0 | 0 | null | 2017-08-30T18:41:58 | 2017-08-30T18:41:58 | null | UTF-8 | C++ | false | false | 1,126 | cpp | PlacementMapping.cpp | #include "PlacementMapping.h"
namespace ophidian {
namespace placement {
PlacementMapping::PlacementMapping(const Placement &placement, const Library &library, const circuit::Netlist &netlist, const circuit::LibraryMapping &libraryMapping)
: mPlacement(placement), mLibrary(library), mNetlist(netlist), mLibraryMapp... |
a0fa5f146f069b56bbc6c31ff989bac899e357b9 | 054454a3033bd65763dbe1f81535138712c47952 | /w6/d3_templates/templates_06.cpp | ef9bfaad13ab487c5ec5e80f6b7809a3dc11dc7c | [] | no_license | greenfox-zerda-sparta/szaboattus | 8e6cec0bdde81f7942ce5d451ed20826d7994a4d | 7eee9c38361895b96eb3612fa5242f821c50526e | refs/heads/master | 2021-01-17T18:18:13.841031 | 2017-02-17T09:19:32 | 2017-02-17T09:19:32 | 71,350,874 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 770 | cpp | templates_06.cpp | #include <iostream>
#include <string>
using namespace std;
template <class ATTUS>
double sumofElements ( ATTUS* array, int x) {
double sum = 0;
for (int i = 0; i < x; i ++) {
sum += array [i];
}
return sum;
}
template <>
double sumofElements<char>(char* array, int x) {
int sum = 0;
for (int i = 0; ... |
3cc0820b4569e3d7450394db01ee831f7d46b487 | 4cc3b4aa2b7d9f5467d88785bb42653e98bc302a | /belanja.cpp | 741c143a6ba99f341613a8ff3236a6d084a0ae82 | [] | no_license | khafid-gionino/C- | 275a3938ea8a2625a47c30604ff3c3bbac804b8c | 544da8afa581783f729c79beb688dcb22c82151b | refs/heads/master | 2021-08-23T17:25:32.441057 | 2017-12-05T21:47:34 | 2017-12-05T21:47:34 | 113,182,443 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 654 | cpp | belanja.cpp | #include <iostream>
using namespace std;
main(){
int h_gula, h_beras, h_minyak, h_telor, diskon, total;
int b_gula, b_beras, b_minyak, b_telor;
cout<<"masukan jumlah Gula :";
cin>>b_gula;
cout<<"masukkan jumlah beras :";
cin>>b_beras;
cout<<"masukkan jumlah minyak :";
cin>>... |
0fcb2ae03d4cbf02756d8cd9a90e7e682ae6ff6a | 9f3f1c141054113c0c72f187a016550d4c403e5d | /D04/ex00/Sorcerer.hpp | 7cec01805f764ef7f138245564575592c0e5b83e | [] | no_license | MarineBaron/Piscine_CPP | a0526710c77036ff93c21cfcc5413e17e7311253 | 8675320fb373e0bbf2965b152db47cbdfd964585 | refs/heads/master | 2021-09-11T01:01:54.524302 | 2018-04-05T08:54:59 | 2018-04-05T08:54:59 | 123,882,935 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,448 | hpp | Sorcerer.hpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Sorcerer.hpp :+: :+: :+: ... |
2ed032817f4153e5b8b9c40a18cea9ce62ed0506 | 6cb6a875e9a42f91674c2cc5a9901c6af9daf456 | /src/lib/wombat/body/BodyConfiguration.h | aec91d6320e9c5b8a672f280e21e59143566c5f7 | [] | no_license | benknopp/wombat | 9f6d2a03ddfd8b51fbf4585e0a248adfb3e10086 | 7d45bcc8e7557c49a5d019efe12e584caa9d7084 | refs/heads/master | 2021-01-15T18:04:08.098240 | 2010-06-21T17:48:17 | 2010-06-21T17:48:17 | 732,328 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 849 | h | BodyConfiguration.h | /*
* BodyConfiguration.h
*
* Created on: 10.12.2009
* Author: bknopp
*/
#ifndef BODYCONFIGURATION_H_
#define BODYCONFIGURATION_H_
#include <Eigen/Core>
USING_PART_OF_NAMESPACE_EIGEN
#include <vector>
#include "BodyStructures.h"
namespace wombat
{
/*!
* \brief contains all time-variing information about... |
ba492210ab3fb69df44f116d7b860d01dec89b07 | 5e3a5af3473ead6c3ebbd617464e4d09ee26ad25 | /Ai For Games Lab1/Ai For Games Lab1/Math.h | ec42fe026b538ef829b0a791985c207e24433f4f | [] | no_license | David-Whiteford/Games-Ai-1 | a09cc8fbdf07535af15c57efb8db94d4885c0524 | 98fc3d797e23d083ab1a6a949bb120ccf4f7f6c0 | refs/heads/master | 2022-12-31T10:08:00.649698 | 2020-10-19T22:16:11 | 2020-10-19T22:16:11 | 305,525,487 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 340 | h | Math.h | #ifndef MATH_H
#define MATH_H
#include <SFML/Graphics.hpp>
#include <cmath>
class Math
{
public:
Math();
sf::Vector2f normalise(sf::Vector2f t_vec);
float magnitude(sf::Vector2f t_vec);
float magnitudeSquared(float t_vecX, float t_vecY);
float length(sf::Vector2f& vec);
float dot(sf::Vector2f& vec, sf::Vector2f& ... |
f9bd6fcabf36314a9b009a848cb8d881a65c5cb8 | 17ee514db94b7a1932e37073491e59c67114e4aa | /CJ60/CJ60Lib/CJTabctrlBar.cpp | 1ea0924431337c6d4ae0695eb24e1e886e62d1b0 | [
"MIT"
] | permissive | joeriedel/Tread3.0A2 | 024ab01fbce9b33fb39d5987483dd740ed34aad7 | 9ce31695bd02f30f07464d18dbbfbf5d4d7fccf9 | refs/heads/master | 2023-03-15T15:30:05.499251 | 2023-03-04T04:01:11 | 2023-03-04T04:01:11 | 196,284,234 | 6 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 9,689 | cpp | CJTabctrlBar.cpp | // CJTabCtrlBar.cpp : implementation file
//
// DevStudio Style Resizable Docking Tab Control Bar.
//
// Copyright © 1998 Written by Kirk Stowell
// mailto:kstowel@sprynet.com
// http://www.geocities.com/SiliconValley/Haven/8230
//
// The code contained in this file is based on the original
// CSizingTabCtrlBar cl... |
c11e78ecd7b49fd4dacef1e3359855103f4f51d3 | 30706a797475e914835288113abd5f1ccd83a12e | /DuilibTeachBox0324/DuilibTeachBox0324/KeyPadWnd.h | 812b89ac76b6d966e2f0e8be0ed9c249b1300015 | [] | no_license | TenYearsADream/TeachBox | 79435af280b16328246a56113c5860b9d6d3f946 | 6b8a3203eab128ac495e8128ca0fffc9a66a1b9d | refs/heads/master | 2020-04-22T20:24:44.579794 | 2015-12-06T07:55:26 | 2015-12-06T07:55:26 | null | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,205 | h | KeyPadWnd.h | /**
*@file
*文件名称:KeyPadWnd.h
*
*摘要:软键盘窗口
*
*@author fly1992@163.com
*
**/
#pragma once
#include "GlobalVar.h"
#include "KeyBoard.h"
#include "KeyTable.h"
#define WM_INPUTEDIT (WM_USER+103)///<发送字符的窗口消息
///软键盘窗口类
class KeyPadWnd : public CWindowWnd, public INotifyUI
{
public:
KeyPadWnd();
LPCTSTR GetWindowClassName()... |
6e1fd3671d50c8cda86803b8fc35a79fad99abea | da66cb126f71cf777366a0f4eea8b0254c785e87 | /include/itkMGHImageIO.h | 4f087b9eafce04ee8da8697e358f4a15ad0a6adf | [] | no_license | PubFork/itkMGHImageIO | 2bd4074ccf93de8f67e4faee10ee0f2405dce62a | 9519c2c38d7ba0a6bf93182000224a7698fc1ca7 | refs/heads/master | 2020-04-18T07:34:16.593245 | 2018-05-06T03:33:37 | 2018-05-06T03:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,733 | h | itkMGHImageIO.h | /*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
*
* h... |
e3dc77376a5ed28d428761373251e2fab6d570c9 | ea89955e343ced5e705b4a338039e658a4ba67cb | /Source/Cancelable.h | 8634a8a11ddd3e971284df641a95d3f4c0eb2709 | [] | no_license | kennethdmiller3/videoventure | 775ce24ee4aebe3dfc65876a3fc9abb93f29b51d | 7182b78fde61421c48abc679ef6f2992e740d678 | refs/heads/master | 2021-06-03T19:26:26.704306 | 2020-07-25T05:37:02 | 2020-07-25T05:37:02 | 32,195,803 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 921 | h | Cancelable.h | #pragma once
class CancelableTemplate
{
public:
unsigned int mSpawn;
unsigned int mSwitch;
bool mTethered;
float mBacklash;
public:
CancelableTemplate(void);
~CancelableTemplate(void);
// configure
bool Configure(const tinyxml2::XMLElement *element);
};
class Cancelable
{
protected:
un... |
bb2184bd94a312a5ffdbe2b3bc9cebbda5b4b91e | 6e528660a364d395174aed25dea77a336f5754d7 | /goodnessofstring.cpp | 316a43ae9d003f6aee6e6da0adbebb327fdfa7a9 | [] | no_license | RaperTon-Lab/Kickstart | 56b6294192daa252cfd2c5da589387a9b829a154 | ff9787033f647cb30a862e48beea6f7eb6836865 | refs/heads/main | 2023-07-01T00:08:29.327480 | 2021-07-24T07:58:29 | 2021-07-24T07:58:29 | 388,757,336 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,284 | cpp | goodnessofstring.cpp | /*Charles defines the goodness score of a string as the number of indices i such that Si≠SN−i+1 where 1≤i≤N/2 (1-indexed). For example, the string CABABC has a goodness score of 2 since S2≠S5 and S3≠S4.
Charles gave Ada a string S of length N, consisting of uppercase letters and asked her to convert it into a string w... |
6be336d937e22bdb69f945a5ee3f0cffca15a1ac | b7d170f1f013d8802a0474ed0fe7735d6f32f7ba | /main.cc | a37204a63d4fe5ec057c19a6f6e5651ade06e419 | [
"BSD-2-Clause"
] | permissive | jaxonwang/suffixtree | 433e918e82ccb81d8ab885bb5fde88f35ec8cfad | cf92de365a244deb0cdd0917d8a622da1276bfd8 | refs/heads/master | 2022-11-29T15:53:43.708816 | 2020-08-20T08:10:27 | 2020-08-20T08:10:27 | 288,432,085 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 13,874 | cc | main.cc | #include <array>
#include <charconv>
#include <chrono>
#include <iostream>
#include <memory>
#include <sstream>
#include <unordered_map>
#include <vector>
using namespace std;
using namespace std::chrono;
class SuffixTree;
class Node;
class NonLeaf;
class InternalNode;
class Leaf;
class Edge;
class InternalEdge;
class... |
dbbddd830da29c276f48729c6feb4e178efdeeb2 | 0d3495b21a9ca6f9a0375a508a38b98ad73b01b5 | /Before Clinet Started/Client/simple client.cpp | 47bdd9cb2a0e7c6aa493f28c57f1cf4d5db1af41 | [] | no_license | Iiqra/High5 | 04fd6d0d41c4d6d87def6d8373567952c96da64a | cd79340c01f871fb8fee1dc63b59868ce275a093 | refs/heads/master | 2020-06-28T03:07:55.703860 | 2017-08-16T11:34:51 | 2017-08-16T11:34:51 | 97,085,679 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 846 | cpp | simple client.cpp | #include "ace/INET_Addr.h"
#include "ace/SOCK_Stream.h"
#include "ace/SOCK_Connector.h"
#include "ace/Log_Msg.h"
#include "ace/OS.h"
#include <iostream>
#include <string>
#include "User.h"
#include "MessageProtocol.h"
using namespace std;
int ACE_TMAIN(int, ACE_TCHAR *[])
{
printf("Inside main");
ACE_INET_Addr srv... |
0be511cad77869c620d41982b73f8bbdfb5c10c2 | 72cc66c2026335ddb7b99e4a23c09d83df81226d | /Lab5/Lab.cpp | d957efa51d4e2dc375ae00d65dec7c9bc14f6916 | [] | no_license | Jurden/417lab | bc5f8335021f9e0917028c1e3eb9d6641f30b7e6 | 67b45c986702bec70cebbf6956b9d172d3ca8db2 | refs/heads/master | 2021-01-10T16:39:51.580531 | 2015-12-10T18:41:39 | 2015-12-10T18:41:39 | 46,306,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,243 | cpp | Lab.cpp | // Lab 1 Jordan Millett
// Compile using:
// g++ filename.c -o filename -L "/usr/linux/public/labvolt" -l labvolt -l usb
// Make sure output file permissions are set to include x (execute)
#include "/home/jurden/Desktop/417Lab/labvolt/inc/labvolt.h"
#include <unistd.h>
#include <iostream>
#include <cstdlib>
#in... |
b4bfa88d3f1e853839e45c9b6abef89af947d40a | e82b2f4eddbbfe7b9196f9dcbf9698f6726674c9 | /RemoteDesktop_Library/Firewall.cpp | ed285b64ed8e75be9d6021e574652e591b712b48 | [] | no_license | wendysuly/RemoteDesktop-1 | b937ce3be7036f489d285f987fcf9f87331dd3ab | a12fb71c66db252daa93328f63486e2123705798 | refs/heads/master | 2021-01-15T22:51:38.420579 | 2015-01-30T06:06:49 | 2015-01-30T06:06:49 | 41,962,507 | 1 | 0 | null | 2015-09-05T13:46:28 | 2015-09-05T13:46:27 | null | UTF-8 | C++ | false | false | 9,906 | cpp | Firewall.cpp | #include "stdafx.h"
#include "Firewall.h"
#include <crtdbg.h>
#include <netfw.h>
#include <objbase.h>
#include <oleauto.h>
#include <stdio.h>
HRESULT WindowsFirewallIsOn(IN INetFwProfile* fwProfile, OUT BOOL* fwOn)
{
HRESULT hr = S_OK;
VARIANT_BOOL fwEnabled;
_ASSERT(fwProfile != NULL);
_ASSERT(fwOn != NULL);
... |
f9e7ed4ce3ef550ab926f999888e56f2d27dffc3 | 0b0f2f74d98794d712effeb69124f884334772d2 | /[6]분할정복/2447_별 찍기 - 10.cpp | a544c7a2b83392a7fd00bb313a8558290ff38e4d | [] | no_license | wjh51333/Problem-Solving | dff6a26df379bec8b7018b46b9d219db16d336a9 | f36f0d9bdfd47b68b07e5410918a296080fad68a | refs/heads/main | 2023-03-21T21:19:58.935457 | 2021-03-15T12:16:18 | 2021-03-15T12:16:18 | 330,971,229 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,021 | cpp | 2447_별 찍기 - 10.cpp | /* 분할정복
* 2447 별 찍기 - 10
*/
#include <iostream>
#define MAX 3000
using namespace std;
int n;
char map[MAX][MAX];
void stars(int x, int y)
{
int cnt = 0;
for (int i = x; i < x + 3; i++) {
for (int j = y; j < y + 3; j++) {
cnt++;
if (cnt == 5)
map[i][j] = ' ';
else
map[i][j] = '*';
}
}
}
vo... |
a0bbb863998c26f976ed521a503800b3e8b8f0a9 | 16ebc8f962c0473e6185b1416116761d7daaacad | /src/simplex/window/win32/window_win32.hpp | b5e9da5db134261bd58b296d8428e3da9ff3d09d | [] | no_license | dutow/simplex | 4b1bf38545107761ec817a835dc8f49891ea6d64 | 0774c6da2a8365015002c6f17eabaa7c53b399ff | refs/heads/master | 2021-01-10T18:38:56.134116 | 2015-05-27T05:26:47 | 2015-05-27T05:26:47 | 1,534,157 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 848 | hpp | window_win32.hpp |
#pragma once
#include <Windows.h>
#include "simplex/window/window.hpp"
#ifdef WIN32
namespace simplex {
/** A win32 window. */
class win32_window : public window {
public:
/**
* Creates a new window.
*
* @param [in,out] owner_application Reference to the running application.
* @param ti... |
c4124a62e24096fa83887c3fc09bb9297c8563fb | b728c792b5171f6be6ad91919b4a76a6f198b3e9 | /src/lib/datasrc/tests/logger_unittest.cc | 9d419436a1adbb8976109dbba7b18a8fbe372ed0 | [
"LicenseRef-scancode-unknown-license-reference",
"ISC",
"BSL-1.0"
] | permissive | bundy-dns/bundy | c8beeca2c051924590794c92a3a58d1980a86024 | 3d41934996b82b0cd2fe22dd74d2abc1daba835d | refs/heads/master | 2021-09-28T16:24:39.037808 | 2021-09-22T06:04:17 | 2021-09-22T06:04:17 | 19,160,469 | 110 | 33 | NOASSERTION | 2021-09-22T06:04:18 | 2014-04-25T20:54:37 | C++ | UTF-8 | C++ | false | false | 1,178 | cc | logger_unittest.cc | // Copyright (C) 2010 Internet Systems Consortium, Inc. ("ISC")
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or without fee is hereby granted, provided that the above
// copyright notice and this permission notice appear in all copies.
//
// THE SOFTWARE IS PROVIDED "A... |
b1261dab472bdec4e188d8292483926e43fc359a | 1b9a32ea5f2492fd3512965f92e0f057b0528d33 | /Alert_Using_Same_Key-Card_Three_or_More_Times _in_a_One_Hour_Period.cpp | 389511f220190e06e0edd95ce756c19a6b5e688c | [] | no_license | shivangigoel1302/leetcode_solutions | a459a4279ffcfa889cf1fe0e8eb681e4e79186b6 | 3373f9710bd797bcda5cbd86958e8914ba9e2a15 | refs/heads/master | 2023-08-23T04:18:26.678630 | 2021-11-01T14:57:21 | 2021-11-01T14:57:21 | 274,206,300 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,310 | cpp | Alert_Using_Same_Key-Card_Three_or_More_Times _in_a_One_Hour_Period.cpp | class Solution {
public:
bool isAlert(string name, set<string>time){
auto it = time.begin();
while(it!=time.end()){
auto j = it;
string t = *it;
string hour = t.substr(0,2);
int range = stoi(hour) +1;
string newTime ="";
... |
7f3e94d14e2c7273bc46b64351c009288111e3d2 | f7d9171e36daf02bc720cc139366505ef6ccd44d | /aliroot/vsaliroot/test_ForEachPadInArea.cxx | 36273392b956718bca9de360cddb2c87ff290c3c | [] | no_license | mrrtf/alo | 4e0689c99a2bda365f6852ed8ad430eb21b8f137 | 76898ba66e07cf4cc613f7086b277c66bcc97098 | refs/heads/master | 2022-06-20T20:09:06.344681 | 2022-05-30T16:50:13 | 2022-05-30T16:50:13 | 86,624,953 | 0 | 6 | null | 2020-04-08T20:46:23 | 2017-03-29T20:10:55 | C++ | UTF-8 | C++ | false | false | 8,146 | cxx | test_ForEachPadInArea.cxx | //
// Copyright CERN and copyright holders of ALICE O2. This software is
// distributed under the terms of the GNU General Public License v3 (GPL
// Version 3), copied verbatim in the file "COPYING".
//
// See https://alice-o2.web.cern.ch/ for full licensing information.
//
// In applying this license CERN does not wai... |
88cc6c3e618b5b61b32e09f1609fa7ea53a0787a | b7302b693143b939ba2a2637629ad2be6870096c | /01_Basics/0011_ConstDataType.cpp | 31caa502a122d1452857bd5c95f143bbfd24f89e | [] | no_license | abdulhathidev/CPlusPlus | 832f18e2f907315be961be60c6bdcd73eb1161d3 | 69584a4691bc00642ccdbf7e3d82de716d853c6c | refs/heads/master | 2021-02-17T13:12:53.288195 | 2020-05-15T07:35:19 | 2020-05-15T07:35:19 | 245,099,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 414 | cpp | 0011_ConstDataType.cpp | #include <iostream>
using namespace std;
const int EmployeeNumber = 10;
const string EmployeeName = "Abdul Hathi";
const float EmployeeSalary = 10000.112;
int main()
{
cout << "Constant value of Employee Number : " << EmployeeNumber << endl;
cout << "Constant value of Employee Name : " << EmployeeName << endl;... |
1ba8d5cb633e256a3bcc8637e729b894889675d0 | dca27afb7211da7a919723f6c9ec845b705aa9cd | /src/Model/ReproductionBasic.cpp | f5c27bc35303cccf7241dfc939796227c13464c7 | [] | no_license | cuista/MadingleyCPP | a8bc8253cb36a7d201135b14cce02544619aef64 | e628e95077ddac5276045b8c630d40a4a6adfbf6 | refs/heads/master | 2021-01-18T10:12:47.001199 | 2017-06-29T11:45:03 | 2017-06-29T11:45:03 | 84,318,180 | 1 | 1 | null | 2017-06-28T12:42:44 | 2017-03-08T12:32:10 | C++ | UTF-8 | C++ | false | false | 10,478 | cpp | ReproductionBasic.cpp | #include "ReproductionBasic.h"
ReproductionBasic::ReproductionBasic( std::string globalModelTimeStepUnit, bool drawRandomly ) {
mTimeUnitImplementation = "month";
mMassRatioThreshold = 1.5;
mMassEvolutionProbabilityThreshold = 0.95;
mMassEvolutionStandardDeviation = 0.05;
mSemelparityAdultMassAllo... |
1ce630fb48e25a5613bb05d7f8b30966544d3ce1 | c6d20b3e03270a97d6836bcb246f3e3e21388a7b | /luogu/13.cpp | 783d07f21e21c1249121e4d5bc0f9a279ddf92ac | [] | no_license | CaiapoZ/Comade | 68d9fa40e21b09cd598f54695f791fac5717f5cc | 9750463ffaa220edbb3b0d1a925790345318a3fa | refs/heads/master | 2023-07-26T16:43:08.571867 | 2021-09-04T11:03:12 | 2021-09-04T11:03:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 354 | cpp | 13.cpp | #include<stdio.h>
int main()
{
int L,M,n,N=0,i;
scanf("%d %d\n",&L,&M);
int a[200],b[10001];
for(i=0;i<=L;i++)
{
b[i]=i;
}
for(n=1;n<=M;n++)
{
scanf("%d %d",&a[n*2-2],&a[n*2-1]);
for(i=0;i<=L-1;i++)
{
if(b[i]>=a[n*2-2]&&b[i]<=a[n*2-1])
{
N++;
b[i]=L+1;
}
}
}
pr... |
6d43533b80ac32492bb1c048e55350300c1485c2 | 2a9bb2479249dcc311dc437efdaf365f827e7cb2 | /IfcPlusPlus/src/ifcpp/IFC4X3/lib/IfcMetric.cpp | 39b4d25e2f805e9c94e146547f20ea27f29c149e | [
"MIT"
] | permissive | ifcquery/ifcplusplus | b889ea11bac77e34ef19c4561b24b4ac30389703 | d28b77d85ed45d3da5a674ee3d3ebee88e681717 | refs/heads/master | 2023-08-21T21:23:49.859570 | 2023-08-04T15:37:54 | 2023-08-04T15:37:54 | 33,250,365 | 540 | 240 | MIT | 2023-08-04T14:04:20 | 2015-04-01T13:53:19 | C++ | UTF-8 | C++ | false | false | 5,058 | cpp | IfcMetric.cpp | /* Code generated by IfcQuery EXPRESS generator, www.ifcquery.com */
#include "ifcpp/model/AttributeObject.h"
#include "ifcpp/model/BuildingException.h"
#include "ifcpp/model/BuildingGuid.h"
#include "ifcpp/reader/ReaderUtil.h"
#include "ifcpp/writer/WriterUtil.h"
#include "ifcpp/IFC4X3/include/IfcActorSelect.h"
#inclu... |
5e386c21ce3514efe52069228cda73d47280ea32 | 0acf61a9a7ad69d015462fb5e8ee7ae19ed19903 | /RotateString.cpp | d2a39c398f5ca12accce3b9f008023f14ee489db | [] | no_license | AntoniaReiter/OOP_Labor | 215ee155f60eb1d76bbcc809af6f9aaaa588f054 | ec82f6ee53c0fd7da64b8e766bcb62a63af5fe2e | refs/heads/master | 2020-12-27T08:29:42.725026 | 2020-09-14T11:34:54 | 2020-09-14T11:34:54 | 237,833,774 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 534 | cpp | RotateString.cpp | #include "pch.h"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
std::string operator<< (std::string input, int range){
return input.substr(range) + input.substr(0, range);
}
std::string operator>>(std::string input, int range) {
return input.substr(input.size() - range, range) + input.s... |
7486b2de0145576bed709b2d187b046080c400e8 | c30372c629e177c61bf48176826565fd33bfd42d | /SSD/Action.h | 0b6b62d8f0f1b6fa2912853637bd1bd8062bd3d0 | [] | no_license | Aspenka/SSD | 49140df352d81178f39f20a97435b3666568ba94 | 7d08ee76b88808ab801c607d3cc1363fa12b0eb6 | refs/heads/master | 2021-01-17T07:10:08.372171 | 2016-06-06T14:05:59 | 2016-06-06T14:05:59 | 55,404,307 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 274 | h | Action.h | #ifndef ACTION_H
#define ACTION_H
#include <QObject>
class Action : public QObject
{
Q_OBJECT
public:
explicit Action(QObject *parent = 0);
~Action();
virtual void execute() = 0;
protected:
QString name;
signals:
public slots:
};
#endif // ACTION_H
|
1aa1e8e5b82901f1d9bf50d3ec180f952040fa89 | c040cdf326641565ab4e03c683aca331c29a7005 | /UVaSolved/Volume 101/10189.cpp | 1c617be1f71e31901d92bf7156401795b74604e8 | [] | no_license | kmsabrin/UVaSolved | ff789d233b8116effc9afbacb1e4c5b6cc58beaa | 051d648c4c9dff95bd4fbebf0ad2a7358ebccb54 | refs/heads/master | 2020-07-02T04:31:26.074061 | 2014-08-27T05:37:36 | 2014-08-27T05:37:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,217 | cpp | 10189.cpp | From apache@acm.uva.es Tue Apr 6 20:02:46 2004
Received: from acm.localnet (web.localnet [192.168.10.200])
by acm.uva.es (8.11.6/8.11.6) with ESMTP id i36I2kW21484
for <judge@juez.localnet>; Tue, 6 Apr 2004 20:02:46 +0200
Received: by acm.localnet (Postfix)
id EC92510129; Tue, 6 Apr 2004 20:02:46 +0200 (CEST)
Deli... |
a6dfdf0e3226602c57adcc73c6eecca08712cf2f | 2875e427d9931ab8cfe2e066e1568c3130fcc3f2 | /Solaris_2.6/os_net/src_ws/usr/src/cmd/rpcsvc/nis/rpc.nisd/nis_cc_main.cc | e94d987fa3afb827da3610e88377cef6c598e8c1 | [] | no_license | legacy-codedigger/Solaris-2.6-Source-Code | 3afaff70487fb96c864d55bd5845dd11c6c5c871 | 60a0b3093caa7d84e63dd891a23df0e8e720bf3d | refs/heads/master | 2022-05-23T16:05:32.631954 | 2020-04-25T01:07:08 | 2020-04-25T01:07:08 | 258,658,903 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 404 | cc | nis_cc_main.cc | #pragma ident "@(#)nis_cc_main.cc 1.3 92/07/17 SMI"
/*
* This is needed to to satisfy the C++ system that needs the main
* routine to be compiled with C++ compiler if you link with a library
* that has C++ code and static intializers.
*
*/
extern "C" {
actual_main(int, char**);
}
main(int argc, char*argv[])... |
29769122ae3bf9886f7c5ffca925e499b181e811 | c39f0eb0dd081ec70721f30b74fe42dcd92bc486 | /Arek_przyklady/Przykład_11_deduction_all_or_nothing_1/deduction_all_or_nothing_1.cpp | d3c1797b8713ec01d331356e0e2445c3223108a5 | [
"MIT"
] | permissive | WektorZabrze/ADV_29_11_2018 | 925e0452a0bf5df7a80eb1a0ad4ff33df6546345 | afab03af53cfd47b0cb67c60280259bef2ce1c96 | refs/heads/master | 2020-04-08T19:31:55.594554 | 2019-02-22T10:40:59 | 2019-02-22T10:40:59 | 159,659,561 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,375 | cpp | deduction_all_or_nothing_1.cpp | /**
* Przykład numer 5 do automatycznej dedukcji typów w szablonach klas
*
* Dedukcja dla szablonow dziala na zasadzie "all or nothing" - mozemy
* podac pomiedzy <> wszystkie typy, albo ŻADEN
*
* Nie mozna podać np połowy typów - no chyba ze mamy szablon z typami domyslnymi
* to wtedy te mozna pominac
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.