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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
dcfa040adbb5e5bc7a263ecc5a42ac8850f2ab10 | 229f25ccda6d721f31c6d4de27a7bb85dcc0f929 | /solutions/Light oj/1170 - Counting Perfect BST/solution.cpp | a8db49cb822450c4318927e6670010c91c618e4a | [] | no_license | camil0palacios/Competitive-programming | e743378a8791a66c90ffaae29b4fd4cfb58fff59 | 4211fa61e516cb986b3404d87409ad1a49f78132 | refs/heads/master | 2022-11-01T20:35:21.541132 | 2022-10-27T03:13:42 | 2022-10-27T03:13:42 | 155,419,333 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,569 | cpp | solution.cpp | #include <bits/stdc++.h>
#define endl '\n'
#define ll long long
using namespace std;
const int MXN = 1000010;
const ll MOD = 100000007;
ll powers[203800], it;
ll catalan[MXN];
ll fact[2*MXN + 5];
void precalc() {
it = 0;
for(ll i = 2; i <= 100001; i++) {
ll num = i * i;
while(num <= 1000000000... |
e670f50aa11360fd6cbb76ae66f6fabb8eb23ffe | eb061074ad2edc79f5025fc0845aae8cbe90bed9 | /src/kernel/latte.cpp | a8766403b367bc961b2a28f0415a5de772f319a1 | [] | no_license | dobrypd/LatteCompiler | e8204d54a737c872652a717018704d92c2318e94 | 5ba6b99684802a1ad540e3876afb5bf02d5c31cc | refs/heads/master | 2016-09-06T21:26:35.294825 | 2013-02-21T10:03:20 | 2013-02-21T10:03:20 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,500 | cpp | latte.cpp | /*
* Author: Piotr Dobrowolski
* pd291528@students.mimuw.edu.pl
*
*/
#include <iostream>
#include <stdlib.h>
#include <stdio.h>
#include "Absyn.H"
#include "ParserManager.h"
#include "ASTChecker.h"
#include "ErrorHandler.h"
#include "FunctionLoader.h"
#include "ReturnsChecker.h"
#include "ASCreator.h"
using std::... |
46ddc2e01da3dc0203e84b8b26a4dff7080315ae | 42116af1de0bd7bf4b6ffd61df92cd43134350da | /Handle-fw/SC182029-FISTS-V1R0/SC182029-FISTS-V1R0.ino | cc02ead2d02b9cccfaf538e1c053d7926b740e48 | [
"CC-BY-4.0"
] | permissive | TaISLab/WalKit | b19e98c6d1dd09dffddfecba42393c34aa78bade | e142461568d6e14769d5ae74012704ba7e2f406e | refs/heads/master | 2023-07-10T01:24:32.471347 | 2022-07-14T11:57:52 | 2022-07-14T11:57:52 | 239,744,056 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,341 | ino | SC182029-FISTS-V1R0.ino | /* ================================================================
Proyecto: Modulo de empuñadura en andador para UMA
Placa de desarrollo: Arduino
Función: Mide el peso ejercido sobre la empuñadura del andador,
establece un color, una vibración y recibe/envía los
datos a través del BUS ... |
b8f006a009dc07cc6138e751c3804abc475f4243 | eef2a60bb909f9f077e6bf72af54666d10ffd686 | /DX11_Base/src/win/Window.h | 9ca75b068c61fa9e1f31cc7f0115580086cebccf | [
"MIT"
] | permissive | futamase/DX11_lib | 94df35a7e05c8644fde6bd0fdb52ca9da362a572 | b7f979565b6fb94a4eeca45aa390620e951b8595 | refs/heads/master | 2020-04-26T18:17:41.477333 | 2019-03-04T12:42:57 | 2019-03-04T12:42:57 | 173,740,539 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,635 | h | Window.h | /**
* @file Window.h
* @brief ウィンドウを管理する
*/
#pragma once
#include <cstdio>
#include <Windows.h>
#include <tchar.h>
#include <string>
/**@namespace Win
*/
namespace Win
{
using tstring = std::basic_string < TCHAR >;
/**@brief ウィンドウを管理する
*/
class Window
{
private:
HWND m_hWnd;
HINSTANCE m_hInst... |
319f59f4a3b8cb908c2c40d94f6399ff0040f415 | 98f87bb7324a20f0d65d825666851dd8fb83ccb1 | /CF/palind.cpp | 479389ee3e2d25af71603f468ca12042dabe607c | [] | no_license | perticascatalin/ProblemSolving | b1de0b8c986583ced6cf42974fc4d16d34dcb5c6 | ae5ffba9475b25c1fe97c30d5e39dc0cfaa61845 | refs/heads/master | 2023-03-14T20:22:01.360934 | 2023-02-22T12:18:27 | 2023-02-22T12:18:27 | 234,737,794 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,882 | cpp | palind.cpp | #include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstring>
#include <vector>
#include <string>
#include <list>
#include <algorithm>
using namespace std;
#define NM 105
int pal[NM][NM];
int pos[NM];
int is_pal[NM];
int used[NM];
vector <string> words;
list <int> front;
list <int> back;
int middle;
... |
8c2f7bfb721518b38db29de902faec04c222caa5 | 1b3d343ce1e8dfbacc3c698294798d0abd52c9a2 | /Deploy/Instance/EEuclideo.50.50.2.tpp | d88ba066a415318146a528f36a385f718be56c85 | [] | no_license | lyandut/MyTravelingPurchaser | 3ecdf849bd19473e92742ed4c6d8d99078351fd0 | dca14f3d31e185c1a6f7bbd4a2e7a5cb3b0bd08c | refs/heads/master | 2020-05-02T06:10:47.227729 | 2019-04-19T07:50:53 | 2019-04-19T07:50:53 | 177,788,811 | 0 | 1 | null | 2019-04-19T07:50:54 | 2019-03-26T12:56:50 | C++ | UTF-8 | C++ | false | false | 9,071 | tpp | EEuclideo.50.50.2.tpp | NAME :
TYPE : TPP
COMMENT :
DIMENSION : 50
EDGE_WEIGHT_TYPE : EUC_2D
DISPLAY_DATA_TYPE : COORD_DISPLAY
NODE_COORD_SECTION :
1 320 383
2 883 49
3 82 344
4 795 534
5 375 735
6 612 441
7 28 711
8 872 270
9 294 162
10 585 95
11 156 485
12 261 252
13 902 471
14 832 249
15 99 368
16 73 419
17 751 956
18 468 834... |
6735ad5a1d9d256af3457a19b2bff718b06a3631 | 3fa764606c1c2deb24623cf3448d338b8338c47d | /mycontactlistener.cpp | b162b571285507b92284cec1e125c99faa66980d | [] | no_license | IvelinChalov/Bob-s-world | de6a6fd0714750a073e010903070a899c6acaa44 | db5b4fab2f85dda61c2d8b2b11d410b70aae43dc | refs/heads/master | 2021-01-10T16:26:53.208169 | 2016-02-17T18:56:37 | 2016-02-17T18:56:37 | 51,916,453 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,503 | cpp | mycontactlistener.cpp | #include "mycontactlistener.h"
#include <string>
#include <cmath>
#include "Entity.h"
#include <iostream>
#include <QDebug>
// if(!have_joint) {
// b2RopeJointDef rope_joint_def;
// rope_joint_def.collideConnected = true;
// rope_joint_def.bodyA = contact->GetFixtureA()->GetBody();
// rope_joi... |
3ccd023ca90a28bcb3997c3563767c66954d88e9 | 8e679f1c3edde15bb4051dba8723690cbb6b1ecd | /src/Hooks.cpp | a5da7d9db43fa18f9c32d7ca0c0d8b3b8d8ec77d | [
"MIT"
] | permissive | sharebright/task | 11b6e57c481a7b61aad092d37e10b7b4b2677967 | 00204e01912aeb9e39b94ac7ba16562fdd5b5f2c | refs/heads/master | 2021-05-27T06:17:12.822049 | 2014-01-15T23:23:16 | 2014-01-15T23:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,941 | cpp | Hooks.cpp | ////////////////////////////////////////////////////////////////////////////////
// taskwarrior - a command line task list manager.
//
// Copyright 2006-2014, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docume... |
2eae80aa346337cb5a24cb12f304e8a9538f64f1 | 2fdfba54bbeca28ebe1d9e39c39bbb5053e7da72 | /splitMergeRGB.hpp | 79fd607d35f9c7eb6e136cf38c0f42c78362fd5a | [] | no_license | GawainGao/cattleImageProcessing | c9db6dd4fdd5150502bd4bf876d7a711817d718c | 04a7207ddabf6142a884ac36b3658f2bf2945239 | refs/heads/master | 2020-04-19T17:18:20.400595 | 2019-01-30T11:24:36 | 2019-01-30T11:24:36 | 168,330,918 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 524 | hpp | splitMergeRGB.hpp | //
// splitMergeRGB.hpp
// New_cattle
//
// Created by 高源 on 2018/11/27.
// Copyright © 2018 Gao Yuan. All rights reserved.
//
#ifndef splitMergeRGB_hpp
#define splitMergeRGB_hpp
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>... |
d6aa80ab50d812ca4b189d388de2589a6dd4bae3 | 077b52d6bf4438d2e0172531ba6acb27b1aaf8dd | /Inheritance/11/waterconsumer.hpp | 93631b9a2afffd7fb48409dcbe93456ead1e5512 | [] | no_license | bmvskii/OOP | a41ccf5a9862f6f112e8a82a25462bac4c605a64 | 810ad97eb418024cfac7beb66a8fff76cae73b90 | refs/heads/master | 2020-03-25T02:03:42.824530 | 2019-08-01T13:31:00 | 2019-08-01T13:31:00 | 143,271,973 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,798 | hpp | waterconsumer.hpp | // (C) 2013-2016, Sergei Zaychenko, KNURE, Kharkiv, Ukraine
#ifndef _WATERCONSUMER_HPP_
#define _WATERCONSUMER_HPP_
/*****************************************************************************/
#include <string>
class WaterConsumer
{
/*-----------------------------------------------------------------*/
public... |
b9ceb5d764531f36592375172aa12beebb69d155 | b9f6fec7dfa6eb01f2701bcf4bd9bff1e8c53e22 | /Dia da semana.cpp | 8b245c30ebed5ea4c3de5782ed64383ee1e0e0bb | [] | no_license | lrgsouza/SoftwareEngUniversityP1 | eb0651fc39451b40a7e4acc7e4336f0476ce5237 | d9ddf6e3fc54b9423f17fb6f35cbf98f9846ce65 | refs/heads/main | 2023-03-27T17:06:44.350017 | 2021-03-18T02:35:35 | 2021-03-18T02:35:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | Dia da semana.cpp | #include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
int D,M,A,DELTA,GX,FX,N,DS;
double F,G;
// GX = int(365.25*g)
// FY = int(30.6*f)
// ENTRADAS
cin >> D >> M >> A;
//FORMULAS 1 (DEFINE G e F)
if (M <= 2){
G = A -1;
F = M + 13;
... |
9fbe35e71e045d33978ed6380945f8bac7b8bddf | c44e52880af2528055441630fe3850bea2cb4c37 | /C++/uva11942.cpp | 633ff8933f25eb48aa0d7963dfcf4d86928c23c6 | [
"MIT"
] | permissive | MrinmoiHossain/Uva-Solution | f89df917eb608243e621f43f3e8e9ec9b6c69c76 | 85602085b7c8e1d4711e679b8f5636678459b2c5 | refs/heads/master | 2021-01-19T19:39:40.880868 | 2018-12-28T17:26:15 | 2018-12-28T17:26:15 | 88,434,419 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 741 | cpp | uva11942.cpp | //Accepted
#include <bits/stdc++.h>
using namespace std;
int main(void)
{
int N;
cin >> N;
vector<int>a(10);
vector<bool>c(N);
for(int i = 0; i < N; i++){
for(int j = 0; j < 10; j++){
cin >> a[j];
}
int pcon = 0, ncon = 0;
for(int j = 1; j < 10; j++){
... |
acb9582096cf3aa8166ab7820590d4312fb00174 | c47089ceb4e1edfe000a7e70d6063b940b492798 | /fifo/Worker.cpp | e6fb3ad32737705a11e5cdd8e8b7942bdb3cf5a9 | [] | no_license | kukhterin/first | 1ae8d2df084c22c2d811029e6989f485e793f8bf | 64fa0b3a20fd91f90764c090c4b2c58b97e40bac | refs/heads/master | 2020-12-02T06:38:24.621125 | 2017-11-08T09:44:07 | 2017-11-08T09:44:07 | 96,868,693 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 418 | cpp | Worker.cpp | #include <iostream>
#include <cstdio>
#include <string.h>
#include "Worker.hpp"
Worker::Worker(NamedPipe &p) : pipe_(p)
{
run();
}
void Worker::run()
{
std::string stop = "stop";
std::string empty = "";
while(true)
{
std::string result = (pipe_.answer());
if(result == stop)
break;
if(result == empt... |
2ae8a7c3fbc033290ad4726333b78c9086b0abf0 | eee894fbc325926cdd66538ee65eb889203387a7 | /A little work/HuffCodeNode.h | c60da3c7c7e6d3b4a202bbb5747660378f830dc6 | [] | no_license | deadpool10086/love-C | e94bb3cc078cd75ea065f01c9ab6bd81a12ca34c | 22e804120c4786bd745e2cdd9b023601830d96c8 | refs/heads/master | 2020-01-23T21:48:39.953420 | 2017-01-04T10:40:33 | 2017-01-04T10:40:33 | 74,674,585 | 0 | 0 | null | 2016-11-25T09:03:51 | 2016-11-24T13:13:17 | null | UTF-8 | C++ | false | false | 782 | h | HuffCodeNode.h | class HuffCodeNode
{
private:
unsigned int *data_;
int size_;
public:
HuffCodeNode()
{
data_ = 0;
size_ = 0;
}
HuffCodeNode(unsigned int *data, int size)
{
size_ = size;
data_ = new unsigned int[size / 32 + 1];
for(int i=0; i<size/32+1; i++)
{
data_[i] = data[i];
}
}
voi... |
cd6e397be50094c4ef7bf312ac3f3f3137e66b71 | ed50f4016f02cb71341a30466127b85a7956dbd4 | /PlayerManager.h | dd53ddd88935f488773b05d439bf0c6a11c7d867 | [] | no_license | wakeup5/Sword-Is-Desert | b4fc456791cc88aa31db9f5c1dfa094ffcffcdcf | 97f2a6144c84411d68668431fd474518ad521dd9 | refs/heads/master | 2021-01-22T05:32:38.696110 | 2017-05-26T05:09:30 | 2017-05-26T05:09:30 | 92,474,362 | 0 | 0 | null | null | null | null | UHC | C++ | false | false | 882 | h | PlayerManager.h | #pragma once
#include "Singleton.h"
class Player;
class Inventory;
class Equipment;
class Mercenary;
class Pet;
class Around_Dust;
class Dust;
class PlayerManager : public Singleton < PlayerManager >
{
private:
Player* _player;
Inventory* _inven;
Equipment* _equip;
cXMesh_Static* _bowMesh;
Mercenary* _mercenar... |
baf4aae2dc74d7d1a1dda30113b761e90c587152 | 5becf25573322e1e5d3a24364727ed34fe315850 | /contrib/bootserv/src/handler.hpp | 7327e900c711d5049d7ea5323cd1288a88ec74cc | [
"CC0-1.0",
"Zlib",
"GPL-3.0-only"
] | permissive | despair86/loki-network | c6eec559121aa8dfdbf0af143f03ea0bae79ea34 | 45c556ca598d2b2df94e620fe1b33a65046217c8 | refs/heads/master | 2021-06-21T04:07:49.616979 | 2020-04-21T22:50:23 | 2020-05-01T22:37:06 | 142,740,572 | 0 | 0 | Zlib | 2018-07-29T07:35:41 | 2018-07-29T07:35:41 | null | UTF-8 | C++ | false | false | 845 | hpp | handler.hpp | #ifndef LOKINET_BOOTSERV_HANDLER_HPP
#define LOKINET_BOOTSERV_HANDLER_HPP
#include <iostream>
#include "lokinet-config.hpp"
namespace lokinet
{
namespace bootserv
{
struct Handler
{
Handler(std::ostream& o) : out(o){};
virtual ~Handler(){};
/// handle command
/// return exit code
... |
1015ff676d824b9b64df3738a22c95f170ef926f | ebc866b438ee6281d9f9f66b10d47059a561247d | /src/data_source.h | aa5943e4a02646c2037b71b3c3e8cab4d337d38e | [] | no_license | AliMehrpour/SelfDrivingCar-Term2-P1-ExtendedKalmanFilter | 60ed716442c6590feddc6246329d486517a6d473 | 402752f9a4c4e2cc2268351831fb9d407e10111d | refs/heads/master | 2021-01-19T19:08:55.468679 | 2017-04-17T16:00:45 | 2017-04-17T16:00:45 | 88,400,663 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 699 | h | data_source.h | /*
* data_source.h
*
* Created on: Apr 9, 2017
* Author: Ali Mehrpour
*/
#ifndef DATA_SOURCE_H_
#define DATA_SOURCE_H_
#include <vector>
#include <iostream>
#include "data.h"
using namespace std;
using std::vector;
/**
* Load measurement and ground truth data
*/
class DataSource {
public:
vector<Data... |
2b891550af9f0312179ef7597f30a1c562251e9a | 24c3b6ee3e2b06288bed587e34751969b4a73e31 | /Codeforces/ProblemSet/1333/F.cpp | d7ea8ba4b1c2b0bf1d2eb3eb22f8dca1510c9092 | [] | no_license | KatsuyaKikuchi/ProgrammingContest | 89afbda50d1cf59fc58d8a9e25e6660334f18a2a | d9254202eec56f96d8c5b508556464a3f87a0a4f | refs/heads/master | 2023-06-05T20:07:36.334182 | 2021-06-13T13:55:06 | 2021-06-13T13:55:06 | 318,641,671 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 840 | cpp | F.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll, ll> pll;
#define FOR(i, n, m) for(ll (i)=(m);(i)<(n);++(i))
#define REP(i, n) FOR(i,n,0)
#define OF64 std::setprecision(10)
const ll MOD = 1000000007;
const ll INF = (ll) 1e15;
ll P[500005];
int main() {
cin.tie(0);
i... |
149129492f6999d30b6338446dc7a04031d5246b | 421d70efa4bd31b613fb8ce467ef20507860e4e7 | /Project3Part2Submission2/Actor.h | 5048578699694482baa722f894b456f56c37c394 | [] | no_license | mntxca/CS-32-Projects | 847ab69073beaf4b6baaeb1a913293eddca539d4 | 21b9b81e05eb6c5001080177863dae8b7adfab0d | refs/heads/main | 2023-07-13T21:47:47.225059 | 2021-08-29T00:44:11 | 2021-08-29T00:44:11 | 400,919,310 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 17,602 | h | Actor.h | #ifndef ACTOR_H_
#define ACTOR_H_
#include "GraphObject.h"
// Students: Add code to this file, Actor.cpp, StudentWorld.h, and StudentWorld.cpp
//#1 of part 1
#include "StudentWorld.h"
class GhostRacer;
class StudentWorld;
class Actor : public GraphObject //#1 p2: derived from GraphObject class
{
public:
Actor(int i... |
42d0a975438e6722e4a9df696303432937139a58 | 6c40b92de13b247e682fe703899293b5e1e2d7a6 | /MyProjects/CODE_LAB/src/flash.cpp | 71fd39b147756b216d275dd22c96257f68ef92d6 | [] | no_license | ismdeep/ICPC | 8154e03c20d55f562acf95ace5a37126752bad2b | 2b661fdf5dc5899b2751de7d67fb26ccb6e24fc1 | refs/heads/master | 2020-04-16T17:44:24.296597 | 2016-07-08T02:59:01 | 2016-07-08T02:59:01 | 9,766,019 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 669 | cpp | flash.cpp | #include <iostream>
#include <windows.h>
#include <time.h>
using namespace std;
string colorInstruction = "color 80";
void iChangeColor(int background, int colorValue)
{
if (background == 1 || background == 2)
{
colorInstruction[6] = ('8' + background);
}
else
{
colorInstruction[6] = ('A' + ba... |
00948181f5f3cdec4857994477c8dff5fb39ee71 | 3eafea92a3b829aa6dd01674477f2b1d9fd1aadf | /examples/ExtFonts/ExtFonts.ino | 1154440e37c3722d49e756b95a0f1bd2bf7caf33 | [] | no_license | hwreverse/easyT6963 | 27d2d2ca512ae6c72941f6c5bcd7c96c913ce5eb | 97313d744f5a8fd64d6325f0b482c029db8f3595 | refs/heads/master | 2020-05-04T16:34:37.106483 | 2015-03-07T22:34:02 | 2015-03-07T22:34:02 | 179,281,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,877 | ino | ExtFonts.ino | #include <SPI.h>
#include <mcp23s17.h> // needed!
#include <T6963_SPI.h>
#include "fonts/Dubsteptrix__12.h"
#include "fonts/Imagine_FontFixed__6.h"
/*
monoMMM_Fixed__6
Square_HeadCon_Fixed__9
M39_SQUAREFUTURE_Fixed__5
Indieutka_PixelFixed__12
Imagine_FontFixed__15
Imagine_FontFixed__6
genown_one_fixed__5
Dubst... |
d86cb56afffa5dcbf61386397bab24de04448095 | 80a555214e269fcba94854fac351399f4a3d6e66 | /pybindings/src/cv_uncc_module.hpp | a0a61a309cd94217f90ae1b8c94ac6c2c758aedd | [] | no_license | uncc-visionlab/ros_rgbd_surface_tracker | 3ef8fa9681891fc36730a5a82532c2094c9e7971 | 0eb66f2cce8b726d7fa5b0564f8e4631a329b9c1 | refs/heads/master | 2023-06-08T19:18:32.300132 | 2021-05-17T03:10:51 | 2021-05-17T03:10:51 | 325,326,522 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | hpp | cv_uncc_module.hpp | #ifndef BVMODULE_H
#define BVMODULE_H
// header file contents go here...
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
namespace cv_uncc {
namespace rgbd {
CV_EXPORTS_W void fillHoles(Mat &mat);
class CV_EXPORTS_W Filters
{
public:
CV_WRAP Filters();
CV_WRAP void edge(InputArr... |
d8be765dab0ca659d4e8609041e82a4eea809210 | 53bdf5b903694564d03521ef3105c1b03dfd1ca9 | /heap-sort.cpp | a5596f50fe2b68a672711ffea9c127f061668601 | [] | no_license | kapildeshpande/DSA | d02a83ce30bf95597d98e347975d3f1127817acf | 9c029628d17bd1d69c921d4a3f3bbd87b8ab8568 | refs/heads/master | 2021-12-27T19:06:14.975379 | 2021-08-02T07:17:49 | 2021-08-02T07:17:49 | 92,045,830 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 940 | cpp | heap-sort.cpp | #include<iostream>
using namespace std;
int a[50], temp,n;
void build_heap ();
void heapify (int i, int m);
void heapsort () {
build_heap();
int m=n;
while (m>=2)
{
temp=a[1];
a[1]=a[m];
a[m]=temp;
cout<<a[1]<<" "<<a[m]<<"\n";
m=m-1;
heapify (1,m);
}
}
void build_heap () {
for (... |
a0a924d66d2a8227511c6774b19a0870783d49b4 | 3dff775734ba488f4badaae1e0b68abb53a8b0c2 | /adspc++2code/QueueLi.cpp | 0f31cd59240827f9151e23beb82df9e43675b494 | [] | no_license | barrygu/dsaa | 22211497c127f28658f74c256d1fefe416257e19 | 432f5c764c0b8531f5063e1839445fbeb496dc73 | refs/heads/master | 2016-08-05T16:35:47.312632 | 2014-07-14T03:14:21 | 2014-07-14T03:14:21 | 21,804,296 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,773 | cpp | QueueLi.cpp | #include "QueueLi.h"
// Construct the queue.
template <class Object>
Queue<Object>::Queue( )
{
front = back = NULL;
}
// Copy constructor.
template <class Object>
Queue<Object>::Queue( const Queue<Object> & rhs )
{
front = back = NULL;
*this = rhs;
}
// Destructor.
template <class Object>
Queue<Object>:... |
97f6e3a5f722ed438939640f7a26d5dddbeb8778 | 2b11ce1b85044457479bbb3a810de8a91750eb2e | /dft.hxx | 00b4a6846aefd5cd4a35262ebcdd61cfa4aa69d3 | [] | no_license | Drako/fft_test | 7e577c305452589b44c9e999361c968e441ca218 | 1c507777962fdb2dca030734348939eccc4100df | refs/heads/master | 2021-01-18T19:24:35.201222 | 2015-02-17T16:19:10 | 2015-02-17T16:19:10 | 30,925,401 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 542 | hxx | dft.hxx | #ifndef DFT_HXX
#define DFT_HXX
#include <complex>
#include <vector>
static std::size_t const DFT_ALL = 0;
std::vector<std::complex<double>> dft(std::vector<double> const & source_signal, std::size_t count = DFT_ALL);
std::vector<std::complex<double>> dft(std::vector<std::complex<double>> const & source_signal, std::... |
9e8bcfc397c6da4fbf988c0146f6064384f814ff | cbfc6c986d72c07e962dec587ce3ec5ca7f2b019 | /third_party/upb/upb/io/zero_copy_stream_test.cc | 6cdb4f2eae6b53cc0954929216ef2952876d8925 | [
"Apache-2.0",
"BSD-3-Clause",
"MPL-2.0"
] | permissive | ctiller/grpc | f6e26b7033f184fa44c33ccc452ffb86cfb88346 | e49cfd494cbe0da619dad1ea649d6fc788a8cb9f | refs/heads/master | 2023-09-01T05:47:19.040152 | 2023-04-14T23:42:47 | 2023-04-14T23:42:47 | 31,379,631 | 6 | 1 | Apache-2.0 | 2023-09-14T05:03:03 | 2015-02-26T17:36:22 | C++ | UTF-8 | C++ | false | false | 10,340 | cc | zero_copy_stream_test.cc | /*
* Copyright (c) 2009-2022, Google LLC
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of ... |
3db7eafe719553166b64ab8ee2e495952b8c1ab2 | fac846c24bbcc7aa84ca235ac32333ef95333ce7 | /src/sprite.cpp | 46dfc9e3866d27edfc2c585cfbc086fd923c77cd | [] | no_license | johnernaut/braincraft | c150bcc506a58c8c4ba3b4f602d84403fae8f869 | 5224f4c164be6a9804f692c3c9845db8bd94f07b | refs/heads/master | 2020-04-05T23:41:41.945582 | 2015-02-17T13:40:39 | 2015-02-17T13:40:39 | 30,838,152 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | sprite.cpp | #include <iostream>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "Sprite.h"
Sprite::Sprite(SDL_Renderer *ren, std::string imagePath, int x, int y, int w, int h)
{
sRenderer = ren;
SDL_Surface *img = IMG_Load(imagePath.c_str());
pSprite = SDL_CreateTextureFromSurface(sRenderer, img);
SDL_... |
0edc76e28dc186a544ed3e4639b7de6d082efac9 | f9f03edf48617e2dc512a812c030a4f3a07c03d2 | /22_dfs.cpp | 6fd5c4806dcb3ab989b15dad666e8b2d412889cd | [] | no_license | gitchaofang/leetcode | 8d2769383e563788486dfa85a21d2df0c1c568d6 | 86907b9df994280e376e8c9f136fa8c37807ba2a | refs/heads/master | 2021-08-08T17:46:50.384188 | 2020-12-16T06:30:59 | 2020-12-16T06:30:59 | 232,033,250 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 528 | cpp | 22_dfs.cpp | class Solution {
public:
void dfs(std::string str, const int& cnt, const int& n, std::vector<std::string>& res){
int len = str.size();
if(len == 2 * n){
if(cnt == n) res.push_back(str);
return;
}
if(cnt < n) dfs(str + '(', cnt + 1, n, res);
if(... |
d65f9b352cb4dc679d3369873b57607ebc818fcf | 7a2918c7c5579e8e7ed8c8cd2412ba22adc27881 | /Squar.cpp | 8d4e995f6526d3909d0877358a4be5ea34a5072e | [] | no_license | mace707/Engine | 056b0c84e4b71b697a0fb5b5de909b6ac8a57f8a | 5b54c2a7a708c2b5e3d472d7a243e35717c4cb3f | refs/heads/master | 2016-09-06T17:06:54.771856 | 2015-07-17T12:18:50 | 2015-07-17T12:18:50 | 35,770,562 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 647 | cpp | Squar.cpp | #include "stdafx.h"
#include "Squar.h"
#include <OpenGl\glut.h>
Squar::Squar ( )
{ }
Squar::~Squar ( )
{ }
void Squar::Draw ( int x1, int y1, int x2, int y2, Color col, bool token )
{
glPushMatrix ( );
glBegin ( GL_QUADS );
glColor3f(col.R, col.G, col.B);
if ( token )
{
double x1f = x1 + 0.25;
double x2f =... |
1dc8d7120c6c51bf5a6a2e47d4e0830fea5b2ad4 | 76aab74b58991e2cf8076d6b4ed6f4deba1c57bd | /luogu/1025.cpp | 6b0192edde07e5cb9e82212b06f4c8ec523ebb25 | [] | no_license | StudyingFather/my-code | 9c109660c16b18f9974d37a2a1d809db4d6ce50a | 8d02be445ac7affad58c2d71f3ef602f3d2801f6 | refs/heads/master | 2023-08-16T23:17:10.817659 | 2023-08-04T11:31:40 | 2023-08-04T11:31:40 | 149,898,152 | 6 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 223 | cpp | 1025.cpp | #include <stdio.h>
int f[505][505];
int main()
{
int n,k;
scanf("%d%d",&n,&k);
f[0][0]=1;
for(int i=1;i<=n;i++)
for(int j=1;j<=k;j++)
if(i>=j)
f[i][j]=f[i-j][j]+f[i-1][j-1];
printf("%d",f[n][k]);
return 0;
}
|
e77128ccbe23627b37836ce66b179ea0db916e2b | e1c57f7e3f53bf0dede920f6cb7dddb6da6b1178 | /Lab 1/src/wxGUI.cpp | d2f4ba6eddcca80516b85bb8e4c52ae3c7746103 | [] | no_license | r-englund/SciVisLabs | 7ffde3eb31e0947982328a6ba04e2bd7c8a54804 | 15ac5bf4998d6c3063b8cec7d5061d420524b208 | refs/heads/master | 2016-09-11T10:24:10.879240 | 2012-11-07T15:48:43 | 2012-11-07T15:48:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,052 | cpp | wxGUI.cpp |
#include "wxGUI.hh"
#include "wxVTKRenderWindowInteractor.hh"
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkConeSource.h>
#include <vtkCamera.h>
#include <vtkProperty.h>
enum {
Menu_Quit = 1,
Menu_About,
Ctrl_Slider1,
Ctrl_Slider2,
... |
766f9f13e146d354d12f7bb9d9f8c616fc7e763d | 5d6e55bfebdbf398536aefbc9405094c5f2c223a | /lab2/task2/run_queue.h | d5d728bbe0cd7a16afd61c6ff0170529601e78de | [] | no_license | ilyakrasnou/labsAVS | 1f6230b49259cfcb82d381a20ec1308945e61af7 | ddf9ab1fe58f8268a69af03218b740e266ff9d57 | refs/heads/master | 2020-08-04T22:35:42.627775 | 2019-12-20T18:47:18 | 2019-12-20T18:47:18 | 212,300,021 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,541 | h | run_queue.h | #ifndef LAB2_RUN_QUEUE_H
#define LAB2_RUN_QUEUE_H
#include <iostream>
#include <thread>
#include <vector>
#include <atomic>
#include "dynamic_queue.h"
#include "fixed_atomic_queue.h"
#include "fixed_mutex_queue.h"
#include "lock_free_queue.h"
const std::vector<int> producer_num = {1, 2, 4};
const std::vector<int> con... |
12c0901a0ee06c2d2beab88609a50996059dc0d9 | 20c52c1f902902f5bbd0993958407acb3df3b8ef | /src/medianOfArrays.h | 6bbd00816c1c8cfe03a802c9bef3ebff95615de0 | [] | no_license | CoreyUWK/ByteByByte-Cplus | f246baa2ccd0b06d004c218fce1f0ff7369e83e2 | 175de547c2672dad4ce96fe8515517568d5246fb | refs/heads/master | 2023-02-19T05:17:13.195841 | 2023-02-07T21:51:34 | 2023-02-07T21:51:34 | 217,896,589 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 590 | h | medianOfArrays.h | /*
* medianOfArrays.h
*
* Created on: 2019-09-06
* Author: ckirsch
*/
#ifndef MEDIANOFARRAYS_H_
#define MEDIANOFARRAYS_H_
#include <vector>
using namespace std;
class SubArray
{
int *arr;
int start;
int size;
public:
SubArray(int arr[], int size);
void updateRange(int start, int end);
double getMed... |
7aa911ad7f041df04988bbc55a4bdf96edd20a00 | 29b81bdc013d76b057a2ba12e912d6d4c5b033ef | /boost/include/boost/gil/extension/dynamic_image/any_image.hpp | 3dc45d8d196ded062ed6ff6deee334deefaf8ea1 | [] | no_license | GSIL-Monitor/third_dependences | 864d2ad73955ffe0ce4912966a4f0d1c60ebd960 | 888ebf538db072a92d444a9e5aaa5e18b0f11083 | refs/heads/master | 2020-04-17T07:32:49.546337 | 2019-01-18T08:47:28 | 2019-01-18T08:47:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | hpp | any_image.hpp | version https://git-lfs.github.com/spec/v1
oid sha256:08838f2d922925a2dceec1621982ebe1412d24f35fd0a7a43f7b64c87835e811
size 6295
|
d87d9d3863a9bb68074071e348da95c58825253a | 34fec248091fbd431bd6631363644b611b0411c8 | /Cells.h | f4ae58399adf80a13d65b7ecfd15c89d246ccb1b | [] | no_license | ph-altiv/ConsoleSapeur | 74979bb1129e74d97fe86c1ded93bf878e4d2179 | 679c45901151a23f699a572c9629acc7873bd316 | refs/heads/master | 2021-01-10T05:36:17.723871 | 2016-03-24T17:22:31 | 2016-03-24T17:22:31 | 54,543,275 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 621 | h | Cells.h | #pragma once
namespace cells
{
constexpr int CELLTYPENAME_QUANTITY = 12;
enum CellTypeName
{
ZERO_CELL = 0,
ONE_CELL = 1,
TWO_CELL = 2,
THREE_CELL = 3,
FOUR_CELL = 4,
FIVE_CELL = 5,
SIX_CELL = 6,
SEVEN_CELL = 7,
EIGHT_CELL = 8,
HIDDEN_CELL = 9,
MARKED_CELL = 10,
MINED_CELL = 11
};
struct... |
36ca0d22d021cae2b38dfea474f254aead192e6c | 6f05f7d5a67b6bb87956a22b988067ec772ba966 | /data/test/cpp/86cc905cb6cfcc275204460194fdb36cd021004eCanvas.h | 86cc905cb6cfcc275204460194fdb36cd021004e | [
"MIT"
] | permissive | harshp8l/deep-learning-lang-detection | 93b6d24a38081597c610ecf9b1f3b92c7d669be5 | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | refs/heads/master | 2020-04-07T18:07:00.697994 | 2018-11-29T23:21:23 | 2018-11-29T23:21:23 | 158,597,498 | 0 | 0 | MIT | 2018-11-21T19:36:42 | 2018-11-21T19:36:41 | null | UTF-8 | C++ | false | false | 677 | h | 86cc905cb6cfcc275204460194fdb36cd021004eCanvas.h | #include "Sample.h"
class Canvas {
public:
static Sample currSample;
float width;
float height;
Canvas() {
}
Canvas(float width, float height) :
width(width),
height(height)
{
}
static Sample getCurrSample();
bool getSample(Sample* sample);
};
Sample Canvas::getCurrSa... |
81f416c7a591c1dd95afc92e800c54f46202a82b | 07be39b45a4c8a6f2812117f34b5fe9874702f9b | /2028.cpp | 9dfcc0a08e1db70cc9ec946336fe8184df37837b | [] | no_license | FilipeMazzon/uri-problem-solutions | f2d9222d5506cf273901b984ca1d1f64545414da | 5eb4328ff1c9d1d48672a422d9ae4358a90e3739 | refs/heads/master | 2021-05-16T00:44:40.471326 | 2017-10-15T02:52:06 | 2017-10-15T02:52:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 484 | cpp | 2028.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int y,u=0;
while(cin>>y){
int num=1;
u++;
num += ((y*(y + 1)) / 2);
if(y == 0)
printf("Caso %d: %d numero\n", u, num);
else
printf("Caso %d: %d numeros\n", u, num);
printf("0");
for(int i=1; i<=y; i+... |
e0d3db5dcc42881e8f80fbcb951290d0d400d478 | b3f41792c04cd973c747d8d5488512ed9ae08c03 | /longest_Str_Withoutrepeat/LSWR_C++.cpp | b6e522f73d4cb44a1c706e5e2e1bd65ae08e36bd | [] | no_license | hf532304/Leetcode | 21ca7c25b11ed8355ebcd3a1cedba1baa761e226 | 1b20272b8dae5f18e4a5b114e664be9171c6b2bf | refs/heads/master | 2020-03-28T17:56:51.887564 | 2018-09-19T02:33:52 | 2018-09-19T02:33:52 | 148,838,475 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 599 | cpp | LSWR_C++.cpp | class Solution {
public:
int lengthOfLongestSubstring(string s) {
int res = 0;
int maxlen = 0;
int start = 0;
unordered_map<char,int> Hashmap;
int len = 0;
int j = 0;
unordered_map<char,int>::iterator repeat;
while(j < s.length()){
repeat =... |
30279b7c3cd5c07b5c22613a91873112804cd3a1 | cae8beb7de70e4361a5071e33b023b3cd4f3031e | /BomberMan/monster3.cpp | 069719afda74eea94a95e48ee8a056331e4aad60 | [] | no_license | AmazingPangWei/BomberMan | 78cfd471223a83e47a4978a71e267d82d8c0f24b | 31ff4b6a6a25b57c42c4492d7a5efca06546185d | refs/heads/master | 2020-04-25T08:40:57.312247 | 2019-02-26T07:57:47 | 2019-02-26T07:57:47 | 172,655,153 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 818 | cpp | monster3.cpp | #include "monster3.h"
Monster3::Monster3(QWidget *parent):Monster(parent)
{
movie = new QMovie();
speed = 15;
pix.load(":/new/prefix1/素材/第一关怪物(左).png");
this->setPixmap(pix);
}
void Monster3::RightMove()
{
pix.load(":/new/prefix1/素材/第一关怪物(右).png");
this->setPixmap(pix);
this->move(this->x(... |
6e2d5c472fa93eea77c5b6ac80a88012f2b7f969 | 170dd12bfcb597333ec8fb0a73c997896e6afb42 | /cpg/cpgsyntax/Composite.hpp | ab57cc81fea1bf4d154ae9529f01a797b2c524f1 | [] | no_license | slaakko/cminor | ffce61c4a8d202dadc80f85e2653b313a2d346bb | efea239afc9ebfc5d9ace566dce1113daa88c89f | refs/heads/master | 2020-05-31T06:01:03.343170 | 2017-06-29T13:34:37 | 2017-06-29T13:34:37 | 69,146,774 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 957 | hpp | Composite.hpp | #ifndef Composite_hpp_5596
#define Composite_hpp_5596
#include <cminor/pl/Grammar.hpp>
#include <cminor/pl/Keyword.hpp>
#include <cminor/pl/Scope.hpp>
#include <cminor/pl/Parser.hpp>
namespace cpg { namespace syntax {
class CompositeGrammar : public cminor::parsing::Grammar
{
public:
static CompositeGrammar* Cre... |
cf9b6c0e4c0970a877359212633fdba0839b7eac | 93949503792cc85b4d85436500f67853f79ffe0c | /includes/ui/Button.hpp | 20647237811544e24aab066955e66fdb0b825141 | [] | no_license | simtr/tptpp | 3b654405258c0f8ea7667daee29143a79c804346 | a6608027d8283c4648b5f06e26d793f3a72d4b5c | refs/heads/master | 2021-01-22T05:54:56.294123 | 2011-10-24T00:09:51 | 2011-10-24T00:09:51 | 2,038,729 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 918 | hpp | Button.hpp | #ifndef UI_BUTTON_HPP
#define UI_BUTTON_HPP
#include <SFML/Graphics.hpp>
#include "Component.hpp"
#include <string>
namespace ui
{
class Button : public Component
{
public:
Button(int x, int y, int width, int height, const std::string& buttonText);
bool Toggleable;
std::string But... |
88419b6d23948be962d0687cf8d09b62d8d8fdfb | ed6cc29968179d13bb30c73dbf2be2fb6469d495 | /11. des/PallaUpdate 11.12.2017/PP Backup/006 Type & Topping/UI/UserInputUI.h | 34b4ca80e37d7b5cf73759380e1354451c933319 | [] | no_license | sindri69/pizza420 | e0880eea7eb0dbdeabae3dc675dba732a1778d90 | a0f78b59b5830ff67e9b5456a6e6d229869628f5 | refs/heads/master | 2021-08-28T14:59:32.423484 | 2017-12-12T14:19:05 | 2017-12-12T14:19:05 | 112,332,570 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,005 | h | UserInputUI.h | #ifndef USERINPUTUI_H
#define USERINPUTUI_H
#include <string>
#include <iostream>
#include <sstream> /// for StringStream in the convert functions
using namespace std;
class UserInputUI /// This class's job is getting user input, keeps cout & cin in other classes to a minimum :]
{
public:
UserInputUI();
... |
19109306b9f65b5e247cca5a7ede881fabb691a4 | b91e35135c06667bd5d3b2352568ac8b6e184cef | /src/example_lib/example_lib.h | 9abf1a23fe8d6d3783a8136ce860bb9684649692 | [
"MIT"
] | permissive | ryanmcdermott/bazel-cpp-template | 4826d374118fb6c7aa6dda69c684ef3e6d3a9367 | 3349608c140afe63ff92ee2cc218855af9da9ec3 | refs/heads/master | 2022-11-18T01:40:31.596353 | 2020-07-07T01:33:30 | 2020-07-07T01:33:30 | 270,453,396 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 144 | h | example_lib.h | #ifndef SRC_EXAMPLE_LIB_EXAMPLE_LIB_H
#define SRC_EXAMPLE_LIB_EXAMPLE_LIB_H
#include <vector>
std::vector<int> foobar(unsigned int n);
#endif |
1d18e969b258e5623a0f749d8c6a1eceb9e5b066 | a3d0f92c3fd95c9d0d844405ac80a246ceb86c03 | /src/database/vtk/generated/SoVtkDataSetMapper.h | fc7bcf77cc5ab5404705a82a02ec37fbba2fc2ce | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JoonVan/xip-libraries | 79cc97e84ea45e30e0dc61fd8a98503a36fe9194 | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | refs/heads/master | 2020-12-20T18:49:48.942407 | 2013-06-25T20:57:19 | 2013-06-25T20:57:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,136 | h | SoVtkDataSetMapper.h | /*
Copyright (c) 2011, Siemens Corporate Research a Division of Siemens Corporation
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.... |
668bd40e1908cf7681d6caddc207a645f8fe0449 | 1f902e98de99596e36ba017ce3907828b99a3c1f | /libs/androidfw/tests/Config_test.cpp | 698c36f0930139732cf2ee8500e081a01de2d26c | [
"LicenseRef-scancode-unicode",
"Apache-2.0"
] | permissive | aosp-mirror/platform_frameworks_base | c98112233373c83586fb1bf4d7ac256e5521b11d | 942d47b019852409865ee53a189b09cc0743dff1 | refs/heads/main | 2023-08-29T10:34:14.756209 | 2023-08-29T07:02:44 | 2023-08-29T07:02:44 | 65,885 | 4,479 | 2,590 | NOASSERTION | 2023-08-08T07:25:50 | 2008-10-21T18:20:37 | Java | UTF-8 | C++ | false | false | 7,063 | cpp | Config_test.cpp | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
87ca554e92bfed146799b129d532b76b2c8d050f | ed649693468835126ae0bc56a9a9745cbbe02750 | /win8_apps/cpp/Basic/Basic_Service/BasicService/AllJoynObjects.h | d02f62c21da128afd0c2f72e88238dcd62918413 | [] | no_license | tkellogg/alljoyn-core | 982304d78da73f07f888c7cbd56731342585d9a5 | 931ed98b3f5e5dbd40ffb529a78825f28cc59037 | refs/heads/master | 2020-12-25T18:22:32.166135 | 2014-07-17T13:56:18 | 2014-07-17T13:58:56 | 21,984,205 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,923 | h | AllJoynObjects.h | //-----------------------------------------------------------------------
// <copyright file="AllJoynObjects.h" company="AllSeen Alliance.">
// Copyright (c) 2012, AllSeen Alliance. All rights reserved.
//
// Permission to use, copy, modify, and/or distribute this software for any
// purpose with or w... |
afa6a0e665eec937d33ff26a2d326f26b9fcbc1b | ad934eeba2ac2a3c1d49b02af864790ece137034 | /vijosp/VIJOSP1037.cpp | 7f7a364bd9fea98b5406e4608e4b03c97d251608 | [] | no_license | xiang578/acm-icpc | 19b3d8c7771b935293749f5ccad0591cde8fc896 | 6f2fdfc62bd689842c80b1caee2d4caf8162d72f | refs/heads/master | 2022-01-12T12:28:43.381927 | 2022-01-12T04:20:44 | 2022-01-12T04:20:44 | 39,777,634 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,102 | cpp | VIJOSP1037.cpp | #include<bits/stdc++.h>
using namespace std;
int sum,n,h[1000],dp[2][5000];
int main()
{
while(~scanf("%d",&n))
{
sum=0;
memset(dp,0xff,sizeof(dp));
for(int i=1;i<=n;i++)
{
scanf("%d",&h[i]);
sum+=h[i];
}
int now=0;
dp[0][0]=0;
... |
b24dd42c4e15de41734d82e72d96941f7c30afb6 | 1f2a602f0807a81ab6eade3f6f8eb76d0f49670b | /app/old/musictablemodel.h | 66473d5e60d95e22552cdedd55f786eaf3130462 | [
"MIT"
] | permissive | N-911/CPP-Uamp | c2e3bcbb52130a312efe5556f6fb0064349ec4c8 | 221dc7894861fc9f1aa648e26db16649a4164625 | refs/heads/main | 2023-01-20T22:01:38.039095 | 2020-11-16T13:22:43 | 2020-11-16T13:22:43 | 312,043,288 | 0 | 0 | null | 2020-11-11T17:34:51 | 2020-11-11T17:34:51 | null | UTF-8 | C++ | false | false | 2,406 | h | musictablemodel.h | #ifndef MUSICTABLEMODEL_H
#define MUSICTABLEMODEL_H
#include <QMainWindow>
#include <QAbstractItemModel>
#include <QVector>
#include "music.h"
#include "medialibrary.h"
class MusicTableModel : public QAbstractTableModel
{
Q_OBJECT
public:
explicit MusicTableModel(MediaLibrary& _m_library, QWidget *parent = n... |
94fe29be57e5353182a3b212728136a96383663f | 41c6bb0ed7c7373b2ec171eedbaf33e0fb5027c7 | /transaction.cpp | f2eb9609089f4f08db9160721bef40feca83f691 | [] | no_license | haanhduclinh/blockchain | 5e5e837917e75cc2e397820558f33ae7a7cde45b | d3762cfaa24931307a07792685fe966ce395b55e | refs/heads/master | 2020-03-18T13:58:08.045574 | 2018-05-25T07:44:52 | 2018-05-25T07:44:52 | 134,821,055 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | transaction.cpp | #include <iostream>
#include <string>
#include <vector>
class Transaction{
public:
Transaction();
string sender;
string recipient:
float amount;
vector<Transaction> currentTransaction();
void addTransaction(Transaction tNew);
private:
vector<Transaction> _vTransaction;
}
Transactio... |
c3c43c016e6654977c0d751f71d78f65ae126095 | 72ed63c92ff6b2c66eb26f9bb8fe42f9c30b6dcc | /C/283 算法_链表的操作.cpp | c8e745b874fc1e0a1ccadaba0dd71baa167530e5 | [] | no_license | wangjunjie1107/CodeTesting | ceee7adbf73d357cb3b93e751682e05b83b54328 | 2e614831877f30db109e5b669a1d77bb17208a5a | refs/heads/master | 2020-07-15T04:59:36.138974 | 2019-10-30T00:39:29 | 2019-10-30T00:39:29 | 205,484,180 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 3,200 | cpp | 283 算法_链表的操作.cpp | #include<string.h>
//添加结点到链表尾部
ChainListType *ChainListAddEnd(ChainListType *head, DATA data)
{
ChainListType *node, *h;
if(!(node = (ChainListType *)malloc(sizeof(ChainListType))))
{
printf("为保存结点数据申请内存失败!\n");
return NULL; //分配内存失败
}
node->data = data; //保存数据
node->next = NULL; //设置结点指针为空,即为表尾
... |
7d73d099bf6121eb30d3237709e125355d6a5ce6 | 6622db78382cfb9d30d8ab63856fc1852f199920 | /vfd_gl.ino | 00597112b5460a14bbe7230c61a069eb7d2c506e | [] | no_license | Bankst/GU800_VFD_GL | 15c831295e4243f1194f4efed480087c9069613f | 79583b4c4edf18a95d722e1a48457d4f53ba8292 | refs/heads/master | 2023-08-06T21:41:51.397498 | 2021-09-06T18:24:02 | 2021-09-06T18:24:02 | 401,539,340 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,403 | ino | vfd_gl.ino | #include <math.h>
#include <SPI.h>
#include "src/arduinogl/ArduinoGL.h"
// #include "src/GU800/GU800_GFX.h"
#include "src/GU800/GU800_Canvas.h"
// #include "pikachu.h"
#define css 10
// #define css 53
#define cd 9
#define reset 8
GU800_Canvas display(css, cd, reset);
uint8_t state = 1;
void setup()
{
Serial.begin... |
8984c0149dfa71b2689b6fa7409664228d8c8531 | 54a9b1d648e4fb2d43a953b19ee7fa572114de96 | /EntityComponents/EC_ChatBubble/EC_ChatBubble.h | 382db4d95427909cb87001c6e29a085659825e5c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | jesterKing/naali | 02f834c4ccf37cc7f1fb2a0a74774addb9561a21 | 98baf592637d0edc684f21ab6488783a8b008c81 | refs/heads/master | 2021-01-18T08:02:25.655961 | 2010-04-27T10:26:53 | 2010-04-27T10:28:08 | 746,307 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 2,731 | h | EC_ChatBubble.h | /**
* For conditions of distribution and use, see copyright notice in license.txt
*
* @file EC_ChatBubble.h
* @brief EC_ChatBubble Chat bubble component wich shows billboard with chat bubble and text on entity.
* @note The entity must have EC_OgrePlaceable component available in advance.
*/
#ifndef incl_... |
dfa7f8dd634eadba9878e4a9bc422c0dd250ef23 | 20423565855b1acc23e8ecaf91b10f5bb3ac68ec | /src/CVTask.cpp | bd9c22427824b27745c8f0a0ea3002819af50ec2 | [] | no_license | crocdialer/Qt_CV_Box | 907548f71ab1d449c43f138803714f0f0ff0c00a | 6a21924ee67c6fea9a635fe7bd691a9d1c78814c | refs/heads/master | 2021-01-13T02:26:15.721960 | 2012-04-26T14:20:46 | 2012-04-26T14:21:06 | 3,109,432 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,942 | cpp | CVTask.cpp | #include "CVTask.h"
using namespace std;
using namespace cv;
Mat CVTask::colorOutput(const Mat& confMap,const Colormap &cm, const Size& s)
{
if(confMap.empty()) return cm.apply(Mat(s,CV_8UC1,0.0));
Size outSize = s;
if(outSize==Size()) outSize = confMap.size();
Mat tmp = confMap;
//cv::... |
9aad0d33bbe0aa5b8c558077bc3c007f2a44ca40 | 070775dcf7b91efdc84e3f7c12fad4708cccf441 | /07 深拷贝与浅拷贝/test.cpp | c73cddde8fe4f1ecaec6d85316328837cd02fd7f | [] | no_license | 514467952/c-about | 9df501480ddbf734ea4146bd47333ec39d44091f | 7af295b7882b2d7c91bf5565df3accb70d67929b | refs/heads/master | 2020-06-15T07:43:44.323190 | 2020-01-21T01:57:35 | 2020-01-21T01:57:35 | 195,238,626 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 799 | cpp | test.cpp |
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
using namespace std;
class Person
{
public:
Person()
{
}
//初始化属性
Person(char *name, int age)
{
m_Name = (char *)malloc(strlen(name) + 1);
strcpy(m_Name, name);
}
//拷贝构造 系统会提供默认
//自己提供拷贝构造,原因简单的浅拷贝会释放堆空间两次
Person(const Person&p)
{
m_age = p.m_age;... |
5104fbc45c0e4009c688360c30eacfd61246976d | 91c426b7c58c2ee0c06a8df300188134e364ba62 | /main.cpp | 53191b245c2dce250c3d724d4ec6f2bcde7abab0 | [] | no_license | lingadnicholas/data_structs_prac_cpp | 3da3f0bc98cd8f8fbc666a3bfad428444143b932 | e378044833cf87ac588080b056937a8fcac32a1e | refs/heads/master | 2022-04-11T14:53:50.942831 | 2020-04-01T22:30:58 | 2020-04-01T22:30:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,021 | cpp | main.cpp |
#include "provided.h"
#include "ExpandableHashMap.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <cassert>
using namespace std;
void test5()
{
StreetMap sm;
sm.load("E:\\OneDrive - UCLA IT Services\\Project4\\mapdata.txt");
PointToPointRouter p(&s... |
01e51f66ffa7ecb7c0af9c32ea6d9c8b5ff7f2eb | 0e0a39875ad5089ca1d49d1e1c68d6ef337941ff | /src/Core/Handle.cpp | 3ba722978556fe43bc30f544cbdd404236fa782a | [
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | FloodProject/flood | aeb30ba9eb969ec2470bd34be8260423cd83ab9f | 466ad3f4d8758989b883f089f67fbc24dcb29abd | refs/heads/master | 2020-05-18T01:56:45.619407 | 2016-02-14T17:00:53 | 2016-02-14T17:18:40 | 4,555,061 | 6 | 2 | null | 2014-06-21T18:08:53 | 2012-06-05T02:49:39 | C# | WINDOWS-1252 | C++ | false | false | 1,948 | cpp | Handle.cpp | /************************************************************************
*
* Flood Project © (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "Core/API.h"
#include "Core/Handle.h"
#include "Core/... |
dc2c2e808d388fde08b1985864caeb2dd26da29a | cd05c5245c9df3b427e10424ccb8ed93a30b773b | /Raytrace/Framework/DX/DescriptorTable.h | 9db2c2e2939765d8d70e36e7321a714a59081fc4 | [] | no_license | matsumoto0112/raytracing | aa451c0a91b9a85705285185443e9b4d05300564 | ea524069397eb5f6c06e9b9068a0fb814b6ba2ac | refs/heads/master | 2020-08-23T23:48:23.375308 | 2019-11-01T09:25:35 | 2019-11-01T09:25:35 | 216,726,521 | 0 | 0 | null | null | null | null | SHIFT_JIS | C++ | false | false | 1,314 | h | DescriptorTable.h | #pragma once
#include <d3d12.h>
#include "Utility/Typedef.h"
namespace Framework::DX {
namespace HeapType {
enum Enum {
CBV_SRV_UAV = 0,
Sampler,
RTV,
DSV,
};
} //HeapType
namespace HeapFlag {
enum Enum {
... |
070219f7876fedac41eb8089fea77d618dda1ca2 | eb50a330cb3d2402d17bee9a5f91f2b372c1e1c1 | /SPOJ/help_the_team.cpp | f792d3b0ef837702396d1b05e9d78f17408301c9 | [] | no_license | MaxSally/Competitive_Programming | 2190552a8c8a97d13f33d5fdbeb94c5d92fa9038 | 8c57924224ec0d1bbc5f17078505ef8864f4caa3 | refs/heads/master | 2023-04-27T22:28:19.276998 | 2023-04-12T22:47:10 | 2023-04-12T22:47:10 | 270,885,835 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,194 | cpp | help_the_team.cpp | //http://www.spoj.com/problems/CAM5/
#include<vector>
#include<iostream>
#include<stdio.h>
#include<queue>
using namespace std;
bool visited[100000];
void DFS(int start,vector< vector<int> > &relationship){
int l=relationship[start].size();
visited[start]=1;
for(int i=0;i<l;i++){
if(visited... |
7e95e975fd1f31ed0c6385b05368b479a382ec22 | 4352b5c9e6719d762e6a80e7a7799630d819bca3 | /tutorials/eulerVortex.twitch/eulerVortex.cyclic.twitch.test.test/processor3/1.32/p | 31ae0e4f7c92667fc0a2e4419d6e84f5ea43c17a | [] | no_license | dashqua/epicProject | d6214b57c545110d08ad053e68bc095f1d4dc725 | 54afca50a61c20c541ef43e3d96408ef72f0bcbc | refs/heads/master | 2022-02-28T17:20:20.291864 | 2019-10-28T13:33:16 | 2019-10-28T13:33:16 | 184,294,390 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 30,418 | p | /*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: 6
\\/ M anipulation |
\*-------... | |
d7b7c972124f6d26a279951dbe28bc3113dde766 | ecde4736e27b275b37bf1ccd7f375e31c1faf733 | /2006old/ServerMonitor/ServerSummary.cpp | 20faf3f92f2d78b18561d3e68a4b1b86eebfd9ff | [] | no_license | bahamut8348/xkcode | 1d85ef9b806c13af7193c9fd2281c99f174357a3 | 41665e5601d6d555ae2633ac0aa8cc1108a6b6bf | refs/heads/master | 2016-09-10T17:29:15.351377 | 2013-05-17T02:37:30 | 2013-05-17T02:37:30 | 34,992,677 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 6,714 | cpp | ServerSummary.cpp | #include "StdAfx.h"
#include "ServerStatus.h"
#include "ServerSummary.h"
#include "resource.h"
#define CPUAGESTR L"%2.06f"
BOOL CServerSummary::PreTranslateMessage( MSG* pMsg )
{
if (CFrameWindowImpl<CServerSummary>::PreTranslateMessage(pMsg))
return TRUE;
return FALSE;
}
BOOL CServerSummary::O... |
3a3324347e6c6878a0795c9a3c768935f898eefe | 97e642461856458e1912627510619fe2cd3f27be | /code/utils/lipschitz.cpp | 83a742b3332e1eb97b1f4647b67cf5980e06d90f | [
"Apache-2.0"
] | permissive | eth-sri/deepg | 390d3da1a04af7fc46564dc13518aff0df17b0c6 | f7e553028eaffd99eb59a1594c9e58ef830a80b1 | refs/heads/master | 2023-04-06T20:26:25.654823 | 2021-07-15T13:38:19 | 2021-07-15T13:38:19 | 218,042,975 | 16 | 6 | Apache-2.0 | 2023-03-24T23:25:37 | 2019-10-28T12:35:53 | Python | UTF-8 | C++ | false | false | 13,291 | cpp | lipschitz.cpp | #include "utils/lipschitz.h"
#include "utils/constants.h"
#include <queue>
#include <random>
std::ostream& operator << (std::ostream& os, const PointD& pt) {
os << "(";
for (size_t i = 0; i < pt.x.size(); ++i) {
if (i != 0) {
os << ",";
}
os << pt.x[i];
}
os << ")";
... |
9ee80184db8a891593914d324fddb38733ef094a | 86f1ea7058b2e107b1b9d6768d1c30ca3b0e3629 | /HW_05/main.cpp | 23135148e778b72e677bc06fa5187c05b009682d | [] | no_license | DT6A/HSE_OS | c497dfddfa77d70e2c59e6449e081864f0633222 | b4402d4fd2d6b6e089df9a2b83bc82c702e2b0e8 | refs/heads/main | 2023-06-01T16:15:10.191809 | 2021-06-12T13:41:57 | 2021-06-12T13:41:57 | 332,246,010 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,896 | cpp | main.cpp | /*
* Author: @kkarnauk
*/
#include <algorithm>
#include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
#include <set>
#include <string>
#include <random>
#include "slab_allocator.hpp"
#include "page_allocator.hpp"
using namespace hse::arch_os;
enum class Color {
Blue,
Green
};
template<C... |
5fb9219db62d49149fb4b33157696922398d0499 | cacb08f4bc09e9fc0d74f828414ca8609619978c | /YEAR 3 - EGC/HW 1 - Bow and Arrow/Object2D.cpp | b60e714262c2aa9d40d13c7a9eb36bc7da8d8ec8 | [] | no_license | ghiculescualexandru/Coursework | 5e298b73aaedc32c1146af1a8f33c4724347832f | f06faeadb1d32c687aa0e6ddf8a338814204743a | refs/heads/master | 2021-09-19T01:11:19.857376 | 2021-09-05T11:48:04 | 2021-09-05T11:48:04 | 202,554,704 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,107 | cpp | Object2D.cpp | #include "Object2D.h"
#include <math.h>
#include <Core/Engine.h>
Mesh* Object2D::CreateSquare(std::string name, glm::vec3 leftBottomCorner, float length, glm::vec3 color, bool fill)
{
glm::vec3 corner = leftBottomCorner;
std::vector<VertexFormat> vertices =
{
VertexFormat(corner, color),
VertexFormat(corner + ... |
35d544d135d931c55acdcea3fb49c5592dc99b8a | bf032a886be90735d5d57797c1f43cfa0615407d | /src/gateway/cache.tpp | fbba5f1c75921fedc4eda6d25eb9a93b55b91993 | [] | no_license | rucoder/modbusd | ef56d4dc5d4a3f8494df78052f46a8ff944b9b93 | 9b1371dc7afe574945fa75a91967803d2af4481b | refs/heads/master | 2021-01-10T19:10:08.085045 | 2013-11-14T13:28:33 | 2013-11-14T13:28:33 | 10,158,479 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 1,769 | tpp | cache.tpp | // cache.tpp //
/**
@file
@brief Cache template implementation.
*/
#ifndef _CACHE_TPP_
#define _CACHE_TPP_
#include "cache.hpp"
namespace stek {
namespace oasis {
namespace ic {
namespace dbgateway {
template<
typename item_t
>
_cache_t< item_t >::_cache_t(
string_t const & name
) :
objec... |
fb39c77895b290b0ef502a519401db9dac24b679 | 6d427c7b04cb92cee6cc8d37df07cf8b129fdada | /11000 - 11999/11292.cpp | 812b367b0dbcbde285812ae74d9dc1fa6fb66102 | [] | no_license | FForhad/Online-Judge-Ex.-Uva-Solutions | 3c5851d72614274cafac644bcdbc9e065fd5d8d8 | b7fdf62d274a80333dec260f5a420f9d6efdbdaf | refs/heads/master | 2023-03-20T23:47:30.116053 | 2021-03-10T02:07:49 | 2021-03-10T02:07:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | 11292.cpp | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n,m,a;
while ( scanf("%d%d",&n,&m) == 2 && ( n || m ) )
{
deque < int > dq,dq2;
for ( int i = 0; i != n; i++ )
{
scanf("%d",&a);
dq2.push_back ( a );
}
for ( int i = 0; i != m; i++ )... |
a3999b2b3462b62246ec7fdea485d6727fa34898 | 5800e14e1b95c2ef397b30b2c58f777d35ed26cc | /code.cpp | be2cac58a7c2cd8e6a7207a9c5255515a506116c | [
"MIT"
] | permissive | KorvusAcademy/sockext | 298631fbdadb1931146ef2045609aee801f1be9b | c972b3aed7d82df7872db4f1527079904a963954 | refs/heads/master | 2020-03-15T05:08:15.462321 | 2018-05-03T10:56:58 | 2018-05-03T10:56:58 | 131,982,394 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,765 | cpp | code.cpp | // Source of information: https://msdn.microsoft.com
// Developed by Korvux Neb
#include "stdafx.h"
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
#pragma comment(lib, "Ws2_32.lib")
int main(int argc, char *argv[])
{
// Variables used to send data to the ser... |
692ab734b0161e443faecff1505546640ce60c95 | b8f0c109aa1c4b659501cb822ab5831e5da7c448 | /CA/Particles/ui_mainwindow.h | 95e7ee946d42de4b941e8300443cfd7ce482eaa2 | [] | no_license | EmelineGOT/FIB | 8b02f7e2b2db736c06430ff18168420819515296 | e3da143c9a26181286494a595b32b50dc97ce5a5 | refs/heads/master | 2021-06-28T06:19:18.656566 | 2019-01-14T21:51:10 | 2019-01-14T21:51:10 | 134,577,481 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,263 | h | ui_mainwindow.h | /********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.10.1
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
***************************************... |
fc69cf16be635c3a3ee69ac5b879a3f348bfa970 | 583607df178ed1389df59f63011da5b35387c811 | /src/libime/dynamictriedictionary.h | cce2b91e2f07313a61b102df456bb4afac2d28b3 | [] | no_license | liuzhiping/libime | d83746190a7a735e839e443c4ac4bcb890557992 | 53d74880a5d93bddbe41ec6af94aa4bf2c665e67 | refs/heads/master | 2020-12-11T06:01:36.852547 | 2014-09-19T12:37:10 | 2014-09-19T12:37:10 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 860 | h | dynamictriedictionary.h | #ifndef LIBIME_DYNAMICTRIEDICTIONARY_H
#define LIBIME_DYNAMICTRIEDICTIONARY_H
#include <istream>
#include <ostream>
#include <memory>
#include "dictionary.h"
namespace libime {
class StringEncoder;
class DynamicTrieDictionary : Dictionary
{
public:
DynamicTrieDictionary(char delim=' ', char lin... |
f780cfa7531c041d9a00247a0e3c10d596991852 | a64b74c2522570ff8e5a2e982fc60ef9af95dbc6 | /src/5.1.cpp | d5499f51cebdb12172c7a5673756cb16ee04a08f | [] | no_license | sawfly/straustrup | 444cda204d133dea12d6f86542d3e2d179cc9a57 | 4701e5f5e431772bc5ac13076f911b3b060ae4dd | refs/heads/master | 2020-04-05T03:34:57.817497 | 2018-11-16T17:00:35 | 2018-11-16T17:00:35 | 156,520,031 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 324 | cpp | 5.1.cpp | #include <iostream>
int main() {
char c = 'r';
char *p = &c;
int a[10] = {1,2,3,4};
int &pa = *a;
std::string as[] = {"pzdc", "dcp"};
std::string *pas = as;
char **sym = &p;
const int dcp = 228;
const int *pdcp = &dcp;
int pzdc = 228;
int *const ipdcp = &pzdc;
return 0... |
153e137c759d64638e35d44a2434185071f504f7 | b6450bcc107521c0f5056475e383bcd3147a0a5e | /Common/Include/Logger.h | 604287ef4cdffb43668feded91dee0a59008dfab | [] | no_license | nickluo/camaro-sdk | d75b012469fbdd8eb0b4473fd1572fce123fd9a1 | 7362a3dbf5a54d659a15343e405cfb6d4fef6a36 | refs/heads/master | 2020-05-21T13:35:47.840366 | 2017-01-10T09:13:17 | 2017-01-10T09:13:17 | 45,231,885 | 1 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,215 | h | Logger.h | #pragma once
#include "spdlog/spdlog.h"
#include "spdlog/sinks/dist_sink.h"
#include "spdlog/sinks/syslog_sink.h"
#include <string>
namespace TopGear
{
class Logger
{
public:
static void Initialize()
{
if (instance == nullptr)
instance = std::unique_ptr<Logger>(new Logger);
}
//static std::shared_p... |
3c89ff4d4448f5e48fe1e85c3b3bf1c7546c29c3 | af7b319aa7b7a3158f2f9fd8678e2888aa786605 | /helper.h | 65c9f6063be84a3e61a587563695e3817873f498 | [] | no_license | zoness32/BrickBreak | 95a32a77de7a2718a5b6bda1655c76551572149f | a261913028bb9db5bf8929f60ca078b3000d115b | refs/heads/master | 2016-09-06T10:25:18.358836 | 2013-11-06T13:35:52 | 2013-11-06T13:35:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 490 | h | helper.h | #ifndef HELPER_H
#define HELPER_H
#include <QBrush>
#include <QFont>
#include <QPen>
#include <QRect>
class QPainter;
class QPaintEvent;
class Helper
{
public:
Helper();
public:
void paint(QPainter *painter, QPaintEvent *event, QString*);
void setGeometry(QRect geom);
void setColor(QC... |
ea015d6900e7d0cc9fd2d2d8eb1cbdedd316f444 | 4c095941095ebfefbbef24b610cbc89c27c88880 | /src/conn/ConnectionAdapter.cpp | 7356533509532e0535bb6d5d4cef42b2c1688255 | [] | no_license | wusopp/network-probe | 3679284d42cabc04f1fe4b8420bd642a6f3b4ab7 | 8c5769c4047a01d84341dfe267aff08ac12a732b | refs/heads/master | 2023-02-18T09:04:50.943285 | 2021-01-10T13:10:04 | 2021-01-10T13:10:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,141 | cpp | ConnectionAdapter.cpp | /*
* ConnectionAdapter.cpp
*
* Created on: 2015. 4. 18.
* Author: sound79
*/
#include <stdio.h>
#include "../util/Debug.h"
#include "ConnectionAdapter.h"
//ConnectionAdapter::ConnectionAdapter()
//{
// mConnector = new PosixSocketLib();
//}
//
//ConnectionAdapter::~ConnectionAdapter()
//{
int Connectio... |
407f954f79adefa4fee59ca53122262c7abd3c4c | fe02a586e2a010017dd52617a4733138c2923fd3 | /Windows/Windows.cpp | 7e78633143ed52d224b812ac2ac59fe8b48da0d5 | [] | no_license | KonH/CppProc | fdda609db4c0572860b3f704a1f92e67bf56dae9 | 96badd8376a972fd6e5ca00948eb221e4a7efc8b | refs/heads/master | 2020-03-25T18:25:10.401869 | 2018-08-31T15:46:52 | 2018-08-31T15:46:52 | 144,029,860 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 126 | cpp | Windows.cpp | #include "stdafx.h"
#include "ProcFrontend.h"
int main(int argc, char* argv[]) {
return ProcFrontend::start(argc, argv);
}
|
e0cf11867c4f9432ac65a452fb03cd43449994ee | 52dae991a8e363e66533f2acf8c90428afec91c3 | /windows_ex/netDemo/clientDemo/clientDemo.cpp | 159283b4d8a8c850d191735d3a06edd9d1f5808d | [] | no_license | y0n0622/vc6.0code | 1c8100816c2e2d5d05ef72cebd665baa3a42b491 | 8a657e8b90534e5cd63e438509f2d9c63f15940b | refs/heads/master | 2020-03-29T01:34:15.589075 | 2018-09-19T05:37:19 | 2018-09-19T05:37:19 | 149,395,360 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,196 | cpp | clientDemo.cpp | // clientDemo.cpp : Defines the entry point for the console application.
//一个简单的客户端,向服务端发送字符串
#include "stdafx.h"
#include "Winsock2.h"
#pragma comment(lib, "Ws2_32.lib")
#define BUF_SIZE 256
int main(int argc, char* argv[])
{
WSADATA wsd;
SOCKET sHost;
SOCKADDR_IN servAddr;
char buf[BUF_SIZE];
int retVal;
... |
9cc2343cb5ee2fab7a5093d9527b39e6634b9ed2 | fae474903666e7ca007c4c9c5c4d60772b2da250 | /src/ofxKinectMemory.cpp | 3ab063f035cc14ec155a0067a4d4ba0c246f227f | [
"MIT"
] | permissive | AssociationAlReves/ofAlReves | 502d4a574aae55a2d58dfba53401b049210aa09e | 70491f0b57cd45b7d486eb751067b64e2ce524e4 | refs/heads/master | 2023-04-03T21:48:21.407646 | 2023-03-18T17:38:11 | 2023-03-18T17:38:16 | 37,789,591 | 1 | 0 | MIT | 2023-03-11T12:59:54 | 2015-06-20T23:25:05 | C++ | UTF-8 | C++ | false | false | 15,814 | cpp | ofxKinectMemory.cpp | #include "ofxKinectMemory.h"
#include "ofApp.h"
using namespace ofxCv;
using namespace cv;
const string GUI_SETTINGS = "kinectmemory_settings.xml";
//--------------------------------------------------------------
void ofxKinectMemory::setup() {
ofSetVerticalSync(true);
ofBackground(0);
ofEnableArbTex();
... |
65ee3a9566e75641f39411ab7d87a2a9ff43ec7f | c9d3176099bd20da79f28239a77b71324c6109b8 | /day03/ex03/NinjaTrap.cpp | 5adfd77ce03aaf6f0cb916010c376afba32d4aa9 | [] | no_license | Ashypilo/Piscine-CPP | 9db9e08e3f3853e9a198d256d42d8cca9090cb75 | 2ff24ffedae35c6bdb627f9a080513b2c2f63373 | refs/heads/master | 2020-08-13T15:37:28.047031 | 2019-10-14T09:12:36 | 2019-10-14T09:12:36 | 214,993,845 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,928 | cpp | NinjaTrap.cpp | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* NinjaTrap.cpp :+: :+: :+: ... |
a5a60eee6ec402e20b7d69d43ba6d94a94fc03e3 | b112ff7af0f4cd97cdcbbcb50126745aa5248304 | /examples/0044.sha/hello_hmac_sha256.cc | db7a426b19c3f0c53a077d6e98c78c1e21e924be | [
"MIT"
] | permissive | FrancoisSestier/fast_io | d5f42caf563e61d9ac0b9c4cb53123c9420bf7bf | 30ed67bfecdd9d05102c34bf121cff9d31773565 | refs/heads/master | 2022-12-15T11:27:58.623652 | 2020-09-08T01:54:17 | 2020-09-08T01:54:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | cc | hello_hmac_sha256.cc | #include"../../include/fast_io.h"
#include"../../include/fast_io_device.h"
#include"../../include/fast_io_crypto.h"
int main(int argc,char** argv)
{
fast_io::hmac_sha256 sha("Hello");
fast_io::hash_processor processor(sha);
print(processor,"Hello hmac sha256");
processor.do_final();
println(sha);
} |
c076609f513df681951090d85cc62288377882a9 | 168faa6ff6cc5918336affdb155682d958c1a048 | /toolkits/collaborative_filtering/util.hpp | 395a0562b5d1bd103beace20b06ba79cbda63a3a | [
"Apache-2.0"
] | permissive | michael-hahn/frap | 6bed6c069a580e892a8dcea79bcca13bd0a01e4e | d214d243345c6c62f6fd916bc01b682d65fae5fe | refs/heads/master | 2021-06-18T21:04:06.173367 | 2017-06-16T20:45:29 | 2017-06-16T20:45:29 | 82,714,093 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 2,174 | hpp | util.hpp | #ifndef __CF_UTILS__
#define __CF_UTILS__
#include <omp.h>
#include <stdio.h>
#include <iostream>
int number_of_omp_threads(){
int num_threads = 0;
int id;
#pragma omp parallel private(id)
{
id = omp_get_thread_num();
if (id == 0)
num_threads = omp_get_num_threads();
}
... |
870c1a4970c08a027e421a8282b035537776cc57 | c2726850594308c9a4d1a64388d8fa7b10dd806a | /codebase/rbf/adt.h | 93083a07b6cd3008192a04b64071c0a3bd3c6cbe | [] | no_license | yangjiao2/cs222 | 559a686d3b0d87dbb26a4b8524a32152c1745938 | 6c215e64cf484298d7a5b59588fdb526aa75d630 | refs/heads/master | 2020-05-26T00:38:07.503128 | 2014-04-19T07:28:23 | 2014-04-19T07:28:23 | 43,621,567 | 1 | 0 | null | 2015-10-04T01:52:05 | 2015-10-04T01:52:05 | null | UTF-8 | C++ | false | false | 2,765 | h | adt.h | //
// adt.h
//
// Created by bluesea on 14-1-18.
// Copyright (c) 2014年 bluesea. All rights reserved.
//
#ifndef _adt_h_
#define _adt_h_
#include <iostream>
#include "rbfm.h"
#define ACCESS_FIELD_METHODS(fieldName) \
int get_##fieldName(void);\
int set_##fieldName(int v);
#define ACCESS_ENTRY_METHODS(entryName)... |
8be468957cab7993833c0d3b8e820241fa6c0e4d | d6eb6c4f340d343ea368507b1c7e7671d45a5767 | /src/lib/v8/src/.svn/text-base/utils.cc.svn-base | 08a6ec9f5d6e0778b7fdbb0d4d0104395d9af7b9 | [
"BSD-3-Clause",
"bzip2-1.0.6"
] | permissive | brn/mocha | 8242888c18081cb844a2c2bd0c222162cd46e4cf | 9ff68d6e2c753acf6ce57cdb3188f162549d2045 | refs/heads/master | 2021-06-06T06:43:06.230281 | 2021-05-07T16:04:12 | 2021-05-07T16:04:12 | 2,707,603 | 19 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,264 | utils.cc.svn-base | // Copyright 2011 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this li... | |
f9a462f9eb857e0b0d466f29d8e8a2a0f1765b1b | d9e483192b0a334cd8447a4dddd5c50bb4f5e444 | /Sources/ncreport/include/ncreportimageitem.h | ef5b45333893f369be777e089eb2b181a94c34e7 | [
"MIT"
] | permissive | baudoliver7/industria-elec | 4fb90d18bf7196b56cd7e3ab50ca036698a54e3b | 31850b177122ce09dd5de94d93a757352b8dd317 | refs/heads/master | 2022-12-06T10:35:46.937675 | 2020-09-01T01:04:13 | 2020-09-01T01:04:13 | 291,858,760 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,660 | h | ncreportimageitem.h | /****************************************************************************
*
* Copyright (C) 2002-2008 Helta Kft. / NociSoft Software Solutions
* All rights reserved.
* Author: Norbert Szabo
* E-mail: nszabo@helta.hu, info@nocisoft.com
* Web: www.nocisoft.com
*
* This file is part of the NCReport reporting sof... |
332bd4dab63eab6fb91c131f3c8da4972763e3cc | 24d3fb528330b3343edd28bcd40264e5cc680c26 | /proxygen/lib/http/codec/compress/HPACKDecodeBuffer.h | 237c515b083de99ebd117ab51fbe745a63abbfb4 | [
"BSD-3-Clause"
] | permissive | Yeolar/coral-proxygen | 5c56386b7971be2509ba0beba5ea34ac1758b841 | 345b69711852698326634c295266c1823a9c668b | refs/heads/master | 2021-01-18T20:21:27.765578 | 2015-09-10T11:05:36 | 2015-09-10T11:05:36 | 41,807,696 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,182 | h | HPACKDecodeBuffer.h | /*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#pragma once... |
785813bf6fb31f06e1727209d16d8817f6046a41 | 8d222ca0b4c45656afed23a504b3465184b8ff0a | /C++/calculator.cpp | ef586947830018ef35369bf370ebcbd541924d24 | [] | no_license | lifujie/Misc | 678df62eccb6e1bdac777b7d0b4aeb3fe8460ee6 | 1ac9984d37848e5b80d0dea6a7876c48d1246f1f | refs/heads/master | 2021-01-25T11:27:16.711497 | 2012-11-13T06:09:36 | 2012-11-13T06:09:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,074 | cpp | calculator.cpp | /****************************************
* A normal console calculator program. *
* Use recursion downward design(LL1). *
*--------------------------------------*
* E ---> TE *
* E ---> +TE | -TE | 0 *
* T ---> FT *
* T ---> *FT | /FT | 0 *
* F ---> (E) | NUM *
* *************************************/
#includ... |
d3fac16f2f921e3227dd650660173d2f7c9b8d7d | 09bbbbca189b65d85fd6e189dad5541c73d37143 | /lib/algebra/arithmetic.hpp | a7b4126b5fe7fc2cd7cb911c26bbe2e829701468 | [] | no_license | hyperpower/carpios | 44bdfba95776be17ee6b4c19cf0e8d86d88440d1 | 07369bea131ab72b7bc85ee7aa259aa77358b3f1 | refs/heads/master | 2020-09-09T09:42:16.461489 | 2017-11-01T09:41:25 | 2017-11-01T09:41:25 | 94,442,716 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 11,910 | hpp | arithmetic.hpp | /************************
// \file Arithmetic.h
// \brief
//
// \author czhou
// \date 12 févr. 2014
***********************/
#ifndef ARITHMETIC_H_
#define ARITHMETIC_H_
#include "../type_define.hpp"
#include "array_list.hpp"
#include <math.h>
#include <iostream>
namespace carpio {
const Float PI = 3.... |
93605b55a1ef07fd83552ab60b7c8f5b7bd05ecf | 90f9301da33fc1e5401ca5430a346610a9423877 | /300+/547_Friend_Circles.h | b872a013afc4aa7003d8ade8506226d594e1fa15 | [] | no_license | RiceReallyGood/Leetcode | ff19d101ca7555d0fa79ef746f41da2e5803e6f5 | dbc432aeeb7bbd4af30d4afa84acbf6b9f5a16b5 | refs/heads/master | 2021-01-25T22:58:56.601117 | 2020-04-10T06:27:31 | 2020-04-10T06:27:31 | 243,217,359 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,183 | h | 547_Friend_Circles.h | #include <vector>
using namespace std;
class Solution {
public:
int findCircleNum(vector<vector<int>>& M) {
int N = M.size();
UF uf(N);
for(int i = 0; i < N; i++){
for(int j = i + 1; j < N; j++)
if(M[i][j] == 1) uf.Union(i, j);
}
return uf.size();... |
e7b9019ec94807487f90387e1e4fff080e3daee5 | 820b6af9fd43b270749224bb278e5f714f655ac9 | /Rendering/VR/vtkVRInteractorStyle.cxx | fc653b8d42026f026b97b18a21c5bb3425422074 | [
"BSD-3-Clause"
] | permissive | Kitware/VTK | 49dee7d4f83401efce8826f1759cd5d9caa281d1 | dd4138e17f1ed5dfe6ef1eab0ff6643fdc07e271 | refs/heads/master | 2023-09-01T10:21:57.496189 | 2023-09-01T08:20:15 | 2023-09-01T08:21:05 | 631,615 | 2,253 | 1,243 | NOASSERTION | 2023-09-14T07:53:03 | 2010-04-27T15:12:58 | C++ | UTF-8 | C++ | false | false | 46,039 | cxx | vtkVRInteractorStyle.cxx | // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
// SPDX-License-Identifier: BSD-3-Clause
#include "vtkVRInteractorStyle.h"
#include "vtkAssemblyPath.h"
#include "vtkCallbackCommand.h"
#include "vtkCamera.h"
#include "vtkCellPicker.h"
#include "vtkInformation.h"
#include "vtkMatrix3x3... |
d2420c030b765d2ab4e3e61451d32d4bddb21731 | c21c8cba94f4f73aa23de98e555ef77bcab494f0 | /GeeksforGeeks/Random-problems/gold mine problem.cpp | 91bdab55bb98d67206dfa8471475ffe134d23aa4 | [] | no_license | hoatd/Ds-Algos- | fc3ed0c8c1b285fb558f53eeeaea2632e0ed03ae | 1e74995433685f32ce75a036cd82460605024c49 | refs/heads/master | 2023-03-19T05:48:42.595330 | 2019-04-29T06:20:43 | 2019-04-29T06:20:43 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,422 | cpp | gold mine problem.cpp | // AUTHOR: SHIV ANAND
// LANGUAGE: CPP
/**
Given a gold mine of n*m dimensions.
Each field in this mine contains a positive integer which is the amount of gold in tons.
Initially the miner is at first column but can be at any row. He can move only (right->,right up /,right down\)
that is from a given cell, the miner ... |
e98fee5eafd770e6c8a586ea4f385d85dfe49f0a | 74a9456b605da15cbce5eefcfc22b2c049925d24 | /mimosa/rpc/http-call.cc | f942bc8980b29b2de53c70916f92f0a64f4c274e | [
"MIT"
] | permissive | abique/mimosa | 195ae693e2270fbfe9129b95b981946fab780d4e | 87fff4dfce5f5a792bd7b93db3f3337e477aae76 | refs/heads/master | 2022-06-30T16:32:55.355008 | 2022-06-07T11:38:47 | 2022-06-07T11:38:47 | 2,087,313 | 27 | 8 | MIT | 2018-01-16T07:20:04 | 2011-07-22T05:40:03 | C++ | UTF-8 | C++ | false | false | 1,029 | cc | http-call.cc | #include "../stream/string-stream.hh"
#include "../stream/copy.hh"
#include "../http/client-channel.hh"
#include "http-call.hh"
#include "json.hh"
namespace mimosa
{
namespace rpc
{
bool httpCall(const std::string &url,
const google::protobuf::Message &request,
google::protob... |
c4889dd1f52cd51d8c5f18e74082796088536c9c | a34aa19f8e550aca3a2babcb32c703b3ae914aff | /Efficiency/ESD/AliAnalysisTaskEfficiencyd.h | d4f0bc562b71c8358c42e9cf513e6b36fc15c01c | [
"MIT"
] | permissive | mpuccio/AnalysisDeuteronFlow | bbfff54fa1c80c28fac9398aa55c7b8ebcaa69f8 | fed8fa5eaf1e30726c2d1df1d8fb068543bc0c47 | refs/heads/master | 2020-05-19T19:16:56.978026 | 2015-03-25T14:07:21 | 2015-03-25T14:07:21 | 24,088,516 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,463 | h | AliAnalysisTaskEfficiencyd.h | //
// AliAnalysisTaskEfficiencyd.h
//
// Created by Maximiliano Puccio on 28/10/14.
// Copyright (c) 2014 ALICE. All rights reserved.
//
#ifndef __AliAnalysisTaskEfficiencyd__
#define __AliAnalysisTaskEfficiencyd__
class TTree;
class AliPIDResponse;
#include "AliAnalysisTaskSE.h"
class AliAnalysisTaskEfficiencyd... |
2529e6406aaaf5446eab3408b65a45584649c561 | 0f50401b5d862ed1077d51898414e921cf3f4b22 | /src/executor/CephExecutor.hpp | 3833ed07b4d99db903c535a296b9e774d038484f | [
"Apache-2.0"
] | permissive | vivint-smarthome/ceph-mesos | 912131e58c94c4938cff6b2aedaa9b12c7e58a94 | 914f50c55aff4d8bbc9c00149e775ebaa3674a33 | refs/heads/master | 2021-01-15T20:33:35.191767 | 2017-02-28T10:52:47 | 2017-02-28T10:52:47 | 62,018,945 | 1 | 0 | Apache-2.0 | 2019-09-18T15:48:50 | 2016-06-27T02:12:56 | C++ | UTF-8 | C++ | false | false | 3,053 | hpp | CephExecutor.hpp | /**
* 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... |
160326bf69d4c1f62d12f3684533b98744f82922 | b34b2a4bd56122a619507a453543e0f0ae56d6dd | /PolynomialDemo.cpp | 07d9396606d42ed2bd6c0ca3ff7f404223d56c24 | [] | no_license | bryanstamey/PolynomialEval | 1b03639598a429232d67caa2f24e8e9fcbb0c4e7 | 50134ddd48454678b142ebaa9f3675fe76ad9e21 | refs/heads/master | 2021-01-11T16:11:29.755935 | 2017-02-05T00:12:41 | 2017-02-05T00:12:41 | 80,031,047 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,189 | cpp | PolynomialDemo.cpp | /**
* Provides input to naive and horner eval functions
* and outputs the evaluation of polynomials.
* @author Bryan T Stamey
* @since 1/23/17
* @see Polynomial.h, Polynomial.cpp
*/
#include <cstdlib>
#include "Polynomial.h"
#include <iostream>
#include <chrono>
#include <random>
using namespace std;
int main(... |
25ded347c9b84827601247912428b379f2db4bc3 | aa19b8a46aa4f02b3c20ab10765cc202a559383c | /src/proxy/directproxy.cpp | c928f18606f63a496600b86d0f561c2416efe144 | [] | no_license | shizeeg/gluxi-hacks | 28a7cbb7249c2d18ef7ecaae643e78511dd6e412 | 0ad00e3e64dd23db4b400b1f906cfc07f2e95c68 | refs/heads/master | 2021-01-01T18:29:12.920063 | 2011-05-10T16:35:39 | 2011-05-10T16:35:39 | 1,530,177 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 8,383 | cpp | directproxy.cpp | #include "directproxy.h"
//#define MY_DEBUG
#include "socketw/src/SocketW.h"
#include <QtGlobal>
#include <errno.h>
#ifdef MY_DEBUG
static int lastFileID=0;
#endif
DirectProxy::DirectProxy(int id, int typ, QString nfo)
: BaseProxy(id, typ, nfo)
{
qWarning() << "DirectProxy";
// lastURL="";
}
DirectProxy::~D... |
0d1ad7c86c02618309b718626b64b1acdccee6fe | 715c4f02e9d19656e84dc8b2eff7450eb3e33463 | /LastVersion/DataBase/DataBase.cpp | 96a4b3db7a8397456574077142afd7e6433fc0aa | [] | no_license | amirrezatav/SqliteInCpp | b841c257621f100f890ee0ee2e765edcbd0689ed | de0ffe2139b9f622749b5099093f87a086398d54 | refs/heads/main | 2023-06-02T20:31:54.715990 | 2021-06-14T08:42:06 | 2021-06-14T08:42:06 | 372,417,201 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,955 | cpp | DataBase.cpp | #include "DataBase.h"
DataBase::DataBase()
{
}
DataBase::~DataBase()
{
Close();
}
bool DataBase::Open(string path, bool ThrowExc)
{
int res = sqlite3_open(path.c_str(),&db);
if (res != SQLITE_OK && ThrowExc)
{
ThrowError(SQLITE_OK);
}
return true;
}
void DataBase::Close(bool ThrowExc )
{
int res = sqlite3_clo... |
e26289a9ab4af94082e1be41beee9cd4b19945f3 | 5fa2f4655f52421448d7a8a1121287dbd0495c4d | /experiment/main.cc | 1a23cb14268ada367bc097ff7270105608d223af | [] | no_license | nipun510/lab | 4df69a349f5a30e1a89ac3727d8e4ea7b3c018d5 | 28a13dabbefc8fc061f3716a270160c72d34a7f2 | refs/heads/master | 2023-02-10T23:06:02.839371 | 2023-01-29T10:50:27 | 2023-01-29T10:50:27 | 206,139,811 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 67 | cc | main.cc |
#include "example.h"
int main() {
person<int> p;
p.fun();
}
|
f37e002264a70f6cbfe7601ac677a6e9dd03281d | a4727da298b6ccfc8441acf025749dfd8b38465a | /include/deal.II-translator/A-headers/instantiations.h | bf7476a055d1a13ec72dc32146e2323db537acd8 | [] | no_license | jiaqiwang969/dealii-transltor | 6e16295a67118214142de31d0df3979c19a93785 | e3019fbaf625aa1c56cac08a3d61af4d6d3b4b3d | refs/heads/master | 2023-05-09T20:27:50.493383 | 2021-06-09T06:45:09 | 2021-06-09T06:45:09 | 374,146,574 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,462 | h | instantiations.h | // ---------------------------------------------------------------------
//
// Copyright (C) 2005 - 2020 by the deal.II authors
//
// This file is part of the deal.II library.
//
// The deal.II library is free software; you can use it, redistribute
// it, and/or modify it under the terms of the GNU Lesser General
// Pu... |
f5546ef4d43bb2373fae61dc572d4bdcacfcfe6f | c4b87875cde64eb40a35416686c7add860d9d6b7 | /source/json/parseJSON.cpp | 118e6729ce9582f612bdc4c30daeb59f8634826c | [] | no_license | felipegb94/simEngine | 27428bd13973b8c775083073458fbab7b42aefec | e9d735165586c0964efc64d41c0b24c54564c675 | refs/heads/master | 2020-04-06T03:41:56.030260 | 2014-06-12T05:30:14 | 2014-06-12T05:30:14 | 13,427,227 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 832 | cpp | parseJSON.cpp | /*
* parseJSON.cpp
*
* Created on: Sep 23, 2013
* Author: pipe
*/
//#include "Symbolic/headers/symbolic/symbolicc++.h"
#include "../includes/rapidjson/document.h"
#include "jsonParser.h"
using namespace std;
/**
* The following function makes use of the rapidjson library to parse a json string that is
*... |
84d17661497aab160e632ec900643f0659275d43 | b92d1eb369e57f16f38543273afdfe1acfaddcbc | /ui/paintwidget.h | 9057e78122569c799021b34d28c02d693caa3501 | [] | no_license | testlaidong/CG2018 | 04f63edc5a5222658c6cc48b29927136ed307ce5 | 696d530bc2cca5749612c8303e8d640b12f2492f | refs/heads/master | 2022-05-24T19:27:52.962487 | 2018-12-31T11:28:16 | 2018-12-31T11:28:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 883 | h | paintwidget.h | #ifndef PAINTWIDGET_H
#define PAINTWIDGET_H
#include <GL/gl.h>
#include <GL/glu.h>
#include <QOpenGLWidget>
#include <map>
#include <vector>
#include "QOpenGLFunctions"
#include "common/common.h"
#include "drawer/drawer.h"
#include "common/box.h"
#include "editor/editor.h"
using namespace std;
class PaintWidget: pub... |
3a806e1c1456f315ae84701af1cdbee825537f86 | fb1f00551e6f5f2aa2762124f803dae4acc2e2ba | /controller.h | d0983a2bf438a22b0ff5b0c1d9d3b099b0c1d766 | [] | no_license | yakupbeyoglu/ImageSliderQt-QML | a29fdde5e52221e733c59e281a6e19f2c91e6a31 | ea5f34c747af8110ce4209d4dcaafebb9d34faac | refs/heads/main | 2023-01-05T05:19:22.072954 | 2020-11-04T00:19:52 | 2020-11-04T00:19:52 | 309,837,378 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 517 | h | controller.h | #ifndef CONTROLLER_H
#define CONTROLLER_H
#include <QObject>
#include <QtDebug>
#include "images.h"
class Controller: public QObject
{
Q_OBJECT
public:
Q_PROPERTY(QString tpath READ getPath NOTIFY pathsended);
explicit Controller(QObject *parent = 0);
QString getPath();
public slots:
... |
6dc0b6ffc49a6a1e62a20387a12745f222f11542 | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /chrome/browser/nearby_sharing/contacts/nearby_share_contact_manager_impl.h | e22cb9f8f8eb014eeb3915a31c1a8d683d096996 | [
"BSD-3-Clause"
] | permissive | chromium/chromium | aaa9eda10115b50b0616d2f1aed5ef35d1d779d6 | a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c | refs/heads/main | 2023-08-24T00:35:12.585945 | 2023-08-23T22:01:11 | 2023-08-23T22:01:11 | 120,360,765 | 17,408 | 7,102 | BSD-3-Clause | 2023-09-10T23:44:27 | 2018-02-05T20:55:32 | null | UTF-8 | C++ | false | false | 5,617 | h | nearby_share_contact_manager_impl.h | // Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_NEARBY_SHARING_CONTACTS_NEARBY_SHARE_CONTACT_MANAGER_IMPL_H_
#define CHROME_BROWSER_NEARBY_SHARING_CONTACTS_NEARBY_SHARE_CONTACT_MANAGER_IMPL_H_
#includ... |
35c0514e3ecbe0a9e1d3440db62dc9e8527f7e16 | d68b8f9313198b751264cb9c7dc3171f47f39552 | /rtlab_exp_tk/comedi_device.h | 35cfa1eaee6fa9ada849eb9687ade2d662b410ad | [] | no_license | cculianu/calinsrc | e97fc02f1141132b718623d3c94cf1775a877e0d | 338d7d083854366f7a4162d53d95a2116fda6f0e | refs/heads/master | 2021-01-16T18:39:44.697710 | 2003-01-29T17:19:23 | 2003-01-29T17:19:23 | 32,130,393 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,111 | h | comedi_device.h | /*
* This file is part of the RT-Linux Multichannel Data Acquisition System
*
* Copyright (c) 2001 Calin Culianu
*
* 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; either version 2
* of t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.