text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
module a
implicit none
contains
integer function b()
integer e
print *, "b()"
e = d()
b = 0
contains
integer function d()
print *, "d()"
d = 1
end function d
end function b
end module
program nested_01
use a, only: b
implicit none
integer c
c = b()
end
| {"hexsha": "3e67ba51cf50756979b476b7629a34ed036071d6", "size": 282, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "integration_tests/nested_01.f90", "max_stars_repo_name": "Thirumalai-Shaktivel/lfortran", "max_stars_repo_head_hexsha": "bb39faf1094b028351d5aefe27d64ee69302300a", "max_stars_repo_licenses": ["BS... |
#include <IO/CompressionMethod.h>
#include <IO/BrotliReadBuffer.h>
#include <IO/BrotliWriteBuffer.h>
#include <IO/LZMADeflatingWriteBuffer.h>
#include <IO/LZMAInflatingReadBuffer.h>
#include <IO/ReadBuffer.h>
#include <IO/WriteBuffer.h>
#include <IO/ZlibDeflatingWriteBuffer.h>
#include <IO/ZlibInflatingReadBuffer.h>
#... | {"hexsha": "f6daec78170b90413f48f93d336b296faa2a8718", "size": 6109, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/IO/CompressionMethod.cpp", "max_stars_repo_name": "chalice19/ClickHouse", "max_stars_repo_head_hexsha": "2f38e7bc5c2113935ab86260439bb543a1737291", "max_stars_repo_licenses": ["Apache-2.0"], "ma... |
import numpy as np
import matplotlib.pyplot as plt
import matplotlib as mpl
import matplotlib.gridspec as gridspec
import seaborn
#import yt
import pyPLUTO as pp
from astropy.io import ascii
import os
import sys
from ipywidgets import interactive, widgets,fixed
from IPython.display import Audio, display
import matplotl... | {"hexsha": "81a410a1f1f998965d5c3eb8393bfae4145fd77b", "size": 14430, "ext": "py", "lang": "Python", "max_stars_repo_path": "Notebooks/f.py", "max_stars_repo_name": "Mixpap/MasterThesis", "max_stars_repo_head_hexsha": "c063656d1b238dbbbc89d6bec6672d10612bf6ee", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ... |
[STATEMENT]
lemma esqrt_mono:
"mono esqrt"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. mono esqrt
[PROOF STEP]
unfolding esqrt_def mono_def
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<forall>x y. x \<le> y \<longrightarrow> enn2ereal (ennsqrt (e2ennreal x)) \<le> enn2ereal (ennsqrt (e2ennreal y))
[PROOF... | {"llama_tokens": 167, "file": "Gromov_Hyperbolicity_Eexp_Eln", "length": 2} |
/-
https://leanprover.zulipchat.com/#narrow/stream/113489-new-members/topic/Types.20that.20should.20be.20equal
https://gist.github.com/adamtopaz/84315ae5b11319013707b2d0804fb37e
-/
import algebra.algebra.basic
import linear_algebra
variables (R : Type*) [comm_ring R]
variables (M : Type*) [add_comm_group M] [module R... | {"author": "utensil", "repo": "lean-playground", "sha": "77dc2dd18ea1498c766e09c3e488c2f9d3069ba6", "save_path": "github-repos/lean/utensil-lean-playground", "path": "github-repos/lean/utensil-lean-playground/lean-playground-77dc2dd18ea1498c766e09c3e488c2f9d3069ba6/lean3/src/zulip/tensoralg.lean"} |
import numpy as np
import time
import gc
import pandas as pd
import torch
from torch_geometric.data import Data, DataLoader
import Networks
import envs.exploration_env as robot
import matplotlib.pyplot as plt
# define testing parameters
map_size = 40 # 40, 60, 80, 100
TEST = True
PLOT = True # save testing date if F... | {"hexsha": "21c1f50edd5c8b3a2e6a7466347ab101801a140d", "size": 7051, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/test.py", "max_stars_repo_name": "NamDinhRobotics/DRL_graph_exploration", "max_stars_repo_head_hexsha": "0d7dbb044c01dba91fca200ab66ec7f185e26329", "max_stars_repo_licenses": ["BSD-3-Claus... |
import base64
from datetime import datetime
import os
from pathlib import Path
from random import choice
from urllib.parse import quote as urlquote
import dash
import dash_core_components as dcc
import dash_html_components as html
# ------------------------------------------------------------
# Useful functions
# ----... | {"hexsha": "72ebe517c80eb2cdd23025f7d17e7b2e06e46c60", "size": 16258, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/main.py", "max_stars_repo_name": "bbchond/user-activity-generator", "max_stars_repo_head_hexsha": "d8b75b10a194f9526b5553d750196188600d9816", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
"""
Standard Scaler that supports NaN values.
:author:
Alexandre Gramfort <alexandre.gramfort@inria.fr>
Mathieu Blondel <mathieu@mblondel.org>
Olivier Grisel <olivier.grisel@ensta.org>
Andreas Mueller <amueller@ais.uni-bonn.de>
Eric Martin <eric@ericmart.in>
Giorgio Patrini <giorgio.patrini@anu... | {"hexsha": "49e03f86a18f932e2107dfc14fad2dcf9e311559", "size": 14854, "ext": "py", "lang": "Python", "max_stars_repo_path": "skanalytics/engineering/preprocessing/nanscale.py", "max_stars_repo_name": "jimmyskull/skanalytics", "max_stars_repo_head_hexsha": "1027bf3648b65b96a69bbf2d42e591cc9f76fe76", "max_stars_repo_lice... |
#!/usr/bin/env python3
import numpy as np
input = open("6.in","r")
inputContents = input.readlines()
points = dict()
area = 0
def distance(p1, p2):
return abs(p1[0] - p2[0]) + abs(p1[1] - p2[1])
for point in inputContents:
points[tuple([int(c) for c in point.split(", ")])] = 0
# find bounding box for searc... | {"hexsha": "e5583e96e52fc144b7bf5a0c01ecb7b05a4e1065", "size": 1028, "ext": "py", "lang": "Python", "max_stars_repo_path": "2018/day_06/6_2.py", "max_stars_repo_name": "sunjerry019/adventOfCode18", "max_stars_repo_head_hexsha": "6970ece25e54b9f90c4aadd1a5d8569bd32f403b", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
function data = LoadBinary(filename,varargin)
%LoadBinary - Load data from a multiplexed binary file.
%
% Reading a subset of the data can be done in two different manners: either
% by specifying start time and duration (more intuitive), or by indicating
% the position and size of the subset in terms of number of s... | {"author": "buzsakilab", "repo": "buzcode", "sha": "2d700a38b3c2a860ad1333be90f14d7a37a72815", "save_path": "github-repos/MATLAB/buzsakilab-buzcode", "path": "github-repos/MATLAB/buzsakilab-buzcode/buzcode-2d700a38b3c2a860ad1333be90f14d7a37a72815/externalPackages/FMAToolbox/IO/LoadBinary.m"} |
\mainsection{Introduction}\label{sec:introduction}
The SCALE system consists of three main sub-systems:
An offline phase, an online phase and a compiler.
Unlike the earlier SPDZ system, in SCALE the online
and offline phases are fully integrated. Thus you
can no longer time just the online phase, or just
the offline... | {"hexsha": "fc2370d61cf0ee2837d9f2aa0bf45f06775a3a0a", "size": 7306, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Documentation/Introduction.tex", "max_stars_repo_name": "vlaskinvlad/SCALE-MAMBA", "max_stars_repo_head_hexsha": "7d318088bfe9110e50b22d7155b9f1775ef3df80", "max_stars_repo_licenses": ["BSD-2-Clause... |
// kate: replace-tabs off; indent-width 4; indent-mode normal
// vim: ts=4:sw=4:noexpandtab
/*
Copyright (c) 2010--2018,
François Pomerleau and Stephane Magnenat, ASL, ETHZ, Switzerland
You can contact the authors at <f dot pomerleau at gmail dot com> and
<stephane at magnenat dot net>
All rights reserved.
Redistrib... | {"hexsha": "e4277184f89b5c60a5a1e7d03ab9eb3279aee4ad", "size": 7218, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "pointmatcher/DataPointsFilters/RemoveSensorBias.cpp", "max_stars_repo_name": "skn123/libpointmatcher", "max_stars_repo_head_hexsha": "3464af6f218578e7b3053c89fa6661399952b0d1", "max_stars_repo_licen... |
from flask import Flask, render_template, request, send_from_directory
from flask_ngrok import run_with_ngrok
import cv2
import tensorflow as tf
from tensorflow.keras.models import load_model
import numpy as np
import os
import shutil
import webbrowser
from threading import Timer
physical_devices = tf.config.experimen... | {"hexsha": "878616e1b2f157c52bcdade8216c4ce392addf52", "size": 3611, "ext": "py", "lang": "Python", "max_stars_repo_path": "app.py", "max_stars_repo_name": "sudo-rajarshi/Arogyam", "max_stars_repo_head_hexsha": "b2e950d02806f17a0f84557d9066d5a045276177", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7, "max_st... |
Require Import Crypto.Arithmetic.PrimeFieldTheorems.
Require Import Crypto.Specific.solinas32_2e452m3_17limbs.Synthesis.
(* TODO : change this to field once field isomorphism happens *)
Definition freeze :
{ freeze : feBW_tight -> feBW_limbwidths
| forall a, phiBW_limbwidths (freeze a) = phiBW_tight a }.
Proof.
... | {"author": "anonymous-code-submission-01", "repo": "sp2019-54-code", "sha": "8867f5bed0821415ec99f593b1d61f715ed4f789", "save_path": "github-repos/coq/anonymous-code-submission-01-sp2019-54-code", "path": "github-repos/coq/anonymous-code-submission-01-sp2019-54-code/sp2019-54-code-8867f5bed0821415ec99f593b1d61f715ed4f7... |
# +
import networkx as nx
from graphilp.imports import networkx as nx_imp
from graphilp.matching import perfect_bipartite as bm
def test_perfect_bipartite():
# create graph instance
G = nx.complete_bipartite_graph(4, 4)
G.add_weighted_edges_from([(0, 6, 2), (1, 4, 2), (2, 5, 2), (3, 7, 2)])
optG ... | {"hexsha": "c6bc68a3e7a94ec2399b53c01397d0605665b87c", "size": 598, "ext": "py", "lang": "Python", "max_stars_repo_path": "graphilp/tests/matching/test_perfect_bipartite.py", "max_stars_repo_name": "VF-DE-CDS/GraphILP-API", "max_stars_repo_head_hexsha": "841b80256f06b5dfc9f3bd4e514f1e24fb82b6ce", "max_stars_repo_licens... |
from abc import ABC, abstractmethod
import numpy as np
import pandas as pd
from okama.data import QueryData
from okama.helpers import Float, Frame, Date
from okama.settings import default_macro
_MONTHS_PER_YEAR = 12
class MacroABC(ABC):
# in other places first_date is 1913-01-01
def __init__(self, symbol: ... | {"hexsha": "0b612e06e45e22a5464a451a98e25c8ef68b9663", "size": 7606, "ext": "py", "lang": "Python", "max_stars_repo_path": "okama/macro.py", "max_stars_repo_name": "avpak/okama", "max_stars_repo_head_hexsha": "b3c4f6b7dfcc314d3171f20b3bc95cfa04268c1a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_s... |
[STATEMENT]
lemma same_diag_ev_blocks: "same_diag A B \<Longrightarrow> ev_blocks A \<Longrightarrow> ev_blocks B"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<lbrakk>local.same_diag A B; local.ev_blocks A\<rbrakk> \<Longrightarrow> local.ev_blocks B
[PROOF STEP]
unfolding same_diag_def ev_blocks_def ev_blocks_p... | {"llama_tokens": 317, "file": "Jordan_Normal_Form_Jordan_Normal_Form_Existence", "length": 2} |
program test_cost
use sysdyn
use adjoint
implicit none
real(dp), parameter :: epsilon = 1.0D-4
logical Zexist,default
integer iu,iter,step,nsteps,cycle,ncycles,i,j
integer, dimension(NVE) :: Iobs
real(dp), dimension(NVE) :: xo... | {"hexsha": "c43349dcb9f7cc2bc1764048ad9e44e9f29e7693", "size": 4926, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/4dvar/test_cost.f90", "max_stars_repo_name": "quimbp/system_dynamics", "max_stars_repo_head_hexsha": "366339d9f6fea2e4242f8a73b700f8ea0af07797", "max_stars_repo_licenses": ["MIT"], "max_star... |
try:
from cv2 import cv2
except ImportError:
import sys
ros_path = '/opt/ros/kinetic/lib/python2.7/dist-packages'
sys.path.remove(ros_path)
from cv2 import cv2
print(cv2.__version__)
sys.path.append(ros_path)
import numpy as np
import time
import geometry_msgs.msg
from geometry_msgs.msg im... | {"hexsha": "49707eaa6b3809d9e2e45dfe3cbfeb959fddc0a6", "size": 13647, "ext": "py", "lang": "Python", "max_stars_repo_path": "yolo_tiny/main_yolo.py", "max_stars_repo_name": "GeXu66/DIP-cone", "max_stars_repo_head_hexsha": "240ff5e1b8d2f5c19411b94e25868400ce05bc21", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
# ENPM661 Project 3 Phase 2
# Shelly Bagchi & Omololu Makinde
import math
import time
import numpy as np
from matplotlib.path import Path
from matplotlib.patches import PathPatch
from matplotlib.patches import Ellipse
import matplotlib.pyplot as plt
w = int(10.2)
h = 10
w_radius=int(0.1)
sep_dis=1
def convert_RPM_... | {"hexsha": "5d62ab7bb1363b472bbf3b003f8839a6bd1805b2", "size": 13621, "ext": "py", "lang": "Python", "max_stars_repo_path": "Old Phase 3 Files/proj3_groupnumber_simulationSoftware.py", "max_stars_repo_name": "shllybkwrm/enpm661-p3", "max_stars_repo_head_hexsha": "98cd05ee7d478ed1a968f098318a1e78edc67236", "max_stars_re... |
"""
Generate a large batch of image samples from a model and save them as a large
numpy array. This can be used to produce samples for FID evaluation.
"""
import argparse
import os, time
os.environ["CUDA_VISIBLE_DEVICES"] = "6"
os.environ['OPENAI_LOGDIR'] = 'logs_test_2e-5'
if not os.path.exists(os.environ['OPENAI_L... | {"hexsha": "c6ab22d797b29b407bc5a43d52060f9109dfdee8", "size": 3194, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/kernel_sample.py", "max_stars_repo_name": "Khanhnn00/kernel-prior-diffusion", "max_stars_repo_head_hexsha": "6f38d3a645c5f6a2b33b8ab60b6f15a12bf245dd", "max_stars_repo_licenses": ["MIT"], ... |
#%%
# have to run some code in descending_categorization.py and projectome_format.py
# some variables are borrowed from there and weren't added to this very preliminary script
import os
import sys
try:
os.chdir('/Volumes/GoogleDrive/My Drive/python_code/connectome_tools/')
print(os.getcwd())
except:
pass
#... | {"hexsha": "6ca5cd0b9265a8fc820773100040f37b0192f1b5", "size": 18151, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/cascades/interhemisphere_asymmetric_experiment_separate_hops.py", "max_stars_repo_name": "mwinding/connectome_analysis", "max_stars_repo_head_hexsha": "dbc747290891805863c9481921d8080dc20... |
! Copyright (c) 1989, NVIDIA CORPORATION. All rights reserved.
!
! Licensed under the Apache License, Version 2.0 (the "License");
! you may not use this file except in compliance with the License.
! You may obtain a copy of the License at
!
! http://www.apache.org/licenses/LICENSE-2.0
!
! Unless required by appli... | {"hexsha": "f8d0813841b60dea6f993a533145d1d1cd8be0a1", "size": 988, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "test/f90_correct/src/external_pointer_common.f90", "max_stars_repo_name": "kammerdienerb/flang", "max_stars_repo_head_hexsha": "8cc4a02b94713750f09fe6b756d33daced0b4a74", "max_stars_repo_licenses... |
# -*- coding: utf-8 -*-
from setuptools import setup
from setuptools import find_packages
from distutils.cmd import Command
from distutils.extension import Extension
import os
import sys
import io
import subprocess
import platform
import numpy as np
from Cython.Build import cythonize
import Cython.Compiler.Options
Cyth... | {"hexsha": "2c7333697d30c94108fc6e3b62e46b18328d7a16", "size": 4483, "ext": "py", "lang": "Python", "max_stars_repo_path": "setup.py", "max_stars_repo_name": "wangjiehui11235/ultron", "max_stars_repo_head_hexsha": "ade46fdcff7eaf01187cdf9b9fb1d6a04ae972b7", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": ... |
// Copyright 2021 Pavel A. Lebedev
// Licensed under the Apache License, Version 2.0.
// (See accompanying file LICENSE.txt or copy at
// http://www.apache.org/licenses/LICENSE-2.0)
// SPDX-License-Identifier: Apache-2.0
#ifndef UUID_B5A8AB9C_DB77_464C_9654_C0BDC642FCC4
#define UUID_B5A8AB9C_DB77_464C_9654_C0BDC642FC... | {"hexsha": "a350004815c93ceada6cb2ff41193a1b833bc874", "size": 5552, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/ampi/coro/use_coroutine.hpp", "max_stars_repo_name": "palebedev/ampi", "max_stars_repo_head_hexsha": "a7feb7f4b51469fd24ff0fa2c8a9b8592cbf309a", "max_stars_repo_licenses": ["Apache-2.0"], "m... |
import numpy as np
import math
import cv2
def bounding_rect(points):
points=np.array(points)
l=np.min(points[:,0])
r=np.max(points[:,0])
t=np.min(points[:,1])
b=np.max(points[:,1])
return np.array([l,t,r,b])
def scale(points,scale):
if isinstance(scale,(tuple,list)):
scaleX,scaleY=... | {"hexsha": "fd68130f13fdcab8c59eb1ad5b7186167d33d22d", "size": 3771, "ext": "py", "lang": "Python", "max_stars_repo_path": "wpcv/utils/ops/polygon_ops.py", "max_stars_repo_name": "Peiiii/wpcv", "max_stars_repo_head_hexsha": "56ed5327b921c52cd666c76bc204ac9ee5e5d150", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
from scipy import stats
from statsmodels.sandbox.stats import multicomp
import os
import pickle
import operator
from collections import defaultdict
#from tfta.tfta import TFTA
from utils.util import download_file_dropbox
import logging
logging.basicConfig(format='%(levelname)s: %(name)s - %(message)s',
... | {"hexsha": "8e73811199d030f336044178fb51f844aced846b", "size": 8324, "ext": "py", "lang": "Python", "max_stars_repo_path": "enrichment/pathway.py", "max_stars_repo_name": "xzhang2016/tfagent", "max_stars_repo_head_hexsha": "433df751f0c5cbe3d730d8e912a05a2430dd165b", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_sta... |
[STATEMENT]
lemma cpI4:
"(\<forall> W X Y Z \<tau>. f W X Y Z \<tau> = f(\<lambda>_. W \<tau>)(\<lambda>_. X \<tau>)(\<lambda>_. Y \<tau>)(\<lambda>_. Z \<tau>) \<tau>) \<Longrightarrow>
cp P \<Longrightarrow> cp Q \<Longrightarrow> cp R \<Longrightarrow> cp S \<Longrightarrow> cp(\<lambda>X. f (P X) (Q X) (R X) (S X)... | {"llama_tokens": 865, "file": "Featherweight_OCL_UML_Logic", "length": 3} |
###############################################################################
### identification tests
@inline function identification_test(pb::AbstractProblem, y, y_old, it, mem)
id = false
if get(mem, :id_testkind, :default) == :strongtest
id = id_strongtest(pb::AbstractProblem, y, y_old, it, mem)
... | {"hexsha": "e88e72a97f2836e89052379d4fd57969fd338f74", "size": 4098, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/algs_extrapolation.jl", "max_stars_repo_name": "GillesBareilles/Acceleration-Identification", "max_stars_repo_head_hexsha": "ec9340f05166484ee9b99d7cd033033e92b9196a", "max_stars_repo_licenses"... |
import torch
import torchvision
import numpy as np
import torch.nn as nn
from torch.nn import functional as F
class Loss(object):
"""
co-pencil loss
"""
def __init__(self, args):
self.args = args
self.logsoftmax = nn.LogSoftmax(dim=1).to(self.args.device)
self.softmax = nn.Sof... | {"hexsha": "b363c4309b7363e0f7cea5ac9040e7c9295a22d4", "size": 9153, "ext": "py", "lang": "Python", "max_stars_repo_path": "Loss.py", "max_stars_repo_name": "JiarunLiu/Co-correcting", "max_stars_repo_head_hexsha": "4e3ca4951de5d73ca812bbbcfe666273082ff2fd", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": ... |
%-------------------------
% Resume in Latex
% Website: https://github.com/tanmaybinaykiya/resume
% License : MIT
%------------------------
\title{Tanmay Binaykiya | 2 Page CV}
\documentclass[letterpaper,11pt]{article}
\usepackage{latexsym}
\usepackage[empty]{fullpage}
\usepackage{titlesec}
\usepackage{marvosym}
\use... | {"hexsha": "0de964f6aaff7930ab8b2f409c53e582fbccc605", "size": 10469, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "resume-2-page.tex", "max_stars_repo_name": "tanmaybinaykiya/resume", "max_stars_repo_head_hexsha": "710adaba81572a87cffce6dfa0db78bab8e4d6e3", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
import os
import time
import collections
from six.moves import cPickle
import numpy as np
import numerical.numpytheano as nt
import numerical.numpyext.linalg as ntla
import numerical.numpyext as npx
import numerical.numpyext.dimreduction as dr
import theano
import ml.gptheano.vecgpdm.equations as vceq
import numerical... | {"hexsha": "62f091ae31a0cf55ac2137c56b6fe667457356a9", "size": 67317, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/ml/gptheano/vecgpdm/multiprimitivemodel.py", "max_stars_repo_name": "dmytrov/gaussianprocess", "max_stars_repo_head_hexsha": "7044bd2d66f44e10656fee17e94fdee0c24c70bb", "max_stars_repo_licen... |
#include <boost/test/unit_test.hpp>
#include <metaSMT/support/cardinality/Evaluator.hpp>
#include <vector>
#include <metaSMT/support/cardinality.hpp>
#include <metaSMT/frontend/Logic.hpp>
#include <boost/assign/std/vector.hpp>
using namespace std;
using namespace metaSMT;
using namespace metaSMT::solver;
using namesp... | {"hexsha": "f132592269040c9d584879a8e43e503f42af673c", "size": 5743, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/test_cardinality.cpp", "max_stars_repo_name": "finnhaedicke/metaSMT", "max_stars_repo_head_hexsha": "949245da0bf0f3c042cb589aaea5d015e2ed9e9a", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
println("===========================================================================")
println("Beginning execution of script GMHPhotoReceptor.jl/scripts/PhotoReceptor1.jl")
println("===========================================================================")
using GeneralizedMetropolisHastings
using GMHPhotoReceptor... | {"hexsha": "b16d186842daf1023c2e0881a36b77aa38c186ab", "size": 5216, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "scripts/ParallelScale1.jl", "max_stars_repo_name": "QuantifyingUncertainty/GMHPhotoReceptor.jl", "max_stars_repo_head_hexsha": "9298c91358210747353352b09dd3f2d814758cf8", "max_stars_repo_licenses":... |
{-# OPTIONS --cubical --no-import-sorts --safe #-}
module Cubical.HITs.MappingCones where
open import Cubical.HITs.MappingCones.Base public
open import Cubical.HITs.MappingCones.Properties public
| {"hexsha": "301b90621d4a0f1322c69f97d4331f10821dbc3c", "size": 198, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "Cubical/HITs/MappingCones.agda", "max_stars_repo_name": "dan-iel-lee/cubical", "max_stars_repo_head_hexsha": "fd8059ec3eed03f8280b4233753d00ad123ffce8", "max_stars_repo_licenses": ["MIT"], "max_sta... |
/* ----------------------------------------------------------------------------
* GTSAM Copyright 2010, Georgia Tech Research Corporation,
* Atlanta, Georgia 30332-0415
* All Rights Reserved
* Authors: Frank Dellaert, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* ---... | {"hexsha": "6aa35a5bda58590674077a23abb33de8d1ca45e0", "size": 2068, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "wrap/TemplateInstantiationTypedef.cpp", "max_stars_repo_name": "karamach/gtsam", "max_stars_repo_head_hexsha": "35f9b710163a1d14d8dc4fcf50b8dce6e0bf7e5b", "max_stars_repo_licenses": ["BSD-3-Clause"]... |
"""
"""
from utils import Solution
from typing import Any
import numpy as np
from collections import defaultdict, Counter
SWAP_AXES = np.array([[0, 1, 2], [0, 2, 1], [1, 0, 2], [1, 2, 0] , [2, 0, 1], [2, 1, 0]])
FLIPS = np.array([[1, 1, 1], [1, 1, -1], [1, -1, -1], [1, -1, 1], [-1, 1, 1], [-1, -1, 1],
[-1, -... | {"hexsha": "2858c2c7d39f64a6341299729ebdb46c850934fb", "size": 6384, "ext": "py", "lang": "Python", "max_stars_repo_path": "day19/solution.py", "max_stars_repo_name": "GeertLitjens/advent-of-code-2021", "max_stars_repo_head_hexsha": "4a4f2cfddbd7aeb839498fb4e7a916e1b429b590", "max_stars_repo_licenses": ["Apache-2.0"], ... |
module adapters_sqlite_execute_result_test
using Test # @test
using Octo.Adapters.SQLite # Repo Schema from SELECT FROM WHERE
import SQLite # pathof(SQLite)
dbfile = joinpath(dirname(pathof(SQLite)), "..", "test", "Chinook_Sqlite.sqlite")
dbfile2 = joinpath(@__DIR__, "test.sqlite")
cp(dbfile, dbfile2; force=true)
chm... | {"hexsha": "c1a34911f592b72be0d9f9b38940c675904f5160", "size": 1386, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/adapters/sqlite/execute_result_test.jl", "max_stars_repo_name": "wookay/Octo.jl", "max_stars_repo_head_hexsha": "4b449032e8843c4236200497c148bd214304f4c3", "max_stars_repo_licenses": ["MIT"], ... |
# TODO: Once startobs branch is merged, add __dummy.[fmt] to test_return_formats
from multiprocessing import Pool
import numpy as np
import random
import requests
import sys
import time
# URL_PREFIX = 'http://127.0.0.1:8000/opus'
# DEFAULT_URL_PARAMS = {'ignorelog': 1}
# URL_PREFIX = 'https://opus.pds-rings.seti.org... | {"hexsha": "92d4b16fe9c0e9bc01c89a2b72a04a10e5c97db3", "size": 14059, "ext": "py", "lang": "Python", "max_stars_repo_path": "perf_test/perf_test.py", "max_stars_repo_name": "fyellin/pds-opus", "max_stars_repo_head_hexsha": "96705b6736458f9944599d44f86ec54ad1d74e38", "max_stars_repo_licenses": ["AFL-3.0"], "max_stars_co... |
import numpy as np
#Creando la matriz
tablero = np.zeros((16,16))
tableroFuturo = np.zeros((16,16))
#Estado inicial
tablero[0,1] = 1
tablero[1,2] = 1
tablero[2,0] = 1
tablero[2,1] = 1
tablero[2,2] = 1
contador = 0
def buscarCelulas(matrizBC):
for i in range(16):
for j in range(16):
valor = matri... | {"hexsha": "ee749933b7f0b7f4afa424c9c7c4c56da97502c7", "size": 4430, "ext": "py", "lang": "Python", "max_stars_repo_path": "vida.py", "max_stars_repo_name": "Jav10/Algoritmos-Geneticos", "max_stars_repo_head_hexsha": "9c80d2c97b3c1bb58b5aadd80a5fb192bef5e377", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null... |
[STATEMENT]
lemma degree_drop_2n:
assumes "degree f < 2*n"
shows "degree (drop_deg n f) < n"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. degree (drop_deg n f) < n
[PROOF STEP]
using assms
[PROOF STATE]
proof (prove)
using this:
degree f < 2 * n
goal (1 subgoal):
1. degree (drop_deg n f) < n
[PROOF STEP]
unfoldi... | {"llama_tokens": 208, "file": "CRYSTALS-Kyber_NTT_Scheme", "length": 3} |
import networkx as nx
import matplotlib.pyplot as plt
import collections
#generation of a forest fire graph with GN incremental growth model
G = nx.gn_graph(100, kernel=lambda x: x ** 1.5)
# Graph display
coord = nx.spring_layout(G, iterations=1000)
fig = plt.figure()
axs = fig.add_subplot(111, aspect='equal')
axs.ax... | {"hexsha": "8434f9a6f3c4f1f62171659363f13bae8170d1e2", "size": 2446, "ext": "py", "lang": "Python", "max_stars_repo_path": "gn.py", "max_stars_repo_name": "17mcpc14/sna", "max_stars_repo_head_hexsha": "5b0c947985cf3c4f1e7cbe54bb0d81e6ff47558d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars_rep... |
# -*- coding: utf-8 -*-
import sys
sys.path.insert(0, '/home/project/multipose/src_3d/')
import torch.utils.data
#from datasets.cmu import CMU
from random import randint
import numpy as np
import matplotlib.pyplot as plt
import cv2
#from datasets.h36m import H36M
#from visualise_maps import visualise_map
js=['rank',... | {"hexsha": "0c672eddfd86758d59a21afb05b81b69b4cc33ea", "size": 3236, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/my.py", "max_stars_repo_name": "Naman-ntc/3D-HourGlass-Network", "max_stars_repo_head_hexsha": "e58b7b6a78d35bc14fe4c0bc611f80022b2f409b", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
# Copyright 2021 The TensorFlow Probability Authors.
#
# 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 o... | {"hexsha": "327b0a82bddbc0db7c3c9fab9ea11590f3c1a255", "size": 17182, "ext": "py", "lang": "Python", "max_stars_repo_path": "discussion/lazybones.py", "max_stars_repo_name": "brianwa84/probability", "max_stars_repo_head_hexsha": "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "max_stars_repo_licenses": ["Apache-2.0"], "max... |
module fem_libs
use fem_geometry
use material_behavior
use linearsolvers
implicit none
real*8,allocatable:: elcrds(:,:) !the geometries of nodes of the element
contains
! ================================================================
! forming the global m... | {"hexsha": "fe1ffe060a2f447693a1351e5fd5b2919c72b37b", "size": 18899, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "driver/femlibs.f90", "max_stars_repo_name": "amirsmol/finite_element_method_1D_piezoe_electric", "max_stars_repo_head_hexsha": "b32a1656b5d8d460db41c08fbcb337153cc442f5", "max_stars_repo_licens... |
###############################################################################
# combine_dustmaps.py: make a composite extinction map (Marshall,Green,Drimmel)
###############################################################################
import sys
import os, os.path
import pickle
import numpy
import h5py
import heal... | {"hexsha": "f420750ea741333bb452d0d60b7e3eca749fa3f8", "size": 8391, "ext": "py", "lang": "Python", "max_stars_repo_path": "py/combine_dustmaps.py", "max_stars_repo_name": "jobovy/apogee-maps", "max_stars_repo_head_hexsha": "0316e95bdf9b85f3f4b758e8e67dc197d228288f", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st... |
import numpy as np
from typing import Union, Optional
def argmax(
x:np.ndarray,
axis: Optional[int] = None,
out: Optional[int] = None,
keepdims: bool = False,
) -> np.ndarray:
ret = np.argmax(x,axis=axis,keepdims=keepdims)
return ret
def argmin(x: np.ndarray,
axis: Optional[int] =... | {"hexsha": "67591b1e579aa41b2a8130678a6a3783eee6546f", "size": 510, "ext": "py", "lang": "Python", "max_stars_repo_path": "ivy/functional/backends/numpy/searching.py", "max_stars_repo_name": "capogluuu/ivy", "max_stars_repo_head_hexsha": "fc3159a127412f039c7024649b23c89b493b20d2", "max_stars_repo_licenses": ["Apache-2.... |
import os
import pickle
import numpy as np
import pandas as pd
#import eigenvalue calculator
from skimpytools.stability import CheckStability
exp_id = 'fdp1' #<-- Choose 1 of 4 physiologies (fdp1-fdp4)
# Load parameter set (must be .npy)
path_to_GAN_generated_parameters = f'gan_output/{exp_id}/repeat_0/0_r.npy'
GAN_g... | {"hexsha": "7fe37ca8dbf8f16c4a3086779eb16887f3f6fb36", "size": 1147, "ext": "py", "lang": "Python", "max_stars_repo_path": "venv/N3-skimpy-calculate-eigenvalues.py", "max_stars_repo_name": "EPFL-LCSB/rekindle", "max_stars_repo_head_hexsha": "4108c58a3236c7362a5d58e2949000a81aae42d1", "max_stars_repo_licenses": ["Apache... |
#include <algorithm>
#include <cstdint>
#include <functional>
#include <iostream>
#include <iterator>
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>
#include <boost/format.hpp>
#include "baldr/streetnames.h"
#include "baldr/streetnames_factory.h"
#include "baldr/streetnames_us.h"
#include... | {"hexsha": "4f265b8b0a6b4c5ac74ddd61205104944c23ee32", "size": 122557, "ext": "cc", "lang": "C++", "max_stars_repo_path": "src/odin/maneuversbuilder.cc", "max_stars_repo_name": "purtato/valhalla", "max_stars_repo_head_hexsha": "b7e137e7c3638f1320ae705378f2a4d81affa0cd", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
[STATEMENT]
lemma one_le_of_rat_iff [simp]: "1 \<le> (of_rat r :: 'a::linordered_field) \<longleftrightarrow> 1 \<le> r"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. ((1::'a) \<le> of_rat r) = (1 \<le> r)
[PROOF STEP]
using of_rat_less_eq [of 1 r]
[PROOF STATE]
proof (prove)
using this:
(of_rat 1 \<le> of_rat r) =... | {"llama_tokens": 203, "file": null, "length": 2} |
# ---
# jupyter:
# jupytext:
# formats: ipynb,py:percent
# text_representation:
# extension: .py
# format_name: percent
# format_version: '1.3'
# jupytext_version: 1.13.7
# kernelspec:
# display_name: Python [conda env:bandit_38]
# language: python
# name: conda-env-bandi... | {"hexsha": "a8f7c40fa0c4937d29b4512a6e399f5287353f39", "size": 8474, "ext": "py", "lang": "Python", "max_stars_repo_path": "11_calibration_NHMv11/byHW_obs streamgage criteria.py", "max_stars_repo_name": "pnorton-usgs/notebooks", "max_stars_repo_head_hexsha": "17a38ecd3f3c052b9bd785c2e53e16a9082d1e71", "max_stars_repo_l... |
from numpy import arange, array, ones, zeros, cos, ceil, asarray, hstack
from numpy.linalg import norm
from openopt import NSP, oosolver
from FuncDesigner import *
n = 50
x = oovar()
A = zeros((n, n))
b = zeros(n)
for i in range(n):
for j in range(n):
A[i, j] = 1.0 / (i+j+1) # Python indexation from zero
... | {"hexsha": "3a23b64bf294297658856b4e115e6789a4e6d81e", "size": 2223, "ext": "py", "lang": "Python", "max_stars_repo_path": "FuncDesigner/FuncDesigner/tests/rzhevsky5.py", "max_stars_repo_name": "PythonCharmers/OOSuite", "max_stars_repo_head_hexsha": "b0e716e7afdbc2a0469b62ec8db1de3454f5b883", "max_stars_repo_licenses":... |
#include <geodesy/utm.h>
#include <geodesy/wgs84.h>
#include <boost/property_tree/xml_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include "hdl_graph_slam/building.hpp"
#include <fstream>
#include <regex>
#include <string>
#include <cmath>
#include <sstream>
#include <cstdlib>
#include <iomanip>
#include <cur... | {"hexsha": "cab10ef1c03f46e367d66195ef61d9177419c1c1", "size": 1313, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "include/hdl_graph_slam/building_tools.hpp", "max_stars_repo_name": "Ronicasss/hdl_graph_slam", "max_stars_repo_head_hexsha": "75370587cb16278d36dd524bcc13d51bf9d7603d", "max_stars_repo_licenses": ["... |
import tensorflow as tf
import tensorlayer as tl
import numpy as np
from tensorlayer.cost import cross_entropy_seq, cross_entropy_seq_with_mask
from tqdm import tqdm
from sklearn.utils import shuffle
from tensorlayer.models.seq2seq import Seq2seq
from tensorlayer.models.seq2seq_with_attention import Seq2seqLuongAttenti... | {"hexsha": "1df8a5d4723a45bdc5f97d0350764b0df96504b0", "size": 1329, "ext": "py", "lang": "Python", "max_stars_repo_path": "V1 - Seq2Seq/main.py", "max_stars_repo_name": "riju-stone/chatbot", "max_stars_repo_head_hexsha": "cfbd1a162f777440b138e2824d07f70cca8c4a48", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
Unset Strict Universe Declaration.
(* File reduced by coq-bug-finder from original input, then from 11542 lines to 325 lines, then from 347 lines to 56 lines, then from 58 lines to 15 lines *)
(* coqc version trunk (September 2014) compiled on Sep 25 2014 2:53:46 with OCaml 4.01.0
coqtop version cagnode16:/afs/csail... | {"author": "princeton-vl", "repo": "CoqGym", "sha": "0c03a6fba3a3ea7e2aecedc1c624ff3885f7267e", "save_path": "github-repos/coq/princeton-vl-CoqGym", "path": "github-repos/coq/princeton-vl-CoqGym/CoqGym-0c03a6fba3a3ea7e2aecedc1c624ff3885f7267e/coq/test-suite/bugs/closed/3666.v"} |
import pygraphviz as pyg
import networkx as nx
import os
from jet.config import group_class, group_func
def draw(graph, outputs=[], name='graph'):
dg = pyg.AGraph(directed=True)
output_names = [out.name for out in outputs]
class_set = set()
subgraph_dict = {}
for node in graph.nodes():
if ... | {"hexsha": "5e5323b3b55680804fa07e52447d38833b1e4a57", "size": 3310, "ext": "py", "lang": "Python", "max_stars_repo_path": "jet/burn.py", "max_stars_repo_name": "benman1/pyjet", "max_stars_repo_head_hexsha": "04b48e9966ed52999c2910b1966d467ee7fbb5bf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 70, "max_star... |
import numpy as np
from numpy import sum, pi, sin, cos
from pymoo.core.problem import Problem
class OmniTest(Problem):
"""
The Omni-test problem proposed by Deb in [1].
Parameters
----------
n_var: number of decision variables
References
----------
[1] Deb, K., Tiwari, S. "Omni-opti... | {"hexsha": "851f52a2bf8c361a95190a587ccdd725eaeecee5", "size": 1735, "ext": "py", "lang": "Python", "max_stars_repo_path": "pymoo/problems/multi/omnitest.py", "max_stars_repo_name": "jarreguit/pymoo", "max_stars_repo_head_hexsha": "0496a3c6765826148d8bab21650736760517dd25", "max_stars_repo_licenses": ["Apache-2.0"], "m... |
import impy as ip
from pathlib import Path
from numpy.testing import assert_allclose
ip.Const["SHOW_PROGRESS"] = False
def test_filters_and_slicing():
path = Path(__file__).parent / "_test_images" / "image_tzcyx.tif"
img = ip.lazy_imread(path)
assert img.axes == "tzcyx"
sl = "y=20:40;x=30:50;c=0;z=2,4"... | {"hexsha": "a1fc375df0445cf3f3832b15eac8f1987b0fdec6", "size": 953, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/test_lazy.py", "max_stars_repo_name": "hanjinliu/impy", "max_stars_repo_head_hexsha": "d35b21be7739c3073ae87486673af68b1cdb2853", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count... |
# coding=utf-8
# Copyright 2020 The Edward2 Authors.
#
# 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 o... | {"hexsha": "f4864538cfb8390c76c4d9dd95183d2b6308504f", "size": 7951, "ext": "py", "lang": "Python", "max_stars_repo_path": "edward2/tensorflow/layers/utils_test.py", "max_stars_repo_name": "acyrl/edward2", "max_stars_repo_head_hexsha": "466da9a9f655b1da1f7d89c6e6512a44d00de090", "max_stars_repo_licenses": ["Apache-2.0"... |
"""
Functions relating to detection of the emergent object.
"""
from typing import List, Optional, Tuple
import cv2
import numpy as np
import numpy.typing as npt
from vision.common.bounding_box import BoundingBox, ObjectType
def preprocess_emg_obj(img: npt.NDArray[np.uint8]) -> npt.NDArray[np.uint8]:
"""
... | {"hexsha": "cf593329838982ad3650e86bcecbe3d771679099", "size": 6555, "ext": "py", "lang": "Python", "max_stars_repo_path": "vision/odlc/emergent_detection.py", "max_stars_repo_name": "MissouriMRR/SUAS-2022", "max_stars_repo_head_hexsha": "90076b4a62bef640ba19c5dcea12c639c2e82815", "max_stars_repo_licenses": ["MIT"], "m... |
from __future__ import absolute_import, division, print_function
import os
import itertools
import zipfile
import numpy as np
import scipy.sparse as sp
from rareflow.datasets.core import maybe_download_data, Dataset
_MOVIELENS_CONFIG = {
'URL_PREFIX': 'http://files.grouplens.org/datasets/movielens/',
'URL_100K... | {"hexsha": "79f47fdc062ed1910ea700f323e6bd39c47368af", "size": 6391, "ext": "py", "lang": "Python", "max_stars_repo_path": "rareflow/datasets/movielens.py", "max_stars_repo_name": "deezcov/rareflow", "max_stars_repo_head_hexsha": "481c6ef5421374e328a5aae99e0debc100c993bc", "max_stars_repo_licenses": ["MIT"], "max_stars... |
-- Andreas, 2018-06-10, issue #3124
-- Wrong context for error IrrelevantDatatype in the coverage checker.
data Squash (A : Set) : Prop where
squash : A → Squash A
test : ∀{A} → Squash (Squash A → A)
test = squash λ{ (squash y) → y }
-- WAS: de Bruijn index in error message
-- Expected error:
-- Cannot split on a... | {"hexsha": "1cb1faac6f3735b9c1f677b1fd7a0da507f1ec9f", "size": 415, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "test/Fail/Issue3124.agda", "max_stars_repo_name": "alhassy/agda", "max_stars_repo_head_hexsha": "6043e77e4a72518711f5f808fb4eb593cbf0bb7c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_c... |
module RocketUppercaseOperatorTest
using Test
using Rocket
include("../test_helpers.jl")
@testset "operator: uppercase()" begin
println("Testing: operator uppercase()")
run_proxyshowcheck("Uppercase", uppercase())
run_testset([
(
source = from("Hello, world") |> uppercase(),
... | {"hexsha": "65c5bdfb273d97576261c9fbbf649058b61d2890", "size": 778, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/operators/test_operator_uppercase.jl", "max_stars_repo_name": "hgeorgako/Rocket.jl", "max_stars_repo_head_hexsha": "9661dad340e9a079ebd6ed57dcf9e5db31af637f", "max_stars_repo_licenses": ["MIT"]... |
import pandas as pd
import matplotlib.pyplot as plt
import numpy.polynomial as poly
import file_names as fn
ENTER_MSG = "Enter 1 for GDP and 2 for GDPPC"
GDP_FILE = fn.CleanedPaths.GDP
GDPPC_FILE = fn.CleanedPaths.GDPPC
ENERGY_CAPACITY_FILE = fn.CleanedPaths.CAPACITY
ENERGY_CONSUPTION_FILE = fn.CleanedPaths.CONSUMPTIO... | {"hexsha": "e217e04455d1b268fea4e5e5f898eb4b38806ff9", "size": 1757, "ext": "py", "lang": "Python", "max_stars_repo_path": "renewable_energy_analysis/analysis/exploratory_analysis_gdppc.py", "max_stars_repo_name": "Batto1300/renewable-energy-analysis", "max_stars_repo_head_hexsha": "0825f024779a9469ac46175a80069f2e3ae0... |
import os
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'
import tensorflow as tf
from scipy.io import loadmat
import numpy as np
def loadData(dataset_path):
dataset = loadmat(dataset_path.numpy().decode('utf-8'))['dataset'][0][0]
train = dataset[0][0][0]
x_train = train[0]
y_train = train[1].reshape(-1)
... | {"hexsha": "eb761bb750b3829499a8d3a2f50336b03657c57d", "size": 1008, "ext": "py", "lang": "Python", "max_stars_repo_path": "model/datapipe.py", "max_stars_repo_name": "PamudithaSomarathne/textcaps", "max_stars_repo_head_hexsha": "17b104f238b123dbeb5cde2654417beae94abbc4", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
# This file is part of NEORL.
# Copyright (c) 2021 Exelon Corporation and MIT Nuclear Science and Engineering
# NEORL is free software: you can redistribute it and/or modify
# it under the terms of the MIT LICENSE
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED... | {"hexsha": "912005e1627b98eb7c2fac6b5dda5d1f9ab8159c", "size": 16059, "ext": "py", "lang": "Python", "max_stars_repo_path": "neorl/evolu/de.py", "max_stars_repo_name": "deanrp2/neorl", "max_stars_repo_head_hexsha": "14734988e3034c9b3bbc8f33678bae67fd082a9f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
# takes the folder with the n generated songs as pickles and make a latex table
import os
import pickle
import argparse
import music_geometry_eval
from scipy import stats
from scipy.spatial import distance
parser = argparse.ArgumentParser(
formatter_class=argparse.ArgumentDefaultsHelpFormatter)
... | {"hexsha": "b9f54608d449b5e9cb6b03d1969191f304fb123b", "size": 17575, "ext": "py", "lang": "Python", "max_stars_repo_path": "paper_scripts/eval_n_songs.py", "max_stars_repo_name": "sebasgverde/rnn-cells-music-paper", "max_stars_repo_head_hexsha": "4b9df8d2c494cede44d437b3b74a8acf61b7c242", "max_stars_repo_licenses": ["... |
using Codecs
using Test
include("tests.jl")
| {"hexsha": "93ecddc7f3abb10f32c9bce78cc3c9df37ea8064", "size": 45, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/runtests.jl", "max_stars_repo_name": "UnofficialJuliaMirror/Codecs.jl-19ecbf4d-ef7c-5e4b-b54a-0a0ff23c5aed", "max_stars_repo_head_hexsha": "3d981d5af6ac7983832bd9ad89291a9bec515e99", "max_stars_... |
Load LFindLoad.
From lfind Require Import LFind.
From QuickChick Require Import QuickChick.
From adtind Require Import goal33.
Derive Show for natural.
Derive Arbitrary for natural.
Instance Dec_Eq_natural : Dec_Eq natural.
Proof. dec_eq. Qed.
Lemma conj17synthconj2 : fora... | {"author": "yalhessi", "repo": "lemmaranker", "sha": "53bc2ad63ad7faba0d7fc9af4e1e34216173574a", "save_path": "github-repos/coq/yalhessi-lemmaranker", "path": "github-repos/coq/yalhessi-lemmaranker/lemmaranker-53bc2ad63ad7faba0d7fc9af4e1e34216173574a/benchmark/clam/_lfind_clam_lf_goal33_mult_succ_80_plus_succ/lfindconj... |
import shutil
import numpy as np
from skimage.draw import line #fast bresenham implementation
__all__ = [
'__version__'
'Canvas'
]
class Canvas(object):
def __init__(self,height=10,width=None):
self._height = height
self._width = shutil.get_terminal_size().columns if width is None else wi... | {"hexsha": "be824f65613cc3d9a5b8ede00e4be3b47b6fbe67", "size": 1080, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/asciiplotter/__init__.py", "max_stars_repo_name": "stalbrec/asciiplotter", "max_stars_repo_head_hexsha": "066613fd1fc92359cd12c18a83d81a2e9a801bdc", "max_stars_repo_licenses": ["MIT"], "max_st... |
import tensorflow as tf
import numpy as np
import json
import utils
def masks_to_layout(vecs, boxes, masks, obj_to_img, H, W, n_imgs, pooling='sum', test_mode=False):
"""
Inputs:
- vecs: Tensor of shape (O, D) giving vectors
- boxes: Tensor of shape (O, 4) giving bounding boxes in the format
[x... | {"hexsha": "870c2a3613e086f784b92df8118e686fa398262d", "size": 11440, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/layout.py", "max_stars_repo_name": "leosampaio/scene-designer", "max_stars_repo_head_hexsha": "8a7276067acfde1997d386942aabc44d92436a1a", "max_stars_repo_licenses": ["MIT"], "max_stars_coun... |
import numpy as np
eps = 0.000000000001
def howieWhelan(F_in,Xg,X0i,s,alpha,t):
#for integration over n slices
# All dimensions in nm
Xgr = Xg.real
Xgi = Xg.imag
s = s + eps
gamma = np.array([(s-(s**2+(1/Xgr)**2)**0.5)/2, (s+(s**2+(1/Xgr)**2)**0.5)/2])
q = np.array([(0.5/X... | {"hexsha": "0d5022814ae7f2a16ac388b1ce30afa39daa9110", "size": 7128, "ext": "py", "lang": "Python", "max_stars_repo_path": "funcs_richard.py", "max_stars_repo_name": "ricounet67/Howie-Whelan_2-beam", "max_stars_repo_head_hexsha": "96965a6591df1ac57d2331633623c9e12b92bef1", "max_stars_repo_licenses": ["CC0-1.0"], "max_s... |
#!/usr/bin/env python3
from collections import OrderedDict
import cv2
from igibson.envs.igibson_env import iGibsonEnv
import gym
import numpy as np
class NavigateGibsonEnv(iGibsonEnv):
"""
Custom implementation of navigation task based on iGibsonEnv
"""
def __init__(
self,
co... | {"hexsha": "c8a684f9295c94602320f3897a04869180fd4db0", "size": 4787, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/rl_agents/environments/envs/navigate_env.py", "max_stars_repo_name": "suresh-guttikonda/deep-activate-localization", "max_stars_repo_head_hexsha": "081c4bd89846806c234d324ac3cf48ab36828063", "... |
import math
import torch.autograd as autograd
import copy
import json
import pickle
import random
import torch
import numpy as np
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
from deep_dialog import dialog_config
from .agent import Agent
from .replay_buffer import ReplayBuffer
USE... | {"hexsha": "6c59debab5d7484e6fd9f5d90f5efd3f587e716a", "size": 18476, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/deep_dialog/agents/categorical_dqn_agent.py", "max_stars_repo_name": "aaivu/aaivu-task-oriented-conversational-agent", "max_stars_repo_head_hexsha": "99e4caf5b6d44c57b38a661dc176b76ed869b051"... |
#
# util.py
#
# Part of text_extensions_for_pandas
#
# Internal utility functions, not exposed in the public API.
#
import math
import numpy as np
from typing import *
import unittest
# Internal imports
_ELLIPSIS = " [...] "
_ELLIPSIS_LEN = len(_ELLIPSIS)
def pretty_print_html(column: Union["CharSpanArray", "Token... | {"hexsha": "58c7f1c1aeb75d3cda096bbe8c94b996607607e0", "size": 4600, "ext": "py", "lang": "Python", "max_stars_repo_path": "text_extensions_for_pandas/util.py", "max_stars_repo_name": "xuhdev/text-extensions-for-pandas", "max_stars_repo_head_hexsha": "870671f32ea4beb8c640be321fb84b49d522b7d5", "max_stars_repo_licenses"... |
!
! CalculiX - A 3-dimensional finite element program
! Copyright (C) 1998-2021 Guido Dhondt
!
! This program is free software; you can redistribute it and/or
! modify it under the terms of the GNU General Public License as
! published by the Free Software Foundation(version 2);
!
!
! ... | {"hexsha": "5bacd4715578c3ae2a55de195af123fa95a5258f", "size": 1286, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "ccx_prool/CalculiX/ccx_2.19/src/pop.f", "max_stars_repo_name": "alleindrach/calculix-desktop", "max_stars_repo_head_hexsha": "2cb2c434b536eb668ff88bdf82538d22f4f0f711", "max_stars_repo_licenses": ... |
"""
Description
---------
Module of construction of ANN. It's written by numpy.
"""
import numpy as np
from random import uniform
from copy import deepcopy
# Typing Hint
# ----------------------
from typing import List
Array = np.array(List[float])
# ----------------------
def sigmoid(x: float) -> float:
... | {"hexsha": "8dfe67f4bef016677006fae4aac368c053c5a235", "size": 2868, "ext": "py", "lang": "Python", "max_stars_repo_path": "sample/ann.py", "max_stars_repo_name": "shuiruge/ann-mcmc", "max_stars_repo_head_hexsha": "b81ba56db74e4cb516020c536b2e7264ab1c9b42", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "... |
import os
import cv2
import gym
import time
import numpy as np
import matplotlib.pyplot as plt
from IPython.display import clear_output
from agent import Agent
from replay_buffer import ReplayBuffer
from qnetwork import QNetwork
import wandb
env_list = {
0: "CartPole-v0",
1: "CartPole-v2",
2... | {"hexsha": "e80e017e8c73f4c73350dd0257586183739df761", "size": 3837, "ext": "py", "lang": "Python", "max_stars_repo_path": "Value_Based/Double_Duel_Noisy_C51_MultiTD/train.py", "max_stars_repo_name": "kyunghoon-jung/MacaronRL", "max_stars_repo_head_hexsha": "b95be35fc95be7eb5aede2315a714984b282587a", "max_stars_repo_li... |
\chapter{Testing} % (fold)
\label{cha:testing}
Like any well-designed piece of software, \gls{absol} underwent a significant amount of testing during its development.
As it was mainly developed as an embodiment of the theoretical algorithms developed as part of the project, rather than as a software product itself, the... | {"hexsha": "e1c2c2b67b4d07de97b61fe05add40dad43949a1", "size": 41457, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/dissertation/resources/testing.tex", "max_stars_repo_name": "iamrecursion/absol", "max_stars_repo_head_hexsha": "cbee8d90f11281bb104a0b2b19a17202a7a1130f", "max_stars_repo_licenses": ["BSD-3-Cl... |
# Importing the Required Libraries
import cv2
import numpy as np
img = cv2.imread('shapes.png')
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) # Converting into gray-scale as the process will be easy...
blur_img = cv2.medianBlur(gray_img, 5) # Applying the blurring as cv2.HoughCircles() works better if it is... | {"hexsha": "c6b1a1fc4443414017e1e1166763290c5bc67591", "size": 3098, "ext": "py", "lang": "Python", "max_stars_repo_path": "Grounding_roots_of_core/Lesson-34~Detecting Cirlcles through HoughCircleTransform.py", "max_stars_repo_name": "Balaji-Ganesh/Furnishing-OpenCV-Basics", "max_stars_repo_head_hexsha": "54cd8fa09cc6f... |
import numpy as np
import nicenquickplotlib as nq
x = []
x.append(np.linspace(0,6))
x.append(np.linspace(0,5))
x.append(np.linspace(0,4))
nq.set_figstyle('default')
nq.plot(x, [np.sin(x[0]), np.cos(x[1]), np.sqrt(x[2])], legend=[r'$\sin(x)$', r'$\cos(x)$', r'$\sqrt{x}$'], xlabel='x label', ylabel='y label')
nq.set_fi... | {"hexsha": "01d183ba14523008826fe56c9ffd1f20a9dfff43", "size": 849, "ext": "py", "lang": "Python", "max_stars_repo_path": "doc/figstyle_doc/test.py", "max_stars_repo_name": "SengerM/nicenquickplotlib", "max_stars_repo_head_hexsha": "9aeebcd07b581598c418dd47593d3c218bca6ebb", "max_stars_repo_licenses": ["MIT"], "max_sta... |
import numpy as np
def err_log(x, y, yerr, ll, lims):
"""
err_log : used for plotting error bars with a y-axis log scale
takes VECTORS x and y and outputs matrices (one row per data point) for
plotting error bars ll = 'XLOG' for log X axis
Parameters
----------
x : numpy vector
y : nu... | {"hexsha": "9619db6b3aecba2052d72a1820a34d33e5511f0d", "size": 1200, "ext": "py", "lang": "Python", "max_stars_repo_path": "aurora/transfer_function/plot/error_bar_helpers.py", "max_stars_repo_name": "simpeg/aurora", "max_stars_repo_head_hexsha": "1c81c464fb2e01da58e2c6b361b406b117100dcf", "max_stars_repo_licenses": ["... |
/***********************************************************************
Copyright 2018 ASM Assembly Systems GmbH & Co. KG
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/... | {"hexsha": "03ca9820ec88028e4f0da78d5111e138a3857349", "size": 8925, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/Hermes/ConfigurationClient.cpp", "max_stars_repo_name": "Sephiroth1s/lib_cpp", "max_stars_repo_head_hexsha": "78b6b0d37b921ccd7c60e874f21ef687323c7bde", "max_stars_repo_licenses": ["Apache-2.0"]... |
import os
import usb.core
import usb.util
import skimage.draw
import skimage.morphology
import numpy as np
import time
import threading
from projector.pycrafter6500 import dmd
from models import devices_db, devices_list, projected_frames
RES_Y = 1080 # projectors' resolution
RES_X = 1920
class ProjectorThread(threa... | {"hexsha": "1f610a81bbfb76d8f6fae28fbc8b649b6674f8ec", "size": 5500, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/projectors_thread.py", "max_stars_repo_name": "byutemplab/psdtr-sensor-server", "max_stars_repo_head_hexsha": "8f18bb80c7287dc4e01e84d6481bc86ce76f74ff", "max_stars_repo_licenses": ["MIT"], "m... |
struct LineIndex{T}
buf::Vector{UInt8}
filestart::Int
fileend::Int
lineindex::Vector{Int}
names::Vector{Symbol}
lookup::Dict
rowtype
columntypes::OrderedDict
structtype::Union{Nothing, DataType}
nworkers::Int
end
function LineIndex(buf::Vector{UInt8}, filestart::Int = 0, skip::I... | {"hexsha": "d26e420c45a91de19bcab485048f428e41352ddb", "size": 14524, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/LineIndex.jl", "max_stars_repo_name": "danielw2904/JSONLines.jl", "max_stars_repo_head_hexsha": "9764d95ae7fe84c9c688c2266afb491f31b2650b", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
[STATEMENT]
lemma sin_pi_divide_n_ge_0 [simp]:
assumes "n \<noteq> 0"
shows "0 \<le> sin (pi / real n)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. 0 \<le> sin (pi / real n)
[PROOF STEP]
by (rule sin_ge_zero) (use assms in \<open>simp_all add: field_split_simps\<close>) | {"llama_tokens": 124, "file": null, "length": 1} |
\chapter{Samba}
\label{chp:samba}
\section{Installation}
\label{sec:samba:install}
So we need to install some software before we can use samba to share our files, run the following from the terminal.
\begin{lstlisting}
sudo apt-get install samba samba-common-bin
\end{lstlisting}
\todo[inline,color=blue!40]{Need to... | {"hexsha": "e674a3b7716611245dc97037faf06a9504b0f2c8", "size": 333, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chapters/samba.tex", "max_stars_repo_name": "adamrees89/UbuntuServerGuide", "max_stars_repo_head_hexsha": "4e7de689ae536fab65f8e1706a927297f98594d0", "max_stars_repo_licenses": ["MIT"], "max_stars_co... |
//
// cal_T_abc.hpp
// hybrid_fem_bie
//
// Created by Max on 2/7/18.
//
//
#ifndef cal_T_abc_hpp
#define cal_T_abc_hpp
#include <stdio.h>
#include <Eigen/Eigen>
using namespace Eigen;
void cal_T_abc(MatrixXd coord ,double density, MatrixXd &T_abc, double v_p, double v_s);
#endif /* cal_T_abc_hpp */
| {"hexsha": "d7a941ad72823bfa6b3ee17bf22e7363b70a9d01", "size": 309, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/fem/cal_T_abc.hpp", "max_stars_repo_name": "XiaoMaResearch/hybrid_tsunamic_plane_stress", "max_stars_repo_head_hexsha": "574988edfcd4839f680b85cde2bf818936e86b78", "max_stars_repo_licenses": ["MI... |
FUNCTION K33R(J,M,K,L,R,JA)
C BY HAROLD RABBIE
C TYPED BY AX FROM FORTRAN, 1.17.79
C
C ASSUMES THAT THE PROBABILITY OF MY OPPONENT COOPERATING
C DEPENDS ONLY ON MY LAST TWO RESPONSES.
C DETERMINISTIC, NOT NICE
LOGICAL TWIN
DIMENSION COOP(4),COUNT(4),P(4),COEFF(6,4),CONST(6)
DATA CONST/ 0.,4.,6.,... | {"hexsha": "f1a06a51b893e295568837a5906b803abeb5c622", "size": 1843, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/strategies/k33r.f", "max_stars_repo_name": "Axelrod-Python/TourExec", "max_stars_repo_head_hexsha": "498b07394d215ce7d7df5bb7fd3aaa35eeda8317", "max_stars_repo_licenses": ["MIT"], "max_stars_c... |
## convert2array method:
"""
convert2array(fld::gcmfaces)
Convert gcmfaces to array
"""
function convert2array(fld::gcmfaces)
if fld.grTopo=="llc";
tmp1=cat(fld.f[1],fld.f[2],rotr90(fld.f[4]),rotr90(fld.f[5]);dims=1);
tmp2=cat(rotl90(fld.f[3]),NaN*fld.f[3],NaN*fld.f[3],NaN*fld.f[3];dims=1);
arr=cat(... | {"hexsha": "f39caedc33c63050c6b5332ffb5e4a93ad759f2b", "size": 3110, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/gcmfaces_convert.jl", "max_stars_repo_name": "fredrikekre/MeshArrays.jl", "max_stars_repo_head_hexsha": "e953a3666e136a8e28d2dc3f63faf15d6b0d5a27", "max_stars_repo_licenses": ["MIT"], "max_star... |
import os, sys, glob
import argparse
import numpy as np
import pyfits
# np.seterr(invalid='raise')
import polsalt
datadir = os.path.dirname(polsalt.__file__)+'/data/'
from polsalt.imred import imred
from polsalt.specpolwavmap import specpolwavmap
from polsalt.specpolextract import specpolextract
from polsalt.specpol... | {"hexsha": "51f7e87e63f5c567153c5b271a5ea18268531bde", "size": 1959, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/reducepoldata.py", "max_stars_repo_name": "Richard-Tarbell/polsalt", "max_stars_repo_head_hexsha": "e953985ffbc786fd071d0b48ebca5bd1dac9a960", "max_stars_repo_licenses": ["BSD-3-Clause"], ... |
import numpy as np
import math
from .util import find
def neighbour(x, delta, u, v):
i1 = find(x, lambda a: a == u)
i2 = find(x, lambda a: a == v)
x1 = max(u, x-delta)
x2 = min(x+delta, v)
x1[i1] = x[i1] + 2 * delta[i1]
x2[i2] = x[i2] - 2 * delta[i2]
return i1, i2 | {"hexsha": "23f8c871f516dc3ed15e139901b07276e0ecdb2c", "size": 296, "ext": "py", "lang": "Python", "max_stars_repo_path": "mcs/neighbour.py", "max_stars_repo_name": "MUzzell/UoR-msc-project", "max_stars_repo_head_hexsha": "fac83bb0ebbdd3839530c6df0493deff3475fff5", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
import numpy as np
PRACTICE = False
with open("test.txt" if PRACTICE else "input.txt", "r") as f:
content = f.read().strip()
def bound(val):
if val < -50:
return -50
elif val > 50:
return 50
else:
return val
reactor = np.zeros((101, 101, 101), dtype=bool)
for line in content.... | {"hexsha": "290616513c18888a8596c0ca4d0f5881e53a70d9", "size": 1258, "ext": "py", "lang": "Python", "max_stars_repo_path": "2021/22/22-1.py", "max_stars_repo_name": "ncurrault/advent-of-code", "max_stars_repo_head_hexsha": "f3c232f683984bf88ba48d2d2b6e55c20ae5872e", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
import torch
import torchvision.datasets as dsets
import numpy as np
import random
import copy
import time
from svrg import SVRG
from data import load_mnist
# Get MNIST using autograd data loader
# Couldn't download MNIST on my system with pytorch built in dataloader
N, train_images, train_labels, test_images, test_... | {"hexsha": "c64e64c31ced9837ccfffa0d1a66aa50fbd68f56", "size": 4298, "ext": "py", "lang": "Python", "max_stars_repo_path": "optim/MNIST_example.py", "max_stars_repo_name": "201419/PersonalCodeRepository", "max_stars_repo_head_hexsha": "e79ac1489fa424f1334e74aab74ea25d1246b40e", "max_stars_repo_licenses": ["Apache-2.0"]... |
"""
The main file for the package
==============================
"""
import geopandas as gpd
import pandas as pd
from shapely.geometry import Point
from geovoronoi import voronoi_regions_from_coords, points_to_coords
import matplotlib.pyplot as plt
import numpy as np
import os
import logging
import collections
... | {"hexsha": "93097770ee0470faf2ba687e60f17bfbbf9a754a", "size": 21105, "ext": "py", "lang": "Python", "max_stars_repo_path": "private_swedish_mind/private_swedish_mind.py", "max_stars_repo_name": "raalesir/private_swedish_mind", "max_stars_repo_head_hexsha": "19158dcda1d851aea46a9f3e06f6a10ad16c734c", "max_stars_repo_li... |
//==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=========================... | {"hexsha": "5953f3da466cd4b434188a74c1e1b3cd1bdd328f", "size": 1079, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "third_party/boost/simd/function/acsch.hpp", "max_stars_repo_name": "SylvainCorlay/pythran", "max_stars_repo_head_hexsha": "908ec070d837baf77d828d01c3e35e2f4bfa2bfa", "max_stars_repo_licenses": ["BSD... |
# Source: https://www.kaggle.com/kmader/deeplesion-overview
from glob import glob
import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from skimage.io import imread
from matplotlib.collections import PatchCollection
from matplotlib.patches import Rectangle
from skimage.segmentation import ma... | {"hexsha": "a3e29c7780fe3eae0bd1fbc7c1bfad193e67ec37", "size": 3203, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/draw_boxes.py", "max_stars_repo_name": "thavlik/machine-learning-portfolio", "max_stars_repo_head_hexsha": "352bc97ba17e4d160a04a1a91da5be973c219c34", "max_stars_repo_licenses": ["Apache-2.0",... |
"""
A module with various plotting utilities
"""
import numpy as np
import matplotlib.pyplot as plt
import os,os.path,shutil
def setfig(fig,**kwargs):
"""
Sets figure to 'fig' and clears; if fig is 0, does nothing (e.g. for overplotting)
if fig is None (or anything else), creates new figure
"""
... | {"hexsha": "feefd41a16b13ea357a312bfef2793226893e98d", "size": 1465, "ext": "py", "lang": "Python", "max_stars_repo_path": "plotutils.py", "max_stars_repo_name": "timothydmorton/fpp-old", "max_stars_repo_head_hexsha": "6a2175d4bd9648b61c244c7463148632f36de631", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul... |
[STATEMENT]
lemma prv_eql_tms_times:
"prv (eql (tms (Num m) (Num n)) (Num (m * n)))"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. prv (eql (tms (Num m) (Num n)) (Num (m * n)))
[PROOF STEP]
proof(induct n)
[PROOF STATE]
proof (state)
goal (2 subgoals):
1. prv (eql (tms (Num m) (Num 0)) (Num (m * 0)))
2. \<And>n. ... | {"llama_tokens": 2140, "file": "Syntax_Independent_Logic_Deduction_Q", "length": 16} |
"""Old machinery for raster handling."""
import os
from typing import Tuple
import numpy as np
import gdal
import osr
# TODO this probably does not work; would be best rewritten using rasterio
class World:
def __init__(self, xcell, yrot, xrot, ycell, xorigin, yorigin):
self.xcell = xcell
self.y... | {"hexsha": "319d85ec7350475cb0c621931ace327e215d6f02", "size": 3086, "ext": "py", "lang": "Python", "max_stars_repo_path": "mobilib/raster.py", "max_stars_repo_name": "simberaj/mobilib", "max_stars_repo_head_hexsha": "ae350d095a34f53704bd4aaaf7f45e573bda779a", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.