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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3b71741de5fbc0109de65a393bea0b0a9015585d | 0bbe1fd9a5eefb3ce7f266eb554ff84d90104a97 | /practice/pairs.cpp | c4bf55a5cfdda4d1fd3fee5a6e99c0de11bd5edf | [] | no_license | pragya26/imp | fef0ed1688109c3617a5fb5db09646ffbb80e5a0 | 844983aa47334184c22ba0575ddd7b4b58e44b27 | refs/heads/master | 2020-04-06T03:41:56.022204 | 2015-08-19T18:29:10 | 2015-08-19T18:29:10 | 41,049,132 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 816 | cpp | pairs.cpp | /*To count no of pairs such that A[i]=A[j] but i!=j*/
#include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
int T;
cout<<"Enter the no of test cases";
cin>>T;
for(int i=0;i<T;i++){
long int N=0,count=0;
long i... |
040176075c8ed708283c27da013d8a47a1ae72e3 | a39767dd7de66f7202b17a9751f82834638c8312 | /Assignment-2/src/KeyframeController.h | bfb42c70caf4311f55200c92cb7ba45225672121 | [] | no_license | SageMade/Animation-Assignment-02 | 5fb1097513d85224ee13eaec1759763d152018e2 | 77ca2e6228e1cbffc168eed98af7fde609064308 | refs/heads/master | 2021-09-08T04:22:42.367745 | 2017-11-25T01:03:44 | 2017-11-25T01:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,272 | h | KeyframeController.h | /*
Authors:
Shawn M. 100412327
Paul Puig 100656910
Stephen Richards 100458273
*/
#pragma once
#include <vector>
#include <functional>
template <typename T>
struct SpeedControlTableRow
{
int segment;
float tValue;
float arcLength;
float arcLengthNormalized;
T sampleValue;
};
template <typ... |
8057b05be0ae557857a82d552aa629dc8a3a4af2 | 61304bfb26ac0615629ebd44ecfcff2dce803fcb | /devuAndFriendship.cpp | 78b333931a8a2dbf7ea23a08e0ea7281fdef90ef | [] | no_license | gokul1998/Codechef | c6109d5ade6c1fcfbb581647ed0ff8c97b441ccc | 253a779a0c669cb2b41d3f1ede1bdf0f7259b40e | refs/heads/master | 2020-06-23T09:48:58.653802 | 2019-07-24T08:11:33 | 2019-07-24T08:14:06 | 198,589,391 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | cpp | devuAndFriendship.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
int t;
cin>>t;
while(t--){
int n,i;
cin>>n;
int a[n],b[101]={0};
for(i=0;i<n;i++)cin>>a[i];
for(i=0;i<n;i++){
b[a[i]]=1;
}
int c=0;
for(i=0;i<=100;i++){
if(b[i]==1)c++;
}
cout<<c<<endl;
}
}
|
0c385284b1df0da0933e31a7efc5e3f00d1b3e4c | 393320d4dc9463ae7047390e4afe6f3e25fd70b9 | /tek2/C++/Pool/cpp_d10/ex01/Character.hh | 328a858f8e60f06904ddae37f0dc47df4ffb8a35 | [] | no_license | Lime5005/epitech-1 | d1c4f3739716173c8083ea4e6a04260d6dc92775 | cb25df1fa5d540624b9e7fd58de6e458cd5cc250 | refs/heads/master | 2023-02-09T07:38:57.850357 | 2019-10-14T15:03:44 | 2019-10-14T15:03:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 882 | hh | Character.hh | /*
** Character.hh for cpp_d09 in /home/gogo/rendu/tek2/cpp_d10/ex01/Character.hh
**
** Made by Gauthier CLER
** Login <gauthier.cler@epitech.eu>
**
** Started on Fri Jan 13 11:48:55 2017 Gauthier CLER
** Last update Fri Jan 13 11:48:55 2017 Gauthier CLER
*/
#ifndef CPP_D09_CHARACTER_HH
#define CPP_D09_CHARACTER_H... |
a1587c3c53867e0cbf4189691e052d620cbba0d6 | 7c694e9fe77817824007748aa230ab1b99f8eaa7 | /Lab 8/Menu.cpp | 15cb4444cd653d32e93d25fa0eec2b9b6681bb6c | [] | no_license | fuad021/CSE-2104-Numerical-Methods-Lab | 9113584e37c66000af4e4e167dab4c99f857dfeb | 7791cb4b2e44a46ba7911819ee4d4fa0f8443bdc | refs/heads/master | 2022-04-04T16:32:34.392526 | 2020-01-28T21:04:28 | 2020-01-28T21:04:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,589 | cpp | Menu.cpp | #include <iostream>
#include <cmath>
#define size 100
using namespace std;
double ax[size], ay[size];
double trapizoydal = 0, simpsonOneThird = 0, simpsonThreeEighth = 0;
int n, u, l, i;
double func(double x) {
return 1/(1 + x);
}
double realFunc(double x) {
return log(2);
}
void _t... |
2dc5e55eca924c18987fff6a594a3171f95d162a | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_2358_squid-3.1.23.cpp | 6909b9a9c527aebfe849701ac9204b2ac25e4db5 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 266 | cpp | squid_repos_function_2358_squid-3.1.23.cpp | static void
ipcacheUnlockEntry(ipcache_entry * i)
{
if (i->locks < 1) {
debugs(14, 1, "WARNING: ipcacheEntry unlocked with no lock! locks=" << i->locks);
return;
}
i->locks--;
if (ipcacheExpiredEntry(i))
ipcacheRelease(i);
} |
61cce76eff15a62fc9a07595931af5ae21248379 | c72e2e85958338756776092282fd08c8599cb286 | /TonnieRaceGame/CIntroState.cpp | 384d1af209857c98ba296d1f01c3d9c2530150a5 | [] | no_license | dbakemp/TonnieRaceGame | 1ff8105be5479902168406662de9febd480138a5 | 20be859a408399c662670461a86513beec03c523 | refs/heads/master | 2021-06-10T10:10:16.191390 | 2017-01-12T14:24:40 | 2017-01-12T14:24:40 | 67,247,766 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,475 | cpp | CIntroState.cpp | #include "SDL.h"
#include "CStateManager.h"
#include "CCamera.h"
#include "CIntroState.h"
#include "CDrawManager.h"
#include "CInputManager.h"
#include "CDeltaHelper.h"
#include "CProfileManager.h"
#include "CEntityManager.h"
#include "CUIImage.h"
#include "CUIButton.h"
#include "CEngine.h"
#include "EUIAlignment.h"
#i... |
cdc2d7264706278efcf64174cca8fe0b558a85f6 | 31d24ee6b69aa2905ce5de5077443eb0de41b575 | /Trees/Binary Search Trees/BST Basic Operations.cpp | 4a7a6f7eed7791b54c00263e27b88b638a557323 | [] | no_license | imthearchitjain/Data-Structures | 07149c12258babdc5527399d366014db875304a0 | 1ae0820d4988117f453a306ffc5081cff2c82201 | refs/heads/master | 2020-07-22T08:20:48.260575 | 2019-11-14T06:18:53 | 2019-11-14T06:18:53 | 207,129,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,044 | cpp | BST Basic Operations.cpp | #include <iostream>
using namespace std;
class node
{
public:
int data;
node *left, *right;
node(int data)
{
this->data = data;
left = right = nullptr;
}
};
class bst
{
public:
node *root;
bst()
{
root = 0;
}
};
node *insert(node *root, int x)
{
node *t... |
2f421f404f3e67cf60d309f637d1592ec2c715fc | c8b0633b1f6672f898cadf4f9f10bdd601948866 | /hwpf/fapi2/include/plat/plat_mbvpd_access.H | 69c6608eb6a9574df2b51518dc0889aad3d17901 | [
"Apache-2.0"
] | permissive | dhruvibm/libekb_p10 | d3b2906e487cb8a392ff581ebe70ac7ff2297015 | e0baf84effc9106b1184a490fcfeed952bfe9ffd | refs/heads/main | 2023-08-12T17:54:17.397371 | 2021-09-29T12:36:30 | 2021-09-29T22:17:39 | 411,666,529 | 0 | 0 | Apache-2.0 | 2021-09-29T12:32:10 | 2021-09-29T12:32:09 | null | UTF-8 | C++ | false | false | 2,534 | h | plat_mbvpd_access.H | /* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: hwpf/fapi2/include/plat/plat_mbvpd_access.H $ */
/* ... |
971f5d19df7b9e2ab4504a31e53bb90cb0ebe446 | cb3a3c4578ffc9e3e51c5eb2d88c8d488951f42f | /potato/spud/include/potato/spud/hash.h | a0e1ff3752d78cdbc56e262fed922963a7c92378 | [
"MIT"
] | permissive | potatoengine/potato | f89bc645a26060f2617756f98009b3215b3ac17b | bbcb42fca25ab18e0b4ea70aad0ccee6fff24dde | refs/heads/main | 2023-01-22T08:33:47.706990 | 2023-01-09T01:58:30 | 2023-01-09T01:58:30 | 158,169,449 | 48 | 3 | MIT | 2023-01-09T01:58:31 | 2018-11-19T05:58:39 | C++ | UTF-8 | C++ | false | false | 2,997 | h | hash.h | // Copyright by Potato Engine contributors. See accompanying License.txt for copyright details.
// Based on Howard Hinnant's "Types Don't Know #"
#pragma once
#include "hash_fnv1a.h"
#include "int_types.h"
#include "traits.h"
namespace up {
struct default_hash;
template <typename HashAlgorithm = default_ha... |
3dc7bc1264bf884d3bf2273c3eb527d4f7f4f038 | 8c0d7fa08d4c5e994a3bed5d5a86cf029d2dacb4 | /include/inn/neuron.h | a5828effb4573a7242f6c213e31b17ddcf38fb1f | [
"MIT"
] | permissive | nickware44/interference | 7bbe179f3e7fe4d31fbf60294ee9e619477cfda0 | 082ea66df8c07e6b0006f5dc9fb2cfa4f0217984 | refs/heads/master | 2023-09-03T04:16:35.888817 | 2023-08-22T19:19:24 | 2023-08-22T19:19:24 | 183,216,574 | 9 | 3 | MIT | 2023-08-22T19:19:26 | 2019-04-24T11:38:53 | C++ | UTF-8 | C++ | false | false | 7,116 | h | neuron.h | /////////////////////////////////////////////////////////////////////////////
// Name: inn/neuron.h
// Purpose: Neuron classes header
// Author: Nickolay Babbysh
// Created: 29.04.2019
// Copyright: (c) NickWare Group
// Licence: MIT licence
////////////////////////////////////////////////////... |
239790a8a294d978797ff842dbb387e42237bc90 | f2a8872ac0d158fb7a075dcb53cb17fb796813f5 | /complete/tomato_baekjoon7576.cpp | b20de19305b55f3ce47ee3b4cd63a91d17f52b8b | [] | no_license | weaver9651/coding | e5478af67d75f632e4d3ec82c447ecbf018aca6a | ed18d3f228d1b8bb6ba94c5242e63397a8c32553 | refs/heads/master | 2023-06-13T02:06:37.606985 | 2023-05-26T18:52:44 | 2023-05-26T18:52:44 | 171,222,908 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,736 | cpp | tomato_baekjoon7576.cpp | #pragma warning(disable:4996)
#include <iostream>
#include <cstdio>
#include <queue>
#include <algorithm>
using namespace std;
int Map[1000][1000];
int N, M;
int state;
int maxx;
int date[1000][1000];
bool visit[1000][1000] = { false, };
queue<pair<int, int> > q;
int dy[] = { 0, 0, 1, -1 };
int dx[] = {1, -1, 0, 0};... |
21a7eeea67a3f83bbffe68fb6b36c0bd259da1ee | 8f5929a1be9eebe993949cb51f3beba4d1567279 | /src/util/ncdiffstats.C | be4ff5de25ea5fa40d4f1578eea900b397d7b0e8 | [
"MIT"
] | permissive | AppliedMathematicsANU/diamorse | 5eed7878fbdd3e46714f39c4717749cb95b05884 | 3416d7a6ffa13b2fce7d83c560ac6bc83f1faa44 | refs/heads/master | 2021-01-17T07:08:37.655118 | 2020-03-05T05:03:30 | 2020-03-05T05:03:30 | 44,844,517 | 21 | 16 | null | 2020-03-05T05:03:32 | 2015-10-23T23:53:41 | C++ | UTF-8 | C++ | false | false | 2,423 | c | ncdiffstats.C | /** -*-c++-*-
*
* Copyright 2015 The Australian National University
*
* ncdiffstats.C
*
* Analyses the differences between two NetCDF volume datasets.
*
* Olaf Delgado-Friedrichs mar 15
*
*/
#include <cmath>
#include "netcdf.hpp"
#include "netcdfIO.hpp"
using namespace anu_am::netcdf;
Variable findVo... |
ae87de2f51305389076ac30edc589aef68afd639 | a363b06ff115e7a7d3fd569072ebbee0349b9a2b | /Samples/MjgIntelFluidDemo_Part05/Core/Math/mat4.h | 08cf2eccfbbdd409954cd56e764b58c8c047e204 | [] | no_license | william-manning-levelex/VorteGrid | 2e90474b66a6ead25a5a44c68554e3e6e016dc6e | f99a4e17ab9cbd4ff6cc9fa37124c2bf7d6a88a4 | refs/heads/master | 2023-03-27T15:23:41.440257 | 2021-03-27T22:46:22 | 2021-03-27T22:46:22 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,297 | h | mat4.h | /*! \file mat4.h
\brief 4x4 matrix class
\author Copyright 2005-2006 UCF/FIEA/MJG; All rights reserved.
*/
#ifndef MAT4_H
#define MAT4_H
#include <math.h>
#include "float.h"
#include "vec4.h"
#include "vec3.h"
// Macros --------------------------------------------------------------
//! \brief square value... |
b2617f27f2ddb69b9c78529f90df088c024a3315 | fce12f3ce9abdaae68c7da571941ec317ca5f924 | /USACO /2018-2019/January/Silver/mountains.cpp | 265b675266a84da7df377be157ab4fce98fa8104 | [] | no_license | imasheepow/Solutions | bbcae01c52f3af385b39e18bdbd399d98cd0e788 | e6a09e3b48cb85be9d9b66fc4a0bcd3d323ffe94 | refs/heads/main | 2023-05-03T00:59:13.132455 | 2021-05-26T03:43:13 | 2021-05-26T03:43:13 | 338,965,746 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 904 | cpp | mountains.cpp | #include <bits/stdc++.h>
#define all(x) begin(x), end(x)
#define sz(x) int((x).size())
#define eb emplace_back
#define pb push_back
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using vi = vector<int>;
const int MN = 1e5 + 5;
void setIO(string name) {
freopen((name + ".in").c_str(), "r", s... |
7f26f0e82691d0bf674aad4d8613c5d00a7e03f1 | 339556882efc56e8915b768cc4bb3a4148264ed4 | /UdpTurnServer.hpp | 734c5d47b4ca5b73358d1143b5a2d975ba68a099 | [] | no_license | wangscript007/natTraverseCentreMuduo | 8d755b8d239d46cdd774155fcd2e926d49b44b05 | 80384d2a8b6c9b9943cf1be76a2e25f1d7f72ded | refs/heads/master | 2021-09-25T15:20:30.621819 | 2018-10-23T13:20:19 | 2018-10-23T13:20:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 305 | hpp | UdpTurnServer.hpp | //
// Created by tl on 18-4-19.
//
#ifndef NATTRAVERSECENTREMUDUO_UDPTURNSERVER_HPP
#define NATTRAVERSECENTREMUDUO_UDPTURNSERVER_HPP
//
// Created by tl on 18-4-19.
//
void* turnUDP(void*arg);
#define UDP_TURN_PORT 1234
#define TCP_TURN_PORT 8888
#endif //NATTRAVERSECENTREMUDUO_UDPTURNSERVER_HPP
|
c7086398445028f94fe8204b48eabce1d6a65de0 | b4b4b88f87b4c8071e5e388ff9b6cbf923617d85 | /ofLightPaintApp/src/videoBuffer.hpp | f35dfdccaa981be28232e0c78f3125771ede7cf6 | [] | no_license | undessens/lightpainting-jadikan | d465d4538b344b8efa5fd841698da860cf4e3366 | 1c104d4a1f8e49b6c0bc1029259b7acf16b71913 | refs/heads/master | 2020-12-05T16:50:04.901145 | 2020-02-20T14:14:30 | 2020-02-20T14:14:30 | 232,178,904 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 188 | hpp | videoBuffer.hpp | //
// videoBuffer.hpp
// ofLightPaintApp
//
// Created by Admin Mac on 18/12/2019.
//
#ifndef videoBuffer_hpp
#define videoBuffer_hpp
#include <stdio.h>
#endif /* videoBuffer_hpp */
|
525e3bdc326374fca750f22f7388b7b3c872031d | 5e378bd9900a358c6c3d41577276c2bce6e8d92a | /Long_Number.cpp | 3ec93a14ca38c5c07a4155a8d579c8a4bfacd1b9 | [] | no_license | kanchan1910/Codeforces-Solutions | 80f97d52835f92499b3be5fbbd26b8a09db8b22a | 58e7e23a5c2fca7388eaf4246acb4d617334cc48 | refs/heads/master | 2023-04-24T20:24:43.843373 | 2021-05-07T05:18:39 | 2021-05-07T05:18:39 | 285,741,097 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 430 | cpp | Long_Number.cpp | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define lli long long int
int main(){
int n;
cin>>n;
string str;
cin>>str;
int arr[10];
for(int i=1;i<=9;i++){
cin>>arr[i];
}
for(int i=0;i<n;i++){
if((str[i]-'0')<(arr[str[i]-'0']) ){
int j=i;
while(arr[str[j]-'0']>=str[j]-'0'... |
d9ad053018f9b8ae640eaa9f9e700dcd2abb81ec | c6778697ea5d0698cc996f13ff761398f2fabb47 | /cover points.cpp | bed2a045d5cc31948dc2ab13dd71764df4a6a944 | [] | no_license | RimChy/Codeforces | 1ba6db1c62cdf11f3c9e1ba906687c7c5b9952a4 | 6a076c4c393b03076d2e0a4292a737a300a6d9a2 | refs/heads/master | 2022-11-21T05:00:09.791766 | 2020-07-25T14:26:08 | 2020-07-25T14:26:08 | 265,472,139 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 285 | cpp | cover points.cpp | #include<bits/stdc++.h>
using namespace std;
struct point{
int x;
int y;};
int main()
{
int n;
cin>>n;
int sum=0;
point p[n+1];
for(int i=0;i<n;i++){
cin>>p[i].x>>p[i].y;
sum=max(sum,p[i].x+p[i].y);
}
cout<<sum<<endl;
}
|
5732f2ee16892b0acde1ca214abb28940510a9f1 | 4e2e0d0f4eec8170d244f3782909ac026b14e37e | /Sy2Parser.Cpp/LeafNode.h | 5d392070fd36006deea81278adb260f99b153c96 | [] | no_license | PeterOndrik/Sy2Parser | f8c9d2c2fff8d873c5462be048b6473dd5ead7d1 | 790c9743e0ecb54a13114195aaf8bc34727f69b9 | refs/heads/master | 2021-12-02T14:41:09.659442 | 2021-09-02T12:23:21 | 2021-09-02T12:23:21 | 149,440,708 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 962 | h | LeafNode.h | #pragma once
#include "Node.h"
namespace Model
{
class LeafNode : public Node<>
{
public:
LeafNode()
{
}
LeafNode(SizeType line, SizeType column)
: Node(line, column)
{
}
LeafNode(const LeafNode& node)
: Node(node)
{
}
LeafNode(LeafNode&& node)
: Node(std::move(node))
{
}
Lea... |
f3b1b16c9a944e501b66536932ffc8c39366cd93 | e89a78186542b1f165864a44d726d563e765232d | /verifysetdlg.h | ed43fbdb2068e5b07a9609aa21550dabdb67dd84 | [] | no_license | gethope5/tangshancode | 82d2facd0f5677e741f6e29bc9b1079cfbd3b436 | 0c9b0eed65a4b0caa04b99779fc77600bcb5d5fd | refs/heads/master | 2020-03-25T15:19:26.352367 | 2018-08-07T13:30:40 | 2018-08-07T13:30:40 | 143,877,639 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 424 | h | verifysetdlg.h | #ifndef VERIFYSETDLG_H
#define VERIFYSETDLG_H
#include <QDialog>
#include "syshead.h"
namespace Ui {
class verifySetDlg;
}
class verifySetDlg : public QDialog
{
Q_OBJECT
public:
explicit verifySetDlg(QWidget *parent = 0);
~verifySetDlg();
char verifyValue;
private slots:
void on_pbtnOk_clicked()... |
ba7a6919e548a2a72bfac7cb4a1618e162c89128 | 1256c8ce3f7914dceadba3ab029997e60ba6ad9b | /codebook/Math/number_tool.cpp | e828c95a31392a5a5c59649510eebf3525e46789 | [] | no_license | NCTU-PCCA/NCTU_Tmprry | 867d6aa45ffa0afec6e80d6115778a4b809b4833 | 540a2cf5978fb4defc86a2c36604242dd4c707c2 | refs/heads/master | 2021-09-09T15:37:41.714723 | 2018-03-17T15:20:48 | 2018-03-17T15:20:48 | 61,848,050 | 22 | 4 | null | 2017-08-12T03:57:22 | 2016-06-24T01:33:41 | C++ | UTF-8 | C++ | false | false | 218 | cpp | number_tool.cpp | Int POW(Int a, Int n, Int mod){
Int re=1;
while (n>0){
if (n&1LL) re = re*a%mod;
a = a*a%mod;
n>>=1;
}
return re;
}
Int C(Int n, Int m){
if (m<0 || m>n)return 0;
return J[n] * inv(J[m]*J[n-m]%MOD) %MOD;
}
|
19e29eddae5bc0dda05256215315b27799bc3a29 | e8b04bef9aa1ac8e2c109dd315f133c8f4d28ae6 | /projects/default/controllers/ros/RosAltimeter.cpp | 2ae4e0bc23523d9ffb2a1e986f271617dbe6258f | [
"Apache-2.0"
] | permissive | cyberbotics/webots | f075dacf4067e8dcebbfd89e8690df8525f6d745 | 8aba6eaae76989facf3442305c8089d3cc366bcf | refs/heads/master | 2023-08-31T09:41:13.205940 | 2023-08-18T10:48:30 | 2023-08-18T10:48:30 | 156,228,018 | 2,495 | 1,525 | Apache-2.0 | 2023-08-28T16:30:33 | 2018-11-05T14:09:10 | C++ | UTF-8 | C++ | false | false | 1,448 | cpp | RosAltimeter.cpp | // Copyright 1996-2023 Cyberbotics Ltd.
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... |
e37805b317edfc5fbd03d82a5b7e9984da2d986a | 2277375bd4a554d23da334dddd091a36138f5cae | /ThirdParty/Havok/Source/Physics2012/Collide/Classes/Reflections/hkpBroadPhaseHandleReflection.cpp | 9c40e07940bd819d21299f0481126785dcf1200b | [] | no_license | kevinmore/Project-Nebula | 9a0553ccf8bdc1b4bb5e2588fc94516d9e3532bc | f6d284d4879ae1ea1bd30c5775ef8733cfafa71d | refs/heads/master | 2022-10-22T03:55:42.596618 | 2020-06-19T09:07:07 | 2020-06-19T09:07:07 | 25,372,691 | 6 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 3,552 | cpp | hkpBroadPhaseHandleReflection.cpp | /*
*
* Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's
* prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok.
* Product and Trade Secret source code contains trade secrets ... |
e7d40a30cf8a1faa329b94c5e0cedb55beb77dd9 | 2a45db35fb26432a05561b473563b207fb4ba0b5 | /src/AppLauncher/Domain/FileToRestore.cpp | 012f5583fd5b4ede5e2a39c828f47fe0b2e03d7f | [
"MIT"
] | permissive | aphilippe/ClappLauncher | e43eef118242e3e9eb6ac5da252269180904c2d6 | a228ab7c6fc8cbfaacb79f00e24179d70899bb00 | refs/heads/master | 2021-01-17T05:16:58.547042 | 2016-09-28T12:28:47 | 2016-09-28T12:28:47 | 46,556,571 | 0 | 0 | null | 2016-09-15T12:04:16 | 2015-11-20T10:51:47 | C++ | UTF-8 | C++ | false | false | 1,193 | cpp | FileToRestore.cpp | #include "FileToRestore.h"
#include "FileSystem/Operations/CopyOperation.h"
#include "AppLauncher/Exceptions/FileToRestoreException.h"
using launcher::domain::FileToRestore;
using file_system::Path;
using file_system::operations::CopyOperation;
using launcher::domain::BackupFolder;
FileToRestore::FileToRestore(cons... |
913d808f23ae476d6a90705f2dfdf190986e8884 | 5c07a58c305abbce3186ca100174b447aa0925eb | /Logic/NodeProperty.cpp | 8e5a49271b4c1b53ede4feb50a660a35e4cf54d8 | [
"MIT"
] | permissive | k0zmo/mouve | 5e4dd92a13040bded4e40af751f2f98b6750d8cb | 8d5db0da1abdf5fab991e50c5136bfe766f8a7cf | refs/heads/master | 2022-04-28T02:43:15.549868 | 2018-06-09T14:40:32 | 2018-06-09T14:40:32 | 19,389,679 | 5 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,024 | cpp | NodeProperty.cpp | /*
* Copyright (c) 2013-2014 Kajetan Swierk <k0zmo@outlook.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, ... |
bdd5439ccf21333885499599eeb8a861f7af4bbb | 0f5e7c855849f14588168134921632e06a373589 | /Pods/AudioKit/macOS/AudioKit.framework/Versions/A/Headers/AKParameterRampBase.hpp | 88a01662c25e038d99202021c40df3887242f99d | [
"MIT"
] | permissive | vanshg/MacAssistant | 477a743289a6ff34c8127d14c66ccfef4ca92a2c | a0c3b4fd6d01815159ca286b0bc135b0b55a5104 | refs/heads/master | 2023-03-07T18:11:18.372398 | 2023-03-05T23:23:34 | 2023-03-05T23:23:34 | 89,634,004 | 1,763 | 186 | MIT | 2020-09-22T18:54:18 | 2017-04-27T19:40:13 | Swift | UTF-8 | C++ | false | false | 2,195 | hpp | AKParameterRampBase.hpp | //
// AKParameterRampBase.h
// AudioKit
//
// Created by Andrew Voelkel, revision history on GitHub.
// Copyright © 2018 AudioKit. All rights reserved.
//
#pragma once
#import <AudioToolbox/AudioToolbox.h>
#import "AKDSPBase.hpp" // have to put this here to get it included in umbrella header
#ifdef __cplusplus
... |
5bd0b12468fc53350feec376fb59654cc2b75bce | 40fe28deb1658b749e39ca96872889fd18b33192 | /shared_gyroscope/tx_gate_陀螺仪/MX61/RS232.h | accb2badb9d976e875c7356353226a85dbfc1ac7 | [] | no_license | gdgly/Remote_Driving | e4490d43083991afad8cfb373d177983c6c77cc6 | 0a9ef9e89d6ce2545ed192ef1583b70c5e007b6e | refs/heads/main | 2023-04-03T07:41:24.412003 | 2021-04-15T07:17:19 | 2021-04-15T07:17:19 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 892 | h | RS232.h | #ifndef __RS232_H__
#define __RS232_H__
#include <pthread.h>
#include "CCycleBuffer.h"
class CRS232
{
public:
CRS232();
virtual ~CRS232();
int OpenUart(int port);
int set_speed(int speed);
int set_Parity(int databits,int stopbits,int parity);
int ComWrite(char *WriteBuff,const int WriteLen... |
e3e5b5b152df09682845730740fdf07dda1c0849 | b9cf0190f53ba8341ec5ef140d1175b5bac21338 | /src/journal.hxx | 5668f823893a23d9a4d0a2ccf291ee37eec6dbd7 | [
"BSD-2-Clause"
] | permissive | projg2/atomic-install-v2 | 9dd4b1d14227a634930350bbf5bb31deb98b30dd | 4ec9dfdefeaa21495f48239bb4fb1fd99506204b | refs/heads/master | 2022-08-10T10:46:40.927560 | 2013-07-20T21:03:51 | 2013-07-20T21:03:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,814 | hxx | journal.hxx | /**
* atomic-install
* (c) 2013 Michał Górny
* Released under the 2-clause BSD license
*/
#pragma once
#ifndef JOURNAL_HXX
#define JOURNAL_HXX 1
#include "posixio.hxx"
#include <string>
#include <vector>
namespace atomic_install
{
class File
{
public:
File(const char* rel_path, const std::string& root_pat... |
8f6ccb70e90abe91c9745994a28a344f2d09dded | 9ead001429ed7123063c38654a5f3cb2873ebd7c | /aps/lab/5/2.cpp | 0710a6e9103e5f4c7114beecfac2d17b9f2ad834 | [] | no_license | smadala/IIIT-PG11 | 73646632de36c0774413f1e201d9ce14895ae645 | a0f350261732442838314fcf821f7dad0a6c7b7b | refs/heads/master | 2021-01-23T13:30:05.050032 | 2013-11-13T11:03:30 | 2013-11-13T11:03:30 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,112 | cpp | 2.cpp | #include<stack>
#include<stdio.h>
using namespace std;
void find(int *a,int n){
stack<int> s1;
stack<int> s2;
int i;
s1.push(0);
int count=0,eq,temp;
for(i=1;i < n;i++){
if ( a[i] > a[s1.top()] ){
while( (!s1.empty()) && a[i] > a[s1.top()] ){
count+=n-i-1;
s1.pop();
}
}
s1.push(i);
}
s2.p... |
1c6f3eb1ed096b6bbab1f03d3190815a7abc6894 | 74f0dfd790fe669b94d1c13687203e7a2080d268 | /date.cpp | 787a7166b60c9a88001dab3286c8659429022f91 | [] | no_license | mwang17/CS2124 | b35bb2c73490575dbb5425aa57f84abd7b9022c3 | 2128873a3a5961d3eaf68c5b6aae0bc8de740253 | refs/heads/master | 2020-03-22T05:59:07.107123 | 2018-08-10T03:27:35 | 2018-08-10T03:27:35 | 139,604,323 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,619 | cpp | date.cpp | #include <iostream>
namespace Calendar{
//default constructor that takes 3 inputs
Date::Date(int yy, Month mm, int dd)
: y(yy), m(mm), d(dd)
{
if(!is_date(yy, mm, dd)) throw Invalid();
}
//default constructor sets the date to Jan 1 2018
Date::Date()
:y(default_date().year()),
... |
9ddd758c82abdeeb0f43aac21691f4fcb2fd3322 | 67f5094593ee9cb3d699fbda5b00296955724d9d | /MyTrader/XingLib/Src/service/chart/setting/chartsetting.cpp | 070e9b860dcb2a3d5741ab924ec37a883e86cef9 | [] | no_license | QtLab/Xing | 7da660a01dcd4d261687c4889d6b053a9aa2dad9 | 9d4bd88edacde772ee469d12199efb32c7cbd53a | refs/heads/master | 2021-05-04T20:05:37.830098 | 2015-12-13T05:28:54 | 2015-12-13T05:28:54 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 228 | cpp | chartsetting.cpp | #include "chartsetting.h"
ChartSetting::ChartSetting(const QString& settingName, QObject* parent) :QObject(parent), _name(settingName)
{
}
ChartSetting::~ChartSetting()
{
}
QString ChartSetting::name() const
{
return _name;
} |
210e4d49d2397ee9fab464e38451c058534dabcd | 469d3bf96df9abdd50a7c2cafbcc312610da16a5 | /C语言/实验/实验题目/大一下学期实验三.1.cpp | 378ab18ad4ec0964e39e04bcbcf075032693a28b | [] | no_license | myqcxy/Freshman | f104b0158ff2fa1248b6e5cf34cfdd37fce122a7 | c998b2e49a51784e5254afa280c1350497edfc0b | refs/heads/master | 2020-03-16T02:59:29.457006 | 2018-05-07T15:11:27 | 2018-05-07T15:11:27 | 132,477,767 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 1,051 | cpp | 大一下学期实验三.1.cpp | /*大一下学期实验三.2*/
#include<stdio.h>
#include<stdlib.h>
int main()
{
FILE *fp;
struct stu
{
int num;
char b[20];
int mathscore, chiscore,engscore;
}a[5];
int i;
double all, aver;
if((fp=fopen("fp2.txt","w+"))==NULL)
{
printf("can not open this file!\n");
... |
ee84351014f94046675366772e4837f1a7714702 | 53e8bcd34b5c0a04ae3e7f71e26b3ea2306c8ba6 | /CodeChef/Practice/BSTOPS.cpp | 70ac3c969d8983f707a351ad0243fc27fcac0578 | [] | no_license | aadi2305/Competative-Coding | 60858317836997e904b23853a2af6ffd44aaba1f | 852350a080b05477ee52a51c7ce64d54701bb536 | refs/heads/master | 2022-12-02T03:35:46.847746 | 2020-08-10T04:43:32 | 2020-08-10T04:43:32 | 272,914,072 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,879 | cpp | BSTOPS.cpp | #include <iostream>
#include <vector>
#include <map>
#include <list>
#define ll long long
using namespace std;
struct Node
{
int data;
Node *right;
Node *left;
};
Node *head = NULL;
map<int, int> mp;
void inorder(Node* root)
{
if(root == NULL)return;
if(root->left != NULL)mp[(root->left)->data] = ... |
2fe375dbe0b91ba7447d9ce41e9575eed4555aa4 | 489b76b0364caed708fd401e4c8759c2b0be58df | /board/board.cpp | 2660be452b3c50ded61e3b6475ffd74f1fd0d1e7 | [] | no_license | skowronski94/Color-Game | d63d5e3842f23010ea6ab08404cdaf8f7fff75bd | b916f113f3fd55f6fbb9a9c66c49c5189434e0e0 | refs/heads/master | 2021-04-30T09:33:11.375943 | 2018-02-12T23:08:30 | 2018-02-12T23:08:30 | 121,312,454 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,648 | cpp | board.cpp | #include "board.h"
// private ///////////////////////////////////////
void Board::deleteArray()
{
for(int j = 0; j < this->width; j++){
arr[j] = new Tile*[this->height];
for(int k = 0; k < this->height; k++)
delete arr[j][k];
delete[] arr[j];
}
delete[] arr;
}
// publi... |
0ac515db6f39724fc936e477340ae8f874e1075b | ea11740a5fea5d92061de2afbfd54affdf98b00a | /code/nucleo/src/actionneur.hpp | f9cfba113acb9d1e6d2f88ce042715e4aae71b3b | [] | no_license | Starmaxou/eirbot2020-1A | a4d866ed9572a6ae9bc7f418f775a625f0e1f01c | e6bd91a4d33e3f6008cef469e2abd2500c028dc0 | refs/heads/master | 2021-01-08T00:40:00.605121 | 2020-02-20T07:31:52 | 2020-02-20T07:31:52 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 280 | hpp | actionneur.hpp | #ifndef __ACTIONNEUR_H_
#define __ACTIONNEUR_H_
//Fichier très simple il permet juste d'activer les 2 cerveaux moteurs (manche à air et pavillon)
//Normalement les deux fonctions sont des void void
void activate_pavillon();
void activate_manche();
#endif // __ACTIONNEUR_H_
|
363fdd08ff1fcd6b396ac0017277efe6f0b0627d | d4a2c50a90792600c4d864fffe9c1a9d1ebd6acc | /mmlib/MMLib/DataDlg.h | 52562a11e6c7e2bdeb128d689335bf1504e9faae | [] | no_license | iwasen/MyProg | 3080316c3444e98d013587e92c066e278e796041 | a0755a21d77647261df271ce301404a4e0294a7b | refs/heads/master | 2022-12-30T00:28:07.539183 | 2020-10-25T06:36:27 | 2020-10-25T06:36:27 | 307,039,466 | 0 | 4 | null | null | null | null | SHIFT_JIS | C++ | false | false | 3,338 | h | DataDlg.h | #pragma once
// DataDlg.h : ヘッダー ファイル
//
#include "PictureWnd.h"
#include "LocalDll.h"
/////////////////////////////////////////////////////////////////////////////
// CDataDlg ダイアログ
class CDataDlg : public CDialog
{
// コンストラクション
public:
CDataDlg(CWnd* pParent = NULL); // 標準のコンストラクタ
~CDataDlg();... |
e6a36affb68f8f4506f9ff30a83f3f49c516e929 | 6d78e0f1b86d0a45dd97bd7f002fbf82826bdc8b | /src/demo_scene.cpp | 8f38f424aa098981f9dc4365661ca8957364aab2 | [] | no_license | Atomnp/CMake-SDL-Demo | 29364cf1d1418e60379be11e24e22ef69d45dd7c | 5eb47b3244207ac07981cb5cc6323037268970ac | refs/heads/master | 2021-09-04T20:06:22.258403 | 2018-01-18T13:21:32 | 2018-01-22T02:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,024 | cpp | demo_scene.cpp | #include "demo_scene.h"
void DemoScene::Initialize() {
show_test_window = false;
showHideButtonText = "Show ImGui Test Window";
cameraPosition = glm::vec3(0.0f, 0.0f, 0.0f);
image = std::make_unique<StageImage>();
image->SetImage("./assets/03_HiRes_upload.jpg");
glGenVertexArrays(1, &vertexArray... |
05fcd3b9c172c6f2d34ccd1dbf684846eb117d24 | 967d898b34a9392af2f8afe71546a2c3c873af69 | /run_pe.cpp | f39a94bc83c41b3a037468b30078dfce694fc8e5 | [
"BSD-3-Clause"
] | permissive | JoaoHenriqueOliveira/bayesmix | 3cef5dc004e8f7607606fe932da37e0687dd9e19 | 8ebc95c5188d236796593dd21b72436f903bf5e5 | refs/heads/master | 2023-03-04T18:35:55.964543 | 2021-02-16T19:50:35 | 2021-02-16T19:51:33 | 339,519,609 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,884 | cpp | run_pe.cpp | #include <iostream>
#include "src/includes.hpp"
Eigen::VectorXd epl_for_each_Kup(Eigen::MatrixXi &mcmc, int loss_type) {
int N = mcmc.cols();
Eigen::VectorXd epl_vec(mcmc.cols());
Eigen::VectorXi initial_partition = Eigen::VectorXi::LinSpaced(N, 1 ,N);
for (int K = 1; K < N; K++) {
ClusterEstimator cp(m... |
7692051ec53617bd83c5139e8b3293af38175dae | 66ca415329ef33dd1e1d53b6e9d57f9adade9349 | /ACM-ICPC-Handbook-master/code/lca_binary_lifting.cpp | 3e1adc93cde11c26d02a8c18aae0d0dfcebf81c5 | [
"MIT"
] | permissive | Harshit2929/ACM_ICPC_Codebook | f7b0c3f57904086b1a5de12b9728c82871f6ee39 | 3d3db2e6a135f83c5527af34f6bcda3f61435d3c | refs/heads/master | 2022-03-28T22:46:11.880658 | 2020-01-07T10:46:53 | 2020-01-07T10:46:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,459 | cpp | lca_binary_lifting.cpp | struct log_lca {
int n = 0;
vector<int> parent, depth;
vector<vector<int>> adj;
vector<vector<int>> ancestor;
log_lca(int _n = 0) {
init(_n);
}
void init(int _n) {
n = _n;
parent.resize(n);
depth.resize(n);
adj.assign(n, {});
}
static int large... |
e1df2df079bf2fb3c857fb82ab7d57e45d000890 | e075085976b939f72ebced483b28d020da2ee088 | /combo_v2_teensy/combo_v2_teensy.ino.ino | fb4e0262257cb6c21d33af81cfa62ebd214619ff | [] | no_license | mihirk284/goldcrest | f190a47ed8a87919e264b3907cf943fc9cdc6d55 | 926d9ec7fe7b23c1e640293e3cdb1563117293c8 | refs/heads/master | 2020-05-24T11:20:57.922906 | 2020-03-06T12:08:25 | 2020-03-06T12:08:25 | 187,247,003 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,801 | ino | combo_v2_teensy.ino.ino | #include "I2Cdev.h"
#include "MPU6050_6Axis_MotionApps20.h"
#if I2CDEV_IMPLEMENTATION == I2CDEV_ARDUINO_WIRE
#include "Wire.h"
#endif
MPU6050 mpu;
//MPU6050 mpu(0x69); // <-- use for AD0 high
#define OUTPUT_READABLE_YAWPITCHROLL
#include <SPI.h>
#include "nRF24L01.h"
#include "RF24.h"
#define INTERRUPT_PIN 2 // us... |
7f4719665a01f79cc571d2bd129783d6811922ac | 65766caa381f6197a20a0b7aaf47943c51cf77b2 | /P4 Backtracking y BB/Equipos/src/equipos.cpp | 498dcfc2c77a6e103f18b73fa2873449e108df5d | [] | no_license | fgallegosalido/Algoritmica-DG | e8dc3028fd66eb45b4148741b1ed962c69626f0d | 0755bdd0595a916701353510b899aee15762d863 | refs/heads/master | 2021-01-17T07:02:51.611439 | 2016-12-13T23:36:13 | 2016-12-13T23:36:13 | 53,580,554 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,983 | cpp | equipos.cpp | #include <iostream>
#include <cstdlib>
#include <ctime>
#include <cmath>
#include <fstream>
#include <chrono>
#include <vector>
using namespace std;
// Algoritmo equivalente a sumar 1 a un número en binario
void siguiente(vector<bool>& comb){
bool extra = true;
for (int i=(comb.size()-1); i>= 0; --i){
if ... |
00bee598706f8bb3cddd93c144c83f1b9e0c63ad | 9d684073707de7b6c1eff7c2f36ef53dd137655d | /qcom-caf/msm8994/display/displayengine/libs/core/res_manager.h | 926b2b79fd37009780ba57feca96994baf73ccff | [] | no_license | segfault2k/stuff | a8f1e5f4a9b023ba3c20b25e28b618dd0d7177b2 | 591a8cd382791c970fc75a41428be76bef98e375 | refs/heads/master | 2023-06-27T21:14:22.355725 | 2021-08-04T22:33:55 | 2021-08-04T22:33:55 | 382,970,191 | 0 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 10,007 | h | res_manager.h | /*
* Copyright (c) 2014 - 2015, The Linux Foundation. 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
* ... |
5ba00ba966b0d83ea232237fe5b8cb73bb90670b | cd7dcb66400e2ea61c3106c0b98658c4f285207b | /soa/logger/logger_metrics_void.h | 79469b09325f22aae28a1a7420532beb25e28e00 | [
"Apache-2.0"
] | permissive | etnrlz/rtbkit | 3d28b7dc364f8511f76ef38bf38d80272b5b3dc8 | 0d9cd9e2ee2d7580a27453ad0a2d815410d87091 | refs/heads/master | 2023-06-07T11:38:58.184422 | 2019-12-30T16:14:30 | 2019-12-30T16:14:30 | 230,944,269 | 0 | 0 | Apache-2.0 | 2023-08-14T21:35:13 | 2019-12-30T16:10:51 | C++ | UTF-8 | C++ | false | false | 706 | h | logger_metrics_void.h | #pragma once
#include "logger_metrics_interface.h"
namespace Datacratic{
class LoggerMetricsVoid : public ILoggerMetrics{
friend class ILoggerMetrics;
protected:
LoggerMetricsVoid(Json::Value config,
const std::string& coll,
const std::string& app... |
4689be700f0325ed6c3c921476122f3328e9cb6d | a165f7dbed86dbae13d3b409bbf14d678f37c1c4 | /GMM/mapviewer.h | 5867a87796eeb85ce2fc1feb96b169d008be7939 | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | Ador2/gps-denied-geospatial-positioning | a38cd93589e8c794728ac21c2fc7df451c22a59c | 5006b963e0b8fe50b0cabd5e3a9deb6aeb2416f2 | refs/heads/master | 2022-03-03T17:51:47.856407 | 2019-11-11T19:28:48 | 2019-11-11T19:28:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 573 | h | mapviewer.h | #pragma once
#include <QMainWindow>
#include "mapwidget.h"
#include "objects.h"
#include "coordinates.h"
namespace Ui {
class MapViewer;
}
class MapViewer : public QMainWindow {
Q_OBJECT
public:
MapViewer (Objects *objects,QWidget *parent = 0);
~MapViewer ();
public:
Objects *objects;
Coordi... |
4b8a1898a22cd6b1e8a864e314e1500f5eaf27b6 | 9df24e9110f06ea1004588c87a908c68497b22c0 | /2016/thusc/hihotianzhiyuan.cpp | e3c190b28ea9480b2d151363b2b6c74fc20604e3 | [] | no_license | zhangz5434/code | b98f9df50f9ec687342737a4a2eaa9ef5bbf5579 | def5fdcdc19c01f34ab08c5f27fe9d1b7253ba4f | refs/heads/master | 2020-07-02T17:24:14.355545 | 2019-03-13T12:39:45 | 2019-03-13T12:39:45 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,443 | cpp | hihotianzhiyuan.cpp | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
#include <stack>
using namespace std;
char rd; int pn;
template<typename Type>
inline void read(Type& v)
{
pn=1;
while((rd=getchar())<'0'||rd>'9')
if(rd=='-')
pn=-1;
v=rd-'0';
while((rd=getchar())>=... |
d794400d53955c8268e7323ca427a87483716fc0 | 434a5a0b714f6525799f213b5b302c47c705bd9a | /proftree/src/tree.cpp | 3ce64226ea6efad4f80a95555ac0ee6ded14984c | [] | no_license | SebastiaanHoppner/ProfTree | dafc70725430c3b2878742b3a442d1c267120a69 | e2a8f31001002def2cf16e0a752685b3ba2edfb3 | refs/heads/master | 2021-09-22T19:31:56.000036 | 2021-09-20T14:26:36 | 2021-09-20T14:26:36 | 137,753,492 | 8 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 11,229 | cpp | tree.cpp | #include "tree.h"
#include "empChurnCpp.h"
Tree::Tree(int* nInstances, int* nVariables, double** data, int* weights, int *splitV, double *splitP, int** csplit, int* maxCat, int* nNodes, variable** variables, int* maxNode){
// constructor used by crossover
this->nInstances = nInstances;
this->nVariables = nVariab... |
9f48e24e0553ec7b0e386f8e121231a252e2f5b5 | 50cdafece59f39df98500720a3f2ad16feed6c16 | /source/NanairoCore/Material/shader_model.hpp | 4f50dc06661a9dbfb81e6c399b6119ff46ff32e8 | [
"MIT"
] | permissive | alexptss/Nanairo | 9b0dc41b3bac04e71c404c98d15b0c0f3a3c83ad | b96c0fd18078015bccc56ac636bcdfe00bcd4a0c | refs/heads/master | 2021-07-23T08:03:22.167231 | 2017-07-17T10:17:12 | 2017-07-17T10:17:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,023 | hpp | shader_model.hpp | /*!
\file shader_model.hpp
\author Sho Ikeda
Copyright (c) 2015-2016 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef NANAIRO_SHADER_MODEL_HPP
#define NANAIRO_SHADER_MODEL_HPP
// Standard C++ library
#include <cstddef>
#include <tuple>
/... |
966de32e17a053af674e81d5589f2b4f375a510e | 301d062acac026572e50c014860fc22de7ef0cfa | /C++/IRPmodel/IRPmodel/Calculations.cpp | 1bed7b8ef6b8e89f9bc048b767e2c54d2f278f03 | [] | no_license | einarea/IRPProject | e4ba3b1214b33eee4ddaadc03a51ab3303ec6866 | b1d1d54bbd6961f11b8a647c2e8df88d4ba3e944 | refs/heads/master | 2021-05-08T17:09:40.322191 | 2018-12-11T15:21:11 | 2018-12-11T15:21:11 | 120,186,698 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,200 | cpp | Calculations.cpp | #include "stdafx.h"
#include "Calculations.h"
//test
using namespace DataSets;
Calculations::Calculations(vector<double> *** modelData, int instances, int periods)
:
nInstances(instances),
nPeriods(periods),
nModels(ModelList.size()),
nFields(ContentList.size())
{
//Initialize dataholders
total... |
6d1001bc77b0c665bc2d3555afedc48083aec25f | 835d70ab85f87f2d8726122ead36fbc87160d4e6 | /3DPlatform/3dViewer/IniFile.h | b144b110187d405cc51acdc5d975afe969e53b8e | [] | no_license | cczbf/Porting-to-VC-2010 | b26e1d994ec0b0172f91c29a7b497e56c383961a | c314807f87fb29d69c0e17e690ff5ca3eeb7b372 | refs/heads/master | 2021-01-10T13:31:00.776740 | 2015-12-20T06:42:39 | 2015-12-20T06:42:39 | 47,168,852 | 1 | 0 | null | null | null | null | GB18030 | C++ | false | false | 2,084 | h | IniFile.h | //////////////////////////////////////////////////////////////////////////
// File: IniFile.h
// Date: October 2004
// Author: lixiaosan
// Email: airforcetwo@163.com
// Copyright (c) 2004. All Rights Reserved.
// Revised by xiedonghai, 2004,12,2
/////////////////////////////////////////////////////////////////////////... |
62e41a4644fe027f320fbb03ee29609e1b4bb794 | 6f874ccb136d411c8ec7f4faf806a108ffc76837 | /code/VCSamples/VC2008Samples/CLR/32to64/32to64/AddArray.cpp | bfbca9bf87c2f22b88a27f268e05942170bb33f6 | [
"MIT"
] | permissive | JetAr/ZDoc | c0f97a8ad8fd1f6a40e687b886f6c25bb89b6435 | e81a3adc354ec33345e9a3303f381dcb1b02c19d | refs/heads/master | 2022-07-26T23:06:12.021611 | 2021-07-11T13:45:57 | 2021-07-11T13:45:57 | 33,112,803 | 8 | 8 | null | null | null | null | UTF-8 | C++ | false | false | 2,760 | cpp | AddArray.cpp | /******************************************************************************
DESCRIPTION: This is the implementation file for the pop up that shows up
when the user clicks Add Element button under the 2D Array tab.
******************************************************************************/
#include "stdafx.... |
091140f840070956efea8fc91f441b47bfaf5185 | 67162a8ebac87ea5ec34348673b0c84cbd44d319 | /codeforces/165/A.cpp | 2bb1d46bf320c23b40970d73101a907e92953058 | [] | no_license | salonigupta1/Codeforces | 3a33d00859f2075e780d972c0a41188bd5b081e6 | 7c4a4dd421b0fb33aa908986d58d5137b1f8a8d8 | refs/heads/master | 2023-03-21T05:43:49.157852 | 2021-03-11T16:39:00 | 2021-03-20T18:35:51 | 330,640,118 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,314 | cpp | A.cpp | #include <iostream>
#include<vector>
using namespace std;
#define OJ \
freopen("input.txt", "r", stdin); \
freopen("output.txt", "w", stdout);
#define FIO \
ios_base::sync_with_stdio(false); \
cin.tie(NULL); \
cout.tie(NULL);
... |
d9777eb38e388f8ec373502bee41c6dd877832c9 | 41b46f2caacf2f6800fa47430c8b4ba69960f23c | /src/helpers.h | 2489e7d3f1df30ab059c23574b458afb2785ce86 | [] | no_license | vguerra/CarND-Path-Planning-Project | 7bfcfdced89a622d947d9a51cdfc845cc14bb73a | 90ae12f698696103d4538acee5cd56c24cde6ee8 | refs/heads/master | 2021-01-01T16:03:42.746322 | 2017-09-26T00:36:51 | 2017-09-26T00:36:51 | 97,765,951 | 0 | 0 | null | 2017-07-19T22:18:19 | 2017-07-19T22:18:18 | null | UTF-8 | C++ | false | false | 793 | h | helpers.h | #include <string>
#include <vector>
#include <math.h>
using namespace std;
constexpr double pi() { return M_PI; }
double deg2rad(double x);
double rad2deg(double x);
string hasData(string s);
double distance(double x1, double y1, double x2, double y2);
int ClosestWaypoint(double x, double y, vector<double> maps_... |
ea6b2eef8a6e92ea546d45684e0a0bb581d66086 | 5af0f801fbe545e559a704795e1c6a826ccb2dfc | /130129_LabExercise15/Histogramm/reader.cpp | c9b67f1efbd5c2c3583a0eab065353207e3b35f2 | [] | no_license | stefankeil/Labs | 18a4d9dc1c91df20c6bdce21f87af57445d20d7e | 7d4fc71c0b1d81215a22fc5872c89bf5df3859fb | refs/heads/master | 2016-09-15T19:07:50.587238 | 2013-02-12T13:47:57 | 2013-02-12T13:47:57 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 486 | cpp | reader.cpp | #include <iostream>
using namespace std;
#include <fstream>
#include "reader.h"
#include "letterCounter.h"
#include "writer.h"
void Clread::read(ifstream &ifs)
{
//try {
Clcounter count;
//ifs.exceptions( std::ios::failbit ); // throw if failbit get set*/
while (ifs.good()) {
ifs.get(letter);
count.s... |
60756ac41aab7d24c8eb704e65ed108698db5c45 | 01e6591e5a01601465d8ae23411d909de0fd57a5 | /media/mojo/services/renderer_config_default.cc | 6a32d2ad2c451667d142b502bf2a1e7188c0afa0 | [
"BSD-3-Clause"
] | permissive | CapOM/chromium | 712a689582c418d15c2fe7777cba06ee2e52a91f | e64bf2b8f9c00e3acb2f55954c36de9f3c43d403 | refs/heads/master | 2021-01-12T22:11:06.433874 | 2015-06-25T23:49:07 | 2015-06-25T23:49:34 | 38,643,354 | 1 | 0 | null | 2015-07-06T20:13:18 | 2015-07-06T20:13:18 | null | UTF-8 | C++ | false | false | 3,646 | cc | renderer_config_default.cc | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/mojo/services/renderer_config.h"
#include "base/files/file_path.h"
#include "base/path_service.h"
#include "media/audio/audio_manager_bas... |
c355efc85b21ce2f25b945ca06b9a0b9075d23cb | b419009c5356cf98cda92dc6a61aa083ff3dda2a | /src/setup/surface.cpp | 9fcd24d65e2f28cb9ad5598cedc4fc998293e90a | [] | no_license | ZeroDoctor/graphics-engine | 0ea0f9ea72097aced4adcda9613d89700a9819cf | 51c7108feabb6ae2db04aa8760ee792933087f03 | refs/heads/main | 2023-05-01T18:34:01.663727 | 2021-05-18T07:59:59 | 2021-05-18T07:59:59 | 335,445,743 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,070 | cpp | surface.cpp | #include "surface.hpp"
VulkanSurface::VulkanSurface(VulkanInstance* instance, WindowSettings settings, uint32_t width, uint32_t height)
{
m_width = width;
m_height = height;
m_instance = instance;
m_settings = settings;
printfi("Setting up Window...\n");
setupWindow();
printfi("Creating Surface.... |
2ebf82f852e0a2b22af33c077f92de1b5380608c | c8bb4cd63e577fadd1dc0ac820be166810d1a148 | /Game/Game/Objects/Bob/BobLink.cpp | f43b016b2136a849c5466d6457ad06fb3aecb0ea | [] | no_license | rodrigobmg/Cloudberry-Kingdom-Port | c2a0aac9c7cb387775f6f00b3b12aae109a7ea39 | 74cd72e29ff5dfd8757d93abc92ed7e48a945fc8 | refs/heads/master | 2021-06-01T06:19:25.283550 | 2016-08-10T01:35:16 | 2016-08-10T01:35:16 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,665 | cpp | BobLink.cpp | #include <small_header.h>
#include "Game/Objects/Bob/BobLink.h"
#include "Game/Objects/Bob/Bob.h"
#include "Game/Player/Hero Physics/Spaceship.h"
#include "Game/Tools/Tools.h"
#include "Game/Level/Level.h"
namespace CloudberryKingdom
{
void BobLink::Release()
{
j.reset();
k.reset();
}
BobLink::BobLink() :
... |
f8eb0d354b8f72b5c809f5424cecc06097543261 | a7183d3adea2be3707abe23d7d0276405c1e064a | /src/common/reduction/matching/OverlapMatcher.cpp | 6e9bee4151f4a43e5765d21f1fe793d4c466b7c7 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | ess-dmsc/event-formation-unit | 672fe93e4b885777a7b77cceeee2e0ef4659adce | 7d2e94662bbece96ccb079511030f9a044fbbb5c | refs/heads/master | 2023-09-01T12:31:53.905678 | 2023-08-23T08:34:26 | 2023-08-23T08:34:26 | 80,731,668 | 9 | 9 | BSD-2-Clause | 2023-09-11T09:24:52 | 2017-02-02T14:17:01 | C++ | UTF-8 | C++ | false | false | 1,360 | cpp | OverlapMatcher.cpp | // Copyright (C) 2018 European Spallation Source, ERIC. See LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file OverlapMatcher.h
/// \brief OverlapMatcher class implementation
///
//===----------------------------------------------------------------------===//
#i... |
2edb55edafca7bfcb358ac8f9f51e458ccbdaa5b | d455184f664bd3b4de645a28672e2b5ee414caab | /projectDNA/Controller/ShowCmd.h | ac5aadd8f8965b4af4d863a2d7af3c99accea8af | [] | no_license | Orly-k/D.N.A-Analyzer-System | 5fc8f37da21b2c048267f20b17dff1997dacafda | 8ad1269fac7b50feebae26bc583d558983673878 | refs/heads/master | 2020-05-05T10:31:21.883538 | 2019-05-18T21:48:29 | 2019-05-18T21:48:29 | 179,949,010 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | h | ShowCmd.h | //
// Created by kierszen on 12/29/18.
//
#ifndef PROJECTDNA_PRINTCMD_H
#define PROJECTDNA_PRINTCMD_H
//#include <tgmath.h>
#include "ICmd.h"
class ShowCmd : public ICmd
{
public:
void help(); //should return a string ??
std::string RunCmd(SharedPtr<DataCollection> &data, std::vector<std::string> arr);
pri... |
83e000a8dadd39a4b28a801b751a9f0e79e9c729 | 97eb00d7b35076b1efce57b21ad51636ac2a920c | /training/beginner/71.cpp | 9106e520868abecd1044bedcd15f6c9bda2477b9 | [] | no_license | jimjin73/compro | 43199716dc857f52c10d3237908e70c1801e7fb4 | b194b4414752fff3debc838f4ee70af8e2e43f34 | refs/heads/master | 2021-05-18T01:02:39.338377 | 2020-08-06T12:25:20 | 2020-08-06T12:25:20 | 251,037,702 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 815 | cpp | 71.cpp | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll MOD = 1e9 + 7;
ll N,Q;
ll a[150000];
ll c[150000];
vector<ll> v;
ll powmod(ll a, ll b){
ll ans = 1;
bitset<64> bt(b);
for(int i=0;i<64;i++){
if(bt[i] == 1) ans *= a;
ans %= MOD;
a *= a;
a %= MOD;
}... |
35fb07a94c5f54569781fd093efc14916a284678 | 334544c0fe7b153a0668016cb5eda9e50665a2ed | /trabalho_tp1/entidadeLivro.h | e4e1b9080424e867ce75961af6d5facf9bed2842 | [] | no_license | lucasmoutinho/trabalhotp1 | 26b2767c37a40035582f7d73481377eb19072aef | b0a9f5435327e39ff58bb5ff7a4f731301454d59 | refs/heads/master | 2021-01-23T08:34:07.500564 | 2017-11-24T01:43:38 | 2017-11-24T01:43:38 | 102,534,781 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,834 | h | entidadeLivro.h | #ifndef __ENTIDADESLIVRO_H_INCLUDED__
#define __ENTIDADESLIVRO_H_INCLUDED__
#include "dominios.h"
#include "containerResenha.h"
#include <iostream>
#include <list>
#include <string>
#include <stdexcept>
using namespace std;
///Classe que representa a entidade Livro, esta que contém os atributos: título, autor, data, ... |
0fd07f4f8f2739878e4cd7d337f2922cae178a07 | 6ec27c576b2a35f9da21a8674c6f34be90744d3f | /OGL-Test/widget.h | ed4904f167a18cbcbd36264812cfa2fe1a4c2107 | [] | no_license | teraxl/TitanSklad | 645e0c3e67935f7fd4dfe1bf00fe89167a10ff2a | 5ef44b764761ca0a0ba22505676815494a524805 | refs/heads/master | 2022-04-01T00:39:34.085052 | 2020-01-12T01:41:09 | 2020-01-12T01:41:09 | 213,041,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,381 | h | widget.h | #ifndef WIDGET_H
#define WIDGET_H
#include <QGLWidget>
#include <QOpenGLWidget>
#include <QMatrix4x4>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QOpenGLBuffer>
class SimpleObject3D;
class IObjectTransform;
class Group3D;
class Widget : public QOpenGLWidget
{
Q_OBJECT
public:
Widget(... |
f3ac1c95e90350efb5a8bea69844956841b0cde3 | 90e7aa07b71eda4fb1cbf6f25d7395fe5ef25b22 | /include/health_checker_server_class.hpp | a4248e1d8aa3b5679f38cbb549d695324428eaa5 | [] | no_license | Gyro91/Reliable-Service-Framework | 9ac3155c39bf1c2c03afa5a7e2899531897cc052 | f87ca03bed39a1abb9ed86a894252de69ce26fc4 | refs/heads/master | 2021-06-21T20:12:20.254067 | 2017-06-14T07:33:03 | 2017-06-14T07:33:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 479 | hpp | health_checker_server_class.hpp |
#ifndef INCLUDE_HEALTH_CHECKER_SERVER_CLASS_HPP_
#define INCLUDE_HEALTH_CHECKER_SERVER_CLASS_HPP_
#include "health_checker_class.hpp"
#define HB_ARGS 2
class HealthCheckerServer: public HealthChecker {
private:
uint8_t server_id;
uint8_t service;
void restart_process();
public:
HealthCheckerServer(pid_t... |
1de1b5898314e87e9d8862ac6ead98d4175cb2ea | 2bdfa02e72cd7ee2e8fab3756fb44f02f9b99a55 | /UVa10258.cpp | e2ea3edb810f7df26d9adcdf9452ab3ccc0305c5 | [] | no_license | RuriApoka/UVaOJ | 9f504d4aa6942bf02463cef1926fed9f1b54fd92 | 6ba4554d9d0a2f0765ce9616358870b7401a02d6 | refs/heads/master | 2020-04-05T07:28:01.385488 | 2018-11-09T03:11:49 | 2018-11-09T03:11:49 | 156,676,443 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,763 | cpp | UVa10258.cpp | #define LOCAL
#include <iostream>
#include <cstdio>
#include <cstring>
#include <vector>
#include <string>
#include <sstream>
#include <algorithm>
using namespace std;
const int TEAMS = 101;
const int PROBLEMS = 10;
struct Team {
int solved_problems;
int solved[PROBLEMS];
int unsolved[PROBLEMS];
... |
bbeb598a0eb4ad5f1269e5479a1b0a2d62adfa8d | 9ca473aa3e562de647d35fff50a66981fde48a21 | /CacheDatabase.cpp | 331b6c0b6ec71227e1df86fa3d5e1f2d806cf348 | [] | no_license | ppolcz/SMOG | e14f67566ae62070cff2f0b1e0ed4c77f65b361f | b1edf04a6b1b5a530e183ccf943402d3a24e0b70 | refs/heads/master | 2020-12-28T21:28:14.975676 | 2013-11-15T14:52:01 | 2013-11-15T14:52:01 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,866 | cpp | CacheDatabase.cpp | #include "CacheDatabase.hpp"
// Qt
#include <QSettings>
#include <QDir>
#include <QFileInfo>
#include <QSqlQuery>
#include <QSqlTableModel>
#include <QSqlRecord>
// Tools
#include "log.hpp"
const QString CacheDatabase::CacheTableName = "adaptive_cache";
const QString CacheDatabase::CacheColumnCloudPath = "cloud_path";... |
030c646510ef3a5763495100334559a1392fae07 | c3bdda94a187a0f0842643b146ab212e8fea6287 | /ParalizePro/Auth/sha1.cpp | 5231bb26b9b6a9fdc0d57a9f49e0d6ed84c5d681 | [] | no_license | taxi2za/ParaP | 5795cd124e60226f92926096ee98a16847012f20 | c08652e1fe94e2c3e7e4ea1f8ffdd99b539ad8d2 | refs/heads/master | 2022-11-14T18:43:39.631546 | 2020-07-10T05:30:50 | 2020-07-10T05:30:50 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,043 | cpp | sha1.cpp | #include "./sha1.h"
namespace sha1crypto {
int SHA1::getCipherLen(int len)
{
return 20;
}
void SHA1::reset()
{
sha1.Restart();
}
void SHA1::update(const char * indata, int len)
{
sha1.Update((const unsigned char *)indata, len);
}
int SHA1::final(char * outdata)
{
sha1.Final((unsigned char *)outdat... |
e30a486ad1da56eea253f8acef95ea3bd0629b1a | d84398502a058872292d93b9db9ac1d1cd60c092 | /LedControl.h | 3071335088698db54626d8155b5f7bdfdc4830e8 | [] | no_license | davesalomon/arduino-led-control | 901be7e9c54a8c2f8c02b82dfdcc30fc9c3a7e60 | 5d6f36fa9b4e0e3008a42ce37440b9a617647540 | refs/heads/master | 2021-07-06T21:15:02.539444 | 2017-09-26T16:00:59 | 2017-09-29T21:15:54 | 104,877,701 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,110 | h | LedControl.h | /*
LedControl.h - Library for flashing Morse code.
Created by Dave Salomon, September 2017.
Released into the public domain.
https://github.com/davesalomon/arduino-led-control
*/
#ifndef LedControl_h
#define LedControl_h
#include <Arduino.h>
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power... |
bfd9a4566579c4bb4cae3d848ac3de526d4bd76a | 22729f0eb84230e5becbca11fb86707f61f81516 | /unit-tests/utilities/time/test-timer.cpp | 8041e81aa9d1ce268ce5d903a09f466fd1b7152b | [
"GPL-1.0-or-later",
"OFL-1.1",
"GPL-2.0-only",
"GPL-3.0-only",
"BSL-1.0",
"MIT",
"Apache-2.0",
"LGPL-2.1-only",
"LicenseRef-scancode-public-domain",
"Zlib",
"BSD-2-Clause",
"BSD-3-Clause",
"BSD-1-Clause",
"Unlicense"
] | permissive | lips-hci/ae400-realsense-sdk | 742cc375d421ee41c04d1934b5bec23d607f39ed | 2554f30bdcbf71b5b7279fef494176f3fbd6c6c7 | refs/heads/master | 2023-04-27T01:57:34.504808 | 2023-03-21T09:21:34 | 2023-04-13T06:11:17 | 227,797,796 | 9 | 4 | Apache-2.0 | 2023-08-25T07:42:36 | 2019-12-13T08:59:00 | C++ | UTF-8 | C++ | false | false | 1,437 | cpp | test-timer.cpp | // License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2020 Intel Corporation. All Rights Reserved.
// Unit Test Goals:
// Test the timer utility classes: stopwatch, timer, periodic_timer.
//#cmake:add-file ../../../common/utilities/time/timer.h
#include "common.h"
#include "../common/utilities... |
3ecb5f6e6c2339d8bfbe6993ebcd572cead4f2e0 | 59c7602220c7616a9f617d7b791ae77ce9bc6255 | /BulletHellByNightOwl/BulletHellByNightOwl/EnemyBase.h | 281744d082d6ecf27e124b1eaebc8d28750250c9 | [] | no_license | HinariYui/BulletHellProject-by-NightOwl | eca03c86541a91140cc02f4fa9693f7977ff0a2b | 3ca2def80a7c2f9fee3126455683cd1423084e45 | refs/heads/master | 2020-04-05T14:56:29.647021 | 2019-05-22T03:40:20 | 2019-05-22T03:40:20 | 150,725,553 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 332 | h | EnemyBase.h | #pragma once
#include "SpriteObject.h"
#include "EnemyBullet.h"
#include "Audio.h"
class EnemyBase :public SpriteObject
{
public:
enum EnemyState
{
MOVE = 0,
ATK,
EXIT
};
EnemyBase(Tag enemy, string fileName, int row, int col);
~EnemyBase();
void update(float deltaTime);
EnemyState state;
float bul... |
44cddd52be22d431da94d0f58362e6133a8611a4 | e11b2c12298711ec4c4adf9a2f20eb101f79637c | /adding.cpp | 74a5a3ae227900f6ae11ecd49ff5b8a14d1ab40f | [] | no_license | Atlenna/Adding | cd6d8bf50e39775b93edf277c02a1186e66788fd | 62e7cf350eb342c95f0c47791c8845c0eb64ef3b | refs/heads/master | 2021-05-14T16:42:44.025105 | 2018-01-02T15:05:19 | 2018-01-02T15:05:19 | 116,026,751 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 724 | cpp | adding.cpp | //#include "stdafx.h"
#include<iostream>
using namespace std;
void main()
{
int x,item,price,total=0;
char answer;
do
{
cout<<"Please enter how many items do you want to buy : ";
cin>>item;
for (x=1; x<=item; x++)
{
cout<<"Please enter the price for item "<<x<<": RM ";
cin>>price;
tot... |
11aef745b3412edfaee4c2cda830b2bd92f0c0f6 | a739f928aefc632522946904edab11c418b37800 | /Homework 2/Code/Homework2/storage_manager.h | 1e0ccb427174e166c55697c50cd687b5f99b29ea | [] | no_license | KanaHayama/USC-CSCI561-2020-Spring | 5867018207bf1417db1a8ee17a3eeafd3a11d9bd | 77620d9d6f8e55caf12b1653cf81f7c9a4559e29 | refs/heads/master | 2022-08-14T15:53:35.782304 | 2020-05-21T05:11:58 | 2020-05-21T05:11:58 | 238,593,561 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,377 | h | storage_manager.h | //Name: Zongjian Li, USC ID: 6503378943
#pragma once
#include "storage.h"
#if defined(SEARCH_MODE) || defined(INTERACT_MODE)
#include <iomanip>
#endif
template <typename E>
class StorageManager {
private:
const string FilenamePrefix;
array<std::shared_ptr<RecordStorage<E>>, MAX_STEP + 1> Stores;
s... |
7316a664cc32d52a84c20aa8dc6d4ef945859ea6 | 7ee7445bd2cea7fce4c0cf027d0d1566f35be217 | /src/ACEtk/block/MultiDistributionData/src/verifyDistributionIndex.hpp | c87fd083a9e32ae7da7274335eb6727145d321ba | [
"BSD-2-Clause"
] | permissive | njoy/ACEtk | dad21dd5e8bb5ad4c0928de0b7d6fe7493e35a49 | 172d37583851dc531a31f1a8b140f3d2b9922ee7 | refs/heads/develop | 2023-09-01T00:17:04.898576 | 2023-06-26T22:00:41 | 2023-06-26T22:00:41 | 95,158,830 | 16 | 7 | NOASSERTION | 2023-09-11T19:13:15 | 2017-06-22T21:41:07 | C++ | UTF-8 | C++ | false | false | 468 | hpp | verifyDistributionIndex.hpp | void verifyDistributionIndex( const std::size_t index ) const {
if ( ( index < 1 ) || ( index > this->numberDistributions() ) ) {
Log::error( "Illegal distribution index argument into {} block",
this->name() );
Log::info( "Index value: {}", index );
Log::info( "{} accepts a distribution ... |
e113d8640c8e551c0b96f95ea158f5ad1b6d5efb | ff443629c167f318d071f62886581167c51690c4 | /src/test/blockfilter_tests.cpp | b372f25ea959df3491c916356bbf3c11a8ca4b6c | [
"MIT"
] | permissive | bitcoin/bitcoin | a618b2555d9fe5a2b613e5fec0f4b1eca3b4d86f | 6f03c45f6bb5a6edaa3051968b6a1ca4f84d2ccb | refs/heads/master | 2023-09-05T00:16:48.295861 | 2023-09-02T17:43:00 | 2023-09-02T17:46:33 | 1,181,927 | 77,104 | 33,708 | MIT | 2023-09-14T20:47:31 | 2010-12-19T15:16:43 | C++ | UTF-8 | C++ | false | false | 7,451 | cpp | blockfilter_tests.cpp | // Copyright (c) 2018-2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <test/data/blockfilters.json.h>
#include <test/util/setup_common.h>
#include <blockfilter.h>
#include <core_io.h>
#... |
dd39827ee1f9b9495a5a19a974ac3a0ef0671278 | e245c0b9e6a011f5017f85a1d144b75f0a2ab376 | /ambarella/oryx/stream/record/filters/avqueue/am_av_queue_builder.cpp | daebcaa9248dfafaabad77aca5f59148cbcaa44a | [] | no_license | EricChen2013/SS001_SDK2.6 | e31172cc2edb6933a6f93d5697dd4df1a7f66f59 | d536bb6cf699b9b4959c0dded6c3ef238668d503 | refs/heads/master | 2016-10-19T04:27:45.668386 | 2016-05-11T03:08:53 | 2016-05-11T03:08:53 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,681 | cpp | am_av_queue_builder.cpp | /**
* am_av_queue_builder.cpp
*
* History:
* Dec 31, 2014 - [Shupeng Ren] created file
*
* Copyright (C) 2007-2014, Ambarella, Inc.
*
* All rights reserved. No Part of this file may be reproduced, stored
* in a retrieval system, or transmitted, in any form, or by any means,
* electronic, mechanical, photoco... |
b25780b51a42688489b697a2afd747cfee31a2e8 | 3263d2487af7a58da52ed335df1b8a6f021df453 | /ms3/Workstation.cpp | c09b5b429fdc0545b31436871ad9820dd5334e8e | [] | no_license | RetributionByRevenue/OOP345 | aa8d3c80853144ed84fab6796326a2b924637e9f | 427f1a9d08786b6129645ed7d7bf3888606d89af | refs/heads/master | 2022-12-09T09:11:26.862427 | 2020-09-11T10:55:26 | 2020-09-11T10:55:26 | 299,179,799 | 1 | 0 | null | 2020-09-28T03:44:58 | 2020-09-28T03:44:57 | null | UTF-8 | C++ | false | false | 1,848 | cpp | Workstation.cpp | /**********************************************************
* Name: stephane kamdem kamguia
* Student ID: 135736189
* Milestones: 3
* Seneca email: skamdem-kamguia@myseneca.ca
* Section: NAA
**********************************************************/
#define _CRT_SECURE_NO_WARNINGS
#include <cstring>
#include <i... |
ba3c2404f36f2a298ecd40f7e9d806a31dcb1418 | a8afcfc9beb8183b169dea7a63a5aefb7b590bad | /Source/learning_pt0_1/learning_pt0_1GameModeBase.cpp | a3a1c63b56f77fb5d964d0b4551430ab628999e5 | [] | no_license | mahmudzero/ue4_interface_blueprints_and_cpp | 218cae2a94321a27f07fdf4c27c94d49dd7c2dde | 2160004fe565ccfdee5b66bc5cbbad749f277602 | refs/heads/master | 2022-12-18T03:36:07.475900 | 2020-09-18T02:04:32 | 2020-09-18T02:04:32 | 296,174,557 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 94 | cpp | learning_pt0_1GameModeBase.cpp | // Copyright Epic Games, Inc. All Rights Reserved.
#include "learning_pt0_1GameModeBase.h"
|
899f9a7ede2fdeabfc23c3fcf7f337ee6ff4d4e5 | acdedc0b0dba0b957ade171e8a50614ce6998ec7 | /3-20/miaoz/3.cpp | e17be64e592dd3ff9e5f3aa9b06707c0347af8be | [] | no_license | miaozasanynoe/Rush_Code | 6b412d43ca7573c81f6961ddf2d5e552b4e0e8ee | 7c189dff10a77a723547bd607ae5fbb88e46a01a | refs/heads/master | 2021-03-28T17:28:51.971411 | 2020-03-23T12:50:52 | 2020-03-23T12:50:52 | 247,881,385 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 465 | cpp | 3.cpp | class Solution {
public:
int inf=-0x7f7f7f7f;
int maxProfit(vector<int>& prices) {
int dp[2][2]={0,prices.empty()?0:0-prices[0],inf,inf};
for(int i=1;i<prices.size();i++){
dp[1][0]=max(dp[1][0],dp[1][1]+prices[i]);
dp[1][1]=max(dp[1][1],dp[0][0]-prices[i]);
dp... |
d25e2f4cb710e5d039bfc1283ccf7f0a7a42c97a | cce1f86e49ff3935f6add4f383beb78ad829e1d8 | /CMS/GuidoCMS/controlext/standertextedit.h | 37ecdd4506b1b80bda059f8257ba93db76170072 | [] | no_license | GuidoLuo0521/Projects | d25a46b12d9a24446be2066ce15867cd3abf8f5e | 9eab2c9a06d43bb58d33e14d2c66217f38a2c0b1 | refs/heads/master | 2023-08-12T13:27:15.825581 | 2021-09-22T08:50:44 | 2021-09-22T08:50:44 | 375,923,550 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 859 | h | standertextedit.h | #ifndef STANDERTEXTEDIT_H
#define STANDERTEXTEDIT_H
#include "controlext/standerinputstructer.h"
#include <QLabel>
#include <QPlainTextEdit>
#include <QTextEdit>
class StanderPlainTextEdit : public StanderInputStructer
{
Q_OBJECT
public:
StanderPlainTextEdit(
const QString& label,
const QStri... |
632824de0b51ab8cc45ea8996d5470cb7ad13ffd | 8f0024332ed057fa818c75245c93d6d5bdbd4054 | /98.Managers/02.SceneMgr/00.Scene/00.Logo/Logo.cpp | 220649c9471b47d1f8fc3bed99a0dfa630e19ce5 | [] | no_license | js7217/DX9_2D_TalesWeaver | 44b81ddb80bf5a6b84f9afc839ab60e81817b7fe | 670a7da3e384689e6e21033cc23b51f88d107120 | refs/heads/master | 2021-05-19T07:14:13.082978 | 2020-03-31T11:23:11 | 2020-03-31T11:23:11 | 251,580,782 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 2,742 | cpp | Logo.cpp | #include "stdafx.h"
#include "Logo.h"
#include "LoadingBar.h"
CLogo::CLogo()
{
}
CLogo::~CLogo()
{
Release();
}
void CLogo::Update()
{
int iCount = CTextureMgr::GetInstance()->GetLoadingCount();
dynamic_cast<CLoadingBar*>(m_pLoadingBar)->Set_BarGauge(iCount);
m_pLoadingBar->Update();
}
v... |
18088bc1ecd1bf94516ce957dd3dc2d7e481b0ab | 0846b53e3e2c3364cbd053cc384cb96164264202 | /103-09.cpp | 9c4edb248a208caaa18b2410975f41e2e931c8d6 | [] | no_license | aluxian/high-school-cpp | f2a9d572524ec356eeb4908178ee2ec7ce38ef01 | d138cad0167d89473fc03b2b7a4ead54649f5bad | refs/heads/master | 2021-06-23T04:45:57.148113 | 2017-08-27T09:46:35 | 2017-08-27T09:46:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 187 | cpp | 103-09.cpp | #include <iostream>
using namespace std;
int main()
{
int x = 12,
y = 23,
s = 0;
if (x%2 != 0)
x++;
for (int i = x; i <= y; i+=2)
s+=i;
cout << s;
cin >> x;
return 0;
} |
d8164a95f22335d178fdf74390cf6e29637818ae | ddc8b0efad771ab9c06e48a25b8102a462159e77 | /1070 - Algebraic Problem.cpp | 7277a51c0def521d6e6fe051477a8fd08b0ee7e4 | [] | no_license | fuad7161/LightOJ-Solutions | 92dc0a232665d3e63e96473571a717e57e6d0552 | ed2699d5b547541e3ed83f39abd282f319132334 | refs/heads/master | 2023-03-15T14:26:02.611110 | 2017-12-04T08:08:36 | 2017-12-04T08:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,961 | cpp | 1070 - Algebraic Problem.cpp | #include <stdio.h>
#include <climits>
#include <iostream>
#include <map>
#include <cmath>
#include <algorithm>
#include <set>
#include <stack>
#include <deque>
#include <vector>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <utility>
#include <queue>
using namespace std;
#define ll unsigned long ... |
17aa9820c4f29195929097c28fd31c0f168d5d34 | c4e0c74f0d2ca455d8bdb80cf011813349f3501e | /kernel/vds_data/deflate_p.h | ed9036fe16134f13c92c2eda48eccf832400d5bb | [
"MIT"
] | permissive | praveenmunagapati/vds | dd5749830619f09f9d745cd3187efbd218b66b14 | 875b8904e8706ab6b9e078f017f037e60a8f8d74 | refs/heads/master | 2021-01-01T06:12:45.809178 | 2017-07-16T09:22:03 | 2017-07-16T09:22:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,303 | h | deflate_p.h | #ifndef __VDS_DATA_DEFLATE_P_H_
#define __VDS_DATA_DEFLATE_P_H_
/*
Copyright (c) 2017, Vadim Malyshev, lboss75@gmail.com
All rights reserved
*/
#include "zlib.h"
#include "deflate.h"
namespace vds {
class _deflate_handler
{
public:
_deflate_handler(int compression_level)
: state_(StateEnum::STATE_NORM... |
54367afd3370c291a762a311f0a8925542010673 | 65d89c457d5186d0e73f7e5ddbe14c3c3b4c1958 | /heymodule/Specifier.cpp | e8dc515a10d30e15c79f480f5b89657ab2165b4d | [
"MIT"
] | permissive | Taffer/BeOS | 73a58f1e2442e6b5fc752899436e01af3d52fd21 | e21aba07f2edaf66cb512a1024367d46a906407f | refs/heads/master | 2022-12-08T14:17:01.583051 | 2022-11-25T23:09:43 | 2022-11-25T23:09:43 | 25,280,511 | 7 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 8,825 | cpp | Specifier.cpp | // Specifier
//
// The Specifier object is used by heymodule to target specific properties
// of an application.
//
// Copyright © 1998 Chris Herborth (chrish@kagi.com)
// Arcane Dragon Software
//
// The add_specifier() function at the end of this file was borrowed from
// code posted by Attila Mezei ... |
e96b0d9faac23898f0c70352fdece62cda7dc084 | 4dc8ba6b2ae4ec978310c918c1b23e6a7d45e450 | /src/SPI/SPIDriver.h | 556ad51f589fd40cb110fea5999745ccf8816a6e | [
"MIT"
] | permissive | mitchdz/Smart-Doorbell | 42a2cf526b951384f7976bfb5d76144807de008f | cbc04691a65d37ce1a19cba2138d2f8363acf290 | refs/heads/main | 2023-04-05T14:21:33.555921 | 2021-02-17T21:51:30 | 2021-02-17T21:51:30 | 337,545,958 | 0 | 0 | MIT | 2021-02-09T21:50:34 | 2021-02-09T21:50:33 | null | UTF-8 | C++ | false | false | 1,845 | h | SPIDriver.h | /*
* MIT License
*
* Copyright (c) 2021 Lena Voytek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modi... |
0f6228d40f8ee69ad5795986dcc8a329a85a2d98 | 1bd9e3cda029e15d43a2e537663495ff27e317e2 | /buoyantPimpleFoam_timevaryingBC/heatfluxtimevary/99/omega | f72da7d765523f2c568c4160a29adfbf0bf274b0 | [] | no_license | tsam1307/OpenFoam_heatTrf | 810b81164d3b67001bfce5ab9311d9b3d45b5c9d | 799753d24862607a3383aa582a6d9e23840c3b15 | refs/heads/main | 2023-08-10T23:27:40.420639 | 2021-09-18T12:46:01 | 2021-09-18T12:46:01 | 382,377,763 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 749,676 | omega | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2006 |
... | |
e48de1cab5fccf46e71d61b59661f0b26def2870 | 2aed63d9aa027419b797e56b508417789a604a8b | /injector2degHex/case_interFoam_3mm/processor4/0.3/p | c603eac9f18357baa491d7df7dfa57c1b2d2427f | [] | no_license | icl-rocketry/injectorCFDModelling | 70137f1c6574240c7202638c3713102a3e1e9fd8 | 96591cf2cf3cd4cbd64536d8ae47ed8080ed9016 | refs/heads/main | 2023-08-25T03:30:59.244137 | 2021-10-09T21:04:45 | 2021-10-09T21:04:45 | 322,369,673 | 3 | 5 | null | null | null | null | UTF-8 | C++ | false | false | 44,556 | p | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v2012 |
... | |
5f1e10d8ebbc9572ca5650919a1c547ed75cb8ee | 966ee123a8312c53211451a330f80c269731f7b6 | /lnglat.cpp | 48040ee4c50e4d326d1cf8e2dd66c85b70c4543d | [] | no_license | tmazur/RaspberryPi-Wind-Powered-Robot-Navigation | f8a43eb24b757cd49aa1c34c175b380cbbe3095e | 88572795143fa9db84a22e2f8356cc335210834d | refs/heads/master | 2021-01-10T02:45:10.104638 | 2015-11-10T20:20:15 | 2015-11-10T20:20:15 | 45,938,225 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 355 | cpp | lnglat.cpp | #include "lnglat.h"
#include "map.h"
LngLat LngLatPos::toLngLat(Map *pMap) {
return pMap->posToLngLat(this);
}
LngLatPos LngLat::toPos(Map *pMap) {
return pMap->lngLatToPos(this);
}
LngLatPos LngLatPos::offset(int lngOff, int latOff, Map* map) {
return LngLatPos(lngPos+(lngOff*((int)map->invertLng)), latPos... |
1037c40d2686b2ab1fdd903c7d032b1d2a3a62de | d54b251df194e96744063c5111af00ff54bceaa9 | /Engine/Poo.cpp | d939870ad6f06f14a35b2ba1db5759b8818f8605 | [] | no_license | GarrettBrown-dev/LearningCPlusPlus | f5545ce2fb5ea3f03db90bf994b1ec229cc4ff49 | d5ed5798d5db8770c447f4fd0b077f22b1b9e238 | refs/heads/master | 2023-05-22T15:28:18.891111 | 2021-06-10T23:47:33 | 2021-06-10T23:47:33 | 366,874,830 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 790 | cpp | Poo.cpp | #include "Poo.h"
#include "Graphics.h"
void Poo::Update()
{
x += vx;
y += vy;
const int right = x + width;
if (x < 0)
{
x = 0;
vx = -vx;
}
else if (right >= Graphics::ScreenWidth)
{
x = (Graphics::ScreenWidth - 1) - width;
vx = -vx;
}
const int bottom = y + height;
if (y < 0)
{
y = 0;
vy = -v... |
72ce0f5a4301ef3d6913e0026bb89bc97e7cb74e | a3d6556180e74af7b555f8d47d3fea55b94bcbda | /ash/system/holding_space/holding_space_item_views_section.cc | 93618ddd75242ae5489fb8673840ca3bd3b36f3c | [
"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 | 19,764 | cc | holding_space_item_views_section.cc | // 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.
#include "ash/system/holding_space/holding_space_item_views_section.h"
#include "ash/public/cpp/holding_space/holding_space_constants.h"
#include "ash/public/cpp/holding_space... |
ce3093b8d24315c37b6e4bc4e52eb77c216e3212 | be75a8463f31bb6c4298cef85e53202004083574 | /test/core/nga_t_comparisons.hpp | 7aa01f37c6fe5fed2c6c8fed8d0e49c57aac7a93 | [
"BSL-1.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | erythronelumbo/tesela | ce9700000bb6763a02f2742dd22c1faf4f13ec26 | 3b86a7b9501c7136d5168c7e314740fa7f72f7a7 | refs/heads/master | 2022-11-02T13:21:14.364394 | 2019-06-30T22:34:17 | 2019-06-30T22:34:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,698 | hpp | nga_t_comparisons.hpp | // Copyright (c) 2019 Álvaro Ceballos
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt
#ifndef CYNODELIC_TESELA_TEST_CORE_NGA_T_COMPARISONS_HPP
#define CYNODELIC_TESELA_TEST_CORE_NGA_T_COMPARISONS_HPP
CYNODELIC_TESTER_TEST_... |
e78931a23be6e17fd931cb0b8accba8ade26678a | 9f98fd9a8dbf9ab5cf477aa3bd0fdece2779b3bb | /BankAccount.cpp | 3a9946e5d0b8b2df6ff7d6bf89ad5d71e342654c | [] | no_license | abhinawa/Virtual-Stock-Portfolio-Bank-Account-Management-System | 4fb869e6cfe32d9dafbd9067b7ba6f98cf866acf | 25dfad1523f4d812b89f51883a7640bd013d513a | refs/heads/master | 2021-06-13T19:30:46.692381 | 2017-02-22T19:51:12 | 2017-02-22T19:51:12 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,767 | cpp | BankAccount.cpp | #include<iostream>
#include<iomanip>
#include<time.h>
#include<fstream>
#include<string>
#include<stdlib.h>
using namespace std;
#include "BankAccount.h"
//constructor
BankAccount::BankAccount()
{
setCashBalance();
deposit_tempval = 0;
withdraw_tempval = 0;
}
// destructor
BankAccount::~BankAccount()
{
cout ... |
2ed65bc6261d180e1e94d92f63a23cfc4c2e8a64 | ba37f5ccb316cbacfe24aa68d3e680947370ffbd | /src/fskit/GridDynFederatedSimulator.cpp | 2c2fa42b504fee58307b9997ecc133cca8bf78d1 | [
"BSD-3-Clause"
] | permissive | nightlark/GridDyn | e6fe9ab0251b10d86f269b8951ab1e1dd8b56508 | bfcef303c85c5b66bc26e5d16e4df0a07977e594 | refs/heads/helics_updates | 2021-01-24T06:12:32.115450 | 2019-07-19T18:12:34 | 2019-07-19T18:12:34 | 202,812,824 | 0 | 0 | NOASSERTION | 2019-08-17T00:22:00 | 2019-08-16T23:43:07 | C++ | UTF-8 | C++ | false | false | 3,888 | cpp | GridDynFederatedSimulator.cpp | /*
* -----------------------------------------------------------------
* LLNS Copyright Start
* Copyright (c) 2014, Lawrence Livermore National Security
* This work was performed under the auspices of the U.S. Department
* of Energy by Lawrence Livermore National Laboratory in part under
* Contract W-7405-Eng-48 ... |
c5d4559f0ac321545b8bfc23a7246eee2e2bba20 | 94e8e0d10dd993cb08785d1bab6aafc1055f509d | /C++STL/C++STL/samples/stable_partition.h | e3defde8be7dd26a7b16d09ab743008b9c8c1b5f | [] | no_license | albertomila/continous-formation | 1d416170d2ad85ad1e2ea5eef0f2436cd299c716 | e3a57f0fc22dc16b1e9cce1ed100795ca664359d | refs/heads/master | 2020-06-14T00:46:23.147271 | 2019-07-08T18:38:54 | 2019-07-08T18:38:54 | 194,838,856 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 688 | h | stable_partition.h | #pragma once
#include "stdafx.h"
using namespace std;
struct StablePartition_Predicate_IsOdd
{
bool operator()(int value)
{
return ((value % 2) == 1);
}
};
BEGIN_TEST(StablePartition)
vector<int> myvector;
vector<int>::iterator it, bound;
// set some values:
for (int i=1; i<10; ++i) myvector.push_back(i... |
3ea58f0a1131b2d119841e86d4f517ad56322c4a | a37fe8de18e82d2fbc04da4c409897de34c2d0b2 | /KOE/DG/TABOUT.H | 74e410ff151ee4b94ea3bb4a8cdbee74539e1ce9 | [] | no_license | jskripsky/ancient | e469354deef1ed2fee652f8686a033ee5d4bb970 | 052d342d5ca701c9b74b2505bd745d7849f66dcd | refs/heads/master | 2016-09-05T14:26:45.625760 | 2014-04-15T17:34:38 | 2014-04-15T17:36:17 | 18,808,800 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,173 | h | TABOUT.H | /*****************************************************************************
** **
** **
** DOS Dialog Generator **
... |
cea7be957d1392698973814791f9d5aac096e923 | 2502943d23a18cce4b2cb169288ca08e2243ca4f | /HDOJcode/1555 2011-12-07 14 34 55.cpp | faacd5a254e27a78e6831c8712d7f02cc2cee3c5 | [] | no_license | townboy/acm-algorithm | 27745db88cf8e3f84836f98a6c2dfa4a76ee4227 | 4999e15efcd7574570065088b085db4a7c185a66 | refs/heads/master | 2021-01-01T16:20:50.099324 | 2014-11-29T06:13:49 | 2014-11-29T06:13:49 | 18,025,712 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 630 | cpp | 1555 2011-12-07 14 34 55.cpp | ******************************
Author : townboy
Submit time : 2011-12-07 14:34:55
Judge Status : Accepted
HDOJ Runid : 5127198
Problem id : 1555
Exe.time : 0MS
Exe.memory : 176K
https://github.com/townboy
******************************
#include<stdio.h>
int k,t;
void gui(int m,int yu... |
cc02703dd2d1379cfb987ccf050e95470996f0ac | 78f4334bc3de2d6e31ae17d406032fe503293ac3 | /include/ieee802.3.hpp | 67bc1c9e69bc2201c6d46f41dbfdbade97a8730b | [
"ISC"
] | permissive | eugenehp/avdecc-pdu | 566e508d4cb921c601ca3b5dd4d0e03815b209f1 | cda4e639b64d6dc115d526d9c76a6a60402b2efd | refs/heads/master | 2021-01-15T17:45:45.649868 | 2012-06-08T19:12:37 | 2012-06-08T19:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,212 | hpp | ieee802.3.hpp | #pragma once
#ifndef IEEE802_3_HPP
#define IEEE802_3_HPP
#include "ieee.hpp"
namespace IEEE802_3
{
using namespace IEEE;
typedef octet_block<6,'-'> mac48;
typedef octet_block<8,'-'> mac64;
struct vlan_tci
{
field<octet,0,doublet,0,2> pcp;
field<bool,0,doublet,3> cfi;
field<doublet,0,doublet,4,15> vid;
... |
faef2a9a30fd28f8bb5245bd780351002d694afa | 5ac069e45cafd2ae9e0056bccf0537fa55f0f066 | /UVA OJ - ALL/UvaJudge130.cc | 5be2e90f4fdcaa08baaa959ba800ca1583bab7d1 | [] | no_license | fernandesitalo-zz/Competitive-Progamming | ed9b4879f6d2b443a6d17a1426821d1674506eb8 | a89f770b8616c00198f74c92a09b59d4a278711d | refs/heads/master | 2022-02-12T17:44:19.641129 | 2019-07-30T12:26:02 | 2019-07-30T12:26:02 | 92,948,182 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 615 | cc | UvaJudge130.cc | #include <bits/stdc++.h>
using namespace std;
#define pb push_back
int f(int n,int k,int at){ // n qtd de pessoas, k e o salto...
vector<int> r;
for(int i = 1 ; i <= n ; ++i) r.pb(i);
while(r.size() > 1){
int kill = (at + k%(r.size()))%(r.size());
int enterra = (kill+k%(r.size())%(r.size()));
cerr ... |
aca272b249198df0f439191e9bc89c259f4831c4 | d9e660af9c6b2bd4da336caffa630691d7b5840e | /include/v2/set/specification.inc | fc970cd58073bc48fa98f1d9834eea322dbec6e3 | [
"Apache-2.0",
"LicenseRef-scancode-us-govt-public-domain"
] | permissive | Goddard-Fortran-Ecosystem/gFTL | 37b20fbfaa6d821e3fa2305f1bbecd9cb40884a2 | 4beb2f415ffe071a251d56eb56da8fcee62dd58c | refs/heads/main | 2023-08-17T23:41:16.242802 | 2023-04-13T13:53:27 | 2023-04-13T13:53:27 | 122,108,503 | 33 | 8 | Apache-2.0 | 2023-08-15T14:37:07 | 2018-02-19T19:13:49 | Fortran | UTF-8 | C++ | false | false | 5,043 | inc | specification.inc | !--------------------------------------------------------------------
! Copyright © 2020 United States Government as represented by the |
! Administrator of the National Aeronautics and Space |
! Administration. No copyright is claimed in the United States |
! under Title 17, U.S. Code. All Other R... |
1b80a40aadc291363522b5ea0614e23bb64f2a67 | b516ffaa751c248a0f085e165e0da022dcd97df4 | /BonEngine/inc/Sfx/Defs.h | 4247cb6b4dd9565985c3f23e55ff1cc5f30ccb15 | [
"MIT"
] | permissive | parhelia512/BonEngine | 0c90909cb15cfaa73a2d7da69e1b0b85fc8dec0d | 49cec684c2307715df0958ed673ff077eac0a395 | refs/heads/master | 2023-02-17T14:22:24.429552 | 2021-07-30T21:05:33 | 2021-07-30T21:05:33 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 876 | h | Defs.h | /*****************************************************************//**
* \file Defs.h
* \brief Misc defs and enum related to SFX.
*
* \author Ronen Ness
* \date May 2020
*********************************************************************/
#pragma once
#include "../dllimport.h"
namespace bon
{
namespace s... |
d2ee921cb06b92c34783159e8b18d68a3082f1e6 | bd8f050be1b0dd6f3f192628adeb60dfff9e7ef6 | /ConsoleMarketer/User.h | 11dba84071bbd8057565290927a36df64c912b87 | [] | no_license | ritou11/Supermarketer | dfb249aaae6c6fe761e7d94a273f75ba38050342 | b03157af5fffe1a77dc7212450fdb6b3ecd5a71f | refs/heads/master | 2021-01-20T05:49:55.503783 | 2017-06-05T03:19:43 | 2017-06-05T03:19:43 | 93,216,287 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 191 | h | User.h | #pragma once
enum USER_TYPE
{
CONSUMER,
ADMIN
};
class User
{
public:
USER_TYPE type;
string username;
User() {
username = "";
type = CONSUMER;
}
};
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.