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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
459c0370004f250fb46b73267af05e54d7e82d39 | 52896a1d66e157f966105bee46cf8a7e48c26df2 | /src/player.cpp | bb93c9c3b92382482d579ea600408d66f2bed505 | [] | no_license | AntonHakansson/c_physics | 9b86027263a1d3c2900806069308e7ecc5ca4c5b | fc8a71f7ba04287c9f69010af633ecfc1a995602 | refs/heads/main | 2023-08-19T10:08:41.625908 | 2021-09-23T16:34:48 | 2021-09-23T16:40:52 | 349,856,320 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,589 | cpp | player.cpp |
#include "player.h"
#include <raylib.h>
#include <raymath.h>
#include "language_layer.h"
#include "physics.h"
Player PlayerInit(physics::World *world) {
Player p = {0};
p.acc = 25.0f;
p.jump_acc = 300.0f;
p.speed_max = 5.0f;
p.body = physics::AddBody(world, {1.0f, 4.0f}, {1.0f, 1.5f}, 50.0f);
p.body->... |
80ff9a1ba988221d4daf5b587f737a9e1c2d2bee | 6c40203055fe652f238fb5f3befaa0d04a788d65 | /src/armnn/backends/ClWorkloads/ClBatchNormalizationFloat32Workload.cpp | dabd495d59ea6054def9b07a3785bd3c1b0002ba | [
"MIT"
] | permissive | Air000/armnn_s32v | 9243f2e8d63b9691b9c7873a54b29ac5a79d2b14 | ec3ee60825d6b7642a70987c4911944cef7a3ee6 | refs/heads/master | 2020-03-27T15:32:37.975405 | 2018-09-01T14:11:34 | 2018-09-01T14:11:34 | 146,724,624 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,824 | cpp | ClBatchNormalizationFloat32Workload.cpp | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include "ClBatchNormalizationFloat32Workload.hpp"
#include "backends/ClTensorHandle.hpp"
#include "backends/CpuTensorHandle.hpp"
#include "backends/ArmComputeTensorUtils.hpp"
namespace armnn
... |
acdec389cd1977fbecdd5adaa3331f6d25b44d9e | 2c91e03a32caececdbfa2e2fcd821049bb66f97f | /main.cc | 7bfacfe9c2911e29ff0c035bc087c068a8dea5f6 | [] | no_license | Philosoph228/sdl200521 | 91bb7163503d98914c0ee07dc94679835300213e | f794e7665527e0ad2a65a333f3f66655ab3a6bee | refs/heads/master | 2022-07-21T09:28:34.075465 | 2020-05-22T05:33:07 | 2020-05-22T05:33:07 | 266,026,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,034 | cc | main.cc | /*
* File: main.cc
* Description: This is a main entry point for application
*
* sdl200521
* Copyright 2020 (c) Philosoph228 <philosoph228@gmail.com>
*
*/
#define SDL_MAIN_HANDLED
#include <SDL2/SDL.h>
int main(int argc, char* argv[]) {
// Init SDL
SDL_Init(SDL_INIT_VIDEO);
SDL_Window* window =
SDL... |
37175d013f661ed6d7b748a6c8e5129737b068af | 0d1c82ab85d11f7476e6c539baaa50143ebd3084 | /SII-2020/SII-2020/Error.h | 63edcd8b2a045f227d58e334b990fc1fd0e543d9 | [] | no_license | Selevn/SII-2020 | 4f7a047a83afee4463d84a8220d661306b3d562b | e7a5df5d3131117ce0d8a05fba16e6a383205165 | refs/heads/master | 2023-02-07T21:08:43.665487 | 2020-12-14T18:17:45 | 2020-12-14T18:17:45 | 314,994,906 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,264 | h | Error.h | #pragma once
#define ERROR_THROW(id) Error::geterror(id);
#define ERROR_THROW_IN(id, l, c) Error::geterrorin(id, l, c); //id строка колонка
#define ERROR_ENTRY(id, m) {id, m,{-1, -1}} //элемент таблицы ошибок
#define ERROR_MAXSIZE_MESSAGE 200
#define ERROR_ENTRY_NODEF(id) ERROR_ENTRY(-id,"Неопределенная ошибка") //1 не... |
d6e4eca781d193131dae02ece68b65bd5a1f2e38 | cce3bf9356f1a2a0b4e6c61353a098ab63bd9802 | /BasicLibrary/ProtocolConnector.h | 7ed573b40525a9d91bfd5f25a2f8ddd5c684378d | [] | no_license | k06a/RitM | ff98a1282c582fce53fa1f4e1a01615f7c95c90c | 31bb0b8a91ada54d4832a083daf295d2c01d2449 | refs/heads/master | 2020-03-12T00:25:39.644330 | 2018-04-20T11:45:07 | 2018-04-20T11:45:07 | 130,348,755 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,000 | h | ProtocolConnector.h | #ifndef PROTOCOLCONNECTOR_H
#define PROTOCOLCONNECTOR_H
#include <map>
#include <deque>
#include "CommonInclude.h"
#include "AbstractConnector.h"
namespace RitM
{
class ProtocolConnector : public AbstractConnector
{
typedef std::multimap<Protocol,ProcessorPtr> MyMap;
MyMap pro... |
c4347c5e31cfcde7aecea6bc937675e83459ab4f | da9d2fb0cfe3d92b45d52615e8d95d8192ca67ad | /string tokensation using strtok functn.cpp | e13ff5416445bf3b8e0e3777decac5445ff8300a | [] | no_license | Hack-sham/CODING-BLOCKS-COMPETITIVE-CODING-COURSE | dde7fc17586efbb381ba7aef862b96a9bb3fce16 | 1703495f71c545371d1326b8b9e13edb0fb01b36 | refs/heads/main | 2023-06-04T23:10:36.426639 | 2021-06-22T10:04:47 | 2021-06-22T10:04:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 672 | cpp | string tokensation using strtok functn.cpp | //string tokanisation using strtok function
#include<iostream>
#include<bits/stdc++.h>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
// strtok -> inbuild function
// function declaration -> char *strtok(char *S,char * delimeter)
// this function returns a token on every funct... |
76682f8eccfe095a7e154c65bf073d1691bd8fbc | 814f8db05beb9253f5f06b5fee8961e57c08006a | /Classes/Context/point_3d.cpp | e45fbc69b793dcbddb0c21b41eb718f270f8b579 | [] | no_license | Fviramontes8/UNMECE231Code | 2fec990299eed355d858e2b35b671afe02ebfa05 | f7b6644fa089c84ca6c6611c505a4c4791f1ebf5 | refs/heads/main | 2023-02-19T19:23:40.455661 | 2021-01-25T05:15:21 | 2021-01-25T05:15:21 | 331,788,397 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | point_3d.cpp | #include <iostream>
struct _point_3d {
double x;
double y;
double z;
void (*init) (struct _point_3d *, double, double, double);
void (*print) (struct _point_3d *);
};
typedef struct _point_3d Point3D;
void set_point(Point3D *p, double p_x, double p_y, double p_z) {
p->x = p_x;
p->y = p_y;
p->z = p_z;
}
voi... |
10086820930da7488a7f40290bf702232734ba9e | 7d3ce1906ae6d8cf82cbafbfbef8e68467d196ef | /test/test_Matrix.cpp | d33c114d389c85cde97f9620bc9bb7cbb7e030ab | [] | no_license | kienvuong/cpp-schoolopdr | 57e5d075013a9a3ffec3935eb18015c4f0470f97 | 2d31477b61445d7751db749149227f2dff0c144c | refs/heads/master | 2022-04-20T16:49:51.017681 | 2020-04-22T14:10:38 | 2020-04-22T14:10:38 | 242,740,464 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,982 | cpp | test_Matrix.cpp | #include <Catch2/catch.hpp>
#include "Matrix.hpp"
#include "RowVector.hpp"
TEST_CASE("Matrix can be added/subtracted with another") {
Matrix matrixA(
RowVector(1, 2, 3),
RowVector(4, 5, 6),
RowVector(7, 8, 9)
);
Matrix matrixB(
RowVector(-1, 2, 3),
RowVector(-4, 5, ... |
871c6be8032f97c361d29dbd10e836bf359b6a6d | a14f3e72909cd389da6f485bf8f266de3be39f0d | /interface/omni/core/model/type.hpp | d062b0d0ebc2b00879c81036dad6bb6ab02d9b89 | [
"MIT"
] | permissive | daniel-kun/omni | 6334c493536a638944e2acda3e9dd75adeddb6c0 | ec9e0a2688677f53c3b4aa3b68f4f788a81e8a18 | refs/heads/master | 2021-05-16T02:18:05.886357 | 2017-12-07T19:11:55 | 2017-12-07T19:11:55 | 10,886,593 | 33 | 2 | null | 2016-03-05T13:04:25 | 2013-06-23T15:09:26 | C++ | UTF-8 | C++ | false | false | 2,534 | hpp | type.hpp | #ifndef OMNI_CORE_TYPE_HPP
#define OMNI_CORE_TYPE_HPP
#include <omni/core/core.hpp>
#include <omni/core/model/entity.hpp>
#include <omni/core/model/type_class.hpp>
#ifndef Q_MOC_RUN
#include <boost/noncopyable.hpp>
#endif
namespace llvm {
class Type;
}
namespace omni {
namespace core {
namespace model {
/*... |
1f5decb3e643a04e90ddf22b423c85f045903c63 | 2285679c052989a92ecfe8d895535e0e67bd1722 | /GraphicsProject/GraphicsProject/Mesh.h | ac08058a1a1e8ba5e4e8cfa917845dd19b6a143d | [] | no_license | aaronderstine/Graphics | 7e4202ca4bc12e1c3566f966367dfcd71a1c0e0e | 8a7b5224e45c3aba4b207e315b31401c0d5e47f6 | refs/heads/master | 2021-01-23T07:26:52.661743 | 2014-04-29T19:12:46 | 2014-04-29T19:12:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 899 | h | Mesh.h | /****************************************************/
/* Author: Aaron Derstine */
/* Course: COMP 361, Computer Graphics */
/* Date: March 29, 2014 */
/* Name: Mesh.h */
/* Description: This file defines the a basic... |
40b33e9be8735510bc1fd18961d9a94bde6b6ce4 | 200c11e3c0669a25dd1dfc1b121bd0dc118abc61 | /任务管理器/MFCApplication2/myduimodo.h | 252ff44ae05f891b09d86be906912770d8ed158c | [] | no_license | haidragon/taskmanager | ef1c2e6502c18c06900cd543785299798c4c1a6c | abd8d04b64a92a1e867e94a2451caff557c3878d | refs/heads/master | 2021-04-12T09:35:46.500894 | 2018-10-21T13:27:01 | 2018-10-21T13:27:01 | 126,572,019 | 0 | 3 | null | null | null | null | GB18030 | C++ | false | false | 529 | h | myduimodo.h | #pragma once
#include "afxcmn.h"
// myduimodo 对话框
class myduimodo : public CDialogEx
{
DECLARE_DYNAMIC(myduimodo)
public:
myduimodo(CWnd* pParent = NULL); // 标准构造函数
virtual ~myduimodo();
DWORD pid;
bool Enumheap(DWORD PID);
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG3 };
#end... |
37b6a073cdad6fe1e9459536960cec1b52a8c9cb | d902097ef3e8a61949141617ca4d4f81e1844f0c | /PAT甲级题解/1102.cpp | 9d9c21f0d187a74d21df934b250c23c575b34b8c | [] | no_license | ddNTP/My-Code | 1acfd60f03bc2b0d3444891eb2d321d0078dd273 | 65ffe5439c0ce7607b4108860df3f18916dc570e | refs/heads/master | 2022-09-04T07:40:47.458205 | 2022-08-08T07:21:35 | 2022-08-08T07:21:35 | 244,831,100 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,376 | cpp | 1102.cpp | #include<iostream>
#include<string>
#include<queue>
using namespace std;
string s[10];
bool have[10];
int lev[100];
int in[100];
struct node
{
int data;
node *lc, *rc;
};
node *create(int root) {
node *r = new node;
r->data = root;
if (s[root][0] != '-')
r->rc = create(s[root][0] - '0');
else ... |
ac6c8d245651cddd212dbfbcda5ec58ae248ceee | 89b10aa13567d49a2e106a07d328fd24e5860f4d | /BTVN_21_05_16/b3.cpp | d0c28402b9aad59bb8c76e7bc6b3c1ec7d990155 | [] | no_license | winvp1999/BTVN_Genetic | 036f59932e00106b610d70e0ce914043ae7f61f6 | 85c3b9d1a41a9cdeaf4e946c3c8c527977be0538 | refs/heads/main | 2023-07-30T19:46:49.433149 | 2021-09-21T03:39:49 | 2021-09-21T03:39:49 | 369,939,308 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 470 | cpp | b3.cpp | //Bai 3. Viet chuong trinh in mot so nguyen, mot so thuc,
// mot ky tu da duoc dinh nghia truoc
#include <iostream>
using namespace std;
void b3()
{
//Input
int SoNguyen = 69;
float SoThuc = 99.69;
char Character = '@';
//Output
cout << "\nBien so nguyen\t: " << SoNguyen
<< "\nBien... |
0ecdeab2459a3b5c0328f10de97fc360a67adac1 | d55efb53fa2b318b1edd9f7c0cc97d34c5c09d2c | /AtCoder/D - Anything Goes to Zero.cpp | a0c52f1f2fc391589cbc770bc167bd10aab55690 | [] | no_license | obaydullahmhs/Programming-Contest | deea362d6140b817c905a2653b98ba05a41636e1 | e52975c6b1373606655a174e7fff4a4316327aad | refs/heads/master | 2022-09-14T17:20:22.698937 | 2022-09-03T18:02:06 | 2022-09-03T18:02:06 | 238,995,288 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,212 | cpp | D - Anything Goes to Zero.cpp | /**বিসমিল্লাহির রহমানির রহীম **/
#include<bits/stdc++.h>
#define pi acos(-1.0)
#define eps 1e-9
#define ff first
#define ss second
#define nl '\n'
#define CLR(a) ... |
85166c44da471529f379a0412d08725bc547ef8c | 462d56087539769a099c4f0faa4bc144e393cde9 | /leetcode/word_ladder.cpp | 3203ff546fbc54df6fcd4d76e7861c0a009a3575 | [] | no_license | rahulsbisen/interview | be0b0be6ef7120806a5bfdc26bf355a4f08cdb12 | 3e52bfb101287bda5b327009a8177d447dab9c18 | refs/heads/master | 2018-05-14T02:07:22.979216 | 2013-09-28T06:46:47 | 2013-09-28T06:46:47 | 48,376,051 | 1 | 0 | null | 2015-12-21T14:28:00 | 2015-12-21T14:27:59 | null | UTF-8 | C++ | false | false | 994 | cpp | word_ladder.cpp | class Solution {
public:
int ladderLength(string start, string end, unordered_set<string> &dict) {
// Start typing your C/C++ solution below
// DO NOT write int main() function
queue<pair<string, int>> q;
q.push(pair<string, int>(start, 1));
int l = start.length();
wh... |
2f230f1e7a8563e91a750b5f46fb84248827ef0c | a0ecaf557fad395a6c8a44a92505fbb17e328910 | /dynawo/sources/Solvers/Common/DYNSolverFactory.cpp | e10a32cbd10e5a8b2cbf4256aceffdb807fa32ee | [] | no_license | koukiMohamed/ModalAnalysis | ab310c05545a95390e92dd8ab85bc106c84ce545 | 3b8b3b9319a732ca196ae4a1b60484e1bc860770 | refs/heads/master | 2022-12-20T06:44:59.274346 | 2020-09-28T14:50:37 | 2020-09-28T14:50:37 | 299,256,112 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 129 | cpp | DYNSolverFactory.cpp | version https://git-lfs.github.com/spec/v1
oid sha256:45c0a283e176a1efe5179362b6c1ecd4edd3dd5dd160629a8455caf511d3ebfb
size 3749
|
2214191d1b85bfb5b0a262cc095a849f895d1b5f | 511de588d62ab3b3125902e807d2ef2c1512aef8 | /ejercicio1/PoligonoIrreg.cpp | 256f596fe04d3dbc960936a3d3e32c87492f808e | [] | no_license | olaaldi/sistemas-distribuidos | 0fe799be2f071841f0699c292cddcdb9db1ae1e6 | 216f3d23217f3ae71bf38201f4bd89326dafc4d0 | refs/heads/master | 2020-09-05T08:48:50.799041 | 2018-06-16T20:37:48 | 2018-06-16T20:37:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 721 | cpp | PoligonoIrreg.cpp | #include "PoligonoIrreg.h"
#include "Coordenada.h"
#include <iostream>
#include <algorithm>
using namespace std;
PoligonoIrreg::PoligonoIrreg(int n){
vertices.reserve(n);
}
bool PoligonoIrreg::comparacion(Coordenada a, Coordenada b) {
return a.get_magnitud() < b.get_magnitud();
}
void PoligonoIrreg::anadeVerti... |
3404db6e99e3e0c691c56b2832f5aff45725d812 | ae72e35a44ffebe62cb19fba8a3105a9c944055a | /trunk/src/athena/Configuration.h | 98d9f2b4d90b0b83bf5c13d01e52275b6fb82a5e | [] | no_license | RitchieLab/athena | 7113e32d6ce3c060cbff6f19c944b85d921b4157 | 9294ea9cc2776c686cea96fd37c4b09eef6de446 | refs/heads/master | 2020-03-09T19:40:43.144918 | 2020-02-12T21:01:00 | 2020-02-12T21:01:00 | 128,963,752 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,231 | h | Configuration.h | /*
Copyright Marylyn Ritchie 2011
This file is part of ATHENA.
ATHENA 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 3 of the License, or
(at your option) any later version.
ATHENA is distribute... |
7c03d257a34d94f04274f7d77f5500c711af7592 | c20c3cb1699f726fc285a6917d0ee673915f5b06 | /WagonWar/Libraries/gpg.framework/Versions/A/Headers/quest_manager.h | 4324d21e1277bf2487fe92d18554e62e8c034d30 | [
"MIT",
"CC-BY-3.0",
"CC-BY-4.0",
"Apache-2.0"
] | permissive | zoozooll/MyExercise | 35a18c0ead552d5be45f627066a5066f6cc8c99b | 1be14e0252babb28e32951fa1e35fc867a6ac070 | refs/heads/master | 2023-04-04T04:24:14.275531 | 2021-04-18T15:01:03 | 2021-04-18T15:01:03 | 108,665,215 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,273 | h | quest_manager.h | /**
* @file gpg/quest_manager.h
* @copyright Copyright 2014 Google Inc. All Rights Reserved.
* @brief Entry points for Play Games Quest functionality.
*/
#ifndef GPG_QUEST_MANAGER_H_
#define GPG_QUEST_MANAGER_H_
#ifndef __cplusplus
#error Header file supports C++ only
#endif // __cplusplus
#include <functional>... |
625a36dfa922f728c250cb0c199cd72fe4d06a6c | 70466af3857ffb031450606be1a38fef5f929ff4 | /electric_heater/electric_heater.ino | 871f2284eb5d1dd55899cb0ca6863ffefbb65489 | [] | no_license | marwaelfeqy/electric-heater-iot | a944a57b550143ed143639129ae0b33088de4025 | 6e83da1483da08c7801f176ab458bf14f8e7b8cb | refs/heads/master | 2022-12-30T00:34:14.003205 | 2020-10-17T09:53:14 | 2020-10-17T09:53:14 | 304,846,494 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,132 | ino | electric_heater.ino | #include <ESP8266WiFi.h>
#include <Ticker.h>
#include "UbidotsESPMQTT.h"
#include <ESP8266WiFi.h>
#define u8 unsigned char
#define On LOW
#define Off HIGH
#define b_on_off D5
#define b_up D6
#define b_down D7
#define power D2
#define testp D8
//#define TOKEN "BBFF-eg2hA0fhc4wDWzqHMDtyNnbtYe2O6m"//F
//#define TOKEN... |
1b6a294834a009cf74ed093130999724a509e850 | 93981396be6e4bcb79c25f5aa96cf921ca390f77 | /AsyncECS/Game/Logic/Hierarchy/HierarchySystem.cpp | a9dcdc21e3bf1323d9544a5e0ec7b91489f303b8 | [] | no_license | JeppeNielsen/AsyncECS | bf256b99603eb40d339ad89a615ac8dbffebfa6b | f7faa305efeac5d2aa44f31e2980f6b8dbe1cfde | refs/heads/master | 2020-09-01T19:53:23.084488 | 2020-08-31T19:11:56 | 2020-08-31T19:11:56 | 219,041,593 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,655 | cpp | HierarchySystem.cpp | //
// AssignChildrenSystem.cpp
// AsyncECS
//
// Created by Jeppe Nielsen on 23/02/2020.
// Copyright © 2020 Jeppe Nielsen. All rights reserved.
//
#include "HierarchySystem.hpp"
using namespace Game;
using namespace AsyncECS;
void HierarchySystem::Update(GameObject gameObject, Hierarchy& hierarchy) {
auto p... |
0232bfb27689fc242f8eaefc9cf5b7e1a92286ba | bed3ac926beac0f4e0293303d7b2a6031ee476c9 | /Modules/IO/Meta/src/itkMetaImageIO.cxx | 600c3c9c3ecb63efe3fd96ec455c4966ecc655b9 | [
"IJG",
"Zlib",
"LicenseRef-scancode-proprietary-license",
"SMLNJ",
"BSD-3-Clause",
"BSD-4.3TAHOE",
"LicenseRef-scancode-free-unknown",
"Spencer-86",
"LicenseRef-scancode-llnl",
"FSFUL",
"Libpng",
"libtiff",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive",
... | permissive | InsightSoftwareConsortium/ITK | ed9dbbc5b8b3f7511f007c0fc0eebb3ad37b88eb | 3eb8fd7cdfbc5ac2d0c2e5e776848a4cbab3d7e1 | refs/heads/master | 2023-08-31T17:21:47.754304 | 2023-08-31T00:58:51 | 2023-08-31T14:12:21 | 800,928 | 1,229 | 656 | Apache-2.0 | 2023-09-14T17:54:00 | 2010-07-27T15:48:04 | C++ | UTF-8 | C++ | false | false | 44,118 | cxx | itkMetaImageIO.cxx | /*=========================================================================
*
* Copyright NumFOCUS
*
* 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.o... |
308132eb9bd03d9e9a4376aa24c873a5a21d5f4e | 32225ff4d01b520926e0538ede06e947d818527c | /matrix/dimension.h | f0d2ca908615c8cdd038cb8876ccf663414a9254 | [] | no_license | lukasTolksdorf/cpp_ML | d0fd411121e24592c5e59974c69fc8865e39d5d2 | bc3e3c9a8df9aaa3213da6bba4a8040ff52c8b7e | refs/heads/master | 2020-03-07T18:44:32.661902 | 2018-04-01T18:00:04 | 2018-04-01T18:00:04 | 127,650,434 | 0 | 0 | null | 2018-04-01T18:00:05 | 2018-04-01T16:38:47 | C++ | UTF-8 | C++ | false | false | 407 | h | dimension.h | #ifndef DIMENSION_H_
#define DIMENSION_H_
namespace matr{
class Dimension{
public:
Dimension(const int& rows,const int& columns);
Dimension() = delete; // do not allow for this constructor to be called
int getRows() const;
int getColumns() const;
void resize(const int& rows, const int& columns);
bool ope... |
3817867ee249b46822c250d3731d621f1af1f481 | c6748dbfac809e3a1e0fbf95710a42160f4d2a8a | /7_22_findNum/findNum.cpp | bdd76f15b0aa601ffde47780e1ae415a1c1bc0a2 | [] | no_license | haohaosong/Review | 5c60cc98021662d6bdc994f033cbb7a8497edc90 | 33bc2aa20999af04161fb14efee5718e0544d0bd | refs/heads/master | 2020-04-05T14:12:56.226062 | 2017-08-10T03:04:18 | 2017-08-10T03:04:18 | 94,836,660 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 685 | cpp | findNum.cpp | /*************************************************************************
> File Name: findNum.cpp
> Author: haohaosong
> Mail: haohaosong@yeah.net
> Created Time: Sat 22 Jul 2017 02:30:32 PM CST
************************************************************************/
#include<iostream>
using namespace std;
i... |
55140bc37a74421c3b01e7b667cd02e3d55f521f | 37d1ceacda69f6b904dcd1bf52e2b2242843ee49 | /src/fdm_r44/r44_Aerodynamics.cpp | f962211d752a3661c913984e7de84af0982e3992 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | marek-cel/mscsim | 7a85f42eb0b50840d713f87c33a065b4feec7d5c | 04a739e770b04a334da30e09a8cf1c89fae02c34 | refs/heads/master | 2023-04-28T04:40:30.536671 | 2023-04-21T17:33:15 | 2023-04-21T17:33:15 | 164,319,941 | 271 | 38 | NOASSERTION | 2023-09-02T05:39:55 | 2019-01-06T15:27:44 | C++ | UTF-8 | C++ | false | false | 6,532 | cpp | r44_Aerodynamics.cpp | /****************************************************************************//*
* Copyright (C) 2021 Marek M. Cel
*
* 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, ... |
0921d4fdce5cd16bec220a3ffbb0e00d25f636e6 | 9ad34dfad9ecc654a95045a2c03067510c2b0242 | /Lab4/Llanta.h | ea965914ef460db07477850706d4611b22193510 | [] | no_license | carlosvelaquez/Laboratorio4P3 | 482646383d4a783b70906d806579e34c76c20c27 | dd7ea9d60c982658c210b35dd815db3240827931 | refs/heads/master | 2021-01-16T18:21:48.492086 | 2017-08-11T23:10:26 | 2017-08-11T23:10:26 | 100,063,302 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 314 | h | Llanta.h | #ifndef LLANTA_H
#define LLANTA_H
#include <string>
using namespace std;
class Llanta{
private:
string material;
float precio;
string color;
public:
string getMaterial();
void setMaterial(string);
string getColor();
void setColor(string);
float getPrecio();
void setPrecio(float);
};
#endif
|
23348cd0d18841f21d0dc12de6f575d81d707570 | 0681a9fd09f690149472c28587e2ed387c449ab5 | /src/utils/msgbox.cpp | 416200d88deaed69d5443436f88dd47fe73f186f | [] | no_license | zhzh2001/tnpquest | 8b50c857cf5d6b8032d873d82bb0876dabd1f9ee | 26d0e4540bbc9b309460f4a886e500856551193f | refs/heads/master | 2022-09-09T10:16:29.394325 | 2022-08-28T03:55:12 | 2022-08-28T03:55:12 | 202,351,368 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,844 | cpp | msgbox.cpp | #include "msgbox.h"
#include "utils.h"
#ifdef _WIN32
#include "../pdcurses/curses.h"
#else
#include "../ncurses/ncurses.h"
#endif
#include <cstring>
Board *MsgBox::board = nullptr;
Cat *MsgBox::cat = nullptr;
Game *MsgBox::game = nullptr;
bool MsgBox::fallback = false;
void MsgBox::initBoard(Board *b)
... |
701415feee4f494833a3f250cb4773f9f676f431 | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /Codes/AC/2857.cpp | ef5938c8118d42d73ade558c7c09a8d1a35bd267 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 1,208 | cpp | 2857.cpp | #include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
using namespace std;
const int N=2e6+5;
int nxt1[N],nxt2[N],p[N];
char s[N],str[N];
void getnext(char *t,int len,int *nxt){
int i,j;
i=0,j=nxt[0]=-1;
while(i<len){
while(j!=-1&&t[i]!=t[j])
... |
ed7de194f910125c3b0e679f154069e4e3737353 | 82bba04be05e518845b99d749a3293668725e9e7 | /QHG3/regionizer/GRegion.h | 29ba35803590123e94a2292d5704e3942b43cb35 | [] | no_license | Achandroth/QHG | e914618776f38ed765da3f9c64ec62b983fc3df3 | 7e64d82dc3b798a05f2a725da4286621d2ba9241 | refs/heads/master | 2023-06-04T06:24:41.078369 | 2018-07-04T11:01:08 | 2018-07-04T11:01:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 936 | h | GRegion.h | #ifndef __GREGION_H__
#define __GREGION_H__
#include <vector>
#include <set>
#include "types.h"
typedef std::set<int> intset;
class SCellGrid;
class GRegion {
public:
GRegion(int iID, SCellGrid *pCG, int *piAgentsPerCell, int *piMarks);
~GRegion();
uint findNeighbors();
uint addCell(int iID);
v... |
6d1b5c2874a7230b2b45c3b32183c46885393bc8 | d5366bd1fb08eff92e657fa4b73383ee0e09e744 | /BigramSentenceGenerator/BigramSentenceGenerator/Main.cpp | cd53f5949c31dac9e9a2d016c2213c7fdcadeb75 | [] | no_license | WerenskjoldH/Sentence-Generator | daf8a1a107ca788f1a5d6ad62696aa3ecc5244aa | f5c58b32ac1345da2936bb92341fd579b6fbe760 | refs/heads/master | 2021-09-17T15:04:54.975640 | 2018-07-03T06:05:54 | 2018-07-03T06:05:54 | 125,136,500 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,288 | cpp | Main.cpp | #include "stdafx.h"
#include <string>
#include <fstream>
#include <sstream>
#include <ctime>
#include <iostream>
#include <vector>
#include <map>
using namespace std;
// Mad Lib Code ( Is Mad Lib copywritted? Should I change this? )
int sizeFileByLines(ifstream &FILE)
{
int z = 0;
if (FILE.fail())
cout << "\nER... |
5052b445133e4c24aefb7f67e953ab0c30f8d1cf | fffec3207a471ef56a596ea6f22b2ef8837a8302 | /ACM-FPT/Test 2019-08-25/I_RacingAroundTheAlphabet.cpp | aeafdfc59cbd322a99cdc2b2e87b596512eb8882 | [] | no_license | vietnakid/ACM-ICPC | c3561e942a82f18035d2bbf00a9123f526114b98 | 7258daf208806e0344cf55e1f023082500c62442 | refs/heads/master | 2020-03-09T01:46:41.984239 | 2020-02-15T03:57:28 | 2020-02-15T03:57:28 | 128,523,997 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,710 | cpp | I_RacingAroundTheAlphabet.cpp | #include <bits/stdc++.h>
#include <unistd.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector< vector<int> > vvi;
typedef vector<ll> vl;
typedef vector< vector<ll> > vvl;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector< vii> vvii;
#define INF 1000000007
#define INFL... |
4c91486fdfb06457318bc4ce4419b82895a1cfd0 | 5cd6df5636d631e186b5b2aec616a19dc1952405 | /Parser.cpp | 956724268c88a602c328bebf565ab8a2b7ff7c3a | [] | no_license | KuomintanGG/OiAK_Project | 02a2004b25308cc1319e1c76ad81741dc621b23b | d62bf439fbc3790b6a90d7f7c6c82ae82aa4f864 | refs/heads/master | 2020-03-09T18:27:58.552538 | 2018-04-09T20:49:03 | 2018-04-09T20:49:03 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 222 | cpp | Parser.cpp | /*
* Parser.cpp
*
* Created on: 9 kwi 2018
* Author: darek
*/
#include "Parser.h"
Parser::Parser() {
// TODO Auto-generated constructor stub
}
Parser::~Parser() {
// TODO Auto-generated destructor stub
}
|
6a3664582b73489a5c32c3eec8ca92f48c687d0c | 82aa7e39cee87c475ecc92f2e11de46968091a40 | /SwampAttack/Classes/GuideCompositeApposeModel.hpp | 45f80993eebb92802a853fbe6180c63da07140e2 | [] | no_license | weimingtom/CompanyWork | bc6bf8f07302748811c41ac76dba016dd51b3d44 | 249e0fde40c16117aaca05698cb073d1820d93be | refs/heads/master | 2020-12-31T04:06:08.321405 | 2016-03-07T08:45:37 | 2016-03-07T08:45:37 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 478 | hpp | GuideCompositeApposeModel.hpp | //
// GuideCompositeApposeModel.hpp
// SwampAttack
//
// Created by oceantech02 on 16/1/26.
//
//
#ifndef GuideCompositeApposeModel_hpp
#define GuideCompositeApposeModel_hpp
#include "GuideCompositeModel.hpp"
class GuideCompositeApposeModel: public GuideCompositeModel {
private:
public:
GuideCompositeAp... |
5f594af1d39d100eef66990514bbfbcf06de87f5 | 03a5169462e1fe4bc6216e1aeca3634902d95c08 | /winPAApi/src/sharedmemory/pool/pa_dvr.cpp | 698be21324a44b65e0d8ccfdca93ab3ef0983d11 | [] | no_license | JulianaYuan/windows_com_qnx | 4a30ec046eda2e0130d58516c5ee2c05d1e00e27 | cbb7f482cf4fe70d3dce2f2db42c1504173c3a66 | refs/heads/main | 2023-03-27T23:08:16.300280 | 2021-04-08T10:28:17 | 2021-04-08T10:28:17 | 355,855,241 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 84 | cpp | pa_dvr.cpp | #include "pa_dvr.h"
SharedMemory::Pool SharedMemoryPool_PA_Dvr{ "PA_Dvr", 65535 };
|
4d33a3f11fefe91253281779b08f102ce5755f89 | a79b33d65f73b522d544d65ffa24d26c4812d095 | /BitGrapher/encoding/ASCII8.h | 69efa92ed7932c3ace562716f89783dedcbcf5a0 | [] | no_license | nhurman/data-carving | 0e84a57397766a9af8acee3a03f7760c8b77887a | 88fcbdce2420940222397e0d2b6f38f97ee38f09 | refs/heads/master | 2016-08-06T15:53:55.487865 | 2014-06-26T15:33:07 | 2014-06-26T15:33:07 | 13,904,311 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 449 | h | ASCII8.h | #ifndef ASCII8_H
#define ASCII8_H
#include "core/BitString.h"
#include "encoding/Encoding2.h"
/*!
* \class ASCII8
* \brief ASCII encoding over 8 bits
*
* \author Nicolas Hurman
* \date 28/05/2014
*/
class ASCII8 : public Encoding2
{
public:
ASCII8();
std::string getChunk(unsigned int in... |
38410a4c94515fc6e88b6adefdc5ac4cac38e561 | 6102a3d66ba7b629ad81137df5a27f8bb1b992ac | /common/SPhoenix/utils.h | c5d2decba85712b5b80c1752099a2af194238d2d | [] | no_license | Hielamon/OpenGLToys | 5cebf6f9435e9b8c7ea83195b121d875f3043faa | e32d91abe5396eedacc51ee5fbfacc62317164c8 | refs/heads/master | 2021-01-20T01:51:39.237411 | 2018-01-30T10:04:30 | 2018-01-30T10:04:30 | 89,336,455 | 1 | 0 | null | 2018-01-30T10:04:31 | 2017-04-25T08:29:02 | C++ | UTF-8 | C++ | false | false | 1,927 | h | utils.h | #pragma once
#include <memory>
#include <algorithm>
#include <fstream>
#include <string>
#include <vector>
#include <map>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <SOIL.h>
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>
#include <glm... |
db0b12d5dafd6dca33822982f0803974eb176ee4 | 294776fc4e920e99d03e023838134dd7c10b7140 | /fast_transformers/sparse_product/clustered_sparse_product_cpu.cpp | b68ec34f0e9df231940d3e4dbb7eecc11c83e81f | [
"MIT"
] | permissive | idiap/fast-transformers | 1510559ad9bb4896460b615895d09231cc2db784 | 2ad36b97e64cb93862937bd21fcc9568d989561f | refs/heads/master | 2023-08-02T15:36:58.835564 | 2023-03-09T08:51:59 | 2023-03-23T16:46:47 | 272,430,903 | 1,528 | 173 | null | 2023-03-22T10:17:39 | 2020-06-15T12:19:51 | Python | UTF-8 | C++ | false | false | 7,285 | cpp | clustered_sparse_product_cpu.cpp | //
// Copyright (c) 2020 Idiap Research Institute, http://www.idiap.ch/
// Written by Angelos Katharopoulos <angelos.katharopoulos@idiap.ch>,
// Apoorv Vyas <avyas@idiap.ch>
//
#include <torch/extension.h>
inline float dot(float *a, float *b, int n) {
float s = 0;
for (int i=0; i<n; i++) {
s += (*a) ... |
7ac322512affba52113ac6a04ef45fbedb2fe6b8 | b293c80725c1e0d245a9dd6db01d9cd7750eddbd | /calc_ir_tilt/calc_ir_tilt.cpp | 55aa0198a16125e9b069cd316de2e9ce7a153299 | [] | no_license | Raylingogogo/calc_ir_tilt | e55c9a1b015917aa2c0a1040c030c9a3e4232953 | 17a60feb8ad338eb7f809db48606e9b0d68f8dde | refs/heads/master | 2021-07-07T16:53:49.160889 | 2017-09-29T07:22:40 | 2017-09-29T07:22:40 | 104,896,560 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,651 | cpp | calc_ir_tilt.cpp | // calc_ir_tilt.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define SIZE_640x480 307200
#define SIZE_352x352 123904
#define SIZE_416x416 173056
#define SKIP_LINES 50
#define X_OFFSET 40 // This parameter will remove the... |
513b1016bb6a0519f8f3b3817ca4d189cc166841 | 5cd1fa54038c95f179a90ff330946ee50b989da3 | /sources/Virologist.cpp | afc865058c9b5ff1383fa8700c8e57fea8b20bf7 | [] | no_license | Oimit/PandemicGame | 45d8f90dec1b5ad2d28056b7f966addd2e757c77 | 337220a855e915c3d3e838201bf67e4ccf547fec | refs/heads/master | 2023-05-11T05:37:25.409035 | 2023-05-08T07:14:59 | 2023-05-08T07:14:59 | 368,257,238 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 567 | cpp | Virologist.cpp | #include "Board.hpp"
#include "City.hpp"
#include "Color.hpp"
#include "Player.hpp"
#include "Virologist.hpp"
using namespace std;
using namespace pandemic;
Player &Virologist::treat(City c)
{
if (c != mCurrentCity && mPlayerCards.find(c) == mPlayerCards.end())
{
throw invalid_argument("cann't treat city that not ... |
fb8026b129f3287298e66fcf25e8dccedd6b205e | 04dc925359249447de99d3844fdc88d531288888 | /Little Girl and Maximum XOR.cpp | 0a0684713ab30a0cd1ebeade9e18d849bb368c8e | [] | no_license | SamarNegm/Problem-Solving | 2e09bee084cc4d9e27867906a1f437bd8d02351d | 28114c1b38c49f6106b543a2cad01b386f31899a | refs/heads/master | 2022-09-12T13:55:18.072549 | 2020-05-30T00:21:56 | 2020-05-30T00:21:56 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 366 | cpp | Little Girl and Maximum XOR.cpp | #include<bits/stdc++.h>
using namespace std;
long long pw(long long x,long long y)
{
long long ans=1;
while (x--)
{
ans*=y;
}
return ans;
}
int main()
{
long long x,y,i=63,c=0;
cin>>x>>y;
for(i;i>=0;i--)
{
if((x>>i)!=(y>>i))
break;
c++;
}
... |
16793cbcce1e70dae54f321a7f12f58fa3dd1172 | 1e21a6c0354a3b3e660e65b320e9b86af528d504 | /UniEngine/src/Mesh.cpp | 138fc41d28919aa54e25c471f90ca5baf7bd5675 | [
"MIT"
] | permissive | wangscript007/UniEngine-deprecated | ee1182f3dc028984dd39ca0aa52d08ef97f8d988 | 4b899980c280ac501c3b5fa2746cf1e71cfedd28 | refs/heads/master | 2023-06-08T19:55:43.892728 | 2021-06-20T00:07:27 | 2021-06-20T00:07:27 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,234 | cpp | Mesh.cpp | #include "pch.h"
#include "Mesh.h"
using namespace UniEngine;
void Mesh::OnGui()
{
ImGui::Text(("Name: " + m_name).c_str());
if (ImGui::BeginPopupContextItem(m_name.c_str()))
{
if (ImGui::BeginMenu("Rename"))
{
static char newName[256];
ImGui::InputText("New name", newName, 256);
if (ImGui::Button("Con... |
04f598543519119f1d8a640bc9d960860853d851 | 317c048043d83a122ed8da045aaa663610a12d4a | /Exam 2 Practice Problems/Pointers_Problem1.cpp | 216fe6ce7679dad69200606fbdea62737477d01c | [] | no_license | brettbar/CPSC122 | c92122ae14f28d1542e64999f879d1f25a550e7c | a15af1927891700961314f5b7b757dcdaeb72320 | refs/heads/master | 2021-10-16T00:12:53.135615 | 2019-02-07T08:23:55 | 2019-02-07T08:23:55 | 169,539,994 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 342 | cpp | Pointers_Problem1.cpp | #include <iostream>
#include <cstdlib>
using namespace std;
int* dynamicArrayAllocate(int n)
{
int* arr;
arr = new int[n];
for (int i = 0; i<= n; i++)
{
arr[i] = rand() % 10;
}
return arr;
}
int main()
{
int* ptr = dynamicArrayAllocate(5);
for (int i = 0; i <= 5; i++)
{
cout << ptr[i] << " ";
}
cout <... |
1c2c9f024cdefd9d2b3d427b77c83a5acc5d8846 | c56e37397a7ef14ce0c00ace0084a62148ced993 | /src/InputManager.cpp | fb76e48b1d906f5921936c37a44bb08167b87f07 | [
"MIT"
] | permissive | fide/EmulationStation | 878be25e4e54062f0ed7cc64f497d33c6a665844 | 8a2309378119efb44e9d31f5d079fafad00ef4ff | refs/heads/master | 2020-12-03T00:35:17.185607 | 2014-07-15T18:39:58 | 2014-07-15T18:39:58 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,736 | cpp | InputManager.cpp | #include "InputManager.h"
#include "InputConfig.h"
#include "Window.h"
#include "Log.h"
#include "pugiXML/pugixml.hpp"
#include <boost/filesystem.hpp>
#include "platform.h"
#if defined(WIN32) || defined(_WIN32)
#include <Windows.h>
#endif
namespace fs = boost::filesystem;
//----- InputDevice -----------------------... |
5a9a4985609918325965b7255fe523569fa26171 | 91a882547e393d4c4946a6c2c99186b5f72122dd | /Source/XPSP1/NT/admin/wmi/wbem/sdk/activex/controls/msgdlg/dlgsingleview.cpp | 484e037b33f4a41b793b0f73ed8cecc1226b8382 | [] | no_license | IAmAnubhavSaini/cryptoAlgorithm-nt5src | 94f9b46f101b983954ac6e453d0cf8d02aa76fc7 | d9e1cdeec650b9d6d3ce63f9f0abe50dabfaf9e2 | refs/heads/master | 2023-09-02T10:14:14.795579 | 2021-11-20T13:47:06 | 2021-11-20T13:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 527 | cpp | dlgsingleview.cpp | // Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
#include "precomp.h"
#include "wbemidl.h"
#include "singleview.h"
#include "dlgsingleview.h"
IMPLEMENT_DYNCREATE(CDlgSingleView,CSingleView)
BEGIN_MESSAGE_MAP(CDlgSingleView,CSingleView)
//{{AFX_MSG_MAP(CBanner)
ON_WM_CREATE()
//}}AFX_MSG_MAP
... |
c9a5c53ed376933df051deb9172d6b324d5316ba | 268739a6efa958cda00192ab31d6d602468ed294 | /day_04/04_security_through_obscurity.cpp | cc0415244e2248d574770c4612cb1e7abb5a048e | [] | no_license | Gusten/adventofcode2016 | 354dc9d06aa872692872a47d8387e3c4ed06b81b | b35df8c47a9bd4465142fafd7baf5e5632ff1a29 | refs/heads/master | 2020-06-12T21:28:52.305528 | 2016-12-04T20:46:25 | 2016-12-04T20:46:25 | 75,506,950 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 979 | cpp | 04_security_through_obscurity.cpp | #include "04_security_through_obscurity.h"
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
namespace {
// Split a string based on a delimiter and push them into the provided vector
void split_by_and_remove_empty(const std::string &input, const std::string &delim, std::vector<std::string> &... |
00b8aa89c0cf54f6799d59ccb4a940d339345abd | a4c141f6bdac5c155339b8b0c00c7dc73a6f77ee | /Engine/Android/jni/Edit.cpp | 5596d6a0abd3b32b38436f2469af3b863b2667b3 | [
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-other-permissive"
] | permissive | chenfarong/EsenthelEngine | 0b0f6df579d4fb82255c62d1c59ba1ba0b5a0e05 | 8a99f33e2c23d600c44d8c05ae7e58ab78ba307a | refs/heads/master | 2023-07-11T10:01:46.797243 | 2021-06-24T08:26:36 | 2021-06-24T08:26:36 | 395,918,366 | 1 | 0 | null | 2021-08-14T06:46:16 | 2021-08-14T06:46:15 | null | UTF-8 | C++ | false | false | 221 | cpp | Edit.cpp | #include "../../Source/Edit/Save Changes.cpp"
#include "../../Source/Edit/Undo.cpp"
#include "../../Source/Edit/Viewport4.cpp"
#include "../../Source/Edit/Version.cpp"
#include "../../Source/Edit/Editor Interface.cpp"
|
348a8dbf473bad980af15934aa1c8796fd538457 | fded81a37e53d5fc31cacb9a0be86377825757b3 | /buhg_g/pdokuosw.cpp | 8c7fe63acb0a6ec6415f6a8d2a6f80a1d1bd11fa | [] | no_license | iceblinux/iceBw_GTK | 7bf28cba9d994e95bab0f5040fea1a54a477b953 | a4f76e1fee29baa7dce79e8a4a309ae98ba504c2 | refs/heads/main | 2023-04-02T21:45:49.500587 | 2021-04-12T03:51:53 | 2021-04-12T03:51:53 | 356,744,886 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,820 | cpp | pdokuosw.cpp | /*$Id: pdokuosw.c,v 1.7 2013/08/13 06:09:48 sasa Exp $*/
/*12.07.2015 12.01.2009 Белых А.И. pdokuosw.c
Просмотр документа из подсистемы "Учёт основных средств"
*/
#include <errno.h>
#include "buhg_g.h"
extern double okrcn; /*Округление цены*/
extern SQL_baza bd;
int pdokuosw(const char *datadok,const char *nomdok,in... |
34f241ebbdfaead61ead73b65f45b0ee45137676 | e9f3369247da3435cd63f2d67aa95c890912255c | /problem131.cpp | 2cf672737cfb2ebf80fd00d5ac856e739472e560 | [] | no_license | panthitesh6410/problem-solving-C- | 27b31a141669b91eb36709f0126be05f241dfb13 | 24b72fc795b7b5a44e22e5f6ca9faad462a097fb | refs/heads/master | 2021-11-15T21:52:33.523503 | 2021-10-17T16:20:58 | 2021-10-17T16:20:58 | 248,523,681 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,119 | cpp | problem131.cpp | // Codechef April Lunchtime 2020 Div.2 :
// Another Birthday Present :
// #include<iostream>
// using namespace std;
// bool is_sorted(int arr[], int n)
// {
// int count=0;
// for(int i=0;i<n-1;i++)
// {
// if(arr[i] < arr[i+1])
// count++;
// }
// if(count == n-1)
// r... |
ea0372516329594d650f20d4fded80631cd82027 | d1cc319aeaab19e3a7aa6b40c9e08055f2b92858 | /src/patchdll/Scan.cpp | bc2e255864b7e9d6f42a7c6ea6f1f7ad66e7804f | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | Warpten/hzdnptr | 1a291f944b0ab23a00e59e8b6f7a9d884f7c2b23 | 0f34e87c67ed205da230f68d5dbf9a2245faf8c0 | refs/heads/master | 2022-12-06T18:26:43.731457 | 2020-09-08T13:14:20 | 2020-09-08T13:14:20 | 286,248,585 | 11 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 391 | cpp | Scan.cpp | #include "Scan.hpp"
namespace Memory
{
DWORD Protect(uintptr_t offset, DWORD pageProtection) {
MEMORY_BASIC_INFORMATION mbi;
VirtualQuery(reinterpret_cast<LPVOID>(offset), &mbi, sizeof(mbi));
DWORD oldProtection;
VirtualProtect(static_cast<LPVOID>(mbi.BaseAddress), mbi.RegionSize, ... |
aa126eaf26ef6c307f62dae045497794e9495aab | 683a90831bb591526c6786e5f8c4a2b34852cf99 | /Strings/fundamentals/stringHashing/RabinKarp.cpp | f374cdfee34915a3bdf47038a0b2a29f2f1a600e | [] | no_license | dbetm/cp-history | 32a3ee0b19236a759ce0a6b9ba1b72ceb56b194d | 0ceeba631525c4776c21d547e5ab101f10c4fe70 | refs/heads/main | 2023-04-29T19:36:31.180763 | 2023-04-15T18:03:19 | 2023-04-15T18:03:19 | 164,786,056 | 8 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,615 | cpp | RabinKarp.cpp | #include <bits/stdc++.h>
using namespace std;
void rabinKarp(string &texto, string &patron, vector<int> &ocurrencias);
int main() {
string texto;
string patron;
cout << "Escribe el texto: " << endl;
getline(cin, texto);
cout << "Escribe el patrón a buscar" << endl;
cin >> patron;
vector<... |
440dc139c9d66701df662236df80afaf9ce3a020 | f1bd4d38d8a279163f472784c1ead12920b70be2 | /xr_3da/xrGame/stalker_property_evaluator_alife.cpp | e5ffca2f57480c3124225689d3759984834381f5 | [] | no_license | YURSHAT/stk_2005 | 49613f4e4a9488ae5e3fd99d2b60fd9c6aca2c83 | b68bbf136688d57740fd9779423459ef5cbfbdbb | refs/heads/master | 2023-04-05T16:08:44.658227 | 2021-04-18T09:08:18 | 2021-04-18T18:35:59 | 361,129,668 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 529 | cpp | stalker_property_evaluator_alife.cpp | ////////////////////////////////////////////////////////////////////////////
// Module : stalker_property_evaluator_alife.cpp
// Created : 25.03.2004
// Modified : 25.03.2004
// Author : Dmitriy Iassenev
// Description : Stalker alife property evaluator
////////////////////////////////////////////////////////////... |
0ba7e4c0537623acf03ff4ecffad3480910c4ecd | 60a45660bc61351b8b585b61fa3e63cf22c0212c | /resource/unpackresfile.cc | ec30a8965189ec00bd7381f051451f84f361d641 | [] | no_license | tomazos/sf5 | 196cc9e8af548313734f487378da49f78ec9115c | 4e6b7fc9efd182ec0defb7f4c80e09e108e00d8b | refs/heads/master | 2020-04-29T03:29:54.313056 | 2019-09-29T19:37:54 | 2019-09-29T19:37:54 | 175,811,968 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 389 | cc | unpackresfile.cc | #include "dvc/opts.h"
#include "dvc/program.h"
#include "resource/resource.h"
std::filesystem::path DVC_OPTION(infile, i, dvc::required,
"input resource file");
std::filesystem::path DVC_OPTION(outdir, o, dvc::required, "output directory");
int main(int argc, char** argv) {
dvc::pro... |
a2dbe5626cd15c424c6a080f8370e3323526fc8c | 6e6542d3e5c491570ae86ee40bd9424e4de6ecc1 | /Data Structures Problems/Array Practice/Medium/rotate_image_without_extra_space/main.cpp | b3bc4bd6635d783bea76e2a58da5795865fda43e | [] | no_license | Ubaid-Manzoor/Interview_Practice | 9b66a920dfdc934f50b171d990e45dbddd9d7b54 | d1ae188123da060b31e4e537713a45349786835a | refs/heads/master | 2023-02-10T15:52:02.851818 | 2020-12-26T14:58:43 | 2020-12-26T14:58:43 | 275,573,186 | 20 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 1,038 | cpp | main.cpp | #include <iostream>
#include <vector>
using namespace std;
// NOT DONE YET WILL DONE SOON ENOUGH
void printImage(const vector<vector<int>> &image){
for(int i = 0 ; i < image[0].size() ; i++){
for(int j = 0 ; j < image[0].size() ; j++){
cout<<image[i][j]<<" ";
}
cout<<endl;
... |
24b6a97be83a23e501587e8dd0d67da43e708195 | 5b8895f84d269ee0efd6e79b16ed518df2562c7b | /Lab7MyStack.cpp | 35f4880945697a6a7888ba7185eec47ec61dbe26 | [] | no_license | yikaip/Lab5 | c3c86546d783b71d845490a3e809553e65bed7c1 | 1538c1471c99346cb2e3ffcb3a721dabb4884354 | refs/heads/master | 2020-04-02T08:45:58.809610 | 2018-10-23T04:05:01 | 2018-10-23T04:05:01 | 154,259,919 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 593 | cpp | Lab7MyStack.cpp | //Lab 5
//Lab7MyStack.cpp
//Yikai Peng
//Oct.21
#include "Lab7MyStack.h"
MyStack::MyStack()
{
list<char>MyList; //construction
}
MyStack::~MyStack()
{
MyList.clear(); //destruction: clear the list
}
bool MyStack::isEmpty() const
{
return MyList.empty(); //if the list is empty returns true,... |
a070285840ec1abc55cd033ce85aa7bb81f7fb33 | 470b1af4907395df375062dfef44c4e061ddb1e2 | /src/cpd/cpd_factory.cpp | 9979b58bfb7210fcee67b14c969736d89fcd9653 | [] | no_license | ushadow/pdbntk | f93149145d1ae7b27284019b6d0f86535be0706e | 640b9cb1e86220f3e3d422e473a637fa3d861ac3 | refs/heads/master | 2021-01-10T20:30:17.305779 | 2013-07-09T21:54:07 | 2013-07-09T21:54:07 | 10,912,923 | 5 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 583 | cpp | cpd_factory.cpp | #include "cpd_factory.h"
#include "discrete/discretedensities.h"
#include "discrete/discreteess.h"
#include "gaussian/gaussiandensities.h"
#include "gaussian/gaussianess.h"
namespace pdbntk {
CondProbDist* CPDFactory::NewDiscreteCPD(uint node_size) {
return new CondProbDist(DISCRETE, new mocapy::DiscreteESS(),
... |
4a986261c77ac7d3c59050da5abc29641b04460e | 449dad881ba4520f533b7c6c708fcf19a76002aa | /Implementación/Primer Contest/A.cpp | fd6fa3d5e2bd21b488477d38de5fb7cc4d6656a5 | [] | no_license | AbrMa/Club-Intermedios | 527d005a75a41357346540abeeca44406bef1fe8 | 5df354f0b64a38021ea95b6f99045a3ce04aa918 | refs/heads/master | 2020-07-14T05:37:23.079554 | 2020-05-08T00:46:32 | 2020-05-08T00:46:32 | 205,251,648 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 406 | cpp | A.cpp | #include <iostream>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
using namespace std;
int main()
{
int n;
cin >> n;
vector<long long int> a(n);
for (int i = 0; i < n; i++)
cin >> a[i];
sort(a.begin(), a.end());
int i = 0, j = n - 1;
long long int sum = 0;
while (i < j)
{
su... |
6ee124ae5647a65e42baea764321cbef96caea93 | 7d97cd36a83f4a633d3e37ba0649bb06e986eb6d | /MFC41401/MFC41401/MFC41401.h | 8fe4be85075b9e7c0cb459c6644e7cf32fd31f7e | [] | no_license | Ms52527/MA | 53215fb62b8bf083db10b25363fabb4a6d89e9e5 | 6e8d8d0885586e4363b777719600c51e5de15ef0 | refs/heads/master | 2021-02-15T11:23:01.432593 | 2020-07-05T12:33:41 | 2020-07-05T12:33:41 | 244,893,687 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 525 | h | MFC41401.h |
// MFC41401.h : MFC41401 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "resource.h" // 主符号
// CMFC41401App:
// 有关此类的实现,请参阅 MFC41401.cpp
//
class CMFC41401App : public CWinApp
{
public:
CMFC41401App();
// 重写
public:
virtual BOOL InitInstance();
v... |
24b7a57ea0641cb314c08d8a224bea558371f9c2 | 22ebc3fa6240ba05ef67c2189c09e287765a31b1 | /roam/cuda/dp_cuda.h | 2f7c7622c5738b2e67f95f8ba5f9f304de12c223 | [] | no_license | lulu1315/roam | 95d16dbb3467127c817bd3cf781e428f7e7d893f | fb65eb7445a34eb50856b33dd1a3997939e4eece | refs/heads/master | 2020-04-16T19:37:45.364076 | 2018-07-11T14:01:11 | 2018-07-11T14:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,144 | h | dp_cuda.h | /*
This is a source code of "ROAM: a Rich Object Appearance Model with Application to Rotoscoping" implemented by Ondrej Miksik and Juan-Manuel Perez-Rua.
@inproceedings{miksik2017roam,
author = {Ondrej Miksik and Juan-Manuel Perez-Rua and Philip H.S. Torr and Patrick Perez},
title = {ROAM: a Rich Object Appearan... |
9f1f4650ab19f4c9b9267ae4394aa5fd305bdc45 | f5039a61cd73c494688f69270b518579e2e5c07d | /Contests/2014.07.06CodeForces/b;.cpp | f9de3d54b7df19ef8928467bf49643dd462edd97 | [] | no_license | Tedxz/Online-Judge-Archive | 12e4f67dddb464e1e6e6c3b48f1d3bdf67db8c6d | fa6361f8cdf492b870bbf763628f1d7be092798b | refs/heads/master | 2020-04-17T17:43:41.489639 | 2016-08-28T16:03:10 | 2016-08-28T16:03:10 | 66,775,944 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 839 | cpp | b;.cpp | #include <cstdio>
#include <iostream>
#include <algorithm>
#include <map>
using namespace std;
pair<int, int> chem[100];
int react[100][100];
int n, m;
int main() {
cin >> n >> m;
for (int i = 1; i <= n; ++i)
chem[i].second = i;
for (int i = 0; i < m; ++i) {
int x, y;
... |
4637c1ac30c4e7438687942badf414031cff0744 | ea72f1de1efe691ed038e16ee4a6fc11ad504f3b | /JIGAI_2015SIM_E/src/main.cpp | 0658f19b13367bf5a9c610445d6ed59be3609238 | [] | no_license | gyf1214/OI | d358f27d1fc5861a26b2d0ac1abc3d68414429a2 | 7b4b33d422462bef8660521617f82a57ebd2ff9c | refs/heads/master | 2020-05-21T23:27:33.052962 | 2019-10-18T22:40:09 | 2019-10-18T22:40:09 | 12,171,280 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 939 | cpp | main.cpp | //Created At: Fri Dec 11 16:20:31 CST 2015
//orz zyx
//ntr czr
//Author: gyf
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <string>
#include <iostream>
#include <algorithm>
#define rep(i, a, b) for (int i = (a); i <= (b); ++i)
#define clr(i, a) memset(i, (a), sizeof(i))
#define infi 0x7FFFFFFF
#defi... |
7e4575eadd1cbe7ddaa5f642e05c44985791dc20 | cb531b5ea632d4c25f823250e41a011cb6b93485 | /warm/map.cpp | 69663369be9cdec63ed8bc07a34c64bbe669587d | [] | no_license | ktjr4596/WarmsGame | ae8724b048f97d6c1bc0f4ee8a7db2213214b832 | af6b1c5b4be13ff66b63647f15ee085edd3285a6 | refs/heads/master | 2020-04-26T18:37:07.247948 | 2019-03-04T13:42:00 | 2019-03-04T13:42:00 | 173,749,868 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 1,378 | cpp | map.cpp | #include "map.h"
#include "gtxy.h"
#include <iostream>
#include <mutex>
const char * blocks[] = {"¢É", " ", "¡á" ,"¡Û"};
std::mutex g_Mutex;
Map::Map()
{
for (int i_index = 0; i_index < Height; ++i_index)
{
for (int j_index = 0; j_index < Width; ++j_index)
{
gtxy::gotoxy(j_index * 2, i_index);
if (i_inde... |
4cefc94d5c960ad8813df943e73af2d620fc8643 | a0b5e342f4d28b495c7f53b95655490bb6de7a88 | /srcs/player.cpp | 4672a52c255541e55e31e833c880a269ace5cd64 | [] | no_license | rambobinator/pacman_muse_headband | 2d9a19f4e616dbbabd9d32867751fa0b5a7c525c | 2b932d433ace603193a74cc877355f375ada8235 | refs/heads/master | 2021-01-20T19:08:43.459838 | 2015-05-24T10:08:38 | 2015-05-24T10:08:38 | 36,085,824 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 614 | cpp | player.cpp | #include "Player.hpp"
Player::Player(int y, int x, Map *map) : x(x), y(y), map(map)
{
dir = 0;
life = 3;
}
Player::~Player( void )
{
}
Player & Player::operator=( Player const & rhs )
{
(void)rhs;
return *this;
}
std::ostream & operator<<(std::ostream &o, Player const &rhs)
{
(void)rhs;
o << "";
return o;
... |
b8a4349d1d5d9230ae4294c34a7fe8b660272621 | b9b966952e88619c9c5d754fea0f0e25fdb1a219 | /libcaf_core/caf/detail/default_mailbox.test.cpp | 149ea8330e0838f2208667e291f815ba09e0339d | [] | permissive | actor-framework/actor-framework | 7b152504b95b051db292696a803b2add6dbb484d | dd16d703c91e359ef421f04a848729f4fd652d08 | refs/heads/master | 2023-08-23T18:22:34.479331 | 2023-08-23T09:31:36 | 2023-08-23T09:31:36 | 1,439,738 | 2,842 | 630 | BSD-3-Clause | 2023-09-14T17:33:55 | 2011-03-04T14:59:50 | C++ | UTF-8 | C++ | false | false | 2,591 | cpp | default_mailbox.test.cpp | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#include "caf/detail/default_mailbox.hpp"
#include "caf/test/caf_test_main.hpp"
#include ... |
b49131b50c3c5108572c588a4372b079dbb492b5 | eab2cd564e25896e1f89df4c02eedb95d8c5f5bc | /Arduino/Timer1.h | 22191566163e4c7bdfcc050df580d2548043f86e | [] | no_license | ThibaultMollier/IHCcontroller | ff220d1c03bbbbbfd21000610441f644594eaaa0 | 3c66ad72e0a387375ccfcc1875139a6f94b8b560 | refs/heads/master | 2020-04-28T23:16:47.597344 | 2019-03-14T15:25:45 | 2019-03-14T15:25:45 | 175,649,143 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 378 | h | Timer1.h | // Timer1.h
#ifndef _TIMER1_h
#define _TIMER1_h
#define t_4100us 0
#define t_300us 60735
#define t_600us 55935
#define t_450us 58335
#if defined(ARDUINO) && ARDUINO >= 100
#include "arduino.h"
#else
#include "WProgram.h"
#endif
class Timer1Class
{
protected:
public:
void init();
void time_to_OVF(unsigned i... |
5d95baf56e26fd2a8aa18902244637236367a6c8 | 2aa4c7c94866e7a958e4787dd4487aa7c1eb8d61 | /applications/IgaApplication/custom_utilities/node_surface_geometry_3d.h | b46303693def1aa05a82ce11fe522afd7d14e753 | [
"BSD-3-Clause"
] | permissive | PFEM/Kratos | b48df91e6ef5a00edf125e6f5aa398505c9c2b96 | 796c8572e9fe3875562d77370fc60beeacca0eeb | refs/heads/master | 2021-10-16T04:33:47.591467 | 2019-02-04T14:22:06 | 2019-02-04T14:22:06 | 106,919,267 | 1 | 0 | null | 2017-10-14T10:34:43 | 2017-10-14T10:34:43 | null | UTF-8 | C++ | false | false | 6,884 | h | node_surface_geometry_3d.h | /*
// KRATOS _____________
// / _/ ____/ |
// / // / __/ /| |
// _/ // /_/ / ___ |
// /___/\____/_/ |_| Application
//
// Main authors: Thomas Oberbichler
*/
#if !defined(KRATOS_NODE_SURFACE_GEOMETRY_3D_H_INCLUDED)
#define KRATOS_NODE_SURFACE_GEOMETRY_3D_H_INCLUDED
// System includ... |
10986c766abe96029c9d3b549921155a6e4f0a38 | e7a76fa4e1edc0721a21d4dc16ec05f8b4f7e6de | /libwebwechat/libwebwx/config.h | b056609b933598a819d99cf2e235b69aaa6b58de | [
"Apache-2.0"
] | permissive | DeaglePC/QTWechat | 81d6f3cbb9791e619906875233a06811b8713291 | 8359daf05d81d97f850bb4c3ae9ba99403ff855e | refs/heads/master | 2020-04-14T16:49:22.343574 | 2019-01-19T09:23:16 | 2019-01-19T09:23:16 | 163,962,355 | 1 | 3 | Apache-2.0 | 2019-01-09T12:54:17 | 2019-01-03T11:08:58 | C++ | UTF-8 | C++ | false | false | 682 | h | config.h | #ifndef CONFIG_H
#define CONFIG_H
#include <QHash>
#include <QDir>
#include "cwebwxwork.h"
using hint_map = QHash<int, QString>;
using hint_pv = std::pair<int, QString>;
const hint_map HINT_MSG_MAP = {hint_pv(CWebwxWork::RET_MSG::LOGIN_SUCCESS, "登录成功"),
hint_pv(CWebwxWork::RET_MSG... |
f4275fcf58cd36b63c5e2be599b5d42a9d82fd27 | 42c7e42257a28022d6263aeb494f0200f4efca5f | /LuaItemAttribLoader.h | 9bebbfad928e81e7ae5c2f898e18a2ece18ef0fb | [] | no_license | sryanyuan/circlebuffer | 710c5cfc8c3ec68ad79303180853cbb1916bfbce | a5fb6a65a6604faa0ead82516fce3dac87c36edb | refs/heads/master | 2021-01-18T18:50:10.796172 | 2018-07-17T08:41:49 | 2018-07-17T08:41:49 | 60,167,461 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 697 | h | LuaItemAttribLoader.h | #ifndef _INC_LUA_ITEM_ATTRIB_LOADER_
#define _INC_LUA_ITEM_ATTRIB_LOADER_
#include <map>
#include "item.h"
struct ItemFullAttrib;
struct lua_State;
#define pszDefaultItemFullAttribTableName "config_constItemAttrib"
class LuaItemAttribLoader {
public:
static bool loadKeyInt(lua_State *L, const char *pKeyName, i... |
c95f98b4370b29b21f764b4eb7667d902291e9b3 | 2001549fa84ca5ac0c1c3480ee3247c5c4bcb6f4 | /RayTracer/MeshGroupCreator.cpp | 702595ec1070b1613308ab9930f5d57308d16c27 | [] | no_license | NightCreature/RayTracer | 91b58a6f789cd7ee52ca6fbb13bbddd139c0862e | 4e1fbc6d4a896223545f43b0346f9b7192922f56 | refs/heads/master | 2020-08-29T23:24:04.921136 | 2019-12-03T05:04:22 | 2019-12-03T05:04:22 | 218,200,525 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,201 | cpp | MeshGroupCreator.cpp | #include "MeshGroupCreator.h"
#include "assert.h"
///-----------------------------------------------------------------------------
///! @brief TODO enter a description
///! @remark
///-----------------------------------------------------------------------------
CreatedMeshGroup MeshGroupCreator::CreateMeshGroup(con... |
08d89ddcad7dbf8ab5f6bf7ecea47e83b1191dcb | 6fcde7a31a7896ad7f7760e4db522feb78cfb7ab | /Spectral/rnzMainRpk.cpp | 6424cf3c4215bc4a570e1d15050321e6bcd74ab5 | [
"MIT"
] | permissive | lsaravia/SpatialAnalysis | 6cc4ff1b54875a9df2822574e980c952a852f5c2 | 899148a65407dc8807475a923b4a231984441301 | refs/heads/master | 2020-12-24T16:07:30.921477 | 2016-03-10T17:25:35 | 2016-03-10T17:25:35 | 5,533,498 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,625 | cpp | rnzMainRpk.cpp | #include "Spectral.h"
#include "RWFile.h"
#include "Randomizations.h"
#include <iomanip>
//#include "fortify.h"
#include "ctype.h"
int main(int argc, char * argv[])
{
simplmat <double> data;
simplmat <double> dout;
SpectralAnalysis sa;
// Do 199 Simulations and takes the 5 lowest and 5 highest value... |
2c46613e57c36c30c4ba8df1baa350521c4c308a | 11193bb804b3ca7954b902096baa80a70b2bd154 | /tests/auto/declarative/qsgview/tst_qsgview.cpp | f2913cbd63149a212cef8ce1cc97eee430802276 | [] | no_license | richardeigenmann/qtdeclarative | e36347b973cc72619e373a6742ebc9ca38a81480 | c5b56564667194b179ebfcc87608d38e9969fade | refs/heads/master | 2020-07-23T17:02:02.169233 | 2011-08-11T11:58:53 | 2011-08-15T07:35:17 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,388 | cpp | tst_qsgview.cpp | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** GN... |
17cffba440113f264476e221a707e75d0fc463bf | 309647935d0f8f507207ecf48d124102c1d7197f | /Utility/font/src/FileHeader.h | ce082f48ad1dbb9d4ee32b9602d4217734d75d68 | [
"MIT"
] | permissive | ThomasChevalier/passwordWallet | 6b59d8afd48c1bbdc89348798beebfa6ced87e7e | 115dbde3e32f2be65071e6f298c4f03ddfe19b09 | refs/heads/master | 2021-03-27T20:00:34.594894 | 2020-04-19T17:03:49 | 2020-04-19T17:03:49 | 71,448,410 | 3 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 557 | h | FileHeader.h | #ifndef FILEHEADER_H
#define FILEHEADER_H
#pragma pack(1)
class FileHeader
{
public:
FileHeader():
fileSize(0), rsv(0), offsetImg(0)
{
reset();
}
void reset()
{
signature[0] = '*';
signature[1] = '*';
fileSize = 0;
rsv = 0;
offs... |
a8495c8b82a139559541cfe1793c52714cde59b0 | f1182b9c4d222f6914505cac8450e5d96ce4e4d1 | /juce_1_44/juce/extras/audio plugins/wrapper/juce_AudioFilterBase.h | a9252408d456891952c623695b2b0d009ef5db8b | [] | no_license | GeorgeNs/mammut | b417ee2aee734f6fa6ac4d9425eb314e0e66559f | 5346951da7ceced59b4d766c809f4546b95d3412 | refs/heads/master | 2020-03-28T08:54:36.395454 | 2018-09-10T04:21:32 | 2018-09-10T04:21:32 | 147,935,202 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 23,837 | h | juce_AudioFilterBase.h | /*
==============================================================================
This file is part of the JUCE library - "Jules' Utility Class Extensions"
Copyright 2004-7 by Raw Material Software ltd.
------------------------------------------------------------------------------
JUCE can be re... |
19d4e7d3ee9051e78585ab6f1b65b1df2055a859 | 6674ecfc4a2c0a3a5bdc45b458e7f18e9b134092 | /examples/ClientProject/SimpleFramework/appAccel.ino | 26ca8637ac471609fa3accbb9f4d8ddd80d3180b | [
"MIT"
] | permissive | AlexGoodyear/TTGO_TWatch_Library | 0ab8b76b0d96cadcf5982bafc028bdf0ad6a5ac4 | d982092b2700ba2a4deba8be38bf338ffde855c1 | refs/heads/master | 2022-12-05T03:26:52.905530 | 2020-08-21T19:28:45 | 2020-08-21T19:28:45 | 276,957,141 | 5 | 0 | MIT | 2020-08-12T10:32:06 | 2020-07-03T17:46:09 | C | UTF-8 | C++ | false | false | 684 | ino | appAccel.ino | // Show the accelerometer working
void appAccel() {
ttgo->bma->begin();
ttgo->bma->enableAccel();
ttgo->tft->fillScreen(TFT_BLACK);
int16_t x, y;
int16_t xpos, ypos;
Accel acc;
while (!ttgo->getTouch(x, y)) { // Wait for touch to exit
ttgo->bma->getAccel(acc);
xpos = acc.x;
... |
88938e5e2151a215e64c5bab2d3b7a7458d036db | 4391a2d87df2e3de7b7ba7498661c8103c9e4b04 | /HelloMix/src/window.h | 6cb2c23e00e6c4519a9dcc00c67cbbdc15c1409a | [
"MIT"
] | permissive | jaredtao/QtOpenGL | a387ffb0bad9abc8f69988f45e3fdb14cb69cf9a | 18184b6163e7d6c496737de795fc63fe1879f010 | refs/heads/master | 2023-05-13T11:09:27.393127 | 2023-04-26T07:17:13 | 2023-04-26T07:17:13 | 84,802,479 | 89 | 33 | null | null | null | null | UTF-8 | C++ | false | false | 1,395 | h | window.h | #ifndef WINDOW_H
#define WINDOW_H
#include <QMainWindow>
#include <QOpenGLBuffer>
#include <QOpenGLFunctions>
#include <QOpenGLShader>
#include <QOpenGLShaderProgram>
#include <QOpenGLTexture>
#include <QOpenGLWidget>
#include <QTime>
class Window
: public QOpenGLWidget
, protected QOpenGLFunctions
{
Q_OBJECT
publ... |
8cacc95197fa07565b52d561aaa6b8c295d04173 | 48c9e9213fa56b2e9d1af8be67211082aa02ea5b | /prj/VM2/Optim2/VM_EA.cpp | 507dd0bdf5ce807118a8df16e7556a5c1557cd45 | [] | no_license | 0xABADCAFE/ancient-extropia-amiga68k | 35ffc3eb1559c50a27536bd5c526b31368faab17 | be56f2c66d92e556518ea2e35441977ca2fc4a7b | refs/heads/master | 2020-03-16T10:39:54.735743 | 2018-05-11T17:18:12 | 2018-05-11T17:18:12 | 132,636,978 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 13,217 | cpp | VM_EA.cpp | //*****************************************************************//
//** Description: eXtropia XSF Codec Virtual Machine **//
//** First Started: 2002-03-08 **//
//** Last Updated: **//
//** Author Karl Churchill ... |
ef47e2385864c17d761fcf658ec0217bcb5277d1 | c0513a1f708dc928f558a44a87bc547da2bdd6ad | /实验2.cpp | 52500b67f4769a8b55dbc1176caa2fb6e60e252a | [] | no_license | hhhhhxx/hello-world | 1df5164c3b5a6c7dbe26a14ff125080ca146567a | a8848b930f131e2ba4a5edc8c73f38501d38a54a | refs/heads/main | 2023-07-27T04:52:02.417645 | 2021-09-13T14:28:37 | 2021-09-13T14:28:37 | 403,952,058 | 0 | 1 | null | 2021-09-13T13:09:45 | 2021-09-07T11:27:29 | C++ | UTF-8 | C++ | false | false | 163 | cpp | 实验2.cpp | #include <iostream>
int main() {
std::cout<<"chen bing cheng";
std::cout<<"cai yun hai";
std::cout<<"13 chen ze hua";
std::cout<<"cai wen xi";
return 0;
}
|
523f01de830da3a230a3074471da6580b0511098 | c3beae4f831421af6e788648133d4a2f37bfc1da | /src/Circle.hpp | d355c2990589a7c9bc0c4bafafc94aa2c3c18f6b | [] | no_license | CallumHoward/CirclePacking | 38479fe4fb5f06f258c34c32f080fe33f45d1d9f | 07fd85226c3d2fa9fb3ec0d6697ef7ea6dfb0844 | refs/heads/master | 2020-06-01T02:47:04.751010 | 2017-06-13T04:30:50 | 2017-06-13T04:30:50 | 94,059,721 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 634 | hpp | Circle.hpp | //
// Circle.hpp
// CirclePacking
//
// Created by Callum Howard on 11/6/17.
//
//
#ifndef Circle_hpp
#define Circle_hpp
namespace ch {
using namespace ci;
using namespace ci::app;
class Circle {
public:
Circle(float radius, const vec2 ¢er) : radius_{radius}, center_{center} {}
... |
162df01a6af02c9f2dad77148b04dbbe5f79725d | 88f5b3e51526b09bd2b329f0375e89e0c98e33ef | /logic_dcdf_score/DuoCaiDuoFuCfg.cpp | 45739185c1555250f7c2929be88fbf92a37d7540 | [] | no_license | xeonye/dderverdd | 61ec4b8dbf365603ee351a949f5d5c621a46b199 | 34dacdee0382184e924354d7304038a7c9bae58a | refs/heads/master | 2020-06-21T07:56:56.588277 | 2019-06-07T07:35:44 | 2019-06-07T07:35:44 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 20,857 | cpp | DuoCaiDuoFuCfg.cpp | //
// Created by okMan on 2018/11/5.
//
#include "DuoCaiDuoFuCfg.h"
#include "glog_wrapper.h"
CDCDFCfg::CDCDFCfg()
{
}
CDCDFCfg::~CDCDFCfg()
{
}
void CDCDFCfg::LoadCfg()
{
acl::string buf;
if (acl::ifstream::load("./script/DCDF_GAME_CFG.xml", &buf) == false)
{
LOG(WARNING) << "load DCDF_GAME_C... |
c1b21d253239cfb5c1560b678995d80d1c0d48d5 | 636c5faea1a509006e7730eaeb632246e7450b71 | /Arduino Codes/AngleTimeCalibration/AngleTimeCalibration.ino | efa7122758753c08701533ca7547601909ef2204 | [] | no_license | ahxmeds/bachelors-thesis-project | 8896bc7b3b332fdb345aba10ceca759e7ecb5a96 | 0bd2703b680b4d73c011f7c4de9e76815a1ce2fd | refs/heads/master | 2022-09-11T22:26:05.291845 | 2019-04-08T07:35:49 | 2019-04-08T07:35:49 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,180 | ino | AngleTimeCalibration.ino | #include<AFMotor.h>
AF_DCMotor LeftMotor(2);
AF_DCMotor RightMotor(1);
int velocity = 200;
void setup()
{
Serial.begin(9600);
randomSeed(analogRead(A0));
}
int time = 700;
void loop()
{
delay(1000);
TurnLeft(time);
delay(500000);
}
void TurnRight(int ThetaTime)
{
LeftMotor.setSpeed(255);
RightMot... |
6b259117991c6199ed1e85f3ae711ea66df59415 | 7ee32ddb0cdfdf1993aa4967e1045790690d7089 | /Tuenti Challenge/2013/Tuenti13Problem13.cpp | f2736bb1b655c7b9f1538ea8ccd40eb32d5b20d7 | [] | no_license | ajimenezh/Programing-Contests | b9b91c31814875fd5544d63d7365b3fc20abd354 | ad47d1f38b780de46997f16fbaa3338c9aca0e1a | refs/heads/master | 2020-12-24T14:56:14.154367 | 2017-10-16T21:05:01 | 2017-10-16T21:05:01 | 11,746,917 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 2,332 | cpp | Tuenti13Problem13.cpp | #include <iostream>
#include <sstream>
#include <vector>
#include <string>
#include <algorithm>
#include <utility>
#include <set>
#include <map>
#include <deque>
#include <queue>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>
#include <stdio.h>
using namespace std;
#define fo(i,n) for(int i=0;... |
603614cf749cc21bc494bcf33d13db6c247e9892 | c2153dcfa8bcf5b6d7f187e5a337b904ad9f91ac | /src/Engine/Event/EventContainer.h | c89577fa8c221b862975c5b46b03c7026ce61556 | [] | no_license | ptrefall/smn6200fluidmechanics | 841541a26023f72aa53d214fe4787ed7f5db88e1 | 77e5f919982116a6cdee59f58ca929313dfbb3f7 | refs/heads/master | 2020-08-09T17:03:59.726027 | 2011-01-13T22:39:03 | 2011-01-13T22:39:03 | 32,448,422 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 809 | h | EventContainer.h | #pragma once
#include "IEventManager.h"
#include <ClanLib/src/API/core.h>
#include <vector>
namespace Engine
{
namespace Events
{
class EventContainer
{
public:
EventContainer(IEventManager *EventMgr) : EventMgr(EventMgr) {}
~EventContainer() {}
template<class Class, class Param1>
void Connect... |
4c462f1e66d06d760fe04ef96c5ee11c155f3310 | a28c39e4198d9eb92c74fb20997d478e9f91b13c | /invModel/journal.cpp | 5ff05f879d89dd3988bb6167bf658d9982b4c547 | [] | no_license | MafuraG/inventory | 2db57a621ba62653dacd5295e3f210e79e352959 | d07f0ee611906a18a70b798c025474126cdcc8dc | refs/heads/master | 2021-01-21T14:25:14.257270 | 2016-07-07T10:42:28 | 2016-07-07T10:42:28 | 59,742,343 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,166 | cpp | journal.cpp | #include "journal.h"
#include <QDebug>
Journal::Journal()
{
}
unsigned int Journal::inventoryID() const
{
return m_inventoryID;
}
void Journal::setInventoryID(unsigned int inventoryID)
{
m_inventoryID = inventoryID;
}
QString Journal::date() const
{
return m_date;
}
void Journal::setDate(const QString ... |
7c711465d48be26fee4f4f1940909b038059d96d | 12c51e72393d1adc42d6c0011e2dbd76335fb01e | /net_protocol.cpp | b87c2dd204e5fabb482a9ee884d7541bef51878b | [] | no_license | yifu/chess | f7b12d577930badad8f107e02847449a42ca02ff | 89ff3cc3e4cc9cdd63e414455138bbfcab2393b9 | refs/heads/master | 2021-03-16T10:21:59.972559 | 2015-11-02T21:30:05 | 2015-11-02T21:30:05 | 41,814,353 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 29 | cpp | net_protocol.cpp | #include "net_protocol.hpp"
|
f2b53eebb7e4852ca33c94f9617a61f308277ddb | 084a3f4b50c56c03657e6838b2f7e48b05f2fd2d | /_cpp_basic/cmake_example/message.cpp | 3921d03b356a55f2a988687100cc12899a117427 | [] | no_license | roytwu/cpp | e488c745979dd19abb45efb2fe68dc58656e9c33 | feca92ecd32284d7598d59c6a576cf79cf611f09 | refs/heads/master | 2022-06-09T02:07:01.220096 | 2020-05-05T19:47:34 | 2020-05-05T19:47:34 | 134,349,163 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 243 | cpp | message.cpp | #include <iosfwd>
#include <iostream>
#include <string>
#include "message.hpp"
using std::ostream;
using std::endl;
ostream &Message::printObject(ostream &os) {
os << "This is my very nice message..." << endl;
os << message_;
return os;
} |
aaed61fe3abd5765eb63dbb0917c3ca9f94161a8 | a926ee00e68ea41e8a0821e261722428f433ced7 | /inclusiveJetTrackCorrelation2015/jetShapeMacros/plotShapes.cxx | 6ead7825a6f490f13977ce5bc08dcfca44b9705d | [] | no_license | Taburis/cmsProjects | 57b4335afee551d8b44cdbdc4939496b8fcf71d8 | 0bec9c01cac099046b9f817e7fd6b1a763df9200 | refs/heads/master | 2021-01-12T10:16:21.514881 | 2018-12-13T16:59:42 | 2018-12-13T16:59:42 | 76,406,070 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 4,875 | cxx | plotShapes.cxx |
#include "/Users/tabris/cmsProjects/Toolkit/stackHist.h"
#include "hallie_input.h"
bool donorm=0;
void subplot( stackHist* st, int ii, int nf);
TLatex tl = TLatex();
TString centLabel[] = {"Cent:0-10%", "Cent:10-30%", "Cent:30-50%", "Cent:50-100%"};
TString jetPtLabel[] = {"120<jetPt<150", "150<jetPt<200", "jetPt>200... |
929ac7dfdc7b7603314a6c1145931751fc88a4d0 | 768908051da1b660d14b02050637633ba772eced | /src/move_validation.cpp | 0456be1467b08e9dd73aa5a65f8724357eed7ee4 | [
"MIT"
] | permissive | davidpownall/ChessRobot | 5ac3943ac2c8abdc60db4283119206769d413268 | a8041b9cff7cbae6952ec57690596ea6de9cb2f9 | refs/heads/master | 2020-04-15T00:44:35.396935 | 2019-03-31T20:13:58 | 2019-04-18T22:04:41 | 164,250,971 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,393 | cpp | move_validation.cpp |
/* This file is responsible for the validation of chess moves */
#include <iostream>
#include "util.h"
#include "chessboard_defs.h"
#include "chessboard.h"
/**
* Determines if the piece type at this location can make a valid move to the endIdx
*
* @param pt The piece type making the move
* @param idx... |
1d15b918e3f21eb6f0414179dcd6f3ebde17178e | 7447629a7d91cdc2f382b9d946a8bfd84305bcdb | /src/enums/divmodestring.cc | 99afac6cd33fe7b5f1be11f5129f3db92a279f21 | [] | no_license | JosvanGoor/ScientificVisualisation | e801c9c74c79ab47c1026b7d7fb51a095c26bcc3 | e815dfa0a00dad7d55188551ea892e20608aca4a | refs/heads/master | 2020-04-22T22:14:35.721240 | 2019-04-10T18:14:17 | 2019-04-10T18:14:17 | 170,701,028 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 288 | cc | divmodestring.cc | #include "enums.ih"
string divmode_string(DivMode mode)
{
switch (mode)
{
case DivMode::OFF:
return "DivMode::OFF";
case DivMode::ON:
return "DrawMode::ON";
default:
return "Unknown or Modval DivMode";
}
} |
72f9d01d8571c1d0871e60111c8037a38112fc89 | 043cffc19d437c318915ffebde5d1ef5a054e1a4 | /file_input/refptr.hh | 0700dcd738ab8737213811ee12c49bb27f2da611 | [] | no_license | e12exp/ucesb | 125fe30cf546dfbd1ff04c7cf0d9e60aa9b19558 | 7243a48dd1feb3fa3ea6f8c69449b9c407942ff6 | refs/heads/master | 2022-11-30T06:45:34.837594 | 2022-11-25T13:55:02 | 2022-11-25T13:55:02 | 228,606,166 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 878 | hh | refptr.hh | #ifndef _REFPTR_H_
#define _REFPTR_H_
template<class T> class refptr
{
protected:
T *ptr;
int *refcount;
void clear()
{
if(!refcount)
return;
(*refcount)--;
if(*refcount == 0)
{
delete refcount;
refcount = NULL;
if(ptr != NULL)
delete ptr;
ptr = NULL;
}
}
public:
refptr()... |
e3deb8b91202d0b151534abd43554732ce69d64e | 190948d6cb4f394d63152668116b0be2391d55c5 | /simulator_win/main.cpp | 75b3960c3563afa37f1281f773ce7fa3db80771e | [] | no_license | dawidk089/albedo | 39b6c693b22b7967b7857844c77733c23f4471ed | 1433b8d140ff423dc760ff8dc4f718a04bd1d09c | refs/heads/master | 2016-09-05T09:22:49.688242 | 2015-08-31T18:51:35 | 2015-08-31T18:51:35 | 36,973,427 | 0 | 0 | null | null | null | null | WINDOWS-1250 | C++ | false | false | 4,192 | cpp | main.cpp | #include "Projekt_FS.h"
int ilosc_poludnikow;
int ilosc_rownoleznikow;
double promien_ziemi;
double pi;
double szerokosc_kontowa_biegunow_przez_2;
double stala_sloneczna;
double stala_Stefana_Boltzmana;
double wspulczynnik_reemisji;//globalne ocieplenie
double wsp_dyf;
int fun_slonce;
int fun_emisja;
int fun_wymiana_... |
2d7e84b317c8b3214c5b76ece9c4fbf7444d53be | 921137a0bc9ba19b51557b19ccfcfe376740a46c | /Qt/ANPR/anpr.h | 963c14b1965545857816506186a4b27544035c6e | [] | no_license | Sugoshnr/ANPRS | 475fb76f6d9d78a8480e04ac8c90ac47c74ba375 | dfb61a748a8a50417896453d91bcbbe297766b71 | refs/heads/master | 2020-07-04T06:36:25.789352 | 2016-08-29T02:54:10 | 2016-08-29T02:54:10 | 66,789,070 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 852 | h | anpr.h | #ifndef ANPR_H
#define ANPR_H
#include <QMainWindow>
#include "opencv2/opencv.hpp"
#include "textloc.h"
#include "textseg.h"
#include "preproc.h"
#include<iostream>
#include<fstream>
using namespace cv;
using namespace std;
namespace Ui {
class ANPR;
}
class ANPR : public QMainWindow
{
Q_OBJECT
... |
1ff70a60895edd4765c2221f7a6c59c3e9a241ac | 19b3fee76039791b237f605850b173b6c3200fc9 | /1090_2 Highest Price in Supply Chain (25 分)/1090 Highest Price in Supply Chain (25 分).cpp | 269959d2b7cc5c541108a39fc58a6fc2e9be0e0f | [] | no_license | xuefrye/PAT-Advanced-Level-Practice | 3b10aae6438e70f80288423f922c4af0860bd14e | b5df775d0f330d3fcdc91c682082889801257a23 | refs/heads/master | 2020-05-13T19:25:59.565431 | 2019-04-16T09:01:05 | 2019-04-16T09:01:05 | 181,653,087 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 864 | cpp | 1090 Highest Price in Supply Chain (25 分).cpp | /*
1090 Highest Price in Supply Chain £¨25 ·Ö£©
*/
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
using namespace std;
const int maxn = 100001;
int n,fatherid,root;
double p, r;
vector<int> tree[maxn];
int templayer, maxlayer = 0, pathNum = 1;
void dfs(int roo... |
b50b7313ff28ff2aa02ca209f55ce86f949ebc68 | 32aa586bef7f8ae4a04cb18d4428b2a328a7bd51 | /JsonParseError.cpp | 3b3e1ddcb31a927942468365cfe47acbb7939056 | [] | no_license | zooyer/cJSON | 5c0442f408b16d2abd002473c3e56219732e4403 | 6b1e0cb2fb97b053667a14bb2c1798efd3551c9d | refs/heads/master | 2020-03-27T07:15:13.883079 | 2018-08-26T11:43:11 | 2018-08-26T11:43:11 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 475 | cpp | JsonParseError.cpp | #include "JsonParseError.h"
JsonParseError::JsonParseError()
{
m_error = false;
}
JsonParseError::~JsonParseError()
{
}
void JsonParseError::setJsonParseError(bool error, const string & errinfo)
{
m_error = error;
m_errinfo = errinfo;
}
bool JsonParseError::isError()
{
return m_error;
}
void JsonParseError:... |
f773b45191e8c8f044812f7465682c28c8fdf9be | cfeac52f970e8901871bd02d9acb7de66b9fb6b4 | /generated/src/aws-cpp-sdk-datasync/include/aws/datasync/model/PhaseStatus.h | a77d9adf2b1536982d5fd1b839e6531de3b59c22 | [
"Apache-2.0",
"MIT",
"JSON"
] | permissive | aws/aws-sdk-cpp | aff116ddf9ca2b41e45c47dba1c2b7754935c585 | 9a7606a6c98e13c759032c2e920c7c64a6a35264 | refs/heads/main | 2023-08-25T11:16:55.982089 | 2023-08-24T18:14:53 | 2023-08-24T18:14:53 | 35,440,404 | 1,681 | 1,133 | Apache-2.0 | 2023-09-12T15:59:33 | 2015-05-11T17:57:32 | null | UTF-8 | C++ | false | false | 644 | h | PhaseStatus.h | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/datasync/DataSync_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>
namespace Aws
{
namespace DataSync
{
namespace Model
{
enum class PhaseStatus
{
NOT_SE... |
e36fb122ba7ebb973dc3ecee837c2d96cee33b33 | becd5ee93440020322e3ad99926cebc0e71d786d | /src/meta/processors/admin/GetMetaDirInfoProcessor.cpp | cc16d2679b5ca0d4e77d701321d185e1f337db49 | [
"Apache-2.0"
] | permissive | heyanlong/nebula | aa94f589a2d77d0cb6e40dcced1f5ee0a8e6a79c | 07ccfde198c978b8c86b7091773e3238bfcdf454 | refs/heads/master | 2023-09-04T13:49:18.522506 | 2021-11-03T15:16:03 | 2021-11-03T15:16:03 | 424,433,008 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,570 | cpp | GetMetaDirInfoProcessor.cpp | /* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License.
*/
#include "meta/processors/admin/GetMetaDirInfoProcessor.h"
#include <boost/filesystem.hpp>
#include "common/fs/FileUtils.h"
namespace nebula {
namespace meta {
void GetMetaDirInfoProcessor::proce... |
f3024cff48e5e98a2bd05a26d958e44cde664513 | 17cc06546c0f84f1680cf3b6381ffd3f5c78e888 | /Chess/src/Pieces/BoardMovePieces/BoardMovePiece.cpp | fc6b3190b2a34eb2f17318eb9eab541ebeecc0c2 | [] | no_license | Same4254/The-Clive-Mind | f5f9afaa5558e78c83f97596c3d346dffe3e6a47 | 5faf39f71136ef70dbfbb5e13a77a258dffe99d7 | refs/heads/master | 2023-05-28T08:51:54.966337 | 2023-05-09T21:55:44 | 2023-05-09T21:55:44 | 200,430,644 | 2 | 0 | null | 2021-01-16T21:21:49 | 2019-08-03T23:41:31 | C++ | UTF-8 | C++ | false | false | 1,456 | cpp | BoardMovePiece.cpp | #include "Pieces/BoardMovePieces/BoardMovePiece.hpp"
BoardMovePiece::BoardMovePiece(const PieceFunctionalityIndex piece, PieceFunctionalityIndex newPiece, const char renderCharacter) : PieceFunctionality(piece, renderCharacter, true), newPiece(newPiece) {
}
void BoardMovePiece::fillMoves(BoardState &boardState, std... |
fbd9453294f01e9a5018b6f38449812721aecc02 | 8b07e31d203b3d3102b29c73e0777713adcd64b6 | /UVa/10656.cpp | a664a3b0f64b81a5f93dd67a93aa568cfbe041da | [] | no_license | rapel02/competitive-programming | 70d193c17e0da447b76643d6d3818c3f5000df8f | 27d39667ca4f3b4dde1cef6234cd847c23d82b5f | refs/heads/master | 2020-06-04T16:18:39.018983 | 2019-06-15T16:34:06 | 2019-06-15T16:34:06 | 192,099,411 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | cpp | 10656.cpp | #include<bits/stdc++.h>
using namespace std;
int arr[1500];
int main()
{
int n;
bool ff = true;
while(scanf("%d",&n),n)
{
ff = false;
int ll = -1;
int rr = -2;
for(int a=0;a<n;a++)
{
scanf("%d",&arr[a]);
if(arr[a]!=0)
{
if(ll==-1) ll = a;
rr = a;
}
}
for(int b=ll;b<=rr;b++)
{
... |
6779e7f32aafac5b8f3e2c9323d9dc77f5e85b3a | ead0b1c60e787f319242de5a56d246991d6e5464 | /code/source/Events/Manager/PlayFabEventManagerApi.cpp | d0ef1690339c10eb0edac5f6ef0f244639c2d4bd | [] | no_license | jplafonta/XPlatCSdk | fbc9edcf7dadf88c5e20f26b6deaafa3bb512909 | 302c021dcfd7518959551b33c65499a45d7829de | refs/heads/main | 2023-07-30T04:54:27.901376 | 2021-08-31T14:26:52 | 2021-08-31T14:26:52 | 347,189,117 | 0 | 0 | null | 2021-04-15T01:09:33 | 2021-03-12T20:26:17 | C++ | UTF-8 | C++ | false | false | 7,003 | cpp | PlayFabEventManagerApi.cpp | #include "stdafx.h"
#include <playfab/PlayFabEventManagerApi.h>
#include "Event.h"
#include "Entity.h"
using namespace PlayFab;
using namespace PlayFab::EventManager;
HRESULT PlayFabEventManagerEventCreate(
_In_ PlayFabEventManagerEventType eventType,
_In_ const char* eventName,
_In_opt_ const ... |
8ee0fcb4e1da628233a72d36c354b19e67075656 | ab64c72b421125590a9eb9449d678d7db4f7610a | /Hieroglyph3/Source/Events/EventManager.cpp | dc2657061bcf7174cfb434ec119af2da4a128d54 | [
"MIT"
] | permissive | xzwang2005/DX11_tutorials_with_hieroglyph3 | 03220106c9d762bfccdbf098c42821bf25bb2b46 | 611e273dafe099875e86222e75420920ca2c49bf | refs/heads/master | 2020-05-17T13:44:24.834766 | 2018-03-22T11:03:50 | 2018-03-22T11:03:50 | 28,190,906 | 5 | 3 | null | null | null | null | UTF-8 | C++ | false | false | 3,575 | cpp | EventManager.cpp | //--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... |
586a9b712fdf4326d0848d7f52a355a96ab7cc6c | 70418d8faa76b41715c707c54a8b0cddfb393fb3 | /11648.cpp | fa66a961e7f1aaf7e4125525ae46c69d23f957fd | [] | no_license | evandrix/UVa | ca79c25c8bf28e9e05cae8414f52236dc5ac1c68 | 17a902ece2457c8cb0ee70c320bf0583c0f9a4ce | refs/heads/master | 2021-06-05T01:44:17.908960 | 2017-10-22T18:59:42 | 2017-10-22T18:59:42 | 107,893,680 | 3 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 751 | cpp | 11648.cpp | #include <bits/stdc++.h>
using namespace std;
double solve(double a, double b, double c)
{
double D = b * b - 4 * a * c;
return (-b + sqrt(D)) / (2 * a);
}
int main()
{
double AB;
double CD;
double AD;
double BC;
double Height;
double s;
double S;
double degree;
int Land;
scanf("%d", &Land);
for (int i ... |
9c7b99a592b65e89893079cca9cee7246d337ecd | 13d137e453bd2e7e0a9a93069dbdb5b8954b68a0 | /sorting-methods/quicksort/main.cpp | c0868ba21dc042e716ee5438e6af41f1464bdb2e | [] | no_license | devMatthes/PAMSI | 04c41556816b818a549897f06105adbe4fea7ffd | c619046ef63b988645eaf19d0ebafec04694a34b | refs/heads/master | 2020-05-07T10:00:58.274787 | 2019-06-17T16:06:51 | 2019-06-17T16:06:51 | 174,132,616 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,286 | cpp | main.cpp | #include <iostream>
#include <cstdlib>
#include <chrono>
#include <array>
#include <algorithm>
#include <random>
template <typename T>
void quicksort(std::vector<T>& numbers, typename std::vector<T>::iterator p, typename std::vector<T>::iterator q)
{
if(p >= q)
{
return;
}
auto pi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.