hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7cc0f7513d3fca4eec94f28a6e7347a218fda9da | 463 | hpp | C++ | src/cookie-engine/platform_abstracts/PlatformSpecificData.hpp | an22/cookie | 3c4b8cf6f9f3aab5e2e2d13ea8ba717fb19da640 | [
"MIT"
] | 1 | 2021-08-12T21:59:50.000Z | 2021-08-12T21:59:50.000Z | src/cookie-engine/platform_abstracts/PlatformSpecificData.hpp | an22/cookie | 3c4b8cf6f9f3aab5e2e2d13ea8ba717fb19da640 | [
"MIT"
] | null | null | null | src/cookie-engine/platform_abstracts/PlatformSpecificData.hpp | an22/cookie | 3c4b8cf6f9f3aab5e2e2d13ea8ba717fb19da640 | [
"MIT"
] | null | null | null | //
// PlatformSpecificData.hpp
// cookie-engine
//
// Created by Antiufieiev Michael on 03.08.2021.
//
#ifndef PlatformSpecificData_hpp
#define PlatformSpecificData_hpp
#include <cstdint>
namespace cookie {
class PlatformSpecificData {
protected:
int32_t _width = 0;
int32_t _height = 0;
public:
virtual ... | 17.148148 | 49 | 0.721382 | an22 |
7cc48b02a7d837e8bc28cc42b232fd50423f4b28 | 1,405 | hpp | C++ | src/app.hpp | putara/thumpsvg | eaf56b31854fd4efa827ff79d41149fea557a3ce | [
"Unlicense"
] | 1 | 2021-12-31T02:22:35.000Z | 2021-12-31T02:22:35.000Z | src/app.hpp | putara/thumpsvg | eaf56b31854fd4efa827ff79d41149fea557a3ce | [
"Unlicense"
] | null | null | null | src/app.hpp | putara/thumpsvg | eaf56b31854fd4efa827ff79d41149fea557a3ce | [
"Unlicense"
] | 1 | 2020-09-05T17:54:27.000Z | 2020-09-05T17:54:27.000Z | #ifndef SVG_APP_H
#define SVG_APP_H
template <class T, class TWindow>
class App
{
public:
TWindow* CreateMainWindow(HINSTANCE hinst, ATOM atom)
{
return TWindow::Create(hinst, atom, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, WS_OVERLAPPEDWINDOW, 0);
}
void OnMainWindowCreated(... | 23.032787 | 128 | 0.566548 | putara |
7cd1b98299caa7fd6b38bfe652fedeff80ef9c58 | 169 | cpp | C++ | src/imagealign/GPUImageAligner.cpp | donlk/ImageStackToolbox | d240326ffa40d350ea385cafe50077c6df36cb6e | [
"MIT"
] | null | null | null | src/imagealign/GPUImageAligner.cpp | donlk/ImageStackToolbox | d240326ffa40d350ea385cafe50077c6df36cb6e | [
"MIT"
] | null | null | null | src/imagealign/GPUImageAligner.cpp | donlk/ImageStackToolbox | d240326ffa40d350ea385cafe50077c6df36cb6e | [
"MIT"
] | null | null | null | #include "../../inc/imagealign/GPUImageAligner.h"
using namespace std;
GPUImageAligner::GPUImageAligner(){
// NOOP
}
GPUImageAligner::~GPUImageAligner(){
// NOOP
}
| 14.083333 | 49 | 0.715976 | donlk |
7cd2a2fc61149c7c323319b34e09c2a2b8ec691e | 3,631 | cc | C++ | epc/encode.cc | hyusuk/libepc | 19b9a5ef28c79ce2065f36dc40e694475b78be1e | [
"MIT"
] | 2 | 2022-02-01T08:44:35.000Z | 2022-02-01T14:24:10.000Z | epc/encode.cc | hyusuk/libepc | 19b9a5ef28c79ce2065f36dc40e694475b78be1e | [
"MIT"
] | null | null | null | epc/encode.cc | hyusuk/libepc | 19b9a5ef28c79ce2065f36dc40e694475b78be1e | [
"MIT"
] | null | null | null | #include "encode.h"
#include <bitset>
#include <map>
#include <sstream>
namespace epc {
std::string encode_integer(uint64_t i, unsigned int bit_len) {
std::string s = std::bitset<64>(i).to_string();
return s.substr(64-bit_len, 64);
}
uint64_t decode_integer(const std::string &s) {
... | 30.008264 | 79 | 0.490774 | hyusuk |
7cd61cbf29f09db60cc288572397a08b674e319d | 85,058 | cpp | C++ | model/workspace/code/ECU_3.cpp | Joeyrr/ECP_EPM | 7e7034f6dbda973b316d17cb0b8d9e0256ad86a3 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | model/workspace/code/ECU_3.cpp | Joeyrr/ECP_EPM | 7e7034f6dbda973b316d17cb0b8d9e0256ad86a3 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | model/workspace/code/ECU_3.cpp | Joeyrr/ECP_EPM | 7e7034f6dbda973b316d17cb0b8d9e0256ad86a3 | [
"BSD-3-Clause",
"MIT"
] | null | null | null | #include <math.h>
#include <string.h>
void score(double * input, double * output) {
double var0;
if ((input[38]) >= (2.125)) {
if ((input[37]) >= (2.6111498)) {
if ((input[60]) >= (0.5)) {
var0 = 0.15117484;
} else {
var0 = 0.19596775;
... | 28.277261 | 1,233 | 0.298455 | Joeyrr |
7cde3471e23f56a9fe6ddf2c7f2b380cbb146a20 | 1,020 | cpp | C++ | src/MZIntensityPair.cpp | eduseiti/maracluster | 236b4010742db91425fec476f8b19967ee0f6999 | [
"Apache-2.0"
] | 7 | 2015-10-29T13:41:19.000Z | 2021-07-21T17:07:46.000Z | src/MZIntensityPair.cpp | eduseiti/maracluster | 236b4010742db91425fec476f8b19967ee0f6999 | [
"Apache-2.0"
] | 21 | 2016-01-19T13:55:07.000Z | 2021-02-09T10:44:49.000Z | src/MZIntensityPair.cpp | eduseiti/maracluster | 236b4010742db91425fec476f8b19967ee0f6999 | [
"Apache-2.0"
] | 4 | 2016-01-17T11:31:04.000Z | 2021-06-25T03:08:58.000Z | /******************************************************************************
Copyright 2015 Matthew The <matthew.the@scilifelab.se>
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
h... | 37.777778 | 81 | 0.606863 | eduseiti |
7ce4d0476ef2aa561292ca68b6c59831a9046f46 | 657 | cpp | C++ | src/container/map/reserve.cpp | firedtoad/cppbenchmark | 328938d9283f89bc97fc4c87a493c676bf7de97a | [
"Apache-2.0"
] | 1 | 2022-01-20T03:58:52.000Z | 2022-01-20T03:58:52.000Z | src/container/map/reserve.cpp | firedtoad/cppbenchmark | 328938d9283f89bc97fc4c87a493c676bf7de97a | [
"Apache-2.0"
] | null | null | null | src/container/map/reserve.cpp | firedtoad/cppbenchmark | 328938d9283f89bc97fc4c87a493c676bf7de97a | [
"Apache-2.0"
] | null | null | null | #include<benchmark/benchmark.h>
#include<unordered_map>
static void BM_insert(benchmark::State &state) {
for (auto _ : state) {
std::unordered_map<int, int> m;
for (auto i = 0; i < 1024; i++) {
m[i] = i;
}
}
}
static void BM_reserve(benchmark::State &state) {
for (auto _... | 21.9 | 49 | 0.5586 | firedtoad |
7ce6d29ca1e1d3f6b22e1d73c6c640903709b3f7 | 452 | cpp | C++ | source/src/util/cs_Crc16.cpp | lingfennan/bluenet | 6cedf1631e98a5a277abf2674a319b12d5fa5e9d | [
"Apache-2.0",
"MIT"
] | 45 | 2016-06-17T02:40:19.000Z | 2022-01-19T00:21:49.000Z | source/src/util/cs_Crc16.cpp | lingfennan/bluenet | 6cedf1631e98a5a277abf2674a319b12d5fa5e9d | [
"Apache-2.0",
"MIT"
] | 111 | 2016-06-06T16:18:06.000Z | 2022-03-25T14:31:20.000Z | source/src/util/cs_Crc16.cpp | lingfennan/bluenet | 6cedf1631e98a5a277abf2674a319b12d5fa5e9d | [
"Apache-2.0",
"MIT"
] | 31 | 2016-07-27T21:33:10.000Z | 2021-11-17T09:40:11.000Z | /*
* Author: Crownstone Team
* Copyright: Crownstone (https://crownstone.rocks)
* Date: Mar 1, 2021
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
*/
#include <ble/cs_Nordic.h> // For the crc16.h include
#include <util/cs_Crc16.h>
// We use the nrf implementation, as that seems a faster imp... | 30.133333 | 73 | 0.723451 | lingfennan |
7ceb1451c5729db90c65745861f6eb965ebd0e16 | 293 | hpp | C++ | engine/maps/tiles/include/ITileManipulator.hpp | prolog/shadow-of-the-wyrm | a1312c3e9bb74473f73c4e7639e8bd537f10b488 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | engine/maps/tiles/include/ITileManipulator.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | engine/maps/tiles/include/ITileManipulator.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include <memory>
#include "Map.hpp"
// Interface for a general tile manipulator: allows digging, etc.
class ITileManipulator
{
public:
virtual bool dig(CreaturePtr creature, MapPtr map, TilePtr tile) = 0;
};
using ITileManipulatorPtr = std::unique_ptr<ITileManipulator>;
| 22.538462 | 73 | 0.754266 | prolog |
7cec6d891b90de8d3897e4936bca5bd042b22a30 | 5,094 | cpp | C++ | sources/monsters/shielder.cpp | ucpu/grid | 11b8aa3b3a631a20525938a9dd1eac83b9f29db9 | [
"MIT"
] | 1 | 2018-03-18T14:28:19.000Z | 2018-03-18T14:28:19.000Z | sources/monsters/shielder.cpp | ucpu/degrid | 4656f347d5dfc22376a5bbc96a50c3d63e17df14 | [
"MIT"
] | 4 | 2020-07-28T12:05:01.000Z | 2020-08-03T05:29:18.000Z | sources/monsters/shielder.cpp | ucpu/degrid | 4656f347d5dfc22376a5bbc96a50c3d63e17df14 | [
"MIT"
] | null | null | null | #include "monsters.h"
namespace
{
struct ShielderComponent
{
static EntityComponent *component;
uint32 shieldEntity = 0;
uint32 chargingSteps = 0;
uint32 turningSteps = 0;
uint32 stepsLeft = 0;
Real movementSpeed;
};
struct ShieldComponent
{
static EntityComponent *component;
bool active = false;... | 28.943182 | 189 | 0.696702 | ucpu |
7cee739ae5ab2c4930c1f153a61a4470a660e98d | 1,118 | hpp | C++ | src/main/mapmaker/converter.hpp | PatrickLindemann/warzone-osm-processor | 16cbc956723f79d07dd1c1dcfd11ac7842a63312 | [
"MIT"
] | null | null | null | src/main/mapmaker/converter.hpp | PatrickLindemann/warzone-osm-processor | 16cbc956723f79d07dd1c1dcfd11ac7842a63312 | [
"MIT"
] | null | null | null | src/main/mapmaker/converter.hpp | PatrickLindemann/warzone-osm-processor | 16cbc956723f79d07dd1c1dcfd11ac7842a63312 | [
"MIT"
] | null | null | null | #pragma once
#include <map>
#include <vector>
#include <osmium/memory/buffer.hpp>
#include "model/boundary.hpp"
#include "handler/convert_handler.hpp"
using namespace model;
namespace mapmaker
{
template <typename T>
class BoundaryConverter
{
protected:
/* Types */
/**
* The abstra... | 21.921569 | 120 | 0.669052 | PatrickLindemann |
7cf6c336d44eafdf8b47b596bf54d22bec3ab4fc | 8,368 | cpp | C++ | libmetartc5/src/yangstream/YangStreamSrt.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 136 | 2021-12-17T09:17:44.000Z | 2022-03-28T09:51:51.000Z | libmetartc5/src/yangstream/YangStreamSrt.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 2 | 2021-12-24T02:00:53.000Z | 2022-03-28T02:40:12.000Z | libmetartc5/src/yangstream/YangStreamSrt.cpp | metartc/metaRTC | 7b3125c9244632c82c55aacd628e6f0d7b151488 | [
"MIT"
] | 40 | 2021-12-17T09:17:48.000Z | 2022-03-27T14:40:25.000Z | //
// Copyright (c) 2019-2022 yanggaofeng
//
#include "YangStreamSrt.h"
#include "yangsrt/YangSrtBase.h"
#include "yangsrt/YangTsMuxer.h"
#include "yangsrt/YangTsdemux.h"
#include <yangsrt/YangTsdemux.h>
#ifndef __ANDROID__
#include "yangutil/sys/YangLog.h"
#define YangSrtUnitSize 1316
typedef struct{
int32_t bufLen;... | 33.075099 | 184 | 0.748566 | metartc |
7cf7d14cba924cfd2a93927a60b092f365c65085 | 349 | cpp | C++ | Calculadoras/converter dolar para real.cpp | Arthurzineo/calculadoras_simples | ed83ee1ac1961a546bd6afe2a602f225ba10a1c2 | [
"MIT"
] | null | null | null | Calculadoras/converter dolar para real.cpp | Arthurzineo/calculadoras_simples | ed83ee1ac1961a546bd6afe2a602f225ba10a1c2 | [
"MIT"
] | null | null | null | Calculadoras/converter dolar para real.cpp | Arthurzineo/calculadoras_simples | ed83ee1ac1961a546bd6afe2a602f225ba10a1c2 | [
"MIT"
] | null | null | null | //converter dolar para real.
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
int main()
{
float dolar, real;
printf("\n\ncolocar um valor em dolar para coverter para reais:\n\n");
scanf("%f", &dolar);
real = dolar*5.37;
printf("\n\nO valor convertido ficou: %0.2f reais \n\n",real);
syst... | 18.368421 | 72 | 0.624642 | Arthurzineo |
7cf80a0c68953c224cfa49e98093ffd9279be59e | 890 | cpp | C++ | aws-cpp-sdk-wellarchitected/source/model/GetLensRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-wellarchitected/source/model/GetLensRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-wellarchitected/source/model/GetLensRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wellarchitected/model/GetLensRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/http/URI.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <u... | 20.697674 | 69 | 0.719101 | perfectrecall |
7cfa8bd6e418855f2338fac9a20e36097d1e1a9e | 895 | ipp | C++ | Siv3D/include/Siv3D/detail/MathConstants.ipp | Siv3D/siv6 | 090e82b2f6398640638dfa43da3f829ba977d0e2 | [
"MIT"
] | 2 | 2020-07-26T05:14:33.000Z | 2020-08-11T08:00:54.000Z | Siv3D/include/Siv3D/detail/MathConstants.ipp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 6 | 2020-03-03T04:01:10.000Z | 2020-09-27T14:33:19.000Z | Siv3D/include/Siv3D/detail/MathConstants.ipp | nokotan/siv6 | 7df183550a6c0160ba918d6ad24c3ae48231e26b | [
"MIT"
] | 5 | 2020-03-03T03:34:27.000Z | 2020-09-05T18:42:55.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2020 Ryo Suzuki
// Copyright (c) 2016-2020 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
namespace s3d
{
inline namespa... | 21.309524 | 72 | 0.591061 | Siv3D |
cfac0a5a721a5004afcf49c81e7d0dfed8cb2924 | 4,324 | cpp | C++ | homework/Bolychev/03/Game.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 12 | 2018-02-20T15:25:12.000Z | 2022-02-15T03:31:55.000Z | homework/Bolychev/03/Game.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 1 | 2018-02-26T12:40:47.000Z | 2018-02-26T12:40:47.000Z | homework/Bolychev/03/Game.cpp | nkotelevskii/msu_cpp_spring_2018 | b5d84447f9b8c7f3615b421c51cf4192f1b90342 | [
"MIT"
] | 33 | 2018-02-20T15:25:11.000Z | 2019-02-13T22:33:36.000Z | #include <iostream>
class Item {
public:
std::string name;
int durability;
Item(const std::string& name_, const int durability_)
: name(name_), durability(durability_) {}
const bool isCorrupted() const { return durability <= 0; }
};
class Food: public Item {
public:
int energy;
... | 23.372973 | 90 | 0.587882 | nkotelevskii |
cfb10ad8deccee3fb07a1678cce1baa363bc066d | 470 | hpp | C++ | src/behavior/stochasticgames/agents/twoplayer/singlestage/equilibriumplayer/equilibriumsolvers/utilitarian.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | 4 | 2019-04-19T00:11:36.000Z | 2020-04-08T09:50:37.000Z | src/behavior/stochasticgames/agents/twoplayer/singlestage/equilibriumplayer/equilibriumsolvers/utilitarian.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null | src/behavior/stochasticgames/agents/twoplayer/singlestage/equilibriumplayer/equilibriumsolvers/utilitarian.hpp | MarkieMark/fastrl | e4f0b9b60a7ecb6f13bbb79936ea82acb8adae0e | [
"Apache-2.0"
] | null | null | null |
/*
* Mark Benjamin 6th March 2019
* Copyright (c) 2019 Mark Benjamin
*/
#ifndef FASTRL_BEHAVIOR_STOCHASTICGAMES_AGENTS_TWOPLAYER_SINGLESTAGE_EQUILIBRIUMPLAYER_EQUILIBRIUMSOLVERS_UTILITARIAN_HPP
#define FASTRL_BEHAVIOR_STOCHASTICGAMES_AGENTS_TWOPLAYER_SINGLESTAGE_EQUILIBRIUMPLAYER_EQUILIBRIUMSOLVERS_UTILITARIAN_HPP... | 31.333333 | 122 | 0.897872 | MarkieMark |
cfb139a98685f3d9c7293928946544814437d6ab | 1,570 | cpp | C++ | AtCoder/ARC101/F/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/ARC101/F/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | AtCoder/ARC101/F/code.cpp | sjj118/OI-Code | 964ea6e799d14010f305c7e4aee269d860a781f7 | [
"MIT"
] | null | null | null | #include<cstdio>
#include<algorithm>
using namespace std;
const int N=1e5+10,MOD=1e9+7;
int n,m,x[N],y[N],f[N];
struct Point{
int x,y;
Point(int x=0,int y=0):x(x),y(y){}
}p[N];
bool operator==(const Point&a,const Point&b){return a.x==b.x&&a.y==b.y;}
bool cmp(const Point&a,const Point&b){return a.x<b.x||(a.x... | 23.088235 | 75 | 0.480255 | sjj118 |
cfb7ff0d11969a71ebf6dc9ddb9de98265053e36 | 308 | cpp | C++ | week6/Mazda.cpp | alinaduca/CommandDefense | 0d3bad3f14a85e1dcc03e81332b39a7e1c75f3fe | [
"MIT"
] | null | null | null | week6/Mazda.cpp | alinaduca/CommandDefense | 0d3bad3f14a85e1dcc03e81332b39a7e1c75f3fe | [
"MIT"
] | null | null | null | week6/Mazda.cpp | alinaduca/CommandDefense | 0d3bad3f14a85e1dcc03e81332b39a7e1c75f3fe | [
"MIT"
] | null | null | null | #include "Mazda.h"
#include "WeatherCondition.h"
#include <iostream>
using namespace std;
Mazda::Mazda() {
setFuelCapacity(120);
setFuelConsumption(30);
averageSpeed[Rain] = 10;
averageSpeed[Sunny] = 30;
averageSpeed[Snow] = 50;
}
void Mazda::Print() {
cout << "Mazda" << endl;
} | 18.117647 | 29 | 0.646104 | alinaduca |
cfbb8f5b3f0d91825bdb695ea907731cb28e0135 | 4,396 | cxx | C++ | src/main/mixers/DiisMixer.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/mixers/DiisMixer.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | src/main/mixers/DiisMixer.cxx | cc4s/cc4s | bff205f8fc98f29d4b9ff8f8b6faffbda50a8555 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2021 cc4s.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wri... | 27.475 | 99 | 0.633758 | cc4s |
cfbdc7c1b7b0d7be5ca6b85f9b331aa7aeed2e61 | 4,056 | cpp | C++ | src/webnn/native/null/ContextNull.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | src/webnn/native/null/ContextNull.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | src/webnn/native/null/ContextNull.cpp | wangli69087/webnn-native | 8fc751ee87dd797137a6443a28b8dd34d0a4d692 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 The WebNN-native Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ... | 24.731707 | 95 | 0.634862 | wangli69087 |
cfbef4d36ebdaebdb362b42a26c5d8544552d064 | 2,343 | cpp | C++ | src/libs/qlib/qdmbpool.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmbpool.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | null | null | null | src/libs/qlib/qdmbpool.cpp | 3dhater/Racer | d7fe4014b1efefe981528547649dc397da7fa780 | [
"Unlicense"
] | 1 | 2021-01-03T16:16:47.000Z | 2021-01-03T16:16:47.000Z | /*
* QDMBPool - DMbufferpool encapsulation
* 08-09-98: Created!
* NOTES:
* - Totally unsupported by Win32
* (C) MG/RVG
*/
#include <qlib/dmbpool.h>
#include <qlib/debug.h>
DEBUG_ENABLE
QDMBPool::QDMBPool(int bufs,int bufSize,bool cacheable,bool mapped)
{
p=new QDMParams();
pool=0;
#ifndef WIN32
// Set ini... | 19.04878 | 74 | 0.69825 | 3dhater |
cfc940bdf2d2cd5614f9be5a748dadeed893471b | 599 | cpp | C++ | src/collectible.cpp | arielkonopka/Gardens-of-Eris | 883a5042bef1a05c00de7d8ac607befed0779f23 | [
"BSD-2-Clause"
] | null | null | null | src/collectible.cpp | arielkonopka/Gardens-of-Eris | 883a5042bef1a05c00de7d8ac607befed0779f23 | [
"BSD-2-Clause"
] | null | null | null | src/collectible.cpp | arielkonopka/Gardens-of-Eris | 883a5042bef1a05c00de7d8ac607befed0779f23 | [
"BSD-2-Clause"
] | null | null | null | #include "collectible.h"
videoElement::videoElementDef* collectible::vd=NULL;
collectible::collectible(chamber *board):killableElements(board)
{
// this->setSubtype(0);
}
collectible::collectible(chamber* board, int x, int y): killableElements(board,x,y)
{
// this->setSubtype(0);
}
int collectible::getType()
{
... | 16.638889 | 83 | 0.714524 | arielkonopka |
cfcba6f314ce16784e407c4d893e4becaff79338 | 3,206 | cpp | C++ | kernel/src/x86_64/cpu.cpp | larrabyte/thepuck | dc9971bc0682354e74a1869b3cc6a5c80b85e821 | [
"MIT"
] | 5 | 2020-02-21T09:35:24.000Z | 2021-03-28T08:26:20.000Z | kernel/src/x86_64/cpu.cpp | larrabyte/thepuck | dc9971bc0682354e74a1869b3cc6a5c80b85e821 | [
"MIT"
] | null | null | null | kernel/src/x86_64/cpu.cpp | larrabyte/thepuck | dc9971bc0682354e74a1869b3cc6a5c80b85e821 | [
"MIT"
] | 1 | 2021-06-25T17:26:03.000Z | 2021-06-25T17:26:03.000Z | #include <mem/libc.hpp>
#include <errors.hpp>
#include <apic.hpp>
#include <cpu.hpp>
// Executes the CPUID instruction using eax and returns register values in storage.
extern "C" void readcpuid(uint32_t eax, void *storage);
// SMP data from trampoline.asm.
extern "C" struct apic::smpinfo smpdata;
namespace cpu {
... | 31.431373 | 102 | 0.61073 | larrabyte |
cfcea3ef0858b9cc07301cfe8343d5cbc95ec908 | 2,169 | hpp | C++ | OptiX-Path-Tracer/host_includes/image_save.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 77 | 2018-11-27T12:17:52.000Z | 2022-02-22T23:25:06.000Z | OptiX-Path-Tracer/host_includes/image_save.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 1 | 2019-06-14T18:43:07.000Z | 2019-06-14T18:43:07.000Z | OptiX-Path-Tracer/host_includes/image_save.hpp | trevortheblack/OptiX-Path-Tracer | e52394a80966057f8968c008078f0372277fdc8e | [
"Apache-2.0"
] | 3 | 2019-06-14T15:28:58.000Z | 2021-10-13T16:32:09.000Z | #ifndef IMAGESAVEHPP
#define IMAGESAVEHPP
#include "gui.hpp"
// Save OptiX output buffer to .PNG file
int Save_PNG(App_State &app, Buffer &buffer) {
unsigned char *arr;
arr = (unsigned char *)malloc(app.W * app.H * 3 * sizeof(unsigned char));
const float4 *cols = (const float4 *)buffer->map();
for (int j = ... | 28.92 | 91 | 0.579069 | trevortheblack |
cfcf088d3bc02b87a286dd4842893564646b3ac1 | 477 | cpp | C++ | level_zero/core/source/xe_hp_core/enable_family_full_l0_xe_hp_core.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/core/source/xe_hp_core/enable_family_full_l0_xe_hp_core.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | level_zero/core/source/xe_hp_core/enable_family_full_l0_xe_hp_core.cpp | mattcarter2017/compute-runtime | 1f52802aac02c78c19d5493dd3a2402830bbe438 | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/xe_hp_core/hw_cmds.h"
#include "level_zero/core/source/helpers/l0_populate_factory.h"
#include "level_zero/core/source/hw_helpers/l0_hw_helper.h"
namespace NEO {
using Family = XeHpFamily;
struct EnableL0Xe... | 19.08 | 63 | 0.72956 | mattcarter2017 |
cfcfd001a94c86c97af3b3fae03172ea1e993e13 | 4,282 | cc | C++ | wise/src/utils/WiseGTreader.cc | qwertyh26/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2017-12-07T05:33:01.000Z | 2021-02-20T21:15:48.000Z | wise/src/utils/WiseGTreader.cc | MultiCameraNetworks/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | wise/src/utils/WiseGTreader.cc | MultiCameraNetworks/wisemnet | 1d8269d141be255642ca36dbff8b594892085685 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 4 | 2018-09-17T14:01:11.000Z | 2020-05-28T15:47:01.000Z | #include <opencv.hpp>
#include <WiseGTreader.h>
constexpr unsigned int str2int(const char* str, int h = 0)
{
return !str[h] ? 5381 : (str2int(str, h+1) * 33) ^ str[h];
}
WiseGTreader::WiseGTreader()
{
strcpy(_filename, "");
_filePtr = NULL;
//initialize the map
target_detection_t det(-1,-1,-1,-1,... | 33.984127 | 141 | 0.539701 | qwertyh26 |
cfd0416c1619fe78dc5d963426658fda2f88db1a | 11,617 | hpp | C++ | Strings/trie.hpp | josecleiton/Estruturas-de-Dados | 5e6a0102a8301154b9d3abede5b37df6dcf2d668 | [
"MIT"
] | null | null | null | Strings/trie.hpp | josecleiton/Estruturas-de-Dados | 5e6a0102a8301154b9d3abede5b37df6dcf2d668 | [
"MIT"
] | null | null | null | Strings/trie.hpp | josecleiton/Estruturas-de-Dados | 5e6a0102a8301154b9d3abede5b37df6dcf2d668 | [
"MIT"
] | null | null | null | #ifndef _TRIE_HPP
#define _TRIE_HPP
#include <iostream>
#include <fstream>
#include <string>
#include <cstring>
#include <vector>
#include <set>
using namespace std;
namespace trie{
struct Node;
struct Key{
char data;
Node* ptr{};
unsigned count{};
bool endOfString{};
Key(){}
Key(char c): d... | 30.490814 | 123 | 0.462426 | josecleiton |
cfd778b7113c49b04e7d65c7d9f3464810d179b7 | 14,029 | cpp | C++ | src/simulator/physics/SimBot.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 1 | 2019-11-16T17:44:13.000Z | 2019-11-16T17:44:13.000Z | src/simulator/physics/SimBot.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | 51 | 2019-09-29T09:16:22.000Z | 2020-10-24T10:04:59.000Z | src/simulator/physics/SimBot.cpp | RoboTeamTwente/roboteam_mimir | fd62d50ca8dd3a6e35448e1d2eaca655546e5b21 | [
"MIT"
] | null | null | null | //
// Created by rolf on 13-10-19.
//
#include "SimBot.h"
#include "iostream"
#include "CollisionShared.h"
#include "SimBall.h"
btVector3 SimBot::position() const {
btTransform transform;
motionState->getWorldTransform(transform);
btVector3 origin=transform.getOrigin();
transform.setOrigin(btVector3(... | 44.39557 | 191 | 0.667118 | RoboTeamTwente |
cfdba771887319ac32b8da1025274a79c67f10bd | 4,764 | cpp | C++ | src/gamebase/src/impl/ui/SelectingWidget.cpp | TheMrButcher/opengl_lessons | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 1 | 2016-10-25T21:15:16.000Z | 2016-10-25T21:15:16.000Z | src/gamebase/src/impl/ui/SelectingWidget.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | 375 | 2016-06-04T11:27:40.000Z | 2019-04-14T17:11:09.000Z | src/gamebase/src/impl/ui/SelectingWidget.cpp | TheMrButcher/gamebase | 76ac96c45773a54a85d49c6994770b0c3496303f | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2018 Slavnejshev Filipp
* This file is licensed under the terms of the MIT license.
*/
#include <stdafx.h>
#include <gamebase/impl/ui/SelectingWidget.h>
#include <gamebase/impl/relbox/FixedBox.h>
#include <gamebase/impl/serial/ISerializer.h>
#include <gamebase/impl/serial/IDeserializer.h>
names... | 28.189349 | 93 | 0.660789 | TheMrButcher |
cfdc3901cb1d6fc443eb67b4574204e244b04ecc | 751 | cpp | C++ | main.cpp | MCLEANS/STM32F1_HC05_BLUETOOTH | 965a17e3efce9ab68db9286cc2a5a575410c0c9e | [
"MIT"
] | null | null | null | main.cpp | MCLEANS/STM32F1_HC05_BLUETOOTH | 965a17e3efce9ab68db9286cc2a5a575410c0c9e | [
"MIT"
] | null | null | null | main.cpp | MCLEANS/STM32F1_HC05_BLUETOOTH | 965a17e3efce9ab68db9286cc2a5a575410c0c9e | [
"MIT"
] | null | null | null | #include "stm32f10x.h"
#include "USART.h"
#define RX_PIN 10
#define TX_PIN 9
#define BAUDRATE 38400
custom_libraries::USART hc05(USART1,
GPIOA,
custom_libraries::_DMA1,
DMA1_Channel5,
RX_PIN,
... | 20.861111 | 52 | 0.519308 | MCLEANS |
cfde869cf25f7a6859e44c7762931e37e23a8db3 | 60,069 | cpp | C++ | src/lib/Graphics.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-10-10T20:44:49.000Z | 2022-02-09T09:08:04.000Z | src/lib/Graphics.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | null | null | null | src/lib/Graphics.cpp | keestux/tuxcap | 6298d14ad4dc57fd142d4c5f0ee2fa42cdd42bee | [
"MIT-0"
] | 2 | 2017-11-23T13:23:30.000Z | 2019-12-12T21:41:02.000Z | #include "Graphics.h"
#include "Image.h"
#include "Font.h"
#include "MemoryImage.h"
#include "DDImage.h"
#include "DDInterface.h"
#include "D3DInterface.h"
#if 0
#include "Debug.h"
#endif
#include "SWTri.h"
#include "Rect.h"
#include "SexyMatrix.h"
#include <math.h>
#include <assert.h>
#include <SDL.h>
using namespac... | 36.920098 | 212 | 0.62623 | keestux |
cfe3c749f610eb72f577a54b3455d5633957f23f | 1,152 | cpp | C++ | 经典算法练习题/序列化二叉树.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 382 | 2019-08-09T12:46:46.000Z | 2022-03-31T08:38:48.000Z | 经典算法练习题/序列化二叉树.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 1 | 2019-09-04T05:45:49.000Z | 2020-12-17T12:02:22.000Z | 经典算法练习题/序列化二叉树.cpp | anbingxu666/WangDao-DataStructure | 70dcd76c1e26852d659a01358ecb90b8eec2e2ba | [
"Apache-2.0"
] | 86 | 2019-09-04T05:44:34.000Z | 2022-03-08T05:06:00.000Z | //
// Created by newLion on 2020-06-10.
//
#include <cstdio>
#include <string>
using namespace std;
struct TreeNode {
int val;
struct TreeNode *left;
struct TreeNode *right;
TreeNode(int x) :
val(x), left(NULL), right(NULL) {
}
};
// 基于先序遍历
char *Serialize(TreeNode *root) {
if (!... | 18.580645 | 68 | 0.53559 | anbingxu666 |
cfe481ab4db95779f5be23d04c2e6f7f14d5985b | 673 | cpp | C++ | ABC/ABC116/B.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | 1 | 2021-06-01T17:13:44.000Z | 2021-06-01T17:13:44.000Z | ABC/ABC116/B.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | ABC/ABC116/B.cpp | rajyan/AtCoder | 2c1187994016d4c19b95489d2f2d2c0eab43dd8e | [
"MIT"
] | null | null | null | //#include <cstdio>
//#include <cmath>
//#include <iostream>
//#include <sstream>
//#include <string>
//#include <vector>
//#include <map>
//#include <queue>
//#include <algorithm>
//
//#ifdef _DEBUG
//#define DMP(x) cerr << #x << ": " << x << "\n"
//#else
//#define DMP(x) ((void)0)
//#endif
//
//const int MOD = 100000... | 16.414634 | 48 | 0.502229 | rajyan |
cfe5c0e63aae0370c48c61ee27ce88e420b06ae5 | 2,341 | cpp | C++ | LeetCode/Problems/Algorithms/#1526_MinimumNumberOfIncrementsOnSubarraysToFormATargetArray_sol5_divide_and_conquer_and_segment_tree_O(NlogN)_time_O(6N)_extra_space_300ms_105.3MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | 1 | 2022-01-26T14:50:07.000Z | 2022-01-26T14:50:07.000Z | LeetCode/Problems/Algorithms/#1526_MinimumNumberOfIncrementsOnSubarraysToFormATargetArray_sol5_divide_and_conquer_and_segment_tree_O(NlogN)_time_O(6N)_extra_space_300ms_105.3MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | LeetCode/Problems/Algorithms/#1526_MinimumNumberOfIncrementsOnSubarraysToFormATargetArray_sol5_divide_and_conquer_and_segment_tree_O(NlogN)_time_O(6N)_extra_space_300ms_105.3MB.cpp | Tudor67/Competitive-Programming | ae4dc6ed8bf76451775bf4f740c16394913f3ff1 | [
"MIT"
] | null | null | null | class SegmentTree{
private:
const int N;
const vector<int> A;
vector<int> tree;
void buildTree(int node, int l, int r){
if(l == r){
tree[node] = r;
}else{
int mid = (l + r) / 2;
buildTree(2 * node + 1, l, mid);
buildTree(2 ... | 29.2625 | 129 | 0.443827 | Tudor67 |
cfed8d404078a9f158d78a105aff9528b0219c39 | 36,750 | cpp | C++ | Chroma/Chroma/source/Editor/editor/ui/EditorUI.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | 13 | 2020-01-09T04:58:10.000Z | 2022-01-12T02:22:06.000Z | Chroma/Chroma/source/Editor/editor/ui/EditorUI.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | null | null | null | Chroma/Chroma/source/Editor/editor/ui/EditorUI.cpp | ChrisTwaitees/ChromaEngine | af00e536731c98ca4b28a980dfd9316d8853414e | [
"MIT"
] | 2 | 2020-11-25T12:16:26.000Z | 2021-05-10T22:17:32.000Z | #include "EditorUI.h"
#include <editor/ui/AnimationEditorUI.h>
#include <scene/SceneManager.h>
#include <physics/PhysicsEngine.h>
#include <render/Render.h>
#include <buffer/GBuffer.h>
#include <entity/Entity.h>
#include <ui/uicomponents/TransformGizmo.h>
#include <core/Application.h>
#include <event/MouseEvent.h>
... | 33.137962 | 217 | 0.706068 | ChrisTwaitees |
cfeff149cc98ef6dfba14e6e972cb9618e676450 | 348 | hpp | C++ | libs/fnd/string/include/bksge/fnd/string/wstring.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/string/include/bksge/fnd/string/wstring.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/string/include/bksge/fnd/string/wstring.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file wstring.hpp
*
* @brief wstring の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_STRING_WSTRING_HPP
#define BKSGE_FND_STRING_WSTRING_HPP
#include <bksge/fnd/string/basic_string.hpp>
namespace bksge
{
using wstring = bksge::basic_string<wchar_t>;
} // namespace bksge
#endif // BK... | 15.818182 | 46 | 0.701149 | myoukaku |
cffaa2524bbcd5da59b42b3ce98a8a8bc43e8910 | 11,629 | cc | C++ | src/core/workspace.cc | deurzen/kranewm | 06392903e53f8b846f9cd438db0fa6927f8d05b8 | [
"BSD-3-Clause"
] | 5 | 2019-07-04T20:15:54.000Z | 2020-11-25T21:15:38.000Z | src/core/workspace.cc | deurzen/kranewm | 06392903e53f8b846f9cd438db0fa6927f8d05b8 | [
"BSD-3-Clause"
] | 2 | 2019-11-19T11:15:58.000Z | 2020-10-01T23:48:38.000Z | src/core/workspace.cc | deurzen/kranewm | 06392903e53f8b846f9cd438db0fa6927f8d05b8 | [
"BSD-3-Clause"
] | null | null | null | #include "../winsys/util.hh"
#include "context.hh"
#include "cycle.t.hh"
#include "workspace.hh"
#include <algorithm>
#include <optional>
bool
Buffer::is_occupied() const
{
return m_client;
}
Client_ptr
Buffer::client() const
{
return m_client;
}
std::optional<winsys::Grip>
Buffer::grip() const
{
retur... | 18.227273 | 89 | 0.666351 | deurzen |
32095d2296a4d8074b9229d0a6297ed3e1d5d37c | 4,029 | cpp | C++ | app/src/main/cpp/audio/FileDataSource.cpp | ashfaq-opn/fast-mixer | b3d49037a50b079301ae21beed400d0ef9b1e0f5 | [
"MIT"
] | null | null | null | app/src/main/cpp/audio/FileDataSource.cpp | ashfaq-opn/fast-mixer | b3d49037a50b079301ae21beed400d0ef9b1e0f5 | [
"MIT"
] | null | null | null | app/src/main/cpp/audio/FileDataSource.cpp | ashfaq-opn/fast-mixer | b3d49037a50b079301ae21beed400d0ef9b1e0f5 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 33.02459 | 115 | 0.666667 | ashfaq-opn |
320bf55ef1c2e2fc61b1b6788fbc0fcbcf08084d | 17,785 | cpp | C++ | Source/WPEFramework/ControllerJsonRpc.cpp | goruklu/WPEFramework | 99fc7dd0732dbdd9c332df7ceccb625436ab7a4e | [
"Apache-2.0"
] | null | null | null | Source/WPEFramework/ControllerJsonRpc.cpp | goruklu/WPEFramework | 99fc7dd0732dbdd9c332df7ceccb625436ab7a4e | [
"Apache-2.0"
] | null | null | null | Source/WPEFramework/ControllerJsonRpc.cpp | goruklu/WPEFramework | 99fc7dd0732dbdd9c332df7ceccb625436ab7a4e | [
"Apache-2.0"
] | null | null | null |
#include "Module.h"
#include "json/JsonData_Controller.h"
#include "Controller.h"
namespace WPEFramework {
namespace Plugin {
using namespace JsonData::Controller;
// Registration
//
void Controller::RegisterAll()
{
Register<ActivateParamsInfo,void>(_T("activate"), &Controller::endpoi... | 36.821946 | 177 | 0.606579 | goruklu |
320e1f0ed0ddebd5e6bbaade56a854b33869a654 | 1,107 | cpp | C++ | test/cpp/misc_tests/is-local-address.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | test/cpp/misc_tests/is-local-address.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | test/cpp/misc_tests/is-local-address.cpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | // Copyright (c) 2008, 2009 João Abecasis
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <saga/saga/adaptors/utils/is_local_address.hpp>
#include <boost/assert.hpp>
#include <iostream>
#include <s... | 25.744186 | 80 | 0.606143 | saga-project |
321a796aa96f1db655c7b0e5b90098683df9b951 | 16,387 | cpp | C++ | lib/AST/TensorFlow.cpp | qNitr0gen/swift | 56f7601cd4f78333401419e070178c20e474a2b0 | [
"Apache-2.0"
] | null | null | null | lib/AST/TensorFlow.cpp | qNitr0gen/swift | 56f7601cd4f78333401419e070178c20e474a2b0 | [
"Apache-2.0"
] | null | null | null | lib/AST/TensorFlow.cpp | qNitr0gen/swift | 56f7601cd4f78333401419e070178c20e474a2b0 | [
"Apache-2.0"
] | null | null | null | //===--- TensorFlow.cpp - AST Level TensorFlow Support Logic --------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 36.174393 | 80 | 0.67401 | qNitr0gen |
3220f0e58527a5bd27d1181dd643b25797068dd9 | 3,088 | cc | C++ | examples/arnoldi/arnoldi.cc | scylla-zpp-blas/linear-algebra | 823fe4085fdac992ed9695416d9a38d2cf6908d8 | [
"Apache-2.0"
] | 2 | 2021-09-07T18:36:37.000Z | 2021-10-01T19:23:30.000Z | examples/arnoldi/arnoldi.cc | scylla-zpp-blas/linear-algebra | 823fe4085fdac992ed9695416d9a38d2cf6908d8 | [
"Apache-2.0"
] | 16 | 2020-12-19T18:10:34.000Z | 2021-06-14T18:06:17.000Z | examples/arnoldi/arnoldi.cc | scylla-zpp-blas/linear-algebra | 823fe4085fdac992ed9695416d9a38d2cf6908d8 | [
"Apache-2.0"
] | null | null | null | #include "arnoldi.hh"
void arnoldi::transfer_row_to_vector(std::shared_ptr<scylla_blas::matrix<float>> mat, scylla_blas::index_t row_index,
std::shared_ptr<scylla_blas::vector<float>> vec) {
LogTrace("Transfering row to vector.");
scylla_blas::vector_segment<float> row = ma... | 41.72973 | 146 | 0.583225 | scylla-zpp-blas |
3225f2c0d7b894691b002f6d542c15c3b5ba9908 | 1,223 | cpp | C++ | defaultconstdefargdiff.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | defaultconstdefargdiff.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | defaultconstdefargdiff.cpp | maansisrivastava/Practice-code-C- | 23f8c3798c15725bf14bb1215c01e7ad857a11b6 | [
"MIT"
] | null | null | null | #include<iostream.h>
#include<conio.h>
using namespace std;
class t
{
private :
int hr,min,sec;
public:
*t()
{
hr=0;
min=0;
sec=0;
... | 33.972222 | 107 | 0.152085 | maansisrivastava |
3229fae2457f49aed526a30084f4b103c2e87f20 | 988 | cc | C++ | src/processevents.cc | asveikau/dbg | dd4bd3809bd19c66aab2781a5071e9f986c9dac2 | [
"ISC"
] | 3 | 2019-03-21T03:38:38.000Z | 2019-03-22T16:39:43.000Z | src/processevents.cc | asveikau/dbg | dd4bd3809bd19c66aab2781a5071e9f986c9dac2 | [
"ISC"
] | null | null | null | src/processevents.cc | asveikau/dbg | dd4bd3809bd19c66aab2781a5071e9f986c9dac2 | [
"ISC"
] | 2 | 2019-03-21T05:55:51.000Z | 2019-03-21T13:33:22.000Z | /*
Copyright (C) 2019 Andrew Sveikauskas
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
*/
#include <dbg/process.h>
#include <common/misc.h>
#include <st... | 19 | 71 | 0.643725 | asveikau |
322a89afab5afc0a9bc9678fa6f1ead2e968e42b | 4,548 | hh | C++ | vm/vm/main/cached/NamedName-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 379 | 2015-01-02T20:27:33.000Z | 2022-03-26T23:18:17.000Z | vm/vm/main/cached/NamedName-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 81 | 2015-01-08T13:18:52.000Z | 2021-12-21T14:02:21.000Z | vm/vm/main/cached/NamedName-implem.hh | Ahzed11/mozart2 | 4806504b103e11be723e7813be8f69e4d85875cf | [
"BSD-2-Clause"
] | 75 | 2015-01-06T09:08:20.000Z | 2021-12-17T09:40:18.000Z |
void TypeInfoOf<NamedName>::printReprToStream(VM vm, RichNode self, std::ostream& out,
int depth, int width) const {
assert(self.is<NamedName>());
self.as<NamedName>().printReprToStream(vm, out, depth, width);
}
UnstableNode TypeInfoOf<NamedName>::serialize(VM vm, SE s, RichNode from) const {
... | 29.341935 | 132 | 0.720536 | Ahzed11 |
7a89ef59c4fd68379f7e3a9311d5f7f153ca481f | 536 | cpp | C++ | data-structure/L1-046/main.cpp | pipo-chen/play-ptat | d97d0bafcb6ef0a32f4969e0adffd400c673bf77 | [
"MIT"
] | 1 | 2021-05-26T23:14:01.000Z | 2021-05-26T23:14:01.000Z | data-structure/L1-046/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | data-structure/L1-046/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | //
// main.cpp
// L1-046
//
// Created by zihan on 2021/12/14.
// Copyright © 2021 xihe. All rights reserved.
//
#include <iostream>
using namespace::std;
int main(int argc, const char * argv[]) {
int n;
cin >> n;
//开始
long long mul = 11;
int count = 2;
while (mul % n != 0) {
mul =... | 16.75 | 47 | 0.458955 | pipo-chen |
7a8a3eef172f1c307c90eca759ab02d0d3d6d7df | 2,288 | cpp | C++ | dbms/src/Common/RedactHelpers.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 85 | 2022-03-25T09:03:16.000Z | 2022-03-25T09:45:03.000Z | dbms/src/Common/RedactHelpers.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 7 | 2022-03-25T08:59:10.000Z | 2022-03-25T09:40:13.000Z | dbms/src/Common/RedactHelpers.cpp | solotzg/tiflash | 66f45c76692e941bc845c01349ea89de0f2cc210 | [
"Apache-2.0"
] | 11 | 2022-03-25T09:15:36.000Z | 2022-03-25T09:45:07.000Z | // Copyright 2022 PingCAP, 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to i... | 28.962025 | 110 | 0.665647 | solotzg |
7a90c02f31db78598ce4ad14efaf576c987daa95 | 273 | hpp | C++ | src/afk/component/AnimationControlSystem.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | src/afk/component/AnimationControlSystem.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | src/afk/component/AnimationControlSystem.hpp | christocs/ModelAnimation | d32941dec8f2ef54e96086319a00ca5cf783e2fa | [
"0BSD"
] | null | null | null | #pragma once
#include <entt/entt.hpp>
namespace Afk {
class AnimationControlSystem {
public:
auto update(entt::registry *registry, double dt) -> void;
constexpr const auto static move_speed = 1.0f;
private:
double current_animation_time = 0.0;
};
}
| 17.0625 | 61 | 0.692308 | christocs |
7a90cb6762103c89783c82d10fb185d998adb94c | 1,567 | cpp | C++ | Hashing/SubstringConcatenation.cpp | ssokjin/Interview-Bit | 8714d3d627eb5875f49d205af779b59ca33ab4a3 | [
"MIT"
] | 513 | 2016-08-16T12:52:14.000Z | 2022-03-30T19:32:10.000Z | Hashing/SubstringConcatenation.cpp | CodeOctal/Interview-Bit | 88c021685d6cdef17906d077411ce34723363a08 | [
"MIT"
] | 25 | 2018-02-14T15:25:48.000Z | 2022-03-23T11:52:08.000Z | Hashing/SubstringConcatenation.cpp | CodeOctal/Interview-Bit | 88c021685d6cdef17906d077411ce34723363a08 | [
"MIT"
] | 505 | 2016-09-02T15:04:20.000Z | 2022-03-25T06:36:31.000Z | // https://www.interviewbit.com/problems/substring-concatenation/
vector<int> Solution::findSubstring(string A, const vector<string> &B) {
// Do not write main() function.
// Do not read input, instead use the arguments to the function.
// Do not print the output, instead return values as specified
// ... | 25.688525 | 93 | 0.440332 | ssokjin |
7a93ac2f955c3ad4e9557e3ee23f8aa5146fac32 | 1,950 | hh | C++ | server/src/reactor.hh | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 1 | 2016-01-02T14:39:07.000Z | 2016-01-02T14:39:07.000Z | server/src/reactor.hh | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 4 | 2019-12-20T06:13:24.000Z | 2021-07-03T16:28:18.000Z | server/src/reactor.hh | kongaraju/antkorp | 3453d543d659e3420d5bc4b536016bb1d097d7ec | [
"CC-BY-3.0",
"Apache-2.0"
] | 2 | 2015-09-17T16:40:10.000Z | 2016-11-17T15:56:42.000Z | /****************************************************************
* Copyright (c) Neptunium Pvt Ltd., 2014.
* Author: Neptunium Pvt Ltd..
*
* This unpublished material is proprietary to Neptunium Pvt Ltd..
* All rights reserved. The methods and techniques described herein
* are considered trade secrets and/or co... | 31.967213 | 82 | 0.688205 | kongaraju |
7a95852c9f51a28a0276469a384aad5deffbdf25 | 1,984 | cpp | C++ | DT3Core/Types/Utility/CommandResult.cpp | 9heart/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 3 | 2018-10-05T15:03:27.000Z | 2019-03-19T11:01:56.000Z | DT3Core/Types/Utility/CommandResult.cpp | pakoito/DT3 | 4ba8fd2af3aebb5c0d77036ac3941e83cd4d1c7e | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Types/Utility/CommandResult.cpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | //==============================================================================
///
/// File: CommandResult.cpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is subject to the terms and conditions defined in
/// file 'LICENSE.txt', which is part of this so... | 30.060606 | 98 | 0.402722 | 9heart |
7a9711ee832e29e70d533613c134f4272899858c | 2,036 | cpp | C++ | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredGeometryPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | 1 | 2022-03-03T14:30:32.000Z | 2022-03-03T14:30:32.000Z | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredGeometryPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | null | null | null | TinyEngine/src/graphics/renderer/renderpass/deferred/DeferredGeometryPass.cpp | Pierce-qiang/TinyEngine | 4f6b8ba2f1b0b9f76b3a9fcb83126144b07f07cc | [
"MIT"
] | null | null | null | #include "DeferredGeometryPass.h"
#include "../../../../platform/window/WindowManager.h"
namespace TEngine {
DeferredGeometryPass::DeferredGeometryPass(Scene* scene) :
RenderPass(scene)
{
// create shader
std::unordered_map<std::string, std::string> geometryShaderPaths;
geometryShaderPaths.insert({ "vertex","... | 29.941176 | 110 | 0.735756 | Pierce-qiang |
7a976d43e391847095ab45c26dce0ed63a10a0fa | 1,910 | cc | C++ | 2_theme/dynamic_progamming/knapsack.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 2_theme/dynamic_progamming/knapsack.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | 2_theme/dynamic_progamming/knapsack.cc | amdfansheng/alogrithm | b2e1dd4094b766895dda8c8fc2cbb2e37e6aa22d | [
"MIT"
] | null | null | null | #include <vector>
#include <cstdio>
#include <cstdlib>
using namespace std;
// 对于一组不同重量、不可分割的物品,我们需要选择一些装入背包,
// 在满足背包最大重量限制的前提下,背包中物品总重量的最大值是多少呢?
int knapsack1(const vector<int> &items, int items_size, int w)
{
vector<bool> states; states.resize(w + 1);
// base case
states[0] = true;
if (items[0] <=... | 27.285714 | 111 | 0.548168 | amdfansheng |
7a9902af789854e85e9595d390c7aa454377f37f | 1,625 | cpp | C++ | CLR/Tools/StubWinHal/corlib_native.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 529 | 2015-03-10T00:17:45.000Z | 2022-03-17T02:21:19.000Z | CLR/Tools/StubWinHal/corlib_native.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 495 | 2015-03-10T22:02:46.000Z | 2019-05-16T13:05:00.000Z | CLR/Tools/StubWinHal/corlib_native.cpp | PervasiveDigital/netmf-interpreter | 03d84fe76e0b666ebec62d17d69c55c45940bc40 | [
"Apache-2.0"
] | 332 | 2015-03-10T08:04:36.000Z | 2022-03-29T04:18:36.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) Microsoft Corporation. All rights reserved.
///////////////////////////////////////////////////////... | 26.209677 | 201 | 0.544615 | PervasiveDigital |
7aab5ab7d8233594f455080f71fb300d30eed28f | 376 | cpp | C++ | src/Main.cpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | src/Main.cpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | src/Main.cpp | AndrewVieira/Breakout | a4c54d2ceb6786b9ba5eca4f11fbef0a550b725d | [
"MIT"
] | null | null | null | #include "Breakout.hpp"
#include "MessageQueue.hpp"
#include "Framework.hpp"
#include "GameStateMachine.hpp"
MessageQueue gMessageQueue;
Framework gFramework;
GameStateMachine gGameStateMachine;
int main(int argc, char* argv[]) {
Breakout breakout;
if (breakout.startUp(argc, argv) == true)
breakout.m... | 20.888889 | 45 | 0.712766 | AndrewVieira |
7aaef5c3529870c4f2a779a77aa7f70a07c47999 | 496 | hpp | C++ | Include/SA/Render/Base/AGraphicDeviceInfos.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | 1 | 2022-01-20T23:17:18.000Z | 2022-01-20T23:17:18.000Z | Include/SA/Render/Base/AGraphicDeviceInfos.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | Include/SA/Render/Base/AGraphicDeviceInfos.hpp | SapphireSuite/Engine | f29821853aec6118508f31d3e063e83e603f52dd | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Sapphire's Suite. All Rights Reserved.
#pragma once
#ifndef SAPPHIRE_RENDER_AGRAPHIC_DEVICE_INFOS_GUARD
#define SAPPHIRE_RENDER_AGRAPHIC_DEVICE_INFOS_GUARD
#include <string>
#include <SA/Core/Types/Abstract.hpp>
namespace Sa
{
struct AGraphicDeviceInfos : public Abstract
{
uint32 ID = uin... | 19.076923 | 99 | 0.762097 | SapphireSuite |
7ab8b1a6accf47b38d2062716e37a1da8a90ffb1 | 11,017 | cpp | C++ | src/sample_app/app005_raytracing_in_one_weekend/pipeline_005.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null | src/sample_app/app005_raytracing_in_one_weekend/pipeline_005.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null | src/sample_app/app005_raytracing_in_one_weekend/pipeline_005.cpp | acuvue1102/si_graphics | f285a5358fdb8f5b831fba0d7cae423ee79b36c5 | [
"MIT"
] | null | null | null |
#include "pipeline_005.h"
#include <string>
#include <vector>
#include <si_base/core/core.h>
#include <si_app/file/path_storage.h>
#include <si_base/math/math.h>
#include <si_base/input/keyboard.h>
#include "raytracing_in_one_weekend.h"
#include "raytracing_the_next_week.h"
#define HIGH_RESOLUTION 0
#define MIDDLE_... | 27.068796 | 132 | 0.708904 | acuvue1102 |
7abb9b2a7d098bb66774ca7d633b9ea02af4daf8 | 1,907 | cpp | C++ | tools/ruleTree/InputChoice.cpp | riyadhariwal1/Gaming-Engine | 96cbebe52979d822828585911f8c1a67a639dc83 | [
"MIT"
] | null | null | null | tools/ruleTree/InputChoice.cpp | riyadhariwal1/Gaming-Engine | 96cbebe52979d822828585911f8c1a67a639dc83 | [
"MIT"
] | null | null | null | tools/ruleTree/InputChoice.cpp | riyadhariwal1/Gaming-Engine | 96cbebe52979d822828585911f8c1a67a639dc83 | [
"MIT"
] | null | null | null | #include "InputChoice.h"
#include "MessageParser.h"
#include <iostream>
InputChoiceRule::InputChoiceRule(string player, string prompt, string choices, string result, int timeout)
{
// send promp to a player with list of choices and
// save choice in given variable "result"
this->prompt = prompt;
this->to = to;
... | 28.893939 | 106 | 0.70215 | riyadhariwal1 |
7abecc057d201ecbe37fc77f03f6fbfad4774125 | 4,386 | cc | C++ | Project_3/main.cc | danielrubinov97/Sunday_Academy_End_Of_Semester_Quiz | 4356af06edf9d56d39c59ee4564c2ca2588d8852 | [
"MIT"
] | null | null | null | Project_3/main.cc | danielrubinov97/Sunday_Academy_End_Of_Semester_Quiz | 4356af06edf9d56d39c59ee4564c2ca2588d8852 | [
"MIT"
] | null | null | null | Project_3/main.cc | danielrubinov97/Sunday_Academy_End_Of_Semester_Quiz | 4356af06edf9d56d39c59ee4564c2ca2588d8852 | [
"MIT"
] | null | null | null | //Using the code from Project_2 we will now learn about if statements
#include<iostream>
using namespace std;
int main(){
//Here we declare the variables, give them names and define their type. These variables are only integers. Which means they cannot be decimal numbers.
int hoursYouGoToSchool;
int hoursYouSleep... | 38.814159 | 217 | 0.660283 | danielrubinov97 |
7abf2a52e297b67ecf99a8bc33d4c672f37c517e | 2,280 | hpp | C++ | src/mfx/ControlSource.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 69 | 2017-01-17T13:17:31.000Z | 2022-03-01T14:56:32.000Z | src/mfx/ControlSource.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 1 | 2020-11-03T14:52:45.000Z | 2020-12-01T20:31:15.000Z | src/mfx/ControlSource.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | 8 | 2017-02-08T13:30:42.000Z | 2021-12-09T08:43:09.000Z | /*****************************************************************************
ControlSource.hpp
Author: Laurent de Soras, 2016
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under t... | 18.095238 | 78 | 0.532018 | mikelange49 |
7abffb3425645dff4dd918c596469ad6ce633966 | 4,206 | cpp | C++ | moai/src/moaicore/MOAIXmlParser.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAIXmlParser.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | moai/src/moaicore/MOAIXmlParser.cpp | jjimenezg93/ai-pathfinding | e32ae8be30d3df21c7e64be987134049b585f1e6 | [
"MIT"
] | null | null | null | // Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
#include "pch.h"
#include <tinyxml.h>
#include <moaicore/MOAILogMessages.h>
#include <moaicore/MOAIXmlParser.h>
//================================================================//
// local
//====================================... | 27.854305 | 108 | 0.533761 | jjimenezg93 |
7ac7d076fb4260c5b7682ce969d66c8e05fc4905 | 703 | cpp | C++ | map.cpp | frcsdes/cpp-experiments | 8e77b9041b206f5e90700621de77d65cd07f4907 | [
"MIT"
] | null | null | null | map.cpp | frcsdes/cpp-experiments | 8e77b9041b206f5e90700621de77d65cd07f4907 | [
"MIT"
] | null | null | null | map.cpp | frcsdes/cpp-experiments | 8e77b9041b206f5e90700621de77d65cd07f4907 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <string>
template<std::size_t N>
struct KeyOrValue {
constexpr KeyOrValue(char const (&key)[N]) {
std::copy_n(key, N, buffer);
}
constexpr KeyOrValue(char value) {
*buffer = value;
}
void print() const {
std::cout << buffe... | 15.977273 | 49 | 0.564723 | frcsdes |
7acc5460ef330e2f0bcd24927bb1c41b57d9ac80 | 996 | cpp | C++ | Source/Services/Presence/WinRT/PresenceRecord_WinRT.cpp | claytonv/xbox-live-api | d8db86cf930085c7547ae95999c9b301506de343 | [
"MIT"
] | 3 | 2020-07-15T17:50:24.000Z | 2021-11-17T11:15:11.000Z | Source/Services/Presence/WinRT/PresenceRecord_WinRT.cpp | CameronGoodwin/xbox-live-api | ee0c3ee2413f2fed6a373df4b26035792e922fe2 | [
"MIT"
] | null | null | null | Source/Services/Presence/WinRT/PresenceRecord_WinRT.cpp | CameronGoodwin/xbox-live-api | ee0c3ee2413f2fed6a373df4b26035792e922fe2 | [
"MIT"
] | 1 | 2021-02-01T01:56:08.000Z | 2021-02-01T01:56:08.000Z | // Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "PresenceRecord_WinRT.h"
#include "Utils_WinRT.h"
using namespace Microsoft::Xbox::Services::System;
NAMESPACE_MICROSOFT_XBOX_SERVICES_PRESENCE_BEGIN
... | 31.125 | 151 | 0.793173 | claytonv |
7ad0e208b267c5a1ce6a1aa37db8898061128416 | 10,503 | cpp | C++ | JTTspTrc/ApiHook.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 1 | 2021-02-08T20:31:46.000Z | 2021-02-08T20:31:46.000Z | JTTspTrc/ApiHook.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | null | null | null | JTTspTrc/ApiHook.cpp | markjulmar/tsplib3 | f58a281ce43f4d57ef10e24d306fd46e6febcc41 | [
"MIT"
] | 4 | 2019-11-14T03:47:33.000Z | 2021-03-08T01:18:05.000Z | /******************************************************************************/
//
// APIHOOK.CPP - Class for hooking Win32 APIs in Winows 95 or NT.
//
// Copyright (C) 1998 M... | 32.719626 | 105 | 0.590974 | markjulmar |
7ad321aec0f8f55145f3af61c6147e5d4b7003f5 | 1,542 | cpp | C++ | test/communityserver.test/MockCommunityLoginServerProxy.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/communityserver.test/MockCommunityLoginServerProxy.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | test/communityserver.test/MockCommunityLoginServerProxy.cpp | mark-online/server | ca24898e2e5a9ccbaa11ef1ade57bb25260b717f | [
"MIT"
] | null | null | null | #include "CommunityServerTestPCH.h"
#include "MockCommunityLoginServerProxy.h"
#include "CommunityServer/user/CommunityUserManager.h"
// = communityserver::CommunityLoginServerProxy overriding
MockCommunityLoginServerProxy::MockCommunityLoginServerProxy() :
communityserver::CommunityLoginServerProxy(sne::server::Ser... | 26.586207 | 92 | 0.764591 | mark-online |
7ad42afaa7ef2b751ebd0f14d1f47e630b0a8f09 | 1,483 | cpp | C++ | examples/google-code-jam/cjoa/A.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/cjoa/A.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | examples/google-code-jam/cjoa/A.cpp | rbenic-fer/progauthfp | d0fd96c31ab0aab1a9acdcb7c75f2b430f51c675 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <cassert>
using namespace std;
#define SZ(a) int((a).size())
#define REP(i,n) for(int i=0,_n=(n);i<_n;++i)
#define FOR(i,a,b) for(int i=(a),_b=(b);i<=_b;++i)
typedef vector<int> VI;
typedef vector<VI> VVI;
int R, C;
char B[104][104];
string dir = "... | 19.012821 | 60 | 0.422792 | rbenic-fer |
7adbda21a07cf3a66395db415cf436bbc19bd36e | 22,208 | cpp | C++ | hooks/orders/building_making/building_terran.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/orders/building_making/building_terran.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | hooks/orders/building_making/building_terran.cpp | Lucifirius/yzoriansteampunk | 7b629ffd9740f0ff3db1fb8cffe07f45b7528854 | [
"Unlicense"
] | null | null | null | #include "building_terran.h"
#include <SCBW/api.h>
#ifndef FALSE
#define FALSE 0
#endif
#ifndef TRUE
#define TRUE 1
#endif
//helper functions def
namespace {
bool isDistanceGreaterThanHaltDistance(CUnit* unit, int x, int y, u32 distance); //01240
void fixTargetLocation(Point16* coords, u32 unitId);... | 20.87218 | 111 | 0.638238 | Lucifirius |
7adc2031f28b96879a86c2302f66a0956fb1ca61 | 1,505 | cpp | C++ | Plugins/TeamCity/Source/TeamCityEditor/Private/TeamCityWebAPI.cpp | YAGER-Development/Unreal-Engine-TeamCity-Plugin | cc76455aa27850d09c5627e536825e4fee6417f8 | [
"MIT"
] | null | null | null | Plugins/TeamCity/Source/TeamCityEditor/Private/TeamCityWebAPI.cpp | YAGER-Development/Unreal-Engine-TeamCity-Plugin | cc76455aa27850d09c5627e536825e4fee6417f8 | [
"MIT"
] | null | null | null | Plugins/TeamCity/Source/TeamCityEditor/Private/TeamCityWebAPI.cpp | YAGER-Development/Unreal-Engine-TeamCity-Plugin | cc76455aa27850d09c5627e536825e4fee6417f8 | [
"MIT"
] | null | null | null | #include "TeamCityWebAPI.h"
FString FTeamCityWebAPI::Base64Encode(const FString& Source)
{
TArray<uint8> ByteArray;
FTCHARToUTF8 StringSrc = FTCHARToUTF8(Source.GetCharArray().GetData());
ByteArray.Append((uint8*)StringSrc.Get(), StringSrc.Length());
return FBase64::Encode(ByteArray);
}
static FString TeamCityCS... | 30.714286 | 104 | 0.772757 | YAGER-Development |
7ae2ce3a88b9f5611a9be980b7294545bbe72e6c | 824 | hpp | C++ | OpenGL-Cpp-Mac/Cpp/Items/ItemTorus.hpp | AivanF/OpenGL-Cpp-ObjC-Mac | ef42b95a8f08911c145770cac1e970c55f071ae1 | [
"Cube"
] | 4 | 2018-05-02T02:11:23.000Z | 2021-08-08T22:07:11.000Z | OpenGL-Cpp-Mac/Cpp/Items/ItemTorus.hpp | AivanF/OpenGL-Cpp-ObjC-Mac | ef42b95a8f08911c145770cac1e970c55f071ae1 | [
"Cube"
] | null | null | null | OpenGL-Cpp-Mac/Cpp/Items/ItemTorus.hpp | AivanF/OpenGL-Cpp-ObjC-Mac | ef42b95a8f08911c145770cac1e970c55f071ae1 | [
"Cube"
] | 1 | 2019-05-13T14:39:24.000Z | 2019-05-13T14:39:24.000Z | //
// ItemTorus.hpp
// OpenGL-Cpp-Mac
//
// Created by Barsehv Ivan on 21/02/2018.
// Copyright © 2018 AivanF. All rights reserved.
//
#ifndef ItemTorus_hpp
#define ItemTorus_hpp
#include <vector>
#include "Item.hpp"
/// Box with the same texture on each side
class ItemTorus : public Item {
vector<float> v_p... | 24.235294 | 88 | 0.669903 | AivanF |
7ae5b5fc40633f8c39601a15c54e20852c4720cf | 23 | cpp | C++ | ZelECSTutorial/entities.cpp | NVriezen/ZelECSTutorial | c48bdae5dc4f8ce9a1d1a7b4085be189aeb0726d | [
"Apache-2.0"
] | null | null | null | ZelECSTutorial/entities.cpp | NVriezen/ZelECSTutorial | c48bdae5dc4f8ce9a1d1a7b4085be189aeb0726d | [
"Apache-2.0"
] | null | null | null | ZelECSTutorial/entities.cpp | NVriezen/ZelECSTutorial | c48bdae5dc4f8ce9a1d1a7b4085be189aeb0726d | [
"Apache-2.0"
] | null | null | null | #include "entities.h"
| 7.666667 | 21 | 0.695652 | NVriezen |
7ae9ca7bc38479f49c019a6075ffbfad6c91476f | 18,465 | cc | C++ | lualib-src/lua-socket.cc | bbxionglei/snownet | ddf201df6b0460063715bbff06fcff5c97732ba9 | [
"MIT"
] | 1 | 2019-02-25T11:16:39.000Z | 2019-02-25T11:16:39.000Z | lualib-src/lua-socket.cc | bbxionglei/snownet | ddf201df6b0460063715bbff06fcff5c97732ba9 | [
"MIT"
] | null | null | null | lualib-src/lua-socket.cc | bbxionglei/snownet | ddf201df6b0460063715bbff06fcff5c97732ba9 | [
"MIT"
] | null | null | null | #define LUA_LIB
#include "snownet_malloc.h"
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <assert.h>
#include <lua.hpp>
#ifndef _WIN32
#include <sys/socket.h>
#include <arpa/inet.h>
#else
#include <WinSock2.h>
#include <Ws2tcpip.h>
#endif
#include "snownet_socket.h"
#de... | 23.139098 | 112 | 0.657893 | bbxionglei |
7af0325f0392b86c8f9da7b4798dfb153b0ed58d | 1,057 | cpp | C++ | src/MacierzOb.cpp | kacpermejs/Dron | 287dfb6c7f93799f166b6733d827f7631902b65d | [
"MIT"
] | null | null | null | src/MacierzOb.cpp | kacpermejs/Dron | 287dfb6c7f93799f166b6733d827f7631902b65d | [
"MIT"
] | null | null | null | src/MacierzOb.cpp | kacpermejs/Dron | 287dfb6c7f93799f166b6733d827f7631902b65d | [
"MIT"
] | null | null | null | #include "MacierzOb.hh"
void MacierzOb::UstawMacierzOb(double kat, char kierunek)
{
switch (kierunek)
{
case 'x':
UstawMacierz(Macierz3D
{
{1,0,0},
{0,cos(kat*PI/180),sin(kat*PI/180)},
{0,-sin(kat*PI/180),cos(kat*PI/180)}
... | 25.780488 | 57 | 0.368969 | kacpermejs |
7af82baff15d2feeed5234ae74cfc4e9d624a2d3 | 435 | cpp | C++ | src/service.cpp | inetic/asio-utp | 3c058a9c7d2ae934764d0aaa72e960870e39950a | [
"BSL-1.0"
] | 28 | 2018-05-23T05:53:20.000Z | 2020-09-04T22:13:20.000Z | src/service.cpp | inetic/asio-utp | 3c058a9c7d2ae934764d0aaa72e960870e39950a | [
"BSL-1.0"
] | 5 | 2019-01-03T10:09:20.000Z | 2020-06-11T08:56:39.000Z | src/service.cpp | equalitie/asio-utp | 3c058a9c7d2ae934764d0aaa72e960870e39950a | [
"BSL-1.0"
] | 1 | 2019-05-19T18:25:16.000Z | 2019-05-19T18:25:16.000Z | #include "service.hpp"
using namespace asio_utp;
asio::io_context::id service::id;
std::shared_ptr<::asio_utp::context>
service::maybe_create_context(std::shared_ptr<udp_multiplexer_impl> m)
{
auto i = _contexts.find(m->local_endpoint());
if (i != _contexts.end()) return i->second.lock();
auto ctx = st... | 21.75 | 70 | 0.689655 | inetic |
7afd34d782ed5cd9d087c63592aed3f7c1ee161e | 1,187 | hpp | C++ | src/core/log_thread.hpp | dantros/folk-engine | 2cda605a9d412a81214edeeb839c75785f0aae47 | [
"MIT"
] | 1 | 2022-03-05T03:04:35.000Z | 2022-03-05T03:04:35.000Z | src/core/log_thread.hpp | dantros/folk-engine | 2cda605a9d412a81214edeeb839c75785f0aae47 | [
"MIT"
] | null | null | null | src/core/log_thread.hpp | dantros/folk-engine | 2cda605a9d412a81214edeeb839c75785f0aae47 | [
"MIT"
] | null | null | null | //
// Created by sergio on 26-12-21.
//
#ifndef SRC_CORE__LOG_THREAD_HPP
#define SRC_CORE__LOG_THREAD_HPP
#include "folk/log.hpp"
#include "folk/error.hpp"
#include <mutex>
#include <thread>
#include <condition_variable>
#include <sstream>
namespace Folk {
/// Contains the log's dynamically allocated data.
... | 19.459016 | 65 | 0.600674 | dantros |
7afe79606f673ed23a5b6e7419c4764e0b716e03 | 9,451 | cpp | C++ | factory/factory.cpp | artavazdtonoyan/argon2 | 685e5f4eb9f6453c08b1ea71a98873c7f4dee5c5 | [
"BSD-3-Clause"
] | 75 | 2017-07-29T10:09:28.000Z | 2022-03-16T21:13:08.000Z | factory/factory.cpp | artavazdtonoyan/argon2 | 685e5f4eb9f6453c08b1ea71a98873c7f4dee5c5 | [
"BSD-3-Clause"
] | 1 | 2020-03-07T03:24:46.000Z | 2020-05-03T14:26:01.000Z | factory/factory.cpp | max619/argon2 | c31f3b2297216663af4823eef8e22776e0f6a96a | [
"BSD-3-Clause"
] | 13 | 2017-08-09T19:49:39.000Z | 2021-11-02T21:58:29.000Z | #include <cstring>
#include "argonishche.h"
#include "cpuid/cpuid.h"
#include "internal/proxies/ref/proxy_ref.h"
#include "internal/proxies/sse2/proxy_sse2.h"
#include "internal/proxies/ssse3/proxy_ssse3.h"
#include "internal/proxies/sse41/proxy_sse41.h"
#include "internal/proxies/avx2/proxy_avx2.h"
namespace argoni... | 47.492462 | 121 | 0.585335 | artavazdtonoyan |
bb110137b0a492bf2d2ac97462321bebb49ecd73 | 4,644 | cpp | C++ | src/Shelly25/shelly_init_components.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | 2 | 2021-11-16T14:29:42.000Z | 2022-02-26T08:58:38.000Z | src/Shelly25/shelly_init_components.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | null | null | null | src/Shelly25/shelly_init_components.cpp | timoschilling/shelly-homekit | c8923b3f82608a725e14734929d6b37b9472e96f | [
"Apache-2.0"
] | 2 | 2021-03-08T13:07:38.000Z | 2022-03-03T14:26:30.000Z | /*
* Copyright (c) Shelly-HomeKit Contributors
* All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless re... | 42.218182 | 79 | 0.645564 | timoschilling |
bb1c246bdaf74603e98eaf13b0debbac38a6a396 | 15,164 | cpp | C++ | VEML7700_functions.cpp | JLDR/MultiparameterProbe | 1df24d0bccbf6373f7f3a5cfed2d8e2fbc0df290 | [
"MIT"
] | null | null | null | VEML7700_functions.cpp | JLDR/MultiparameterProbe | 1df24d0bccbf6373f7f3a5cfed2d8e2fbc0df290 | [
"MIT"
] | null | null | null | VEML7700_functions.cpp | JLDR/MultiparameterProbe | 1df24d0bccbf6373f7f3a5cfed2d8e2fbc0df290 | [
"MIT"
] | null | null | null |
#include "veml7700_functions.h"
// Local variables used by this module
uint16_t NbrCounts; // luminosity probe VEML7700 (uint16_t Adafruit_VEML7700::readALS() { return ALS_Data->read(); })
Gain_t VEML_Gain; // enumeration which depends fro... | 43.700288 | 176 | 0.525059 | JLDR |
bb1c3556a9ee28db5c6bc3a030b0f7322bc2f611 | 572 | cpp | C++ | common/readfile.cpp | karl97/Datorgrafik | 2b1e197ddde469b994de0be9df9979d723779bb0 | [
"Apache-2.0"
] | 9 | 2018-05-10T18:40:54.000Z | 2021-08-10T08:05:10.000Z | common/readfile.cpp | karl97/Datorgrafik | 2b1e197ddde469b994de0be9df9979d723779bb0 | [
"Apache-2.0"
] | 2 | 2017-04-24T15:50:00.000Z | 2019-02-14T16:14:33.000Z | common/readfile.cpp | karl97/Datorgrafik | 2b1e197ddde469b994de0be9df9979d723779bb0 | [
"Apache-2.0"
] | 4 | 2017-06-24T16:39:45.000Z | 2021-08-10T08:05:11.000Z | #include "readfile.hpp"
#include <vector>
#include <algorithm>
#include <iostream>
#include <fstream>
std::string readFile(const char *filePath) {
std::string content;
std::ifstream fileStream(filePath, std::ios::in);
if(!fileStream.is_open()) {
std::cerr << "Could not read file " << filePath << ... | 22.88 | 97 | 0.59965 | karl97 |
bb271ec26e1f6ff1f086f909ec4e2d821cbe5d81 | 271 | cpp | C++ | Baekjoon/5063.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5063.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | Baekjoon/5063.cpp | Twinparadox/AlgorithmProblem | 0190d17555306600cfd439ad5d02a77e663c9a4e | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(void)
{
int n, r, e, c;
cin >> n;
while (n--)
{
cin >> r >> e >> c;
if (r == (e - c))
cout << "does not matter\n";
else if (r > (e - c))
cout << "do not advertise\n";
else
cout << "advertise\n";
}
}
| 15.055556 | 32 | 0.498155 | Twinparadox |
bb2a0fa6625c5aeff4a49db7eb1d92266f1d4b12 | 19,083 | cpp | C++ | contact/ContactTreeWidget.cpp | whitexwc15184/WhitecoinLightWallet | cfc458faa1695d90d2210903425377612113c064 | [
"MIT"
] | null | null | null | contact/ContactTreeWidget.cpp | whitexwc15184/WhitecoinLightWallet | cfc458faa1695d90d2210903425377612113c064 | [
"MIT"
] | 3 | 2020-03-16T05:23:24.000Z | 2020-03-31T03:29:39.000Z | contact/ContactTreeWidget.cpp | whitexwc15184/WhitecoinLightWallet | cfc458faa1695d90d2210903425377612113c064 | [
"MIT"
] | 1 | 2020-02-16T00:28:39.000Z | 2020-02-16T00:28:39.000Z | #include "ContactTreeWidget.h"
#include "ui_ContactTreeWidget.h"
#include <QScrollBar>
#include <QTreeWidgetItem>
#include <QMenu>
#include <QLineEdit>
#include <QContextMenuEvent>
#include <QMessageBox>
#include <QDebug>
#include <QPainter>
#include "ContactDataUtil.h"
#include "extra/style.h"
Q_DECLARE_METATYPE(st... | 32.845095 | 140 | 0.671488 | whitexwc15184 |
7d6adf56f8f866d8e75373e4669ffb751929618d | 214 | hpp | C++ | spec_farming/CfgFunctions.hpp | specop0/arma_scripts | 88a268b9e8a3f7f4f90889876296a1773fb92bd2 | [
"ISC"
] | 2 | 2017-03-24T14:49:26.000Z | 2017-12-21T23:48:54.000Z | spec_farming/CfgFunctions.hpp | specop0/arma_scripts | 88a268b9e8a3f7f4f90889876296a1773fb92bd2 | [
"ISC"
] | 1 | 2019-04-05T17:30:29.000Z | 2019-04-05T17:30:29.000Z | spec_farming/CfgFunctions.hpp | specop0/arma_scripts | 88a268b9e8a3f7f4f90889876296a1773fb92bd2 | [
"ISC"
] | 3 | 2016-04-20T11:45:11.000Z | 2018-09-26T18:09:24.000Z | class spec_farming {
tag = "Spec_farming";
class init {
file="spec_farming";
class addFarmingWaypoint {};
class farmingAction {};
class postInit { postInit = 1; };
};
};
| 21.4 | 41 | 0.560748 | specop0 |
7d6c28e0bf930ee0b89cca0c423e149d9c9e3192 | 875 | cc | C++ | C++/Observer Design Pattern/classes.cc | zgrw/zgrw.org-Lectures | 08828004da65a573856593e97733df34cfb442f6 | [
"MIT"
] | 1 | 2017-04-27T07:34:45.000Z | 2017-04-27T07:34:45.000Z | C++/Observer Design Pattern/classes.cc | zgrw/zgrw.org-Lectures | 08828004da65a573856593e97733df34cfb442f6 | [
"MIT"
] | null | null | null | C++/Observer Design Pattern/classes.cc | zgrw/zgrw.org-Lectures | 08828004da65a573856593e97733df34cfb442f6 | [
"MIT"
] | null | null | null | #include <iostream>
#include "classes.h"
using namespace std;
Subject::Subject()
:val(1)
{
}
void Subject::setVal(int v)
{
val = v;
notify();
}
int Subject::getVal()
{
return val;
}
void Subject::subscribe(Observer * o)
{
observers.push_back(o);
}
void Subject::notify()
{
for(auto o : observers)
{
o->up... | 12.323944 | 51 | 0.642286 | zgrw |
7d7071a4586d5602a5ec0a2cb25abd1756077d9d | 7,966 | cpp | C++ | SeqCALC/demo/test1.cpp | Mingrui-Yu/calc | 7e73507ff6e8c12a1c2640c34316f4923da7b7e7 | [
"BSD-3-Clause"
] | 1 | 2020-02-29T15:33:00.000Z | 2020-02-29T15:33:00.000Z | SeqCALC/demo/test1.cpp | Mingrui-Yu/calc | 7e73507ff6e8c12a1c2640c34316f4923da7b7e7 | [
"BSD-3-Clause"
] | null | null | null | SeqCALC/demo/test1.cpp | Mingrui-Yu/calc | 7e73507ff6e8c12a1c2640c34316f4923da7b7e7 | [
"BSD-3-Clause"
] | null | null | null | // 保存 KITTI00, KITTI05 上的回环检测的 PR
#include "deeplcd.h"
#include <iostream>
#include <fstream>
#include <chrono>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
using namespace std;
typedef Eigen::Matrix<double, 3, 3> Mat33;
typedef Eigen::Matrix<double, 3, 1> Vec3;
void LoadImages(co... | 34.786026 | 125 | 0.53402 | Mingrui-Yu |
7d7093903ed74efbc6e2233d8afa17dd48f12acd | 918 | cpp | C++ | game/src/param.cpp | MasahiroOgawa/mopf | 3547a481fabbff5ac6cea529531af7c6bdee3005 | [
"MIT"
] | null | null | null | game/src/param.cpp | MasahiroOgawa/mopf | 3547a481fabbff5ac6cea529531af7c6bdee3005 | [
"MIT"
] | null | null | null | game/src/param.cpp | MasahiroOgawa/mopf | 3547a481fabbff5ac6cea529531af7c6bdee3005 | [
"MIT"
] | null | null | null | #include "param.h"
#include <fstream>
#include <sstream> // for istringstream
using namespace std;
namespace mo {
namespace game {
Param::Param(const std::string &prm_fname) {
// read param
ifstream fi(prm_fname);
if (!fi)
throw runtime_error("input parameter file could not open.");
constexpr streamsize... | 22.95 | 76 | 0.657952 | MasahiroOgawa |
7d79462067537a217442aca2d96c4f6bcda7eefb | 3,878 | cpp | C++ | tools/unittests/StringRefTest.cpp | astrotycoon/bold-utils | 735924dbecc710de04dff891fa8da5e7f0cb3b69 | [
"BSD-3-Clause"
] | null | null | null | tools/unittests/StringRefTest.cpp | astrotycoon/bold-utils | 735924dbecc710de04dff891fa8da5e7f0cb3b69 | [
"BSD-3-Clause"
] | null | null | null | tools/unittests/StringRefTest.cpp | astrotycoon/bold-utils | 735924dbecc710de04dff891fa8da5e7f0cb3b69 | [
"BSD-3-Clause"
] | null | null | null | //===- StringRefTest.cpp --------------------------------------------------===//
//
// The Bold Project
//
// This file is distributed under the New BSD License.
// See LICENSE for details.
//
//===----------------------------------------------------------------------===//
#include "String... | 31.024 | 80 | 0.589737 | astrotycoon |
7d8248fecde809d791064cbd75cf0cf21247055f | 3,412 | cpp | C++ | test/test_in_sub.cpp | Marcin648/m68k-emu | 2c99150d1a241c785b6bf32b4103e25a9ba9e289 | [
"MIT"
] | 1 | 2022-01-11T13:18:22.000Z | 2022-01-11T13:18:22.000Z | test/test_in_sub.cpp | Marcin648/m68k-emu | 2c99150d1a241c785b6bf32b4103e25a9ba9e289 | [
"MIT"
] | null | null | null | test/test_in_sub.cpp | Marcin648/m68k-emu | 2c99150d1a241c785b6bf32b4103e25a9ba9e289 | [
"MIT"
] | null | null | null | #include "tests_functions.hpp"
#include "m68k.hpp"
#include "memory.hpp"
#include "helpers.hpp"
using namespace M68K;
int main(int, char**){
TEST_NAME("Instruction Sub");
{
TEST_LABEL("sub.w #$1111, D1");
auto instruction = INSTRUCTION::Sub::create(0x927C); // sub.w #$1111, D1
CP... | 37.911111 | 80 | 0.649766 | Marcin648 |
7d8471f67f63542e1b257ead4931f312a2e76f4e | 3,132 | cpp | C++ | source/backend/cuda/core/BufferPool.cpp | zjd1988/mnn_cuda | d487534a2f6ffb0b98e3070a74682348e46ec4d1 | [
"Apache-2.0"
] | 1 | 2020-10-04T04:40:38.000Z | 2020-10-04T04:40:38.000Z | source/backend/cuda/core/BufferPool.cpp | zjd1988/mnn_cuda | d487534a2f6ffb0b98e3070a74682348e46ec4d1 | [
"Apache-2.0"
] | null | null | null | source/backend/cuda/core/BufferPool.cpp | zjd1988/mnn_cuda | d487534a2f6ffb0b98e3070a74682348e46ec4d1 | [
"Apache-2.0"
] | null | null | null | //
// BufferPool.cpp
// MNN
//
// Created by MNN on 2019/02/28.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include "backend/cuda/core/BufferPool.hpp"
namespace MNN {
namespace CUDA {
void* BufferPool::alloc(int size, bool seperate) {
if (!seperate) {
auto iter = mFreeList.lower_bound(size... | 28.733945 | 84 | 0.563218 | zjd1988 |
7d84a0093e7b9bce5165c69b4c9795652380da66 | 1,059 | cpp | C++ | LeetCode/ThousandTwo/1413-min_val_get_positive_step_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1413-min_val_get_positive_step_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | LeetCode/ThousandTwo/1413-min_val_get_positive_step_sum.cpp | Ginkgo-Biloba/Cpp-Repo1-VS | 231c68a055e6bf69a3f7c224e7c0182b67ce5b67 | [
"Apache-2.0"
] | null | null | null | #include "leetcode.hpp"
/* 1413. 逐步求和得到正数的最小值
给你一个整数数组 nums 。
你可以选定任意的 正数 startValue 作为初始值。
你需要从左到右遍历 nums 数组,并将 startValue 依次累加上 nums 数组中的值。
请你在确保累加和始终大于等于 1 的前提下,选出一个最小的 正数 作为 startValue 。
示例 1:
输入:nums = [-3,2,-3,4,2]
输出:5
解释:如果你选择 startValue = 4,在第三次累加时,和小于 1 。
累加求和
startValue = 4 | startValue = 5 | nums
(4... | 16.546875 | 49 | 0.515581 | Ginkgo-Biloba |
7d8634da8f96112ff9cdd76f1a21ca879499e6a4 | 26,235 | cpp | C++ | lib/pancalib/varianttype.cpp | rdhafidh/PancasilaScriptLang | 9c3445fc0f0adbf83ddc619fa62c8a96f14983dc | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/pancalib/varianttype.cpp | rdhafidh/PancasilaScriptLang | 9c3445fc0f0adbf83ddc619fa62c8a96f14983dc | [
"Apache-2.0",
"MIT"
] | null | null | null | lib/pancalib/varianttype.cpp | rdhafidh/PancasilaScriptLang | 9c3445fc0f0adbf83ddc619fa62c8a96f14983dc | [
"Apache-2.0",
"MIT"
] | null | null | null | #include "varianttype.h"
#include <cfenv>
#include <cmath>
val::VariantType::VariantType() : type(TypeData::TYPE_IS_UNDEFINED) {
intVar();
vardata = std::monostate();
}
namespace val {
VariantType::VariantType(bool e) {
vardata = (int64_t)e;
type = TypeData::TYPE_IS_BOOL;
intVar();
}
VariantType::VariantTyp... | 28.98895 | 80 | 0.667581 | rdhafidh |
7d8d1ab72b58c313d61dcc5e347a08208c58c374 | 90 | hpp | C++ | menumemutils.hpp | BennettStaley/RDR2Base | 8ad3637debcfd8fac533d247604eb70a7605f355 | [
"MIT"
] | null | null | null | menumemutils.hpp | BennettStaley/RDR2Base | 8ad3637debcfd8fac533d247604eb70a7605f355 | [
"MIT"
] | null | null | null | menumemutils.hpp | BennettStaley/RDR2Base | 8ad3637debcfd8fac533d247604eb70a7605f355 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
namespace NativeMenu {
uint16_t FindRecordGlobal();
}
| 15 | 32 | 0.744444 | BennettStaley |
7d8ecd6f36799be64753d137ede7b4d44152da0d | 4,640 | hpp | C++ | include/doll/Gfx/API-D3D11.hpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | 1 | 2021-07-19T14:40:15.000Z | 2021-07-19T14:40:15.000Z | include/doll/Gfx/API-D3D11.hpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | include/doll/Gfx/API-D3D11.hpp | axia-sw/Doll | a5846a6553d9809e9a0ea50db2dc18b95eb21921 | [
"Zlib"
] | null | null | null | #pragma once
#include "../Core/Defs.hpp"
#include "Vertex.hpp"
#include "API.hpp"
namespace doll
{
struct SD3D11Context;
class CGfxAPI_D3D11;
DOLL_FUNC CGfxAPI_D3D11 *DOLL_API gfx__api_init_d3d11(OSWindow wnd, const SGfxInitDesc &desc, IGfxAPIProvider &provider);
class CGfxAPI_D3D11 : public virtua... | 45.048544 | 140 | 0.780819 | axia-sw |
7d90f7b357ab3e8e04dc2129700a29b61df49dd0 | 1,845 | cc | C++ | tcpevent/filetransfer.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | 1 | 2020-10-18T02:00:01.000Z | 2020-10-18T02:00:01.000Z | tcpevent/filetransfer.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | null | null | null | tcpevent/filetransfer.cc | sonyangchang/mycodecollection | d56149742f71ae7ae03f5a92bd009edbb4d5d3c6 | [
"Apache-2.0"
] | 1 | 2020-10-18T02:00:03.000Z | 2020-10-18T02:00:03.000Z | #define PORT 1234
#define LENGTH 1024
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
using nam... | 25.273973 | 94 | 0.62168 | sonyangchang |
7da0cb4c1f58bb273285e369cdccf9f8bd2f76d2 | 6,121 | cpp | C++ | src/TrappmannRobotics/Watchdog.cpp | ATrappmann/TrappmannRobotics-Library | 5695214251e5d00b2ef56ef07b2e57e8ae943df3 | [
"MIT"
] | null | null | null | src/TrappmannRobotics/Watchdog.cpp | ATrappmann/TrappmannRobotics-Library | 5695214251e5d00b2ef56ef07b2e57e8ae943df3 | [
"MIT"
] | null | null | null | src/TrappmannRobotics/Watchdog.cpp | ATrappmann/TrappmannRobotics-Library | 5695214251e5d00b2ef56ef07b2e57e8ae943df3 | [
"MIT"
] | null | null | null | // NAME: Watchdog.cpp
//
// DESC: My watchdog implementation file.
//
// This file is part of the TrappmannRobotics-Library for the Arduino environment.
// https://github.com/ATrappmann/TrappmannRobotics-Library
//
// MIT License
//
// Copyright (c) 2020 Andreas Trappmann
//
// Permission is hereby granted, free of ch... | 41.080537 | 121 | 0.641235 | ATrappmann |
7dae018924c70cef4670310c808449a872d7a0d8 | 1,507 | cpp | C++ | leetcode/docu/646_2.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/646_2.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | leetcode/docu/646_2.cpp | sczzq/symmetrical-spoon | aa0c27bb40a482789c7c6a7088307320a007b49b | [
"Unlicense"
] | null | null | null | #include "cpp_header.h"
class Solution {
public:
struct {
bool operator()(const vector<int>& a, const vector<int>& b) const
{
return a[0] < b[0];
}
}customLess;
int findLongestChain(vector<vector<int>>& pairs)
{
int count = 0;
vector<int> lens(pairs.size(), 1);
sort(pairs.begin(), pairs.end(), cu... | 17.321839 | 67 | 0.526875 | sczzq |
7db7662f4d6fd3517b22b85147306c7cbdc76b1c | 1,540 | cpp | C++ | picross_shell/shell_rollback_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | picross_shell/shell_rollback_command.cpp | deqyra/Picross- | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | 1 | 2020-05-16T14:01:08.000Z | 2020-06-11T21:12:02.000Z | picross_shell/shell_rollback_command.cpp | deqyra/PicrossEngine | 0c81172faa8121c58bc2a88122d1cdbe661cc17e | [
"MIT"
] | null | null | null | #include "../tools/micro_shell/micro_shell_command.hpp"
#include "../tools/micro_shell/micro_shell_codes.hpp"
#include "../tools/cli/cli_input.hpp"
#include "../tools/cli/cli_streams.hpp"
#include "shell_rollback_command.hpp"
#include "picross_shell_state.hpp"
#include <vector>
#include <string>
#include "../tools/str... | 26.101695 | 117 | 0.644156 | deqyra |
7db85cb9f9719a1e812a7632e69618cf27edc15f | 487 | cpp | C++ | tests/domain/hashes/tst_SHA256Hash.cpp | bartkessels/HashGenerator | 4e8cfca5b4e3445475155285f98698ce8d4c1945 | [
"MIT"
] | null | null | null | tests/domain/hashes/tst_SHA256Hash.cpp | bartkessels/HashGenerator | 4e8cfca5b4e3445475155285f98698ce8d4c1945 | [
"MIT"
] | null | null | null | tests/domain/hashes/tst_SHA256Hash.cpp | bartkessels/HashGenerator | 4e8cfca5b4e3445475155285f98698ce8d4c1945 | [
"MIT"
] | 1 | 2020-05-26T18:07:12.000Z | 2020-05-26T18:07:12.000Z | #include <catch2/catch.hpp>
#include "domain/hashes/SHA256Hash.hpp"
using namespace hashgen::domain::hashes;
TEST_CASE("Validate SHA256 hash", "[SHA256Hash]")
{
// Arrange
const auto& sut = new SHA256Hash();
const std::string& expectedSHA256Hash = "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15... | 25.631579 | 111 | 0.702259 | bartkessels |
7db933dc282e9cc50c11d2018ffc1ff91f5384d5 | 7,513 | cpp | C++ | src/sim_dos_quantities.cpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | src/sim_dos_quantities.cpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | src/sim_dos_quantities.cpp | Josh-MB/Information-Theory-Potts-Model | 74e4c61d2f1bdbc345431fb1d4bade2b5b08f055 | [
"MIT"
] | null | null | null | #include "../include/model.hpp"
#include "../include/defs.hpp"
#include "../include/stats.hpp"
#include "../include/wanglandau.hpp"
#include "../include/version.hpp"
#include "../include/utils.hpp"
#include <fmt/format.h>
#include <clara.hpp>
#include <vector>
#include <algorithm>
#include <random>
#include <sstream>
... | 35.107477 | 200 | 0.662585 | Josh-MB |
7db9e75f9cffb4ea94f502bd473a2c13cf606e19 | 579 | cpp | C++ | Searching Algorithm/Linear_Search.cpp | SusheelThapa/Data-Structure-and-Algorithm | 0f4ad30e7c10c15e1507a98a8bb63709a6b888ce | [
"MIT"
] | null | null | null | Searching Algorithm/Linear_Search.cpp | SusheelThapa/Data-Structure-and-Algorithm | 0f4ad30e7c10c15e1507a98a8bb63709a6b888ce | [
"MIT"
] | null | null | null | Searching Algorithm/Linear_Search.cpp | SusheelThapa/Data-Structure-and-Algorithm | 0f4ad30e7c10c15e1507a98a8bb63709a6b888ce | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int linearSearch(int arr[], int size, int element)
{
for (int i = 0; i < size; i++)
{
if (arr[i] == element)
{
return i;
}
}
return -1;
}
int main()
{
int sorted_array[] = {2, 3, 5, 7, 9, 10, 14, 19, 23, 29, 30, 81, 100};... | 21.444444 | 133 | 0.53886 | SusheelThapa |
7dc1c71146e1649b134f52e00dc029373182f036 | 391 | cpp | C++ | ZCO14003.cpp | YaminArafat/Codechef | 8d7920c6ee5a2a8e0998215edefa8cf150da87ce | [
"Apache-2.0"
] | null | null | null | ZCO14003.cpp | YaminArafat/Codechef | 8d7920c6ee5a2a8e0998215edefa8cf150da87ce | [
"Apache-2.0"
] | null | null | null | ZCO14003.cpp | YaminArafat/Codechef | 8d7920c6ee5a2a8e0998215edefa8cf150da87ce | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long n,i,j,temp,ind,mx=0;
scanf("%lld",&n);
long long arr[n];
for(i=0; i<n; i++)
{
scanf("%lld",&arr[i]);
}
sort(arr,arr+n);
for(i=0; i<n; i++)
{
ind=n-i;
if(arr[i]*ind>mx)
{
m... | 16.291667 | 34 | 0.421995 | YaminArafat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.