text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
import torch import torch.nn as nn import torch.nn.functional as F import cv2 import numpy as np class CNN_Network(nn.Module): def __init__(self): super(CNN_Network, self).__init__() self.layer1 = nn.Sequential( nn.Conv2d(1, 16, stride=1, kernel_size=3, padding=1), ...
{"hexsha": "7c07c7cbd835e874a30b103bb94f876c0a41567f", "size": 1966, "ext": "py", "lang": "Python", "max_stars_repo_path": "Pytorch/Verification code identification/test.py", "max_stars_repo_name": "wu-huipeng/Deep-Learning", "max_stars_repo_head_hexsha": "b601d4843877bb795dac28447600aa715c8481a2", "max_stars_repo_lice...
%!TEX root = ../report.tex % % Objectives % \section{Objectives} \label{sec:objectives} % ~1 page %Clearly explain the project objectives. % Develop a framework that allows... % Develop an app for a smart place, abstracting % beacons, think only in POI and their meaning % Users only need one app for any smart plac...
{"hexsha": "31cf1de194390a5daa6cc31902e8236318141b93", "size": 4010, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "sections/4-objectives.tex", "max_stars_repo_name": "samfcmc/master-project", "max_stars_repo_head_hexsha": "67ff67c69a4208146ac37cdae0bb4140ee794897", "max_stars_repo_licenses": ["MIT"], "max_stars_...
\documentclass[dissertation.tex]{subfiles} \begin{document} \chapter{Motion Planning}\index{Motion planning} The problem of \emph{motion planning} consists in determining a set of low level tasks, given an high level goal to be fulfilled \cite{choset}. For instance, a classic motion planning problem is the \emph{piano ...
{"hexsha": "507ef823ca76fc1bc6b11a161ea4b7a5a2846f8a", "size": 10721, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "chapters/pathPlanning.tex", "max_stars_repo_name": "trianam/dissertation", "max_stars_repo_head_hexsha": "fb94ad42341d2277e775233036ded0e36e787e8b", "max_stars_repo_licenses": ["CC0-1.0"], "max_sta...
# Copyright (c) 2022 PaddlePaddle Authors. 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": "13f146f6fd741700a313e57d170bdf15fe2f61dc", "size": 4253, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/paddle/fluid/tests/unittests/ipu/test_ipu_shard_api_ipu.py", "max_stars_repo_name": "L-Net-1992/Paddle", "max_stars_repo_head_hexsha": "4d0ca02ba56760b456f3d4b42a538555b9b6c307", "max_stars...
############################################################################### ############################################################################### ############################################################################### ''' THIS IS THE BEATAML ONLY TRAIN FILE ''' ####################################...
{"hexsha": "c73cf51e037da9350d0973a7054b7b50e61dd26b", "size": 3495, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/FFNN_MODEL_001/train.py", "max_stars_repo_name": "nathanieljevans/DEEP_DRUG_SH", "max_stars_repo_head_hexsha": "52c3c8ef311aac47e0367f6d7203945af2f4575a", "max_stars_repo_licenses": ["MIT"]...
""" Root system data for (untwisted) type F affine """ #***************************************************************************** # Copyright (C) 2008-2009 Daniel Bump # Copyright (C) 2008-2009 Justin Walker # Copyright (C) 2008-2009 Nicolas M. Thiery <nthiery at users.sf.net>, # # Distributed un...
{"hexsha": "8677b3cf274be89efa697759e1322ce3ac3d6470", "size": 4603, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/sage/combinat/root_system/type_F_affine.py", "max_stars_repo_name": "switzel/sage", "max_stars_repo_head_hexsha": "7eb8510dacf61b691664cd8f1d2e75e5d473e5a0", "max_stars_repo_licenses": ["BSL-1...
import torch import numpy as np import cv2 import face_alignment import ssl import matplotlib.pyplot as plt ssl._create_default_https_context = ssl._create_unverified_context from time import time BEARD = 0 BROW = 1 NOSE = 2 EYE = 3 MOUTH = 4 class FaceAlignmentPreprocessor: proc_type = "face" ...
{"hexsha": "8eea2e1d0f2913023d88341e97f2de27ac66aca8", "size": 8157, "ext": "py", "lang": "Python", "max_stars_repo_path": "Data/preprocessors/face_alignment_preprocessor.py", "max_stars_repo_name": "CasualGANPapers/Make-A-Scene", "max_stars_repo_head_hexsha": "4457ef91ccf4a345f3178cf821f12b49df616b6d", "max_stars_repo...
# -*- coding: utf-8 -*- """Plot a summary of results from the BDA pipeline.""" import numpy from os.path import join import matplotlib.pyplot as plt import pickle from .utilities import adev import copy def _load_gains(settings): sim_dir = settings['path'] gains_file = '%s_%s.gains.pickle' % (settings['ms_na...
{"hexsha": "5a61259284e4d6eb91f41ce1929b9f3a524f3340", "size": 8483, "ext": "py", "lang": "Python", "max_stars_repo_path": "pybda/plot_gains.py", "max_stars_repo_name": "OxfordSKA/bda", "max_stars_repo_head_hexsha": "0f92bead29a26d18fddaf5eb2ecd6f6d92401c2d", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_coun...
from amuse.test import amusetest from amuse.units import units from amuse.units import constants from amuse.units import nbody_system import numpy import time import sys from amuse.datamodel import Particles from amuse.datamodel import Particle from amuse.couple import encounters #codes to use from amuse.community....
{"hexsha": "38b09d13ac16b9900d08be54212a045533e30015", "size": 59046, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/codes_tests/test_encounters.py", "max_stars_repo_name": "joshuawall/amuse", "max_stars_repo_head_hexsha": "c2034074ee76c08057c4faa96c32044ab40952e9", "max_stars_repo_licenses": ["Apache-2.0"...
import numpy as np from scipy import interpolate import xarray as xr try: from .process_data import data except ImportError: from process_data import data import matplotlib.pyplot as plt import seaborn as sns sns.set() w_m_s = data.w_m_s # type: xr.DataArray ### Figure: Histogram of all vertical speeds fi...
{"hexsha": "c3ae8ac0c4de945f5b791bd8fcbb9d7563058bc1", "size": 2714, "ext": "py", "lang": "Python", "max_stars_repo_path": "CONUS/Gusts/analysis_vertical_velocity_at_altitude.py", "max_stars_repo_name": "peterdsharpe/Wind_Analysis", "max_stars_repo_head_hexsha": "7df9c34b0a355a3405ea6cecede0641e86b5b3ac", "max_stars_re...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Apr 22 16:31:52 2021 @author: bdobkowski """ import numpy as np from matplotlib import pyplot as plt def plot(x, y, ttl=None, save_path=None, correction=1.0, line=False): plt.figure() plt.scatter(x, y) plt.xlabel('x1') plt.ylabel('y') ...
{"hexsha": "a8d4162252f39e8a25330479d5392b0b67d86dad", "size": 2780, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "bdobkowski/2020_Olympics_Predictions", "max_stars_repo_head_hexsha": "7e22bb2c6ff4c1b329fdc9de1012d179ff20f6b6", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
// // Copyright (c) 2002-2018 WEINZIERL ENGINEERING GmbH // All rights reserved. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT...
{"hexsha": "d482b4fe4daf2ed2bc5048c399a5dacb36666afe", "size": 5435, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "kdrive/src/baos/BaosEvent.cpp", "max_stars_repo_name": "weinzierl-engineering/baos", "max_stars_repo_head_hexsha": "306acc8e86da774fdeecec042dcf99734677fdc0", "max_stars_repo_licenses": ["MIT"], "ma...
//============================================================================= // XOP SPECIFIC RESOURCE : XOPF 1100 - XOP EXTERNAL FUNCTIONS DEFINITION //============================================================================= // // XFUNC input parameters types : // - NT_FP64 // - HSTRING_TYPE // - WA...
{"hexsha": "27832130a119a1231db93b3d76408b3d18ebb138", "size": 4809, "ext": "r", "lang": "R", "max_stars_repo_path": "src/XDK_XOPF_1100_MacOS.r", "max_stars_repo_name": "t-b/igorpro-binding", "max_stars_repo_head_hexsha": "9b9d3568d37bc0db5a107d019854e529e19008df", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_star...
# -*- coding: utf-8 -*- """Curstom filter library""" from .pyon import * import numpy as np import cv2 ScharrX = np.array([ [3, 0, -3], [10, 0, -10], [3, 0, -3] ]) ScharrY = np.array([ [3, 10, 3], [0, 0, 0], [-3, -10, -3] ]) ############################################################### # ...
{"hexsha": "2e7e6409a9bf83b16e2a3b6d25f1cb468e4eac05", "size": 2294, "ext": "py", "lang": "Python", "max_stars_repo_path": "WolfEyes/Utils/Filters.py", "max_stars_repo_name": "TBIproject/WolfEye", "max_stars_repo_head_hexsha": "adaa604ed07dcef81162f59fe4f6fb5f2e9b6f09", "max_stars_repo_licenses": ["BSD-3-Clause"], "max...
import numpy as np import tensorflow.compat.v1 as tf from ..graph import OperationGraph from ..operations import Operation from ..utils import ONNX_TO_TENSORFLOW_DTYPE from ..visitors import OperationVisitor class TensorflowConverterError(Exception): pass def convert(op_graph: OperationGraph): converter = ...
{"hexsha": "ad25289fb2f68a9b8597d7c4d72ebae50412855c", "size": 24872, "ext": "py", "lang": "Python", "max_stars_repo_path": "dnnv/nn/converters/tensorflow.py", "max_stars_repo_name": "nathzi1505/DNNV", "max_stars_repo_head_hexsha": "16c6e6ecb681ce66196f9274d4a43eede8686319", "max_stars_repo_licenses": ["MIT"], "max_sta...
[STATEMENT] lemma mismatch_snd: "hd (f\<^sub>m \<one>) = c\<^sub>1" [PROOF STATE] proof (prove) goal (1 subgoal): 1. hd (f\<^sub>m \<one>) = c\<^sub>1 [PROOF STEP] proof- [PROOF STATE] proof (state) goal (1 subgoal): 1. hd (f\<^sub>m \<one>) = c\<^sub>1 [PROOF STEP] have "(f [bin1,bin0])!\<^bold>|\<alpha>\<^bold>| = ...
{"llama_tokens": 1095, "file": "Combinatorics_Words_Binary_Code_Morphisms", "length": 10}
import gym import numpy as np from gym import spaces from itertools import product import costaware.utils.defaults as defaults # Synthetic cost-aware MDP environment def dict_to_fun(dictionary): """ Wraps a function around a dictionary. Parameters ---------- dictionary: a dict Returns ...
{"hexsha": "2eedd916a5acf5cce4da268f3f42a519c04b8419", "size": 3334, "ext": "py", "lang": "Python", "max_stars_repo_path": "costaware/core/envs.py", "max_stars_repo_name": "wessle/costaware", "max_stars_repo_head_hexsha": "151502308411528eaa703d353d138fc809e59d8e", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
import torch import torch.nn as nn import numpy as np from numpy.random import beta from torch.nn.functional import one_hot class MixUp(nn.Module): def __init__(self, batch_dim=0): super(MixUp, self).__init__() self.batch_dim = batch_dim self.reset() def reset(self): ...
{"hexsha": "816b0983baaf9a938b539b947c2aaf08f37d9fe6", "size": 3381, "ext": "py", "lang": "Python", "max_stars_repo_path": "mixup.py", "max_stars_repo_name": "schokoro/torchutils", "max_stars_repo_head_hexsha": "bcab35e8c943a1fcd4550fbb023188fa5d688663", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_st...
program interop implicit none character notes(2200)*50 character c*10 c = '0123456789' notes(1)='abcdefghijklmnopqrstuvwxyzAbcdefghijklmnopqrstuvwx' call interop_char_array(notes) call interop_char(c) end program
{"hexsha": "cb6393812ea1e13595429d2d326df45bb3a56301", "size": 307, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "test/Fortran/interop_f.f", "max_stars_repo_name": "HydrologicEngineeringCenter/heclib", "max_stars_repo_head_hexsha": "dd3111ee2a8d0c80b88d21bd529991f154fec40a", "max_stars_repo_licenses": ["MIT"],...
import autogate import sympy def test1(): t = sympy.Symbol('t', real=True) circuit = autogate.Circuit() # circuit.add_gate(gate=autogate.GateLibrary.H(), time=0, qubits=(0,)) # circuit.add_gate(gate=autogate.GateLibrary.H(), time=0, qubits=(1,)) # circuit.add_gate(gate=autogate.GateLibrary.cZ...
{"hexsha": "67905d4d47f78ceba45eabb32e9ec26f38445332", "size": 810, "ext": "py", "lang": "Python", "max_stars_repo_path": "sandbox/test.py", "max_stars_repo_name": "qcware/autogate", "max_stars_repo_head_hexsha": "61d40b56aee374b97c5b3c32b4c1874756c87832", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m...
from __future__ import absolute_import, division, print_function import numpy as np import os __all__ = ["import_psyphysdata_mc", "importfromstandardcsv_moz", "combineconditions_mc", "array2tupleofvectors", "findfilenameindirectory", "import_subjectdatainfo_mc"] ...
{"hexsha": "357f4ee13702f2fca6cac807b3f0b3b08ca26876", "size": 7073, "ext": "py", "lang": "Python", "max_stars_repo_path": "MC/MC.py", "max_stars_repo_name": "mert-ozkan/MotionCoherence", "max_stars_repo_head_hexsha": "90bda134ff35f85bbde2daab78be6987b1ce77d3", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
""" Script for exploring intermodel differences in the Arctic after removing the annual mean Author : Zachary M. Labe Date : 19 July 2021 Version : 1 """ ### Import packages import sys import math import time import matplotlib.pyplot as plt import numpy as np import pandas as pd import scipy.stats as st...
{"hexsha": "135dd87773861652f0788584441e361177a0ad51", "size": 10414, "ext": "py", "lang": "Python", "max_stars_repo_path": "Scripts/plot_IntermodelDifferences_GLO_Arctic.py", "max_stars_repo_name": "zmlabe/ModelBiasesANN", "max_stars_repo_head_hexsha": "df28842a8594870db3282682b1261af5058af832", "max_stars_repo_licens...
from imutils.object_detection import non_max_suppression import numpy as np import cv2 import glob import os import pytesseract def EAST_text_detector(original, image, confidence=0.25): # Set the new width and height and determine the changed ratio (h, W) = image.shape[:2] (newW, newH) = (640, 640) rW...
{"hexsha": "f1503c46bab824fa41ad83b6e4e576185e8f88e8", "size": 9028, "ext": "py", "lang": "Python", "max_stars_repo_path": "text_detection/EAST_text_detection.py", "max_stars_repo_name": "may3rd/pid_detector", "max_stars_repo_head_hexsha": "c5f84c0d1cbf7c5598f44819b279a066dea0e5b8", "max_stars_repo_licenses": ["MIT"], ...
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import numpy as np import numpy.ma as ma from netCDF4 import Dataset import sys sys.path.append("..") from data_prepro...
{"hexsha": "76431dbf349aec613d33597b9d5e6b0f0165272d", "size": 3365, "ext": "py", "lang": "Python", "max_stars_repo_path": "data_preprocessing/rescaling/us_counties.py", "max_stars_repo_name": "facebookresearch/Context-Aware-Representation-Crop-Yield-Prediction", "max_stars_repo_head_hexsha": "9c29459e9521303f40d9d6aaa...
""" Copyright 2018-2019 CS Systèmes d'Information 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 wr...
{"hexsha": "825dba37f704578a5537a1a7cdcc7a727f8d613b", "size": 13576, "ext": "py", "lang": "Python", "max_stars_repo_path": "paa/tests/test_paa.py", "max_stars_repo_name": "IKATS/op-paa", "max_stars_repo_head_hexsha": "9090697bc9ee9901c057ee030b3c3fb22a9f1d74", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_coun...
""" Author: D. Knowles Desc : generalized PID control """ import RPi.GPIO as GPIO import time import numpy as np class RGB(): def __init__(self): GPIO.setmode(GPIO.BOARD) self.SDI = 37 self.RCLK = 38 self.SRCLK = 40 GPIO.setwarnings(False) #don't show setup warnings GPIO.setup(self.SDI, GPIO.OUT, initi...
{"hexsha": "93d73fd33b7891d24343695a6bc65587737e6056", "size": 1980, "ext": "py", "lang": "Python", "max_stars_repo_path": "componentTesting/rgb_indicator.py", "max_stars_repo_name": "betaBison/umnitsa_rpi", "max_stars_repo_head_hexsha": "c9a225781d91c1fdf16eb2234af8ff1784876301", "max_stars_repo_licenses": ["MIT"], "m...
#################################################################################################### # # Intro v = "1.0.3" f0 = """ .,+%####%+,. .:#MMMMMMMMMMM@%, :@MMMMMMMMMMMMMMMM#: ,#MMMMMMMMMMMMMMMMMM...
{"hexsha": "5cfb03c087c2c1ee18539eefac1b2a39c831a353", "size": 14773, "ext": "py", "lang": "Python", "max_stars_repo_path": "SourceCode/Rust-Code-Raid-Bot.py", "max_stars_repo_name": "NapoII/Rust-Code-Raid-Bot", "max_stars_repo_head_hexsha": "25cca8d706dd04c9e8117f8510c6222c468afe74", "max_stars_repo_licenses": ["Unlic...
from scipy.stats import binom from modules.utils import tolist from matplotlib.pyplot import * class mathcadApi: def rbinom(self, size, maxNum, p): return [dig for dig in binom.rvs(n=maxNum,p=p,size=size)] def rnorm(self, m, mew, sigma): return np.random.normal(mew, sigma, m) def stack(s...
{"hexsha": "6754fb1dfea833d15c58c2fd156c606fa25710df", "size": 2986, "ext": "py", "lang": "Python", "max_stars_repo_path": "modules/api.py", "max_stars_repo_name": "madwayz/Communication-Channel", "max_stars_repo_head_hexsha": "6bbf635d2c61ee306fadeb341c1f28bf9e0dfde6", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
[STATEMENT] lemma list_add_Cons[simp]: "(x#xs) + (y#ys) = (x+y)#(xs+ys)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. x # xs + (y # ys) = (x + y) # xs + ys [PROOF STEP] by(auto simp:list_add_def)
{"llama_tokens": 102, "file": null, "length": 1}
from functools import partial import numpy as np import torch import kruskals_cpp def get_root_pytorch(parents, node): # find path of objects leading to the root path = [node] root = parents[node] while root != path[-1]: path.append(root) root = parents[root] # compress the path and ...
{"hexsha": "9f6f35d10577b64630beacb50429a6341e82d197", "size": 8822, "ext": "py", "lang": "Python", "max_stars_repo_path": "core/kruskals/kruskals.py", "max_stars_repo_name": "choidami/sst", "max_stars_repo_head_hexsha": "87e376f1451a7a11f29f21abeef1ade1257ea189", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import torch import torch.nn as nn import torch.optim as optim import numpy as np from tqdm import tqdm from matplotlib import pyplot as plt from keras.datasets.mnist import load_data # load (and normalize) mnist dataset (trainX, trainy), (testX, testy) = load_data() trainX = (np.float32(trainX) - 127.5) / 127.5 def...
{"hexsha": "09240c08d790233c106e35288c299d19268af239", "size": 4071, "ext": "py", "lang": "Python", "max_stars_repo_path": "Generative_Adversarial_Networks/GANs.py", "max_stars_repo_name": "MaximeVandegar/Papers-in-100-Lines-of-Code", "max_stars_repo_head_hexsha": "7772bd84f83db995ad0a609e797742d8e8703f4b", "max_stars_...
from utils import ALIVE, DEAD, kernel_3x3 import numpy as np from scipy import signal class Rules(): def game_live(matrix: np.array) -> np.array: nb_neighbours = signal.convolve2d(matrix, kernel_3x3, mode='same') for x in range(matrix.shape[0]): for y in range(matrix.shape[1]): ...
{"hexsha": "30dbbae0b60de4c67b871a5944dd16b17f4eae16", "size": 650, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/rules.py", "max_stars_repo_name": "Ermite28/cellular_automaton", "max_stars_repo_head_hexsha": "9ef3bcdaac979388853a65ed4f50a6259529c67b", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
# https://www.hackerrank.com/challenges/stockprediction # http://stackoverflow.com/questions/1989992/predict-stock-market-values/1990555#1990555 import numpy as np m,k,d = [float(i) for i in input().split()] k,d = int(k), int(d) #print(m,k,d) stock_names = [] stock_amount = [] stock_prices = [] for _ in range(k): ...
{"hexsha": "142c77acd8a3b2aaf5274e7d26c36b2aba2eb1bb", "size": 2846, "ext": "py", "lang": "Python", "max_stars_repo_path": "hackerrank/002_stocks_predictions.py", "max_stars_repo_name": "urakozz/ml-competitions", "max_stars_repo_head_hexsha": "fdfebe16f878c8683097452a73e345545c24dae9", "max_stars_repo_licenses": ["MIT"...
module mod_monolis_fact_MF use mod_monolis_prm use mod_monolis_com use mod_monolis_mat use mod_monolis_fact_MF_11 implicit none contains subroutine monolis_init_MF_inner(monoPRM, monoCOM, monoMAT) implicit none type(monolis_prm) :: monoPRM type(monolis_com) :: monoCOM type(monolis_mat_LDU...
{"hexsha": "c523d80efab7061e7d9dc79528d27d56123646be", "size": 2193, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/solver/factorize/fact_MF.f90", "max_stars_repo_name": "nqomorita/monolis", "max_stars_repo_head_hexsha": "55d746a480fd7b9639216be19e0a253e6137dfe9", "max_stars_repo_licenses": ["MIT"], "max_...
# ------------------------------------------------------------ # Filter functions # ------------------------------------------------------------ """ modal_filter!(u, args...; filter) Filter of modal solutions - @arg u: 1D modal solution - @arg args...: filter parameters including strength, norm, etc. - @arg filt...
{"hexsha": "6b61a7e1cf81939b19f67c28064ebae358432947", "size": 4765, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Reconstruction/recon_filter.jl", "max_stars_repo_name": "vavrines/KitBase.jl", "max_stars_repo_head_hexsha": "c7b835e8151828c4065691c9882e42335a237ec1", "max_stars_repo_licenses": ["MIT"], "max...
20080202 14:35:52 nbsp Instead of removing comments from New Fashion Salon maybe you could have suggested archiving those comments as relating to an employee who is no longer there? Users/JasonAller 20080203 08:49:38 nbsp How about putting those comments back and including the following after them: {{{(Note this user...
{"hexsha": "0d14c9c3813f251357ecd3d3d359a4ad7269c975", "size": 1592, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "lab/davisWiki/JohnWong.f", "max_stars_repo_name": "voflo/Search", "max_stars_repo_head_hexsha": "55088b2fe6a9d6c90590f090542e0c0e3c188c7d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
[STATEMENT] lemma rel_optionT_mono [relator_mono]: "rel_optionT A \<le> rel_optionT B" if "A \<le> B" [PROOF STATE] proof (prove) goal (1 subgoal): 1. rel_optionT A \<le> rel_optionT B [PROOF STEP] by(simp add: rel_optionT_def optionT.rel_mono that)
{"llama_tokens": 109, "file": "Monomorphic_Monad_Monomorphic_Monad", "length": 1}
\documentclass{article} %\usepackage{fullpage} %\usepackage[top=1in, bottom=1in, left=1cm,right=1cm]{geometry} \usepackage[top=.75in, bottom=.75in, left=.75in,right=.75in]{geometry} \usepackage{fancyhdr} \usepackage{lastpage} \usepackage{color} \usepackage[colorlinks,urlcolor={blue}]{hyperref} \begin{document} \fancy...
{"hexsha": "dd88e8d8280d37f48e3941e8ec50dc0959981eb5", "size": 4618, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "archive/w16/hw/c4cs-wk2-homework.tex", "max_stars_repo_name": "yuqijin/c4cs-2.github.io", "max_stars_repo_head_hexsha": "b7921a0f480d2e0f7747eea1662b24bd90fde500", "max_stars_repo_licenses": ["CC-BY...
import numpy as np import glob import h5py from sklearn.utils import shuffle import string import cv2 class BatchLoader: def __init__(self, data_dictionary: dict, network_dictionary: dict, mode: string): """ Batch processing utility that reads HDF5 data files and creates training a...
{"hexsha": "26fca5d161a1972b1ef85952fe142375fc6e3c6e", "size": 16026, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/data_loader.py", "max_stars_repo_name": "miniautonomous/trainer_ai", "max_stars_repo_head_hexsha": "953b6c22b65e249a9d7595d15c78c24c12bc254e", "max_stars_repo_licenses": ["MIT"], "max_stars...
from pybullet_envs.robot_bases import MJCFBasedRobot import numpy as np class WalkerBase(MJCFBasedRobot): def __init__(self, fn, robot_name, action_dim, obs_dim, power): MJCFBasedRobot.__init__(self, fn, robot_name, action_dim, obs_dim) self.power = power self.camera_x = 0 self.start_pos_x, self.sta...
{"hexsha": "6c13baafc504ddd16be3a20e44f8b1d52e56b7f1", "size": 6246, "ext": "py", "lang": "Python", "max_stars_repo_path": "body/walker.py", "max_stars_repo_name": "polbebe/temporary", "max_stars_repo_head_hexsha": "ea7b8913c034e9acd772a375ee6bb17fef2a85c7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ...
from __future__ import division from __future__ import print_function from __future__ import absolute_import import os import shutil import random import numpy as np from glob import glob import cv2 def preprocess(image): # use ImageNet preprocessing (since ResNet is trained on it) #scale to 256 #center ...
{"hexsha": "aaa4da242bd8803ed148889f6c51d09fd07e0c0d", "size": 5256, "ext": "py", "lang": "Python", "max_stars_repo_path": "data.py", "max_stars_repo_name": "VadymZhernovyi/cnn_finetune", "max_stars_repo_head_hexsha": "e1f962880844f2222ace452f0b5b84dee78436b1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
"""Collect the water balance for a given today""" import os import datetime import multiprocessing import sys import numpy as np import pandas as pd from tqdm import tqdm from pyiem import dep as dep_utils from pyiem.util import get_dbconn import geopandas as gpd from rasterstats import zonal_stats from affine import ...
{"hexsha": "07ac61492b721d2dd90094b84c1aca4a832f9f0c", "size": 6349, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/RT/harvest_wb.py", "max_stars_repo_name": "wils0674/dep", "max_stars_repo_head_hexsha": "f5dd90516268cf134f9da16c8031d0a0454b0caf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
# Import our favorite modules import numpy as np import matplotlib.pyplot as plt import seaborn as sns # Load image processing utilities import skimage.io import skimage.filters import skimage.morphology import skimage.segmentation # Load an example image im = skimage.io.imread('data/lacI_titration/O2_delta_phase_pos...
{"hexsha": "e2d42918695cff20e5ab3b3e02991bb0c42bf413", "size": 1869, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/inclass/project_part1_in_class.py", "max_stars_repo_name": "RPGroup-PBoC/gist_pboc_2017", "max_stars_repo_head_hexsha": "2c2f5134e221cf174c92a933ab1e5f71b2eb8b17", "max_stars_repo_licenses": ...
# Necessary imports import numpy as np from constants import GOAL_POSITION_OF_AGENT from src.Agent import Agent from src.helper import parent_to_child_dict, sense_current_node, find_block_while_inference # Example inference class class TheExampleInferenceAgent(Agent): def __init__(self): super().__init_...
{"hexsha": "be93bc03cb8311a13e93bb1440067b4a38cda660", "size": 2327, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/TheExampleInferenceAgent.py", "max_stars_repo_name": "Utsav-Patel/Partial-Sensing", "max_stars_repo_head_hexsha": "cfa21ca2e1c5a7c4cbfd8675b805f62b5237cfee", "max_stars_repo_licenses": ["MIT"]...
# Copyright (c) 2018: Matthew Wilhelm & Matthew Stuber. # This code is licensed under MIT license (see LICENSE.md for full details) ############################################################################# # EAGO # A development environment for robust and global optimization # See https://github.com/PSORLab/EA...
{"hexsha": "0022f4c5d33f2de6a3695f1eecf9c25704906864", "size": 15350, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/eago_semiinfinite/subproblems.jl", "max_stars_repo_name": "MatthewStuber/EAGO", "max_stars_repo_head_hexsha": "fb9af0cbdfed8fd9309c8fc98c1e4f04bc4c6591", "max_stars_repo_licenses": ["MIT"], "m...
using CxxWrap using libint_jll pref = CxxWrap.prefix_path() path = libint_jll.Libint2_path run(`rm -rf CMakeCache.txt CMakeFiles lib/libLints.*`) run(pipeline(`sed "s|JLLPATH|$path|g" _CMakeLists.txt`,`tee CMakeLists.txt`)) run(`cmake -DCMAKE_PREFIX_PATH=$pref .`) run(`cmake --build .`)
{"hexsha": "5d9ec0496b27b516be4df984b360cffbb4b06eb1", "size": 290, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "build.jl", "max_stars_repo_name": "mdav2/Lints_CXX", "max_stars_repo_head_hexsha": "9d27b41b29fc4bb4f19fe4005a6949dec7ff38b9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars...
# -*- coding: utf-8 -*- import keras.backend as K import tensorflow as tf from keras import initializers, layers #from sklearn.model_selection import train_test_split import pandas as pd from keras import layers, models, optimizers from keras import backend as K from keras.utils import to_categorical import numpy as ...
{"hexsha": "23abf488713b8988ba2f0153d729b25b22c370c7", "size": 7316, "ext": "py", "lang": "Python", "max_stars_repo_path": "capsulenet.py", "max_stars_repo_name": "MuAuan/capsNet", "max_stars_repo_head_hexsha": "095f35e04347ace009e53ea1993770fdee18f28d", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max...
''' Created on Nov 1, 2017 @author: cef hp functions for plotting/visualizing data ''' # standard imports ------------------------------------------------------------- import os, sys, re, logging from collections import OrderedDict import pandas as pd import numpy as np mod_logger = logging.getLogge...
{"hexsha": "2f59b1688ac3cff94d536e17b3c74b77b3654d9e", "size": 42261, "ext": "py", "lang": "Python", "max_stars_repo_path": "1.0.0/hp/plot.py", "max_stars_repo_name": "cefect/SOFDA0", "max_stars_repo_head_hexsha": "62c5566d0f388a5fd76a070ceb5ee3e38b0d7463", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "...
import itertools import datetime as dt years = [[2012], [2013], [2014], [2015], [2016], [2017], [2018], [2019], [2020]] dates = [ [[1, 2], [1, 16], [2, 20], [4, 6], [5, 28], [7, 4], [9, 3], [11, 22], [12, 25]], [[1, 1], [1, 21], [2, 18], [3, 29], [5, 27], [7, 4], [9, 2], [11, 28], [12, 25]], [[1, 1], [1, 2...
{"hexsha": "0b8ce5cd27153d417167338e8379e24abb009a46", "size": 3932, "ext": "py", "lang": "Python", "max_stars_repo_path": "NetworkVariables_Analysis/Aux_funcs.py", "max_stars_repo_name": "PQJHU/NetworksofNews_CrossSectionalReturns", "max_stars_repo_head_hexsha": "e3500c2126f382b1a4dd99dbb09170669631b5eb", "max_stars_r...
# -*- coding: utf-8 -*- """ @author: alexyang @contact: alex.yang0326@gmail.com @file: inference.py @time: 2018/4/18 9:03 @desc: """ import os import sys import pickle import numpy as np from gen_data import read_data import tensorflow as tf os.environ['CUDA_VISIBLE_DEVICES'] = '2' def pickle_load(data_path)...
{"hexsha": "8ee400c6fc9e4dedeaeb89bc110bcced697e5a7a", "size": 3347, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/subject_network/sub_typevec/test.py", "max_stars_repo_name": "AlexYangLi/tf_CFO", "max_stars_repo_head_hexsha": "f56a7276016f0fcc48ebd0cd32d4f095db4c341b", "max_stars_repo_licenses": ["MIT"...
""" Trains classification model. Saves best performing model. """ import matplotlib.pyplot as plt import nltk nltk.download('punkt') nltk.download('stopwords') nltk.download('averaged_perceptron_tagger') import numpy as np import pandas as pd import pdb import pickle import os os.environ['NUMEXPR_MAX_THREADS'] = '16' ...
{"hexsha": "24d8d9cd6787f723394d8b440c92c85a3a76c130", "size": 7288, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/train_classifier.py", "max_stars_repo_name": "alexsiebelmckenna/DisasterResponse", "max_stars_repo_head_hexsha": "caf4ec2f7c4d888f80f4a1d01cbdd4c2cf78f267", "max_stars_repo_licenses": ["MIT...
#================================# #=== 3D expansion simulations ===# #================================# using Pkg Pkg.activate(".") using FourierGPE, Test ## density with Makie using Makie, AbstractPlotting function dense(phi) ψm = xspace(phi,sim) density = abs2.(ψm) pmax = maximum(density) return de...
{"hexsha": "e8b06e086837fbfbf37547107fdab4abae3f3840", "size": 7050, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "_research/test_MKL_3d.jl", "max_stars_repo_name": "srivatsabprasad/FourierGPE.jl", "max_stars_repo_head_hexsha": "fec6571760f75a1fe135b8ac8548061b09aac626", "max_stars_repo_licenses": ["MIT"], "max...
import numpy as np import tensorflow as tf from sklearn.metrics import roc_auc_score from sklearn.datasets import make_classification from keras.models import Sequential, Model from keras.layers import Input, Dense, Flatten, BatchNormalization from keras.layers import Conv2D, MaxPool2D from keras.utils import np_utils ...
{"hexsha": "0ade41d597673d455ebe3b94b7440cbe3f5d03ea", "size": 2652, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils.py", "max_stars_repo_name": "belya/troll2vec", "max_stars_repo_head_hexsha": "3c77d52db56c2a4e9cab7249db7c906925f562ee", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 2, "max_stars_...
[STATEMENT] lemma (in Group) Qmpgsurjec:"\<lbrakk>G \<triangleright> H; G \<triangleright> N; H \<subseteq> N \<rbrakk> \<Longrightarrow> gsurj\<^bsub>(G / H),(G / N)\<^esub> (Qm\<^bsub>G H,N\<^esub>)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>G \<triangleright> H...
{"llama_tokens": 1649, "file": "Group-Ring-Module_Algebra3", "length": 9}
''' Small 2D matrix class to wrap numpy arrays in order to have to implement things myself. ''' import numpy import numpy.random from typing import Union class Matrix(): def __init__(self, rows: int, columns: int, content: Union[int, str] = 0): ''' Create a new 2D matrix filled with zeros. ...
{"hexsha": "0d8d8a1ea315aa4db20d2f5d64672d4d9be1e64b", "size": 3472, "ext": "py", "lang": "Python", "max_stars_repo_path": "algorithms_for_engineering/matrix.py", "max_stars_repo_name": "ricdezen/random-algo-stuff", "max_stars_repo_head_hexsha": "ef32fc786dca911b0f3f79e787967e462e863fcb", "max_stars_repo_licenses": ["M...
subroutine julian (year, month, day, hour, minute, second, julian_date) implicit none integer, intent(in) :: year, month, day, hour, minute real*8, intent(in) :: second real*8, intent(out) :: julian_date real*8 UT, Term1 integer Term2, Term3 Term1 = 367.000 * year Term2 = INT((7 * (y...
{"hexsha": "6b52963ba677b070897b8886b18939ff56928d73", "size": 2627, "ext": "f95", "lang": "FORTRAN", "max_stars_repo_path": "src/dates.f95", "max_stars_repo_name": "aschleg/astropynamic", "max_stars_repo_head_hexsha": "da0e652509853d9c1fda53b4c21055ce209cef07", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu...
"""Miscellaneous stuff that doesn't really fit anywhere else.""" import os from textwrap import fill, dedent # if you use # filldedent(''' # the text''') # a space will be put before the first line because dedent will # put a \n as the first line and fill replaces \n with spaces # so we strip off any lead...
{"hexsha": "06f786adc15a727c0d97e8581891207eb1a307c9", "size": 4450, "ext": "py", "lang": "Python", "max_stars_repo_path": "sympy/utilities/misc.py", "max_stars_repo_name": "eriknw/sympy", "max_stars_repo_head_hexsha": "b7544e2bb74c011f6098a7e886fd77f41776c2c4", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_c...
#!/usr/bin/env python from airsim import MultirotorClient, YawMode, DrivetrainType, LandedState, MultirotorState import numpy as np import os from airsim.types import RotorStates from msgpackrpc.future import Future from airsim_utils.generate_settings import EMPTY_NAMESPACE class MyMultirotorClient(MultirotorClient): ...
{"hexsha": "b230a35f73a5dc869078a920a999ad229ada0e2d", "size": 5347, "ext": "py", "lang": "Python", "max_stars_repo_path": "robot_control/robot_control/airsim/my_multirotor_client.py", "max_stars_repo_name": "blakermchale/robot-control", "max_stars_repo_head_hexsha": "b2d0109950d5abb4b12055ce7a3645ca9cc07b20", "max_sta...
LOGICAL FUNCTION WORD(KEYWRD,TESTWD) CHARACTER KEYWRD*80, TESTWD*(*) WORD=.FALSE. 10 J=INDEX(KEYWRD,TESTWD) IF(J.NE.0)THEN 20 IF(KEYWRD(J:J).NE.' ')GOTO 30 J=J+1 GOTO 20 30 WORD=.TRUE. DO 60 K=J,80 IF(KEYWRD(K:K).EQ.'='.OR.KEYWRD(K:K).EQ.' ')...
{"hexsha": "27cd35e2f971c4500a8993c106029d77bbd82392", "size": 866, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "1989_MOPAC5/word.f", "max_stars_repo_name": "openmopac/MOPAC-archive", "max_stars_repo_head_hexsha": "01510e44246de34a991529297a10bcf831336038", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_st...
#!/usr/bin/python from .datas_r import * import numpy as np from numpy import dot from numpy import transpose as t def oracle(qc, compute_gradient=True, compute_hessian=False): Q0 = np.zeros(n) Q0[:md] = dot(AdI, fd) q = Q0 + dot(B, qc) # Critère loss = 1./3*dot(q, r*q*np.abs(q)) + dot(pr, dot(Ar...
{"hexsha": "d45810ce8e3a641ee99a716bda06280ab8f46a31", "size": 591, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/oracle.py", "max_stars_repo_name": "LouisDumont/Projet-Opti-Controle", "max_stars_repo_head_hexsha": "7dd9346759e55c62b604ce423c29040b51d83384", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
[STATEMENT] lemma exp_aform_err: assumes x: "x \<in> aform_err e X" assumes "exp_aform_err p X = Some Y" assumes e: "e \<in> UNIV \<rightarrow> {-1 .. 1}" shows "exp x \<in> aform_err e Y" [PROOF STATE] proof (prove) goal (1 subgoal): 1. exp x \<in> aform_err e Y [PROOF STEP] proof - [PROOF STATE] proof (state...
{"llama_tokens": 2517, "file": "Affine_Arithmetic_Affine_Approximation", "length": 28}
import numpy as np import pandas as pd import joblib import matplotlib.pyplot as plot import matplotlib.pyplot as plt import seaborn as sns import streamlit as st from PIL import Image from sklearn.linear_model import LogisticRegression import json st.write(""" # White-or-red-wine ### Which one to choose at all times?...
{"hexsha": "5ba7e026cc7456a9d55d9f6c19a6560ad903fb84", "size": 7564, "ext": "py", "lang": "Python", "max_stars_repo_path": "app.py", "max_stars_repo_name": "rusgar/Me_gusta_el_vino_y_los-toros", "max_stars_repo_head_hexsha": "f5bab4c69d5097d841ec7b56ec81285f7b434a82", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
def to_commands(op_base_type, parameters): para = [] for i, e in enumerate(parameters): if isinstance(e, str): e = "'%s'" % e elif isinstance(e, float): e = '%.6g' % e if '.' not in e and 'e' not in e: e += '.0' para.append(str(e)) ...
{"hexsha": "3ecc3cde9b703de0aa825e7a7335371d17d61872", "size": 13008, "ext": "py", "lang": "Python", "max_stars_repo_path": "o3seespy/extensions.py", "max_stars_repo_name": "o3seespy/o3seespy", "max_stars_repo_head_hexsha": "4fdd942370df1ac8d454e361f651405717b8584c", "max_stars_repo_licenses": ["MIT", "BSD-3-Clause"], ...
#!/usr/bin/python import sys, os, inspect from argparse import ArgumentParser import keras import numpy import skimage from keras.utils import plot_model from scipy import ndimage from PIL import Image from skimage.transform import resize print("Parsing arguments ...") parser = ArgumentParser("Classify an RGB-ima...
{"hexsha": "a8187c4df688c725c66ef4a68610ad461aa9a837", "size": 2579, "ext": "py", "lang": "Python", "max_stars_repo_path": "ModelGenerator/TestModel.py", "max_stars_repo_name": "TuulaP/MusicScoreClassifier", "max_stars_repo_head_hexsha": "0505154e30b877bed37bbad1d16f6f95f998eb16", "max_stars_repo_licenses": ["MIT"], "m...
%--------------------------------------------------------------------------------- % Monte Carlo Simulations %--------------------------------------------------------------------------------- \section{Monte Carlo Simulations} \subsection{Approximation of $\pi$} We will use this toy example as a brief introduction to...
{"hexsha": "bdec4c797e9e73e32dbcd7b1463ded1c720f2473", "size": 3744, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Project/Math%20420%20Final%20Paper/content/5-MonteCarloSim.tex", "max_stars_repo_name": "jake-caldwell/Math420Proj", "max_stars_repo_head_hexsha": "460deedb53a0a18509bc412c012f33e04440e9bb", "max_st...
# definition of lyapunov using DrWatson @quickactivate "NonlinearDynamicsTextbook" include(srcdir("style.jl")) using DynamicalSystems, PyPlot, Random using LinearAlgebra lo = Systems.lorenz([20,20,20.0]) X₁ = trajectory(lo, 45) u₂ = get_state(lo) .+ 1e-6 X₂ = trajectory(lo, 45, u₂) δ = norm.(X₂.data .- X₁.data) λ = l...
{"hexsha": "bd8f5ad098963df8036d8cfeb7e44c3c492f0339", "size": 825, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "figure_generation/3/3.2.jl", "max_stars_repo_name": "JuliaDynamics/NonlinearDynamicsTextbook", "max_stars_repo_head_hexsha": "bfae8cf867f458f00151da089332f2ce3bea5dd0", "max_stars_repo_licenses": ["...
# -*- coding:utf-8 -*- # Copyright (c) 2020 PaddlePaddle Authors. 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 # # Unl...
{"hexsha": "f7ac679667e766f0ec129b6c01df187875e52ce2", "size": 17637, "ext": "py", "lang": "Python", "max_stars_repo_path": "modules/image/semantic_segmentation/humanseg_mobile/module.py", "max_stars_repo_name": "chunzhang-hub/PaddleHub", "max_stars_repo_head_hexsha": "c5cfd021f77fd59340fb26e223e09a592e6a345f", "max_st...
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################ # Last modified by Muguette# ############################ import networkx as nx def generate_subprocess_graph(links): """ :param links: list of childhood tuples (parent -> child) :return: the tree of subprocesses """ G = ...
{"hexsha": "67b5577ec1585868af7a815b30970983d7da5309", "size": 4543, "ext": "py", "lang": "Python", "max_stars_repo_path": "utility/generate_subprocess_graph.py", "max_stars_repo_name": "CamLeon/Challenge", "max_stars_repo_head_hexsha": "893502ec1722932fc264ab412bcffa8d06095e44", "max_stars_repo_licenses": ["MIT"], "ma...
import rioxarray as rxr import glob import pandas as pd import numpy as np from config import * all_files = glob.glob(data_root+'e4ftl01.cr.usgs.gov/MOLT/MOD11C3.006/**/*.hdf') dfs = [] for f in (all_files): print (f) modis_xarray= rxr.open_rasterio(f,masked=True) datastamp = modis_xarray.attrs['RANGEBEGI...
{"hexsha": "5682c7e530f2168631694145e4b355e18cf68bac", "size": 614, "ext": "py", "lang": "Python", "max_stars_repo_path": "legacy/legacy_scripts/legacy/.ipynb_checkpoints/process_MODIS-checkpoint.py", "max_stars_repo_name": "tomkimpson/ML4L", "max_stars_repo_head_hexsha": "ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd", "ma...
% Copyright 2018 by Jannis Pohlmann % % This file may be distributed and/or modified % % 1. under the LaTeX Project Public License and/or % 2. under the GNU Free Documentation License. % % See the file doc/generic/pgf/licenses/LICENSE for more details. \section{Graph Drawing Algorithms: Circular Layouts} {\noindent ...
{"hexsha": "5d82f556ee392649cad7ee814b46eb37fff2903d", "size": 658, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Texlive_Windows_x32/2020/texmf-dist/doc/generic/pgf/text-en/pgfmanual-en-gd-circular.tex", "max_stars_repo_name": "waqas4afzal/LatexUrduBooksTools", "max_stars_repo_head_hexsha": "52fe6e0cd5af6b4610f...
#ifndef COSMOLOGY_H #define COSMOLOGY_H #include <cmath> //nbody code #include <NBody.h> #include <NBodyMath.h> //gsl code #include <gsl/gsl_integration.h> #include <gsl/gsl_monte.h> #include <gsl/gsl_monte_plain.h> #include <gsl/gsl_monte_miser.h> #include <gsl/gsl_monte_vegas.h> using namespace std; using namespace...
{"hexsha": "998d1c54be404773d948e8935d738e49b39e46b6", "size": 5469, "ext": "h", "lang": "C", "max_stars_repo_path": "src/Cosmology/Cosmology.h", "max_stars_repo_name": "ICRAR/NBodylib", "max_stars_repo_head_hexsha": "10de78dde32d724b7a5ce323ce8ab093b15c61a8", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
theory formulas imports Main "/Volumes/Setup/Isabelle/Isabelle-Code/September/Skolemize/libs" begin lemma p_p2_equiv: "((\<forall>p \<in> set Peers. (speak(p) \<longrightarrow> (isReg(p, Rp) \<and> broadcast(Rp) \<and> (\<forall>p1 \<in> set Peers - {p}.(isReg(p1,Rp) \<longrightarrow> \<not>speak(p1)))))) \<and> (...
{"author": "TrinhLK", "repo": "Isabelle-Code", "sha": "6eb41d730967df6b4dca606376a6825d16968c20", "save_path": "github-repos/isabelle/TrinhLK-Isabelle-Code", "path": "github-repos/isabelle/TrinhLK-Isabelle-Code/Isabelle-Code-6eb41d730967df6b4dca606376a6825d16968c20/September/Skolemize/formulas.thy"}
\documentclass[12pt, a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsmath} %\usepackage{relsize} %\usepackage{fixmath} \usepackage{graphicx} \usepackage{subcaption} \usepackage[usenames,dvipsnames]{color} %\usepackage[small,font=it]...
{"hexsha": "5828fbe3bc702e3dd366d93ecdec52291f9ee0c4", "size": 23613, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/classical_radial_fluxes_2019-01-17.tex", "max_stars_repo_name": "amollen/sfincs", "max_stars_repo_head_hexsha": "a529954fd36330e1b5c816612943f39829f3542f", "max_stars_repo_licenses": ["BSD-2-Cl...
# This code is part of Qiskit. # # (C) Copyright IBM 2019, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or derivat...
{"hexsha": "9c62bae26ca93885f3ccd96f243854705fceda30", "size": 13393, "ext": "py", "lang": "Python", "max_stars_repo_path": "qiskit/algorithms/optimizers/aqgd.py", "max_stars_repo_name": "navaneethsdk/qiskit-terra", "max_stars_repo_head_hexsha": "66a029f2a67c14dbf34857d172b088d75d152b55", "max_stars_repo_licenses": ["A...
import os import numpy as np import scipy from scipy import spatial MAX_NUM_MARKER = 10 state_table = { 0: 'Karel facing North', 1: 'Karel facing East', 2: 'Karel facing South', 3: 'Karel facing West', 4: 'Wall', 5: '0 marker', 6: '1 marker', 7: '2 markers', 8: '3 markers', 9:...
{"hexsha": "a9eeb74f9449f3f1880fd4c7748210c227390593", "size": 19050, "ext": "py", "lang": "Python", "max_stars_repo_path": "karel_env/karel.py", "max_stars_repo_name": "clvrai/leaps", "max_stars_repo_head_hexsha": "d04ea06a6d16fefbbd4a86d6fd9cb394fe6328d9", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 14, "m...
# Copyright 2021 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": "7d5a9cc083285d974c908b46a5aef1015288e1e2", "size": 6338, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/st/pynative/test_tensor_setitem.py", "max_stars_repo_name": "ZLkanyo009/mindspore", "max_stars_repo_head_hexsha": "0a6ed86bb443ed233504fa7eee931a24637d50bb", "max_stars_repo_licenses": ["Apa...
import data.real.basic import order.lattice noncomputable theory section curried variables {α α' β γ δ : Type*} class curried (α β γ δ : Type*) := (comp (f : γ → δ) : α → β) instance curried_base : curried (α → γ) (α → δ) γ δ := ⟨λ f g x, f (g x)⟩ instance curried_induction [curried α β γ δ] : curried (α' → α) (...
{"author": "skbaek", "repo": "cvx", "sha": "c50c790c9116f9fac8dfe742903a62bdd7292c15", "save_path": "github-repos/lean/skbaek-cvx", "path": "github-repos/lean/skbaek-cvx/cvx-c50c790c9116f9fac8dfe742903a62bdd7292c15/src/alex_playground/filter.lean"}
-- Basic intuitionistic modal logic S4, without ∨, ⊥, or ◇. -- Gentzen-style formalisation of syntax, after Bierman-de Paiva. -- Simple terms. module BasicIS4.Syntax.Gentzen where open import BasicIS4.Syntax.Common public -- Derivations. mutual infix 3 _⊢_ data _⊢_ (Γ : Cx Ty) : Ty → Set where var : ∀...
{"hexsha": "bdab478e446efc09065c5df8900104420b951674", "size": 8564, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "BasicIS4/Syntax/Gentzen.agda", "max_stars_repo_name": "mietek/hilbert-gentzen", "max_stars_repo_head_hexsha": "fcd187db70f0a39b894fe44fad0107f61849405c", "max_stars_repo_licenses": ["X11"], "max_s...
import copy import numpy as np class Client(): def __init__(self, id, global_dataset, idxs): self.id = id self.dataset = [] for idx in idxs: self.dataset.append(global_dataset[idx].tolist()) self.dataset = np.array(self.dataset) def fit(self, global_model, local_epo...
{"hexsha": "5877026ebba7aeb7d475824175f5ecf263916054", "size": 479, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/client.py", "max_stars_repo_name": "FrancescoNegri/federated-learning-gmm", "max_stars_repo_head_hexsha": "4351b5a4c9ff30df2c6d2244029f73ae02492c76", "max_stars_repo_licenses": ["MIT"], "max_st...
from __future__ import print_function import numpy as np import matplotlib.pyplot as plt from sklearn.datasets import make_moons from sklearn.cluster import DBSCAN # For reproducibility np.random.seed(1000) nb_samples = 1000 def show_dataset(X, Y): fig, ax = plt.subplots(1, 1, figsize=(30, 25...
{"hexsha": "8a4c684ff013acb84c6633f9b81115e85e63bbe4", "size": 1300, "ext": "py", "lang": "Python", "max_stars_repo_path": "Chapter09/2dbscan.py", "max_stars_repo_name": "packtprasadr/Machine-Learning-Algorithms", "max_stars_repo_head_hexsha": "06c1d79fd036f32d28261f9a792f6206767717a7", "max_stars_repo_licenses": ["MIT...
import h5py import numpy as np import sys from .vals import testvals def h5(): f = h5py.File('data.h5') nevent = 2 for ievt in range(nevent): for key in testvals: val = testvals[key] if type(val) is np.ndarray: assert np.array_equal(val,f[key][ievt]) ...
{"hexsha": "a1baefd007a9d74a818e2e29854816165e1ce3ed", "size": 417, "ext": "py", "lang": "Python", "max_stars_repo_path": "psana/psana/tests/h5.py", "max_stars_repo_name": "JBlaschke/lcls2", "max_stars_repo_head_hexsha": "30523ef069e823535475d68fa283c6387bcf817b", "max_stars_repo_licenses": ["BSD-3-Clause-LBNL"], "max_...
import os from argparse import Namespace from collections import Counter import json import re import string import numpy as np import pandas as pd import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.utils.data import Dataset, DataLoader from tqdm import tqdm_noteb...
{"hexsha": "0a5d1f5807a119bfafc39bee3f975d5d0032805f", "size": 4543, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/features/vocabulary.py", "max_stars_repo_name": "adityamangal410/nlp_with_pytorch", "max_stars_repo_head_hexsha": "81919102339ee483210f366aeaec0dd30273a846", "max_stars_repo_licenses": ["MIT"]...
import pandas as pd import numpy as np import os.path as op import os from tcrdist import olga import tcrdist.olga.load_model as load_model import tcrdist.olga.generation_probability as generation_probability import tcrdist.olga.generation_probability as pgen from tcrdist.olga.utils import nt2aa, determine_seq_type fr...
{"hexsha": "17fc67b5d8d9c0c77498b1b7725b2f188398642d", "size": 9687, "ext": "py", "lang": "Python", "max_stars_repo_path": "tcrdist/pgen.py", "max_stars_repo_name": "agartland/tcrdist2", "max_stars_repo_head_hexsha": "77ab0036a3f8f3951093a3bb14741d961ae14eda", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 14, ...
[STATEMENT] lemma upset_to_downset3: "\<up> x = \<partial> ` (\<down> (\<partial> x))" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<up> x = \<partial> ` \<down> (\<partial> x) [PROOF STEP] by (simp add: upset_to_downset2)
{"llama_tokens": 97, "file": "Order_Lattice_Props_Order_Lattice_Props", "length": 1}
import os.path as osp import numpy as np import grasp_fusion_lib here = osp.dirname(osp.realpath(__file__)) def test_load_off(): filename = osp.join(here, 'data/cube.off') verts, faces = grasp_fusion_lib.io.load_off(filename) assert isinstance(verts, np.ndarray) assert verts.ndim == 2 assert ...
{"hexsha": "da122a16582f9c57613c3660fe66eb50f8b60774", "size": 511, "ext": "py", "lang": "Python", "max_stars_repo_path": "demos/grasp_fusion/tests/io_tests/test_load_off.py", "max_stars_repo_name": "pazeshun/jsk_apc", "max_stars_repo_head_hexsha": "0ff42000ad5992f8a31e719a5360a39cf4fa1fde", "max_stars_repo_licenses": ...
""" Environment with a distribution of mazes (one new maze is drawn at each episode) Author: Vincent Francois-Lavet """ import numpy as np from deer.base_classes import Environment #import matplotlib #matplotlib.use('qt5agg') #from mpl_toolkits.axes_grid1 import host_subplot #import mpl_toolkits.axisartist as AA #im...
{"hexsha": "96697ea48a38cd62b6248dc42b14cc4414a26f34", "size": 8565, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples/maze/maze_env.py", "max_stars_repo_name": "jhardy0/deer", "max_stars_repo_head_hexsha": "f5015b37ad70181537152243a2569c94b55cad92", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars...
[STATEMENT] lemma iT_Minus_iRelease_conv: "(P t1. t1 \<R> t2 (k \<ominus> I). Q t2) = (P (k - t1). t1 \<T> t2 (I \<down>\<le> k). Q (k - t2))" [PROOF STATE] proof (prove) goal (1 subgoal): 1. (P t1. t1 \<R> t2 k \<ominus> I. Q t2) = (P (k - t1). t1 \<T> t2 I \<down>\<le> k. Q (k - t2)) [PROOF STEP] by (simp add: iRele...
{"llama_tokens": 214, "file": "Nat-Interval-Logic_IL_TemporalOperators", "length": 1}
#include <alglib/optimization.h> #include <functional> #include <limits> #include <math.h> #include <stdio.h> #include <stdlib.h> #include "perceive/foundation.hpp" #include "levenberg-marquardt.hpp" using namespace alglib; namespace perceive { static void opt_fun(const real_1d_array& x, real_1d_array& fi, void* p...
{"hexsha": "f35cf0ecb62af7d895255830d53f142e66173884", "size": 7261, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "multiview/multiview_cpp/src/perceive/optimization/levenberg-marquardt.cpp", "max_stars_repo_name": "prcvlabs/multiview", "max_stars_repo_head_hexsha": "1a03e14855292967ffb0c0ec7fff855c5abbc9d2", "ma...
# -*- coding: utf-8 -*- """ Created on Mon May 16 10:42:18 2016 @author: hossam """ import random import numpy import math from solution import solution import time def MFO(objf,lb,ub,dim,N,Max_iteration): #Max_iteration=1000 #lb=-100 #ub=100 #dim=30 N=50 # Number of search agents ...
{"hexsha": "80a5d62e69f498fc2c02034940f8357d80f80353", "size": 4903, "ext": "py", "lang": "Python", "max_stars_repo_path": "MFO.py", "max_stars_repo_name": "karthiksekaran/swarm-algorithms", "max_stars_repo_head_hexsha": "5e414bd076a77a86e5312400c278b194c106d318", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
#!/usr/bin/env python # SPDX-License-Identifier: Apache-2.0 from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from collections import defaultdict import io import os import sys import numpy as np from onnx import def...
{"hexsha": "0ef16344fd0b66bf8ae2114993ea7ed9d6fb8935", "size": 15996, "ext": "py", "lang": "Python", "max_stars_repo_path": "onnx/defs/gen_doc.py", "max_stars_repo_name": "stillmatic/onnx", "max_stars_repo_head_hexsha": "8d5eb62d5299f6dcb6ac787f0ea8e6cf5b8331a7", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_co...
import math import torch from torch import nn from function_tools import poincare_function as pf # z and wik must have same dimenssion except if wik is not given def barycenter(z, wik=None, lr=5e-2, tau=5e-3, max_iter=math.inf, distance=pf.distance, normed=False, init_method="default"): if(wik is None): w...
{"hexsha": "2748ac92f575b0e1fadc2c255d3bc899ec23ad44", "size": 3910, "ext": "py", "lang": "Python", "max_stars_repo_path": "function_tools/poincare_alg.py", "max_stars_repo_name": "IRT-SystemX/Poincare_Embedding", "max_stars_repo_head_hexsha": "1d047c15deb8b2b236498b0f063ecc347fe6f349", "max_stars_repo_licenses": ["Unl...
! ! This program may be freely redistributed under the ! condition that the copyright notices (including this ! entire header) are not removed, and no compensation ! is received through use of the software. Private, ! research, and institutional use is free. You may ! distribute modi...
{"hexsha": "83f8642dc6de8e48925e40e92bc84fc3c94f3462", "size": 9636, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "src/p5e.f90", "max_stars_repo_name": "mark-petersen/PPR", "max_stars_repo_head_hexsha": "d5a7ec7d78240d7912176a289f8638a06add1e8d", "max_stars_repo_licenses": ["Unlicense"], "max_stars_count": 9...
import chess import chess.pgn import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from sklearn.model_selection import train_test_split CHARS = { '.': 0, 'B': 1, 'K': 2, 'N': 3, 'P': 4, 'Q': 5, 'R': 6, 'b': 7, 'k': 8, 'n': 9...
{"hexsha": "6d0c269cb7ff208df771ae2224be6f6d14d84e21", "size": 2933, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_last_board_model.py", "max_stars_repo_name": "DOsinga/neuralchess", "max_stars_repo_head_hexsha": "d22e7be2eb0e35a12e90bbc53d2d4b9228caaf7c", "max_stars_repo_licenses": ["BSD-3-Clause"], "ma...
# -*- coding: utf-8 -*- import logging logger = logging.getLogger() logger.basicConfig = logging.basicConfig(level=logging.DEBUG) import numpy as np import matplotlib.pyplot as plt import logictensornetworks_wrapper as ltnw nr_samples=500 data=np.random.uniform([0,0],[1.,1.],(nr_samples,2)).astype(np.float32) data_A...
{"hexsha": "6bb3917ff82bec4f0c2a3f6af9219c74f32f81ac", "size": 1978, "ext": "py", "lang": "Python", "max_stars_repo_path": "examples_ltnw/multilabel_classification.py", "max_stars_repo_name": "gilbeckers/logictensornetworks", "max_stars_repo_head_hexsha": "c4cc3628db91030230c78d3b964c26304a3b452b", "max_stars_repo_lice...
# pylint: disable=no-self-argument, no-member import sys sys.path.append('..') from core import REc, struct, Time from cop import load_data, translation, patient, model, idsets_of from numpy import array, ones, average, median, std from scipy import stats def make_model(by_vars, data, groups, _from=None): '''ma...
{"hexsha": "d6c7cc9fb214bbab8ca5f01a15f3eec878dcc755", "size": 7917, "ext": "py", "lang": "Python", "max_stars_repo_path": "covid19.py", "max_stars_repo_name": "joricomico/COVID19_trial", "max_stars_repo_head_hexsha": "501adb281a8c9d723df64eaa619f5e348d639a69", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul...
import matplotlib.pyplot as plt import seaborn as sns import pandas as pd from typing import Union import numpy as np import matplotlib as mpl from matplotlib.pyplot import cm from scipy.cluster import hierarchy import scipy.cluster.hierarchy as shc from sklearn.cluster import AgglomerativeClustering from ._utils imp...
{"hexsha": "e445f63bfd5b94808c5fb7517cf480e726e201b4", "size": 7516, "ext": "py", "lang": "Python", "max_stars_repo_path": "signatureanalyzer/plotting/_nmf.py", "max_stars_repo_name": "julianhess/getzlab-SignatureAnalyzer", "max_stars_repo_head_hexsha": "7f3ce93285c2aaaca88e82fee5a24854c224b453", "max_stars_repo_licens...
import requests from bs4 import BeautifulSoup import json import numpy as np def makeurl(country): return f'https://www.google.com/search?q=weather+{country}' USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36" LANGUAGE ...
{"hexsha": "efa3d3d90bf6deb1ea8dbdcf03f20196aa72645d", "size": 1399, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/scripts/webscrapers/weather.py", "max_stars_repo_name": "AnimatorOfSouls/Team-News", "max_stars_repo_head_hexsha": "41b025cd93ca29d64b6d1ce535d160a978671b0c", "max_stars_repo_licenses": ["MIT"...
#pragma once #define BOOST_SPIRIT_DEBUG #define BOOST_SPIRIT_UNICODE #include <boost/config/warning_disable.hpp> #include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/qi_repeat.hpp> #include <boost/spirit/include/phoenix_core.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/sp...
{"hexsha": "ea3d02c4cd0ca6a9ac081d7032c54bdadd48d91a", "size": 1160, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "src/talkPageParser/grammars/userGrammar.hpp", "max_stars_repo_name": "lewishamulton/grawitas", "max_stars_repo_head_hexsha": "e05fc18373af86e5f417be6817bcdbf3a16c272a", "max_stars_repo_licenses": ["...
# Online Outlier Detection """ Euclidean_distance!{tp}(d::Array{tp, 1}, x::AbstractArray{tp, 2}, i::Int, j::Int, dim::Int = 1) compute the Euclidean distance between x[i,:] and x[j,:] and write the result to d. Memory efficient. dim is the dimension of i and j. """ function Euclidean_distance!(d::Array{tp, 1}, x::...
{"hexsha": "a2f01eac32d18ed39cd964fb87ce7da80b087f68", "size": 9392, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/OnlineAlgorithms.jl", "max_stars_repo_name": "UnofficialJuliaMirror/MultivariateAnomalies.jl-6b1494d1-c0e4-5e11-970b-cb64accc6d0e", "max_stars_repo_head_hexsha": "f088a809f234b2ef52baf58a47fc7e...
\documentclass{beamer} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% Themes and such %%% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \mode<presentation> { % \usetheme{Copenhagen} \usetheme{Warsaw} % \usetheme{Malmoe} %mak...
{"hexsha": "c209c12070026d3609eb353e3f0753ca1008a44a", "size": 14999, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "doc/isogeometric-analysis-talk.tex", "max_stars_repo_name": "komahanb/isogeometric-analysis", "max_stars_repo_head_hexsha": "5ddf1f3edce0a5fb5e8fc999a0d5b661083305f4", "max_stars_repo_licenses": ["...