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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b92a38327b331c2db1b029747cd566c977d3a074 | 98641c8825d8f01888aef5396a14b8583cef657d | /MaxOfN/MaxOfN/main.cpp | c96a9f317c784afc18f448c07bfc77d7c58b9d40 | [] | no_license | EvilPluto/Algorithm | b52c781aa62dfd9c0a521af1bd97c938b69611c3 | 1cac79299c672613874af02670bb3fd19ab2f18a | refs/heads/master | 2021-01-23T04:34:19.057906 | 2017-04-30T01:31:20 | 2017-04-30T01:31:20 | 86,210,729 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,071 | cpp | main.cpp | //
// main.cpp
// MaxOfN
//
// Created by 修海锟 on 2017/3/5.
// Copyright © 2017年 修海锟. All rights reserved.
//
#include <iostream>
using namespace std;
bool Increment(char *number) {
bool isOverflow = false;
int nLength = (int)strlen(number);
int nTakeOver = 0;
for (int i=nLength - 1; i>=0; i--... |
79518c9302db5ff1e85e5e871ce8ed13b1b986c5 | 3b38bc90f9865f2798033c9058283a730b878839 | /db_common/db_client.h | 1656158930e9db0e5e1746dec991cf2f28cf05ca | [] | no_license | touseit/db_service | 33387c0057485493c0a9df339cae15ce7498c4a4 | 8f760d710c4c83be82233ec1e55547bc57001fd7 | refs/heads/master | 2020-12-30T14:46:22.681372 | 2017-06-10T04:32:47 | 2017-06-10T04:32:47 | 91,091,293 | 0 | 1 | null | 2017-05-12T12:53:00 | 2017-05-12T12:53:00 | null | UTF-8 | C++ | false | false | 1,633 | h | db_client.h | #pragma once
#include <stdint.h>
#include <string>
#include <vector>
#include "google/protobuf/message.h"
#include "db_proxy.h"
#include "db_variant.h"
namespace db
{
class CDbClient
{
public:
CDbClient(CDbProxy* pDbProxy);
virtual ~CDbClient();
bool select(uint64_t nID, const std::stri... |
84ca710308e751bf34129bb6330981609a1f797e | 28dc26683526f97a93557e58def30abb5fcdb2ba | /BattleTank/Source/BattleTank/Private/TankAIController.cpp | a7e575196f55cb5329beda5d4c21ab88e2f6be9d | [] | no_license | geotype/04_BattleTank | 9a34361a59806fbe6b4cce0767575e58b28a0600 | 37151ff9e574c368145d0feeb6538389bf63e95a | refs/heads/master | 2021-09-01T04:44:51.515866 | 2017-12-24T22:02:56 | 2017-12-24T22:02:56 | 112,867,670 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,205 | cpp | TankAIController.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "TankAIController.h"
#include "Runtime/Engine/Classes/GameFramework/Actor.h"
#include "Runtime/Engine/Classes/Engine/World.h"
#include "Tank.h"
void ATankAIController::BeginPlay()
{
Super::BeginPlay();
auto AIControlledTank = C... |
9e2186560980060ef21de167346e1abb22ac88f8 | c420961cf4a9cfd5bc27380caff7938aa12d2600 | /ICG-code/far/src/libs/scene/sampling.h | 682a72971598f64b6298e0d1372eb0dd940712cc | [] | no_license | ema0j/cs482-icg-pj | a7b2e55563279b9234168d1bd2eb63d62ac2776b | 1e2f7e3837227069690c639abd628bec1b5b8061 | refs/heads/master | 2021-01-10T12:34:05.898496 | 2016-01-10T14:55:14 | 2016-01-10T14:55:14 | 49,371,122 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,854 | h | sampling.h | #ifndef _SAMPLING_H_
#define _SAMPLING_H_
#include "smath.h"
#include <misc/arrays.h>
#define SAMPLINGEPSILON 0.0000001f
class Sampling {
public:
static void ConcentricDisk(const Vec2f &s, float &x, float &y) {
float r, theta;
float sx = 2*s[0] - 1;
float sy = 2*s[1] - 1;
if(sx >= -sy){
if(sx > sy){
... |
ab1b8239467385048858cd7ba92f5c957e701bfe | 67a1a8e0d3f1abefd2c04e734a012a7850909c14 | /src/communication/writer_thread.cpp | 6b745d613d62de39dafba749f83a2e2ba2ec5ac1 | [
"MIT"
] | permissive | OSURoboticsClub/aerial_control | 38e537016d9415ebbbfd82b78e6575e078064918 | 7139d8a00a4803e9918bb361f7a02cc48cd1c444 | refs/heads/master | 2021-01-17T09:15:38.852752 | 2016-06-04T02:31:19 | 2016-06-04T02:31:19 | 25,657,953 | 1 | 4 | null | 2016-04-28T05:50:56 | 2014-10-23T21:06:11 | C++ | UTF-8 | C++ | false | false | 530 | cpp | writer_thread.cpp | #include "communication/writer_thread.hpp"
#include "hal.h"
WriterThread::WriterThread(chibios_rt::BaseSequentialStreamInterface& stream)
: stream(stream) {
}
msg_t WriterThread::main() {
while(true) {
// Check if there is data in the buffer that has not yet been written.
while(bottom != top) {
str... |
9a3fd3ec634581f29d2a1d4983bc2486e7181965 | 7da24497832d8afafefa36db391d644e7fceef40 | /ABC/174_E_Logs.cpp | c241f3f0094f076a185877e3fdb6df0684c18971 | [] | no_license | shugo256/AtCoder | 864e70a54cb5cb8a3dddd038cb425a96aacb54bf | 57c81746c83b11bd1373cfff8a0358af3ba67f65 | refs/heads/master | 2021-06-12T14:46:54.073135 | 2021-04-25T08:09:15 | 2021-04-25T08:09:15 | 180,904,626 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 597 | cpp | 174_E_Logs.cpp | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
using ll = long long;
using namespace std;
int main() {
int n;
ll k;
cin >> n >> k;
ll best = 0, a[n];
for (auto &ai:a) {
cin >> ai;
best = max(best, ai);
}
ll l = 0, r = best;
... |
da201a9d01bf4e6f1d72751122eab663fd2a7f10 | 25297d20127cfd61cb0a8006d5e45a3b3bcf3e36 | /homework/assignment_4/Savitch_9thEd_ch4_prob2_ModifyProb1_twoCar/main.cpp | e86086c0f0ecbd3f50c7f84a5fc5d46eb2824f23 | [] | no_license | pockymonsta/OmaiyeLeah_CIS5_42641 | 0e40e17529ddbaa2622ae5f7beb80db36029690c | d650b7987692f1751a0d49d0a0ae72736c6a4fac | refs/heads/master | 2020-04-15T00:13:27.907747 | 2017-06-02T22:41:26 | 2017-06-02T22:41:26 | 83,382,367 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,815 | cpp | main.cpp | /*
* File: main.cpp
* Author: Leah Omaiye
* Created on March 30, 2017 1:12 PM
* Purpose: Convert liters to gallons for 2 cars
*/
//System Libraries
#include <iostream> //Input - Output Library
using namespace std; //Name-space under which system libraries exist
//User Libraries
//Global Constants
const dou... |
0b0a39415b69cff97cc1fd740d58199a2d6c1250 | 98b1e51f55fe389379b0db00365402359309186a | /homework_3/case_2/56/phi | 07d15e7776d54134a747ca46effc4cbc2ad4508c | [] | no_license | taddyb/597-009 | f14c0e75a03ae2fd741905c4c0bc92440d10adda | 5f67e7d3910e3ec115fb3f3dc89a21dcc9a1b927 | refs/heads/main | 2023-01-23T08:14:47.028429 | 2020-12-03T13:24:27 | 2020-12-03T13:24:27 | 311,713,551 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,050 | phi | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 8
\\/ M anipulation |
\*-------... | |
0f5a685e858a56edcb55e34c29573892bb9f9673 | 61b774358c73aa15211b1efa08d839d385fd1023 | /Player Loadouts/Raw Loadouts/WIP_Toas_MidnightOil_blufor/config.hpp | fc0a15519957fe6b03b58499d4e2828bf565fe9a | [] | no_license | ARCOMM/Loadouts | da9f50b44c92dcd0f4508033f0b4cfd8400ab4f9 | 26b85c1b80215edc08bb4f0d228011d464efad36 | refs/heads/loadout_rework | 2021-05-04T01:05:10.982434 | 2020-02-10T10:39:46 | 2020-02-10T10:39:46 | 71,139,986 | 2 | 4 | null | 2016-12-23T19:44:53 | 2016-10-17T13:11:22 | SQF | UTF-8 | C++ | false | false | 16,043 | hpp | config.hpp | class CfgARCMF {
/*
-----------------------------------------------------------------------------------------------------------------
GENERAL CONFIGURATION
Description: This is the section where you can define general settings for the mission.
--------------------------------------------------------... |
993d7c3bfdacff1995c2a584dbfa4293a1950af8 | 73f3fae4e8d7b0f6fc0c6720bbaf64d8fb54e7be | /tests/testdispatch.cpp | 615e04314d69d067f53d22a8892705c3e7de4fbb | [
"BSL-1.0",
"MIT"
] | permissive | tsurai/kern | 499a2a014d3c98e924e43e3bc96a366eda86b40a | 18d0ab3c2786a090b418d55daf0115f2335a04d9 | refs/heads/master | 2020-03-20T22:18:07.739209 | 2019-03-25T09:04:11 | 2019-03-25T09:04:11 | 137,790,462 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,432 | cpp | testdispatch.cpp | #include <cstdio>
#include <cstring>
#include <stdio.h>
#include "catch.hpp"
#include "kern.h"
#include "utils.h"
using namespace kern;
const char *res_trace = "[trace] foobar";
const char *res_debug = "[debug] foobar";
const char *res_info = "[info] foobar";
const char *res_warning = "[warning] foobar";
const char ... |
7c2dad48b289589ef0f876f99ed2bfc0ce8c2d2d | bb8dfd19165f349d87d3b558050bc377d4da6449 | /配套光盘/例题/0x50 动态规划/0x56 状态压缩DP/炮兵阵地/POJ1185_炮兵阵地_其他解法.cpp | 68bda67a40bf453d56950bb5255dd38673046ba6 | [] | no_license | lydrainbowcat/tedukuri | 4c3358e2e4d7f8e07152a79981535f0ead3372e7 | b0471bb0bcf6216a45b818d6be2288e23a02347c | refs/heads/master | 2023-08-17T14:02:02.847399 | 2023-08-07T23:25:35 | 2023-08-07T23:25:35 | 125,682,894 | 2,222 | 706 | null | 2023-08-07T23:25:37 | 2018-03-18T01:24:42 | Roff | UTF-8 | C++ | false | false | 1,052 | cpp | POJ1185_炮兵阵地_其他解法.cpp | //Author:XuHt
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 106, M = 12, X = 60000;
int n, m, f[N][X];
int p[] = {0,1,3,9,27,81,243,729,2187,6561,19683,59049,177147};
char s[N][M];
void dp(int x, int y, int now, int nxt, int cnt) {
if (y > m) {
if (... |
1c3ef5766669a1d738d1e39729cd72c92406ca1a | 5444190e607189feab7eb8a606ed7cda4716a814 | /auxlib/standalone_std/memory/static_alloc.h | 97b5a6a153dc49e988cb8b0929e2b61d815ec991 | [
"MIT"
] | permissive | stmobo/Kraftwerk | f3bc2e278621db41f021b66e7deafc7d73423fcb | fb4ba74ce48b5c9941b391ad3c67c3461e0cae2d | refs/heads/master | 2020-05-30T09:29:19.066380 | 2016-09-12T00:21:51 | 2016-09-12T00:21:51 | 42,925,446 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 367 | h | static_alloc.h | // Static pool-based memory allocator
// for use when the usual memory allocation methods are unavailable
// (for example, during early boot and memory init)
template< size_t PoolSize >
class static_mem_pool {
uint8_t pool[PoolSize];
void* alloc( size_t num_bytes );
void free( void* ptr );
};
void* stati... |
8a94304a313e13a14e3d678936568611684fd245 | c804e678a44cafc47088dded86f4493a2401ed24 | /Problem_Category.cpp | 7847053d9f6159800c1ad4eb6b57e683f9c6f466 | [] | no_license | siddhantgupta385/leetcode | e300c1342a4fdb587564da476bca0b55a362320a | daadf7315dada6169dd4cf2094cbeb61485f7a13 | refs/heads/main | 2023-08-26T18:01:56.132614 | 2021-11-10T09:17:21 | 2021-11-10T09:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 473 | cpp | Problem_Category.cpp | #include <bits/stdc++.h>
using namespace std;
#define long long int
void solve()
{
int n;
cin >> n;
// vector<int> ar(n);
// for (auto c : ar)
// {
// int x;
// cin >> x;
// ar.push_back(x);
// }
if(n<100 && n>=1) cout<<"EASY"<<endl;
else if(n>=100 && n<200) cout... |
d9fd4f3a942db98fd5d1a5e1afaf22278c43ba90 | 7b3b44c8dfa18d13709c69a50a4a006c1f4e01b3 | /ContactInfo/ContactInfo/ContactInfo.cpp | fb096b10d3cc3db91d219750231d2bac2f546be5 | [] | no_license | Blitzdude/ContactInformation_VS_project | b53a745af8f8c12734e6e7ddf1ddef9ed0d8e03c | c6992bea2f011ec5ec9849b1c3e1669e70d55da0 | refs/heads/master | 2021-01-09T05:42:53.550320 | 2017-02-05T15:50:06 | 2017-02-05T15:50:06 | 80,817,890 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 379 | cpp | ContactInfo.cpp | #include "ContactInfo.h"
#include <map>
#include <iostream>
ContactInfo::ContactInfo
(std::string name, std::string phoneNum, std::string email) :
_name(name), _phoneNum(phoneNum), _email(email) {}
ContactInfo::~ContactInfo() {}
void ContactInfo::print() {
std::cout << "name: " << _name << ", Phone Number: "
... |
ecb2c0ae9fcd4372dc4bd1ef025daae394776a1c | db8a418d28a6092afa09f6bc8fcf810e0464ab8c | /Object.h | dfd6e5539f6600c53561f08bc8cb2c0b4d6203e0 | [] | no_license | mbeom/AtomicCrops | 08b0724e9e7a366d12f1a3d41d5fbc725dbda798 | 986bf195d16ae3cd76408687d573b023e6122cdb | refs/heads/master | 2023-08-15T03:50:41.563559 | 2021-10-05T01:50:36 | 2021-10-05T01:50:36 | 406,583,529 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,186 | h | Object.h | #pragma once
#include "gameNode.h"
enum class object_type
{
WELL,
FORGE,
FLAG,
PLANE,
NPC,
COPTER,
TYPE_NUM
};
class Object : public gameNode
{
protected:
float count;
float _x, _y;
float _playerX, _playerY;
float width, height;
int currentFrameX, currentFrameY;
int loopX, loopY;
image* _img;
image* ... |
cc6321719b3424e2e7b3a336f55fab771d84f0df | f3242cb59c55e8b18db39ed7c7897bbab0ded90d | /Object Detection/people.h | e8483f36ab5dc0dded32d1474fe4da9d75eaaf9a | [
"Apache-2.0"
] | permissive | MohammedRashad/FPGA-Based-Driver-Assistant | d83c03e9481c337fcc5acadfded4832943a18339 | 67a19ec525ec741b29968164eb77dbeb469f69db | refs/heads/master | 2023-01-11T22:21:52.222990 | 2020-11-21T15:28:19 | 2020-11-21T15:28:19 | 270,260,235 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,649 | h | people.h | #include<iostream>
#include<string>
#include<vector>
#include<opencv2/core/core.hpp>
#include<opencv2/imgproc/imgproc.hpp>
#include<opencv2/highgui/highgui.hpp>
#include<opencv2/objdetect/objdetect.hpp>
using namespace cv;
using namespace std;
class people{
private:
public:
Mat src1, src2;
... |
ece3f7b6cf035ed441b1e509b07f4c3363adb529 | 625a46bcc34374650f6fdb67c6bfd252e7911fc8 | /Programming/C++/x Old Versions x/AI Boostrap Project 21 08 2017/AI_Project/source/controlsScreen.cpp | f74c2000a5b5cfda0294cc68f95022e12b867417 | [
"MIT"
] | permissive | balderdash117/All-programming | bbe208c5239d7a57ddc707c87324f95c4c28fedf | 10508d4dbf38bf37c53dc85c120f52f0d056c1ec | refs/heads/master | 2021-01-23T05:25:07.432951 | 2017-09-05T10:47:32 | 2017-09-05T10:47:32 | 102,467,018 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 451 | cpp | controlsScreen.cpp | #include "controlsScreen.h"
#include <iostream>
#include "AI_ProjectApp.h"
#include "iGameState.h"
#include "GameStateManager.h"
controlsScreen::controlsScreen(AI_ProjectApp *pApp) :
iGameState(pApp)
{
}
controlsScreen::~controlsScreen()
{
}
void controlsScreen::update(float deltaTime)
{
m_app->getGameStateMana... |
92daec43b2c927b8cdddefc25d8828efe36a1e0d | f96f0af3261efaeaf77dd79c02b33a830e5da305 | /TrapSat.h | c4704dc4818a3ba77d3dfbf1abd8a1a7568da0b3 | [] | no_license | mikeaw/Trap_Sat | 7a275e239bdd0801c3a0b5482738c666b0440473 | d5b33360b526ce5725edf54d5c099185024dd53b | refs/heads/master | 2021-01-21T06:11:26.501595 | 2014-08-21T04:30:45 | 2014-08-21T04:30:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 996 | h | TrapSat.h | /*
Author: Zach Richard
Date: 05/19/2014
Project: Trap Sat: Capitol College
This library will be used to take and store pictures using the Arduino YUN and a USB webcam.
I've added a class for sensing and storing temperature values. -Mike
*/
#ifndef TrapSat_h
#define TrapSat_h
// Headers:
#include "Arduino.h"... |
75fa9a52816e3d4a6281750c2c2e1b48df4de6f3 | 6d55e0d51492c1e1df09192e1f740dade4ac35b5 | /Laboratório/Aula7/Exercicio_7/main.cpp | 1029af917071deb6a323092bdf47b378b12780fd | [
"MIT"
] | permissive | Bernardo1411/Linguagem_de_programacao_ECT_UFRN | 3c0a89b05f4ba2bf433da44470b849431a38cc6e | 7f189c13e74200b0601f7b2a2dfadab5bc79735f | refs/heads/master | 2022-06-18T13:05:39.851126 | 2020-05-08T02:48:19 | 2020-05-08T02:48:19 | 262,207,386 | 0 | 0 | null | null | null | null | ISO-8859-1 | C++ | false | false | 1,009 | cpp | main.cpp | #include <iostream>
#define TAM 500
using namespace std;
void MMQ(float X[], float Y[], int num);
int main()
{
float V1[TAM];
float V2[TAM];
int n;
cout << "Insira o tamanho dos vetores: " << endl;
cin >> n;
for(int i=0; i<=n-1; i++){
cout << "Insira o " << i << " elemento do vetor... |
aaa97cae60f5eccb37f488cde1bea9339cd0aadd | 2c3d596da726a64759c6c27d131c87c33a4e0bf4 | /Src/Qt/kwt/src/kthread.h | 6b75b1015f94fe881eccef3070718277226ebb25 | [
"MIT"
] | permissive | iclosure/smartsoft | 8edd8e5471d0e51b81fc1f6c09239cd8722000c0 | 62eaed49efd8306642b928ef4f2d96e36aca6527 | refs/heads/master | 2021-09-03T01:11:29.778290 | 2018-01-04T12:09:25 | 2018-01-04T12:09:25 | 116,255,998 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,690 | h | kthread.h | #ifndef KTHREAD_H
#define KTHREAD_H
#include <QThread>
#include "kwt_global.h"
#include "kwaitcondition.h"
//
// KThread
//
class QMutex;
class ThreadPrivate;
class KWT_EXPORT KThread : public QObject
{
Q_OBJECT
public:
explicit KThread(QObject *parent = 0);
explicit KThread(QString name, QObject *paren... |
7b84c00405706f31a2bb2aaadb6f4ee54ab8dddb | eef5b8050802ea8fc2d8717379eac9e72637e202 | /PanaEngine/fm_render/stencil_tex.cpp | 7e7ad502203cd4295783d836989562d900e7fc84 | [] | no_license | abcdls0905/PanaEngine | 0b06e649979559a59c84997ae79403a36c22c08e | 12eb3081aab93271e6de62ddde499c5a7328a7f2 | refs/heads/master | 2020-07-16T23:00:31.163752 | 2019-09-26T15:56:40 | 2019-09-26T15:56:40 | 205,886,465 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,456 | cpp | stencil_tex.cpp | #include "stencil_tex.h"
#include "render.h"
#include "../public/core_log.h"
#include "../public/core_mem.h"
#include "../visual/vis_utils.h"
CStencilTex::CStencilTex(Render* pRender,unsigned int width, unsigned int height, TEX_FORMAT format,int type)
{
m_nRenderTex = 0;
m_pRender = pRender;
m_nFormat = f... |
d60b0293c2947f0992d41087b7b090cc8b8d2984 | ac03c7a89ca6a7eb1889bf8f1c48182c0105beab | /lab/Lab 10/BT.h | f952cd1ccc508d6d9bbd7081834fdef20aa8a7fd | [] | no_license | byter11/Data-Structures | 25320e22a32c1958c0edfc0a1d722a3fe843d32d | 4ba8fb600074ff1877771aef70cd0107df1edd34 | refs/heads/master | 2023-03-07T23:16:16.807445 | 2021-02-19T14:39:21 | 2021-02-19T14:39:21 | 297,045,585 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 854 | h | BT.h | #include "Tree.h"
class BT : public Tree{
void insert(int d, Node* p){
if(root == NULL){
root = new Node(d);
return;
}
else if(!p->left){
p->left = new Node(d);
return;
}
else if(!p->right){
p->right = new Node(d);
... |
ee4ce09e6d982019abe5f35f8f57c45702719e16 | 75f9433ab8d43606129f80b5fa5a3452681cd763 | /unindent.cpp | 93dbc5ae4f656600d6672befd2f9dbb86ee17c3d | [] | no_license | karenwuxz/spring-2021-135-lab-07-isabellaeng3313 | ec256ce7282e830eec53acf8efb14f0a4a2d3f26 | 6834e98161c9663d0ac56bf1c975562779a603d5 | refs/heads/main | 2023-04-13T06:15:51.843946 | 2021-04-21T01:41:28 | 2021-04-21T01:41:28 | 351,641,322 | 0 | 0 | null | 2021-03-26T02:44:00 | 2021-03-26T02:43:59 | null | UTF-8 | C++ | false | false | 567 | cpp | unindent.cpp | #include<iostream>
#include<cctype>
#include<sstream>
#include "unindent.h"
std::string removeLeadingSpaces(std::string line){
std::string sentence = "";
int spaces = 0;
while(isspace(line[spaces])){
spaces++;
}
for(int i = spaces; i < line.length(); i++){
sentence += line[i];
... |
2b21e49d8a6f6b1cdb5d98da2f08509cb438a5af | 74212aa37999516a0aeba7ba1e71620a217f8e9d | /GameDemonstrator/ActionRepository.cpp | 879093bf167c636d27b7b1192cb8c707f99a134b | [] | no_license | raubwuerger/StrategicGameProject | 21729192518baa541f2c74f35cb0558a64292c2b | ce3e4c31383c44809e970996091067b94602fd92 | refs/heads/master | 2022-04-30T18:31:55.283915 | 2021-11-08T19:14:43 | 2021-11-08T19:14:43 | 19,796,707 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 754 | cpp | ActionRepository.cpp | #include "stdafx.h"
#include "ActionRepository.h"
ActionRepository* ActionRepository::Instance = nullptr;
ActionRepository* ActionRepository::GetInstanceFirstTimeInit(QObject *parent)
{
if( nullptr != Instance )
{
return Instance;
}
Instance = new ActionRepository(parent);
return Instance;
}
ActionRepository... |
c19c99f57ab62784863852b72773a0879db81269 | c8753b83f4cd7e5c3a9406356ac5e6f25d8288f6 | /PREEMPTION/QButton.cpp | 70729e10c36ccbf8b26ce166bf094798175c5447 | [] | no_license | btnkij/preemption | 8087820abef4888e5b419a1e43fb0fe12dbab3d3 | 84d0176e4843c7021db7353a091b875caf5988c3 | refs/heads/master | 2020-04-10T15:40:32.345369 | 2018-12-10T04:49:12 | 2018-12-10T04:49:12 | 161,118,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 94 | cpp | QButton.cpp | #include "QButton.h"
QButton::QButton(QQuickItem *button)
:QGameObject(button)
{
}
|
13be7b6128f2bc7e884ca66020f042b5223331c2 | 5e79319e32fa709508f7255b2ac453f296d81ac4 | /src/FTPSession.cpp | 49dc62dafd374e5ca2a25cd88f73405c17238e52 | [
"MIT"
] | permissive | zhb2000/Homework-FTPClient | 92dea50ce22003c2241c1eae99147373ca4668ba | 14661cfe22f26b215fbd0b28776891df90fbfe8c | refs/heads/master | 2023-01-01T06:19:38.887628 | 2020-10-29T09:33:09 | 2020-10-29T09:33:09 | 278,780,517 | 7 | 1 | null | 2020-07-26T04:38:14 | 2020-07-11T03:31:41 | C++ | UTF-8 | C++ | false | false | 10,595 | cpp | FTPSession.cpp | #include "../include/FTPSession.h"
#include "../include/FTPFunction.h"
#include "../include/ListTask.h"
#include "../include/MyUtils.h"
#include "../include/RunAsyncAwait.h"
#include <QApplication>
#include <QFuture>
#include <QtConcurrent/QtConcurrent>
#include <cstring>
#include <memory>
namespace ftpclient
{
us... |
68c2241ea91a5057bb2ba352997c698e9fafb364 | e6b0e80ab22f5ec913c6419febf9485eeefd3c76 | /src/db/db_cell.cpp | 38de2285a15604784f1faa3890e9a761f8b70f28 | [
"BSD-3-Clause"
] | permissive | Xingquan-Li/ripple | c6811f7d58cad7c4dde04c5f72bd7183ec3ad97a | 330522a61bcf1cf290c100ce4686ed62dcdc5cab | refs/heads/main | 2023-03-11T19:02:27.518964 | 2021-02-26T05:40:25 | 2021-02-26T05:40:25 | 395,174,545 | 1 | 0 | NOASSERTION | 2021-08-12T02:45:12 | 2021-08-12T02:45:12 | null | UTF-8 | C++ | false | false | 3,055 | cpp | db_cell.cpp | #include "db.h"
using namespace db;
#include "../ut/utils.h"
/***** Cell *****/
Cell::~Cell() {
for (Pin* pin : _pins) {
delete pin;
}
}
Pin* Cell::pin(const string& name) const {
for (Pin* pin : _pins) {
if (pin->type->name() == name) {
return pin;
}
}
return... |
44ee6c29e151ad97471eddb38456ba7261309cb5 | a06515f4697a3dbcbae4e3c05de2f8632f8d5f46 | /corpus/taken_from_cppcheck_tests/stolen_15806.cpp | 7d600fa1bd17bbdf4b0fd8adb0932e2a8b4363b6 | [] | no_license | pauldreik/fuzzcppcheck | 12d9c11bcc182cc1f1bb4893e0925dc05fcaf711 | 794ba352af45971ff1f76d665b52adeb42dcab5f | refs/heads/master | 2020-05-01T01:55:04.280076 | 2019-03-22T21:05:28 | 2019-03-22T21:05:28 | 177,206,313 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 89 | cpp | stolen_15806.cpp | void f(std::list<int> ints) {
ints.front();
ints.pop_back();
if (ints.empty()) {}
} |
c6aaffb5ec97ef77fbd63f546c40c2f9ca298d49 | 972cb450bcd41b358bfa11626e6106e4305fc8bd | /viennacl-frontend/moa-frontend-lib/viennacl/ml/opencl/distance.hpp | 380ca2540a2416c0e9ddb67ef4e29b1d5f85f9aa | [] | no_license | vpa1977/hsa_jni | 0d0e161dd172b4474ceff3eb9abbef38c3314a01 | 2fd116df759eb49ee43ad4e0f4666b2d804292ba | refs/heads/master | 2021-01-13T01:31:22.613111 | 2015-11-01T22:58:57 | 2015-11-01T22:58:57 | 25,964,396 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,040 | hpp | distance.hpp | #ifndef VIENNACL_ML_OPENCL_DISTANCE_HPP_
#define VIENNACL_ML_OPENCL_DISTANCE_HPP_
#include <viennacl/ocl/context.hpp>
namespace viennacl
{
namespace ml
{
namespace opencl
{
template <typename NumericT, class context_class>
struct distance_kernel
{
static std::string program_name()
{
retur... |
3f54c0d880b779e25518e3e99f29cb2bf314035a | 5fd214ad737974f864ec2c055495e9696bbf24eb | /modules/mbsimFlexibleBody/mbsimFlexibleBody/contours/contour_1s_neutral_factory.cc | 3b51470ef1330acc92ab610515ed0069f213a5e0 | [] | no_license | tsschindler/mbsim | 28ede3f2035592532738b833fefe6a8755dfd59e | 97fdb10cfe9e22fb962b7522a9b758d1cdc571ce | refs/heads/master | 2021-01-15T10:18:44.245224 | 2015-06-05T11:37:17 | 2015-06-05T11:37:17 | 36,926,919 | 1 | 0 | null | 2015-06-05T11:37:18 | 2015-06-05T10:29:23 | C++ | UTF-8 | C++ | false | false | 493 | cc | contour_1s_neutral_factory.cc | /*
* contour_1s_neutral_factory.h
*
* Created on: 25.10.2013
* Author: zwang
*/
#include <config.h>
#include "contour_1s_neutral_factory.h"
#include <mbsim/utils/rotarymatrices.h>
namespace MBSimFlexibleBody {
Contour1sNeutralFactory::Contour1sNeutralFactory(const std::string &name) :
MBSim::Con... |
0c62ea330bc960b683b2a871dbf2dd15e4e12e92 | 899e293884d1ed1896414d46e3b46a1a9bfdc490 | /ACM/Codes/Vjudge/20150831/C.cpp | f2809061a644a674f462b6f2a9ef0d20d4369d38 | [] | no_license | py100/University | d936dd071cca6c7db83551f15a952ffce2f4764c | 45906ae95c22597b834aaf153730196541b45e06 | refs/heads/master | 2021-06-09T05:49:23.656824 | 2016-10-27T08:22:52 | 2016-10-27T08:22:52 | 53,556,979 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,440 | cpp | C.cpp | #include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <queue>
using namespace std;
int sg[10001][10001];
int main()
{
#ifndef ONLINE_JUDGE
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
for... |
3558e1f9606bbe8662be620a859bb97a1a4c5a36 | e8580d1e5b8d7cb5eea3d9e3a77a166cdb4162f0 | /base/include/System/FailableForward.hpp | 0d35a7bb73d808c97149b37c5a502f61ab889fe7 | [
"Apache-2.0"
] | permissive | djdron/gamesparks-cpp-base | ea149f88eddd34b4a942ecb5181fafd960821eb3 | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | refs/heads/master | 2020-12-21T20:36:59.789667 | 2019-02-19T11:25:03 | 2019-02-19T11:25:03 | 236,551,142 | 0 | 0 | Apache-2.0 | 2020-01-27T17:36:19 | 2020-01-27T17:36:18 | null | UTF-8 | C++ | false | false | 568 | hpp | FailableForward.hpp | #ifndef _SYSTEM_FAILABLE_FORWARD_HPP_INCLUDED_
#define _SYSTEM_FAILABLE_FORWARD_HPP_INCLUDED_
#if (defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 5))
# if __has_attribute(warn_unused_result)
# define GS_WARN_UNUSED_RESULT __attribute__((__warn_unused_result__))
# endif
#elif defined(_MSC_VER) && !defin... |
28f52002407d892985f7c1f329e468268c4569f2 | 1d8484881e4433d6a7436d0d3467fd99ed266362 | /include/bit/stl/memory/detail/clone_ptr.inl | e0933dba07e12cdf1f5087099c5cd46a0e8841cd | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | bitwizeshift/bit-stl | a8497a46abc0d104aa10ed3e8d00739301bbe05a | cec555fbda2ea1b6e126fa719637dde8d3f2ddd3 | refs/heads/develop | 2021-01-11T14:56:30.998822 | 2018-08-15T21:22:28 | 2018-08-15T21:22:28 | 80,256,758 | 8 | 1 | MIT | 2019-04-11T17:22:15 | 2017-01-28T00:10:46 | C++ | UTF-8 | C++ | false | false | 16,207 | inl | clone_ptr.inl | #ifndef BIT_STL_MEMORY_DETAIL_CLONE_PTR_INL
#define BIT_STL_MEMORY_DETAIL_CLONE_PTR_INL
//============================================================================
// detail::clone_ptr_pointer
//============================================================================
//----------------------------------------... |
6c348cd9dcdb86e27e472ed83a47db11e2f15e06 | 6e05188324e022c145f35e9abb393e2d5f69b35a | /src/framework/crypt/declarations.h | 744100da389143c8d6d6a1613b79bfd848ba3762 | [] | no_license | Pioryd/framework | 53ca71dd6f966e1bafb0792dcf3b1f0cb904646e | b72d87a51fe2627d233b3422a304495406db6a08 | refs/heads/master | 2021-06-15T14:11:28.978378 | 2019-09-28T09:15:27 | 2019-09-28T09:15:27 | 200,518,669 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | h | declarations.h | #ifndef FW_CRYPT_DECLARATIONS_H
#define FW_CRYPT_DECLARATIONS_H
#include "../pch.h"
namespace FW::Crypt {
class Rsa;
} // namespace FW::Crypt
#endif // #ifndef FW_CRYPT_DECLARATIONS_H
|
862930773cc2ff4ccab6afbdb52a445769b75bdb | 0af5f0cf42c45876acc531b1fb51544166ec43ae | /includes/acl/compression/impl/compact_constant_streams.h | df541e32443dd88047e7e53f855d68819fd7cf37 | [
"MIT"
] | permissive | nfrechette/acl | 8cda80428ab81260d59611f2bf6848b2847897b5 | 427b948f87d43f666ac9983073790621c3848ae3 | refs/heads/develop | 2023-08-31T09:14:10.347985 | 2023-08-26T02:18:40 | 2023-08-26T11:16:11 | 91,615,309 | 1,172 | 89 | MIT | 2023-09-09T13:39:44 | 2017-05-17T20:02:25 | C++ | UTF-8 | C++ | false | false | 34,614 | h | compact_constant_streams.h | #pragma once
////////////////////////////////////////////////////////////////////////////////
// The MIT License (MIT)
//
// Copyright (c) 2017 Nicholas Frechette & Animation Compression Library contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and asso... |
a7ccf5316ccf1e95940290d1b6a2ee4c4618ffc0 | d32a86b54095bbf7886350932d5173493a1c8dd3 | /Chapter8.2#8J_Branson.cpp | baa0b729dcd0316854bc1be422aec8971cfbe60f | [] | no_license | Jbranson85/Cplusplus-ERG-126 | 01ba685dd35683f35816d88a7b7ba097ed6f8f67 | 254da0479516726bebddbf9dcdc8fa00a3ef4f3f | refs/heads/master | 2020-03-15T22:22:34.580121 | 2018-05-06T20:13:22 | 2018-05-06T20:13:22 | 132,371,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,405 | cpp | Chapter8.2#8J_Branson.cpp | /*
Jonathan Branson - Chapter8.2#8J_Branson.cpp
This program will get input from a file and output the data, and
will also find the MPG for each vehicle.
*/
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string>
#include <iomanip>
using namespace std;
int main()
{
//Fil... |
d994117d2e16f07f368cb4ed4b34a8a012842816 | c13c121d96fdd8682982854f43e50be011863aa1 | /Code/Editor/TamyEditor/DRSkeletonEntity.cpp | 60a4053ca2bc89daa3fa22e2830a8e5a7ea74cdd | [] | no_license | paksas/Tamy | 14fe8e2ff5633ced9b24c855c6e06776bf221c10 | 6e4bd2f14d54cc718ed12734a3ae0ad52337cf40 | refs/heads/master | 2020-06-03T08:06:09.511028 | 2015-03-21T20:37:03 | 2015-03-21T20:37:03 | 25,319,755 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,425 | cpp | DRSkeletonEntity.cpp | #include "DRSkeletonEntity.h"
#include "core-AI\SkeletonComponent.h"
#include "core-AI\Skeleton.h"
#include "core-Renderer\TriangleMesh.h"
#include "core-Renderer\GeometryComponent.h"
#include "core-Renderer\RenderState.h"
#include "core-Renderer\Material.h"
#include "DebugGeometryBuilder.h"
/////////////////////////... |
16c4a4ad8ebfa03f467984d3a9c822a694beb26a | 7cf248711e6c4bb6be73fe4623bc45accc755dd9 | /classification/mnist-hidden-probabilities.cpp | 4387e83f72aa92117bbd1cffeca16aa574605c5d | [] | no_license | arn4/colloquio | 165be13963a3ae8d58c6f60c045595c1f2fa56de | fc67c50947c791a1b4f4b642660cd12d98f0ac02 | refs/heads/main | 2023-05-30T21:40:08.827883 | 2021-06-10T15:51:06 | 2021-06-10T15:51:06 | 347,947,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,501 | cpp | mnist-hidden-probabilities.cpp | #include <iostream>
#include <fstream>
#include <random>
#include <cstdlib>
#include <iomanip>
#include <cassert>
#include <BernoulliRBM.hpp>
using namespace std;
using namespace rbm;
const size_t DIGITS = 10;
const size_t PIXELS = 28*28;
const unsigned HIDDEN_SIZE = 500;
const unsigned TEST_SET_SIZE = 10000;
c... |
912b6dd0147552a107d83ecb2a8566cb57cd63c7 | 5b0a72955052f458969486f790dfdd6d3a9ec9cd | /debug/my_debug.h | 8995486fcb629364ba78546bd2620e16c7792d01 | [] | no_license | hikaru-ida/procon_lib | 00442da14bacd3e51e711131e927f92e0abd251c | e6895e8f03401a8de02b7b59028339a4d2ad9929 | refs/heads/master | 2021-07-07T23:14:58.614194 | 2017-10-04T19:50:12 | 2017-10-04T19:50:12 | 104,731,296 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,425 | h | my_debug.h | #include <iostream>
#include <vector>
#include <string>
#include <iomanip>
#define TO_STRING(VariableName) # VariableName
void show_list2d(const std::vector< std::vector<int> > & v, int k);
void show_list2d(const std::vector< std::vector<int> > & v, int k=4) {
for(int i=0;i<v.size();i++) {
for(int j=0;j<v[i].s... |
129451859392107d6b4549ba52c824dc4a203d6a | 85f151fb68fcc237a3a100ea4bf3dfe1d6a38b5b | /citationKNN.cpp | 96bcacf7d5008f838ecfca2e7f0ebd353112f6af | [
"MIT"
] | permissive | YMYTZSQF/FALCON | e17c384a6bbbf9e2a7a269eb10ffb96949b8140c | 4eb78d3db3d287308a33828042c39cc4ba9132bd | refs/heads/master | 2020-04-14T03:47:05.493938 | 2018-12-30T21:11:45 | 2018-12-30T21:11:45 | 163,616,642 | 0 | 0 | MIT | 2018-12-30T20:48:21 | 2018-12-30T20:48:20 | null | UTF-8 | C++ | false | false | 28,523 | cpp | citationKNN.cpp | #include "citationKNN.h"
#include <fstream>
#include <algorithm>
//#include <windows.h>
//#include "psapi.h"
long long countDistComp = 0;
long long countDistComp2 = 0;
long long countDistComp3 = 0;
long long countDistComp4 = 0;
long long countDistComp5 = 0;
int hDistType; //indicate which type of hausdorff ... |
ea2a83ef9e6f5b7fde57bef7bda11aa0a3519219 | 0d0f882afd8a21aa3ab9a05da69318b77877be97 | /Game/GameEngine/Obstacles.h | 4173ff04ee08288f1cb681b20e2ad9109ed3513e | [] | no_license | sara53/Sphere-of-fury-Game- | 9161164d22bd9bb60940270eabd60ad6b6843649 | 26d01cc071014348de17d79479685656355cad19 | refs/heads/master | 2020-07-01T08:38:31.401617 | 2019-08-07T18:59:20 | 2019-08-07T18:59:20 | 201,111,008 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 115 | h | Obstacles.h | #pragma once
#include "_Entity.h"
class Obstacles : public _Entity
{
public:
Obstacles(float x, float y);
};
|
503c732d30270fd10a3cefcf5818a619aea83226 | a4e15f38ae1f82dfe0f81ad57b2abef99ec4c50f | /htparse_tests/src/path_test.cpp | 76d9d0002522e23f204699b9cb24d5343e57bef2 | [] | no_license | josendf/material-cpp-1209 | 37167a1e7d9b815bb4d0b425a070b99dd418d26c | 64db0d57b03d235761a4b8eff0bc57a67b77adb9 | refs/heads/master | 2016-09-06T07:32:46.950191 | 2013-01-16T15:02:15 | 2013-01-16T15:02:15 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,648 | cpp | path_test.cpp | #include "precompiled.h"
#include "test_config.hpp"
#include <htparse/backends/testing.hpp>
BOOST_AUTO_TEST_SUITE( path_test )
BOOST_AUTO_TEST_CASE( match )
{
using htparse::context;
using htparse::context_ptr;
using htparse::message;
using htparse::request;
using htparse::parser;
using htparse::expr;
u... |
7e6bc6766afd0b01cc0309fd7f3057d94bf73fdb | f3c7922be1ffaec7c894168b8e3cf82a43c79894 | /examples/example-demo/src/ofApp.h | e1ef5c297346c13bd9a01155f9bf34bacc07f7b6 | [
"MIT"
] | permissive | adcox/ofxPlots | cd33e51dd292cf5ffb5fb959fca895e415f10989 | ef8ef7268820a49ef7ac13065d089d611905e50a | refs/heads/master | 2021-01-19T01:04:57.463502 | 2016-07-11T22:17:48 | 2016-07-11T22:17:48 | 62,679,711 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,789 | h | ofApp.h | /**
* @file ofApp.h
*
* @author Andrew Cox
* @version July 5, 2016
*
* Copyright (c) 2016 Andrew Cox
*
* 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, includ... |
4a1e17301ceb611162c550928f5e04194c0ea632 | 9f9660f318732124b8a5154e6670e1cfc372acc4 | /Case_save/Case40/Case/case4/1400/T | fb716c72b5e5a7bcb7eebb3f04775dba6208ce53 | [] | no_license | mamitsu2/aircond5 | 9a6857f4190caec15823cb3f975cdddb7cfec80b | 20a6408fb10c3ba7081923b61e44454a8f09e2be | refs/heads/master | 2020-04-10T22:41:47.782141 | 2019-09-02T03:42:37 | 2019-09-02T03:42:37 | 161,329,638 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,220 | T | // -*- C++ -*-
// File generated by PyFoam - sorry for the ugliness
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
location "1400";
object T;
}
dimensions [ 0 0 0 1 0 0 0 ];
internalField nonuniform List<scalar> 459
(
303.56
303.302
303.288
303.285
303.281
303.277
303.272
303.267
... | |
3ef25141c19060d89bb1e18a069a589937490480 | 00fd373a5673e5b3a21798cbf0b3c961f3be8b20 | /src/Session.cpp | ab79ac061c09070a859a3f076095b923d80f3fba | [] | no_license | Yairzdr/ASS1 | 3888778bd7c7c7d2bee55650e21a8510fc8e41c3 | a5a5d441358fe08f231cdf4b954bd835746bc049 | refs/heads/master | 2023-01-10T07:49:10.513094 | 2020-11-15T17:17:54 | 2020-11-15T17:17:54 | 309,748,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,873 | cpp | Session.cpp | //
// Created by Yairzdr on 01/11/2020.
//
#include "../include/Session.h"
#include "../include/json.hpp"
#include "fstream"
#include "../include/Agent.h"
using json=nlohmann::json;
using namespace std;
/*
* Session constructor.
*reads the input json file, and initialize the TreeType, AgentList and the Graph edges.... |
6c400261eb8ad1ffa84e5f633e73d0470ff5c543 | bc997f47b4cffef395f0ce85d72f113ceb1466e6 | /Croatia/coi14_css.cpp | a969994e57c58340ae30ad93cd4d02fd45e15d9e | [
"LicenseRef-scancode-public-domain"
] | permissive | koosaga/olympiad | 1f069dd480004c9df033b73d87004b765d77d622 | fcb87b58dc8b5715b3ae2fac788bd1b7cac9bffe | refs/heads/master | 2023-09-01T07:37:45.168803 | 2023-08-31T14:18:03 | 2023-08-31T14:18:03 | 45,691,895 | 246 | 49 | null | 2020-10-20T16:52:45 | 2015-11-06T16:01:57 | C++ | UTF-8 | C++ | false | false | 3,118 | cpp | coi14_css.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef pair<int, int> pi;
char buf[5005];
vector<string> readline_split(){
fgets(buf, 5005, stdin);
int n = strlen(buf);
while(n > 0 && (isspace(buf[n-1]) || !isprint(buf[n-1]))) n--;
buf[n] = 0;
vector<string> ret;
string cur;
for(int i=0;... |
9050334549478da8295d992d701e6a47f37be1b9 | d0c06ff202d77ccd30b8a8dce4cbbf9da252d234 | /PkTex-Atlas/jni/MPACK/Graphics/Graphics.hpp | 90e880b9acbdbff3de1a52909e70d8e487929222 | [
"Apache-2.0"
] | permissive | links234/PkTex | e5aa1a42d296129b93f271047e875beed82b43b1 | 8f2d33e0794e57c33305c2eceab11f6f53f0aeee | refs/heads/master | 2020-04-02T22:51:38.006299 | 2015-12-01T02:54:36 | 2015-12-01T02:54:36 | 60,978,430 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 134 | hpp | Graphics.hpp | #ifndef MPACK_GRAPHICS_HPP
#define MPACK_GRAPHICS_HPP
#include "Image.hpp"
#include "PNGImage.hpp"
#include "TargaImage.hpp"
#endif
|
3ec7fa0a9353cc40ff1b5c8d647b4e371b518f14 | 50f50760539f1619a1194c8df0af5e45cf0b226a | /src/type_fundamental.cpp | 5b54f220b4e7ac343a63b06343db0ac6c67443a2 | [] | no_license | CaoKha/cpp_course | ee87462e6d52f4b45c0144358bcbcd199845f0d5 | 6d85468693fc715a181bc9c1c73e1cca785a2b0e | refs/heads/master | 2023-04-12T20:44:09.583266 | 2021-05-12T06:27:52 | 2021-05-12T06:27:52 | 344,757,469 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | cpp | type_fundamental.cpp | #include <iostream>
using namespace std;
int main()
{
char c = 'c'; // 1octet = 8bits
wchar_t wc = 'c';
short s = 4; //16bits
int i = 5;
long l = 6;
long long ll = 7;
float f = 6.7;
double d = 6.7;
long double ld = 6.7;
bool b = true;
/*
1 <= sizeof(char) <= sizeof(sho... |
291b52f36ff59599e8f268ade39411e73a5e6812 | a61870fdad1bd541c97807988b7be68d95a1bbce | /Zia/ApiTaMere-1.0/ziatamer-1.0/include/api/defines.hpp | d4c114a8a7833948763ca28e6249368df150c22f | [] | no_license | BGCX261/zia-tools-svn-to-git | 9bc8632afeb6b6d0bae1048d1c679b48065bbba0 | 428fa2bbbc047eb41c7fd6223c4f0db97618764a | refs/heads/master | 2016-09-10T04:21:57.737390 | 2015-08-25T15:49:37 | 2015-08-25T15:49:37 | 42,317,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 304 | hpp | defines.hpp | #ifndef _ZIA_API_DEFINES_H_
#define _ZIA_API_DEFINES_H_
#define _BOF_ZIA_API_ namespace zia { namespace api {
#define _EOF_ZIA_API_ } }
_BOF_ZIA_API_
enum {
ZIA_ERR = -1,
ZIA_OK = 0,
ZIA_FAIL = 1,
ZIA_STOP = 2
};
_EOF_ZIA_API_
#endif /* _ZIA_API_DEFINES_H_ */
|
173a76fab81d0068eda9c715b807dc39d8a14938 | b1d310b155bb695b00278544d28f52976f7b12b5 | /clt/CmdControlLightColor.cpp | 7b1a02b012c6abb033d915035e7b49d8ead9c996 | [] | no_license | erdoukki/deltadore_smart_router | cf62a6ad95cad496947446278cc210cfb540dd91 | 3ad4f35491fceecf36ecaf481b7ac68df88dc2cc | refs/heads/master | 2021-01-11T17:46:39.543626 | 2016-11-07T00:41:01 | 2016-11-07T00:41:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 805 | cpp | CmdControlLightColor.cpp | #include "CmdControlLightColor.h"
CmdControlLightColor::CmdControlLightColor()
{
//ctor
}
CmdControlLightColor::~CmdControlLightColor()
{
//dtor
}
void CmdControlLightColor::handle(const char* pCmd, DeltaDoreX2Driver* pDriver)
{
cJSON* pResponse = NULL;
char option[20];
int network, node, red, blu... |
279e9918f77a42f0694cb423d37d47ed4f1d4de9 | 3802c5a3e2af8cce63d9586d996a64df25e6656f | /XAMPPbase/XAMPPbase/SUSYTriggerTool.h | 062e56f9882a60ac7b7b266921fd2a130a0fc0cf | [] | no_license | jonipham/XAMPP_HeavyIon_TagnProbe_June18 | c6494b99f6142014ea1cb1f3260f80c205f115a1 | f26403a9552b9327d253c8d6e994bbed6fe36f60 | refs/heads/master | 2020-03-19T13:49:58.746547 | 2018-06-08T08:48:02 | 2018-06-08T08:48:02 | 136,596,998 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,256 | h | SUSYTriggerTool.h | #ifndef XAMPPbase_SUSYTriggerTool_H
#define XAMPPbase_SUSYTriggerTool_H
#include <AsgTools/AsgTool.h>
#include <AsgTools/ToolHandle.h>
#include <AsgTools/AnaToolHandle.h>
#include <XAMPPbase/ITriggerTool.h>
#include <xAODBase/IParticleHelpers.h>
namespace ST {
class ISUSYObjDef_xAODTool;
}
namespace XAMPP {
... |
bec2b6e90c1a73144e72e56cd44e6204b548eba5 | 4ad2ec9e00f59c0e47d0de95110775a8a987cec2 | /_Atcoder/ARC 076/C/main.cpp | fe21654d24deee6d4720be64bc0f8c66d0127d25 | [] | no_license | atatomir/work | 2f13cfd328e00275672e077bba1e84328fccf42f | e8444d2e48325476cfbf0d4cfe5a5aa1efbedce9 | refs/heads/master | 2021-01-23T10:03:44.821372 | 2021-01-17T18:07:15 | 2021-01-17T18:07:15 | 33,084,680 | 2 | 1 | null | 2015-08-02T20:16:02 | 2015-03-29T18:54:24 | C++ | UTF-8 | C++ | false | false | 647 | cpp | main.cpp | #include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
#include <cmath>
using namespace std;
#define mp make_pair
#define pb push_back
#define ll long long
#define mod 1000000007
int n, m, i;
ll ans;
int main()
{
freopen("test.in","r",stdin);
scanf("%d%d", &n, &m);... |
2bc15f5ec2833bee5b7e61050d79879c0207443f | 9b6e2f34b211b1e5ceecd575ee66faca039dd350 | /app/src/main/cpp/JavaCallHelperCopy.h | e46902fa021bfe6eb42b19f93d6e77c83a8344bd | [] | no_license | iChunzhen/FFJNIPlayer | 09974248a4dadf23ee93e50f031d454d6c8c12c7 | 4ff73995fcfb8e3b56c3f1e9ac0fddd51d8c3e7a | refs/heads/master | 2022-12-12T01:58:09.167227 | 2020-09-09T06:13:24 | 2020-09-09T06:13:24 | 289,184,853 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 201 | h | JavaCallHelperCopy.h | //
// Created by yuancz on 2020/8/20.
//
#ifndef FFJNIPLAYER_JAVACALLHELPERCOPY_H
#define FFJNIPLAYER_JAVACALLHELPERCOPY_H
class JavaCallHelperCopy {
};
#endif //FFJNIPLAYER_JAVACALLHELPERCOPY_H
|
317cb9a217924c9a02b5b7dce81b606af972cac4 | eda03521b87da8bdbef6339b5b252472a5be8d23 | /Userland/Libraries/LibCore/SessionManagement.cpp | a12fef8210a4ecaafc9ab836b90b72aabf5f218f | [
"BSD-2-Clause"
] | permissive | SerenityOS/serenity | 6ba3ffb242ed76c9f335bd2c3b9a928329cd7d98 | ef9b6c25fafcf4ef0b44a562ee07f6412aeb8561 | refs/heads/master | 2023-09-01T13:04:30.262106 | 2023-09-01T08:06:28 | 2023-09-01T10:45:38 | 160,083,795 | 27,256 | 3,929 | BSD-2-Clause | 2023-09-14T21:00:04 | 2018-12-02T19:28:41 | C++ | UTF-8 | C++ | false | false | 1,556 | cpp | SessionManagement.cpp | /*
* Copyright (c) 2022, Peter Elliott <pelliott@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibCore/Directory.h>
#include <LibCore/SessionManagement.h>
#include <LibCore/System.h>
#ifdef AK_OS_SERENITY
# include <LibSystem/syscall.h>
#endif
namespace Core::SessionManagement {
Erro... |
0b3d2dc3786d5dcdf94bbf671537ade6e86cab42 | 72852e07bb30adbee608275d6048b2121a5b9d82 | /algorithms/problem_0759/other2.cpp | a984270c5fb9a16ef14f2849147bb8f0bbe22b2f | [] | no_license | drlongle/leetcode | e172ae29ea63911ccc3afb815f6dbff041609939 | 8e61ddf06fb3a4fb4a4e3d8466f3367ee1f27e13 | refs/heads/master | 2023-01-08T16:26:12.370098 | 2023-01-03T09:08:24 | 2023-01-03T09:08:24 | 81,335,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | cpp | other2.cpp | class Solution {
public:
vector<Interval> employeeFreeTime(vector<vector<Interval>> schedule) {
priority_queue<Interval, vector<Interval>, cmp> q;
for (auto &intervals : schedule)
for (auto &interval : intervals)
q.push(interval);
vector<Interval> res;
Int... |
ab06e3e7762abb71e37b5740b9c52a13e7b7a0f0 | 0364bdde2c7386f38dc84e6791697c9413f51443 | /Source/Maps/EndCredits.h | fc75502c73d47fe0e4c4e23aa0a1ed2b12dcd1ce | [
"MIT"
] | permissive | DrStrangelove42/DreamOfaRidiculousMan | 0cd088375851bc68b1f1b958a69ddcee3b3ec23c | a19af08c0a044ed4a30194ffdfac912475618b14 | refs/heads/main | 2023-06-17T19:21:53.341035 | 2021-07-14T09:39:05 | 2021-07-14T09:39:05 | 304,332,780 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,686 | h | EndCredits.h | #ifndef ENDCREDITS_H
#define ENDCREDITS_H
#include <string>
#include "Menu.h"
#include "../Base/game.h"
#include "../Base/Entity.h"
#include "../Base/config.h"
#include "../Base/utils.h"
#include "../Characters/Player.h"
#include "../Interactions/Button.h"
#include <iostream>
#include <fstream>
#include "../Objects/Ob... |
3cdcbe63d5c0c9a9e5ccb8f5fae6571f24f85779 | d7056e97a0ec957a075c3727dabc34c5111942d5 | /app/PathPlanningModule.cpp | 5f3f577e2ac06a0f16aa441e7f3919de4da17983 | [
"MIT"
] | permissive | likhitam/robot-butler-enpm808x | 53366771f460b0ef2d8c492151098a74f7f2bbae | ce7bf43378b6be8720b39b0954169d04dec2eccf | refs/heads/master | 2020-04-01T16:14:49.019573 | 2017-10-17T13:50:39 | 2017-10-17T13:50:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,641 | cpp | PathPlanningModule.cpp | /**
* @file PathPlanningModule.cpp
* @author Karan Vivek Bhargava
* @copyright MIT License
*
* @brief ENPM808X, Midsemester project
*
* @section DESCRIPTION
*
* This program is controlling a robot's heading direction
* using sensor fusion.
*
*/
#include <algorithm>
#include <vector>
#includ... |
ba21b6bedccea507c71869bf4bf67d79ff04315b | ca43354b0d4fe919476d2bbe3549ba01c058a07b | /DrawingBot.ino | 9978be9dbabf3026c5842da76c6b39ea5b82b8f9 | [] | no_license | nejo0017/DrawingBot-1 | 89b3cece1daeffe2afb0f6bd143e80d315088fac | 4cd2b16c6b78e377e6e17a935a9f0ed9e5454d81 | refs/heads/master | 2021-01-16T01:07:19.562762 | 2015-02-04T11:40:56 | 2015-02-04T11:40:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,003 | ino | DrawingBot.ino | #include <ADNS2610.h>
#define OPTIMOUSE_SCLK 2 // Serial clock pin on the Arduino
#define OPTIMOUSE_SDIO 3 // Serial data (I/O) pin on the Arduino
#define MOTOR_RIGHT_FWD 6
#define MOTOR_RIGHT_BCK 5
#define MOTOR_LEFT_FWD 10
#define MOTOR_LEFT_BCK 9
#define STATE_I... |
cb3634f58c4b66b12597a912ad3458c4e84705ef | b926bfd92aec87f47e9189d070f21544cd938d06 | /Dynamic Programming/Easy/Longest Increasing Subsequence/source.cpp | 8b8d1751c271747ca1235859a392940673c3ceb5 | [
"MIT"
] | permissive | algoholics-ntua/algorithms | f48559a5c10367223061d2f13094d192c01d8e50 | 2306db43192c598cb8ec431cc6c6e564699619f0 | refs/heads/master | 2021-06-26T11:46:35.640458 | 2020-10-02T14:20:55 | 2020-10-02T14:20:55 | 144,731,150 | 52 | 21 | MIT | 2020-10-04T00:09:28 | 2018-08-14T14:24:45 | C++ | UTF-8 | C++ | false | false | 895 | cpp | source.cpp | #include <iostream>
#include <string>
#include <cstring>
#define MAX_N 1000
using namespace std;
int N,T;
int a[MAX_N],memo[MAX_N];
int LIS(int k){
// Longest Increasing Subsequence that ends at index k
if(memo[k]!=0) return memo[k];
int result = 1;
for(int i=0;i<k;i++){
if(a[i]<a[k]){
result = ma... |
da293f712260fbb3ad211d25730fa5730b5b9070 | 2d9a39e04d03ffb8002d1c788c9e5726a90ea343 | /src/property/dialogs/bytearrayeditdialog.cpp | 1dcde2acac56df7668a1026982062094d3755c7d | [] | no_license | Gris87/ObjectController | 099d5c7598d4b96cf9950de6d60fd270354d4eef | 02dd66a0d212f2203e3ffc3562ee712c293a7ab2 | refs/heads/master | 2021-01-17T17:04:36.070839 | 2013-04-19T11:55:14 | 2013-04-19T11:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,551 | cpp | bytearrayeditdialog.cpp | #include "bytearrayeditdialog.h"
#include "ui_bytearrayeditdialog.h"
ByteArrayEditDialog::ByteArrayEditDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ByteArrayEditDialog)
{
init(QByteArray(), 0);
}
ByteArrayEditDialog::ByteArrayEditDialog(QByteArray aValue, QWidget *parent) :
QDialog(parent),
... |
ab582e2f820ac44cb83d3fca93ae1dbf5e28915e | c1a0cd44fe37298430d5d60f95d9e155dfda61a5 | /week6/26.cpp | 12e0c818f3c496e30ac9e0fc19c280e1e66c059b | [] | no_license | SriyaNelluri/Prep | 4ff25c59d795dfd3b260a1984423d592157af21e | 705d7355e60bcc9bdf2c2cb44394707b078de4b4 | refs/heads/main | 2023-06-04T11:52:32.326038 | 2021-06-26T12:42:13 | 2021-06-26T12:42:13 | 351,981,767 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 170 | cpp | 26.cpp | int minValue(Node* root)
{
// Code here
struct Node* current = root;
while (current->left != NULL) {
current = current->left;
}
return(current->data);
}
|
9768d03008b1cd7d479f3ee0746e437394ed5a73 | 66de603a043048334bfd9d8f4f5b7bd83d1ef1ce | /mainwindow.cpp | 5ee2a675f0ebbdb0880cbabf5b61e89a4e54d791 | [] | no_license | BUAASoftEngineering/PairProgrammingHWGui | 821d01b8675e22fa654475522f2e51cc13a51990 | ef1e0ce4a68015aec42e28df6e2de28401b637d6 | refs/heads/master | 2021-04-11T12:51:00.449881 | 2020-03-24T10:48:38 | 2020-03-24T10:48:38 | 249,022,656 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,381 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "./ui_mainwindow.h"
#include "qcpitemhalfline.h"
#include "QFileDialog"
#include <QDebug>
MainWindow::MainWindow(QWidget *parent)
: QMainWindow(parent)
, ui(new Ui::MainWindow)
{
ui->setupUi(this);
auto customPlot = ui->plot;
customPlot->setInteraction(QCP::iSele... |
f17f2e810f4a1f8c9815141adf1eb25d41660988 | 9d88bcceccfa1f7fd1b7b2a856cb1da45a20d2ec | /Safe Travels/src/Date.cpp | 0373913b1c9f06d6edcf44a06d3c3bdfde9a2612 | [] | no_license | jro0100/Safe-Travels | 5e582a10b6da56db0519527d4d1d90636de7c9a9 | 8f457a2ff130891db821bb0b8c01a3d7b7c1e659 | refs/heads/master | 2021-02-09T06:20:08.540475 | 2020-05-10T00:41:33 | 2020-05-10T00:41:33 | 244,238,140 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | cpp | Date.cpp | #include "Date.h"
//Increases m_week by one
void Date::increaseDate()
{
//Increment the week count
if (m_week <= 4)
m_week++;
//If the m_week hits five, increment the month and reset m_week to one
if (m_week > 4)
{
int temp = m_month;
temp++;
m_month = static_cast<Month>(temp);
m_week = 1;
}
//If ... |
e1cf08e437b51803e6e20bc9868e7a3bbb757b9d | 6687a5a53cb371d6f1274081fda28ce5fe7a3232 | /Leetcode Weekly Contest/Weekly Contest 155/C.cpp | 6fee6b85fea08dadae750c7729de4f88637caed2 | [] | no_license | kugwzk/ACcode | 40488bb7c20e5ad9dfeb4eb3a07c29b0acfee7d9 | e3e0fe7cb3a9e1a871e769b5ccd7b8f9f78d0ea3 | refs/heads/master | 2021-01-17T12:59:53.003559 | 2020-08-17T07:48:28 | 2020-08-17T07:48:28 | 65,424,503 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,239 | cpp | C.cpp | typedef pair<int,int> pii;
vector<int>e[100010];
int vis[100010];
vector<int>kuai[100010];
vector<char>fuck[100010];
int cnt;
void dfs(int rt,int col,string& s) {
vis[rt]=1;
kuai[col].push_back(rt);
fuck[col].push_back(s[rt]);
for(int i=0;i<e[rt].size();i++) {
if(vis[e[rt][i]]) continue;
... |
b2c626e973133d11f35c828554023d655eb48d1e | 16ac897be05248ae9af45b6f93077c7d80e32e9c | /source/main.cpp | fafea5d2bad5e3487725a8f54c78d8aadee1796c | [] | no_license | n-paukov/MiP-Interpreter | 9bce6c6e89b5a7d45ec89304930df5dc0696c5a1 | 248f1e7cae1a9c76a99c88372b06fc74222f2dcc | refs/heads/master | 2020-03-12T15:34:16.998616 | 2018-04-23T12:49:19 | 2018-04-23T13:00:51 | 130,693,279 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 934 | cpp | main.cpp | #include <iostream>
#include <fstream>
#include <conio.h>
#include <iomanip>
#include "Tokenizer.h"
#include "SyntaxAnalyzer.h"
void interprete(const std::string& code) {
try {
Tokenizer tokenizer;
SyntaxAnalyzer analyzer;
auto tokens = tokenizer.getTokensList(code);
auto programNode = analyzer.parse(tokens... |
88b18c1ba1ec6c8f067948e1e6faa06343e4af0c | fa8f6815d4dd86d7b9930f6ee66af95db2103e78 | /Trunk/Pulse-Tec/Source/Engine/Include/Shader.h | 44a27cf5b5a35fe3f6e29c99edc342602043c636 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | indygames/Pulse-Tec | b2ffe45cbc3b27399d46b9d084582ca9e7ab2dc3 | 6df21bfd871cc52ef24e9d8a56424004ffda34cc | refs/heads/master | 2021-01-18T00:11:51.644426 | 2012-06-15T00:27:11 | 2012-06-15T00:27:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,644 | h | Shader.h | /**************************************************************************************
*
* Copyright (C) 2009 - 2012 Brent Andrew O. Chua - See LICENSE.txt for more info.
*
* Filename - Shader.h
*
* Description -
*
* Comments -
*
* Modification History:
* Name Date Description
* MrCodeSushi - 12/06/20... |
5fa827589f22a08ac70c94b8f770713cb2992240 | d8e69f3deb2403211dbbcd919170966bb9fe6f88 | /include/axis_interface.hpp | b316e88055c5ecbca16e6b7fec22173ec9173e60 | [
"Apache-2.0"
] | permissive | ipsch/kielflow | dd793fa0ddbc7c1684f70197e87ceeaf9b70ad29 | 54f3ac1903b17bb3f14e67c3cbba341dff55158a | refs/heads/master | 2020-04-06T13:55:09.347213 | 2016-11-23T02:09:04 | 2016-11-23T02:09:04 | 49,132,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 571 | hpp | axis_interface.hpp | #ifndef AXIS_INTERFACE_HPP_
#define AXIS_INTERFACE_HPP_
class axis_interface
{
public :
virtual ~axis_interface() { };
// unsecure access
virtual double val_at(const int &index) const = 0;
virtual int index_at(const double &val) const = 0;
virtual double k_val_at(const int &index) const = 0;
virtual int k_index... |
32f0af83bee78ce804271e22a3ddb9226aae9e46 | 6d5b4c0d6d846b5d7182d8e894319b54e9ae04b9 | /src/copy-move-forgery-mpi/MPISettings.cpp | c35142387c4b66f8a53fcf0006971e298d585bda | [] | no_license | filincowsky/copy_forgery_detect | 655e03f317dfff510c45e3c8c57cd5a864a7760b | fdee9ae10e2677aa5a9cb014e6f132eb8ca9633c | refs/heads/master | 2022-01-29T10:43:16.205155 | 2015-07-07T17:54:26 | 2015-07-07T17:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 522 | cpp | MPISettings.cpp | #include "MPISettings.h"
#include <mpi/mpi.h>
MPISettings::MPISettings() :
PROC_SIZE_(0),
PROC_ID_(0)
{
MPI_Comm_size(MPI_COMM_WORLD, &PROC_SIZE_);
MPI_Comm_rank(MPI_COMM_WORLD, &PROC_ID_);
}
MPISettings& MPISettings::instance()
{
static MPISettings inst;
return inst;
}
int MPISettings::PROC... |
f72e6a238baa4b19b9b3da42bbfdf1b5a5ebd819 | 27da0cc89da83446c328f37a3fceec9e920764fa | /3-MoreOOP/Inheritance/src/Person.cpp | 695276b90238f431019f98bb792dd8e38c474469 | [] | no_license | eborghi10/DEV210.2x_edX | 1006ae597f68921f3e8019216055fa9e944f6140 | ac8e53f8871cd436a68d80ea138c22209e09739f | refs/heads/master | 2021-01-13T08:43:08.946054 | 2017-02-23T10:46:14 | 2017-02-23T10:46:14 | 81,825,703 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 717 | cpp | Person.cpp | /*
* Person.cpp
*
* Created on: 15 Feb 2017
* Author: emiliano
*/
#include <iostream>
#include "Person.h"
Person::Person() : firstName("John"), lastName("Doe"), age(0) {
}
Person::Person(std::string fName, std::string lName) :
firstName(fName), lastName(lName), age(0) {
}
Person::Person(std::string f... |
bfc3806ccd1930f3edd9ae841d9ca72ff2eb02d4 | b417bacdcf8d4cda0333a0d2a757af42960a0757 | /Simple Game Engine/Bob.cpp | 9ee4000ebe9905b5e3d684224d79d398c4b8d5ba | [] | no_license | kschmanski/Simple-Game-Engine | 61176cd54bd20ed276db3f5bbdd5b08d4d9ddf60 | 81e6d427681ccd80bbd40cca5394da5b3ee01ad7 | refs/heads/master | 2020-06-07T05:39:42.133097 | 2019-06-20T20:05:58 | 2019-06-20T20:05:58 | 192,937,423 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,566 | cpp | Bob.cpp | #include "stdafx.h"
#include "Bob.h"
#include "Engine.h"
Bob::Bob() {
//how fast does Bob move?
m_Speed = 400; //pixels per second
m_Texture.loadFromFile("newCharacter.png");
m_Sprite.setTexture(m_Texture);
m_Sprite.setTextureRect(IntRect(50, 1500, 130, 300)); //standing character
m_MovingSprite.setTexture(m_... |
c7d8569b516aaff4017f37b0bf8d27099fe7462c | 58748e6da9052a63539cf8c53ac78e859c13dbb2 | /src/Tools/Tool_RBF_HeightMap.cpp | bb4ad4e881a2b2c5c5afe1666cc52867eeb90c25 | [] | no_license | JulesFouchy/IMACUBES | eb2b6a2f6720b44f78882cde472c9d70c86012f1 | c5c64577f179eed3ca86e4913f965ce17e6f77d0 | refs/heads/master | 2021-12-09T00:40:00.548058 | 2021-12-05T14:49:36 | 2021-12-05T14:49:36 | 220,300,221 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,834 | cpp | Tool_RBF_HeightMap.cpp | #include "Tool_RBF_HeightMap.hpp"
#include "RBF/RBF.hpp"
Tool_RBF_HeightMap::Tool_RBF_HeightMap()
{
m_bSurfaceMode = false;
m_modulingFunction = &m_inverse;
m_modulingFunctionID = 1;
}
void Tool_RBF_HeightMap::addAnchorPoint(const glm::ivec3& pos) {
m_anchorPts.push_back(glm::ivec2(pos.x, pos.z));
... |
9a777e27ff08d6287c27ce2d035135b96f9b42a5 | 01341bca679e9a907a1462e1bfad39572d91b5f0 | /Beetle.NetPackage/Sources/Cpp/ByteArrayReader.h | 12c90bee5902983e9c1121333b5b5741a8d840a1 | [
"MIT"
] | permissive | yonglehou/IKendeLib | cf2693ee322e072e8dff4489aa3b3cbcf500a407 | 8e0db3277a306da50922d67df6b3828ea4ad257c | refs/heads/master | 2021-01-18T05:25:03.617900 | 2014-01-20T05:38:21 | 2014-01-20T05:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,032 | h | ByteArrayReader.h | #pragma once
using namespace System;
using namespace System::Collections::Generic;
using namespace System::Linq;
using namespace System::Text;
/**
* Original author:
* Copyright © henryfan 2013
* Created by henryfan on 2013-7-30.
* C++.NET Version:
* Edit by ForeverACMer on 2013-09-07.
* homepage:www.ikende.com
* ema... |
e555ced9101591996cd4560d3ffbe3ad7d5d45e3 | a8127e945b4c719037866e1ec2eb42cd238687e1 | /magicalstring.cpp | 2b315d38a3bd0a4e5b1ea4ee81abf190de7c3c52 | [] | no_license | darrinmwiley/Kattis-Solutions | efd638ad286582968dbad6cd7463783e8cf4ae1d | 4ef7402e7e667a12400d2167c1a9a585b173fbe8 | refs/heads/master | 2021-07-31T20:51:48.617983 | 2021-07-29T22:41:20 | 2021-07-29T22:41:20 | 80,001,676 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,550 | cpp | magicalstring.cpp | #include "bits/stdc++.h"
#include <algorithm>
using namespace std;
#define pb push_back
#define boolean bool
#define li long long int
string chars;
char become[1001];
int N;
int K;
bool canSpecialProp(char previous, int start)
{
if(start >= chars.length())
return false;
... |
15b9becfe7268fd278e732a86d1b31e45badb07e | 1cfd20fa175e1751d1441f32f990ece5423c484a | /algorithms/0079_WordSearch/0079_WordSearch.cpp | 17d810f6fbeb59f039c96fd2afe1d990fc6d4be2 | [
"MIT"
] | permissive | 243468234/leetcode-question | 9cdfc0db329d8b7b380674b1ebad8e05d624c6b8 | 35aad4065401018414de63d1a983ceacb51732a6 | refs/heads/master | 2022-11-25T13:30:42.650593 | 2020-08-02T07:43:48 | 2020-08-02T07:43:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,803 | cpp | 0079_WordSearch.cpp | class Solution {
public:
bool exist(vector<vector<char>>& board, string word) {
if (board.size() == 0 || board[0].size() == 0){
return false;
}
vector<vector<bool>> used(board.size(), vector<bool>(board[0].size(), false));
for (int i = 0 ; i < board.size(); i++){
... |
f14a5072d144fb820fe7a76e8ab3c472336aaff2 | c1c21dcb86d029ca0ea20f68a8a5144c0ffaeaf2 | /src/cylinder.cpp | 63215a9ebf0079c5ad5951daef13542cdf93b4e0 | [] | no_license | chrols/helios | b29d20ecbc887e423c265c937ef0c14720b1ad7e | 3c051971d25aa1e5d86bce7293d351918661f7cd | refs/heads/master | 2021-08-07T07:03:04.076532 | 2020-05-05T21:24:32 | 2020-05-05T21:27:36 | 169,152,098 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,517 | cpp | cylinder.cpp | #include "cylinder.hpp"
#include "common.hpp"
#include <limits>
Cylinder::Cylinder()
: m_minimum(-std::numeric_limits<double>::infinity()),
m_maximum(std::numeric_limits<double>::infinity()) {}
std::vector<Intersection> Cylinder::localIntersect(const Ray &r) const {
auto a = r.direction.x * r.direction... |
a6c5e9f1a0918fe7a3b4f0a70e7d48e4c923b5f7 | 60a15a584b00895e47628c5a485bd1f14cfeebbe | /comps/docs/ImageDoc/color.cpp | 64681cc44447335ac1f0e12c974792ec7bc07503 | [] | no_license | fcccode/vt5 | ce4c1d8fe819715f2580586c8113cfedf2ab44ac | c88049949ebb999304f0fc7648f3d03f6501c65b | refs/heads/master | 2020-09-27T22:56:55.348501 | 2019-06-17T20:39:46 | 2019-06-17T20:39:46 | null | 0 | 0 | null | null | null | null | WINDOWS-1251 | C++ | false | false | 60,074 | cpp | color.cpp | #include "stdafx.h"
#include "color.h"
#include <math.h>
#include "resource.h"
#include "ccmacro.h"
int nInterpolationMethod=-1; //метод интерполяции при увеличении
// 0 - по ближайшим соседям, 1 - билинейная
// -1 - прочитать значение из shell.data
int nMaskInterpolationMethod=-1; //метод интерполяции масок при увел... |
b7853b9c05408b6ac291249d1944e1a11d6b84ba | f06348a82c769832d06b522827649bab9bc463cb | /YHKim3_4/YHKim3_4.h | d6d87b41adcaccaf036c3bb2165be635e18e31a1 | [] | no_license | K-moovie/MFC | 5ffb89cdaaf937ea69d193283e4fbaaf99b6ea57 | d2b630021c5afc1b1631256f99faf89442c0f983 | refs/heads/master | 2020-08-07T16:19:11.051725 | 2019-12-16T14:16:05 | 2019-12-16T14:16:05 | 213,522,073 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 575 | h | YHKim3_4.h |
// YHKim3_4.h: PROJECT_NAME 응용 프로그램에 대한 주 헤더 파일입니다.
//
#pragma once
#ifndef __AFXWIN_H__
#error "PCH에 대해 이 파일을 포함하기 전에 'stdafx.h'를 포함합니다."
#endif
#include "resource.h" // 주 기호입니다.
// CYHKim34App:
// 이 클래스의 구현에 대해서는 YHKim3_4.cpp을(를) 참조하세요.
//
class CYHKim34App : public CWinApp
{
public:
CYHKim34App();
// 재정의... |
9aa99b3c68e351d1dfa121d6705b73d326e46b36 | 270337ba90758bb9155992a9cec8ec6d15d3ed43 | /Catch/src/itemshopcell.cpp | ef40811ba5eb0964f596df1873db15eb6f23d219 | [] | no_license | zester/Mezzanine | cef3e309ee60f4e0d2ce4510ac81aed3e755260b | 652ba585c681ef0420b50d1fcce5fe35733cf16d | refs/heads/master | 2020-12-25T11:41:24.883154 | 2013-09-24T00:56:42 | 2013-09-24T00:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,989 | cpp | itemshopcell.cpp | #ifndef _itemshopcell_cpp
#define _itemshopcell_cpp
#include "itemshopcell.h"
ItemShopCell::ItemShopCell(const String& name, const UI::RenderableRect& Rect, const String& ItemName, UI::Screen* parent)
: UI::Cell(name,parent)
{
Real LineHeight = Rect.Relative ? Rect.Size.Y * 0.25 : (Rect.Size.Y / ParentScreen-... |
57de1b6710448aa615cdcc80c3995c663e26b089 | ae0247be1c758efb09b1a862cc85754c7ae95f23 | /src/Include/DaliParser/rel_alg.h | 0e539d6bf0dedcefe230365f37e473a4fea56df3 | [] | no_license | rathodsachin20/mubase | 562680093dea13a5d0d2df71687be7e4cfa78c5f | 91bad1d9666d6a6f4a01caad1021f633b83217d8 | refs/heads/master | 2021-01-10T05:00:12.792001 | 2016-03-03T05:01:23 | 2016-03-03T05:01:23 | 48,962,359 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 14,392 | h | rel_alg.h | /* -*- c++ -*- */
#ifndef __REL_ALG_H__
#define __REL_ALG_H__
#include "ucbproto.h"
#include "list.h"
//#include "dali_rel_mgr.h"
//#include "dali_item_mgr.h"
class Memo_t;
class Project_t;
class SQLIterator;
class Equivalence_t;
class HashTable;
//bool GetRelInfo(const char *name_a, TransID &tid_a, Tu... |
b25a3ece3eea2d12b667ad772b0ab8ba4a7eea92 | 3c997c1f6e46c9b9a809e299a54b58956228d9e6 | /S2Sim/TerraswarmLibrary/SystemVersionPrompt.h | 2a083348b94221ebe7d6f296e77fffcb02f04a51 | [] | no_license | asakyurek/S2Sim | 8897805034e4202d8d6650dc36d2533d1c36ee64 | 7d8fae8d89d327423847deb40ec7164716e53f66 | refs/heads/master | 2020-05-17T03:33:37.659916 | 2014-07-08T03:55:36 | 2014-07-08T03:55:36 | 17,011,994 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,323 | h | SystemVersionPrompt.h | /**
* @file SystemVersionPrompt.h
* Defines the SystemVersionPrompt class.
* @date Apr 29, 2014
* @author: Alper Sinan Akyurek
*/
#ifndef SYSTEMVERSIONPROMPT_H_
#define SYSTEMVERSIONPROMPT_H_
#include "MessageHeader.h"
#include "MessageEnder.h"
namespace TerraSwarm
{
/**
* System Version Prompt mes... |
39d83962cb196ab0db294c0cc5ad46862982aaeb | f86fccc62916a20151e396fb95c256fbb0bd056f | /rct_examples/src/tools/noise_qualification_2d.cpp | 6a9568c59727ab9a8cc010239ee6a3aec930891d | [
"Apache-2.0"
] | permissive | Jmeyer1292/robot_cal_tools | d43098f2dde224d61fe64492e3fe5dcb25a967ec | 21d162720ec6902d6b0815adefb9b074e447f15a | refs/heads/master | 2022-05-23T07:57:15.929625 | 2022-05-17T16:24:33 | 2022-05-17T16:24:33 | 133,738,404 | 130 | 37 | Apache-2.0 | 2022-05-13T19:17:53 | 2018-05-17T00:43:03 | C++ | UTF-8 | C++ | false | false | 4,215 | cpp | noise_qualification_2d.cpp | #include <rct_optimizations/validation/noise_qualification.h>
#include <rct_ros_tools/data_set.h>
#include <rct_ros_tools/parameter_loaders.h>
#include <rct_ros_tools/target_finder_plugin.h>
#include <rct_ros_tools/loader_utils.h>
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <pluginlib/class_loa... |
926edfabdb3ddbfba650cc87d403818cdfa06590 | a7764174fb0351ea666faa9f3b5dfe304390a011 | /src/Xw/Xw_isdefine_typemap.cxx | 570f0ef1bf919ad49dd64fb22162613fa7332167 | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 830 | cxx | Xw_isdefine_typemap.cxx |
#include <Xw_Extension.h>
/* ifdef then trace on */
#ifdef TRACE
#define TRACE_ISDEFINE_TYPEMAP
#endif
/*
XW_STATUS Xw_isdefine_typemap (atypemap):
XW_EXT_TYPEMAP *atypemap
Returns XW_ERROR if Extended Typemap address is not properly defined
Returns XW_SUCCESS if Successful
*/
#i... |
8cf026a280e6cca63687d7a236feaab90ae0b629 | 3ec174d27d02ccd3102c0887430f5c7606d6f515 | /3dPolygons+Lighting/src/fileIO.cpp | 2c92b995b57a4ce58c2e4b3cd02a25376c90922b | [] | no_license | awhelan-school/ECS175 | 494564482342c2a011effc57e64e4221da9ed58c | b09c0158ce87b6c6ac9325a51c53a4ef997ed561 | refs/heads/master | 2021-08-20T06:55:34.132813 | 2017-11-21T05:32:27 | 2017-11-21T05:32:27 | 109,771,644 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,182 | cpp | fileIO.cpp | #include "fileIO.h"
vector<Material> Mat;
std::string inputFile("./input/test_objs.txt");
void readMaterials(vector<Material> &mat){
std::ifstream materials("./input/raw/raw_materials.txt", std::ios::in);
int token;
if(materials.is_open()){
// Get # of Materials
mater... |
ee1e26688b6276bcd40ee3471e09e6f82bf78a8e | b361b6a81e27f120d45aed8a6e46583a1b891a59 | /Source/UnrealArena/Public/SCharacter.h | 15b1109a59cdc74729a4d69e18dc012cb3a188a5 | [] | no_license | ZeroCoolX/UnrealArena | 8b88b84f4425600530528dd6a00180f82cd9e606 | 4783ea3d17247981e0f99b1f9b0fd9d33e5a6995 | refs/heads/master | 2020-06-14T19:27:16.280022 | 2019-08-20T20:54:52 | 2019-08-20T20:54:52 | 195,103,354 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,118 | h | SCharacter.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Character.h"
#include "SCharacter.generated.h"
class UCameraComponent;
class USpringArmComponent;
class ASWeapon;
class USHealthComponent;
UCLASS()
class UNREALARENA_API ASCha... |
12222557257df9ae345e97d7af0221db074fdc7e | 0103454b52923519a02260ade79ded03d345efa9 | /driver/port.build/module.numpy.testing.decorators.cpp | f9c7976dc885ab7adf2a8ec6a77ac78affe9217f | [] | no_license | podema/echo3d | 8c7722a942c187a1d9ee01fe3120439cdce7dd6b | 42af02f01d56c49f0616289b1f601bd1e8dbc643 | refs/heads/master | 2016-09-06T16:22:13.043969 | 2015-03-24T10:39:19 | 2015-03-24T10:39:19 | 32,747,234 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 327,333 | cpp | module.numpy.testing.decorators.cpp | // Generated code for Python source for module 'numpy.testing.decorators'
// created by Nuitka version 0.5.5.3
// This code is in part copyright 2014 Kay Hayen.
//
// 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 ... |
bf17eb18f549b39a65c33f377b99a8da935662fe | 37a368d47a664bf5156068ad65684359aaad9897 | /cpp/src/barretenberg/benchmark/honk_bench/ultra_honk.bench.cpp | 56c45d24ef010d4a1a3b5d2756ab9093c37c0efe | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | AztecProtocol/barretenberg | e35828f2ec58be737edf5af53d75f491bbc797fc | e5df3f2efe5db8c6ece54a6d1e4db876c9b788a2 | refs/heads/master | 2023-08-30T20:57:07.608894 | 2023-08-30T14:13:42 | 2023-08-30T14:14:20 | 574,999,978 | 58 | 29 | Apache-2.0 | 2023-09-12T16:37:34 | 2022-12-06T14:34:53 | C++ | UTF-8 | C++ | false | false | 2,282 | cpp | ultra_honk.bench.cpp | #include <benchmark/benchmark.h>
#include "barretenberg/benchmark/honk_bench/benchmark_utilities.hpp"
#include "barretenberg/honk/composer/ultra_composer.hpp"
#include "barretenberg/proof_system/circuit_builder/ultra_circuit_builder.hpp"
using namespace benchmark;
using namespace proof_system::plonk;
namespace ultra... |
d872db9d33024cf22ca517cef6b729066d0b71c6 | 2c4f360dc9bbfd5892e29341245e3374125d6b60 | /unitsLib/units-2.1/scalar/MagneticField.h | 39f345406eeb7c54f984205f71a721edae0cfccf | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | mitre/FMACM | d5549ed4b0e26e72d8186afc77a57e4f3833d864 | a9fb00aef7561d2cb35af1163b44dda55a48c85f | refs/heads/master | 2023-09-03T01:13:05.401619 | 2023-08-16T20:48:59 | 2023-08-16T20:48:59 | 35,225,860 | 11 | 4 | Apache-2.0 | 2018-06-27T18:07:04 | 2015-05-07T14:49:02 | C++ | UTF-8 | C++ | false | false | 883 | h | MagneticField.h | //
// $Id: MagneticField.h,v 1.1.2.1 2005-12-16 06:22:31 knicewar Exp $
//
// Copyright Keith Nicewarner. All rights reserved.
//
// Represent the abstract concept of a measure of magnetic field
// (current per units length). The internal representation of the
// units is hidden from the user.
//
#ifndef Units_Magne... |
914350b671aa2912185874004b5e4dbbe447f6cf | 7d9e50d1e5b0748180440d70fe16fc3b447f2e8d | /Practice/Exams/20172/III/prova3/questao1/iobserver.h | ced3eb419f8c497dc10bc46faefcd13d178f34d7 | [] | no_license | cjlcarvalho/patterns | b880c5e04e57d82b081e863b09e3deb54698b086 | 4f9cf15df161bb82ecd52d3524ae7d44ada8b991 | refs/heads/master | 2021-09-13T02:23:48.068664 | 2018-04-23T23:17:34 | 2018-04-23T23:17:34 | 111,008,981 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 152 | h | iobserver.h | #ifndef IOBSERVER_H
#define IOBSERVER_H
class ISubject;
class IObserver
{
public:
virtual void update(ISubject *s) = 0;
};
#endif // IOBSERVER_H
|
2ddfebdbddbb6b008f7effc453489ca8a94bae8d | 6c4b0b422d16efe9c16483baf17f1529a674d421 | /Base/CHTTPClient.cpp | 2a7a66f318e0120990a3dbe68736d2d178be933f | [] | no_license | Fengerking/bangStock | 04e9b6a1e77f4470d042fc17c73bafd229ddd4c3 | 62f26b1597bb2013c4b84fcc2e0ef2e8f96e3e30 | refs/heads/master | 2021-01-19T10:53:11.577776 | 2017-04-13T14:50:42 | 2017-04-13T14:50:42 | 87,909,425 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 31,587 | cpp | CHTTPClient.cpp | /*******************************************************************************
File: CHTTPClient.cpp
Contains: http client implement code
Written by: Bangfei Jin
Change History (most recent first):
2017-01-06 Bangfei Create file
******************************************************************... |
5393a4d71f9734417df9df83bdbd9a2caa281f58 | 9c3c0462e8c59e56e41e315e7738ca9fec81a6e9 | /sum_of_n_number.cpp | 0f89ea5926aa98c0011a0c430e71b8fbc9b358e2 | [] | no_license | AN-2000/CPP_Basics | 65a7ac645704527050ad482aff034cd182964d7c | 608067c692cd445c9d347123b744ed2f420cd98b | refs/heads/master | 2022-12-03T11:56:57.220945 | 2020-08-20T03:19:15 | 2020-08-20T03:19:15 | 271,737,930 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 271 | cpp | sum_of_n_number.cpp | #include <iostream>
using namespace std;
int main(){
int n, i = 1, sum = 0; //initial condition
//Input
cin>>n;
while(i<=n){ //Stoping condition
sum = sum + i;
i = i + 1; //Update condition
}
cout<<"sum:"<<sum;
return 0;
}
|
d4e83bea03df085a23a8495dc17e5356c401b2ee | 88ae8695987ada722184307301e221e1ba3cc2fa | /third_party/skia/src/core/SkChromeRemoteGlyphCache.cpp | efe31ec081a7e5e013d3e13e8db6b7955d68b5d3 | [
"BSD-3-Clause",
"Apache-2.0",
"LGPL-2.0-or-later",
"MIT",
"GPL-1.0-or-later"
] | permissive | iridium-browser/iridium-browser | 71d9c5ff76e014e6900b825f67389ab0ccd01329 | 5ee297f53dc7f8e70183031cff62f37b0f19d25f | refs/heads/master | 2023-08-03T16:44:16.844552 | 2023-07-20T15:17:00 | 2023-07-23T16:09:30 | 220,016,632 | 341 | 40 | BSD-3-Clause | 2021-08-13T13:54:45 | 2019-11-06T14:32:31 | null | UTF-8 | C++ | false | false | 48,164 | cpp | SkChromeRemoteGlyphCache.cpp | /*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/private/chromium/SkChromeRemoteGlyphCache.h"
#include "include/core/SkDrawable.h"
#include "include/core/SkFont.h"
#include "include/core/SkSpan.h"
#include... |
0a63529f61e15206e1b56ff20d2e9b6222020963 | bd9fb8b7cab112ea7caca4e8c5fa2a5833020d30 | /ESP8266example/Thermostat/Thermostat.ino | 67b573de471a402164c1675134d7d5e88d459a55 | [
"MIT"
] | permissive | kikeelectronico/Homeware-LAN | fc053c690eafac06e12b683023cfd2b393f887c8 | 4a8ea10ed7e911257d3ea86d46809623f3c3b525 | refs/heads/master | 2023-08-22T18:24:11.801573 | 2023-08-04T17:36:03 | 2023-08-04T17:36:03 | 233,239,354 | 53 | 28 | MIT | 2023-09-14T04:38:31 | 2020-01-11T13:51:27 | JavaScript | UTF-8 | C++ | false | false | 4,587 | ino | Thermostat.ino | #include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <EEPROM.h>
#include <Wire.h>
#include <Adafruit_BMP280.h>
#include <SPI.h>
// This example receibes shows via serial port both the mode and the temperature setpoint of the
// a thermostat. It alse send the real temperature readin... |
725a8286de2db1f5f40f350b525a6e029f106065 | 840faa97d44492f7435ba042e2c1312de99f4ea3 | /src/kudu/clock/system_unsync_time.h | 5179b3f3af9e61ff37826d14b91bc7ecd5be0176 | [
"OpenSSL",
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-openssl",
"LicenseRef-scancode-ssleay-windows",
"LicenseRef-scancode-google-patent-license-webrtc",
"LicenseRef-scancode-unknown-license-reference",
"dtoa",
"MIT",
"BSL-1.0",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode... | permissive | apache/kudu | c05fad4ea1cf48a650e99b2fb6917f19a790bd3d | ecb51af801bd1bf40d0216b0697bf7e5765461d5 | refs/heads/master | 2023-08-31T23:18:23.205496 | 2023-08-28T21:54:50 | 2023-08-29T19:16:49 | 50,647,838 | 1,757 | 698 | Apache-2.0 | 2023-08-17T13:36:43 | 2016-01-29T08:00:06 | C++ | UTF-8 | C++ | false | false | 1,596 | h | system_unsync_time.h | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... |
6b254940a4c869aabfd0d5125f370c96d89655ff | 3ce84c6401e12cf955a04e3692ce98dc15fa55da | /core/camerafixture/wildcardablePointerPair.h | f4934a2ec83ab0e4248ea583872a267fed907251 | [] | no_license | PimenovAlexander/corecvs | b3470cac2c1853d3237daafc46769c15223020c9 | 67a92793aa819e6931f0c46e8e9167cf6f322244 | refs/heads/master_cmake | 2021-10-09T10:12:37.980459 | 2021-09-28T23:19:31 | 2021-09-28T23:19:31 | 13,349,418 | 15 | 68 | null | 2021-08-24T18:38:04 | 2013-10-05T17:35:48 | C++ | UTF-8 | C++ | false | false | 1,631 | h | wildcardablePointerPair.h | #ifndef WILDCARDABLEPOINTERPAIR_H
#define WILDCARDABLEPOINTERPAIR_H
#include <unordered_map>
namespace corecvs {
template<typename U, typename V>
class WildcardablePointerPair
{
public:
#if !defined(WIN32) || (_MSC_VER >= 1900) // Sometime in future (when we switch to VS2015 due to https://msdn.microsoft.com/library... |
4c8aed6318729bec775ad8754a100543db73a111 | 7cd9751c057fcb36b91f67e515aaab0a3e74a709 | /testing/variable_storage/ConstantIntensityIC.cc | c98a4833ce55e43003bd50d135a538fb4c0c4bd3 | [
"MIT"
] | permissive | pgmaginot/DARK_ARTS | 5ce49db05f711835e47780677f0bf02c09e0f655 | f04b0a30dcac911ef06fe0916921020826f5c42b | refs/heads/master | 2016-09-06T18:30:25.652859 | 2015-06-12T19:00:40 | 2015-06-12T19:00:40 | 20,808,459 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,758 | cc | ConstantIntensityIC.cc | #include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include "Input_Reader.h"
#include "Cell_Data.h"
#include "Intensity_Data.h"
#include "Angular_Quadrature.h"
#include "Materials.h"
#include "Fem_Quadrature.h"
#include "Quadrule_New.h"
#include "Dark_Arts_Exception.h"
int main(in... |
806727c3361f24350a01c0eadbe8c01ad3950ebc | 1d0a8eba3a188c584b396cc90231e0126668817f | /lab10/prelab/heap.h | 1919fe15f2d4b552a1509e0912898955a4bb778d | [] | no_license | shahrozimtiaz/shahrozimtiaz.github.io | 98262a9cd6c2ee10d177046b792f50116fefa913 | ed91df8b96117022ca6113473c5129b80bc94e0c | refs/heads/master | 2020-04-15T09:40:53.370161 | 2020-03-05T19:53:24 | 2020-03-05T19:53:24 | 164,561,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | h | heap.h | //Name:Shahroz Imtiaz
//Email ID:si6rf
//File Name: heap.h
//Date:11/25/2018
//*NOTE: Some heap code was taken from the lecture slides and modified*
//ORIGINAL CODE:
// written by Aaron Bloomfield, 2014
// Released under a CC BY-SA license
// This code is part of the https://github.com/aaronbloomfield/pdr repository
... |
5bf39496356d5c4547ccf91cbb1b75838c2a531b | a7764174fb0351ea666faa9f3b5dfe304390a011 | /inc/Handle_LocOpe_HBuilder.hxx | 231bcd880742302d40bd974d28fe8387cd7b5861 | [] | no_license | uel-dataexchange/Opencascade_uel | f7123943e9d8124f4fa67579e3cd3f85cfe52d91 | 06ec93d238d3e3ea2881ff44ba8c21cf870435cd | refs/heads/master | 2022-11-16T07:40:30.837854 | 2020-07-08T01:56:37 | 2020-07-08T01:56:37 | 276,290,778 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 829 | hxx | Handle_LocOpe_HBuilder.hxx | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Handle_LocOpe_HBuilder_HeaderFile
#d... |
af668ce7351a1be9511601cfc9dbd6209e42258c | 2e4d2c7ca022d30d85e8f2bb6262462868a77441 | /DP/alex and a rhombus.cpp | c5fc54920b7934d1a0542550caf6825607fdf9e2 | [] | no_license | AdityaGirishPawate/Codeforces | 24412e19bfb3bfa1bc139377f05e5e9bb128cd8f | c63550e0e2e8319bf0a893240ecd23d905abe84a | refs/heads/master | 2022-11-21T12:54:37.590639 | 2020-07-29T16:11:00 | 2020-07-29T16:11:00 | 269,074,389 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 216 | cpp | alex and a rhombus.cpp | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
ll n,i;
cin>>n;
vector<ll> a(n);
a[0]=1;
for(i=1;i<n;i++)
a[i]+=a[i-1] + 4*i;
cout<<a[i-1]<<endl;
}
|
1110f26caa9f28a69fd75a35fa68060cd2965c8c | 59b2d9114592a1151713996a8888456a7fbfe56c | /uva/10878.cpp | 3ffc518795a8c64f5aa1fc4973a445224ccbbefe | [] | no_license | 111qqz/ACM-ICPC | 8a8e8f5653d8b6dc43524ef96b2cf473135e28bf | 0a1022bf13ddf1c1e3a705efcc4a12df506f5ed2 | refs/heads/master | 2022-04-02T21:43:33.759517 | 2020-01-18T14:14:07 | 2020-01-18T14:14:07 | 98,531,401 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,081 | cpp | 10878.cpp | /* ***********************************************
Author :111qqz
Created Time :2016年01月25日 星期一 09时40分29秒
File Name :code/uva/10878.cpp
************************************************ */
#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#in... |
90e9af9022d90236a7ef5834add4a6d382d9f33a | da84df7dcc8dfe8e28cd0925e6f6c400c4caf55a | /projet-musique/core/bddrel_playlist.h | 60db19b1da7d239bb1b14b49ab7bbecd27170431 | [] | no_license | toopoormaghell/projet-musique | 4f2664d091d4480b526c2bbbc34633d01412449e | e0407261c496444cd81178c70e47bb899dacb851 | refs/heads/master | 2021-05-22T04:32:06.924158 | 2021-01-23T17:14:05 | 2021-01-23T17:14:05 | 16,050,891 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 373 | h | bddrel_playlist.h | #ifndef BDDREL_PLAYLIST_H
#define BDDREL_PLAYLIST_H
#include <QObject>
#include "bddsingleton.h"
class BDDRel_Playlist: public QObject
{
Q_OBJECT
public:
explicit BDDRel_Playlist(QObject* parent = nullptr);
void AjoutRel_Playlist(int id_playlist, int id_relation);
void AjouterAlbumEnPlaylist(int id_playl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.