repo
stringlengths
1
152
file
stringlengths
14
221
code
stringlengths
501
25k
file_length
int64
501
25k
avg_line_length
float64
20
99.5
max_line_length
int64
21
134
extension_type
stringclasses
2 values
niti
niti-master/pytorch/Common/helper_timer.h
/* Copyright (c) 2019, NVIDIA CORPORATION. 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, this list of condi...
16,060
33.465665
80
h
dynomite
dynomite-master/src/dyn_string.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,495
24.518248
87
c
dynomite
dynomite-master/src/dyn_log.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
6,120
21.503676
87
c
dynomite
dynomite-master/src/dyn_dict_msg_id.c
# include <stdlib.h> // For NULL #include "dyn_types.h" #include "dyn_dict_msg_id.h" static unsigned int dict_msg_id_hash(const void *key) { msgid_t id = *(msgid_t*)key; return dictGenHashFunction(key, sizeof(id)); } static int dict_msg_id_cmp(void *privdata, const void *key1, const void *key2) { msgid_t ...
748
23.966667
67
c
dynomite
dynomite-master/src/dyn_asciilogo.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2015 Netflix, Inc. * * author: Ioannis Papapanagiotou */ char *ascii_logo = " \n" ...
929
45.5
129
h
dynomite
dynomite-master/src/dyn_crypto.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #ifndef DYN_CRYPTO_H_ #define DYN_CRYPTO_H_ #include <stdio.h> #include <string.h> #include <math.h> #include <openssl/bio.h> #include <openssl/evp.h> #include <openssl/evp.h> #include...
1,634
27.189655
111
h
dynomite
dynomite-master/src/dyn_node_snitch.c
#include<stdio.h> #include<string.h> #include<stdlib.h> #include<sys/socket.h> #include<errno.h> #include<netdb.h> #include<arpa/inet.h> #include <ctype.h> #include "dyn_node_snitch.h" #include "dyn_core.h" #include "dyn_conf.h" #include "dyn_string.h" #include "dyn_util.h" static char *broadcast_address = NULL; st...
3,294
21.568493
70
c
dynomite
dynomite-master/src/dyn_cbuf.h
/**************************************************************************** * * Since this code originated from code which is public domain, I * hereby declare this code to be public domain as well. * * Dave Hylands - dhylands@gmail.com * *************************************************************************...
5,347
28.224044
108
h
dynomite
dynomite-master/src/dyn_proxy.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
6,555
23.281481
87
c
dynomite
dynomite-master/src/dyn_core.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
14,942
24.156566
107
c
dynomite
dynomite-master/src/dyn_histogram.h
/* * dyn_histogram.h * * Created on: Feb 6, 2015 * Author: mdo */ #ifndef DYN_HISTOGRAM_H_ #define DYN_HISTOGRAM_H_ #define BUCKET_SIZE 94 struct histogram { uint64_t buckets[BUCKET_SIZE]; uint64_t mean; uint64_t val_95th; uint64_t val_99th; uint64_t val_999th; uint64_t val_max; }; rstatus_t his...
831
21.486486
70
h
dynomite
dynomite-master/src/dyn_response_mgr.c
#include "dyn_core.h" #include "dyn_server.h" #include "dyn_dnode_peer.h" void init_response_mgr(struct response_mgr *rspmgr, struct msg *msg, bool is_read, uint8_t max_responses, struct conn *conn) { memset(rspmgr, 0, sizeof(struct response_mgr)); rspmgr->is_read = is_read; rspmgr->max_r...
6,380
32.408377
84
c
dynomite
dynomite-master/src/dyn_token.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #ifndef _DYN_TOKEN_H_ #define _DYN_TOKEN_H_ struct dyn_token { uint32_t signum; uint32_t *mag; uint32_t len; }; void init_dyn_token(struct dyn_toke...
1,043
27.216216
87
h
dynomite
dynomite-master/src/dyn_response_mgr.h
#ifndef _DYN_RESPONSE_MGR_H_ #define _DYN_RESPONSE_MGR_H_ #define MAX_REPLICAS_PER_DC 3 struct response_mgr { bool is_read; bool done; /* we could use the dynamic array here. But we have only 3 ASGs */ struct msg *responses[MAX_REPLICAS_PER_DC]; uint32_t checksums...
1,295
39.5
90
h
dynomite
dynomite-master/src/dyn_setting.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. * 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://ww...
821
28.357143
87
h
dynomite
dynomite-master/src/dyn_dnode_proxy.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include <sys/un.h> #include <arpa/inet.h> #include "dyn_core.h" #include "dyn_server.h" #include "dyn_dnode_peer.h" #include "dyn_dnode_proxy.h" static void dnode_ref(struct conn *conn...
6,686
24.233962
112
c
dynomite
dynomite-master/src/dyn_mbuf.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,204
32.736842
88
h
dynomite
dynomite-master/src/dyn_request.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
6,086
23.844898
87
c
dynomite
dynomite-master/src/dyn_log.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
5,359
39.916031
93
h
dynomite
dynomite-master/src/dyn_signal.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,355
22.633803
87
c
dynomite
dynomite-master/src/dyn_connection.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
9,478
43.502347
117
h
dynomite
dynomite-master/src/dyn_dict.h
/* Hash Tables Implementation. * * This file implements in-memory hash tables with insert/del/replace/find/ * get-random-element operations. Hash tables will auto-resize if needed * tables of power of two in size are used, collisions are handled by * chaining. See the source code for more information... :) * * C...
6,834
36.762431
87
h
dynomite
dynomite-master/src/dyn_token.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
6,152
20.513986
124
c
dynomite
dynomite-master/src/dyn_server.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,063
33.818182
112
h
dynomite
dynomite-master/src/dyn_string.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,590
26.837209
87
h
dynomite
dynomite-master/src/dyn_dnode_client.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #include "dyn_server.h" #include "dyn_dnode_client.h" #include "dyn_dict_msg_id.h" static void dnode_client_ref(struct conn *conn, void *owner) { struct server_...
18,120
31.015901
127
c
dynomite
dynomite-master/src/dyn_client.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
919
28.677419
87
h
dynomite
dynomite-master/src/dyn_gossip.h
#include "dyn_token.h" #include "dyn_core.h" #include "dyn_dict.h" #ifndef DYN_GOSSIP_H_ #define DYN_GOSSIP_H_ #define GOS_NOOPS 1 #define GOS_OK 0 #define GOS_ERROR -1 #define SIMPLE_PROVIDER "simple_provider" #define FLORIDA_PROVIDER "florida_provider" #define DNS_PROVIDER ...
2,790
30.715909
86
h
dynomite
dynomite-master/src/dyn_signal.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
1,100
23.466667
87
h
dynomite
dynomite-master/src/dyn_connection.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
20,274
26.4729
118
c
dynomite
dynomite-master/src/dyn_dnode_peer.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #include "dyn_server.h" #ifndef _DYN_DNODE_PEER_H_ #define _DYN_DNODE_PEER_H_ #define MAX_WAIT_BEFORE_RECONNECT_IN_SECS 10 #define WAIT_BEFORE_UPDATE_PEERS_IN_M...
1,357
37.8
87
h
dynomite
dynomite-master/src/dyn_rbtree.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
1,899
33.545455
87
h
dynomite
dynomite-master/src/dyn_setting.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. * 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://ww...
963
28.212121
89
c
dynomite
dynomite-master/src/dyn_response.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
5,346
26.280612
93
c
dynomite
dynomite-master/src/dyn_mbuf.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
10,363
21.72807
94
c
dynomite
dynomite-master/src/dyn_util.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
14,731
37.565445
93
h
dynomite
dynomite-master/src/dyn_proxy.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
999
29.30303
87
h
dynomite
dynomite-master/src/dyn_conf.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
6,123
43.057554
111
h
dynomite
dynomite-master/src/dyn_dnode_msg.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #ifndef _DYN_DNODE_MSG_H_ #define _DYN_DNODE_MSG_H_ typedef enum dmsg_version { VERSION_10 = 1 } dmsg_version_t; enum { DYN_START = 0, DYN_M...
2,749
25.190476
124
h
dynomite
dynomite-master/src/dynomite.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
18,558
25.287535
105
c
dynomite
dynomite-master/src/dyn_array.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
2,157
25.641975
87
h
dynomite
dynomite-master/src/dyn_core.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
12,978
34.853591
110
h
dynomite
dynomite-master/src/dyn_crypto.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include <openssl/pem.h> #include <openssl/ssl.h> #include <openssl/rsa.h> #include <openssl/evp.h> #include <openssl/bio.h> #include <openssl/err.h> #include <stdio.h> #include "dyn_cor...
13,881
26.007782
131
c
dynomite
dynomite-master/src/dyn_dnode_request.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ #include "dyn_core.h" #include "dyn_dnode_peer.h" #include "dyn_mbuf.h" #include "dyn_server.h" //static struct string client_request_dyn_msg = string("Client_request"); static uint64_t...
8,861
30.204225
122
c
dynomite
dynomite-master/src/dyn_rbtree.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
8,991
23.635616
87
c
dynomite
dynomite-master/src/tools/dyn_hash_tool.c
#include<stdio.h> #include <getopt.h> #include <dyn_token.h> static struct option long_options[] = { { "help", no_argument, NULL, 'h' }, { "outputkey", no_argument, NULL, 'k' }, { "tokenfile", required_argument, NULL, 'o' }, { "keyfile", ...
3,733
26.455882
97
c
dynomite
dynomite-master/src/seedsprovider/dyn_dns.c
#include <stdio.h> #include <sys/socket.h> #include <arpa/inet.h> #include <stdlib.h> #include <netdb.h> #include <arpa/nameser.h> #include <resolv.h> #ifdef __APPLE__ #include <arpa/nameser_compat.h> #endif #include "dyn_seeds_provider.h" #include "dyn_core.h" #include "dyn_string.h" // Keep poling DNS server for th...
3,544
24.688406
104
c
dynomite
dynomite-master/src/proto/dyn_proto.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
1,563
30.28
87
h
dynomite
dynomite-master/src/entropy/dyn_entropy.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2015 Netflix, Inc. * * 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 *_stats_poo...
2,328
37.180328
96
h
dynomite
dynomite-master/src/entropy/dyn_entropy_snd.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2015 Netflix, Inc. * * 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 *_stats_poo...
10,001
29.493902
103
c
dynomite
dynomite-master/src/entropy/dyn_entropy_rcv.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2015 Netflix, Inc. * * 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 *_stats_poo...
6,308
29.331731
124
c
dynomite
dynomite-master/src/entropy/dyn_entropy_util.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2016 Netflix, Inc. * * 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 *_stats_poo...
18,091
25.763314
119
c
dynomite
dynomite-master/src/event/dyn_event.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,186
26.713043
87
h
dynomite
dynomite-master/src/event/dyn_evport.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2013 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
12,920
25.10303
87
c
dynomite
dynomite-master/src/event/dyn_kqueue.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
12,326
24.416495
87
c
dynomite
dynomite-master/src/event/dyn_epoll.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
9,182
21.843284
89
c
dynomite
dynomite-master/src/hashkit/dyn_hashkit.h
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
4,047
40.731959
99
h
dynomite
dynomite-master/src/hashkit/dyn_fnv.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
2,563
23.893204
87
c
dynomite
dynomite-master/src/hashkit/dyn_random.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
5,522
35.335526
90
c
dynomite
dynomite-master/src/hashkit/dyn_murmur3.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
1,174
27.658537
87
c
dynomite
dynomite-master/src/hashkit/dyn_murmur.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
2,594
22.807339
87
c
dynomite
dynomite-master/src/hashkit/dyn_crc32.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
5,844
35.993671
87
c
dynomite
dynomite-master/src/hashkit/dyn_modula.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
5,993
36
90
c
dynomite
dynomite-master/src/hashkit/dyn_jenkins.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
7,652
30.755187
87
c
dynomite
dynomite-master/src/hashkit/dyn_one_at_a_time.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
1,628
25.704918
87
c
dynomite
dynomite-master/src/hashkit/dyn_crc16.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
3,323
42.736842
87
c
dynomite
dynomite-master/src/hashkit/dyn_hsieh.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
2,600
24.009615
87
c
dynomite
dynomite-master/src/hashkit/dyn_vnode.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
4,589
29
107
c
dynomite
dynomite-master/src/hashkit/dyn_md5.c
/* * Dynomite - A thin, distributed replication layer for multi non-distributed storages. * Copyright (C) 2014 Netflix, Inc. */ /* * twemproxy - A fast and lightweight proxy for memcached protocol. * Copyright (C) 2011 Twitter, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may...
9,780
28.372372
90
c
dynomite
dynomite-master/contrib/fmemopen.c
// // Copyright 2011-2014 NimbusKit // Originally ported from https://github.com/ingenuitas/python-tesseract/blob/master/fmemopen.c // // 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 // // ...
2,553
22.869159
125
c
dynomite
dynomite-master/contrib/fmemopen.h
// // Copyright 2011-2014 NimbusKit // Originally ported from https://github.com/ingenuitas/python-tesseract/blob/master/fmemopen.c // // 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 // // ...
1,709
31.264151
103
h
dynomite
dynomite-master/contrib/murmur3/murmur3.c
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the public // domain. The author hereby disclaims copyright to this source code. // Note - The x86 and x64 versions do _not_ produce the same results, as the // algorithms are ...
7,553
22.905063
79
c
dynomite
dynomite-master/contrib/murmur3/murmur3.h
//----------------------------------------------------------------------------- // MurmurHash3 was written by Austin Appleby, and is placed in the // public domain. The author hereby disclaims copyright to this source // code. #ifndef _MURMURHASH3_H_ #define _MURMURHASH3_H_ #include <stdint.h> //--------------------...
723
31.909091
79
h
FFTLog-and-beyond
FFTLog-and-beyond-master/cfftlog/utils.c
#include <stdlib.h> #include <math.h> #include "utils.h" void extrap_log_linear(double *fk, int N_origin, int N_extra, double *large_fk) { double dln_left, dln_right; int i; dln_left = log(fk[1]/fk[0]); // printf("fk[0],fk[1]: %.15e,%.15e,%.15e,%.15e,%.15e\n", fk[0],fk[1],fk[2],fk[3],fk[4]); if(fk[0]<=0.) { f...
1,180
23.604167
108
c
FFTLog-and-beyond
FFTLog-and-beyond-master/cfftlog/utils_complex.h
#include <complex.h> #include <fftw3.h> void g_l(double l, double nu, double *eta, double complex *gl, long N); void g_l_1(double l, double nu, double *eta, double complex *gl1, long N); void g_l_2(double l, double nu, double *eta, double complex *gl2, long N); void c_window(double complex *out, double c_window_width...
562
39.214286
74
h
FFTLog-and-beyond
FFTLog-and-beyond-master/cfftlog/cfftlog.c
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <complex.h> #include <string.h> #include <time.h> #include <fftw3.h> #include "utils.h" #include "utils_complex.h" #include "cfftlog.h" void cfftlog(double *x, double *fx, long N, config *config, double ell, double *y, double *Fy) { long N_original...
6,696
26.334694
125
c
FFTLog-and-beyond
FFTLog-and-beyond-master/src/utils.c
#include <stdlib.h> #include <math.h> #include "utils.h" void extrap_log_linear(double *fk, int N_origin, int N_extra, double *large_fk) { double dln_left, dln_right; int i; dln_left = log(fk[1]/fk[0]); // printf("fk[0],fk[1]: %.15e,%.15e,%.15e,%.15e,%.15e\n", fk[0],fk[1],fk[2],fk[3],fk[4]); if(fk[0]<=0.) { f...
1,180
23.604167
108
c
FFTLog-and-beyond
FFTLog-and-beyond-master/src/utils_complex.h
#include <complex.h> #include <fftw3.h> void g_l(double l, double nu, double *eta, double complex *gl, long N); void g_l_1(double l, double nu, double *eta, double complex *gl1, long N); void g_l_2(double l, double nu, double *eta, double complex *gl2, long N); void g_l_modified(double l, double nu, double *eta, doub...
952
40.434783
83
h
dust3d
dust3d-master/draine.c
#include <stdlib.h> #include <stdio.h> #include <unistd.h> #include <string.h> #include <math.h> #include <gsl/gsl_rng.h> #include "draine.h" #include "mylib.h" // Read the extinction and scattering table scatext* init_draine_extscat(char *dusttype,float minlambda, float maxlambda, unsigned int resolution, unsign...
11,476
24.447894
91
c
dust3d
dust3d-master/draine.h
// Extinction, scattering and absorption properties // // ftp://ftp.astro.princeton.edu/draine/dust/mix/ // // Polarisation structure // typedef struct { // Polarisation table // - first index is wavlelength (microns) // - second index is scattering angle (deg) float **table; float *lambda; //...
1,416
26.25
85
h
prox-grad-svi
prox-grad-svi-master/gpml/util/solve_chol.c
/* solve_chol - solve a linear system A*X = B using the Cholesky factorization * of A (square, symmetric and positive definite) using LAPACK/DPOTRS. * * Copyright (c) by Carl Edward Rasmussen and Hannes Nickisch 2014-02-13. * * Modifications from 2014-02-09 as suggested by Todd Small: * - types of q,m,n changed ...
2,297
37.3
82
c
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/matlabstring.h
#ifndef INCLUDE_MATLABSTRING #define INCLUDE_MATLABSTRING #include "mex.h" #include <string> // Function declarations. // ----------------------------------------------------------------- // Copy a C-style string (i.e. a null-terminated character array). char* copystring (const char* source); // Class MatlabString. ...
1,152
26.452381
68
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/arrayofmatrices.h
#ifndef INCLUDE_ARRAYOFMATRICES #define INCLUDE_ARRAYOFMATRICES #include "array.h" #include "matlabmatrix.h" #include "mex.h" // Class ArrayOfMatrices. // ----------------------------------------------------------------- class ArrayOfMatrices : public Array<Matrix*> { public: // This version of the constructor...
2,148
35.423729
69
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/matlabexception.h
#ifndef INCLUDE_MATLABEXCEPTION #define INCLUDE_MATLABEXCEPTION #include <exception> // Class MatlabException // ----------------------------------------------------------------- // This class just makes it easier for me to throw exceptions. Its // functionality really has nothing to do with MATLAB. class MatlabExcep...
869
29
68
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/matlabprogram.h
#ifndef INCLUDE_MATLABPROGRAM #define INCLUDE_MATLABPROGRAM #include "mex.h" #include "program.h" #include "matlabscalar.h" #include "matlabstring.h" #include "arrayofmatrices.h" // Class MatlabProgram. // ----------------------------------------------------------------- // This is an implementation of the abstract c...
2,881
39.027778
71
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/program.h
#ifndef INCLUDE_PROGRAM #define INCLUDE_PROGRAM // Type definitions. // ----------------------------------------------------------------- // This defines the possible results of running the L-BFGS-B solver. enum SolverExitStatus { success, // The algorithm has converged to a stationary // point or h...
5,031
38.007752
70
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/matlabmatrix.h
#ifndef INCLUDE_MATLABMATRIX #define INCLUDE_MATLABMATRIX #include "array.h" #include "mex.h" // Class Matrix // --------------------------------------------------------------- // A matrix object stores its elements in column-major format, as in // Fortran and Matlab. This means that columns are stored one after // a...
2,418
30.828947
68
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/matlabscalar.h
#ifndef INCLUDE_MATLABSCALAR #define INCLUDE_MATLABSCALAR #include "mex.h" // Class MatlabScalar // ----------------------------------------------------------------- // The main appeal of this class is that one can create a scalar // object that accesses a MATLAB array. // // Note that the copy assignment operator is...
1,204
25.777778
73
h
prox-grad-svi
prox-grad-svi-master/gpml/util/lbfgsb/array.h
#ifndef INCLUDE_ARRAY #define INCLUDE_ARRAY #include "matlabexception.h" #include <string.h> // Function definitions. // ----------------------------------------------------------------- template <class Type> void copymemory (const Type* source, Type* dest, int length) { memcpy(dest,source,sizeof(Type)*...
4,556
30.212329
76
h
kblas-gpu
kblas-gpu-master/testing/testing_helper.h
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/testing_helper.h * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided by K...
11,057
31.813056
130
h
kblas-gpu
kblas-gpu-master/testing/testing_prec_def.h
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/testing_prec_def.h * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided by...
4,070
26.14
64
h
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_dsymv_mgpu.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_dsymv_mgpu.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is prov...
11,455
25.955294
134
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_cscal.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_cscal.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
5,073
25.020513
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_ssymv.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_ssymv.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
6,470
27.76
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_zhemv.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_zhemv.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
7,097
28.823529
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_chemv.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_chemv.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
7,049
28.497908
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_zscal.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_zscal.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
5,087
25.092308
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_sscal.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_sscal.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is provided ...
4,653
24.021505
127
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_zhemv_mgpu.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_zhemv_mgpu.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is prov...
11,933
26.818182
134
c
kblas-gpu
kblas-gpu-master/testing/blas_l2/test_ssymv_mgpu.c
/** * @copyright (c) 2012- King Abdullah University of Science and * Technology (KAUST). All rights reserved. **/ /** * @file testing/blas_l2/test_ssymv_mgpu.c * KBLAS is a high performance CUDA library for subset of BLAS * and LAPACK routines optimized for NVIDIA GPUs. * KBLAS is prov...
11,310
25.866983
127
c