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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ed6c4543aa3f9d446bdb2e1bba69949cf4ad07ac | 111c3ebecfa9eac954bde34b38450b0519c45b86 | /SDK_Perso/include/graphicsxp/Include/Renderer/Pass.h | 75e44050c9aa97b1a9e58f5dd8fb1ec4caeea88b | [] | no_license | 1059444127/NH90 | 25db189bb4f3b7129a3c6d97acb415265339dab7 | a97da9d49b4d520ad169845603fd47c5ed870797 | refs/heads/master | 2021-05-29T14:14:33.309737 | 2015-10-05T17:06:10 | 2015-10-05T17:06:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 819 | h | Pass.h | #ifndef _LOCKON_PASS_H_
#define _LOCKON_PASS_H_
#include "graphicsxp.h"
namespace Graphics {
class Context;
class Pass {
protected:
int _passType;
public:
GRAPHICSXP_API Pass(int type);
GRAPHICSXP_API ~Pass();
enum PassType {
INVALID_PASS = -1,
PASS_MAIN = 0,
PASS_SHADOWMAP,
// PASS_FL... |
060b959600ea28af67cf6b9940026a288c575d23 | 889e81bc910ba4ef7de55e7a61c24e49613bf179 | /shareboard/classes/display/cVectorDrawWidget.cpp | a511e49176e0590f2fd3d9b3682619102d88fabc | [] | no_license | scuzzycheese/projects | 8d4685b9e3afef2f344a9bf52ee329cb2dc45b33 | 274b0f3ee6b3f99c4971e4674d18b60c5a7eab76 | refs/heads/master | 2021-01-23T14:58:27.918080 | 2013-10-22T15:39:06 | 2013-10-22T15:39:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,855 | cpp | cVectorDrawWidget.cpp | #include <QtGui>
#include "cVectorDrawWidget.h"
#include <iostream>
cVectorDrawWidget::cVectorDrawWidget(QWidget *parent) : QWidget(parent)
{
setAttribute(Qt::WA_StaticContents);
dScribbling = false;
dScrolling = false;
dCurrentPenWidth = 1;
dCurrentPenColour = Qt::black;
}
void cVectorDrawWidget::setPenColor... |
598af6882cc512e2ba17a77b86736f213b483b32 | 6a7959eeb89c330baaefd1062e7fea7c05cb0ff3 | /cpp/src/VJGateDetector.cpp | 7c5a9d62501213a5c7e78ee44bfbdb7590d457c7 | [] | no_license | beeonlinecy/Gate_Detection_Viola_Jones | 1687418869154c5cdc5caf0b02d2a9bb39491733 | 11fe5ffacfaca856b90dbc0dcd6abd820305c2b5 | refs/heads/master | 2023-05-01T05:37:26.091303 | 2018-11-13T23:30:22 | 2018-11-13T23:30:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 26,742 | cpp | VJGateDetector.cpp | #include "opencv2/core.hpp"
#include <opencv2/imgproc.hpp>
#include "opencv2/objdetect/objdetect.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "stdio.h"
#include <iostream>
#include <Comm.h>
#include <time.h>
#include "Config.h"
#include <cmath>
#include "VJGateDetector.h"
using... |
121bc99a12a2086fe3de1681396a5cc91d8e3c0d | 16f6c6da6b671d1dcc624983cc5c2c5cbee6ea4a | /LinkedList.cpp | d2330a0160983706236b27aa80aae309d84bb9e8 | [] | no_license | JorgeM313/L9Ro | 32214f659610b11d3994d6ca2ddea864c5844bd8 | db5fb5d3e9550b7de60f00bf278ce1f35ef202d4 | refs/heads/master | 2020-04-11T11:17:06.016911 | 2018-12-14T06:48:09 | 2018-12-14T06:48:09 | 161,743,563 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,961 | cpp | LinkedList.cpp | //Jorge Martinez
//CPSC 121
//12/12/2018
#include "LinkedList.h" // Function Declarations
#include <iostream>
using namespace std;
template <class T>
int LinkedList<T>::recursiveSum(Node<T> * h)
{
if(h != NULL)
{
return h->data+recursiveSum(h->next);
}
else
{
return 0;
}
}
template <class T>
int Linke... |
8d5a56727a4e894fe6a1111c7ab829d311172437 | 1b20be60ffe1f8c6158f6285bdf2c0bad9523814 | /src/densities.cc | 2094f4e747738b03f1c8dfaddb8c30a28824b6ca | [
"LicenseRef-scancode-philippe-de-muyter",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | vivi235711/music-fork | ef0023413925111092df3b554b6d3e75e309cf7f | 9142b06fd536d9e97928192d59e72cf9d8a15073 | refs/heads/master | 2023-08-01T00:08:27.250648 | 2020-07-23T09:29:55 | 2020-07-23T09:29:55 | 406,816,706 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 32,943 | cc | densities.cc | /*
densities.cc - This file is part of MUSIC -
a code to generate multi-scale initial conditions
for cosmological simulations
Copyright (C) 2010 Oliver Hahn
*/
#include <cstring>
#include "densities.hh"
#include "convolution_kernel.hh"
//TODO: this should be a larger number by default, just to maintain... |
3cf58fab92b692565f0b3123f58287f3656bc7d9 | 79143151a5f5c246a304fc4ee601e144f323fa97 | /CodeForces/907B/14207333_AC_31ms_4kB.cpp | 6eb7978971566bd3caf12324252e1ba4e10a1b54 | [] | no_license | 1468362286/Algorithm | 919ab70d1d26a4852edc27b6ece39f3aec8329eb | 571e957e369f5dc5644717371efcc3f4578a922d | refs/heads/master | 2020-06-01T23:56:22.808465 | 2019-06-09T08:44:55 | 2019-06-09T08:44:55 | 190,970,478 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,303 | cpp | 14207333_AC_31ms_4kB.cpp | #include <iostream>
#include <string>
using namespace std;
char map[10][10];
int p[9][9]={1,2,3,1,2,3,1,2,3,
4,5,6,4,5,6,4,5,6,
7,8,9,7,8,9,7,8,9,
1,2,3,1,2,3,1,2,3,
4,5,6,4,5,6,4,5,6,
7,8,9,7,8,9,7,8,9,
1,2,3,1,2,3,1,2,3,
4,5,6,4,5,6,4,5,6,
7,8,9,7,8,9,7,8,9};
int q[9][9]={1,1,1,2,2,2,3... |
9911731bef9ea037eb83cb3b75adbb4787997103 | bb915a71f263a643c0522ab3faf7a69482211483 | /stack_primary_linear/global.h | 251220f8963056c37fb633a3bc60d1da66f42214 | [] | no_license | logic-three-body/DataStructure_Stack | e90d2340154b3783ed9a043d677c5aa95c828d95 | c06008a1b6d7d6bf68c00040ee81e127609320c2 | refs/heads/master | 2023-01-12T00:09:12.686018 | 2020-08-09T08:10:05 | 2020-08-09T08:10:05 | 286,191,193 | 0 | 0 | null | 2020-08-09T08:08:48 | 2020-08-09T07:46:27 | null | GB18030 | C++ | false | false | 376 | h | global.h | #pragma once
#include "stdio.h"
#include<iostream>
#include<cctype>
#define OK 1
#define ERROR 0
#define TRUE 1
#define FALSE 0
#define MAXSIZE 20 /* 存储空间初始分配量 */
typedef int Status;
typedef unsigned long SElemType; /* SElemType类型根据实际情况而定,这里假设为int */
inline Status visit(SElemType c)
{
std::cout << c << "\t";
return... |
f2a2a07761082ca17fd4f06e5b5547aac4ef5ca1 | c4ac895830d35bdd7531c350ff328899960e8832 | /FairyLand/Code/Engine/src/Database/DatabaseManager.h | 9d664c15e86335a6ade1a7f890bf076fa760f4cf | [] | no_license | Qazwar/FairyLandEngine | 08ccfe46556f3fc30fdd52fcbd86b1dd3d13fac1 | 39c5bb00f13b7676fbc14f6b92344ed69e7ed435 | refs/heads/master | 2020-04-26T03:29:59.415959 | 2016-01-12T09:53:48 | 2016-01-12T09:53:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 919 | h | DatabaseManager.h | //============================================================================
// DatabaseManager.h
//
// Copyright 2006-2009 Possibility Space Incorporated.
//============================================================================
#pragma once
namespace FL
{
//---------------------------------------... |
ce2b98fc71c3264a1a4423fbfb6cf35da226a971 | fd5f3128d177d63bae8ead833f409d8877ef2a48 | /GLODBM/Chain.cpp | d9bf14bf00960df6db346cbd694fdacfc2300225 | [] | no_license | Gorgonx7/GLO---GL-Online | ca56b0fdbe66f2743936096924c97012f9c3c299 | 9e5fe18eb6beebf786136454415bf9ae836ed275 | refs/heads/master | 2023-01-05T05:32:03.840663 | 2020-10-29T09:06:01 | 2020-10-29T09:06:01 | 129,157,626 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 375 | cpp | Chain.cpp | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: Chain.cpp
* Author: jamesgordon
*
* Created on 10 July 2018, 22:31
*/
#include "Chain.h"
Chain::Chain() {
}
Cha... |
a004a21ca4ca0a68fc1964919a98fb9192659119 | 94c177a4ffdd26c0a29539fd2ff053edc07b8c9f | /Projekt/src/Engine/Graphics/Geometry/Quadtree.h | 8fd76cd1d5c8a7fae7831b2fdf5a5feb5ed0d92d | [] | no_license | Praccen/EyetrackingHeightmap | 8e0c1d3c2e99e4fe57f621828b4c7c909a43decd | 86aac4f3c5cd0fedcc160f2788548f20961e1302 | refs/heads/master | 2020-05-17T23:37:34.385700 | 2019-05-17T08:53:34 | 2019-05-17T08:53:34 | 184,036,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 983 | h | Quadtree.h | #ifndef QUADTREE_H
#define QUADTREE_H
#include <vector>
#include "..\Geometry\Model loading\Model.h"
#include "..\Shader compilation\ShaderSet.h"
//#include "..\Geometry\Structs.h"
class Quadtree {
private:
/*struct Node {
std::vector<Node> childNodes;
std::vector<Model> models;
BoundingBox boundingBox;
int... |
3580498112199d56b250cb16bedd0c0b37493db4 | e140e72119f30cd8e4969d56b184948c233ae10c | /polynome/EA/BitString.h | 66f69af4bc3ac3698fb3542b6247fa2a66849783 | [] | no_license | PSL-Central/central | c2db3d60bbd5be43daadcdd8956459bab97c900f | 747b19c108139ae31fb26ee112928996f2359d88 | refs/heads/master | 2020-12-24T14:56:51.194341 | 2013-04-10T15:41:57 | 2013-04-10T15:41:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,394 | h | BitString.h | // BitString.h
//
// SPECIAL VERSION THAT WORKS ONLY FOR STRINGS OF LENGTH LESS THAN 32
// Uses 0-based indexing
#ifndef _VBI_POLYMATH_N_BITSTRING_H_
#define _VBI_POLYMATH_N_BITSTRING_H_
// TO DO
// typedef std::vector<ULONG> WordArray;
// typedef std::vector<ULONG>::iterator WordArrayIter;
extern USHORT BitsPerWor... |
9e1cf8499453b612f8169baffcc45ba83461eb42 | 094662cc6f16272eb1907cd235933aa1f5932652 | /Sequential/src/Audio.cpp | 84481818ef3dea173698cbc5b5ee9ef7805ac095 | [
"Apache-2.0"
] | permissive | Cindytb/Convolution-Reverb-Benchmarks | 80f6cb647a3522aee8057858b60ef2c85081abee | c4d9c8f91b5f3e16bfd4ad4e67f70d2ff95d9f59 | refs/heads/master | 2020-04-07T17:08:40.194843 | 2020-04-05T16:17:26 | 2020-04-05T16:17:26 | 158,558,442 | 2 | 0 | Apache-2.0 | 2020-04-05T16:15:14 | 2018-11-21T14:14:22 | C++ | UTF-8 | C++ | false | false | 4,586 | cpp | Audio.cpp | #include "Audio.h"
void errorCheck(int iCh, int iSR, int rSR){
if(iCh != 1){
fprintf(stderr, "ERROR: Program can only take mono files\n");
exit(100);
}
if (iSR != rSR) {
fprintf(stderr, "ERROR: Input and reverb files are two different sample rates\n");
fprintf(stderr, "Input file is %i... |
bf8d473315c9b685af03d5ca354cdf09775b269f | f36408ec61640316d33fbed17139c09d7f1ed628 | /inc/AudioPlayer.h | 47af4657e7d4bec0ea823e071a79e3ca53aa3a8f | [] | no_license | jinhuafeng/RS-MAN | 108a9d0ceffbf5f45283b0369a6beb08aa562c1d | 38f8fd61d3e8947bbc748fca1533c836a963008e | refs/heads/master | 2016-09-08T02:33:10.760059 | 2013-12-24T02:48:13 | 2013-12-24T02:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,005 | h | AudioPlayer.h | /*
* AudioPlayer.h
*
* Created on: 2010-9-13
* Author: jinhuafeng
*/
#ifndef AUDIOPLAYER_H_
#define AUDIOPLAYER_H_
#include <e32std.h>
#include <MdaAudioSamplePlayer.h>
class CAudioPlayer : public CBase, public MMdaAudioPlayerCallback
{
public:
static CAudioPlayer* NewL(const TDesC& aFileName,TI... |
6ad968c1f570541000349d0e262d8da6eb31004d | 937ca45e9896b845d404d4bec24761d954ed364d | /sandia/pmedian/pmedian_coek.cpp | 6b27727d4e65ce4d2106ea8648bdd077217c420c | [] | no_license | jalving/OptimizationModelComparisons | 566755c3b66d877a1a4019c09b34d7968d706a96 | ab2b807842c4abdff8f7b16c9980991594fdd9aa | refs/heads/master | 2023-01-27T15:52:40.164392 | 2020-12-09T20:40:28 | 2020-12-09T20:40:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,323 | cpp | pmedian_coek.cpp | #include <map>
#include <vector>
#include <coek/coek.hpp>
int main(int argc, char** argv)
{
int N = atoi(argv[1]); // Locations
int M = N; // Customers
int P = atoi(argv[2]); // Facilities
coek::Model model;
std::vector<std::vector<double>> d(N, std::vector<double>(M));
for (int n=0; n<N; n++)
fo... |
3783be89ea9f79fece36cef7c27770127bbf5f8d | 4dff595d59df71df9eaf3ea1fda1a880abf297ec | /src/WaveInteractorManager.cpp | 794ee37cfa8d5da5b70061f046bf16202f0cfc45 | [
"BSD-2-Clause"
] | permissive | dgi09/Tower-Defence | 125254e30e4f5c1ed37dacbfb420fb650df29543 | 2edd53d50c9f913d00de26e7e2bdc5e8b950cc02 | refs/heads/master | 2021-03-12T19:18:59.871669 | 2015-09-17T10:55:17 | 2015-09-17T10:55:17 | 42,649,877 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 380 | cpp | WaveInteractorManager.cpp | #include "WaveInteractorManager.h"
#include "Wave.h"
WaveInteractorManager::WaveInteractorManager(void):Manager()
{
}
WaveInteractorManager::~WaveInteractorManager(void)
{
}
void WaveInteractorManager::interactAll(Wave ** waves,int size)
{
for(it = elements.begin();it != elements.end();++it)
{
(*it)->wavesInte... |
474bfe2afc96eb87c89df976be81aed92156d1db | d071e6156cf23ddee37a612f71d71a650c27fcfe | /pojpass/poj1961_Period.cpp | bab523a29f1e31e4fce6bf2861cac875728b602f | [] | no_license | tsstss123/code | 57f1f7d1a1bf68c47712897e2d8945a28e3e9862 | e10795c35aac442345f84a58845ada9544a9c748 | refs/heads/master | 2021-01-24T23:00:08.749712 | 2013-04-30T12:33:24 | 2013-04-30T12:33:24 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 799 | cpp | poj1961_Period.cpp | #include <stdio.h>
const int MAXN = 1000000+5;
char s[MAXN];
int next[MAXN];
int make_next(char s[], int next[])
{
int i, k = -1;
next[0] = -1;
for (i = 1; s[i]; i++) {
while (k >= 0 && s[k+1] != s[i]) {
k = next[k];
}
if (s[k+1] == s[i]) {
k++;
}
next[i] = k;
}
return i;
}
int main()
{
int n, ... |
a9d6c6c37d4e69614b18439488687a82f91f5d1e | e34b485dfa63c27351a87d979ff71382201f408f | /live-archive/4704.cpp | a7e5eb2b2553e82294adb1cba4839e11cfe65d46 | [] | no_license | gabrielrussoc/competitive-programming | 223146586e181fdc93822d8462d56fd899d25567 | cd51b9af8daf5bab199b77d9642f7cd01bcaa8e3 | refs/heads/master | 2022-11-30T11:55:12.801388 | 2022-11-15T18:12:55 | 2022-11-15T18:12:55 | 44,883,370 | 10 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,668 | cpp | 4704.cpp | #include <bits/stdc++.h>
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
using namespace std;
typedef unsigned long long ll;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
const double eps = 1e-9;
const int inf = INT_MAX;
//////////////0123456789
const int N = 54;
const int modn = 10... |
ef7d8f76841d33d0e39f1db4db8db12aa4f8eb33 | 998d4ce1054987f24562219bd6f79c37cbaa19c2 | /套题/2014 ACMICPC 西安赛区现场赛/2016-08-08-Contests/2016-08-08-Contests/sources/runs/site1run59/main.cpp | 158edd7b13b51a5e318c0fdb24175e67074831b6 | [] | no_license | tankche1/ACM-NOI | 0cedccd7f5fa53070c03cbc1845d5de06385f52b | 1cb3d1fc08493e62c5cb4396e0352abef65b93f8 | refs/heads/master | 2022-12-13T03:22:18.971576 | 2022-12-05T15:56:34 | 2022-12-05T15:56:34 | 98,779,042 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,922 | cpp | main.cpp | #include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<cctype>
#include<climits>
#include<iostream>
#include<algorithm>
#include<vector>
#include<queue>
#include<stack>
#include<map>
#include<set>
#include<bitset>
#include<complex>
using namespace std;
typedef pair<int, int> p... |
876d177187e5b3a2ed3cb8bcb9e474efe401c531 | 0b87237bc73bf4ee439a8837fee861b7739265e3 | /47_Add.cpp | c5a7667a561b44f4bdb4696d0ff276e39ed9dc7f | [] | no_license | YuanHei/6_Offer | 9248b367850be191144b39adaa00c79ea557550f | 83325b493b1d06cd2450cd036d94a4653e6eef19 | refs/heads/master | 2020-12-24T09:45:34.490017 | 2016-06-02T03:18:43 | 2016-06-02T03:18:43 | 60,228,854 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 374 | cpp | 47_Add.cpp | #include <iostream>
using namespace std;
//不用加减乘除做加法
int Add(int num1, int num2)
{
int sum, carry;
do
{
sum = num1 ^ num2;
carry = (num1&num2) << 1;
//两个数先做位与运算再左移一位
num1 = sum;
num2 = carry;
} while (num2 != 0);
return num1;
}
//输入正数、负数、0
int main()
{
cout << Add(1,2) << endl;
return 0;
} |
af31bb135fcad09c152b1372649423f9623f3c08 | 62148efea914d04c97afab0f80af430ff8ec3650 | /test/mariadb_mock.cpp | 82c5e39b80a920b30ecc4535a6058e8e2c519dab | [
"MIT"
] | permissive | Bergmann89/cpphibernate | 370646cd58d1843b1d824d7c47cd28bb91d4a968 | 15c3cd8482365385aeebaa93c6740c273ab5dd30 | refs/heads/master | 2020-04-01T11:38:39.812730 | 2018-11-05T19:51:11 | 2018-11-05T19:51:11 | 153,171,169 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,728 | cpp | mariadb_mock.cpp | #include "mariadb_mock.h"
mariadb_mock* mariadb_mock_instance;
void mariadb_mock::setInstance(mariadb_mock* value)
{
mariadb_mock_instance = value;
}
void mariadb_mock::clearInstance(mariadb_mock* value)
{
if (mariadb_mock_instance == value)
mariadb_mock_instance = nullptr;
}
my_ulonglong STDCALL my... |
d098f6f8bdf956662d4ac63331eff878c657314d | 4c18fd69acd5da1e5422acf56a01d85a61d927fb | /src/uvw/signal.cpp | 0b5bb4f92996b1d51f25e00bb68c7643b797a407 | [
"CC-BY-SA-4.0",
"MIT"
] | permissive | stefanofiorentino/uvw | 372d7a90ca25567edb2c5b82f67ddaba4ae5d0be | 39b6aea2f101bd301877cbb087e558db165d5b4d | refs/heads/master | 2023-07-22T00:36:09.917301 | 2023-01-05T17:00:27 | 2023-01-05T17:00:27 | 186,373,872 | 0 | 1 | MIT | 2022-03-11T14:23:30 | 2019-05-13T08:06:00 | C++ | UTF-8 | C++ | false | false | 861 | cpp | signal.cpp | #ifdef UVW_AS_LIB
# include "signal.h"
#endif
#include "config.h"
namespace uvw {
UVW_INLINE SignalEvent::SignalEvent(int sig) noexcept
: signum{sig} {}
UVW_INLINE void SignalHandle::startCallback(uv_signal_t *handle, int signum) {
SignalHandle &signal = *(static_cast<SignalHandle *>(handle->data));
... |
8940898b969386f208095dc871e08c734f19de9d | ed358c5aa5f018fe1de38def2d3e41b32f82ee89 | /Src/CLIENT/Naked.cpp | 231e04ce5426080afb140dcde93bdb4cfd074cb9 | [] | no_license | bgarciaoliveira/WYD2-CrackPatch-7556 | 177acdc0ee3f7e7556852e4c105e727628237e3d | 460a33b40ec6ca5c52d19c5fa52d2fee73ee6ad2 | refs/heads/master | 2021-08-31T15:09:33.792807 | 2017-12-21T20:57:06 | 2017-12-21T20:57:06 | 115,044,361 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 990 | cpp | Naked.cpp | /*
Copyright (C) 2015 bgarcia and agateownz
Contact: fb.com/bruunooliveira.2 or brunogarcia212@gmail.com
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 Foundation.
This program is distributed in the hope that ... |
faf160ee389229212ecf07dfc71d023a954e821e | 814b49df11675ac3664ac0198048961b5306e1c5 | /Code/Engine/Utilities/ComponentExplosive.cpp | 4a00a4306d720c44786dd3e699849bc7f395ac64 | [] | no_license | Atridas/biogame | f6cb24d0c0b208316990e5bb0b52ef3fb8e83042 | 3b8e95b215da4d51ab856b4701c12e077cbd2587 | refs/heads/master | 2021-01-13T00:55:50.502395 | 2011-10-31T12:58:53 | 2011-10-31T12:58:53 | 43,897,729 | 0 | 0 | null | null | null | null | ISO-8859-3 | C++ | false | false | 2,133 | cpp | ComponentExplosive.cpp | #include "ComponentExplosive.h"
#include "PhysicsManager.h"
#include "ComponentObject3D.h"
#include "Core.h"
CComponentExplosive* CComponentExplosive::AddToEntity(CGameEntity *_pEntity)
{
CComponentExplosive *l_pComp = new CComponentExplosive();
assert(_pEntity && _pEntity->IsOk());
if(l_pComp->Init(_pE... |
7fa6011c366a74380245001b9b6a6cf58fa09bc7 | 63a34d8b8b062e0fe9acf9e3b3e2cfa19a4ab95e | /is-Engine-Admob/app/src/main/cpp/isEngine/system/entity/parents/Step.h | 5988d99945c34839990c58c0c3c6f959dd6399e6 | [
"Zlib"
] | permissive | matheuszig/is-Engine-Example-Pack | 6e58fa009644f92f78f374a4d8fef9de5bb730cb | 87cd2c4afb16478f50045b478688c9a4b68c357d | refs/heads/main | 2023-03-12T20:49:05.004175 | 2021-03-06T01:13:19 | 2021-03-06T01:13:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 673 | h | Step.h | #ifndef STEP_H_INCLUDED
#define STEP_H_INCLUDED
namespace is
{
////////////////////////////////////////////////////////////
/// Provides methods to manage the step of an object mechanism
////////////////////////////////////////////////////////////
class Step
{
public:
Step() :
m_step(0)
{}
Step(in... |
609861846eb19d2eb6f54edccfc79edc7e2c350b | ddc0af4698e59e5cf7470885f69f6c66c36c3b3b | /geoff2/main.cpp | 220941d3861233b861c2535fefc005bbd0dc5c62 | [] | no_license | killinfidels/geoff | e84fc221157d491b47cf3629f8bdfa98cc9e7ddb | b3aa7ebeec1cd5d6d7f5ce612d82cb8c272f9bbc | refs/heads/master | 2021-05-05T10:19:53.476490 | 2018-01-30T14:48:06 | 2018-01-30T14:48:06 | 117,994,257 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,169 | cpp | main.cpp | #include <iostream>
#include <windows.h>
using namespace std;
int main()
{
SetConsoleTitle("Calculator");
system("color 0A");
float num1, num2, result;
int choice;
char yn;
do
{
system("cls");
cout << "Input first number: " << endl;
cin >> num1;
cout << ... |
110b888cba93fc47214d615f5510ca43043dcc9f | 75eade2aca1572cd137d08d80b83437e3ee269c8 | /workspace/src/player/player.cpp | 76f98ea68b99852bfc42557b60cce681c48e767e | [] | no_license | holwech/RoboSoccer | 85e17645142fc0fd930ad54cc1bba9ba2e01f7fc | 2b22730c8951808ae60fb0a62d98bee20ed2719f | refs/heads/master | 2021-01-18T17:56:55.457223 | 2017-02-01T14:25:22 | 2017-02-01T14:25:22 | 72,448,406 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,205 | cpp | player.cpp | #include "player.h"
#include "player/goalkeeper_actions.cpp"
#include "player/general_actions.cpp"
#include "player/attacker_actions.cpp"
Player::Player(Channel* channel, RTDBConn &DBC, const int deviceNr) :
state_before_kick(STEP1),
DBC(DBC),
deviceNr(deviceNr),
... |
bdefe1a64a48586d0a7070ade68e34a32707731f | 7f73bb7c35e2d8f5fef33499856eff5d05c90cd5 | /src/movement_controller.h | 48f7a8036fe372e1cdbe9f706b4ad53f8db35927 | [] | no_license | var-const/azureland | 9446840415927371edf53ea563050b84b7c11a92 | 92b45caffd5dc50c4f993502d5f3dc183f2c859d | refs/heads/master | 2021-01-23T07:20:57.088522 | 2015-10-12T03:08:17 | 2015-10-12T03:08:17 | 40,819,741 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 436 | h | movement_controller.h | #pragma once
namespace cinder {
template <typename T> class Vec2;
}
class Movable;
class MovementController {
public:
void SetSpeed(float Speed);
cinder::Vec2<float> GetVector(int Key) const;
void Deccelerate(Movable& Object);
void OnKeyDown(int Key, Movable& Object);
void OnKeyUp(int key);
... |
4e48c0ea70d5299e2abbb000a139b18a0cbf5792 | 5386865e2ea964397b8127aba4b2592d939cd9f2 | /jboi2012/DOB 2/zadachi/zad 2 30.03.2008.cpp | 008f38f60416fc7c2104fa975621edb0d950562a | [] | no_license | HekpoMaH/Olimpiads | e380538b3de39ada60b3572451ae53e6edbde1be | d358333e606e60ea83e0f4b47b61f649bd27890b | refs/heads/master | 2021-07-07T14:51:03.193642 | 2017-10-04T16:38:11 | 2017-10-04T16:38:11 | 105,790,126 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | cpp | zad 2 30.03.2008.cpp | #include<iostream>
using namespace std;
int main()
{
int min=200;
while(min%17!=0)
{
min++;
}
cout<<min<<endl;
system("pause");
return 0;
}
|
56489e629ce8ea418517df929e85ea0deaa7a089 | 725d4ceec138f8f9ceefeaef8aac026767604a18 | /ConsoleApplication4/tictactoe.h | 2029e1ebbc791ff545dd7feb694aed22059fd7c5 | [] | no_license | nathan-rees/AI | 42fb48771dcd49b21bfafc5bc461c08ecff1f2fc | 22c9c4936ecc878142003d62172457a78e2a4161 | refs/heads/master | 2023-01-04T19:48:17.671210 | 2020-05-01T09:37:13 | 2020-05-01T09:37:13 | 260,423,844 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | h | tictactoe.h | #pragma once
#include <vector>
#include <iostream>
using namespace std;
class tictactoe
{
private:
vector<vector<char>> board{ {'-','-','-'}, {'-','-','-'}, {'-','-','-'} };
public:
void input(int col, int row, char inp) {
board[col][row] = inp;//cos fuck 0
}
void print() {
for (int i = 0; i < board.size(); i++... |
d0d7bee6f9628db4b6de16ef87ccea5ec415cfd2 | 425df8036558a93c29fda8c61951298de9285562 | /src/main.cpp | 1f803f40c5636d97d0f8d87bf04ca5d4d00031c8 | [] | no_license | Voodo13/Shark_tale_arcade | ff4cf85a4e7c020ecc105e9f097d2d3c85a6a92b | 5a0539cfb3bb19bf7da7d227811b32134271c2de | refs/heads/master | 2023-05-14T23:08:50.436972 | 2021-05-24T07:23:43 | 2021-05-24T07:23:43 | 370,263,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,952 | cpp | main.cpp | #include <Arduino.h>
#include <avr/eeprom.h>
#include "GyverTimer.h"
#include "MaxButton.h"
#include <Sensors.h>
#include <Wire.h>
#include <Adafruit_SSD1306.h>
#include <Fonts/FreeSans9pt7b.h>
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 64 // OLED display height, in pixels
// Decl... |
fb213592a2e0bb217d0ec47e5b4e7fe19dad78c1 | 6c8b68bb25ce787725e90e4fe85748b6fa5b9596 | /f8_templates/print.hpp | 4cc1e6a17a71744de2548468fc1f2fe451947d27 | [] | no_license | claudiouzelac/cpp_v2015 | df8e348291249512e369bf3319b301dde1bf8d06 | 825989241f767206658cdb77f88aa20aefa8c99a | refs/heads/master | 2022-10-18T23:50:45.058721 | 2015-06-01T13:19:08 | 2015-06-01T13:19:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | hpp | print.hpp | #ifndef PRINT_HPP
#define PRINT_HPP
#include <iostream>
template<typename T>
void print(const T c){
std::cout << c << std::endl;
};
#endif
|
616d258887631dadf0f242a50bd21d5c8444172a | c6d109a9bf019e29aa07c5cd5159eb5f3b407fe3 | /sheaves/template_instantiations/list_pool.inst.cc | fa2d60124e98e2becbf42b26d83626955b0b5d7e | [
"Apache-2.0"
] | permissive | LimitPointSystems/SheafSystem | 883effa60ec9533a085e2d1442c83df721e8d264 | 617faf00175b1422be648b85146e43d2fc54f662 | refs/heads/master | 2020-09-12T20:01:59.763743 | 2017-05-02T20:48:52 | 2017-05-02T20:48:52 | 16,596,740 | 2 | 3 | null | 2017-05-02T20:48:52 | 2014-02-06T22:44:58 | C++ | UTF-8 | C++ | false | false | 15,605 | cc | list_pool.inst.cc |
//
// Copyright (c) 2014 Limit Point Systems, Inc.
//
// 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 ... |
136cd1bb9daecc15e897ec0a81ef1bbae0d83b6f | 997c0e00ca04232a42760e8d74561030f657175d | /treeclass.hpp | 098747dbdbf6bf541d7bad8c2fbb2a590c893165 | [] | no_license | ivababkin/tree | e13c0fc2095ea8b27b80b4b75e19a32c8c15df44 | 688df7d739fdf2a7faf2d2e92827f2831a5c74e7 | refs/heads/master | 2020-03-07T07:26:33.948741 | 2018-05-18T06:46:30 | 2018-05-18T06:46:30 | 127,349,397 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 987 | hpp | treeclass.hpp | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
//#ifndef treeclass_H
//#define treeclass_H
typedef struct Tree
{
struct Tree * left;
struct Tree * right;
struct Tree * back;
int deep;
int val;
} tree;
class treeclass
{
public:
treeclass();
void insert(int v... |
003adeb49b97f22f6de214388edbb269f643cda5 | b2fad8c7e0ac2fadee108a6d8e5fc089755730ea | /C++/real_transitions.cpp | 1126761f5924b9a31e1a69a0217ddcdec4f10a50 | [] | no_license | yleo/aggregation | a98a89b0ee3eeded116f30301505891e99bf4688 | 45a8a963454efcc0543a58d396d21029e2f74745 | refs/heads/master | 2021-01-17T20:28:22.462727 | 2016-06-23T12:44:46 | 2016-06-23T12:44:46 | 61,802,449 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | cpp | real_transitions.cpp | //cas t1=t2 et croissant par les ti
//output not uniq
#include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
struct myclass {
bool operator() (int i,int j) { return (i<j);}
} myobject;
struct Arete
{
int u; int v;
};
int main(int arg... |
6f348e4f5643687dbfe967ec3ae9128fc8439db7 | 1b9c4830207821c069bdafbe33041602103f1afb | /Game.h | 109a84725f4e7ad92f4de05bf023d66f97b81e37 | [] | no_license | Patrikgyllvin/Input-Prototype | 42ce3e3ab535e7b4b1943fc4bc8a0f66df875313 | 74a902c2d16ebf043fad1dba8c2daf6e54a3970c | refs/heads/master | 2022-04-04T14:53:31.927456 | 2020-02-14T19:43:29 | 2020-02-14T19:43:29 | 240,585,938 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | h | Game.h | #ifndef GAME_H
#define GAME_H
#include <iostream>
#include "Core.h"
class Game
{
public:
Game();
~Game();
void load();
void tick();
void render( Engine::Renderer& renderer );
};
#endif // GAME_H
|
1ca1873846c89d1e3882324cc9f94b7d2b7b6125 | 9cf8571a4d546e550b942b022a8728e1cacba2b6 | /codingInterview/16.Power/power.cc | 40a9cf5849605bd45b17feebb8569b6fdad37ad6 | [
"MIT"
] | permissive | stdbilly/CS_Note | eebd7f1371f263272a4f71d96063fc5deb20867b | a8a87e135a525d53c283a4c70fb942c9ca59a758 | refs/heads/master | 2020-06-15T23:41:14.103914 | 2019-10-17T15:55:08 | 2019-10-17T15:55:08 | 195,422,963 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,214 | cc | power.cc | #include <iostream>
#include <vector>
using std::cout;
using std::endl;
using std::vector;
class Solution {
public:
double Power(double base, int exponent) {
if (equal(base, 0.0) && exponent < 0) return 0.0;
unsigned int absExponent = (unsigned int)exponent;
if (exponent < 0) {
... |
8a4c1ffe58c34ca6acc08ad891ec3a6748c862c2 | 0785c562353156926af018f2bb8a27d1fcc8b499 | /flatland_viz/include/flatland_viz/spawn_model_tool.h | 6766c90786991938bfaf875a5a3f76e4ea3faeda | [
"BSD-3-Clause",
"MIT",
"Zlib",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | avidbots/flatland | 7cc8dd3a85f94390b78ccd89a8a2da631e9ef048 | 93096a21b917fdb66598d2578273aad4049d85d9 | refs/heads/master | 2023-07-06T23:20:21.765733 | 2023-02-06T20:55:40 | 2023-02-06T20:55:40 | 100,396,494 | 96 | 50 | BSD-3-Clause | 2023-08-30T17:30:16 | 2017-08-15T16:22:15 | C++ | UTF-8 | C++ | false | false | 6,269 | h | spawn_model_tool.h | /*
* ______ __ __ __
* /\ _ \ __ /\ \/\ \ /\ \__
* \ \ \L\ \ __ __ /\_\ \_\ \ \ \____ ___\ \ ,_\ ____
* \ \ __ \/\ \/\ \\/\ \ /'_` \ \ '__`\ / __`\ \ \/ /',__\
* \ \ \/\ \ \ \_/ |\ \ \/\ \L\ \ \ \L\ \/\ \L\ \ \ \_/\__, `\
* \ \_\ \_\ \_... |
468195f70b2aa868718f423f58902d49efe42827 | 68bad417713c72c66b56997d656ab55646098b5a | /Firmware/Controller.ino | 8aec2ade6242b2164c3f21f40de6070d40eaa1fc | [
"MIT"
] | permissive | tfeldmann/QlockToo | f9fed6ab48bd1356f9923cd8453f930a6a29c200 | 778a955ac84348342db036b1989931c6d9be9242 | refs/heads/master | 2021-03-12T22:19:30.998054 | 2019-07-26T13:39:24 | 2019-07-26T13:39:24 | 8,914,985 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,663 | ino | Controller.ino | //
// Controller.ino
//
#include <Bounce.h>
#include "globals.h"
// Buttons
Bounce btn1 = Bounce(A5, 5);
Bounce btn2 = Bounce(A4, 5);
Bounce btn3 = Bounce(A3, 5);
Bounce btn4 = Bounce(A2, 5);
// the time module will care for setting this flag, just make sure to reset
// it after you read it.
extern volatile bool sec... |
f54d6f9a2a4477f4b212b5709054df7e7677d683 | ab5a29ae37ad263f672e6417ca7c9cacac9c0189 | /[MS Visual Studio]/RainbowConsole/RainbowConsole/RainbowConsole.cpp | 2101744f105e2830c08f95bee3309115782e3845 | [] | no_license | gorp-misha/classworks | 8c28e8ff0acf7d22a8c014911f579247a192e4c2 | d1f2804929f57bcf915d94a99bc0280a52cf5bbd | refs/heads/master | 2020-04-07T21:14:47.134863 | 2019-05-30T16:14:04 | 2019-05-30T16:14:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,208 | cpp | RainbowConsole.cpp | // RainbowConsole.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
//
#include "pch.h"
#include <iostream>
#include <stdio.h>
#include <Windows.h>
using namespace std;
enum ConsoleColor {
Black = 0,
Blue = 1,
Green = 2,
Cyan = 3,
Red = 4,
Magenta = 5,
Brown = 6,
... |
575d602caa393b585aa3afb4170a323bd58f3f1e | a23c7c39bbc0d1f26592b0d31822ce56a204d145 | /src/buffer.h | d224b6a4a39b53cfef3a337b84aa31ed3f2a2420 | [
"BSD-2-Clause"
] | permissive | baitisj/samesame | 8af10e5f330ff6858cca9048dc42656406f377a5 | 1525cc3b53d4b6cfac18b6304a078dc109030bcb | refs/heads/main | 2023-03-19T13:27:49.284984 | 2021-03-07T17:49:32 | 2021-03-07T17:49:32 | 345,412,892 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,097 | h | buffer.h |
/* ************************************************************************ *
* Written by Alex de Kruijff *
* ************************************************************************ *
* This source was written with a tabstop every four characters *
* In v... |
e04e42c3a65b31c271c9fe8f30715e1d64e222d0 | 6645d92d1eab8fc12b4fda41e4592f8cd4bbcc99 | /fe.cpp | e2d63dc3868f6bd86b9435db3be220fbdb4f8371 | [] | no_license | pBengt2/OrbCalculator | 8974b495712d574d9c274596fa9b385b724aa9cb | 25608a5b4cadc406e3c15c0caeb7518ca428b120 | refs/heads/master | 2021-09-01T22:51:45.377571 | 2017-12-29T02:05:32 | 2017-12-29T02:05:32 | 115,674,445 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,082 | cpp | fe.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
const int numTrials = 50000;
const int numOrbs = 200;
const int startingAppearence = 1900;
const int numToSummon = 2;
bool sum(const int& appRate){
return ((rand()%10000) <= appRate);
}
int subOrbs(int i){
if (i==0)
... |
959900dc8ad1f2474ca2f7edfe0c75cbbf9d45cb | 0840896623f07254443f6f5dac6d3e9e0f8d5553 | /tests/MadnexPOD.cxx | 28449c8bd20b12f6dc6766787572fdbc3821150f | [] | no_license | FCurtit/madnex | 5559ffadfe49209a257b463fbbbf3fe1c930ec2c | d117e1bbb244d4d487513973e31ab571ba088726 | refs/heads/master | 2022-10-12T13:23:56.533388 | 2020-06-11T13:13:46 | 2020-06-11T13:13:46 | 271,547,421 | 0 | 0 | null | 2020-06-11T13:01:42 | 2020-06-11T13:01:41 | null | UTF-8 | C++ | false | false | 2,976 | cxx | MadnexPOD.cxx | /*!
* \file tests/MadnexPOD.cxx
* \brief
* \author Thomas Helfer
* \date 16/01/2017
*/
#ifdef NDEBUG
#undef NDEBUG
#endif
#include<cmath>
#include<cstdlib>
#include<limits>
#include<iostream>
#include"TFEL/Tests/TestCase.hxx"
#include"TFEL/Tests/TestProxy.hxx"
#include"TFEL/Tests/TestManager.hxx"
#inclu... |
74666e7f5b474e886bd128b6eb249cf8d81cb40a | fe2836176ca940977734312801f647c12e32a297 | /Codeforces/Contest/Round 271/B/main_iterative.cpp | c27327e71408d1a5fc1cc3eab4c2096696c1244c | [] | no_license | henrybear327/Sandbox | ef26d96bc5cbcdc1ce04bf507e19212ca3ceb064 | d77627dd713035ab89c755a515da95ecb1b1121b | refs/heads/master | 2022-12-25T16:11:03.363028 | 2022-12-10T21:08:41 | 2022-12-10T21:08:41 | 53,817,848 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 843 | cpp | main_iterative.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n;
scanf("%d", &n);
int inp[n + 1];
inp[0] = 0;
for (int i = 1; i <= n; i++) {
int tmp;
scanf("%d", &tmp);
inp[i] = inp[i - 1] + tmp;
}
int q;
scanf("%d", &q);
for (int i = 0; i < q; i++) {
... |
46114af28c697258396b54ac0304595b27b60cd2 | 02d8629d0a7dd7f37a306d43987bab567ba5f053 | /webserver/coroutine.h | a221cac77cbc1163b8b552ad283366a3f335cc81 | [] | no_license | Fiee-ma/webserver | c34b25c9bbbfebaac96f270614bbf9f8ef3a8e91 | 01802b01eee7efc6538fd45e73604b71a6a9b855 | refs/heads/main | 2023-03-11T14:18:25.249824 | 2021-02-24T13:24:39 | 2021-02-24T13:24:39 | 332,288,549 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,125 | h | coroutine.h | #ifndef __WEBSERVER_COROUTINE_H__
#define __WEBSERVER_COROUTINE_H__
#include <memory>
#include <ucontext.h>
#include <functional>
#include "thread.h"
namespace server_name {
class Scheduler;
class Coroutine : public std::enable_shared_from_this<Coroutine> {
friend class Scheduler;
public:
typedef std::shared_ptr... |
cd555889cd9614c57ec6abd5a88527f86f20c86f | eedd904304046caceb3e982dec1d829c529da653 | /sdltest2/src/sdltest2.cpp | 5152199c1e3974c48d7e553af6f214d038929d54 | [] | no_license | PaulFSherwood/cplusplus | b550a9a573e9bca5b828b10849663e40fd614ff0 | 999c4d18d2dd4d0dd855e1547d2d2ad5eddc6938 | refs/heads/master | 2023-06-07T09:00:20.421362 | 2023-05-21T03:36:50 | 2023-05-21T03:36:50 | 12,607,904 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,322 | cpp | sdltest2.cpp | #include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "SDL/SDL_ttf.h"
#include <string>
const int WINDOW_WIDTH = 640;
const int WINDOW_HEIGHT = 480;
const char* WINDOW_TITLE = "SDL Start";
void drawSprite(SDL_Surface* imageSurface,
SDL_Surface* screenSurface,
int srcX, int srcY,
... |
e35a04c5ab357241ff4d5ce1219a94e19f47e88a | e91ed75849fcfe5b27a493483fa75bbb29428a81 | /t-sne.cpp | f9a3028ab7d136bb24081ccd9bb3acad2944dcc8 | [
"BSD-2-Clause"
] | permissive | lh3/bhtsne | 4dde28f78268670a21fe24d1ce2dee65f55607df | 1a62a5d3842944d832837b5522143cf892908f53 | refs/heads/master | 2021-01-17T07:59:21.635474 | 2016-08-23T03:39:00 | 2016-08-23T03:39:00 | 66,316,009 | 4 | 1 | null | 2016-08-22T23:37:22 | 2016-08-22T23:37:22 | null | UTF-8 | C++ | false | false | 333 | cpp | t-sne.cpp | #include <stdlib.h>
#include "tsne.h"
#include "t-sne.h"
double *ts_fit(int N, int n_in, double *x, int n_out, double theta, double perplexity, int seed)
{
double *y;
TSNE *ts = new TSNE();
y = (double*)malloc(N * n_out * sizeof(double));
ts->run(x, N, n_in, y, n_out, perplexity, theta, seed, false);
delete(ts);
... |
2b5d0a9b39764ed13f0905516a5b773aa5c5440b | 815a4a067c63c1aa00399e3aa14cf585a6199dec | /core/proteinstructure/mrf_features.h | 8344793e17183a8a7415955200adb76ac799a1ca | [
"Apache-2.0"
] | permissive | tecdatalab/legacy | 39ff4f4329d0dba043fef79f363a8c1fd504b5a9 | 9b5286d3375fff691a80ceb44172549e9a6bdee5 | refs/heads/master | 2020-04-18T06:00:16.559666 | 2019-01-24T17:27:54 | 2019-01-24T17:27:54 | 167,301,809 | 0 | 0 | Apache-2.0 | 2019-10-18T15:27:24 | 2019-01-24T04:15:59 | C | UTF-8 | C++ | false | false | 2,186 | h | mrf_features.h | #ifndef _MRF_FEATURES_H_
#define _MRF_FEATURES_H_
#include <fstream>
#include "soroban_score.h"
using std::ofstream;
using std::string;
class mrf_one_body_features {
public:
mrf_one_body_features(double alpha_z, double beta_y, double gamma_x,
double translate_x, double translate_y, double translate_z,
... |
f3ed87bd621349ed009fc9a27a10f3b9ce96f894 | 39346979d79a6c0facbad08e6001ea86b140c87f | /P73_SetMatrixZeroes.cpp | 5ed96d14229b84607c80f3375f8d0276b2c921e2 | [] | no_license | BarryChenZ/Leetcode | 3d76acab39a77efd8f6c02fb50af8791404e874b | 532c3933259264b7f2e74dc8e6c7c379188006be | refs/heads/master | 2021-06-27T14:47:53.824441 | 2020-11-20T02:19:36 | 2020-11-20T02:19:36 | 185,322,868 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,345 | cpp | P73_SetMatrixZeroes.cpp | class Solution {
public:
void setZeroes(vector<vector<int>>& matrix) {
int row = matrix.size();
if(row == 0) return;
int col = matrix[0].size();
vector<int> row_pos;
vector<int> col_pos;
cout << row << col << endl;
for(int i = 0; i < row; i++){
for... |
e76e8ad72b8d2c2dd2ca6d30b6efbb57f3a30f67 | 742ca431044ec6e0f6971984eb8479362d4c8e80 | /src/qtgui/snowmaterialmanager.cpp | 4a10c9a9f00e9a05b6ca0e70818bc8a1eaa69aa5 | [] | no_license | Jerry-Jinfeng-Guo/mitsuba-renderer | b5e46f38c125c8479f8c8eb94f638b07fbce52b5 | e685b423de928fb2a773aee76f01e1f9e62af590 | refs/heads/master | 2021-05-27T01:39:09.523734 | 2011-07-26T17:47:50 | 2011-07-26T17:47:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 19,638 | cpp | snowmaterialmanager.cpp | #include "common.h"
#include "snowmaterialmanager.h"
#include <mitsuba/render/shape.h>
#include <mitsuba/render/bsdf.h>
#include <mitsuba/render/subsurface.h>
#include <mitsuba/core/plugin.h>
#include <mitsuba/core/properties.h>
#include <mitsuba/core/fstream.h>
//#define DEBUG_DIFF_PROF
MTS_NAMESPACE_BEGIN
void Sno... |
5140c363886c723f4dc0cd28776ec559d414696f | eded3490c7d55f4bcef33b720de1c822519d5e5a | /matpan.cpp | a17788d2e7d6b06c9592ac59966ac67ffab408b3 | [] | no_license | asperaa/Codechef_Problems | a8da49ce1c2c057e25c5fb62c848318d5f2e4624 | 9ab4f4ab53d3fbe8788243fb4b0f8f1afcac839e | refs/heads/master | 2021-01-23T21:47:19.485328 | 2017-09-08T21:09:52 | 2017-09-08T21:09:52 | 102,904,635 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 589 | cpp | matpan.cpp | #include <bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
int a[26],b[26];
char c[26];
for(int k=0;k<26;k++)
c[k]=(97+k);
string s;
for(int i=0;i<t;i++)
{
int cost=0;
for(int k=0;k<26;k++)
b[k]=0;
for(int j=0;j<26;j++)
cin>>a[j];
cin>>s;
set<char>s1;
for(int j=0;j<... |
397c65831d46119d642ab2cef278057e7e6f4b83 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /third_party/blink/renderer/core/frame/remote_frame.cc | e5d0e24fa1cbfff6a16632103562042b9ae43708 | [
"LGPL-2.0-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"LGPL-2.1-only",
"GPL-1.0-or-later",
"GPL-2.0-only",
"LGPL-2.0-only",
"BSD-2-Clause",
"LicenseRef-scancode-other-copyleft",
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | 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 | 45,270 | cc | remote_frame.cc | // Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/frame/remote_frame.h"
#include "base/types/optional_util.h"
#include "cc/layers/surface_layer.h"
#include "services/network/public/mo... |
dd4239bcf35d0c6bbc9a8fcc5b2a67f0cca32faa | 6f8a060973c7a12316e14b4de80ca38de745fd40 | /clang_delta/ClassTemplateToClass.cpp | 2039882db7fe14d946ea547673695b84b384f6de | [
"NCSA",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | csmith-project/creduce | f88cd0ea5a01ff5d75ef43c460ce762392e14076 | 92502474f38e37d17a3404ea69fb4b6bb42b4233 | refs/heads/master | 2023-06-21T12:39:00.661693 | 2023-06-08T08:21:57 | 2023-06-08T08:21:57 | 3,572,572 | 918 | 118 | NOASSERTION | 2023-06-08T08:20:58 | 2012-02-28T15:55:07 | C++ | UTF-8 | C++ | false | false | 11,287 | cpp | ClassTemplateToClass.cpp | //===----------------------------------------------------------------------===//
//
// Copyright (c) 2012, 2013, 2014, 2015, 2017, 2019 The University of Utah
// All rights reserved.
//
// This file is distributed under the University of Illinois Open Source
// License. See the file COPYING for details.
//
//===------... |
d0a96bffe671e922c345fb42b659b9d5456dbc48 | 6ee8d5b314917de6ede2d95e36c5c4f0e7dcdf34 | /src/ClassifierMultiPlatform.cpp | 4e7c9b093ccaf481bb6dfae11f581937376b18e9 | [] | no_license | salehjg/DGCNN-GPGPU | a22b842b0a022492f3f009dd85ceee6d680bf3b2 | d62b19aa9002d6601124792f85e982dbb7ee47c9 | refs/heads/master | 2023-02-06T06:02:53.544876 | 2018-12-01T18:02:41 | 2018-12-01T18:02:41 | 325,083,035 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,116 | cpp | ClassifierMultiPlatform.cpp | //
// Created by saleh on 9/3/18.
//
#include "ModelArchTop05.h"
#include <iostream>
using namespace std;
void CalculateAccuracy(TensorF* scores, TensorI* labels, int B, int classCount){
//find argmax(net) and compute bool array of corrects.
bool *correct = new bool[B];
float accu =0;
cout<<"STATUS: "... |
e0fb657d9691f95b619db07cb3d18d67df2c6587 | b0a86f997a3d579feee3531606e72f82f11099e2 | /iOS/of_preRelease_v007_iphone/addons/ofxBullet/examples/Events/src/testApp.cpp | bbaa1a87bcccea1b7b83013519b806ad4f45b8da | [
"MIT"
] | permissive | matthewvroman/RGBlaster | abc9f4cd8399cdc2aeffc7ac6f2bddf47f8ba7ff | 36aa1791959ecd0945b6a71504f01c20d19140e3 | refs/heads/master | 2021-01-23T06:26:29.638404 | 2012-05-11T22:06:47 | 2012-05-11T22:06:47 | 3,007,449 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,347 | cpp | testApp.cpp | #include "testApp.h"
//--------------------------------------------------------------
void testApp::setup() {
ofSetFrameRate(60);
ofSetVerticalSync(true);
ofBackground( 10, 10, 10);
camera.setPosition(ofVec3f(0, -4.f, -40.f));
camera.lookAt(ofVec3f(0, 0, 0), ofVec3f(0, -1, 0));
camera.cacheMatrices(true);
... |
6b89a54541fa6e340fd13cf293340c7b948ca86e | 1577a53881c0d2bf13a7bc4a597037c08ac2e80d | /qt_code/v1.6.1/ClientSdWireless/mainwindow.h | ed80a951c03580a878e9191e490e746331c8828f | [] | no_license | xiaoweilai/wireless | ff3205de883cca17ad0a332705519d0235f81f8c | 2130a7f4d7947ec7cd985160ed74a04410318189 | refs/heads/master | 2021-01-13T01:27:48.808776 | 2015-05-31T09:07:47 | 2015-05-31T09:07:47 | 29,049,725 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,713 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QAbstractSocket>
#include <QTcpSocket>
#include <QHostAddress>
#include "dosendthread.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~... |
2e131e0a9594b627033cdf5acaa84c01f119cdd8 | 84a37dac3109f6c75e5ec985a024a7943e8a8aeb | /SoftRender/SoftRender/inc/Vec3.h | ca748a67f0b4e9553440ee9e3c6df913679c4a1e | [] | no_license | plinx/CG | 1ea8b00f4d32ed24d264290851d4dca5c78da6b8 | 942d73a54c9ddd5414306f571557973c7e917998 | refs/heads/master | 2021-01-19T14:53:24.764008 | 2015-07-07T20:22:28 | 2015-07-07T20:22:28 | 29,869,223 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,035 | h | Vec3.h | #ifndef Vec3_h
#define Vec3_h
#include <math.h>
class Vec3
{
private:
double x, y, z;
public:
Vec3() : x(0), y(0), z(0) {}
Vec3(double fx, double fy, double fz) : x(fx), y(fy), z(fz) {}
~Vec3() = default;
double getx() { return x; }
double gety() { return y; }
double getz() { return z; }
Vec3 copy() { retu... |
e32cb4a52201bc7dd6e181108c32dd72a1f26949 | c888a67a41b9cd064ea7fcad0086e180887382ed | /CUI_game/ソースコード/lib/source/sup/include/sup/boost_extend/boost_python.hpp | 60a785683ff383e3cd094a1c77abbd6201096159 | [] | no_license | k-higashimoto/Megurimasu | 492cf54ce29ce7a4ec627e71b895277c2f65bcfc | 8537c370c1dbd83c28c7cb20aacb7804b57234f5 | refs/heads/master | 2020-06-15T21:38:05.659763 | 2019-07-15T09:48:52 | 2019-07-15T09:48:52 | 195,398,444 | 2 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 2,231 | hpp | boost_python.hpp | /**
* @file boost_python.hpp
* @brief boost_pythonの拡張ファイル
*/
#ifndef SUP_LIB_BOOST_EXTEND_BOOST_PYTHON_HPP
#define SUP_LIB_BOOST_EXTEND_BOOST_PYTHON_HPP
#include<map>
#include<vector>
#include<boost/python/dict.hpp>
#include<boost/python/list.hpp>
namespace sup
{
inline namespace boost_extend
{
/**
* @brief 辞書型の値を... |
70fffcacb07621324ec2e41d0fc3e561ea04fa95 | 78cf7c7a3dcf19dde3f9858409b339297d3b8584 | /HowToUMG/Plugins/GVoice/Source/GVoice/Public/GCloudVoiceErrno.h | 0f2a8f69f10d423edcec778c0cbd95a60c81b27a | [] | no_license | littleshuang/UnrealLearning | cc02866d907a573ef30cbe70ad638a8a6404e129 | a9de6fdcc44187587c02e79c62fcb7342a8d01de | refs/heads/master | 2020-04-03T10:59:47.722816 | 2018-10-30T03:05:27 | 2018-10-30T03:05:27 | 155,208,672 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 8,796 | h | GCloudVoiceErrno.h | /*******************************************************************************\
** File: GCloudVoiceErrno.h
** Module: GVoice
** Version: 1.0
** Author: CZ
\*******************************************************************************/
#ifndef _GCloud_GVoice_GCloudVoiceErrno_h
#define _GCloud_GVoice_GCloudVoi... |
afb9d86f354f90199c4375b15f25c48bec3b4d43 | 42e833ca1eee7ae01d73d0f62898524034f50fe5 | /IDE-GUI v6/logic/If.cpp | 195b41d9a75ce5499fbd7957a24094d8ece3af0c | [] | no_license | KJeanpol/LaunchPadInterpreter | 654a35a66921c005049d7d54f513aef66d775bf3 | b10d0e8aea262bcd5ff9862290d3e231582f7200 | refs/heads/master | 2021-07-10T14:29:17.414188 | 2017-10-11T18:56:05 | 2017-10-11T18:56:05 | 103,405,392 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,414 | cpp | If.cpp | //
// Created by Luis on 2/10/2017.
//
#include "If.h"
If::If() {
}
void If::execute(){
for(int i=0;i!=vals1.size();i++){
cout<<"If "<<getVar(vals1[i])<< " equals " <<vals2[i]<<endl;
cout<<i<<endl;
if(getVar(vals1[i])!=0){
cout<<"Size "<<vals2.s... |
53a67f007f4aba2df526326ef5d217e6c010af94 | 924fa2bc282e15283507bf6f07c61cddfbede3f1 | /main.cc | 034248b915877672adc138e6977727f06a9bc3ea | [] | no_license | PBS590/CS244proj3 | 49571a4cb7a50c6c4e4b2ea8700fce6a92e50cae | 80c12b1f5ee2fa4dceaf3b9a9c7b63d5fa01c416 | refs/heads/master | 2020-05-25T19:15:51.509679 | 2019-06-05T03:20:39 | 2019-06-05T03:20:39 | 187,947,186 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | cc | main.cc | #include <stdio.h>
#include "zipf_generator.h"
#include <iostream>
#include <fstream>
using namespace std;
int main () {
ZipfGenerator z = ZipfGenerator(0.01, 40359450);
ofstream f;
f.open ("zipf.txt");
for (int i = 0; i < 10000; i++) {
f << z.Next() << "\n";
}
f.close();
return 0;
} |
02782b6ad2f36ae1d6d2a4a2f65c3404fa239633 | cc3fd3a55992b7c59d2148c16f05db5ca884bfbf | /Codesignal/core/27.magicalWell.cpp | 247044bf317127ff3103cdf625404944e6f8b555 | [] | no_license | karlsmarx/Challenges | 541b0b608d440afdd4ef1e1757e1df2f8b70fe7d | b24adcc466d9ad2b2ce8b52d1301c932b27e5af3 | refs/heads/master | 2021-06-18T06:15:42.231961 | 2021-03-16T10:20:25 | 2021-03-16T10:20:25 | 176,175,410 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 146 | cpp | 27.magicalWell.cpp | int magicalWell(int a, int b, int n) {
int sum = 0;
for (int i = 0; i < n; i++) {
sum += a * b;
++a;
++b;
}
return sum;
}
|
0cf6150a37961a714a492f016137a197c608b2c9 | 73bf5c4a8ae19036cc0e0d32a87a0f6ecc26a8fd | /src/loopct.cc | 6cb8829c2d967aca34de1090d8399585035cb96a | [] | no_license | damobin/Rsp_Play | c8afffb781824b73fb884686e89217f98f6cfa57 | 0868a4848a428aa8c9b85fa732680465094cd1c1 | refs/heads/main | 2023-07-25T18:21:10.648317 | 2021-08-22T18:23:50 | 2021-08-22T18:23:50 | 394,662,974 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,291 | cc | loopct.cc | #include "loopct.h"
#include "unistd.h"
#include "string"
#include "fstream"
#include "capImags.h"
#include <pthread.h>
#include <csignal>
#define REPET_TIMES 7
static void MulOpenTimes(string fileName,int times); //多用重复多次开空调 因为树莓派离空调有三米远,有的时候开两次成功一次 目前成功率在60%以上 缩短距离可以提高 离空调半米近98的成功率
static void LogTimeWriteFile... |
4c85c1ab6666cc2b4feb278272cb8984f8dfe191 | fbf2ec75c72daf57d6a44522c2f60605434ad7fa | /sun_pivoting_planner/include/sun_pivoting_planner/utility.h | 594341d101937704bc17862de91b9434a81b994b | [] | no_license | marcocostanzo/sun_pivoting_planner | ff9d8f379d2e7e89e89200e4cafff88c10151480 | 85df126243fc6730a10b123c6c7d91933c07db28 | refs/heads/master | 2023-02-15T12:09:08.010711 | 2021-01-14T10:00:09 | 2021-01-14T10:00:09 | 274,436,903 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,406 | h | utility.h | #ifndef SUN_PIVOTING_PLANNER_UTILITY
#define SUN_PIVOTING_PLANNER_UTILITY
#include "trajectory_msgs/JointTrajectory.h"
#include <moveit/move_group_interface/move_group_interface.h>
#include <moveit/planning_scene_interface/planning_scene_interface.h>
#include <moveit/planning_scene_monitor/planning_scene_monitor.h>
... |
181e91fa27272079df607144dd4df0efed8346e5 | 1154814c89c84b7e23ec1feed96be67491a5b7eb | /crest/simulation/obj_vertexringsolid.cpp | f91ae4fb750a35c6d7297bdd4de1d749d758e372 | [] | no_license | linlut/View3dn | cc8e741a9a6967277a65a01793ddc61f7ac5ead9 | 4ba9a3b5414d95ac358d0e05f2834ebb451efedd | refs/heads/master | 2020-03-26T23:43:41.132808 | 2014-02-21T01:28:11 | 2014-02-21T01:28:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,874 | cpp | obj_vertexringsolid.cpp | //FILE: obj_vertexringsolid.cpp
#include <vector>
#include <geomath.h>
#include <view3dn/edgetable.h>
#include "obj_vertexringsolid.h"
void CSimuVertexRingSolid::_initClassVars(void)
{
m_nElementType = 0;
m_pElement = NULL;
m_nSurfaceType = 0;
m_nSurfacePoly = 0;
m_pSurfacePoly = NULL;
}
CSimuVertexRingSolid... |
01de8f1d852992274cb35f4bede7e3b9980bca8d | e4f90d2635817ae0a1c219c82d1fef26e11469b4 | /client/values.h | d47bde4e62141cf508dbfc89f638960ba86dcce4 | [
"Apache-2.0"
] | permissive | liuwons/rControl | 9029988a1cae991884e007ed9936f345c605ad4a | d8de29eb14af426b805686da87cdb83caf88c80d | refs/heads/master | 2021-01-01T19:55:14.595790 | 2015-05-22T03:24:04 | 2015-05-22T03:24:04 | 35,338,932 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 352 | h | values.h | #ifndef VALUES_H
#define VALUES_H
#include <stdio.h>
#include <QDateTime>
#include "version.h"
class QTime;
extern int screen_width;
extern int screen_height;
extern bool control;
extern QString addr;
extern int rq_width;
extern int rq_height;
extern FILE* tlog;
extern QTime* ttime;
#ifdef DEBUG
extern QDateTime... |
e4c95a2b076c64c4ec77b9a76802b74ca4596ec7 | 0c83640cf0c7c24f7125a68d82b25f485f836601 | /abc168/a/main.cpp | 05eabb5523b51e5d2b109a73718c2455da71a8d9 | [] | no_license | tiqwab/atcoder | f7f3fdc0c72ea7dea276bd2228b0b9fee9ba9aea | c338b12954e8cbe983077c428d0a36eb7ba2876f | refs/heads/master | 2023-07-26T11:51:14.608775 | 2023-07-16T08:48:45 | 2023-07-16T08:48:45 | 216,480,686 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 753 | cpp | main.cpp | #include <algorithm>
#include <cassert>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>
#include <limits.h>
using namespace std;
typedef long long ll;
template<class T>
inline bool chmax(T &a, T b) {
if(a < b) {
a = b;
return true;
}
return false;
}
... |
4448ef1e2468d4993e0923e0e9666a03ebcf7acb | e3236a7ab9b46ff3d5a0e8d3981c9678a724d701 | /20190118/Class_src/VariadicTemplates/VariadicTemplates.cc | bba4101bdaba2f68dd78a4e23ac6e977ce533e76 | [] | no_license | ProgrammerKyleYang/Cpractice | 35da9e78dbe2fe7877f65ac44cd79af0a240a413 | c2016abe920c7194f53628fcd21944930abe289a | refs/heads/master | 2020-04-15T16:45:30.125637 | 2020-02-09T15:12:07 | 2020-02-09T15:12:07 | 164,849,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,486 | cc | VariadicTemplates.cc | ///
/// @file VariadicTemplates.cc
/// @author kyle(kyleyang58@gmail.com)
/// @date 2019-01-27 20:23:57
///
#include <string>
#include <iostream>
using std::cout;
using std::endl;
using std::string;
template <typename... Args>//Args模板参数包
void print(Args... args)//args函数参数包
{
cout<< "参数包Args中元素个数[sizeo... |
dee2e2eb905c8ba02db79162a20288628c43c69b | f20e965e19b749e84281cb35baea6787f815f777 | /Gauss/Gen/EvtGenExtras/EvtGenModels/EvtXLL.hh | 96c9617ce05c7f957d32f22b5a90d53c3eed79af | [] | 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 | 1,563 | hh | EvtXLL.hh | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
6559730403d982bdde8040b8ae0ed0eec43f5513 | 24d75ffa3af1b85325b39dc909343a8d945e9171 | /SceniX/inc/nvsg/nvsg/IteratingRenderListProcessor.h | c9adc457eb4f3fecd172718635fc74f60c5e41d2 | [] | no_license | assafyariv/PSG | 0c2bf874166c7a7df18e8537ae5841bf8805f166 | ce932ca9a72a5553f8d1826f3058e186619a4ec8 | refs/heads/master | 2016-08-12T02:57:17.021428 | 2015-09-24T17:14:51 | 2015-09-24T17:14:51 | 43,080,715 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,313 | h | IteratingRenderListProcessor.h | // Copyright NVIDIA Corporation 2010-2011
// TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
// *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS
// OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
// AND FITNESS FOR A PARTICULAR PU... |
5830b90fae58b33d7f2dbe6db09f6a77cbf17c35 | 5d01a2a16078b78fbb7380a6ee548fc87a80e333 | /ETS/IVManager/VolaManagementDlg.h | 3387e89b8e4e52b673dd8e414e07c188c3cb35bc | [] | no_license | WilliamQf-AI/IVRMstandard | 2fd66ae6e81976d39705614cfab3dbfb4e8553c5 | 761bbdd0343012e7367ea111869bb6a9d8f043c0 | refs/heads/master | 2023-04-04T22:06:48.237586 | 2013-04-17T13:56:40 | 2013-04-17T13:56:40 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,778 | h | VolaManagementDlg.h | #if !defined(AFX_VOLAMANAGEMENTDLG_H__11473FED_DBF3_46BE_A847_31B6F1C21117__INCLUDED_)
#define AFX_VOLAMANAGEMENTDLG_H__11473FED_DBF3_46BE_A847_31B6F1C21117__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// VolaManagementDlg.h : header file
//
//{{AFX_INCLUDES()
#include "EGButton.h"... |
fd1d346b37864d54a823c318a42935dc0be5a279 | 905ca7346160210cc97bb194a7703290c7d7c915 | /src/Scene/Scene.h | 6f7b80cffc58b756b334ecac8a23e25b5c5f188d | [] | no_license | JeffreyGoncalves/CPP | 7ecccfebe90b0537e7e5625099184c9cd8a7bf69 | 3419d64f68b35802ee32dc48683c3ccd31e219ff | refs/heads/master | 2021-09-02T05:46:47.081199 | 2017-12-30T20:52:45 | 2017-12-30T20:52:45 | 112,477,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,143 | h | Scene.h | #ifndef SCENE_H
#define SCENE_H
#include <iostream>
#include <math.h>
#include <vector>
#include <algorithm>
#include "Object3D.h"
#include "Point3D.h"
#include "sphere.h"
#include "tPyramid.h"
#include "color.h"
#include "source.h"
#include "Camera.h"
#include "ecran.h"
#include "ray3D.h"
#include "vec3D.h"
class Sc... |
0c3fac6875db46cfb53b51d8fbe26eb0bd5ec6fe | 42b07b341242937dc520fb91f2b04d04fc5fdbc9 | /Attack2/B.cpp | 6964a62c30e28912bed8885d73a6af3287c1cc77 | [] | no_license | woowei0102/CompilerAssignment | fbc78e1d5c819c7626b6e0109e45531d1949169b | e8b368af14b7a0e0dad4e921f0fa1a3d3dac3b68 | refs/heads/main | 2023-06-17T03:21:03.944687 | 2021-07-15T12:46:53 | 2021-07-15T12:46:53 | 386,285,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,052 | cpp | B.cpp | #include<iostream>
#include<iomanip>
#include<cstring>
using namespace std;
char str[1000],s;
int t=0;
void arrange(){
while(cin>>s){
if((s=='w')||(s=='x')||(s=='a')||(s=='d')||(s=='s')||(s=='t')||(s=='`')){
str[t++] =s;
}
}
}
///////////////////////////////////////////////... |
9bbda17763a753f7b870dafd24dc848a9e978a6b | 9f9d44dabad1ac1b89eccb011925e10032d97c4f | /Projet_station_meteo_multi/pluvio.cpp | c73238a6b22aad01711c0599670c935b764cebdb | [] | no_license | StationMeteoDIY/pluviometre | 00689821680913e0735b5423eaa142c2a80dc4fa | 4929549121fa316d0bc72c11a2b318e1c186fd8c | refs/heads/main | 2023-02-05T22:39:36.123015 | 2020-12-29T17:15:55 | 2020-12-29T17:15:55 | 325,342,976 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,669 | cpp | pluvio.cpp | #include <Arduino.h>
#include <CircularBuffer.h>
#include "mqtt.h"
const byte rainPin = D5; // PIN de connexion de capteur.
unsigned int raincnt = 0; // Initialisation du compteur.
int idxpluviometre = 1; // Index du Device de pluviométrie.
static int jourCourant ... |
8e1d956254b554b990e02bf5a77d5cfb77b2b205 | 959e9b7b5b730afabc84411fefc4a028b758bc43 | /context.h | 486086aa573e2fc94afee33a9c258ffe924da682 | [] | no_license | tjjeon/tjjeon1019 | c9af3a89c95662f8a2eb4f31d928e32d45ef5c3c | d40e2ceb024aa86f779e523855a1f36a79c8eb2f | refs/heads/main | 2023-01-04T00:04:01.704099 | 2020-10-22T07:01:10 | 2020-10-22T07:01:10 | 305,224,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | h | context.h | #define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include <time.h>
class Context {
public:
Context(const std::string& f, int l) : function(f), line(l) {}
// foo:42
std::string toString() const;
private:
std::string function;
int line;
};
|
59471494e17c5ceb6d8dfbe4f1a6e3e39f2112ac | 6146bb2c6a293377cb959d3d5240bff9544fb1fd | /projects/rpi-video/openmax/BroadcomAACEncode.h | 884d46435ed9fc8bcd26b108e5a92c9c625dcd4c | [
"MIT"
] | permissive | southdy/OpenGLStarter | f743d0948a8434c944830fcb1b6acf6d7724fa5b | 0552513f24ce3820b4957b1e453e615a9b77c8ff | refs/heads/master | 2023-07-05T18:21:01.931563 | 2021-08-30T19:58:48 | 2021-08-30T19:58:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,536 | h | BroadcomAACEncode.h | #include "OMXComponentBase.h"
#include <aribeiro/aribeiro.h>
using namespace aRibeiro;
class BroadcomAACEncode : public OMXComponentBase {
public:
OMX_HANDLETYPE encoder;
OMX_BUFFERHEADERTYPE *inputBuffer;
OMX_BUFFERHEADERTYPE *outputBuffer;
volatile bool canFillInputBuffer;
volatile bool needO... |
36f45106e363542312373f6c048fc7f89a69a19b | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_5695413893988352_0/C++/Gwittaegi/CloseMatch.cpp | 55b5ec628c0e2b7f0f88e597b91f74b4a839408d | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | C++ | false | false | 2,690 | cpp | CloseMatch.cpp | #include <cstdio>
#include <string>
#include <iostream>
#define MAX 999999999999999999
#define ABS(a,b) ((a)>(b)?(a-b):(b-a))
using namespace std;
long long min, resC, resJ;
string cStr, jStr;
void Pro(int l, int n, long long cN, long long jN, int comp) {
if (l == n) {
int k = ABS(cN, jN);
if (min... |
d1086029923746481bef5be6877c12aa0bbe2fc1 | 00add89b1c9712db1a29a73f34864854a7738686 | /packages/utility/system/test/tstCartesianSpatialCoordinateConversionPolicy.cpp | 138a01cabb5ab021024f3a1bf64c04cdebc5d0f6 | [
"BSD-3-Clause"
] | permissive | FRENSIE/FRENSIE | a4f533faa02e456ec641815886bc530a53f525f9 | 1735b1c8841f23d415a4998743515c56f980f654 | refs/heads/master | 2021-11-19T02:37:26.311426 | 2021-09-08T11:51:24 | 2021-09-08T11:51:24 | 7,826,404 | 11 | 6 | NOASSERTION | 2021-09-08T11:51:25 | 2013-01-25T19:03:09 | C++ | UTF-8 | C++ | false | false | 3,753 | cpp | tstCartesianSpatialCoordinateConversionPolicy.cpp | //---------------------------------------------------------------------------//
//!
//! \file tstCartesianSpatialCoordinateConversionPolicy.cpp
//! \author Alex Robinson
//! \brief Cartesian spatial coordinate conversion policy unit tests
//!
//------------------------------------------------------------------------... |
8001002d9d0d09cae206221fee925100c4bfb89d | 41c1b5fca1bc80885caa8a0459346a5a2f5a2234 | /hype/Circle.h | 2b304ddeef747e6127ee189fb5c385c0e2fd7adb | [] | no_license | kylestew/uHype | 6fbfbeee31ce1178839a865693a4a84c9708901e | 9c1e0de43c63692ec376350f69bc95d5815c53e9 | refs/heads/master | 2021-01-12T12:16:23.204815 | 2017-05-27T18:13:00 | 2017-05-27T18:13:00 | 72,397,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 237 | h | Circle.h | class Circle : public Drawable {
public:
Circle(float x, float y, float rad)
: Shape(x, y), rad{rad} {}
void draw() const override {
cout << "Circle: (" << x << ", " << y << ", " << rad << ")\n";
}
private:
float rad;
};
|
866a3d688e58fd5f30ee3396588dabdcde815ec8 | 1df7f7bcc635b69571fc861b77540fea91151b0e | /src/System/Misc/tm_configure.hpp | fc6b5d26444c847f3fdad1d18147a5af3cf4ca65 | [] | no_license | texmacs/TimScheme | a04e48fb7e47ff489cd7809bf4ca3e73f27494e2 | e7ab2b52ac00b60942d07e7a250cd4e0ef2b7407 | refs/heads/master | 2020-03-21T16:26:04.323859 | 2019-04-24T09:27:47 | 2019-04-24T09:27:47 | 138,769,436 | 7 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,270 | hpp | tm_configure.hpp |
/******************************************************************************
* MODULE : tm_configure.gen.in or tm_configure.gen.h
* DESCRIPTION: Defines system dependent macros (using autoconf)
* COPYRIGHT : (C) 1999 Joris van der Hoeven
************************************************************************... |
300a7e27c472bf9b36dffd055302a83a16dde6b1 | 0188ab147c4b0a02c7e2261af704c7fc93ece563 | /src/conf.h | 4cf7bdbc3ded00d5cf96921d27f5bb4d35d73565 | [] | no_license | soladj/ESP8266-NODEMCUV3-PIO-home-main-board | c1c4a2b905253b80dc646b4f0355f412f9b8ba90 | 9aaad20748689a6a2603e83e508a1c6cd2a7fb3a | refs/heads/main | 2023-08-24T06:08:42.300010 | 2021-11-06T08:44:51 | 2021-11-06T08:44:51 | 410,191,056 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,919 | h | conf.h | #include <iostream>
#include "data.h"
#define DEVICE_ZONE 0 //0...15
#define DEVICE_ZONE_CHAR "0"
#define CODE_LENGTH 24
#define MQTT_SUB_TOPIC_NUMBER 3
#define MQTT_SUB_TOPIC_STORED 2
#define MQTT_PUB_TOPIC_NUMBER 3
#define MQTT_FLOAT_TOPIC_NUMBER 2
#define MQTT_ALARM_VAR_NUMBER 1
#define MQTT_MAIN_TOPIC "asshome"... |
c1ccc448198cdf9c80a5d8ef48a23416ed8a2c65 | bf45df9d7d28a8563bf7ed9834c6942a9bf9b4d4 | /src/yazik/testlib/yaz_test_macros.hpp | 249fd6c40d9ba5b65530b3855bc3e9b3447aa444 | [] | no_license | blockspacer/yazik | f6e612b967fbce9257f0173dd456e7b9fd8a34c5 | c63116823c670f74606da38db84b77102751ac9c | refs/heads/master | 2023-03-02T10:45:39.320608 | 2021-02-17T02:17:02 | 2021-02-17T02:17:02 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,228 | hpp | yaz_test_macros.hpp | #pragma once
#include <yazik/utility/result.hpp>
#include <yazik/concurrency/future_result.hpp>
#include <yazik/concurrency/scheduler.hpp>
#include <yazik/utility/macro.hpp>
#define CATCH_CONFIG_PREFIX_ALL
#include <catch2/catch_test_macros.hpp>
#define TEST_CASE CATCH_TEST_CASE
#define REQUIRE CATCH_REQUIRE
#define... |
f3a8478b6d266828a3bd7488c8b0dbe768af2972 | 28ed617c67ac84b98dd28d94f063a195c6a10b3e | /ldd/cage/internal/.svn/text-base/keeper_impl.h.svn-base | 16b2826b57538a91276cb1681fa0a72dc58bdaac | [] | no_license | Strongc/EasyLib | b5ec5bae21b4a92b7deee646d1bfe3505aa2bafc | d8c406964ad21f0bfff99b2fe44134b32809f068 | refs/heads/master | 2021-01-22T01:28:48.631884 | 2015-12-29T11:46:53 | 2015-12-29T11:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,757 | keeper_impl.h.svn-base | #ifndef LDD_CAGE_ZOOKEEPER_IMPL_H_
#define LDD_CAGE_ZOOKEEPER_IMPL_H_
#include <boost/noncopyable.hpp>
#include <vector>
#include <map>
#include "ldd/cage/keeper.h"
#include "functions.h"
namespace ldd {
namespace cage {
typedef std::vector<NodeWatcher> NodeWatchers;
typedef std::vector<ChildWatcher> ChildWatchers;
... | |
e643587c17c1e49c6c2ae35710991c55142549f1 | 9ceb525db220cedb7020fee25b7949b9a751da74 | /lab5.5_Parallelogram.cpp | 4d1d3d0618982c2eee320256ee0880251319fe31 | [] | no_license | mahatosourav00/cs141 | 5916209d6bdfbd3c39b282d0b6f3175e82facf78 | f43247c1d49f28655f7dffcbcc600b581e9dda3d | refs/heads/master | 2020-03-25T10:59:54.094212 | 2018-11-19T08:23:28 | 2018-11-19T08:23:28 | 143,714,897 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 334 | cpp | lab5.5_Parallelogram.cpp | #include<iostream>
using namespace std;
int main(){
//draw rhombus
int h, w;
cin>>h;
cin>>w;
cout<<"enter height and width of the rhombus"<<endl;
for(int i=0; i<h; i++){
//draw spaces
for(int j=0; j<(w-i); j++){
cout<<" ";
}
//draw stars
for(int j=0; j<w; j++){
cout<<"*";
}
cout<<endl;
}
//don... |
bf49491b022bc1160451cc069f9a47d821846c0d | e942cb8a3b390a42967fbbb9239db7e01895405a | /C++Implementation/Treblebcross UVa 10561.cpp | 3c416a7e96ad687b7229e810ae2e4983481f52b0 | [] | no_license | TCtobychen/IntrotoAlgorithm | 53cbd1b24d13b715d642b074d6cb219cca128729 | 36cf607edad1d2163e115b78b8dad8f7c7facfbc | refs/heads/master | 2021-09-14T10:45:34.301997 | 2018-05-12T07:51:55 | 2018-05-12T07:51:55 | 112,214,038 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | Treblebcross UVa 10561.cpp | //
// Treblebcross UVa 10561.cpp
// Learning C++
//
// Created by 杨 on 2017/7/29.
// Copyright © 2017年 杨. All rights reserved.
//
/*#include <iostream>
using namespace std;
int a[100];
int n;
int main()
{
cin >> n;
char c;
for(int i=0;i<n;i++)
{
cin >> c;
if(c=='.')
a[... |
4be384b1a189a7e11444e538e45a54969ebbc451 | 7c3d724d136a7e08e9ea78aa934daab85da1bc9b | /Øving8/Øving8/CourseCatalog.cpp | 2bb202bf5a8be9b05a955da15f6bc3515be059b8 | [] | no_license | TheLarsinator/NTNU | 3836eaed64a506d81cc67fca0f29267d74671deb | d7155ec499ecf98f90c69e8c21b45a807480c125 | refs/heads/master | 2021-01-10T15:11:41.714500 | 2017-01-15T21:18:41 | 2017-01-15T21:18:41 | 52,882,016 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 806 | cpp | CourseCatalog.cpp | #include "stdafx.h"
#include <iostream>
#include <Windows.h>
#include <cmath>
#include <ctime>
#include <string>
#include <map>
#include "CourseCatalog.h"
CC::CC()
{
}
string CC::get(string subject)
{
return catalog[subject];
}
void CC::set(string subject, string value)
{
catalog[subject] = value;
}
void CC::era... |
af2a327ce2be5be542bb677dd65685412d008ecf | 315450354c6ddeda9269ffa4c96750783963d629 | /CMSSW_7_0_4/src/TotemRPValidation/RPAngleValidation/interface/RPAngleValidation.h | e9b8edee0d51bf5fe104b5915616eb56f9892324 | [] | no_license | elizamelo/CMSTOTEMSim | e5928d49edb32cbfeae0aedfcf7bd3131211627e | b415e0ff0dad101be5e5de1def59c5894d7ca3e8 | refs/heads/master | 2021-05-01T01:31:38.139992 | 2017-09-12T17:07:12 | 2017-09-12T17:07:12 | 76,041,270 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,195 | h | RPAngleValidation.h | #ifndef TotemRPValidation_RPAngleValidation_RPAngleValidation_h
#define TotemRPValidation_RPAngleValidation_RPAngleValidation_h
#include <boost/shared_ptr.hpp>
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "TotemCondFormats/BeamOpticsParamsObjects/interface/BeamOpticsParams.h"
#include "RecoTotemRP/RPRec... |
40b673b6badfd5bcde7dce973dd71096e5489a2d | bb910965169bfbb1fd36753fd0209e77cabffb05 | /examples/openmp/deque.cpp | 0725bbfbf2bf48c777214eff74740a78c5f2dbba | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | stotko/stdgpu | 8659aeacf82c807c1162e796d09a422c23a431bf | e085756a2cc5f99a6610301211ffc12b44aa2f65 | refs/heads/master | 2023-09-02T01:23:10.271531 | 2023-08-28T13:36:02 | 2023-08-28T13:56:17 | 202,712,923 | 1,012 | 75 | Apache-2.0 | 2023-09-13T13:54:36 | 2019-08-16T11:04:33 | C++ | UTF-8 | C++ | false | false | 2,893 | cpp | deque.cpp | /*
* Copyright 2020 Patrick Stotko
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
cafca2847e9b73c5cc429f90bac1c77a98e4d9d9 | f1b4399af130b02b13a4d071ff832ed28ede151c | /src/transport.cpp | 75c86088c3db786294083c37d1dacc2591ff6c6c | [
"BSD-3-Clause"
] | permissive | KDE/kmail-account-wizard | 220a1ab089a744cab1592c3620ccf6b7f8535370 | 81f01fa5957b5df6c90c49cd38230e3121a85bcb | refs/heads/master | 2023-08-17T09:59:37.859362 | 2023-08-08T01:52:18 | 2023-08-08T01:52:18 | 66,907,965 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 5,044 | cpp | transport.cpp | /*
SPDX-FileCopyrightText: 2009 Volker Krause <vkrause@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
#include "transport.h"
#include <MailTransport/TransportManager>
#include <KLocalizedString>
#define TABLE_SIZE x
template<typename T> struct StringValueTable {
const char *name;
using val... |
b4c3b1eeb1cac0ee4cdcf4ab0ad3d5eef1327866 | 8908e62a428ffaa2a1390f54f956b9f23eb83d94 | /oil_volume_table.cpp | 215616028672005aef650491eab99d1225c682c6 | [] | no_license | Hello-lee-cell/anysafeplat_12 | fe3d1a239e8de2ff51f077fdea0f96555fedeee4 | 9da9bba5bda53ca62bdd2c1445a8baded29e402c | refs/heads/master | 2022-12-17T09:06:06.334863 | 2020-09-11T02:30:46 | 2020-09-11T02:30:46 | 294,568,292 | 0 | 0 | null | 2020-09-11T06:31:05 | 2020-09-11T02:00:32 | C++ | UTF-8 | C++ | false | false | 4,854 | cpp | oil_volume_table.cpp | #include"config.h"
//罐长 280cm
float OilTank_50[300] = {
0 ,0.0054,0.0381,0.0805,0.1305,0.1872,0.2497,0.3176,0.3903,0.4677,0.5493,0.6349,0.7244, 0.8174, 0.9140, 1.0139, 1.1170, 1.2231, 1.3323, 1.4442, 1.5590,
1.6764,1.7964,1.9190,2.0440,2.1713,2.3010,2.4330,2.5672,2.7035,2.8419,2.9823,3.1247, 3.2691, 3.4154... |
4066203ef1efb03801eb5858ebfd1fc286e4c7cf | 862c2227203b744bfc06cc912bdbe04972336fc7 | /leetcode/medium/comb_sum_1.cpp | 263831360eed11502f3f4b0560c5620794fad176 | [] | no_license | sarckk/codeforces-solutions | 54e558c90d08e22143125d688e4037eb5691f1bf | 2d6bbe33bb97981b061ef4d0cee4cdc22cefd8be | refs/heads/master | 2023-07-03T12:36:36.262593 | 2021-08-05T21:49:24 | 2021-08-05T21:49:24 | 374,132,833 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 853 | cpp | comb_sum_1.cpp | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<vector<int>> combinationSum(vector<int>& candidates, int target) {
vector<vector<int>> res;
vector<int> current;
if(!candidates.size()) return res;
sort(candidates.begin(), candidates.end());
rec(c... |
6a556aa2fa1feaf9c2ef9b825abf63b2bffdaa05 | 9351f522eb6e1538430d0e1bcf05bba2a6531f35 | /hellowCPP/3stage/SumNumber_11720.cpp | eaa3a34a357b6a1e8f172c47a2a9763b78faf470 | [] | no_license | BoGyuPark/vscode_BOJ | 98711488b560f2d3b930a70f2482ee273f15b078 | bd7b707d7c7f269232618c96c682edd5a8611f70 | refs/heads/master | 2020-03-26T06:17:18.026452 | 2018-08-29T12:19:42 | 2018-08-29T12:19:42 | 144,597,979 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 248 | cpp | SumNumber_11720.cpp | //https://www.acmicpc.net/problem/11720
#include<iostream>
using namespace std;
main()
{
int N;
cin>>N;
int sum=0;
char num[101]={0,};
cin>>num;
for(int i=0; i<N; i++){
sum += num[i]-'0';
}
cout<<sum<<endl;
} |
5328d1334244013893c077938ee67b0f630ce4b6 | f015d2b8264dfd2b45349a7a421dbec5375d462f | /test/12.cpp | 2f83bbc660d0cc449432a3590b520b98d31160d6 | [] | no_license | Request2609/codeOfPractice | b8ab9f36a2e7ebd435645868f71ede0bd9875056 | 5226ff6616272f83423780209cb2dfe43c77527a | refs/heads/master | 2021-07-12T17:25:28.637166 | 2020-09-20T14:44:20 | 2020-09-20T14:44:20 | 199,008,203 | 5 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,473 | cpp | 12.cpp | #include <iostream>
#include <vector>
#include <map>
using namespace std ;
class Solution {
public:
int removeDuplicates(vector<int>& nums) {
map<int, int>ls ;
int len = nums.size() ;
int l = 0 ;
int r = l ;
for(int i=0; i<len; i++) {
//要是当前元素是重复元素,则记录当... |
a2622366c510e4466578f16cc06997b812fc8f9b | 4e40487eb963985c55a8b4a0518d0d4612e5291e | /reef-env/ROCm-OpenCL-Runtime/amdocl/cl_d3d10.cpp | 0c0dcdd5b8b8736a5f2433517f640f1347912f45 | [
"Apache-2.0",
"MIT"
] | permissive | SJTU-IPADS/reef-artifacts | 2858191efa1ce6423f2a912bfb9758af96e62ea7 | 8750974f2d6655525a2cc317bf2471914fe68dab | refs/heads/master | 2023-04-06T16:48:31.807517 | 2022-05-27T05:57:37 | 2022-05-27T05:57:37 | 473,072,609 | 36 | 6 | null | null | null | null | UTF-8 | C++ | false | false | 48,186 | cpp | cl_d3d10.cpp | /* Copyright (c) 2009-present Advanced Micro Devices, Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, me... |
0c7f556c7255cd823ddca50216825455829c1ec1 | 2d5a7e8f3454b8577442a7d058768ea3086769ee | /example/ex23-master/examples/reductionExample.cpp | c6e2823897dd7c4c01df589508283953a0af292c | [] | no_license | LoveHRTF/ENGN-2912B | 3946517c604e360f88c17cff93e353628c22fa6e | 6650fbe5829a90c1ba790f0a625cdb07e76ebc4b | refs/heads/master | 2020-07-31T00:33:15.036055 | 2019-09-23T18:12:27 | 2019-09-23T18:12:27 | 210,418,342 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 421 | cpp | reductionExample.cpp | #include <omp.h>
#include <iostream>
#include <string>
// compile using: g++ reductionExample.cpp -fopenmp -o reductionExample
int factorial (int number)
{
int fac = 1;
#pragma omp parallel for reduction(* : fac) num_threads(2)
for(int n = 2; n <= number; n++)
{
fac *= n;
}
return... |
eef0d6fb7f1afa9e23fccac701556687eff56d1f | a06d433b2d23a02e10b509722099b1c87f358e59 | /4367 出现次数超过一半的数字/Latest Submission/main.cpp | 1f3bca6ceae0bd76c0346dcba274ed212cf61239 | [] | no_license | pangyzh/algorithm | 31d53b2eb3a9a9791b428f3fd393fbace2943a08 | b3406e832b720d9c4874a83c0095adb8d3319137 | refs/heads/master | 2020-04-30T09:16:15.559485 | 2019-03-20T13:40:20 | 2019-03-20T13:40:20 | 176,742,283 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 492 | cpp | main.cpp |
#include<stdio.h>
#include<string.h>
int arr[100000];
int main()
{
int t;
scanf("%d",&t);
while(t--)
{
memset(arr,0,sizeof(arr));
int n;
int count=0;
char c;
scanf("%d",&n);
arr[n]++;
count++;
while((scanf("%c",&c))&&c!='\n')
{
scanf("%d",&n);
arr[n]++;
count++;
}
int flag=0;
... |
c3ad7a786bd0aa40dcf3cc65133d1f6bf585f536 | 44227276cdce0d15ee0cdd19a9f38a37b9da33d7 | /arcane/src/arcane/std/MetisWrapper.cc | eb166fa9c9c9ae26538139d8c018fd75a149779a | [
"Apache-2.0",
"LGPL-2.1-or-later"
] | permissive | arcaneframework/framework | 7d0050f0bbceb8cc43c60168ba74fff0d605e9a3 | 813cfb5eda537ce2073f32b1a9de6b08529c5ab6 | refs/heads/main | 2023-08-19T05:44:47.722046 | 2023-08-11T16:22:12 | 2023-08-11T16:22:12 | 357,932,008 | 31 | 21 | Apache-2.0 | 2023-09-14T16:42:12 | 2021-04-14T14:21:07 | C++ | UTF-8 | C++ | false | false | 15,496 | cc | MetisWrapper.cc | // -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*-
//-----------------------------------------------------------------------------
// Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com)
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: Apache-2... |
221844ed024e5ee185b0e0c544a2dfb934b9d20d | 30596203fbd1a52cdabb368c6ce8e5230d4f4a04 | /ConcurrentAsyncQueueTests/ConcurrentAsyncQueuePush.cpp | ff2b1ccba547903bf1c3704f41ee1b4fe3cb09b6 | [] | no_license | LeGnours/Cpp_HandsOn | 5edde874d168a22b9b7c8491e2b5643e6b5bce66 | f1de659d1fdcb7ae827ed57195a7227753c9d746 | refs/heads/master | 2020-03-16T03:42:55.036097 | 2018-05-09T22:45:29 | 2018-05-09T22:45:29 | 132,493,718 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,597 | cpp | ConcurrentAsyncQueuePush.cpp | #include "stdafx.h"
#include "ConcurrentAsyncQueuePush.h"
#include "ConcurrentAsyncQueueTestHelper.h"
using namespace std::chrono_literals;
INSTANTIATE_TEST_CASE_P(ConcurrentAsyncQueuePushParametized,
ConcurrentAsyncQueuePush,
testing::Combine(testing::Values(1, 3, 5, 7, 17, 23, 31),
testing::Values(1, 3, 5, 7, ... |
be354e3ad1524dba07ea2d4d0639a3b7db8d2585 | 88a104c6f47802d19f1d8c8816c3b14601b46df8 | /Source/ProceduralMeshUtility/Private/Line/Simplify/ThirdParty/Visvalingam/PMULineSimplifyVisvalingamHeap.h | 6598f1109889aeb45b0ccd44dd82fa8c745baa1d | [
"MIT"
] | permissive | nwiswakarma/ProceduralMeshUtility | 28f64648865be95a74a82ca95a24eba1df7ade16 | 5cd31874be74335ffb6df6f424364994a53edc32 | refs/heads/master | 2020-04-15T06:17:09.310057 | 2019-04-03T20:50:44 | 2019-04-03T20:50:44 | 164,455,098 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 7,073 | h | PMULineSimplifyVisvalingamHeap.h | // Copyright (c) 2013, Mathieu Courtemanche
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this
// list o... |
41db9e1a9d6371198d1d5c1790e857d7e4bc5210 | db0d88743c5b813a45d682e9f868d96cd62240d3 | /ClassLoaderBytesGenerator/zip_file.cc | 8cd61375a02efff8e42d7412b33fab4b1dbfc4f2 | [] | no_license | Erouax/wape-launcher | 42e6d3bb183fac62dbba5a027e4a0481532c399a | 2e3a4991d1f1da453a7235534da8ad4d1992e7a6 | refs/heads/master | 2020-03-21T19:36:45.280224 | 2017-07-07T18:40:01 | 2017-07-07T18:40:01 | 138,959,647 | 1 | 0 | null | 2018-06-28T03:06:05 | 2018-06-28T03:06:05 | null | UTF-8 | C++ | false | false | 3,059 | cc | zip_file.cc | #include "zip_file.h"
#include <fstream>
#include <cstring>
#define NOMINMAX
#include <Windows.h>
#include "miniz.h"
ZipFile::ZipFile() : archive_(new mz_zip_archive()) {
Reset();
}
ZipFile::ZipFile(const std::wstring& filename) : ZipFile() {
Load(filename);
}
ZipFile::ZipFile(std::basic_istream<uint8_t>* str... |
6b550613723eb935f1c6c76521fa00a0989a2dfb | a01dc7d5234c9dee4b237f2976f48e4d04e86c53 | /source/Listener.cpp | a08cb60a05aa1ab1ade340fad536ff6eb241c54b | [
"MIT"
] | permissive | Johnsonys/AppServer | ebe8996eccb26747446f73f017feb4a14645c383 | 4c3eee0f99b38e46e676f8b0fc3012a929d4e4e2 | refs/heads/master | 2023-05-05T22:12:49.351266 | 2021-05-28T21:36:11 | 2021-05-28T21:36:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,828 | cpp | Listener.cpp | #include "Listener.h"
#include "LogData.h"
#include "WebServer.h"
#include "Cache.h"
#include "LogClient.h"
#include "WebServer.h"
#include <jde/Str.h>
#define var const auto
#define _logClient Logging::LogClient::Instance()
#define _webServer (*Web::MyServer::GetInstance())
#define _webLevelUint static_cast<uint>((J... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.