Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
filebench | filebench-master/cvars/mtwist/mtcctest.cc | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: mtcctest.cc,v 1.7 2012-12-30 16:24:49-08 geoff Exp $";
#endif
/*
* Test the C++ version of the Mersenne Twister PRNG
*
* $Log: mtcctest.cc,v $
* Revisi... | 74,380 | 61.610269 | 78 | cc |
filebench | filebench-master/cvars/mtwist/mttest.c | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: mttest.c,v 1.16 2013-01-05 01:18:52-08 geoff Exp $";
#endif
/*
* Test the Mersenne Twister PRNG
*
* $Log: mttest.c,v $
* Revision 1.16 2013-01-05 01:1... | 79,958 | 59.620925 | 76 | c |
filebench | filebench-master/cvars/mtwist/mtwist.c | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: mtwist.c,v 1.28 2014-01-23 21:11:42-08 geoff Exp $";
#endif
/*
* C library functions for generating pseudorandom numbers using the
* Mersenne Twist algor... | 42,083 | 32.137008 | 80 | c |
filebench | filebench-master/cvars/mtwist/mtwist.h | #ifndef MTWIST_H
#define MTWIST_H
/*
* $Id: mtwist.h,v 1.24 2012-12-31 22:22:03-08 geoff Exp $
*
* Header file for C/C++ use of the Mersenne-Twist pseudo-RNG. See
* http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html for full
* information.
*
* Author of this header file: Geoff Kuenning, March 18, 2001.
... | 17,513 | 34.168675 | 76 | h |
filebench | filebench-master/cvars/mtwist/randistrs.c | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: randistrs.c,v 1.12 2013-01-05 01:18:52-08 geoff Exp $";
#endif
/*
* C library functions for generating various random distributions
* using the Mersenne ... | 36,867 | 33.327747 | 78 | c |
filebench | filebench-master/cvars/mtwist/randistrs.h | #ifndef RANDISTRS_H
#define RANDISTRS_H
/*
* $Id: randistrs.h,v 1.8 2013-01-05 01:18:52-08 geoff Exp $
*
* Header file for C/C++ use of a generalized package that generates
* random numbers in various distributions, using the Mersenne-Twist
* pseudo-RNG. See mtwist.h and mtwist.c for documentation on the PRNG.
... | 19,046 | 35.984466 | 76 | h |
filebench | filebench-master/cvars/mtwist/rdcctest.cc | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: rdcctest.cc,v 1.7 2012-12-30 16:24:49-08 geoff Exp $";
#endif
/*
* Test the random-distribution library. Usage:
*
* rdcctest seed how_many distribution... | 7,117 | 30.082969 | 74 | cc |
filebench | filebench-master/cvars/mtwist/rdtest.c | #ifndef lint
#ifdef __GNUC__
#define ATTRIBUTE(attrs) __attribute__(attrs)
#else
#define ATTRIBUTE(attrs)
#endif
static char Rcs_Id[] ATTRIBUTE((used)) =
"$Id: rdtest.c,v 1.11 2013-01-05 01:18:52-08 geoff Exp $";
#endif
/*
* Test the random-distribution library. Usage:
*
* rdtest seed how_many distribution [pa... | 8,709 | 32.371648 | 78 | c |
filebench | filebench-master/cvars/test/sanity.c | /*
* sanity.c
*
* Sanity checker for custom libraries.
*
* Author: Santhosh Kumar Koundinya (santhosh@fsl.cs.sunysb.edu)
*/
#include <stdio.h>
#include <stdlib.h>
#include <dlfcn.h>
#include <stdint.h>
#include <fb_cvar.h>
char *pgmname;
void print_usage()
{
printf("Usage: %s <library name> <parameter strin... | 3,594 | 21.055215 | 77 | c |
filebench | filebench-master/workloads/compflow_demo.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,625 | 33.103896 | 116 | f |
filebench | filebench-master/workloads/copyfiles.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,776 | 33.173077 | 120 | f |
filebench | filebench-master/workloads/createdelete-swing.f | #
# GPL HEADER START
#
# This file 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 3 of the
# License, or (at your option) any later version.
#
# This file is distributed in the hope that it wil... | 2,736 | 24.820755 | 68 | f |
filebench | filebench-master/workloads/createfiles.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,489 | 30.041667 | 98 | f |
filebench | filebench-master/workloads/cvar_example.f | set $dir=/tmp
set $filesize=100m
set $iosize=cvar(type=cvar-uniform,parameters=lower:4096;upper:8192)
define file name=singlefile,path=$dir,size=$filesize,prealloc
define process name=filereader,instances=1
{
thread name=filereader,memsize=1m,instances=1
{
flowop openfile name=open1,filesetname=singlefile,fd=... | 421 | 22.444444 | 68 | f |
filebench | filebench-master/workloads/filemicro_create.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,494 | 30.145833 | 84 | f |
filebench | filebench-master/workloads/filemicro_createfiles.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,967 | 33.526316 | 106 | f |
filebench | filebench-master/workloads/filemicro_createrand.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,656 | 30.865385 | 101 | f |
filebench | filebench-master/workloads/filemicro_delete.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,754 | 31.5 | 116 | f |
filebench | filebench-master/workloads/filemicro_rread.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,552 | 30.06 | 87 | f |
filebench | filebench-master/workloads/filemicro_rwrite.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,603 | 30.45098 | 97 | f |
filebench | filebench-master/workloads/filemicro_rwritedsync.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,556 | 30.77551 | 90 | f |
filebench | filebench-master/workloads/filemicro_rwritefsync.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,641 | 30.576923 | 84 | f |
filebench | filebench-master/workloads/filemicro_seqread.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,412 | 29.717391 | 81 | f |
filebench | filebench-master/workloads/filemicro_seqwrite.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,571 | 30.44 | 94 | f |
filebench | filebench-master/workloads/filemicro_seqwriterand.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,638 | 31.78 | 91 | f |
filebench | filebench-master/workloads/filemicro_seqwriterandvargam.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,726 | 32.211538 | 107 | f |
filebench | filebench-master/workloads/filemicro_seqwriterandvartab.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,769 | 31.181818 | 107 | f |
filebench | filebench-master/workloads/filemicro_statfile.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,490 | 30.0625 | 107 | f |
filebench | filebench-master/workloads/filemicro_writefsync.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,640 | 29.388889 | 88 | f |
filebench | filebench-master/workloads/fileserver.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,043 | 34.241379 | 106 | f |
filebench | filebench-master/workloads/fivestreamread.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,059 | 32.225806 | 69 | f |
filebench | filebench-master/workloads/fivestreamreaddirect.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,111 | 33.064516 | 75 | f |
filebench | filebench-master/workloads/fivestreamwrite.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,076 | 32.5 | 69 | f |
filebench | filebench-master/workloads/fivestreamwritedirect.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,128 | 33.33871 | 76 | f |
filebench | filebench-master/workloads/listdirs.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,414 | 31.159091 | 95 | f |
filebench | filebench-master/workloads/makedirs.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,388 | 29.866667 | 86 | f |
filebench | filebench-master/workloads/mongo.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,876 | 33.127273 | 108 | f |
filebench | filebench-master/workloads/netsfs.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 3,611 | 29.610169 | 106 | f |
filebench | filebench-master/workloads/networkfs.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 3,817 | 31.355932 | 125 | f |
filebench | filebench-master/workloads/oltp.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,701 | 30.057471 | 107 | f |
filebench | filebench-master/workloads/openfiles.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,438 | 30.977778 | 95 | f |
filebench | filebench-master/workloads/randomfileaccess.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,447 | 31.64 | 122 | f |
filebench | filebench-master/workloads/randomread.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,367 | 30.090909 | 115 | f |
filebench | filebench-master/workloads/randomrw.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,550 | 31.3125 | 117 | f |
filebench | filebench-master/workloads/randomwrite.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,371 | 30.181818 | 117 | f |
filebench | filebench-master/workloads/ratelimcopyfiles.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,685 | 35.794521 | 103 | f |
filebench | filebench-master/workloads/removedirs.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,410 | 30.355556 | 95 | f |
filebench | filebench-master/workloads/singlestreamread.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,275 | 29.380952 | 70 | f |
filebench | filebench-master/workloads/singlestreamreaddirect.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,291 | 29.761905 | 77 | f |
filebench | filebench-master/workloads/singlestreamwrite.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,242 | 29.317073 | 71 | f |
filebench | filebench-master/workloads/singlestreamwritedirect.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 1,258 | 29.707317 | 78 | f |
filebench | filebench-master/workloads/tpcso.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 14,032 | 53.603113 | 76 | f |
filebench | filebench-master/workloads/varmail.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,105 | 34.694915 | 106 | f |
filebench | filebench-master/workloads/videoserver.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,828 | 35.269231 | 130 | f |
filebench | filebench-master/workloads/webproxy.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 2,427 | 36.9375 | 110 | f |
filebench | filebench-master/workloads/webserver.f | #
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os... | 3,226 | 40.371795 | 116 | f |
vim | vim-master/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | 11,357 | 55.227723 | 77 | md |
vim | vim-master/README.md | # Official code for ViM: Out-Of-Distribution with Virtual-logit Matching
[](http://ooddetection.github.io)
[](https://arxiv.org/abs/2203.10807)
https://user-images.githubusercontent.com/94648... | 6,055 | 45.945736 | 300 | md |
vim | vim-master/benchmark.py | #!/usr/bin/env python
import argparse
import torch
import numpy as np
from tqdm import tqdm
import mmcv
from numpy.linalg import norm, pinv
from scipy.special import softmax
from sklearn import metrics
from sklearn.metrics import pairwise_distances_argmin_min
from sklearn.covariance import EmpiricalCovariance
from os.p... | 12,747 | 38.224615 | 157 | py |
vim | vim-master/extract_feature_bit.py | #!/usr/bin/env python
import argparse
import torch
from list_dataset import ImageFilelist
import numpy as np
import pickle
from tqdm import tqdm
import mmcv
from os.path import dirname
import torchvision as tv
import resnetv2
def parse_args():
parser = argparse.ArgumentParser(description='Say hello')
parser.ad... | 2,462 | 31.84 | 106 | py |
vim | vim-master/extract_feature_timm.py | #!/usr/bin/env python
import argparse
import torch
from list_dataset import ImageFilelist
import numpy as np
import pickle
from tqdm import tqdm
import mmcv
from os.path import dirname
import torchvision as tv
import timm
def parse_args():
parser = argparse.ArgumentParser(description='Say hello')
parser.add_ar... | 2,866 | 34.8375 | 162 | py |
vim | vim-master/extract_feature_vit.py | #!/usr/bin/env python
import argparse
from mmcls.apis import init_model
import torch
from list_dataset import ImageFilelist
import numpy as np
import pickle
from tqdm import tqdm
import mmcv
from os.path import dirname
import torchvision as tv
def parse_args():
parser = argparse.ArgumentParser(description='Say hel... | 2,525 | 33.60274 | 162 | py |
vim | vim-master/list_dataset.py | import torch.utils.data as data
from PIL import Image
import os
import os.path
def default_loader(path):
return Image.open(path).convert('RGB')
def default_flist_reader(flist):
"""
flist format: impath label\nimpath label\n
"""
imlist = []
with open(flist, 'r') as rf:
for line in rf.readlines():
data = li... | 1,157 | 23.638298 | 71 | py |
vim | vim-master/resnetv2.py | """Bottleneck ResNet v2 with GroupNorm and Weight Standardization."""
from collections import OrderedDict
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn as nn
class Reshape(nn.Module):
def __init__(self, *args):
super(Reshape, self).__init__()
self.shape = arg... | 12,199 | 38.354839 | 114 | py |
vim | vim-master/vit-base-p16-384.py | # model settings
model = dict(
type='ImageClassifier',
backbone=dict(
type='VisionTransformer',
arch='b',
img_size=384,
patch_size=16,
drop_rate=0.1,
init_cfg=[
dict(
type='Kaiming',
layer='Conv2d',
mode=... | 622 | 22.961538 | 57 | py |
vnncomp2022_results | vnncomp2022_results-master/README.md | # vnncomp2022_results
This repo contains the results for VNN COMP 2022 for each tool, as well as scoring code in the `SCORING` directory.
Links:
* VNN COMP 2022 website: https://sites.google.com/view/vnn2022
* Benchmark list: https://github.com/ChristopherBrix/vnncomp2022_benchmarks
* Online discussion of benchmarks... | 381 | 37.2 | 115 | md |
vnncomp2022_results | vnncomp2022_results-master/SCORING/counterexamples.py | """
code related to checking for counterexamples
"""
from pathlib import Path
import gzip
import datetime
import numpy as np
import onnx
import onnxruntime as ort
from vnnlib import read_vnnlib_simple, get_io_nodes
from cachier import cachier
from settings import Settings
def predict_with_onnxruntime(model_def, *i... | 7,514 | 28.241245 | 110 | py |
vnncomp2022_results | vnncomp2022_results-master/SCORING/merge_results_per_team.sh | for d in */; do
cat $d/*/results.csv > $d/results.csv
done
| 64 | 12 | 41 | sh |
vnncomp2022_results | vnncomp2022_results-master/SCORING/process_results.py | """
Process vnncomp results
Stanley Bak
"""
from typing import Dict, List, Tuple, Union
import glob
import csv
from pathlib import Path
from collections import defaultdict
import numpy as np
from counterexamples import is_correct_counterexample, CounterexampleResult
from settings import Settings
class ToolResult:
... | 38,077 | 29.957724 | 143 | py |
vnncomp2022_results | vnncomp2022_results-master/SCORING/run.sh | #!/bin/bash -e
python3 process_results.py
# run again, capturing output to file
python3 process_results.py > results.txt && pushd plots && gnuplot make_plots.gnuplot && cp *.pdf ../latex/cactus && popd && pushd latex && make ; popd
| 236 | 25.333333 | 151 | sh |
vnncomp2022_results | vnncomp2022_results-master/SCORING/settings.py | '''
vnn comp global settings
'''
from pathlib import Path
class GnuplotSettings:
"""settings for gnuplot"""
def __init__(self, prefix, title):
self.prefix = prefix
self.title = title
class Settings:
'''static container for settings'''
CSV_GLOB = "../*/results.csv"
TOOL_LIST_GLOB... | 3,916 | 33.973214 | 121 | py |
vnncomp2022_results | vnncomp2022_results-master/SCORING/vnnlib.py | '''
vnnlib simple utilities
Stanley Bak
June 2021
'''
from copy import deepcopy
import re
import numpy as np
import onnxruntime as ort
import onnx
from cachier import cachier
import datetime
def read_statements(vnnlib_filename):
'''process vnnlib and return a list of strings (statements)
useful to get ri... | 8,796 | 29.023891 | 112 | py |
null | RotationCorrection-main/README.md | # Deep Rotation Correction without Angle Prior ([paper](https://arxiv.org/abs/2207.03054))
<p align="center">Lang Nie<sup>1</sup>, Chunyu Lin<sup>1 *</sup>, Kang Liao<sup>1</sup>, Shuaicheng Liu<sup>2</sup>, Yao Zhao<sup>1</sup></p>
<p align="center"><sup>1</sup>Beijing Jiaotong University</p>
<p align="center"><sup>2<... | 4,187 | 55.594595 | 406 | md |
null | RotationCorrection-main/Codes/constant.py | #training dataset path
TRAIN_FOLDER = '/data/cylin/nl/Data/DRC-D/training'
#testing dataset path
TEST_FOLDER = '/data/cylin/nl/Data/DRC-D/testing'
#testing dataset path for other datasets
TEST_OTHER_FOLDER = '../Other_dataset/'
#GPU index
GPU = '4'
#batch size for training
TRAIN_BATCH_SIZE = 4
#batch size for test... | 525 | 16.533333 | 51 | py |
null | RotationCorrection-main/Codes/inference.py | import tensorflow as tf
import os
import time
import numpy as np
import pickle
import cv2 as cv
from model import RotationCorrection
from utils import load, save, DataLoader
import skimage
import imageio
import constant
os.environ['CUDA_DEVICES_ORDER'] = "PCI_BUS_ID"
os.environ['CUDA_VISIBLE_DEVICES'] = constant.GP... | 3,998 | 32.605042 | 157 | py |
null | RotationCorrection-main/Codes/inference2.py | import tensorflow as tf
import os
import time
import numpy as np
import pickle
import cv2 as cv
from model import RotationCorrection2
from utils import load, save, DataLoader
import skimage
import imageio
import glob
import constant
os.environ['CUDA_DEVICES_ORDER'] = "PCI_BUS_ID"
os.environ['CUDA_VISIBLE_DEVICES'] =... | 2,955 | 28.56 | 104 | py |
null | RotationCorrection-main/Codes/loss_functions.py | import tensorflow as tf
import numpy as np
def intensity_loss(gen_frames, gt_frames, l_num):
"""
Calculates the sum of lp losses between the predicted and ground truth frames.
@param gen_frames: The predicted frames at each scale.
@param gt_frames: The ground truth frames at each scale
@param l_n... | 476 | 20.681818 | 82 | py |
null | RotationCorrection-main/Codes/model.py | import tensorflow as tf
import numpy as np
import tensorflow.contrib.slim as slim
from tensorflow.contrib.layers import conv2d, conv2d_transpose
import tf_spatial_transform_local
import math
import tf_mesh2flow
grid_w = 8
grid_h = 6
#------------- Warping layer for optical flow -------------------
def get_grid(x):... | 9,955 | 37.440154 | 113 | py |
null | RotationCorrection-main/Codes/tensorDLT_local.py | import tensorflow as tf
import numpy as np
#######################################################
# Auxiliary matrices used to solve DLT
Aux_M1 = np.array([
[ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ],
[ 1 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ],
[ 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 ],
[ 0 , 0 , 1 ... | 7,105 | 33.663415 | 137 | py |
null | RotationCorrection-main/Codes/tf_mesh2flow.py | import tensorflow as tf
import numpy as np
import math
import tensorDLT_local
from keras.layers import UpSampling2D
import constant
grid_w = constant.GRID_W
grid_h = constant.GRID_H
def mesh2flow(mesh, name='Mesh2Flow', **kwargs):
"""Spatial Transformer Layer
Implements a spatial transformer layer as describ... | 9,924 | 37.02682 | 154 | py |
null | RotationCorrection-main/Codes/tf_spatial_transform_local.py | import tensorflow as tf
import numpy as np
import math
import tensorDLT_local
from keras.layers import UpSampling2D
import constant
grid_w = constant.GRID_W
grid_h = constant.GRID_H
def transformer(U, theta, name='SpatialTransformer', **kwargs):
"""Spatial Transformer Layer
Implements a spatial transformer l... | 10,939 | 39.07326 | 154 | py |
null | RotationCorrection-main/Codes/train.py | import tensorflow as tf
import os
from model import RotationCorrection
from loss_functions import intensity_loss
from utils import load, save, DataLoader
import constant
from PIL import Image
import numpy as np
import scipy.io
os.environ['CUDA_DEVICES_ORDER'] = "PCI_BUS_ID"
os.environ['CUDA_VISIBLE_DEVICES'] = const... | 9,044 | 42.071429 | 170 | py |
null | RotationCorrection-main/Codes/utils.py | import tensorflow as tf
import numpy as np
from collections import OrderedDict
import os
import glob
import cv2
rng = np.random.RandomState(2022)
class DataLoader(object):
def __init__(self, video_folder):
self.dir = video_folder
self.videos = OrderedDict()
self.setup()
def __call__(... | 3,419 | 31.571429 | 134 | py |
Grid2Op | Grid2Op-master/.readthedocs.yml | version: 2
python:
version: 3.8
install:
- method: pip
path: .
extra_requirements:
- docs
| 136 | 12.7 | 28 | yml |
Grid2Op | Grid2Op-master/LICENSE.md | Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of oth... | 16,725 | 43.721925 | 72 | md |
Grid2Op | Grid2Op-master/LicensesInformation.md | Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
See [AUTHORS.txt](AUTHORS.txt)
This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
you can obtain one at http://mozilla.org/MPL/2.0... | 4,131 | 48.783133 | 116 | md |
Grid2Op | Grid2Op-master/README.md | # Grid2Op
[](https://pepy.tech/project/grid2op)
[](https://pypi.org/project/Grid2Op/)
[](https://pypi.org/project/Grid2Op/)
[ 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 3,738 | 31.513043 | 125 | py |
Grid2Op | Grid2Op-master/.circleci/config.yml | version: 2.1
executors:
grid2op-executor:
docker:
- image: bdonnot/grid2op:test
working_directory: /Grid2Op
python37:
docker:
- image: python:3.7-buster
python38:
docker:
- image: python:3.8-buster
python39:
docker:
... | 12,174 | 35.561562 | 85 | yml |
Grid2Op | Grid2Op-master/.github/ISSUE_TEMPLATE/bug_report.md | ---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
## Environment
- Grid2op version: `0.x.x`
- System: `windows, osx, ubuntu16.04, ...`
- Additional system information
## Bug description
<!--A clear and concise description of what the bug is.-->
<!--A good met... | 1,587 | 26.37931 | 115 | md |
Grid2Op | Grid2Op-master/.github/ISSUE_TEMPLATE/documentation.md | ---
name: Documentation
about: Anything related to the documentation
title: ''
labels: documentation
assignees: ''
---
## Documentation issue description
<!--A description of what the problem/suggestion is.-->
## Suggested modifications
<!--Be as concise and clear as possible.
Ideally we could directly copy paste th... | 599 | 20.428571 | 87 | md |
Grid2Op | Grid2Op-master/.github/ISSUE_TEMPLATE/feature_request.md | ---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''
---
## Is your feature request related to a problem? Please describe.
<!--A clear and concise description of what the problem is.-->
<!--Ex. I'm always frustrated when [...]-->
<!-- Do not forget to include c... | 1,055 | 24.142857 | 83 | md |
Grid2Op | Grid2Op-master/_profiling/average_time_in_step_no_redisp.py |
"""
Grid2op schematically does basically the following, during a “step”:
1) load the next productions / loads for all generators loads
2) compile the actions of the agents / loads modifications / opponent / maintenance / hazards into one “setpoint” for the backend
3) Ask the backend to be set to the “setpoint action”... | 5,145 | 34.986014 | 135 | py |
Grid2Op | Grid2Op-master/_profiling/profiler_assessment.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,123 | 37.185185 | 126 | py |
Grid2Op | Grid2Op-master/_profiling/profiler_env_cpy.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,452 | 25.907407 | 112 | py |
Grid2Op | Grid2Op-master/_profiling/profiler_simulate.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 1,906 | 27.893939 | 112 | py |
Grid2Op | Grid2Op-master/_profiling/profiler_train.py | # Copyright (c) 2019-2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX... | 4,304 | 36.763158 | 120 | py |
Grid2Op | Grid2Op-master/_profiling/utils_benchmark.py | # Copyright (c) 2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-Lice... | 13,078 | 49.693798 | 122 | py |
Grid2Op | Grid2Op-master/binder/environment.yml | name: grid2op-environment
channels:
- conda-forge
dependencies:
- python
- numpy
- keras
- pip
- pip:
- grid2op[challenge]
- l2rpn-baselines
- jyquickhelper
- numpy
- numba
- keras
- seaborn
- plotly
- imageio
- ray[rllib, default]
| 284 | 13.25 | 25 | yml |
Grid2Op | Grid2Op-master/docs/conf.py | # Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# http://www.sphinx-doc.org/en/master/config
# -- Path setup --------------------------------------------------------------
# If extensions (or module... | 2,752 | 30.284091 | 85 | py |