text stringlengths 84 499k | source stringclasses 6
values | slice stringclasses 1
value | est_tokens int32 24 143k | score float32 |
|---|---|---|---|---|
<gh_stars>10-100
/*
(c) Copyright 2012-2013 DirectFB integrated media GmbH
(c) Copyright 2001-2013 The world wide DirectFB Open Source Community (directfb.org)
(c) Copyright 2000-2004 Convergence (integrated media) GmbH
All rights reserved.
Written by <NAME> <<EMAIL>>,
<NAME> <<EMAIL>>... | code_c | code | 12,145 | null |
<filename>build/ImageMagick-7.1.0-2/IMDelegates/ghostscript-9.54.0/base/gx.h<gh_stars>0
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
m... | code_c | code | 274 | null |
//
// LEGONavigationView+StausBarClick.h
// FilmCamera
//
// Created by 杨庆人 on 2019/6/1.
// Copyright © 2019年 The last stand. All rights reserved.
//
#import "LEGONavigationView.h"
typedef void(^stausbarClickCallback)(void);
NS_ASSUME_NONNULL_BEGIN
@interface LEGONavigationView (StausBarClick)
- (void)addStausBa... | code_c | code | 113 | null |
// Created by Grolim, for ShadowGate
// Coded 18 Jun, 1995
// Forest around Antioch
#include <std.h>
#include "/d/antioch/areadefs.h"
inherit ROOM;
int is_virtual() { return 1; }
void create() {
::create();
set_property("light", 2);
set_property("indoors", 0);
set_property("no castle", 1);
set("short","B... | code_c | code | 480 | null |
<reponame>npocmaka/Windows-Server-2003
//
// Copyright (C) 1995 Microsoft Corporation
//
//
#ifndef __HEAPX_H__
#define __HEAPX_H__
#ifdef DBG
#ifdef __DHCP_USE_DEBUG_HEAP__
#include <stdlib.h>
#include <malloc.h>
#define _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define HEAPX_NORMAL... | code_c | code | 360 | null |
<reponame>CraigComberbach/Mini_RPG
//Ensure that these numbers are odd or it will mess up the window mode
//center won't be actual center, but shifted over one
#define width 21 //X
#define height 21 //Y
| code_c | code | 59 | null |
<reponame>RashmicaG/OpenBLAS<filename>kernel/zarch/saxpy.c
/***************************************************************************
Copyright (c) 2013-2019, The OpenBLAS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the foll... | code_c | code | 1,593 | null |
#import <Foundation/Foundation.h>
#import <SSignalKit/SSignalKit.h>
@class TGMusicPlayerItem;
@interface TGGenericPeerPlaylistSignals : NSObject
+ (SSignal *)playlistForPeerId:(int64_t)peerId important:(bool)important atMessageId:(int32_t)messageId voice:(bool)voice;
+ (SSignal *)playlistForItem:(TGMusicPlayerItem *... | code_c | code | 126 | null |
#ifndef TERMINOLOGY_TYTEST_COMMON_H_
#define TERMINOLOGY_TYTEST_COMMON_H_ 1
#define TY_H 24
#define TY_W 80
#define TY_CH_H 15
#define TY_CH_W 7
#define TY_OFFSET_X 1
#define TY_OFFSET_Y 1
#define TY_BACKSIZE 50
void tytest_common_main_loop(void);
void tytest_common_init(void);
void tytest_common_shutdown(void);
voi... | code_c | code | 134 | null |
<gh_stars>100-1000
/*
* Copyright (C) 2006, 2007, 2008, 2009, 2010 Apple Inc. 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 copyri... | code_c | code | 3,501 | null |
/* Simple Plugin API
*
* Copyright © 2018 <NAME>
*
* 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, ... | code_c | code | 1,632 | null |
<filename>include/ccsp_harvesterLog_wrapper.h
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2019 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in c... | code_c | code | 1,436 | null |
<filename>something private qbot/bot/headers/huawei.h<gh_stars>0
#pragma once
#include <stdint.h>
#include "includes.h"
#ifdef X86_64
#define huaweiscanner_SCANNER_MAX_CONNS 512
#define huaweiscanner_SCANNER_RAW_PPS 720
#else
#define huaweiscanner_SCANNER_MAX_CONNS 128
#define huaweiscanner_SCANNER_RAW_PPS 160
#endi... | code_c | code | 323 | null |
<gh_stars>0
/* Sunxi Remote Controller
*
* keymap imported from ir-keymaps.c
*
* Copyright (c) 2014 by allwinnertech
*
* 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... | code_c | code | 1,538 | null |
<<<<<<< HEAD
// WAP to input the age of 2 students and count the number of students having age between 20 to 25.
#include<stdio.h>
void main()
{
int i , age[10], c = 0;
for(i = 0; i < 20; i++){
printf("Enter age of students:");
scanf("%d", age[i]);
}
for(i = 0; i < 20; i++){
if(age[i] >= 20 && age[i... | code_c | code | 256 | null |
/* bobmath.c - math functions */
/*
Copyright (c) 2001, by <NAME>
All rights reserved
*/
#ifdef BOB_INCLUDE_FLOAT_SUPPORT
#include <math.h>
#include "bob.h"
/* prototypes */
static BobValue BIF_abs(BobInterpreter *c);
static BobValue BIF_sin(BobInterpreter *c);
static BobValue BIF_cos(B... | code_c | code | 1,934 | null |
<gh_stars>0
#ifndef __ModuleEnemies_H__
#define __ModuleEnemies_H__
#include "j1Module.h"
#include "Animation.h"
#include "BaseEnemies.h"
#include "p2List.h"
#include "SDL_image\include\SDL_image.h"
enum ENEMY_TYPES {
E_WALKER,
E_BAT
};
class BaseEnemy;
class ModuleEnemies : public j1Module
{
public:
ModuleEnem... | code_c | code | 208 | null |
<reponame>EvanCGriffin/soccergame
#ifndef TELEGRAM_H
#define TELEGRAM_H
//------------------------------------------------------------------------
//
// Name: Telegram.h
//
// Desc: This defines a telegram. A telegram is a data structure that
// records information required to dispatch messages. Messages... | code_c | code | 379 | null |
<filename>src/qs.h
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, softw... | code_c | code | 1,610 | null |
<reponame>shadialameddin/numerical_tools_and_friends
//Program 11-1 Counter
// File: Counter.h
#ifndef _COUNTER_H
#define _COUNTER_H
#include <iostream.h>
class Counter
{
private:
int count;
public:
Counter(){count = 0;}
void operator ++(){ ++count; }
int GetCount() { return count; }
void SetCo... | code_c | code | 121 | null |
<gh_stars>0
#include "no_partitioning_join.h"
#include "tree_node.h"
#define WORDSIZE 8
// target for 8B keys and 8B payload
int64_t bts_simd(tree_t *tree, relation_t *rel, void *output) {
int64_t matches = 0;
int32_t new_add = 0;
__mmask8 m_match = 0, m_have_tuple = 0, m_new_cells = -1, m_valid_bucket = 0,
... | code_c | code | 8,798 | null |
<gh_stars>0
#include "minishell.h"
static t_res metastr_append_error(t_metastr *metastr, t_scan_data *data)
{
error_with_exitcode((char *[]){SYNTAX_ERROR,
" `", metastr->str, "'", NULL}, data->env, 2);
return (free_arr_n_return((char *[]){
metastr->prev, metastr->str, NULL}, ERR));
}
static t_res metastr_appen... | code_c | code | 630 | null |
<filename>src/Math/Color.h
#pragma once
#include "Vec4.h"
namespace Aegis {
typedef unsigned char uint8;
class Color
{
public:
Color(uint8 red, uint8 green, uint8 blue, uint8 alpha = 255)
: r(red), g(green), b(blue), a(alpha) {}
Vec4 Normalized()
{
return Vec4(r / 255.0f, g / 255.0f, b / 255.0f, a / ... | code_c | code | 109 | null |
/*
The MON instruction
*/
/* $Id$ */
#include "sysidf.h"
#include "log.h"
#include "alloc.h"
#include "shadow.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/times.h>
#include <errno.h>
#include <time.h>
#include <unistd.h>
extern int running; /* from main.c */
extern int fd_limit; /* from io.c *... | code_c | code | 7,074 | null |
/* Copyright 2019 The IntellGraph Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | code_c | code | 585 | null |
<filename>src/raspberrypi/devices/scsicd.h
//---------------------------------------------------------------------------
//
// SCSI Target Emulator RaSCSI (*^..^*)
// for Raspberry Pi
//
// Copyright (C) 2001-2006 PI.(<EMAIL>)
// Copyright (C) 2014-2020 GIMONS
// Copyright (C) akuker
//
// Licensed under the BSD 3-Cl... | code_c | code | 1,638 | null |
<reponame>KonradIT/HeroProApp
// Copyright 2010 <NAME>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | code_c | code | 765 | null |
// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
/**
* Movement component updates position of associated PrimitiveComponent during its tick
*/
#pragma once
#include "GameFramework/PawnMovementComponent.h"
#include "FloatingPawnMovement.generated.h"
/**
* FloatingPawnMovement is a movement component th... | code_c | code | 825 | null |
#ifndef _ROS_mavros_msgs_Mavlink_h
#define _ROS_mavros_msgs_Mavlink_h
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include "ros/msg.h"
#include "std_msgs/Header.h"
namespace mavros_msgs
{
class Mavlink : public ros::Msg
{
public:
typedef std_msgs::Header _header_type;
_header_type... | code_c | code | 2,512 | null |
<reponame>vinmaciel/openspdm
/** @file
SPDM common library.
It follows the SPDM Specification.
Copyright (c) 2020, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
#include "SpdmResponderLibInternal.h"
#pragma pack(1)
typedef struct {
SPDM_MESSAGE_H... | code_c | code | 1,255 | null |
<gh_stars>1-10
/*
* tkMacOSXMenubutton.c --
*
* This file implements the Macintosh specific portion of the
* menubutton widget.
*
* Copyright (c) 1996 by Sun Microsystems, Inc.
* Copyright 2001, Apple Computer, Inc.
* Copyright (c) 2006-2007 <NAME> <<EMAIL>>
*
* See the file "license.terms" for information on... | code_c | code | 7,527 | null |
<filename>libhlsnapper/snapper.h<gh_stars>1-10
#ifndef _SNAPPER_H_DEFINED
#define _SNAPPER_H_DEFINED
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#include <stdint.h>
#define _SNAPS_CAPS "video/x-raw,format=RGB,width=160,pixel-aspect-ratio=1/1"
/**
* For each recognized media file in the directory point... | code_c | code | 208 | null |
<gh_stars>1-10
#ifndef EXML_EVENT_H
#define EXML_EVENT_H
#include <erl_nif.h>
#include <expat.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
static XML_Memory_Handling_Suite ms =
{enif_alloc, enif_realloc, enif_free};
// structure used as a private data by expat parser
typedef struct
{
ErlNifE... | code_c | code | 299 | null |
<reponame>CallumMackenzie/GameEngine
#pragma once
#include "IngeniumConfig.h"
#include <fstream>
#include <sstream>
#include "Memory.h"
#ifdef _WIN32
#include "ModWin.h"
#endif
#if defined(SCRIPT_LUA)
#include "Lua.h"
#endif
#include "WindowClass.h"
#include "Window.h"
#include "OpenGL.h"
#include "Log.h"
#include "St... | code_c | code | 575 | null |
/* Copyright (C) 2010-2018 The RetroArch team
*
* ---------------------------------------------------------------------------------------
* The following license statement only applies to this file (archive_file.c).
* ---------------------------------------------------------------------------------------
*
* Per... | code_c | code | 6,991 | null |
<filename>platform/mcu/cy8c6347/Generated_Source/psoc63_m0plus_image.c<gh_stars>0
/*******************************************************************************
* File Name: psoc6m_m0plus_image.c
* Version 1.0
*
* Description: The Cortex-M0+ application code image.
*
*************************************************... | code_c | code | 12,140 | null |
<reponame>chrisledet/HckrNews
//
// FPXMLParser.h
// FeedParser
//
// Created by <NAME> on 4/6/09.
// Copyright 2009 <NAME>. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// ... | code_c | code | 1,142 | null |
/*!
* @file vxsampler.h
* @brief base class to encapsulate texture sampler state.
*
* @author <NAME>
* @ingroup vixen
*
* @see vximage.h vxmaterial.h Sampler.h
*/
#pragma once
namespace Vixen {
/*!
* @class Sampler
* @brief Encapsulates texture sampling attributes.
*
* A Sampler is attached to an Appearan... | code_c | code | 989 | null |
#pragma once
#include <random>
#include <stdexcept>
#include <type_traits>
#include "facilities/fill_with_spec_dist.h"
#include "facilities/policies.h"
#include "../../policies/policy_container.h"
#include "../../policies/policy_operations.h"
namespace MetaNN
{
template <typename TPolicyCont = PolicyContainer<>>
clas... | code_c | code | 318 | null |
#pragma once
#include "staticplatform.h"
#include <SFML\System.hpp>
#include <SFML\Graphics.hpp>
using namespace sf;
class TimedSpikes //:
//public StaticPlatform
{
protected:
b2Body* _pBody;
b2BodyDef _bodyDef;
b2PolygonShape _bodyShape;
b2FixtureDef _fixtureDef;
sf::Sprite _sprite;
enum Direct... | code_c | code | 311 | 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.
#ifndef SRC_GRAPHICS_LIB_COMPUTE_SPINEL2_PLATFORMS_VK_TESTS_SPINEL_VK_BENCH_WIDGET_INCLUDE_WIDGET_SVG_H_
#define SRC_GRAPHICS_LIB_COMPUTE_SPINEL2_PLATFORMS... | code_c | code | 253 | null |
<filename>PortSIPUC/db/CallHistory.h
#ifndef CALL_HISTORY_H
#define CALL_HISTORY_H
#include "DBParam.h"
class CCallHistory
{
public:
CCallHistory();
~CCallHistory();
int m_nCallHistoryID;
ENUM_CONTENT_TYPE m_enumContentType;
ENUM_CALL_TYPE m_enumCallType;
ENUM_CALL_STATUS m_enumCallStatus;
st... | code_c | code | 143 | null |
<filename>cstore/src/vector.c
#include "cstore/vector.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h> // memcpy/memmove
vector new_vector(
unsigned int element_size,
unsigned int max_elements,
void* resource) {
vector v;
v.element_size = element_size;
v.capacity = max_elements;
... | code_c | code | 1,378 | null |
/*
Copyright (c) 2001, bDistributed.com, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
* Redistributions of source code must retain the above
copyright notice, t... | code_c | code | 774 | null |
#ifndef OPENTISSUE_UTILITY_DISPATCHERS_DISPATCHERS_DYNAMIC_TABLE_DISPATCHER_H
#define OPENTISSUE_UTILITY_DISPATCHERS_DISPATCHERS_DYNAMIC_TABLE_DISPATCHER_H
//
// OpenTissue Template Library
// - A generic toolbox for physics-based modeling and simulation.
// Copyright (C) 2008 Department of Computer Science, University... | code_c | code | 3,498 | null |
//
// PhoneNumberVC.h
// Swiplur
//
// Created by Yoav on 12/23/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface PhoneNumberVC : UIViewController<UITextFieldDelegate>
@end
| code_c | code | 63 | null |
<reponame>mahrukhfida/mi<filename>wireshark-2.0.13/epan/dissectors/packet-http.h<gh_stars>10-100
/* packet-http.h
*
* Wireshark - Network traffic analyzer
* By <NAME> <<EMAIL>>
* Copyright 1998 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General... | code_c | code | 782 | null |
<reponame>Caesar-github/isp2-ipc<filename>client/impl/rk_aiq_user_api_ae.c
#include "config.h"
#if ENABLE_ALL
#include "ae/rk_aiq_uapi_ae_int.h"
#include "rk_aiq_user_api_sysctl.h"
#include "../protocol/rk_aiq_user_api_ae_ptl.h"
#ifdef __cplusplus
extern "C"
{
#endif
XCamReturn rk_aiq_user_api_ae_setExpSwAttr(const ... | code_c | code | 1,268 | null |
<gh_stars>0
/*MIT License
*
*Copyright (c) 2018 <NAME>
*
*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, mo... | code_c | code | 924 | null |
<gh_stars>0
// Copyright 2015 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.
#ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
#define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
#include <memory>
#include <string>
#include <v... | code_c | code | 6,500 | null |
<reponame>igorioshi/prog1-2016<gh_stars>0
#include <stdio.h>
int main()
{
int vetor[5], i, chave, cont=0;
for(i=0; i<5; i++)
{
scanf("%d", &vetor[i]);
}
printf("\nEntre com uma chave: ");
scanf("%d", &chave);
for(i=0; i<5; i++)
{
if(vetor[i]==chave)
... | code_c | code | 125 | null |
<reponame>jackoalan/urde
/* -*- c++ -*- (enables emacs c++ mode) */
/*===========================================================================
Copyright (C) 2002-2017 <NAME>
This file is a part of GetFEM++
GetFEM++ is free software; you can redistribute it and/or modify it
under the terms of the GN... | code_c | code | 2,286 | null |
<gh_stars>0
/*
* Copyright (c) 2019-2021 <NAME> <<EMAIL>>
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef _OSDPCTL_COMMON_H_
#define _OSDPCTL_COMMON_H_
#include <stdint.h>
#include <osdp.h>
#include <utils/utils.h>
#include <utils/channel.h>
#define CONFIG_FILE_PATH_LENGTH 128
#define ARG_UNUSED(x) (void)(x)... | code_c | code | 577 | null |
<filename>components/gui/fonts/dejaVuSansMono100.c
/*******************************************************************************
* Size: 100 px
* Bpp: 1
* Opts:
******************************************************************************/
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl... | code_c | code | 34,870 | null |
<filename>Common/IGUIEnabledComputeTask.h
/******************************************************************************
.88888. 888888ba dP dP
d8' `88 88 `8b 88 88
88 a88aaaa8P' 88 88
88... | code_c | code | 597 | null |
<gh_stars>0
#ifndef _CLED_H
#define _CLED_H
typedef struct {
size_t cap;
size_t size;
char *chars;
} Line;
typedef struct {
int x, y;
} Cursor;
#define BUFFER_CAP 65535
typedef struct {
char buffer[BUFFER_CAP];
size_t buffer_size = 0;
} Buffer;
#endif // _CLED_H
| code_c | code | 83 | null |
<reponame>d2262272d/ffmpeg
/*
* Copyright (c) 2013 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at ... | code_c | code | 1,190 | null |
#ifndef _HAWK_ALLOC_H_
#define _HAWK_ALLOC_H_
class alignas(128) HawkAllocator
{
#if defined(HAWK_ALLOC_CAPACITY)
static const uint64_t capacity = HAWK_ALLOC_CAPACITY;
#else
static const uint64_t capacity = 0;
#endif
static const uint64_t alignment = 64;
void* memoryBegin;
void* memoryEnd;
public:
HawkAllocato... | code_c | code | 464 | null |
/*
* Copyright 2018 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 of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | code_c | code | 798 | null |
<filename>test/test.c
// Test includes files
#include <stdlib.h>
#include "point.c"
#include "server.c"
#include "request.c"
#include "response.c"
#include "hashmap.c"
#include "string_utils.c"
#include "http_client.c"
int main(void) {
test_hashmap();
test_string_utils();
test_point();
test_server()... | code_c | code | 116 | null |
//
// Created by 凌宇 on 2021/9/21.
//
#ifndef KAKAKV_NODESTORE_H
#define KAKAKV_NODESTORE_H
#include <cluster/NodeId.h>
namespace kakakv{
namespace server{
class NodeStore {
public:
NodeStore() = default;
virtual ~NodeStore(){
};
virtual unsigned lon... | code_c | code | 185 | null |
/* uECC_platform_specific.c - Implementation of platform specific functions*/
/* Copyright (c) 2014, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source co... | code_c | code | 1,173 | null |
#ifndef GRAPHICS_H
#define GRAPHICS_H
#include <stdbool.h>
#include <SDL2/SDL.h>
#include "vector.h"
#include "util.h"
#define FRAME_LIMIT_FPS 60
#define FRAME_LIMIT_MS (1000 / FRAME_LIMIT_FPS)
#define ROTATION_SPEED 0.001
#define Z_OFFSET 5.0
#define FOV 90.0
#... | code_c | code | 459 | null |
--- main_u.c.orig 2005-01-15 21:08:51.000000000 +0100
+++ main_u.c 2020-06-07 12:05:48.186319000 +0200
@@ -252,7 +252,7 @@
#if !defined(__dos)
if (is_locale_utf8()) {
-#if defined(__STDC_ISO_10646__)
+#if defined(__STDC_ISO_10646__) || defined(__APPLE_CC__)
/*
* If the user wants UTF-8 and the envirionment ... | code_c | code | 184 | null |
<filename>Modules/InputDevices/WiiMote/mitkWiiMoteIREvent.h
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distribut... | code_c | code | 625 | null |
<gh_stars>0
/* Copyright (c) 2015, Linaro Limited
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#define _POSIX_C_SOURCE 200809L
#define _GNU_SOURCE
#include <sched.h>
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
#include <getopt.h>
#include <unistd.h>
#include <sys/type... | code_c | code | 660 | null |
<filename>src/aadcUser/src/HSOG_Runtime/a2o/worldmodel/street/SegmentDetection.h
#pragma once
#include "ISegmentDetection.h"
#define DISCOUNT 0.9
namespace A2O {
class SegmentDetection : public virtual ISegmentDetection {
public:
SegmentDetection(){};
SegmentDetection(size_t initialCount){
_detectionsCount... | code_c | code | 258 | null |
<reponame>ShankarNara/shogun<gh_stars>1-10
/*
* This software is distributed under BSD 3-clause license (see LICENSE file).
*
* Authors: <NAME>, <NAME>, <NAME>, <NAME>,
* <NAME>
*/
#ifndef _LOSSFUNCTION_H__
#define _LOSSFUNCTION_H__
#include <shogun/lib/config.h>
#include <shogun/base/SGObject.h>
#inc... | code_c | code | 982 | null |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* buffer_input.c :+: :+: :+: ... | code_c | code | 1,135 | null |
<filename>src/Generator.h
//
// Generator.h
// fantasybit
//
// Created by <NAME> on 3/18/14.
//
// class Generator to generate "CoinBase" transactions based on a source
#ifndef fantasybit_Generator_h
#define fantasybit_Generator_h
#include <vector>
#include <map>
#include <string>
#include "fbutils.h"
#include... | code_c | code | 155 | null |
/*
* Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed under the Apache License, Version 2.0 (the 'License');
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | code_c | code | 538 | null |
<reponame>Speuce/cdh-tsat5<filename>cdh-tsat5-softconsole/include/can.h
#ifndef INCLUDE_CAN_H_
#define INCLUDE_CAN_H_
//-------------------------------------------------------------------------------------------------------------------------------------------------------------
// UMSATS 2018-2020
//
// License:
// Ava... | code_c | code | 1,404 | null |
<gh_stars>1000+
typedef struct{
SPFLOAT amp;
}sp_noise;
int sp_noise_create(sp_noise **ns);
int sp_noise_init(sp_data *sp, sp_noise *ns);
int sp_noise_compute(sp_data *sp, sp_noise *ns, SPFLOAT *in, SPFLOAT *out);
int sp_noise_destroy(sp_noise **ns);
| code_c | code | 73 | null |
<filename>src/carl/util/Timer.h
/**
* @file Timer.h
* @author <NAME>
* @author <NAME>
*
*/
#pragma once
#include <chrono>
#include <ostream>
namespace carl
{
/**
* This classes provides an easy way to obtain the current number of milliseconds that the program has been running.
*/
class Timer {
/// The cloc... | code_c | code | 343 | null |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2020, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... | code_c | code | 1,857 | null |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ec2/EC2_EXPORTS.h>
#include <aws/ec2/EC2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/ec2/model/... | code_c | code | 12,681 | null |
<filename>ios/web/webui/web_ui_ios_impl.h
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_
#define IOS_WEB_WEBUI_WEB_UI_IOS_IMPL_H_
#include <map>
#include <memo... | code_c | code | 887 | null |
<reponame>liu3xing3long/MITK-2016.11
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY ... | code_c | code | 5,016 | null |
<reponame>simonwelsh/hhvm<gh_stars>1-10
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (h... | code_c | code | 1,188 | null |
//
// RTTipLabel.h
// RTMaxAudio
//
// Created by zjq on 2018/10/24.
// Copyright © 2018 derek. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef NS_ENUM(NSInteger,TipMessageType){
TipMessageTypeLine = 0,//在线提醒
TipMessageTypeEnterTip,//进会提醒
TipMessageTypeOutTip,//出会提醒
... | code_c | code | 309 | null |
/* J O I N T . C
* BRL-CAD
*
* Copyright (c) 2004-2021 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 publ... | code_c | code | 26,579 | null |
<reponame>koue/rssroll
/*
* Copyright (c) 2012-2021 <NAME> <<EMAIL>>
*
* 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 ... | code_c | code | 3,204 | null |
<gh_stars>1-10
/*
* Copyright (c) Contributors to the Open 3D Engine Project. For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/Component/TickBus.h>
#include <AzCore/Interface/Interfa... | code_c | code | 528 | null |
#ifndef __TIMESTEP_H__
#define __TIMESTEP_H__
#include "efield.h"
#include "diags.h"
#include "types.h"
void onetimestep(Config *conf, view_4d fn, view_4d fnp1, Efield *ef, Diags *dg, int iter);
#endif
| code_c | code | 58 | null |
<gh_stars>1-10
/* file: multinomial_naive_bayes_model.h */
/*******************************************************************************
* Copyright 2014-2017 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You... | code_c | code | 2,484 | null |
// SPDX-License-Identifier: GPL-2.0
/*
* Procfs support for lockd
*
* Copyright (c) 2014 <NAME> <<EMAIL>>
*/
#include <linux/fs.h>
#include <linux/proc_fs.h>
#include <linux/module.h>
#include <linux/nsproxy.h>
#include <net/net_namespace.h>
#include "netns.h"
#include "procfs.h"
/*
* We only allow strings that... | code_c | code | 535 | null |
//
// DatatistNSURLSessionDispatcher.h
// DatatistTracker
//
// Created by <NAME> on 29/08/14.
// Copyright (c) 2014 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DatatistDispatcher.h"
/**
A dispatcher that will use NSURLSession to send requests to the Datatist server.
*/
@interfac... | code_c | code | 174 | null |
// Copyright 2017 The Australian National University
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... | code_c | code | 940 | null |
/* Copyright (C) 2017 haniu (<EMAIL>)
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Ve... | code_c | code | 738 | null |
/*
* Copyright (C) 2016-2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | code_c | code | 773 | null |
#include "pocl_shared.h"
extern CL_API_ENTRY cl_int CL_API_CALL
POname(clEnqueueCopyBufferToImage)(cl_command_queue command_queue,
cl_mem buffer,
cl_mem image,
size_t src_offset,
... | code_c | code | 310 | null |
#ifndef OPENMM_CUSTOMINTEGRATOR_H_
#define OPENMM_CUSTOMINTEGRATOR_H_
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This i... | code_c | code | 9,629 | null |
<filename>kernel/lib/lz4m/lz4m_compress.c
#include <linux/types.h>
#include <linux/lz4m.h>
#define memcpy __builtin_memcpy
#define USHRT_MAX 4096U
#define LZ4M_MATCH_SEARCH_LOOP_SIZE 4
void store2(void *ptr, uint16_t data)
{
uint16_t *ptr1 = (uint16_t *)ptr;
*ptr1 = data;
}
void store4(void *ptr, uint32_t data)
... | code_c | code | 2,097 | null |
<filename>sys/kernel/kern_descrip.c
/*
* Copyright (c) 1986 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#include <sys/param.h>
#include <sys/user.h>
#include <sys/proc.h>
#include <sys/file.h>
#i... | code_c | code | 3,362 | null |
/**
* xrdp: A Remote Desktop Protocol server.
*
* Copyright (C) <NAME> 2004-2015
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*... | code_c | code | 936 | null |
// Copyright 2017 Espressif Systems (Shanghai) PTE LTD
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... | code_c | code | 2,080 | null |
//
// VCRURLSessionTestsHelper.h
// VCRURLSession
//
// Created by <NAME> on 07/01/16.
// Copyright © 2016 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface VCRURLSessionTestsHelper : NSObject
+ (NSString *)pathToCassetteWithName:(NSString *)name;
@end
| code_c | code | 82 | null |
#ifndef _ENCOUNTER_PRIV_H_
#define _ENCOUNTER_PRIV_H_
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <stdint.h>
#include <limits.h>
#include <openssl/bn.h>
#include "encounter.h"
/* encounter runtime context */
struct encounter_s
{
uint32_t version; /* Runtime context version number */
... | code_c | code | 2,222 | null |
#include <sqlite3ext.h>
#include <string.h>
#include <stdlib.h>
#include <malloc.h>
#include "config.h"
#define LEVENSHTEIN_MAX_STRLEN 1024
// O(n*m) !!!
#define ___MIN___(a,b) (((a)<(b))?(a):(b))
SQLITE_EXTENSION_INIT1
int levenshtein_distance(char*, char*);
static void levenFunc( context, argc, argv )
sqlite3_... | code_c | code | 472 | null |
/*
* Copyright (c) 2018 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/** @file mqtt_encoder.c
*
* @brief Encoding functions needed to create packet to be sent to the broker.
*/
#define LOG_MODULE_NAME net_mqtt_enc
#define NET_LOG_LEVEL CONFIG_MQTT_LOG_LEVEL
#include "mqtt_internal.h"
#i... | code_c | code | 4,384 | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.