repo_name stringlengths 6 97 | path stringlengths 3 341 | text stringlengths 8 1.02M |
|---|---|---|
Antique/libxenserver | src/xen_vmpp.c | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | include/xen/api/xen_vbd.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vgpu.c | <reponame>Antique/libxenserver
/*
* Copyright (c) Citrix Systems, 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 cop... |
Antique/libxenserver | include/xen/api/xen_vif.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_all.h | <gh_stars>0
/* This file is autogenerated */
#ifndef XEN_API_XEN_ALL_H
#define XEN_API_XEN_ALL_H
#include <xen/api/xen_after_apply_guidance.h>
#include <xen/api/xen_allocation_algorithm.h>
#include <xen/api/xen_api_failure.h>
#include <xen/api/xen_auth.h>
#include <xen/api/xen_blob.h>
#include <xen/api/xen_blob_xen_blo... |
Antique/libxenserver | include/xen/api/xen_api_failure.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_auth.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vdi.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_vmpp.h | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | src/xen_pool_patch.c | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | src/xen_event.c | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | include/xen/api/xen_pool_patch.h | <reponame>Antique/libxenserver
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | include/xen/api/xen_host_patch.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_dr_task.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_storage_operations.h | /*
* Copyright (c) Citrix Systems, 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 copyright
* notice, this lis... |
Antique/libxenserver | src/xen_host_patch.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_vlan.h | <filename>include/xen/api/xen_vlan.h<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | include/xen/api/xen_pif.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_role.h | <filename>include/xen/api/xen_role.h
/*
* Copyright (c) <NAME>, 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 copyr... |
Antique/libxenserver | include/xen/api/xen_pif_metrics.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_event.h | <reponame>Antique/libxenserver
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | include/xen/api/xen_sr.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_secret.h | <reponame>Antique/libxenserver<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | src/xen_role.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vm_metrics.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_vm_appliance.h | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | src/xen_host.c | <reponame>Antique/libxenserver<filename>src/xen_host.c
/*
* Copyright (c) <NAME>, 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 reta... |
Antique/libxenserver | include/xen/api/xen_vm_metrics.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_pbd.c | <filename>src/xen_pbd.c
/*
* Copyright (c) <NAME>, 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 copyright
* ... |
Antique/libxenserver | include/xen/api/xen_blob.h | <filename>include/xen/api/xen_blob.h
/*
* Copyright (c) <NAME>, 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 copyr... |
Antique/libxenserver | include/xen/api/xen_host_metrics.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vlan.c | <reponame>Antique/libxenserver<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | include/xen/api/xen_vgpu.h | /*
* Copyright (c) Citrix Systems, 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 copyright
* notice, this lis... |
Antique/libxenserver | include/xen/api/xen_vm.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_pci.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_network.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_host_crashdump.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_bond.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_message.c | /*
* Copyright (c) Citrix Systems, 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 copyright
* notice, this lis... |
Antique/libxenserver | include/xen/api/xen_vbd_metrics.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_task.c | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | src/xen_pool.c | <reponame>Antique/libxenserver
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | src/xen_vbd_metrics.c | <filename>src/xen_vbd_metrics.c
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | include/xen/api/xen_host_cpu.h | <filename>include/xen/api/xen_host_cpu.h
/*
* Copyright (c) <NAME>, 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 c... |
Antique/libxenserver | src/xen_host_crashdump.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_console.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vif_metrics.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vbd.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vm.c | <reponame>Antique/libxenserver<filename>src/xen_vm.c<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | include/xen/api/xen_vgpu_type.h | <reponame>Antique/libxenserver
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | include/xen/api/xen_gpu_group.h | <filename>include/xen/api/xen_gpu_group.h
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | src/xen_pif.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vm_operations.c | <gh_stars>0
/*
* Copyright (c) Citrix Systems, 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 copyright
* noti... |
Antique/libxenserver | src/xen_vtpm.c | <reponame>Antique/libxenserver<filename>src/xen_vtpm.c
/*
* Copyright (c) <NAME>, 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 reta... |
Antique/libxenserver | src/xen_sr.c | <gh_stars>0
/*
* Copyright (c) <NAME>, 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 copyright
* notice, this... |
Antique/libxenserver | src/xen_pci.c | <reponame>Antique/libxenserver<gh_stars>0
/*
* Copyright (c) <NAME>, 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 ... |
Antique/libxenserver | include/xen/api/xen_sm.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_subject.c | /*
* Copyright (c) Citrix Systems, 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 copyright
* notice, this lis... |
Antique/libxenserver | src/xen_blob.c | <reponame>Antique/libxenserver<filename>src/xen_blob.c
/*
* Copyright (c) Citrix Systems, 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 m... |
Antique/libxenserver | src/xen_crashdump.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | include/xen/api/xen_crashdump.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vm_guest_metrics.c | <reponame>Antique/libxenserver
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | include/xen/api/xen_vm_guest_metrics.h | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
Antique/libxenserver | src/xen_vgpu_type.c | <filename>src/xen_vgpu_type.c
/*
* Copyright (c) Citrix Systems, 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 copy... |
Antique/libxenserver | test/test_failures.c | <filename>test/test_failures.c
/*
* Copyright (c) <NAME>, 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 copyright
... |
Antique/libxenserver | src/xen_vm_appliance.c | /*
* Copyright (c) <NAME>, 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 copyright
* notice, this list of con... |
val-verde/alive2 | tools/tokens.h | <reponame>val-verde/alive2<gh_stars>1-10
// Copyright (c) 2018-present The Alive2 Authors.
// Distributed under the MIT license that can be found in the LICENSE file.
TOKEN(END)
TOKEN(ABS)
TOKEN(ADD)
TOKEN(AND)
TOKEN(ARRAY_TYPE_PREFIX)
TOKEN(ARROW)
TOKEN(ASHR)
TOKEN(ASSUME)
TOKEN(ASSUME_NON_POISON)
TOKEN(BAND)
TOKEN(B... |
val-verde/alive2 | ir/pointer.h | <reponame>val-verde/alive2
#pragma once
// Copyright (c) 2018-present The Alive2 Authors.
// Distributed under the MIT license that can be found in the LICENSE file.
#include "ir/attrs.h"
#include "ir/state_value.h"
#include "smt/expr.h"
#include "smt/exprs.h"
#include <ostream>
#include <set>
namespace IR {
class ... |
bkulawska/FogML | examples/simple/models/iris_tree_model.c | <reponame>bkulawska/FogML<gh_stars>10-100
int classify(double * x){
if (x[3] <= 0.8000000119) {
return 0;
}
else {
if (x[3] <= 1.7500000000) {
if (x[2] <= 4.9499998093) {
if (x[3] <= 1.6500000954) {
return 1;
}
else {
return 2;
}
}
else... |
bkulawska/FogML | examples/TFT_ML/tree.h | <reponame>bkulawska/FogML
#ifndef __TREE_H__
#define __TREE_H__
#ifdef __cplusplus
extern "C" {
#endif
int evaluate_tree(uint8_t * x);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
|
bkulawska/FogML | examples/TFT_ML/bayes_model.h | #ifndef __BAYES_MODEL_H__
#define __BAYES_MODEL_H__
#ifdef __cplusplus
extern "C" {
#endif
int evaluate_bayes(uint8_t * x);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
|
bkulawska/FogML | examples/simple/models/iris_bayes_model.c | int evaluate_bayes(double* x){
double sigma[3][4] = {
{0.121764, 0.142276, 0.029504, 0.011264, },
{0.261104, 0.096500, 0.216400, 0.038324, },
{0.396256, 0.101924, 0.298496, 0.073924, },
};
double theta[3][4] = {
{5.006000, 3.418000, 1.464000, 0.244000, },
{5.936000, 2.770000, 4.260000, 1.326000, },
{6.588000, ... |
bkulawska/FogML | examples/simple/models/network_model.c | <gh_stars>10-100
#include <Arduino.h>
#include "neural_nets.h"
const float pmdata_00[] PROGMEM = {-0.035431, -0.046410, -0.002355, 0.009097, };
const float pmdata_01[] PROGMEM = {0.387625, 0.601107, -0.278682, -0.069962, };
const float pmdata_02[] PROGMEM = {-0.017275, -0.000000, -0.046636, 0.002225, };
const float pmd... |
bkulawska/FogML | examples/TFT_ML/neural_nets.h | <filename>examples/TFT_ML/neural_nets.h
#ifndef __NEURAL_NETS_H__
#define __NEURAL_NETS_H__
#ifdef __cplusplus
extern "C" {
#endif
int evaluate_network(uint8_t * x);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
|
bkulawska/FogML | examples/simple/models/iris_network_model.c | #include <Arduino.h>
#include "neural_nets.h"
const float pmdata_00[] PROGMEM = {-0.482009, -0.280405, -0.177204, 0.454541, };
const float pmdata_01[] PROGMEM = {0.281752, -0.240362, 0.384827, -0.657338, };
const float pmdata_02[] PROGMEM = {-0.408962, -0.516171, -0.164047, 0.422353, };
const float pmdata_03[] PROGMEM ... |
bkulawska/FogML | src/fogml/generators/skeletons/random_forest_template.c | {%- macro recurse(tree, node, depth, index) -%}
{%- set indent = " " * depth -%}
{%- if tree["feature"][node] >= 0 -%}
{%- set name = tree["feature"][node] -%}
{%- set threshold = tree["threshold"][node] -%}
{{ indent }}if (x[{{ name }}] <= {{ '%0.10f' %threshold }}) {
{{ recurse(tree, tree["children_left"][node], dep... |
xing/UnifiedActionHandling | Unified Action Handling/ActionHandling/XNGCellPreviewable.h | @import Foundation;
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(CellPreviewable)
@protocol XNGCellPreviewable <NSObject>
@property (nonatomic, copy, nullable, readonly) NSDictionary<NSString *, id> *previewAction NS_REFINED_FOR_SWIFT;
@end
NS_SWIFT_NAME(MutableCellPreviewable)
@protocol XNGMutableCellPreviewable <XNGCel... |
xing/UnifiedActionHandling | Unified Action Handling/ActionHandling/XNGCollectionViewController.h | @import UIKit;
NS_ASSUME_NONNULL_BEGIN
@interface XNGCollectionViewController : UICollectionViewController
// This method is implemented to allow highlighting of cells that conform to XNGCellSelectable.
// Cells that conform to XNGCellSelectable will be selectable if and only if they hava a non-nil selectionAction.
... |
xing/UnifiedActionHandling | Unified Action Handling/Unified Action Handling-Bridging-Header.h | <filename>Unified Action Handling/Unified Action Handling-Bridging-Header.h
#import "XNGActionKey.h"
#import "XNGCellSelectable.h"
#import "XNGCellPreviewable.h"
#import "XNGCollectionViewController.h"
|
xing/UnifiedActionHandling | Unified Action Handling/ActionHandling/XNGCellSelectable.h | <reponame>xing/UnifiedActionHandling
@import Foundation;
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(CellSelectable)
@protocol XNGCellSelectable <NSObject>
@property (nonatomic, copy, nullable, readonly) NSDictionary<NSString *, id> *selectionAction NS_REFINED_FOR_SWIFT;
@end
NS_SWIFT_NAME(MutableCellSelectable)
@protoc... |
xing/UnifiedActionHandling | Unified Action Handling/ActionHandling/XNGActionKey.h | <gh_stars>1-10
@import Foundation;
typedef NSString *XNGActionKey NS_EXTENSIBLE_STRING_ENUM;
extern XNGActionKey const XNGActionKeyType;
extern XNGActionKey const XNGActionKeySelector;
extern XNGActionKey const XNGActionKeySourceView;
extern XNGActionKey const XNGActionKeySourceRect;
extern XNGActionKey const XNGActi... |
RobertLucian/micropython-gigglebot | src/inc/modmicrobit.h | /*
* This file is part of the MicroPython project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 <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 Softw... |
MasatoKubotera/monte_carlo | calculate/monte_carlo.c | /*
Copyright (c) 2021 <NAME>
Released under the MIT license
https://opensource.org/licenses/mit-license.php
*/
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#define INDEX_N 10 //要素数
#define REP 10 //繰り返し
typedef struct {
unsigned int point; //ポイント
double pi; //近似円周... |
ec-lang/ec | src/args.h | <filename>src/args.h
#ifndef ECC_ARGS_H
#define ECC_ARGS_H
typedef struct Option {
bool isError;
bool isHelp;
bool isVersion;
bool isVerbose;
char *help;
} Option;
int parseArgs(int argc, char *argv[], Option *option);
#endif // ECC_ARGS_H
|
ec-lang/ec | src/args.c | <reponame>ec-lang/ec
#include <assert.h>
#include <stdbool.h>
#include <stdio.h>
#include <string.h>
#include "args.h"
typedef struct Args {
int nArgs;
char **args;
int iArgs;
char *pArgs;
} Args;
static char HELP_MESSAGE[] =
"Usage: ecc [options] <file>...\n"
"\n"
"Options:\n"
" -h --help Show... |
ec-lang/ec | src/ecc.c | #include <stdbool.h>
#include <stdio.h>
#include "args.h"
#define ECC_VERSION "0.0.1"
int main(int argc, char *argv[])
{
struct Option option;
parseArgs(argc, argv, &option);
if (option.isError || option.isHelp) {
printf("%s\n", option.help);
} else if (option.isVersion) {
printf("v%... |
kas-shaman/utility | datahub.h | #pragma once
#include <vector>
#include <unordered_map>
#include <functional>
#include <string>
#include <strstream>
#include <cmath>
#ifdef _MSC_VER
#define strcasecmp _stricmp
#endif
#define datahubscope(name, ...) struct name : datahub::details::MovableBase __VA_ARGS__ name;
#define datahubarray(structname, ar... |
kas-shaman/utility | fsm.h | #pragma once
#include <functional>
namespace utility {
struct FSMState {
std::function<void(float)> update;
std::function<void()> entered;
std::function<void()> leaving;
};
template <typename NameType> class FSM {
//template <typename T, typename = decltype(T::_count)> bool... |
kas-shaman/utility | math.h | <reponame>kas-shaman/utility<filename>math.h
#pragma once
// TODO: +=, *=, etc
// TODO: xOz
// TODO: at(index, index) -> xy
#include <limits>
#include <algorithm>
#include <cmath>
namespace math
{
using scalar = float;
struct vector2f;
struct vector3f;
struct vector4f;
struct quaternion;
str... |
kas-shaman/utility | math_tests.h | <gh_stars>0
namespace math {
void runTests();
}
|
kas-shaman/utility | common.h | <gh_stars>0
#include <sstream>
#include <iomanip>
namespace utility {
class NonCopyable
{
protected:
NonCopyable() = default;
~NonCopyable() = default;
private:
NonCopyable(NonCopyable &&) = default;
NonCopyable(const NonCopyable &) = delete;
NonCopyabl... |
heavensword/CarRunningAnimationControl | CarAnimationDemo/CarAnimationDemo/AppDelegate.h | //
// AppDelegate.h
// CarAnimationDemo
//
// Created by Sword on 02/12/2016.
// Copyright © 2016 Baidu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface AppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
heavensword/CarRunningAnimationControl | CarAnimationDemo/CarAnimationDemo/ViewController.h | //
// ViewController.h
// CarAnimationDemo
//
// Created by Sword on 02/12/2016.
// Copyright © 2016 Baidu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController
@end
|
heavensword/CarRunningAnimationControl | CarAnimationDemo/CarAnimationDemo/ZHJCarAnimationView.h | <gh_stars>1-10
//
// ZHJCarAnimationView.h
// CarAnimationDemo
//
// Created by Sword on 02/12/2016.
// Copyright © 2016 Baidu. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface ZHJCarAnimationView : UIView
- (void)startAnimation;
- (void)stopAnimation;
@end
|
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/KillEmAllGameMode.h | <reponame>creosB/Return-Of-the-Gorm
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ReturnoftheGormGameMode.h"
#include "ContraPlayerController.h"
#include "KillEmAllGameMode.generated.h"
/**
*
*/
UCLASS()
class RETURNOFTHEGORM_API AKillE... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/FlameObstacle.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "GameFramework/Pawn.h"
#include "NiagaraComponent.h"
#include "Engine/TriggerVolume.h"
#include "FlameObstacle.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AFl... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/ContraCharacter.h | // Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
#include "KillEmAllGameMode.h"
#include "GameFramework/Character.h"
#include "ContraCharacter.generated.h"
class AGun;
class AShotgun;
UCLASS(config=Game)
class RETURNOFTHEGORM_API AContraCharacter : public ACharacter
{
GENERA... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/KillerBox.h | <gh_stars>0
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "ContraCharacter.h"
#include "Components/BoxComponent.h"
#include "GameFramework/Actor.h"
#include "KillerBox.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AKillerBox : public A... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/ActorMovement.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "Components/ActorComponent.h"
#include "Engine/TriggerVolume.h"
#include "ActorMovement.generated.h"
UENUM()
enum EPlatformDirection
{
DirectionX UMETA(Display = "X direction"),
DirectionY ... |
creosB/Return-Of-the-Gorm | Source Code/Source/ReturnoftheGorm/Grenade.h | <filename>Source Code/Source/ReturnoftheGorm/Grenade.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Grenade.generated.h"
UCLASS()
class RETURNOFTHEGORM_API AGrenade : public AActor
{
GENERATED_BODY()
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.