text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
#Importing the necessary libraries
import tkinter as tk
import numpy as np
from tkinter import *
from tkinter import messagebox
from PIL import Image,ImageTk
import cv2
import easygui
import sys
import os
#Function Defined for Uploading function:
def upload():
imagepath = easygui.fileopenbox()
ca... | {"hexsha": "6ae10d32e8a68162f03996ab72d9f42c37ab0d91", "size": 3553, "ext": "py", "lang": "Python", "max_stars_repo_path": "Cartoonify Image/Cartoonify-GUI/cartoonify-gui.py", "max_stars_repo_name": "EsraaAshraf99/Face-X", "max_stars_repo_head_hexsha": "425160482de37ede884e0e6112c7dc9c15ecd05f", "max_stars_repo_license... |
Alpha Sigma Phi
Alpha Sigma Phi is a social Fraternities fraternity that prides itself on its leadership opportunities, dedication towards scholarship and its creation of Brotherhood relationships that will last a lifetime.
Mission:
To Better the Man through the creation and perpetuation of Brotherhood founded up... | {"hexsha": "8d80f5f75868848b05cb89cd31117d41c0ea7666", "size": 3810, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/Alpha_Sigma_Phi.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
program zonbudmf6
use KindModule
use SimModule, only: ustop
use ConstantsModule, only: LINELENGTH, LENHUGELINE
use VersionModule, only: VERSION
use SimVariablesModule, only: iout
use GenericUtilitiesModule, only: sim_message, write_centered
use InputOutputModule, only: openfile
implicit none
ch... | {"hexsha": "94be1892b2d77cc1a3226d113be13bab292d69e3", "size": 13127, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "utils/zonebudget/src/zbud6.f90", "max_stars_repo_name": "scottrp/modflow6", "max_stars_repo_head_hexsha": "96f6e4972d16426dda356fa82f606337fc37e791", "max_stars_repo_licenses": ["CC0-1.0"], "ma... |
import time
from tqdm import tqdm
import numpy as np
import crisp.utils.panda_utils as iku3d
import warnings
# Panda-specific parameters
panda_end_effector_index = 11 # 8
panda_num_dofs = 7
idx_true_joints = [0, 1, 2, 3, 4, 5, 6, 9, 10]
class PandaSimForwardKin(object):
# Constructor
def __init__(self,
... | {"hexsha": "9a169a76f23d06116ce0d3e24e7d9736e9e3501b", "size": 8651, "ext": "py", "lang": "Python", "max_stars_repo_path": "crisp/robots/panda_forward_kinematics.py", "max_stars_repo_name": "traversaro/CRiSP-for-Misspecified-Robot-Model", "max_stars_repo_head_hexsha": "6b5e0c28dc52463ac3b1c72c61fea0c5f7ac21f8", "max_st... |
# Setup parameters to be used in various examples
# from path import *
import numpy as np
import centpy
pars_burgers1d = centpy.Pars1d(
x_init=0.0,
x_final=2.0 * np.pi,
t_final=10,
dt_out=0.05,
J=400,
cfl=0.75,
scheme="sd3",
)
pars_euler1d = centpy.Pars1d(
x_init=0.0, x_final=1.0, t_fi... | {"hexsha": "f132390b9c10f950ed86156bd4b714f4ba4b5933", "size": 1180, "ext": "py", "lang": "Python", "max_stars_repo_path": "centpy/tests/example_parameters.py", "max_stars_repo_name": "olekravchenko/centpy", "max_stars_repo_head_hexsha": "e10d1b92c0ee5520110496595b6875b749fa4451", "max_stars_repo_licenses": ["MIT"], "m... |
"""
University of Minnesota
Aerospace Engineering and Mechanics - UAV Lab
Copyright 2019 Regents of the University of Minnesota
See: LICENSE.md for complete license details
Author: Chris Regan
"""
import numpy as np
import control
#%% Connect by strings
def ConnectName(sysList, connectNames, inKeep, outKeep):
s... | {"hexsha": "962e700850c06bceca31b70a5eaa370a9362e560", "size": 2904, "ext": "py", "lang": "Python", "max_stars_repo_path": "Core/Systems.py", "max_stars_repo_name": "UASLab/OpenFlightAnalysis", "max_stars_repo_head_hexsha": "b5ecb3ea7ff82f5fb21efa7e9cbee60bf68aea37", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
import cv2
import numpy as np
import sys
sys.path.append(".")
sys.path.append("../.")
from boxdetect import config, img_proc
def DefaultConfig():
cfg = config.PipelinesConfig()
cfg.width_range = (25, 50)
cfg.height_range = (25, 50)
cfg.scaling_factors = [1.0]
cfg.wh_ratio_range = (0.5, 1.5)
cf... | {"hexsha": "7030f7c3e319ceb77264da8cf55e67eff0af6518", "size": 2286, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_img_proc.py", "max_stars_repo_name": "lukelu0520/boxdetect", "max_stars_repo_head_hexsha": "6a079e38a279f152f5c6cb0f0934e8620f0224ef", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
\chapter{Areal typology in the Circum-Baltic area}\label{circumbaltic}
%%%
\il{Germanic languages|(}\il{Baltic languages|(}\il{Slavic languages|(}\il{Finnic languages|(}\il{Saamic languages|(}
\is{Circum-Baltic area|(}
\is{buffer zone|(}
The Circum-Baltic area can be defined geographically as the drainage area of the ... | {"hexsha": "a0b0bb8ed41073d8559fb0cf6235c3f8dd9288ea", "size": 6468, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "inprep/Riessler/chapters/chap-areal-typ.tex", "max_stars_repo_name": "langsci/sidl", "max_stars_repo_head_hexsha": "ca113bd66d56345895af9a6d5bd9adbcde69fc22", "max_stars_repo_licenses": ["CC-BY-4.0"... |
module Day9
export day9
import ..Day1
function readInput(inputfile="inputs/input09.txt")
[parse(Int, line) for line in eachline(inputfile)]
end
function day9(inputfile="inputs/input09.txt")
values = readInput(inputfile)
part1 = day9Part1(values)
part2 = day9Part2(values, part1)
(part1, part2)
end
... | {"hexsha": "59116a2d52483bf6412976b9998d12a39479ff12", "size": 1055, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/day09.jl", "max_stars_repo_name": "abraemer/AoC2020.jl", "max_stars_repo_head_hexsha": "e72a617fbd187aa1f9b94a2668c4efda9e8f77c2", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
# Copyright (c) 2019 Graphcore Ltd. All rights reserved.
import itertools
import numpy as np
import popart
import torch
import pytest
import re
from op_tester import op_tester
from unittest.mock import patch
# `import test_util` requires adding to sys.path
import sys
from pathlib import Path
sys.path.append(str(Path(_... | {"hexsha": "4ba367c91c21c5610efa240b5e72292dc2b5542d", "size": 16960, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/integration/operators_test/multiconv_test.py", "max_stars_repo_name": "gglin001/popart", "max_stars_repo_head_hexsha": "3225214343f6d98550b6620e809a3544e8bcbfc6", "max_stars_repo_licenses":... |
import sys
import time
import math
import random
import csv
import numpy as np
from PIL import Image
from naoqi import ALProxy
# from naoqi import ALBroker
from naoqi import ALModule
class NaoWrapper(object):
"""
LINKS: http://doc.aldebaran.com/2-1/dev/naoqi/index.html#naoqi-process
http:... | {"hexsha": "5b916d7de5ad56373cae34e811075c8c2640568a", "size": 21909, "ext": "py", "lang": "Python", "max_stars_repo_path": "nao_class.py", "max_stars_repo_name": "gmihaila/nao", "max_stars_repo_head_hexsha": "ede98e189fd156c3338d471f30d047d48679026a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_star... |
import argparse
import sys
parser = argparse.ArgumentParser()
parser.add_argument("-pythonpath", "--pythonpath", type=str)
parser.add_argument("-dataset_table", "--dataset_table", type=str)
parser.add_argument("-pred_output_dir", "--pred_output_dir", type=str)
parser.add_argument("-work_dir", "--work_dir", type=str)
p... | {"hexsha": "a9a283d5a40b9fcc0e4777d341468c9ab43b01a9", "size": 24041, "ext": "py", "lang": "Python", "max_stars_repo_path": "3d_cnn/scripts/cross_validation_particle_picking.py", "max_stars_repo_name": "mrmattuschka/DeePiCt", "max_stars_repo_head_hexsha": "ef3e81ea25705076f340175d97ccff98f8d11799", "max_stars_repo_lice... |
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
def __init__():
train_x=pd.read_csv("cancer_data.csv")
train_x = np.array(train_x)
train_y=pd.read_csv("cancer_data_y.csv")
train_y = np.array(train_y)
#0.00002-92
#0.000005-92, 93 when 200000
d = model(train_x.T, train_y.T, n... | {"hexsha": "9f26e2c178183dace6143e337751d943eda7a87b", "size": 3410, "ext": "py", "lang": "Python", "max_stars_repo_path": "breast_cancer/B_Cancer.py", "max_stars_repo_name": "abhi-sadana/Machine-Learning", "max_stars_repo_head_hexsha": "2cb83d64500fcbb8b0a97c45f956605f6f4453d6", "max_stars_repo_licenses": ["MIT"], "ma... |
import numpy as np
import torch
from sklearn.datasets import make_circles
def rand_cirlce2d(batch_size):
""" This function generates 2D samples from a filled-circle distribution in a 2-dimensional space.
Args:
batch_size (int): number of batch samples
Return:
torch.Tenso... | {"hexsha": "60bebfd2622f05ca2a077e9daf588253e5a87618", "size": 1694, "ext": "py", "lang": "Python", "max_stars_repo_path": "swae/distributions.py", "max_stars_repo_name": "vitchyr/swae-pytorch", "max_stars_repo_head_hexsha": "c59cbffc3f093b98084d56271d4743072e9bf5d5", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
# -*- coding: utf-8 -*-
"""
Created on Fri Jun 15 14:47:41 2018
@author: niccolop
"""
import itertools
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import nltk
#%% load data
"""
This data was collected on 15th June 2018. They represent the first 10 websites
suggested by Google from the qu... | {"hexsha": "3d2fb4e6414f89025732506d582a458e1838c1b8", "size": 3377, "ext": "py", "lang": "Python", "max_stars_repo_path": "conversation_dynamics-master/train_data.py", "max_stars_repo_name": "namlehai/Converstation-Dynamics", "max_stars_repo_head_hexsha": "eaca6b2a9dec2a5374573bf66f76bf5cd1f4c6ed", "max_stars_repo_lic... |
[STATEMENT]
lemma upd_uinfo_ik_elem:
"\<lbrakk>t \<in> terms_uinfo (upd_uinfo uinfo hf); terms_uinfo uinfo \<subseteq> synth (analz ik); terms_hf hf \<subseteq> synth (analz ik)\<rbrakk>
\<Longrightarrow> t \<in> synth (analz ik)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>t \<in> terms_uinfo (... | {"llama_tokens": 199, "file": "IsaNet_Parametrized_Dataplane_3_directed", "length": 1} |
"""
"""
from PIL import Image
import os
import numpy as np
import sys
import augmentations
from augmentations import AugmentationType
class Dataset:
def __init__(self, train_list, test_list, database_root, store_memory=True,
data_aug=AugmentationType.NONE, tmp_folder='/tmp/gygonet/',
... | {"hexsha": "eb6161e5fd12843351fe58316c4bae3c2e0185be", "size": 8391, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/gygox/helper_functions/dataset.py", "max_stars_repo_name": "giladsharir/MNC-1", "max_stars_repo_head_hexsha": "449c8c6584c1ba634121c22d5f13c6720100e00b", "max_stars_repo_licenses": ["BSD-2-Cla... |
'''
Utility functions
@author Jonathan Karr, karr@mssm.edu
@date 3/22/2016
'''
import numpy as np
N_AVOGADRO = 6.022e23
# Avogadro constant
def nanminimum(x, y):
return np.where(np.logical_or(np.isnan(y), np.logical_and(x <= y, np.logical_not(np.isnan(x)))), x, y)
def nanmaximum(x, y):
retu... | {"hexsha": "558a1ae22123e4812a3260c1a8be869c77d0b23b", "size": 422, "ext": "py", "lang": "Python", "max_stars_repo_path": "intro_to_wc_modeling/cell_modeling/simulation/multi_algorithm/util.py", "max_stars_repo_name": "KarrLab/python_package_tutorial", "max_stars_repo_head_hexsha": "dd20e0d3056138904e7e7fbbf6bb884d64db... |
include("src/Blake3Hash.jl")
using Profile
using .Blake3Hash
DATA_SIZE = 2*8192
function run()
h = Blake3Hash.Simd128.Blake3Ctx()
d = rand(UInt8, 2*8192)
o = Vector{UInt8}(undef, 32)
Blake3Hash.Simd128.update!(h, d)
Blake3Hash.Simd128.digest(h, o)
end
run()
Profile.clear_malloc_data()
run()
| {"hexsha": "84103d2788e18c5e8d98a6df861ecc886a657d0d", "size": 317, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "_test_allocation.jl", "max_stars_repo_name": "pixel27/Blake3.jl", "max_stars_repo_head_hexsha": "a23080f53a67294586c5cecd86bc03edad42c911", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, ... |
import logging
import warnings
import os
import re
import scipy.stats as stats
import numpy as np
import pandas as pd
from lib_utils_io import read_file_tif, write_file_tif, create_darray_3d
from lib_utils_system import fill_tags2string, convert_list2dict, make_folder
class DriverData:
def __init__(self, time... | {"hexsha": "99287fccf2efcd86d0803ef3006f564bcaade757", "size": 15561, "ext": "py", "lang": "Python", "max_stars_repo_path": "apps/drought_index/sspi/drv_satellite_smap_data.py", "max_stars_repo_name": "c-hydro/hyde", "max_stars_repo_head_hexsha": "3a3ff92d442077ce353b071d5afe726fc5465201", "max_stars_repo_licenses": ["... |
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from models.median_pool import MedianPool2d
class RandomBlur(nn.Module):
def __init__(self, blur_prob, blur2x2_prob):
super(RandomBlur, self).__init__()
self.blur_prob = blur_prob
self.blur2x2_prob = blur... | {"hexsha": "1839b6b265401b9f6cb0988ddd6bdc169815cb44", "size": 3371, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/processing/blur.py", "max_stars_repo_name": "rwightman/pytorch-nips2017-adversarial", "max_stars_repo_head_hexsha": "1727494ea3bfcbc3b4754b35096e816e1269ff38", "max_stars_repo_licenses": ["... |
// Copyright Stefan Strasser 2009 - 2013.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//TODO: rolling log files are always started at .1 currently.
//is persistent needs a header in the ... | {"hexsha": "8ab26b4fe79484b10fece339479af3c56efb70b5", "size": 16149, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "third/include/atlas/transaction/log.hpp", "max_stars_repo_name": "galaxyeye/pioneer", "max_stars_repo_head_hexsha": "cfc3aa3c4917b19000753ea3144bded79380d289", "max_stars_repo_licenses": ["Apache-2... |
"""
Combinatorial Hopf algebras
- :ref:`sage.combinat.sf.all`
- :ref:`sage.combinat.ncsf_qsym.all`
- :ref:`sage.combinat.ncsym.all`
- :ref:`sage.combinat.schubert_polynomial`
- :ref:`sage.combinat.chas.fsym`
- :ref:`sage.combinat.fqsym`
- :ref:`sage.combinat.grossman_larson_algebras`
- :ref:`sage.combinat.chas.wqsym`
... | {"hexsha": "899155c03851e63e5a6a2d04069a919b598b2446", "size": 664, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/sage/combinat/chas/all.py", "max_stars_repo_name": "UCD4IDS/sage", "max_stars_repo_head_hexsha": "43474c96d533fd396fe29fe0782d44dc7f5164f7", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_c... |
#!/usr/bin/python
# coding=utf-8
import os
from numpy import *
from sklearn.cross_validation import train_test_split
import pandas as pd
from pandas import *
from pandas import DataFrame
import xgboost as xgb
from sklearn.cross_validation import KFold
from sklearn import metrics
import time
os.chdir(r'E... | {"hexsha": "a5437db65afc96859ce67626c4379463fa4251f0", "size": 3732, "ext": "py", "lang": "Python", "max_stars_repo_path": "Procedure/2_M1/train/xgb-cv-display.py", "max_stars_repo_name": "finlay-liu/rong360-dataanalysis2016", "max_stars_repo_head_hexsha": "68d85de090c3efecde33bd58945269f6d23a9072", "max_stars_repo_lic... |
#!/usr/bin/python
# -*- coding:utf-8 -*-
"""
工具类
"""
import numpy as np
def load_data(fileName):
"""
Description:
加载数据
Returns:
dataMat : feature 对应的数据集
labelMat : feature 对应的分类标签,即类别标签
"""
# 获取样本特征的总数
numFeat = len(open(fileName).readline().split('\t')) - 1
dat... | {"hexsha": "102d8cadfb540cf332a4187764efab8170762f9b", "size": 4480, "ext": "py", "lang": "Python", "max_stars_repo_path": "Supervised/Regression/LinearRegression/linear_regression_utils.py", "max_stars_repo_name": "neohope/MLStudy", "max_stars_repo_head_hexsha": "bba16587e4f3efe11c926030f6bbcff6db0dde14", "max_stars_r... |
[STATEMENT]
lemma ffb_invariants:
assumes "{s. I s} \<le> fb\<^sub>\<F> F {s. I s}" and "{s. J s} \<le> fb\<^sub>\<F> F {s. J s}"
shows "{s. I s \<and> J s} \<le> fb\<^sub>\<F> F {s. I s \<and> J s}"
and "{s. I s \<or> J s} \<le> fb\<^sub>\<F> F {s. I s \<or> J s}"
[PROOF STATE]
proof (prove)
goal (1 subgoal):... | {"llama_tokens": 634, "file": "Hybrid_Systems_VCs_PredicateTransformers_HS_VC_PT", "length": 3} |
#!/usr/bin/python
help_msg = 'calculate contact density from PDB structure file'
import os, sys, glob
from Bio.PDB import NeighborSearch, PDBParser, Atom, Residue, Polypeptide
from Bio import PDB
import numpy as np
CWD = os.getcwd()
UTLTS_DIR = CWD[:CWD.index('proteomevis_scripts')]+'/proteomevis_scripts/utlts'
sys... | {"hexsha": "01a4859f59f207d1414a465f5fc12630a6fd4e47", "size": 3535, "ext": "py", "lang": "Python", "max_stars_repo_path": "1-property_proteomevis/contact_density/run.py", "max_stars_repo_name": "rrazban/proteomevis_scripts", "max_stars_repo_head_hexsha": "2b6309a78287ffab4ee745383c21b9f474b93b60", "max_stars_repo_lice... |
"""
mappings between filter characteristic wavelengths and designations,
along with a bunch of derived related values for "XCAM"
instruments (PCAM, MCAM, ZCAM...), affording consistent interpretation
of operations on individual spectra
"""
from collections.abc import Mapping, Sequence
from itertools import chain, com... | {"hexsha": "49aabcbb1c5b54597190743b262026ebbb57f95d", "size": 15205, "ext": "py", "lang": "Python", "max_stars_repo_path": "marslab/compat/xcam.py", "max_stars_repo_name": "AndrewAnnex/marslab", "max_stars_repo_head_hexsha": "dde6bcd627ff85d9125d4abfe06432fe241f4ca1", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Mar 25 11:59:03 2021
@author: jonas
"""
from pathlib import Path
from matplotlib import pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
#
# READ / PARSE DATA
#
raw_data = Path("data.txt").read_text().splitlines()
raw_data = [ r... | {"hexsha": "1dfc0e399faa57aebe7e2d533a9ca6821c0f35fc", "size": 1160, "ext": "py", "lang": "Python", "max_stars_repo_path": "easyExercise_12_regression/easyExercise_12b_moreRegression.py", "max_stars_repo_name": "AlreadyTakenJonas/pythonBootCamp2021", "max_stars_repo_head_hexsha": "736002cfdb6992f363c00e3397fc021f879f49... |
"""Iterate through hyperparams of ST to get accuracies
"""
import os
import time
import numpy as np
from sklearn.svm import SVC
from tqdm import tqdm
import hyper_pixelNN as hsinn
import pdb
FEAT_DIR = '/scratch0/ilya/locDoc/data/hyperspec/features/npz_feat'
FEAT_DIR = '/scratch1/ilya/locDoc/data/hyperspec/feature... | {"hexsha": "66f2571d854e9efd3d6bbf7d7b3b010e6baef08a", "size": 13667, "ext": "py", "lang": "Python", "max_stars_repo_path": "hyperparam_gridsearch.py", "max_stars_repo_name": "ilyakava/pyfst", "max_stars_repo_head_hexsha": "7c8daa5493e22a12bf0c37201c0887550036ab25", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
const iv = initvar
cf = Dict()
simpleloop = [
:(x = 1/2*x)
:(y = 2y)
]
cf[:simpleloop] = [
"x(n) = (1/2)^n * $(iv(:x))"
"y(n) = 2^n * $(iv(:y))"
]
cohencu = [
:(m = m+1)
:(x = x+y)
:(y = y+z)
:(z = z+6)
]
cf[:cohencu] = []
freire1 = [
:(x = x-r)
:(r = r+1)
]
cf[:freire1] = []... | {"hexsha": "2b30da153c734c856426025b41825f16b41ca70f", "size": 1730, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/examples.jl", "max_stars_repo_name": "ahumenberger/Recurrences.jl", "max_stars_repo_head_hexsha": "cb62703af4267af7d92ab4e1cd6d576342207537", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
"""
Define the logging module used with tensorboard
"""
from torch.utils.tensorboard import SummaryWriter
import torch.nn as nn
import numpy as np
class Logger:
def __init__(self, path: str):
self.writer = SummaryWriter(log_dir=path)
def close(self):
"""
Closes the writer
"""
... | {"hexsha": "c9be227e5d5e86349023b2ea8ec2e246a2afe06b", "size": 1362, "ext": "py", "lang": "Python", "max_stars_repo_path": "tmb/log.py", "max_stars_repo_name": "LnSchmsr/TMB", "max_stars_repo_head_hexsha": "b58505a71f11271f6e6ae1e3b38cc3ebc525a0e9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_star... |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | {"hexsha": "8697e33fcbb9ade90896dd01f1aa159ee9b0d768", "size": 14008, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/ut/python/ops/test_control_ops.py", "max_stars_repo_name": "skywalk163/mindspore", "max_stars_repo_head_hexsha": "f8b30a5bb83ace754e94d064bee4b3361fcdb83e", "max_stars_repo_licenses": ["Apa... |
"""
Copyright (c) 2018-2021 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in wri... | {"hexsha": "3751da4345f105f57d293745a1025cae0fb7eec1", "size": 23574, "ext": "py", "lang": "Python", "max_stars_repo_path": "tools/accuracy_checker/accuracy_checker/evaluators/custom_evaluators/sr_evaluator.py", "max_stars_repo_name": "KimNikita/open_model_zoo", "max_stars_repo_head_hexsha": "ae46cb83f046b5429331dec0f9... |
module mod_monolis_mesh
use mod_monolis_prm
use iso_c_binding
implicit none
type monolis_mesh
integer(kint) :: nnode, nnode_in
integer(kint) :: nelem, nelem_in
integer(kint) :: nbase_func
integer(kint), allocatable :: nid(:)
real(kdouble), allocatable :: node(:,:)
integer(kint), allocat... | {"hexsha": "51a7053cd01a3b07fb4aa7027585a7ec4b1ef3b7", "size": 2068, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/util/def_mesh.f90", "max_stars_repo_name": "nqomorita/monolis", "max_stars_repo_head_hexsha": "55d746a480fd7b9639216be19e0a253e6137dfe9", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
subroutine splcon(xlat,xlon,nver,verlat,verlon,verrad,
# ncon,icon,con)
dimension verlat(1)
dimension verlon(1)
dimension verrad(1)
dimension icon(1)
dimension con(1)
c
real*8 dd
real*8 rn
real*8 dr
real*8 xrad
real*8 ver8
rea... | {"hexsha": "bd2b1119f710521992bc1fa0e98914e9a7afb143", "size": 1253, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "s362ani/PROGRAMS/src/splconsngl.f", "max_stars_repo_name": "nmancinelli/ss-precursors", "max_stars_repo_head_hexsha": "f27fbd20fad400fc7de3d95f1b83b831a7cc9487", "max_stars_repo_licenses": ["MIT"]... |
function tests = test_wl_transform
tests = functiontests(localfunctions);
end
function test_fwd_po_wavelet_transform(testCase)
x = [0 5 -3 3 -4 -6 -1 6 1 -7 -2 -7 1 -8 1 -3];
h = spx.wavelet.daubechies.quad_mirror_filter(20);
L = 1;
w = spx.wavelet.transform.forward_periodized_orthogonal(h, x, L);
... | {"author": "indigits", "repo": "sparse-plex", "sha": "43cae2978f62938d001baaa03308a2a717ee6c9b", "save_path": "github-repos/MATLAB/indigits-sparse-plex", "path": "github-repos/MATLAB/indigits-sparse-plex/sparse-plex-43cae2978f62938d001baaa03308a2a717ee6c9b/library/tests/wavelet/test_wl_transform.m"} |
# %% Packages
import os
import sys
sys.path.append(
os.path.join(os.path.join(os.path.dirname(__file__), os.pardir), os.pardir)
)
import pickle
from copy import deepcopy
from distutils.spawn import find_executable
import matplotlib.pyplot as plt
import numpy as np
from homeostatic.definitions import absorption... | {"hexsha": "2ff30642e041dfa49a558b4d446dba10641932e4", "size": 11470, "ext": "py", "lang": "Python", "max_stars_repo_path": "Results/Absorption distribution/AD-plots.py", "max_stars_repo_name": "WolfDanny/Homeostatic_Competition", "max_stars_repo_head_hexsha": "ddc9bbde219585510392f0f0b18849d22eefcae4", "max_stars_repo... |
# Disable TensorFlow warnings
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
from tensorflow.keras.layers import Dense, Flatten, Conv2D, MaxPool2D, UpSampling2D, Reshape, Conv2DTranspose
from tensorflow.keras.backend import flatten as tf_flat
from tensorflow.keras.models import load_model
f... | {"hexsha": "80d8efe5302d7f6282f9557435f05cfff165aac0", "size": 7329, "ext": "py", "lang": "Python", "max_stars_repo_path": "vae.py", "max_stars_repo_name": "danielMonas/VAEriation", "max_stars_repo_head_hexsha": "9ded6b600fdc3e38301f507ed42fe2b9fc63d4e1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "ma... |
[STATEMENT]
lemma d_IN_cmult: "d_IN (\<lambda>e. c * f e) x = c * d_IN f x"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. d_IN (\<lambda>e. c * f e) x = c * d_IN f x
[PROOF STEP]
by(simp add: d_IN_def nn_integral_cmult) | {"llama_tokens": 111, "file": "MFMC_Countable_MFMC_Network", "length": 1} |
# -*- coding: utf-8 -*-
import numpy as np
#Chamada em problemaCubo
#Inicio da função
def funcaoSucessora(estadoAtual,acao):
novoEstado = np.copy(estadoAtual)
#Direita horário
if(acao == 'R'):
novoEstado[0,3] = estadoAtual[6,3]
novoEstado[1,3] = estadoAtual[7,3]
... | {"hexsha": "3417b8934b2433faa9a95f4f47b9ad5b232032eb", "size": 7096, "ext": "py", "lang": "Python", "max_stars_repo_path": "funcaoSucessora.py", "max_stars_repo_name": "saviorabelo/problema-cubo-magico", "max_stars_repo_head_hexsha": "a6b2e1942d9326855c2b42349dda373a87d7a53a", "max_stars_repo_licenses": ["MIT"], "max_s... |
(* Uniqueness of typing for concise syntax. *)
Require config.
Require Import config_tactics.
Require Import syntax.
Require concise_syntax.
Require Import tt.
Require ett ptt.
Require ptt2ett ett2ptt.
Require ptt_admissible.
Require ett_sanity ptt_sanity.
Require concise_inversion.
Require Import tactics config_tact... | {"author": "TheoWinterhalter", "repo": "formal-type-theory", "sha": "93ac197dfde912d77af9b0f4fd9f7d2422ba7dfc", "save_path": "github-repos/coq/TheoWinterhalter-formal-type-theory", "path": "github-repos/coq/TheoWinterhalter-formal-type-theory/formal-type-theory-93ac197dfde912d77af9b0f4fd9f7d2422ba7dfc/src/concise_uniqu... |
module OCCA
include("occapaths.jl");
include("occabuiltwith.jl");
#Flags for which threading libraries to build into OCCA.
USE_OPENMP = OCCA_USE_OPENMP;
USE_PTHREADS = OCCA_USE_PTHREADS;
USE_CUDA = OCCA_USE_CUDA;
USE_OPENCL = OCCA_USE_OPENCL;
thisfile= @__FILE__();
thisdir = dirname(thisfile);
tmpdir = pwd()... | {"hexsha": "f572bfa7ff506c9800ecb399ec7228ec1443137e", "size": 11101, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/OCCA.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/OCCA.jl-2d8a0fbb-4798-5e24-a1ee-cf44ecca4972", "max_stars_repo_head_hexsha": "b3ac60a89a7dc4cb068aedfbbff4912035216526", "max_s... |
"""
======================================
Probabilistic Classifier Chain Example
======================================
An example of :class:`skml.problem_transformation.ProbabilisticClassifierChain`
"""
from sklearn.metrics import hamming_loss
from sklearn.metrics import accuracy_score
from sklearn.metrics import f... | {"hexsha": "91ca286d53e6b2d073c05d459828dbe638dc32b6", "size": 1554, "ext": "py", "lang": "Python", "max_stars_repo_path": "doc/_build/html/_downloads/example_pcc.py", "max_stars_repo_name": "ChristianSch/skml", "max_stars_repo_head_hexsha": "c7166599316e813a726382d507afd8e34f7568dc", "max_stars_repo_licenses": ["MIT"]... |
import networkx as nx
def get_G_from_edges(edges):
edge_dict = dict()
for edge in edges:
edge_key = str(edge[0]) + '_' + str(edge[1])
if edge_key not in edge_dict:
edge_dict[edge_key] = 1
else:
edge_dict[edge_key] += 1
tmp_G = nx.Graph()
for edge_key in ... | {"hexsha": "5bd58a35b5b54b2dfa7bfbba6cdd6ed6c6185d4a", "size": 2557, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/utils.py", "max_stars_repo_name": "awesome-archive/GATNE", "max_stars_repo_head_hexsha": "4ff827b06a1f88ac2b498fa1c37b39ea1649f54d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null... |
import torch
import numpy as np
from transformers import BertModel
import config
import torch.optim as optim
from model import CBT
from utils import focal_loss
from log import logger
from copy import deepcopy
from utils import confusion_matrix,evaluate,find_index
import json
class wrapper(object):
def __init_... | {"hexsha": "2b6867605531ba6f98958660ae7b606ec1c420c8", "size": 12357, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/wrapper.py", "max_stars_repo_name": "OpenNLPhub/CBT4Rel", "max_stars_repo_head_hexsha": "f70f2d5e6e113004f609ddb253c3a44380444584", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "... |
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from . import box_utils, probabilistic_utils, loss_utils
class SigmoidFocalClassificationLoss(nn.Module):
"""
Sigmoid focal cross entropy loss.
"""
def __init__(self, gamma: float = 2.0, alpha: float = 0.25):
... | {"hexsha": "a685994c33721e34753fd6bf338e4a5188d704a8", "size": 16941, "ext": "py", "lang": "Python", "max_stars_repo_path": "pcdet/utils/loss_utils.py", "max_stars_repo_name": "AmirGaniev/thesis_bayesod3d_pointpillars", "max_stars_repo_head_hexsha": "610bb1f22e84d3123199dee05cb31ef3e4ad6a16", "max_stars_repo_licenses":... |
*DECK CNBDI
SUBROUTINE CNBDI (ABE, LDA, N, ML, MU, IPVT, DET)
C***BEGIN PROLOGUE CNBDI
C***PURPOSE Compute the determinant of a band matrix using the factors
C computed by CNBCO or CNBFA.
C***LIBRARY SLATEC
C***CATEGORY D3C2
C***TYPE COMPLEX (SNBDI-S, DNBDI-D, CNBDI-C)
C***KEYWORDS BANDED, D... | {"hexsha": "9a5d7c49221935ad3b5665ca58975a57dc1f9756", "size": 2694, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "slatec/src/cnbdi.f", "max_stars_repo_name": "andremirt/v_cond", "max_stars_repo_head_hexsha": "6b5c364d7cd4243686488b2bd4318be3927e07ea", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count... |
Require Import Arith.
Require Import Omega.
Require Import Psatz.
Require Import kernel_numeric.
Require Import kernel_graph.
(**
Let us define some graphs.
**)
(* Empty graph on [n] vertices *)
Definition Empty (n : nat) : Graph.
Proof.
refine {| V := n ;
E := (fun x y => False)
|} ; auto.
... | {"author": "MitjaR", "repo": "Coq_Graph", "sha": "efe875c6d0eaf2f000598c2fc66f756de1a75b54", "save_path": "github-repos/coq/MitjaR-Coq_Graph", "path": "github-repos/coq/MitjaR-Coq_Graph/Coq_Graph-efe875c6d0eaf2f000598c2fc66f756de1a75b54/graph_examples.v"} |
import pytest
import numpy as np
import gbmc_v0.pad_dump_file as pdf
@pytest.mark.parametrize('rCut, a_x, a_y, b_x, b_y, actual_nx, actual_ny',
[(4.2, 1, 0, 1, 1, 6, 5),
(1, 1, 0, 1, 1, 2, 1)
])
def test_num_rep_2d(rCut, a_x, a_y, b_x, b_y, ... | {"hexsha": "d835a6c4361e4009611291b4a270d67904c61dfe", "size": 531, "ext": "py", "lang": "Python", "max_stars_repo_path": "gbmc_v0/tests/test_num_rep_2d.py", "max_stars_repo_name": "leilakhalili87/gbmc_v0", "max_stars_repo_head_hexsha": "ba8b3da3f93fb09807ed42650ff06aea3fd4e4ba", "max_stars_repo_licenses": ["BSD-3-Clau... |
import numpy as np
import bsplines as bsp
import time
import HyCho_PIC
from pyccel.epyccel import epyccel
pic = epyccel(HyCho_PIC, accelerator='openmp')
print('Pyccelization done!')
# ... parameters
Nel = 1800
p = 3
Lz = 325.
el_b = np.linspace(0., Lz, Nel + 1)
bc = False
Nbase0 = Nel + p -... | {"hexsha": "53c5161eb78a839c3f9bf9886a2327e398675ac8", "size": 2763, "ext": "py", "lang": "Python", "max_stars_repo_path": "02_HybridModelling/HyCho_test_runtime.py", "max_stars_repo_name": "ratnania/mhd", "max_stars_repo_head_hexsha": "89f383695075aa26fc805ffbf6ba458f0cdd6f4e", "max_stars_repo_licenses": ["MIT"], "max... |
#=
disk-phantom.jl
generate random disk phantoms
2019-07-03, Jeff Fessler, University of Michigan
=#
export disk_phantom_params
using Random: seed!
"""
params = disk_phantom_params( ; ...)
Generate `ndisk × 6` ellipse phantom parameters
for a head-sized disk plus many disks within it,
designed so that the disk... | {"hexsha": "fa04555907b840d2456efa1d56edf3750648a029", "size": 3445, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/disk-phantom.jl", "max_stars_repo_name": "EricCheek3731/ImagePhantoms.jl", "max_stars_repo_head_hexsha": "e9d32d41553d634334c939a34d0fd1174ebd4e0d", "max_stars_repo_licenses": ["MIT"], "max_sta... |
[STATEMENT]
lemma emeasure_lborel_Ioc[simp]:
assumes [simp]: "l \<le> u"
shows "emeasure lborel {l <.. u} = ennreal (u - l)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. emeasure lborel {l<..u} = ennreal (u - l)
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. emeasure lborel {l<..u} = en... | {"llama_tokens": 653, "file": null, "length": 8} |
import numpy as np
from Drivers.ImageModelDriver import *
from Drivers.ImageDisplayDriver import *
from Drivers.ReadDriver import *
from Drivers.HistogramModelDriver import *
from Drivers.PlotDriver import *
import cv2
class ImageLesson12:
@staticmethod
def run():
def very_simple(image_sd: SPDImage)... | {"hexsha": "add9f2964b823a5f475f60a2c18cca784bd217af", "size": 2056, "ext": "py", "lang": "Python", "max_stars_repo_path": "lesson12/ImageLesson12.py", "max_stars_repo_name": "Loupehope/spbstu-processing-data", "max_stars_repo_head_hexsha": "f1511d46f01d32db8620f42868b41d3bf6181496", "max_stars_repo_licenses": ["MIT"],... |
import matplotlib.pyplot as plt
from math import pi, cos, sin
import numpy as np
def get_integer(msg="Number: ", wrng_msg="Invalid Input"):
try:
i = int(input(msg))
except ValueError:
print(wrng_msg)
return get_integer(msg, wrng_msg)
else:
return i
def get_fl... | {"hexsha": "71875d2c3eb9934daa5a7ba67ec52559c3d52b18", "size": 10360, "ext": "py", "lang": "Python", "max_stars_repo_path": "matplotlib/codes/Plot anything.py", "max_stars_repo_name": "Kunal-Attri/kunal-attri.github.io", "max_stars_repo_head_hexsha": "b345aa2d633bac7bdbc174e81e3def27c3c81918", "max_stars_repo_licenses"... |
from data_for_tests import Kermany_DataSet
import timm
import wandb
import os
from timm.models.swin_transformer import SwinTransformer
from utils import *
from res_models import *
from model_running import *
from convnext import convnext_base, convnext_large, convnext_xlarge
import numpy as np
import random
from pytorc... | {"hexsha": "887c7900fc0070e244280cac98de477e2d8b5a90", "size": 5099, "ext": "py", "lang": "Python", "max_stars_repo_path": "Visualize_Feature_Space/vit_features_viz.py", "max_stars_repo_name": "Guylu/OCT_Interpretability", "max_stars_repo_head_hexsha": "c0e0107b7ce0204ee16ccd2ec70dfd12411d8c72", "max_stars_repo_license... |
[STATEMENT]
lemma restrict_map_to_empty [simp]: "m|`{} = empty"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. m |` {} = Map.empty
[PROOF STEP]
by (simp add: restrict_map_def) | {"llama_tokens": 76, "file": null, "length": 1} |
import numpy as np
import cv2
img = cv2.imread('ponte.jpg')
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
lap = cv2.Laplacian(img, cv2.CV_64F)
lap = np.uint8(np.absolute(lap))
resultado = np.vstack([img, lap])
cv2.imshow("Filtro Laplaciano", resultado)
cv2.waitKey(0) | {"hexsha": "0ed748570049d84a580d5877d6ae9e04132f791e", "size": 267, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/Atividade31.py", "max_stars_repo_name": "joelee229/OpenCV-Exemplos", "max_stars_repo_head_hexsha": "7ec3cd1949e64926ba8010cfb037207d92631af3", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
# This is a test file to make codecov happy, technically all of the
# tests here are already done / integrated within other tests.
@testset "strings" begin
st = "blah"
@test J.str(st) == "blah"
sst = SubString("blahblah", 1:4)
@test sst == "blah"
@test J.str(sst) == "blahblah"
sst = SubStrin... | {"hexsha": "a99887bc5f659da6ce54ab1807bb6db446c025eb", "size": 3706, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/misc.jl", "max_stars_repo_name": "TotalVerb/JuDoc.jl", "max_stars_repo_head_hexsha": "1dd2525b3b6f27badd52b8ef679fd7d43e1f4f9f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m... |
import cv2
import numpy as np
from plot_one import plot_me_one
import matplotlib.pyplot as plt
import matplotlib as mpl
from scipy.integrate import simps
M_sun=1.989*10**30;
R_sun=696340*10**3;
M=0.62*M_sun
r_star=0.0151*R_sun
G=6.67408*10**(-11);
####
####
#### This code will create the sandbox and allow user to p... | {"hexsha": "f7fed0ca952176ae8d9122861f76d3cb01ccc893", "size": 3520, "ext": "py", "lang": "Python", "max_stars_repo_path": "interactive.py", "max_stars_repo_name": "Zakobian/WD_gas_disk_imaging", "max_stars_repo_head_hexsha": "b8bda209e541b442f44fdb6109de8f2f72ec38cf", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
[STATEMENT]
lemma while_unfold_below_1:
"x = y * x \<Longrightarrow> x \<le> y \<star> 1"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. x = y * x \<Longrightarrow> x \<le> y \<star> (1::'a)
[PROOF STEP]
by (simp add: while_unfold_below_sub) | {"llama_tokens": 106, "file": "Correctness_Algebras_Binary_Iterings_Nonstrict", "length": 1} |
from __future__ import absolute_import, division, print_function, unicode_literals
import numpy
from echomesh.util.registry import Registry
from echomesh.util import Log
LOGGER = Log.logger(__name__)
REGISTRY = Registry.Registry('transforms')
# We define a transform as pair of functions f0, f1 from [0, 1] -> [0, 1... | {"hexsha": "e1f3df389f32c599a74925cf78336177812c58fa", "size": 3408, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/python/echomesh/expression/Transform.py", "max_stars_repo_name": "silky/echomesh", "max_stars_repo_head_hexsha": "2fe5a00a79c215b4aca4083e5252fcdcbd0507aa", "max_stars_repo_licenses": ["MIT"]... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "nftadddialog.h"
#include "forms/ui_nftadddialog.h"
#include "addressbookpage.h"
#include "addresstablemodel.h"
#inc... | {"hexsha": "d54894cbdd4cd8669161876d54a83a1a1e2a31be", "size": 5704, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/qt/nftadddialog.cpp", "max_stars_repo_name": "biblepay/biblepay", "max_stars_repo_head_hexsha": "6af4517c623620f60cabc228cc2f63c35d1beb5b", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
"""Tests for causal inference methods."""
import numpy as np
import pytest
import whynot as wn
from whynot.algorithms import ols, propensity_score_matching, propensity_weighted_ols
def generate_dataset(num_samples, num_features, true_ate=1.0, seed=1234):
"""Generate an observational dataset."""
np.random.see... | {"hexsha": "73b2cc34ec9021cab615e4563b54e488d5561f32", "size": 2117, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_algorithms.py", "max_stars_repo_name": "yoshavit/whynot", "max_stars_repo_head_hexsha": "e33e56bae377b65fe87feac5c6246ae38f4586e8", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
# -*- coding: utf-8 -*-
import csv
import glob
import json
import math
import numpy as np
import os
from scipy.ndimage.filters import gaussian_filter
def createLookup(arr, key):
return dict([(str(item[key]), item) for item in arr])
def distance(p0, p1):
return math.sqrt((p0[0] - p1[0])**2 + (p0[1] - p1[1])**... | {"hexsha": "c547125c23b7df80fd33ab15219f2736a3b593e1", "size": 3722, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib.py", "max_stars_repo_name": "beefoo/subway-inequality-map", "max_stars_repo_head_hexsha": "a0b328d87d547ddea0f856080c3dc0ad40ba50c7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ... |
## evaluation metrics for Gibbs sampler
#include("ntl_gibbs.jl")
function mean_arrival_time_Lp(T_inferred::Vector{Int},T_truth::Vector{Int},p::Real)
"""
Returns mean (normalized by number of elements in `T_inferred`) L^`p` norm
of difference between `T_inferred` and `T_truth`.
"""
if size(T_inferred,1) !... | {"hexsha": "5e69e83b814cf63d4505bca9f375062c0ee15a47", "size": 7604, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "evaluation.jl", "max_stars_repo_name": "emilemathieu/NTL.jl", "max_stars_repo_head_hexsha": "1f5b47bc8dcb09d5c7402346fb98fb5cffa17d84", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4, "ma... |
# visualize the chart of all subject vector mean
# visualize the chart of all subject vector mean removing half row and vector mean
# visualize the chart of all subject vector network-wise mean
import os, time
import numpy as np
import matplotlib.pyplot as plt
# initialize parameters
### work_dir = '/Users/chloe/Docum... | {"hexsha": "5a7094ebc4155ecafeafe4f134e71be6a7c1a538", "size": 5238, "ext": "py", "lang": "Python", "max_stars_repo_path": "visualize/visualize_vector_mean.py", "max_stars_repo_name": "yl3506/iMVPD_dev", "max_stars_repo_head_hexsha": "3e08dbdf45b964a459a7dd1cb2f468c6df72d64b", "max_stars_repo_licenses": ["MIT"], "max_s... |
{-# OPTIONS --without-K --exact-split #-}
module 05-identity-types where
import 04-inductive-types
open 04-inductive-types public
-- Section 5.1
-- Definition 5.1.1
{- We introduce the identity type. -}
data Id {i : Level} {A : UU i} (x : A) : A → UU i where
refl : Id x x
{- In the following definition we give... | {"hexsha": "38ab03b1d54a573dbe12eac1de6edf820fed992d", "size": 27492, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "Agda/05-identity-types.agda", "max_stars_repo_name": "hemangandhi/HoTT-Intro", "max_stars_repo_head_hexsha": "09c710bf9c31ba88be144cc950bd7bc19c22a934", "max_stars_repo_licenses": ["CC-BY-4.0"], ... |
import logging
import os
import shutil
from pathlib import Path
import sox
from numpy.core.multiarray import ndarray
from wasabi import msg
from pypefx.commandrunner import CommandRunner
class Payload:
def __init__(self, input_file: str = None):
self.sample_rate = 44100
if input_file:
... | {"hexsha": "9a6a6fcb93d9b18bb647f1041295c96cfbd6567d", "size": 1692, "ext": "py", "lang": "Python", "max_stars_repo_path": "pypefx/payload.py", "max_stars_repo_name": "giftmischer69/squash", "max_stars_repo_head_hexsha": "78ce87bf42911b5065e02d9622137a613bc78634", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
import numpy as np
import pytest
from ..shear_bias_meas import (
measure_shear_metadetect, estimate_m_and_c,
estimate_m_and_c_patch_avg)
def test_measure_shear_metadetect_smoke():
dtype = [('flags', 'i4'), ('wmom_g', 'f4', (2,)),
('wmom_s2n', 'f4'), ('wmom_T_ratio', 'f4'), ('ormask', 'i4')]
... | {"hexsha": "fd107c2da7b904339edb0406a2c83b2ca10efada", "size": 8850, "ext": "py", "lang": "Python", "max_stars_repo_path": "coadd_mdetsims/tests/test_shear_bias_meas.py", "max_stars_repo_name": "beckermr/metadetect-coadding-sims", "max_stars_repo_head_hexsha": "15ccaec353aa61c69ac9d78d1dfca8ce25bca3cf", "max_stars_repo... |
#include <boost/intrusive/pointer_traits.hpp>
| {"hexsha": "a657bbb48d28223ee6ec846de9ce55226e80edc7", "size": 46, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/boost_intrusive_pointer_traits.hpp", "max_stars_repo_name": "miathedev/BoostForArduino", "max_stars_repo_head_hexsha": "919621dcd0c157094bed4df752b583ba6ea6409e", "max_stars_repo_licenses": ["BSL-... |
"""Specific Caffe scope used to import weights from a .caffemodel file.
The idea is to create special initializers loading weights from protobuf
.caffemodel files.
"""
import caffe
from caffe.proto import caffe_pb2
import numpy as np
import tensorflow as tf
slim = tf.contrib.slim
class CaffeScope(obj... | {"hexsha": "2a28f0425e84c6f1cce6ba0942fdc9e2a5034b12", "size": 3668, "ext": "py", "lang": "Python", "max_stars_repo_path": "object_detection/nets/caffe_scope.py", "max_stars_repo_name": "OSSDC/OSSDC-VisionBasedACC", "max_stars_repo_head_hexsha": "a9004c888e91b8becaebc22524f698ebb3c9746e", "max_stars_repo_licenses": ["A... |
#include "MyApp.h"
#include <errno.h>
#include <signal.h>
#include <sys/epoll.h>
#include <iostream>
#include <boost/program_options.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <boost/system/error_code.hpp>
#include <boost/filesystem.hpp>
#include <boost/log/trivial.hpp>
... | {"hexsha": "4cbffdfa0c804a9f7a34e89f2e4f680481b7967e", "size": 14053, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "myframe/MyApp.cpp", "max_stars_repo_name": "lkpworkspace/myframe", "max_stars_repo_head_hexsha": "45efbfbf8184f371c693321f18e9cd9c42ee1b7b", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 4... |
import numpy as np
import matplotlib.pyplot as plt
import palette
from palette import pc
import sys
deltas = ["1.25", "2.5", "5", "10", "20"]
colors = [pc("k"), pc("r"), pc("o"), pc("b"), pc("p")]
def mvir_to_rvir(mvir):
return 0.4459216 * (mvir/1e13)**(1.0/3)
def mvir_to_vvir(mvir):
return 310.6 * (mvir/1e1... | {"hexsha": "4d4a96f57053f2186c754eb2298524f07c10c672", "size": 6757, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/plot_profiles.py", "max_stars_repo_name": "phil-mansfield/guppy", "max_stars_repo_head_hexsha": "5394d20b83912cd072a358c38bae18a06853f419", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
import os
import numpy as np
import pandas as pd
from keras.models import load_model
from sklearn.metrics import confusion_matrix
from autoencoder_training import get_training_loss
import argparse
import sys
import plotly.express
pd.options.plotting.backend = "plotly"
def load_data(file_name):
df = pd.read_csv(o... | {"hexsha": "7b8ebf7aed32bca9b25d3d85cc10ce2ac4cc1769", "size": 2601, "ext": "py", "lang": "Python", "max_stars_repo_path": "dense_autoencoder/autoencoder_testing.py", "max_stars_repo_name": "pawelptak/AI-Anomaly-Detection", "max_stars_repo_head_hexsha": "0d3e6072e273d6cc59ba79d5f8c73f393d1ec4e5", "max_stars_repo_licens... |
!
! Spectral_Units_Conversion
!
! Module containing functions to convert between various spectral units.
!
!
! CREATION HISTORY:
! Written by: Paul van Delst, 14-Jan-2002
! paul.vandelst@noaa.gov
!
!
MODULE Spectral_Units_Conversion
! -----------------
! Environment setup
! -----... | {"hexsha": "f248de4e6934c10fad0ab073703fb84af4f7c36a", "size": 9157, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "NCEP_crtm/Spectral_Units_Conversion.f90", "max_stars_repo_name": "GEOS-ESM/NCEP_Shared", "max_stars_repo_head_hexsha": "6f8b2103d3ce8f1b829bff88b71ca4482b4a56a4", "max_stars_repo_licenses": ["NA... |
"""
`SatResample` -- conventiently resample satellite data to common local grids.
"""
module SatResample
# Write your package code here.
using Proj4
using NearestNeighbors
using Statistics
using StaticArrays
include("sample_grids.jl")
"""
resample(mx, my, data, xgrid, ygrid, maxdist, nneighbors)
returns unstructur... | {"hexsha": "33896d91ec3a26c93d2926dc5382e4f68853bc61", "size": 4020, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/SatResample.jl", "max_stars_repo_name": "mapclyps/SatResample.jl", "max_stars_repo_head_hexsha": "349b5ba6939591b7ce77b0d661ab6b1b42b98b89", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
#!/usr/bin/env python
import pandas as pd
import numpy as np
import torch as th
import torch.nn as nn
from torch.autograd import Variable as V
from torch.utils.data import DataLoader
from torchvision import transforms
from torchvision.datasets import ImageFolder
from torchvision.models import resnet34
import torch.nn... | {"hexsha": "6c2e55d28421dabf212c595074e806bd394939d5", "size": 2031, "ext": "py", "lang": "Python", "max_stars_repo_path": "submit.py", "max_stars_repo_name": "seba-1511/cervix.kaggle", "max_stars_repo_head_hexsha": "5bf956a85481a961fb9af237aba2d2254cf6921a", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count"... |
SUBROUTINE DG01ND( INDI, N, XR, XI, INFO )
C
C SLICOT RELEASE 5.7.
C
C Copyright (c) 2002-2020 NICONET e.V.
C
C PURPOSE
C
C To compute the discrete Fourier transform, or inverse Fourier
C transform, of a real signal.
C
C ARGUMENTS
C
C Mode Parameters
C
C INDI CHARACTER*1
C ... | {"hexsha": "6e4277250dae4948f66b498adbe13b2583ce724e", "size": 7916, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/DG01ND.f", "max_stars_repo_name": "bnavigator/SLICOT-Reference", "max_stars_repo_head_hexsha": "7b96b6470ee0eaf75519a612d15d5e3e2857407d", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta... |
# Implementation of the "bwsj" method, from
# Sheather and Jones, "A Reliable Data-based Bandwidth Selection Method for Kernel Density Estimation"
# Notation below follows roughly the notation in the paper.
struct Block
depth::Int
k1::Int
k2::Int
lb::Float64
ub::Float64
end
Base.isless(b1::Block,b2::Block) = is... | {"hexsha": "d894f6640fb7de0f12a9f14366bbad16839f0239", "size": 6435, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/bwsj.jl", "max_stars_repo_name": "rasmushenningsson/KernelDensitySJ.jl", "max_stars_repo_head_hexsha": "ce4b839e7c2595dc0fa087ecbd1a6518af371f9e", "max_stars_repo_licenses": ["MIT"], "max_stars... |
from pathlib import Path
from Cython.Distutils import build_ext
from Cython.Build import cythonize
import numpy
# from setuptools import setup, Extension
from distutils.core import setup, Extension
c_ext = Extension('cext_acv', sources=['acv_explainers/cext_acv/_cext.cc'])
cy_ext = Extension('cyext_acv', ['acv_explain... | {"hexsha": "70e9b08994320e283598561f819ed312470639a2", "size": 1883, "ext": "py", "lang": "Python", "max_stars_repo_path": "setup.py", "max_stars_repo_name": "aistats2022exp/AccurateShapleyValues", "max_stars_repo_head_hexsha": "6662264f6ab9b07dc276d749a154174ddf04601c", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
import copy
import numpy as np
from spysort.functions import convolution, cut_sgl_evt
from spysort.Events import events
class align_events(events.build_events):
""" Alignment of spike forms after clustering using a Brute-Force method"""
def __init__(self, data, positions, goodEvts, clusters, CSize, win=[],
... | {"hexsha": "36e240dd2c6b62a83b306defd66ba0ebc961a7b6", "size": 16262, "ext": "py", "lang": "Python", "max_stars_repo_path": "spysort/Events/alignment.py", "max_stars_repo_name": "mgraupe/SPySort", "max_stars_repo_head_hexsha": "da0f1710bd7dfe0881e1ded18052e868f151aec9", "max_stars_repo_licenses": ["BSD-3-Clause"], "max... |
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 3 18:22:42 2017
@author: Administrator
"""
import dlib
import cv2
import numpy as np
from sklearn import preprocessing, cross_validation, neighbors, svm
import os
import csv
import pathAttributes
import shutil as su
import time
import glob
#ap = argpars... | {"hexsha": "c380656e6d5a7d91297d0493c37545bc14080169", "size": 4137, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/dataGeneration.py", "max_stars_repo_name": "lizenan/Face-Recognition", "max_stars_repo_head_hexsha": "b0a7ce630cd93e111ae4b204bc7b466c74084d7d", "max_stars_repo_licenses": ["Unlicense"], "max_... |
"""Bla."""
import tempfile
import subprocess
import time
import os
import sys
import zipfile
from copy import deepcopy
import numpy as np
from Bio.Blast import NCBIXML
from Bio.Seq import Seq
from Bio import SeqIO
from Bio.SeqFeature import SeqFeature, FeatureLocation
PYTHON3 = (sys.version_info[0] == 3)
if PYTHON3:... | {"hexsha": "9009e77343a3d2f11b9d66ae8ece0cfabfc27560", "size": 10097, "ext": "py", "lang": "Python", "max_stars_repo_path": "primavera/biotools.py", "max_stars_repo_name": "Edinburgh-Genome-Foundry/Primavera", "max_stars_repo_head_hexsha": "b9c9fcb23de452b1b0ad34059fdf205489483258", "max_stars_repo_licenses": ["MIT"], ... |
C Derived from muller01.f
C Used to debug the translation of OUT effects through a loop
C
C The print region is A, but under the condition I=11
C
C If the loop transformer used indicates 1<=I<=10, the application
C of the reverse transformer leads to an empty OUT region for the loop
SUBROUTI... | {"hexsha": "0addc694793944ff72be152b53963081b748cacf", "size": 433, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "packages/PIPS/validation/Regions/Old.sub/muller03.f", "max_stars_repo_name": "DVSR1966/par4all", "max_stars_repo_head_hexsha": "86b33ca9da736e832b568c5637a2381f360f1996", "max_stars_repo_licenses":... |
[STATEMENT]
lemma ereal_less_eq[simp]:
"x \<le> (\<infinity>::ereal)"
"-(\<infinity>::ereal) \<le> x"
"ereal r \<le> ereal p \<longleftrightarrow> r \<le> p"
"ereal r \<le> 0 \<longleftrightarrow> r \<le> 0"
"0 \<le> ereal r \<longleftrightarrow> 0 \<le> r"
"ereal r \<le> 1 \<longleftrightarrow> r \<le> 1"
... | {"llama_tokens": 343, "file": null, "length": 1} |
# These tests have been adapted from Criterim clojure library
facts("outlier effect") do
C = Criterion
@fact C.outlier_effect(0.009) => C.Unaffected()
@fact C.outlier_effect(0.09) => C.Slight()
@fact C.outlier_effect(0.45) => C.Moderate()
@fact C.outlier_effect(0.51) => C.Severe()
end
facts("ou... | {"hexsha": "3c209de3896b5859f9587646bbd03db0a8e4092f", "size": 1169, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/analysis.jl", "max_stars_repo_name": "jakebolewski/Criterion.jl", "max_stars_repo_head_hexsha": "3dceaf12d1af4a3e7afc63bb9b9bd0b2827e9d3f", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
import os
""" First change the following directory link to where all input files do exist """
os.chdir("D:\\Book writing\\Codes\\Chapter 2")
import numpy as np
import pandas as pd
import statsmodels.api as sm
import matplotlib.pyplot as plt
import seaborn as sns
#from sklearn.model_selection import train_test_sp... | {"hexsha": "7d5eebca42e0c56965379162e7188765443fa5e9", "size": 6222, "ext": "py", "lang": "Python", "max_stars_repo_path": "Module 1/Sample Code/Chapter02/Chapter 02_Parallelism of Statistics and Machine Learning.py", "max_stars_repo_name": "PacktPublishing/-Numerical-Computing-with-Python", "max_stars_repo_head_hexsha... |
\subsection{Work program incl. proposed research methods}
Maybe give a short introduction.
\begin{figure}[t]
\centering
\includegraphics[width=\columnwidth]{figures/workplan}
\caption{\vspace{-2pt}Project structure}
\label{fig:project_structure}
\vspace{-10pt}
\end{figure}
\subsubsection{Work Packages}
... | {"hexsha": "dc93551a49bc810dde3b45371f5f9deb0f0f3312", "size": 481, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "21_work.tex", "max_stars_repo_name": "jmjos/dfg-research-grant-proposal-template", "max_stars_repo_head_hexsha": "bc08bd5cb2ae5b2910c69fe49a9899d595bd5e34", "max_stars_repo_licenses": ["MIT"], "max_s... |
from ch import ConvexH
import numpy as np
# example 1:
points = np.load(r'examples\example_1.npy')
ConvexH(points).plot(file=r'outputs\plot1_noraml',rnd=1)
# example 2:
points = np.load(r'examples\example_2.npy')
ConvexH(points).plot(file=r'outputs\plot2_circle',rnd=1)
# example 3:
points = np.load(r'exa... | {"hexsha": "fe24edc047d5fe53e26075f2a50ed069035b1ae4", "size": 517, "ext": "py", "lang": "Python", "max_stars_repo_path": "implementation.py", "max_stars_repo_name": "EtzionR/My-Convex-Hull", "max_stars_repo_head_hexsha": "5b2f759a832c90c86f20318a95e008bfc990e187", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
import unittest
import numpy as np
from math import isclose
from pfoil import airfoil
from pfoil import visc
TOL = 1E-1 # this should be 1E-10...
class test_naca0012(unittest.TestCase):
# validate against naca0012
# * this geometry includes a trailing edge gap (sharp = false)
# * values we're pulled from ... | {"hexsha": "9b173300b48158fccf1eed5278accdb036d644cc", "size": 1019, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_main.py", "max_stars_repo_name": "nathanrooy/PFOIL", "max_stars_repo_head_hexsha": "bd827c89f865822d3c0c95e1fee3b6a47695ab5c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul... |
"""
Copyright 2017 Robin Verschueren
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... | {"hexsha": "58187d36734888f3699a54c5731abdf08811185f", "size": 1957, "ext": "py", "lang": "Python", "max_stars_repo_path": "cvxpy/reductions/qp2quad_form/qp2symbolic_qp.py", "max_stars_repo_name": "Hennich/cvxpy", "max_stars_repo_head_hexsha": "4dfd6d69ace76abf57d8b1d63db0556dee96e24f", "max_stars_repo_licenses": ["ECL... |
//N0680337
#include <boost/test/unit_test.hpp>
#include <boost/test/floating_point_comparison.hpp>
#include "logs.h"
#include "route.h"
#include "track.h"
using namespace GPS;
BOOST_AUTO_TEST_SUITE( Route_maxLongitude )
const bool isFileName = true;
// More test details in DesignOfUnitTests.pdf
// Used boost check ... | {"hexsha": "bbc1017722da798b2d19611023d7a7c94af101c5", "size": 2688, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/gpx-tests/MaxLong-N0680337.cpp", "max_stars_repo_name": "EdwinLangley/GPX-Route-and-Track", "max_stars_repo_head_hexsha": "e4de303c62c7e9dc92724e8f257f7960ff77c992", "max_stars_repo_licenses": [... |
import matplotlib.pyplot as plt
import numpy as np
import glob
import sys
from pathlib import Path
import json
############## USAGE
# You should be in actiongeneral/python/results when running the script
# python3 ../plot_scripts/plot_agent.py ../jsonfiles/environment/Pendulum-v0.json mergedDIR NUM_SETTINGS A... | {"hexsha": "d776bb616adf1efa22f8010845790263a0ffd6d2", "size": 7763, "ext": "py", "lang": "Python", "max_stars_repo_path": "plot_scripts/deprecated_scripts/plot_agent.py", "max_stars_repo_name": "samuelfneumann/RLControl", "max_stars_repo_head_hexsha": "71430b1de2e4262483908932eb44579c2ec8216d", "max_stars_repo_license... |
// Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#include <hadesmem/pelib/import_dir_list.hpp>
#include <hadesmem/pelib/import_dir_list.hpp>
#include <sstream>
#include <utility>
#include <hadesmem/detail/warning_disable_prefix.hpp>
#include <boost/detail/lightweight_... | {"hexsha": "a0465a9a1aa58a44df5b255929d34c5eae0972a1", "size": 5860, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/pelib/import_dir_list.cpp", "max_stars_repo_name": "phlip9/hadesmem", "max_stars_repo_head_hexsha": "59e13a92c05918b8c842141fd5cac1ed390cd79e", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
# Author: Yin Cheng Ng
from ggp.utils import *
from ggp.kernels import SparseGraphPolynomial
from ggp.model import GraphSVGP
from scipy.cluster.vq import kmeans2
import numpy as np
import os, time, pickle, argparse
class ALExperiment(object):
def __init__(self, data_name, random_seed):
self.data_name = da... | {"hexsha": "83041ab2fad3053967628522ef78830d1c884b58", "size": 4646, "ext": "py", "lang": "Python", "max_stars_repo_path": "al_exp.py", "max_stars_repo_name": "yincheng/GGP", "max_stars_repo_head_hexsha": "da45ad6485f29fa065329aae18625769a4de86aa", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 48, "max_... |
# Copyright (C) 2020 Cancer Care Associates and Simon Biggs
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable l... | {"hexsha": "78b20e17c10c1d9cfc510ff05837b6b04314219d", "size": 6212, "ext": "py", "lang": "Python", "max_stars_repo_path": "lib/pymedphys/_experimental/streamlit/utilities/iview/_angles.py", "max_stars_repo_name": "dg1an3/pymedphys", "max_stars_repo_head_hexsha": "bdca9c783aae8b5e1f231e6cb0bc69895e4b9329", "max_stars_r... |
# Distributed under the MIT License.
# See LICENSE.txt for details.
import numpy as np
def dg_package_data_char_speed_v_spacetime_metric(spacetime_metric, pi, phi,
constraint_gamma1,
constraint_gamma2, lapse,
... | {"hexsha": "3cdf54c2646c0b4144892b23d8a922bb31d405d9", "size": 8642, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/Unit/Evolution/Systems/GeneralizedHarmonic/BoundaryCorrections/UpwindPenalty.py", "max_stars_repo_name": "nilsvu/spectre", "max_stars_repo_head_hexsha": "1455b9a8d7e92db8ad600c66f54795c29c30... |
{- Byzantine Fault Tolerant Consensus Verification in Agda, version 0.9.
Copyright (c) 2020, 2021, Oracle and/or its affiliates.
Licensed under the Universal Permissive License v 1.0 as shown at https://opensource.oracle.com/licenses/upl
-}
open import LibraBFT.ImplShared.Base.Types
open import LibraBFT.Abstra... | {"hexsha": "167782ff7f6674e5333ee98093fc1f28435b5975", "size": 25587, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "src/LibraBFT/Concrete/Properties/PreferredRound.agda", "max_stars_repo_name": "LaudateCorpus1/bft-consensus-agda", "max_stars_repo_head_hexsha": "a4674fc473f2457fd3fe5123af48253cfb2404ef", "max_s... |
program x
call random_seed(i
!'
*)
print *,'ok'
end program x
| {"hexsha": "039849b23738db881775885853360c28427b473f", "size": 91, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "tests/t0351x/t.f", "max_stars_repo_name": "maddenp/ppp", "max_stars_repo_head_hexsha": "81956c0fc66ff742531817ac9028c4df940cc13e", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 2, "m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.