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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8dbacc6cdf5be1943e504af92236eaa24ea8ad9d | 3,682 | cpp | C++ | src/tactic/arith/pb2bv_model_converter.cpp | iaakhter/MYZ3 | 3b95aa583a37fb3a5df6451f9d76ef04b27040dc | [
"MIT"
] | 1 | 2018-06-15T00:27:24.000Z | 2018-06-15T00:27:24.000Z | src/tactic/arith/pb2bv_model_converter.cpp | iaakhter/MYZ3 | 3b95aa583a37fb3a5df6451f9d76ef04b27040dc | [
"MIT"
] | null | null | null | src/tactic/arith/pb2bv_model_converter.cpp | iaakhter/MYZ3 | 3b95aa583a37fb3a5df6451f9d76ef04b27040dc | [
"MIT"
] | null | null | null | /*++
Copyright (c) 2012 Microsoft Corporation
Module Name:
pb2bv_model_converter.cpp
Abstract:
Model converter for the pb2bv tactic.
Author:
Christoph (cwinter) 2012-02-15
Notes:
--*/
#include"trace.h"
#include"arith_decl_plugin.h"
#include"model_v2_pp.h"
#include"pb2bv_model_converter.h"
pb2bv_mod... | 31.20339 | 130 | 0.594785 | iaakhter |
8dbfa873b94efd6af5d84d90c33e63092baa4558 | 926 | tcc | C++ | jsonchars.tcc | smilingthax/jsonstate | 3a1da7d4f2f46ecb2a1a39669345d150199a822d | [
"MIT"
] | null | null | null | jsonchars.tcc | smilingthax/jsonstate | 3a1da7d4f2f46ecb2a1a39669345d150199a822d | [
"MIT"
] | null | null | null | jsonchars.tcc | smilingthax/jsonstate | 3a1da7d4f2f46ecb2a1a39669345d150199a822d | [
"MIT"
] | null | null | null |
namespace JsonChars {
inline bool is_ws(int ch) {
return ( (ch==' ')||(ch=='\r')||(ch=='\n')||(ch=='\t') );
}
inline bool is_escape(int ch) {
return (ch=='"')||(ch=='/')||(ch=='\\')||
(ch=='b')||(ch=='f')||(ch=='n')||(ch=='r')||(ch=='t')||(ch=='u');
}
inline bool is_digit(int ch) {
return ( (ch>='0')&... | 23.15 | 117 | 0.460043 | smilingthax |
8dc113223570dd8b5bd35e930dc7220bf4ef8c71 | 4,692 | hpp | C++ | foedus_code/foedus-core/include/foedus/soc/shared_polling.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/soc/shared_polling.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | foedus_code/foedus-core/include/foedus/soc/shared_polling.hpp | sam1016yu/cicada-exp-sigmod2017 | 64e582370076b2923d37b279d1c32730babc15f8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later versi... | 37.238095 | 100 | 0.742114 | sam1016yu |
8dc1f5fd11b31deaa92ff776987a4575c1507c7a | 1,723 | cpp | C++ | source/libstring.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | source/libstring.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | source/libstring.cpp | bondadmin/bond | 3fb698f0c8c4d92de088f87d17be2f41f1088c42 | [
"MIT"
] | null | null | null | #include "bond/api/libstring.h"
#include "bond/vm/vm.h"
#include <cstdio>
#include <cstring>
namespace Bond
{
void Strlen(Bond::StackFrame &frame)
{
const char *str = frame.GetArg<const char *>(0);
const uint32_t length = uint32_t(strlen(str));
frame.SetReturnValue(length);
}
void Strcmp(Bond::StackFrame &frame)... | 22.089744 | 54 | 0.665699 | bondadmin |
8dc29dc76736997faed4cdc22e6f607721baf541 | 661 | cpp | C++ | BAC_2nd/ch4/UVa133.cpp | Anyrainel/aoapc-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 3 | 2017-08-15T06:00:01.000Z | 2018-12-10T09:05:53.000Z | BAC_2nd/ch4/UVa133.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | null | null | null | BAC_2nd/ch4/UVa133.cpp | Anyrainel/aoapc-related-code | e787a01380698fb9236d933462052f97b20e6132 | [
"Apache-2.0"
] | 2 | 2017-09-16T18:46:27.000Z | 2018-05-22T05:42:03.000Z | // UVa133 The Dole Queue
// Rujia Liu
#include<stdio.h>
#define maxn 25
int n, k, m, a[maxn];
// 逆时针走t步,步长是d(-1表示顺时针走),返回新位置
int go(int p, int d, int t) {
while(t--) {
do { p = (p+d+n-1) % n + 1; } while(a[p] == 0); // 走到下一个非0数字
}
return p;
}
int main() {
while(scanf("%d%d%d", &n, &k, &m) == 3 && n) {
... | 20.65625 | 64 | 0.444781 | Anyrainel |
44f13463ef05178fe3cd8d3b13b3dfa3157dc246 | 6,374 | cpp | C++ | GameControl.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | GameControl.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | GameControl.cpp | rebeckao/house-escape-3 | 2164fabc705fffb73036924936aacdef253178b7 | [
"Unlicense"
] | null | null | null | #include "GameControl.h"
#include <iostream>
GameControl::GameControl(Model& newModel, View& newView) :model(newModel), view(newView){
SDL_SetRelativeMouseMode(SDL_TRUE);
keys = SDL_GetKeyboardState(nullptr);
//initEvents();
}
BoardControl::BoardControl(Model& new_model, View& new_view) :GameControl(new_model,new... | 35.808989 | 199 | 0.795419 | rebeckao |
44f275e066be256854a2ccd843d135ce4638c892 | 3,267 | cpp | C++ | Coding Progress/codeset/IPMASKspiltest-zjb.cpp | rongfengyu/Data_Structure_and_Algorithm | 2a89bbb0c14b37d6b34deff85b94f8dafa56eb2e | [
"BSD-3-Clause"
] | 1 | 2021-01-17T23:31:41.000Z | 2021-01-17T23:31:41.000Z | Coding Progress/codeset/IPMASKspiltest-zjb.cpp | rongfengyu/Data_Structure_and_Algorithm | 2a89bbb0c14b37d6b34deff85b94f8dafa56eb2e | [
"BSD-3-Clause"
] | null | null | null | Coding Progress/codeset/IPMASKspiltest-zjb.cpp | rongfengyu/Data_Structure_and_Algorithm | 2a89bbb0c14b37d6b34deff85b94f8dafa56eb2e | [
"BSD-3-Clause"
] | null | null | null | //============================================================================
// Name : spilttest.cpp
// Author : zjb
// Version :
// Copyright : Your copyright notice
// Description : Hello World in C, Ansi-style
//============================================================================
... | 19.680723 | 122 | 0.535354 | rongfengyu |
44f27b70a1e8d47aad1d4bdfc8ee43586e40e45c | 11,574 | cpp | C++ | extension/sv_helper/SGA/SGA/index.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | 1 | 2020-09-30T09:31:20.000Z | 2020-09-30T09:31:20.000Z | extension/sv_helper/SGA/SGA/index.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | extension/sv_helper/SGA/SGA/index.cpp | GenePlus/ncsv | f0f426ae4b64de86eee88518e3a1daf5718ce407 | [
"Apache-2.0",
"MIT"
] | null | null | null | //-----------------------------------------------
// Copyright 2009 Wellcome Trust Sanger Institute
// Written by Jared Simpson (js18@sanger.ac.uk)
// Released under the GPL
//-----------------------------------------------
//
// index - Build a BWT/FM-index for a set of reads
//
#include <iostream>
#include <fstream>
... | 32.329609 | 155 | 0.619233 | GenePlus |
44facf73ac9b073ab0d24396fc50475a3ab070b1 | 679 | cpp | C++ | server/src/system_windows.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 148 | 2017-08-25T13:32:05.000Z | 2022-03-17T18:40:49.000Z | server/src/system_windows.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 160 | 2017-08-16T19:58:53.000Z | 2022-02-26T09:57:38.000Z | server/src/system_windows.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 24 | 2018-05-23T18:59:47.000Z | 2022-03-23T17:25:01.000Z | #include "file_system.hpp"
#include "safe_windows.h"
#include <string.h>
namespace msrv {
const char* formatError(ErrorCode errorCode, char* buffer, size_t size) noexcept
{
auto ret = ::FormatMessageA(
FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
nullptr,
errorCode,
... | 19.4 | 80 | 0.673049 | courtarro |
44fea033d7fcd91c1179bbfbacb3fbd5c5771d94 | 10,844 | cpp | C++ | tests/kernel_bundle/sycl_link_verify_kernel_invoked_and_kernel_in_result_bundle.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/kernel_bundle/sycl_link_verify_kernel_invoked_and_kernel_in_result_bundle.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | tests/kernel_bundle/sycl_link_verify_kernel_invoked_and_kernel_in_result_bundle.cpp | AidanBeltonS/SYCL-CTS | f8d877560d82e2e4a7eacefe9d252178a7d602c1 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
//
// SYCL 2020 Conformance Test Suite
//
// This test calls this sycl::link overloads:
// 1) sycl::link(vector<kernel_bundle<>>, std::vector<device>, property_list)
// 2) sycl::link(vector<kernel_bundle<>>, property_list)
// 3)... | 44.625514 | 80 | 0.712283 | AidanBeltonS |
7801a2f2317affeed901d414cc09eb8b1e594dc0 | 2,091 | cpp | C++ | 2020 Leetcode Challenges/07 July Leetcode Challenge 2020/07 islandPerimeter.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 7 | 2020-12-01T14:27:57.000Z | 2022-02-12T09:17:22.000Z | 2020 Leetcode Challenges/07 July Leetcode Challenge 2020/07 islandPerimeter.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 4 | 2020-11-12T17:49:22.000Z | 2021-09-06T07:46:37.000Z | 2020 Leetcode Challenges/07 July Leetcode Challenge 2020/07 islandPerimeter.cpp | FazeelUsmani/Leetcode | aff4c119178f132c28a39506ffaa75606e0a861b | [
"MIT"
] | 6 | 2021-05-21T03:49:22.000Z | 2022-01-20T20:36:53.000Z | class Solution {
public:
int islandPerimeter(vector<vector<int>>& grid) {
int H = grid.size(), W = grid[0].size();
vector<pair<int, int> > directions { {-1,0}, {0, -1}, {1, 0}, {0, 1} };
vector<vector<int> > visited (H, vector<int> (W, 0));
auto i... | 31.681818 | 88 | 0.301769 | FazeelUsmani |
7801cb07692b5fa732bd31204322acd301cc40d1 | 707 | cpp | C++ | mario/net/InetAddress.cpp | yichenluan/Mario | bfca1dd626a730a7893caab57662da6ee196a864 | [
"MIT"
] | 2 | 2018-06-05T05:48:12.000Z | 2018-06-05T07:20:50.000Z | mario/net/InetAddress.cpp | yichenluan/Mario | bfca1dd626a730a7893caab57662da6ee196a864 | [
"MIT"
] | null | null | null | mario/net/InetAddress.cpp | yichenluan/Mario | bfca1dd626a730a7893caab57662da6ee196a864 | [
"MIT"
] | null | null | null | #include "mario/net/InetAddress.h"
#include "mario/net/SocketsOps.h"
#include <strings.h>
#include <netinet/in.h>
using namespace mario;
static const in_addr_t kInaddrAny = INADDR_ANY;
InetAddress::InetAddress(uint16_t port) {
bzero(&_addr, sizeof(_addr));
_addr.sin_family = AF_INET;
_addr.sin_addr.s_a... | 24.37931 | 65 | 0.712871 | yichenluan |
7801fff28b438d06bd75e4d2985d6836db1205bc | 7,542 | cpp | C++ | examples_tests/46.SamplingValidation/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | 216 | 2020-08-27T20:04:48.000Z | 2022-03-28T19:31:41.000Z | examples_tests/46.SamplingValidation/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | 165 | 2020-09-17T20:12:30.000Z | 2022-03-30T21:32:18.000Z | examples_tests/46.SamplingValidation/main.cpp | deprilula28/Nabla | 6b5de216221718191713dcf6de8ed6407182ddf0 | [
"Apache-2.0"
] | 27 | 2020-09-09T16:15:07.000Z | 2022-03-07T22:10:16.000Z | // Copyright (C) 2018-2020 - DevSH Graphics Programming Sp. z O.O.
// This file is part of the "Nabla Engine".
// For conditions of distribution and use, see copyright notice in nabla.h
#define _NBL_STATIC_LIB_
#include <iostream>
#include <cstdio>
#include <nabla.h>
#include "nbl/ext/ScreenShot/ScreenShot.h"
#include... | 35.914286 | 154 | 0.643463 | deprilula28 |
780e1d424759bc2532bc635fc734c0a1c31d6cdb | 2,143 | cpp | C++ | src/engine/shader/SimpleFragmentADS2FaceShader.cpp | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | null | null | null | src/engine/shader/SimpleFragmentADS2FaceShader.cpp | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | 1 | 2017-04-05T01:40:02.000Z | 2017-04-05T07:36:55.000Z | src/engine/shader/SimpleFragmentADS2FaceShader.cpp | Armanimani/Game-Engine | 8087cd999f7264488d24a5dc5571b659347a49dd | [
"MIT"
] | null | null | null | #include "SimpleFragmentADS2FaceShader.h"
void SimpleFragmentADS2FaceShader::render(const std::shared_ptr<Entity> entity)
{
start();
loadAllToUniform(entity);
glBindVertexArray(entity->getModel()->getMesh()->getVAOID());
glEnableVertexAttribArray(0);
glEnableVertexAttribArray(1);
glDrawElements(GL_TRIANGLES, ... | 32.469697 | 124 | 0.785814 | Armanimani |
7813321f3356ffdcf8d83b8a69a47e5234d53184 | 19,862 | cpp | C++ | SRC/ServiceConfiguration.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | 1 | 2021-03-29T06:09:19.000Z | 2021-03-29T06:09:19.000Z | SRC/ServiceConfiguration.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | null | null | null | SRC/ServiceConfiguration.cpp | SammyB428/WFC | 64aee7c7953e38c8a418ba9530339e8f4faac046 | [
"BSD-2-Clause"
] | null | null | null | /*
** Author: Samuel R. Blackburn
** Internet: wfc@pobox.com
**
** Copyright, 1995-2015, Samuel R. Blackburn
**
** "You can get credit for something or get it done, but not both."
** Dr. Richard Garwin
**
** BSD License follows.
**
** Redistribution and use in source and binary forms, with or without
** modification, a... | 29.867669 | 198 | 0.678834 | SammyB428 |
7815d8c4b89a1b3ec714d1c98ecd8919c2317338 | 1,510 | hpp | C++ | oss_src/unity/lib/toolkit_class_specification.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/unity/lib/toolkit_class_specification.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | oss_src/unity/lib/toolkit_class_specification.hpp | parquette/ParFrame | 0522aa6afdf529b3e91505b70e918f1500aae886 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) 2015 Dato, Inc.
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
#ifndef GRAPHLAB_UNITY_LIB_TOOLKIT_CLASS_SPECIFICATION_HPP
#define GRAPHLAB_UNITY_LIB_TOOLKIT_CLASS_SPECIFICATION_HPP
#include <... | 30.816327 | 81 | 0.718543 | parquette |
781c53561addaf00dec9c1ff35f8d8fb1e83ba29 | 213 | cpp | C++ | Entregas/ACM_Tarea11/P04/file1.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea11/P04/file1.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | Entregas/ACM_Tarea11/P04/file1.cpp | cesar-magana/Advanced_Programming | 7b5ff09cd2816b67ca9f68d5ede211c73fb73de5 | [
"MIT"
] | null | null | null | /*
* file1.cpp
* P04
*
* Created by Andrés César Magaña Martínez on 2009/09/22.
* Copyright 2009 __MyCompanyName__. All rights reserved.
*
*/
// Archivo file1.cpp
extern double b;
double a = b * 1;
| 16.384615 | 58 | 0.652582 | cesar-magana |
781e1ffb04f041629d950e6eddd959c656fd7708 | 441 | cpp | C++ | cplusplus/libfile/main.cpp | GreenAndEievui/little-things | 7d175c6d108787a6998b5736a1eb80df38298713 | [
"MIT"
] | null | null | null | cplusplus/libfile/main.cpp | GreenAndEievui/little-things | 7d175c6d108787a6998b5736a1eb80df38298713 | [
"MIT"
] | null | null | null | cplusplus/libfile/main.cpp | GreenAndEievui/little-things | 7d175c6d108787a6998b5736a1eb80df38298713 | [
"MIT"
] | null | null | null | #include "file.hpp"
int main() {
// The standard i/o streams can be accessed through three wrapper objects.
file::stdout.puts("Hello, world!\n");
// You can do simple output files.
file::outfile of = "text.txt";
of.puts("Hello, files!\n");
// and simple input files!
file::infile libfile =... | 25.941176 | 78 | 0.641723 | GreenAndEievui |
7823843b9e8ba63e452a02ba6855be0d4b9d2c7a | 2,553 | cpp | C++ | exemplosEstacio/exemplos_aula05/exemplo001.cpp | rfcosta85/CursoCPlusPlus | 595c7bb61a0f245ee0889e0dd76e6221ba4b1c80 | [
"MIT"
] | null | null | null | exemplosEstacio/exemplos_aula05/exemplo001.cpp | rfcosta85/CursoCPlusPlus | 595c7bb61a0f245ee0889e0dd76e6221ba4b1c80 | [
"MIT"
] | null | null | null | exemplosEstacio/exemplos_aula05/exemplo001.cpp | rfcosta85/CursoCPlusPlus | 595c7bb61a0f245ee0889e0dd76e6221ba4b1c80 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <cstring>
using namespace std;
void insere(int codigo[], int &t, int tamanho);
void exibe(int codigo[], int t);
void elemento(int codigo[], int t);
int main(void)
{
int tamanho, codigoProduto[5], opcao;
//Inicialização
tamanho = 0;
do
{
... | 16.907285 | 82 | 0.455542 | rfcosta85 |
78252ed5dcace5d1f1fab6344bbbb269f122723b | 2,874 | hpp | C++ | include/i3/ipc_constants.hpp | alexd2580/statorange | 02bdbe96273108964f9ec947c331f7f22a66d5c8 | [
"MIT"
] | 1 | 2016-02-26T01:14:26.000Z | 2016-02-26T01:14:26.000Z | include/i3/ipc_constants.hpp | alexd2580/statorange | 02bdbe96273108964f9ec947c331f7f22a66d5c8 | [
"MIT"
] | 6 | 2015-12-06T22:23:29.000Z | 2015-12-11T14:56:55.000Z | include/i3/ipc_constants.hpp | alexd2580/statorange | 02bdbe96273108964f9ec947c331f7f22a66d5c8 | [
"MIT"
] | null | null | null | #ifndef I3_IPC_CONSTANTS_HPP
#define I3_IPC_CONSTANTS_HPP
/*
* vim:ts=4:sw=4:expandtab
*
* i3 - an improved dynamic tiling window manager
* © 2009 Michael Stapelberg and contributors (see also: LICENSE)
*
* This public header defines the different constants and message types to use
* for the IPC interface to i3... | 29.628866 | 78 | 0.741475 | alexd2580 |
7825738a8462542b6400d396aa8099631dfd5482 | 538 | cpp | C++ | Sources/engine/gfxbackend/private/GfxBackend.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 20 | 2019-12-22T20:40:22.000Z | 2021-07-06T00:23:45.000Z | Sources/engine/gfxbackend/private/GfxBackend.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 32 | 2020-07-11T15:51:13.000Z | 2021-06-07T10:25:07.000Z | Sources/engine/gfxbackend/private/GfxBackend.cpp | Zino2201/ZinoEngine | 519d34a1d2b09412c8e2cba6b685b4556ec2c2ac | [
"MIT"
] | 3 | 2019-12-19T17:04:04.000Z | 2021-05-17T01:49:59.000Z | #include "gfx/Backend.h"
#include "module/Module.h"
#include "gfx/BackendInfo.h"
ZE_DEFINE_MODULE(ze::module::DefaultModule, gfxbackend)
namespace ze::gfx
{
Backend* backend = nullptr;
Backend::Backend(const BackendInfo* in_backend_info) : backend_info(in_backend_info) { backend = this; }
Backend::~Backend() = defa... | 20.692308 | 104 | 0.767658 | Zino2201 |
78257c57f5bd9bfc85e1e393821f564b9d7989b1 | 5,843 | hpp | C++ | libs/core/futures/include/hpx/futures/traits/acquire_shared_state.hpp | autoantwort/hpx | 2bf5f828b707f4e8ec7e90b398dbbaf782b5fcc8 | [
"BSL-1.0"
] | null | null | null | libs/core/futures/include/hpx/futures/traits/acquire_shared_state.hpp | autoantwort/hpx | 2bf5f828b707f4e8ec7e90b398dbbaf782b5fcc8 | [
"BSL-1.0"
] | null | null | null | libs/core/futures/include/hpx/futures/traits/acquire_shared_state.hpp | autoantwort/hpx | 2bf5f828b707f4e8ec7e90b398dbbaf782b5fcc8 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2021 Hartmut Kaiser
// Copyright (c) 2016 Agustin Berge
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#inc... | 32.642458 | 80 | 0.552285 | autoantwort |
782602ffaa3413436a7830fb9d874520ee49d0a8 | 1,908 | hpp | C++ | libs/core/math/include/bksge/core/math/matrix4x3.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/core/math/include/bksge/core/math/matrix4x3.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/core/math/include/bksge/core/math/matrix4x3.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file matrix4x3.hpp
*
* @brief Matrix4x3 の定義
*
* @author myoukaku
*/
#ifndef BKSGE_CORE_MATH_MATRIX4X3_HPP
#define BKSGE_CORE_MATH_MATRIX4X3_HPP
#include <bksge/core/math/fwd/matrix4x3_fwd.hpp>
#include <bksge/core/math/matrix.hpp>
#include <bksge/core/math/vector3.hpp>
#include <bksge/fnd/... | 18 | 111 | 0.634696 | myoukaku |
782dfccd7da8d5dcc29de08251c5c48e289b3c00 | 6,422 | cpp | C++ | code/external/libigl/external/embree/kernels/xeonphi/bvh4mb/bvh4mb_intersector16_chunk.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | null | null | null | code/external/libigl/external/embree/kernels/xeonphi/bvh4mb/bvh4mb_intersector16_chunk.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | 1 | 2018-11-14T23:14:58.000Z | 2018-11-14T23:14:58.000Z | code/external/libigl/external/embree/kernels/xeonphi/bvh4mb/bvh4mb_intersector16_chunk.cpp | dybiszb/MeanCurvatureLibrary | b168911ef6bf08b283e7a225cc006b850fe26400 | [
"MIT"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 34.159574 | 125 | 0.572252 | dybiszb |
783006d25b7f7f70bc1ebedae4c79ddf4e06134d | 757 | hpp | C++ | Sonst/col/Primitive.hpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | 2 | 2021-05-04T06:23:46.000Z | 2022-02-04T21:40:07.000Z | Sonst/col/Primitive.hpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | null | null | null | Sonst/col/Primitive.hpp | jbxplan/GMLToolbox-src | fec35558787db18d222598e376bc7c1071c69a55 | [
"Apache-2.0"
] | 2 | 2020-07-13T12:14:11.000Z | 2021-05-04T06:23:49.000Z | #pragma once
#include "ColFwd.hpp"
namespace col
{
enum PrimitiveType { TRIANGLES, POLYGONS };
/// All graphical primitives
class Primitive
{
public:
Primitive(PrimitiveType type) : m_type(type) {}
virtual ~Primitive() {}
PrimitiveType getType() const { ret... | 24.419355 | 81 | 0.619551 | jbxplan |
7837e0110f1d01c2d8334dec67aacd79cc6e2b24 | 1,051 | hpp | C++ | library/ATF/__moduleAttribute.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/__moduleAttribute.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/__moduleAttribute.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
namespace vc_attributes
{
template<>
struct moduleAttribute
{
template<>
enum type_e
... | 25.634146 | 108 | 0.494767 | lemkova |
783a7b4a8f5d4bb950df0c63458332253db6d1f4 | 372 | hpp | C++ | src/glfw/GlfwGL3Profile.hpp | choiip/fui | dc54b2d29c423a5b257dd7d812e5d5f52a10ba8a | [
"Zlib"
] | null | null | null | src/glfw/GlfwGL3Profile.hpp | choiip/fui | dc54b2d29c423a5b257dd7d812e5d5f52a10ba8a | [
"Zlib"
] | null | null | null | src/glfw/GlfwGL3Profile.hpp | choiip/fui | dc54b2d29c423a5b257dd7d812e5d5f52a10ba8a | [
"Zlib"
] | null | null | null | #pragma once
#include "core/GraphicsProfile.hpp"
namespace fui {
class GlfwGL3Profile : public GraphicsProfile {
public:
virtual ~GlfwGL3Profile() {}
virtual GraphicsAPI api() const override { return GraphicsAPI::OPENGL; }
virtual void prepare() const override;
virtual RenderContext* createContext(void* n... | 19.578947 | 74 | 0.752688 | choiip |
783b0dc6821bbc3ecfbd3a177ac156cf2fb8f25c | 11,072 | hpp | C++ | Functions/Class.hpp | extremeblackliu/IL2CPP_Resolver | d9de598a29c0a6daf3817a73a91a56eb5c376d65 | [
"Unlicense"
] | null | null | null | Functions/Class.hpp | extremeblackliu/IL2CPP_Resolver | d9de598a29c0a6daf3817a73a91a56eb5c376d65 | [
"Unlicense"
] | null | null | null | Functions/Class.hpp | extremeblackliu/IL2CPP_Resolver | d9de598a29c0a6daf3817a73a91a56eb5c376d65 | [
"Unlicense"
] | null | null | null | #pragma once
namespace IL2CPP
{
namespace Class
{
Unity::il2cppFieldInfo* GetFields(Unity::il2cppClass* m_pClass, void** m_pIterator);
void FetchFields(Unity::il2cppClass* m_pClass, std::vector<Unity::il2cppFieldInfo*>* m_pVector, void* m_pFieldIterator = nullptr);
Unity::il2cppMethodInfo* GetMethods(Unity::... | 34.81761 | 214 | 0.719924 | extremeblackliu |
783c20270e2341ebd571c6f11cb0a52080a7dd5f | 4,860 | cpp | C++ | src/controller.cpp | KavitShah1998/Autonomous_Mobile_Robot_Navigation_In_ROS | cd79cf695d61dbcf7c2d3875dbcaaf73e4f6a187 | [
"BSD-3-Clause"
] | 15 | 2021-02-23T07:47:29.000Z | 2022-03-12T09:06:08.000Z | src/controller.cpp | asYuGong/Autonomous_Mobile_Robot_Navigation_In_ROS | cd79cf695d61dbcf7c2d3875dbcaaf73e4f6a187 | [
"BSD-3-Clause"
] | 1 | 2022-02-17T16:17:44.000Z | 2022-02-25T19:06:11.000Z | src/controller.cpp | asYuGong/Autonomous_Mobile_Robot_Navigation_In_ROS | cd79cf695d61dbcf7c2d3875dbcaaf73e4f6a187 | [
"BSD-3-Clause"
] | 4 | 2021-02-23T07:48:04.000Z | 2022-01-10T06:02:42.000Z | # include "hierarchical_motion_planner/controller.h"
PID_Base :: PID_Base() : _kp(0.0f) , _ki(0.0f) , _kd(0.0f){
std::cout << "PID_Base Default C'tor \n";
}
PID_Base :: PID_Base(double kp, double kd, double ki) : _kp(kp) , _ki(ki) , _kd(kd){
std::cout << "PID_Base C'tor \n";
}
PID_Base :: ~PID_Base(){ }
void... | 23.823529 | 127 | 0.647737 | KavitShah1998 |
78432cf5a971b198d0db5273e9fab61ed637d687 | 1,046 | cpp | C++ | source/cppsocket/udp_socket.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | source/cppsocket/udp_socket.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | source/cppsocket/udp_socket.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | #include "udp_socket.h"
cppsocket::udp_socket::udp_socket(protocol_family family) : native_socket(family, cppsocket::udp)
{
this->create_socket();
}
cppsocket::udp_socket::udp_socket(int port, std::string addr) : cppsocket::native_socket(IPv4, cppsocket::udp)
{
this->create_socket();
if (!initialize(IPv4,... | 23.772727 | 136 | 0.660612 | dinobei |
7844ffae6a432650c6c8108574faaee605bb8891 | 737 | cpp | C++ | Cpp/87_scramble_string/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | 1 | 2015-12-19T23:05:35.000Z | 2015-12-19T23:05:35.000Z | Cpp/87_scramble_string/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | Cpp/87_scramble_string/solution.cpp | zszyellow/leetcode | 2ef6be04c3008068f8116bf28d70586e613a48c2 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isScramble(string s1, string s2) {
if(s1 == s2) return true;
int len = s1.length();
vector<int> count(26, 0);
for (int i = 0; i < len; i ++)
{
count[s1[i]-'a'] ++;
count[s2[i]-'a'] --;
}
for (int i = 0; i ... | 29.48 | 121 | 0.447761 | zszyellow |
7846d28f6bf477d58dd8c1fd5cbb55584b0f55a5 | 2,498 | cpp | C++ | libs/histogram/test/detail_accumulator_traits_test.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | 1 | 2020-03-01T03:04:05.000Z | 2020-03-01T03:04:05.000Z | libs/histogram/test/detail_accumulator_traits_test.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | libs/histogram/test/detail_accumulator_traits_test.cpp | btzy/boost-1.72.0-mirror | defad0f34b0abc884032b57dd4eb93f18f679bf1 | [
"BSL-1.0"
] | null | null | null | // Copyright 2019 Hans Dembinski
//
// 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 <boost/core/lightweight_test.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/histogram/detail/ac... | 30.096386 | 87 | 0.698559 | btzy |
784a196b4c49f094af5ff8de66ea51ffc2f97537 | 23,729 | cpp | C++ | SDK/Wrapper/ChainParams.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | SDK/Wrapper/ChainParams.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | SDK/Wrapper/ChainParams.cpp | hejianhui/Elastos.ELA.SPV.Cpp | 6c3337d091e4cfa9f6dbabaa18526565ccee4e0b | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2018 The Elastos Open Source Project
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <BRChainParams.h>
#include <BRMerkleBlock.h>
#include <Core/BRChainParams.h>
#include <SDK/Common/Log.h>
#includ... | 60.84359 | 115 | 0.779932 | hejianhui |
784c125bc1ba6e982242d9fc51ac88ef31d69579 | 4,699 | cpp | C++ | Source/UnrealCPP/OpenDoorTimelineOverlap/OpenDoorTimelineOverlap.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 6 | 2018-04-22T15:27:39.000Z | 2021-11-02T17:33:58.000Z | Source/UnrealCPP/OpenDoorTimelineOverlap/OpenDoorTimelineOverlap.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | null | null | null | Source/UnrealCPP/OpenDoorTimelineOverlap/OpenDoorTimelineOverlap.cpp | Harrison1/unrealcpp-full-project | a0a84d124b3023a87cbcbf12cf8ee0a833dd4302 | [
"MIT"
] | 4 | 2018-07-26T15:39:46.000Z | 2020-12-28T08:10:35.000Z | // Harrison McGuire
// UE4 Version 4.18.3
// https://github.com/Harrison1/unrealcpp
// https://severallevels.io
// https://harrisonmcguire.com
// helpful links
// https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/FTimeline/
// https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Components/... | 35.067164 | 222 | 0.72143 | Harrison1 |
78536ae66a8223b38d1c7a6a98a9c142dd9cb7d7 | 2,986 | cpp | C++ | src/main/screens/screens.cpp | LeonMatthes/WatchyOS | d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9 | [
"MIT"
] | 2 | 2022-01-22T07:30:28.000Z | 2022-01-27T14:03:35.000Z | src/main/screens/screens.cpp | LeonMatthes/WatchyOS | d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9 | [
"MIT"
] | 2 | 2022-02-02T14:22:44.000Z | 2022-02-02T14:59:51.000Z | src/main/screens/screens.cpp | LeonMatthes/WatchyOS | d6a62695c8c7ca7fa26c13f4505b7f06b13e2fb9 | [
"MIT"
] | 1 | 2022-02-02T20:52:20.000Z | 2022-02-02T20:52:20.000Z | #include "screens.h"
#include "esp_attr.h"
#include <functional>
#include "watchface.h"
#include "boot.h"
#include "timer.h"
#include "screens_menu.h"
#include "notification_list.h"
#include "testing.h"
#include <event_queue.h>
using namespace screens;
Screen takeNap(bool wake_from_sleep);
RTC_DATA_ATTR Screen s... | 23.888 | 95 | 0.699933 | LeonMatthes |
78548555de126d23aa9a29cbe7ec831ba002986b | 290 | cpp | C++ | atcoder/abc/28/D.cpp | utgw/programming-contest | eb7f28ae913296c6f4f9a8136dca8bd321e01e79 | [
"MIT"
] | null | null | null | atcoder/abc/28/D.cpp | utgw/programming-contest | eb7f28ae913296c6f4f9a8136dca8bd321e01e79 | [
"MIT"
] | null | null | null | atcoder/abc/28/D.cpp | utgw/programming-contest | eb7f28ae913296c6f4f9a8136dca8bd321e01e79 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <math.h>
int main(){
int N,K;
double res = 0;
scanf("%d%d",&N,&K);
// Kがない
res += pow(N-1,3);
// Kがmaxで、かつminが2つ
res += 3*pow(K-1,2);
// Kがminで、かつmaxが2つ
res += 3*pow(N-K,2);
res = 1.0 - res / pow(N,3);
printf("%.15lf\n",res);
return 0;
}
| 17.058824 | 29 | 0.52069 | utgw |
785764232af79b7ed502a9eebfacf2d08b045a3b | 2,056 | cpp | C++ | alpaka/test/unit/kernel/src/KernelWithConstructorAndMember.cpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 6 | 2021-02-01T09:01:39.000Z | 2021-11-14T17:09:03.000Z | alpaka/test/unit/kernel/src/KernelWithConstructorAndMember.cpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | 17 | 2020-11-09T14:13:50.000Z | 2021-11-03T11:54:54.000Z | alpaka/test/unit/kernel/src/KernelWithConstructorAndMember.cpp | alpaka-group/mallocMC | ddba224b764885f816c42a7719551b14e6f5752b | [
"MIT"
] | null | null | null | /* Copyright 2019 Axel Huebl, Benjamin Worpitz, René Widera
*
* This file is part of alpaka.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <alpak... | 30.686567 | 105 | 0.567607 | alpaka-group |
7858b85fbc8ec65dc6e520d1b415c92a69a647b9 | 5,718 | cc | C++ | src/Dataflow/Serialization/Network/NetworkXMLSerializer.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Dataflow/Serialization/Network/NetworkXMLSerializer.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | src/Dataflow/Serialization/Network/NetworkXMLSerializer.cc | mhansen1/SCIRun | 9719c570a6d6911a9eb8df584bd2c4ad8b8cd2ba | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person o... | 36.890323 | 151 | 0.774572 | mhansen1 |
785ba1229772e2029f2eb20508f476ec08472c2c | 4,656 | cpp | C++ | src/RcppExports.cpp | MolEvolEpid/biophybreak | 8ef147c83d8bbf01164eee31cb0042a085bf7de9 | [
"BSD-3-Clause"
] | null | null | null | src/RcppExports.cpp | MolEvolEpid/biophybreak | 8ef147c83d8bbf01164eee31cb0042a085bf7de9 | [
"BSD-3-Clause"
] | null | null | null | src/RcppExports.cpp | MolEvolEpid/biophybreak | 8ef147c83d8bbf01164eee31cb0042a085bf7de9 | [
"BSD-3-Clause"
] | null | null | null | // Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#include <Rcpp.h>
using namespace Rcpp;
#ifdef RCPP_USE_GLOBAL_ROSTREAM
Rcpp::Rostream<true>& Rcpp::Rcout = Rcpp::Rcpp_cout_get();
Rcpp::Rostream<false>& Rcpp::Rcerr = Rcpp::Rcpp_cerr_get(... | 43.924528 | 150 | 0.75494 | MolEvolEpid |
785d656cbe7006a2629be4bfcbc7f418fc9d76ad | 4,414 | cpp | C++ | libs/muddle/src/question_struct.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 96 | 2018-08-23T16:49:05.000Z | 2021-11-25T00:47:16.000Z | libs/muddle/src/question_struct.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 1,011 | 2018-08-17T12:25:21.000Z | 2021-11-18T09:30:19.000Z | libs/muddle/src/question_struct.cpp | chr15murray/ledger | 85be05221f19598de8c6c58652139a1f2d9e362f | [
"Apache-2.0"
] | 65 | 2018-08-20T20:05:40.000Z | 2022-02-26T23:54:35.000Z | //------------------------------------------------------------------------------
//
// Copyright 2018-2020 Fetch.AI Limited
//
// 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
//
// ... | 32.218978 | 90 | 0.648391 | chr15murray |
785f14b77013e17e3798b66b7f51d75a7e93be70 | 1,301 | cpp | C++ | SillyTech3D/src/Components/light_component.cpp | mlavik1/SillyTech-Temporary | 82b26f428d6f6a270adb162dbc47815c1d2baf95 | [
"MIT"
] | null | null | null | SillyTech3D/src/Components/light_component.cpp | mlavik1/SillyTech-Temporary | 82b26f428d6f6a270adb162dbc47815c1d2baf95 | [
"MIT"
] | null | null | null | SillyTech3D/src/Components/light_component.cpp | mlavik1/SillyTech-Temporary | 82b26f428d6f6a270adb162dbc47815c1d2baf95 | [
"MIT"
] | null | null | null | #include "light_component.h"
#include "mesh_render_manager.h"
LightComponent::LightComponent() : Component()
{
SetLightType(LightType::POINT_LIGHT);
}
LightComponent::~LightComponent()
{
}
void LightComponent::OnFrame()
{
Component::OnFrame();
}
void LightComponent::OnStart()
{
Component::OnStart();
}
void ... | 15.674699 | 60 | 0.764028 | mlavik1 |
78621428d518413d49d58733035e7fd302b55a1d | 3,989 | cpp | C++ | src/misc/demo/misc/xmlwrapp/tree_parsing.cpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 3 | 2018-01-18T21:46:01.000Z | 2021-04-06T03:04:00.000Z | src/misc/demo/misc/xmlwrapp/tree_parsing.cpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | null | null | null | src/misc/demo/misc/xmlwrapp/tree_parsing.cpp | ncbi/ncbi-xmlwrapp | d5c25d7b911413fe4dffd408903e5ce06a68636e | [
"BSD-3-Clause"
] | 4 | 2018-01-18T21:44:47.000Z | 2020-12-13T14:38:18.000Z | /*
* Copyright (C) 2001-2003 Peter J Jones (pjones@pmade.org)
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* ... | 31.912 | 80 | 0.612434 | ncbi |
7869edca077488c0a3affe0f8fd5e47563af8486 | 3,075 | cpp | C++ | src/log4qt/consoleappender.cpp | Balluff/Log4Qt | 7f83134bc7da06d9ae4c553caf0ada324ac666c9 | [
"Apache-2.0"
] | 1 | 2021-01-20T02:06:23.000Z | 2021-01-20T02:06:23.000Z | src/log4qt/consoleappender.cpp | Balluff/Log4Qt | 7f83134bc7da06d9ae4c553caf0ada324ac666c9 | [
"Apache-2.0"
] | null | null | null | src/log4qt/consoleappender.cpp | Balluff/Log4Qt | 7f83134bc7da06d9ae4c553caf0ada324ac666c9 | [
"Apache-2.0"
] | 1 | 2021-06-10T17:07:08.000Z | 2021-06-10T17:07:08.000Z | /******************************************************************************
*
* package:
* file: consoleappender.cpp
* created: September 2007
* author: Martin Heinrich
*
*
* Copyright 2007 Martin Heinrich
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not u... | 22.777778 | 82 | 0.637073 | Balluff |
786cb8f27cf2638c2e4fb1a0eb3be51a815f5118 | 7,734 | hpp | C++ | cpp/include/reneu/segmentation/dendrogram.hpp | jingpengw/reneu | f69a9ab53ea1f4852493f3d92ec142e60ad0812b | [
"Apache-2.0"
] | null | null | null | cpp/include/reneu/segmentation/dendrogram.hpp | jingpengw/reneu | f69a9ab53ea1f4852493f3d92ec142e60ad0812b | [
"Apache-2.0"
] | 13 | 2019-09-04T03:56:05.000Z | 2020-04-28T00:37:42.000Z | cpp/include/reneu/segmentation/dendrogram.hpp | jingpengw/reneu | f69a9ab53ea1f4852493f3d92ec142e60ad0812b | [
"Apache-2.0"
] | 1 | 2019-11-07T11:24:21.000Z | 2019-11-07T11:24:21.000Z | #pragma once
#include <vector>
#include <algorithm>
// #include <execution>
#include <string>
#include <sstream>
#include <set>
#include <boost/serialization/serialization.hpp>
#include <boost/serialization/vector.hpp>
#include <xtensor/xtensor.hpp>
#include "disjoint_sets.hpp"
#include "../types.hpp"
namespace re... | 29.746154 | 120 | 0.639643 | jingpengw |
787292c5bd201ff03e79f5eb0ceb6af879ee76df | 767 | cpp | C++ | 08_03_thread/src/libs/libserver/console_cmd_pool.cpp | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 83 | 2019-12-03T08:42:15.000Z | 2022-03-30T13:22:37.000Z | 08_03_thread/src/libs/libserver/console_cmd_pool.cpp | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 1 | 2021-08-06T10:40:57.000Z | 2021-08-09T06:33:43.000Z | 08_03_thread/src/libs/libserver/console_cmd_pool.cpp | Thanalan/GameBookServer-master | 506b4fe1eece1a3c0bd1100fe14764b63885b2bf | [
"MIT"
] | 45 | 2020-05-29T03:22:48.000Z | 2022-03-21T16:19:01.000Z | #include "console_cmd_pool.h"
#include "object_pool.h"
#include "connect_obj.h"
#include "packet.h"
void ConsoleCmdPool::RegisterHandler()
{
OnRegisterHandler("-show", BindFunP1(this, &ConsoleCmdPool::HandleShow));
}
void ConsoleCmdPool::HandleHelp()
{
std::cout << "\t-show name.\tshow information of 'name' p... | 24.741935 | 128 | 0.661017 | Thanalan |
787462ef92ffc3c7d7c85053712cdf7eb2ca34aa | 5,253 | cpp | C++ | UIWidgets/HazardsWidget.cpp | rccosta1/R2DTool | f643bc12ca248e1d5ac1e2a9025ed3722b6dd663 | [
"BSD-2-Clause"
] | null | null | null | UIWidgets/HazardsWidget.cpp | rccosta1/R2DTool | f643bc12ca248e1d5ac1e2a9025ed3722b6dd663 | [
"BSD-2-Clause"
] | null | null | null | UIWidgets/HazardsWidget.cpp | rccosta1/R2DTool | f643bc12ca248e1d5ac1e2a9025ed3722b6dd663 | [
"BSD-2-Clause"
] | null | null | null | /* *****************************************************************************
Copyright (c) 2016-2021, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are... | 44.516949 | 147 | 0.764706 | rccosta1 |
7878c2521bce054d35764a27e0d29def146b039c | 3,561 | cpp | C++ | src/LedScreen.cpp | juliencombattelli/LedScreen | 7d8b3073f82a360b6e7ef6c488d63eef9d4ef175 | [
"MIT"
] | 1 | 2017-08-16T05:54:15.000Z | 2017-08-16T05:54:15.000Z | src/LedScreen.cpp | juliencombattelli/LedScreen | 7d8b3073f82a360b6e7ef6c488d63eef9d4ef175 | [
"MIT"
] | null | null | null | src/LedScreen.cpp | juliencombattelli/LedScreen | 7d8b3073f82a360b6e7ef6c488d63eef9d4ef175 | [
"MIT"
] | null | null | null | /*
* LedScreen.cpp
*
* Created on: 12 janv. 2017
* Author: JulienCombattelli
*/
#include <LedScreen.h>
LedScreen::LedScreen(int rowCount, int columnCount, const SN74HC595_Config& rowConfig, const SN74HC595_Config& columnConfig) :
m_rowCount(rowCount), m_columnCount(columnCount),
m_delay_ms(RET... | 21.196429 | 127 | 0.648133 | juliencombattelli |
7878ed4fa083abd23dae0bc6b13c1d0a927ee1d0 | 41,449 | cpp | C++ | src/Databases/DatabaseReplicated.cpp | kam3nskii/ClickHouse | 73b451160d02e372a012f42fcae0b2a24cf850e9 | [
"Apache-2.0"
] | null | null | null | src/Databases/DatabaseReplicated.cpp | kam3nskii/ClickHouse | 73b451160d02e372a012f42fcae0b2a24cf850e9 | [
"Apache-2.0"
] | 1 | 2021-11-22T10:16:48.000Z | 2021-12-01T21:48:23.000Z | src/Databases/DatabaseReplicated.cpp | kam3nskii/ClickHouse | 73b451160d02e372a012f42fcae0b2a24cf850e9 | [
"Apache-2.0"
] | null | null | null | #include <DataTypes/DataTypeString.h>
#include <Databases/DatabaseReplicated.h>
#include <IO/ReadBufferFromFile.h>
#include <IO/ReadBufferFromString.h>
#include <IO/ReadHelpers.h>
#include <IO/WriteHelpers.h>
#include <Interpreters/Context.h>
#include <Interpreters/executeQuery.h>
#include <Parsers/queryToString.h>
#in... | 45.25 | 162 | 0.681464 | kam3nskii |
78798b5229579dcbe221b0ba9908b9fec1ae7347 | 7,265 | hh | C++ | extern/glow/src/glow/data/TextureData.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow/src/glow/data/TextureData.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/glow/src/glow/data/TextureData.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <glow/common/non_copyable.hh>
#include <glow/common/property.hh>
#include <glow/common/shared.hh>
#include <glow/gl.hh>
#include "ColorSpace.hh"
#include <typed-geometry/tg-lean.hh>
#include <functional>
#include <string>
#include <vector>
namespace glow
{
GLOW_SHARED(class, TextureData);
GL... | 33.948598 | 141 | 0.603441 | rovedit |
787be36f64358e5f74309fc0914cfd01116d0944 | 5,704 | cpp | C++ | src/GLEngine/GLShader.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | src/GLEngine/GLShader.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | src/GLEngine/GLShader.cpp | uoitalia/crossuo | 0d1665926b605cb0899a51b4b715d317119a4f06 | [
"MIT"
] | null | null | null | // MIT License
// Copyright (C) August 2016 Hotride
CDeathShader g_DeathShader;
CColorizerShader g_ColorizerShader;
CColorizerShader g_FontColorizerShader;
CColorizerShader g_LightColorizerShader;
void UnuseShader()
{
DEBUG_TRACE_FUNCTION;
glUseProgramObjectARB(0);
ShaderColorTable = 0;
... | 25.809955 | 98 | 0.615884 | uoitalia |
787ea6c5fe483dbcb899217fa377deb44e81548b | 2,247 | cpp | C++ | tests/main.cpp | alibabacloud-sdk-cpp/dara-xml | babc38c10ba39cf1e54e7b1af932ba3576a9bf4f | [
"Apache-2.0"
] | 3 | 2020-02-28T02:51:08.000Z | 2020-07-01T07:14:51.000Z | tests/main.cpp | alibabacloud-sdk-cpp/dara-xml | babc38c10ba39cf1e54e7b1af932ba3576a9bf4f | [
"Apache-2.0"
] | 21 | 2020-04-02T06:38:14.000Z | 2021-11-23T13:19:38.000Z | tests/main.cpp | alibabacloud-sdk-cpp/dara-xml | babc38c10ba39cf1e54e7b1af932ba3576a9bf4f | [
"Apache-2.0"
] | 6 | 2020-02-28T03:07:31.000Z | 2021-12-08T04:43:49.000Z | #include "gtest/gtest.h"
#include <boost/any.hpp>
#include <darabonba/xml.hpp>
using namespace std;
int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
TEST(tests_Client, test_parseXml)
{
string xml = R"(<?xml version="1.0" encoding="utf-8"?><double>1.012300</dou... | 37.45 | 137 | 0.588785 | alibabacloud-sdk-cpp |
787f8f45aaa27406d3a4ed58f2b1cf3c7d8593bc | 2,350 | hpp | C++ | include/Btk/gl/direct3d11.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 2 | 2021-06-19T08:21:38.000Z | 2021-08-15T21:37:30.000Z | include/Btk/gl/direct3d11.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | null | null | null | include/Btk/gl/direct3d11.hpp | BusyStudent/Btk | 27b23aa77e4fbcc48bdfe566ce7cae46183c289c | [
"MIT"
] | 1 | 2021-04-03T14:27:39.000Z | 2021-04-03T14:27:39.000Z | #if !defined(_BTK_DIRECT3D11_HPP_)
#define _BTK_DIRECT3D11_HPP_
#include "../platform/win32.hpp"
#include <d3d11.h>
namespace Btk{
/**
* @brief Direct3D 11 Device
*
*/
struct BTKAPI DxDevice:public RendererDevice{
DxDevice(HWND window);
DxDevice(const DxDevice &) = delete;
... | 30.519481 | 73 | 0.585532 | BusyStudent |
78817734cd45fbce5e58001854e8fad230cee101 | 1,631 | cpp | C++ | dbms/src/Common/ZooKeeper/tests/zkutil_test_commands.cpp | ssmike/ClickHouse | fafecb3c25a59777ed691c0a1936d66181d4d093 | [
"Apache-2.0"
] | 5 | 2018-05-10T14:40:44.000Z | 2020-12-13T11:43:15.000Z | dbms/src/Common/ZooKeeper/tests/zkutil_test_commands.cpp | ssmike/ClickHouse | fafecb3c25a59777ed691c0a1936d66181d4d093 | [
"Apache-2.0"
] | null | null | null | dbms/src/Common/ZooKeeper/tests/zkutil_test_commands.cpp | ssmike/ClickHouse | fafecb3c25a59777ed691c0a1936d66181d4d093 | [
"Apache-2.0"
] | 2 | 2020-05-23T04:55:22.000Z | 2020-05-24T11:30:51.000Z | #include <Common/ZooKeeper/ZooKeeper.h>
#include <Common/ZooKeeper/KeeperException.h>
#include <Common/typeid_cast.h>
#include <iostream>
#include <port/unistd.h>
using namespace zkutil;
int main(int argc, char ** argv)
try
{
if (argc < 2)
{
std::cerr << "Usage: ./zkutil_test_commands host:port,host:... | 29.125 | 108 | 0.599019 | ssmike |
7882d67f83520748b4460f020ddea7c7aa337207 | 9,824 | cc | C++ | src/rtc_peerconnection_factory_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_peerconnection_factory_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | src/rtc_peerconnection_factory_impl.cc | necnecnec/libwebrtc | 220cc87ac678ff0675b16397f46a6a35ecd2ba9c | [
"MIT"
] | null | null | null | #include "rtc_peerconnection_factory_impl.h"
#include "rtc_audio_source_impl.h"
#include "rtc_media_stream_impl.h"
#include "rtc_mediaconstraints_impl.h"
#include "rtc_peerconnection_impl.h"
#include "rtc_video_device_impl.h"
#include "rtc_video_source_impl.h"
#include "api/audio_codecs/builtin_audio_decoder_f... | 38.077519 | 159 | 0.750204 | necnecnec |
78871b12cf589a02f2b8cf19bb373ef77f7fe5bd | 7,370 | cpp | C++ | MecabCocoa/dictionary_rewriter.cpp | shinjukunian/MecabCocoa | 28a190a7a502b1ee884ba219594f4e60bb2bcbc9 | [
"MIT"
] | 4 | 2018-11-13T14:58:02.000Z | 2020-06-26T14:58:07.000Z | MecabCocoa/dictionary_rewriter.cpp | shinjukunian/MecabCocoa | 28a190a7a502b1ee884ba219594f4e60bb2bcbc9 | [
"MIT"
] | null | null | null | MecabCocoa/dictionary_rewriter.cpp | shinjukunian/MecabCocoa | 28a190a7a502b1ee884ba219594f4e60bb2bcbc9 | [
"MIT"
] | 1 | 2021-01-22T02:07:04.000Z | 2021-01-22T02:07:04.000Z | // MeCab -- Yet Another Part-of-Speech and Morphological Analyzer
//
// $Id: dictionary_rewriter.cpp 173 2009-04-18 08:10:57Z taku-ku $;
//
// Copyright(C) 2001-2006 Taku Kudo <taku@chasen.org>
// Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
#include <cstring>
#include <string>
#include <vector... | 30.454545 | 78 | 0.544233 | shinjukunian |
7887f449cda97ac0b49216ebf5dc33bf45b560e9 | 647 | hpp | C++ | android-31/android/text/LoginFilter_UsernameFilterGeneric.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/text/LoginFilter_UsernameFilterGeneric.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/text/LoginFilter_UsernameFilterGeneric.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./LoginFilter.hpp"
namespace android::text
{
class LoginFilter_UsernameFilterGeneric : public android::text::LoginFilter
{
public:
// Fields
// QJniObject forward
template<typename ...Ts> explicit LoginFilter_UsernameFilterGeneric(const char *className, const char *sig, Ts...agv) : ... | 25.88 | 193 | 0.746522 | YJBeetle |
78890c9efc8de4c93b493913f75b2d0bb594b069 | 3,706 | cpp | C++ | src/utils/canbus.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 6 | 2020-03-29T09:37:01.000Z | 2022-01-20T08:56:31.000Z | src/utils/canbus.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 1 | 2021-03-05T08:00:50.000Z | 2021-03-05T08:00:50.000Z | src/utils/canbus.cpp | h2ssh/Vulcan | cc46ec79fea43227d578bee39cb4129ad9bb1603 | [
"MIT"
] | 11 | 2019-05-13T00:04:38.000Z | 2022-01-20T08:56:38.000Z | /* Copyright (C) 2010-2019, The Regents of The University of Michigan.
All rights reserved.
This software was developed as part of the The Vulcan project in the Intelligent Robotics Lab
under the direction of Benjamin Kuipers, kuipers@umich.edu. Use of this code is governed by an
MIT-style License that can be foun... | 21.8 | 95 | 0.653805 | h2ssh |
78939c5b6c11c9e1e7fcdc27074e863789065276 | 19,672 | cpp | C++ | src/librt/db_fp.cpp | earl-ducaine/brlcad-mirror | 402bd3542a10618d1f749b264cadf9b0bd723546 | [
"BSD-4-Clause",
"BSD-3-Clause"
] | 1 | 2020-05-31T13:26:42.000Z | 2020-05-31T13:26:42.000Z | src/librt/db_fp.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | src/librt/db_fp.cpp | pombredanne/sf.net-brlcad | fb56f37c201b51241e8f3aa7b979436856f43b8c | [
"BSD-4-Clause",
"BSD-3-Clause"
] | null | null | null | /* D B _ F P . C P P
* BRL-CAD
*
* Copyright (c) 1990-2019 United States Government as represented by
* the U.S. Army Research Laboratory.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* version 2.1 as... | 26.476447 | 113 | 0.606242 | earl-ducaine |
789b3a1b35413d590dd72ce0a3133766e88a49f7 | 674 | hh | C++ | Validation/inc/ValStrawGasStep.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null | Validation/inc/ValStrawGasStep.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null | Validation/inc/ValStrawGasStep.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null |
#ifndef ValStrawGasStep_HH_
#define ValStrawGasStep_HH_
#include "art/Framework/Principal/Event.h"
#include "art_root_io/TFileDirectory.h"
#include "MCDataProducts/inc/StrawGasStep.hh"
#include "TH1D.h"
#include <string>
namespace mu2e {
class ValStrawGasStep {
public:
ValStrawGasStep(std::string name):_na... | 18.216216 | 75 | 0.673591 | knoepfel |
a19ce234225c150f973aa74a34087d6dedf3bef0 | 1,100 | hh | C++ | TEvtGen/EvtGen/EvtGenModels/EvtISGW.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | TEvtGen/EvtGen/EvtGenModels/EvtISGW.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | TEvtGen/EvtGen/EvtGenModels/EvtISGW.hh | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... | 20.754717 | 76 | 0.603636 | AllaMaevskaya |
a19dc4c5e0946d60d695c7448c4be8d6c6866ee7 | 4,553 | hpp | C++ | ZeroLibraries/Math/EulerOrder.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 52 | 2018-09-11T17:18:35.000Z | 2022-03-13T15:28:21.000Z | ZeroLibraries/Math/EulerOrder.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 1,409 | 2018-09-19T18:03:43.000Z | 2021-06-09T08:33:33.000Z | ZeroLibraries/Math/EulerOrder.hpp | RachelWilSingh/ZeroCore | e9a2f82d395e5c89fb98eceac44ce60d016dbff3 | [
"MIT"
] | 26 | 2018-09-11T17:16:32.000Z | 2021-11-22T06:21:19.000Z | ///////////////////////////////////////////////////////////////////////////////
///
/// \file EulerOrder.hpp
/// Declaration of the Euler angles order as described in Graphic Gems IV,
/// EulerOrder design referenced from Insomniac Games.
///
/// Authors: Benjamin Strukus
/// Copyright 2010-2012, DigiPen ... | 32.29078 | 81 | 0.604876 | RachelWilSingh |
a1a1126dd4c2e9be6ddfee58edea4ae279393409 | 1,970 | cpp | C++ | cpp/tests/opendnp3/src/mocks/BufferSegment.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | cpp/tests/opendnp3/src/mocks/BufferSegment.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | cpp/tests/opendnp3/src/mocks/BufferSegment.cpp | sidhoda/dnp3 | 0469f308cb3321e8f5b57ccc2e26a34eb430941c | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to Green Energy Corp (www.greenenergycorp.com) under one or
* more contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright ownership.
* Green Energy Corp licenses this file to you under the Apache License,
* Version 2.0 (the "Lic... | 25.921053 | 104 | 0.748731 | sidhoda |
a1a157613ba699177416f85d21a783424d06f446 | 388 | cpp | C++ | networktables2/connection/BadMessageException.cpp | rbmj/wpilib | f609b8b10d3991024cbd4d423765b9c7b67fa7ed | [
"BSD-3-Clause"
] | 17 | 2015-01-04T15:00:38.000Z | 2020-03-05T17:11:00.000Z | networktables2/connection/BadMessageException.cpp | rbmj/wpilib | f609b8b10d3991024cbd4d423765b9c7b67fa7ed | [
"BSD-3-Clause"
] | null | null | null | networktables2/connection/BadMessageException.cpp | rbmj/wpilib | f609b8b10d3991024cbd4d423765b9c7b67fa7ed | [
"BSD-3-Clause"
] | 7 | 2015-12-18T18:16:27.000Z | 2019-12-02T09:52:53.000Z | /*
* BadMessageException.cpp
*
* Created on: Sep 16, 2012
* Author: Mitchell Wills
*/
#include "networktables2/connection/BadMessageException.h"
BadMessageException::BadMessageException(const char* msg)
: message(msg)
{
}
BadMessageException::~BadMessageException() throw ()
{
}
const... | 16.166667 | 59 | 0.677835 | rbmj |
a1a3ce5b5f3db878c534648b0de587e0fdcad1ba | 2,109 | hh | C++ | src/physics/em/FluctuationInterface.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/physics/em/FluctuationInterface.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | null | null | null | src/physics/em/FluctuationInterface.hh | amandalund/celeritas | c631594b00c040d5eb4418fa2129f88c01e29316 | [
"Apache-2.0",
"MIT"
] | null | null | null | //----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... | 32.446154 | 79 | 0.514936 | amandalund |
a1a55c01402f14021e20d92fdd4a96f757c90bdd | 2,179 | cc | C++ | Drivers/X86/Console/VgaConsole.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | 1 | 2018-07-08T15:47:57.000Z | 2018-07-08T15:47:57.000Z | Drivers/X86/Console/VgaConsole.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | Drivers/X86/Console/VgaConsole.cc | ahoka/esrtk | bb5ff7f9caa22b6d6d91e660c6d78e471394a0cc | [
"BSD-2-Clause"
] | null | null | null | #include <X86/VgaConsole.hh>
#include <X86/IoPort.hh>
#include <Memory.hh>
#include <Debug.hh>
//extern VgaConsole vgaConsole;
static VgaConsole vgaConsole;
VgaConsole::VgaConsole()
: vramSizeM(VgaColumns * VgaRows * sizeof(VgaCharacter)),
vramM(0),
lock(),
backgroundColor(Blue),
foregroundColo... | 17.572581 | 107 | 0.616797 | ahoka |
a1a5ee1c8f53e3b8c1f00864e803cd9f6465dd36 | 2,702 | cpp | C++ | teave/epoll/epoll_mgr.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | teave/epoll/epoll_mgr.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | teave/epoll/epoll_mgr.cpp | teave-team/teave | 0effbf60ad5a3bc5f6f79def01bcb6ab04853979 | [
"MIT",
"BSL-1.0",
"Unlicense"
] | null | null | null | /*
* Copyright 2021 Pedram Tiv
*
* Licensed under the Teave Public License (the "License");
* You may obtain a copy of the License at https://www.teave.io/teave-public-license.html
*
* This software is distributed under the License on an "AS IS" BASIS, WITHOUT WARRANTIES
* OF ANY KIND, either express or implied... | 27.292929 | 95 | 0.629164 | teave-team |
a1a830c4aaaa4266f647cd55ddcfe888409c2a92 | 14,966 | cc | C++ | tkrzw_server.cc | kawanet/tkrzw-rpc | 8656f1dcacc9e6414c6d3a1377198d501df5026f | [
"Apache-2.0"
] | null | null | null | tkrzw_server.cc | kawanet/tkrzw-rpc | 8656f1dcacc9e6414c6d3a1377198d501df5026f | [
"Apache-2.0"
] | null | null | null | tkrzw_server.cc | kawanet/tkrzw-rpc | 8656f1dcacc9e6414c6d3a1377198d501df5026f | [
"Apache-2.0"
] | null | null | null | /*************************************************************************************************
* RPC server command of Tkrzw
*
* Copyright 2020 Google LLC
* 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 ... | 39.803191 | 99 | 0.64847 | kawanet |
a1b0687caffbc97534ec2bcfa799a77150f07f4a | 135 | cpp | C++ | GameCore/functions.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | GameCore/functions.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | GameCore/functions.cpp | MiKlTA/game_RPG_project | 9d460e9fb5e0449e457ba94e44a0d6fc5b491012 | [
"MIT"
] | null | null | null | #include "functions.h"
bool randomize(unsigned char chance)
{
// 0..254 < 0 and 0..254 < 255
return rand() % 255 < chance;
}
| 15 | 36 | 0.607407 | MiKlTA |
a1b1065e17b81d652f071d63d3f060506f7d0de1 | 11,201 | cpp | C++ | openstudiocore/src/shared_gui_components/BuildingComponentDialog.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 4 | 2015-05-02T21:04:15.000Z | 2015-10-28T09:47:22.000Z | openstudiocore/src/shared_gui_components/BuildingComponentDialog.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | null | null | null | openstudiocore/src/shared_gui_components/BuildingComponentDialog.cpp | BIMDataHub/OpenStudio-1 | 13ec115b00aa6a2af1426ceb26446f05014c8c8d | [
"blessing"
] | 1 | 2020-11-12T21:52:36.000Z | 2020-11-12T21:52:36.000Z | /**********************************************************************
* Copyright (c) 2008-2015, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publ... | 31.200557 | 160 | 0.732613 | BIMDataHub |
a1b27377620b1b9015937b3365ba0e43177013fc | 2,852 | cpp | C++ | NVEncCore/rgy_input.cpp | upsilon/NVEnc | 3355ec6afe4bcd83df10332af9ae17da04db7b0f | [
"MIT"
] | null | null | null | NVEncCore/rgy_input.cpp | upsilon/NVEnc | 3355ec6afe4bcd83df10332af9ae17da04db7b0f | [
"MIT"
] | null | null | null | NVEncCore/rgy_input.cpp | upsilon/NVEnc | 3355ec6afe4bcd83df10332af9ae17da04db7b0f | [
"MIT"
] | null | null | null | // -----------------------------------------------------------------------------------------
// QSVEnc/NVEnc by rigaya
// -----------------------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2011-2016 rigaya
//
// Permission is hereby granted, free of ... | 36.564103 | 166 | 0.597826 | upsilon |
a1babc1bdb880368592d4b1dc7b29692a432b80a | 1,783 | cpp | C++ | UAlbertaBot/Source/research/sparcraft/UnitCommandData.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | UAlbertaBot/Source/research/sparcraft/UnitCommandData.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | UAlbertaBot/Source/research/sparcraft/UnitCommandData.cpp | iali17/TheDon | f21cae2357835e7a21ebf351abb6bb175f67540c | [
"MIT"
] | null | null | null | #include "UnitCommandData.h"
using namespace UAlbertaBot;
UnitCommandData::UnitCommandData()
: _unit(NULL)
, _phase(UnitCommandData::NONE)
, _enteredReady(0)
, _enteredAttacking(0)
, _enteredReloading(0)
, _waitCommandGiven(0)
{
}
UnitCommandData::UnitCommandData(BWAPI::UnitInterface* unit)
:... | 20.261364 | 149 | 0.660123 | iali17 |
a1bf3d9abad8f62b2639db5d94c98f9ee4811d33 | 1,507 | cpp | C++ | Rotate by 90 degree - GFG/rotate-by-90-degree.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-01-02T10:29:32.000Z | 2022-01-02T10:29:32.000Z | Rotate by 90 degree - GFG/rotate-by-90-degree.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | null | null | null | Rotate by 90 degree - GFG/rotate-by-90-degree.cpp | Jatin-Shihora/LeetCode-Solutions | 8e6fc84971ec96ec1263ba5ba2a8ae09e6404398 | [
"MIT"
] | 1 | 2022-03-04T12:44:14.000Z | 2022-03-04T12:44:14.000Z | // { Driver Code Starts
//Initial template for C++
#include<bits/stdc++.h>
using namespace std;
void rotate (vector<vector<int> >& matrix);
// } Driver Code Ends
//User function template for C++
/* matrix : given input matrix, you are require
to change it in place without using extra space
Algo :- Taking tra... | 19.828947 | 66 | 0.441938 | Jatin-Shihora |
a1bfc203e0357faa78f8c78563cfff2ff7a0f08c | 919 | hpp | C++ | EscFunc.hpp | lomnom/nncurses | c3f01c38e652028320185bea4aef2f52595ecfda | [
"MIT"
] | null | null | null | EscFunc.hpp | lomnom/nncurses | c3f01c38e652028320185bea4aef2f52595ecfda | [
"MIT"
] | null | null | null | EscFunc.hpp | lomnom/nncurses | c3f01c38e652028320185bea4aef2f52595ecfda | [
"MIT"
] | 1 | 2021-07-20T10:19:12.000Z | 2021-07-20T10:19:12.000Z | #ifndef EscFunc
#define EscFunc
#include <iostream>
#include <sys/ioctl.h>
#include <termios.h>
#include <unistd.h>
namespace nc{
void gettermsize(int* width, int* height) {
struct winsize w;
ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
*width=w.ws_col;
*height=w.ws_row;
}
std::st... | 20.422222 | 51 | 0.565832 | lomnom |
a1c05652a58338bba7312921106e59f0ad620836 | 585 | cpp | C++ | exercises/2&4/Data Structures/Stack/BasicStack.cpp | shegunov/SDP20-21 | 6980057b58954f59873881318abf2292e941e8bd | [
"CC0-1.0"
] | 7 | 2020-10-05T09:32:28.000Z | 2022-03-25T07:58:12.000Z | exercises/2&4/Data Structures/Stack/BasicStack.cpp | ymivanov/SDP20-21 | a07e5945e2ec6e25f9a57352ff550c3c258eff1a | [
"CC0-1.0"
] | 2 | 2020-11-16T20:41:04.000Z | 2020-12-15T11:10:20.000Z | exercises/2&4/Data Structures/Stack/BasicStack.cpp | ymivanov/SDP20-21 | a07e5945e2ec6e25f9a57352ff550c3c258eff1a | [
"CC0-1.0"
] | 6 | 2020-10-09T15:46:55.000Z | 2021-01-12T17:47:11.000Z | // Very basic example of a stack
#include <iostream>
const size_t CAPACITY = 128;
size_t size = 0;
int stack[ CAPACITY ] = { 0, };
void push( int elem )
{
stack[ size++ ] = elem;
}
void pop()
{
if ( size > 0 )
{
--size;
}
}
int& top()
... | 10.833333 | 45 | 0.401709 | shegunov |
a1c2a71cb484a4a79632aade5faa27c41cb8c71c | 907 | cpp | C++ | src/lib/dialogs/dlogin.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | 1 | 2021-03-16T21:47:41.000Z | 2021-03-16T21:47:41.000Z | src/lib/dialogs/dlogin.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | src/lib/dialogs/dlogin.cpp | leaderit/ananas-qt4 | 6830bf5074b316582a38f6bed147a1186dd7cc95 | [
"MIT"
] | null | null | null | #include "dlogin.h"
#include <qvariant.h>
#include <qimage.h>
#include <qpixmap.h>
/*
* Constructs a dLogin as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*
* The dialog will by default be modeless, unless you set 'modal' to
* true to construct a modal dialog.
*/
dLogin::dLogin(... | 17.113208 | 81 | 0.651599 | leaderit |
a1c3588d057bc945973dd7cb44441913b57798af | 551 | cpp | C++ | libs/font/src/font/from_fcppt_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/font/src/font/from_fcppt_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/font/src/font/from_fcppt_string.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/font/from_fcppt_string.hpp>
#include <sge/font/from_std_wstring.hpp>
#include <sge/fo... | 34.4375 | 76 | 0.733212 | cpreh |
a1c5edc7418b7654657298ec9ffad7cb7a62da13 | 3,053 | cpp | C++ | aws-cpp-sdk-budgets/source/model/IamActionDefinition.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-budgets/source/model/IamActionDefinition.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-budgets/source/model/IamActionDefinition.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/budgets/model/IamActionDefinition.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
n... | 23.666667 | 90 | 0.711104 | perfectrecall |
a1c911143ec0e19b9d76d9f4617cf11b3bd5cbf2 | 2,096 | cpp | C++ | check_test/check_test.cpp | bodsch/coremedia_icinga2_checks | d3e141e312aa779e241161941623d0aee3129a55 | [
"MIT"
] | 1 | 2018-03-06T15:22:31.000Z | 2018-03-06T15:22:31.000Z | check_test/check_test.cpp | bodsch/coremedia_icinga2_checks | d3e141e312aa779e241161941623d0aee3129a55 | [
"MIT"
] | null | null | null | check_test/check_test.cpp | bodsch/coremedia_icinga2_checks | d3e141e312aa779e241161941623d0aee3129a55 | [
"MIT"
] | null | null | null |
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <string>
#include <cctype>
#include <vector>
#include <limits>
#include <algorithm>
#include <map>
#include <hiredis/hiredis.h>
#include <common.h>
#include <resolver.h>
#include <md5.h>
const char *progname = "check_test";
const char *NP_VERSION = "... | 22.537634 | 99 | 0.613073 | bodsch |
a1cbdb5b438a86e8ba71a7a6e7987ef9a34232bb | 1,256 | cpp | C++ | cmake-build-debug/test/unit/mechanisms/param_as_state_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/test/unit/mechanisms/param_as_state_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | cmake-build-debug/test/unit/mechanisms/param_as_state_gpu.cpp | anstaf/arbsimd | c4ba87b02b26a47ef33d0a3eba78a4f330c88073 | [
"BSD-3-Clause"
] | null | null | null | #include <arbor/mechanism_abi.h>
#include <cmath>
namespace testing {
void mechanism_param_as_state_gpu_init_(arb_mechanism_ppack*);
void mechanism_param_as_state_gpu_advance_state_(arb_mechanism_ppack*);
void mechanism_param_as_state_gpu_compute_currents_(arb_mechanism_ppack*);
void mechanism_param_as_state_gpu_write... | 41.866667 | 101 | 0.850318 | anstaf |
a1cc61e9ad295995a7fe682ae59be0cc35fadb8a | 4,267 | cpp | C++ | Projects/StoreAppLauncher/Controller.cpp | dmix90/StoreAppLauncher | 03d439a35bd1433f24f9d0e7cb834f5e82a3aca5 | [
"MIT"
] | 37 | 2016-04-12T23:52:57.000Z | 2021-01-06T16:17:23.000Z | Projects/StoreAppLauncher/Controller.cpp | dmix90/StoreAppLauncher | 03d439a35bd1433f24f9d0e7cb834f5e82a3aca5 | [
"MIT"
] | 6 | 2016-05-07T18:31:05.000Z | 2021-02-03T16:21:44.000Z | Projects/StoreAppLauncher/Controller.cpp | dmix90/StoreAppLauncher | 03d439a35bd1433f24f9d0e7cb834f5e82a3aca5 | [
"MIT"
] | 5 | 2016-04-02T04:05:30.000Z | 2017-11-28T23:03:48.000Z | #include "Controller.h"
int ControllerButtons[ ] =
{
XINPUT_GAMEPAD_GUIDE,
XINPUT_GAMEPAD_DPAD_UP,
XINPUT_GAMEPAD_DPAD_DOWN,
XINPUT_GAMEPAD_DPAD_LEFT,
XINPUT_GAMEPAD_DPAD_RIGHT,
XINPUT_GAMEPAD_START,
XINPUT_GAMEPAD_BACK,
XINPUT_GAMEPAD_LEFT_THUMB,
XINPUT_GAMEPAD_RIGHT_THUMB,
XINPUT_GAMEPAD_LEFT_SHOULDER,
XI... | 19.846512 | 104 | 0.649871 | dmix90 |
a1cd54ecfcf5e6e57e2f4551dea8d7b2dffb8272 | 6,673 | cpp | C++ | src/Preprocessor-flattenPredicate.cpp | typesAreSpaces/AXDInterpolator | e0759c806480ff54b7a4f878e007b534a71dad44 | [
"MIT"
] | null | null | null | src/Preprocessor-flattenPredicate.cpp | typesAreSpaces/AXDInterpolator | e0759c806480ff54b7a4f878e007b534a71dad44 | [
"MIT"
] | 1 | 2021-06-24T18:55:46.000Z | 2021-06-24T18:55:46.000Z | src/Preprocessor-flattenPredicate.cpp | typesAreSpaces/AXDInterpolator | e0759c806480ff54b7a4f878e007b534a71dad44 | [
"MIT"
] | null | null | null | #include "Preprocess.h"
#define SUBSTITUTE_AND_ADJOINT(INPUT_PART)\
for(unsigned i = 0; i < INPUT_PART.size(); i++)\
temp_predicates.push_back(\
INPUT_PART[i].substitute(old_terms, fresh_consts)\
);\
\
for(unsigned i = 0; i < old_terms.size(); i++)\
temp_predicates.push_back(fresh_con... | 26.480159 | 75 | 0.608722 | typesAreSpaces |
a1d36420b4c929a44bc4a39e7b3b4af014097c5e | 2,089 | hpp | C++ | include/OS/Mutex.hpp | krtkr/eth_ctrl_gui | 36f43d08447ca4155c5ba7c8d5de72ec84813316 | [
"MIT"
] | null | null | null | include/OS/Mutex.hpp | krtkr/eth_ctrl_gui | 36f43d08447ca4155c5ba7c8d5de72ec84813316 | [
"MIT"
] | null | null | null | include/OS/Mutex.hpp | krtkr/eth_ctrl_gui | 36f43d08447ca4155c5ba7c8d5de72ec84813316 | [
"MIT"
] | null | null | null | /*
* Mutex.hpp
*
* Created on: 16 сентября 2016 г.
* Author: krtkr
*
* MIT License
*
* Copyright (c) 2016 Kirill Kranke (krtkr), kranke.kirill@gmail.com
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"... | 23.738636 | 81 | 0.716611 | krtkr |
a1d502cbfec3a0903b9be3e3e64f5f80b950e49c | 589 | hpp | C++ | include/ReadingFolderFiles.hpp | allandemiranda/forex-financial-analysis | 7688478607da258cb61bd7e009961083ee7849cf | [
"Unlicense"
] | null | null | null | include/ReadingFolderFiles.hpp | allandemiranda/forex-financial-analysis | 7688478607da258cb61bd7e009961083ee7849cf | [
"Unlicense"
] | null | null | null | include/ReadingFolderFiles.hpp | allandemiranda/forex-financial-analysis | 7688478607da258cb61bd7e009961083ee7849cf | [
"Unlicense"
] | null | null | null | /**
* @file ReadingFolderFiles.hpp
* @author Allan de Miranda Silva (allandemiranda@gmail.com)
* @brief Classe para gerenciar a leitura de todos os arquivos de todas as
* pastas
* @version 0.1
* @date 25-09-2019
*
* @copyright Copyright (c) 2019
*
*/
#ifndef READINGFOLDERFILES_HPP_
#define READINGFOLDERFILES... | 20.310345 | 74 | 0.719864 | allandemiranda |
a1db06f8352cfa4d28e4f396bc6f5a6152324df8 | 10,309 | hpp | C++ | javaStructures/jdk-master/src/hotspot/share/jvmci/jvmci_globals.hpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:52:15.000Z | 2020-12-26T04:52:15.000Z | javaStructures/jdk-master/src/hotspot/share/jvmci/jvmci_globals.hpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2020-12-26T04:57:19.000Z | 2020-12-26T04:57:19.000Z | javaStructures/jdk-master/src/hotspot/share/jvmci/jvmci_globals.hpp | IThawk/learnCode | 0ac843d28b193eaab33fb33692f18361d71c7331 | [
"MIT"
] | 1 | 2021-12-06T01:13:18.000Z | 2021-12-06T01:13:18.000Z | /*
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 60.641176 | 82 | 0.446406 | IThawk |
a1df35b154352098192381fed42fd520509ee9fd | 3,028 | hpp | C++ | mapproxy/src/mapproxy/support/mmapped/memory-impl.hpp | melowntech/vts-mapproxy | 241ba43c1f7dcc226ec0f2089d47e11c699c2587 | [
"BSD-2-Clause"
] | 13 | 2019-05-03T06:09:47.000Z | 2022-01-10T05:05:45.000Z | mapproxy/src/mapproxy/support/mmapped/memory-impl.hpp | melowntech/vts-mapproxy | 241ba43c1f7dcc226ec0f2089d47e11c699c2587 | [
"BSD-2-Clause"
] | 10 | 2019-04-16T12:43:30.000Z | 2022-02-08T02:44:09.000Z | mapproxy/src/mapproxy/support/mmapped/memory-impl.hpp | melowntech/vts-mapproxy | 241ba43c1f7dcc226ec0f2089d47e11c699c2587 | [
"BSD-2-Clause"
] | 4 | 2019-09-25T04:57:57.000Z | 2022-01-10T05:05:46.000Z | /**
* Copyright (c) 2017 Melown Technologies SE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... | 36.047619 | 78 | 0.717966 | melowntech |
a1dfe06ce2f0cc8f57f30429754235af40369b5c | 1,602 | cpp | C++ | winrt/test.external/CanvasGradientMeshTests.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 1,002 | 2015-01-09T19:40:01.000Z | 2019-05-04T12:05:09.000Z | winrt/test.external/CanvasGradientMeshTests.cpp | r2d2rigo/Win2D | 3f06d4f19b7d16b67859a1b30ac770215ef3e52d | [
"MIT"
] | 667 | 2015-01-02T19:04:11.000Z | 2019-05-03T14:43:51.000Z | winrt/test.external/CanvasGradientMeshTests.cpp | SunburstApps/Win2D.WinUI | 75a33f8f4c0c785c2d1b478589fd4d3a9c5b53df | [
"MIT"
] | 258 | 2015-01-06T07:44:49.000Z | 2019-05-01T15:50:59.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "pch.h"
#if WINVER > _WIN32_WINNT_WINBLUE
using namespace Microsoft::Graphics::Canvas::Geometry;
TEST_CLASS(CanvasGradientMeshTests)
{
CanvasDe... | 30.226415 | 104 | 0.737828 | r2d2rigo |
a1e04ce2f6bb296292f3635e8a074bdf7a9a5745 | 4,567 | cpp | C++ | examples/newton_z6.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | 5 | 2017-09-05T00:59:29.000Z | 2021-10-02T23:36:03.000Z | examples/newton_z6.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | null | null | null | examples/newton_z6.cpp | richmit/mraster | e181cdd08bc477a07a97dc419f15c4550f754fa9 | [
"BSD-3-Clause"
] | null | null | null | // -*- Mode:C++; Coding:us-ascii-unix; fill-column:158 -*-
/**************************************************************************************************************************************************************/
/**
@file newton_z6.cpp
@author Mitch Richling <https://www.mitchr.me>
@brief Draw a ... | 55.695122 | 160 | 0.585067 | richmit |
a1e1f7733878d1f981bd43ec6181e99a3e877b7d | 2,486 | cpp | C++ | src/ivulk/core/sampler.cpp | zfzackfrost/incredible_vulk | b5a6eb7072d5dc1d6e7a24d31379c1c6986f225c | [
"MIT"
] | null | null | null | src/ivulk/core/sampler.cpp | zfzackfrost/incredible_vulk | b5a6eb7072d5dc1d6e7a24d31379c1c6986f225c | [
"MIT"
] | null | null | null | src/ivulk/core/sampler.cpp | zfzackfrost/incredible_vulk | b5a6eb7072d5dc1d6e7a24d31379c1c6986f225c | [
"MIT"
] | null | null | null | #define IVULK_SOURCE
#include <ivulk/config.hpp>
#include <ivulk/core/sampler.hpp>
#include <ivulk/core/app.hpp>
namespace ivulk {
Sampler::Sampler(VkDevice device, VkSampler sampler, VkDescriptorSetLayoutBinding binding)
: base_t(device, handles_t {sampler, binding})
{ }
Sampler* Sampler::creat... | 42.135593 | 94 | 0.58206 | zfzackfrost |
a1e4a14d6966604044a804f73eebcb1d7a1e8f9a | 221 | hpp | C++ | src/otus_homework/include/otus_homework/interfaces/i_fuel_checkable.hpp | winmord/otus_homework | 161cb5b63679c249eb5a94c0d2f66aa2ad6af634 | [
"MIT"
] | null | null | null | src/otus_homework/include/otus_homework/interfaces/i_fuel_checkable.hpp | winmord/otus_homework | 161cb5b63679c249eb5a94c0d2f66aa2ad6af634 | [
"MIT"
] | null | null | null | src/otus_homework/include/otus_homework/interfaces/i_fuel_checkable.hpp | winmord/otus_homework | 161cb5b63679c249eb5a94c0d2f66aa2ad6af634 | [
"MIT"
] | null | null | null | #pragma once
namespace tank_battle_server
{
class i_fuel_checkable
{
public:
virtual ~i_fuel_checkable() = default;
virtual int get_fuel_burn_velocity() const = 0;
virtual int get_fuel_amount() const = 0;
};
}
| 17 | 49 | 0.737557 | winmord |
a1e4c949b60b0bfdf16b934487ecb9318d8d30cb | 228 | hpp | C++ | pythran/pythonic/operator_/__mul__.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/__mul__.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/operator_/__mul__.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | 1 | 2017-03-12T20:32:36.000Z | 2017-03-12T20:32:36.000Z | #ifndef PYTHONIC_OPERATOR_MUL__HPP
#define PYTHONIC_OPERATOR_MUL__HPP
#include "pythonic/operator_/mul.hpp"
namespace pythonic {
namespace operator_ {
FPROXY(pythonic::operator_, __mul__, mul);
}
}
#endif
| 13.411765 | 50 | 0.732456 | Pikalchemist |
a1e8a1a84c648b6b7112350ad47468caccd9f69f | 2,986 | hpp | C++ | engine/backends/opengl/buffer.hpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/opengl/buffer.hpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | null | null | null | engine/backends/opengl/buffer.hpp | thomtl/Benzene | 603f924a2471a115144b58af27028f6d913fc42a | [
"MIT"
] | 1 | 2020-04-12T18:52:20.000Z | 2020-04-12T18:52:20.000Z | #pragma once
#include "base.hpp"
namespace benzene::opengl {
template<GLenum target>
class Buffer {
public:
static_assert(target == GL_ARRAY_BUFFER || target == GL_ATOMIC_COUNTER_BUFFER || target == GL_COPY_READ_BUFFER || target == GL_COPY_WRITE_BUFFER ||
target == GL_DI... | 37.325 | 173 | 0.602813 | thomtl |
a1f574652d263c2e60a4c465c1e72b13a5f73d7d | 5,611 | cc | C++ | third_party/drogon/trantor/trantor/utils/MsgBuffer.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | 2 | 2022-02-04T18:31:33.000Z | 2022-02-15T01:45:51.000Z | third_party/drogon/trantor/trantor/utils/MsgBuffer.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | 1 | 2021-11-03T14:24:51.000Z | 2021-11-03T14:24:51.000Z | third_party/drogon/trantor/trantor/utils/MsgBuffer.cc | zh7314/drogon_test | 0411ef34d419630a3f20df8bd6e5baf75651ddfe | [
"BSD-3-Clause"
] | null | null | null | /**
*
* MsgBuffer.cc
* An Tao
*
* Public header file in trantor lib.
*
* Copyright 2018, An Tao. All rights reserved.
* Use of this source code is governed by a BSD-style license
* that can be found in the License file.
*
*
*/
#include <trantor/utils/MsgBuffer.h>
#include <trantor/uti... | 24.081545 | 78 | 0.593299 | zh7314 |
a1f5c7ff011a4d6e42138ecb3f92353ece72d2e4 | 911 | cpp | C++ | uva/821.cpp | larc/competitive_programming | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | 1 | 2019-05-23T19:05:39.000Z | 2019-05-23T19:05:39.000Z | uva/821.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | uva/821.cpp | larc/oremor | deccd7152a14adf217c58546d1cf8ac6b45f1c52 | [
"MIT"
] | null | null | null | // 821 - Page Hopping
#include <cstdio>
#include <cstring>
#include <queue>
#define N 101
int G[N][N];
int size[N];
int visited[N];
float bfs(int u)
{
int v;
float sum = 0;
memset(visited, -1, sizeof(visited));
visited[u] = 0;
std::queue<int> q;
q.push(u);
while(!q.empty())
{
u = q.front();
q.pop();
... | 12.479452 | 92 | 0.475302 | larc |
a1f8ddb2345d13df576ce4666b662064c77c60d7 | 957 | cpp | C++ | cpp/sowcpp/src/ch11/prog11-2.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | cpp/sowcpp/src/ch11/prog11-2.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | cpp/sowcpp/src/ch11/prog11-2.cpp | newnix/Forge | 6d18105460fabc20592ed3c29813173cdb57d512 | [
"BSD-3-Clause-Clear"
] | null | null | null | // Practice program 11-2 found on page 601
// Using data structures to describe a circle
#include <iostream>
#include <cmath> // for the "pow" function
#include <iomanip>
using namespace std;
// Constant for pi
const double PI = 3.14159;
// Structure declaration of a circle
struct circle
{
double radius; ... | 22.785714 | 56 | 0.615465 | newnix |
a1ff600518ec3ae4784913e2bcae7a6dcbd8d586 | 18,553 | cpp | C++ | shielding/src/pocman.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | null | null | null | shielding/src/pocman.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | null | null | null | shielding/src/pocman.cpp | GiuMaz/XPOMCP | ba109f390ddc3c6224f7f41b20839866d6a232d8 | [
"MIT"
] | 1 | 2022-02-08T03:25:37.000Z | 2022-02-08T03:25:37.000Z | #include "pocman.h"
#include "utils.h"
using namespace std;
using namespace UTILS;
POCMAN::POCMAN(int xsize, int ysize)
: Maze(xsize, ysize),
PassageY(-1),
SmellRange(1),
HearRange(2),
FoodProb(0.5),
ChaseProb(0.75),
DefensiveSlip(0.25),
PowerNumSteps(15),
RewardClearLevel(+1000),
... | 29.309637 | 94 | 0.516574 | GiuMaz |
b80379d0f5aad37851b913f302f212527c3b82a3 | 3,977 | cpp | C++ | code/PageClassInheritance.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | 1 | 2022-02-10T01:41:32.000Z | 2022-02-10T01:41:32.000Z | code/PageClassInheritance.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null | code/PageClassInheritance.cpp | omerdagan84/neomem | 7d2f782bb37f1ab0ac6580d00672e114605afab7 | [
"MIT"
] | null | null | null |
// CPageClassInheritance
#include "precompiled.h"
#include "NeoMem.h"
#include "PageClassInheritance.h"
#include "ConstantsDatabase.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_DYNCREATE(CPageClassInheritance, CPropertyPage)
BEGIN_MESSAGE_MAP(... | 23.394118 | 137 | 0.748051 | omerdagan84 |
b80442536bdb87ec6544cbb627ee11eeed4df7b0 | 4,114 | cpp | C++ | src/main/cpp/utilities/bufferpool.cpp | teotigraphix/MWEngine | 5b3ac365989b7430f37aef49c8e010cec68dd4a0 | [
"MIT"
] | null | null | null | src/main/cpp/utilities/bufferpool.cpp | teotigraphix/MWEngine | 5b3ac365989b7430f37aef49c8e010cec68dd4a0 | [
"MIT"
] | null | null | null | src/main/cpp/utilities/bufferpool.cpp | teotigraphix/MWEngine | 5b3ac365989b7430f37aef49c8e010cec68dd4a0 | [
"MIT"
] | null | null | null | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Igor Zinken - http://www.igorski.nl
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitati... | 35.465517 | 105 | 0.634662 | teotigraphix |
b807418999ab6d779cd992b142316ceb1f7802f7 | 5,136 | hpp | C++ | spline/spline.hpp | PROGrand/opentrack | 30df938366cdb17c937a2d79169aec40792466c0 | [
"ISC"
] | 1 | 2021-10-10T20:44:53.000Z | 2021-10-10T20:44:53.000Z | spline/spline.hpp | PROGrand/opentrack | 30df938366cdb17c937a2d79169aec40792466c0 | [
"ISC"
] | null | null | null | spline/spline.hpp | PROGrand/opentrack | 30df938366cdb17c937a2d79169aec40792466c0 | [
"ISC"
] | null | null | null | /* Copyright (c) 2012-2019, Stanislaw Halik <sthalik@misaki.pl>
* Permission to use, copy, modify, and/or 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.
*/
#pragma once
#include "opti... | 28.853933 | 95 | 0.722741 | PROGrand |
b80aab07319c1b38d9c97a660c4aeacf6ef2bbd5 | 371 | hpp | C++ | include/libp2p/peer/errors.hpp | Alexey-N-Chernyshov/cpp-libp2p | 8b52253f9658560a4b1311b3ba327f02284a42a6 | [
"Apache-2.0",
"MIT"
] | 135 | 2020-06-13T08:57:36.000Z | 2022-03-27T05:26:11.000Z | include/libp2p/peer/errors.hpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 41 | 2020-06-12T15:45:05.000Z | 2022-03-07T23:10:33.000Z | include/libp2p/peer/errors.hpp | igor-egorov/cpp-libp2p | 7c9d83bf0760a5f653d86ddbb00645414c61d4fc | [
"Apache-2.0",
"MIT"
] | 43 | 2020-06-15T10:12:45.000Z | 2022-03-21T03:04:50.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef LIBP2P_PEER_ERRORS_HPP
#define LIBP2P_PEER_ERRORS_HPP
#include <libp2p/outcome/outcome.hpp>
namespace libp2p::peer {
enum class PeerError { SUCCESS = 0, NOT_FOUND };
}
OUTCOME_HPP_DECLARE_ERROR(libp2p::p... | 18.55 | 53 | 0.754717 | Alexey-N-Chernyshov |
b80e777319add6a65b7a4c6207a79cc0db1c015f | 3,725 | cpp | C++ | test/unit/math/nfft/dnfft_1d_gpu_test.cpp | Wentzell/DCA | 06f5fb2c0255ab7333baca585c041c179eb96c80 | [
"BSD-3-Clause"
] | 1 | 2021-06-16T16:26:22.000Z | 2021-06-16T16:26:22.000Z | test/unit/math/nfft/dnfft_1d_gpu_test.cpp | Adedapo01/DCA | b7c78d0c45d4fd9d04661070e8c0e1449c85a651 | [
"BSD-3-Clause"
] | 11 | 2020-04-22T14:50:27.000Z | 2021-09-10T05:43:51.000Z | test/unit/math/nfft/dnfft_1d_gpu_test.cpp | Adedapo01/DCA | b7c78d0c45d4fd9d04661070e8c0e1449c85a651 | [
"BSD-3-Clause"
] | 1 | 2019-09-22T16:33:19.000Z | 2019-09-22T16:33:19.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE.txt for terms of usage.
// See CITATION.txt for citation guidelines if you use this code for scientific publications.
//
// Author: Giovanni Balduzzi (gbalduzz@itp.phys.ethz.ch)
//
// This file tests the Dn... | 40.48913 | 111 | 0.725906 | Wentzell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.