text stringlengths 0 1.25M | meta stringlengths 47 1.89k |
|---|---|
import cv2
import numpy as np
class LaserCapture():
def __init__(self, stream):
self.stream = stream
def openStream(self):
cap = cv2.VideoCapture(self.stream)
while(True):
ret, frame = cap.read()
frame = cv2.flip(frame,1)
hsv = cv2.cv... | {"hexsha": "e815b6a0cc6f24f8a8792417981608208dac25b4", "size": 1044, "ext": "py", "lang": "Python", "max_stars_repo_path": "HCI/Laser Capture/Python/LaserCapture.py", "max_stars_repo_name": "k-sae/HCI-Lab", "max_stars_repo_head_hexsha": "ec40136907eaa9ea983efa7b4761e2bb1f5918a5", "max_stars_repo_licenses": ["Apache-2.0... |
import torch
import torch.nn as nn
import numpy as np
class PlanarTransform(nn.Module):
def __init__(self, dim=20):
super().__init__()
self.u = nn.Parameter(torch.randn(1, dim) * 0.01)
self.w = nn.Parameter(torch.randn(1, dim) * 0.01)
self.b = nn.Parameter(torch.randn(()) * 0.01)
... | {"hexsha": "ba4c87fb06cd2b8387ed8e3934d64d976fe6c5e3", "size": 1397, "ext": "py", "lang": "Python", "max_stars_repo_path": "transforms.py", "max_stars_repo_name": "kaiqi-ken/planar-flow-pytorch", "max_stars_repo_head_hexsha": "3761883bbb53a40f903b5840c18e772bfd3e3d99", "max_stars_repo_licenses": ["MIT"], "max_stars_cou... |
import cv2
import numpy as np
# 부분 영상 추출
img1 = cv2.imread('images\HappyFish.png')
img2 = img1[40:120, 30:150] # numpy.ndarray의 슬라이싱
img3 = img1[40:120, 30:150].copy()
img2.fill(0)
cv2.imshow('img1', img1)
cv2.imshow('img2', img2) # 검은색
cv2.imshow('img3', img3) # 부분 이미지
cv2.waitKey()
cv2.destroyAllWindows()
| {"hexsha": "8981980cedcd4a6aacf081fd0abcf3ac825551d4", "size": 310, "ext": "py", "lang": "Python", "max_stars_repo_path": "ocv03-03.py", "max_stars_repo_name": "LeeCheahyun/20210823-0930", "max_stars_repo_head_hexsha": "12927fe918452b3e7da5fcd4d31da6095c400106", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_cou... |
[STATEMENT]
lemma (in group_hom) trivial_hom_iff: \<^marker>\<open>contributor \<open>Paulo Em?lio de Vilhena\<close>\<close>
"h ` (carrier G) = { \<one>\<^bsub>H\<^esub> } \<longleftrightarrow> kernel G H h = carrier G"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (h ` carrier G = {\<one>\<^bsub>H\<^esub>}) = (... | {"llama_tokens": 339, "file": null, "length": 3} |
[STATEMENT]
lemma the_lub_equality [elim?]:
assumes "lub A x"
shows "\<Squnion>A = (x::'a::order)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. \<Squnion>A = x
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. \<Squnion>A = x
[PROOF STEP]
interpret lub A x
[PROOF STATE]
proof (prove)
goal ... | {"llama_tokens": 1662, "file": null, "length": 33} |
from openamundsen import constants as c, meteo
import numpy as np
from .soiltexture import SoilTextureClass
# Default soil water characteristics for different soil types (from Table 19 in Allen et al. (1998))
DEFAULT_SOIL_WATER_CONTENTS_AT_FIELD_CAPACITY = { # m3 m-3
SoilTextureClass.SAND: (0.07 + 0.17) / 2,
... | {"hexsha": "6e497bf12ff35754018484e2a51c18b22813fbef", "size": 34748, "ext": "py", "lang": "Python", "max_stars_repo_path": "openamundsen/modules/evapotranspiration/evapotranspiration.py", "max_stars_repo_name": "openamundsen/openamundsen", "max_stars_repo_head_hexsha": "2ac09eb34b0c72c84c421a0dac08d114a05b7b1c", "max_... |
import numpy as np
import matplotlib.pyplot as pt
import torch as tr
from Backend.cr_minimax import minimax,evaluate
from CreateBoard.create_board import init
from Util.utilities import *
from PlayGame.play_game import insert_atom
# Code to generate training data
# Each training example is an intermediate game state, ... | {"hexsha": "a461be23ab47c8ba0b995e03f4d74e38778c7cd6", "size": 3236, "ext": "py", "lang": "Python", "max_stars_repo_path": "ChainReaction/Backend/generate_training.py", "max_stars_repo_name": "AkshayHebbar/ChainReactionAI", "max_stars_repo_head_hexsha": "0ee27bfe032a1a5cda1acaa09b596507c70265ab", "max_stars_repo_licens... |
from abc import ABCMeta, abstractmethod
from enum import Enum
import numpy as np
__author__ = "Mathijs Maijer"
__email__ = "m.f.maijer@gmail.com"
class ConditionType(Enum):
'''
The condition type enum, specifying what the condition is targeting
'''
STATE = 0
ADJACENCY = 1
UTILITY = 2
CUS... | {"hexsha": "70d533c103cb0500821704474c5060673609516a", "size": 4538, "ext": "py", "lang": "Python", "max_stars_repo_path": "dynsimf/models/components/conditions/Condition.py", "max_stars_repo_name": "Tensaiz/DyNSimF", "max_stars_repo_head_hexsha": "6288ff83f1b3f56fa626f741b55ade57b7c1b358", "max_stars_repo_licenses": [... |
import os, os.path
import numpy as np
import pandas as pd
## function to "projct" backwards waste that was deposited (used only in the absence of historical data)
def back_project_array(
array_in: np.ndarray,
n_periods: int = 10,
bp_gr: float = 0.03,
use_mean_forward: bool = False,
n_periods_for_... | {"hexsha": "2ba4c958bb9daa983d2b32a2de49d965d00fc76f", "size": 13960, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/support_functions.py", "max_stars_repo_name": "egobiernoytp/lac_decarbonization", "max_stars_repo_head_hexsha": "7b574c4c91a0b1341dfd97a203fc8477ba32a91d", "max_stars_repo_licenses": ["Apa... |
#-h- swvar 157 local 12/01/80 15:55:08
# swvar - output switch variable SWnnnn, where nnnn = lab
# (modified aug82 dct to permit declaration of switch variable)
include defs
subroutine swvar (lab)
integer lab, i, labnum, ndigits
ifnotdef (UPPERC, call outch (LETS))
ifdef (UPPERC, call out... | {"hexsha": "df8da34469920d46a607597bd6eaf23c16fe0b1d", "size": 603, "ext": "r", "lang": "R", "max_stars_repo_path": "iraf.v2161/unix/boot/spp/rpp/rpprat/swvar.r", "max_stars_repo_name": "ysBach/irafdocgen", "max_stars_repo_head_hexsha": "b11fcd75cc44b01ae69c9c399e650ec100167a54", "max_stars_repo_licenses": ["MIT"], "ma... |
using ACE, BenchmarkTools
pool = ACE.ArrayCache{Float64}()
##
function runn(x, N, len)
@assert length(x) >= len
fill!(x, 0)
for n = 1:N, i = 1:len
x[i] += i/n
end
return nothing
end
x = rand(1000)
@btime runn($x, 1000, 1000)
##
function runn2(cache, N, len)
x = ACE.acquire!(cache, l... | {"hexsha": "362542b29cde3c66c8f241bd3181af33474004c4", "size": 779, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/test_pools.jl", "max_stars_repo_name": "cortner/PoSH.jl", "max_stars_repo_head_hexsha": "3c0090197398465754f382192b3d9df35634d5a0", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, ... |
include("../../../good_plots/line_and_render.jl")
angle_vars = [15.0, 40.0, 85.0]
mass_fixed = 10
spin_fixed = 0.998
angle_fixed = 40.0
for angle in angle_vars
plt = combined_plot(;
mass=mass_fixed,
spin=spin_fixed,
obs_angle=angle,
... | {"hexsha": "a6461a006863b8af812b831daab2d0d7b8fbdd99", "size": 620, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "scripts/solva_plots/PT/iron_lines/iron_line_combined.jl", "max_stars_repo_name": "kyle8mcknight/AccretionFormulae.jl", "max_stars_repo_head_hexsha": "611a0dde2f124b8ed81792225ba4be5bbf0909f9", "max_... |
module SixDof
using LinearAlgebra, DifferentialEquations, Distances
using ...Utils, ...Types
include("aerodynamic_coeff.jl")
export trajectorySixDof!, QEfinderSixDof!, iniCondSixDof
function sixdof(du,u,p,t)
calibre,m,Ixx,It, ω_bar, g₀, Rz, target,dist = p
λ0 = u[1]
λ1 = u[2]
λ2 = u[3]
λ3 = u[4]
... | {"hexsha": "7cf69af79a16e2de5ae52a8025c1573f176bd390", "size": 7024, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/SixDof.jl", "max_stars_repo_name": "YayeIrene/Ballistics.jl", "max_stars_repo_head_hexsha": "e28ba21d32b65814b75c37f5a21cd396b8fcb7bd", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nu... |
# Copyright (c) Microsoft Corporation and Fairlearn contributors.
# Licensed under the MIT License.
from test.unit.reductions.grid_search.utilities import _quick_data
import numpy as np
import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from fai... | {"hexsha": "0f6727d38c50344c4004998e2468c91e3a883640", "size": 6034, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/unit/reductions/moments/test_moments_bounded_group_loss.py", "max_stars_repo_name": "marymlucas/fairlearn", "max_stars_repo_head_hexsha": "73e6a8ff797d5f6e6b2f5932313b72ffb95331c8", "max_star... |
"""
*Kaiser Window*
"""
from dataclasses import dataclass
import jax.numpy as jnp
from ._operator import Window
__all__ = ["KaiserWindow"]
@dataclass
class KaiserWindow(
Window,
):
operator = jnp.kaiser
| {"hexsha": "28523e1bc2843e1d4c514688b914dc2fe20bc43d", "size": 223, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/tensor/op/morphism/window/kaiser.py", "max_stars_repo_name": "jedhsu/tensor", "max_stars_repo_head_hexsha": "3b2fe21029fa7c50b034190e77d79d1a94ea5e8f", "max_stars_repo_licenses": ["Apache-2.0"]... |
!=============================================================================!
subroutine impRK()
!
! Driver for implicit R-K time advancement of the compressible Navier-Stokes
! solver. This routine could also be used as the backbone of a MF-GMRES
! driver. However, the RK scheme doesn't really work w... | {"hexsha": "0f2be4a9c885361383fe0a2c0c4f762c81d3061c", "size": 7048, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "ssd/imprk.f90", "max_stars_repo_name": "sscollis/lns3d", "max_stars_repo_head_hexsha": "f87b06abbb188cce9248092075f71dcce4570493", "max_stars_repo_licenses": ["BSD-3-Clause"], "max_stars_count":... |
#####################
# STWalk1
# Learns trajectory representation of graph nodes by considering spatial and temporal neighbors together
#####################
import random
from gensim.models import Word2Vec
import networkx as nx
import sys
from multiprocessing import cpu_count
import time
import argparse
import os
... | {"hexsha": "cf000b44432f904660d68471253c3e23e1642e7f", "size": 5934, "ext": "py", "lang": "Python", "max_stars_repo_path": "code/STWalk1.py", "max_stars_repo_name": "cchengv5/STWalk", "max_stars_repo_head_hexsha": "50a13f1c66ee3042318eee413af0d48352b2728f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 16, "ma... |
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Sep 24 08:12:19 2019
Geotiff process module
GDAL based
@author: datarock
"""
from osgeo import gdal
import os
import numpy as np
import progressbar
class GeoProcess:
def __init__(self):
self.transform = []
self.image = []
s... | {"hexsha": "2449b01675a70ffb9ee40b3b271eb415b5e1e335", "size": 3025, "ext": "py", "lang": "Python", "max_stars_repo_path": "GeoProcess.py", "max_stars_repo_name": "dfalveargOT/CropCount", "max_stars_repo_head_hexsha": "42e43cacd5de3c5251e344ba1d6fa33576420467", "max_stars_repo_licenses": ["MIT"], "max_stars_count": nul... |
import sys
import os
import numpy as np
sys.path.append('src')
#os.system("cd src/cython_files && python setup.py build_ext --inplace && cython -a cython_integrand.pyx && cd ../..")
from cython_files.cython_integrand import *
from integrand_and_rk import Integrand
from numpy.testing import assert_allclose
class Test_... | {"hexsha": "533be3cdde583d7e126963ce932504ca33674102", "size": 959, "ext": "py", "lang": "Python", "max_stars_repo_path": "code_testing/unit_testing_integrand.py", "max_stars_repo_name": "Computational-Nonlinear-Optics-ORC/Single-mode-FOPO", "max_stars_repo_head_hexsha": "d4d6e973d0abfa32c86991b03ef8efba918cb650", "max... |
# * Level
"""
Level(csf, J)
Given a [`CSF`](@ref) with a final [`Term`](@ref), a `Level`
additionally specifies a total angular momentum ``J``. By further
specifying a projection quantum number ``M_J``, we get a
[`State`](@ref).
"""
struct Level{O,IT,T}
csf::CSF{O,IT,T}
J::HalfInt
function Level(csf::... | {"hexsha": "a3b495d2a48412fb92cc708296aa48695a07c408", "size": 4512, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/levels.jl", "max_stars_repo_name": "JuliaAtoms/AtomicLevels.jl", "max_stars_repo_head_hexsha": "1e7ada7098291c88b795d881dba54cd5379faee3", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
[STATEMENT]
lemma simplify_and_membership :
assumes "all_fulfill finite S"
assumes "T = simplify S"
assumes "C \<in> S"
shows "redundant C T"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. redundant C T
[PROOF STEP]
proof -
[PROOF STATE]
proof (state)
goal (1 subgoal):
1. redundant C T
[PROOF STEP]
{
[PROOF... | {"llama_tokens": 6833, "file": "PropResPI_Propositional_Resolution", "length": 96} |
######################
# 1: The Julia type for ToricDivisors
######################
struct ToricDivisor
polymake_divisor::Polymake.BigObject
end
export ToricDivisor
function pm_tdivisor(td::ToricDivisor)
return td.polymake_divisor
end
######################
# 2: Generic constructors
#################... | {"hexsha": "4597c19fe0c58367a5a6080f82601a4d8a36423c", "size": 7172, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/ToricDivisors.jl", "max_stars_repo_name": "HereAround/JToric.jl", "max_stars_repo_head_hexsha": "e8907f1ccd10a637254808916f859e354e479296", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
"""
# Part of localization phase
# suspected bug detection:
# 1. Tensorflow,Theano,CNTK
# 2. Tensorflow,Theano,MXNET
#
# voting process
# -> a. inconsistency -> error backend,error layer.
# b. check error backend in new container(whether inconsistency disappears).
# """
#
import numpy as np
import os
import sys
imp... | {"hexsha": "d3c2c5adc3c47f3d85af0d5e9e6aba4dd3581833", "size": 23078, "ext": "py", "lang": "Python", "max_stars_repo_path": "scripts/localization/suspected_bugs_detector.py", "max_stars_repo_name": "ganler/LEMON", "max_stars_repo_head_hexsha": "bc8d24ad5142c5eb7f8cdf6dfed09abf8da23619", "max_stars_repo_licenses": ["Apa... |
using StaticArrays
using Base: ReinterpretArray, ReshapedArray
using LinearAlgebra: norm
import Base.convert
export mat, vecs, xyz
export SVec, SMat, JVec, JVecF, JMat, JMatF
export maxdist, maxnorm
"typealias fora static vector type; currently `StaticArrays.SVector`"
const SVec = SVector
"typealias fora static mat... | {"hexsha": "2d694ecf486306baa85a1fd4d45dca340ea3ebd7", "size": 2698, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/arrayconversions.jl", "max_stars_repo_name": "wcwitt/JuLIP.jl", "max_stars_repo_head_hexsha": "68e1f987ba7f51fc1145870cbc99b2718da38f1f", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
#include "Configuration.h"
#include "util/ErrorUtil.h"
#include <boost/program_options/options_description.hpp>
#include <boost/program_options/parsers.hpp>
#include <boost/program_options/variables_map.hpp>
#include <cstdlib>
#include <filesystem>
#include <fstream>
#include <optional>
namespace po = boost::program... | {"hexsha": "51cf425079c6f3ba21c8a645ce17bfa466642392", "size": 4061, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "nvbit-module/src/Configuration.cpp", "max_stars_repo_name": "tomix86/oneagent-nvbit-extension", "max_stars_repo_head_hexsha": "6d477349b80a77dc052645c94f223954fd516967", "max_stars_repo_licenses": [... |
import os
import json
import numpy
import bson
import sys
def ipython_info():
ip = False
if 'ipykernel' in sys.modules:
ip = 'notebook'
elif 'IPython' in sys.modules:
ip = 'terminal'
return ip
def get_tqdm():
ip = ipython_info()
if ip == "terminal" or not ip:
from tqd... | {"hexsha": "41582bde918e37928813e9df4a210c3c0937bedf", "size": 1584, "ext": "py", "lang": "Python", "max_stars_repo_path": "modules/utils.py", "max_stars_repo_name": "learnerhouse/ner-bert", "max_stars_repo_head_hexsha": "606328a27a7313b6c22b78590e06618ad77402cd", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
import numpy as np
import pygame
import time
from pygame import draw
from random import randint
from pygame.constants import KEYDOWN, MOUSEBUTTONDOWN, MOUSEBUTTONUP, MOUSEMOTION
##--------------------VARIABLES--------------------##
WIN_WIDTH = 510
WIN_HEIGHT = 510
FPS = 1000
TIME_DELAY = int(1000/FPS)
##------------... | {"hexsha": "b4fe3b186d3b294d32e65a8602286541c1093673", "size": 2379, "ext": "py", "lang": "Python", "max_stars_repo_path": "server/board_test.py", "max_stars_repo_name": "JungleState/ksr_junglestate", "max_stars_repo_head_hexsha": "99e86458b5056507bd36906f295bef11f2c734f5", "max_stars_repo_licenses": ["MIT"], "max_star... |
from unittest import TestCase
import numpy as np
from piafedit.model.geometry.point import Point
from piafedit.model.geometry.rect import Rect
from piafedit.model.source.raw_data_source import RawDataSource
shape = (5, 5, 3)
buffer = np.array(range(5 * 5 * 3)).reshape(shape)
source = RawDataSource(buffer)
class Te... | {"hexsha": "5a2e27ed1b1640920926662fd45ff1a0578580a2", "size": 770, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests/sources/test_raw_data_source.py", "max_stars_repo_name": "flegac/piaf-edit", "max_stars_repo_head_hexsha": "d100231c0c60cd4412dd37b22a88fe7bb5fb4982", "max_stars_repo_licenses": ["MIT"], "max... |
//=======================================================================
// Copyright (c) 2013 Piotr Smulewicz
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//===============================================... | {"hexsha": "325c28904fd59aab96e53544abde19a2e9569340", "size": 1947, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "test/greedy/shortest_superstring/shortest_superstring_long_test.cpp", "max_stars_repo_name": "Kommeren/AA", "max_stars_repo_head_hexsha": "e537b58d50e93d4a72709821b9ea413008970c6b", "max_stars_repo_... |
# -*- coding: utf-8 -*-
from __future__ import print_function
import os
import os.path
import sys
# import before Cython stuff, to avoid
# overriding Cython’s Extension class:
from psutil import cpu_count # type: ignore
from setuptools import setup, find_packages # type: ignore
from distutils.... | {"hexsha": "e83d1922a21d2c20cc73b5131679e03618e01146", "size": 4149, "ext": "py", "lang": "Python", "max_stars_repo_path": "setup.py", "max_stars_repo_name": "fish2000/halogen", "max_stars_repo_head_hexsha": "6962e9babc49bcb845deb72b0e5ed5033a2444a6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 6, "max_stars... |
#!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import logging
import copy
import random
logging.basicConfig(level=logging.DEBUG)
# Cooperate Value
coop = 'C'
# Defect value
dfct = 'D'
# Von Newmann type
vonNewmann = 'vonNewmann'
# Moore type
moore = 'moore'
vonNewmannSize = 4
mooreSize = 8
class Pl... | {"hexsha": "9ff840c44ade76053261e79bd928349c8b38c3f8", "size": 7764, "ext": "py", "lang": "Python", "max_stars_repo_path": "assignment2_sketch.py", "max_stars_repo_name": "fabioanh/GT-Assignment2", "max_stars_repo_head_hexsha": "586ee3f617b23e36440c6ec2941cd5e2ceecb01b", "max_stars_repo_licenses": ["Unlicense"], "max_s... |
def read_data_sets():
basepath = '/'.join(__file__.split('/')[:-1])
import input_data
data = input_data.read_data_sets(basepath+'/bin', one_hot=True)
import os
import numpy as np
if not os.path.isfile(basepath+'/bin/permutation.npy'):
indices = np.random.permutation(28**2)
os.makedirs(basepath+'/bin', exis... | {"hexsha": "455678af8f6afbb182cfde62be7d4adf164d1991", "size": 632, "ext": "py", "lang": "Python", "max_stars_repo_path": "mnist_permuted/dataset/input_data_permuted.py", "max_stars_repo_name": "jostmey/RWA", "max_stars_repo_head_hexsha": "41d73d0bd9ffba71ea5ead5b3de2704dacbe531d", "max_stars_repo_licenses": ["BSD-3-Cl... |
import numpy as np
def fact(n):
if n<2:
return 1
else:
return n*fact(n-1)
def f(N,k):
return fact(N)/( fact(k) * fact(N-k) )
def b(t,k,N):
return f(N,k) * (1-t)**(N-k) * t**k
def bezier(t,points):
N = points.shape[1]-1 # colnum
sum = np.zeros((3,1))
for k in range(0,N+1):
sum[:,0] += ... | {"hexsha": "6d257e2d15cb5d466477408239163853587baf52", "size": 634, "ext": "py", "lang": "Python", "max_stars_repo_path": "01-Tool/bezier.py", "max_stars_repo_name": "pat92fr/FootTrajectoryPlanner", "max_stars_repo_head_hexsha": "80533e9f7f902162de13807781809206b171f81c", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
from numpy import loadtxt
from xgboost import XGBClassifier
from catboost import CatBoostClassifier
from matplotlib import pyplot as plt
import pandas as pd
import numpy as np
from sklearn.metrics import roc_auc_score
from sklearn import metrics
from xgboost import plot_importance
import smote_variants as sv
... | {"hexsha": "e515ac2c822ad2c0818773e0734d99a6bd4f7140", "size": 5264, "ext": "py", "lang": "Python", "max_stars_repo_path": "smote_variants/XGBoostWork.py", "max_stars_repo_name": "dddtqshmpmz/PDX", "max_stars_repo_head_hexsha": "60c52888419462b03d495fb3034372ec9a394f2b", "max_stars_repo_licenses": ["Apache-2.0"], "max_... |
# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications thereto. Any use, reproduction, disclosure or
# distribution of this software and re... | {"hexsha": "3d095bc626d0ba7e140386ded27d99cac4367410", "size": 5649, "ext": "py", "lang": "Python", "max_stars_repo_path": "metrics/perceptual_path_length.py", "max_stars_repo_name": "RimmaVakhreeva/stylegan2-ada-pytorch", "max_stars_repo_head_hexsha": "76ecd6fd3ae84c6461c3c2426378b24377441c13", "max_stars_repo_license... |
\section{Experience}
\outerlist{
\entrybig
{\textbf{Razer}}{Singapore, SGP}
{Software Engineer Parttime}{2019-2020}
\innerlist{
\entry{Helped build, test, and improve on widely available software used by customers worldwide}
\entryextra{Collaborated with peers on the improvements of software performance and perf... | {"hexsha": "2b4c07f21fe546127ced3f60e3f3c94dd9b13a89", "size": 1219, "ext": "tex", "lang": "TeX", "max_stars_repo_path": "sections/experience.tex", "max_stars_repo_name": "darkdread/Simple-CV", "max_stars_repo_head_hexsha": "f2935b86e4b8677ce8126a12409200d454ff46ee", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import cv2
import matplotlib.pyplot as plt
from .box_utils import iou
def load_classes(path):
with open(path) as class_file:
class_names = class_file.read().split("\n")[:-1]
return class_names
def predict_tra... | {"hexsha": "a09d470f4c5fcaecebea11ef87d89bf31f8f840d", "size": 5820, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyvision/detection/yolov3/utils/utils.py", "max_stars_repo_name": "indiradutta/PyVision", "max_stars_repo_head_hexsha": "cf74da32a3469ddcce9917ac1f2fcaaeefdeacdf", "max_stars_repo_licenses": ["BSD... |
//
// Copyright 2005-2007 Adobe Systems Incorporated
//
// Distributed under the Boost Software License, Version 1.0
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
//
#ifndef BOOST_GIL_EXTENSION_DYNAMIC_IMAGE_ANY_IMAGE_VIEW_HPP
#define BOOST_GIL_EXTENSION_DYNAMIC_IMAGE_ANY_I... | {"hexsha": "901fb6fdbeeb98784a21d27471cdddf6d9fe2005", "size": 7142, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "ReactNativeFrontend/ios/Pods/boost/boost/gil/extension/dynamic_image/any_image_view.hpp", "max_stars_repo_name": "Harshitha91/Tmdb-react-native-node", "max_stars_repo_head_hexsha": "e06e3f25a7ee6946... |
Load LFindLoad.
From lfind Require Import LFind.
From adtind Require Import goal10.
Require Import Extraction.
Extract Inductive nat => nat [ "(O)" "S" ].
Extract Inductive list => list [ "Nil" "Cons" ].
Definition lfind_example_1 := ( Nil).
Definition lfind_example_2 := ( Nil).
Definition ... | {"author": "yalhessi", "repo": "lemmaranker", "sha": "53bc2ad63ad7faba0d7fc9af4e1e34216173574a", "save_path": "github-repos/coq/yalhessi-lemmaranker", "path": "github-repos/coq/yalhessi-lemmaranker/lemmaranker-53bc2ad63ad7faba0d7fc9af4e1e34216173574a/benchmark/clam/_lfind_clam_lf_goal10_rev_append_54_append_rev_Cons/lf... |
'''
Copyright (c) 2016 Abhishek Agrawal (abhishek.agrawal@protonmail.com)
Distributed under the MIT License.
See accompanying file LICENSE.md or copy at http://opensource.org/licenses/MIT
'''
# Set up modules and packages
# I/O
import csv
from pprint import pprint
# Numerical
import numpy as np
import pandas as pd
fr... | {"hexsha": "80a95f9b145ce663be1150b948cbfe92b0dd9d8b", "size": 3732, "ext": "py", "lang": "Python", "max_stars_repo_path": "python/plotPostAnalysisOrbitalElements.py", "max_stars_repo_name": "agrawalabhishek/NAOS", "max_stars_repo_head_hexsha": "25ae383d2c3f9a52ecd2e06f34661e52e239478b", "max_stars_repo_licenses": ["MI... |
import numpy as np
from pyfftw.interfaces import numpy_fft as fft
from unyt import UnitRegistry
import unyt as U
from unyt import unyt_array, unyt_quantity
from unyt.dimensions import length
from numba import jit, njit
import logging
from scipy.spatial import cKDTree as KDTree
from scipy.interpolate import interpn
im... | {"hexsha": "77e46efadb1d27c77a7d17bd5075bd297ed5c64b", "size": 15465, "ext": "py", "lang": "Python", "max_stars_repo_path": "py_extrema/extrema.py", "max_stars_repo_name": "cphyc/py_extrema", "max_stars_repo_head_hexsha": "1e05149d71d16124ef854a2c4fd88c04b36c0e7d", "max_stars_repo_licenses": ["CECILL-B"], "max_stars_co... |
import numpy as np
class Sample:
def __init__(self, state: np.ndarray,
action: int,
next_state: np.ndarray,
reward: float,
next_sample: object = None):
""" next_sample is reference to Sample class"""
self.state = state
se... | {"hexsha": "6507d75e44885537393ce5f034b9381527f65ee0", "size": 817, "ext": "py", "lang": "Python", "max_stars_repo_path": "sample.py", "max_stars_repo_name": "KrzysztofSoja/PDD-DQN", "max_stars_repo_head_hexsha": "f8f8d7473e9a8ecff4320cc5f4c943228cba8209", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m... |
/-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Lu-Ming Zhang.
-/
/-
import linear_algebra.matrix.nonsingular_inverse
/-!
This file supplements things about matrix inverse, that were missing in mathlib.
-/
namespace matrix
universe... | {"author": "l534zhan", "repo": "my_project", "sha": "8949e149c242debd7cf932ba252cb67b10e78a43", "save_path": "github-repos/lean/l534zhan-my_project", "path": "github-repos/lean/l534zhan-my_project/my_project-8949e149c242debd7cf932ba252cb67b10e78a43/src/inv_matrix.lean"} |
module RK45
import Dates
import Logging
import Printf: @sprintf
#Get Butcher tableau etc from separate file (for convenience of changing if wanted)
include("dopri.jl")
function solve(f!, y0, t, dt, tmax;
rtol=1e-6, atol=1e-10, safety=0.9, max_dt=Inf, min_dt=0, locextrap=true,
norm=weakno... | {"hexsha": "1117e9e450cff073706caee248cd6a542152f98c", "size": 13285, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/RK45.jl", "max_stars_repo_name": "jtravs/Luna.jl", "max_stars_repo_head_hexsha": "2658d01f9bb8469788d8929192eb10c47f1092c7", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 3, "max_star... |
[STATEMENT]
lemma rq_rev_lq[reversal_rule]: "(rev v)\<^sup><\<inverse>(rev u) = rev (u\<inverse>\<^sup>>v)"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. rev v\<^sup><\<inverse>rev u = rev (u\<inverse>\<^sup>>v)
[PROOF STEP]
by simp | {"llama_tokens": 106, "file": "Combinatorics_Words_CoWBasic", "length": 1} |
import streamlit as st
import pandas as pd
import numpy as np
def write():
st.title("Increment médio por cliente")
chart_data = pd.DataFrame(
np.random.randn(20, 2),
columns=['Distribuição', 'Controlo'])
st.line_chart(chart_data) | {"hexsha": "4f092deda96dd7a4266d50db46ac5d6eee04216b", "size": 269, "ext": "py", "lang": "Python", "max_stars_repo_path": "metrics.py", "max_stars_repo_name": "vsousasmc/oef_webapp", "max_stars_repo_head_hexsha": "788bf8b5bfb54fd3cc614b201bc065b67be2c3c6", "max_stars_repo_licenses": ["MIT"], "max_stars_count": null, "m... |
import matplotlib.pyplot as plt
import numpy as np
def raw_plot(data):
"""
Args:
data: Numpy 2-D array. Row 0 contains episode lengths/timesteps and row 1 contains episodic returns
Returns:
"""
plt.plot(np.cumsum(data[0]), data[1])
plt.xlabel('Steps')
h = plt.ylabel("Return", label... | {"hexsha": "e261c5fa3c749a2d3360c9be7a021604086035d8", "size": 2863, "ext": "py", "lang": "Python", "max_stars_repo_path": "rl_suite/plot.py", "max_stars_repo_name": "gauthamvasan/rl_suite", "max_stars_repo_head_hexsha": "5290804040eb663f6c164c6cc84efcbad3317465", "max_stars_repo_licenses": ["MIT"], "max_stars_count": ... |
function response = Forgetful(n,p)
persistent ncount trustcount roundstore
if n==1; ncount=0; trustcount=0; roundstore=0; end
if ncount==1 && (p==1 || p==5); trustcount=trustcount+1; end
if n>5
if isequal( roundstore(end-3:end), [5 0 5 0] );
trustcount = 2;
ncount = 5;
end
end
if ( p==1 || p=... | {"author": "Sable", "repo": "mcbench-benchmarks", "sha": "ba13b2f0296ef49491b95e3f984c7c41fccdb6d8", "save_path": "github-repos/MATLAB/Sable-mcbench-benchmarks", "path": "github-repos/MATLAB/Sable-mcbench-benchmarks/mcbench-benchmarks-ba13b2f0296ef49491b95e3f984c7c41fccdb6d8/27611-iterated-prisoners-dilemma/IPD/Ziggy/F... |
"""
tf_layers.py
All the layers that we use in experiments as functions rather than objects.
14.09.2019 - @yashbonde
"""
import logging
import numpy as np
import tensorflow as tf
from .common_layer_fns import shapes_list
def gelu_activation(inp):
"""
Gaussian Error Linear Unit (GELU) is a new type of acti... | {"hexsha": "0b04381bde04d8d5979ce04806a59d1be988ca78", "size": 11897, "ext": "py", "lang": "Python", "max_stars_repo_path": "transformer/tf_layers.py", "max_stars_repo_name": "yashbonde/transformer_network_tensorflow", "max_stars_repo_head_hexsha": "2b499ae9de46562b536bed08d1099557bbd67a88", "max_stars_repo_licenses": ... |
"""convert_to_records
Convert images to TFRecords
"""
import argparse
import logging
import numpy as np
import tensorflow as tf
import tqdm
from scipy.misc import imresize
from tensorflow.examples.tutorials.mnist import input_data
from deep_networks import data_util
def parse_args():
"""Parse command line ar... | {"hexsha": "caa41a4395427f92e2f0db3beb697cb49e7f1c59", "size": 3139, "ext": "py", "lang": "Python", "max_stars_repo_path": "deep_networks/bin/convert_to_records.py", "max_stars_repo_name": "se4u/DeepNetworks", "max_stars_repo_head_hexsha": "693db0a0148f425b5dbe8d1c69d069dfcf3b6e76", "max_stars_repo_licenses": ["Apache-... |
#include "SPNControlPool.h"
#include <boost/pool/object_pool.hpp>
#include <mutex>
static std::mutex sPoolMutex;
static boost::object_pool<SPNControl> sPool{128 /* initial segment */,
512 /* max segment size */};
SPNControl *SPNControlPool::construct(const ml::Symbol &name... | {"hexsha": "ae23e9c653c92d488a2d5e310d0eb32bceea017a", "size": 643, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/SPNControlPool.cpp", "max_stars_repo_name": "ngwese/spn", "max_stars_repo_head_hexsha": "e5793cfc6bad4a5378ecb5955d16a5b6c656c297", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1.0, "ma... |
'''
Adopted from minerva-schools/EnsembleRL
'''
#Policy Gradient with REINFORCE Agent
import gym
from datetime import datetime
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
import tensorflow as tf
from tensorflow.python.keras.layers import Dense, Dropout
from tensorflow.python.keras import Se... | {"hexsha": "e80c3f54bd34367436aa9eec18440ce254a8242d", "size": 7752, "ext": "py", "lang": "Python", "max_stars_repo_path": "agent-ensemble/REINFORCE.py", "max_stars_repo_name": "nemathahmed/Ensemble-RL", "max_stars_repo_head_hexsha": "9d1b9577ba2449cb44c076f3ae91990e9ab2078b", "max_stars_repo_licenses": ["MIT"], "max_s... |
export afun
function afun(x::Tx, params::Dict{String, Any}) where {ETx<:Number, Tx<:AbstractArray{ETx}}
if params["logical"] == 1
xv = vec(x)
Ind = params["Ind"]
xv[.~Ind] = zero(ETx)
else
xv = vec(x)
Ind = params["Ind"]
xv[Ind] .= zero(ETx)
end
return xv
end
| {"hexsha": "6cd6dccc0d33879bea285028bf0520622d613723", "size": 287, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/afun.jl", "max_stars_repo_name": "yzhang3198/GenSPGL.jl", "max_stars_repo_head_hexsha": "565e53b8bda4425eb9270536059e1cc194a5bee1", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7, "max... |
//=============================================================================================================
/**
* @file fnn.cpp
* @author Christoph Dinh <chdinh@nmr.mgh.harvard.edu>;
* Matti Hamalainen <msh@nmr.mgh.harvard.edu>
* @version 1.0
* @date February, 2017
*
* @section LICENSE
*
* Cop... | {"hexsha": "bd3ebb8ab3779b5a5714e72d788d14970e3bc4c8", "size": 6245, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "applications/mne_analyze/extensions/deepcntknets/fnn/fnn.cpp", "max_stars_repo_name": "MagCPP/mne-cpp", "max_stars_repo_head_hexsha": "05f634a8401b20226bd719254a5da227e67a379b", "max_stars_repo_lice... |
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
#include <vector>
#include <string>
#include <limits>
#include <stdlib.h>
#include <boost/regex.hpp>
#include "saga/saga.hpp"
#include "saga/... | {"hexsha": "947df1d0b283085d754e6346d3bcc90ee730aa2f", "size": 11188, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "tools/clutils/sd/saga-sd.cpp", "max_stars_repo_name": "saga-project/saga-cpp", "max_stars_repo_head_hexsha": "7376c0de0529e7d7b80cf08b94ec484c2e56d38e", "max_stars_repo_licenses": ["BSL-1.0"], "max... |
# From https://github.com/sjchoi86/tensorflow-101/blob/master/notebooks/mlp_mnist_simple.ipynb
import numpy as np
import tensorflow as tf
from tensorflow.examples.tutorials.mnist import input_data
mnist = input_data.read_data_sets('../dll/mnist/', one_hot=True)
n_hidden_1 = 500
n_hidden_2 = 250
n_input = 784
n_c... | {"hexsha": "0ef27ec8ac60727602eb71fc5ba432674114c5c7", "size": 2342, "ext": "py", "lang": "Python", "max_stars_repo_path": "tf/experiment1.py", "max_stars_repo_name": "wichtounet/frameworks", "max_stars_repo_head_hexsha": "e0cac9d4ffbbf0b1e9d2491eb70bf2c6154f313b", "max_stars_repo_licenses": ["MIT"], "max_stars_count":... |
/// a4::io::A4Input A4Input maps files to streams.
#include <a4/input.h>
#include <unordered_set>
#include <functional>
#include <string>
#include <iostream>
#include <boost/thread.hpp>
#include <boost/thread/locks.hpp>
#include <a4/input_stream.h>
namespace a4 {
namespace io {
typedef boost::unique_lock<boost:... | {"hexsha": "58823c204ab7d4bdc64643fed2cce38b705f74be", "size": 2791, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "a4io/src/input.cpp", "max_stars_repo_name": "a4/a4", "max_stars_repo_head_hexsha": "e1de89260cb3894908f1d01dfacea125abc79da9", "max_stars_repo_licenses": ["BSL-1.0"], "max_stars_count": 4.0, "max_st... |
[STATEMENT]
lemma card2_eq: "card e = 2 \<longleftrightarrow> (\<exists>u v. u\<noteq>v \<and> e={u,v})"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. (card e = 2) = (\<exists>u v. u \<noteq> v \<and> e = {u, v})
[PROOF STEP]
by (auto simp: eval_nat_numeral card_Suc_eq) | {"llama_tokens": 125, "file": "Prim_Dijkstra_Simple_Common", "length": 1} |
import sys, os
import numpy as np
import math
sys.path.insert (0, '/home/tensor/aa_dpe_emulate/include/')
sys.path.insert (0, '/home/tensor/aa_dpe_emulate/src/')
from data_convert import *
from instrn_proto import *
from tile_instrn_proto import *
dict_temp = {}
dict_list = []
i_temp = i_receive(mem_addr=768, vtile_id... | {"hexsha": "ce369e7f2018e2830d3d3c6f29bddbaf59397f0a", "size": 1531, "ext": "py", "lang": "Python", "max_stars_repo_path": "test/testasm/large/tile2/large-mvm-tile2.dpe.py", "max_stars_repo_name": "souravsanyal06/puma-simulator", "max_stars_repo_head_hexsha": "9580656dc0e16fb36eb268054abe4391ade183db", "max_stars_repo_... |
from typing import List
import networkx as nx
from graspologic.models import SBMEstimator
from graspologic.plot import heatmap
from matplotlib import pyplot as plt
from graph import GraphIO
from itertools import chain, combinations
def fit_apriori_sbm(connectome: nx.DiGraph, group: List[str], plot_sbms=True):
"... | {"hexsha": "e6a81c44454e75b02558a9f7da23d23753261c56", "size": 2212, "ext": "py", "lang": "Python", "max_stars_repo_path": "analysis/apriori_sbm_code.py", "max_stars_repo_name": "CaseyWeiner/Connectocross", "max_stars_repo_head_hexsha": "abc27d8a9abfdff554761c41fc7e8ee11ad41dca", "max_stars_repo_licenses": ["MIT"], "ma... |
from getContent import getContent
import numpy as np
import pygame
import time
import os
API_url_setting = 'http://127.0.0.1:8000/request/getSettings'
API_url_songs = 'http://127.0.0.1:8000/request/getSongs'
def playSong(songPath):
pygame.mixer.init()
pygame.mixer.music.load(songPath)
pygame.mixer.music.p... | {"hexsha": "a8f31b75eb2a42ffdb8fa4aff4e8649ae60c196a", "size": 1599, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/FaceRecog/detected.py", "max_stars_repo_name": "JiahongHe/Personal-Facial-Identification-System", "max_stars_repo_head_hexsha": "11ed41a5afda02f46f04f539036fb1c27dc756d6", "max_stars_repo_lice... |
import numpy as np
import copy
position_type = ['Direct','Cartesian']
def get_reciprocal_lattice(H):
a1 = H[0,:]
a2 = H[1,:]
a3 = H[2,:]
b1 = None
b2 = None
b3 = None
G = np.array([[1,0,0],[0,1,0],[0,0,1]])
G[0,:] = b1
G[1,:] = b2
G[2,:] = b3
return G
class SimulationCel... | {"hexsha": "f603dc248abdd0785ef300abc2c2736253605e56", "size": 1877, "ext": "py", "lang": "Python", "max_stars_repo_path": "tests_old/tests_unit/test_io_ase/04_make_all_bulk_structures/crystallography.py", "max_stars_repo_name": "eragasa/pypospack", "max_stars_repo_head_hexsha": "21cdecaf3b05c87acc532d992be2c04d85bfbc2... |
section \<open>Ferrari's formula for solving quartic equations\<close>
theory Ferraris_Formula
imports
Polynomial_Factorization.Explicit_Roots
Polynomial_Interpolation.Ring_Hom_Poly
Complex_Geometry.More_Complex
begin
subsection \<open>Translation to depressed case\<close>
text \<open>Solving an arbit... | {"author": "isabelle-prover", "repo": "mirror-afp-devel", "sha": "c84055551f07621736c3eb6a1ef4fb7e8cc57dd1", "save_path": "github-repos/isabelle/isabelle-prover-mirror-afp-devel", "path": "github-repos/isabelle/isabelle-prover-mirror-afp-devel/mirror-afp-devel-c84055551f07621736c3eb6a1ef4fb7e8cc57dd1/thys/Cubic_Quartic... |
### create a directory for saving the results of the city
function createresultsdirectory(path_to_results_folder, city)
path_to_results = string(path_to_results_folder,city);
folder_list = readdir(path_to_results_folder);
for i = 1:length(folder_list)
folder_name = folder_list[i];
if ... | {"hexsha": "875809fd18b53aad41af84bfdaa0cedf27ce9153", "size": 527, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/createresultsdirectory.jl", "max_stars_repo_name": "ArsamAryandoust/CarParkingMaps", "max_stars_repo_head_hexsha": "c7aebb51192a3b821be657ddf4523297cc1978f1", "max_stars_repo_licenses": ["MIT"],... |
import numpy as np
import tensorrt as trt
import pycuda.driver as cuda
import pycuda.autoinit
# 上述语句未显式调用,但是必须引入,否则会报错
import cv2
import sys, os
# sys.path.insert(1, os.path.join(sys.path[0], ".."))
import common
import random
# stephen add :
import math
import time
import threading
from threading import Thread
TR... | {"hexsha": "6c84dcc230dab9795741db6924ede035bb1f30de", "size": 9179, "ext": "py", "lang": "Python", "max_stars_repo_path": "my_tools/multiProcessing.py", "max_stars_repo_name": "StephenStorm/SlowFast", "max_stars_repo_head_hexsha": "9e3616ec05bd0433c721d0b9438ac3ac0f145ac5", "max_stars_repo_licenses": ["Apache-2.0"], "... |
[STATEMENT]
lemma iT_Div_mem_iff_Int: "
0 < k \<Longrightarrow> x \<in> (I \<oslash> k) = (I \<inter> [x * k\<dots>,k - Suc 0] \<noteq> {})"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. 0 < k \<Longrightarrow> (x \<in> I \<oslash> k) = (I \<inter> [x * k\<dots>,k - Suc 0] \<noteq> {})
[PROOF STEP]
apply (simp ad... | {"llama_tokens": 566, "file": "Nat-Interval-Logic_IL_IntervalOperators", "length": 5} |
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn import TransformerDecoderLayer, TransformerDecoder
class ResidualBlock(nn.Module):
"""Represents 1D version of the residual block: https://arxiv.org/abs/1512.03385"""
def __init__(self, input_dim):
"""... | {"hexsha": "449fdbb789f77e135003e082d5939805d3b72f78", "size": 4638, "ext": "py", "lang": "Python", "max_stars_repo_path": "decoder.py", "max_stars_repo_name": "senadkurtisi/pytorch-image-captioning", "max_stars_repo_head_hexsha": "d7ebf2e6f9bec8bf199b5b0236ffbdfdb5152b46", "max_stars_repo_licenses": ["MIT"], "max_star... |
C Copyright(C) 2009-2017 National Technology & Engineering Solutions of
C Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
C NTESS, the U.S. Government retains certain rights in this software.
C
C Redistribution and use in source and binary forms, with or without
C modification, are permitted provid... | {"hexsha": "27c7d816738880473e01cf3c777465adac00fde3", "size": 3488, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "packages/seacas/applications/blot/roteye.f", "max_stars_repo_name": "mathstuf/seacas", "max_stars_repo_head_hexsha": "49b3466e3bba12ec6597e364ce0f0f149f9ca909", "max_stars_repo_licenses": ["BSD-3-... |
import sys
import os
lucas_path = os.environ['LUCAS_PATH']
sys.path.insert(1, lucas_path)
from q_learning.environments.distributedEnvironment import DistributedEnvironment
from q_learning.environments.actionEnvironment import ActionEnvironment
from q_learning.environments.environment import RLEnvironment
from q_learn... | {"hexsha": "39784effd8b24200d264a83ee2c666bc5752f003", "size": 7416, "ext": "py", "lang": "Python", "max_stars_repo_path": "scratch_dql/scratch4.py", "max_stars_repo_name": "lbaiao/sys-simulator-2", "max_stars_repo_head_hexsha": "94f00d43309fe7b56dac5099bd4024695ba317b6", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
#coding=utf-8
"""
分词 / 词干提取和词形还原
构造词典,统计词频
构造哈夫曼树
生成节点所在的二进制编码
初始化各非叶节点的中间向量和叶节点中的词向量
训练中间向量和词向量
"""
import math
from WordCount import WordCounter,MulCounter
import File_Interface as FI
from HuffmanTree import HuffmanTree
import numpy as np
import jieba
from sklearn import preprocessing
class Wo... | {"hexsha": "fe31bc729dc8a4495ac1f00596370be86c353752", "size": 7771, "ext": "py", "lang": "Python", "max_stars_repo_path": "pyword2vec.py", "max_stars_repo_name": "yuanlaihenjiandan/word2vec", "max_stars_repo_head_hexsha": "14cd103e732dd84305a46d25c64b79a2b70a0667", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
import tkinter as tk
from tkinter import Frame,Label,Entry,Button
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
import random
def swap(Array,i,j):
if i!=j:
Array[i],Array[j] = Array[j],Array[i]
... | {"hexsha": "b9497957bbe6865d139a88b59c8eb68cc7c46243", "size": 5213, "ext": "py", "lang": "Python", "max_stars_repo_path": "tkintertesting.py", "max_stars_repo_name": "DanielYanger/Python-Projects", "max_stars_repo_head_hexsha": "0d6cd76b8c10b063625e5ad80b5aaa6fc8ef7cd0", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
################################################################################
# Components - Processors, Memory, IO Handlers
################################################################################
# Task classes are used to control which tasks are mapped to which cores.
# each core has fulfill one or more ... | {"hexsha": "c1ef575cb36a809e9939eadc259926b4bbf687b0", "size": 7289, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "src/Metadata.jl", "max_stars_repo_name": "hildebrandmw/AsapMapper.jl", "max_stars_repo_head_hexsha": "b27abede303cd1391080eb1b19bb89a842219139", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
library(tidyverse)
library(data.table)
# library(bit64)
library(scales)
library(readxl)
# Extracted revenue and expenditure data is found here:
# https://bythenumbers.sco.ca.gov/Finance-Application/City-Revenues/rrtv-rsj9
# https://bythenumbers.sco.ca.gov/Finance-Application/City-Expenditures/ju3w-4gxp
setwd('~/../D... | {"hexsha": "45548363a2d9683d9e7b1565939d2f66e27fadb6", "size": 4965, "ext": "r", "lang": "R", "max_stars_repo_path": "Projects/Local government elections, finance/scripts/analyze_ca_city_revenue_expenditure_data.r", "max_stars_repo_name": "vishalbelsare/Public_Policy", "max_stars_repo_head_hexsha": "4f57140f85855859ff2... |
DGEEVX Example Program Results
Eigenvalues
Eigenvalue rcond error
1 7.9948E-01 0.9936 -
2 (-9.9412E-02, 4.0079E-01) 0.7027 -
3 (-9.9412E-02,-4.0079E-01) 0.7027 -
4 -1.0066E-01 0.5710 -
Eigenvectors
Eigenvector rcond ... | {"hexsha": "89c30fb31c2c5f6fc82ddc0d84f48c36a29713f0", "size": 839, "ext": "r", "lang": "R", "max_stars_repo_path": "examples/baseresults/dgeevx_example.r", "max_stars_repo_name": "numericalalgorithmsgroup/LAPACK_examples", "max_stars_repo_head_hexsha": "0dde05ae4817ce9698462bbca990c4225337f481", "max_stars_repo_licens... |
import AeroProcess as ap
import matplotlib.pyplot as plt
import numpy as np
"""
Plot of a long trajectory between waypoints
at speed 500/60 nmi/min.
"""
Nsim = 1
npoint = 100
v = 500/60
Time = 20
tet = 90
tet1 = 30
tet2 = 30
a1, c1 = ap.TrajOblique([0,0], tet, Nsim, npoint, Time=Time, v =v)
a2, c2 = ap.TrajOblique(... | {"hexsha": "9a6260f1a1ffa099687ee45e21818d4301b8f959", "size": 1178, "ext": "py", "lang": "Python", "max_stars_repo_path": "Python scripts/Script_4_LongTraj.py", "max_stars_repo_name": "Aircollition/Aircollition", "max_stars_repo_head_hexsha": "3bedcf2d649373a6d136d9656f015a850571a37c", "max_stars_repo_licenses": ["MIT... |
// Persistent Homology code by Hubert Wagner based on an implementation by Chao Chen
#include <cmath>
#include <vector>
#include <map>
#include <set>
#include <list>
#include <cassert>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <deque>
#includ... | {"hexsha": "0876c0558e438d4435e7781f2fdee485a2e88067", "size": 3291, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "Code/cPers/cPers/PersistencePython.cpp", "max_stars_repo_name": "HuXiaoling/TopoNet", "max_stars_repo_head_hexsha": "5cb98177de50a3694f5886137ff7c6f55fd51493", "max_stars_repo_licenses": ["MIT"], "m... |
/**
* endian.hpp
*
* Created on: 22 июля 2015 г.
* Author: zmij
*/
#ifndef LIB_PG_ASYNC_INCLUDE_TIP_UTIL_ENDIAN_HPP_
#define LIB_PG_ASYNC_INCLUDE_TIP_UTIL_ENDIAN_HPP_
#include <boost/predef/other/endian.h>
#include <boost/predef/detail/endian_compat.h>
#include <boost/cstdint.hpp>
#include <boost/endian/de... | {"hexsha": "eee06300b252b7beb866c7fae77d4084f762e949", "size": 3984, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "lib/util/include/tip/util/endian.hpp", "max_stars_repo_name": "zmij/pg_async", "max_stars_repo_head_hexsha": "08e4078588827c87297168102d7ed6b9807ab818", "max_stars_repo_licenses": ["Artistic-2.0"], ... |
import numpy as np
import matplotlib.image as mpimg
from skimage.feature import hog
from scipy.ndimage.measurements import label
from collections import deque
import cv2
color_space = 'YUV' # Can be RGB, HSV, LUV, HLS, YUV, YCrCb
orient = 15 # HOG orientations
pix_per_cell = 8 # HOG pixels per cell
cell_per_block =... | {"hexsha": "f1c2c82f1162c031422785397f30ef731eb20211", "size": 15631, "ext": "py", "lang": "Python", "max_stars_repo_path": "only-python-code/util.py", "max_stars_repo_name": "mechasolution-vn/vehicle-detection-wtih-hog-svm", "max_stars_repo_head_hexsha": "17fd2e482ca95a3247d6269a489b3860b219aec8", "max_stars_repo_lice... |
import numpy as np
class Stencil:
'''
Initialise a Stencil instance with relative cell indices where
-1 and 0 are the adjacent cells upwind and downwind of the target face
respectively.
'''
def __init__(self, indices):
self.indices = np.array(indices)
def cellCentres(self, mesh, in... | {"hexsha": "04532b74d588766cb82af1882452987e6aa6e021", "size": 1580, "ext": "py", "lang": "Python", "max_stars_repo_path": "1d/stencil.py", "max_stars_repo_name": "hertzsprung/high-order-transport", "max_stars_repo_head_hexsha": "50d9633642dcd4d8fba54b9b408e69dc0f12d9e7", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
import argparse
import os
import glob
import numpy as np
from cv2 import aruco
import cv2
from cal_data import CalibrationData
def calibrate_camera(all_corners, all_ids, imsize):
"""
Calibrates the camera using the dected corners.
"""
print("CAMERA CALIBRATION")
board, aruco_dict = make_board()
... | {"hexsha": "98425ec10c166a9750bb3915249c2d73f9db10d3", "size": 7027, "ext": "py", "lang": "Python", "max_stars_repo_path": "sail_shape/calibration/calibrate.py", "max_stars_repo_name": "sergei/sk-cam", "max_stars_repo_head_hexsha": "13b3bba37e06bdf234b8cf081685bcc9b30b2a9b", "max_stars_repo_licenses": ["Apache-2.0"], "... |
using Test
using ConvDiffMIPDECO
using jInv.ForwardShare
using jInv.LinearSolvers
using KrylovMethods
using jInv.Mesh
using SparseArrays
using LinearAlgebra
using MUMPSjInv
domain = [0 1. 0 3. 0 2.]
N = [8;16;32]
v = randn(3,1)
v /= norm(v)
V = X -> ones(size(X,1))*v'
bc = (:neu,:dir,:dir,:neu,:dir,:dir)
u = X -> c... | {"hexsha": "1611cfd186d87c1be67e9ca50343109b9af08f63", "size": 1197, "ext": "jl", "lang": "Julia", "max_stars_repo_path": "test/testConvDiff3D.jl", "max_stars_repo_name": "JuliaInv/ConvDiffMIPDECO", "max_stars_repo_head_hexsha": "95a3aead09d34811c4c2ca14279df93a0b40ecdb", "max_stars_repo_licenses": ["MIT"], "max_stars_... |
//
// Copyright © 2017 Arm Ltd. All rights reserved.
// SPDX-License-Identifier: MIT
//
#include "FullyConnected.hpp"
#include "RefWorkloadUtils.hpp"
#include <boost/assert.hpp>
namespace armnn
{
void FullyConnected(const TensorShape& rInputShape,
Decoder<float>& rInputDecoder,
... | {"hexsha": "02d9b060ef6e8a897b99170b40398748e7173073", "size": 1856, "ext": "cpp", "lang": "C++", "max_stars_repo_path": "src/backends/reference/workloads/FullyConnected.cpp", "max_stars_repo_name": "VinayKarnam/armnn", "max_stars_repo_head_hexsha": "98525965c7cfecd9bf48297b433b2122cd1b4a1d", "max_stars_repo_licenses":... |
[STATEMENT]
lemma replicate_snoc: "x\<^bsup>n\<^esup> @ [x] = x\<^bsup>Suc n\<^esup>"
[PROOF STATE]
proof (prove)
goal (1 subgoal):
1. x\<^bsup>n\<^esup> @ [x] = x\<^bsup>Suc n\<^esup>
[PROOF STEP]
by (simp add: replicate_app_Cons_same) | {"llama_tokens": 114, "file": "List-Infinite_ListInf_List2", "length": 1} |
subroutine sumamp(coeff,scints,amp,str)
c--- routine to multiply scalar integrals (in scints) by the computed
c--- coefficients (in coeff) and return the result in amp
c--- the 6-character string "str" is only used as output when checking primitives
implicit none
include 'constants.f'
include 'W... | {"hexsha": "62c397fc6fa1a540ab4751a31ac2b3d6f0b9c00f", "size": 1180, "ext": "f", "lang": "FORTRAN", "max_stars_repo_path": "MCFM-JHUGen/src/Wbbm/sumamp.f", "max_stars_repo_name": "tmartini/JHUGen", "max_stars_repo_head_hexsha": "80da31668d7b7eb5b02bb4cac435562c45075d24", "max_stars_repo_licenses": ["Apache-2.0"], "max_... |
#t_pulse是单次射出所需的时间
#t_pulse,随着电压频率fv的上升而改变;随着流量而改变;
#设定工作目录
setwd("D:/data")
library(xlsx)
library(RColorBrewer)
#读取数据
s2<-read.xlsx("t_pulse.xls", sheetName = "single_k2", header = TRUE)
s3<-read.xlsx("t_pulse.xls", sheetName = "single_k3", header = TRUE)
s4<-read.xlsx("t_pulse.xls", sheetName = "single_... | {"hexsha": "8ff95dfb141b8b476bcf789bbc5ae719d978bbb7", "size": 3128, "ext": "r", "lang": "R", "max_stars_repo_path": "Liquids/tpulse_single/t_pulse_250Hz_K(single).r", "max_stars_repo_name": "shuaimeng/r", "max_stars_repo_head_hexsha": "94fa0cce89c89a847b95000f07e64a0feac1eabe", "max_stars_repo_licenses": ["MIT"], "max... |
from __future__ import print_function
import numpy as np
import copy
class Solution:
def __init__(self, gamma=0.9):
self.v = np.zeros((20, 10, 10))
self.gamma = gamma
self.fact = self.generate_factorials()
self.actions = self.generate_actions()
self.states = self.generate... | {"hexsha": "e73133f8821830d59a23bb6c4c0c404294b4a8b6", "size": 4647, "ext": "py", "lang": "Python", "max_stars_repo_path": "endsem/007.py", "max_stars_repo_name": "KishoreKaushal/ailab", "max_stars_repo_head_hexsha": "f89cb1ff7d49c05859cb4d89b45c214ded6e1acf", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 1, "... |
# -*- coding: utf-8 -*-
import os
import codecs
from collections import Counter, defaultdict
from itertools import chain, count
import torch
import torchtext.data
import torchtext.vocab
from onmt.Utils import aeq
from pdb import set_trace
PAD_WORD = '<blank>'
UNK = 0
BOS_WORD = '<s>'
EOS_WORD = '</s>'
def _getsta... | {"hexsha": "078ecadbbba7d18f4aa0bf8f33065ea2bfda2ae6", "size": 22366, "ext": "py", "lang": "Python", "max_stars_repo_path": "OpenNMT-py/onmt/io/IO.py", "max_stars_repo_name": "anjapago/QG-Net", "max_stars_repo_head_hexsha": "1312f962e4b91d44dd18e7e37a7b811c8fea36e9", "max_stars_repo_licenses": ["MIT"], "max_stars_count... |
/*
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*
* Copyright (c) 2009 Helge Bahmann
* Copyright (c) 2012 Tim Blechmann
* Copyright (c) 2013 - 2014 Andrey Semashev
*/
/*!
* \file atomic/detai... | {"hexsha": "ef54a1f67f6a222372d3e3e2deecf7e90354567b", "size": 1900, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "win32/boost_bak/include/boost/atomic/detail/bitwise_cast.hpp", "max_stars_repo_name": "FreeApe/embcaffe_3rdparty", "max_stars_repo_head_hexsha": "d929e23f68515d03ba08c38f0c165216a2771a13", "max_star... |
"""Experiment-running framework."""
import argparse
import importlib
import warnings
import numpy as np
import pytorch_lightning as pl
import torch
import torch.nn as nn
from sklearn.model_selection import train_test_split
import wandb
from active_learning import lit_models
from active_learning.data.util import BaseD... | {"hexsha": "efcb59f4ca489b0b0f7e27c785dd67df7dc55cea", "size": 16480, "ext": "py", "lang": "Python", "max_stars_repo_path": "training/run_experiment.py", "max_stars_repo_name": "ravindrabharathi/fsdl-active-learning2", "max_stars_repo_head_hexsha": "55eb69d5d50759ee3bcdb1fa6c02f4ec6f529305", "max_stars_repo_licenses": ... |
/*=============================================================================
Copyright (c) 2001-2011 Joel de Guzman
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=========================================... | {"hexsha": "6dd44c74b879e98ed549d9e558a450b008e570f1", "size": 1029, "ext": "hpp", "lang": "C++", "max_stars_repo_path": "libs/boost_1_72_0/boost/fusion/mpl/back.hpp", "max_stars_repo_name": "henrywarhurst/matrix", "max_stars_repo_head_hexsha": "317a2a7c35c1c7e3730986668ad2270dc19809ef", "max_stars_repo_licenses": ["BS... |
#Work through the following tutorial. Copy and run the code necessary to complete
#the tutorial into this notebook. Note that some of the code they provide you
#has some intentional blank spaces. It will be up to you to fill them in.
#Their tutorial also suggests some other code to run and other things you can
#do with... | {"hexsha": "9e4a896260a0b4440317e8f8b5ac843294475f52", "size": 478, "ext": "r", "lang": "R", "max_stars_repo_path": "Workbooks/3. Machine learning basics.r", "max_stars_repo_name": "maxnarduzzi/Computational-Biology---Evangelista-", "max_stars_repo_head_hexsha": "86dee5b0f07cbe88c85813a8ada7cc1ea9d6dc27", "max_stars_re... |
#!/usr/bin/env python
# coding: utf-8
# # House price prediction using multiple regression analysis
#
# # Part 2: Regression Models
#
# The following notebook presents a thought process of predicting a continuous variable through Machine Learning methods. More specifically, we want to predict house prices based on m... | {"hexsha": "5ec01c4d270ace5edad3572f9acf939b1a4a9ab8", "size": 22878, "ext": "py", "lang": "Python", "max_stars_repo_path": "downloaded_kernels/house_sales/converted_notebooks/kernel_296.py", "max_stars_repo_name": "josepablocam/common-code-extraction", "max_stars_repo_head_hexsha": "a6978fae73eee8ece6f1db09f2f38cf92f0... |
import os
import argparse
import cv2
import numpy as np
from torch.utils.data import Dataset
from torch.utils.data import DataLoader
from torchvision.transforms import ToTensor
class CULane(Dataset):
def __init__(self, root, input_size, degree, num=72, max_lane=4, split="train"):
super(CULane, self).__in... | {"hexsha": "4c440a5e2613317cc0853a9e3d4f344757f05984", "size": 5321, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/dataloader.py", "max_stars_repo_name": "mo-vic/BezierLaneNet", "max_stars_repo_head_hexsha": "5a8e336216b099419bdd3ef0477f3f1cea50ea9e", "max_stars_repo_licenses": ["MIT"], "max_stars_count"... |
import numpy as np
import tensorflow as tf
from scipy import interpolate
from .model import Model, default_opt
from .layers.subpixel import SubPixel1D, SubPixel1D_v2
from tensorflow.python.keras import backend as K
from keras.layers import merge
from keras.layers.core import Activation, Dropout
from keras.layers imp... | {"hexsha": "23421344095c8476f3c25f8ecf5d5025521b28ac", "size": 3814, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/audiounet.py", "max_stars_repo_name": "TECHENGINESSRL/audio-super-res", "max_stars_repo_head_hexsha": "2f90a288e86ddca50c98c17b0513e73ab49087d3", "max_stars_repo_licenses": ["MIT"], "ma... |
# load extra data about KG from files
import numpy as np
import utils.Utils as Utils
class ExtraDataManager(object):
def __init__(self, path, entityDict, relationDict):
self.data_path = path
self.entityDict = entityDict
self.relationDict = relationDict
def load_EntNei(self, path, max_l... | {"hexsha": "a7d852d0a857adf1336ea6ccfb1ed68c609b3f83", "size": 1157, "ext": "py", "lang": "Python", "max_stars_repo_path": "utils/ExtraDataManager.py", "max_stars_repo_name": "KyneWang/CoNE", "max_stars_repo_head_hexsha": "77f39038e94650f8767f18eda4c4e95de4f4dddb", "max_stars_repo_licenses": ["Apache-2.0"], "max_stars_... |
import pandas as pd
import os, argparse
import numpy as np
import matplotlib.pyplot as plt
from sklearn import metrics
def get_parser():
parser = argparse.ArgumentParser()
parser.add_argument('--inputfile',
type=str,
help='File with raw sequencing reads')
parser.add_argument('--column',
... | {"hexsha": "53b51cf840fcd47db02ce3a9eb012bf8c39e2d45", "size": 1566, "ext": "py", "lang": "Python", "max_stars_repo_path": "toolkit/plsa.py", "max_stars_repo_name": "addgene/Research", "max_stars_repo_head_hexsha": "48b8adc4559195628e395252e946c24d53d5148c", "max_stars_repo_licenses": ["MIT"], "max_stars_count": 7, "ma... |
# Copyright 2020 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | {"hexsha": "b8a1ba29753be394b31d98541189f4b85f25671c", "size": 4179, "ext": "py", "lang": "Python", "max_stars_repo_path": "built-in/MindSpore/Research/audio/Music_Genre_Classification_for_MindSpore/00-access/eval.py", "max_stars_repo_name": "Huawei-Ascend/modelzoo", "max_stars_repo_head_hexsha": "df51ed9c1d6dbde1deef6... |
import numpy as np
from PIL import Image, ImageDraw
def image_blanck_generator():
a = np.uint8(np.zeros((300,300)))
for i in range(0, a.shape[0]):
for j in range(0, a.shape[1]):
a[i][j] = 255
im = Image.fromarray(a,'L')
draw = ImageDraw.ImageDraw(im)
dim=250
... | {"hexsha": "9a59ed7e07e38ee0170f8850a19178275c6b3e38", "size": 2026, "ext": "py", "lang": "Python", "max_stars_repo_path": "Server_Sudoku_ROI/blank_sudoku_generator.py", "max_stars_repo_name": "DanPyDev/SudokuNeuralNetwork", "max_stars_repo_head_hexsha": "26e9c0bfe16f4b3bff5ab3059ba5f45c46d1946b", "max_stars_repo_licen... |
# -*- coding: utf-8 -*-
import logging
import os
import pickle
from pathlib import Path
import click
import numpy as np
import pandas as pd
from dotenv import find_dotenv, load_dotenv
from src.models.predict_model import predict_catboost_ensemble
@click.command()
@click.argument("predict_data_path", type=click.Path... | {"hexsha": "04a78dd41b4c2a1e4af71d0dd19c2fa18fb7f586", "size": 2807, "ext": "py", "lang": "Python", "max_stars_repo_path": "src/models/make_predict.py", "max_stars_repo_name": "TuomoKareoja/wifi-locationing", "max_stars_repo_head_hexsha": "a40878bd1dd26a2b09b0f32bdfdd7e929ad9fc86", "max_stars_repo_licenses": ["MIT"], "... |
! RUN: bbc %s -o "-" | FileCheck %s
! Test logical intrinsic operation lowering to fir.
! CHECK-LABEL:eqv0_test
LOGICAL(1) FUNCTION eqv0_test(x0, x1)
LOGICAL(1) :: x0
LOGICAL(1) :: x1
! CHECK-DAG:[[reg1:%[0-9]+]] = fir.load %arg0
! CHECK-DAG:[[reg2:%[0-9]+]] = fir.load %arg1
! CHECK-DAG:[[reg3:%[0-9]+]] = fir.convert... | {"hexsha": "9ade97b5f5edac0fd16ce7f8fc02b57f3d2af0ab", "size": 2290, "ext": "f90", "lang": "FORTRAN", "max_stars_repo_path": "flang/test/Lower/logical-operations.f90", "max_stars_repo_name": "lxbndr/llvm-project", "max_stars_repo_head_hexsha": "2b715b15f5f4c6dd60f05d1b62f9c404e8b56e34", "max_stars_repo_licenses": ["Apa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.