text
stringlengths
0
1.25M
meta
stringlengths
47
1.89k
// Copyright 2019, Collabora, Ltd. // Copyright 2016, Sensics, Inc. // SPDX-License-Identifier: Apache-2.0 /*! * @file * @brief Base implementations for math library. * @author Ryan Pavlik <ryan.pavlik@collabora.com> * @ingroup aux_math * * Based in part on inc/osvr/Util/EigenQuatExponentialMap.h in OSVR-Core *...
{"hexsha": "d52850d50c8061d55b94ae6beee4e9ea1f0d8cff", "size": 5187, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/xrt/auxiliary/math/m_quatexpmap.cpp", "max_stars_repo_name": "ltstein/monado_integration", "max_stars_repo_head_hexsha": "4e5348e3dbf3bb9584eec9a761488274a7deddbd", "max_stars_repo_licenses": ["...
SUBROUTINE EXCHNG (A,B,C,D,X,Y,T,Q,N) IMPLICIT DOUBLE PRECISION (A-H,O-Z) DIMENSION X(*), Y(*) ******************************************************************** ...
{"hexsha": "3558ac0b555c148f4ed0d3ac35989e9a6eab0f86", "size": 1297, "ext": "for", "lang": "FORTRAN", "max_stars_repo_path": "1983_MOPAC1/exchng.for", "max_stars_repo_name": "openmopac/MOPAC-archive", "max_stars_repo_head_hexsha": "01510e44246de34a991529297a10bcf831336038", "max_stars_repo_licenses": ["BSD-3-Clause"], ...
import numpy as np import matplotlib.pyplot as pl import matplotlib.patches as patches class element: def __init__(self): self.edgePointsX =[0.25, 3.75, 4.25, 4.25, 3.75, 0.25, -0.25, -0.25] self.edgePointsY = [-0.25, -0.25, 0.25, 3.75, 4.25, 4.25, 3.75, 0.25] self.midPointsX = [-0.25, 2, 2...
{"hexsha": "713916ce8da727394b0cd726220b46b8ba6c70d1", "size": 7494, "ext": "py", "lang": "Python", "max_stars_repo_path": "2DMohrCircle2.py", "max_stars_repo_name": "ethantaylor/OpenMohr", "max_stars_repo_head_hexsha": "30c0a333f824ddb878a9fe6483411df644a6f6c0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
def Set (α : Type) := α → Prop def Set.union (s₁ s₂ : Set α) : Set α := fun a => s₁ a ∨ s₂ a def FinSet (n : Nat) := Fin n → Prop namespace FinSet export Set (union) end FinSet example (x y : FinSet 10) : FinSet 10 := FinSet.union x y example (x y : FinSet 10) : FinSet 10 := x.union y
{"author": "leanprover", "repo": "lean4", "sha": "742d053a97bdd109a41a921facd1cd6a55e89bc7", "save_path": "github-repos/lean/leanprover-lean4", "path": "github-repos/lean/leanprover-lean4/lean4-742d053a97bdd109a41a921facd1cd6a55e89bc7/tests/lean/run/alias.lean"}
from marvelmind import MarvelmindHedge from time import sleep import matplotlib.pyplot as plt import sys import numpy from threading import Thread def update_line(): xdata = numpy.append(plt.gca().lines[0].get_xdata(), plt.gca().lines[1].get_xdata()) ydata = numpy.append(plt.gca().lines[0].get_ydata(), plt...
{"hexsha": "a752020b1921b2f2a3354427e798f31c79a021fe", "size": 1511, "ext": "py", "lang": "Python", "max_stars_repo_path": "Resources, Manuals, and Drivers/Interfaces/Python/marvelmind_robotics-marvelmind.py-7f09d3e1a79e/src/example_matplotlib.py", "max_stars_repo_name": "methylDragon/marvelmind-indoor-gps-tutorial", "...
# segmentation_trainer.py from __future__ import absolute_import from __future__ import division from __future__ import print_function from base.base_dataset import BaseDataset from base.base_logger import BaseLogger from base.base_model import BaseModel from base.base_trainer import BaseTrainer from sklearn.metrics ...
{"hexsha": "657c473665f00829a18e31fb7c7887bca8be9875", "size": 5293, "ext": "py", "lang": "Python", "max_stars_repo_path": "trainers/segmentation_trainer.py", "max_stars_repo_name": "giovgiac/neptune", "max_stars_repo_head_hexsha": "a3cc256d3f3d833be2b8654131726ab48482f5e1", "max_stars_repo_licenses": ["MIT"], "max_sta...
/* $Id: asio_sender.cpp 48153 2011-01-01 15:57:50Z mordante $ */ /** * @file * @brief Implementation file providing send capability to ana. * * ana: Asynchronous Network API. * Copyright (C) 2010 - 2011 Guillermo Biset. * * This file is part of the ana project. * * System: ana * Language:...
{"hexsha": "3b135b5cb92bf2a811cbdc234a25be656a1a0341", "size": 7011, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/ana/src/asio_sender.cpp", "max_stars_repo_name": "blackberry/Wesnoth", "max_stars_repo_head_hexsha": "8b307689158db568ecc6cc3b537e8d382ccea449", "max_stars_repo_licenses": ["Unlicense"], "max_st...
import numpy as np from functions import make_piecewise_linear, PiecewiseFunction, LinearFunction def link_consumption(T, f, g, M): L = f(T) R = g(T) max_t_idx = np.iinfo(np.dtype('uint32')).max opt_H = np.full_like(L, float('inf')) opt_delta_idx = np.full_like(L, max_t_idx, dtype='uint32') fo...
{"hexsha": "f793fe5eb6e3d961d8c23d64eeb430f7935be7fc", "size": 2384, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/python/numeric.py", "max_stars_repo_name": "TheMarex/charge", "max_stars_repo_head_hexsha": "85e35f7a6c8b8c161ecd851124d1363d5a450573", "max_stars_repo_licenses": ["BSD-2-Clause"], "max_stars_...
!************* source file iecwind.f90 *************** ! Program to produce user-specified IEC extreme wind condition ! files (*.WND) that conform to IEC 61400-1 Edition 3 and ! IEC 61400-3 Edition 1 and are compatible with AeroDyn ! Written by Univ of Utah; Formerly maintained by Windward Engineering, LC ! Now mai...
{"hexsha": "2352ded94d42e0a567a16b49ec7195b3f81f9951", "size": 39685, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "wrap/source/IECwind.f90", "max_stars_repo_name": "yagweb/pyfast", "max_stars_repo_head_hexsha": "8ba84028bc6b0eda87ca97d0a2e1eeee3e992233", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars...
n = rand(1:10) # no null vector for 1-by-1 chebspec. if n == 1 n = 2 end A = matrixdepot("chebspec", n) # A has null vector ones(n) @test_approx_eq_eps A*ones(n) zeros(n) 1e-6 B = matrixdepot("chebspec", n, 1) # B's eigenvalues have negative real parts. v = real(eigvals(B)) for i = 1:n @test v[i] < 0 end printl...
{"hexsha": "a481d586c254195b87d6424563b8e08bcfc8ee87", "size": 351, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_chebspec.jl", "max_stars_repo_name": "JuliaPackageMirrors/MatrixDepot.jl", "max_stars_repo_head_hexsha": "86b9c9ce3ad7bf0ea8f282624696c9174c157bcc", "max_stars_repo_licenses": ["MIT"], "ma...
#SPFileName="SPHistory.csv" import pandas as pd import numpy as np import datetime import dateutil.relativedelta import statsmodels.api as sm from statsmodels.tsa.stattools import grangercausalitytests def spDataCleansing(SPFileName): sandpData = pd.read_csv(SPFileName) sandpData=sandpData.drop([0,1116]) #Cle...
{"hexsha": "5ae2fc7e65610047bb30fc13c6ddbcd489f99e4e", "size": 4092, "ext": "py", "lang": "Python", "max_stars_repo_path": "helperfunctions.py", "max_stars_repo_name": "sosulliv/scrapyProject", "max_stars_repo_head_hexsha": "5bcde25355a52107d2daf7e1912f46cdf961585c", "max_stars_repo_licenses": ["Apache-2.0"], "max_star...
# Rugosity => for each t, create a new point (x,y) = (t, rugosity(t)) import numpy as np from rugosity import getRugosity import matplotlib.pyplot as plt from scipy.optimize import curve_fit import time as clockTime import random from numba import jit, int32 import math import csv @jit(nopython=True) def runSamples(sa...
{"hexsha": "6f3b7e901fbf9aa9379f6443ffcd8a97be6c10f8", "size": 4098, "ext": "py", "lang": "Python", "max_stars_repo_path": "da.py", "max_stars_repo_name": "Rogenes/simulationProject-interfaceGrowth", "max_stars_repo_head_hexsha": "5caee9097665c7fb98dbe97263740f3f19b2f49a", "max_stars_repo_licenses": ["MIT"], "max_stars...
[STATEMENT] lemma Hermite_intro: assumes "Complete_set_non_associates associates" and "Complete_set_residues residues" and "echelon_form A " and "(\<forall>i. \<not> is_zero_row i A \<longrightarrow> A $ i $ (LEAST n. A $ i $ n \<noteq> 0) \<in> associates)" and "(\<forall>i. \<not> is_zero_row i A \<longrigh...
{"llama_tokens": 810, "file": "Hermite_Hermite", "length": 3}
from __future__ import absolute_import from __future__ import division from __future__ import print_function import _init_paths import os import os.path as osp import cv2 import logging import motmetrics as mm import numpy as np import torch import pandas as pd from tracker.multitracker import JDETracker from trackin...
{"hexsha": "e84d911ba82a5d6a05a2e315145824b3f4b151f1", "size": 16561, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/track.py", "max_stars_repo_name": "TRiumond/FairMOT", "max_stars_repo_head_hexsha": "0f811648fc3f6f7bdf87821c10d58bc94d83cfae", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_...
import numpy as np from scipy.sparse import issparse from metal.label_model import LabelModel from metal.label_model.lm_defaults import lm_default_config from metal.multitask import MTClassifier, TaskGraph from metal.utils import recursive_merge_dicts class MTLabelModel(MTClassifier, LabelModel): def __init__(se...
{"hexsha": "789bbf5746c63aa21ea0e40285a5476ce03001e6", "size": 3994, "ext": "py", "lang": "Python", "max_stars_repo_path": "metal/multitask/mt_label_model.py", "max_stars_repo_name": "dliangsta/metal", "max_stars_repo_head_hexsha": "49c568e33b36f5e0887bd977dca936b7def02ad7", "max_stars_repo_licenses": ["Apache-2.0"], "...
#include <tiny_math_types.h> #include <tiny_vector_functions.h> #define BOOST_AUTO_TEST_MAIN #include <boost/test/auto_unit_test.hpp> #include <boost/test/unit_test_suite.hpp> #include <boost/test/floating_point_comparison.hpp> #include <boost/test/test_tools.hpp> BOOST_AUTO_TEST_SUITE(tiny_axis_angle); BOOST_AUTO_...
{"hexsha": "764a39370bd23338091ea38dc8d1e80f97de8b15", "size": 2933, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "PROX/FOUNDATION/TINY/unit_tests/tiny_axis_angle/tiny_axis_angle.cpp", "max_stars_repo_name": "diku-dk/PROX", "max_stars_repo_head_hexsha": "c6be72cc253ff75589a1cac28e4e91e788376900", "max_stars_repo...
// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2014-2015, Oracle and/or its affiliates. // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html // Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle #include <iostream> ...
{"hexsha": "4fbcb66d39d7a3983029a00f5b0f198d372db47e", "size": 6596, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "libs/geometry/test/algorithms/set_operations/difference/difference_pl_pl.cpp", "max_stars_repo_name": "Abce/boost", "max_stars_repo_head_hexsha": "2d7491a27211aa5defab113f8e2d657c3d85ca93", "max_sta...
c****************************************************************************** c c Chemical and atom name processing routines c c****************************************************************************** c SUBROUTINE SJSCHA(NAMAX,ATOMX,ATOM,I1,I2,I) c c Checks to see if ATOMX is in the list ATOM(I...
{"hexsha": "cd85144ce7686bd2243a5c1b1e2d770b814d6ca4", "size": 3480, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "src/A6.f", "max_stars_repo_name": "kjfergu/esp", "max_stars_repo_head_hexsha": "0180d90a073e89c06c75bbbd2b1afd14f7788671", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_count": 2, "max_sta...
theorem test (p q : Prop) (hp : p) (hq : q) : p ∧ q ∧ p := begin apply and.intro hp, exact and.intro hq hp end theorem test' (p q : Prop) (hp : p) (hq : q) : p ∧ q ∧ p := by exact and.intro hp (and.intro hq hp) #print test example (p q r : Prop) : p ∧ (q ∨ r) ↔ (p ∧ q) ∨ (p ∧ r) := begin apply iff.intro, in...
{"author": "robkorn", "repo": "theorem-proving-in-lean-exercises", "sha": "9c51da587105ee047a9db55d52709d881a39be7a", "save_path": "github-repos/lean/robkorn-theorem-proving-in-lean-exercises", "path": "github-repos/lean/robkorn-theorem-proving-in-lean-exercises/theorem-proving-in-lean-exercises-9c51da587105ee047a9db55...
[STATEMENT] lemma sp_instr_deterministic: assumes "sp_instr F ret instr \<Sigma>i \<Sigma>o" and "sp_instr F ret instr \<Sigma>i \<Sigma>o'" shows "\<Sigma>o = \<Sigma>o'" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<Sigma>o = \<Sigma>o' [PROOF STEP] using assms [PROOF STATE] proof (prove) using thi...
{"llama_tokens": 216, "file": "Interpreter_Optimizations_Ubx_Verification", "length": 2}
import numpy as np import scipy.sparse as sp from pygcn.utils import normalize '''测试归一化函数''' # 读取原始数据集 path="C:/Users/73416/PycharmProjects/PyGCN_Visualization/data/cora/" dataset = "cora" idx_features_labels = np.genfromtxt("{}{}.content".format(path, dataset), dtype=np.dtype(s...
{"hexsha": "dd384deee05ccc3f7b0af55cee56492e3977c98c", "size": 1888, "ext": "py", "lang": "Python", "max_stars_repo_path": "pygcn/try_of_normalize.py", "max_stars_repo_name": "HanGuangXin/-result-visualization-Graph-Convolutional-Networks-in-PyTorch", "max_stars_repo_head_hexsha": "3f83524de7f00535970b9bbff100dabc28d52...
""" Evaluates random Monte Carlo portfolios. Run on Spark node. """ import numpy as np import time import uuid from cassandra.cqlengine.management import sync_table, drop_table from pyspark import SparkContext, SparkConf from cassandra_models import AssetStat from cassandra_models import PortfolioStat, PortfolioLate...
{"hexsha": "d9164801e12bfc32d478b1933e8581548fa7c827", "size": 3774, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/portfolio_evaluate_spark.py", "max_stars_repo_name": "metov/insight-silverbullet", "max_stars_repo_head_hexsha": "5e63cbd66b32d9b97fd1bf95178eecb4625ced19", "max_stars_repo_licenses": ["MIT"],...
import cv2 import numpy as np """使用HOGDescriptor进行人的检测""" def is_inside(o, i): """判断o矩形是否包含了i矩形""" ox, oy, ow, oh = o ix, iy, iw, ih = i return ox > ix and oy > iy and ox + ow < ix + iw and oy + oh < iy + ih def draw_person(img, person): # 将检测到的矩形绘制出来 x, y, w, h = person cv2.rectangle(im...
{"hexsha": "734cdde209ef40d99c8bc4676e6ab92314a817b1", "size": 998, "ext": "py", "lang": "Python", "max_stars_repo_path": "my_cv/07/07_01_person_detect.py", "max_stars_repo_name": "strawsyz/straw", "max_stars_repo_head_hexsha": "db313c78c2e3c0355cd10c70ac25a15bb5632d41", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 15 16:05:28 2019 @author: austin """ import IPython as IP IP.get_ipython().magic('reset -sf') import numpy as np import scipy as sp import matplotlib as mpl import matplotlib.pyplot as plt plt.close('all') #%% Load and plot data D = np.loadtxt(...
{"hexsha": "3da1aedc07b02576f11c8202535d811f7f5c8a8d", "size": 1244, "ext": "py", "lang": "Python", "max_stars_repo_path": "source_files/example_1/example_1_plot_beam_vibration_data.py", "max_stars_repo_name": "ARTS-Laboratory/Introduction-to-Python-for-engineers", "max_stars_repo_head_hexsha": "39b28cb052c44f0ac14e097...
//============================================================================== // Copyright 2003 - 2012 LASMEA UMR 6602 CNRS/Univ. Clermont II // Copyright 2009 - 2012 LRI UMR 8623 CNRS/Univ Paris Sud XI // // Distributed under the Boost Software License, Version 1.0. // ...
{"hexsha": "e53a71e4befcffff24452ba4d7275cabcbf8f8f7", "size": 4283, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "modules/boost/simd/base/unit/ieee/simd/frexp.cpp", "max_stars_repo_name": "psiha/nt2", "max_stars_repo_head_hexsha": "5e829807f6b57b339ca1be918a6b60a2507c54d0", "max_stars_repo_licenses": ["BSL-1.0"...
#coding=utf-8 import numpy as np from numpy import array from pandas import DataFrame from collections import Counter import os, sys, argparse, time, json, random, codecs # python python/product/add_train_sample.py -i data/product/multi_task_train_label.txt -o data/product/multi_task_add_train_label.txt def add_train...
{"hexsha": "d5d0a75625f3806111259cbbcc1b43da29610242", "size": 2199, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/product/add_train_sample.py", "max_stars_repo_name": "luolongqiang/caffe-luolongqiang", "max_stars_repo_head_hexsha": "5ee132e4451a538d97b62039a62a59a69dc43bb9", "max_stars_repo_licenses": ...
############################################################################### # # Efficiently computing the finite sum part of the Riemann theta function. # # Original Authors # ------- # * Chris Swierczewski (@cswiercz) - September 2012, July 2016 # * Grady Williams (@gradyrw) - October 2012 # * Jeremy Upsal (...
{"hexsha": "2c64a46ff58aacf345c8f5fa9984ca6f17301583", "size": 6868, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/finite_sum.jl", "max_stars_repo_name": "UnofficialJuliaMirrorSnapshots/RiemannTheta.jl-803aa692-84f0-5eed-9cc1-fbb46710dded", "max_stars_repo_head_hexsha": "af371a543767493c495f535ada2ce896a276...
import numpy as np import logging import sys import queue import collections import threading # logging.basicConfig(level=logging.DEBUG) class InputWait(Exception): pass class OutputWait(Exception): pass class Memory(list): def _allocateTo(self, index): self.extend([0]*(index - len(self) + 1)) def __getitem_...
{"hexsha": "83e0b6508300aa36fc9d7a33d1ccb585e1454931", "size": 10129, "ext": "py", "lang": "Python", "max_stars_repo_path": "2019/intcode.py", "max_stars_repo_name": "natedileas/advent-of-code", "max_stars_repo_head_hexsha": "e7d7963162966651e599d9d8f5f770137111440b", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import pandas as pd import copy import numpy as np import csv matrix_a = pd.DataFrame(pd.read_csv("./tcga_data/a.csv", header=0, index_col=0)) matrix_d = pd.DataFrame(pd.read_csv("./tcga_data/D.csv", header=0, index_col=0)) # omissible definition...
{"hexsha": "c76f0fc1d07c508142d789474843db468ec02a48", "size": 1670, "ext": "py", "lang": "Python", "max_stars_repo_path": "MatrixCombination/GenerationA.py", "max_stars_repo_name": "jackieQizhu/DriverPathwayDetection", "max_stars_repo_head_hexsha": "a646f167a56b302891e2fa79280fd00264972df6", "max_stars_repo_licenses":...
module CanEvolve using StatsBase using Distributions using LinearAlgebra using DataFrames using Random using Plots using StatsPlots using PyCall const np = PyNULL() function __init__() copy!(np, pyimport_conda("numpy", "numpy")) end export # simulation.jl cell, mutate, primeSim, evolveTumour...
{"hexsha": "82c6c1190fe470860c9a30673f10e46c98e98d38", "size": 774, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/CanEvolve.jl", "max_stars_repo_name": "tomouellette/CanEvolve.jl", "max_stars_repo_head_hexsha": "e87a7912bf4a7477e24dbee7ba3db22666233af5", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
using Printf try GaussQuadrature.neither catch include("quadrature.jl") end # From the VTK source: # https://gitlab.kitware.com/nick.laurenson/vtk/blob/d8aa5b89c622cf04b3322112fda420afc9d2a16d/Common/DataModel/vtkLagrangeHexahedron.cxx#L729-795 function PointIndexFromIJK(i, j, k, N) ibdy = (i == 0 || i == N) j...
{"hexsha": "4d40322b4f1649f4313aaf2600386653f77ef721", "size": 10851, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "generate_data.jl", "max_stars_repo_name": "jkozdon/paraview_vtk_lagrange", "max_stars_repo_head_hexsha": "f8c86fd2ef3b048b0fc8fef0033350b9e1cc4663", "max_stars_repo_licenses": ["CC0-1.0"], "max_st...
import numpy as np import camb from matplotlib import pyplot as plt from matplotlib.cm import get_cmap viridis = get_cmap("viridis") def change_baryon(ombh2, H0): ''' ombh2 : baryon density H0 : current Hubble rate other params set to Planck 2018 results ''' # setup six init params from th...
{"hexsha": "ead8a0b3737cf27ba6db263116de9780a3d3eb8f", "size": 2230, "ext": "py", "lang": "Python", "max_stars_repo_path": "cosmos_hw/camb_baryon_change.py", "max_stars_repo_name": "jibanCat/phys214_obsastro", "max_stars_repo_head_hexsha": "049c35b089b35108b65ec106e05e599fa529dfb0", "max_stars_repo_licenses": ["MIT"], ...
# # Copyright (c) 2021 The banded_matrices Contributors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable l...
{"hexsha": "f331e881637fcc8667144042b299d5bd6504f38c", "size": 6615, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/unit/banded_matrices/test_outer_vec_vec.py", "max_stars_repo_name": "secondmind-labs/banded_matrices", "max_stars_repo_head_hexsha": "b1c816e1fe8d4de9b251c95fc20045b12f0035fe", "max_stars_re...
module PCREO using DZOptimization: half, normalize_columns!, step! using DZOptimization.ExampleFunctions: riesz_energy, riesz_gradient!, riesz_hessian!, constrain_riesz_gradient_sphere!, constrain_riesz_hessian_sphere! using MultiFloats: Float64x2, Float64x3 using StaticArrays: SArray, SVector, cross, norm ex...
{"hexsha": "c0b3d768a810f346cad955df4d3a5062040ebe8b", "size": 20107, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/PCREO.jl", "max_stars_repo_name": "dzhang314/PCREO", "max_stars_repo_head_hexsha": "468ba36bd0188119c63e5d7f1f168b6b851ab5e3", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_st...
FUNCTION igamma_s(a,x) USE mo_kind, only: sp USE mo_nrutil, ONLY : assert use mo_nr, ONLY : gcf,gser IMPLICIT NONE REAL(SP), INTENT(IN) :: a,x REAL(SP) :: gln REAL(SP) :: igamma_s call assert( x >= 0.0, a > 0.0, 'igamma_s args') if (x<a+1.0_sp) then igamma_s=1.0_sp-gser(a,x,gln) else igam...
{"hexsha": "08b3ffc2e207a1b8294081994941d362652f9899", "size": 2095, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "nr_jams/igamma.f90", "max_stars_repo_name": "mcuntz/jams_fortran", "max_stars_repo_head_hexsha": "a1dcab78eda21f930aa6c8c3633598a522f01659", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
import numpy as np import math from collections import namedtuple from models.swarm_algorithm import SwarmAlgorithm CuckooSearchParams = namedtuple( 'CuckooSearchParams', ['xi', 'alpha'] ) class CuckooSearch(SwarmAlgorithm): ''' Cuckoo Search algorithm. Parameters ---------- D : int ...
{"hexsha": "1bea43bffd0cf1360b56c01151f3e976ac2e1604", "size": 6147, "ext": "py", "lang": "Python", "max_stars_repo_path": "models/single_objective/cuckoo_search.py", "max_stars_repo_name": "AlexanderKlanovets/swarm_algorithms", "max_stars_repo_head_hexsha": "8da851baccd4d074c747b7d2b4df9952918fab31", "max_stars_repo_l...
import os import sys sys.path.insert(0, '../../') from datetime import datetime from jax import jit, grad, partial, random, tree_util, vmap, lax, ops from jax import numpy as np from jax.tree_util import tree_flatten, tree_unflatten from sklearn import model_selection, mixture, preprocessing, preprocessing from tqdm ...
{"hexsha": "ea64998f2222bb8bcf1fce934b0a023cb6df92f5", "size": 7090, "ext": "py", "lang": "Python", "max_stars_repo_path": "research/dp-flows/train.py", "max_stars_repo_name": "telegraphroad/jax-flows", "max_stars_repo_head_hexsha": "26a47b5c0f9797a631bcd4d52cef76beefaeb79d", "max_stars_repo_licenses": ["MIT"], "max_st...
from setuptools import find_packages from numpy.distutils.core import setup from numpy.distutils.extension import Extension ext_potential_energy_network = Extension( name = 'kinnetmt.lib.potential_energy', #extra_compile_args = ["-fcheck=all"], extra_compile_args = [], libraries = [], language = ...
{"hexsha": "6984e56002d7f266d789e4c4118d89015a8f2c49", "size": 823, "ext": "py", "lang": "Python", "max_stars_repo_path": "setup.py", "max_stars_repo_name": "uibcdf/NetLabTools", "max_stars_repo_head_hexsha": "a61732c341fbb700dcacf8a66d3776e6dd7e4fa4", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "max_star...
module ArrayInterface using Requires using LinearAlgebra using SparseArrays using Base: @propagate_inbounds, tail, OneTo, LogicalIndex, Slice Base.@pure __parameterless_type(T) = Base.typename(T).wrapper parameterless_type(x) = parameterless_type(typeof(x)) parameterless_type(x::Type) = __parameterless_type(x) """ ...
{"hexsha": "b39b7c50670e5a6eedd04dae270fa38add67e838", "size": 29312, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ArrayInterface.jl", "max_stars_repo_name": "mkg33/ArrayInterface.jl", "max_stars_repo_head_hexsha": "6563ebf79b73f5aab251c213a8d8bda50eb3c178", "max_stars_repo_licenses": ["MIT"], "max_stars_c...
"""Testing utilities for the MNE BIDS converter.""" # Authors: Chris Holdgraf <choldgraf@berkeley.edu> # Mainak Jas <mainak.jas@telecom-paristech.fr> # Stefan Appelhoff <stefan.appelhoff@mailbox.org> # # License: BSD (3-clause) import os.path as op # This is here to handle mne-python <0.20 import warn...
{"hexsha": "0ee219a15533a7095cf2a7e265b9ae67b99c75d8", "size": 4540, "ext": "py", "lang": "Python", "max_stars_repo_path": "mne_bids/tests/test_utils.py", "max_stars_repo_name": "eort/mne-bids", "max_stars_repo_head_hexsha": "74ac41a3f2035e4469f9930e725fe36f53f07146", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_s...
#include <boost/graph/adjacency_list.hpp> #include <boost/graph/graphviz.hpp> #include <string> #include <numeric> #include <fstream> #include <sstream> #include <boost/algorithm/string.hpp> #include <ctime> #include "../../libs/main_path_analysis/src/mainPathAnalysis/checkGraphProperties.hpp" #include "../../libs/ma...
{"hexsha": "35627ec024b5344817cfb30704cec8a3313e59d5", "size": 10286, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/backend/main_manuallyComputeNetwork.cpp", "max_stars_repo_name": "bencabrera/wikiMainPath", "max_stars_repo_head_hexsha": "a42e81a8fbe119e858548045653b2a22068a34f8", "max_stars_repo_licenses": ...
PIAssetServerLinks <- function(self = NULL, databases = NULL, notificationContactTemplates = NULL, securityIdentities = NULL, securityMappings = NULL, unitClasses = NULL, analysisRulePlugIns = NULL, timeRulePlugIns = NULL, security = NULL, securityEntries = NULL) { if (is.null(self) == FALSE) { if (is.character(self...
{"hexsha": "32588501093c1d8d146cb779a398e25b04f815a9", "size": 2402, "ext": "r", "lang": "R", "max_stars_repo_path": "R/PIAssetServerLinks.r", "max_stars_repo_name": "frbl/PI-Web-API-Client-R", "max_stars_repo_head_hexsha": "1e12907493053fe10c8b9feb229584b741d4ae2e", "max_stars_repo_licenses": ["Apache-2.0"], "max_star...
Load LFindLoad. From lfind Require Import LFind. Unset Printing Notations. Set Printing Implicit. Inductive natural : Type := Zero : natural | Succ : natural -> natural . Inductive lst : Type := Nil : lst | Cons : natural -> lst -> lst . Inductive tree : Type := Node : natural -> tree -> tree -> tree | Leaf : tr...
{"author": "ana-brendel", "repo": "coq-benchmarks", "sha": "78b9ca2993b0fb579d814ed17e63c6859e79681c", "save_path": "github-repos/coq/ana-brendel-coq-benchmarks", "path": "github-repos/coq/ana-brendel-coq-benchmarks/coq-benchmarks-78b9ca2993b0fb579d814ed17e63c6859e79681c/testing_results_initial/manual_testing/results/t...
// Copyright Ricardo Calheiros de Miranda Cosme 2018. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE or copy at // http://www.boost.org/LICENSE_1_0.txt) #include <coruja/object/object.hpp> #include <coruja/object/object_io.hpp> #include <coruja/object/view/transform.h...
{"hexsha": "6e08d29c60fece02847a959b20d1dfc8bc6e8bfc", "size": 7769, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/lift_object.cpp", "max_stars_repo_name": "romariorios/coruja", "max_stars_repo_head_hexsha": "275d1b05cdefd4d8e7665bb7bb37dbe15de3e9af", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count...
import numpy as np import matplotlib.pyplot as plt import states.utils as su import analysis.delayedfeedback.regression as re import analysis.delayedfeedback.patherrors as pe import analysis.delayedfeedback.datalayer as dl def is_target_forward(motiontrajectory, ptstart, ptend): """ Computes ray-target forward si...
{"hexsha": "926a9331d4325443ee87ef1299c29cf007dfd068", "size": 10650, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/analysis/delayedfeedback/trial.py", "max_stars_repo_name": "dmytrov/stochasticcontrol", "max_stars_repo_head_hexsha": "a289d5c0953c4a328b2177f51168588248c00f2c", "max_stars_repo_licenses": [...
import numpy as np import torch from torch.autograd import Function from cupy.cuda import function from pynvrtc.compiler import Program from collections import namedtuple class Forward_Warp_Cupy(Function): @staticmethod def forward(ctx, feature, flow, mask): kernel = ''' extern "C" __g...
{"hexsha": "6f565cac15226cd4c6425574c004ec2bd8fc3a52", "size": 6118, "ext": "py", "lang": "Python", "max_stars_repo_path": "forward_warp.py", "max_stars_repo_name": "columbia-robovision/dsr", "max_stars_repo_head_hexsha": "f34d60f885cd01e6b562e799d7c81eafda3ae765", "max_stars_repo_licenses": ["MIT"], "max_stars_count":...
from tqdm import tqdm import numpy as np from numpy import dot from numpy.linalg import norm from sentence_transformers import SentenceTransformer import pandas as pd class CasualTalker(): def __init__(self): self.model = SentenceTransformer('sentence-transformers/xlm-r-100langs-bert-base-nli-stsb-mean-to...
{"hexsha": "30fa24363f591501f19e0d6487743f7f33380fbb", "size": 925, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/casualtalker.py", "max_stars_repo_name": "katie0809/2021AiHub-ODQA", "max_stars_repo_head_hexsha": "a6377efd336217afab5de6797e0449ebce5837a2", "max_stars_repo_licenses": ["MIT"], "max_stars_...
from torch.utils.data import Dataset from PIL import Image import numpy as np import os from skimage.transform import resize import torch class YOLODataLoader(Dataset): def __init__(self, parameters, train_path, is_train): assert os.path.exists(train_path), '{} not exists'.format(train_path) ...
{"hexsha": "ef771334f5393b46802a4305711a071a71a3244e", "size": 3149, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/YOLODataLoader.py", "max_stars_repo_name": "rk8650/yolo-pytorch-sketch", "max_stars_repo_head_hexsha": "6470ee7f20190cd39fc21f3d3b79143e8a565f2e", "max_stars_repo_licenses": ["Apache-2.0"], ...
#!/usr/bin/env python3 import sys,os sys.path.append(os.getcwd() + '/../') import lnss.fourier as fourier import numpy as np import scipy as sp import sympy as sy from sympy import Piecewise, integrate, fourier_series, symbols, DiracDelta from sympy import Sum, exp, cos, sin, pi, I, Abs, oo from sympy.plotting import...
{"hexsha": "9f69ccc45dbc69d8123c58c6aba7422342b05f92", "size": 1510, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/fourier-FS-test.py", "max_stars_repo_name": "yehuohan/ln-ss", "max_stars_repo_head_hexsha": "e5db6ea616515d0da8d44dfec70e449c6e7dd572", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
using Random, Colors, Gtk, Cairo #=========== Channel and flag (IPC) section ===================# """ channel, communicates player's mouse choice of card or color to game logic """ const channel = Channel{Any}(100) """ flush the channel from mouse choice to game logic """ flushchannel() = while !isempty(channel) tak...
{"hexsha": "a4ccc3129aef2fc4fc175444f87b75547fcf46a7", "size": 24249, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/GtkUnoCardGame.jl", "max_stars_repo_name": "wherrera10/GtkUnoCardGame.jl", "max_stars_repo_head_hexsha": "2adffebb8929cb0c51fd20e9923bf690c6a4e136", "max_stars_repo_licenses": ["BSD-2-Clause"]...
from __future__ import print_function import numpy as np import copy import logging import traceback from simtk import openmm, unit from perses.dispersed.feptasks import Particle, compute_reduced_potential from perses.storage import NetCDFStorageView from perses.annihilation.relative import HybridTopologyFactory from p...
{"hexsha": "ec4aaa7e0b7c7c9118304cd32ffd2fcef9d69149", "size": 18992, "ext": "py", "lang": "Python", "max_stars_repo_path": "perses/annihilation/ncmc_switching.py", "max_stars_repo_name": "hannahbrucemacdonald/perses", "max_stars_repo_head_hexsha": "6b43d200501e587b352dce5aaefef38e4145048b", "max_stars_repo_licenses": ...
import torch import datetime import os import time import json import math import numpy as np from os.path import join as pjoin from observation_generation_dataset import ObservationGenerationData from agent import Agent import generic import evaluate def train(): time_1 = datetime.datetime.now() config = g...
{"hexsha": "158dc264716d5a15c0e87739733323718c0a70cc", "size": 9187, "ext": "py", "lang": "Python", "max_stars_repo_path": "train_obs_generation.py", "max_stars_repo_name": "yukw777/GATA-public", "max_stars_repo_head_hexsha": "e8c424093377874b395abaf9662f6fb2c553e0f5", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
! ! FnVFB.f90 ! ! ! ! Created by Kurt Mitman on 10/10/14. ! ! DOUBLE PRECISION FUNCTION FnVFB(bsav) USE Params USE Globals USE funcs USE Procedures IMPLICIT NONE DOUBLE PRECISION, INTENT(IN) :: bsav DOUBLE PRECISION :: cons,qmtemp,qltemp DOUBLE PRECISION :: vals(2) INTEGER ...
{"hexsha": "3cda54520f5ee609070d4c6b79ff3129672821d4", "size": 869, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "FortranCode/sensitivity-code/FnVFB.f90", "max_stars_repo_name": "lnsongxf/housing-boom-bust", "max_stars_repo_head_hexsha": "bb75a2fd0646802dcdf4d5e56d1392bae7090e1c", "max_stars_repo_licenses": ...
# Copyright (C) 2019 Project AGI # # 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 writi...
{"hexsha": "74f521c6ec5240b0168cdacd3a97f07e975c8eff", "size": 22671, "ext": "py", "lang": "Python", "max_stars_repo_path": "rsm/components/predictor_component.py", "max_stars_repo_name": "Cerenaut/rsm", "max_stars_repo_head_hexsha": "33bf8a3a620b46b5180280f2ca5f0b28c168b806", "max_stars_repo_licenses": ["Apache-2.0"],...
[STATEMENT] lemma max_coeff_bound': assumes "(x, y) \<in> Minimal_Solutions" shows "\<forall>i<length x. x ! i \<le> Max (set b)" and "\<forall>j<length y. y ! j \<le> Max (set a)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<forall>i<length x. x ! i \<le> Max (set b) &&& \<forall>j<length y. y ! j \<le> Max...
{"llama_tokens": 329, "file": "Diophantine_Eqns_Lin_Hom_Linear_Diophantine_Equations", "length": 2}
[STATEMENT] lemma coreflexive_mult_closed: "coreflexive x \<Longrightarrow> coreflexive y \<Longrightarrow> coreflexive (x * y)" [PROOF STATE] proof (prove) goal (1 subgoal): 1. \<lbrakk>coreflexive x; coreflexive y\<rbrakk> \<Longrightarrow> coreflexive (x * y) [PROOF STEP] using mult_isotone [PROOF STATE] proof (p...
{"llama_tokens": 221, "file": "Stone_Relation_Algebras_Semirings", "length": 2}
import numpy as np from math import cos, sin, atan2, asin import os import pdb import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt import argparse import sys if sys.version > '3': import pickle as cPickle else: import cPickle def estimate_pose(points_static, points_to_transform): #pdb.set...
{"hexsha": "d13673690706abba3d9d3568587b5dcfde2261e0", "size": 7318, "ext": "py", "lang": "Python", "max_stars_repo_path": "evaluation/evaluation.py", "max_stars_repo_name": "pixelai-3dface/cvpr2021_workshope_baseline", "max_stars_repo_head_hexsha": "f8d13a386fbe77aa2fc6fd28a12dc0b63d465474", "max_stars_repo_licenses":...
""" * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * - Redistributions in bina...
{"hexsha": "c28b0ff5028617b08dc00109632941c596c5fffa", "size": 4446, "ext": "py", "lang": "Python", "max_stars_repo_path": "ssplot/PlotBarStyle.py", "max_stars_repo_name": "ssnetsim/ssplot", "max_stars_repo_head_hexsha": "cf0160fd76d4b43c1d1e4f415b21cfc5477c572c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars...
/* * Copyright (c) 2008-2018, Hazelcast, Inc. 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 ...
{"hexsha": "0f7ade194235f2e76ff94205c31c9d7981605b3a", "size": 4632, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "hazelcast/src/hazelcast/client/aws/utility/CloudUtility.cpp", "max_stars_repo_name": "pirog-spb/hazelcast-cpp-client", "max_stars_repo_head_hexsha": "979cf38b85a8308dbcc75b7e94a2b79fffceae21", "max_...
from pylab import bar, title, xlabel, ylabel, figure import numpy as np def read2(filename, column): file= [] f = list(open(filename)) for line in f: line= line.strip().split(';') number = float(line[column]) if number > 0: file.append(number) return file ...
{"hexsha": "f584a852e7ad8768894159c22716c67b8ccd99b2", "size": 1650, "ext": "py", "lang": "Python", "max_stars_repo_path": "projekt.py", "max_stars_repo_name": "dcarvidal/ABV_Projekt-", "max_stars_repo_head_hexsha": "fcd96246baaadc1da5e964d56240d7331ed0d2c0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null,...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Mon Sep 02 10:13:22 2019 @author: ivancalderon """ # %% import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input from dash.dependencies import Output import get_data as gt import plotly.graph_obj...
{"hexsha": "0c54cddd73fbac4cbcb56b4dc19014b9a9f3ade0", "size": 9056, "ext": "py", "lang": "Python", "max_stars_repo_path": "stock_stats_app.py", "max_stars_repo_name": "ivancalderon/stock_stats", "max_stars_repo_head_hexsha": "fee31cec4c0288578f273a3111d4aeaee0a993f7", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
from flask import Flask, jsonify from flask import Flask, render_template, redirect from flask_pymongo import PyMongo import numpy as np import datetime as dt import scrape_mars app = Flask(__name__) # Use flask_pymongo to set up mongo connection app.config["MONGO_URI"] = "mongodb://localhost:27017/mars_app" mongo ...
{"hexsha": "c2a8b13d144c9293c62eb4ca0255969277560d4b", "size": 878, "ext": "py", "lang": "Python", "max_stars_repo_path": "Missions_to_Mars/app.py", "max_stars_repo_name": "fati165/web-scraping-challenge", "max_stars_repo_head_hexsha": "c8914a5c7740e8f32fac074a1b4517a1462de73c", "max_stars_repo_licenses": ["ADSL"], "ma...
// // Tests for testtool // #include <boost/interprocess/ipc/message_queue.hpp> #include <fstream> #include <gtest/gtest.h> #include <openssl/ssl.h> #include <string> #include "healthcheck_dummy.h" #include "lb_node.h" #include "msg.h" #include "testtool_test.h" using namespace std; using namespace boost::interproce...
{"hexsha": "655b55c29def29e6a867270bbbf6254bf56cba94", "size": 3397, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/testtool_test.cpp", "max_stars_repo_name": "innogames/testtool", "max_stars_repo_head_hexsha": "dfbb193ff5f1815cb1a0055cea2cd89779fc5888", "max_stars_repo_licenses": ["MIT"], "max_stars_count"...
#ifndef SHIFT_LIVEDEBUG_LISTENER_HPP #define SHIFT_LIVEDEBUG_LISTENER_HPP #include <vector> #include <thread> #include <shift/core/boost_disable_warnings.hpp> #include <boost/asio/io_context.hpp> #include <boost/asio/ip/tcp.hpp> #include <shift/core/boost_restore_warnings.hpp> #include "shift/livedebug/error_code.hpp"...
{"hexsha": "ae993a5d026d922c73ffb7a8dadebfbf42e73025", "size": 1242, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "shift/livedebug/private/shift/livedebug/listener.hpp", "max_stars_repo_name": "cspanier/shift", "max_stars_repo_head_hexsha": "5b3b9be310155fbc57d165d06259b723a5728828", "max_stars_repo_licenses": [...
# ----------------------------------------------------------------------------------------------------------- # Função auxiliar para exportação dos resultados como raster # ----------------------------------------------------------------------------------------------------------- import os import numpy as np import pa...
{"hexsha": "b375e84ecd0555f63a2d0a3a3d27134c62f9f6b8", "size": 1927, "ext": "py", "lang": "Python", "max_stars_repo_path": "functions/Custom_Export.py", "max_stars_repo_name": "fnaghetini/Mapa-Preditivo", "max_stars_repo_head_hexsha": "8302a4eaffa348717907011a44b4574fcce8a881", "max_stars_repo_licenses": ["MIT"], "max_...
import random import numpy as np from commonFunctions import phi random.seed(1) ''' Dados los extremos del intervalo, calcula el valor de varphi en el punto medio y el valor de varphi de dos puntos escogidos aleatoriamente, uno a la izquierda del punto medio y otro a la derecha. param: intizq: extremo infe...
{"hexsha": "025e6417d87f9c17663f4ce3644e8c4d791f0922", "size": 9075, "ext": "py", "lang": "Python", "max_stars_repo_path": "varphiMinim.py", "max_stars_repo_name": "pedritomelenas/GCM-TFG", "max_stars_repo_head_hexsha": "eb6679c6700fe99e04deb73dd9efa762b0c3b9e6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": n...
// Copyright (C) 2011 by the BEM++ Authors // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, p...
{"hexsha": "f599017270fc1b23d2ff109d5c1e7fb12f8f02b1", "size": 1896, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tests/grid/test_id_set.cpp", "max_stars_repo_name": "mschweiger/bempp", "max_stars_repo_head_hexsha": "a509587c44b94c9bda6bcb6d97de2cecba9d4847", "max_stars_repo_licenses": ["MIT"], "max_stars_count...
import numpy as np import matplotlib.pyplot as plt def plot_svr(X, y_hat, y, svr, kernel_label, model_color, dataset_color, mode='train'): plt.plot(X, y_hat, color=model_color, label=f'{kernel_label} model') if mode == 'train': plt.scatter(X[svr.su...
{"hexsha": "c922fe82ee330d58ff758cf16874c9225e70cb00", "size": 4106, "ext": "py", "lang": "Python", "max_stars_repo_path": "Archives/Helper_Functions/Plotting_Ops.py", "max_stars_repo_name": "sukumarh/Helio-Learning", "max_stars_repo_head_hexsha": "2010c252cbb343344c6833379ec1320cc31a4739", "max_stars_repo_licenses": [...
# Copyright 2021 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, so...
{"hexsha": "9659c6eeadb40bef04e1234965e0dbdc442ed985", "size": 13779, "ext": "py", "lang": "Python", "max_stars_repo_path": "bigbench/benchmark_tasks/gender_sensitivity_Chinese/task.py", "max_stars_repo_name": "youmaywrong/BIG-bench", "max_stars_repo_head_hexsha": "3f9b0fd8f89e58a0f8933aba1716ba7669409b68", "max_stars_...
[STATEMENT] lemma multiplicity_one_nat [simp]: "multiplicity p (Suc 0) = 0" [PROOF STATE] proof (prove) goal (1 subgoal): 1. multiplicity p (Suc 0) = 0 [PROOF STEP] unfolding One_nat_def [symmetric] [PROOF STATE] proof (prove) goal (1 subgoal): 1. multiplicity p 1 = 0 [PROOF STEP] by (rule multiplicity_one)
{"llama_tokens": 135, "file": null, "length": 2}
import numpy as np import cv2 class DinoResultsHandler: def __init__(self, database): self.database = database def drawGreenBox(self, queryImage, segImage, kpImage): # green box gray = cv2.cvtColor(segImage,cv2.COLOR_BGR2GRAY) ret,thresh = cv2.threshold(gray,127,255,0) ...
{"hexsha": "a2c2a6ae96b94a55ee83a2ae011f7e8a5e1a91d7", "size": 1308, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/dinoResultsHandler.py", "max_stars_repo_name": "abhat91/HumanDinoClassifier", "max_stars_repo_head_hexsha": "f46b8ff1697591d3a2669a1f5c871aaa4d999d20", "max_stars_repo_licenses": ["MIT"], "max...
import numpy as np def find_nonzero_groups(ts, min_len=1, min_interval=1): '''From a series of 1 and 0, find where the groups of 1 locates. For example, givien the time series [0,1,1,0,1,0], return [1, 4](starts of 1), [2, 1](lengths of groups).''' try: ts = ts.values except: pass t...
{"hexsha": "416295caaf8afbf62535a131948c4ef44e5196b0", "size": 3725, "ext": "py", "lang": "Python", "max_stars_repo_path": "mystats/eventstats.py", "max_stars_repo_name": "wy2136/wython", "max_stars_repo_head_hexsha": "0eaa9db335d57052806ae956afe6a34705407628", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, ...
#!/usr/bin/env python3 import numpy as np from scipy import optimize from scipy.optimize import fmin_cg from lrCostFunction import lrCostFunction def oneVsAll(X, y, num_labels, lambda_value, maxiter=50): #ONEVSALL trains multiple logistic regression classifiers and returns all #the classifiers in a matrix ...
{"hexsha": "c5aed5f4eac2828201fe05c99c1385c4dac7b233", "size": 2664, "ext": "py", "lang": "Python", "max_stars_repo_path": "machine-learning-ex3/ex3/oneVsAll.py", "max_stars_repo_name": "altermarkive/machine-learning-course", "max_stars_repo_head_hexsha": "2f0a2c2269dab2bd61d34d96a75ccdd8b87683c7", "max_stars_repo_lice...
#include <string> #include <vector> #include <algorithm> #include <boost/optional.hpp> #include <boost/bind.hpp> #include <tchar.h> #include <windows.h> #include <shlobj.h> BOOL SafeSHGetSpecialFolderPath(HWND hwndOwner,LPTSTR lpszPath,int nFolder,BOOL fCreate); boost::optional<std::string> reg_query_val...
{"hexsha": "11ee8bd078a2f6786fe0a7e6031e1c3e818b90d6", "size": 4435, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "getfolder/getfolder.cpp", "max_stars_repo_name": "PerEr/ccfinderx-core", "max_stars_repo_head_hexsha": "749dd1fc114290821dbc35e71fa331a1f7999466", "max_stars_repo_licenses": ["MIT"], "max_stars_coun...
import cv2 import numpy as np import imutils from facedetector import FaceDetector from imageutils import ImageUtils import argparse def manual_face_recog(path, img_size=256, save_in=None, resize=False, bgr2rgb=False, align=False): # read and convert to RGB print("-"*40) print(f'[INFO] Reading the imag...
{"hexsha": "496886e4cfe6943b625099c483fd24b5a8ae6997", "size": 2795, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/manual_recognition.py", "max_stars_repo_name": "Darshan-Ramesh/EmpRecognition", "max_stars_repo_head_hexsha": "c85775659bcbb79f62de29a7a764cc72f1de0674", "max_stars_repo_licenses": ["MIT"], "m...
""" Module controlling displaying of the text associated with the segmentation - either text releted to all slices or just a single one currently displayed or both """ module DisplayWords using FreeTypeAbstraction, ..ForDisplayStructs, ..DataStructs, ..ModernGlUtil , ModernGL, ColorTypes, ..PrepareWindowHelpers, ..S...
{"hexsha": "c2a4d1ba4b99fa6689ada6d7690c31275095219e", "size": 5711, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/display/GLFW/textRender/DisplayWords.jl", "max_stars_repo_name": "jakubMitura14/Probabilistic-medical-segmentation", "max_stars_repo_head_hexsha": "c177e1e0426f0e032a4bf804c81eef1f58ee0fa5", "m...
from pathlib import Path import numpy as np import gdal import math from itertools import repeat from concurrent.futures import ProcessPoolExecutor from typing import Optional from .utils import load_clean_yield_data as load from .utils import get_tif_files class DataCleaner: """Take the exported, downloaded da...
{"hexsha": "56994e516214ad7db7d3972214878b6cd491bf95", "size": 11669, "ext": "py", "lang": "Python", "max_stars_repo_path": "cyp/data/preprocessing.py", "max_stars_repo_name": "Florian-P-Huber/pycrop-yield-prediction", "max_stars_repo_head_hexsha": "9c1a000db55589b3480ae3ac2baab8f461947855", "max_stars_repo_licenses": ...
\subsection{Discussion} The quantative and qualitative data from iteration 2 shows that the app works for "validating the coaches' level of knowledge during their education", which was the main purpose of the master thesis (see section \ref{sec:research-questions}. Now, the app should be tested in Uganda as well, and ...
{"hexsha": "2b3c7c31559e0a915cbaa59dbf5a3b9464cf65c4", "size": 7628, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "result/iteration2/iteration_2_together.tex", "max_stars_repo_name": "marcusnygren/YoungDriveMasterThesis", "max_stars_repo_head_hexsha": "1e8639a356a7d2d4866819d7a569a24cc06e6a17", "max_stars_repo_l...
-- Andreas, 2018-09-03, issue #3207 -- -- Error message for disabled Prop. {-# OPTIONS --no-prop #-} test = Prop
{"hexsha": "437410a9de72894de6267d0a268e473c33df4407", "size": 115, "ext": "agda", "lang": "Agda", "max_stars_repo_path": "test/Fail/Issue3207.agda", "max_stars_repo_name": "cruhland/agda", "max_stars_repo_head_hexsha": "7f58030124fa99dfbf8db376659416f3ad8384de", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1...
/* * NormalVectorsFilter.cpp * * Created on: May 05, 2015 * Author: Peter Fankhauser, Martin Wermelinger * Institute: ETH Zurich, ANYbotics */ #include <grid_map_filters/NormalVectorsFilter.hpp> #include <pluginlib/class_list_macros.h> #include <grid_map_core/grid_map_core.hpp> #include <Eigen/Dense> #...
{"hexsha": "3c3e357df9be90a674d722d8c27e2de1b18dfe24", "size": 6424, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "grid_map_filters/src/NormalVectorsFilter.cpp", "max_stars_repo_name": "mktk1117/grid_map", "max_stars_repo_head_hexsha": "1ee4c5dd78d029f4ef7e209c4080e57e18b081fb", "max_stars_repo_licenses": ["BSD-...
from styx_msgs.msg import TrafficLight from traffic_l.model import detect_traffic_lights,read_traffic_lights import rospy import numpy as np import os import six.moves.urllib as urllib import tarfile import tensorflow as tf # from matplotlib import pyplot as plt from PIL import Image from os import path from traffic_l....
{"hexsha": "3b16ae235d94c54ec92b066ebbb32b1f17a83863", "size": 2280, "ext": "py", "lang": "Python", "max_stars_repo_path": "ros/src/tl_detector/light_classification/tl_classifier.py", "max_stars_repo_name": "suvratjain1995/CarND-Capstone", "max_stars_repo_head_hexsha": "78d7fae8ae6d9c155a14de5a42ae1d6f41951282", "max_s...
[STATEMENT] lemma supp_eqvt_at: assumes asm: "eqvt_at f x" and fin: "finite (supp x)" shows "supp (f x) \<subseteq> supp x" [PROOF STATE] proof (prove) goal (1 subgoal): 1. supp (f x) \<subseteq> supp x [PROOF STEP] apply(rule supp_is_subset) [PROOF STATE] proof (prove) goal (2 subgoals): 1. supp x supports...
{"llama_tokens": 659, "file": "Nominal2_Nominal2_Base", "length": 8}
function FRR = CreditAssignment(SW,D) % Credit assignment %------------------------------- Copyright -------------------------------- % Copyright (c) 2023 BIMK Group. You are free to use the PlatEMO for % research purposes. All publications which use this platform or any code % in the platform should acknowledge the u...
{"author": "BIMK", "repo": "PlatEMO", "sha": "c5b5b7c37a9bb42689a5ac2a0d638d9c4f5693d5", "save_path": "github-repos/MATLAB/BIMK-PlatEMO", "path": "github-repos/MATLAB/BIMK-PlatEMO/PlatEMO-c5b5b7c37a9bb42689a5ac2a0d638d9c4f5693d5/PlatEMO/Algorithms/Multi-objective optimization/MOEA-D-FRRMAB/CreditAssignment.m"}
\documentclass[letterpaper,11pt]{article} \usepackage{latexsym} \usepackage[empty]{fullpage} \usepackage{titlesec} \usepackage{marvosym} \usepackage[usenames,dvipsnames]{color} \usepackage{verbatim} \usepackage{enumitem} \usepackage[hidelinks]{hyperref} \usepackage{fancyhdr} \usepackage[english]{babel} \usepackage{tab...
{"hexsha": "083bfb55f08b111f0edab1152b14bf9bd6bf7c35", "size": 6525, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "resume.tex", "max_stars_repo_name": "Cb-Mc/resume", "max_stars_repo_head_hexsha": "60b683f5ec0a669a18d57566249da6af37c28a39", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "max_stars_...
import os import time import random import argparse import numpy as np from tqdm import tqdm import torch import torch.nn as nn import esm # For DDP import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP from transformers import AdamW, get_linear_schedule_with_warmup ...
{"hexsha": "ed81a02210c7d532bd4950a925ea27b96c0d78c6", "size": 8975, "ext": "py", "lang": "Python", "max_stars_repo_path": "finetune_ddp.py", "max_stars_repo_name": "William-Zhanng/Protein_affinity", "max_stars_repo_head_hexsha": "8abd12073b182274bf464ff23fd3be406c4e39ac", "max_stars_repo_licenses": ["MIT"], "max_stars...
/* * Copyright 2012 NVIDIA Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
{"hexsha": "7f2103c48b04b16a24713c79611ed7084824e4e5", "size": 3753, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/prelude/runtime/chunk.cpp", "max_stars_repo_name": "bryancatanzaro/copperhead-compiler", "max_stars_repo_head_hexsha": "11067c1d4bb1c850e88f9038782c41a6be3edd3c", "max_stars_repo_licenses": ["Ap...
# Imports: standard library import os import math import logging from typing import Set, Dict, List, Tuple, Union, Callable, Optional, Generator from threading import Thread from collections import Counter, defaultdict from multiprocessing import Event, Queue, Process # Imports: third party import h5py import numpy as...
{"hexsha": "4f1e7a4ce836a7cea00351427b532732b36e831c", "size": 42903, "ext": "py", "lang": "Python", "max_stars_repo_path": "ml4c3/datasets.py", "max_stars_repo_name": "mit-ccrg/ml4c3-mirror", "max_stars_repo_head_hexsha": "ea23e26eeb9814bb057f2c86c62c923dd347aa95", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_sta...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import json import os import torch import numpy as np from keops_utils import TestCuda use_cuda,torchdeviceId,torchdtype,KeOpsdeviceId,KeOpsdtype,KernelMethod = TestCuda(verbose=False) def try_mkdir(path): """ return 0 if folder already exists, 1 if created. ...
{"hexsha": "6b0fae7c6e00347506d13c9b7139972c11e377bb", "size": 5442, "ext": "py", "lang": "Python", "max_stars_repo_path": "IO.py", "max_stars_repo_name": "plantonsanti/PartialMatchingVarifolds", "max_stars_repo_head_hexsha": "032486e146262f6a2d08ec27215cc817eddb2928", "max_stars_repo_licenses": ["MIT"], "max_stars_cou...
import glob import numpy as np import matplotlib.pyplot as plt import cv2 from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor from datetime import datetime import time import yaml from pathlib import Path from nd2reader import ND2Reader import pandas as pd from scipy import ndimage as ndi from skimag...
{"hexsha": "97159060cdbdc6a73084e47e23b12e26fc44a9e0", "size": 13250, "ext": "py", "lang": "Python", "max_stars_repo_path": "fl.py", "max_stars_repo_name": "jni/pia-tracking", "max_stars_repo_head_hexsha": "45896fed059a8237bafdf0983329c706a271ca1c", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count": 3, "ma...
From mathcomp Require Import ssreflect ssrfun ssrbool ssrint eqtype ssrnat seq choice fintype rat finfun. From mathcomp Require Import bigop ssralg div ssrnum ssrint order finmap. From mathcomp Require Import ssreflect ssrfun ssrbool ssrint eqtype ssrnat seq choice fintype rat finfun. From mathcomp Require Import bigo...
{"author": "gancherj", "repo": "PIOA", "sha": "3996c274fe78cc2b9cb306c846d7e36ba751e0f8", "save_path": "github-repos/coq/gancherj-PIOA", "path": "github-repos/coq/gancherj-PIOA/PIOA-3996c274fe78cc2b9cb306c846d7e36ba751e0f8/Aux.v"}
import pytest import numpy as np import cntk as C TEST_CONFIG = [ # (num_layers, bidirectional, recurrent_op (1, True, 'lstm'), (1, False, 'lstm'), (2, False, 'lstm'), (3, True, 'lstm'), (4, True, 'rnnReLU'), (4, False, 'rnnTanh'), ] @pytest.mark.parametrize("num_layers, bidirectional, ...
{"hexsha": "6a3437729ce72b88d39880b80f92c260da030cd5", "size": 2468, "ext": "py", "lang": "Python", "max_stars_repo_path": "bindings/python/cntk/misc/tests/convert_optimized_rnnstack_test.py", "max_stars_repo_name": "shyamalschandra/CNTK", "max_stars_repo_head_hexsha": "0e7a6cd4cc174eab28eaf2ffc660c6380b9e4e2d", "max_s...
from __future__ import print_function, division, absolute_import import aphla as ap import numpy as np import matplotlib.pylab as plt ap.machines.load('nsls2','SR') quad_list_str_from_aptinker = ''' ql3g6c30b ql2g6c30b ql1g6c30b ql1g2c01a ql2g2c01a ql3g2c01a ql3g6c02b ql2g6c02b ql1g6c02b ql1g2c03a ql2g2c03a ql3g2c03...
{"hexsha": "1f013e207fa2c20c74347f0a896dd8ac03a80d10", "size": 3140, "ext": "py", "lang": "Python", "max_stars_repo_path": "aphla/gui/TinkerUtils/aptinker_tune_change_config_generator.py", "max_stars_repo_name": "NSLS-II/aphla", "max_stars_repo_head_hexsha": "ceb5410dc836a8fb16321b6dc5e10d442be765c5", "max_stars_repo_l...
from transformation.images.mutator.Mutator import Mutator import numpy as np class ColorClassifier(Mutator): def __init__(self, filterSize, inverse=False): super().__init__(filterSize, filterSize) self.inverse = inverse self.colors = [] def loadColors(self, colors:list): if t...
{"hexsha": "95699d7dd80f4da3a31e643b5fcf24acec6775f0", "size": 1601, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/transformation/images/mutator/ColorClassifier.py", "max_stars_repo_name": "CraigR8806/SignalProcessor", "max_stars_repo_head_hexsha": "60267da2b1d7035d8a42dd276fcd7e62f806942a", "max_stars_rep...
theory HelloWorld_Proof imports HelloWorld begin section\<open>Correctness\<close> subsection\<open>Modeling Input and Output\<close> text\<open> With the appropriate assumptions about \<^const>\<open>println\<close> and \<^const>\<open>getLine\<close>, we can even prove something. We summarize our model ab...
{"author": "data61", "repo": "PSL", "sha": "2a71eac0db39ad490fe4921a5ce1e4344dc43b12", "save_path": "github-repos/isabelle/data61-PSL", "path": "github-repos/isabelle/data61-PSL/PSL-2a71eac0db39ad490fe4921a5ce1e4344dc43b12/SeLFiE/Example/afp-2020-05-16/thys/Hello_World/HelloWorld_Proof.thy"}
# ================================================================ # MIT License # Copyright (c) 2021 edwardyehuang (https://github.com/edwardyehuang) # ================================================================ # This code is motified from offical TensorFlow repo, may be deleted in future (since a bug is fixed)...
{"hexsha": "b1bb0f46b8b7378d1d0d1dd033d3800f39fe2d49", "size": 3650, "ext": "py", "lang": "Python", "max_stars_repo_path": "metrics/mean_iou.py", "max_stars_repo_name": "edwardyehuang/iSeg", "max_stars_repo_head_hexsha": "256b0f7fdb6e854fe026fa8df41d9a4a55db34d5", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ...
import pickle import gensim from gensim.corpora import Dictionary from gensim.models.coherencemodel import CoherenceModel import matplotlib.pyplot as plt import numpy as np def plot_coefficients(classifier, feature_names=None, top_features=20): coef = classifier.coef_.ravel() top_positive_coefficients = np.arg...
{"hexsha": "216fa5846b9b034a876d5d4d414d5c1976fb103d", "size": 3021, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/topic_model.py", "max_stars_repo_name": "Xinyi2016/fashion-mnist", "max_stars_repo_head_hexsha": "133d57e2a42abd58a311cc2e142d6b2663f98f8f", "max_stars_repo_licenses": ["MIT"], "max_stars_co...
import cv2 import matplotlib.pyplot as plt import numpy as np from keras.preprocessing import image from scipy.io import loadmat import pandas as pd import numpy as np from random import shuffle import os import cv2 import numpy as np from scipy.misc import imread, imresize def load_image(image_path, grayscale=False,...
{"hexsha": "ce031e90d9a9a7d1c4354b7ede1b3026eaa2286a", "size": 2334, "ext": "py", "lang": "Python", "max_stars_repo_path": "util.py", "max_stars_repo_name": "RNE-Project/implementation", "max_stars_repo_head_hexsha": "139b66f819134e5ab476723ca5b1e69cd7a57b16", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null...
import numpy as np from PIL import Image from sklearn.cluster import KMeans # [k_means_coloration] takes in an image path [image_path], a number of colors [num_colors], and two optional # arguments [color_1] and [color_2]. It sorts the rgb data of the image using the k-means clustering algorithm, and # recolor...
{"hexsha": "0ed3d6607d60a4ea58bbc37bb6fbc3db763237a5", "size": 2769, "ext": "py", "lang": "Python", "max_stars_repo_path": "k_means_coloration.py", "max_stars_repo_name": "Lituchy/Image-Coloration", "max_stars_repo_head_hexsha": "523620880c50f90242b49eb55e8f6e63a1650feb", "max_stars_repo_licenses": ["MIT"], "max_stars_...
#include <iostream> #include <fstream> #include <vector> #include <boost/filesystem.hpp> #include <ros/ros.h> #include <message_filters/subscriber.h> #include <std_msgs/Header.h> using namespace std; namespace { class FallStatsRecorder { private: //! Node handle ros::NodeHandle nh; //! Private nh ro...
{"hexsha": "7ac86a15abc247aa3f5945d2320bd4aac2f5618f", "size": 4080, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/fall_stats_recorder.cpp", "max_stars_repo_name": "PositronicsLab/humanoid_catching", "max_stars_repo_head_hexsha": "11d42d164c7f19fbd8642c9c0318a630111ec18e", "max_stars_repo_licenses": ["Apache...
\section{Certifications} % \resumeSubHeadingListStart % % {~~}{\WorkLocation{Algiers, Algeria}} % % {\WorkPeriod{2013}{ 2014}} % % \Certification{Microsoft Certified Specialist, Programming in C\#: Microsoft, License E716-0701.} % \resumeSubHeadingListEnd \resumeSubHeadingListStart \Certifica...
{"hexsha": "061d131ff82b62f5b0b15fa2a662df293955cbe3", "size": 437, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "Parts/Sections/Certifications.tex", "max_stars_repo_name": "AymenDaoudi/Resume", "max_stars_repo_head_hexsha": "00bfb33ba3d50d96d489aad53afff4f7164c7816", "max_stars_repo_licenses": ["MIT"], "max_sta...