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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3348495d14ee1714907c25cbae2d67892eea91b | 9f5480e5140c45fc1b231ff54712942aa9c3bcf0 | /student.h | ab76b78201e39e2896c3ff7a50155a6b99118201 | [] | no_license | MEmanuela/university | d5e7b4b4e78fed6c1acfad8b6d6b4f311792ff79 | c34f166c5294b2fa638ce102b35a689c8e79aa45 | refs/heads/master | 2020-08-16T06:48:58.653983 | 2020-02-28T09:52:20 | 2020-02-28T09:52:20 | 215,469,970 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 856 | h | student.h | #pragma once
#include <string>
#include <iostream>
using namespace std;
class StudentAC : public PersoanaAC
{
int m_ianStudiu;
int m_inotaP2;
public:
StudentAC();
StudentAC(string cnp, string nume, string adresa, int
anStudiu, int notaP2);
~StudentAC();
void afisareProfil()
{
PersoanaAC::afi... |
fa0cfb2502c9ce92ea0b09574eb6e91649490ae7 | 0b9cbe14237343a4fdd9077ab9ad506ff73008e9 | /source/enemy/nbuttfly.cpp | 63858c199f4a3b83d82eff9a9364b3c2c7d44936 | [] | no_license | aicreed/SBSPSS | 9cdfa219f67875db2f971142277732c00955abb8 | 6782909006153f2cba8d80d8e9339ee5fc39d71c | refs/heads/master | 2021-01-04T13:36:22.014724 | 2020-03-06T14:37:45 | 2020-03-06T14:37:45 | 240,575,228 | 0 | 0 | null | 2020-02-14T18:36:51 | 2020-02-14T18:36:50 | null | UTF-8 | C++ | false | false | 2,342 | cpp | nbuttfly.cpp | /*=========================================================================
nbuttfly.cpp
Author: CRB
Created:
Project: Spongebob
Purpose:
Copyright (c) 2000 Climax Development Ltd
===========================================================================*/
#ifndef __ENEMY_NBUTTFLY_H__
#include "enemy\nbu... |
a4d8c4b6dc413e8341b325dff244fb2e3791a2aa | 1240cab345c126566291f8e461d063cb6430396f | /src/openms/include/OpenMS/ANALYSIS/MAPMATCHING/FeatureGroupingAlgorithmKD.h | 68fd364196b9440eae159f513ff93b446d6b73c4 | [
"BSD-3-Clause",
"BSL-1.0"
] | permissive | OpenMS/OpenMS | 05cd6c9a2b8f3004ef47755305711a6631c13340 | 15e8641e9b6fad76e8314448a808d68231a93088 | refs/heads/develop | 2023-08-18T03:44:50.273261 | 2023-08-17T19:45:27 | 2023-08-17T19:45:27 | 15,763,403 | 443 | 312 | NOASSERTION | 2023-09-14T13:29:36 | 2014-01-09T10:15:13 | C++ | UTF-8 | C++ | false | false | 8,354 | h | FeatureGroupingAlgorithmKD.h | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... |
5301cd6a91caa2413453aa464bad98b33f01efe6 | 226f5e2a38269ce056ec7e8f458548cdde4ad97c | /MIXTURES.cpp | fb02df4408457dfd3b2f41182c7f550bf756186e | [] | no_license | naganath/SPOJ | 4b4051ee2abc4f8f1afccebc9674013b5dc6bdd9 | b149340fab7e609237908b5bb1a0ce4a7516a544 | refs/heads/master | 2020-05-02T20:35:51.212318 | 2014-06-27T08:44:24 | 2014-06-27T08:44:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 648 | cpp | MIXTURES.cpp | #include<iostream>
#include<stdio.h>
using namespace std;
int b[100],a[100][100];
int sum(int,int);
int mix(int i,int j)
{
if(i==j)
return 0;
if(a[i][j]!=-1)
return a[i][j];
int g,k,min=1000000;
for(k=i;k<j;k++)
{ g= mix(i,k) + mix(k+1,j);
g+=sum(i,k) * sum(k+1,j);
if(g<min)
min=g;
}
a[i][j] = mi... |
17b32d25d5d2da8fedd5d169cc43eb10723ee676 | e843e237fe5a45b2a09b834038b2556979076d2a | /data/src/client/network/netConnector.h | 433c1cdbd6dd83469e364d78fad3597efdaaac1e | [] | no_license | HeightsHeights/TeamGame | d4b816b31d00f2bb3bfea6e25dc2c445837924af | 8c945e1d9bb67cf879c1b37e40092907f065e56f | refs/heads/master | 2020-04-02T21:43:45.909494 | 2019-02-04T05:43:19 | 2019-02-04T05:43:19 | 154,810,079 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 455 | h | netConnector.h |
#pragma once
#include <netdb.h>
/******************************************************************************
* class NetConnector
* 機能1:
******************************************************************************/
class NetConnector
{
private:
int gSocket;
sockaddr_in server;
static bool isConnected;
... |
db38635169c274f41250837b84ae34e2c0925164 | b22588340d7925b614a735bbbde1b351ad657ffc | /athena/InnerDetector/InDetEventCnv/InDetEventAthenaPool/InDetEventAthenaPool/InDetRawDataContainer_p1.h | 444bc7b6b71d4a7c370fb01409ca0d140439f3e5 | [] | no_license | rushioda/PIXELVALID_athena | 90befe12042c1249cbb3655dde1428bb9b9a42ce | 22df23187ef85e9c3120122c8375ea0e7d8ea440 | refs/heads/master | 2020-12-14T22:01:15.365949 | 2020-01-19T03:59:35 | 2020-01-19T03:59:35 | 234,836,993 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,181 | h | InDetRawDataContainer_p1.h | /*
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
*/
#ifndef INDETRAWDATACONTAINER_P1_H
#define INDETRAWDATACONTAINER_P1_H
/*
Persistent represenation of an IndetRawDataContainer.
This is used for all the RDO conainers with base RDO objects.
The converter will take care of creating TRT/SCT... |
291b46db6d3a996e349e72c4db61185a90d995cb | 095c9239f24081ed5f8f8228e815acb7dcc7f6a1 | /92.HelloWorldWithoutSemicolon.cpp | e485607e5779246f3863eac68b7769f4bc97079b | [] | no_license | asthajain99/CampusTechPrep | 1144241f48455e523960c12513c1bc19d33f5d0b | d23706db1c99a9f67ee80a8a65e45f46f780dc2a | refs/heads/master | 2022-07-02T17:27:48.834145 | 2020-05-11T10:18:29 | 2020-05-11T10:18:29 | 255,821,119 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | 92.HelloWorldWithoutSemicolon.cpp | //Write a program to print hello world without using semicolon
#include<iostream>
using namespace std;
int main()
{
if(cout<<"Hello World")
{}
return 0;
}
//OUTPUT
//Hello World
//--------------------------------
//Process exited after 0.1492 seconds with return value 0
//Press any key to continue . .... |
d670ac183773d1b8ade9149c8d529c7d438e3f11 | d5467f3e5f275e5c40cb115c7d2f88fbcf424d95 | /CGame/src/Utility.cpp | 6bcdcda82c399f5111144e8f9af732c1ae30cff3 | [] | no_license | qzi/cgame | 0f5c181fe93e100183a1cbff3e2e317edb053bc3 | d5fa33d81f1fe98b7f613da3f12633d37698daa4 | refs/heads/master | 2021-01-19T04:13:39.762855 | 2011-05-21T06:25:23 | 2011-05-21T06:25:23 | 1,774,026 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,372 | cpp | Utility.cpp | #include "Utility.h"
/* definition */
GLfloat gCameraPos[3] = { 0.0f, -92.0f, 5.0f };
GLfloat gViewPos[3] = {0.0f, -92.5f, 0.0f };
GLfloat gUpPos[3] = { 0.0f, 1.0f, 0.0f };
/*CCamera gCamera;*/
CCamera gCamera;
/* roam below */
//GLfloat gFovX = 90.0f;
FILE * pFileLog = NULL;
float gSpeed = 10.2;
DirectMode gDirec... |
3381efa2059efc56fb884cf254ef4650f9092a3f | 9c5cf31c2a48835f209a67ff3b76dbf362a5ebac | /Gadget.h | a098abe7eb00aca70bd34ca07f54ecc3ed6b2595 | [] | no_license | tjostrowski/MScEngine | 873fe822e7f14b7ef1a948a4d6445f8bb52f2a8a | c77c9945ed728247baab794f03a0cadf4608dc5d | refs/heads/master | 2020-03-29T12:36:33.906739 | 2016-08-08T16:04:35 | 2016-08-08T16:04:35 | 65,218,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,857 | h | Gadget.h | #ifndef __GADGET_H__
#define __GADGET_H__
#include "common_header.h"
extern string G_CATAPULT;
extern string G_CANNON;
extern string G_POWERUP;
struct GTmplParams
{
string strClass;
int reqUnitsNum;
float width;
float height;
uint gTxtID;
};
extern GTmplParams tblTmplParams[];
class Gadget : public... |
70340e5aa8da93cab31313d4ef0334c316dc3d69 | a54f0bfe0390899df576a2dc964c18cdf83b24a3 | /CubeEngine/EngineSrc/Math/Matrix44.cpp | 74fb63f2b1a2ccd710e026c31d92fc70844535dd | [
"MIT"
] | permissive | SkillCampAlan/Cube-Engine | e226c82a86042f283764a3ee418e228fa04f2e49 | aa76db88fdace41b09cbfc51e5959a9686cca3f3 | refs/heads/master | 2022-12-26T07:41:22.954039 | 2020-10-10T11:45:11 | 2020-10-10T11:45:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,707 | cpp | Matrix44.cpp | #include "Matrix44.h"
#include "string.h"
#include <cmath>
#define MATH_TOLERANCE 2e-37f
#define MATH_EPSILON 0.000001f
#include "Engine/EngineDef.h"
namespace tzw {
Matrix44::Matrix44()
{
setToIdentity();
}
void Matrix44::setToIdentity()
{
memset(m_data,0,sizeof(m_data));
m_d... |
10c29b48dcaf40e69d545a0095df43dc939c5d9d | 9de326c64c8a344b0012b06131e644ae2b2f1534 | /include/type_checks.h | ef32b609f8a5bd3fdea4bc71f10145344f0e08c8 | [
"MIT"
] | permissive | mit-pdos/mcqc | a951fb6df8cc60d7c93ca54c89592b2d4ace4656 | eb5ab15b8bcc3c5c6a76e40f2e3bcbc2fc39e32e | refs/heads/master | 2021-06-12T10:57:09.332167 | 2021-04-05T00:49:56 | 2021-04-05T00:49:56 | 147,993,349 | 37 | 6 | MIT | 2021-04-05T00:49:56 | 2018-09-09T04:37:07 | Haskell | UTF-8 | C++ | false | false | 1,911 | h | type_checks.h | #ifndef TYPE_CHECKS_H
#define TYPE_CHECKS_H
#include <type_traits>
#include <utility>
#include <string>
#include <memory>
// Checks if type is callable by decltype magic
template<class T, class...Args>
struct is_callable
{
template<class U> static auto test(U*p) -> decltype((*p)(std::declval<Args>()...), void(), s... |
7cf1abf0432e4cde256cc48afe7c7c4f8ece474a | 3de331ba23d6d1f44bef306ce9ac8a34da208618 | /binary_search_tree/binary_search_tree.cpp | 364376cd82abc1416e894e9f26b0561529073e0c | [] | no_license | JohnnyJ5/LeetCode | 19b5a3d9a971190c487a8c4f2e2a5ed60ad92c4c | 991348446dafcd6397fe7ad3406b24534c20a951 | refs/heads/master | 2021-01-13T22:51:36.002284 | 2020-02-29T18:21:49 | 2020-02-29T18:21:49 | 242,520,045 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,893 | cpp | binary_search_tree.cpp | #include <iostream>
#include <map>
#include <string>
#include <memory>
#include <algorithm>
#include <sstream>
struct TreeNode
{
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
void printAnswer(TreeNode *result, int val)
{
std::stringstream ss;
... |
4e00f16eb84c9f200d74fc6fb9d8cd207b9a2c12 | 08808ed982d5e09ca0d7b7910956b45231898557 | /LeapMotionClientSources/HandDetector.h | e0791adcfa748733c8ba48948f6e6e2b194475e0 | [
"MIT",
"Apache-2.0"
] | permissive | gurbela/HoloLens-and-Leap-Motion | c4c97d72ce69daad93a88583308fa2b7f7053745 | b0c37d67a6c083cb58f0426c1dc60bda1a70cd89 | refs/heads/master | 2020-04-07T17:17:49.969374 | 2018-05-26T08:32:49 | 2018-05-26T08:32:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,884 | h | HandDetector.h | #pragma once
#include "stdafx.h"
#include <thread>
#include "opencv2\core.hpp"
#include "opencv2\highgui.hpp"
#include "opencv2\imgproc\imgproc.hpp"
using namespace std;
using namespace cv;
using namespace concurrency;
#define RESULT_FILE_NAME_BASE "calibration_data"
#define AVERAGING_KERNEL_SIZE 15
class HandDetec... |
b9e02ac256e1b6c5783330cee2a358ee64880f5f | 8c477ac85f226d98c21faeaa54c5bfde1598ac72 | /zadanie liczby2/main.cpp | 40562fabfa018a1810cb32520af61410aac42da2 | [] | no_license | kubpica/CppZadania | b70145a2049f9becaf08219dcd608ce12c8f2d1e | 80a3363532854fe4ba24125cb47418cf46d4da4d | refs/heads/master | 2020-04-12T13:37:04.211975 | 2018-12-20T05:15:29 | 2018-12-20T05:15:29 | 162,527,012 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 872 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
int zmiananadec(int liczba){
int wynik = 0;
int power = 0;
while(liczba != 0){
wynik += liczba%10 * pow(8, power);
liczba /= 10;
power++;
}
return wynik;
}
int ostatniacyfra(int l... |
0574781d98f1c07eba38e377711b8fb00619eb51 | 48b4b39b814c2b8c13549148de4fd98fb9c10e79 | /functions/markdownToHTML/getMarkDownPath/GetMarkDownPath.h | 8ddb2239dac881c9fbfbe23decbddcf89549338b | [
"Apache-2.0"
] | permissive | liupengzhouyi/dataPipeline | 4afdd7c00d0f3a093bd5496b7d50a73477610e2d | 1c83d139cef2c12faaf149963d374345cdc8d545 | refs/heads/master | 2023-04-16T23:30:40.618914 | 2021-04-30T07:24:12 | 2021-04-30T07:24:12 | 329,004,544 | 0 | 0 | Apache-2.0 | 2021-01-12T14:28:04 | 2021-01-12T14:01:16 | CMake | UTF-8 | C++ | false | false | 410 | h | GetMarkDownPath.h | //
// Created by 刘鹏 on 08/03/2021.
//
#ifndef DATAPIPELINE_GETMARKDOWNPATH_H
#define DATAPIPELINE_GETMARKDOWNPATH_H
#include <iostream>
#include <string>
class GetMarkDownPath {
private:
std::string markDownPath;
public:
const std::string &getMarkDownPath() const;
void setMarkDownPath(const std::stri... |
9210e7b1784303539c4b396763eed1c8a7405dac | 5d50719d6059359ea632a67e0bb880d78f325058 | /OP1Vezbe/Domaci6Custom/Domaci6Custom.h | 0cabb78ed145a078598bb288ea94aad954270ca6 | [] | no_license | rasko-lazic/ClionVISER | 354a9bc23e7ba4299d4df27e24548e695864a6d7 | 04751a0fcea949b32d2fcfea8848b9b219dadb65 | refs/heads/master | 2021-01-21T04:50:35.943125 | 2016-06-13T10:19:37 | 2016-06-13T10:19:37 | 53,660,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | h | Domaci6Custom.h | //
// Created by rasko-lazic on 4/27/2016.
//
#ifndef OP1VEZBE_DOMACI6CUSTOM_H
#define OP1VEZBE_DOMACI6CUSTOM_H
#include "../Vezbe.h"
class Domaci6Custom : public Vezba {
public:
int execute(void);
};
#endif //OP1VEZBE_DOMACI6CUSTOM_H
|
69de0cdac460cb8d622860abaaaa666be6398500 | 31ec4050bfc52793af7a3e49a8b3f98811d1828a | /OOP_HomeWork-6.cpp | 233dbe3bf5439bf3923aab33d90e7709b49b4367 | [] | no_license | Hedarius/OOP_HomeWork-1 | 9030fcde4fbe8c58d9f2c652cae341ccb494454a | d8b9e597648ade207eb861eac9e9ae5c3eaad5f7 | refs/heads/main | 2023-07-17T17:04:11.827588 | 2021-08-23T13:57:40 | 2021-08-23T13:57:40 | 390,360,315 | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 630 | cpp | OOP_HomeWork-6.cpp | #include <iostream>
class Car {
private:
std::string car1;
};
std::ostream& endll(std::ostream &stream) {
std::cout << std::endl << std::endl;
return stream;
}
int main() {
int num;
std::cout << "Enter number : ";
while(!(std::cin >> num) || std::cin.get() != '\n') {
std::cin.clear();
... |
a89262bf9397240c7c207370a2802e18d2f368b5 | dfeebff812ee66a1a4bfc8dae6f7eebab25c7c17 | /C++/Algorithms/Graphs/floodfill.cpp | 53c38988f69f93783bf9405a111ba220ddc72051 | [] | no_license | kushnayak/competitive-programming | ee7c709969bd69cb31837a0639af661c672c504d | 785a03323b956fdb0618e92dd54db9b141191205 | refs/heads/master | 2023-03-21T01:54:33.813007 | 2021-03-17T18:54:53 | 2021-03-17T18:54:53 | 277,401,853 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 802 | cpp | floodfill.cpp | #include <bits/stdc++.h>
#define forn(i,n) for(int i=0;i<n;i++)
#define nl '\n'
using namespace std;
const int maxN=255, dy[]={1,0,-1,0}, dx[]={0,1,0,-1};
int grid[maxN][maxN];
int N, M;
bool visited[maxN][maxN];
int cursize = 0;
void floodfill(int r, int c, int color){
if(r<0 || r>=N || c<0 || c >=M) return; /... |
242ed02648ca390ee239860e80ca8a70a2c43b55 | 935e7a128530bd1879ffc8372413eff71c8f212f | /lesson02/D_is_pow_of_two.cpp | c3ae1ec9ed217d5e6cc832cacd8b0bd6c6aba837 | [] | no_license | romanwrites/mipt_cpp | a6db2d30ac6605c68a28be0330b3380f51c9c92b | ef25e731aa61ff99593298281e3813b5120c4b04 | refs/heads/master | 2023-03-09T10:44:14.685546 | 2020-11-04T19:40:20 | 2020-11-04T19:40:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 456 | cpp | D_is_pow_of_two.cpp | #include <iostream>
bool is_pow(long long int *powers, long long int n)
{
int i = 0;
while (powers[i] != 0)
{
if (n == powers[i])
return true;
i++;
}
return false;
}
int main()
{
long long int n;
long long int powers[100] = {0};
int i = 0;
long long int pow = 2;
std::cin >> n;
while (pow <= n)
{... |
b3dcef4ef40036eaa414b44bbf7ce18f2ab720e3 | 921abfe8a10a4c0edc3035e8abc4a33d51625c1d | /Programmers/Level2/후보키.cpp | d91f21898f76fdb0edf5670450c98e68a9e7f05d | [] | no_license | gudwnsgur/Algorithm | 760fcff3b1e930bf1f8cf047c26253449b52cae9 | 016f6db056d821c918ea620d5517b00a387eff9a | refs/heads/master | 2023-05-01T03:28:17.003101 | 2023-04-18T14:08:05 | 2023-04-18T14:08:05 | 230,247,085 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,723 | cpp | 후보키.cpp | #include <string>
#include <vector>
#include <set>
#include <iostream>
using namespace std;
int cnt = 0;
vector<int> rel, arr;
vector<bool> visited;
vector<string> result;
vector<vector<string>> relations;
// 0 1 2 3
bool minimality(string str) {
// result(이전까지 모은 속성) 와 str 비교
for (int i = 0; i < result.size(); i+... |
1d63b38b43d77062df37883e77838fe07c66214d | 46f7cb7150697037d4b5f434dde423a1eeb8e422 | /ncnn-20210525-full-source/src/pipeline.cpp | efdaec80bdeda06a00769486e75f7d41671eae61 | [
"MIT",
"BSD-3-Clause",
"Zlib",
"BSD-2-Clause"
] | permissive | MirrorYuChen/ncnn_example | d856f732e031b0e069fed7e30759e1c6c7947aaf | 82a84d79c96e908f46b7e7cac6c8365c83b0f896 | refs/heads/master | 2023-08-18T06:31:06.113775 | 2022-05-14T17:38:01 | 2022-05-14T17:38:01 | 183,336,202 | 362 | 108 | MIT | 2022-06-22T04:17:14 | 2019-04-25T01:53:37 | C++ | UTF-8 | C++ | false | false | 14,812 | cpp | pipeline.cpp | // Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
35ce8fab8adf3e8365d120409d048283716bc8a5 | ca72ec1f7de3920ff29f294f68e0585fe4d8e121 | /Lightning/LightningViews/Lightning_View.cpp | 8df67e095767833126f348f5ffe785b3e6428ac4 | [] | no_license | mgood7123/Lightning | f36181a308630620e51aabae949ec1061aa785b9 | 4e062fcf0792d58952b1cd1f1bf760b32263d460 | refs/heads/main | 2023-08-14T23:37:02.391692 | 2021-10-22T08:40:00 | 2021-10-22T08:40:00 | 419,646,357 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,530 | cpp | Lightning_View.cpp | #include "Lightning_View.h"
float Lightning_View::MATCH_PARENT = -1.0;
float Lightning_View::WRAP_CONTENT = -2.0;
Lightning_View::Lightning_View()
{
}
Lightning_View::~Lightning_View() {
delete layoutParams;
}
void Lightning_View::resize(float w, float h)
{
}
void Lightning_View::onDraw(LightningEngine & engin... |
5a8d7be4708e16f33a43e5e030f3c637993eb9d4 | 9ea0f3015d2e7a6dc6ada68f624ccf6e0b9fdfbd | /src/Cube.cpp | fb2f73bf366b849101838d5dcd4c718ef792a251 | [] | no_license | LilliJane/Bomberman | 2fc7a1775bbc821228ce7703f1c7a51bfd201e95 | 9fa1a25c0eaa6d904f807806352e8a1256b64a34 | refs/heads/master | 2021-01-15T13:18:29.228513 | 2019-10-29T08:04:28 | 2019-10-29T08:04:28 | 37,992,934 | 1 | 1 | null | 2019-10-29T08:04:30 | 2015-06-24T15:24:14 | C | UTF-8 | C++ | false | false | 5,408 | cpp | Cube.cpp | //
// Cube.cpp for in /home/sabour_f/rendu/cpp_bomberman/src
//
// Made by Florian SABOURIN
// Login <sabour_f@epitech.net>
//
// Started on Wed May 27 10:07:34 2015 Florian SABOURIN
// Last update Wed May 27 10:07:39 2015 Florian SABOURIN
//
#include <stdexcept>
#include "Cube.hh"
#include "OpenGL.hh"
gdl::Geome... |
568ecc33615d6d750f5fa50d68b184bd3a48257f | 036150fcc2a013c4467738501680cfcc34fc66bb | /filters/autocontrast.h | 845fa385fc25808f38a4f46e82e768521c50eaa6 | [] | no_license | einzige/Multichannel-noise-generator | 37d66d923e34324920742ca00c05362724317619 | 4755d6840b59c82a4a3a2143ca49994fed496e83 | refs/heads/master | 2021-01-01T16:19:54.021139 | 2011-05-07T11:25:48 | 2011-05-07T11:25:48 | 1,635,692 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | h | autocontrast.h | #ifndef AUTOCONTRAST_H
#define AUTOCONTRAST_H
#include "../ifilter.h"
class AutoContrast : public IFilter
{
int min;
int max;
public:
AutoContrast(int min, int max);
void setMin(int);
void setMax(int);
int getMin();
int getMax();
QImage apply(QImage) const;
};
#endif // AUTOCONTRAS... |
90525c4a176a1bb4720a91c87403a7b894216584 | 30715e3a1402a8b562cd45fa9359a90a559197cd | /dev/examples/src/GraphTest.h | d47994175a2fa1034abe64877c37e1f4c2844837 | [] | no_license | phenix1021/PhenixGameDevKit | e3c508177e8a6af6d6a17faedb8d7763a3475168 | c4bdd0604c01c9f583e1bc6b906d667fa792fedc | refs/heads/master | 2021-01-18T22:43:50.969129 | 2019-02-02T13:43:16 | 2019-02-02T13:43:16 | 23,654,418 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,585 | h | GraphTest.h | #include <Phenix/Graph/UndirectedGraph.h>
#include <Phenix/Graph/DirectedGraph.h>
#include <Phenix/Graph/MinPath.h>
/*
用例说明:图的有关操作
*/
using namespace Phenix::Graph;
// 无向图
void buildUndirectedGraph()
{
/*
1<=>2 好友度10
1<=>3 好友度15
2<=>4 好友度20
3<=>5 好友度30
*/
UndirectedGraph<Phenix::Int32, Phenix::Int32> ug;... |
47bdc153ae632eb63c909fbab48fd6bd91e7e33f | a1a6b1d4c38e6c391c69793de50ce2cc695dc090 | /inhaler_sound_mark1/qt/audio/vocabulary_kind.hpp | 0b546e5b6ea6733a72523108803d03687faee610 | [] | no_license | KieronAllsop/inhalersound | 9b9f6dd9b6b430e12c360bbfc345ac0304f1b7a3 | 50a5f8893a8a823ffd406d7d8eabb379bb93b056 | refs/heads/master | 2021-03-24T13:09:44.551692 | 2015-09-21T20:26:10 | 2015-09-21T20:26:10 | 38,211,796 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,849 | hpp | vocabulary_kind.hpp | // G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
#ifndef QT_AUDIO_VOCABULARY_KIND_HPP_INCLUDED
#define QT_AUDIO_VOCABULARY_KIND_HPP_INCLUDED
// G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G G
// I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I I ... |
d5f1faab2b018e56771eb2a307aaaa995e8e31b1 | 927a85a994a8cae01ce6a79ee0782daef3c00fed | /Project-Bank/DailyAtmActionsReport.cpp | f7dd62dd292175c3ec5c7c384cad7ab2d0cff9b3 | [] | no_license | dsrikantreddy/HIT-projects | 210d3fdf580fd1ae0ef67cf016b36c1c0df2e45e | caf392602d87e4aa64af5df45546b2600c2765ee | refs/heads/master | 2021-01-18T02:20:23.477171 | 2014-05-15T18:16:50 | 2014-05-15T18:16:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 141 | cpp | DailyAtmActionsReport.cpp | #include "DailyAtmActionsReport.h"
DailyAtmActionsReport::DailyAtmActionsReport(vector<Operation> operations)
:operations(operations)
{ }; |
feb1843ad48bc660e957405aaa8e2d2ea95a27b8 | 1095cfe2e29ddf4e4c5e12d713bd12f45c9b6f7d | /src/sim/ticked_object.cc | a9ee2c84ba7193cb24d7c996f7bf784505c5ca32 | [
"BSD-3-Clause",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"MIT"
] | permissive | gem5/gem5 | 9ec715ae036c2e08807b5919f114e1d38d189bce | 48a40cf2f5182a82de360b7efa497d82e06b1631 | refs/heads/stable | 2023-09-03T15:56:25.819189 | 2023-08-31T05:53:03 | 2023-08-31T05:53:03 | 27,425,638 | 1,185 | 1,177 | BSD-3-Clause | 2023-09-14T08:29:31 | 2014-12-02T09:46:00 | C++ | UTF-8 | C++ | false | false | 4,713 | cc | ticked_object.cc | /*
* Copyright (c) 2013-2014, 2017 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation o... |
5c492b2f53ceb9e9a99c15937e0eaab2e77ae527 | 15fd495f617071de89a066f7d13199a0eca45be5 | /old2/test.cpp | 487502c11b992de5300687a1225a3a1a74c77943 | [] | no_license | V-Italy/optical_flow | 5176f221a4822398cacc0ce98cc968970a3955e3 | 5b07f43a5e76136283ab471b85d29fc351725042 | refs/heads/master | 2021-01-16T19:33:58.171269 | 2015-05-15T17:30:36 | 2015-05-15T17:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 761 | cpp | test.cpp | #include <iostream>
#include <cmath>
#include <opencv2/core/core.hpp>
#include <unordered_map>
int main(){
std::unordered_map<std::string, double> parameters;
parameters.insert(std::make_pair<std::string, double>("alpha", 2.3));
parameters.insert(std::make_pair<std::string, double>("beta", 1.3));
cv::FileStor... |
47200bb397812062b7b9f612373fd95f896907f0 | 2bc222c4afd9db25917d5469db0ff5da0a076797 | /src/memory/sink_rubber.cxx | 10beacabb26e574a108ff974661b89742ec44908 | [] | permissive | CM4all/beng-proxy | 27fd1a1908810cb10584d8ead388fbdf21f15ba9 | 4b870c9f81d5719fd5b0007c2094c1d5dd94a9c4 | refs/heads/master | 2023-08-31T18:43:31.463121 | 2023-08-30T14:03:31 | 2023-08-30T14:03:31 | 96,917,990 | 43 | 12 | BSD-2-Clause | 2023-09-11T10:00:43 | 2017-07-11T17:13:52 | C++ | UTF-8 | C++ | false | false | 5,247 | cxx | sink_rubber.cxx | // SPDX-License-Identifier: BSD-2-Clause
// Copyright CM4all GmbH
// author: Max Kellermann <mk@cm4all.com>
#include "sink_rubber.hxx"
#include "Rubber.hxx"
#include "istream/Sink.hxx"
#include "istream/UnusedPtr.hxx"
#include "pool/pool.hxx"
#include "pool/LeakDetector.hxx"
#include "net/SocketDescriptor.hxx"
#includ... |
80268ccb5432df344611d0ff436a0170dc331286 | 072f95c801d870308d5f6eb300626320bc7cded8 | /ncltech/Spring.h | de7ab706d3d1b1365e65c2673e3d77e09aedadfd | [] | no_license | pieran/Cloth_Simulation | fbb1b2a2632d5a284e6fd61024425078420bb7ec | b76da76ecdc54287d6d305a0c49568cd67093b4c | refs/heads/master | 2023-01-30T23:55:56.320326 | 2017-04-03T23:56:02 | 2017-04-03T23:56:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,382 | h | Spring.h |
#pragma once
#include "NCLDebug.h"
#include "PhysicsEngine.h"
class Spring
{
public:
Spring(PhysicsObject* objA, PhysicsObject* objB,
const Vector3& globalOnA, const Vector3& globalOnB)
{
this->objA = objA;
this->objB = objB;
Vector3 ab = globalOnB - globalOnA;
this->distance = ab.Length();
k_stiffne... |
a20329250d3673bcb24fa3a431991f7bf659aa09 | e9cd533c0c0c0ecad9de76cdb7fe64d88544af54 | /src/Render/Utils/Color.cc | 7c6b381a387f81b64c88d61900bf8826f52820cc | [] | no_license | nanaki1984/Framework | a9293bc744a5c77880509b5ec16310fcbed20bc0 | bac6fc409dcd5dc3df928e2af097d123ab23aa56 | refs/heads/master | 2021-07-04T16:21:50.768846 | 2017-09-26T15:59:42 | 2017-09-26T15:59:42 | 103,669,033 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,195 | cc | Color.cc | #include "Render/Utils/Color.h"
#include "Core/Debug.h"
#include "Math/Math.h"
namespace Framework {
const Color Color::Black = Color(0.0f, 0.0f, 0.0f);
const Color Color::White = Color(1.0f, 1.0f, 1.0f);
const Color Color::Red = Color(1.0f, 0.0f, 0.0f);
const Color Color::Green = Color(0.0f, 1.0f, 0.0f);
c... |
a764e24965635606f34bdce94d1f3f6b7a54570e | 202b96b76fc7e3270b7a4eec77d6e1fd7d080b12 | /modules/bookmarks/bookmark_ini_storage.cpp | 6446776ab3187e38d295926b930da04daf0902d7 | [] | no_license | prestocore/browser | 4a28dc7521137475a1be72a6fbb19bbe15ca9763 | 8c5977d18f4ed8aea10547829127d52bc612a725 | refs/heads/master | 2016-08-09T12:55:21.058966 | 1995-06-22T00:00:00 | 1995-06-22T00:00:00 | 51,481,663 | 98 | 66 | null | null | null | null | UTF-8 | C++ | false | false | 25,446 | cpp | bookmark_ini_storage.cpp | /* -*- Mode: c++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4; c-file-style:"stroustrup" -*-
**
** Copyright (C) 2000-2008 Opera Software ASA. All rights reserved.
**
** This file is part of the Opera web browser. It may not be distributed
** under any circumstances.
*/
#include "core/pch.h"
#ifdef CORE_BO... |
d82e9db2b9c0d3faff2cd821556b89a9c1824daf | 8950f9a18234aef8fb145c6bb5681bc1c9cd385d | /BunnymodXT/patterns.hpp | eaad649478a5c762fd3374dd546d4f31a486aca0 | [] | no_license | DanielOaks/BunnymodXT | 5e45e02ccc021dacdc409663e7143abaf0ec8407 | 5c3f964c534cf5ff2cf122bdab39690523e1d71a | refs/heads/master | 2021-01-09T09:38:21.439923 | 2014-12-24T08:55:49 | 2014-12-24T08:55:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,536 | hpp | patterns.hpp | #pragma once
#include <SPTLib/MemUtils.hpp>
namespace Patterns
{
// Shared patterns.
const MemUtils::ptnvec ptnsPMJump =
{
{
"HL-SteamPipe",
{
0x51, 0xA1, '?', '?', '?', '?', 0x53, 0x56, 0x8B, 0x88, 0xD0, 0x00, 0x00, 0x00, 0x85, 0xC9, 0x74, 0x13, 0x8B, 0x88, 0xC8, 0x00, 0x00, 0x00, 0x5E, 0x83, 0xC9, 0x... |
4996ab1d7effbf916213e3e3803c7b2e421863c0 | e7b5ca38f4d5b0e1ea8f8c5c7b7a280f99175ac8 | /a01_Ficha1/p04_ArraysVectorsStringsStructsFiles/4.05.cpp | a4ed8d98c10e1de3e28d1b239d8ea54ac99337a5 | [
"MIT"
] | permissive | FEUP-MIEIC/PROG | 18e62cb73bc7de4deeb03779f51eaf6dedce7be2 | 06976fde1ae93867b3189f0259ddab1228e846d5 | refs/heads/master | 2021-01-11T14:28:01.062647 | 2017-03-22T09:33:41 | 2017-03-22T09:33:41 | 81,431,682 | 2 | 2 | null | 2017-02-16T20:51:26 | 2017-02-09T09:13:52 | C++ | UTF-8 | C++ | false | false | 4,571 | cpp | 4.05.cpp | #include <iostream>
#include <iomanip>
using namespace std;
struct Fraction {
int numerator;
int denominator;
};
Fraction readFracc();
Fraction reduceFracc(Fraction f);
void writeFracc(Fraction f);
Fraction AddFraction(Fraction f1, Fraction f2);
Fraction SubFraction(Fraction f1, Fraction f2);
Fraction MultFraction... |
8a309f848af7f776a358b384d9f8e8a064b2e221 | d428004facd0efa1c52f052e248e64c35e5123bc | /rhino/sceneTileMap.h | b155087c697a8ae6884b51fde52488e0f9eb7d10 | [] | no_license | ccsdu2004/rhinogame | c6ca60f004347ef597280c61ead97f9c12019b69 | a54929d2fdb241825fac2c1ee9923e160f4dd384 | refs/heads/master | 2020-06-11T06:19:26.593710 | 2019-06-28T09:34:53 | 2019-06-28T09:34:53 | 193,874,050 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,076 | h | sceneTileMap.h | #ifndef RHINO_SCENETILEMAP_H
#define RHINO_SCENETILEMAP_H
#include <memory>
#include <QVector>
#include <QImage>
#include <QMap>
#include "rhino.h"
#include "sprite.h"
#include "drawable.h"
class RHINO_EXPORT SceneTileMap : public Drawable
{
public:
static std::shared_ptr<SceneTileMap> createTileMap(int ... |
7c45ef8a471cc740a1e2fb491ca479c46c0bf554 | bd96fe1bfbf98236d8457a5929433a2aae333fe1 | /Cpp/Submit Records/763. Partition Labels.cpp | 57cf7201c868bcb0f8d87e7f99e01cbbe4d8a7be | [] | no_license | Alfeim/njuee_LeetCode_Solutions | 1879c99c8c999f08d97980acf10490da5ebeaaea | ed1a8f4dd90739c6359c71a1278efd811bafe354 | refs/heads/master | 2020-06-13T12:05:46.521182 | 2020-01-11T07:14:38 | 2020-01-11T07:14:38 | 194,647,358 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,068 | cpp | 763. Partition Labels.cpp | /********************************************
作者:Alfeim
题目:划分字母区间
时间消耗:12ms
解题思路:
先遍历一次所有字符,记录每个字符最后出现的位置
然后每次划分新片段时,找到当前位置字母的最后位置,每次选取其和next
中最大的作为next(表示结束位置).如果当前位置恰好等于next,则划分完
了一个片段
********************************************/
class Solution {
public:
vector<int> partitionLabels(string S) {
vector<in... |
f022e5e79ddbe239aadba22fb3bb1c1b3d67841b | a4cb82478a101042213e650e213c3981ca9dc0ff | /Checking if a number is a power of two or not.cpp | 554abd4e905aaabaea04e93deff589ab3ee3a8a4 | [] | no_license | prakharR534/Programming-hub- | 9b2595f81f4b9df3ffda8a5e1c1998e973b4ffca | 6d0503fffb8eb0be64ac713b26eb5c91f817cc45 | refs/heads/master | 2023-02-11T21:51:22.699619 | 2020-12-29T16:04:49 | 2020-12-29T16:04:49 | 265,275,442 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 261 | cpp | Checking if a number is a power of two or not.cpp | #include<bits/stdc++.h>
using namespace std;
bool isPowerofTwo(int n){
return (ceil(log2(n)) == floor(log2(n)));
}
//only for integer values
int main(){
int n;
cin>>n;
if( isPowerofTwo(n)){
cout<<"YES";
}
else
cout<<"NO";
}
|
ba4b31e5442f02d6e18a1f5b83a100ba9790bb50 | 688a51f4072cc7816ab1beba6252f037cff1bf55 | /Overload/SSSEngine/Include/Component/DirectionalLight.h | 33feeaf575c001eabe9e5ed3026cbc060e6eb943 | [] | no_license | wognl0439/D3D_Overload | f0c19c2c7a4ab2c950d3a97adb6195738c67280a | 7af41388591f2f60aa124d215084c72e9797eb86 | refs/heads/master | 2023-07-17T17:29:25.754980 | 2021-09-01T10:07:27 | 2021-09-01T10:07:27 | 401,966,646 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 536 | h | DirectionalLight.h | #pragma once
#include "Light.h"
SSS_BEGIN
class SSS_DLL CDirectionalLight :
public CLight
{
friend class CGameObject;
protected:
CDirectionalLight();
CDirectionalLight(const CDirectionalLight& light);
virtual ~CDirectionalLight();
public:
bool Initialize() override;
void Start() override;
int Update(float f... |
788da2b4f125cdfa1d0b6424ab75b0988430129e | 1ae6e34add44d9b6e72c6e68bd07c82aa0a270f7 | /Aufgabe 2/firmware/tests/pc/UARTCommunication.cpp | 230981a7a862c7431d1bfcecd4e8c532e0d78e72 | [] | no_license | Lightning252/Robot-Design-Lab-G6 | 9dbcf431b91bf51644486a12f4b529dccebab366 | d0789a4364cb0bb8ae36fd94e95833899f12b342 | refs/heads/master | 2021-01-19T12:46:09.584174 | 2017-05-08T20:48:31 | 2017-05-08T20:48:31 | 88,044,431 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,427 | cpp | UARTCommunication.cpp | #include "UARTCommunication.hpp"
#include <fstream>
#include <fcntl.h>
#include <iostream>
#include <vector>
#include <stdlib.h>
#include <unistd.h>
#include <termios.h>
#include <stdexcept>
UARTCommunication::UARTCommunication(const std::string &device)
{
memset(&tio,0,sizeof(tio));
tio.c_iflag=0;
tio.... |
22834f92eb9897ed75bfe76a439337bf47c9d115 | 0b8b209586e4e951bb40542073567fe0708cbcf7 | /src/test/Balise.h | ee472c850c118e53305b9ecf0ebd5306516f8103 | [] | no_license | benaisc/workflow | 95118ed00300ce172ea545a730cbd1cd1f1e80f6 | e1fd4021777b2fcb3274b8108f48e01b64e2c7d2 | refs/heads/master | 2021-06-16T16:22:01.450268 | 2017-05-22T14:53:26 | 2017-05-22T14:53:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | h | Balise.h | /*! \file Balise.h
\brief A Documented template file.
+Xtra Details.
*/
#ifndef __Balise_H__
#define __Balise_H__
#include "hashmap.h"
/*! \class Balise
\brief A Balise class.
A detailed description.
*/
class Balise{
private:
/*! \var name
\brief name of balise
*/
char* name;
/*! \var a... |
407bf6d9d46802f7df99393e2a91dfef269afcf9 | 225e3cdefcdcb8d57374b74f94b0053a17230d92 | /Trie.h | 04cbeca9df1e091bc832f78f848a02cb3451bd19 | [] | no_license | Matei94/T9-Dictionary | 7d97134472cf46e45cfc47f87c528bfa4984fc20 | 0a7d30539677a87005dbceaa4b1cc8acaedadc06 | refs/heads/master | 2021-03-12T23:21:35.076640 | 2014-06-25T08:00:01 | 2014-06-25T08:00:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,487 | h | Trie.h | // Autor: Matei Razvan Madalin, 313CA
// UPB, Facultatea de Automatica si Calculatoare
#include "Treap.h"
#include <iostream>
using namespace std;
// Get coresponding position.
int POZ(char *s) {
char poz = *s - 'a';
if ( 0 <= poz && poz <= 2) return 0;
if ( 3 <= poz && poz <= 5) return 1;
if ( 6 ... |
646c6255da82c680f42a3c7b1862072432ce4532 | 3d40eaaa6be158c54d0d5a148d698fd3e285ac41 | /C++98中内置内型和自定义类型元素的比较/C++98中内置内型和自定义类型元素的比较/源.cpp | ae6c08d13126d3744994912702f2b22b659d72b7 | [] | no_license | yi1978045947/Hide-on-library | a7c9a5da45efea5306d195f9ce366dedb2c41fb9 | ce3730309669c0955fa16ad8fade148d63a45cc2 | refs/heads/master | 2023-09-04T02:40:10.545014 | 2021-10-20T15:48:29 | 2021-10-20T15:48:29 | 312,789,626 | 3 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,502 | cpp | 源.cpp | #define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
#include<functional>
#include<algorithm>
using namespace std;
template<class T>
struct Greater
{
bool operator()(const T& x1, const T& x2)
{
return x1 > x2;
}
};
template<class T>
bool g2(const T& x1, const T& x2)
{
return x1 > x2;
}
int x1()
{
int arr... |
e4e22cb0178ab01b52e62f6def8f51e410d7de82 | 80d81bcdfc9932a595c1fd0999492abf32a438dc | /Meteoros/main.cpp | 9a48758ede304e121bec10aaa0fe30ffea1a28a1 | [] | no_license | NeliocmSampaio/SPC | 9d1a1a1d214a3b8f4acc3891b8a65f63cb46ac83 | 31c6899f62c07f2eab274236f501ab1f22264729 | refs/heads/master | 2021-03-22T03:39:50.641474 | 2018-09-19T12:58:59 | 2018-09-19T12:58:59 | 86,104,189 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 828 | cpp | main.cpp | /*
* Nome: Nélio Cezar Muniz Sampaio
* Matricula: 2015042150
* Codigo do Problema: METEORO Problema: Meteoros
*
* O algoritmo le as coordenadas dos pontos e compara as coordenadas x e y de cada um
* com as coordenadas dos cantos do retângulo.
* */
#include <iostream>
using namespace std;
int main() {
int x... |
450130018a83da065670ecb290c4029693b536f5 | 2f557f60fc609c03fbb42badf2c4f41ef2e60227 | /CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h | 60397c082f53bbd099eb0f0a796f2dd6eeacf551 | [
"Apache-2.0"
] | permissive | CMS-TMTT/cmssw | 91d70fc40a7110832a2ceb2dc08c15b5a299bd3b | 80cb3a25c0d63594fe6455b837f7c3cbe3cf42d7 | refs/heads/TMTT_1060 | 2020-03-24T07:49:39.440996 | 2020-03-04T17:21:36 | 2020-03-04T17:21:36 | 142,576,342 | 3 | 5 | Apache-2.0 | 2019-12-05T21:16:34 | 2018-07-27T12:48:13 | C++ | UTF-8 | C++ | false | false | 7,263 | h | L1ConfigOnlineProdBase.h | #ifndef CondTools_L1Trigger_L1ConfigOnlineProdBase_h
#define CondTools_L1Trigger_L1ConfigOnlineProdBase_h
// -*- C++ -*-
//
// Package: L1Trigger
// Class : L1ConfigOnlineProdBase
//
/**\class L1ConfigOnlineProdBase L1ConfigOnlineProdBase.h CondTools/L1Trigger/interface/L1ConfigOnlineProdBase.h
Description:... |
9e6a2f6adf31fc62b4bbf6cb95b3959cf6e5beac | f83ef53177180ebfeb5a3e230aa29794f52ce1fc | /cairo/cairo-1.14.8/test/close-path-current-point.c | 35f8d423bd8393a7b9b3cf7ba8badda28b7e7c84 | [
"LicenseRef-scancode-public-domain",
"MIT",
"MPL-1.1",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"LicenseRef-scancode-other-permissive",
"MPL-1.0",
"LGPL-2.1-or-later",
"Apache-2.0"
] | permissive | msrLi/portingSources | fe7528b3fd08eed4a1b41383c88ee5c09c2294ef | 57d561730ab27804a3172b33807f2bffbc9e52ae | refs/heads/master | 2021-07-08T01:22:29.604203 | 2019-07-10T13:07:06 | 2019-07-10T13:07:06 | 196,183,165 | 2 | 1 | Apache-2.0 | 2020-10-13T14:30:53 | 2019-07-10T10:16:46 | null | UTF-8 | C++ | false | false | 3,186 | c | close-path-current-point.c | /*
* Copyright © 2009 Nis Martensen
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without fee,
* provided that the above copyright notice appear in all copies and
* that both that copyright notice and this permission notice appear... |
a5a706dec913f77c35825d27995048817aafa1ec | 33035c05aad9bca0b0cefd67529bdd70399a9e04 | /src/boost_spirit_home_karma_directive_upper_lower_case.hpp | d275696e4f30228e458d03dd07633c7df893a0c7 | [
"LicenseRef-scancode-unknown-license-reference",
"BSL-1.0"
] | permissive | elvisbugs/BoostForArduino | 7e2427ded5fd030231918524f6a91554085a8e64 | b8c912bf671868e2182aa703ed34076c59acf474 | refs/heads/master | 2023-03-25T13:11:58.527671 | 2021-03-27T02:37:29 | 2021-03-27T02:37:29 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 66 | hpp | boost_spirit_home_karma_directive_upper_lower_case.hpp | #include <boost/spirit/home/karma/directive/upper_lower_case.hpp>
|
80ff7b4a1756d94d34139eb76ff3af1c8490516a | d17a8870ff8ac77b82d0d37e20c85b23aa29ca74 | /lite/kernels/arm/reduce_compute.cc | 4877040a667e175817d53fe5df19e38b91d9eeb8 | [
"Apache-2.0"
] | permissive | PaddlePaddle/Paddle-Lite | 4ab49144073451d38da6f085a8c56822caecd5b2 | e241420f813bd91f5164f0d9ee0bc44166c0a172 | refs/heads/develop | 2023-09-02T05:28:14.017104 | 2023-09-01T10:32:39 | 2023-09-01T10:32:39 | 104,208,128 | 2,545 | 1,041 | Apache-2.0 | 2023-09-12T06:46:10 | 2017-09-20T11:41:42 | C++ | UTF-8 | C++ | false | false | 7,491 | cc | reduce_compute.cc | // Copyright (c) 2023 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
fd6057beb05a338cfc16f50361a40d94ba73508a | f75bdb3ecda01d63c2abebb299562ea3f951cf0b | /Scheduler/Scheduler/scheduler.h | c97e5a7f9f4610352ba766a897eb7d1790037020 | [] | no_license | Riandy/cs2103aug12-f09-1c | a7558ba26593efb03de3505aa821085b30af583d | 5cba5aace3716f441c30fcbea0e6c8e0680d083c | refs/heads/master | 2020-04-18T20:34:49.680008 | 2012-11-12T15:40:22 | 2012-11-12T15:40:22 | 32,462,167 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,371 | h | scheduler.h | #ifndef SCHEDULER_H
#define SCHEDULER_H
#include "calender.h"
#include <map>
#include <sstream>
#include "Action.h"
// Ensure that this error is synchronous with the errors sent from Intellisense.
static string ERROR_NOT_FOUND = "Error - The item does not exist.";
static string ERROR_INTELLISENSE_CHECK = "Err... |
566989f84d6a68f7c82944b218e1cd8886c2d554 | 3f76b10fc3c54fabe008caef3c01bc26e1af2776 | /touch/KeyDisabler.cpp | 2a0062a7b6307e4da8d17bdef5c2bac14a42ec2c | [] | no_license | LineageOS/android_device_leeco_s2 | 3dff4aa20cd02ff584104ab6cecccbe9e731cfce | 1c12856e5c8d70e756aa48f91d1ad9066ddd9fd0 | refs/heads/lineage-18.1 | 2023-01-08T07:57:25.999697 | 2019-11-11T23:13:51 | 2021-05-26T13:39:47 | 77,757,964 | 49 | 140 | null | 2022-10-02T20:03:36 | 2016-12-31T22:24:48 | C++ | UTF-8 | C++ | false | false | 1,755 | cpp | KeyDisabler.cpp | /*
* Copyright (C) 2019 The LineageOS Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
50472bd4ab5b607bc88a206b2bce1246f018863c | 68d976d941f113d7b20702707559efa5f4e1ae2e | /lectures/09/hands-on/solution/01/Vector.h | 67b9329ea8f3992f7cde8e71ae3094dc52b2d9d6 | [] | no_license | Harvard-IACS/c_cpp_primer | 4b425ec88639021f448b4bb94a393ec1d2f2e5b6 | 29ea56af5dc729e1568811ac728cf70cd380af91 | refs/heads/master | 2022-09-14T10:02:32.402412 | 2022-08-26T15:10:14 | 2022-08-26T15:23:30 | 415,667,469 | 20 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 1,081 | h | Vector.h | // File : Vector.h
// Description: Generic vector class
// Copyright 2021 Harvard University. All Rights Reserved.
#include <cassert>
template <typename T>
class Vector
{
public:
Vector(const int n) : size_(n), data_(new T[n]) {}
~Vector() { free_(); }
int size() const { return size_; }
void res... |
71a2eef49d28b1266ab2e523584fcee37ebad462 | 050b70762c3e52f435740698ef264707fb871747 | /module06/ex02/Base.cpp | c004cc5579d11ef671341e641ea17ae6d92a255b | [] | no_license | jciglesias/piscine-cpp | c1546a820a5a2760d46e2ab39d635cfffd666e31 | 1bf6c74a9dd394245fe251fe0f5be57ef2e2e4b3 | refs/heads/main | 2023-08-14T22:02:12.611157 | 2021-09-30T15:03:01 | 2021-09-30T15:03:01 | 375,332,434 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 930 | cpp | Base.cpp | // ************************************************************************** //
// //
// ::: :::::::: //
// Base.cpp :+: :+: :+: ... |
8088e551d1f76ad33bd3746c1d1553f5910d486f | dd5b5e5ee5476d1eeffc4987e1aeec94e047e6dd | /testCase/cavity/0.055/p | 51fc08adbbfd7997ae9c149730569bb8f1468fed | [] | no_license | Cxb1993/IBM-3D | 5d4feca0321090d570089259a558585a67a512ec | 2fceceb2abf1fc9e80cb2c449cc14a8d54e41b89 | refs/heads/master | 2020-05-24T01:14:02.684839 | 2018-10-23T13:15:20 | 2018-10-23T13:15:20 | 186,721,487 | 1 | 0 | null | 2019-05-15T00:39:55 | 2019-05-15T00:39:55 | null | UTF-8 | C++ | false | false | 585,791 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1806 |
... | |
cd551e3a029e71ea27efa21f5579e6e4784dcccc | aca4cad71a5bd1304b29d30dd5404a4fe4359e35 | /code/hgGR.cpp | ca7659c2cbfa95db59ee4142d4dfaae8c7f7b177 | [] | no_license | daeyeon22/hgRouter2.0 | 4d91389f137eeddf30531d464bf5defb06a98faa | a18388b60472a18b87dd285e491eb3e1c1601f2f | refs/heads/master | 2023-02-08T12:07:43.934844 | 2019-05-31T07:18:07 | 2019-05-31T07:18:07 | 189,545,775 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 31,116 | cpp | hgGR.cpp | #include "hgRouter.h"
#include "hgTypeDef.h"
#include "hgHeap.h"
#include "hgGeometry.h"
#include <boost/format.hpp>
#include <tuple>
#include <queue>
#include <deque>
#include <boost/foreach.hpp>
#include <boost/config.hpp>
#include <boost/assign/std/vector.hpp>
#include <boost/graph/prim_minimum_spanning_tree.hpp>
#... |
5b34ad9aca39e8f17ffb31c64c26506f273fa603 | 923ec52872ac4faada05ebc24183331232283406 | /Tb/TbUT/src/TbUTNoiseCalculatorfactory.cpp | f76fc13c30db3bb0029b78597f34a78db2172469 | [] | no_license | chrisburr/Kepler | d92b594be8fe426720e8c61c4eafc193087a8596 | ed84e81bd959485ebc1be05bde6954917302244a | refs/heads/master | 2021-01-13T14:30:12.666857 | 2016-11-04T15:44:26 | 2016-11-04T15:44:26 | 72,861,615 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 714 | cpp | TbUTNoiseCalculatorfactory.cpp | /*
* TbUTNoiseCalculatorfactory.cpp
*
* Created on: Jan 3, 2015
* Author: ADendek
*/
#include "TbUTNoiseCalculatorfactory.h"
#include "TbUTNoiseCalculator.h"
#include "TbUTNoiseCalculatorFake.h"
using namespace TbUT;
NoiseCalculatorFactory::NoiseCalculatorFactory()
{
}
NoiseCalculatorFactory::NoiseCalc... |
c11485b9388982442a26b97f8f3639befb179064 | 2141c1bfb4fcad9aa63db5c3fa38dae3b4cde6ef | /src/ofxImGuiParameter.h | b6283ea835082f62c41e686a0f72d87f5e855b2e | [] | no_license | UltraCombos/ofxImGui | 19412e9a319ebf5685e74caeb09bf1767e85e8cd | 9f0e479ee7c1c034df8d1c5369521c38c1e8f3b0 | refs/heads/master | 2023-06-23T13:59:11.299921 | 2023-06-20T19:39:49 | 2023-06-20T19:39:49 | 109,094,947 | 3 | 0 | null | 2017-11-01T06:21:28 | 2017-11-01T06:21:28 | null | UTF-8 | C++ | false | false | 8,515 | h | ofxImGuiParameter.h | /*
The78ester
*/
#ifndef INCLUDE_OF_ADDONS_OFXIMGUIPARAMETER_H_
#define INCLUDE_OF_ADDONS_OFXIMGUIPARAMETER_H_
#include <ofMain.h>
typedef void(*gf_draw_func)(ofAbstractParameter*, void*);
struct ofxImGuiParamInfo
{
shared_ptr<ofAbstractParameter> sp_param;
gf_draw_func func;
size_t arg;
char ... |
cdd8885d2f608e5089ceb6b4ae4524ff2a9feb74 | 17c3833af2a3d0bdb5ddb0db400b447c2ff5d5bf | /src/components/Clock.cpp | 8a8a633112a114ab4076cdb03bea98acee8fa5a5 | [] | no_license | arthurphilippe/cpp_nanotekspice | c83149fc2923a9f0977e7995ee1c8e5ed48d1418 | f37c562a7d19a2a79147de46d2d03340178432f1 | refs/heads/master | 2021-03-22T01:06:31.728802 | 2018-03-04T12:23:01 | 2018-03-04T12:23:01 | 119,529,691 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | Clock.cpp | /*
** EPITECH PROJECT, 2017
** nanotekspice
** File description:
** clock
*/
#include "components/Clock.hpp"
nts::Tristate nts::Clock::_state = TRUE;
nts::Clock::Clock(const std::string &name)
{
_name.assign(name);
_type.assign("clock");
}
nts::Tristate nts::Clock::compute(std::size_t pin)
{
if (pin == 2)
_sta... |
8e0dc79524f0776210fcadac0f9d850241205e6e | 26e0dc433c759110cd0860bef329a79eea1a95d9 | /example/ti/sdo/ce/examples/apps/armlivemedia/core/.svn/text-base/audioEncodeFactory.h.svn-base | 3898f02e9950c78a228e944c071b3f7ea4714d9c | [] | no_license | houstar/codec_engine | c824ce8f99278098b960abf694e9b105bc8adc78 | d433b77426636195c4942bab875b1ef88a53610b | refs/heads/master | 2020-05-26T19:32:21.897604 | 2014-10-09T07:57:02 | 2014-10-09T07:57:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 145 | audioEncodeFactory.h.svn-base | #pragma once
#include "audioEncodeInterface.h"
class AudioEncodeFactory {
public:
static IAudioEncodeInterface* createInstance(bool bOMX);
};
| |
098bf9433e84a8cb60beb7c88c2544d430b7ecc4 | 079dc0044cd3cf48223e2012b1588c3332ca32ba | /Packet/App/exampleCode/test.cpp | 2d180cd5aa9f68af834ac813f53e4a1761444125 | [] | no_license | 3dElf/packet-manipulation-library | dddfdcfce3b35c0b224638960bf8e11e2d74aacf | ab4c12e5a745184daac408b6ec2a237cc520bba8 | refs/heads/master | 2023-03-17T06:42:24.080775 | 2013-08-26T20:19:31 | 2013-08-26T20:19:31 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,516 | cpp | test.cpp | /*
* PacMan - Packet Manipulation Library
* Copyright © 2008 Jeff Scaparra, Gaurav Yadav, Andrie Tanusetiawan
*
* This file is a part of PacMan.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software F... |
2f4a98bff9cf7099b9fb86e08eb41ab5b455a258 | 5cba01363531ef35f3fd63eaafdf5d8610fd64df | /client/SecureClient.cpp | fd1e5897f51a537e88f684762be551bd114703e3 | [] | no_license | ikonst/seminar | 9181d0c7867f8e75fa5286d90cc76007ac278d31 | 979312a725b62c561e802628222418ad991f5c4c | refs/heads/master | 2021-05-05T20:37:22.210423 | 2017-12-25T10:36:25 | 2017-12-26T02:42:23 | 115,330,095 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,608 | cpp | SecureClient.cpp | #include <string>
#include <sys/errno.h>
#include <sys/socket.h>
#include <netdb.h>
#include <unistd.h>
#include <sstream>
#include <algorithm>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "SecureClient.h"
#include "Exceptions.h"
using namespace std;
SecureClient::SecureClient(int socket): SecureClien... |
0bc26b1594b90ed5a3d4c117ee4234cf524bd725 | 90d85e95309ff749ee9c73d70e3d8c1335511c0e | /src/server.cpp | ed4196e172fc5d801c17b57f19254779edf425ff | [] | no_license | IlliaDmitriiev/ToDoList | a2fa8e218c3f4499e440c0305eeb1665383f4c52 | e7e35bd50af3e34d53c03ccfca512eb873bb9d16 | refs/heads/master | 2023-01-05T12:32:45.846124 | 2020-11-01T21:26:22 | 2020-11-01T21:26:22 | 280,368,615 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,129 | cpp | server.cpp | //
// Created by ilya on 25.10.2020.
//
#include "Core/api/GRPCServer.h"
#include "Core/utils/Creators/DataHolderCreator.h"
int main() {
std::string server_address("0.0.0.0:50051");
grpc::EnableDefaultHealthCheckService(true);
grpc::reflection::InitProtoReflectionServerBuilderPlugin();
auto model = t... |
bbd38ec2439999b9a020642af91e9ad3d68f0ab5 | 791c27e89ac6c51709bc996ab4a66742573a489d | /PROGRAMMERS/약수의합.cpp | fdd3b2607623bfb84bbbd17c31963438751b4ff1 | [] | no_license | JeongYeonUk/Problem | 6f031abed61c6229f3da86c20b188fc4481ed46d | 12ff42c72e0c91ab4a2927f17c874d791362530d | refs/heads/master | 2021-06-27T10:51:52.409707 | 2020-12-14T15:48:31 | 2020-12-14T15:48:31 | 188,515,199 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 479 | cpp | 약수의합.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
using namespace std;
#define endl '\n'
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
int solution(int n) {
int answer = 0;
for (int i = 1; i <= n; ++i) {
if (n % i == 0) {
answer += i;... |
6db7c43c079c75873c41f6890dbceefe5056dcb5 | 8e5cb7ecef402efa86f63d82b434e34d2cffb7db | /include/pid.hpp | a4f24548b29569b9c674329a8bd3fb5546d258da | [
"MIT"
] | permissive | timtro/pid-unfolding | 956336acb828e3d365b75219b07f900aee4eff57 | 15477efc9774b6ade5df108cb136eafb16bf470c | refs/heads/master | 2022-11-28T05:11:04.616093 | 2022-11-14T19:46:04 | 2022-11-14T19:46:04 | 135,348,683 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | hpp | pid.hpp | #pragma once
#include <boost/hana.hpp>
#include <chrono>
#include <cmath>
#include <functional>
#include <iostream>
#include <memory>
#include <optional>
#include "SignalPt.hpp"
namespace chrono = std::chrono;
using namespace std::chrono_literals;
template <typename Clock = chrono::steady_clock>
struct PIDState {
... |
9e31e6a50621a4ba39322a1777d041d05f34ceeb | abdb1ec5ec909bee16528ca0769f8f3b8a3344e7 | /My_code/code library/SHAHINVAICODE/Math/Prime (Sieve of Eratosthenes).cpp | 3107feb65a03b6e9306e69337663b7f58e599fdf | [] | no_license | ronee12/Code-Library | 3aba7e3d2d9097309702a4fc8ca4c86052d64073 | 41f6bfae5eaa9ef474b792c12b938964003a5862 | refs/heads/master | 2020-04-02T00:11:37.360873 | 2018-10-19T14:12:15 | 2018-10-19T14:12:15 | 153,792,980 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,729 | cpp | Prime (Sieve of Eratosthenes).cpp | #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <queue>
#include <list>
#include <stack>
#include <map>
#include <set>
#include <stdio.h>
#include<math.h>
using namespace std;
#define DEBUG
#define REP(i,a) for(i=0;i<a;i++)
#define FOR(i,a,b) for(i=a;i<b;i++)
#define VE vector<int... |
98ff8df78f292e08e03777feb8eaf2d6b661e63a | e04f52ed50f42ad255c66d7b6f87ba642f41e125 | /appseed/core/filesystem/filemanager/filemanager_fs_simple_tree.h | 8344770eeb91c7dc6542ab0048bbd958874b6323 | [] | no_license | ca2/app2018 | 6b5f3cfecaa56b0e8c8ec92ed26e8ce44f9b44c0 | 89e713c36cdfb31329e753ba9d7b9ff5b80fe867 | refs/heads/main | 2023-03-19T08:41:48.729250 | 2018-11-15T16:27:31 | 2018-11-15T16:27:31 | 98,031,531 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,927 | h | filemanager_fs_simple_tree.h | #pragma once
namespace filemanager
{
namespace fs
{
namespace simple
{
class view;
enum EFolderType
{
FolderTypeNormal,
FolderTypeArtist,
};
class Folder :
virtual public object
{
public:
... |
3398373abaf2c6b51abc6f4439c11830a84882ca | 5004238013c63fbb6b26fe3f5af98aa8b546a616 | /Practicas/2.2 Cadenas/funcion strspn.cpp | 5aede2530ff43005ebde9734afcd0c2e12151f2f | [] | no_license | UzzielSW/Curso-de-Cplus | 353d715c34f6bd9907ef9673b70243297dd0c80e | e79bc46596484c3accf0f3fd2708a5ef72a9cf42 | refs/heads/master | 2022-06-22T02:25:07.492179 | 2019-12-23T21:43:23 | 2019-12-23T21:43:23 | 224,347,418 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 540 | cpp | funcion strspn.cpp | #include <iostream>
#include <string.h>
using namespace std;
int main()
{
const char *cadena1 = "El valor es 3.14159";
const char *cadena2 = "aerls Eov";
cout<<"cadena1 = " << cadena1 << "\ncadena2 = " << cadena2
<<"\n\nLa longitud del segmento inicial de cadena1\n"
<<"que solo contiene caracteres de cadena 2... |
a845506ede83d10174d065b75335b4e4ca47c240 | a02ccb5dff094fad8bcd691dda234d50ff768299 | /tools/pytorch-quantization/src/tensor_quant.cpp | 4ea305fdb185c1e5aa495e60c687caf5810a2ffa | [
"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 | 3,218 | cpp | tensor_quant.cpp | /*
* SPDX-FileCopyrightText: Copyright (c) 1993-2022 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... |
cd4a08428f7660180507e2893ee53536c7062832 | 87464fd51294f061472244148aebce14e454f2a6 | /Practice/LeetCode/Problems/367.cpp | e520a0f7744baa512f192191f3b405557762c722 | [] | no_license | msk4862/DS-Algo | 6fb348e4ae0f685f58b89f619ce4edc6690c3817 | 10e41a8ce1879fceee6f064c81192aa3e981d8d4 | refs/heads/master | 2021-08-02T23:31:44.813569 | 2021-07-24T11:18:51 | 2021-07-24T11:18:51 | 199,693,163 | 4 | 3 | null | 2020-10-07T19:28:55 | 2019-07-30T16:56:48 | C++ | UTF-8 | C++ | false | false | 576 | cpp | 367.cpp | class Solution {
public:
bool isPerfectSquareHelper1(int num) {
double root = sqrt(num);
return root-(int)root == 0 ? true:false;
}
bool isPerfectSquareHelper2(int num) {
int l = 1, h = num;
while(l <= h) {
int mid = (h-l)/2 +l;
long sq = (long)mi... |
c17f57f294255841df6578733443aee3a22846bb | 5456a27ad995b95714ea318fe1dec2426416d736 | /heap/main.cpp | ff1b4a7daeab6777f17ea5545a966b26829bbe5b | [] | no_license | anderson-pids/misc-estruturas_de_dados | a9b6dca9c8508e896488191411bf2332f2b400b2 | b06759211d1dff7d7735cbbcc155b503d8568aeb | refs/heads/master | 2021-05-29T15:24:55.929679 | 2015-04-11T04:16:00 | 2015-04-11T04:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,558 | cpp | main.cpp | #include <iostream>
using namespace std;
void troca(int *&vet, int num1, int num2)
{
int aux;
aux = vet[num1];
vet[num1] = vet[num2];
vet[num2] = aux;
}
void heapify(int *vet, int pai, int heapsize) {
int fl, fr, imaior;
while (true)
{
// O Operador << significa 2*pai
fl =... |
974b33f83073f654ca5d4a56560e47c6fe1dce0d | e6b5d019e565ce55b2febfbe21b82c2a21723385 | /CodeLibrary/4 Geometry/2 直线与圆.cpp | e2c6ce3b84f1a015de7c1e0d43cc4c05854e9cf2 | [] | no_license | Sd-Invol/shoka | a628f7e8544d8eb110014316ab16ef3aed7b7433 | 1281cb43501d9ef127a2c67aebfba1905229502b | refs/heads/master | 2023-06-06T07:23:09.496837 | 2023-05-13T14:46:23 | 2023-05-13T14:46:23 | 13,319,608 | 37 | 17 | null | null | null | null | UTF-8 | C++ | false | false | 4,380 | cpp | 2 直线与圆.cpp | struct Line {
Point P , V; // P + Vt
double angle;
Line () {}
Line (Point A , Point B) {
P = A , V = B - A;
angle = atan2(V.y , V.x);
}
bool operator < (const Line& R) const {
return angle < R.angle;
}
Point point(double t) {
return P + V * t;
}
};
str... |
66df006907dda357aa8a3f9911a4d5959be59942 | 6939c6a61ade606e60333b00bb0048029236b2a3 | /include/libcargo/file.h | 395069b0278505f65f8e26ed63a7ae7b2e6ab457 | [
"MIT"
] | permissive | masatoshihanai/Cargo | 78ff64f5a725fdf9bf3aa394aaf4186789a4f2b8 | ecdb3c8910cdeef8fdc39f145b896d5e75730ca7 | refs/heads/master | 2020-09-07T03:44:49.223885 | 2019-11-09T13:36:08 | 2019-11-09T13:36:08 | 220,646,242 | 1 | 0 | null | 2019-11-09T13:28:15 | 2019-11-09T13:28:15 | null | UTF-8 | C++ | false | false | 3,486 | h | file.h | // MIT License
//
// Copyright (c) 2018 the Cargo authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, m... |
7f2d697d7ca13e164ede2fed1afd7529bc80ac86 | f090a5185d7bdd47608346d9ed94fe522d4cbe2b | /ADS1/ADS_Unit04/datatypes/Source.cpp | e14d6e0a936d24f61a6ba1ecb1616f168394981a | [] | no_license | Breenori/Programs | 71c08eac6bca815e5df62ff9191e62585275019b | 4cbe74d7efa02cbb4d7910bc601bcbbbc21aeebf | refs/heads/master | 2020-12-06T10:29:01.485633 | 2020-10-31T13:45:30 | 2020-10-31T13:45:30 | 232,439,000 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 113 | cpp | Source.cpp | #include<iostream>
using std::cout;
using std::string;
void main()
{
string s("hallo");
cout << s;
} |
2856576efe7fb71c19bbff47bef8360004678f61 | 6a149b00b43b0eef02a6cb13b9ec878cdae40fbc | /src/monitor/instrument.hpp | 372a467036921d35984d2604dcb8ba5e8e65087d | [] | no_license | 3343/edge | 300e56d3c96015c43596f1aafa00f00e6d0f145b | ee2af08e249b078778835df2f63acc15e762d2c7 | refs/heads/master | 2023-06-11T19:59:00.111629 | 2022-04-14T11:26:38 | 2022-04-14T11:26:38 | 93,911,911 | 33 | 28 | null | 2023-05-25T13:11:04 | 2017-06-10T02:52:57 | C++ | UTF-8 | C++ | false | false | 3,262 | hpp | instrument.hpp | /**
* @file This file is part of EDGE.
*
* @author Alexander Breuer (anbreuer AT ucsd.edu)
*
* @section LICENSE
* Copyright (c) 2021, Friedrich Schiller University Jena
* Copyright (c) 2016-2018, Regents of the University of California
* All rights reserved.
*
* Redistribution and use in source and binary for... |
735c440fce49c68df649d960946acfa8ebc08a33 | eae5f9ef31c485c290d8ccd6e865d1a1b49ba9a4 | /src/exception/exception-traces.cpp | a02858182e5873c009b241d3e94973960261635f | [
"BSD-2-Clause"
] | permissive | corentinberge/dynamic-graph | a2fb731c51a6306ddfab25b6385b000d1c7f43c5 | 89b3ab9cbac71daaa2eddb75947299270868a31b | refs/heads/master | 2020-06-14T13:43:56.204017 | 2019-08-12T07:24:53 | 2019-08-12T07:24:53 | 194,625,084 | 1 | 0 | NOASSERTION | 2019-07-01T07:49:34 | 2019-07-01T07:49:32 | null | UTF-8 | C++ | false | false | 1,055 | cpp | exception-traces.cpp | /*
* Copyright 2010,
* François Bleibel,
* Olivier Stasse,
*
* CNRS/AIST
*
*/
#include <dynamic-graph/exception-traces.h>
#include <stdarg.h>
#include <cstdio>
using namespace dynamicgraph;
/* --------------------------------------------------------------------- */
/* --- CLASS -------------------------------... |
f43cc8256aa2515acb02c634d52aa0984e164570 | edfacb30dda27b2537c47e7c42996f8489fac39d | /example/http/httpscontext.cpp | fdcbcca73ca2f8f412e1a8e752c9dd03d9871d09 | [
"Apache-2.0"
] | permissive | hvuSyslogic/librapid | 6b5a7a264f1cffe442ba2098b2802150de209c15 | 95864eed190bee0752502f88c57c7dcef6965050 | refs/heads/master | 2020-03-26T00:29:16.793294 | 2016-07-04T03:10:00 | 2016-07-04T03:10:00 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,925 | cpp | httpscontext.cpp | //---------------------------------------------------------------------------------------------------------------------
// Copyright (c) 2015-2016 librapid project. All rights reserved.
// More license information, please see LICENSE file in module root folder.
//--------------------------------------------------------... |
e5286d291ea0e3bb58ff086a1ecd8f487f78a451 | c2e2ca8922f572ee70415b108e30ac118f5678df | /Qt/Components/pqApplyPropertiesManager.cxx | bb7995e459f0597db0d0d3661da972e4c8d973ab | [
"MIT",
"LicenseRef-scancode-paraview-1.2",
"Apache-2.0",
"LicenseRef-scancode-protobuf",
"BSD-3-Clause"
] | permissive | niboliang/ParaView | 78386708a74621592683155ed72bcacd3e7f9bee | 8c5941f9f5f0579e05d4c08220521e1585ce5b13 | refs/heads/master | 2023-05-01T02:44:25.827048 | 2021-05-24T03:11:20 | 2021-05-24T03:11:20 | 369,718,664 | 0 | 0 | NOASSERTION | 2021-05-24T03:11:21 | 2021-05-22T04:59:41 | null | UTF-8 | C++ | false | false | 2,376 | cxx | pqApplyPropertiesManager.cxx | /*=========================================================================
Program: ParaView
Module: pqApplyPropertiesManager.cxx
Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc.
All rights reserved.
ParaView is a free software; you can redistribute it and/or modify it
under the terms o... |
574d47abc04e81d25ab7f1934237e990e0296afe | 60c3887edb48c9f19a1698211376e2fd344dfc88 | /makeup.cpp | cff453318246b8d38963b11fd97f022d50f73926 | [
"MIT"
] | permissive | takemegod/-matching_rotation_kidtoy | 9d10bba60f8cd6aa817ed1d3c6970c804d1c28e1 | 9164e0a05a10668993ea0ebaa6640a5962259492 | refs/heads/master | 2020-06-16T05:31:09.234468 | 2016-12-01T01:29:28 | 2016-12-01T01:29:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 35,100 | cpp | makeup.cpp | #include "stdafx.h"
#include "opencv2/objdetect.hpp"
#include "opencv2/videoio.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include <opencv2/core/utility.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/opencv.hpp>
#include "opencv2/video/tracking.hpp"
#include <opencv2/video/b... |
7ad83b31dba1e6fecad41a1ea57a995058b55380 | a67066320c312060f4c4f90e7ac6f13e41ec2dac | /Pig.h | 4d78ba8802bc69ed28db34b9eec683aaad450a61 | [] | no_license | liknlie7/Pig | dffe8ca229be6cc3e2e70ed2cf39ac8c9352bd28 | b6b3f13b25a8b808d1f3b1536d373f5c160b7897 | refs/heads/master | 2020-04-05T20:04:24.140238 | 2018-11-12T06:01:17 | 2018-11-12T06:01:17 | 157,144,692 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 151 | h | Pig.h | #include"Dice.h"
#pragma once
class Pig
{
private:
int m_sum;
int m_result;
bool m_next;
Dice m_dice;
public:
Pig();
void Jugdment();
}; |
8d7cb557cae64d59a5ec0f97c6500217787d49c1 | 7c71410d765d366a388d940c7859538c3b916198 | /CPPMOD03.cpp | d9c72b05a1826d2dea7c1b221a89ff4d60748c91 | [] | no_license | dinhtai1104/SPOJ_PTIT | 790f8474682e7c8d1a90f01bdd55aa697000897d | e7aef29eda3b0dea6ae5a833810f0a70d4ea4423 | refs/heads/master | 2022-12-03T22:27:23.397741 | 2020-08-26T16:00:07 | 2020-08-26T16:00:07 | 290,542,452 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,175 | cpp | CPPMOD03.cpp | #include <iostream>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
typedef long long ll;
void Solve();
int main()
{
int Test_Case;
cin >> Test_Case;
while (Test_Case--)
{
Solve();
}
// system("pause");
return 0;
}
void Solve()
{
int n; ll k;
cin >> n >> k;
ll s = 0;
ll... |
711990d134c70917afdf8ccba005d33feac5a111 | be5b2a65fa71e1d91f255d83acd4662105fa04db | /HW_3/part2/csce310hw03pt02.cpp | 373eaaf1ac30db08708161fb4aafb2e8ba1ac38f | [] | no_license | CaseyNolte22/CSCE310 | fa0b25531956e324cf2b40d92fff32dc5d46869e | 7c5f235ef8c245e2300783a6a45d471195b29610 | refs/heads/main | 2023-04-13T11:13:25.307208 | 2021-04-27T19:01:48 | 2021-04-27T19:01:48 | 339,200,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 224 | cpp | csce310hw03pt02.cpp | #include <vector>
#include "csce310hw03pt02.h"
#include <cmath>
#include <iostream>
using namespace std;
vector< vector<double> > allPairsSP( vector< vector<double> > adjacencyMatrix , int i ){
return adjacencyMatrix;
}
|
4dae077dabd00d26c3bd3fc4fbe5e76aab9118a5 | 760217a3df984d4e295506c3aa1b0bbb8b2c9b46 | /CommDemo/DifferentSensorsTest/pump/pump.ino | 4b7c4fb5d55e494bacf1044a65b5157936f952e1 | [] | no_license | TheoGT/Aquaponics_MonitorAndControl | ce9aa3fb402384c8d6a92be2eab4e154cf0d9de2 | 1627d7cd70d7f6fca46af763ebe4974148eb9747 | refs/heads/main | 2023-01-21T10:43:01.204759 | 2020-12-09T05:14:33 | 2020-12-09T05:14:33 | 300,659,337 | 1 | 1 | null | 2020-10-19T16:13:51 | 2020-10-02T15:32:24 | JavaScript | UTF-8 | C++ | false | false | 2,094 | ino | pump.ino | #include <SoftwareSerial.h>
#define rx 2
#define tx 3
//RX = Receive Data
//TX = Transmit Data
//Pins are arbitary
SoftwareSerial myserial(rx, tx);
//Put the RX pin first, followed by the TX pin
//Mnemomic: Listen (receive) before you speak (transm... |
3e1461384b3f57bbbf17bf08d028091237dc17f8 | 3de40a703d5329a3803acc2bc2f31e4e54830784 | /include/open_loop_diff_drive/open_loop_diff_drive.h | 75bb86233d06a76ecf9402009afb5d273d679e8d | [] | no_license | ab3nd/open_loop_diff_drive | 3c689077ac3fd5729609ec6311005ad960aed21d | 3108b3f1e26c28ee94c0cdd05103176c68ce02b9 | refs/heads/main | 2023-04-14T04:45:44.835015 | 2021-04-16T01:28:12 | 2021-04-16T01:28:12 | 314,437,083 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 613 | h | open_loop_diff_drive.h | #ifndef OPEN_LOOP_DIFF_DRIVE_H_
#define OPEN_LOOP_DIFF_DRIVE_H_
#include <ros/ros.h>
#include <cmath>
#include <geometry_msgs/Twist.h>
#include <std_msgs/Int8.h>
#include <vector>
class MotorTranslator
{
protected:
//Publishes motor speeds based on twist messages
ros::Publisher leftMotorPub;
ros::Publish... |
634d6e42f72a7adb9012c917dac917b3ad2870be | e99102ce4042804a4e7ab6cdef3e257684aa1658 | /leetcode/216.cpp | 37d4977202e78f4f49d068cfc31084d64832d9a8 | [] | no_license | dicksiano/Coding-Interview | 3d3ce09fa1c0ec4d66656eb800b5715d06c3ff5e | 8b9230019a490ac7b0e270681dc65b312eee9c63 | refs/heads/master | 2021-07-03T08:47:15.590963 | 2020-08-28T04:10:20 | 2020-08-28T04:10:20 | 148,711,195 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | 216.cpp | class Solution {
public:
void backtrack(vector<vector<int> > &sol, vector<int>& aux, vector<int>& v, int x, int k, int start) {
if(aux.size() == k) {
if(x == 0) sol.push_back(aux);
return;
}
for(int i = start; i < v.size() && v[i] <= x; i++) {
aux... |
90bf2b60e86bd97a8903b0099e17e724efd4adc0 | db6f3e6486ad8367c62163a4f124da185a64ab5d | /src/demangler/borland_ast/function_node.cpp | b80368c2c42e4a89f362b30f3c4153958f573fc9 | [
"MIT",
"Zlib",
"JSON",
"LicenseRef-scancode-unknown-license-reference",
"MPL-2.0",
"BSD-3-Clause",
"GPL-2.0-only",
"NCSA",
"WTFPL",
"BSL-1.0",
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive | avast/retdec | c199854e06454a0e41f5af046ba6f5b9bfaaa4b4 | b9791c884ad8f5b1c1c7f85c88301316010bc6f2 | refs/heads/master | 2023-08-31T16:03:49.626430 | 2023-08-07T08:15:07 | 2023-08-14T14:09:09 | 113,967,646 | 3,111 | 483 | MIT | 2023-08-17T05:02:35 | 2017-12-12T09:04:24 | C++ | UTF-8 | C++ | false | false | 1,440 | cpp | function_node.cpp | /**
* @file src/demangler/borland_ast/function_node.cpp
* @brief Representation of functions.
* @copyright (c) 2019 Avast Software, licensed under the MIT license
*/
#include "retdec/demangler/borland_ast/function_node.h"
namespace retdec {
namespace demangler {
namespace borland {
/**
* @brief Private function nod... |
036bb61e9c81279430cefaed2bc56c90a6ef7cf8 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/printscan/faxsrv/src/faxbvt/bvt/dummybvt.cpp | a29c422a212f363b222d85ce1cd28b1ff17bee20 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18 | cpp | dummybvt.cpp | #include "Bvt.cpp" |
08118c5a03c7888ee14c5097dac6e4f1a8514879 | 893b49242c4e6e1c39bced06262f0b527b92f761 | /Semester_3/Programming/labs/Lab5/Lab5/Figures.h | 123add23d5c91f67452ae6dc74e943eff7d62168 | [] | no_license | chastis/UniversityStuff | a9e1896ef8bf63e22fc9aae8b9661dfcb5ad398a | cfc2730c9b66d287a128c822d171a8f3e384ed8e | refs/heads/master | 2022-12-09T09:17:15.762297 | 2021-04-14T17:44:50 | 2021-04-14T17:44:50 | 215,631,068 | 48 | 14 | null | 2022-12-08T08:10:37 | 2019-10-16T19:45:58 | C++ | UTF-8 | C++ | false | false | 2,755 | h | Figures.h | #ifndef FIGURES_H
#define FIGURES_H
#include <cmath>
#include <limits>
bool double_is_equal(const double &a,const double &b) {
return abs(a - b) < std::numeric_limits<double>::epsilon();
}
class Point
{
public:
Point(double x = 0, double y = 0) {
this->x = x;
this->y = y;
}
~Point() {};
double get_x() {
re... |
a82f5b504adf1a30e681bdedb6e96266a7228449 | df394bb8066cf9e2ee96ac6a2dab7389aaeeff60 | /src/ONVIFOptDeviceTime.cpp | f13a6a53529932a3ff631d766f64171bf314136c | [] | no_license | chxj1980/yyhonviflib | 265fdbffbd69bfddaa795652199060f1fd4ff610 | b1a4b7c14d17ace35a11b75241f51f33dd7ab043 | refs/heads/master | 2021-09-11T17:07:11.456131 | 2018-04-10T08:10:58 | 2018-04-10T08:10:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,447 | cpp | ONVIFOptDeviceTime.cpp | #include "ONVIFOptDeviceTime.h"
#include <time.h>
namespace yyhonviflib
{
ONVIFOptDeviceTime::ONVIFOptDeviceTime()
{
}
ONVIFOptDeviceTime::~ONVIFOptDeviceTime()
{
}
int ONVIFOptDeviceTime::GetDeviceTime(const char *DeviceXAddr, int _timeout)//PRE_AUTH
{
int result = 0;
struct soap *soap = NULL;
_tds__GetSy... |
48e49e09577bbd059645b6a5583da9eed0fde8a3 | eb10bd476aa1ce5b8325d88db7195af216f1c32d | /laboratory-1/src/matrix_lib.h | 6c8ed43a9ff6a3f951dd9ff16d5333bf6eb33a1f | [] | no_license | zsxoff/course-programming-technology | f1925c908fd3cf188b44a68456fc6b64dbb58959 | 04c2db90f97b3fe17d62965f2f13acde1e92273e | refs/heads/master | 2021-05-23T14:42:40.097357 | 2020-04-17T18:42:24 | 2020-04-17T18:42:24 | 253,345,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 376 | h | matrix_lib.h | /*
* Created on Mon Apr 06 2020
*
* Copyright (c) 2020 Konstantin Dobratulin
*/
#ifndef LABORATORY_1_SRC_MATRIX_LIB_H_
#define LABORATORY_1_SRC_MATRIX_LIB_H_
#include <vector>
extern "C" const std::vector<std::vector<float>> matmul(
const std::vector<std::vector<float>>& A,
const std::vector<std::vector<... |
18504cfea056b1ab106709965925b568e0ada9b6 | 9ee6b3ba658fb674433ade32d71d59bff9086325 | /.removed/include/fullscore/ui/ComponentTemplate/Actions.hpp | a75f2cd127ae8904f027366b957adbb43f5e7823 | [] | no_license | MarkOates/fullscore | 01f7aa843805f221b1547ab16deaaf91b513446e | ccd9449aa235d355bf1c24b0ff8fcc3a0fa83e23 | refs/heads/master | 2022-09-15T14:54:01.980708 | 2022-09-14T12:52:50 | 2022-09-14T12:52:50 | 33,223,354 | 1 | 0 | null | 2019-08-25T00:06:51 | 2015-04-01T02:59:18 | C++ | UTF-8 | C++ | false | false | 126 | hpp | Actions.hpp | #pragma once
namespace UI::ComponentTemplate::Actions
{
std::string const SAY_HELLO_ACTION_IDENTIFIER = "say_hello";
}
|
455e97d702d6355969ed41a1577aa1d645354409 | b30c7717acbcace38eaa9e8939b952dc3245ebd6 | /200-300/288.cpp | a62b4a06e1c34d363e920c861332126fc35086cb | [
"MIT"
] | permissive | Thomaw/Project-Euler | e7dbfae93b26eb0d658c09e18fdaa932998d7a12 | bcad5d8a1fd3ebaa06fa52d92d286607e9372a8d | refs/heads/main | 2023-09-06T08:16:35.045015 | 2021-10-07T18:44:42 | 2021-10-07T18:44:42 | 407,856,542 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 586 | cpp | 288.cpp | #include <stdio.h>
#define p 61LL
#define power 10LL
#define q 10000000LL
long long T[q+10];
long long pp[30];
long long ans;
long long c,n,m;
int main(){
/*Calculate powers of p*/
pp[0]=1;
for(c=1;c<25;c++) pp[c]=p*pp[c-1];
/*Calculate T[n]*/
T[0]=290797;
for(c=1;c<=q+5;c++){
T[c]=(T[c-1]*T[c-1])%5051... |
054915788d53772142479ae93363519e8245a62d | e58f51956e0ff4004cdec9492c6811a32ceb3026 | /AtoZ.cpp | f4101fc93f98761a82b0fb215c1ebb96ef737df1 | [] | no_license | sumitnlab/DailyAssignment | 9f6983bff9b1df0059b99f27294a7d5ef8307f2e | 3ca1fbfa1032ab9f71d869bacb5fe92784bd71c5 | refs/heads/main | 2023-07-07T15:28:00.614320 | 2021-08-09T09:12:24 | 2021-08-09T09:12:24 | 332,130,117 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 993 | cpp | AtoZ.cpp | // C++ program to print alphabets
#include <iostream>
using namespace std;
// Function to print the alphabet
// in lower case
void lowercaseAlphabets()
{
// lowercase
for (int c = 97; c <= 122; ++c)
cout << c << " ";
cout << endl;
}
// Function to print the alphabet
// in upper case... |
4e23021ac93d3f24c6c43670e9228db42d0cbefb | 5b3ea57ffda2c0c948e63e202fa6bf64fb284553 | /Actions/Copy.cpp | 6f838e19cd4ecb1b735d04d5e69145229d43a81e | [] | no_license | EngPeterAtef/LogicCircuitSimulator | b249180f8cd5a3fe8136e9a4f35c2a540f295b9e | 92797107801eb94fdb5a5066e6b531c6ea0db467 | refs/heads/master | 2023-08-23T00:34:52.891934 | 2021-09-25T18:23:23 | 2021-09-25T18:23:23 | 510,504,581 | 1 | 0 | null | 2022-07-04T21:13:41 | 2022-07-04T21:13:40 | null | UTF-8 | C++ | false | false | 845 | cpp | Copy.cpp | #include "Copy.h"
#include "..\ApplicationManager.h"
Copy::Copy(ApplicationManager* pApp) : Action(pApp)
{
}
void Copy::Execute()
{
ReadActionParameters();
Output* pOut = pManager->GetOutput();
//get the selected gate
Component* C = pManager->getSelectedComponent(Cx, Cy);
//check if there is no gate selected
... |
384a7349ff708e04f9b86f9d7a9a80d975cd0f98 | 777a75e6ed0934c193aece9de4421f8d8db01aac | /src/Providers/UNIXProviders/SystemStatistics/UNIX_SystemStatistics_LINUX.hxx | 7b16e82a2c0196e60354faf9be0e13efa4bf4a28 | [
"MIT"
] | permissive | brunolauze/openpegasus-providers-old | 20fc13958016e35dc4d87f93d1999db0eae9010a | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | refs/heads/master | 2021-01-01T20:05:44.559362 | 2014-04-30T17:50:06 | 2014-04-30T17:50:06 | 19,132,738 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 128 | hxx | UNIX_SystemStatistics_LINUX.hxx | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_SYSTEMSTATISTICS_PRIVATE_H
#define __UNIX_SYSTEMSTATISTICS_PRIVATE_H
#endif
#endif
|
c4b61deff43caabfce31c50d4e38dd51ce990c08 | 35c54837e56fe87f375bfae20c8fbe73e6da0df9 | /PhysicsEngine/Catapult.h | ca052b5bca4f3d22d206d5e2c460ef5c7439fe57 | [] | no_license | bdawson1993/physics-engine | bea09da7ed0d8dbc663787b4f9d0927a8235849a | a834511e5576ff35fe11632fba03a179acdd7e43 | refs/heads/master | 2021-10-26T11:47:40.106568 | 2019-04-12T09:28:53 | 2019-04-12T09:28:53 | 168,467,836 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,697 | h | Catapult.h | #pragma once
#include <iostream>
#include "Actor.h"
#include "Scene.h"
#include "Projectile.h"
#include "GameObject.h"
using namespace std;
class CatapultBase : public Actor
{
public:
CatapultBase()
{
};
CatapultBase(const char* name, PxPhysics* phy) : Actor(name, phy)
{
};
void CreateDynamic(PxVec3 ... |
66a743f77e09fcd9549d044b0b44bb7a9de2627b | 51a6a102af47dbb76a1a2e708c6be02a23c39f1d | /src/player.cpp | 907f222ba46babeeaec9f9f8144d7d41a7b1815b | [] | no_license | ar664/rwars2 | 8951f26392553b8af787c721d4aae07b007c611d | ea04d09d34cd008067913e69f8535ceaf36c4de8 | refs/heads/master | 2020-05-29T15:41:06.598226 | 2016-10-03T20:49:27 | 2016-10-03T20:49:27 | 60,388,862 | 0 | 0 | null | 2016-10-03T21:24:36 | 2016-06-04T02:17:27 | C++ | UTF-8 | C++ | false | false | 1,652 | cpp | player.cpp | #include <SFML/Graphics.hpp>
#include <iostream>
#include <math.h>
#include "statemachine.h"
#include "player.h"
#include "globals.h"
CharacterStateMachine movement;
Player::Player()
{
mLastStateChange = 0;
}
void Player::HandleInput()
{
}
void Player::ChangeState(PlayerState state)
{
int delta = 0;
int atk_de... |
448cc7c2f3c1cb490b436033a6f76e69b38c79e5 | 92af649433b83c241c0220d20d580414823f1bdb | /Homework/Homework6-GeoCalc.cpp | 8efa795d2e45ed9248509e0559c18406d9a6d9e3 | [] | no_license | VictorNguyen031900/Computer-Science-I | eaf000e37a4ce8cd83c607274ff4e9dcb26dceb1 | 97e0cc6de90e610d5cbb8f4b1522a40961c5b884 | refs/heads/master | 2022-11-23T07:58:53.859725 | 2020-07-27T05:58:09 | 2020-07-27T05:58:09 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,131 | cpp | Homework6-GeoCalc.cpp | /*******************************************************
Victor Nguyen
CS111
10/10/18
In this program, the user will pick from a menu and it will calculate the area of a shape
********************************************************/
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
int mai... |
d47c9476b704871d0a487897cd1891c8e36bd3c7 | d4c7d3a7986cac85d806642d4714be0716190d4e | /telemetry-pcb/sketch_jul10a/sketch_jul10a.ino | 62e756fceeb2cf19e52cb22d91061b9c85ff7fa7 | [] | no_license | matt-ketk/tarc-telemetry | d8a7ab9d8358fcf567eeb88521a72cc18eaa663a | c3fc4b803b22953d55bc36fb994a4f8ece4e6567 | refs/heads/master | 2022-12-09T12:22:08.791367 | 2020-09-16T18:32:58 | 2020-09-16T18:32:58 | 296,116,689 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,850 | ino | sketch_jul10a.ino | #include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
#include <SD.h>
#include <SPI.h>
#define BME_SCK 13
#define BME_MISO 12
#define BME_MOSI 11
#define BME_CS 10
#define SD_CS 9
#define SEALEVELPRESSURE_HPA (1013.25)
Adafruit_BME280 bme(BME_CS);
Sd2Card card;
SdVolume volume;
SdFile root;
... |
dd76f14630a0949a717a9198d42f5f2d2696b06c | de9d4be027e5383bcf1e0624e3e00d7982ff7736 | /Prueba01/pagcamera.cpp | 8e6eb20fb487caf34d27fd919ff6502ce1d244ec | [] | no_license | JavierPin/Animacion3D | d24de65a557d0154e13d6e5f5dd01a32537ee9d9 | f24dce9cca3ffa0a3294fc3f3cf440455d5f3762 | refs/heads/master | 2021-01-10T16:31:30.682879 | 2016-03-04T12:41:54 | 2016-03-04T12:41:54 | 53,126,329 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,317 | cpp | pagcamera.cpp | #include "pagcamera.h"
#include <QtDebug>
#include <QFileInfo>
#include <math.h>
PagCamera::PagCamera()
{
initializeOpenGLFunctions();
setWidth(4);
setHeight(3);
setAspect();
resetCamera();
}
QMatrix4x4 PagCamera::getProjection(){
return p;
}
QMatrix4x4 PagCamera::getView(){
return ... |
1268f7e43ca9dceb748bcbeb6716ebb9e089f56c | ad13e1c4fb65b810cd6d7232ab618e29d864a3d9 | /c_plus_code/Chapter2-linear-list/2.1.2.cpp | d47f970b941b901ff2ebaeeaeefe4f13ccbd6fe0 | [] | no_license | shuaiyin/pystudy | 688994f728e6a8e678325e63b3d8caa446caae20 | fe017cb94582b5e3af68807915447ea99983b742 | refs/heads/master | 2021-01-13T10:27:53.808830 | 2017-05-07T08:17:03 | 2017-05-07T08:17:03 | 63,121,870 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 670 | cpp | 2.1.2.cpp | //leetcode,Remove Duplicates from Sorted Array II
#include<iostream>
#include<vector>
using namespace std;
class Solution{
public:
int removeDuplicates(vector<int> & nums){
if(nums.size() <=2 ) return nums.size();
int index =2 ;
for(int i=2;i<nums.size();i++){
if(nums[i] != nums[index-2]) nums[inde... |
c0dee945a44a323e1397bc2b460e8b38e9edefb2 | a2477c5d8423d7121e99e42c5e166909d50f7825 | /cpp/ric-packet-spy/ricpacketspy.pb.cc | 0c794cfb3a2606d65cf1b2bb713b627981555535 | [] | no_license | Rightech/ric-proto | 18b04949a14a0f89bb8371501f3c1645d61f3f7e | b6320f91149f1320a18f58eca62aebe853813bb4 | refs/heads/master | 2023-07-19T04:24:42.649744 | 2023-06-28T11:26:46 | 2023-06-28T11:26:46 | 202,419,228 | 0 | 4 | null | 2023-07-11T04:25:57 | 2019-08-14T20:12:18 | JavaScript | UTF-8 | C++ | false | true | 127,204 | cc | ricpacketspy.pb.cc | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ric-packet-spy/ricpacketspy.proto
#include "ric-packet-spy/ricpacketspy.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.