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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2af49f6548a23e9d8075e31edfcdcec88ff0e80b | 2,167 | cpp | C++ | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/BeginningC++17/Chapter07/Exercises/Exercise7_02/Exercise7_02.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2021 Cody R. Drisko. All rights reserved.
// Licensed under the MIT License. See the LICENSE file in the project root for more information.
//
// Name: Exercise7_02.cpp
// Author: cdrisko
// Date: 08/02/2020-13:27:53
// Description: Determining all unique words from a user's input over an arbitrar... | 28.142857 | 98 | 0.551915 | crdrisko |
2af4b636d42086a487f00c81ef1659e958235d8d | 801 | hpp | C++ | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | rt/rtweekend.hpp | rrobio/zr_ren | 4ffc61320100e1917c42a8155b45ad2d50f7040a | [
"MIT"
] | null | null | null | #pragma once
#include <cmath>
#include <cstdlib>
#include <limits>
#include <memory>
#include <random>
using std::shared_ptr;
using std::make_shared;
using std::sqrt;
double const infinity = std::numeric_limits<double>::infinity();
double const pi = 3.1415926535897932385;
inline double degrees_to_radians(double de... | 18.627907 | 73 | 0.722846 | rrobio |
2af5ec5a9cad1c4e5d24664c334e31df1860e8d7 | 2,174 | cpp | C++ | ELV_wrapper/item.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | 1 | 2020-09-05T20:13:25.000Z | 2020-09-05T20:13:25.000Z | ELV_wrapper/item.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | null | null | null | ELV_wrapper/item.cpp | solhuebner/ID-18-Elventure | 90419d7dfbc852b3512a06a43843aeb899465256 | [
"MIT"
] | 1 | 2020-06-13T13:39:09.000Z | 2020-06-13T13:39:09.000Z | #include <avr/pgmspace.h>
#include "ArduboyGamby.h"
#include "item.h"
#include "map.h"
#include "map_bitmap.h"
#include "item_bitmap.h"
#include "room.h"
extern GambyGraphicsMode gamby;
#define STEP_LENGTH 4
#define SIZEOF_ITEM_RECORD 10
RoomElement moveItem(RoomElement element)
{
if (element.state > STATE_HIDDE... | 22.645833 | 94 | 0.585097 | solhuebner |
2afa1224522643dc09cbc8279278f7cc85d8b8b4 | 463 | cpp | C++ | compressing-algorithms/BitInputStream.cpp | YBelikov/compression-algortihms | 33b8a344b3e7045618061f8511f17dfe6110189e | [
"MIT"
] | 1 | 2020-08-25T11:01:07.000Z | 2020-08-25T11:01:07.000Z | compressing-algorithms/BitInputStream.cpp | YBelikov/compression-algortihms | 33b8a344b3e7045618061f8511f17dfe6110189e | [
"MIT"
] | null | null | null | compressing-algorithms/BitInputStream.cpp | YBelikov/compression-algortihms | 33b8a344b3e7045618061f8511f17dfe6110189e | [
"MIT"
] | null | null | null | #include "BitInputStream.h"
#include <stdexcept>
int BitInputStream::readWithoutEOF() {
int bit = read();
if (bit != -1) {
return bit;
}
else {
throw std::domain_error("Reach to the end of file");
}
}
int BitInputStream::read() {
if (currentByte == -1) {
return -1;
}
if (bitsRemains == 0) {
currentByte... | 18.52 | 54 | 0.632829 | YBelikov |
2afa200b89ca95727a85619a6b17c74eda94a1c6 | 240 | cpp | C++ | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | 4 | 2021-02-23T11:24:33.000Z | 2021-09-11T20:10:46.000Z | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | libboost-container-hash/tests/basics/driver.cpp | build2-packaging/boost | 203d505dd3ba04ea50785bc8b247a295db5fc718 | [
"BSL-1.0"
] | null | null | null | #include <boost/container_hash/extensions.hpp>
#include <boost/container_hash/hash_fwd.hpp>
#include <boost/container_hash/hash.hpp>
#include <boost/functional/hash_fwd.hpp>
#include <boost/functional/hash.hpp>
int
main ()
{
return 0;
}
| 20 | 46 | 0.770833 | build2-packaging |
2afacb9a31068fdb0add18d2d1c43d8190accb51 | 149 | cpp | C++ | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | null | null | null | explicit/toposort.cpp | lilissun/spa | d44974c51017691ff4ada29c212c54bb0ee931c2 | [
"Apache-2.0"
] | 1 | 2020-04-24T02:28:32.000Z | 2020-04-24T02:28:32.000Z | //
// toposort.cpp
// explicit
//
// Created by Li Li on 25/8/13.
// Copyright (c) 2013 Lilissun. All rights reserved.
//
#include "toposort.h"
| 14.9 | 53 | 0.630872 | lilissun |
630847f7736cc3f10aebf36fb12c636c4706a0bc | 190 | cpp | C++ | 牛客/练习赛/39-A.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 7 | 2019-02-25T13:15:00.000Z | 2021-12-21T22:08:39.000Z | 牛客/练习赛/39-A.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | null | null | null | 牛客/练习赛/39-A.cpp | LauZyHou/- | 66c047fe68409c73a077eae561cf82b081cf8e45 | [
"MIT"
] | 1 | 2019-04-03T06:12:46.000Z | 2019-04-03T06:12:46.000Z | #include<bits/stdc++.h>
using namespace std;
long long n,sx,sy,ex,ey;
int main(){
cin>>n>>sx>>sy>>ex>>ey;
long long a=abs(ex-sx);
long long b=abs(ey-sy);
cout<<max(a,b);
return 0;
}
| 13.571429 | 24 | 0.615789 | LauZyHou |
63085f41f985a57944532103b7134c8b94bc6fe1 | 4,456 | cc | C++ | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | number-of-islands.cc | sonald/leetcode | 3c34e2779a736acc880876f4244f1becd7b199ed | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <cmath>
#include <random>
#include <set>
#include <map>
#include <unordered_map>
#include <unordered_set>
#include <queue>
#include <iomanip>
#include <algorithm>
using namespace std;
template<class T, class S>
ostream& operator<<(ostream& os, const unordered_map<T, S>& ... | 23.956989 | 92 | 0.360862 | sonald |
debabfa9624630c30a6bad131bbd73fc8a1d91e2 | 1,196 | cpp | C++ | data-structure/A1028/main.cpp | pipo-chen/play-ptat | d97d0bafcb6ef0a32f4969e0adffd400c673bf77 | [
"MIT"
] | 1 | 2021-05-26T23:14:01.000Z | 2021-05-26T23:14:01.000Z | data-structure/A1028/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | data-structure/A1028/main.cpp | pipo-chen/play-pat | 4968f7f1db3fdb48925f5c29574cdc72339c7233 | [
"MIT"
] | null | null | null | //
// main.cpp
// A1028
//
// Created by mark on 2021/5/27.
// Copyright © 2021 xihe. All rights reserved.
//
#include <iostream>
#include <cstring>
#include <algorithm>
using namespace :: std;
struct Student {
char name[10];
long id;
int grade;
}stu[100010];
bool cmp_id(Student a, Student b) {
/... | 21.357143 | 69 | 0.529264 | pipo-chen |
debb2ff348c5c7d9dc5bee9b1ee9d7bbff2431e1 | 1,870 | cpp | C++ | lib/Reporters/GithubAnnotationsReporter.cpp | m42e/mull | 32c6416d1757ea19c345029ee7a83e5769f231ef | [
"Apache-2.0"
] | null | null | null | lib/Reporters/GithubAnnotationsReporter.cpp | m42e/mull | 32c6416d1757ea19c345029ee7a83e5769f231ef | [
"Apache-2.0"
] | null | null | null | lib/Reporters/GithubAnnotationsReporter.cpp | m42e/mull | 32c6416d1757ea19c345029ee7a83e5769f231ef | [
"Apache-2.0"
] | null | null | null | #include "mull/Reporters/GithubAnnotationsReporter.h"
#include "mull/Bitcode.h"
#include "mull/Diagnostics/Diagnostics.h"
#include "mull/ExecutionResult.h"
#include "mull/Mutant.h"
#include "mull/Mutators/Mutator.h"
#include "mull/Mutators/MutatorsFactory.h"
#include "mull/Result.h"
#include "mull/SourceLocation.h"
#i... | 32.807018 | 89 | 0.654545 | m42e |
debb66d3c8b37c7e708e87c7d52cee7f82c2417d | 5,711 | cpp | C++ | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_image/image_data.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 5 | 2020-03-11T14:36:13.000Z | 2021-09-09T09:01:15.000Z | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_image/image_data.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 1 | 2020-06-07T17:25:04.000Z | 2020-07-15T07:36:10.000Z | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_image/image_data.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 2 | 2020-11-30T08:17:53.000Z | 2021-06-19T05:07:07.000Z | #include "image_data.h"
#include <opencv2/opencv.hpp>
const std::string DAT_EXTENSION = "dat";
const std::string PNG_EXTENSION = "png";
const std::string PGM_EXTENSION = "pgm";
namespace srrg2_core {
using namespace std;
ImageData::ImageData() : BLOB() {
_image_ptr.reset(0);
}
bool ImageData::read(std::... | 31.905028 | 97 | 0.634915 | laaners |
debee1f4abf1a11091e5d92b0ed344428474a607 | 1,765 | cpp | C++ | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | 1 | 2016-10-05T20:07:03.000Z | 2016-10-05T20:07:03.000Z | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | null | null | null | Solutions/bitmap.cpp | sjnonweb/spoj | 72cf2afcf4466f1356a8646b5e4f925144cb9172 | [
"MIT"
] | null | null | null | #include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
using namespace std;
int mat[200][200];
void bfs(int,int);
int main()
{
int test;
cin>>test;
while(test--)
{
vector < pair <int,int> > vc;
int m,n;
cin>>m>>n;
int i,j;
char ch;
f... | 19.184783 | 49 | 0.338244 | sjnonweb |
dec3f5e72bbf5cc0e80336eeda77f3e074ca65e7 | 16,314 | cc | C++ | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 34 | 2015-10-28T06:08:50.000Z | 2021-12-22T06:34:28.000Z | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 3 | 2016-02-15T22:09:42.000Z | 2019-10-06T23:19:01.000Z | examples/chat/node_modules/php-embed/src/node_php_embed.cc | jehovahsays/MMOSOCKETHTML5JSCHAT | 3ae5956184ee1a1b63b1a8083fd3a43edd30dffd | [
"MIT"
] | 6 | 2015-11-19T14:27:34.000Z | 2019-10-09T23:36:51.000Z | // Main entry point: this is the node module declaration, contains
// the PhpRequestWorker which shuttles messages between node and PHP,
// and contains the SAPI hooks to configure PHP to talk to node.
// Copyright (c) 2015 C. Scott Ananian <cscott@cscott.net>
#include "src/node_php_embed.h"
#include <dlfcn.h> // fo... | 36.660674 | 80 | 0.716072 | jehovahsays |
dec5f3eff0c32ae0ad9d69d3ca362fc866dd4dfe | 10,479 | hpp | C++ | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 389 | 2019-05-19T16:51:28.000Z | 2022-02-27T12:29:38.000Z | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 3 | 2019-05-20T05:42:57.000Z | 2019-07-17T18:50:17.000Z | include/codegen/arithmetic_ops.hpp | tetzank/codegen | 790aeccd6f2651dff053118593606fe8e560071c | [
"MIT"
] | 20 | 2019-05-19T17:00:02.000Z | 2021-12-29T01:47:50.000Z | /*
* Copyright © 2019 Paweł Dziepak
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish... | 44.974249 | 120 | 0.662945 | tetzank |
decb5f3e24416b5c57dff14134c7bd4af36dfda0 | 1,593 | cpp | C++ | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 1 | 2020-04-14T05:44:50.000Z | 2020-04-14T05:44:50.000Z | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | null | null | null | OOD/Mediator.cpp | FrancsXiang/DataStructure-Algorithms | f8f9e6d7be94057b955330cb7058235caef5cfed | [
"MIT"
] | 2 | 2020-09-02T08:56:31.000Z | 2021-06-22T11:20:58.000Z | #include <iostream>
#include <string>
using namespace std;
class BaseComponent;
class Mediator {
public:
virtual void Notify(BaseComponent* sender, string event) const = 0;
};
class BaseComponent {
public:
BaseComponent(Mediator* mediator_ = NULL) : mediator(mediator_) {}
void set_mediator(Mediator* mediator_) { t... | 18.964286 | 92 | 0.654739 | FrancsXiang |
decbc9cefd2922a4a8d1488b87d220d9a181ae2d | 5,633 | cc | C++ | zircon/system/dev/board/x86/x86.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/dev/board/x86/x86.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | zircon/system/dev/board/x86/x86.cc | opensource-assist/fuschia | 66646c55b3d0b36aae90a4b6706b87f1a6261935 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "x86.h"
#include <fuchsia/sysinfo/c/fidl.h>
#include <stdlib.h>
#include <string.h>
#include <zircon/status.h>
#include <ddk/binding.h>
#include... | 32.75 | 97 | 0.694834 | opensource-assist |
decdcdf28ed2f93abdd792e82474c38a74f1aa47 | 355 | cpp | C++ | src_test/map.cpp | ahefnycmu/asvrg | bc226c0a389b4fb939ac9dc3d7ce90593ae02cf2 | [
"MIT"
] | 2 | 2018-11-15T06:29:04.000Z | 2019-11-17T06:44:19.000Z | src_test/map.cpp | ahefnycmu/asvrg | bc226c0a389b4fb939ac9dc3d7ce90593ae02cf2 | [
"MIT"
] | null | null | null | src_test/map.cpp | ahefnycmu/asvrg | bc226c0a389b4fb939ac9dc3d7ce90593ae02cf2 | [
"MIT"
] | 3 | 2017-12-06T13:29:49.000Z | 2018-09-21T06:13:10.000Z | #include <unordered_map>
#include <iostream>
using namespace std;
int main() {
unordered_map<int, double> x;
x.reserve(100);
x[1] = 1.0;
x[2] = 2.0;
x[10] = 10.0;
x[100] = 100.0;
x[1000] += 1000.0;
auto it = x.begin();
for(; it != x.end(); ++it) {
cerr << &it->first << endl;
}
cerr <<... | 13.148148 | 31 | 0.515493 | ahefnycmu |
dece768afeb7d0f92a50119257a7eaf61d604b48 | 355 | cpp | C++ | DSA_Implementation/21. DP/Recursion/modular-exponentiation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | 5 | 2021-02-14T17:48:21.000Z | 2022-01-24T14:29:44.000Z | DSA_Implementation/21. DP/Recursion/modular-exponentiation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | DSA_Implementation/21. DP/Recursion/modular-exponentiation.cpp | Sowmik23/All-Codes | 212ef0d940fa84624bb2972a257768a830a709a3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
///Time Complexity: O(logn)
int Pow(int x, int n, int mod){
if(n==0) return 1;
else if(n%2==0){
int y = Pow(x, n/2, mod);
return (y*y)%mod;
}
else return x%mod*Pow(x, n-1, mod)%mod;
}
int main(){
int x = 2 , n = 14, mod = 1e9+7;
int res = Pow(x, n, mod)... | 13.148148 | 40 | 0.552113 | Sowmik23 |
ded17ec2fa9669d5627c4a5f44d09827ea652fed | 502 | hpp | C++ | include/RunStatisticsPrinter.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | include/RunStatisticsPrinter.hpp | pixie-net/pixie-net-api | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | 3 | 2019-04-07T17:18:47.000Z | 2019-11-10T22:08:18.000Z | include/RunStatisticsPrinter.hpp | spaulaus/pixie-net | 743e473845fc6c6d674d454b3a419d55372d99d4 | [
"Unlicense"
] | null | null | null | /// @file RunStatisticsPrinter.hpp
/// @brief
/// @author S. V. Paulauskas
/// @date March 07, 2020
#ifndef PIXIE_NET_RUNSTATISTICSPRINTER_HPP
#define PIXIE_NET_RUNSTATISTICSPRINTER_HPP
#include <string>
#include "RunStatistics.hpp"
class RunStatisticsPrinter {
public:
std::string format_stats_as_json(const Run... | 23.904762 | 103 | 0.782869 | pixie-net |
ded3f7fc64248aaeb909082e29f4a4babab030dd | 1,439 | cpp | C++ | src/reduction/cuda_segmented_scan.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 2 | 2020-05-13T09:09:50.000Z | 2021-07-16T12:51:53.000Z | src/reduction/cuda_segmented_scan.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | null | null | null | src/reduction/cuda_segmented_scan.cpp | zakimjz/GPU_graph_mining | 22ba73bea97533ed6b2af613bd263ef4d869e71a | [
"Apache-2.0"
] | 1 | 2022-03-22T01:15:33.000Z | 2022-03-22T01:15:33.000Z | #include <cuda_segmented_scan.hpp>
#include <scangen.cu>
//#include <segscanpacked.cu>
cuda_segmented_scan::cuda_segmented_scan()
{
}
cuda_segmented_scan::~cuda_segmented_scan()
{
}
void cuda_segmented_scan::scan(uint *d_packed_array, int count, reduce_type_t inclusive)
{
KernelParams reduce_kernel_params = {... | 25.696429 | 143 | 0.733148 | zakimjz |
deddaa5f897b59953aab13c08c8174c32390374e | 1,096 | cpp | C++ | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | 05.Purity-avoding-mutable-state/5.6-calculating-the-coordinates-of-the-neighboring-cell.cpp | Haceau-Zoac/Functional-Programming-in-C- | f3130d9faaaed2e3d5358f74341e4349f337d592 | [
"MIT"
] | null | null | null | enum direction_t {
Left,
Right,
Up,
Down
};
class position_t {
public:
position_t(position_t const& original, direction_t direction);
int x;
int y;
};
class maze_t {
public:
auto is_wall(position_t) const -> bool;
};
auto next_position(direction_t direction, position_t const& previous_position, maze... | 28.102564 | 98 | 0.642336 | Haceau-Zoac |
dedf7c03d1c65efbcaa565d8e992e67eb126a424 | 3,491 | cpp | C++ | src/bindings/bnd_arccurve.cpp | lukegehron/rhino3dm | 0e124084f7397f72aa82e499124a9232497573f0 | [
"MIT"
] | 343 | 2018-10-17T07:36:55.000Z | 2022-03-31T08:18:36.000Z | src/bindings/bnd_arccurve.cpp | iintrigued/rhino3dm | aa3cffaf66a22883de64b4bc096d554341c1ce39 | [
"MIT"
] | 187 | 2018-10-18T23:07:44.000Z | 2022-03-24T02:05:00.000Z | src/bindings/bnd_arccurve.cpp | iintrigued/rhino3dm | aa3cffaf66a22883de64b4bc096d554341c1ce39 | [
"MIT"
] | 115 | 2018-10-18T01:17:20.000Z | 2022-03-31T16:43:58.000Z | #include "bindings.h"
BND_ArcCurve::BND_ArcCurve()
{
SetTrackedPointer(new ON_ArcCurve(), nullptr);
}
BND_ArcCurve::BND_ArcCurve(ON_ArcCurve* arccurve, const ON_ModelComponentReference* compref)
{
SetTrackedPointer(arccurve, compref);
}
BND_ArcCurve::BND_ArcCurve(const BND_ArcCurve& other)
{
ON_ArcCurve* ac = ... | 35.989691 | 126 | 0.741335 | lukegehron |
dee2cd3b6100c754c56c40c94f9d272e4beb7bf7 | 2,305 | hpp | C++ | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | null | null | null | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | 9 | 2018-02-01T03:59:06.000Z | 2018-12-17T04:07:16.000Z | MuleUtilities/asset/include/mule/asset/FileReader.hpp | Godlike/Mule | 3601d3e063aa2a0a1bbf7289e97bdeb5e5899589 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2018 by Godlike
* This code is licensed under the MIT license (MIT)
* (http://opensource.org/licenses/MIT)
*/
#ifndef MULE_ASSET_FILE_READER_HPP
#define MULE_ASSET_FILE_READER_HPP
#include <cstdint>
#include <string>
#include <vector>
namespace mule
{
namespace asset
{
/** @brief Provides lazy a... | 22.821782 | 64 | 0.631236 | Godlike |
dee2ce9ce1d3180265ca0f27eb2344e82eb0a457 | 57 | cc | C++ | DataFormats/FTLDigi/src/FTLDataFrameT.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | DataFormats/FTLDigi/src/FTLDataFrameT.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | DataFormats/FTLDigi/src/FTLDataFrameT.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "DataFormats/FTLDigi/interface/FTLDataFrameT.h"
| 28.5 | 56 | 0.842105 | ckamtsikis |
dee3f0045a43b3e913cb822a5f7d034ba4260f5a | 323 | hpp | C++ | src/core/tests/runtime/ie/ie_backend_visibility.hpp | ytorzuk-altran/openvino | 68d460a3bb578a738ba0e4d0e1f2e321afa73ab0 | [
"Apache-2.0"
] | 1 | 2021-12-03T06:03:15.000Z | 2021-12-03T06:03:15.000Z | ngraph/test/runtime/ie/ie_backend_visibility.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 48 | 2020-11-20T10:24:33.000Z | 2022-03-30T17:46:48.000Z | ngraph/test/runtime/ie/ie_backend_visibility.hpp | thomas-yanxin/openvino | 031e998a15ec738c64cc2379d7f30fb73087c272 | [
"Apache-2.0"
] | 4 | 2021-09-29T20:44:49.000Z | 2021-10-20T13:02:12.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/visibility.hpp"
#ifdef ie_backend_EXPORTS // defined if we are building the ie_backend as shared library
# define IE_BACKEND_API OPENVINO_CORE_EXPORTS
#else
# define IE_BACKEND_API OPENVINO_CORE_IMPORTS
#end... | 26.916667 | 89 | 0.783282 | ytorzuk-altran |
dee63d1b372e3665741e501e2311d8809a5ddbef | 1,318 | hpp | C++ | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | 2 | 2018-05-13T05:27:29.000Z | 2018-05-29T06:35:57.000Z | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | src/PhysicsSystem.hpp | benzap/Kampf | 9cf4fb0d6ec22bc35ade9b476d29df34902c6689 | [
"Zlib"
] | null | null | null | #ifndef PHYSICSSYSTEM__HPP
#define PHYSICSSYSTEM__HPP
//DESCRIPTION
/*
System used to deal with physics components and handle the per frame
changes of entities. Interactions between entities is handled by the
collision system.
*/
//INCLUDES
#include <vector>
#include <algorithm>
#include <SDL2/SDL.h>
#include ... | 22.724138 | 77 | 0.764795 | benzap |
deec7f28da5171ff13a977de2bc27671736bbeaa | 571 | cpp | C++ | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | aoc2015/aoc151001.cpp | jiayuehua/adventOfCode | fd47ddefd286fe94db204a9850110f8d1d74d15b | [
"Unlicense"
] | null | null | null | #include <fstream>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <fmt/format.h>
#include <string>
#include <iomanip>
int main(int argc, char **argv)
{
std::string sa("1113222113");
std::string sr;
std::string sb;
for (int i = 0; i < 50; ++i) {
for (auto it = sa.begin(), end = sa.begin... | 22.84 | 76 | 0.539405 | jiayuehua |
def38bf45be159dec1481769db71fda69e44eff8 | 3,056 | cpp | C++ | RLSimion/CNTKWrapper/cntk-wrapper.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 30 | 2019-02-20T19:33:15.000Z | 2020-03-26T13:46:51.000Z | RLSimion/CNTKWrapper/cntk-wrapper.cpp | utercero/SimionZoo | 1fa570ae88f5d7e88e13a67ec27cda2de820ffee | [
"Zlib"
] | 52 | 2018-02-28T17:16:37.000Z | 2019-02-15T18:26:21.000Z | RLSimion/CNTKWrapper/cntk-wrapper.cpp | borjafdezgauna/SimionZoo | 42dd3106d60077bea7e6b64b9f25c3268adc3be8 | [
"Zlib"
] | 25 | 2019-02-20T19:30:52.000Z | 2022-01-01T03:15:21.000Z | /*
SimionZoo: A framework for online model-free Reinforcement Learning on continuous
control problems
Copyright (c) 2016 SimionSoft. https://github.com/simionsoft
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to ... | 47.75 | 226 | 0.829843 | utercero |
def7f729a001893eeecfe957d3b8dd36f6f156a3 | 94 | hpp | C++ | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | aa/aa_tools.hpp | salleaffaire/lmolly | 62012a7219035bee90b9ad3f2b49625e09b0c206 | [
"MIT"
] | null | null | null | #ifndef AA_TOOLS_HPP___
#define AA_TOOLS_HPP___
#include <iostream>
#include <mutex>
#endif
| 11.75 | 23 | 0.787234 | salleaffaire |
7200ed8a6c85187a158c000143c071800b4438e1 | 4,900 | cpp | C++ | marsyas-vamp/marsyas/src/marsyas/marsystems/AimVQ.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas/marsystems/AimVQ.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | marsyas-vamp/marsyas/src/marsyas/marsystems/AimVQ.cpp | jaouahbi/VampPlugins | 27c2248d1c717417fe4d448cdfb4cb882a8a336a | [
"Apache-2.0"
] | null | null | null | /*
** Copyright (C) 1998-2011 George Tzanetakis <gtzan@cs.uvic.ca>
**
** 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 version... | 28.994083 | 100 | 0.67898 | jaouahbi |
7206b81f6cf3a4c5f69f020f3bf4b01747102377 | 1,173 | cpp | C++ | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | 1 | 2019-05-16T23:18:17.000Z | 2019-05-16T23:18:17.000Z | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | Array/easy/414_Third_Maximum_Number/ThirdMaxNumber.cpp | quq99/Leetcode_notes | eb3bee5ed161a0feb4ce1d48b682c000c95b4be3 | [
"MIT"
] | null | null | null | // ThirdMaxNumber.cpp
#include<vector>
using std::vector;
class ThirdMaxNumber {
public:
int thirdMax(vector<int>& nums) {
int first = INT_MIN;
int second = first;
int third = second;
int count = 0;
bool once = true;
for (int i = 0; i... | 27.27907 | 64 | 0.351236 | quq99 |
720bc63f6db2bc66bc41ab14f5f82b0035a24eca | 1,711 | cpp | C++ | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | Assignment 3/Assignment 3/StudentEmployee.cpp | justin-harper/cs122 | 83949bc097cf052ffe6b8bd82002377af4d9cede | [
"MIT"
] | null | null | null | /*
Assignment: 3
Description: Paycheck Calculator
Author: Justin Harper
WSU ID: 10696738 Completion Time: 8hrs
In completing this program, I received help from the following people:
myself
version 1.0 I am happy with this version!
*/
#include "StudentEmployee.h"
#include "Employee.h"
#include <iostream>
using na... | 18.397849 | 122 | 0.755114 | justin-harper |
720f18e0d69129ebaa192dbb61719c210937df35 | 9,610 | hpp | C++ | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | core/utils/bitpack.hpp | geenen124/iresearch | f89902a156619429f9e8df94bd7eea5a78579dbc | [
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2021 ArangoDB GmbH, Cologne, Germany
///
/// 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... | 27.936047 | 82 | 0.661394 | geenen124 |
721255ad57354655e55fb97d74dae1a9ec15c863 | 8,168 | hpp | C++ | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Polyglot/Localization.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:10 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: UnityEngine.ScriptableObject
#include "UnityEngine/Scriptabl... | 44.879121 | 95 | 0.74192 | Futuremappermydud |
7215cbdbc703bcc44e22f5d219ead3294b583958 | 459 | cpp | C++ | C++/removeEle.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | 1 | 2020-07-04T12:45:50.000Z | 2020-07-04T12:45:50.000Z | C++/removeEle.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | 1 | 2020-08-08T02:23:46.000Z | 2020-08-08T02:47:56.000Z | C++/removeEle.cpp | iamsuryakant/100-days-of-code | eaf4863d98dc273f03a989fe87d010d201d91516 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int removeElement(vector<int> &nums, int val)
{
vector<int>::iterator it;
vector<int>::iterator it1;
it = remove(nums.begin(), nums.end(), val);
for (it1 = nums.begin(); it1 != it; ++it1)
{
return *it1;
}
return 0;
}
int main(){
... | 14.34375 | 47 | 0.509804 | iamsuryakant |
7216f12742269155c1f49beb7958282761681f5d | 7,185 | cpp | C++ | src/card/base/GeneralAuthenticateResponse.cpp | Governikus/AusweisApp2-Omapi | 0d563e61cb385492cef96c2542d50a467e003259 | [
"Apache-2.0"
] | 1 | 2019-06-06T11:58:51.000Z | 2019-06-06T11:58:51.000Z | src/card/base/GeneralAuthenticateResponse.cpp | ckahlo/AusweisApp2-Omapi | 5141b82599f9f11ae32ff7221b6de3b885e6e5f9 | [
"Apache-2.0"
] | 1 | 2022-01-28T11:08:59.000Z | 2022-01-28T12:05:33.000Z | src/card/base/GeneralAuthenticateResponse.cpp | ckahlo/AusweisApp2-Omapi | 5141b82599f9f11ae32ff7221b6de3b885e6e5f9 | [
"Apache-2.0"
] | 3 | 2019-06-06T11:58:14.000Z | 2021-11-15T23:32:04.000Z | /*!
* \copyright Copyright (c) 2015-2019 Governikus GmbH & Co. KG, Germany
*/
#include "asn1/ASN1Util.h"
#include "GeneralAuthenticateResponse.h"
#include <QLoggingCategory>
using namespace governikus;
Q_DECLARE_LOGGING_CATEGORY(card)
GAResponseApdu::GAResponseApdu()
: ResponseApdu()
{
}
void GAResponseApd... | 24.690722 | 133 | 0.821434 | Governikus |
72181b8d23c8c05b700194a1085c55c3f70500a5 | 1,497 | cpp | C++ | docs/examples/count_verbs.cpp | mohad12211/skia | 042a53aa094715e031ebad4da072524ace316744 | [
"BSD-3-Clause"
] | 6,304 | 2015-01-05T23:45:12.000Z | 2022-03-31T09:48:13.000Z | docs/examples/count_verbs.cpp | mohad12211/skia | 042a53aa094715e031ebad4da072524ace316744 | [
"BSD-3-Clause"
] | 67 | 2016-04-18T13:30:02.000Z | 2022-03-31T23:06:55.000Z | docs/examples/count_verbs.cpp | mohad12211/skia | 042a53aa094715e031ebad4da072524ace316744 | [
"BSD-3-Clause"
] | 1,231 | 2015-01-05T03:17:39.000Z | 2022-03-31T22:54:58.000Z | // Copyright 2020 Google LLC.
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
#include "tools/fiddle/examples.h"
REG_FIDDLE(count_verbs, 256, 256, false, 0) {
#include "include/utils/SkTextUtils.h"
static SkPath make_path(const SkFont& font) {
SkPath path;
c... | 30.55102 | 100 | 0.583834 | mohad12211 |
7218cd9b1bb2200cc5bc6da3bd7e94a6b954870a | 17,880 | cpp | C++ | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | 1 | 2021-06-09T16:11:50.000Z | 2021-06-09T16:11:50.000Z | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | null | null | null | src/engines/Examples/Basic/05b-ObsGroupAppend.cpp | Gibies/ioda | 5bd372e548eb61d5f7b56a0b3d4cf0ca05e49e75 | [
"Apache-2.0"
] | 3 | 2021-06-09T16:12:02.000Z | 2021-11-14T09:19:25.000Z | /*
* (C) Copyright 2020-2021 UCAR
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/
/*! \addtogroup ioda_cxx_ex
*
* @{
*
* \defgroup ioda_cxx_ex_5b Ex 5b: Appending to ObsGroups
* \brief Appending to ObsGro... | 48.455285 | 100 | 0.654698 | Gibies |
721ba8ca705716f1448757db5bf34109112c4d89 | 981 | cpp | C++ | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 19 | 2021-04-28T13:32:15.000Z | 2022-03-08T11:52:59.000Z | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 5 | 2021-03-03T08:06:15.000Z | 2021-12-26T18:14:45.000Z | Online Assignment 01/Version C/Version C - Thushara.cpp | GIHAA/Cpp-programming | 0b094868652fd83f8dc4eb02c5abe3c3501bcdf1 | [
"MIT"
] | 27 | 2021-01-18T22:35:01.000Z | 2022-02-22T19:52:19.000Z | // Paper Version : C
#include<iostream>
using namespace std;
// Class declarration
class Lab {
private:
int labID;
int capacity;
public:
void setLabDetails(int lID, int c);
int getCapacity();
};
int main() {
// Create an Objects
Lab l1, l2, l3;
// Set values to... | 16.913793 | 43 | 0.552497 | GIHAA |
721def850ee1995eaafab2a11d042e460b26374e | 761 | cpp | C++ | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | Source/Dynamics/RigidBody/SphericalJoint.cpp | weikm/sandcarSimulation2 | fe499d0a3289c0ac1acce69c7dc78d8ce1b2708a | [
"Apache-2.0"
] | null | null | null | #include "SphericalJoint.h"
//#include "Dynamics/RigidBody/RigidUtil.h"
namespace PhysIKA {
SphericalJoint::SphericalJoint(std::string name)
: Joint(name)
{
}
SphericalJoint::SphericalJoint(Node* predecessor, Node* successor)
: Joint(predecessor, successor)
{
}
void SphericalJoint::setJointInfo(const Vector... | 21.138889 | 66 | 0.579501 | weikm |
721fc0dd32783489fb6b161f3d1cde85534f2d79 | 4,049 | cc | C++ | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-01-20T15:25:34.000Z | 2017-12-20T06:47:42.000Z | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | 4 | 2015-05-15T09:32:55.000Z | 2016-02-18T13:43:31.000Z | squid/squid3-3.3.8.spaceify/src/acl/DestinationIp.cc | spaceify/spaceify | 4296d6c93cad32bb735cefc9b8157570f18ffee4 | [
"MIT"
] | null | null | null | /*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
*
* Squid is the result of efforts by numerous individuals from
* the Internet community; see the CONTRIBUTORS file for f... | 34.905172 | 129 | 0.694492 | spaceify |
7220b26be69e6aee31ac9da80d0d52fbbfac3d00 | 672 | hpp | C++ | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2019-04-09T13:03:11.000Z | 2021-01-27T04:58:29.000Z | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 2 | 2017-02-06T03:48:45.000Z | 2020-08-31T01:30:10.000Z | src/ProjectForecast/Views/HumanView.hpp | yxbh/Project-Forecast | 8ea2f6249a38c9e7f4d6d7d1e51e11ad0b05c2c4 | [
"BSD-3-Clause"
] | 4 | 2020-06-28T08:19:53.000Z | 2020-06-28T16:30:19.000Z | #pragma once
#include "../InputControllers/InputControllers.hpp"
#include "KEngine/Interfaces/IEvent.hpp"
#include "KEngine/Views/HumanView.hpp"
namespace sf
{
class Event;
}
namespace pf
{
class HumanView : public ke::HumanView
{
public:
HumanView();
virtual ~HumanView();
... | 19.2 | 66 | 0.678571 | yxbh |
7224c60576efa277fb91c372b8811437eb8fbbbc | 2,450 | cpp | C++ | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | 11_CPP/08_CPP08/ex01/span.cpp | tderwedu/42cursus | 2f56b87ce87227175e7a297d850aa16031acb0a8 | [
"Unlicense"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* span.cpp :+: :+: :+: ... | 28.488372 | 97 | 0.388571 | tderwedu |
7227476512d2e151478de9c3458c12f99b947667 | 4,319 | cpp | C++ | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | 2 | 2020-04-13T20:15:48.000Z | 2021-03-18T08:44:50.000Z | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | null | null | null | src/main.cpp | tbukic/CubicSpline | f851ffeca38c89ef124bd4cadecf189a6373596c | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: Nov, 2015
* Author: Tomislav
*/
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <memory>
#include <utility>
#include <string>
#include <stdexcept>
#include <sstream>
#include "CubicSpline/CubicSpline.h"
using node = CubicSpline::node;
using function = Cubi... | 24.821839 | 72 | 0.611253 | tbukic |
722903e6c3d0c9d980b2fdf89075eb6c36c8fe7b | 4,475 | cpp | C++ | windows/src/engine/keyman32/serialkeyeventclient.cpp | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | 219 | 2017-06-21T03:37:03.000Z | 2022-03-27T12:09:28.000Z | windows/src/engine/keyman32/serialkeyeventclient.cpp | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | 4,451 | 2017-05-29T02:52:06.000Z | 2022-03-31T23:53:23.000Z | windows/src/engine/keyman32/serialkeyeventclient.cpp | srl295/keyman | 4dfd0f71f3f4ccf81d1badbd824900deee1bb6d1 | [
"MIT"
] | 72 | 2017-05-26T04:08:37.000Z | 2022-03-03T10:26:20.000Z | #include "pch.h"
#include "serialkeyeventclient.h"
#include "security.h"
//
// Client application functionality
//
class SerialKeyEventClient : public ISerialKeyEventClient {
private:
HANDLE m_hKeyEvent = 0;
HANDLE m_hKeyMutex = 0;
HANDLE m_hMMF = 0;
SerialKeyEventSharedData *m_pSharedData = NULL;
public:
S... | 26.796407 | 131 | 0.656983 | srl295 |
722ddf61e7b1087a84fcfaaa46ec96d86a796161 | 949 | cpp | C++ | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | 2 | 2017-07-04T03:17:15.000Z | 2017-07-04T22:38:59.000Z | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | 1 | 2017-07-04T03:31:54.000Z | 2017-07-04T22:38:48.000Z | src/lib/base/Fitness.cpp | cantordust/cortex | 0afe4b8c8c3e1b103541188301c3f445ee5d165d | [
"MIT"
] | null | null | null | #include "Param.hpp"
#include "Fitness.hpp"
namespace Cortex
{
Fitness::Fitness(Config& _cfg)
:
cfg(_cfg),
eff(Eff::Undef)
{
stat.ema_coeff = cfg.fit.ema.coeff;
stat.window_size = std::floor(2.0 / stat.ema_coeff) - 1;
}
void Fitness::set_abs(const real _abs_fit)
{
if (_abs_fit > stat.abs)
{
... | 14.164179 | 58 | 0.56902 | cantordust |
722e75a64a0582a9077f5e1aecc824c32fc07610 | 362 | cpp | C++ | examples/btree.cpp | hiyouga/CPP-Learning | e05324bc73ae91a09d51145ecd21af78487405f2 | [
"MIT"
] | null | null | null | examples/btree.cpp | hiyouga/CPP-Learning | e05324bc73ae91a09d51145ecd21af78487405f2 | [
"MIT"
] | null | null | null | examples/btree.cpp | hiyouga/CPP-Learning | e05324bc73ae91a09d51145ecd21af78487405f2 | [
"MIT"
] | null | null | null | #include <iostream>
#include "btree.h"
using namespace std;
int main()
{
char str[80] = "+(*(/(A,^(B,C)),D),E)";
BTree<char> bt;
bt.CreateBTree(str);
cout << bt.BTNodeHeight() << endl;
bt.DispBTree();
cout << endl;
bt.PreOrder();
cout << endl;
bt.InOrder();
cout << endl;
bt.PostOrder();
cout << endl;
bt.... | 15.083333 | 40 | 0.593923 | hiyouga |
722e9b544c4e21eba7406114aaf8cc67e51f89b9 | 1,238 | cpp | C++ | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | src/cgi-calculatepi.cpp | fdiblen/cpp2wasm | 1f4424ee586225ddee6680adaf8274031b4bd559 | [
"Apache-2.0"
] | null | null | null | // this C++ snippet is stored as src/cgi-calculatepi.hpp
#include <string>
#include <iostream>
#include <nlohmann/json.hpp>
// this C++ code snippet is later referred to as <<algorithm>>
#include <iostream>
#include <math.h>
#include "calculatepi.hpp"
#define SEED 35791246
namespace pirng
{
PiCalculate::PiCalculate(... | 21.344828 | 74 | 0.64378 | fdiblen |
722fc6fdde7ffe26c6b78f9b759ae10974128a59 | 2,968 | cpp | C++ | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | Trimming/ImageInfo.cpp | AinoMegumi/TokidolRankingOCREngine | 225bf6fe328aa4dcd653bf095aff88632c9bac96 | [
"MIT"
] | null | null | null | #include "ImageInfo.hpp"
#include "HttpException.hpp"
#include <filesystem>
ImageInfo::ImageInfo(const std::string& FilePath) {
try {
if (!std::filesystem::exists(FilePath)) throw HttpException(404);
this->image = cv::imread(FilePath, 1);
if (this->image.empty()) throw HttpException();
}
catch (const HttpExc... | 34.511628 | 171 | 0.685984 | AinoMegumi |
7232718585b49ce58577ade9572f732a47f3b927 | 1,657 | cpp | C++ | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | P009-PalindromeNumber/P009-PalindromeNumber/main.cpp | rlan/LeetCode | 0521e27097a01a0a2ba2af30f3185d8bb5e3e227 | [
"MIT"
] | null | null | null | //
// LeetCode
// Algorithm 9 Palindrome Number
//
// Created by Rick Lan on 3/30/17.
// See LICENSE
//
#include <iostream>
using namespace std;
class Solution {
public:
bool isPalindrome(int x) {
if (x >= 0) {
long long save = x;
long long mag2 = 0;
while... | 26.301587 | 75 | 0.494267 | rlan |
72353b7b4849861f1ec9f35c08f48f96e2c7a150 | 282 | cpp | C++ | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 7 | 2019-01-06T19:10:14.000Z | 2021-10-16T06:41:23.000Z | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | null | null | null | Pbinfo/Puteri3.cpp | Al3x76/cpp | 08a0977d777e63e0d36d87fcdea777de154697b7 | [
"MIT"
] | 6 | 2019-01-06T19:17:30.000Z | 2020-02-12T22:29:17.000Z | #include <iostream>
using namespace std;
#include <iostream>
using namespace std;
int f(int n, int p){
if(n){
if(n%2==1) cout<<p<<" ";
f(n/2, p*2);
}
}
int main()
{
int n, p;
cin>>n;
f(n, 1);
return 0;
}
int main(){
return 0;
} | 9.096774 | 32 | 0.475177 | Al3x76 |
7236aee6f6ec5ed4b01cdfdbae4afa800c4f3f66 | 3,280 | hpp | C++ | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 6 | 2019-06-11T20:09:01.000Z | 2021-05-28T01:18:27.000Z | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 7 | 2019-06-14T20:28:31.000Z | 2020-08-11T14:51:03.000Z | src/menu/livechat/livechat_cmd.hpp | DarXe/Logus | af80cdcaccde3c536ef2b47d36912d9a505f7ef6 | [
"0BSD"
] | 1 | 2020-11-07T05:28:23.000Z | 2020-11-07T05:28:23.000Z | // Copyright © 2020 Niventill
// This file is licensed under ISC License. See "LICENSE" in the top level directory for more info.
#ifndef LCCMD_HPP_INCLUDED
#define LCCMD_HPP_INCLUDED
//standard libraries
#include <string>
#include <string_view>
namespace LCCommand
{
void CheckCommandInput(const std::string &line... | 40 | 99 | 0.767988 | DarXe |
7237a84aa0f26f11fa821252ca68ca07e6386805 | 2,078 | cc | C++ | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | bindings/builtin/symbolizer.cc | SolovyovAlexander/reindexer | 2c6fcd957c1743b57a4ce9a7963b52dffc13a519 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#ifndef _WIN32
#include <signal.h>
#endif // _WIN32
#include <sstream>
#include "debug/backtrace.h"
#include "debug/resolver.h"
#include "estl/string_view.h"
static std::unique_ptr<reindexer::debug::TraceResolver> resolver{nullptr};
struct cgoTracebackArg {
uintptr_t context;
uintptr_t sigConte... | 25.036145 | 107 | 0.674687 | SolovyovAlexander |
72392a72adb54165350e4aa1c868b60090ffcdb7 | 2,521 | cpp | C++ | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 2 | 2021-12-29T04:12:59.000Z | 2022-03-30T09:32:19.000Z | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | null | null | null | Chapter_3_Problem_Solving_Paradigms/Greedy/kattis_andrewant.cpp | BrandonTang89/CP4_Code | 5114471f439978dd11f6f2cbf6af20ca654593da | [
"MIT"
] | 1 | 2022-03-01T06:12:46.000Z | 2022-03-01T06:12:46.000Z | /**Kattis - andrewant
* If we imagine the line as being infinitely long, eventually we reach a point where we have 2
* groups of ants: a left walking group on the left on a right walking group. Now observe that
* since 2 ants never cross, it means that the order of the ants at this stage is the same as the
* order ... | 41.327869 | 100 | 0.575169 | BrandonTang89 |
5cf9af244805d5fd3ca60471488613bc152ea208 | 1,847 | hpp | C++ | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | 1 | 2021-07-24T16:29:11.000Z | 2021-07-26T20:00:17.000Z | include/tribalscript/libraries/libraries.hpp | Ragora/TribalScript | b7f7cc6b311cee1422f1c7dffd58c85c4f29cc1d | [
"MIT"
] | null | null | null | /**
* Copyright 2021 Robert MacGregor
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,
* including without limitation the rights to use, copy, modify, merge, publish,... | 48.605263 | 207 | 0.777477 | Ragora |
cf01771bccdb23495a3cad033a0212f0a9195a90 | 6,146 | cpp | C++ | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | null | null | null | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | null | null | null | lib/data_base.cpp | titouanlacombe/DCLP-Projet | 80fe4b8468ee8a9ab5cc8ab5a7dabf759973afd0 | [
"MIT"
] | 1 | 2021-04-15T16:45:21.000Z | 2021-04-15T16:45:21.000Z | #include "data_base.h"
#include "mylog.h"
#define CMP_FILE_NAME "/Companies.csv"
#define JOB_FILE_NAME "/Jobs.csv"
#define WRK_FILE_NAME "/Workers.csv"
#define CMP_FIRST_LINE "Name,Zip code,email"
#define JOB_FIRST_LINE "Title,Skills,Company"
#define WRK_FIRST_LINE "First name,Last name,email,Zip code,Skills,Co-work... | 22.932836 | 114 | 0.5685 | titouanlacombe |
cf0341f3c79b5a19a8495c5319ce729e08218e98 | 415 | hpp | C++ | include/svgpp/policy/xml/fwd.hpp | RichardCory/svgpp | 801e0142c61c88cf2898da157fb96dc04af1b8b0 | [
"BSL-1.0"
] | 428 | 2015-01-05T17:13:54.000Z | 2022-03-31T08:25:47.000Z | include/svgpp/policy/xml/fwd.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 61 | 2015-01-08T14:32:27.000Z | 2021-12-06T16:55:11.000Z | include/svgpp/policy/xml/fwd.hpp | andrew2015/svgpp | 1d2f15ab5e1ae89e74604da08f65723f06c28b3b | [
"BSL-1.0"
] | 90 | 2015-05-19T04:56:46.000Z | 2022-03-26T16:42:50.000Z | // Copyright Oleg Maximenko 2014.
// 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)
//
// See http://github.com/svgpp/svgpp for library home page.
#pragma once
namespace svgpp { namespace policy { namespace xml
{... | 21.842105 | 61 | 0.754217 | RichardCory |
cf054f5fed552a130c636bc86f2ac9fa777d4eed | 7,541 | cpp | C++ | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | 2 | 2021-01-12T13:40:45.000Z | 2021-01-12T23:55:22.000Z | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | null | null | null | xfile/XFileReader.cpp | ryutorion/DirectX11ShaderProgrammingBook | 2407dafec283bac2f195bcdf48ffae024f819d80 | [
"MIT"
] | null | null | null | #include "XFileReader.h"
#include <utility>
#include "XFileMesh.h"
namespace
{
constexpr uint32_t XFileMagic = 'x' | ('o' << 8) | ('f' << 16) | (' ' << 24);
constexpr uint32_t XFileFormatBinary = 'b' | ('i' << 8) | ('n' << 16) | (' ' << 24);
constexpr uint32_t XFileFormatText = 't' | ('x' << 8) | ('t' << 16) | (' ... | 19.536269 | 90 | 0.645936 | ryutorion |
cf06c8504f2a049772631c08e8411b6afc6deb4a | 2,691 | cpp | C++ | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | null | null | null | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | 1 | 2021-02-04T17:24:27.000Z | 2021-02-05T11:06:10.000Z | device/src/startup/initialise-interrupts-stack.cpp | micro-os-plus/architecture-cortexm-xpack | 3d0aa622dbaea7571f5e1858a5ac2b05d71ca132 | [
"MIT"
] | 1 | 2021-02-15T09:28:46.000Z | 2021-02-15T09:28:46.000Z | /*
* This file is part of the µOS++ distribution.
* (https://github.com/micro-os-plus)
* Copyright (c) 2021 Liviu Ionescu.
*
* 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
... | 36.863014 | 79 | 0.550725 | micro-os-plus |
cf06d904ae4fe7fc24f7022370e53b98a440b646 | 3,809 | cpp | C++ | src/object-recognition/object_recognition_result_assembler.cpp | 01org/node-realsense | 9c000380f61912415c2943a20f8caeb41d579f7b | [
"MIT"
] | 12 | 2017-02-27T14:10:12.000Z | 2017-09-25T08:02:07.000Z | src/object-recognition/object_recognition_result_assembler.cpp | 01org/node-realsense | 9c000380f61912415c2943a20f8caeb41d579f7b | [
"MIT"
] | 209 | 2017-02-22T08:02:38.000Z | 2017-09-27T09:26:24.000Z | src/object-recognition/object_recognition_result_assembler.cpp | 01org/node-realsense | 9c000380f61912415c2943a20f8caeb41d579f7b | [
"MIT"
] | 18 | 2017-02-22T09:05:42.000Z | 2017-09-21T07:52:40.000Z | // Copyright (c) 2016 Intel Corporation. All rights reserved.
// Use of this source code is governed by a MIT-style license that can be
// found in the LICENSE file.
#include "object_recognition_result_assembler.h"
#include "gen/nan__localization_info.h"
#include "gen/nan__tracking_info.h"
#include "gen/nan__recognit... | 36.980583 | 78 | 0.728013 | 01org |
cf0a164c35b7feaf4045eff4eacae23095ce71db | 9,338 | cpp | C++ | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 2 | 2015-01-17T00:18:29.000Z | 2015-09-16T17:26:03.000Z | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 11 | 2015-01-30T23:24:49.000Z | 2017-12-10T15:48:23.000Z | libkeksbot/mensa.cpp | cookiemon/Keksbot | d7f6adddf5d91e9e49a4a231e74b9a962d8af326 | [
"BSD-2-Clause"
] | 4 | 2016-02-29T17:45:51.000Z | 2017-12-08T18:03:02.000Z | #include "mensa.h"
#include "logging.h"
#include "server.h"
#include <curl/curl.h>
#include <rapidjson/document.h>
#include <chrono>
using namespace std::literals::chrono_literals;
void RoundToDay(struct tm* time)
{
assert(time != NULL);
time->tm_sec = 0;
time->tm_min = 0;
time->tm_hour = 0;
}
static const char... | 26.083799 | 100 | 0.674663 | cookiemon |
cf0e5ff43fd9a008725b37eb6795cdf5dff56d87 | 4,153 | cpp | C++ | antibody_interface_pred_train/src/DockingMethods/CPDpair.cpp | sebastiandaberdaku/AntibodyInterfacePrediction | 4d31f57f7cdac1fe68cfb4f3448f6e3129ae2838 | [
"BSD-3-Clause"
] | 10 | 2017-10-11T16:05:35.000Z | 2021-10-01T14:43:10.000Z | interface_descriptors_test/src/DockingMethods/CPDpair.cpp | sebastiandaberdaku/PPIprediction | e715cc8516725b4869361e92eeb71e81241bd0a6 | [
"BSD-3-Clause"
] | null | null | null | interface_descriptors_test/src/DockingMethods/CPDpair.cpp | sebastiandaberdaku/PPIprediction | e715cc8516725b4869361e92eeb71e81241bd0a6 | [
"BSD-3-Clause"
] | 3 | 2019-01-22T08:55:07.000Z | 2021-01-05T02:19:03.000Z | /*
* CPDpair.cpp
*
* Created on: 25/feb/2015
* Author: sebastian
*/
#include "CPDpair.h"
#include <fstream>
/**
* Constructors
*/
CPDpair::CPDpair() :
cpd1(NULL), cpd2(NULL), score_surface(0), score_electrostatics(0), score_combined(0) { }
CPDpair::CPDpair(CPDpair const & p) :
cpd1(p.cpd1), cpd2(p.cp... | 33.764228 | 91 | 0.537443 | sebastiandaberdaku |
cf0f0991278a03d72c0aae012c071a3f972c1180 | 8,754 | cpp | C++ | Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Interactibles/VRDialComponent.cpp | mrkriv/VRShooter | 3ff6aa1cc7bfe4748c4052b50ad711266179c858 | [
"Apache-2.0"
] | 1 | 2020-05-20T20:53:01.000Z | 2020-05-20T20:53:01.000Z | Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Interactibles/VRDialComponent.cpp | mrkriv/VRShooter | 3ff6aa1cc7bfe4748c4052b50ad711266179c858 | [
"Apache-2.0"
] | null | null | null | Plugins/VRExpansionPlugin/VRExpansionPlugin/Source/VRExpansionPlugin/Private/Interactibles/VRDialComponent.cpp | mrkriv/VRShooter | 3ff6aa1cc7bfe4748c4052b50ad711266179c858 | [
"Apache-2.0"
] | null | null | null | // Copyright 1998-2016 Epic Games, Inc. All Rights Reserved.
#include "VRDialComponent.h"
#include "Net/UnrealNetwork.h"
//=============================================================================
UVRDialComponent::UVRDialComponent(const FObjectInitializer& ObjectInitializer)
: Super(ObjectInitializer)
{
this... | 35.730612 | 236 | 0.82111 | mrkriv |
cf101bd843476de0e311d28ff09d3ef9cca483f0 | 254 | cpp | C++ | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | TouchGFX/gui/src/mainscreen_screen/mainScreenView.cpp | xlord13/vescUserInterface | ff26bc1245ec35cb545042fe01ce3111c92ef80f | [
"MIT"
] | null | null | null | #include <gui/mainscreen_screen/mainScreenView.hpp>
mainScreenView::mainScreenView()
{
}
void mainScreenView::setupScreen()
{
mainScreenViewBase::setupScreen();
}
void mainScreenView::tearDownScreen()
{
mainScreenViewBase::tearDownScreen();
}
| 15.875 | 51 | 0.76378 | xlord13 |
cf10ef64377dbdf3d4f1bf31fdd15e807684e71a | 9,555 | hpp | C++ | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null | grammar/src/noun.hpp | Agapanthus/grammar | 41f14c761174d8518e206b4c78fc4ddffd429d74 | [
"MIT"
] | null | null | null |
#pragma once
#include "grammar.hpp"
enum class NounType {
Name,
Noun,
Numeral,
Toponym,
Incomplete,
};
const static thread_local vector<string> nDeclSuffix = {
"and", "ant", "at", "end", "et", "ent", "graph", "ist",
"ik", "it", "loge", "nom", "ot", "soph", "urg"};
class Noun
: p... | 30.04717 | 80 | 0.480167 | Agapanthus |
cf11bcd06d0a0f15bb63f81dd89d5236e7b3cf9a | 2,925 | cpp | C++ | tests/resources_monitor.cpp | AperLambda/IonicEngine | 415d83698630cd23f5bf7645e234086a2f67815f | [
"MIT"
] | 3 | 2019-06-19T09:30:53.000Z | 2022-01-17T16:19:41.000Z | tests/resources_monitor.cpp | AperLambda/IonicEngine | 415d83698630cd23f5bf7645e234086a2f67815f | [
"MIT"
] | null | null | null | tests/resources_monitor.cpp | AperLambda/IonicEngine | 415d83698630cd23f5bf7645e234086a2f67815f | [
"MIT"
] | null | null | null | /*
* Copyright © 2018 AperLambda <aperlambda@gmail.com>
*
* This file is part of IonicEngine.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
#include <ionicengine/graphics/screen.h>
#include <ionicengine/graphics/animation.h>
#include <ionicengine/input/inputmanager.h>
#inc... | 26.590909 | 112 | 0.728889 | AperLambda |
cf120479d17ad251ceacc3dbcd1a134cd43e81f0 | 848 | cpp | C++ | week27/J.cpp | webturing/ACMProgramming2020 | 94c01645420c5fbc303a0eb1ed74ebb6679ab398 | [
"MIT"
] | 3 | 2020-05-31T08:41:56.000Z | 2020-09-27T15:14:03.000Z | week27/J.cpp | webturing/ACMProgramming2020 | 94c01645420c5fbc303a0eb1ed74ebb6679ab398 | [
"MIT"
] | null | null | null | week27/J.cpp | webturing/ACMProgramming2020 | 94c01645420c5fbc303a0eb1ed74ebb6679ab398 | [
"MIT"
] | null | null | null | #pragma comment(linker, "/stack:247474112")
#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
template<typename T=int>
inline void oo(const string &str, T val) { cerr << str << val << endl; }
template<typename T=int>
inline T in() {
T x;
cin >> x;
return x;... | 18.434783 | 86 | 0.51533 | webturing |
cf15f637599c1af1537245c942f98a31735e493a | 8,582 | cc | C++ | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | code/render/coregraphics/vk/vkshaderserver.cc | Nechrito/nebula | 6c7ef27ab1374d3f751d866500729524f72a0c87 | [
"BSD-2-Clause"
] | null | null | null | //------------------------------------------------------------------------------
// vkshaderserver.cc
// (C) 2016-2020 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "render/stdneb.h"
#include "vkshaderserver.h"
#include "effectfactory... | 33.787402 | 181 | 0.677231 | Nechrito |
cf1c6c7306e07fb8241178d2c27e97f9aa7d7ffe | 285 | hpp | C++ | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | examples/wifi/GUI/aboutwindow.hpp | balsini/metasim | e20a2313b18bb943d766dc1ecf3c61cf28d956f2 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #ifndef ABOUTWINDOW_H
#define ABOUTWINDOW_H
#include <QWidget>
namespace Ui {
class AboutWindow;
}
class AboutWindow : public QWidget
{
Q_OBJECT
public:
explicit AboutWindow(QWidget *parent = 0);
~AboutWindow();
private:
Ui::AboutWindow *ui;
};
#endif // ABOUTWINDOW_H
| 12.391304 | 44 | 0.722807 | balsini |
cf1c827ee1cc6883e07ac694c17e07c0a3c17b62 | 1,839 | cpp | C++ | tests/core/parsers_tests.cpp | AlexanderJDupree/ChocAn | a99634a030a093a9908d0e44363e2ca4d9b4eb4b | [
"MIT"
] | 1 | 2019-10-24T02:34:45.000Z | 2019-10-24T02:34:45.000Z | tests/core/parsers_tests.cpp | AlexanderJDupree/ChocAn | a99634a030a093a9908d0e44363e2ca4d9b4eb4b | [
"MIT"
] | 46 | 2019-10-11T20:29:02.000Z | 2019-12-07T04:21:34.000Z | tests/core/parsers_tests.cpp | AlexanderJDupree/ChocAn | a99634a030a093a9908d0e44363e2ca4d9b4eb4b | [
"MIT"
] | 2 | 2019-11-21T16:59:55.000Z | 2022-03-02T22:35:05.000Z | /*
File: parsers_test.cpp
Brief: Unit tests for parsers utility
Authors: Daniel Mendez
Alex Salazar
Arman Alauizadeh
Alexander DuPree
Kyle Zalewski
Dominique Moore
https://github.com/AlexanderJDupree/ChocAn
*/
#include <catch.hpp>
#include <ChocAn/core/utils/parser... | 25.901408 | 88 | 0.616639 | AlexanderJDupree |
cf1cd214b161e28649c4865764e7856ce5965c86 | 2,468 | cpp | C++ | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 6 | 2019-01-05T08:30:32.000Z | 2022-03-10T08:19:57.000Z | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 4 | 2019-10-18T14:31:04.000Z | 2020-10-16T16:52:30.000Z | share/crts/plugins/Filters/fileOut.cpp | xywzwd/VT-Wireless | ec42e742e2be26310df4b25cef9cea873896890b | [
"MIT"
] | 5 | 2017-05-12T21:24:18.000Z | 2022-03-10T08:20:02.000Z | #include <stdio.h>
#include <string.h>
#include <string>
#include "crts/debug.h"
#include "crts/Filter.hpp"
#include "crts/crts.hpp" // for: FILE *crtsOut
class FileOut : public CRTSFilter
{
public:
FileOut(int argc, const char **argv);
~FileOut(void);
ssize_t write(void *buffer, size_... | 21.275862 | 75 | 0.552269 | xywzwd |
cf2141384bbe6594f49112aa14701485cb584e07 | 490 | cpp | C++ | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | 44_StackInheritance/src/Stack.cpp | jonixis/CPP18 | 0dfe165f22a3cbef9e8cda102196d53d3e120e57 | [
"MIT"
] | null | null | null | #include "Stack.h"
#include <iostream>
Stack::Stack() : sp(256) { }
Stack::~Stack() { }
void Stack::push(int i) {
if (full()) {
std::cout << "Element '" << i << "' could not be pushed. Stack full!" << std::endl;
return;
}
s[--sp] = i;
}
int Stack::pop() {
if (empty()) {
std::cout << "Stack Emp... | 16.333333 | 86 | 0.528571 | jonixis |
cf295c30acc4633c02fafae8a08e9d396738b3dc | 2,129 | cpp | C++ | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | FireWok/main.cpp | davidkron/AECE | 83b0f288b84b16755df2e5a0d5d401f0e9a7dceb | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <Engine.hpp>
using namespace sf;
class AECEWrapper {
std::map<std::string, std::unique_ptr<sf::Music>> _songs;
std::unique_ptr<AECE::Engine> _engine;
public:
AECEWrapper() {
std::unique_ptr<sf::Music> music = std::... | 28.386667 | 132 | 0.554251 | davidkron |
cf2b78ba80844b0204d5e57701ba53b4bb39c3ab | 2,195 | cpp | C++ | software/MFrame/MIcon/MIcon.TIFF.cpp | mihaip/mscape | fc83fc85dc40e4f171d759a916073b299e360d87 | [
"Apache-2.0"
] | null | null | null | software/MFrame/MIcon/MIcon.TIFF.cpp | mihaip/mscape | fc83fc85dc40e4f171d759a916073b299e360d87 | [
"Apache-2.0"
] | null | null | null | software/MFrame/MIcon/MIcon.TIFF.cpp | mihaip/mscape | fc83fc85dc40e4f171d759a916073b299e360d87 | [
"Apache-2.0"
] | null | null | null | #include "MIcon.h"
void MIcon::LoadTIFF(void)
{
unsigned long imageCount;
Rect bounds;
OSErr myErr = noErr;
GraphicsImportComponent importer = NULL;
unsigned char *icon, *mask;
FSSpec targetFile;
int height, iconName, mask8Name, mask1Name;
GWorldPtr iconGW, mask8GW, mask1GW;
Pi... | 25.823529 | 92 | 0.663326 | mihaip |
cf2ba49e38d43e46baaa6e9d5849109620decc8c | 744 | hpp | C++ | Magic_Recode/Header++/Chat_Print_Formatted/Functions/Chat_Print_Formatted_Redirect_Chat_Print_Formatted.hpp | PMArkive/Magic_Recode | 2ca336650a25ccc95eba17d67e18f196010f0e47 | [
"Unlicense"
] | null | null | null | Magic_Recode/Header++/Chat_Print_Formatted/Functions/Chat_Print_Formatted_Redirect_Chat_Print_Formatted.hpp | PMArkive/Magic_Recode | 2ca336650a25ccc95eba17d67e18f196010f0e47 | [
"Unlicense"
] | null | null | null | Magic_Recode/Header++/Chat_Print_Formatted/Functions/Chat_Print_Formatted_Redirect_Chat_Print_Formatted.hpp | PMArkive/Magic_Recode | 2ca336650a25ccc95eba17d67e18f196010f0e47 | [
"Unlicense"
] | null | null | null | #pragma once
void Redirect_Chat_Print_Formatted(void* Client_Module_Location)
{
if (Menu_Select::Game_Identifier == 0)
{
Redirection_Manager::Redirect_Function(Original_Chat_Print_Formatted_Caller_Location, 2, (void*)((unsigned __int32)Client_Module_Location + 1219184), (void*)Redirected_Chat_Print_Formatted_Sourc... | 26.571429 | 295 | 0.788978 | PMArkive |
cf3595135ad0cb907b7de4544f4d0ae1780bd08f | 5,298 | cpp | C++ | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T06:39:24.000Z | 2020-07-25T06:39:24.000Z | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:32:10.000Z | 2020-07-25T05:32:10.000Z | libcornet/poller.cpp | pioneer19/libcornet | 9eb91629d8f9a6793b28af10a3535bfba0cc24ca | [
"Apache-2.0"
] | 1 | 2020-07-25T05:28:54.000Z | 2020-07-25T05:28:54.000Z | /*
* Copyright 2020 Alex Syrnikov <pioneer19@post.cz>
* SPDX-License-Identifier: Apache-2.0
*
* This file is part of libcornet (https://github.com/pioneer19/libcornet).
*/
#include <libcornet/poller.hpp>
#include <unistd.h>
#include <cstdio>
#include <string>
#include <array>
#include <algorithm>
#include <syste... | 29.764045 | 89 | 0.579464 | pioneer19 |
cf362f3dc8e07a85b8e73caa54fa4934769caba0 | 16,063 | cpp | C++ | contrib/pg_upgrade/info.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | 1 | 2020-06-30T15:00:50.000Z | 2020-06-30T15:00:50.000Z | contrib/pg_upgrade/info.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | contrib/pg_upgrade/info.cpp | wotchin/openGauss-server | ebd92e92b0cfd76b121d98e4c57a22d334573159 | [
"MulanPSL-1.0"
] | null | null | null | /*
* info.c
*
* information support functions
*
* Copyright (c) 2010-2012, PostgreSQL Global Development Group
* contrib/pg_upgrade/info.c
*/
#include "postgres.h"
#include "knl/knl_variable.h"
#include "pg_upgrade.h"
#include "access/transam.h"
#include "catalog/pg_tablespace.h"
static void create_rel_file... | 35.303297 | 119 | 0.596651 | wotchin |
cf36e6e90f05526538448226defc5b8747f874a9 | 1,318 | cpp | C++ | src/servers/comanched/src/main.cpp | fengggli/comanche | 035f2a87e0236e9ff744c10331250dcfab835ee1 | [
"Apache-2.0"
] | null | null | null | src/servers/comanched/src/main.cpp | fengggli/comanche | 035f2a87e0236e9ff744c10331250dcfab835ee1 | [
"Apache-2.0"
] | 13 | 2019-06-12T17:50:29.000Z | 2019-08-08T21:15:16.000Z | src/servers/comanched/src/main.cpp | fengggli/comanche | 035f2a87e0236e9ff744c10331250dcfab835ee1 | [
"Apache-2.0"
] | 1 | 2019-07-26T21:39:13.000Z | 2019-07-26T21:39:13.000Z | #include <boost/program_options.hpp>
#include <iostream>
#include <common/logging.h>
#include <core/postbox.h>
#include <core/uipc.h>
#include <core/dpdk.h>
#include <core/ipc.h>
#include "protocol_generated.h"
#include "service.pb.h"
#include "service.h"
#include <common/mpmc_bounded_queue.h>
int main(int argc,... | 24.867925 | 96 | 0.601669 | fengggli |
cf3ca84b80f8b5e85030f65b7962728daeb3c9c3 | 7,553 | cc | C++ | ash/system/chromeos/tray_display.cc | hujiajie/pa-chromium | 1816ff80336a6efd1616f9e936880af460b1e105 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2020-05-03T06:33:56.000Z | 2021-11-14T18:39:42.000Z | ash/system/chromeos/tray_display.cc | hujiajie/pa-chromium | 1816ff80336a6efd1616f9e936880af460b1e105 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | ash/system/chromeos/tray_display.cc | hujiajie/pa-chromium | 1816ff80336a6efd1616f9e936880af460b1e105 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/system/chromeos/tray_display.h"
#include "ash/display/display_controller.h"
#include "ash/display/display_manager.h"
#include "ash/shel... | 29.972222 | 80 | 0.709519 | hujiajie |
cf4020ea3144e9c12d48e9a6a38ccb966d4b29b4 | 1,187 | cpp | C++ | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | OpenCLFilterPipeline/Camera.cpp | SebGrenier/OpenCLFilterPipeline | dbdf08142f211cc4ba6d08fbf07c22ecd6bb872b | [
"MIT"
] | null | null | null | #include "Camera.h"
Camera::Camera()
: _center_x(0)
, _center_y(0)
, _width(1)
, _height(1)
, _zoom_level(1)
{ }
Camera::~Camera()
{ }
void Camera::Translate(double x, double y)
{
_center_x += x;
_center_y += y;
}
void Camera::Zoom(const double factor)
{
_width = _width * factor;
_height = _height * facto... | 15.826667 | 98 | 0.679023 | SebGrenier |
cf41fb617b797f032de6c6762a62b0931599fef8 | 513 | hpp | C++ | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | bsengine/src/bstorm/math_util.hpp | At-sushi/bstorm | 156036afd698d98f0ed67f0efa6bc416115806f7 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
namespace bstorm
{
template <typename T>
T constrain(const T& v, const T& min, const T& max)
{
return std::min(std::max<T>(v, min), max);
}
inline int NextPow2(int x)
{
if (x < 0) return 0;
--x;
x |= x >> 1;
x |= x >> 2;
x |= x >> 4;
x |= x >> 8;
x |=... | 16.548387 | 63 | 0.528265 | At-sushi |
cf446ba36edbdfcbc7e8df85b151edfd87b04b1b | 141 | cpp | C++ | MSan/code-with-uninit-read/main.cpp | gusenov/examples-google-sanitizers | 0dd2a1b4ed0d5bc41f872e33d975e54d10d714a2 | [
"MIT"
] | 4 | 2021-11-23T07:28:56.000Z | 2022-02-03T10:21:25.000Z | MSan/code-with-uninit-read/main.cpp | gusenov/examples-google-sanitizers | 0dd2a1b4ed0d5bc41f872e33d975e54d10d714a2 | [
"MIT"
] | null | null | null | MSan/code-with-uninit-read/main.cpp | gusenov/examples-google-sanitizers | 0dd2a1b4ed0d5bc41f872e33d975e54d10d714a2 | [
"MIT"
] | null | null | null | int main(int argc, char** argv) {
int* a = new int[10];
a[5] = 0;
if (a[argc])
std::cout << a[3];
return 0;
}
| 17.625 | 34 | 0.425532 | gusenov |
cf473ce3ea1cc6aca3ae392132e3df9aa4172954 | 1,885 | cpp | C++ | Win32.Liquid/source/skysyn.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | 2 | 2021-02-04T06:47:45.000Z | 2021-07-28T10:02:10.000Z | Win32.Liquid/source/skysyn.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null | Win32.Liquid/source/skysyn.cpp | 010001111/Vx-Suites | 6b4b90a60512cce48aa7b87aec5e5ac1c4bb9a79 | [
"MIT"
] | null | null | null |
#include "../header/includes.h"
#include "../header/functions.h"
#include "../header/externs.h"
#ifndef NO_SYN
#define MAX_PACK_LEN 65535
#define SIO_RCALL 0x98000001
#define SKYSYN_SOCKETS 400
#define SYN_DPORT 2000
#define SYN_XORVAL 0xFFFFFFFF
#define SYN_SPOOF_TEST 2001
#define SYN_SPOOF_GOOD 2002
DWORD WINAP... | 22.440476 | 105 | 0.682228 | 010001111 |
cf4a2a49e670cd5eb9fc37ce94c6dca67b50566c | 6,917 | cc | C++ | lifetime_analysis/test/inheritance.cc | google/crubit | ff16f6442cb78ae79ab61bd3b6375480f6af28b3 | [
"Apache-2.0"
] | 23 | 2022-03-28T12:55:44.000Z | 2022-03-31T07:52:02.000Z | lifetime_analysis/test/inheritance.cc | google/crubit | ff16f6442cb78ae79ab61bd3b6375480f6af28b3 | [
"Apache-2.0"
] | null | null | null | lifetime_analysis/test/inheritance.cc | google/crubit | ff16f6442cb78ae79ab61bd3b6375480f6af28b3 | [
"Apache-2.0"
] | null | null | null | // Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// Tests involving inheritance.
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "lifetime_analysis/test/lifetime_analysis_te... | 24.528369 | 80 | 0.594477 | google |
cf4a71baaf7976e390f64e029a2d37d997c783ea | 1,240 | cpp | C++ | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | src/dx12/render/details/CommandQueue.cpp | log0div0/just_for_fun | 737fc18c61e2c6a698de34cb7ea80f9eeee32362 | [
"MIT"
] | null | null | null | #include "CommandQueue.hpp"
#include "Exceptions.hpp"
#include "../Context.hpp"
using namespace winapi;
namespace render {
CommandQueue::CommandQueue(D3D12_COMMAND_LIST_TYPE type) {
D3D12_COMMAND_QUEUE_DESC desc = {
.Type = type,
.Flags = D3D12_COMMAND_QUEUE_FLAG_NONE,
.NodeMask = 1,
};
ThrowIfFailed(g_cont... | 24.8 | 95 | 0.766129 | log0div0 |
cf4b260e9a191301a714383ab17f9a1ca0499c56 | 12,355 | hpp | C++ | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | 9 | 2019-11-03T23:38:55.000Z | 2022-01-08T07:49:26.000Z | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | null | null | null | tests/python_to_cpp/python_to_11l/tokenizer.hpp | 11l-lang/_11l_to_cpp | 60306c270d51f2876bff868d7f897ff4c395d39f | [
"MIT"
] | 2 | 2019-11-16T14:16:01.000Z | 2020-11-16T14:34:48.000Z | auto keywords = create_array({u"False"_S, u"await"_S, u"else"_S, u"import"_S, u"pass"_S, u"None"_S, u"break"_S, u"except"_S, u"in"_S, u"raise"_S, u"True"_S, u"class"_S, u"finally"_S, u"is"_S, u"return"_S, u"and"_S, u"continue"_S, u"for"_S, u"lambda"_S, u"try"_S, u"as"_S, u"def"_S, u"from"_S, u"nonlocal"_S, u"while"_S,... | 41.459732 | 432 | 0.456091 | 11l-lang |
cf4c74936fb769e9fc0476356a63f2f46774d048 | 18,687 | hpp | C++ | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 5 | 2019-02-08T15:59:14.000Z | 2022-01-22T19:12:33.000Z | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | 1 | 2019-12-03T03:11:34.000Z | 2019-12-03T03:11:34.000Z | core/src/cogs/gui/scroll_pane.hpp | cogmine/cogs | ef1c369a36a4f811704e0ced0493c3a6f8eca821 | [
"MIT"
] | null | null | null | //
// Copyright (C) 2000-2020 - Colen M. Garoutte-Carson <colen at cogmine.com>, Cog Mine LLC
//
// Status: Good, MayNeedCleanup
#ifndef COGS_HEADER_GUI_SCROLL_PANE
#define COGS_HEADER_GUI_SCROLL_PANE
#include "cogs/gui/pane.hpp"
#include "cogs/gui/label.hpp"
#include "cogs/gui/grid.hpp"
#include "cogs/gui/scroll_... | 33.015901 | 148 | 0.716059 | cogmine |
cf4e821f115e3cfd6d94bfd773d302b790d4f29f | 417 | cpp | C++ | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | C++/octalToDecimal.cpp | neontuts/code-snippets | cdc5d9e482a716015f3a43a4843d02521e1231f1 | [
"MIT"
] | null | null | null | /*
Write a program to convert octal to decimal.
For Example : (100)₈ ---> (64)₁₀
*/
#include <iostream>
using namespace std;
int octalToDecimal(int n) {
int ans = 0;
int x = 1;
while (n > 0) {
int y = n % 10;
ans += x *y;
x *= 8;
n /= 10;
}
return ans;
}
int main() {
int octal;
... | 12.264706 | 46 | 0.541966 | neontuts |
cf50d562590286153fea3ff89ec2a94edb045128 | 1,238 | cpp | C++ | src/EIoHandlerAdapter.cpp | isuhao/CxxMina | 6073842a1f11c14cb071f36171758780d2eec782 | [
"Apache-2.0"
] | null | null | null | src/EIoHandlerAdapter.cpp | isuhao/CxxMina | 6073842a1f11c14cb071f36171758780d2eec782 | [
"Apache-2.0"
] | null | null | null | src/EIoHandlerAdapter.cpp | isuhao/CxxMina | 6073842a1f11c14cb071f36171758780d2eec782 | [
"Apache-2.0"
] | null | null | null | /*
* EIoHandlerAdapter.cpp
*
* Created on: 2013-8-19
* Author: cxxjava@163.com
*/
#include "EIoHandlerAdapter.hh"
namespace efc {
namespace eio {
sp<ELogger> EIoHandlerAdapter::LOGGER = ELoggerManager::getLogger("EIoHandlerAdapter");
void EIoHandlerAdapter::sessionCreated(sp<EIoSession>& session) {
// E... | 23.358491 | 105 | 0.733441 | isuhao |
cf531c57b1fa79a7d73b5badbf1fed15e2fd4904 | 486 | cpp | C++ | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | 1 | 2020-08-06T02:43:50.000Z | 2020-08-06T02:43:50.000Z | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | null | null | null | src/commandHistory.cpp | rainstormstudio/AsciiEditor | ea6a089cd1edf087cb086295ad6268af0ed37c65 | [
"MIT"
] | null | null | null | #include "commandHistory.hpp"
CommandHistory::CommandHistory() {
commands = std::stack<std::shared_ptr<Command>>();
}
void CommandHistory::push(std::shared_ptr<Command> command) {
commands.emplace(command);
}
std::shared_ptr<Command> CommandHistory::pop() {
if (commands.empty()) {
return nullptr;... | 23.142857 | 61 | 0.679012 | rainstormstudio |
cf56ea23ee47afd79940e48b9c903455b2fc07f3 | 412 | cc | C++ | caffe2/sgd/iter_op.cc | 123chengbo/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | 1 | 2017-03-13T01:38:16.000Z | 2017-03-13T01:38:16.000Z | caffe2/sgd/iter_op.cc | will001/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | null | null | null | caffe2/sgd/iter_op.cc | will001/caffe2 | 0a68778916f3280b5292fce0d74b73b70fb0f7e8 | [
"BSD-3-Clause"
] | 1 | 2020-03-19T08:48:39.000Z | 2020-03-19T08:48:39.000Z | #include "caffe2/sgd/iter_op.h"
namespace caffe2 {
namespace {
REGISTER_CPU_OPERATOR(Iter, IterOp<CPUContext>);
OPERATOR_SCHEMA(Iter)
.NumInputs(0, 1)
.NumOutputs(1)
.EnforceInplace({{0, 0}})
.SetDoc(R"DOC(
Stores a singe integer, that gets incremented on each call to Run().
Useful for tracking the it... | 21.684211 | 68 | 0.716019 | 123chengbo |
cf5f70a50d624786dda6ff1a113537cf46e4661d | 1,969 | cpp | C++ | src/Boring32.UnitTests/WinSock/Socket.cpp | yottaawesome/Boring32 | 0fef624151e4a325929ed1c821c508ffba405469 | [
"MIT"
] | null | null | null | src/Boring32.UnitTests/WinSock/Socket.cpp | yottaawesome/Boring32 | 0fef624151e4a325929ed1c821c508ffba405469 | [
"MIT"
] | null | null | null | src/Boring32.UnitTests/WinSock/Socket.cpp | yottaawesome/Boring32 | 0fef624151e4a325929ed1c821c508ffba405469 | [
"MIT"
] | null | null | null | #include "pch.h"
#include <stdexcept>
#include "CppUnitTest.h"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
import boring32.winsock;
namespace WinSock
{
TEST_CLASS(Socket)
{
public:
TEST_METHOD(TestDefaultConstructor)
{
Boring32::WinSock::WinSockInit init(2,2);
Bor... | 27.732394 | 85 | 0.653631 | yottaawesome |
cf608bec139d8ca2f0bb8a828a1b05ab3f822182 | 1,903 | cpp | C++ | vnpy/api/xtp/pyscript/td/xtp_td_wrap.cpp | tanzedan/vnpy | 16c616ece1597a5766bf2fb3529f5789958330b6 | [
"MIT"
] | 4 | 2018-04-05T15:35:02.000Z | 2022-01-04T11:23:19.000Z | vnpy/api/xtp/pyscript/td/xtp_td_wrap.cpp | motw2014/vnpy | 16c616ece1597a5766bf2fb3529f5789958330b6 | [
"MIT"
] | null | null | null | vnpy/api/xtp/pyscript/td/xtp_td_wrap.cpp | motw2014/vnpy | 16c616ece1597a5766bf2fb3529f5789958330b6 | [
"MIT"
] | 1 | 2019-03-17T14:36:08.000Z | 2019-03-17T14:36:08.000Z | virtual void onDisconnected()
{
try
{
this->get_override("onDisconnected")();
}
catch (error_already_set const &)
{
PyErr_Print();
}
};
virtual void onError(dict data)
{
try
{
this->get_override("onError")(data);
}
catch (error_already_set const &)
{
... | 17.458716 | 70 | 0.575933 | tanzedan |
cf64d57c0d7e1d8d50f24da7f252d8716a7050ad | 729 | cpp | C++ | ares/msx/cartridge/board/super-lode-runner.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 153 | 2020-07-25T17:55:29.000Z | 2021-10-01T23:45:01.000Z | ares/msx/cartridge/board/super-lode-runner.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 245 | 2021-10-08T09:14:46.000Z | 2022-03-31T08:53:13.000Z | ares/msx/cartridge/board/super-lode-runner.cpp | CasualPokePlayer/ares | 58690cd5fc7bb6566c22935c5b80504a158cca29 | [
"BSD-3-Clause"
] | 44 | 2020-07-25T08:51:55.000Z | 2021-09-25T16:09:01.000Z | //Super Lode Runner
//(not working: requires MSX BASIC)
struct SuperLodeRunner : Interface {
using Interface::Interface;
Memory::Readable<n8> rom;
auto load() -> void override {
Interface::load(rom, "program.rom");
}
auto save() -> void override {
}
auto unload() -> void override {
}
auto rea... | 19.702703 | 90 | 0.611797 | CasualPokePlayer |
cf6856581b13404eece60646653b32584637a0f3 | 2,966 | hxx | C++ | opencascade/StepAP214_AutoDesignPresentedItemSelect.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/StepAP214_AutoDesignPresentedItemSelect.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/StepAP214_AutoDesignPresentedItemSelect.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1997-03-26
// Created by: Christian CAILLET
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the ... | 30.265306 | 104 | 0.798382 | valgur |
cf6948ccff79c9e64eb5f1ed40341ca8d67abcf0 | 1,960 | cpp | C++ | src/App.cpp | bubba169/moja-game | f99f353f6f8d45e2af26b1a505eb08121164823b | [
"Apache-2.0"
] | null | null | null | src/App.cpp | bubba169/moja-game | f99f353f6f8d45e2af26b1a505eb08121164823b | [
"Apache-2.0"
] | null | null | null | src/App.cpp | bubba169/moja-game | f99f353f6f8d45e2af26b1a505eb08121164823b | [
"Apache-2.0"
] | null | null | null | #include <Mojagame.h>
App::App( AppConfig* config ) : _config(config) {
_grapevine = new Grapevine();
_platform = new Platform();
_scene = new Scene();
App::_current = this;
}
App::~App() {
delete _platform;
delete _grapevine;
delete _scene;
}
App* App::_current;
App* App::current() {
... | 18.666667 | 64 | 0.612755 | bubba169 |
cf6a6a6d9bf04a7fc286aab8c0200cd082c7d3b6 | 1,701 | cpp | C++ | Scripts/GameLoop/LoopStateWin.cpp | solidajenjo/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 10 | 2019-02-25T11:36:23.000Z | 2021-11-03T22:51:30.000Z | Scripts/GameLoop/LoopStateWin.cpp | solidajenjo/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 146 | 2019-02-05T13:57:33.000Z | 2019-11-07T16:21:31.000Z | Scripts/GameLoop/LoopStateWin.cpp | FractalPuppy/Engine | 409516f15e0f083e79b749b9c9184f2f04184325 | [
"MIT"
] | 3 | 2019-11-17T20:49:12.000Z | 2020-04-19T17:28:28.000Z | #include "LoopStateWin.h"
#include "Application.h"
#include "ModuleTime.h"
#include "ModuleScene.h"
#include "ModuleInput.h"
#include "ComponentAudioSource.h"
#include "ComponentImage.h"
#include "GameLoop.h"
#include "GameObject.h"
#define MENU_SCENE "MenuScene"
LoopStateWin::LoopStateWin(GameLoop* GL) : LoopStat... | 21 | 110 | 0.703704 | solidajenjo |
cf6c2c50bef1961a56effec0794000c03b3e3fb1 | 3,781 | cpp | C++ | src/display.cpp | TheLastBilly/sarchat | 650e7fe6730ddcf58a35615839763e8f01798394 | [
"BSD-2-Clause"
] | null | null | null | src/display.cpp | TheLastBilly/sarchat | 650e7fe6730ddcf58a35615839763e8f01798394 | [
"BSD-2-Clause"
] | null | null | null | src/display.cpp | TheLastBilly/sarchat | 650e7fe6730ddcf58a35615839763e8f01798394 | [
"BSD-2-Clause"
] | null | null | null | // sarchat - display.cpp
//
// Copyright (c) 2019, TheLastBilly
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#include "include/display.hpp"
namespace Display{
bool direcpp_good = false;
DireCpp::D... | 35.336449 | 98 | 0.472362 | TheLastBilly |
cf6cc61f9639a41fc2d45c56a2c2fb374461d6eb | 866 | hpp | C++ | include/pixiu/server/response.hpp | CHChang810716/pixiu | 4b599c27c7ab2e402f6a6354fd4e7e6a11ab0a9c | [
"MIT"
] | 2 | 2021-05-19T04:39:09.000Z | 2021-05-19T04:57:12.000Z | include/pixiu/server/response.hpp | CHChang810716/pixiu | 4b599c27c7ab2e402f6a6354fd4e7e6a11ab0a9c | [
"MIT"
] | 5 | 2021-01-13T14:10:22.000Z | 2021-01-23T17:54:35.000Z | include/pixiu/server/response.hpp | CHChang810716/pixiu | 4b599c27c7ab2e402f6a6354fd4e7e6a11ab0a9c | [
"MIT"
] | 1 | 2020-04-14T18:22:08.000Z | 2020-04-14T18:22:08.000Z | #pragma once
#include <boost/beast/http/message.hpp>
#include <variant>
#include <boost/beast/http/string_body.hpp>
#include <boost/beast/http/empty_body.hpp>
#include <boost/beast/http/file_body.hpp>
namespace pixiu::server_bits {
namespace __http = boost::beast::http ;
using response_base = std::variant<
__ht... | 26.242424 | 44 | 0.688222 | CHChang810716 |
cf6cd1a0c64297f7bbb38e71b6df9c875e1d7b5b | 560 | cpp | C++ | LittleBearDllNew/function/MessageBoxProc.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/function/MessageBoxProc.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null | LittleBearDllNew/function/MessageBoxProc.cpp | satadriver/LittleBear | ad3939f971b1c3ac4a97d2c228e52b4eb1f388e5 | [
"Apache-2.0"
] | null | null | null |
#include <windows.h>
#include "../network/NetWorkData.h"
int __stdcall MessageBoxProc(char * msgparam){
char * param = msgparam;
int caplen = *(int*)param;
param += sizeof(int);
char *szcap = new char[caplen + 4];
memset(szcap,0,caplen + 4);
memmove(szcap,param,caplen);
param += caplen;
int textlen = *(... | 17.5 | 46 | 0.675 | satadriver |