text
stringlengths
1
1.05M
git add --all git commit -m 'a' git push origin master
from __future__ import division, print_function from unittest import TestCase import numpy as np from scipy.signal import fftconvolve import pyroomacoustics as pra from pyroomacoustics.realtime import STFT ''' We create a signal, a simple filter and compute their convolution. Then we test STFT block procesing with and without overlap, and with and without filtering. Simulating a case of real-time block processing. ''' # test parameters tol = 5e-6 np.random.seed(0) D = 4 transform = 'numpy' # 'numpy', 'pyfftw', or 'mkl' # filter to apply h_len = 99 h = np.ones((h_len, D)) h /= np.linalg.norm(h, axis=0) # test signal (noise) x = np.random.randn(100000, D).astype(np.float32) # convolved signal y = np.zeros((x.shape[0] + h_len - 1, x.shape[1])) for i in range(x.shape[1]): y[:,i] = fftconvolve(x[:,i], h[:,i]) def incorrect_input_size(D, num_frames): if D == 1: x_local = x[:,0] else: x_local = x[:,:D] # parameters block_size = 512 hop = block_size # create STFT object stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames) try: # passing more frames than 'hop' stft.analysis(x_local) computed = False except: computed = True return computed def no_overlap_no_filter(D, num_frames=1, fixed_memory=False, streaming=True): """ D - number of channels num_frames - how many frames to process, None will process one frame at a time fixed_memory - whether to enforce checks for size (real-time consideration) streaming - whether or not to stitch between frames """ if D == 1: x_local = x[:,0] else: x_local = x[:,:D] # parameters block_size = 512 # make sure the FFT size is a power of 2 hop = block_size # no overlap if not streaming: num_samples = (num_frames-1)*hop+block_size x_local = x_local[:num_samples,] # Create the STFT object if fixed_memory: stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames, streaming=streaming) else: stft = STFT(block_size, hop=hop, channels=D, transform=transform, streaming=streaming) # collect the processed blocks processed_x = np.zeros(x_local.shape) if streaming: n = 0 hop_frames = hop*num_frames # process the signals while full blocks are available while x_local.shape[0] - n > hop_frames: stft.analysis(x_local[n:n+hop_frames,]) processed_x[n:n+hop_frames,] = stft.synthesis() n += hop_frames else: stft.analysis(x_local) processed_x = stft.synthesis() n = processed_x.shape[0] error = np.max(np.abs(x_local[:n,] - processed_x[:n,])) return error def with_arbitrary_overlap_synthesis_window(D, num_frames=1, fixed_memory=False, streaming=True, overlap=0.5): """ D - number of channels num_frames - how many frames to process, None will process one frame at a time fixed_memory - whether to enforce checks for size (real-time consideration) streaming - whether or not to stitch between frames """ if D == 1: x_local = x[:,0] else: x_local = x[:,:D] # parameters block_size = 512 # make sure the FFT size is a power of 2 hop = int((1 - overlap) * block_size) # quarter overlap if not streaming: num_samples = (num_frames-1)*hop+block_size x_local = x_local[:num_samples,] analysis_window = pra.hann(block_size) synthesis_window = pra.realtime.compute_synthesis_window(analysis_window, hop) # Create the STFT object if fixed_memory: stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames, analysis_window=analysis_window, synthesis_window=synthesis_window, streaming=streaming) else: stft = STFT(block_size, hop=hop, channels=D, analysis_window=analysis_window, synthesis_window=synthesis_window, transform=transform, streaming=streaming) # collect the processed blocks processed_x = np.zeros(x_local.shape) if streaming: n = 0 hop_frames = hop*num_frames # process the signals while full blocks are available while x_local.shape[0] - n > hop_frames: stft.analysis(x_local[n:n+hop_frames,]) processed_x[n:n+hop_frames,] = stft.synthesis() n += hop_frames error = np.max(np.abs(x_local[:n-block_size+hop,] - processed_x[block_size-hop:n,])) if 20 * np.log10(error) > -10: import matplotlib.pyplot as plt if x_local.ndim == 1: plt.plot(x_local[:n-block_size+hop]) plt.plot(processed_x[block_size-hop:n]) else: plt.plot(x_local[:n-block_size+hop,0]) plt.plot(processed_x[block_size-hop:n,0]) plt.show() else: stft.analysis(x_local) processed_x = stft.synthesis() n = processed_x.shape[0] L = block_size - hop error = np.max(np.abs(x_local[L:-L,] - processed_x[L:,])) if 20 * np.log10(error) > -10: import matplotlib.pyplot as plt if x_local.ndim == 1: plt.plot(x_local[L:-L]) plt.plot(processed_x[L:]) else: plt.plot(x_local[L:-L,0]) plt.plot(processed_x[L:,0]) plt.show() return error def no_overlap_with_filter(D, num_frames=1, fixed_memory=False, streaming=True): """ D - number of channels num_frames - how many frames to process, None will process one frame at a time fixed_memory - whether to enforce checks for size (real-time consideration) streaming - whether or not to stitch between frames """ if D == 1: x_local = x[:,0] y_local = y[:,0] h_local = h[:,0] else: x_local = x[:,:D] y_local = y[:,:D] h_local = h[:,:D] # parameters block_size = 512 - h_len + 1 # make sure the FFT size is a power of 2 hop = block_size # no overlap if not streaming: num_samples = (num_frames-1)*hop+block_size x_local = x_local[:num_samples,] # Create the STFT object if fixed_memory: stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames, streaming=streaming) else: stft = STFT(block_size, hop=hop, channels=D, transform=transform, streaming=streaming) # setup the filter stft.set_filter(h_local, zb=h_len - 1) # collect the processed blocks processed_x = np.zeros(x_local.shape) if not streaming: stft.analysis(x_local) stft.process() processed_x = stft.synthesis() n = processed_x.shape[0] else: n = 0 hop_frames = hop*num_frames # process the signals while full blocks are available while x_local.shape[0] - n > hop_frames: stft.analysis(x_local[n:n+hop_frames,]) stft.process() # apply the filter processed_x[n:n+hop_frames,] = stft.synthesis() n += hop_frames error = np.max(np.abs(y_local[:n,] - processed_x[:n,])) return error def with_half_overlap_no_filter(D, num_frames=1, fixed_memory=False, streaming=True): """ D - number of channels num_frames - how many frames to process, None will process one frame at a time fixed_memory - whether to enforce checks for size (real-time consideration) streaming - whether or not to stitch between frames """ if D == 1: x_local = x[:,0] else: x_local = x[:,:D] # parameters block_size = 512 # make sure the FFT size is a power of 2 hop = block_size // 2 # half overlap window = pra.hann(block_size) # the analysis window if not streaming: num_samples = (num_frames-1)*hop+block_size x_local = x_local[:num_samples,] # Create the STFT object if fixed_memory: stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames, analysis_window=window, streaming=streaming) else: stft = STFT(block_size, hop=hop, channels=D, transform=transform, analysis_window=window, streaming=streaming) # collect the processed blocks processed_x = np.zeros(x_local.shape) if not streaming: stft.analysis(x_local) processed_x = stft.synthesis() n = processed_x.shape[0] error = np.max(np.abs(x_local[block_size-hop:n-hop,] - processed_x[block_size-hop:n-hop,])) else: n = 0 hop_frames = hop*num_frames # process the signals while full blocks are available while x_local.shape[0] - n > hop_frames: stft.analysis(x_local[n:n+hop_frames,]) processed_x[n:n+hop_frames,] = stft.synthesis() n += hop_frames error = np.max(np.abs(x_local[:n-hop,] - processed_x[hop:n,])) return error def with_half_overlap_with_filter(D, num_frames=1, fixed_memory=False, streaming=True): """ D - number of channels num_frames - how many frames to process, None will process one frame at a time fixed_memory - whether to enforce checks for size (real-time consideration) streaming - whether or not to stitch between frames """ if D == 1: x_local = x[:,0] y_local = y[:,0] h_local = h[:,0] else: x_local = x[:,:D] y_local = y[:,:D] h_local = h[:,:D] # parameters block_size = 512 - h_len + 1 # make sure the FFT size is a power of 2 hop = block_size // 2 # half overlap window = pra.hann(block_size) # the analysis window if not streaming: num_samples = (num_frames-1)*hop+block_size x_local = x_local[:num_samples,] # Create the STFT object if fixed_memory: stft = STFT(block_size, hop=hop, channels=D, transform=transform, num_frames=num_frames, analysis_window=window, streaming=streaming) else: stft = STFT(block_size, hop=hop, channels=D, transform=transform, analysis_window=window, streaming=streaming) # setup the filter stft.set_filter(h_local, zb=h_len - 1) # collect the processed blocks processed_x = np.zeros(x_local.shape) if not streaming: stft.analysis(x_local) stft.process() processed_x = stft.synthesis() n = processed_x.shape[0] error = np.max(np.abs(y_local[block_size:n-block_size,] - processed_x[block_size:n-block_size,])) else: n = 0 hop_frames = hop*num_frames # process the signals while full blocks are available while x_local.shape[0] - n > hop_frames: stft.analysis(x_local[n:n+hop_frames,]) stft.process() # apply the filter processed_x[n:n+hop_frames,] = stft.synthesis() n += hop_frames error = np.max(np.abs(y_local[:n-hop,] - processed_x[hop:n,])) # if D==1: # import matplotlib.pyplot as plt # plt.figure() # plt.plot(y_local) # plt.plot(processed_x) # plt.show() return error def call_all_stft_tests(num_frames=1, fixed_memory=False, streaming=True, overlap=True): error = no_overlap_no_filter(1, num_frames, fixed_memory, streaming) print('no overlap, no filter, mono : %0.0f dB' % (20*np.log10(error))) error = no_overlap_no_filter(D, num_frames, fixed_memory, streaming) print('no overlap, no filter, multichannel : %0.0f dB' % (20*np.log10(error))) error = no_overlap_with_filter(1, num_frames, fixed_memory, streaming) print('no overlap, with filter, mono : %0.0f dB' % (20*np.log10(error))) error = no_overlap_with_filter(D, num_frames, fixed_memory, streaming) print('no overlap, with filter, multichannel : %0.0f dB' % (20*np.log10(error))) if overlap: error = with_half_overlap_no_filter(1, num_frames, fixed_memory, streaming) print('half overlap, no filter, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=0.5) print('half overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=0.5) print('half overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=0.75) print('3/4 overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=0.75) print('3/4 overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=0.84) print('84/100 overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=0.84) print('84/100 overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=0.26) print('26/100 overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=0.26) print('26/100 overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=7/8) print('7/8 overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=7/8) print('7/8 overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(1, num_frames, fixed_memory, streaming, overlap=0.25) print('1/4 overlap, no filter, with synthesis windows, mono : %0.0f dB' % (20*np.log10(error))) error = with_arbitrary_overlap_synthesis_window(D, num_frames, fixed_memory, streaming, overlap=0.25) print('1/4 overlap, no filter, with synthesis windows, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_half_overlap_no_filter(D, num_frames, fixed_memory, streaming) print('half overlap, no filter, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_half_overlap_with_filter(1, num_frames, fixed_memory, streaming) print('half overlap, with filter, mono : %0.0f dB' % (20*np.log10(error))) error = with_half_overlap_with_filter(D, num_frames, fixed_memory, streaming) print('half overlap, with filter, multichannel : %0.0f dB' % (20*np.log10(error))) error = with_half_overlap_with_filter(D, num_frames, fixed_memory, streaming) print('half overlap, with filter, multichannel : %0.0f dB' % (20*np.log10(error))) print() class TestSTFT(TestCase): def test_incorrect_input_check(self): result = incorrect_input_size(1, 100) self.assertTrue(result) result = incorrect_input_size(D, 100) self.assertTrue(result) def test_no_overlap_no_filter_mono(self): error = no_overlap_no_filter(D=1, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=1, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=1, fixed_memory=True, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=1, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_no_overlap_no_filter_multichannel(self): error = no_overlap_no_filter(D=D, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=1, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=1, fixed_memory=True, streaming=False) self.assertTrue(error < tol) error = no_overlap_no_filter(D=D, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_no_overlap_with_filter_mono(self): error = no_overlap_with_filter(D=1, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=1, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=1, fixed_memory=True, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=1, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_no_overlap_with_filter_multichannel(self): error = no_overlap_with_filter(D=D, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=1, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=1, fixed_memory=True, streaming=False) self.assertTrue(error < tol) error = no_overlap_with_filter(D=D, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_with_half_overlap_no_filter_mono(self): error = with_half_overlap_no_filter(D=1, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=1, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=1, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=1, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=1, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=1, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_with_half_overlap_no_filter_multichannel(self): error = with_half_overlap_no_filter(D=D, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=D, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=D, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=D, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=D, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = with_half_overlap_no_filter(D=D, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_with_half_overlap_with_filter_mono(self): error = with_half_overlap_with_filter(D=1, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=1, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=1, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=1, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=1, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=1, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_with_half_overlap_with_filter_multichannel(self): error = with_half_overlap_with_filter(D=D, num_frames=1, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=D, num_frames=50, fixed_memory=False, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=D, num_frames=1, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=D, num_frames=50, fixed_memory=True, streaming=True) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=D, num_frames=50, fixed_memory=False, streaming=False) self.assertTrue(error < tol) error = with_half_overlap_with_filter(D=D, num_frames=50, fixed_memory=True, streaming=False) self.assertTrue(error < tol) def test_with_arbitrary_overlap_synthesis_window_multichannel(self): overlaps = [0.5, 0.75, 0.84, 0.26, 7/8, 0.25] for overlap in overlaps: error = with_arbitrary_overlap_synthesis_window(D, num_frames=1, fixed_memory=False, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(D, num_frames=50, fixed_memory=False, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(D, num_frames=1, fixed_memory=True, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(D, num_frames=50, fixed_memory=True, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(D, num_frames=50, fixed_memory=False, streaming=False, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(D, num_frames=50, fixed_memory=True, streaming=False, overlap=overlap) self.assertTrue(error < tol) def test_with_arbitrary_overlap_synthesis_window_mono(self): overlaps = [0.5, 0.75, 0.84, 0.26, 7/8, 0.25] for overlap in overlaps: error = with_arbitrary_overlap_synthesis_window(1, num_frames=1, fixed_memory=False, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(1, num_frames=50, fixed_memory=False, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(1, num_frames=1, fixed_memory=True, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(1, num_frames=50, fixed_memory=True, streaming=True, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(1, num_frames=50, fixed_memory=False, streaming=False, overlap=overlap) self.assertTrue(error < tol) error = with_arbitrary_overlap_synthesis_window(1, num_frames=50, fixed_memory=True, streaming=False, overlap=overlap) self.assertTrue(error < tol) if __name__ == "__main__": print() print("TEST INFO") print("-------------------------------------------------------------") print("Max error in dB for randomnly generated signal of %d samples." % len(x)) print("Multichannel corresponds to %d channels." % D) print("-------------------------------------------------------------") print() print("---ONE FRAME, STREAMING, NOT FIXED MEMORY") call_all_stft_tests(num_frames=1, fixed_memory=False, streaming=True) print("---MULTIPLE FRAMES, STREAMING, NOT FIXED MEMORY") call_all_stft_tests(num_frames=50, fixed_memory=False, streaming=True) print("---ONE FRAME, STREAMING, FIXED MEMORY") num_frames = 1 result = incorrect_input_size(1, num_frames) print('incorrect input size, mono :', result) result = incorrect_input_size(D, num_frames) print('incorrect input size, multichannel :', result) call_all_stft_tests(num_frames=num_frames, fixed_memory=True, streaming=True) print("---MULTIPLE FRAME, STREAMING, FIXED MEMORY") num_frames=50 result = incorrect_input_size(1, num_frames) print('incorrect input size, mono :', result) result = incorrect_input_size(D, num_frames) print('incorrect input size, multichannel :', result) call_all_stft_tests(num_frames=num_frames, fixed_memory=True, streaming=True) print("---ONE FRAME, NON-STREAMING, NOT FIXED MEMORY") call_all_stft_tests(num_frames=1, fixed_memory=False, streaming=False, overlap=False) print("---MULTIPLE FRAMES, NON-STREAMING, NOT FIXED MEMORY") call_all_stft_tests(num_frames=50, fixed_memory=False, streaming=False) print("---ONE FRAME, NON-STREAMING, FIXED MEMORY") call_all_stft_tests(num_frames=1, fixed_memory=True, streaming=False, overlap=False) print("---MULTIPLE FRAMES, NON-STREAMING, FIXED MEMORY") call_all_stft_tests(num_frames=50, fixed_memory=True, streaming=False)
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.jena.sdb.core.sqlnode; public interface SqlTransform { public SqlNode transform(SqlProject sqlProject, SqlNode subNode) ; //public SqlNode transform(SqlDistinct sqlDistinct, SqlNode subNode) ; public SqlNode transform(SqlRestrict sqlRestrict, SqlNode subNode) ; public SqlNode transform(SqlRename sqlRename, SqlNode subNode) ; //public SqlNode transform(SqlSlice sqlSlice, SqlNode subNode) ; public SqlNode transform(SqlSelectBlock sqlSelectBlock, SqlNode newSubNode) ; public SqlNode transform(SqlCoalesce sqlCoalesce, SqlNode subNode) ; public SqlNode transform(SqlJoinInner sqlJoinInner, SqlNode left, SqlNode right) ; public SqlNode transform(SqlJoinLeftOuter sqlJoinLeftOuter, SqlNode left, SqlNode right) ; public SqlNode transform(SqlUnion sqlUnion, SqlNode left, SqlNode right) ; public SqlNode transform(SqlTable sqlTable) ; }
use diesel::prelude::*; use diesel::dsl::insert_into; use diesel::pg::upsert::excluded; fn process_user_records(records: Vec<User>, conn: &PgConnection) { for record in records { let existing_user = users::table.filter(users::id.eq(record.id)).first::<User>(conn).optional(); match existing_user { Ok(Some(user)) => { if user.name != record.name { diesel::update(users::table.filter(users::id.eq(record.id))) .set(users::name.eq(record.name)) .execute(conn) .unwrap(); } } Ok(None) => { let _ = insert_into(users::table) .values(&record) .on_conflict(users::name) .do_nothing() .execute(conn); } Err(err) => { eprintln!("Error processing user record: {}", err); } } } }
package chylex.hee.item; import java.util.List; import java.util.Locale; import net.minecraft.block.Block; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.IIcon; import net.minecraft.util.StatCollector; import net.minecraft.world.World; import chylex.hee.HardcoreEnderExpansion; import chylex.hee.entity.projectile.EntityProjectileCurse; import chylex.hee.entity.technical.EntityTechnicalCurseBlock; import chylex.hee.entity.technical.EntityTechnicalCurseEntity; import chylex.hee.game.achievements.AchievementManager; import chylex.hee.game.save.handlers.PlayerDataHandler; import chylex.hee.mechanics.curse.CurseType; import chylex.hee.system.abstractions.Pos; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; public class ItemCurse extends Item{ @SideOnly(Side.CLIENT) private IIcon icon1, icon2; public ItemCurse(){ setHasSubtypes(true); } @Override public boolean onItemUse(ItemStack is, EntityPlayer player, World world, int x, int y, int z, int side, float hitX, float hitY, float hitZ){ if (is.stackSize == 0)return false; Pos pos = Pos.at(x, y, z); Block block = pos.getBlock(world); if (block != Blocks.vine && block != Blocks.tallgrass && block != Blocks.deadbush && !block.isReplaceable(world, x, y, z))pos = pos.offset(side); CurseType type = CurseType.getFromDamage(is.getItemDamage()); if (type == null)return false; if (!world.isRemote){ world.spawnEntityInWorld(new EntityTechnicalCurseBlock(world, pos, PlayerDataHandler.getID(player), type, CurseType.isEternal(is.getItemDamage()))); --is.stackSize; } else world.playSound(pos.getX()+0.5D, pos.getY(), pos.getZ()+0.5D, "hardcoreenderexpansion:mob.random.curse", 0.8F, 0.9F+itemRand.nextFloat()*0.2F, false); return true; } @Override public boolean itemInteractionForEntity(ItemStack is, EntityPlayer player, EntityLivingBase entity){ CurseType type = CurseType.getFromDamage(is.getItemDamage()); if (type == null)return false; if (!player.worldObj.isRemote)player.worldObj.spawnEntityInWorld(new EntityTechnicalCurseEntity(player.worldObj, entity, type, CurseType.isEternal(is.getItemDamage()))); else{ player.worldObj.playSound(entity.posX, entity.posY, entity.posZ, "hardcoreenderexpansion:mob.random.curse", 0.8F, 0.9F+itemRand.nextFloat()*0.2F, false); for(int a = 0; a < 40; a++)HardcoreEnderExpansion.fx.curse(entity.posX+(itemRand.nextDouble()-0.5D)*1.5D, entity.posY+(itemRand.nextDouble()-0.5D)*1.5D, entity.posZ+(itemRand.nextDouble()-0.5D)*1.5D, type); } return true; } @Override public ItemStack onItemRightClick(ItemStack is, World world, EntityPlayer player){ CurseType type = CurseType.getFromDamage(is.getItemDamage()); if (type == null)return is; if (!world.isRemote)world.spawnEntityInWorld(new EntityProjectileCurse(world, player, type, CurseType.isEternal(is.getItemDamage()))); if (!player.capabilities.isCreativeMode)--is.stackSize; return is; } @Override public void onCreated(ItemStack is, World world, EntityPlayer player){ player.addStat(AchievementManager.CURSE, 1); } @Override public String getUnlocalizedName(ItemStack is){ CurseType type = CurseType.getFromDamage(is.getItemDamage()); return "item.curse."+(type == null ? "invalid" : type.name().toLowerCase(Locale.ENGLISH).replaceAll("_", "")); } @Override @SideOnly(Side.CLIENT) public void addInformation(ItemStack is, EntityPlayer player, List textLines, boolean showAdvancedInfo){ if (CurseType.isEternal(is.getItemDamage()))textLines.add(EnumChatFormatting.YELLOW+StatCollector.translateToLocal("item.curse.eternal")); } @Override @SideOnly(Side.CLIENT) public void getSubItems(Item item, CreativeTabs tabs, List list){ for(CurseType type:CurseType.values()){ list.add(new ItemStack(item, 1, type.damage)); list.add(new ItemStack(item, 1, type.damage|0b100000000)); } } @Override @SideOnly(Side.CLIENT) public int getColorFromItemStack(ItemStack is, int pass){ CurseType type = CurseType.getFromDamage(is.getItemDamage()); return type == null ? 16777215 : type.getColor(pass); } @Override @SideOnly(Side.CLIENT) public IIcon getIconFromDamageForRenderPass(int damage, int pass){ return pass == 0 ? icon1 : icon2; } @Override @SideOnly(Side.CLIENT) public boolean requiresMultipleRenderPasses(){ return true; } @Override @SideOnly(Side.CLIENT) public int getRenderPasses(int metadata){ return 2; } @Override @SideOnly(Side.CLIENT) public void registerIcons(IIconRegister iconRegister){ icon1 = iconRegister.registerIcon(iconString+"_1"); icon2 = iconRegister.registerIcon(iconString+"_2"); } }
package io.dronefleet.mavlink.common; import io.dronefleet.mavlink.annotations.MavlinkFieldInfo; import io.dronefleet.mavlink.annotations.MavlinkMessageBuilder; import io.dronefleet.mavlink.annotations.MavlinkMessageInfo; import java.lang.Object; import java.lang.Override; import java.lang.String; import java.math.BigInteger; import java.util.Objects; /** * The RAW pressure readings for the typical setup of one absolute pressure and one differential * pressure sensor. The sensor values should be the raw, UNSCALED ADC values. */ @MavlinkMessageInfo( id = 28, crc = 67, description = "The RAW pressure readings for the typical setup of one absolute pressure and one differential pressure sensor. The sensor values should be the raw, UNSCALED ADC values." ) public final class RawPressure { private final BigInteger timeUsec; private final int pressAbs; private final int pressDiff1; private final int pressDiff2; private final int temperature; private RawPressure(BigInteger timeUsec, int pressAbs, int pressDiff1, int pressDiff2, int temperature) { this.timeUsec = timeUsec; this.pressAbs = pressAbs; this.pressDiff1 = pressDiff1; this.pressDiff2 = pressDiff2; this.temperature = temperature; } /** * Returns a builder instance for this message. */ @MavlinkMessageBuilder public static Builder builder() { return new Builder(); } /** * Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp * format (since 1.1.1970 or since system boot) by checking for the magnitude the number. */ @MavlinkFieldInfo( position = 1, unitSize = 8, description = "Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number." ) public final BigInteger timeUsec() { return this.timeUsec; } /** * Absolute pressure (raw) */ @MavlinkFieldInfo( position = 2, unitSize = 2, signed = true, description = "Absolute pressure (raw)" ) public final int pressAbs() { return this.pressAbs; } /** * Differential pressure 1 (raw, 0 if nonexistent) */ @MavlinkFieldInfo( position = 3, unitSize = 2, signed = true, description = "Differential pressure 1 (raw, 0 if nonexistent)" ) public final int pressDiff1() { return this.pressDiff1; } /** * Differential pressure 2 (raw, 0 if nonexistent) */ @MavlinkFieldInfo( position = 4, unitSize = 2, signed = true, description = "Differential pressure 2 (raw, 0 if nonexistent)" ) public final int pressDiff2() { return this.pressDiff2; } /** * Raw Temperature measurement (raw) */ @MavlinkFieldInfo( position = 5, unitSize = 2, signed = true, description = "Raw Temperature measurement (raw)" ) public final int temperature() { return this.temperature; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || !getClass().equals(o.getClass())) return false; RawPressure other = (RawPressure)o; if (!Objects.deepEquals(timeUsec, other.timeUsec)) return false; if (!Objects.deepEquals(pressAbs, other.pressAbs)) return false; if (!Objects.deepEquals(pressDiff1, other.pressDiff1)) return false; if (!Objects.deepEquals(pressDiff2, other.pressDiff2)) return false; if (!Objects.deepEquals(temperature, other.temperature)) return false; return true; } @Override public int hashCode() { int result = 0; result = 31 * result + Objects.hashCode(timeUsec); result = 31 * result + Objects.hashCode(pressAbs); result = 31 * result + Objects.hashCode(pressDiff1); result = 31 * result + Objects.hashCode(pressDiff2); result = 31 * result + Objects.hashCode(temperature); return result; } @Override public String toString() { return "RawPressure{timeUsec=" + timeUsec + ", pressAbs=" + pressAbs + ", pressDiff1=" + pressDiff1 + ", pressDiff2=" + pressDiff2 + ", temperature=" + temperature + "}"; } public static final class Builder { private BigInteger timeUsec; private int pressAbs; private int pressDiff1; private int pressDiff2; private int temperature; /** * Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp * format (since 1.1.1970 or since system boot) by checking for the magnitude the number. */ @MavlinkFieldInfo( position = 1, unitSize = 8, description = "Timestamp (UNIX Epoch time or time since system boot). The receiving end can infer timestamp format (since 1.1.1970 or since system boot) by checking for the magnitude the number." ) public final Builder timeUsec(BigInteger timeUsec) { this.timeUsec = timeUsec; return this; } /** * Absolute pressure (raw) */ @MavlinkFieldInfo( position = 2, unitSize = 2, signed = true, description = "Absolute pressure (raw)" ) public final Builder pressAbs(int pressAbs) { this.pressAbs = pressAbs; return this; } /** * Differential pressure 1 (raw, 0 if nonexistent) */ @MavlinkFieldInfo( position = 3, unitSize = 2, signed = true, description = "Differential pressure 1 (raw, 0 if nonexistent)" ) public final Builder pressDiff1(int pressDiff1) { this.pressDiff1 = pressDiff1; return this; } /** * Differential pressure 2 (raw, 0 if nonexistent) */ @MavlinkFieldInfo( position = 4, unitSize = 2, signed = true, description = "Differential pressure 2 (raw, 0 if nonexistent)" ) public final Builder pressDiff2(int pressDiff2) { this.pressDiff2 = pressDiff2; return this; } /** * Raw Temperature measurement (raw) */ @MavlinkFieldInfo( position = 5, unitSize = 2, signed = true, description = "Raw Temperature measurement (raw)" ) public final Builder temperature(int temperature) { this.temperature = temperature; return this; } public final RawPressure build() { return new RawPressure(timeUsec, pressAbs, pressDiff1, pressDiff2, temperature); } } }
#!/usr/bin/env bash # real 48.42 #SBATCH --job-name=netlib-scalapack@2.1.0 #SBATCH --account=use300 #SBATCH --partition=shared #SBATCH --nodes=1 #SBATCH --ntasks-per-node=1 #SBATCH --cpus-per-task=16 #SBATCH --mem=32G #SBATCH --time=00:30:00 #SBATCH --output=%x.o%j.%N declare -xr LOCAL_TIME="$(date +'%Y%m%dT%H%M%S%z')" declare -xir UNIX_TIME="$(date +'%s')" declare -xr SYSTEM_NAME='expanse' declare -xr SPACK_VERSION='0.15.4' declare -xr SPACK_INSTANCE_NAME='cpu' declare -xr SPACK_INSTANCE_DIR="${HOME}/cm/shared/apps/spack/${SPACK_VERSION}/${SPACK_INSTANCE_NAME}" declare -xr SLURM_JOB_SCRIPT="$(scontrol show job ${SLURM_JOB_ID} | awk -F= '/Command=/{print $2}')" declare -xr SLURM_JOB_MD5SUM="$(md5sum ${SLURM_JOB_SCRIPT})" declare -xr SCHEDULER_MODULE='slurm/expanse/20.02.3' echo "${UNIX_TIME} ${SLURM_JOB_ID} ${SLURM_JOB_MD5SUM} ${SLURM_JOB_DEPENDENCY}" echo "" cat "${SLURM_JOB_SCRIPT}" module purge module load "${SCHEDULER_MODULE}" module list . "${SPACK_INSTANCE_DIR}/share/spack/setup-env.sh" declare -xr SPACK_PACKAGE='netlib-scalapack@2.1.0' declare -xr SPACK_COMPILER='gcc@10.2.0' declare -xr SPACK_VARIANTS='+pic +shared' declare -xr SPACK_DEPENDENCIES="^openblas@0.3.10/$(spack find --format '{hash:7}' openblas@0.3.10 % ${SPACK_COMPILER} +ilp64 threads=none) ^openmpi@3.1.6/$(spack find --format '{hash:7}' openmpi@3.1.6 % ${SPACK_COMPILER})" declare -xr SPACK_SPEC="${SPACK_PACKAGE} % ${SPACK_COMPILER} ${SPACK_VARIANTS} ${SPACK_DEPENDENCIES}" printenv spack config get compilers spack config get config spack config get mirrors spack config get modules spack config get packages spack config get repos spack config get upstreams spack spec --long --namespaces --types "${SPACK_SPEC}" if [[ "${?}" -ne 0 ]]; then echo 'ERROR: spack concretization failed.' exit 1 fi time -p spack install --jobs "${SLURM_CPUS_PER_TASK}" --fail-fast --yes-to-all "${SPACK_SPEC}" if [[ "${?}" -ne 0 ]]; then echo 'ERROR: spack install failed.' exit 1 fi spack module lmod refresh --delete-tree -y sbatch --dependency="afterok:${SLURM_JOB_ID}" 'fftw@3.3.8.sh' sleep 60
<gh_stars>0 /** * Game main file */ // Debug configuration var debug = { enable: true, contexts: { 'gamepad': false, 'PrepareBattleScene': false, 'BattleScene': true } }; // Init global variable var game; // Wait for page to be fully loaded (function($) {$(document).ready(function() { /** * Game */ class Game extends Phaser.Game { /** * Game constructor. */ constructor (config) { super(config); // Pause system this.paused = false; this.stopPauseScreen = undefined; } /** * Allow to pause the game or to resume it */ changePauseGameState() { var self = this; // Pause the game ! if(!this.paused) { this.paused = true; $('#pause_screen').fadeIn(); // Start to listen for unpause using browser api (not phaser) because the game is paused // and do not catch for keydown anymore setTimeout(function(){ self.stopPauseScreen = setInterval(function(){ for(var i = 0; i <= 1; i++) { // If one of the gamepad press start we unpaused the game if(navigator.getGamepads()[i].buttons[9].pressed) { clearInterval(stopPauseScreen); self.changePauseGameState(); } } }, 10); }, 1000); } // Resume the game else { $('#pause_screen').fadeOut(function(){ self.paused = false; }); } } } // Init Phaser game game = new Game({ type: Phaser.AUTO, width: $('#game').width(), height: $('#game').height(), parent: 'game', input: { gamepad: true }, physics: { default: 'arcade', arcade: { //debug: true } }, scene: [ LoadingScene, PauseScene, StartScene, PrepareBattleScene, BattleScene, FinishedBattleScreen ] }); game.scene.start('PrepareBattleScene'); });})(jQuery);
#!/bin/sh -eu IN="$1" OUT="$2" USE_2FACTOR="$3" U2F_ARGS="$4" if [ -n "$USE_2FACTOR" ]; then sed -n "/^auth.*pam_u2f/{ # add pattern space to hold space h :loop # print pattern space and fetch next line n # if we find pam_unix as sufficient we must change it to required # because this rule will go above pam_u2f in that case pam_u2f must be # sufficient as it will go after pam_unix /^auth sufficient.*pam_unix/{ s/auth sufficient/auth required/ p # exchange pattern space with hold space x s#\(auth sufficient .*pam_u2f.so\)#\1 $U2F_ARGS# bexit } # pam_unix was required, this means that there will be a followup rule # which is sufficient in that case pam_u2f must be required as it will # go before a sufficient rule /^auth required.*pam_unix/{ p # exchange pattern space with hold space x s#auth sufficient \(.*pam_u2f.so\)#auth required \1 $U2F_ARGS# bexit } # if we haven't found a pam_unix rule processing is aborted \$q1 # append line to hold space with newline prepended H # exchange pattern space with hold space x # bubble the first matching rule to the bottom of the hold space s/\([^\n]*\)\n\([^\n]*\)\$/\2\n\1/ # exchange pattern space with hold space x bloop } # print remaining contents :exit p" $IN > $OUT || cp $IN $OUT else sed "s#\(^auth .*pam_u2f.so\)#\1 $U2F_ARGS#" $IN > $OUT fi
use std::fs::File; use std::io::{Read, Error}; fn monitor_battery_capacity(file_path: &str) -> Result<u8, String> { let mut cap_str = String::new(); match File::open(file_path) { Ok(mut file) => { if let Err(e) = file.read_to_string(&mut cap_str) { return Err(format!("File read error: {}", e)); } match cap_str.trim().parse::<u8>() { Ok(capacity) => Ok(capacity), Err(_) => Err("Invalid capacity format in file".to_string()), } } Err(_) => { eprintln!("We could not detect your battery. If you are sure you are on a laptop please create an issue at https://github.com/JakeRoggenBuck/auto-clock-speed/issues/new"); Ok(100) } } }
#!/bin/bash t1=$1/$3 t2=$2/$3 left="$1/$3/tasks/*.gz" right="$2/$3/tasks/*.gz" function countexp { echo $(zegrep -c "$1" $2 | cut -d":" -f2 | paste -sd+ | bc) } function outrow { t="$1" exp="$2" leftcount=$(countexp "$exp" "$left") rightcount=$(countexp "$exp" "$right") diff=$(($rightcount - $leftcount)) echo $t $leftcount $rightcount $diff } function table { echo "exp $t1 $t2 diff" outrow nodos "<node" outrow vías "<way" outrow relaciones "<relation" outrow edificios 'k="[^=]*building"' outrow partes 'building:part' outrow piscinas 'swimming_pool' outrow direcciones "addr:postcode" } table | column -t -s' '
import os import json from time import time from os import path def cache_to_file(filename, expiration_time): def decorator(func): def wrapper(*args, **kwargs): if path.exists(filename) and time() - path.getmtime(filename) < expiration_time: with open(filename, 'r') as cache_file: data = json.loads(cache_file.read()) return data['resp'] else: resp = func(*args, **kwargs) if not path.exists(path.dirname(filename)): os.makedirs(path.dirname(filename)) with open(filename, 'w') as cache_file: cache_file.write(json.dumps({'resp': resp, 'timestamp': time()})) return resp return wrapper return decorator
<gh_stars>0 import { SectionStateEnum } from '@vdfor/util'; export interface IListBasicState { pageSize: number; pageNum: number; hasMore: boolean; loadMoreLoading: boolean; refreshLoading: boolean; status: SectionStateEnum; } export interface IQuxListState extends IListBasicState { data: any[]; }
package json import ( "net" "github.com/go-faster/errors" "github.com/go-faster/jx" ) // DecodeIP decodes net.IP. func DecodeIP(i *jx.Decoder) (v net.IP, err error) { s, err := i.Str() if err != nil { return nil, err } v = net.ParseIP(s) if len(v) == 0 { return nil, errors.New("bad ip format") } return v, nil } // EncodeIP encodes net.IP. func EncodeIP(s *jx.Writer, v net.IP) { s.Str(v.String()) }
<filename>s2/metric_test.go // Copyright 2015 Google 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 by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. package s2 import ( "math" "testing" ) func TestMetric(t *testing.T) { if got := MinWidthMetric.MaxLevel(0.001256); got != 9 { t.Errorf("MinWidthMetric.MaxLevel(0.001256) = %d, want 9", got) } // Check that the maximum aspect ratio of an individual cell is consistent // with the global minimums and maximums. if MaxEdgeAspect < 1 { t.Errorf("MaxEdgeAspect = %v, want >= 1", MaxEdgeAspect) } if got := MaxEdgeMetric.Deriv / MinEdgeMetric.Deriv; MaxEdgeAspect > got { t.Errorf("Edge Aspect: %v/%v = %v, want <= %v", MaxEdgeMetric.Deriv, MinEdgeMetric.Deriv, got, MaxDiagAspect) } if MaxDiagAspect < 1 { t.Errorf("MaxDiagAspect = %v, want >= 1", MaxDiagAspect) } if got := MaxDiagMetric.Deriv / MinDiagMetric.Deriv; MaxDiagAspect > got { t.Errorf("Diag Aspect: %v/%v = %v, want <= %v", MaxDiagMetric.Deriv, MinDiagMetric.Deriv, got, MaxDiagAspect) } // Check that area is consistent with edge and width. if got := MinWidthMetric.Deriv*MinEdgeMetric.Deriv - 1e-15; MinAreaMetric.Deriv < got { t.Errorf("Min Area: %v*%v = %v, want >= %v", MinWidthMetric.Deriv, MinEdgeMetric.Deriv, got, MinAreaMetric.Deriv) } if got := MaxWidthMetric.Deriv*MaxEdgeMetric.Deriv + 1e-15; MaxAreaMetric.Deriv > got { t.Errorf("Max Area: %v*%v = %v, want <= %v", MaxWidthMetric.Deriv, MaxEdgeMetric.Deriv, got, MaxAreaMetric.Deriv) } for level := -2; level <= maxLevel+3; level++ { width := MinWidthMetric.Deriv * math.Pow(2, float64(-level)) if level >= maxLevel+3 { width = 0 } // Check boundary cases (exactly equal to a threshold value). expected := int(math.Max(0, math.Min(maxLevel, float64(level)))) if MinWidthMetric.MinLevel(width) != expected { t.Errorf("MinWidthMetric.MinLevel(%v) = %v, want %v", width, MinWidthMetric.MinLevel(width), expected) } if MinWidthMetric.MaxLevel(width) != expected { t.Errorf("MinWidthMetric.MaxLevel(%v) = %v, want %v", width, MinWidthMetric.MaxLevel(width), expected) } if MinWidthMetric.ClosestLevel(width) != expected { t.Errorf("MinWidthMetric.ClosestLevel(%v) = %v, want %v", width, MinWidthMetric.ClosestLevel(width), expected) } // Also check non-boundary cases. if got := MinWidthMetric.MinLevel(1.2 * width); got != expected { t.Errorf("non-boundary MinWidthMetric.MinLevel(%v) = %v, want %v", 1.2*width, got, expected) } if got := MinWidthMetric.MaxLevel(0.8 * width); got != expected { t.Errorf("non-boundary MinWidthMetric.MaxLevel(%v) = %v, want %v", 0.8*width, got, expected) } if got := MinWidthMetric.ClosestLevel(1.2 * width); got != expected { t.Errorf("non-boundary larger MinWidthMetric.ClosestLevel(%v) = %v, want %v", 1.2*width, got, expected) } if got := MinWidthMetric.ClosestLevel(0.8 * width); got != expected { t.Errorf("non-boundary smaller MinWidthMetric.ClosestLevel(%v) = %v, want %v", 0.8*width, got, expected) } } } func TestMetricSizeRelations(t *testing.T) { // check that min <= avg <= max for each metric. tests := []struct { min Metric avg Metric max Metric }{ {MinAngleSpanMetric, AvgAngleSpanMetric, MaxAngleSpanMetric}, {MinWidthMetric, AvgWidthMetric, MaxWidthMetric}, {MinEdgeMetric, AvgEdgeMetric, MaxEdgeMetric}, {MinDiagMetric, AvgDiagMetric, MaxDiagMetric}, {MinAreaMetric, AvgAreaMetric, MaxAreaMetric}, } for _, test := range tests { if test.min.Deriv > test.avg.Deriv { t.Errorf("Min %v > Avg %v", test.min.Deriv, test.avg.Deriv) } if test.avg.Deriv > test.max.Deriv { t.Errorf("Avg %v > Max %v", test.avg.Deriv, test.max.Deriv) } } }
<gh_stars>1-10 import tensorflow as tf def resnet(x, residual_depth, training): """Residual convolutional neural network with global average pooling""" x = tf.layers.conv3d(x, 16, [3, 3, 3], strides=1, padding='SAME', use_bias=False, kernel_initializer=tf.contrib.layers.variance_scaling_initializer()) x = tf.layers.batch_normalization(x, training=training, momentum=0.9, epsilon=1e-5) x = tf.nn.swish(x) assert x.shape[-1] == 16, x.shape[1:] for i in range(residual_depth): x = residual_layer(x, 16, training) assert x.shape[-1] == 16, x.shape[1:] for i in range(residual_depth): x = residual_layer(x, 32, training, downsample=(i == 0)) assert x.shape[-1] == 32, x.shape[1:] for i in range(residual_depth): x = residual_layer(x, 64, training, downsample=(i == 0)) assert x.shape[-1] == 64, x.shape[1:] # Global average pooling x = tf.reduce_mean(x, [1, 2, 3]) assert x.shape[-1] == 64, x.shape[1:] return x def residual_layer(x, output_channels, training, downsample=False, weight_decay=0.0005): """Residual convolutional layer based on WideResNet https://arxiv.org/pdf/1605.07146v1.pdf""" stride = 2 if downsample else 1 # First hidden layer hidden = tf.layers.conv3d(x, output_channels, [3, 3, 3], strides=stride, padding='SAME', use_bias=False, kernel_initializer=tf.contrib.layers.variance_scaling_initializer(), kernel_regularizer=tf.contrib.layers.l2_regularizer(weight_decay)) hidden = tf.layers.batch_normalization(hidden, training=training, momentum=0.9, epsilon=1e-5) hidden = tf.nn.swish(hidden) # Second hidden layer hidden = tf.layers.conv3d(hidden, output_channels, [3, 3, 3], strides=1, padding='SAME', use_bias=False, kernel_initializer=tf.contrib.layers.variance_scaling_initializer(), kernel_regularizer=tf.contrib.layers.l2_regularizer(weight_decay)) hidden = tf.layers.batch_normalization(hidden, training=training, momentum=0.9, epsilon=1e-5) if downsample: x = tf.layers.conv3d(x, output_channels, [1, 1, 1], strides=stride, padding='SAME', kernel_initializer=tf.contrib.layers.variance_scaling_initializer(), kernel_regularizer=tf.contrib.layers.l2_regularizer(weight_decay)) return tf.nn.swish(hidden + x)
// // SCDragAffordanceView.h // SCUnreadMenu // // Created by <NAME> on 16/03/14. // Copyright (c) 2014 Subjective-C. All rights reserved. // #import <UIKit/UIKit.h> @interface SCSpringExpandView : UIView - (void)setExpanded:(BOOL)expanded animated:(BOOL)animated; - (void)setColor:(UIColor *)color; @end
import re def extract_author_info(code: str) -> tuple: author_info = re.search(r'@author:(.*?)<([^<>]+)>', code) author_name = author_info.group(1).strip() author_email = author_info.group(2).strip() return (author_name, author_email)
const CustomError = require("../extensions/custom-error"); module.exports = function transform(arr) { return arr.reduce((acc, curr, index, array) => { switch (curr) { case "--double-next": if (array[index + 1] !== undefined) { return [...acc, array[index + 1]] } else return acc case "--double-prev": if (index - 1 < 0) { return acc } if (array[index - 2] !== "--discard-next") { return [...acc, acc[acc.length - 1]] } else return acc case "--discard-prev": if (index - 1 < 0) { return acc } if (array[index - 2] !== "--discard-next") { return acc.slice(0, acc.length - 1) } else return acc case "--discard-next": return acc default: if (array[index - 1] !== "--discard-next") { return [...acc, curr] } else { return acc } } }, []) };
#!/usr/bin/env bash set -o errexit set -o pipefail set -o nounset TAG="${1:-"v3.13"}" echo "tag=${TAG}" echo "Building..." ./mvnw -DskipTests=true --projects planetiler-dist -am package echo "Running..." java -cp planetiler-dist/target/*-with-deps.jar com.onthegomap.planetiler.basemap.Generate -tag="${TAG}"
<filename>src/main/java/io/github/spair/web/rest/advices/ArticleControllerAdvice.java package io.github.spair.web.rest.advices; import io.github.spair.service.exceptions.ArticleNotFoundException; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseStatus; @ControllerAdvice public class ArticleControllerAdvice { @ExceptionHandler(ArticleNotFoundException.class) @ResponseStatus(HttpStatus.NOT_FOUND) public @ResponseBody Error handleArticleNotFound(ArticleNotFoundException e) { return new Error(HttpStatus.NOT_FOUND.value(), "Article [" + e.getArticleId() + "] not found"); } }
import { Injectable } from '@nestjs/common'; import * as rp from 'request-promise-native'; import { promisify } from 'util'; import * as redis from 'redis'; import { RemoteMoviesObjectDto } from '../movies/dto/remoteMovies.dto'; import { RemoteMovieObjectDto } from '../movies/dto/remoteMovie.dto'; /* Provides methods that implement logic for interacting with the cache and remote APIs */ const redisUrl = process.env.REDIS_URL; export const client = redis.createClient({ url: redisUrl, }); @Injectable() export class RequestService { storeInRedis = promisify(client.set).bind(client); getFromRedis = promisify(client.get).bind(client); closeRedisInstance = () => { client.quit(); } async fetch(path: string) { const endpoint = process.env.SWAPI_URL || 'https://swapi.co/api'; const options = { uri: `${endpoint}/${path}`, method: 'GET', simple: true, json: true, }; return rp(options).then( (resp: RemoteMoviesObjectDto|RemoteMovieObjectDto): RemoteMoviesObjectDto|RemoteMovieObjectDto => { return resp; }) .catch((err: {statusCode: number}): null => { if (err.statusCode === 400) { return null; } }); } async fetchUrl(url: string) { const options = { uri: url, method: 'GET', simple: true, json: true, }; return rp(options).then( (resp) => { return resp; }) .catch((err) => { return null; }); } }
#!/bin/bash # Copyright 2019 The Vitess Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # This is an example script that creates a quorum of ZooKeeper servers. source ./env.sh cell=${CELL:-'test'} export ETCDCTL_API=2 # Check that etcd is not already running curl "http://${ETCD_SERVER}" > /dev/null 2>&1 && fail "etcd is already running. Exiting." etcd --enable-v2=true --data-dir "${VTDATAROOT}/etcd/" --listen-client-urls "http://${ETCD_SERVER}" --advertise-client-urls "http://${ETCD_SERVER}" > "${VTDATAROOT}"/tmp/etcd.out 2>&1 & PID=$! echo $PID > "${VTDATAROOT}/tmp/etcd.pid" sleep 5 echo "add /vitess/global" etcdctl --endpoints "http://${ETCD_SERVER}" mkdir /vitess/global & echo "add /vitess/$cell" etcdctl --endpoints "http://${ETCD_SERVER}" mkdir /vitess/$cell & # And also add the CellInfo description for the cell. # If the node already exists, it's fine, means we used existing data. echo "add $cell CellInfo" set +e # shellcheck disable=SC2086 vtctl $TOPOLOGY_FLAGS AddCellInfo -- \ --root /vitess/$cell \ --server_address "${ETCD_SERVER}" \ $cell set -e echo "etcd start done..."
def count_words(words): count_dict = {} for word in words: if word not in count_dict.keys(): count_dict[word] = 1 else: count_dict[word] += 1 return count_dict if __name__ == '__main__': print(count_words(['my', 'name', 'is', 'my', 'name']))
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Provider, connect } from 'react-redux'; import { createStore, combineReducers } from 'redux'; import { addContact, updateContact, deleteContact, getContacts } from './actions/contactsActions'; class Contacts extends React.Component { // Your code here } const mapStateToProps = state => ({ contacts: state.contacts }); const mapDispatchToProps = dispatch => ({ addContact: contact => dispatch(addContact(contact)), updateContact: contact => dispatch(updateContact(contact)), deleteContact: id => dispatch(deleteContact(id)), getContacts: () => dispatch(getContacts()) }); const store = createStore( combineReducers({ contacts: contactsReducer }), window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() ); ReactDOM.render( <Provider store={store}> <Contacts /> </Provider>, document.getElementById('root') );
<filename>src/timers.h #ifndef timers #define timers void PIT_handler (); void setup_timer (uint16_t frequency, uint32_t address); #endif
def runAlgorithm(): #algorithm. # step 1 ... # step 2 ... # step 3 ... # return result return result result = runAlgorithm()
#ifndef PACKET_PAESER #define PACKET_PARSER #include <string.h> typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typedef unsigned int uint32_t; typedef signed char int8_t; struct mqtt_packet { uint8_t *binary; uint32_t pos; uint32_t remaining_length; }; uint8_t packet_parse_uint8(struct mqtt_packet *packet); uint16_t packet_parse_uint16(struct mqtt_packet *packet); uint32_t packet_parse_uint32(struct mqtt_packet *packet); void packet_parse_string(struct mqtt_packet *packet, char str[], uint32_t length); uint32_t packet_parse_var(struct mqtt_packet *packet); void packet_write_uint8(struct mqtt_packet *packet, uint8_t input); void packet_write_uint16(struct mqtt_packet *packet, uint16_t input); void packet_write_uint32(struct mqtt_packet * packet, uint32_t intput); void packet_write_string(struct mqtt_packet *packet, char str[], uint32_t length); void packet_write_var(struct mqtt_packet *packet, uint32_t); #endif
#!/bin/sh sudo ip link add dum0 type dummy sudo ip link set dum0 up sudo ip addr add 10.0.0.1/24 dev dum0 sudo ip addr add 2001::1/64 dev dum0 sudo ip route add 10.0.0.2/32 dev dum0 sudo ip route add 1.1.1.1/32 via 10.0.0.2 sudo ip route add 20.0.0.0/24 via 10.0.0.2 sudo ip route add fc00:1::1/128 via 2001::2 sudo ip link del dum0
pkg_name=jfrog-cli pkg_description="jfrog CLI" pkg_origin=core pkg_version=1.43.2 pkg_license=('apachev2') pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" pkg_source=https://jfrog.bintray.com/jfrog-cli-go/${pkg_version}/jfrog-cli-linux-amd64/jfrog pkg_shasum=cb53b4e733cc67614ea2b2e06c87503b76c157fbc6860fdde40f7b6a80f5891f pkg_deps=(core/glibc core/busybox-static core/cacerts) pkg_build_deps=(core/coreutils) pkg_bin_dirs=(bin) pkg_upstream_url="https://github.com/JFrogDev/jfrog-cli-go" do_unpack() { return 0 } do_build() { return 0 } do_install() { install -D "$HAB_CACHE_SRC_PATH/$pkg_filename" "$pkg_prefix/bin/jfrog" cgo_wrap_binary jfrog } cgo_wrap_binary() { local bin="$pkg_prefix/bin/$1" build_line "Adding wrapper $bin to ${bin}.real" mv -v "$bin" "${bin}.real" local certs certs="$(pkg_path_for cacerts)/ssl/cert.pem" cat <<EOF > "$bin" #!$(pkg_path_for busybox-static)/bin/sh set -e if [ ! -f "/etc/ssl/certs/ca-certificates.crt" ]; then echo "Adding symlink of $certs under /etc" mkdir -p /etc/ssl/certs ln -snf $certs /etc/ssl/certs/ca-certificates.crt fi export LD_LIBRARY_PATH="$LD_RUN_PATH" exec $(pkg_path_for glibc)/lib/ld-linux-x86-64.so.2 ${bin}.real \$@ EOF chmod -v 755 "$bin" }
# Set the editor. editors=(Emacs emacs jmacs qemacs qe mg mcedit nano vim vi) if [ $UID -eq 0 ]; then editors=(emacs mg vim vi) fi for editor in $editors; do if isinpath $editor; then export EDITOR==$editor export VISUAL=$EDITOR export GIT_EDITOR=$EDITOR alias e=$EDITOR break fi done [[ -z $EDITOR ]] && echo 'No suitable editor found. Use tramp. :-}'
TERMUX_PKG_HOMEPAGE=https://github.com/rkd77/elinks TERMUX_PKG_DESCRIPTION="Full-Featured Text WWW Browser" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="@termux" TERMUX_PKG_VERSION=0.15.0 TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=https://github.com/rkd77/elinks/releases/download/v${TERMUX_PKG_VERSION}/elinks-${TERMUX_PKG_VERSION}.tar.xz TERMUX_PKG_SHA256=bf2e9d752921f2d83a7dcac1062c37ae6c8d7c4057d8537abe1c42fbac946fb3 TERMUX_PKG_DEPENDS="libexpat, libiconv, libidn, openssl, libbz2, zlib" TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" --enable-256-colors --enable-true-color --mandir=$TERMUX_PREFIX/share/man --with-openssl --without-brotli --without-zstd --without-gc " TERMUX_MAKE_PROCESSES=1 termux_step_pre_configure() { ./autogen.sh }
<reponame>anticipasean/girakkafunc<filename>func-rxjava2/src/main/java/cyclops/rxjava2/companion/Maybes.java package cyclops.rxjava2.companion; import cyclops.async.reactive.futurestream.pipeline.Status; import cyclops.container.MonadicValue; import cyclops.container.Value; import cyclops.async.reactive.futurestream.companion.Futures; import cyclops.container.control.Either; import cyclops.container.control.Eval; import cyclops.async.Future; import cyclops.container.control.LazyEither; import cyclops.container.immutable.impl.Seq; import cyclops.function.enhanced.Function3; import cyclops.function.enhanced.Function4; import io.reactivex.Maybe; import io.reactivex.Single; import java.util.Iterator; import java.util.concurrent.CompletableFuture; import java.util.function.BiFunction; import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Predicate; import lombok.experimental.UtilityClass; import org.reactivestreams.Publisher; /** * Companion class for working with RxJava 2 Maybe types * * @author johnmcclean */ @UtilityClass public class Maybes { public static <T, R> Maybe<R> tailRec(T initial, Function<? super T, ? extends Maybe<? extends Either<T, R>>> fn) { Maybe<? extends Either<T, R>> next[] = new Maybe[1]; next[0] = Maybe.just(Either.left(initial)); boolean cont = true; do { cont = next[0].map(p -> p.fold(s -> { next[0] = fn.apply(s); return true; }, pr -> false)) .blockingGet(false); } while (cont); return next[0].map(e -> e.orElse(null)); } public static <T> Maybe<T> fromPublisher(Publisher<T> maybe) { return Single.fromPublisher(maybe) .toMaybe(); } public static <T> Future[] futures(Maybe<T>... futures) { Future[] array = new Future[futures.length]; for (int i = 0; i < array.length; i++) { array[i] = future(futures[i]); } return array; } public static <T> cyclops.container.control.Maybe<T> toMaybe(Maybe<T> future) { return cyclops.container.control.Maybe.fromPublisher(future.toFlowable()); } public static <T> Maybe<T> fromMaybe(cyclops.container.control.Maybe<T> future) { return Single.fromPublisher(future) .toMaybe(); } public static <T> Maybe<T> fromValue(MonadicValue<T> future) { return Single.fromPublisher(future) .toMaybe(); } public static <T> Future<T> future(Maybe<T> future) { return Future.fromPublisher(future.toFlowable()); } public static <R> LazyEither<Throwable, R> either(Maybe<R> either) { return LazyEither.fromFuture(future(either)); } public static <T> cyclops.container.control.Maybe<T> maybe(Maybe<T> opt) { return cyclops.container.control.Maybe.fromFuture(future(opt)); } public static <T> Eval<T> eval(Maybe<T> opt) { return Eval.fromFuture(future(opt)); } /** * Select the first Maybe to complete * * @param fts Maybes to race * @return First Maybe to complete * @see CompletableFuture#anyOf(CompletableFuture...) */ public static <T> Maybe<T> anyOf(Maybe<T>... fts) { return Single.fromPublisher(Future.anyOf(futures(fts))) .toMaybe(); } /** * Wait until all the provided Future's to complete * * @param fts Maybes to wait on * @return Maybe that completes when all the provided Futures Complete. Empty Future result, or holds an Exception from a * provided Future that failed. * @see CompletableFuture#allOf(CompletableFuture...) */ public static <T> Maybe<T> allOf(Maybe<T>... fts) { return Single.fromPublisher(Future.allOf(futures(fts))) .toMaybe(); } /** * Block until a Quorum of results have returned as determined by the provided Predicate * * <pre> * {@code * * Maybe<ListX<Integer>> strings = Maybes.quorum(status -> status.getCompleted() >0, Maybe.deferred(()->1),Maybe.empty(),Maybe.empty()); * * * strings.get().size() * //1 * * } * </pre> * * @param breakout Predicate that determines whether the block should be continued or removed * @param fts FutureWs to wait on results from * @param errorHandler Consumer to handle any exceptions thrown * @return Future which will be populated with a Quorum of results */ @SafeVarargs public static <T> Maybe<Seq<T>> quorum(Predicate<Status<T>> breakout, Consumer<Throwable> errorHandler, Maybe<T>... fts) { return Single.fromPublisher(Futures.quorum(breakout, errorHandler, futures(fts))) .toMaybe(); } /** * Block until a Quorum of results have returned as determined by the provided Predicate * * <pre> * {@code * * Maybe<ListX<Integer>> strings = Maybes.quorum(status -> status.getCompleted() >0, Maybe.deferred(()->1),Maybe.empty(),Maybe.empty()); * * * strings.get().size() * //1 * * } * </pre> * * @param breakout Predicate that determines whether the block should be continued or removed * @param fts Maybes to wait on results from * @return Maybe which will be populated with a Quorum of results */ @SafeVarargs public static <T> Maybe<Seq<T>> quorum(Predicate<Status<T>> breakout, Maybe<T>... fts) { return Single.fromPublisher(Futures.quorum(breakout, futures(fts))) .toMaybe(); } /** * Select the first Future to return with a successful result * * <pre> * {@code * Maybe<Integer> ft = Maybe.empty(); * Maybe<Integer> result = Maybes.firstSuccess(Maybe.deferred(()->1),ft); * * ft.complete(10); * result.get() //1 * } * </pre> * * @param fts Maybes to race * @return First Maybe to return with a result */ @SafeVarargs public static <T> Maybe<T> firstSuccess(Maybe<T>... fts) { return Single.fromPublisher(Future.firstSuccess(futures(fts))) .toMaybe(); } /** * Perform a For Comprehension over a Maybe, accepting 3 generating functions. This results in a four level nested internal * iteration over the provided Maybes. * * <pre> * {@code * * import static cyclops.async.reactive.futurestream.companion.reactor.Maybes.forEach4; * * forEach4(Maybe.just(1), * a-> Maybe.just(a+1), * (a,b) -> Maybe.<Integer>just(a+b), * (a,b,c) -> Maybe.<Integer>just(a+b+c), * Tuple::tuple) * * } * </pre> * * @param value1 top level Maybe * @param value2 Nested Maybe * @param value3 Nested Maybe * @param value4 Nested Maybe * @param yieldingFunction Generates a result per combination * @return Maybe with a combined value generated by the yielding function */ public static <T1, T2, T3, R1, R2, R3, R> Maybe<R> forEach4(Maybe<? extends T1> value1, Function<? super T1, ? extends Maybe<R1>> value2, BiFunction<? super T1, ? super R1, ? extends Maybe<R2>> value3, Function3<? super T1, ? super R1, ? super R2, ? extends Maybe<R3>> value4, Function4<? super T1, ? super R1, ? super R2, ? super R3, ? extends R> yieldingFunction) { Maybe<? extends R> res = value1.flatMap(in -> { Maybe<R1> a = value2.apply(in); return a.flatMap(ina -> { Maybe<R2> b = value3.apply(in, ina); return b.flatMap(inb -> { Maybe<R3> c = value4.apply(in, ina, inb); return c.map(in2 -> yieldingFunction.apply(in, ina, inb, in2)); }); }); }); return narrow(res); } /** * Perform a For Comprehension over a Maybe, accepting 2 generating functions. This results in a three level nested internal * iteration over the provided Maybes. * * <pre> * {@code * * import static cyclops.async.reactive.futurestream.companion.reactor.Maybes.forEach3; * * forEach3(Maybe.just(1), * a-> Maybe.just(a+1), * (a,b) -> Maybe.<Integer>just(a+b), * Tuple::tuple) * * } * </pre> * * @param value1 top level Maybe * @param value2 Nested Maybe * @param value3 Nested Maybe * @param yieldingFunction Generates a result per combination * @return Maybe with a combined value generated by the yielding function */ public static <T1, T2, R1, R2, R> Maybe<R> forEach3(Maybe<? extends T1> value1, Function<? super T1, ? extends Maybe<R1>> value2, BiFunction<? super T1, ? super R1, ? extends Maybe<R2>> value3, Function3<? super T1, ? super R1, ? super R2, ? extends R> yieldingFunction) { Maybe<? extends R> res = value1.flatMap(in -> { Maybe<R1> a = value2.apply(in); return a.flatMap(ina -> { Maybe<R2> b = value3.apply(in, ina); return b.map(in2 -> yieldingFunction.apply(in, ina, in2)); }); }); return narrow(res); } /** * Perform a For Comprehension over a Maybe, accepting a generating function. This results in a two level nested internal * iteration over the provided Maybes. * * <pre> * {@code * * import static cyclops.async.reactive.futurestream.companion.reactor.Maybes.forEach; * * forEach(Maybe.just(1), * a-> Maybe.just(a+1), * Tuple::tuple) * * } * </pre> * * @param value1 top level Maybe * @param value2 Nested Maybe * @param yieldingFunction Generates a result per combination * @return Maybe with a combined value generated by the yielding function */ public static <T, R1, R> Maybe<R> forEach(Maybe<? extends T> value1, Function<? super T, Maybe<R1>> value2, BiFunction<? super T, ? super R1, ? extends R> yieldingFunction) { Maybe<R> res = value1.flatMap(in -> { Maybe<R1> a = value2.apply(in); return a.map(ina -> yieldingFunction.apply(in, ina)); }); return narrow(res); } /** * Lazily combine this Maybe with the supplied value via the supplied BiFunction * * @param maybe Maybe to combine with another value * @param app Value to combine with supplied maybe * @param fn Combiner function * @return Combined Maybe */ public static <T1, T2, R> Maybe<R> combine(Maybe<? extends T1> maybe, Value<? extends T2> app, BiFunction<? super T1, ? super T2, ? extends R> fn) { return narrow(Single.fromPublisher(Future.fromPublisher(maybe.toFlowable()) .zip(app, fn)) .toMaybe()); } /** * Lazily combine this Maybe with the supplied Maybe via the supplied BiFunction * * @param maybe Maybe to combine with another value * @param app Maybe to combine with supplied maybe * @param fn Combiner function * @return Combined Maybe */ public static <T1, T2, R> Maybe<R> combine(Maybe<? extends T1> maybe, Maybe<? extends T2> app, BiFunction<? super T1, ? super T2, ? extends R> fn) { return narrow(Single.fromPublisher(Future.fromPublisher(maybe.toFlowable()) .zip(Future.fromPublisher(app.toFlowable()), fn)) .toMaybe()); } /** * Combine the provided Maybe with the first element (if present) in the provided Iterable using the provided BiFunction * * @param maybe Maybe to combine with an Iterable * @param app Iterable to combine with a Maybe * @param fn Combining function * @return Combined Maybe */ public static <T1, T2, R> Maybe<R> zip(Maybe<? extends T1> maybe, Iterable<? extends T2> app, BiFunction<? super T1, ? super T2, ? extends R> fn) { return narrow(Single.fromPublisher(Future.fromPublisher(maybe.toFlowable()) .zip(app, fn)) .toMaybe()); } /** * Combine the provided Maybe with the first element (if present) in the provided Publisher using the provided BiFunction * * @param maybe Maybe to combine with a Publisher * @param fn Publisher to combine with a Maybe * @param app Combining function * @return Combined Maybe */ public static <T1, T2, R> Maybe<R> zip(Maybe<? extends T1> maybe, BiFunction<? super T1, ? super T2, ? extends R> fn, Publisher<? extends T2> app) { Maybe<R> res = narrow(Single.fromPublisher(Future.fromPublisher(maybe.toFlowable()) .zip(fn, app)) .toMaybe()); return res; } /** * Construct a Maybe from Iterable by taking the first value from Iterable * * @param t Iterable to populate Maybe from * @return Maybe containing first element from Iterable (or empty Maybe) */ public static <T> Maybe<T> fromIterable(Iterable<T> t) { return narrow(Single.fromPublisher(Future.fromIterable(t)) .toMaybe()); } /** * Get an Iterator for the value (if any) in the provided Maybe * * @param pub Maybe to get Iterator for * @return Iterator over Maybe value */ public static <T> Iterator<T> iterator(Maybe<T> pub) { return pub.toFlowable() .blockingIterable() .iterator(); } public static <R> Maybe<R> narrow(Maybe<? extends R> apply) { return (Maybe<R>) apply; } }
#!/bin/bash ############################################################################# # Function: Check_Kwargs_Count # Checks correct number of kwargs # # Globals: # args_count=${#} # # Returns: # 0 if correct # 1 if incorrect count ############################################################################# Check_Kwargs_Count () { args_count=$1 if [ ${args_count} -eq 3 ] then printf "Correct number of parameters\n" else printf "Incorrect number of parameters\n" printf "Usage: ./create.sh [STACK_NAME] [TEMPLATE_FILE] [PARAMETERS_FILE]\n" exit 1 fi } # Script Start Check_Kwargs_Count $# aws cloudformation create-stack \ --stack-name $1 \ --template-body file://$2 \ --parameters file://$3 \ --capabilities "CAPABILITY_IAM" "CAPABILITY_NAMED_IAM" \ --region=us-west-2
#!/bin/bash echo "Usage: benchyComp count step start resultname, where the benchmarked values are generated by [start + step * n | n <- [1..count]]" stack install sandbox arg="" for i in $(seq 1 $1) do let j=$i*$2+$3 c="'benchinv ${j}' " arg=$arg$c done for i in $(seq 1 $1) do let j=$i*$2+$3 c="'./Last-PAKCS ${j}' " arg=$arg$c done for i in $(seq 1 $1) do let j=$i*$2+$3 c="'././Last-KiCS ${j}' " arg=$arg$c done # for i in $(seq 1 $1) # do # let j=$i*$2+$3 # c="'benchinv CBNHandler ${j}' " # arg=$arg$c # done current_time=$(date "+%Y-%m-%d-%H-%M-%S") cmd="bench --output benchmarks/$4-$current_time.html --csv benchmarks/$4-$current_time.csv $arg" echo $cmd eval $cmd firefox benchmarks/$4-$current_time.html
#!/bin/sh cd `dirname $0` ./scripts/common_startup.sh tool_shed=`./lib/tool_shed/scripts/bootstrap_tool_shed/parse_run_sh_args.sh $@` args=$@ if [ $? -eq 0 ] ; then bash ./lib/tool_shed/scripts/bootstrap_tool_shed/bootstrap_tool_shed.sh $@ args=`echo $@ | sed "s#-\?-bootstrap_from_tool_shed $tool_shed##"` fi python ./scripts/paster.py serve tool_shed_wsgi.ini --pid-file=tool_shed_webapp.pid --log-file=tool_shed_webapp.log $args
export const DISPLAY = 'DISPLAY';
<gh_stars>10-100 import textEditorDeclarations from '.'; describe('Code editor declarations', () => { it('is a valid string', () => { expect(textEditorDeclarations).toEqual(expect.any(String)); }); describe('Contains the needed declarations', () => { it('contains execution environment variables', () => { expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const htmlNode')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const data')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const codeData')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const customProperties')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const options')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const theme')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const getTemplateSrv')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare function getLocationSrv')); expect(textEditorDeclarations).toEqual(expect.stringContaining('declare const htmlGraphics')); }); }); });
import sys try: import bitarray except ImportError: print("Please install the bitarray module from pypi") print("e.g. sudo pip install bitarray") sys.exit(-1) # If the bitarray module is successfully imported, continue with the script # Process the list of integers using the bitarray module # Your specific operations on the list of integers using the bitarray module go here
<html> <head> <title>Display Date and Time</title> </head> <body> <p>Today is <span id="day"></span>, Week <span id="weekNo"></span> of <span id="month"></span>.</p> <script> // get current date let today = new Date(); let day = today.getDate(); let month = today.getMonth(); let weekNo = today.getWeek(); document.getElementById("day").innerHTML = day; document.getElementById("month").innerHTML = month; document.getElementById("weekNo").innerHTML = weekNo; </script> </body> </html>
<filename>src/app/pages/content/images/images.component.ts import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { DomSanitizer } from '@angular/platform-browser'; import { CrudService } from '../../shared/services/crud.service'; import { Router } from '@angular/router'; import { NbDialogService } from '@nebular/theme'; import { Lightbox } from 'ngx-lightbox'; import { environment } from '../../../../environments/environment'; import { MalihuScrollbarService } from 'ngx-malihu-scrollbar'; import { TokenService } from '../../auth/services/token.service'; import { TreeModel, DownloadModeEnum, ConfigInterface } from 'ng6-file-man'; import xhook from 'xhook'; @Component({ selector: 'images-table', templateUrl: './images.component.html', styleUrls: ['./images.component.scss'], }) export class ImagesComponent implements OnInit { url = environment.apiUrl; uploadedFiles: any[] = []; _albums: any[] = []; loadingList = false; isPopup = false; tree: TreeModel; appLanguage = 'en'; constructor( private tokenService: TokenService, //private crudService: CrudService, public router: Router, // private sanitization: DomSanitizer, // private dialogService: NbDialogService, //private _lightbox: Lightbox, private mScrollbarService: MalihuScrollbarService, ) { const treeConfig: ConfigInterface = { baseURL: this.url, api: { listFile: '/v1/private/content/list', uploadFile: '/v1/private/content/images/add', downloadFile: '/v1/content/images/download', deleteFile: '/v1/private/content/images/remove', createFolder: 'api/directory',//not supported renameFile: '/v1/private/content/images/rename', searchFiles: 'api/search'//not supported }, options: { allowFolderDownload: DownloadModeEnum.DOWNLOAD_DISABLED, showFilesInsideTree: true } }; this.tree = new TreeModel(treeConfig) } ngOnInit() { console.log('ngOnInit'); const token: string = this.tokenService.getToken(); if (token) { xhook.before(function (request) { request.headers['Authorization'] = 'Bearer ' + token; }); } } ngAfterViewInit() { this.mScrollbarService.initScrollbar('.gallery_listing_main', { axis: 'y', theme: 'minimal-dark', scrollButtons: { enable: true } }); } }
/* Copyright 2020-2021 University of Oxford and Health and Social Care Information Centre, also known as NHS Digital Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. SPDX-License-Identifier: Apache-2.0 */ import { Component, OnInit, Input } from '@angular/core'; import { UserSettingsHandlerService } from '@mdm/services/utility/user-settings-handler.service'; import { MarkdownParserService } from '@mdm/utility/markdown/markdown-parser/markdown-parser.service'; @Component({ selector: 'mdm-more-description', templateUrl: './more-description.component.html', styleUrls: ['./more-description.component.sass'] }) export class MoreDescriptionComponent implements OnInit { @Input() description: string; @Input() length: any; maxLength = 100; showMore = false; shortDesc: string; fullDesc: string; constructor( userSettingsHandler: UserSettingsHandlerService, private markdownParser: MarkdownParserService ) { this.showMore = userSettingsHandler.get('expandMoreDescription'); } ngOnInit() { if (this.length !== undefined) { this.maxLength = this.length; } this.shortDesc = this.createShortDescription(); this.fullDesc = this.markdownParser.parse(this.description, 'html'); } toggle() { this.showMore = !this.showMore; } createShortDescription() { const desc = this.markdownParser.parse(this.description, 'text'); if (desc && desc.length > this.maxLength) { let subStr = desc.substring(0, this.maxLength); const lastIndexOf = subStr.lastIndexOf(' '); subStr = subStr.substring(0, lastIndexOf); return `${subStr}...`; } else { return desc; } } }
<filename>src/features/auth/view/containers/Logout/Logout.tsx import * as React from 'react'; import { bindActionCreators } from 'redux'; import { connect, Dispatch } from 'react-redux'; import { ICommunication } from 'shared/types/redux'; import { IAppReduxState } from 'shared/types/app'; import { isSuccessedByState } from 'shared/helpers/redux'; import { selectors, actions } from '../../../redux'; interface IActionProps { logout: typeof actions.logout; } interface IStateProps { isLogoutFetching: ICommunication; } interface IOwnProps { isAdminPanel?: boolean; onSuccessfullLogout(): void; } type IProps = IActionProps & IStateProps & IOwnProps; function mapState(state: IAppReduxState): IStateProps { return { isLogoutFetching: selectors.selectCommunicationState('logout', state), }; } function mapDispatch(dispatch: Dispatch<any>): IActionProps { return bindActionCreators({ logout: actions.logout, }, dispatch); } class Logout extends React.PureComponent<IProps> { public componentWillReceiveProps(nextProps: IProps) { const { isLogoutFetching } = this.props; if (isSuccessedByState(isLogoutFetching, nextProps.isLogoutFetching)) { this.props.onSuccessfullLogout(); } } public componentDidMount() { const { logout, isAdminPanel } = this.props; logout(isAdminPanel); } public render() { return null; } } export default connect(mapState, mapDispatch)(Logout);
<filename>console/src/boost_1_78_0/libs/describe/example/equality.cpp<gh_stars>100-1000 // Copyright 2021 <NAME> // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include <boost/describe.hpp> #include <boost/mp11.hpp> #include <boost/variant2/variant.hpp> #include <vector> using namespace boost::describe; namespace app { template<class T, class Bd = describe_bases<T, mod_any_access>, class Md = describe_members<T, mod_any_access>> bool operator==( T const& t1, T const& t2 ) { bool r = true; boost::mp11::mp_for_each<Bd>([&](auto D){ using B = typename decltype(D)::type; r = r && (B const&)t1 == (B const&)t2; }); boost::mp11::mp_for_each<Md>([&](auto D){ r = r && t1.*D.pointer == t2.*D.pointer; }); return r; } struct A { int x = 1; }; BOOST_DESCRIBE_STRUCT(A, (), (x)) struct B { int y = 2; }; BOOST_DESCRIBE_STRUCT(B, (), (y)) struct C { std::vector<boost::variant2::variant<A, B>> v; }; BOOST_DESCRIBE_STRUCT(C, (), (v)) } // namespace app #include <iostream> int main() { app::C c1, c2, c3; c1.v.push_back( app::A{} ); c2.v.push_back( app::A{} ); c3.v.push_back( app::B{} ); std::cout << std::boolalpha << ( c1 == c2 ) << ' ' << ( c1 == c3 ) << std::endl; }
<filename>client/components/Content.js import React from 'react' export const Content = props => { return ( <div> <a className="dropdown-trigger btn red darken-3 col s2" href="" data-target="dropdown2" > <i className="material-icons right">arrow_drop_down</i> {props.contentTag} </a> <ul id="dropdown2" className="dropdown-content"> <li> <a onClick={() => props.contentFilter('Movies/TV')}> Movies and TV Shows </a> </li> <li> <a onClick={() => props.contentFilter('Movies')}>Movies</a> </li> <li> <a onClick={() => props.contentFilter('TV Shows')}>TV Shows</a> </li> </ul> </div> ) }
<filename>chest/base-utils/jdk/src/main/java/net/community/chest/lang/PubliclyCloneable.java package net.community.chest.lang; /** * Copyright 2007 as per GPLv2 * * Used to automatically promote {@link Object#clone()} to <I>public</I> status * * @param <V> Type of cloned value * @author <NAME>. * @since Jul 4, 2007 7:34:38 AM */ public interface PubliclyCloneable<V> extends Cloneable { /** * @return cloned object * @throws CloneNotSupportedException if unable to clone it */ V /* NOTE !!! causes co-variant return */ clone () throws CloneNotSupportedException; }
package nl.topicus.hibernate.dialect; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.hibernate.boot.Metadata; import org.hibernate.mapping.Table; import org.hibernate.tool.schema.internal.StandardTableExporter; public class CloudSpannerTableExporter extends StandardTableExporter { private final CloudSpannerDialect dialect; public CloudSpannerTableExporter(CloudSpannerDialect dialect) { super(dialect); this.dialect = dialect; } @Override public String[] getSqlDropStrings(Table table, Metadata metadata) { // Check for actually existing table and indices. if (!tableExists(table)) return new String[] {}; Set<String> existingIndices = getIndicesExcludingPK(table); if (existingIndices.isEmpty()) return super.getSqlDropStrings(table, metadata); List<String> dropIndices = new ArrayList<>(); for (String index : existingIndices) { dropIndices.add("DROP INDEX `" + index + "`"); } String[] tableDrop = super.getSqlDropStrings(table, metadata); String[] res = new String[dropIndices.size() + tableDrop.length]; dropIndices.toArray(res); System.arraycopy(tableDrop, 0, res, dropIndices.size(), tableDrop.length); return res; } private boolean tableExists(Table table) { if (dialect.getMetadata() == null) return false; boolean exists = true; try (ResultSet tables = dialect.getMetadata().getTables(table.getCatalog(), table.getSchema(), table.getName(), null)) { exists = tables.next(); } catch (SQLException e) { // ignore at this point, just try to drop it. } return exists; } private Set<String> getIndicesExcludingPK(Table table) { Set<String> res = new HashSet<>(); if (dialect.getMetadata() == null) return res; try (ResultSet indices = dialect.getMetadata().getIndexInfo(table.getCatalog(), table.getSchema(), table.getName(), false, false)) { while (indices.next()) { if (!indices.getString("INDEX_NAME").equalsIgnoreCase("PRIMARY_KEY")) res.add(indices.getString("INDEX_NAME")); } } catch (SQLException e) { // ignore at this point, just return an empty set } return res; } }
package com.pickth.comepennyrenewal.util; import java.text.ParseException; /** * Created by Kim on 2017-01-31. */ public class PickthDateFormat { private static class TIME_MAXIMUM { public static final int SEC = 60; public static final int MIN = 60; public static final int HOUR = 24; public static final int DAY = 30; public static final int MONTH = 12; } public static String formatTimeString(String str) { java.text.SimpleDateFormat format = new java.text.SimpleDateFormat( "yyyy-MM-dd HH:mm:ss"); java.util.Date date = null; try { date = format.parse(str); } catch (ParseException e) { e.printStackTrace(); } long curTime = System.currentTimeMillis(); long regTime = date.getTime(); long diffTime = (curTime - regTime) / 1000; String msg = null; if (diffTime < TIME_MAXIMUM.SEC) { // sec msg = "방금 전"; } else if ((diffTime /= TIME_MAXIMUM.SEC) < TIME_MAXIMUM.MIN) { // min msg = diffTime + "분 전"; } else if ((diffTime /= TIME_MAXIMUM.MIN) < TIME_MAXIMUM.HOUR) { // hour msg = (diffTime) + "시간 전"; } else if ((diffTime /= TIME_MAXIMUM.HOUR) < TIME_MAXIMUM.DAY) { // day msg = (diffTime) + "일 전"; } else if ((diffTime /= TIME_MAXIMUM.DAY) < TIME_MAXIMUM.MONTH) { // day msg = (diffTime) + "달 전"; } else { // msg = str; msg = (diffTime%TIME_MAXIMUM.MONTH) + "년 전"; } return msg; } }
const assert = require('assert'); const Bot = require('../bot.js'); describe('bot', function() { let save = function(config) { } let onlogin = undefined; function MockConfig() { return { token: 'my-<PASSWORD>-token', guilds: { 'guild1': { 'games': { 'Sample game': { 'users': {} }, 'Other game': { 'users': {} }, 'FUZZY GAME': { 'users': {} }, }, }, }, }; } let messages = []; let mock_guilds = { 'guild1': { 'defaultChannel': { 'send': function(msg) { messages.push({'guild': 'guild1', 'content': msg}); }, }, }, }; class DMChannel { constructor(user) { } send(msg) { messages.push({'guild': null, 'content': msg}); } } let client = undefined; class MockDiscordClient { constructor() { client = this; this.handlers_ = {}; this.guilds = { 'get': function(id) { return mock_guilds[id]; }, }; } login(token) { this.user = {id: 'botuser', tag: 'mockbot#1'}; this.dispatch('ready'); if (onlogin) onlogin(token); } on(eventType, callback) { this.handlers_[eventType] = this.handlers_[eventType] || []; this.handlers_[eventType].push(callback); } dispatch(eventType /*, args */) { if (!this.handlers_[eventType]) return; for (let handler of this.handlers_[eventType]) { handler.apply(null, Array.prototype.splice.call(arguments, 1)); } } } const MOCK_HOOKS = { 'Discord': {'Client': MockDiscordClient}, save } function send(guild, from, message) { let channel = guild ? client.guilds.get(guild).defaultChannel : new DMChannel(from); client.dispatch('message', { 'content': message, 'guild': guild ? {'id': guild} : null, 'member': {'user': {'id': from}}, 'reply': function(response) { channel.send('<@' + from + '>' + response); }, 'channel': channel, }); } // Sends a subscribe message and returns game in response or false if no // game was found. function subscribe(guild, user, game) { send(guild, user, '<@botuser> subscribe ' + game); let response = getMessage(); assert.ok(response.content.startsWith('<@' + user + '>')); let message = response.content.substring(user.length + 3); const preamble = 'Subscribed to '; if (!message.startsWith(preamble)) return false; // There is an exclamation mark at the end; make sure to remove it. return message.substring(preamble.length, message.length - 1); } // Sends a subscriptions message and returns a list of the games. function get_subscriptions(guild, user) { send(guild, user, '<@botuser> subscriptions'); let response = getMessage(); assert.ok(response.content.startsWith('<@' + user + '>')); let message = response.content.substring(user.length + 3); if (message.startsWith('You are not')) return []; const preamble = 'You are subscribed to '; assert.ok(message.startsWith(preamble)); // Parsing the return is made more difficult due to the fancy formatting. // Woo for functional testing. let game_string = message.substring(preamble.length, message.length); let games = game_string.split(/,? and |, /); return games; } function getMessage() { assert.equal(messages.length, 1); let result = messages[0]; messages = []; return result; } function getMessages() { let result = messages; messages = []; return result; } function play(guild, user, game, oldGame) { client.dispatch('presenceUpdate', {'guild': {'id': guild}, 'user': {'id': user}, 'presence': {'game': oldGame}}, {'guild': {'id': guild}, 'user': {'id': user}, 'presence': {'game': game}}); } describe('create()', function() { it('should connect to discord', function(done) { let config = {token: 'foobar'}; onlogin = function(token) { onlogin = undefined; assert.equal(token, config.token); done(); }; Bot.create(config, { 'Discord': {'Client': MockDiscordClient}, save }); }); }); describe('basic commands', function() { it('should respond to the help command', function() { let config = MockConfig(); Bot.create(config, { 'Discord': {'Client': MockDiscordClient}, save }); send('guild1', 'user1', '<@botuser> help'); assert.ok(getMessage().content.startsWith('**Commands:**')); }); }); describe('direct messages', function() { it('doesn\'t crash when direct messaged with a guild command', function() { Bot.create(MockConfig(), MOCK_HOOKS); assert.equal(subscribe(null, 'user1', 'Sample game'), false); }); }); describe('subscriptions', function() { it('should subscribe to known games', function() { let config = MockConfig(); Bot.create(config, MOCK_HOOKS); assert.ok(!config.guilds['guild1'].games['Sample game'].users['user2']); assert.equal(subscribe('guild1', 'user2', 'Sample game'), 'Sample game'); assert.ok(config.guilds['guild1'].games['Sample game'].users['user2']); }); it('should fuzzy match subscribed game', function() { Bot.create(MockConfig(), MOCK_HOOKS); assert.equal(subscribe('guild1', 'user2', 'FUZY GAME'), 'FUZZY GAME'); }); it('should match subscribed games case insensitive', function() { Bot.create(MockConfig(), MOCK_HOOKS); assert.equal(subscribe('guild1', 'user2', 'SAMPLE GAME'), 'Sample game'); assert.equal(subscribe('guild1', 'user2', 'fuzzy game'), 'FUZZY GAME'); }); it ('should be able to list subscribed games', function() { Bot.create(MockConfig(), MOCK_HOOKS); assert.deepEqual(get_subscriptions('guild1', 'user2'), []); assert.equal(subscribe('guild1', 'user2', 'Sample game'), 'Sample game'); assert.deepEqual(get_subscriptions('guild1', 'user2'), ['Sample game']); // Multiple games are listed alphabetically. assert.equal(subscribe('guild1', 'user2', 'Other game'), 'Other game'); assert.deepEqual(get_subscriptions('guild1', 'user2'), ['Other game', 'Sample game']); // There is also special formatting for 3 games, so test that too. assert.equal(subscribe('guild1', 'user2', 'FUZZY GAME'), 'FUZZY GAME'); assert.deepEqual(get_subscriptions('guild1', 'user2'), ['FUZZY GAME', 'Other game', 'Sample game']); }); }); describe('notifications', function() { it('should notify subscribed users not playing', function() { let config = MockConfig(); Bot.create(config, MOCK_HOOKS); subscribe('guild1', 'user2', 'Sample game'); subscribe('guild1', 'user3', 'Sample game'); play('guild1', 'user3', 'Sample game'); assert.ok(getMessage().content.startsWith('<@user2>:')); }); it('should not notify playing user', function() { let config = MockConfig(); Bot.create(config, MOCK_HOOKS); subscribe('guild1', 'user2', 'Sample game'); play('guild1', 'user2', 'Sample game'); assert.equal(messages.length, 0); }); it('should only notify on the first playing user per game', function() { let config = MockConfig(); Bot.create(config, MOCK_HOOKS); subscribe('guild1', 'user2', 'Sample game'); subscribe('guild1', 'user2', 'Other game'); // user3 starting to play should notify play('guild1', 'user3', 'Sample game'); assert.ok(getMessage().content.startsWith('<@user2>:')); // user4 starting to play same game should not notify play('guild1', 'user4', 'Sample game'); assert.equal(messages.length, 0); // user5 starting to play another game should notify play('guild1', 'user5', 'Other game'); assert.ok(getMessage().content.startsWith('<@user2>:')); // If everyone stops playing, and user6 starts playing we should get // another notification. play('guild1', 'user3', null, 'Sample game'); play('guild1', 'user4', null, 'Sample game'); play('guild1', 'user6', 'Sample game'); assert.ok(getMessage().content.startsWith('<@user2>:')); }); }); });
# Write your solution here def add_movie(database: list, name: str, director: str, year: int, runtime: int): movie_dic = {} movie_dic["name"] = name movie_dic["director"] = director movie_dic["year"] = year movie_dic["runtime"] = runtime database.append(movie_dic) if __name__ == "__main__": database = [] add_movie(database, "Gone with the Python", "<NAME>", 2017, 116) add_movie(database, "Pythons on a Plane", "<NAME>", 2001, 94) print(database)
#!/bin/bash # 时间:2020-12-4 # 创建人:段晨曦 # 环境部署入口 # 引入帮助方法 注意:因为所有脚本都可能引用该脚本所以顶级引用 # 当前目录 path_current="$PWD" source $path_current/helper.sh source $path_current/component/docker/dockerInstall.sh # 部署docker fun_load_docker clear echo echo -e "请选择安装资源:默认退出操作" echo -e "1.安装Dotnet" echo -e "2.删除Dotnet" echo -e "3.删除docker(此操作会删除所有容器、镜像、容器数据)" echo -e "4.安装(redis、RabbitMQ)" echo -e "5.安装数据库(安装mysql8.0)" echo -e "6.安装日志系统(SEQ)" echo -e "7.安装追踪链系统(Skywalking)" echo -e "8.添加docker用户组(如果不是root用户,执行docker没有权限,所以需要添加当前用户操作权限)" echo -e "9.关闭Docker日志" echo -e "10.启用Docker日志\n" echo -e "请选择需要安装的资源" read -n 2 chose_input case $chose_input in "1") echo -e "\n安装Dotnet" source dotnetcore/DotnetInstall.sh fun_load_dotnet ;; "2") echo -e "\n删除Dotnet" source dotnetcore/DotnetRemove.sh fun_load_dotnet_remove ;; "3") echo -e "\n删除docker(此操作会删除所有容器、镜像、容器数据)" source component/docker/DockerRemove.sh fun_load_docker_remove ;; "4") echo -e "\n安装(redis、RabbitMQ)" source component/images/RedisInstall.sh fun_Redis_load source component/images/RabbitMQInstall.sh fun_RabbitMQ_load ;; "5") echo -e "\n安装数据库(安装mysql8.0)" source component/images/MySqlInstall.sh fun_mysql_load ;; "6") echo -e "\n安装日志系统(SEQ)" source component/images/SEQInstall.sh fun_SEQ_load ;; "7") echo -e "\n安装追踪链系统(Skywalking)" source component/images/SkywalkingInstall.sh fun_skywalking_oap_server_load ;; "8") echo -e "\n添加docker用户组" func_add_user_docker ;; "9") echo -e "\n关闭Docker日志" func_config_docker_log disable ;; "10") echo -e "\n启用Docker日志" func_config_docker_log enable ;; *) echo '下次再来执行我吧!!!' ;; esac
set -e if [ -z "$JAVA_HOME" ]; then echo "ERROR You should set JAVA_HOME" echo "Exiting!" exit 1 fi C_INCLUDE_PATH="${JAVA_HOME}/include:${JAVA_HOME}/include/linux:/System/Library/Frameworks/JavaVM.framework/Headers" export C_INCLUDE_PATH rm -f *.java rm -f *.c rm -f *.so #swig -java sodium.i swig -java -package org.abstractj.kalium -outdir ../src/main/java/org/abstractj/kalium sodium.i jnilib=libkaliumjni.so destlib=/usr/lib if uname -a | grep -q -i darwin; then jnilib=libkaliumjni.jnilib destlib=/usr/lib/java fi echo $jnilib echo $destlib sudo cp /usr/local/lib/libsodium.* /usr/lib #In order to compile for arm/armv7/x86/mips you should build your own standalone android-toolchain as in libsodium:android-build.sh #https://github.com/jedisct1/libsodium/blob/master/dist-build/android-build.sh #And then use gcc binary from there. #Example(arm): #/installs/libsodium/android-toolchain-arm/arm-linux-androideabi/bin/gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -I/installs/libsodium/libsodium-android-arm/include sodium_wrap.c -shared -fPIC -L/installs/libsodium/libsodium-android-arm/lib -lsodium -o $jnilib #Example(arm7): #/installs/libsodium/android-toolchain-armv7/arm-linux-androideabi/bin/gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -I/installs/libsodium/libsodium-android-armv7/include sodium_wrap.c -shared -fPIC -L/installs/libsodium/libsodium-android-armv7/lib -lsodium -o $jnilib #Example(mips): #/installs/libsodium/android-toolchain-mips/mipsel-linux-android/bin/gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -I/installs/libsodium/libsodium-android-mips/include sodium_wrap.c -shared -fPIC -L/installs/libsodium/libsodium-android-mips/lib -lsodium -o $jnilib #Example(x86): #/installs/libsodium/android-toolchain-x86/i686-linux-android/bin/gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -I/installs/libsodium/libsodium-android-x86/include sodium_wrap.c -shared -fPIC -L/installs/libsodium/libsodium-android-x86/lib -lsodium -o $jnilib gcc -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux sodium_wrap.c -shared -fPIC -L/usr/lib -lsodium -o $jnilib sudo rm -f /usr/lib/libkaliumjni.so sudo cp libkaliumjni.so $destlib
package com.grabarski.mateusz.petclinic.domain.models; /** * Created by <NAME> on 28.08.2018. */ public class Owner extends Person { }
package analyzer import ( "testing" troubleshootv1beta1 "github.com/replicatedhq/troubleshoot/pkg/apis/troubleshoot/v1beta1" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/api/resource" ) func Test_compareNodeResourceConditionalToActual(t *testing.T) { tests := []struct { name string conditional string actual int expected bool }{ { name: "=", conditional: "= 5", actual: 5, expected: true, }, { name: "<= (pass)", conditional: "<= 5", actual: 4, expected: true, }, { name: "<= (fail)", conditional: "<= 5", actual: 6, expected: false, }, { name: "> (pass)", conditional: "> 5", actual: 6, expected: true, }, { name: ">=(fail)", conditional: ">= 5", actual: 4, expected: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { req := require.New(t) actual, err := compareNodeResourceConditionalToActual(test.conditional, test.actual) req.NoError(err) assert.Equal(t, test.expected, actual) }) } } func Test_nodeMatchesFilters(t *testing.T) { tests := []struct { name string node corev1.Node filters *troubleshootv1beta1.NodeResourceFilters expectResult bool }{ { name: "true when empty filters", node: corev1.Node{ Status: corev1.NodeStatus{ Capacity: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("20959212Ki"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7951376Ki"), "pods": resource.MustParse("29"), }, Allocatable: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("19316009748"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7848976Ki"), "pods": resource.MustParse("29"), }, }, }, filters: &troubleshootv1beta1.NodeResourceFilters{}, expectResult: true, }, { name: "true while nil/missing filters", node: corev1.Node{ Status: corev1.NodeStatus{ Capacity: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("20959212Ki"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7951376Ki"), "pods": resource.MustParse("29"), }, Allocatable: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("19316009748"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7848976Ki"), "pods": resource.MustParse("29"), }, }, }, expectResult: true, }, { name: "false when allocatable memory is too high", node: corev1.Node{ Status: corev1.NodeStatus{ Capacity: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("20959212Ki"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7951376Ki"), "pods": resource.MustParse("29"), }, Allocatable: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("19316009748"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7848976Ki"), "pods": resource.MustParse("29"), }, }, }, filters: &troubleshootv1beta1.NodeResourceFilters{ MemoryAllocatable: "16Gi", }, expectResult: false, }, { name: "true when allocatable memory is available", node: corev1.Node{ Status: corev1.NodeStatus{ Capacity: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("20959212Ki"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7951376Ki"), "pods": resource.MustParse("29"), }, Allocatable: corev1.ResourceList{ "attachable-volumes-aws-ebs": resource.MustParse("25"), "cpu": resource.MustParse("2"), "ephemeral-storage": resource.MustParse("19316009748"), "hugepages-1Gi": resource.MustParse("0"), "hugepages-2Mi": resource.MustParse("0"), "memory": resource.MustParse("7848976Ki"), "pods": resource.MustParse("29"), }, }, }, filters: &troubleshootv1beta1.NodeResourceFilters{ MemoryAllocatable: "8Gi", }, expectResult: false, }, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { req := require.New(t) actual, err := nodeMatchesFilters(test.node, test.filters) req.NoError(err) assert.Equal(t, test.expectResult, actual) }) } }
#!/usr/bin/env bash # this script is automatically run from CMakeLists.txt BUILD_ROOT=$PWD BUILD_OPENBLAS=$1 BUILD_PYTORCH=$2 BUILD_TORCH=$3 TORCH_PREFIX=$PWD/torch echo "[Pre-build] dependency installer script running..." echo "[Pre-build] BUILD_ROOT directory: $BUILD_ROOT" echo "[Pre-build] BUILD_OPENBLAS $BUILD_OPENBLAS" echo "[Pre-build] BUILD_PYTORCH $BUILD_PYTORCH" echo "[Pre-build] BUILD_TORCH $BUILD_TORCH" echo "[Pre-build] installing Torch/LUA into: $TORCH_PREFIX" # (don't) break on errors #set -e # # (prompt) install Gazebo7 # while true; do read -p "[Pre-build] Do you wish to install Gazebo robotics simulator (y/N)? " yn case $yn in [Yy]* ) sudo apt-get update; sudo apt-get install -y gazebo7 libgazebo7-dev; break;; [Nn]* ) echo "[Pre-build] skipping Gazebo installation"; break;; * ) echo "[Pre-build] Please answer yes or no.";; esac done # # build pyTorch? # if [ $BUILD_PYTORCH = "ON" ] || [ $BUILD_PYTORCH = "YES" ] || [ $BUILD_PYTORCH = "Y" ]; then echo "[Pre-build] beginning pyTorch setup" sudo apt-get install python-pip # upgrade pip pip install -U pip pip --version # pip 9.0.1 from /home/ubuntu/.local/lib/python2.7/site-packages (python 2.7) # setproctitle extension used by A3G # sudo pip install setproctitle # install numpy sudo pip install numpy sudo apt-get install python-gi-cairo # see https://github.com/torch/cutorch/issues/797 # use <= v0.2.0 #export TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" echo $TORCH_NVCC_FLAGS # clone pyTorch repo git clone https://github.com/pytorch/pytorch cd pytorch git tag git checkout v0.3.0 git branch git submodule update --init # install prereqs sudo pip install -U setuptools sudo pip install -r requirements.txt # Develop Mode: python setup.py build_deps sudo python setup.py develop cd torch ln -s _C.so lib_C.so cd lib ln -s libATen.so.1 libATen.so #ln -s libTH.so.1 libTH.so #ln -s libTHC.so.1 libTHC.so cd ../../ git clone https://github.com/pytorch/examples sudo pip install -r examples/reinforcement_learning/requirements.txt git clone https://github.com/pytorch/vision cd vision sudo python setup.py install sudo apt-get install swig sudo pip install box2D cd ../../ echo "[Pre-build] pyTorch setup complete" fi sudo apt-get install libglew-dev glew-utils libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev libglib2.0-dev # # build Torch? # if [ $BUILD_TORCH = "ON" ] || [ $BUILD_TORCH = "YES" ] || [ $BUILD_TORCH = "Y" ]; then # Install dependencies for Torch: echo "[Pre-build] installing Torch7 package dependencies" sudo apt-get update sudo apt-get install -y gfortran build-essential gcc g++ cmake curl libreadline-dev git-core liblua5.1-0-dev # note: gfortran is for OpenBLAS LAPACK compilation ##sudo apt-get install -qqy libgd-dev sudo apt-get update echo "[Pre-build] Torch7's package dependencies have been installed" # Install openBLAS echo "[Pre-build] build OpenBLAS? $1" if [ $1 = "ON" ] || [ $1 = "YES" ] || [ $1 = "Y" ]; then echo "[Pre-build] building OpenBLAS..."; rm -rf OpenBLAS git clone https://github.com/xianyi/OpenBLAS cd OpenBLAS mkdir build make make install PREFIX=$BUILD_ROOT/OpenBLAS/build export CMAKE_LIBRARY_PATH=$BUILD_ROOT/OpenBLAS/build/include:$BUILD_ROOT/OpenBLAS/build/lib:$CMAKE_LIBRARY_PATH cd $BUILD_ROOT fi # Install luajit-rocks into Torch dir echo "[Pre-build] configuring luajit-rocks" cd $BUILD_ROOT rm -rf luajit-rocks git clone https://github.com/torch/luajit-rocks.git cd luajit-rocks mkdir -p build cd build git checkout master; git pull rm -f CMakeCache.txt cmake .. -DWITH_LUAJIT21=yes -DCMAKE_INSTALL_PREFIX=$TORCH_PREFIX -DCMAKE_BUILD_TYPE=Release make make install cd $BUILD_ROOT path_to_nvcc=/usr/local/cuda-9.0/bin/nvcc if [ -x "$path_to_nvcc" ] then cutorch=ok cunn=ok echo "[Pre-build] detected NVCC / CUDA toolkit" fi sudo apt-get install gnuplot gnuplot-qt # Install base packages: echo "[Pre-build] installing luarocks packages" cd $BUILD_ROOT git clone https://github.com/torch/rocks $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/luaffi-scm-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/cwrap-scm-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/paths-scm-1.rockspec #$TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/torch-scm-1.rockspec echo "[Pre-build] installing torch7 from source" cd $BUILD_ROOT git clone https://github.com/torch/torch7 cd torch7 # patch neon vector itrinsics (this should be fixed in master now) # cp ../NEON.c lib/TH/vector/NEON.c # cat lib/TH/vector/NEON.c # patch set 993 #sed -i '6 a STRING(REGEX REPLACE "^.*(asimd).*$" "\\\\1" ASIMD_THERE ${CPUINFO})' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '7 a STRING(COMPARE EQUAL "asimd" "${ASIMD_THERE}" ASIMD_TRUE)' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '8 a IF (ASIMD_TRUE)' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '9 a set(ASIMD_FOUND true CACHE BOOL "ASIMD/NEON available on host")' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '10 a ELSE (ASIMD_TRUE)' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '11 a set(ASIMD_FOUND false CACHE BOOL "ASIMD/NEON available on host")' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '12 a ENDIF (ASIMD_TRUE)' $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #sed -i '64 a IF (ASIMD_FOUND)' $BUILD_ROOT/torch7/lib/TH/CMakeLists.txt #sed -i '65 a MESSAGE(STATUS "asimd/Neon found with compiler flag : -D__NEON__")' $BUILD_ROOT/torch7/lib/TH/CMakeLists.txt #sed -i '66 a SET(CMAKE_C_FLAGS "-D__NEON__ ${CMAKE_C_FLAGS}")' $BUILD_ROOT/torch7/lib/TH/CMakeLists.txt #sed -i '67 a ENDIF (ASIMD_FOUND)' $BUILD_ROOT/torch7/lib/TH/CMakeLists.txt #cat $BUILD_ROOT/torch7/lib/TH/cmake/FindARM.cmake #cat $BUILD_ROOT/torch7/lib/TH/CMakeLists.txt #sed -i 's/#if defined(__arm__)/#if defined(__arm__) || defined(__arm64)/' $BUILD_ROOT/torch7/lib/TH/generic/simd/simd.h #sed -i 's/#if defined(__arm__)/#if defined(__arm__) || defined(__NEON__)/' $BUILD_ROOT/torch7/lib/TH/generic/simd/simd.h cat $BUILD_ROOT/torch7/lib/TH/generic/simd/simd.h $TORCH_PREFIX/bin/luarocks make $BUILD_ROOT/torch7/rocks/torch-scm-1.rockspec cd $BUILD_ROOT #$TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/torch7/rocks/torch-scm-1.rockspec echo "[Pre-build] done installing torch7 package" echo "[Pre-build] installing additional packages for Torch" echo "[Pre-build] installing nn from source" git clone https://github.com/torch/nn cd nn #sed -i 's/ptrdiff_t/long/g' lib/THNN/init.c #sed -i 's/ptrdiff_t/long/g' lib/THNN/generic/* $TORCH_PREFIX/bin/luarocks make $BUILD_ROOT/nn/rocks/nn-scm-1.rockspec cd $BUILD_ROOT echo "[Pre-build] done installing nn package" #$TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/nn-scm-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/nnx-0.1-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/optim-1.0.5-0.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/gnuplot-scm-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/rocks/nngraph-scm-1.rockspec #$TORCH_PREFIX/bin/luarocks install cwrap #$TORCH_PREFIX/bin/luarocks install paths #$TORCH_PREFIX/bin/luarocks install torch #$TORCH_PREFIX/bin/luarocks install nn #$TORCH_PREFIX/bin/luarocks install nnx #$TORCH_PREFIX/bin/luarocks install optim #$TORCH_PREFIX/bin/luarocks install cutorch #$TORCH_PREFIX/bin/luarocks install trepl #$TORCH_PREFIX/bin/luarocks install gnuplot echo "[Pre-build] installing cutorch from source" git clone https://github.com/torch/cutorch sed -i 's/$(getconf _NPROCESSORS_ONLN)/1/g' cutorch/rocks/cutorch-1.0-0.rockspec sed -i 's/$(getconf _NPROCESSORS_ONLN)/1/g' cutorch/rocks/cutorch-scm-1.rockspec sed -i 's/jopts=3/jopts=1/g' cutorch/rocks/cutorch-1.0-0.rockspec sed -i 's/jopts=3/jopts=1/g' cutorch/rocks/cutorch-scm-1.rockspec $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/cutorch/rocks/cutorch-scm-1.rockspec echo "[Pre-build] done installing cutorch package" echo "[Pre-build] installing cudnn bindings from source" # install cudnn v5 bindings #git clone -b R5 https://github.com/soumith/cudnn.torch git clone https://github.com/soumith/cudnn.torch #sed -i 's/ffi.sizeof('half'),/2,/g' cudnn.torch/init.lua $TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/cudnn.torch/cudnn-scm-1.rockspec echo "[Pre-build] done installing cudnn bindings package" echo "" echo "[Pre-build] Torch7 has been installed successfully" echo "" #echo "installing iTorch" #sudo apt-get install libzmq3-dev libssl-dev python-zmq #sudo pip install ipython #ipython --version ## pip uninstall IPython ## pip install ipython==3.2.1 #sudo pip install jupyter #git clone https://github.com/facebook/iTorch.git #$TORCH_PREFIX/bin/luarocks install $BUILD_ROOT/iTorch/itorch-scm-1.rockspec fi
# Options for Experiments # https://stackoverflow.com/questions/965053/extract-filename-and-extension-in-bash config_name=`basename "$1"` EXP_NAME="${config_name%.*}" echo $EXP_NAME EXP_DIR=$EXP_ROOT_DIR/base/$EXP_NAME/ EXP_MODELS=$EXP_DIR/models/ EXP_SUMMARY=$EXP_DIR/summary/ EXP_RESULTS=$EXP_DIR/results/ # Options for data file paths # .txt_pre_processed, suffix of files to combine, default ".txt_pre_processed" SUFFIX=.txt_pre_processed # the folder for storing AMRs, subdirs are /train/ /dev/ /test/ FOLDER=$CODE_BASE/amr_data/e25/data/alignments/split/ # the folder for generated AMR RESULT_FOLDER=$EXP_RESULTS # the folder for building data dnd rules/ BUILD_FOLDER=$CODE_BASE/amr/build/amr2eng/ # whether to use fixed alignment, default False JAMR= # the folder for saving model SAVE_TO=$EXP_MODELS # If training from a checkpoint, then load from RESTORE_FROM= # Model options # whether use wiki GET_WIKI=x # whether use sense GET_SENSE=x # Whether bias category, default = 1 CAT_BIAS=1 # Whether lemma bias LEMMA_BIAS=0 # Whether use different snt encoder for independent posterior INDEPENDENT_POSTERIOR=1 # Whether to keep train_posterior, default = True TRAIN_POSTERIOR=1 # alpha dropout, used for data dropout, default = True ALPHA_DROPOUT=0.1 # whether initialize word INITIALIZE_WORD=1 # options for layers # Number of layers in the rel LSTM encoder/decoder, int, 2 REL_ENLAYERS=2 # Number of layers in the root LSTM encoder/decoder ROOT_ENLAYERS=1 # Number of layers in the concept LSTM encoder/decoder TXT_ENLAYERS=1 # Number of layers in the amr LSTM encoder/decoder AMR_ENLAYERS=1 # The rnn hidden size of txt_rnn, default is 512 TXT_RNN_SIZE=512 # The rnn hidden size of rel_rnn, default is 512 REL_RNN_SIZE=512 # The rnn hidden size of amr_rnn, default is 200 AMR_RNN_SIZE=200 # Whether to train relation /root identification, float, also the weight for rel loss REL=1.0 # word_embedding size, default 300 WORD_DIM=300 # lemma_dim or high dim, default 200 DIM=200 # Pos embedding size, default 32 POS_DIM=32 # Ner embedding size, default 16 NER_DIM=16 # Category embedding size, default 32 CAT_DIM=32 # mixed amr node and text representation dimension, default 200 REL_DIM=16 # whether use bidiretional encoder, default True BRNN=x # Optimization and training options # L2 weight decay, default 0.00001 WEIGHT_DECAY=0.00001 # Whether to train all paramaters, usefull when reloading model for train RETRAIN_ALL= # Maximum batch size, default 64 BATCH_SIZE=64 # epochs to train, default 30 EPOCHS=30 # The epoch from which to start, default = 1 START_EPOCH=1 # Optimization Methods, default is adam, support sgd,adagrad, adadelta, adam OPTIM=adam # learning rate. If adagrad/adadelta/adam is used, then this is the global learning rate. Recommended settings: sgd = 1, adagrad = 0.1, adadelta = 1, adam = 0.1" LEARNING_RATE=0.001 # If the norm of the gradient vector exceeds this, renormalize it to have the norm equal to max_grad_norm MAX_GRAD_NORM=10 # Dropout probability; applied between LSTM stacks and some MLPs. default, 0.2 DROPOUT=0.2 # whether using gumbel softmax, default is Ture GUMBEL= # gumbel-sinkhorn procedure, Number of iterations, default is 10 SINKHORN=0 # gumbel sinkhorn temperature, default = 1 SINK_T=1 # Prior tempeture for gumbel-sinkhorn, default = 5 PRIOR_T=5 # gumbel-sinkhorn finite step regularizor penalizing non-double-stochasitcit SINK_RE=10 # Decay learning rate by this much if (i) perplexity does not drecrease on the validation set or (ii) epoch has gone past the start_decay_at_limit, default = 0.98 LEARNING_RATE_DECAY=0.98 # start decay after this epoch, default= 5 START_DECAY_AT=5 # Whether relation system use independent embeddings, default=1 EMB_INDEPENDENT=1 # GPUS # gpu ids to use, default = -2, means loaded by outside gpu scheudler GPUS=-2 # from_gpus, gpuid will be used when saving model, if gpu id is different from saving time, we need to specify this FROM_GPUS= # log per epoch, print stats at this interval, default 10 LOG_PER_EPOCH=10 # renyi_alpha, default=0.5, parameter of renyi_alpha relaxation, which is alternative to hierachical relaxation in the paper, used for soft version loss RENYI_ALPHA=0.5 # weights for masking pre_unaligned MASK_PRE_UNALIGNED=1e6 # the name for pretrained bert model, default empty BERT_MODEL= # max_bert_seq_length to use for bert seq, include special bert tokens, default = 64 MAX_BERT_SEQ_LENGTH=64 # warmup_proportion used for linear warmup WARMUP_PROPORTION=-1 # gradient_accumulation for N steps, then do GRADIENT_ACCUMULATION=1 # optim scheduler name to use for learning rate scheduling, default = none, warmup_cosine, warmup_constent, warmup_linear OPTIM_SCHEDULER_NAME=none # debug_size, defalue = -1, means no debug, positive value means in debug mode DEBUG_SIZE=-1 # summary dir to write tensor board summary SUMMARY_DIR=${EXP_SUMMARY} # concept_snt_encoder, Model:Share:ARG CONCEPT_SNT_ENCODER=rnn # posterior_snt_encoder, Model:Share:ARG POSTERIOR_SNT_ENCODER=rnn # rel_snt_encoder, Model:Share:ARG REL_SNT_ENCODER=rnn # root_snt_encoder, Model:Share:ARG ROOT_SNT_ENCODER=rnn # use_src_encs_for_posterior USE_SRC_ENCS_FOR_POSTERIOR= # use_src_encs_for_rel USE_SRC_ENCS_FOR_REL= # use_src_encs_for_root USE_SRC_ENCS_FOR_ROOT= # optim json configs OPTIM_JSON_CONFIGS= # posterior_amr_encoder for amr POSTERIOR_AMR_ENCODER=rnn # whether normalize mod NORMALIZE_MOD=x # meaning representation frames to parse, seperate by comma, default i s'amr' FRAMES=amr # whether bias dm target pos DM_TARGET_POS_BIAS=1 # whether bias dm sense DM_SENSE_BIAS=1 # whether bias psd target pos bias PSD_TARGET_POS_BIAS=1 # whether bias psd sense bias PSD_SENSE_BIAS=1 # whether bias dm cat bias DM_CAT_BIAS=1 # char dim CHAR_DIM=64 # char encoder config CHAR_ENCODER_CONFIG=
<gh_stars>10-100 /* * Copyright (C) 2008-2020 Advanced Micro Devices, Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * 1. Redistributions of source code must retain the above copyright notice, * this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * 3. Neither the name of the copyright holder nor the names of its contributors * may be used to endorse or promote products derived from this software without * specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * */ #include <stdint.h> /* * expm1f data * Generated for: * (j/64.0) * 2 ; for j = 0, 1, 2, ... 63 */ const uint64_t __two_to_jby64[] = { 0x3ff0000000000000, 0x3fefec9a3e778061, 0x3fefd9b0d3158574, 0x3fefc74518759bc8, 0x3fefb5586cf9890f, 0x3fefa3ec32d3d1a2, 0x3fef9301d0125b51, 0x3fef829aaea92de0, 0x3fef72b83c7d517b, 0x3fef635beb6fcb75, 0x3fef54873168b9aa, 0x3fef463b88628cd6, 0x3fef387a6e756238, 0x3fef2b4565e27cdd, 0x3fef1e9df51fdee1, 0x3fef1285a6e4030b, 0x3fef06fe0a31b715, 0x3feefc08b26416ff, 0x3feef1a7373aa9cb, 0x3feee7db34e59ff7, 0x3feedea64c123422, 0x3feed60a21f72e2a, 0x3feece086061892d, 0x3feec6a2b5c13cd0, 0x3feebfdad5362a27, 0x3feeb9b2769d2ca7, 0x3feeb42b569d4f82, 0x3feeaf4736b527da, 0x3feeab07dd485429, 0x3feea76f15ad2148, 0x3feea47eb03a5585, 0x3feea23882552225, 0x3feea09e667f3bcd, 0x3fee9fb23c651a2f, 0x3fee9f75e8ec5f74, 0x3fee9feb564267c9, 0x3feea11473eb0187, 0x3feea2f336cf4e62, 0x3feea589994cce13, 0x3feea8d99b4492ed, 0x3feeace5422aa0db, 0x3feeb1ae99157736, 0x3feeb737b0cdc5e5, 0x3feebd829fde4e50, 0x3feec49182a3f090, 0x3feecc667b5de565, 0x3feed503b23e255d, 0x3feede6b5579fdbf, 0x3feee89f995ad3ad, 0x3feef3a2b84f15fb, 0x3feeff76f2fb5e47, 0x3fef0c1e904bc1d2, 0x3fef199bdd85529c, 0x3fef27f12e57d14b, 0x3fef3720dcef9069, 0x3fef472d4a07897c, 0x3fef5818dcfba487, 0x3fef69e603db3285, 0x3fef7c97337b9b5f, 0x3fef902ee78b3ff6, 0x3fefa4afa2a490da, 0x3fefba1bee615a27, 0x3fefd0765b6e4540, 0x3fefe7c1819e90d8, }; /* Local Variables: */ /* mode: c */ /* commentcolumn: 0 */ /* End: */
def merge_sort(list_1, list_2): merged_list = list_1 + list_2 merged_list.sort() return merged_list if __name__ == '__main__': list_1 = [1, 3, 5, 6, 7] list_2 = [4, 8, 9, 10] print(merge_sort(list_1, list_2))
<reponame>sophiemarceau/HTJD_Android<filename>huatuo/src/main/java/com/huatuo/util/L.java<gh_stars>0 package com.huatuo.util; import android.util.Log; /** * Logͳһ������ * * @author way * */ public class L { public static boolean isDebug = true;// �Ƿ���Ҫ��ӡbug��������application��onCreate���������ʼ�� private static final String TAG = "way"; public static final String SEPARATOR = ","; // �����ĸ���Ĭ��tag�ĺ��� public static void i(String msg) { if (isDebug) Log.i(TAG, msg); } public static void d(String msg) { if (isDebug) Log.d(TAG, msg); } public static void e(String msg) { if (isDebug) Log.e(TAG, msg); } public static void v(String msg) { if (isDebug) Log.v(TAG, msg); } // �����Ǵ����Զ���tag�ĺ��� public static void i(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void d(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void e(String tag, String msg) { if (isDebug) Log.i(tag, msg); } public static void v(String tag, String msg) { if (isDebug) Log.i(tag, msg); } /** * �����־����������Ϣ */ public static String getLogInfo(StackTraceElement stackTraceElement) { StringBuilder logInfoStringBuilder = new StringBuilder(); // ��ȡ�ļ���.��xxx.java String fileName = stackTraceElement.getFileName(); // ��ȡ����.������+���� String className = stackTraceElement.getClassName(); // ��ȡ�������� String methodName = stackTraceElement.getMethodName(); // ��ȡ����������� int lineNumber = stackTraceElement.getLineNumber(); logInfoStringBuilder.append("[ "); logInfoStringBuilder.append("fileName=" + fileName).append(SEPARATOR); logInfoStringBuilder.append("className=" + className).append(SEPARATOR); logInfoStringBuilder.append("methodName=" + methodName) .append(SEPARATOR); logInfoStringBuilder.append("lineNumber=" + lineNumber); logInfoStringBuilder.append(" ] "); return logInfoStringBuilder.toString(); } }
<reponame>vany152/FilesHash /*============================================================================= Copyright (c) 2002-2018 <NAME> 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) =============================================================================*/ #if !defined(BOOST_SPIRIT_X3_MINIMAL_EMPLOYEE_HPP) #define BOOST_SPIRIT_X3_MINIMAL_EMPLOYEE_HPP #include <boost/spirit/home/x3.hpp> #include "ast.hpp" namespace client { /////////////////////////////////////////////////////////////////////////////// // Our employee parser declaration /////////////////////////////////////////////////////////////////////////////// namespace parser { namespace x3 = boost::spirit::x3; using employee_type = x3::rule<class employee, ast::employee>; BOOST_SPIRIT_DECLARE(employee_type); } parser::employee_type employee(); } #endif
import React, {useState} from 'react'; import {Form, Input, Button} from 'antd'; import {authenticate} from './authentication'; const App = () => { const [email, setEmail] = useState(''); const [password, setPassword] = useState(''); const [submitted, setSubmitted] = useState(false); const handleSubmit = async (e) => { e.preventDefault(); setSubmitted(true); const valid = await authenticate(email, password); if (valid) { console.log('Login successful!'); } else { console.log('Login failed'); } setSubmitted(false); }; return ( <Form onSubmit={handleSubmit}> <Input type="email" value={email} onChange={(e) => setEmail(e.target.value)} placeholder="Email" /> <Input type="password" value={password} onChange={(e) => setPassword(e.target.value)} placeholder="Password" /> <Button type="primary" loading={submitted} onClick={handleSubmit}> Submit </Button> </Form> ); }; export default App;
<reponame>AshokumarRaja/SocialMedia<filename>src/Toggle.js import React ,{useState}from 'react' import './Toggle.css' const Toggle = () => { const [toggle,setToggle]=useState(false); return ( <div> <button id="toggle" onClick={()=>setToggle(prevState=>!prevState)}>{!toggle ? "Show Details" : "Hide Details" }</button> { toggle && <p>Is Toggle</p>} </div> ) } export default Toggle
import argparse import os class Summarizer: @staticmethod def add_model_specific_args(parser, current_dir): parser.add_argument('--model', type=str, default='default_model', help='Specify the summarization model') parser.add_argument('--length', type=int, default=100, help='Specify the length of the summarized text') return parser @staticmethod def main(args): # Perform text summarization using the specified model and arguments # Assume the existence of a method or function for text summarization summarized_text = "This is the summarized text based on the input and model-specific arguments" print(summarized_text) if __name__ == "__main__": main_arg_parser = argparse.ArgumentParser(description="summarization") parser = Summarizer.add_model_specific_args(main_arg_parser, os.getcwd()) args = parser.parse_args() Summarizer.main(args)
<reponame>HISPSA/data-visualizer-app<filename>packages/app/src/modules/dnd.js const DATA_TYPE_TEXT = 'text' export const setDataTransfer = (e, source) => { e.dataTransfer.setData( DATA_TYPE_TEXT, JSON.stringify({ dimensionId: e.target.dataset.dimensionid, source, }) ) } export const decodeDataTransfer = e => JSON.parse(e.dataTransfer.getData(DATA_TYPE_TEXT))
#!/bin/bash curl -X PUT ${YOWIE_STATUS_UPDATE_URL}TESTING sleep 1s curl -X GET ${MOVIE_FINDER_URL}/dvd/title/like/something if [ $? -ne 0 ] then echo "Error during calling movie finder!" exit 1 fi sleep 1s curl -X GET ${MOVIE_FINDER_URL}/dvd/title/like/hel if [ $? -ne 0 ] then echo "Error during calling movie finder!" exit 1 fi sleep 1s curl -X PUT ${YOWIE_STATUS_UPDATE_URL}TESTED exit 0
#!/bin/bash set -e SCRIPT_DIR=$(cd `dirname "$0"`; pwd) BASE_DIR=`dirname "${SCRIPT_DIR}"` cd "${BASE_DIR}" # Extracts all languages, or only select ones if arguments are passed in extractLanguages () { # Regular file if [ ! -d "$1" ]; then # Get language list local langs file="$1" shift if [ $# -gt 0 ]; then # Languages were specified in positional arguments, use them langs=$@ else # No languages specified, get all of them langs=$("${SCRIPT_DIR}/msrt_tool.py" --list "${BASE_DIR}/$file.msrt" | cut -d ' ' -f1) fi # Extract languages from list 1 at a time local lang for lang in ${langs}; do echo "Generating $lang for $file" [ -d "${BASE_DIR}/output/$file" ] || mkdir -p "${BASE_DIR}/output/$file" "${SCRIPT_DIR}/msrt_tool.py" --extract "$lang" "${BASE_DIR}/output/$file/$file-$lang.srt" "${BASE_DIR}/$file.msrt" done # Directory else local dir="$1" FILELIST=`ls -1 "$dir/"*.msrt` shift if [ $# -gt 0 ]; then # Languages were specified in positional arguments, use them langs_option=$@ fi for file in ${FILELIST}; do file=`basename ${file} .msrt` if [ -z "${langs_option}" ]; then langs=$("${SCRIPT_DIR}/msrt_tool.py" --list "${BASE_DIR}/$dir/$file.msrt" | cut -d ' ' -f1) else langs=${langs_option} fi local lang for lang in ${langs}; do echo "Generating $lang for $dir/$file" [ -d "${BASE_DIR}/output/$dir/$lang" ] || mkdir -p "${BASE_DIR}/output/$dir/$lang" "${SCRIPT_DIR}/msrt_tool.py" --extract "$lang" "${BASE_DIR}/output/$dir/$lang/$file.srt" "${BASE_DIR}/$dir/$file.msrt" done done fi } FILES=( "pepper-and-carrot-ep6" "morevna-ep3" "course-synfig" "course-pepper" ) # generating subtitles for FILE in "${FILES[@]}"; do extractLanguages "$FILE" done # creating release archives cd "${BASE_DIR}/output" rm *.zip || true FILES=( "course-synfig" "course-pepper" ) for DIR in "${FILES[@]}"; do zip -r ${DIR}.zip ${DIR} done
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.17 - MySQL Community Server (GPL) -- 服务器操作系统: Win32 -- HeidiSQL 版本: 8.0.0.4396 -- -------------------------------------------------------- /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET NAMES utf8 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -- 导出 gin 的数据库结构 DROP DATABASE IF EXISTS `gin`; CREATE DATABASE IF NOT EXISTS `gin` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `gin`; -- 导出 表 gin.hs_task 结构 DROP TABLE IF EXISTS `hs_task`; CREATE TABLE IF NOT EXISTS `hs_task` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID编号', `queue_index` varchar(120) NOT NULL DEFAULT '' COMMENT '执行任务的队列索引', `queue_slot` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行任务的队列槽位', `cycle_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行任务的循环次数', `retry_num` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '执行任务的重试次数', `dateline` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务操作时间', `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务创建时间', `notify_url` varchar(255) NOT NULL DEFAULT '' COMMENT '请求地址', `request_method` varchar(4) NOT NULL DEFAULT '' COMMENT '请求方法', `notify_param` varchar(255) NOT NULL DEFAULT '' COMMENT '请求参数', `state` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '任务状态:0待处理;1处理 - 成功;2处理失败-待处理;3处理失败', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='队列任务'; -- 正在导出表 gin.hs_task 的数据:~8 rows (大约) /*!40000 ALTER TABLE `hs_task` DISABLE KEYS */; REPLACE INTO `hs_task` (`id`, `queue_index`, `queue_slot`, `cycle_num`, `retry_num`, `dateline`, `add_time`, `notify_url`, `request_method`, `notify_param`, `state`) VALUES (1, 'c05d5ec4-b290-4b43-b985-10928955fdba', 10, 2, 0, 1592531958, 1592531602, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592531732', 1), (2, '1ca0d561-3605-4617-b021-5e9b332ceeee', 10, 0, 0, 1592531673, 1592531602, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592531612', 1), (3, '21336bec-c010-41f7-a33b-ad3b6a2d0870', 10, 2, 0, 1592539039, 1592538908, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592539038', 1), (4, '1c7a9e31-9502-4594-816f-32442053db56', 10, 0, 0, 1592538980, 1592538908, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592538918', 1), (5, 'd2fcdc1a-e8c4-4c88-b5ca-14855c44e303', 10, 0, 0, 1592616569, 1592616557, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592616567', 1), (6, '036555f8-8702-4559-99a8-ddc840b38af3', 10, 2, 0, 1592617397, 1592616557, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592616687', 1), (7, '56a16f90-f761-48fe-a264-b0bef15f72dc', 10, 2, 0, 1592617397, 1592617206, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592617336', 1), (8, 'cb2523db-ca8b-4b53-821c-4a9c64be0ae4', 10, 0, 0, 1592617217, 1592617206, 'http://sksystem.sk0.com/queue/vip', 'GET', 'notify_url=http://sksystem.sk0.com/queue/vip&plan_time=1592617216', 1), (9, 'd0fe1f30-182e-4f89-b0fd-54e0e025b57a', 10, 0, 0, 1592880491, 1592880365, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T10:45:54.087855+08:00","method_name":"","notify_param":""}', 1), (10, 'b21cd0c1-99e6-4c76-b5b6-6b4a6b38fdd2', 17, 1, 0, 1592880554, 1592880409, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T10:47:54.1728598+08:00","method_name":"","notify_param":""}', 1), (11, 'e57a1988-0f3d-41fc-9860-26136d9900b9', 8, 0, 0, 1592880725, 1592880477, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T10:48:05.9523972+08:00","method_name":"","notify_param":""}', 1), (12, '749ddc53-538d-4c7d-a12d-9979c04d0c2f', 9, 2, 0, 1592880545, 1592880477, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T10:50:06.0464026+08:00","method_name":"","notify_param":""}', 1), (13, '448fc543-e572-4130-92bd-3860eeb5135f', 56, 8, 0, 1592883351, 1592882994, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T11:38:50+08:00","method_name":"","notify_param":""}', 1), (14, '375ea792-b8a9-4ebe-b688-016e314fe377', 9, 2, 0, 1592883064, 1592882994, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T11:32:03.8484126+08:00","method_name":"","notify_param":""}', 1), (15, '72b8c800-bf83-46df-bfda-00164ab64bb5', 9, 0, 0, 1592883005, 1592882994, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T11:30:03.7754084+08:00","method_name":"","notify_param":""}', 1), (16, '12bbfac9-5eef-45c5-bc08-21ae387d0585', 9, 0, 0, 1592891777, 1592891766, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T13:56:15.5117637+08:00","method_name":"","notify_param":""}', 1), (17, 'aae4c32a-76df-4202-a368-3b675ae51617', 9, 2, 0, 1592891896, 1592891766, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T13:58:15.6167697+08:00","method_name":"","notify_param":""}', 1), (18, '279952c5-25d5-442f-90c6-cd0982e871fe', 50, 4, 0, 1592892433, 1592891830, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:02:00+08:00","method_name":"","notify_param":""}', 1), (19, '4d779044-9583-4ae5-9b59-8bc7f6a37973', 48, 7, 0, 1592892731, 1592891832, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:05:00+08:00","method_name":"","notify_param":""}', 1), (20, 'fe1e59e6-3773-4069-85b7-b5b78e10a0f2', 44, 8, 0, 1592892607, 1592891836, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:06:00+08:00","method_name":"","notify_param":""}', 1), (21, '9e1a1355-0de5-4015-b6d7-c45436c99053', 10, 0, 0, 1592893053, 1592893018, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:17:08.0854068+08:00","method_name":"","notify_param":""}', 1), (22, 'f1e6fb32-e3a1-4aba-8bf7-19aab6b0331a', 9, 2, 0, 1592895736, 1592895430, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:59:19.4943315+08:00","method_name":"","notify_param":""}', 1), (23, '4081e274-59d1-4949-a2a5-652408f3faa2', 9, 0, 0, 1592895441, 1592895430, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:57:19.4113268+08:00","method_name":"","notify_param":""}', 1), (24, 'c1f607da-bb22-4b94-b55b-f6ca8d82c6f7', 10, 0, 0, 1592895679, 1592895474, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:58:04.2618921+08:00","method_name":"","notify_param":""}', 1), (25, '33de6405-4e5f-4d6b-ab1a-566fce67da3b', 9, 0, 0, 1592895500, 1592895476, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:58:05.8819847+08:00","method_name":"","notify_param":""}', 1), (26, '97f66d2f-d123-4ac8-a5bf-344384b2f7b3', 9, 0, 0, 1592895500, 1592895477, 'http://sksystem.sk0.com/queue/vip', 'GET', '{"notify_url":"http://sksystem.sk0.com/queue/vip","plan_time":"2020-06-23T14:58:06.5760244+08:00","method_name":"","notify_param":""}', 1); /*!40000 ALTER TABLE `hs_task` ENABLE KEYS */; -- 导出 表 gin.hs_task_log 结构 DROP TABLE IF EXISTS `hs_task_log`; CREATE TABLE IF NOT EXISTS `hs_task_log` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID编号', `queue_index` varchar(120) NOT NULL DEFAULT '' COMMENT '执行任务的队列索引', `response` text NOT NULL COMMENT '响应结果', `curl` text NOT NULL COMMENT 'curl可重发命令', `dateline` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '任务操作时间', `state` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '任务状态:0待处理;1处理 - 成功;2处理失败-待处理;3处理失败', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8 COMMENT='队列任务记录'; -- 正在导出表 gin.hs_task_log 的数据:~8 rows (大约) /*!40000 ALTER TABLE `hs_task_log` DISABLE KEYS */; REPLACE INTO `hs_task_log` (`id`, `queue_index`, `response`, `curl`, `dateline`, `state`) VALUES (1, '1ca0d561-3605-4617-b021-5e9b332ceeee', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592531673, 1), (2, 'c05d5ec4-b290-4b43-b985-10928955fdba', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592531958, 1), (3, '1c7a9e31-9502-4594-816f-32442053db56', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592538980, 1), (4, '21336bec-c010-41f7-a33b-ad3b6a2d0870', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592539039, 1), (5, 'd2fcdc1a-e8c4-4c88-b5ca-14855c44e303', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592616569, 1), (6, 'cb2523db-ca8b-4b53-821c-4a9c64be0ae4', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592617217, 1), (7, '036555f8-8702-4559-99a8-ddc840b38af3', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592617397, 1), (8, '56a16f90-f761-48fe-a264-b0bef15f72dc', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592617397, 1), (9, 'd0fe1f30-182e-4f89-b0fd-54e0e025b57a', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592880491, 1), (10, '749ddc53-538d-4c7d-a12d-9979c04d0c2f', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592880545, 1), (11, 'b21cd0c1-99e6-4c76-b5b6-6b4a6b38fdd2', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592880554, 1), (12, 'e57a1988-0f3d-41fc-9860-26136d9900b9', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592880725, 1), (13, '72b8c800-bf83-46df-bfda-00164ab64bb5', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592883005, 1), (14, '375ea792-b8a9-4ebe-b688-016e314fe377', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592883064, 1), (15, '448fc543-e572-4130-92bd-3860eeb5135f', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592883351, 1), (16, '12bbfac9-5eef-45c5-bc08-21ae387d0585', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592891777, 1), (17, 'aae4c32a-76df-4202-a368-3b675ae51617', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592891896, 1), (18, '279952c5-25d5-442f-90c6-cd0982e871fe', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592892433, 1), (19, 'fe1e59e6-3773-4069-85b7-b5b78e10a0f2', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592892607, 1), (20, '4d779044-9583-4ae5-9b59-8bc7f6a37973', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592892731, 1), (21, '9e1a1355-0de5-4015-b6d7-c45436c99053', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592893053, 1), (22, '4081e274-59d1-4949-a2a5-652408f3faa2', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592895440, 1), (23, '97f66d2f-d123-4ac8-a5bf-344384b2f7b3', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592895500, 1), (24, '33de6405-4e5f-4d6b-ab1a-566fce67da3b', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592895500, 1), (25, 'c1f607da-bb22-4b94-b55b-f6ca8d82c6f7', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592895679, 1), (26, 'f1e6fb32-e3a1-4aba-8bf7-19aab6b0331a', '状态码: 200 响应信息: {"success":true}', 'curl -G -d \'\' http://sksystem.sk0.com/queue/vip', 1592895736, 1); /*!40000 ALTER TABLE `hs_task_log` ENABLE KEYS */; -- 导出 表 gin.hs_user 结构 DROP TABLE IF EXISTS `hs_user`; CREATE TABLE IF NOT EXISTS `hs_user` ( `id` int(10) NOT NULL AUTO_INCREMENT COMMENT 'ID编号', `is_super` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是超级管理员', `uname` varchar(50) NOT NULL DEFAULT '' COMMENT '用户名', `email` varchar(60) NOT NULL DEFAULT '' COMMENT '邮箱', `password` varchar(255) NOT NULL DEFAULT '' COMMENT '密码', `real_name` varchar(50) NOT NULL DEFAULT '' COMMENT '真实姓名', `tel` varchar(20) NOT NULL DEFAULT '' COMMENT '电话', `add_time` int(10) NOT NULL DEFAULT '0' COMMENT '注册时间', PRIMARY KEY (`id`), UNIQUE KEY `index_user_name` (`uname`) ) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=utf8 COMMENT='会员信息'; -- 正在导出表 gin.hs_user 的数据:~3 rows (大约) /*!40000 ALTER TABLE `hs_user` DISABLE KEYS */; REPLACE INTO `hs_user` (`id`, `is_super`, `uname`, `email`, `password`, `real_name`, `tel`, `add_time`) VALUES (1, 0, 'demo', '<EMAIL>', <PASSWORD>$0Go<PASSWORD>.PYNrvxUC<PASSWORD>', '哈利', '13557113347', 1589965856), (10, 1, '管理员', '<EMAIL>', <PASSWORD>', '沈', '13557113347', 1590462370), (12, 0, '管理员007', '<EMAIL>', <PASSWORD>', '水水', '12345678910', 1591941857), (13, 0, '试客0202', '<EMAIL>', <PASSWORD>', '我的号', '13557113347', 1592374505); /*!40000 ALTER TABLE `hs_user` ENABLE KEYS */; /*!40101 SET SQL_MODE=IFNULL(@OLD_SQL_MODE, '') */; /*!40014 SET FOREIGN_KEY_CHECKS=IF(@OLD_FOREIGN_KEY_CHECKS IS NULL, 1, @OLD_FOREIGN_KEY_CHECKS) */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
<reponame>leguass7/wa-node-api import { ISacDigitalResponse } from './api'; export interface ISacDigitalDepartment { id: string; name: string; active: boolean; tags: []; /** format YYYY-MM-DD HH:mm:ss*/ createdAt: '2021-09-23 11:46:39'; } export interface ISacDigitalResponseDepartments extends ISacDigitalResponse { list?: ISacDigitalDepartment[]; }
<gh_stars>1-10 "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.compass = void 0; var compass = { "viewBox": "0 0 24 24", "children": [{ "name": "circle", "attribs": { "cx": "12", "cy": "12", "r": "10" }, "children": [] }, { "name": "polygon", "attribs": { "points": "16.24 7.76 14.12 14.12 7.76 16.24 9.88 9.88 16.24 7.76" }, "children": [] }], "attribs": { "fill": "none", "stroke": "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }; exports.compass = compass;
<reponame>GiverPlay007/ganbatte package me.giverplay.ganbatte; import me.giverplay.ganbatte.game.Ganbatte; public class Main { public static void main(String[] args) { Ganbatte game = new Ganbatte(); game.start(); } }
const project = require('../config/project.config') const server = require('../server/main') const debug = require('debug')('app:bin:dev-server') const opn = require('opn') const uri = `http://localhost:${project.server_port}` server.listen(project.server_port, err => { if (err) { debug(err) return } if (project.autoOpenBrowser && process.env.NODE_ENV !== 'testing') { opn(uri) } }) debug(`Server is now running at ${uri}.`)
#!/usr/bin/env bash DEBUG=0 # make lib DEBUG=$DEBUG # python tests/benchmark_data.py --test all --payload_min 0 --payload_max 10 --iterations 10000 throughput # scp ./tests/build/benchmark_0_sw.mem ./tests/build/benchmark_1_sw.mem ./tests/build/benchmark_2_sw.mem agent-2-eth3:~/Documents/shoal/tests/build rm -f tests/build/benchmark.d tests/build/benchmark.o tests/build/benchmark_main.d tests/build/benchmark_main.o mv tests/benchmark_main.cpp tests/benchmark_main_0.cpp mv tests/benchmark_main_1.cpp tests/benchmark_main.cpp make galapagos-benchmark K_START=0 K_END=2 MODE=x86 KERN_BUILD=2 DEBUG=$DEBUG scp ./tests/build/bin/benchmark ./tests/build/benchmark_0_sw.mem ./tests/build/benchmark_1_sw.mem ./tests/build/benchmark_2_sw.mem agent-2-eth3:~/Documents/shoal/tests/build ssh agent-2-eth3 'mv /home/sharm294/Documents/shoal/tests/build/benchmark /home/sharm294/Documents/shoal/tests/build/bin' rm -f tests/build/benchmark.d tests/build/benchmark.o tests/build/benchmark_main.d tests/build/benchmark_main.o mv tests/benchmark_main.cpp tests/benchmark_main_1.cpp mv tests/benchmark_main_0.cpp tests/benchmark_main.cpp make galapagos-benchmark K_START=0 K_END=2 MODE=x86 KERN_BUILD=1 DEBUG=$DEBUG
<filename>src/main/resources/bachelor_sql/educational_components(PIz-14-1).sql<gh_stars>1-10 -- <NAME> INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (50, '1', 0, 5, 0), (50, '2', 0, 5, 0), (50, '3', 0, 5, 0), (50, '4', 0, 5, 0), (50, '5', 0, 5, 0), (50, '6', 0, 5, 0), (50, '7', 0, 5, 0), (50, '8', 0, 5, 0), (50, '9', 0, 5, 0), (50, '10', 0, 5, 0), (50, '11', 0, 5, 0), (50, '12', 0, 5, 0), (50, '13', 0, 5, 0), (50, '14', 0, 5, 0), (50, '15', 0, 5, 0), (50, '16', 0, 5, 0), (50, '17', 0, 5, 0), (50, '18', 0, 5, 0), (50, '19', 0, 5, 0), (50, '20', 0, 5, 0), (50, '21', 0, 5, 0), (50, '22', 0, 5, 0), (50, '23', 0, 5, 0), (50, '24', 0, 5, 0), (50, '25', 0, 5, 0), (50, '26', 0, 5, 0), (50, '27', 0, 5, 0), (50, '28', '60', 5, 3), (50, '29', '60', 5, 3), (50, '30', '60', 5, 3), (50, '31', '60', 5, 3), (50, '32', '60', 5, 3), (50, '33', '60', 5, 3), (50, '34', '60', 5, 3), (50, '35', '61', 5, 3), (50, '36', '61', 5, 3), (50, '37', '61', 5, 3), (50, '38', '60', 5, 3), (50, '39', '61', 5, 3), (50, '40', '61', 5, 3), (50, '41', '60', 5, 3), (50, '42', '61', 5, 3), (50, '43', '61', 5, 3), (50, '44', '61', 5, 3), (50, '45', '60', 5, 3), (50, '46', '61', 5, 3), (50, '47', '61', 5, 3), (50, '48', 0, 5, 0), (50, '49', 0, 5, 0), (50, '50', 0, 5, 0), (50, '51', 0, 5, 0), (50, '52', 0, 5, 0), (50, '53', 0, 5, 0), (50, '54', 0, 5, 0), (50, '55', 0, 5, 0), (50, '56', '61', 5, 3), (50, '57', '61', 5, 3), (50, '58', 0, 5, 0), (50, '59', '61', 5, 3), (50, '60', '60', 5, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (31, '1', 0, 5, 0), (31, '2', 0, 5, 0), (31, '3', 0, 5, 0), (31, '4', 0, 5, 0), (31, '5', 0, 5, 0), (31, '6', 0, 5, 0), (31, '7', 0, 5, 0), (31, '8', 0, 5, 0), (31, '9', 0, 5, 0), (31, '10', 0, 5, 0), (31, '11', 0, 5, 0), (31, '12', 0, 5, 0), (31, '13', 0, 5, 0), (31, '14', 0, 5, 0), (31, '15', 0, 5, 0), (31, '16', 0, 5, 0), (31, '17', 0, 5, 0), (31, '18', 0, 5, 0), (31, '19', 0, 5, 0), (31, '20', 0, 5, 0), (31, '21', 0, 5, 0), (31, '22', 0, 5, 0), (31, '23', 0, 5, 0), (31, '24', 0, 5, 0), (31, '25', 0, 5, 0), (31, '26', 0, 5, 0), (31, '27', 0, 5, 0), (31, '28', '70', 4, 3), (31, '29', '60', 5, 3), (31, '30', '65', 5, 3), (31, '31', '60', 5, 3), (31, '32', '60', 5, 3), (31, '33', '60', 5, 3), (31, '34', '70', 4, 3), (31, '35', '70', 4, 3), (31, '36', '72', 4, 3), (31, '37', '75', 3, 2), (31, '38', '65', 5, 3), (31, '39', '70', 4, 3), (31, '40', '72', 4, 3), (31, '41', '60', 5, 3), (31, '42', '60', 5, 3), (31, '43', '60', 5, 3), (31, '44', '60', 5, 3), (31, '45', '60', 5, 3), (31, '46', '60', 5, 3), (31, '47', '60', 5, 3), (31, '48', 0, 5, 0), (31, '49', 0, 5, 0), (31, '50', 0, 5, 0), (31, '51', 0, 5, 0), (31, '52', 0, 5, 0), (31, '53', 0, 5, 0), (31, '54', 0, 5, 0), (31, '55', 0, 5, 0), (31, '56', '60', 5, 3), (31, '57', '60', 5, 3), (31, '58', 0, 5, 0), (31, '59', '75', 3, 2), (31, '60', '73', 4, 3); -- ('<NAME> ',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (32, '1', 0, 5, 0), (32, '2', 0, 5, 0), (32, '3', 0, 5, 0), (32, '4', 0, 5, 0), (32, '5', 0, 5, 0), (32, '6', 0, 5, 0), (32, '7', 0, 5, 0), (32, '8', 0, 5, 0), (32, '9', 0, 5, 0), (32, '10', 0, 5, 0), (32, '11', 0, 5, 0), (32, '12', 0, 5, 0), (32, '13', 0, 5, 0), (32, '14', 0, 5, 0), (32, '15', 0, 5, 0), (32, '16', 0, 5, 0), (32, '17', 0, 5, 0), (32, '18', 0, 5, 0), (32, '19', 0, 5, 0), (32, '20', 0, 5, 0), (32, '21', 0, 5, 0), (32, '22', 0, 5, 0), (32, '23', 0, 5, 0), (32, '24', 0, 5, 0), (32, '25', 0, 5, 0), (32, '26', 0, 5, 0), (32, '27', 0, 5, 0), (32, '28', '75', 3, 2), (32, '29', '75', 3, 2), (32, '30', 0, 5, 0), (32, '31', '63', 5, 3), (32, '32', '75', 3, 2), (32, '33', '60', 5, 3), (32, '34', '80', 3, 2), (32, '35', '90', 1, 1), (32, '36', '95', 1, 1), (32, '37', '80', 3, 2), (32, '38', '75', 3, 2), (32, '39', '92', 1, 1), (32, '40', '95', 1, 1), (32, '41', 0, 5, 0), (32, '42', '92', 1, 1), (32, '43', '60', 5, 3), (32, '44', '60', 5, 3), (32, '45', '61', 5, 3), (32, '46', '90', 1, 1), (32, '47', '60', 5, 3), (32, '48', 0, 5, 0), (32, '49', 0, 5, 0), (32, '50', 0, 5, 0), (32, '51', 0, 5, 0), (32, '52', 0, 5, 0), (32, '53', 0, 5, 0), (32, '54', 0, 5, 0), (32, '55', 0, 5, 0), (32, '56', '72', 4, 3), (32, '57', '60', 5, 3), (32, '58', 0, 5, 0), (32, '59', '90', 1, 1), (32, '60', '90', 1, 1); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (33, '1', 0, 5, 0), (33, '2', 0, 5, 0), (33, '3', 0, 5, 0), (33, '4', 0, 5, 0), (33, '5', 0, 5, 0), (33, '6', 0, 5, 0), (33, '7', 0, 5, 0), (33, '8', 0, 5, 0), (33, '9', 0, 5, 0), (33, '10', 0, 5, 0), (33, '11', 0, 5, 0), (33, '12', 0, 5, 0), (33, '13', 0, 5, 0), (33, '14', 0, 5, 0), (33, '15', 0, 5, 0), (33, '16', 0, 5, 0), (33, '17', 0, 5, 0), (33, '18', 0, 5, 0), (33, '19', 0, 5, 0), (33, '20', 0, 5, 0), (33, '21', 0, 5, 0), (33, '22', 0, 5, 0), (33, '23', 0, 5, 0), (33, '24', 0, 5, 0), (33, '25', 0, 5, 0), (33, '26', 0, 5, 0), (33, '27', 0, 5, 0), (33, '28', '70', 4, 3), (33, '29', '60', 5, 3), (33, '30', '65', 5, 3), (33, '31', '60', 5, 3), (33, '32', '60', 5, 3), (33, '33', '60', 5, 3), (33, '34', '70', 4, 3), (33, '35', '90', 1, 1), (33, '36', '94', 1, 1), (33, '37', '70', 4, 3), (33, '38', '92', 1, 1), (33, '39', '95', 1, 1), (33, '40', '94', 1, 1), (33, '41', '75', 3, 2), (33, '42', '75', 3, 2), (33, '43', '60', 5, 3), (33, '44', '60', 5, 3), (33, '45', '67', 4, 3), (33, '46', '76', 3, 2), (33, '47', '60', 5, 3), (33, '48', 0, 5, 0), (33, '49', 0, 5, 0), (33, '50', 0, 5, 0), (33, '51', 0, 5, 0), (33, '52', 0, 5, 0), (33, '53', 0, 5, 0), (33, '54', 0, 5, 0), (33, '55', 0, 5, 0), (33, '56', '60', 5, 3), (33, '57', '60', 5, 3), (33, '58', 0, 5, 0), (33, '59', '80', 3, 2), (33, '60', '90', 1, 1); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (36, '1', 0, 5, 0), (36, '2', 0, 5, 0), (36, '3', 0, 5, 0), (36, '4', 0, 5, 0), (36, '5', 0, 5, 0), (36, '6', 0, 5, 0), (36, '7', 0, 5, 0), (36, '8', 0, 5, 0), (36, '9', 0, 5, 0), (36, '10', 0, 5, 0), (36, '11', 0, 5, 0), (36, '12', 0, 5, 0), (36, '13', 0, 5, 0), (36, '14', 0, 5, 0), (36, '15', 0, 5, 0), (36, '16', 0, 5, 0), (36, '17', 0, 5, 0), (36, '18', 0, 5, 0), (36, '19', 0, 5, 0), (36, '20', 0, 5, 0), (36, '21', 0, 5, 0), (36, '22', 0, 5, 0), (36, '23', 0, 5, 0), (36, '24', 0, 5, 0), (36, '25', 0, 5, 0), (36, '26', 0, 5, 0), (36, '27', 0, 5, 0), (36, '28', '75', 3, 2), (36, '29', '76', 3, 2), (36, '30', '75', 3, 2), (36, '31', '60', 5, 3), (36, '32', '60', 5, 3), (36, '33', '60', 5, 3), (36, '34', '75', 3, 2), (36, '35', '82', 2, 2), (36, '36', '95', 1, 1), (36, '37', '70', 4, 3), (36, '38', '60', 5, 3), (36, '39', '60', 5, 3), (36, '40', '90', 1, 1), (36, '41', '90', 1, 1), (36, '42', '90', 1, 1), (36, '43', '60', 5, 3), (36, '44', '60', 5, 3), (36, '45', '62', 5, 3), (36, '46', '90', 1, 1), (36, '47', '75', 3, 2), (36, '48', 0, 5, 0), (36, '49', 0, 5, 0), (36, '51', 0, 5, 0), (36, '52', 0, 5, 0), (36, '54', 0, 5, 0), (36, '55', 0, 5, 0), (36, '56', '60', 5, 3), (36, '57', '60', 5, 3), (36, '58', 0, 5, 0), (36, '59', '92', 1, 1), (36, '60', '91', 1, 1); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (34, '1', 0, 5, 0), (34, '2', 0, 5, 0), (34, '3', 0, 5, 0), (34, '4', 0, 5, 0), (34, '5', 0, 5, 0), (34, '6', 0, 5, 0), (34, '7', 0, 5, 0), (34, '8', 0, 5, 0), (34, '9', 0, 5, 0), (34, '10', 0, 5, 0), (34, '11', 0, 5, 0), (34, '12', 0, 5, 0), (34, '13', 0, 5, 0), (34, '14', 0, 5, 0), (34, '15', 0, 5, 0), (34, '16', 0, 5, 0), (34, '17', 0, 5, 0), (34, '18', 0, 5, 0), (34, '19', 0, 5, 0), (34, '20', 0, 5, 0), (34, '21', 0, 5, 0), (34, '22', 0, 5, 0), (34, '23', 0, 5, 0), (34, '24', 0, 5, 0), (34, '25', 0, 5, 0), (34, '26', 0, 5, 0), (34, '27', 0, 5, 0), (34, '28', '60', 5, 3), (34, '29', '65', 5, 3), (34, '30', '65', 5, 3), (34, '31', '68', 4, 3), (34, '32', '60', 5, 3), (34, '33', '60', 5, 3), (34, '34', '60', 5, 3), (34, '35', '70', 4, 3), (34, '36', '70', 4, 3), (34, '37', '65', 5, 3), (34, '38', '68', 4, 3), (34, '39', '65', 5, 3), (34, '40', '70', 4, 3), (34, '41', '60', 5, 3), (34, '42', '60', 5, 3), (34, '43', '60', 5, 3), (34, '44', '60', 5, 3), (34, '45', '60', 5, 3), (34, '46', '65', 5, 3), (34, '47', '60', 5, 3), (34, '48', 0, 5, 0), (34, '49', 0, 5, 0), (34, '50', 0, 5, 0), (34, '51', 0, 5, 0), (34, '52', 0, 5, 0), (34, '53', 0, 5, 0), (34, '54', 0, 5, 0), (34, '55', 0, 5, 0), (34, '56', '60', 5, 3), (34, '57', '60', 5, 3), (34, '58', 0, 5, 0), (34, '59', '61', 5, 3), (34, '60', '70', 4, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (35, '1', 0, 5, 0), (35, '2', 0, 5, 0), (35, '3', 0, 5, 0), (35, '4', 0, 5, 0), (35, '5', 0, 5, 0), (35, '6', 0, 5, 0), (35, '7', 0, 5, 0), (35, '8', 0, 5, 0), (35, '9', 0, 5, 0), (35, '10', 0, 5, 0), (35, '11', 0, 5, 0), (35, '12', 0, 5, 0), (35, '13', 0, 5, 0), (35, '14', 0, 5, 0), (35, '15', 0, 5, 0), (35, '16', 0, 5, 0), (35, '17', 0, 5, 0), (35, '18', 0, 5, 0), (35, '19', 0, 5, 0), (35, '20', 0, 5, 0), (35, '21', 0, 5, 0), (35, '22', 0, 5, 0), (35, '23', 0, 5, 0), (35, '24', 0, 5, 0), (35, '25', 0, 5, 0), (35, '26', 0, 5, 0), (35, '27', 0, 5, 0), (35, '28', '60', 5, 3), (35, '29', '60', 5, 3), (35, '30', '60', 5, 3), (35, '31', '60', 5, 3), (35, '32', '60', 5, 3), (35, '33', '60', 5, 3), (35, '34', '60', 5, 3), (35, '35', '82', 2, 2), (35, '36', '65', 5, 3), (35, '37', '63', 5, 3), (35, '38', '60', 5, 3), (35, '39', '70', 4, 3), (35, '40', '72', 4, 3), (35, '41', '60', 5, 3), (35, '42', '75', 3, 2), (35, '43', '61', 5, 3), (35, '44', '61', 5, 3), (35, '45', '60', 5, 3), (35, '46', '75', 3, 2), (35, '47', '61', 5, 3), (35, '48', 0, 5, 0), (35, '49', 0, 5, 0), (35, '50', 0, 5, 0), (35, '51', 0, 5, 0), (35, '52', 0, 5, 0), (35, '53', 0, 5, 0), (35, '54', 0, 5, 0), (35, '55', 0, 5, 0), (35, '56', '60', 5, 3), (35, '57', '61', 5, 3), (35, '58', 0, 5, 0), (35, '59', '70', 4, 3), (35, '60', '80', 3, 2); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (37, '1', 0, 5, 0), (37, '2', 0, 5, 0), (37, '3', 0, 5, 0), (37, '4', 0, 5, 0), (37, '5', 0, 5, 0), (37, '6', 0, 5, 0), (37, '7', 0, 5, 0), (37, '8', 0, 5, 0), (37, '9', 0, 5, 0), (37, '10', 0, 5, 0), (37, '11', 0, 5, 0), (37, '12', 0, 5, 0), (37, '13', 0, 5, 0), (37, '14', 0, 5, 0), (37, '15', 0, 5, 0), (37, '16', 0, 5, 0), (37, '17', 0, 5, 0), (37, '18', 0, 5, 0), (37, '19', 0, 5, 0), (37, '20', 0, 5, 0), (37, '21', 0, 5, 0), (37, '22', 0, 5, 0), (37, '23', 0, 5, 0), (37, '24', 0, 5, 0), (37, '25', 0, 5, 0), (37, '26', 0, 5, 0), (37, '27', 0, 5, 0), (37, '28', '90', 1, 1), (37, '29', '67', 4, 3), (37, '30', '60', 5, 3), (37, '31', '78', 3, 2), (37, '32', '66', 5, 3), (37, '33', '61', 5, 3), (37, '34', '60', 5, 3), (37, '35', '68', 4, 3), (37, '36', '65', 5, 3), (37, '37', '62', 5, 3), (37, '38', '75', 3, 2), (37, '39', '60', 5, 3), (37, '40', '60', 5, 3), (37, '41', '75', 3, 2), (37, '42', '82', 2, 2), (37, '43', '82', 2, 2), (37, '44', '75', 3, 2), (37, '45', '61', 5, 3), (37, '46', '82', 2, 2), (37, '47', '75', 3, 2), (37, '48', 0, 5, 0), (37, '49', 0, 5, 0), (37, '50', 0, 5, 0), (37, '51', 0, 5, 0), (37, '52', 0, 5, 0), (37, '53', 0, 5, 0), (37, '54', 0, 5, 0), (37, '55', 0, 5, 0), (37, '56', '65', 5, 3), (37, '57', '82', 2, 2), (37, '58', 0, 5, 0), (37, '59', '90', 1, 1), (37, '60', '90', 1, 1); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (85, '1', 0, 5, 0), (85, '2', 0, 5, 0), (85, '3', 0, 5, 0), (85, '4', 0, 5, 0), (85, '5', 0, 5, 0), (85, '6', 0, 5, 0), (85, '7', 0, 5, 0), (85, '8', 0, 5, 0), (85, '9', 0, 5, 0), (85, '10', 0, 5, 0), (85, '11', 0, 5, 0), (85, '12', 0, 5, 0), (85, '13', 0, 5, 0), (85, '14', 0, 5, 0), (85, '15', 0, 5, 0), (85, '16', 0, 5, 0), (85, '17', 0, 5, 0), (85, '18', 0, 5, 0), (85, '19', 0, 5, 0), (85, '20', 0, 5, 0), (85, '21', 0, 5, 0), (85, '22', 0, 5, 0), (85, '23', 0, 5, 0), (85, '24', 0, 5, 0), (85, '25', 0, 5, 0), (85, '26', 0, 5, 0), (85, '27', 0, 5, 0), (85, '28', '60', 5, 3), (85, '29', '79', 3, 2), (85, '30', '75', 3, 2), (85, '31', '60', 5, 3), (85, '32', '60', 5, 3), (85, '33', '60', 5, 3), (85, '34', '61', 5, 3), (85, '35', '75', 3, 2), (85, '36', '90', 1, 1), (85, '37', '70', 4, 3), (85, '38', '90', 1, 1), (85, '39', '60', 5, 3), (85, '40', '65', 5, 3), (85, '41', '60', 5, 3), (85, '42', '78', 3, 2), (85, '43', '76', 3, 2), (85, '44', '75', 3, 2), (85, '45', '61', 5, 3), (85, '46', '82', 2, 2), (85, '47', '75', 3, 2), (85, '48', 0, 5, 0), (85, '49', 0, 5, 0), (85, '50', 0, 5, 0), (85, '51', 0, 5, 0), (85, '52', 0, 5, 0), (85, '53', 0, 5, 0), (85, '54', 0, 5, 0), (85, '55', 0, 5, 0), (85, '56', '65', 5, 3), (85, '57', '82', 2, 2), (85, '58', 0, 5, 0), (85, '59', '61', 5, 3), (85, '60', '60', 5, 3); -- ('<NAME> ',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (86, '1', 0, 5, 0), (86, '2', 0, 5, 0), (86, '3', 0, 5, 0), (86, '4', 0, 5, 0), (86, '5', 0, 5, 0), (86, '6', 0, 5, 0), (86, '7', 0, 5, 0), (86, '8', 0, 5, 0), (86, '9', 0, 5, 0), (86, '10', 0, 5, 0), (86, '11', 0, 5, 0), (86, '12', 0, 5, 0), (86, '13', '82', 2, 2), (86, '14', '63', 5, 3), (86, '15', '84', 2, 2), (86, '16', '60', 5, 3), (86, '17', '60', 5, 3), (86, '18', '75', 3, 2), (86, '19', '75', 3, 2), (86, '20', '63', 5, 3), (86, '21', '60', 5, 3), (86, '22', '60', 5, 3), (86, '23', '60', 5, 3), (86, '24', '61', 5, 3), (86, '25', '75', 3, 2), (86, '26', '60', 5, 3), (86, '28', '60', 5, 3), (86, '28', '60', 5, 3), (86, '29', '60', 5, 3), (86, '30', '61', 5, 3), (86, '31', '60', 5, 3), (86, '32', '62', 5, 3), (86, '33', '60', 5, 3), (86, '34', '60', 5, 3), (86, '35', '60', 5, 3), (86, '36', '60', 5, 3), (86, '37', '60', 5, 3), (86, '38', '60', 5, 3), (86, '39', '61', 5, 3), (86, '40', '61', 5, 3), (86, '41', '60', 5, 3), (86, '42', '62', 5, 3), (86, '43', '64', 5, 3), (86, '44', '60', 5, 3), (86, '45', '62', 5, 3), (86, '46', '70', 4, 3), (86, '47', '60', 5, 3), (86, '48', 0, 5, 0), (86, '49', 0, 5, 0), (86, '61', 0, 5, 0), (86, '51', 0, 5, 0), (86, '52', 0, 5, 0), (86, '54', 0, 5, 0), (86, '55', '60', 5, 3), (86, '56', '60', 5, 3), (86, '57', '65', 5, 3), (86, '58', 0, 5, 0), (86, '59', '61', 5, 3), (86, '60', '60', 5, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (38, '1', 0, 5, 0), (38, '2', 0, 5, 0), (38, '3', 0, 5, 0), (38, '4', 0, 5, 0), (38, '5', 0, 5, 0), (38, '6', 0, 5, 0), (38, '7', 0, 5, 0), (38, '8', 0, 5, 0), (38, '9', 0, 5, 0), (38, '10', 0, 5, 0), (38, '11', 0, 5, 0), (38, '12', 0, 5, 0), (38, '13', 0, 5, 0), (38, '14', 0, 5, 0), (38, '15', 0, 5, 0), (38, '16', 0, 5, 0), (38, '17', 0, 5, 0), (38, '18', 0, 5, 0), (38, '19', 0, 5, 0), (38, '20', 0, 5, 0), (38, '21', 0, 5, 0), (38, '22', 0, 5, 0), (38, '23', 0, 5, 0), (38, '24', 0, 5, 0), (38, '25', 0, 5, 0), (38, '26', 0, 5, 0), (38, '27', 0, 5, 0), (38, '28', '80', 3, 2), (38, '29', '80', 3, 2), (38, '30', '80', 3, 2), (38, '31', '60', 5, 3), (38, '32', '75', 3, 2), (38, '33', '60', 5, 3), (38, '34', '80', 3, 2), (38, '35', '75', 3, 2), (38, '36', '75', 3, 2), (38, '37', '80', 3, 2), (38, '38', '75', 3, 2), (38, '39', '70', 4, 3), (38, '40', '76', 3, 2), (38, '41', '75', 3, 2), (38, '42', '60', 5, 3), (38, '43', '60', 5, 3), (38, '44', '60', 5, 3), (38, '45', '60', 5, 3), (38, '46', '70', 4, 3), (38, '47', '75', 3, 2), (38, '48', 0, 5, 0), (38, '49', 0, 5, 0), (38, '50', 0, 5, 0), (38, '51', 0, 5, 0), (38, '52', 0, 5, 0), (38, '53', 0, 5, 0), (38, '54', 0, 5, 0), (38, '55', 0, 5, 0), (38, '56', '60', 5, 3), (38, '57', '60', 5, 3), (38, '58', 0, 5, 0), (38, '59', '60', 5, 3), (38, '60', '74', 4, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (39, '1', 0, 5, 0), (39, '2', 0, 5, 0), (39, '3', 0, 5, 0), (39, '4', 0, 5, 0), (39, '5', 0, 5, 0), (39, '6', 0, 5, 0), (39, '7', 0, 5, 0), (39, '8', 0, 5, 0), (39, '9', 0, 5, 0), (39, '10', 0, 5, 0), (39, '11', 0, 5, 0), (39, '12', 0, 5, 0), (39, '13', 0, 5, 0), (39, '14', 0, 5, 0), (39, '15', 0, 5, 0), (39, '16', 0, 5, 0), (39, '17', 0, 5, 0), (39, '18', 0, 5, 0), (39, '19', 0, 5, 0), (39, '20', 0, 5, 0), (39, '21', 0, 5, 0), (39, '22', 0, 5, 0), (39, '23', 0, 5, 0), (39, '24', 0, 5, 0), (39, '25', 0, 5, 0), (39, '26', 0, 5, 0), (39, '27', 0, 5, 0), (39, '28', '60', 5, 3), (39, '29', '60', 5, 3), (39, '30', '60', 5, 3), (39, '31', '65', 5, 3), (39, '32', '62', 5, 3), (39, '33', '60', 5, 3), (39, '34', '60', 5, 3), (39, '35', '64', 5, 3), (39, '36', '62', 5, 3), (39, '37', '70', 4, 3), (39, '38', '60', 5, 3), (39, '39', '61', 5, 3), (39, '40', '62', 5, 3), (39, '41', '60', 5, 3), (39, '42', '61', 5, 3), (39, '43', '61', 5, 3), (39, '44', '61', 5, 3), (39, '45', '61', 5, 3), (39, '46', '61', 5, 3), (39, '47', '61', 5, 3), (39, '48', 0, 5, 0), (39, '49', 0, 5, 0), (39, '50', 0, 5, 0), (39, '51', 0, 5, 0), (39, '52', 0, 5, 0), (39, '53', 0, 5, 0), (39, '54', 0, 5, 0), (39, '55', 0, 5, 0), (39, '56', '60', 5, 3), (39, '57', '61', 5, 3), (39, '58', 0, 5, 0), (39, '59', '82', 3, 2), (39, '60', '60', 5, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (40, '1', 0, 5, 0), (40, '2', 0, 5, 0), (40, '3', 0, 5, 0), (40, '4', 0, 5, 0), (40, '5', 0, 5, 0), (40, '6', 0, 5, 0), (40, '7', 0, 5, 0), (40, '8', 0, 5, 0), (40, '9', 0, 5, 0), (40, '10', 0, 5, 0), (40, '11', 0, 5, 0), (40, '12', 0, 5, 0), (40, '13', 0, 5, 0), (40, '14', 0, 5, 0), (40, '15', 0, 5, 0), (40, '16', 0, 5, 0), (40, '17', 0, 5, 0), (40, '18', 0, 5, 0), (40, '19', 0, 5, 0), (40, '20', 0, 5, 0), (40, '21', 0, 5, 0), (40, '22', 0, 5, 0), (40, '23', 0, 5, 0), (40, '24', 0, 5, 0), (40, '25', 0, 5, 0), (40, '26', 0, 5, 0), (40, '27', 0, 5, 0), (40, '28', '63', 5, 3), (40, '29', '66', 5, 3), (40, '30', '80', 3, 2), (40, '31', '76', 3, 2), (40, '32', '60', 5, 3), (40, '33', '60', 5, 3), (40, '34', '61', 5, 3), (40, '35', '63', 5, 3), (40, '36', '60', 5, 3), (40, '37', '66', 5, 3), (40, '38', '60', 5, 3), (40, '39', '66', 5, 3), (40, '40', '60', 5, 3), (40, '41', '62', 5, 3), (40, '42', '77', 3, 2), (40, '43', '75', 3, 2), (40, '44', '81', 3, 2), (40, '45', '60', 5, 3), (40, '46', '78', 3, 2), (40, '47', '80', 3, 2), (40, '48', 0, 5, 0), (40, '49', 0, 5, 0), (40, '50', 0, 5, 0), (40, '51', 0, 5, 0), (40, '52', 0, 5, 0), (40, '53', 0, 5, 0), (40, '54', 0, 5, 0), (40, '55', 0, 5, 0), (40, '56', '68', 4, 3), (40, '57', '82', 2, 2), (40, '58', 0, 5, 0), (40, '59', '82', 2, 2), (40, '60', 0, 5, 0); --!!!!!!!!!!!!!! -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (41, '1', 0, 5, 0), (41, '2', 0, 5, 0), (41, '3', 0, 5, 0), (41, '4', 0, 5, 0), (41, '5', 0, 5, 0), (41, '6', 0, 5, 0), (41, '7', 0, 5, 0), (41, '8', 0, 5, 0), (41, '9', 0, 5, 0), (41, '10', 0, 5, 0), (41, '11', 0, 5, 0), (41, '12', 0, 5, 0), (41, '13', 0, 5, 0), (41, '14', 0, 5, 0), (41, '15', 0, 5, 0), (41, '16', 0, 5, 0), (41, '17', 0, 5, 0), (41, '18', 0, 5, 0), (41, '19', 0, 5, 0), (41, '20', 0, 5, 0), (41, '21', 0, 5, 0), (41, '22', 0, 5, 0), (41, '23', 0, 5, 0), (41, '24', 0, 5, 0), (41, '25', 0, 5, 0), (41, '26', 0, 5, 0), (41, '27', 0, 5, 0), (41, '28', '66', 5, 3), (41, '29', '75', 3, 2), (41, '30', '65', 5, 3), (41, '31', '60', 5, 3), (41, '32', '60', 5, 3), (41, '33', '60', 5, 3), (41, '34', '65', 5, 3), (41, '35', '66', 5, 3), (41, '36', '62', 5, 3), (41, '37', '65', 5, 3), (41, '38', '63', 5, 3), (41, '39', '61', 5, 3), (41, '40', '62', 5, 3), (41, '41', '60', 5, 3), (41, '42', '60', 5, 3), (41, '43', '60', 5, 3), (41, '44', '60', 5, 3), (41, '45', '60', 5, 3), (41, '46', '60', 5, 3), (41, '47', '60', 5, 3), (41, '48', 0, 5, 0), (41, '49', 0, 5, 0), (41, '50', 0, 5, 0), (41, '51', 0, 5, 0), (41, '52', 0, 5, 0), (41, '53', 0, 5, 0), (41, '54', 0, 5, 0), (41, '55', 0, 5, 0), (41, '56', '60', 5, 3), (41, '57', '60', 5, 3), (41, '58', 0, 5, 0), (41, '59', '63', 5, 3), (41, '60', '70', 4, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (42, '1', 0, 5, 0), (42, '2', 0, 5, 0), (42, '3', 0, 5, 0), (42, '4', 0, 5, 0), (42, '5', 0, 5, 0), (42, '6', 0, 5, 0), (42, '7', 0, 5, 0), (42, '8', 0, 5, 0), (42, '9', 0, 5, 0), (42, '10', 0, 5, 0), (42, '11', 0, 5, 0), (42, '12', 0, 5, 0), (42, '13', 0, 5, 0), (42, '14', 0, 5, 0), (42, '15', 0, 5, 0), (42, '16', 0, 5, 0), (42, '17', 0, 5, 0), (42, '18', 0, 5, 0), (42, '19', 0, 5, 0), (42, '20', 0, 5, 0), (42, '21', 0, 5, 0), (42, '22', 0, 5, 0), (42, '23', 0, 5, 0), (42, '24', 0, 5, 0), (42, '25', 0, 5, 0), (42, '26', 0, 5, 0), (42, '27', 0, 5, 0), (42, '28', '60', 5, 3), (42, '29', '75', 3, 2), (42, '30', '65', 5, 3), (42, '31', '75', 3, 2), (42, '32', '60', 5, 3), (42, '33', '60', 5, 3), (42, '34', '70', 4, 3), (42, '35', '78', 3, 2), (42, '36', '90', 1, 1), (42, '37', '77', 3, 2), (42, '38', '90', 1, 1), (42, '39', '77', 3, 2), (42, '40', '80', 3, 2), (42, '41', '75', 3, 2), (42, '42', '65', 5, 3), (42, '43', '60', 5, 3), (42, '44', '60', 5, 3), (42, '45', '60', 5, 3), (42, '46', '70', 4, 3), (42, '47', '60', 5, 3), (42, '48', 0, 5, 0), (42, '49', 0, 5, 0), (42, '50', 0, 5, 0), (42, '51', 0, 5, 0), (42, '52', 0, 5, 0), (42, '53', 0, 5, 0), (42, '54', 0, 5, 0), (42, '55', 0, 5, 0), (42, '56', '60', 5, 3), (42, '57', '60', 5, 3), (42, '58', 0, 5, 0), (42, '59', '80', 3, 2), (42, '60', '70', 4, 3); -- ('<NAME>ич',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (43, '1', 0, 5, 0), (43, '2', 0, 5, 0), (43, '3', 0, 5, 0), (43, '4', 0, 5, 0), (43, '5', 0, 5, 0), (43, '6', 0, 5, 0), (43, '7', 0, 5, 0), (43, '8', 0, 5, 0), (43, '9', 0, 5, 0), (43, '10', 0, 5, 0), (43, '11', 0, 5, 0), (43, '12', 0, 5, 0), (43, '13', 0, 5, 0), (43, '14', 0, 5, 0), (43, '15', 0, 5, 0), (43, '16', 0, 5, 0), (43, '17', 0, 5, 0), (43, '18', 0, 5, 0), (43, '19', 0, 5, 0), (43, '20', 0, 5, 0), (43, '21', 0, 5, 0), (43, '22', 0, 5, 0), (43, '23', 0, 5, 0), (43, '24', 0, 5, 0), (43, '25', 0, 5, 0), (43, '26', 0, 5, 0), (43, '27', 0, 5, 0), (43, '28', '60', 5, 3), (43, '29', '75', 3, 2), (43, '30', '60', 5, 3), (43, '31', '60', 5, 3), (43, '32', '60', 5, 3), (43, '33', '60', 5, 3), (43, '34', '69', 4, 3), (43, '35', '90', 1, 1), (43, '36', '90', 1, 1), (43, '37', '70', 4, 3), (43, '38', '75', 3, 2), (43, '39', '98', 1, 1), (43, '40', '95', 1, 1), (43, '41', '75', 3, 2), (43, '42', '80', 3, 2), (43, '43', '90', 1, 1), (43, '44', '61', 5, 3), (43, '45', '61', 5, 3), (43, '46', '80', 3, 2), (43, '47', '90', 1, 1), (43, '48', 0, 5, 0), (43, '49', 0, 5, 0), (43, '50', 0, 5, 0), (43, '51', 0, 5, 0), (43, '52', 0, 5, 0), (43, '53', 0, 5, 0), (43, '54', 0, 5, 0), (43, '55', 0, 5, 0), (43, '56', '75', 3, 2), (43, '57', '61', 5, 3), (43, '58', 0, 5, 0), (43, '59', '91', 1, 1), (43, '60', '91', 1, 1); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (44, '1', 0, 5, 0), (44, '2', 0, 5, 0), (44, '3', 0, 5, 0), (44, '4', 0, 5, 0), (44, '5', 0, 5, 0), (44, '6', 0, 5, 0), (44, '7', 0, 5, 0), (44, '8', 0, 5, 0), (44, '9', 0, 5, 0), (44, '10', 0, 5, 0), (44, '11', 0, 5, 0), (44, '12', 0, 5, 0), (44, '13', 0, 5, 0), (44, '14', 0, 5, 0), (44, '15', 0, 5, 0), (44, '16', 0, 5, 0), (44, '17', 0, 5, 0), (44, '18', 0, 5, 0), (44, '19', 0, 5, 0), (44, '20', 0, 5, 0), (44, '21', 0, 5, 0), (44, '22', 0, 5, 0), (44, '23', 0, 5, 0), (44, '24', 0, 5, 0), (44, '25', 0, 5, 0), (44, '26', 0, 5, 0), (44, '27', 0, 5, 0), (44, '28', '60', 5, 3), (44, '29', '65', 5, 3), (44, '30', '65', 5, 3), (44, '31', '71', 4, 3), (44, '32', '60', 5, 3), (44, '33', '60', 5, 3), (44, '34', '69', 4, 3), (44, '35', '61', 5, 3), (44, '36', '65', 5, 3), (44, '37', '63', 5, 3), (44, '38', '60', 5, 3), (44, '39', '61', 5, 3), (44, '40', '61', 5, 3), (44, '41', '62', 5, 3), (44, '42', 0, 5, 0), (44, '43', '60', 5, 3), (44, '44', 0, 5, 0), (44, '45', 0, 5, 0), (44, '46', 0, 5, 0), (44, '47', '60', 5, 3), (44, '48', 0, 5, 0), (44, '49', 0, 5, 0), (44, '50', 0, 5, 0), (44, '51', 0, 5, 0), (44, '52', 0, 5, 0), (44, '53', 0, 5, 0), (44, '54', 0, 5, 0), (44, '55', 0, 5, 0), (44, '56', '65', 5, 3), (44, '57', 0, 5, 0), (44, '58', 0, 5, 0), (44, '59', '61', 5, 3), (44, '60', '60', 5, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (45, '1', 0, 5, 0), (45, '2', 0, 5, 0), (45, '3', 0, 5, 0), (45, '4', 0, 5, 0), (45, '5', 0, 5, 0), (45, '6', 0, 5, 0), (45, '7', 0, 5, 0), (45, '8', 0, 5, 0), (45, '9', 0, 5, 0), (45, '10', 0, 5, 0), (45, '11', 0, 5, 0), (45, '12', 0, 5, 0), (45, '13', 0, 5, 0), (45, '14', 0, 5, 0), (45, '15', 0, 5, 0), (45, '16', 0, 5, 0), (45, '17', 0, 5, 0), (45, '18', 0, 5, 0), (45, '19', 0, 5, 0), (45, '20', 0, 5, 0), (45, '21', 0, 5, 0), (45, '22', 0, 5, 0), (45, '23', 0, 5, 0), (45, '24', 0, 5, 0), (45, '25', 0, 5, 0), (45, '26', 0, 5, 0), (45, '27', 0, 5, 0), (45, '28', '60', 5, 3), (45, '29', '60', 5, 3), (45, '30', '60', 5, 3), (45, '31', '63', 5, 3), (45, '32', '60', 5, 3), (45, '33', '60', 5, 3), (45, '34', '60', 5, 3), (45, '35', '66', 5, 3), (45, '36', '65', 5, 3), (45, '37', '65', 5, 3), (45, '38', '60', 5, 3), (45, '39', '64', 5, 3), (45, '40', '65', 5, 3), (45, '41', '60', 5, 3), (45, '42', '61', 5, 3), (45, '43', '61', 5, 3), (45, '44', '61', 5, 3), (45, '45', '60', 5, 3), (45, '46', '61', 5, 3), (45, '47', '61', 5, 3), (45, '48', 0, 5, 0), (45, '49', 0, 5, 0), (45, '50', 0, 5, 0), (45, '51', 0, 5, 0), (45, '52', 0, 5, 0), (45, '53', 0, 5, 0), (45, '54', 0, 5, 0), (45, '55', 0, 5, 0), (45, '56', '60', 5, 3), (45, '57', '61', 5, 3), (45, '58', 0, 5, 0), (45, '59', '61', 5, 3), (45, '60', '62', 5, 3); -- ('Крижані<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (87, '1', '60', 5, 3), (87, '2', '91', 1, 1), (87, '3', '60', 5, 3), (87, '4', '60', 5, 3), (87, '5', '60', 5, 3), (87, '6', '61', 5, 3), (87, '7', '60', 5, 3), (87, '8', '61', 5, 3), (87, '9', '60', 5, 3), (87, '10', '60', 5, 3), (87, '11', '62', 5, 3), (87, '12', '60', 5, 3), (87, '13', '60', 5, 3), (87, '14', '77', 3, 2), (87, '15', '70', 4, 3), (87, '16', '64', 5, 3), (87, '17', '60', 5, 3), (87, '18', '60', 5, 3), (87, '19', '75', 3, 2), (87, '20', '65', 5, 3), (87, '21', '64', 5, 3), (87, '22', '75', 3, 2), (87, '23', '60', 5, 3), (87, '24', '65', 5, 3), (87, '25', '60', 5, 3), (87, '26', '60', 5, 3), (87, '27', '75', 3, 2), (87, '28', '61', 5, 3), (87, '29', '61', 5, 3), (87, '30', '61', 5, 3), (87, '31', '60', 5, 3), (87, '32', '61', 5, 3), (87, '33', '75', 3, 2), (87, '34', '75', 3, 2), (87, '35', '75', 3, 2), (87, '36', '85', 2, 2), (87, '37', '75', 3, 2), (87, '38', '80', 3, 2), (87, '39', '75', 3, 2), (87, '40', '81', 3, 2), (87, '41', '75', 3, 2), (87, '42', '65', 5, 3), (87, '43', '76', 3, 2), (87, '44', '75', 3, 2), (87, '45', '60', 5, 3), (87, '46', '65', 5, 3), (87, '47', '75', 3, 2), (87, '48', 0, 5, 0), (87, '49', 0, 5, 0), (87, '50', 0, 5, 0), (87, '51', 0, 5, 0), (87, '52', 0, 5, 0), (87, '53', 0, 5, 0), (87, '54', '62', 5, 3), (87, '55', '60', 5, 3), (87, '56', '65', 5, 3), (87, '57', '75', 3, 2), (87, '58', 0, 5, 0), (87, '59', '82', 2, 2), (87, '60', '60', 5, 3); -- ('<NAME>. ЗАОЧНА',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (88, '1', '60', 5, 3), (88, '2', '98', 1, 1), (88, '3', '63', 5, 3), (88, '4', '60', 5, 3), (88, '5', '76', 3, 2), (88, '6', '75', 3, 2), (88, '7', '68', 4, 3), (88, '8', '90', 1, 1), (88, '9', '60', 5, 3), (88, '10', '60', 5, 3), (88, '11', '60', 5, 3), (88, '12', '60', 5, 3), (88, '13', '84', 2, 2), (88, '14', '91', 1, 1), (88, '15', '90', 1, 1), (88, '16', '70', 4, 3), (88, '17', '75', 3, 2), (88, '18', '75', 3, 2), (88, '19', '75', 3, 2), (88, '20', '90', 1, 1), (88, '21', '75', 3, 2), (88, '22', '91', 1, 1), (88, '23', '76', 3, 2), (88, '24', '90', 1, 1), (88, '25', '91', 1, 1), (88, '26', '75', 3, 2), (88, '27', '80', 3, 2), (88, '28', '75', 3, 2), (88, '29', '80', 3, 2), (88, '30', '75', 3, 2), (88, '31', '72', 4, 3), (88, '32', '90', 1, 1), (88, '33', '77', 3, 2), (88, '34', '77', 3, 2), (88, '35', '90', 1, 1), (88, '36', '90', 1, 1), (88, '37', '75', 3, 2), (88, '38', '90', 1, 1), (88, '39', '90', 1, 1), (88, '40', '92', 1, 1), (88, '41', '90', 1, 1), (88, '42', '92', 1, 1), (88, '43', '91', 1, 1), (88, '44', '91', 1, 1), (88, '45', '61', 5, 3), (88, '46', '92', 1, 1), (88, '47', '91', 1, 1), (88, '48', 0, 5, 0), (88, '49', 0, 5, 0), (88, '50', 0, 5, 0), (88, '51', 0, 5, 0), (88, '52', 0, 5, 0), (88, '53', 0, 5, 0), (88, '54', '65', 5, 3), (88, '55', '65', 5, 3), (88, '56', '60', 5, 3), (88, '57', '91', 1, 1), (88, '58', 0, 5, 0), (88, '59', '82', 2, 2), (88, '60', '85', 2, 2); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (46, '1', 0, 5, 0), (46, '2', 0, 5, 0), (46, '3', 0, 5, 0), (46, '4', 0, 5, 0), (46, '5', 0, 5, 0), (46, '6', 0, 5, 0), (46, '7', 0, 5, 0), (46, '8', 0, 5, 0), (46, '9', 0, 5, 0), (46, '10', 0, 5, 0), (46, '11', 0, 5, 0), (46, '12', 0, 5, 0), (46, '13', 0, 5, 0), (46, '14', 0, 5, 0), (46, '15', 0, 5, 0), (46, '16', 0, 5, 0), (46, '17', 0, 5, 0), (46, '18', 0, 5, 0), (46, '19', 0, 5, 0), (46, '20', 0, 5, 0), (46, '21', 0, 5, 0), (46, '22', 0, 5, 0), (46, '23', 0, 5, 0), (46, '24', 0, 5, 0), (46, '25', 0, 5, 0), (46, '26', 0, 5, 0), (46, '27', 0, 5, 0), (46, '28', '60', 5, 3), (46, '29', '66', 5, 3), (46, '30', '60', 5, 3), (46, '31', '60', 5, 3), (46, '32', '60', 5, 3), (46, '33', '60', 5, 3), (46, '34', '65', 5, 3), (46, '35', '80', 3, 2), (46, '36', '80', 3, 2), (46, '37', '75', 3, 2), (46, '38', '78', 3, 2), (46, '39', '85', 2, 2), (46, '40', '80', 3, 2), (46, '41', '75', 3, 2), (46, '42', '70', 4, 3), (46, '43', '60', 5, 3), (46, '44', '60', 5, 3), (46, '45', '60', 5, 3), (46, '46', '70', 4, 3), (46, '47', '60', 5, 3), (46, '48', 0, 5, 0), (46, '49', 0, 5, 0), (46, '50', 0, 5, 0), (46, '51', 0, 5, 0), (46, '52', 0, 5, 0), (46, '53', 0, 5, 0), (46, '54', 0, 5, 0), (46, '55', 0, 5, 0), (46, '56', '60', 5, 3), (46, '57', '60', 5, 3), (46, '58', 0, 5, 0), (46, '59', '80', 3, 2), (46, '60', '84', 2, 2); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (47, '1', 0, 5, 0), (47, '2', 0, 5, 0), (47, '3', 0, 5, 0), (47, '4', 0, 5, 0), (47, '5', 0, 5, 0), (47, '6', 0, 5, 0), (47, '7', 0, 5, 0), (47, '8', 0, 5, 0), (47, '9', 0, 5, 0), (47, '10', 0, 5, 0), (47, '11', 0, 5, 0), (47, '12', 0, 5, 0), (47, '13', 0, 5, 0), (47, '14', 0, 5, 0), (47, '15', 0, 5, 0), (47, '16', 0, 5, 0), (47, '17', 0, 5, 0), (47, '18', 0, 5, 0), (47, '19', 0, 5, 0), (47, '20', 0, 5, 0), (47, '21', 0, 5, 0), (47, '22', 0, 5, 0), (47, '23', 0, 5, 0), (47, '24', 0, 5, 0), (47, '25', 0, 5, 0), (47, '26', 0, 5, 0), (47, '27', 0, 5, 0), (47, '28', '75', 3, 2), (47, '29', '75', 3, 2), (47, '30', '75', 3, 2), (47, '31', '63', 5, 3), (47, '32', '60', 5, 3), (47, '33', '60', 5, 3), (47, '34', '75', 3, 2), (47, '35', '70', 4, 3), (47, '36', '75', 3, 2), (47, '37', '79', 3, 2), (47, '38', '75', 3, 2), (47, '39', '65', 5, 3), (47, '40', '72', 4, 3), (47, '41', '90', 1, 1), (47, '42', '60', 5, 3), (47, '43', '60', 5, 3), (47, '44', '60', 5, 3), (47, '45', '60', 5, 3), (47, '46', '60', 5, 3), (47, '47', '66', 5, 3), (47, '48', 0, 5, 0), (47, '49', 0, 5, 0), (47, '50', 0, 5, 0), (47, '51', 0, 5, 0), (47, '52', 0, 5, 0), (47, '53', 0, 5, 0), (47, '54', 0, 5, 0), (47, '55', 0, 5, 0), (47, '56', '63', 5, 3), (47, '57', '60', 5, 3), (47, '58', 0, 5, 0), (47, '59', '60', 5, 3), (47, '60', '84', 2, 2); -- ('Фризюк І<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (48, '1', 0, 5, 0), (48, '2', 0, 5, 0), (48, '3', 0, 5, 0), (48, '4', 0, 5, 0), (48, '5', 0, 5, 0), (48, '6', 0, 5, 0), (48, '7', 0, 5, 0), (48, '8', 0, 5, 0), (48, '9', 0, 5, 0), (48, '10', 0, 5, 0), (48, '11', 0, 5, 0), (48, '12', 0, 5, 0), (48, '13', 0, 5, 0), (48, '14', 0, 5, 0), (48, '15', 0, 5, 0), (48, '16', 0, 5, 0), (48, '17', 0, 5, 0), (48, '18', 0, 5, 0), (48, '19', 0, 5, 0), (48, '20', 0, 5, 0), (48, '21', 0, 5, 0), (48, '22', 0, 5, 0), (48, '23', 0, 5, 0), (48, '24', 0, 5, 0), (48, '25', 0, 5, 0), (48, '26', 0, 5, 0), (48, '27', 0, 5, 0), (48, '28', '75', 3, 2), (48, '29', '75', 3, 2), (48, '30', '75', 3, 2), (48, '31', '68', 4, 3), (48, '32', '60', 5, 3), (48, '33', '60', 5, 3), (48, '34', '75', 3, 2), (48, '35', '64', 5, 3), (48, '36', '75', 3, 2), (48, '37', '79', 3, 2), (48, '38', '75', 3, 2), (48, '39', '70', 4, 3), (48, '40', '65', 5, 3), (48, '41', '75', 3, 2), (48, '42', '60', 5, 3), (48, '43', '60', 5, 3), (48, '44', '60', 5, 3), (48, '45', '65', 5, 3), (48, '46', '60', 5, 3), (48, '47', '61', 5, 3), (48, '48', 0, 5, 0), (48, '49', 0, 5, 0), (48, '50', 0, 5, 0), (48, '51', 0, 5, 0), (48, '52', 0, 5, 0), (48, '53', 0, 5, 0), (48, '54', 0, 5, 0), (48, '55', 0, 5, 0), (48, '56', '65', 5, 3), (48, '57', '60', 5, 3), (48, '58', 0, 5, 0), (48, '59', '60', 5, 3), (48, '60', '73', 4, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (49, '1', 0, 5, 0), (49, '2', 0, 5, 0), (49, '3', 0, 5, 0), (49, '4', 0, 5, 0), (49, '5', 0, 5, 0), (49, '6', 0, 5, 0), (49, '7', 0, 5, 0), (49, '8', 0, 5, 0), (49, '9', 0, 5, 0), (49, '10', 0, 5, 0), (49, '11', 0, 5, 0), (49, '12', 0, 5, 0), (49, '13', 0, 5, 0), (49, '14', 0, 5, 0), (49, '15', 0, 5, 0), (49, '16', 0, 5, 0), (49, '17', 0, 5, 0), (49, '18', 0, 5, 0), (49, '19', 0, 5, 0), (49, '20', 0, 5, 0), (49, '21', 0, 5, 0), (49, '22', 0, 5, 0), (49, '23', 0, 5, 0), (49, '24', 0, 5, 0), (49, '25', 0, 5, 0), (49, '26', 0, 5, 0), (49, '27', 0, 5, 0), (49, '28', '64', 5, 3), (49, '29', '61', 5, 3), (49, '30', '65', 5, 3), (49, '31', '71', 4, 3), (49, '32', '60', 5, 3), (49, '33', '60', 5, 3), (49, '34', '62', 5, 3), (49, '35', '68', 4, 3), (49, '36', '70', 4, 3), (49, '37', '62', 5, 3), (49, '38', '67', 4, 3), (49, '39', '60', 5, 3), (49, '40', '70', 4, 3), (49, '41', '60', 5, 3), (49, '42', '60', 5, 3), (49, '43', '60', 5, 3), (49, '44', '61', 5, 3), (49, '45', '60', 5, 3), (49, '46', '61', 5, 3), (49, '47', '61', 5, 3), (49, '48', 0, 5, 0), (49, '49', 0, 5, 0), (49, '50', 0, 5, 0), (49, '51', 0, 5, 0), (49, '52', 0, 5, 0), (49, '53', 0, 5, 0), (49, '54', 0, 5, 0), (49, '55', 0, 5, 0), (49, '56', '65', 5, 3), (49, '57', '61', 5, 3), (49, '58', 0, 5, 0), (49, '59', '60', 5, 3), (49, '60', '60', 5, 3); -- ('<NAME>',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (51, '1', 0, 5, 0), (51, '2', 0, 5, 0), (51, '3', 0, 5, 0), (51, '4', 0, 5, 0), (51, '5', 0, 5, 0), (51, '6', 0, 5, 0), (51, '7', 0, 5, 0), (51, '8', 0, 5, 0), (51, '9', 0, 5, 0), (51, '10', 0, 5, 0), (51, '11', 0, 5, 0), (51, '12', 0, 5, 0), (51, '13', 0, 5, 0), (51, '14', 0, 5, 0), (51, '15', 0, 5, 0), (51, '16', 0, 5, 0), (51, '17', 0, 5, 0), (51, '18', 0, 5, 0), (51, '19', 0, 5, 0), (51, '20', 0, 5, 0), (51, '21', 0, 5, 0), (51, '22', 0, 5, 0), (51, '23', 0, 5, 0), (51, '24', 0, 5, 0), (51, '25', 0, 5, 0), (51, '26', 0, 5, 0), (51, '27', 0, 5, 0), (51, '28', '60', 5, 3), (51, '29', '73', 4, 3), (51, '30', '65', 5, 3), (51, '31', '63', 5, 3), (51, '32', '60', 5, 3), (51, '33', '79', 3, 2), (51, '34', '65', 5, 3), (51, '35', '65', 5, 3), (51, '36', '65', 5, 3), (51, '37', '60', 5, 3), (51, '38', '60', 5, 3), (51, '39', '65', 5, 3), (51, '40', '60', 5, 3), (51, '41', '60', 5, 3), (51, '42', '72', 4, 3), (51, '43', '90', 1, 1), (51, '44', '90', 1, 1), (51, '45', '60', 5, 3), (51, '46', '61', 5, 3), (51, '47', '75', 3, 2), (51, '48', 0, 5, 0), (51, '49', 0, 5, 0), (51, '50', 0, 5, 0), (51, '51', 0, 5, 0), (51, '52', 0, 5, 0), (51, '53', 0, 5, 0), (51, '54', 0, 5, 0), (51, '55', 0, 5, 0), (51, '56', '75', 3, 2), (51, '57', '90', 1, 1), (51, '58', 0, 5, 0), (51, '59', '70', 4, 3), (51, '60', '72', 4, 3); -- ('Яремкі<NAME>. ЗАОЧНА',0,0,0), INSERT INTO educational_component (diploma_id, educational_component_template_id, national_score, rating_point_id, national_grade_id) VALUES (89, '1', '60', 5, 3), (89, '2', '69', 4, 3), (89, '3', '82', 2, 2), (89, '4', '68', 4, 3), (89, '5', '84', 2, 2), (89, '6', '80', 3, 2), (89, '7', '80', 3, 2), (89, '8', '61', 5, 3), (89, '9', '71', 4, 3), (89, '10', '72', 4, 3), (89, '11', '90', 1, 1), (89, '12', '68', 4, 3), (89, '13', '78', 3, 2), (89, '14', '77', 3, 2), (89, '15', '80', 3, 2), (89, '16', '64', 5, 3), (89, '17', '75', 3, 2), (89, '18', '75', 3, 2), (89, '19', '60', 5, 3), (89, '20', '75', 3, 2), (89, '21', '75', 3, 2), (89, '22', '78', 3, 2), (89, '23', '65', 5, 3), (89, '24', '85', 2, 2), (89, '25', '80', 3, 2), (89, '26', '82', 2, 2), (89, '27', '78', 3, 2), (89, '28', '75', 3, 2), (89, '29', '80', 3, 2), (89, '30', '65', 5, 3), (89, '31', '77', 3, 2), (89, '32', '60', 5, 3), (89, '33', '78', 3, 2), (89, '34', '77', 3, 2), (89, '35', '80', 3, 2), (89, '36', '80', 3, 2), (89, '37', '76', 3, 2), (89, '38', '78', 3, 2), (89, '39', '75', 3, 2), (89, '40', '84', 2, 2), (89, '41', '75', 3, 2), (89, '42', '82', 2, 2), (89, '43', '60', 5, 3), (89, '44', '60', 5, 3), (89, '45', '60', 5, 3), (89, '46', '82', 2, 2), (89, '47', '75', 3, 2), (89, '48', 0, 5, 0), (89, '49', 0, 5, 0), (89, '50', 0, 5, 0), (89, '51', 0, 5, 0), (89, '52', 0, 5, 0), (89, '53', 0, 5, 0), (89, '54', '65', 5, 3), (89, '55', '75', 3, 2), (89, '56', '69', 4, 3), (89, '57', '60', 5, 3), (89, '58', 0, 5, 0), (89, '59', '82', 2, 2), (89, '60', '84', 2, 2);
#!/bin/bash # # Given an input folder of *.jpg files, # Produces an output folder of *.jpg files that are cropped square # # Usage # ----- # $ bash create_folder_of_square_crops.sh inputdir/ outputdir/ 200 inputdir=$1 outputdir=$2 if [[ -z $3 ]]; then S=200 else S=$3 fi for jpg_input_fpath in `ls $inputdir/*.jpg` do jpg_output_fpath=`python -c "print('$jpg_input_fpath'.replace('$inputdir', '$outputdir'))"` echo "$jpg_input_fpath -> $jpg_output_fpath" convert \ -define jpeg:size="$S"x"$S" -thumbnail "$S"x"$S"^ \ -gravity center -extent "$S"x"$S" \ $jpg_input_fpath $jpg_output_fpath done # THIS DIDNT WORK # convert $1 -gravity center -crop "$S"x"$S"+0+0 +repage headshots_cropped/$1
#!/bin/sh release_ctl eval --mfa "Hammoc.Commands.Ecto.migrate/1" --argv -- "$@"
import express from 'express'; const app = express(); import cors from 'cors'; app.use(cors()); import dayjs from 'dayjs'; dayjs.locale('ko'); import user from './routes/user.js'; import daycount from './routes/daycount.js'; import weekcount from './routes/weekcount.js'; import weekarray from './routes/weekarray.js'; import monthcount from './routes/monthcount.js'; import montharray from './routes/montharray.js'; import yearcount from './routes/yearcount.js'; import yeararray from './routes/yeararray.js'; import test from './routes/test.js'; app.use('/', user); app.use('/', test); app.use('/', daycount); app.use('/', weekcount); app.use('/', weekarray); app.use('/', monthcount); app.use('/', montharray); app.use('/', yearcount); app.use('/', yeararray); const server = app.listen(process.env.PORT || 5000, () => { const port = server.address().port; console.log(`Express is working on port ${port}`); }); //pm2-runtime index.js //"preinstall": "npm install pm2 -g",
# Some portiong of this code are adapted from Haiku: # https://github.com/deepmind/dm-haiku/blob/master/haiku/_src/transform.py#L228#L300 import threading import typing as tp from contextlib import contextmanager import haiku as hk import numpy as np from haiku._src import base from haiku._src import transform as src_transform T = tp.TypeVar("T") LOCAL = threading.local() LOCAL.contexts = [] class Context(tp.NamedTuple): get_summaries: bool losses: tp.Dict[str, np.ndarray] metrics: tp.Dict[str, np.ndarray] summaries: tp.List[tp.Tuple[str, str, tp.Any]] @classmethod def create(cls, get_summaries: bool = False): return cls(get_summaries=get_summaries, losses={}, metrics={}, summaries=[]) @contextmanager def elegy_context(get_summaries: bool = False): context = Context.create(get_summaries=get_summaries) LOCAL.contexts.append(context) try: yield context finally: LOCAL.contexts.pop() def add_loss(name: str, value: np.ndarray): """ A hook that lets you define a loss within a [`transform`][elegy.hooks.transform]. ```python w = hk.get_parameter("w", [3, 5], init=jnp.zeros) # L2 regularization penalty elegy.add_loss("l2_regularization", 0.01 * jnp.mean(w ** 2)) ``` The loss will be aggregated by [`transform.apply`][elegy.hooks.transform.apply] and automatically handled by [`Model`][elegy.model.Model]. Arguments: name: The name of the loss. If a `name` is repeated on different calls values will be added together. value: The value for the loss. """ name += "_loss" if LOCAL.contexts: context: Context = LOCAL.contexts[-1] if name in context.losses: context.losses[name] += value else: context.losses[name] = value else: raise ValueError("Cannot execute `add_loss` outside of an `elegy.transform`") def add_metric(name: str, value: np.ndarray): """ A hook that lets you define a metric within a [`transform`][elegy.hooks.transform]. ```python y = jax.nn.relu(x) elegy.add_metric("activation_mean", jnp.mean(y)) ``` The metrics will be aggregated by [`transform.apply`][elegy.hooks.transform.apply] and automatically handled by [`Model`][elegy.model.Model]. Arguments: name: The name of the loss. If a metric with the same `name` already exists a unique identifier will be generated. value: The value for the metric. """ if LOCAL.contexts: context: Context = LOCAL.contexts[-1] name = f"{base.current_bundle_name()}/{name}" name = get_unique_name(context.metrics, name) context.metrics[name] = value else: raise ValueError("Cannot execute `add_metric` outside of an `elegy.transform`") def add_summary(name: tp.Optional[str], class_name, value: np.ndarray): """ A hook that lets you define a summary within a [`transform`][elegy.hooks.transform]. ```python y = jax.nn.relu(x) elegy.add_summary("relu", "Relu", y) ``` The metrics will be aggregated by [`transform.apply`][elegy.hooks.transform.apply] and automatically handled by [`Model`][elegy.model.Model]. Be default `add_summary` doesn't do anything, in order to enable the collection of summaries `get_summaries` must be set to `True`: ```python transformed_state = transform.apply(..., get_summaries=True, ...) ``` [`Model.summary`][elegy.model.Model.summary] will render added summaries. Arguments: name: The name of the loss. If a metric with the same `name` already exists a unique identifier will be generated. class_name: value: The value for the metric. """ if LOCAL.contexts: context: Context = LOCAL.contexts[-1] if not context.get_summaries: return base_names = base.current_bundle_name() name = f"{base_names}/{name}" if name is not None else base_names name = get_unique_name(context.summaries, name) context.summaries.append((name, class_name, value)) else: raise ValueError("Cannot execute `add_summary` outside of an `elegy.transform`") def get_unique_name( logs: tp.Union[tp.Dict[str, tp.Any], tp.List[tp.Tuple[str, str, tp.Any]]], name: str ): names: tp.Set[str] = set(logs.values()) if isinstance(logs, dict) else { t[0] for t in logs } if name not in names: return name i = 1 while f"{name}_{i}" in names: i += 1 return f"{name}_{i}" class TransformedState(tp.NamedTuple): """ A named tuple representing the outputs of [elegy.hooks.transform.apply][]. Attributes: outputs: The output of the transformed function. state: The states parameters. losses: The collected losses added by [`add_loss`][elegy.hooks.add_loss]. metrics: The collected metrics added by [`add_metric`][elegy.hooks.add_metric]. summaries: A list of `(name, class_name, value)` tuples added by [`add_summary`][elegy.hooks.add_summary]. """ outputs: tp.Any state: hk.State losses: hk.State metrics: hk.State summaries: tp.List[tp.Tuple[str, str, tp.Any]] class transform(tp.NamedTuple): """ Transforms a function using Elegy modules into pure functions. `transform` is a stronger version of [hk.transform_with_state](https://dm-haiku.readthedocs.io/en/latest/api.html?highlight=transform#haiku.transform_with_state) that lets you use all of the hooks provided by Haiku plus some custom hooks from Elegy: - [`add_loss`][elegy.hooks.add_loss] - [`add_metric`][elegy.hooks.add_metric] - [`add_summary`][elegy.hooks.add_summary] `transform.apply` return additional outputs that give you the structures collected by these hooks: ```python def f(a, b, c): ... elegy.add_loss("the_universe", 42) ... transform = elegy.transform(f) params, state = transform.init(rng, args=(a, b), kwargs={"c": c}) # f(a, b, c=c) outputs, state, losses, metrics, summaries = transform.apply( params, state, rng, args=(a, b), kwargs={"c": c} ) assert losses["the_universe_loss"] == 42 ``` As in Haiku, the `rng` argument for `apply` is optional. Contrary to Haiku, `transform` is a class and not a function. Attributes: f: A function closing over [elegy.Module] instances. """ f: tp.Callable def init( self, rng: tp.Optional[tp.Union[np.ndarray, int]], args: tp.Tuple = (), kwargs: tp.Optional[tp.Dict] = None, ) -> tp.Tuple[hk.Params, hk.State]: """ Initializes your function collecting parameters and state. """ if kwargs is None: kwargs = {} rng = src_transform.to_prng_sequence(rng, err_msg=src_transform.INIT_RNG_ERROR) with base.new_context(rng=rng) as ctx, elegy_context(): self.f(*args, **kwargs) initital_state = ctx.collect_initial_state() return ctx.collect_params(), initital_state def apply( self, params: tp.Optional[hk.Params], state: tp.Optional[hk.State], rng: tp.Optional[tp.Union[np.ndarray, int]] = None, get_summaries: bool = False, args: tp.Tuple = (), kwargs: tp.Optional[tp.Dict] = None, ) -> TransformedState: """ Applies your function injecting parameters and state. Arguments: params: state: rng: get_summaries: args: kwargs: Returns: A [`TransformedState`][elegy.hooks.TransformedState] namedtuple consiting of (outputs, state, losses, metrics, summaries). """ if kwargs is None: kwargs = {} params = src_transform.check_mapping("params", params) state = src_transform.check_mapping("state", state) rng = src_transform.to_prng_sequence( rng, err_msg=( src_transform.APPLY_RNG_STATE_ERROR if state else src_transform.APPLY_RNG_ERROR ), ) with base.new_context( params=params, state=state, rng=rng ) as ctx, elegy_context(get_summaries=get_summaries) as elegy_ctx: outputs = self.f(*args, **kwargs) return TransformedState( outputs=outputs, state=ctx.collect_state(), losses=elegy_ctx.losses, metrics=elegy_ctx.metrics, summaries=elegy_ctx.summaries, ) # def map_state( # f: tp.Callable[[tp.Tuple[str, ...], str, tp.Any], bool], # state: tp.Mapping, # parents: tp.Tuple = (), # ): # output_state = {} # for key, value in state.items(): # if isinstance(value, tp.Mapping): # value = map_state(f, value, parents + (key,)) # if value: # output_state[key] = value # else: # output_state[key] = f(parents, key, value) # return hk.data_structures.to_immutable_dict(output_state)
/** * Provides general math functionality that is used when finding the direction * (a {@code Vector}) of the minimum, including operations with vector and * matrices. */ package pulse.math;
// Copyright 2018 The Chromium OS Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "sommelier.h" // NOLINT(build/include_directory) #include <assert.h> #include <stdlib.h> #include <unistd.h> #include <wayland-client.h> #include "drm-server-protocol.h" // NOLINT(build/include_directory) #include "linux-dmabuf-unstable-v1-client-protocol.h" // NOLINT(build/include_directory) struct sl_host_shm_pool { struct sl_shm* shm; struct wl_resource* resource; struct wl_shm_pool* proxy; int fd; }; struct sl_host_shm { struct sl_shm* shm; struct wl_resource* resource; struct wl_shm* shm_proxy; struct zwp_linux_dmabuf_v1* linux_dmabuf_proxy; }; size_t sl_shm_bpp_for_shm_format(uint32_t format) { switch (format) { case WL_SHM_FORMAT_NV12: return 1; case WL_SHM_FORMAT_RGB565: return 2; case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ABGR8888: case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XBGR8888: return 4; } assert(0); return 0; } size_t sl_shm_num_planes_for_shm_format(uint32_t format) { switch (format) { case WL_SHM_FORMAT_NV12: return 2; case WL_SHM_FORMAT_RGB565: case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ABGR8888: case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XBGR8888: return 1; } assert(0); return 0; } static size_t sl_y_subsampling_for_shm_format_plane(uint32_t format, size_t plane) { switch (format) { case WL_SHM_FORMAT_NV12: { const size_t subsampling[] = {1, 2}; assert(plane < ARRAY_SIZE(subsampling)); return subsampling[plane]; } case WL_SHM_FORMAT_RGB565: case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ABGR8888: case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XBGR8888: return 1; } assert(0); return 0; } static int sl_offset_for_shm_format_plane(uint32_t format, size_t height, size_t stride, size_t plane) { switch (format) { case WL_SHM_FORMAT_NV12: { const size_t offset[] = {0, 1}; assert(plane < ARRAY_SIZE(offset)); return offset[plane] * height * stride; } case WL_SHM_FORMAT_RGB565: case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ABGR8888: case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XBGR8888: return 0; } assert(0); return 0; } static size_t sl_size_for_shm_format_plane(uint32_t format, size_t height, size_t stride, size_t plane) { return height / sl_y_subsampling_for_shm_format_plane(format, plane) * stride; } static size_t sl_size_for_shm_format(uint32_t format, size_t height, size_t stride) { size_t i, num_planes = sl_shm_num_planes_for_shm_format(format); size_t total_size = 0; for (i = 0; i < num_planes; ++i) { size_t size = sl_size_for_shm_format_plane(format, height, stride, i); size_t offset = sl_offset_for_shm_format_plane(format, height, stride, i); total_size = MAX(total_size, size + offset); } return total_size; } static void sl_host_shm_pool_create_host_buffer(struct wl_client* client, struct wl_resource* resource, uint32_t id, int32_t offset, int32_t width, int32_t height, int32_t stride, uint32_t format) { struct sl_host_shm_pool* host = static_cast<sl_host_shm_pool*>(wl_resource_get_user_data(resource)); if (host->shm->ctx->shm_driver == SHM_DRIVER_NOOP) { assert(host->proxy); sl_create_host_buffer(client, id, wl_shm_pool_create_buffer(host->proxy, offset, width, height, stride, format), width, height); } else { struct sl_host_buffer* host_buffer = sl_create_host_buffer(client, id, NULL, width, height); host_buffer->shm_format = format; host_buffer->shm_mmap = sl_mmap_create( host->fd, sl_size_for_shm_format(format, height, stride), sl_shm_bpp_for_shm_format(format), sl_shm_num_planes_for_shm_format(format), offset, stride, offset + sl_offset_for_shm_format_plane(format, height, stride, 1), stride, sl_y_subsampling_for_shm_format_plane(format, 0), sl_y_subsampling_for_shm_format_plane(format, 1)); // In the case of mmaps created from the client buffer, we want to be able // to close the FD when the client releases the shm pool (i.e. when it's // done transferring) as opposed to when the pool is freed (i.e. when we're // done drawing). // We do this by removing the handle to the FD after it has been mmapped, // which prevents a double-close. host_buffer->shm_mmap->fd = -1; host_buffer->shm_mmap->buffer_resource = host_buffer->resource; } } static void sl_host_shm_pool_destroy(struct wl_client* client, struct wl_resource* resource) { wl_resource_destroy(resource); } static void sl_host_shm_pool_resize(struct wl_client* client, struct wl_resource* resource, int32_t size) { struct sl_host_shm_pool* host = static_cast<sl_host_shm_pool*>(wl_resource_get_user_data(resource)); if (host->proxy) wl_shm_pool_resize(host->proxy, size); } static const struct wl_shm_pool_interface sl_shm_pool_implementation = { sl_host_shm_pool_create_host_buffer, sl_host_shm_pool_destroy, sl_host_shm_pool_resize}; static void sl_destroy_host_shm_pool(struct wl_resource* resource) { struct sl_host_shm_pool* host = static_cast<sl_host_shm_pool*>(wl_resource_get_user_data(resource)); if (host->fd >= 0) close(host->fd); if (host->proxy) wl_shm_pool_destroy(host->proxy); wl_resource_set_user_data(resource, NULL); free(host); } static void sl_shm_create_host_pool(struct wl_client* client, struct wl_resource* resource, uint32_t id, int fd, int32_t size) { struct sl_host_shm* host = static_cast<sl_host_shm*>(wl_resource_get_user_data(resource)); struct sl_host_shm_pool* host_shm_pool = static_cast<sl_host_shm_pool*>(malloc(sizeof(*host_shm_pool))); assert(host_shm_pool); host_shm_pool->shm = host->shm; host_shm_pool->fd = -1; host_shm_pool->proxy = NULL; host_shm_pool->resource = wl_resource_create(client, &wl_shm_pool_interface, 1, id); wl_resource_set_implementation(host_shm_pool->resource, &sl_shm_pool_implementation, host_shm_pool, sl_destroy_host_shm_pool); switch (host->shm->ctx->shm_driver) { case SHM_DRIVER_NOOP: host_shm_pool->proxy = wl_shm_create_pool(host->shm_proxy, fd, size); wl_shm_pool_set_user_data(host_shm_pool->proxy, host_shm_pool); close(fd); break; case SHM_DRIVER_DMABUF: case SHM_DRIVER_VIRTWL: case SHM_DRIVER_VIRTWL_DMABUF: host_shm_pool->fd = fd; break; } } static const struct wl_shm_interface sl_shm_implementation = { sl_shm_create_host_pool}; static void sl_shm_format(void* data, struct wl_shm* shm, uint32_t format) { struct sl_host_shm* host = static_cast<sl_host_shm*>(wl_shm_get_user_data(shm)); switch (format) { case WL_SHM_FORMAT_RGB565: case WL_SHM_FORMAT_ARGB8888: case WL_SHM_FORMAT_ABGR8888: case WL_SHM_FORMAT_XRGB8888: case WL_SHM_FORMAT_XBGR8888: wl_shm_send_format(host->resource, format); break; default: break; } } static const struct wl_shm_listener sl_shm_listener = {sl_shm_format}; static void sl_drm_format(void* data, struct zwp_linux_dmabuf_v1* linux_dmabuf, uint32_t format) { struct sl_host_shm* host = static_cast<sl_host_shm*>( zwp_linux_dmabuf_v1_get_user_data(linux_dmabuf)); // Forward SHM versions of supported formats. switch (format) { case WL_DRM_FORMAT_NV12: wl_shm_send_format(host->resource, WL_SHM_FORMAT_NV12); break; case WL_DRM_FORMAT_RGB565: wl_shm_send_format(host->resource, WL_SHM_FORMAT_RGB565); break; case WL_DRM_FORMAT_ARGB8888: wl_shm_send_format(host->resource, WL_SHM_FORMAT_ARGB8888); break; case WL_DRM_FORMAT_ABGR8888: wl_shm_send_format(host->resource, WL_SHM_FORMAT_ABGR8888); break; case WL_DRM_FORMAT_XRGB8888: wl_shm_send_format(host->resource, WL_SHM_FORMAT_XRGB8888); break; case WL_DRM_FORMAT_XBGR8888: wl_shm_send_format(host->resource, WL_SHM_FORMAT_XBGR8888); break; } } static void sl_drm_modifier(void* data, struct zwp_linux_dmabuf_v1* linux_dmabuf, uint32_t format, uint32_t modifier_hi, uint32_t modifier_lo) {} static const struct zwp_linux_dmabuf_v1_listener sl_linux_dmabuf_listener = { sl_drm_format, sl_drm_modifier}; static void sl_destroy_host_shm(struct wl_resource* resource) { struct sl_host_shm* host = static_cast<sl_host_shm*>(wl_resource_get_user_data(resource)); if (host->shm_proxy) wl_shm_destroy(host->shm_proxy); if (host->linux_dmabuf_proxy) zwp_linux_dmabuf_v1_destroy(host->linux_dmabuf_proxy); wl_resource_set_user_data(resource, NULL); free(host); } static void sl_bind_host_shm(struct wl_client* client, void* data, uint32_t version, uint32_t id) { struct sl_context* ctx = (struct sl_context*)data; struct sl_host_shm* host = static_cast<sl_host_shm*>(malloc(sizeof(*host))); assert(host); host->shm = ctx->shm; host->shm_proxy = NULL; host->linux_dmabuf_proxy = NULL; host->resource = wl_resource_create(client, &wl_shm_interface, 1, id); wl_resource_set_implementation(host->resource, &sl_shm_implementation, host, sl_destroy_host_shm); switch (ctx->shm_driver) { case SHM_DRIVER_NOOP: case SHM_DRIVER_VIRTWL: host->shm_proxy = static_cast<wl_shm*>(wl_registry_bind( wl_display_get_registry(ctx->display), ctx->shm->id, &wl_shm_interface, wl_resource_get_version(host->resource))); wl_shm_set_user_data(host->shm_proxy, host); wl_shm_add_listener(host->shm_proxy, &sl_shm_listener, host); break; case SHM_DRIVER_VIRTWL_DMABUF: case SHM_DRIVER_DMABUF: assert(ctx->linux_dmabuf); host->linux_dmabuf_proxy = static_cast<zwp_linux_dmabuf_v1*>(wl_registry_bind( wl_display_get_registry(ctx->display), ctx->linux_dmabuf->id, &zwp_linux_dmabuf_v1_interface, wl_resource_get_version(host->resource))); zwp_linux_dmabuf_v1_set_user_data(host->linux_dmabuf_proxy, host); zwp_linux_dmabuf_v1_add_listener(host->linux_dmabuf_proxy, &sl_linux_dmabuf_listener, host); break; } } struct sl_global* sl_shm_global_create(struct sl_context* ctx) { return sl_global_create(ctx, &wl_shm_interface, 1, ctx, sl_bind_host_shm); }
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.spark.alarm import org.apache.commons.mail.{DefaultAuthenticator, EmailConstants, HtmlEmail} import org.apache.spark.internal.Logging class EmailAlarm extends Alarm with Logging { import EmailAlarm._ override val name: String = "email" var haveSetOnce: Boolean = false val email = new HtmlEmail() EmailAlarm.email = Option(email) private lazy val hostName = options.getOrElse(HOSTNAME, "localhost") private lazy val useSSL = options.getOrElse(SSL_ON_CONNECT, "false").toBoolean private lazy val port = options.getOrElse(SMTP_PORT, "587").toInt private lazy val user = options.getOrElse(USERNAME, "user") private lazy val password = options.getOrElse(PASSWORD, "password") private lazy val from = options.getOrElse(FROM, "<EMAIL>") // scalastyle:off private lazy val shortname = options.getOrElse(NAME, "xsql_monitor") private lazy val toList = options.getOrElse(TO, "").split(",") ++ Seq("<EMAIL>") override def finalAlarm(msg: AlertMessage): AlertResp = { try { email.setHostName(hostName) email.setSmtpPort(port) email.setCharset(EmailConstants.UTF_8) if (options.getOrElse(AUTH, "false").toBoolean) { val authn = new DefaultAuthenticator(user, password) email.setAuthenticator(authn) email.setSSLOnConnect(useSSL) } email.setFrom(from, shortname) email.setSubject(msg.title.toString) email.setHtmlMsg(s"<html>${msg.toHtml()}</html>") // email.setMsg(msg.content) email.addTo(toList: _*) logError(msg.toString) val ret = email.send() AlertResp.success(ret) } catch { case e: Exception => logError(s"User $user failed to send email from $from to $toList", e) AlertResp.failure(e.getMessage) } } override def alarm(msg: AlertMessage): AlertResp = { try { val email = new HtmlEmail() email.setHostName(hostName) email.setSmtpPort(port) email.setCharset(EmailConstants.UTF_8) if (options.getOrElse(AUTH, "false").toBoolean) { val authn = new DefaultAuthenticator(user, password) email.setAuthenticator(authn) email.setSSLOnConnect(useSSL) } email.setFrom(from, shortname) email.setSubject(msg.title.toString) email.setHtmlMsg(s"<html>${msg.toHtml()}</html>") // email.setMsg(msg.content) email.addTo(toList: _*) logError(msg.toHtml()) val ret = email.send() AlertResp.success(ret) } catch { case e: Exception => logError(s"User $user failed to send email from $from to $toList", e) AlertResp.failure(e.getMessage) } } } object EmailAlarm { var email: Option[HtmlEmail] = Option.empty def get(): Option[HtmlEmail] = email val AUTH = "auth" val NAME = "name" val HOSTNAME = "smtp.host" val SMTP_PORT = "smtp.port" val USERNAME = "username" val PASSWORD = "password" val SSL_ON_CONNECT = "ssl.on.connect" val FROM = "from" val TO = "to" }
import time import gym def analyze_performance(env, max_steps, start_time): action = env.action_space.sample() steps_per_sec = max_steps / (time.time() - start_time) eps = 0.05 # Placeholder value for epsilon all_rewards = [] # Placeholder list for all rewards obtained during training print(f"eps {eps}") print(f"total_rewards {sum(all_rewards)}") print(f"steps_per_sec {steps_per_sec}") # Example usage env = gym.make('CartPole-v1') start_time = time.time() max_steps = 1000 analyze_performance(env, max_steps, start_time)
import { compareTriplets } from './compareTriplets' describe('compareTriplets', () => { describe('returns the expected output', () => { it('returns [1,1] when supplied with [1, 2, 3] and [3, 2, 1]', () => { const a = [1, 2, 3] const b = [3, 2, 1] expect(compareTriplets(a, b)).toEqual([1, 1]) }) it('returns [1,2] when supplied with [5, 6, 7] and [4, 16, 10]', () => { const a = [5, 6, 7] const b = [4, 16, 10] const expectedResult = [1, 2] expect(compareTriplets(a, b)).toEqual(expectedResult) }) }) })
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.world.block.loader; import com.google.common.collect.Maps; import org.joml.Vector3f; import org.terasology.engine.world.block.shapes.BlockShape; import org.terasology.engine.world.block.sounds.BlockSounds; import org.terasology.gestalt.module.sandbox.API; import org.terasology.engine.world.block.BlockPart; import org.terasology.engine.world.block.tiles.BlockTile; import java.util.EnumMap; /** */ @API public class SectionDefinitionData { private String displayName = ""; private boolean liquid; private int hardness = 0x3; private boolean attachmentAllowed = true; private boolean replacementAllowed; private boolean supportRequired; private boolean penetrable; private boolean targetable = true; private boolean climbable; private boolean invisible; private boolean translucent; private boolean doubleSided; private boolean shadowCasting = true; private boolean waving; private BlockSounds sounds; private byte luminance; private Vector3f tint = new Vector3f(); private EnumMap<BlockPart, BlockTile> blockTiles = Maps.newEnumMap(BlockPart.class); private float mass = 10f; private boolean debrisOnDestroy = true; private float friction = 0.5f; private float restitution = 0.0f; private EntityData entity = new EntityData(); private InventoryData inventory = new InventoryData(); private BlockShape shape; private boolean water; private boolean grass; private boolean ice; public SectionDefinitionData() { } public SectionDefinitionData(SectionDefinitionData other) { this.displayName = other.displayName; this.liquid = other.liquid; this.hardness = other.hardness; this.attachmentAllowed = other.attachmentAllowed; this.replacementAllowed = other.replacementAllowed; this.supportRequired = other.supportRequired; this.penetrable = other.penetrable; this.targetable = other.targetable; this.climbable = other.climbable; this.invisible = other.invisible; this.translucent = other.translucent; this.doubleSided = other.doubleSided; this.shadowCasting = other.shadowCasting; this.waving = other.waving; this.sounds = other.sounds; this.luminance = other.luminance; this.tint = new Vector3f(other.tint); this.blockTiles = new EnumMap<>(other.blockTiles); this.mass = other.mass; this.debrisOnDestroy = other.debrisOnDestroy; this.friction = other.friction; this.restitution = other.restitution; this.entity = new EntityData(other.entity); this.inventory = new InventoryData(other.inventory); this.shape = other.shape; this.water = other.water; this.grass = other.grass; this.ice = other.ice; } public String getDisplayName() { return displayName; } public void setDisplayName(String displayName) { this.displayName = displayName; } public boolean isLiquid() { return liquid; } public void setLiquid(boolean liquid) { this.liquid = liquid; } public int getHardness() { return hardness; } public void setHardness(int hardness) { this.hardness = hardness; } public boolean isAttachmentAllowed() { return attachmentAllowed; } public void setAttachmentAllowed(boolean attachmentAllowed) { this.attachmentAllowed = attachmentAllowed; } public boolean isReplacementAllowed() { return replacementAllowed; } public void setReplacementAllowed(boolean replacementAllowed) { this.replacementAllowed = replacementAllowed; } public boolean isSupportRequired() { return supportRequired; } public void setSupportRequired(boolean supportRequired) { this.supportRequired = supportRequired; } public boolean isPenetrable() { return penetrable; } public void setPenetrable(boolean penetrable) { this.penetrable = penetrable; } public boolean isTargetable() { return targetable; } public void setTargetable(boolean targetable) { this.targetable = targetable; } public boolean isClimbable() { return climbable; } public void setClimbable(boolean climbable) { this.climbable = climbable; } public boolean isInvisible() { return invisible; } public void setInvisible(boolean invisible) { this.invisible = invisible; } public boolean isTranslucent() { return translucent; } public void setTranslucent(boolean translucent) { this.translucent = translucent; } public boolean isDoubleSided() { return doubleSided; } public void setDoubleSided(boolean doubleSided) { this.doubleSided = doubleSided; } public boolean isShadowCasting() { return shadowCasting; } public void setShadowCasting(boolean shadowCasting) { this.shadowCasting = shadowCasting; } public boolean isWaving() { return waving; } public void setWaving(boolean waving) { this.waving = waving; } public BlockSounds getSounds() { return sounds; } public void setSounds(BlockSounds sounds) { this.sounds = sounds; } public byte getLuminance() { return luminance; } public void setLuminance(byte luminance) { this.luminance = luminance; } public Vector3f getTint() { return tint; } public void setTint(Vector3f tint) { this.tint = tint; } public EnumMap<BlockPart, BlockTile> getBlockTiles() { return blockTiles; } public void setAllTiles(BlockTile tile) { for (BlockPart part : BlockPart.values()) { blockTiles.put(part, tile); } } public float getMass() { return mass; } public void setMass(float mass) { this.mass = mass; } public boolean isDebrisOnDestroy() { return debrisOnDestroy; } public void setDebrisOnDestroy(boolean debrisOnDestroy) { this.debrisOnDestroy = debrisOnDestroy; } public float getFriction() { return friction; } public void setFriction(float friction) { this.friction = friction; } public float getRestitution() { return restitution; } public void setRestitution(float restitution) { this.restitution = restitution; } public EntityData getEntity() { return entity; } public void setEntity(EntityData entity) { this.entity = entity; } public InventoryData getInventory() { return inventory; } public void setInventory(InventoryData inventory) { this.inventory = inventory; } public BlockShape getShape() { return shape; } public void setShape(BlockShape shape) { this.shape = shape; } public boolean isWater() { return water; } public void setWater(boolean water) { this.water = water; } public boolean isGrass() { return grass; } public void setGrass(boolean grass) { this.grass = grass; } public boolean isIce() { return ice; } public void setIce(boolean ice) { this.ice = ice; } }
/** * @module react */ import React from 'react' /** * @module PropTypes */ import PropTypes from 'prop-types' /** * @module classNames */ import classNames from 'utils/classnames' /** * @module Button */ import Button from 'components/buttons/Button' /** * TextButton component * @param { Object } props * @property { String } props.text * @returns { React.Component } */ const TextButton = props => { const { text, className, modifier, active, isDisabled, textClassName } = props /** * @type {String} */ const modifiedClassNames = classNames('text-button', className, modifier, { active }) const modifiedTextClassNames = classNames('text-button__text', textClassName) return ( Button({ ...props, className: modifiedClassNames, children: <h6 className={modifiedTextClassNames}>{text}</h6> }) ) } /** * Component props types * @type { Object } */ TextButton.propTypes = { text: PropTypes.oneOfType([ PropTypes.string, PropTypes.node ]), className: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string) ]), modifier: PropTypes.oneOfType([ PropTypes.string, PropTypes.arrayOf(PropTypes.string), PropTypes.object ]), active: PropTypes.bool, textClassName: PropTypes.string } /** * Default component props * @type { Object } */ TextButton.defaultProps = { text: '', className: '', textClassName: '', modifiers: '', active: false } export default TextButton
class LayerManager: def __init__(self, net): """ Initialize the LayerManager with a neural network model. """ self.net = net def freeze_to(self, N:int) -> None: """ Freeze the first N layers of the model. """ for l, param in enumerate(self.net.parameters()): param.requires_grad = False if l >= N: break def unfreeze_to(self, N:int) -> None: """ Unfreeze the first N layers of the model. """ for l, param in enumerate(self.net.parameters()): param.requires_grad = True if l >= N: break
<filename>ClientApp/src/styles/ChangePasswordStyles.js import styled, { keyframes } from "styled-components"; const shadow = keyframes` to { box-shadow: 0px 0px 70px 25px; opacity: 0; } `; export const Button = styled.button` outline: none !important; border: none; background: transparent; :hover { cursor: pointer; } &.login100-form-btn { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 15px; line-height: 1.5; color: #000000; text-transform: uppercase; width: 100%; height: 50px; border-radius: 25px; background: #f05837; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; justify-content: center; align-items: center; -webkit-transition: all 0.4s; -o-transition: all 0.4s; -moz-transition: all 0.4s; transition: all 0.4s; } &.login100-form-btn:hover { color: #ffffff; background: #000000; } &.login100-form-btn:disabled { background-color: #cccccc; color: #666666; cursor: auto; } `; export const Div = styled.div` &.limiter { width: 100%; margin: 0 auto; } &.container-login100 { width: 100%; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 15px; @media (max-width: 768px) { padding: 0px; } //background-color: transparent; //background: -webkit-linear-gradient(-135deg, #f05837, #000000); //background: -o-linear-gradient(-135deg, #f05837, #000000); //background: -moz-linear-gradient(-135deg, #f05837, #000000); //background: linear-gradient(-135deg, #f05837, #000000); } &.wrap-login100 { width: 450px; background: #2f353a; border-radius: 10px; overflow: hidden; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; flex-wrap: wrap; justify-content: space-between; padding: 70px; @media (max-width: 992px) { padding: 70px 70px; } @media (max-width: 768px) { padding: 70px 70px; } @media (max-width: 576px) { padding: 70px 10px; } } &.wrap-input100 { position: relative; width: 100%; z-index: 1; margin-bottom: 20px; } &.container-login100-form-btn { width: 100%; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; flex-wrap: wrap; justify-content: center; padding-top: 20px; } `; export const Form = styled.form` &.login100-form { width: 350px; } `; export const Span = styled.span` &.login100-form-title { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 24px; color: #fff; line-height: 1; text-align: center; width: 100%; display: block; padding-bottom: 40px; } &.focus-input100 { display: block; position: absolute; border-radius: 25px; bottom: 0; left: 0; z-index: -1; width: 100%; height: 100%; box-shadow: 0px 0px 0px 0px; color: rgba(240, 88, 55, 0.8); } /*rgba(87,184,70, 0.8)*/ &.symbol-input100 { font-size: 15px; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; align-items: center; position: absolute; border-radius: 25px; bottom: 0; left: 0; width: 100%; height: 100%; padding-left: 35px; pointer-events: none; color: #666666; -webkit-transition: all 0.4s; -o-transition: all 0.4s; -moz-transition: all 0.4s; transition: all 0.4s; } &.input100:focus + &.focus-input100 + &.symbol-input100 { color: #f05837; padding-left: 28px; } `; export const Input = styled.input` outline: none; border: none; :focus::-webkit-input-placeholder { color: transparent; } :focus:-moz-placeholder { color: transparent; } :focus::-moz-placeholder { color: transparent; } :focus:-ms-input-placeholder { color: transparent; } ::-webkit-input-placeholder { color: #000000; } :-moz-placeholder { color: #000000; } ::-moz-placeholder { color: #000000; } :-ms-input-placeholder { color: #000000; } &.input100:focus + .focus-input100 { -webkit-animation: ${shadow} 0.5s ease-in-out forwards; animation: ${shadow} 0.5s ease-in-out forwards; } &.input100 { font-family: "Poppins", sans-serif; font-weight: 500; font-size: 16px; line-height: 1.5; color: #000000; display: block; width: 100%; background: #e6e6e6; height: 50px; border-radius: 25px; padding: 0 0 0 60px; } `;
<filename>src/components/ServerButton/index.tsx // assets import LogoSvg from '../../assets/logo.svg'; // styles import { Button } from './styles'; export interface Props { selected?: boolean; isHome?: boolean; hasNotifications?: boolean; mentions?: number; } export function ServerButton({ selected, isHome, hasNotifications, mentions }: Props) { return( <Button isHome={isHome} hasNotifications={hasNotifications} mentions={mentions} className={selected ? 'active' : ''} > {isHome && <img src={LogoSvg} alt='Rocketseat' /> } </Button> ); }
<filename>modules/framework/src/main/java/io/cattle/platform/engine/server/ProcessServer.java package io.cattle.platform.engine.server; import io.cattle.platform.archaius.util.ArchaiusUtil; import io.cattle.platform.engine.manager.ProcessManager; import io.cattle.platform.engine.model.ProcessInstanceWrapper; import io.cattle.platform.engine.model.ProcessReference; import io.cattle.platform.engine.model.Trigger; import io.cattle.platform.engine.process.ProcessInstance; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Queue; import java.util.concurrent.ExecutorService; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; public class ProcessServer implements ProcessInstanceExecutor { ScheduledExecutorService scheduledExecutor; ExecutorService blockingExecutor; ExecutorService nonBlockingExecutor; ProcessInstanceExecutor processInstanceExecutor; ProcessManager repository; Cluster cluster; List<Trigger> triggers; Map<String, Queue<Long>> queuedByResource = new HashMap<>(); Map<Long, ProcessReference> refs = new HashMap<>(); Map<String, ProcessInstanceWrapper> inflightByResource = new HashMap<>(); public ProcessServer(ScheduledExecutorService scheduledExecutor, ExecutorService blockingExecutor, ExecutorService nonBlockingExecutor, ProcessInstanceExecutor processInstanceExecutor, ProcessManager repository, Cluster cluster, List<Trigger> triggers) { this.scheduledExecutor = scheduledExecutor; this.blockingExecutor = blockingExecutor; this.nonBlockingExecutor = nonBlockingExecutor; this.processInstanceExecutor = processInstanceExecutor; this.repository = repository; this.cluster = cluster; this.triggers = triggers; } public void runOutstandingJobs() { for (ProcessReference ref : repository.pendingTasks()) { submit(ref); } } public synchronized void submit(ProcessReference ref) { if (ref == null) { return; } if (!isInPartition(ref)) { return; } if (refs.containsKey(ref.getId())) { return; } refs.put(ref.getId(), ref); String resourceKey = ref.getResourceKey(); ProcessInstanceWrapper instance = new ProcessInstanceWrapper(ref, this, getPriority(ref)); submitToExecutor(resourceKey, instance); } protected Integer getPriority(ProcessReference ref) { return 0; } protected boolean isResourceInFlight(String resourceKey, ProcessInstanceWrapper ignore, boolean cancel) { ProcessInstanceWrapper existing = inflightByResource.get(resourceKey); if (existing == null) { return false; } boolean result = existing != ignore; if (result && cancel) { existing.cancel(); } return result; } protected void queueByResource(String resourceKey, ProcessReference ref) { Queue<Long> queue = queuedByResource.get(resourceKey); if (queue == null) { queue = new LinkedBlockingQueue<>(); queuedByResource.put(resourceKey, queue); } queue.add(ref.getId()); } protected synchronized void submitToExecutor(String resourceKey, ProcessInstanceWrapper instance) { if (isResourceInFlight(resourceKey, instance, true)) { queueByResource(resourceKey, instance.getRef()); } else if (isBlocking(instance)) { inflightByResource.put(resourceKey, instance); blockingExecutor.execute(instance); } else { inflightByResource.put(resourceKey, instance); nonBlockingExecutor.execute(instance); } } public synchronized void done(ProcessInstanceWrapper instance) { ProcessReference ref = instance.getRef(); String resourceKey = ref.getResourceKey(); if (instance.isDone()) { inflightByResource.remove(resourceKey); refs.remove(ref.getId()); Queue<Long> queue = queuedByResource.get(resourceKey); if (queue != null) { ProcessReference newRef = refs.get(queue.remove()); if (queue.size() == 0) { queuedByResource.remove(ref.getResourceKey()); } ProcessInstanceWrapper newInstance = new ProcessInstanceWrapper(newRef, this, -1000); submitToExecutor(resourceKey, newInstance); } } else if (instance.isWaiting()) { // Notice that inflightByResource is not cleared on waiting processes, this is to simulate the old behavior of blocking and // waiting for a timeout before running another process. Maybe this can be revisited after more refactoring. instance.onReady(() -> submitToExecutor(resourceKey, instance)); } else { inflightByResource.remove(resourceKey); Date date = instance.getRunAfter(); long after = date == null ? 0 : date.getTime() - System.currentTimeMillis(); if (after < 0) { after = 0; } scheduledExecutor.schedule(() -> submitToExecutor(resourceKey, instance), after, TimeUnit.MILLISECONDS); } } protected boolean isBlocking(ProcessInstanceWrapper instance) { ProcessReference ref = instance.getRef(); if (ArchaiusUtil.getBoolean("process." + ref.getName().split("[.]")[0] + ".blocking").get()) { return true; } return ArchaiusUtil.getBoolean("process." + ref.getName() + ".blocking").get(); } public boolean isInPartition(ProcessReference ref) { return cluster.isInPartition(ref.getAccountId(), ref.getClusterId()); } @Override public io.cattle.platform.engine.process.ProcessInstance execute(long processId) { return processInstanceExecutor.execute(processId); } @Override public io.cattle.platform.engine.process.ProcessInstance resume(io.cattle.platform.engine.process.ProcessInstance instance) { return processInstanceExecutor.resume(instance); } @Override public void cancel(ProcessInstance instance) { processInstanceExecutor.cancel(instance); } public ExecutorService getExecutor() { return nonBlockingExecutor; } }
<gh_stars>10-100 module CarrierWave module Storage class GitHub < File def store!(file) repo = gh.repos(@uploader.user, @uploader.repo) #create a blob with the image contents # blob = repo.git.blobs.create({ :content => Base64.encode64(file.read), :encoding => "base64" }) blob_sha = blob["sha"] upload_path = "#{blob_sha[0,2]}/#{blob_sha[2,32]}/#{SecureRandom.uuid}#{::File.extname file.original_filename}" #get the hidden ref to see if we have a base tree ref = repo.git.refs("huboard/uploads").raw #if we can't find the ref if(ref.status != 200) #create a tree pointing to nothing tree = repo.git.trees.create({ tree: [{ path: upload_path, mode: '100644', type: 'blob', sha: blob["sha"] }] }) #create a new commit commit = repo.git.commits.create({ tree: tree["sha"], message: "uploading #{upload_path}" }) #create a ref ref = repo.git.refs.create({ ref: "refs/huboard/uploads", sha: commit["sha"] }) else parent_commit = ref.body["object"]["sha"] base_tree = repo.git.trees(parent_commit) #create a tree pointing to refs sha tree = repo.git.trees.create({ tree: [{ path: upload_path, mode: '100644', type: 'blob', sha: blob["sha"] }], base_tree: base_tree["sha"]}) #create a new commit commit = repo.git.commits.create({ tree: tree["sha"], message: "uploading #{upload_path}" , parents: [parent_commit]}) #update the ref ref = move_ref(repo, tree, commit) end #retreive the commit information from the ref commit = repo.commits(ref['object']['sha']) CarrierWave::Storage::GitHub::File.new commit['files'].first.to_h end class File def initialize(file) @file = file end def url(options = {}) @file['raw_url'] end end private def move_ref(repo, tree, commit) ref = repo.git.refs("huboard/uploads").patch({ sha: commit["sha"] }) if ref["object"] return ref else parent_commit = repo.git.refs('huboard/uploads')['object']['sha'] commit = repo.git.commits.create({ tree: tree["sha"], message: "merging conflict #{commit['sha']} && #{parent_commit}}" , parents: [parent_commit]}) return move_ref(repo, tree, commit) end end def gh options = { access_token: @uploader.access_token } options[:api_url] = ENV["GITHUB_API_ENDPOINT"] if ENV["GITHUB_API_ENDPOINT"] Ghee.new(options) do |conn| conn.request :retry, max: 4, exceptions: [ Errno::ETIMEDOUT, 'Timeout::Error', Faraday::TimeoutError, Faraday::ConnectionFailed, ] end end end end end
def longestIncreasingSubsequenceLength(array): if len(array) == 0: return 0 result = [1] * len(array) for i in range(len(array)): for j in range(i): if array[i] > array[j] and result[i] < result[j] + 1 : result[i] = result[j]+1 return max(result) array = [1, 0, 5, 4, 3, 2, 6] print(longestIncreasingSubsequenceLength(array))
export default class MyFileHelper { static arrayBufferToBlob(arrayAsString){ let bytes = new Uint8Array(arrayAsString.length); for (let i=0; i<arrayAsString.length; i++){ bytes[i] = arrayAsString.charCodeAt(i); } let blob = new Blob([bytes], {type: "application/pdf"}); return blob; } }
import {AxiosResponse, AxiosError} from 'axios'; import Request from 'utils/api'; const playerServices = { getPlayers: () => new Promise<IPlayerResponse>((resolve, reject) => Request.get('players') .then((response: AxiosResponse<IPlayerResponse>) => response.data) .then(resolve) .catch((error: AxiosError) => JSON.parse(error.request.response)) .then(reject) ), }; export interface IPlayerResponse { response: boolean data: { team: ITeam } } export interface ITeam { forwards: Array<IPlayer> centers: Array<IPlayer> defenses: Array<IPlayer> goalkeepers: Array<IPlayer> coaches: Array<ICoach> } export interface IPlayer { name: string//"Valtencir", first_surname: string//"Gomes", second_surname: string//"<NAME>", birthday: Date | string//"1969-12-26T00:00:00+00:00", birth_place: string//"Sao Paulo, Brasil", weight: number | null//null, height: number | null//null, position: string//"Portero", number: number | null//1, position_short: string//"POR", last_team: string//"Venados FC", image: string//"https://venados.dacodes.mx/img/usr/11cf9270068c47119842f812ae933f78.jpg" } export interface ICoach { name: string//"Valtencir", first_surname: string//"Gomes", second_surname: string//"<NAME>", birthday: Date//"1969-12-26T00:00:00+00:00", birth_place: string//"Sao Paulo, Brasil", weight: number | null//null, height: number | null//null, role: string//"Auxiliar Técnico", role_short: string //"AUX", image: string//"https://venados.dacodes.mx/img/usr/11cf9270068c47119842f812ae933f78.jpg" } export default playerServices;
<gh_stars>1-10 import 'babel-polyfill'; import { logger } from '../../helpers/utils'; import db from '../../config/database'; (async () => { const client = await db.getClient(); try { await client.query('BEGIN'); const insertUser = ` INSERT INTO users( firstname, lastname, othernames, phone_number, email, username, is_admin, password ) VALUES($1, $2, $3, $4, $5, $6, $7, $8) RETURNING id `; const password = <PASSWORD>'; const admin = [ 'James', 'Bond', 'Administrator', '622-132-9223', '<EMAIL>', 'admin', true, password, ]; await client.query(insertUser, admin); const user = [ 'John', 'Doe', 'Bravo', '602-362-9283', '<EMAIL>', 'user123', false, password, ]; const { rows: [row] } = await client.query(insertUser, user); const { id: userId } = row; const insertRecord = ` INSERT INTO records( user_id, type, location, images, videos, title, comment, status ) VALUES($1, $2, $3, $4, $5, $6, $7, $8) RETURNING id `; const record1 = [ userId, 'red-flag', '-42.2078,98.33', [], [], 'Record 1 title', 'Bad roads', 'draft', ]; const record2 = [ userId, 'red-flag', '-33.2078,18.023', [], [], 'Record 2 title', 'Leader tips street thugs', 'under-investigation', ]; const record3 = [ userId, 'intervention', '-45.2078,138.441', [], [], 'Record 3 title', 'Bridge contruction needed', 'resolved', ]; await client.query(insertRecord, record1); await client.query(insertRecord, record2); await client.query(insertRecord, record3); await client.query('COMMIT'); } catch (e) { await client.query('ROLLBACK'); throw e; } finally { client.release(); logger.log('Database seeding completed successfully.'); process.exit(); } })();
10000 3 8 6 5 6 6 6 8 2 6 7 10 5 5 9 8 6 9 8 7 8 8 10 3 7 7 1 10 4 4 8 8 4 3 5 7 9 5 10 2 2 8 3 4 6 8 9 1 2 3 2 10 4 4 5 5 4 1 10 5 6 10 8 4 5 5 9 2 6 3 7 5 7 10 4 4 3 7 10 5 6 7 4 7 8 9 9 8 8 4 2 7 2 1 1 3 8 8 5 9 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9 7 5 9 10 5 1 3 3 2 4 1 3 10 6 4 9 9 8 3 8 9 5 8 9 10 10 3 5 5 3 8 5 5 7 8 1 8 2 7 10 7 10 1 2 7 9 7 4 1 1 7 1 9 8 6 3 5 8 9 8 5 5 1 2 4 10 7 9 10 2 5 5 9 10 7 7 2 8 1 7 3 6 7 7 3 4 5 7 9 10 9 7 8 2 2 7 8 10 4 9 5 5 7 6 8 10 7 7 8 4 7 2 5 10 3 2 1 7 5 4 8 9 1 9 6 8 10 9 9 5 1 9 3 9 1 1 4 1 5 9 9 10 6 3 1 10 6 1 7 6 9 10 1 8 1 8 1 10 6 2 5 4 10 10 2 4 4 9 9 7 10 2 8 9 6 5 10 8 5 2 8 10 10 1 4 8 9 7 8 1 8 4 4 3 1 7 3 6 3 2 2 7 9 8 10 5 1 9 10 4 5 3 7 2 7 7 9 8 5 1 3 4 7 2 1 8 6 5 10 9 1 4 1 8 2 4 10 1 6 10 7 9 4 5 10 2 7 9 10 10 10 6 8 6 5 6 3 7 1 3 6 4 4 5 9 9 7 8 2 1 5 9 6 1 4 9 2 1 1 5 3 10 2 8 10 10 4 8 3 3 2 4 8 6 1 10 3 9 4 7 5 7 1 8 6 3 1 6 10 1 2 6 5 2 10 7 1 4 1 10 8 6 3 10 1 3 8 3 4 7 10 6 7 2 2 7 10 4 7 7 3 3 7 3 1 10 3 1 1 4 3 4 6 8 5 2 2 3 8 1 9 4 10 8 2 3 3 8 9 8 4 2 7 8 4 6 4 8 8 8 10 7 6 9 8 2 6 8 6 7 6 9 8 9 9 7 4 6 3 5 4 4 1 9 4 5 5 8 5 8 1 2 8 1 9 10 10 7 10 5 3 5 5 10 9 8 6 4 7 3 1 4 7 4 2 7 9 5 5 1 8 9 10 6 9 7 5 8 9 9 8 8 3 2 4 3 4 4 10 1 2 2 10 9 7 6 7 9 10 4 5 1 9 3 6
#!/bin/bash aws ec2 describe-security-groups --region ap-northeast-2
<reponame>KKKKKATHY/sit725-2021-t3-prac6 module.exports = { init: require("./initController") }
export { default as AboutUs } from "./AboutUs"; export { default as ActionConfirmation } from "./ActionConfirmation"; export { default as AddCertifications } from "./AddCertifications"; export { default as AddDegree } from "./AddDegree"; export { default as AddSkills } from "./AddSkills"; export { default as AddSocials } from "./AddSocials"; export { default as AddWorkExperiance } from "./AddWorkExperiance"; export { default as ApplyForJob } from "./ApplyForJob"; export { default as AskQuestion } from "./AskQuestion"; export { default as Billing } from "./Billing"; export { default as Blog } from "./Blog"; export { default as BlogArtical } from "./BlogArtical"; export { default as ChangePassword } from "./ChangePassword"; export { default as CoffeeCorner } from "./CoffeeCorner"; export { default as CoffeeCornerDiscussion } from "./CoffeeCornerDiscussion"; export { default as Contact } from "./Contact"; export { default as ContactSuccess } from "./ContactSuccess"; export { default as CustomizedRequirments } from "./CustomizedRequirments"; export { default as DashboardCompany } from "./DashboardCompany"; export { default as DashboardEmployment } from "./DashboardEmployment"; export { default as DashboardFreelancer } from "./DashboardFreelancer"; export { default as Draft } from "./Draft"; export { default as EditCertifications } from "./EditCertifications"; export { default as EditDegree } from "./EditDegree"; export { default as EditProject } from "./EditProject"; export { default as EditSkills } from "./EditSkills"; export { default as EditSocials } from "./EditSocials"; export { default as EditWorkExperiance } from "./EditWorkExperiance"; export { default as EmailVerification } from "./EmailVerification"; export { default as Faq } from "./Faq"; export { default as FaqDetails } from "./FaqDetails"; export { default as ForgotPassword } from "./ForgotPassword"; export { default as HomeCompany } from "./HomeCompany"; export { default as HomeEmployment } from "./HomeEmployment"; export { default as HomeFreelancer } from "./HomeFreelancer"; export { default as HomepageCompany } from "./HomepageCompany"; export { default as HomepageEmployment } from "./HomepageEmployment"; export { default as HomepageFreelancer } from "./HomepageFreelancer"; export { default as Interested } from "./Interested"; export { default as Invoice } from "./Invoice"; export { default as JobPreview } from "./JobPreview"; export { default as JobProjectDetailsCoffeeCorner } from "./JobProjectDetailsCoffeeCorner"; export { default as JobsProjectsApplied } from "./JobsProjectsApplied"; export { default as JobsProjectsDetails } from "./JobsProjectsDetails"; export { default as Login } from "./Login"; export { default as Message } from "./Message"; export { default as Messenger } from "./Messenger"; export { default as Offline } from "./Offline"; export { default as PaymentConfirmation } from "./PaymentConfirmation"; export { default as PaymentProcessingScreen } from "./PaymentProcessingScreen"; export { default as PersonalDetails } from "./PersonalDetails"; export { default as PersonalDetailsPreview } from "./PersonalDetailsPreview"; export { default as PersonelDetailPreviewMessengerUser } from "./PersonelDetailPreviewMessengerUser"; export { default as Plan } from "./Plan"; export { default as PlannedVideoCalls } from "./PlannedVideoCalls"; export { default as Posting } from "./Posting"; export { default as PostingDetails } from "./PostingDetails"; export { default as PostingDetailsContact } from "./PostingDetailsContact"; export { default as PostingDetailsEducation } from "./PostingDetailsEducation"; export { default as PostingDetailsExperiance } from "./PostingDetailsExperiance"; export { default as PostingDetailsProfile } from "./PostingDetailsProfile"; export { default as PostingDetailsProtfolio } from "./PostingDetailsProtfolio"; export { default as PostJob } from "./PostJob"; export { default as PostProject } from "./PostProject"; export { default as PrivacyPolicy } from "./PrivacyPolicy"; export { default as ProfessionalDetails } from "./ProfessionalDetails"; export { default as Profile } from "./Profile"; export { default as RejectRequest } from "./RejectRequest"; export { default as RequestVideoCall } from "./RequestVideoCall"; export { default as SelectWorkTime } from "./SelectWorkTime"; export { default as SetHourlyRate } from "./SetHourlyRate"; export { default as ShareDiscusssion } from "./ShareDiscusssion"; export { default as SignUp } from "./SignUp"; export { default as TermsConditions } from "./TermsConditions"; export { default as UploadProject } from "./UploadProject"; export { default as UserProfile } from "./UserProfile"; export { default as UserProjectPreview } from "./UserProjectPreview"; export { default as UserProjects } from "./UserProjects"; export { default as VideoChat } from "./VideoChat"; export { default as VideoChatContainer } from "./VideoChatContainer";
<filename>src/services/team-approval/team-approval.service.js const assert = require('assert'); const makeDebug = require('debug'); const fp = require('mostly-func'); const { helpers } = require('mostly-feathers-mongoose'); const feeds = require('playing-feed-common'); const defaultHooks = require('./team-approval.hooks'); const debug = makeDebug('playing:team-services:teams/approvals'); const defaultOptions = { name: 'teams/approvals' }; class TeamApprovalService { constructor (options) { this.options = fp.assignAll(defaultOptions, options); this.name = this.options.name; } setup (app) { this.app = app; this.hooks(defaultHooks(this.options)); } /** * List pending team join or role change requests */ async find (params) { const team = params.primary; assert(team && team.id, 'Team is not exists.'); // must be owner of the team if (!fp.idEquals(team.owner, params.user.id)) { throw new Error('Only team owner can list pending requests.'); } // check for pending invitation const svcFeedsActivities = this.app.service('feeds/activities'); return svcFeedsActivities.find({ primary: `notification:${team.owner}`, query: { verb: { $in: ['team.join.request', 'team.roles.request'] }, object: `team:${team.id}`, state: 'PENDING' } }); } /** * Approve team join or role change request */ async patch (id, data, params) { let team = params.primary; assert(team && team.id, 'Team is not exists.'); // must be owner of the team if (!fp.idEquals(team.owner, params.user.id)) { throw new Error('Only owner of the team can approval the request.'); } const svcUsers = this.app.service('users'); const svcUsersGroups = this.app.service('users/groups'); const svcFeedsActivities = this.app.service('feeds/activities'); // check for pending requests const notification = `notification:${params.user.id}`; const activity = await feeds.getPendingActivity(this.app, notification, id); if (!activity) { throw new Error(`No pending request is found: ${id}.`); } // get values from activity const actor = helpers.getId(activity.actor); const roles = activity.roles; assert(actor, 'actor not exists in request activity'); assert(roles, 'roles not exists in request activity'); // get request user const user = await svcUsers.get(actor); if (!user) { throw new Error('Request user is not exists'); } params.locals = { team }; // for notifier switch (activity.verb) { case 'team.join.request': { const groups = fp.map(fp.prop('id'), user.groups); const member = fp.find(fp.idEquals(team.id), groups || []); if (!member) { // add user to team with roles await svcUsersGroups.create({ group: team.id, roles: roles }, { primary: actor, user: params.user }); activity.state = 'ACCEPTED'; await feeds.updateActivityState(this.app, activity); params.locals.activity = activity; } else { activity.state = 'ALREADY'; await feeds.updateActivityState(this.app, activity); params.locals.activity = activity; } break; } case 'team.roles.request': { // update user's roles in team await svcUsersGroups.patch(team.id, { group: team.id, roles: roles }, { primary: actor, user: params.user }); activity.state = 'ACCEPTED'; await feeds.updateActivityState(this.app, activity); params.locals.activity = activity; break; } default: throw new Error(`Unkown activity verb: ${activity.verb}`); } return activity; } /** * Cancel a pending request sent out by the current user */ async remove (id, params) { // reject intead cancel if (params.action === 'reject') { return this.reject(id, params); } // check for pending request sent by current user const feed = `user:${params.user.id}`; const activity = await feeds.getPendingActivity(this.app, feed, id); if (!activity) { throw new Error('No pending request is found for this request id.'); } // cancel from requester's feed activity.state = 'CANCELED'; await feeds.updateActivityState(this.app, activity); return activity; } /** * Reject a pending request */ async reject (id, params) { const team = params.primary; assert(team && team.id, 'Team is not exists.'); // must be owner of the team if (!fp.idEquals(team.owner, params.user.id)) { throw new Error('Only owner of the team can reject the request.'); } // check for pending request in notification of current user const notification = `notification:${params.user.id}`; const activity = await feeds.getPendingActivity(this.app, notification, id); if (!activity) { throw new Error('No pending request is found for this request id.'); } // reject from requester's feed activity.state = 'REJECTED'; await feeds.updateActivityState(this.app, activity); params.locals = { team, activity }; // for notifier return activity; } } module.exports = function init (app, options, hooks) { return new TeamApprovalService(options); }; module.exports.Service = TeamApprovalService;
<reponame>nash-io/neo-go<filename>pkg/smartcontract/manifest/manifest_test.go package manifest import ( "encoding/json" "testing" "github.com/nspcc-dev/neo-go/pkg/crypto/keys" "github.com/nspcc-dev/neo-go/pkg/util" "github.com/stretchr/testify/require" ) // Test vectors are taken from the main NEO repo // https://github.com/neo-project/neo/blob/master/tests/neo.UnitTests/SmartContract/Manifest/UT_ContractManifest.cs#L10 func TestManifest_MarshalJSON(t *testing.T) { t.Run("default", func(t *testing.T) { s := `{"groups":[],"features":{"storage":false,"payable":false},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"safemethods":[],"extra":null}` m := testUnmarshalMarshalManifest(t, s) require.Equal(t, DefaultManifest(util.Uint160{}), m) }) // this vector is missing from original repo t.Run("features", func(t *testing.T) { s := `{"groups":[],"features":{"storage":true,"payable":true},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"safemethods":[],"extra":null}` testUnmarshalMarshalManifest(t, s) }) t.Run("permissions", func(t *testing.T) { s := `{"groups":[],"features":{"storage":false,"payable":false},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"0x0000000000000000000000000000000000000000","methods":["method1","method2"]}],"trusts":[],"safemethods":[],"extra":null}` testUnmarshalMarshalManifest(t, s) }) t.Run("safe methods", func(t *testing.T) { s := `{"groups":[],"features":{"storage":false,"payable":false},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"safemethods":["balanceOf"],"extra":null}` testUnmarshalMarshalManifest(t, s) }) t.Run("trust", func(t *testing.T) { s := `{"groups":[],"features":{"storage":false,"payable":false},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":["0x0000000000000000000000000000000000000001"],"safemethods":[],"extra":null}` testUnmarshalMarshalManifest(t, s) }) t.Run("groups", func(t *testing.T) { s := `{"groups":[{"pubkey":"<KEY>","signature":"QUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQUFBQQ=="}],"supportedstandards":[],"features":{"storage":false,"payable":false},"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"safemethods":[],"extra":null}` testUnmarshalMarshalManifest(t, s) }) t.Run("extra", func(t *testing.T) { s := `{"groups":[],"features":{"storage":false,"payable":false},"supportedstandards":[],"abi":{"hash":"0x0000000000000000000000000000000000000000","methods":[],"events":[]},"permissions":[{"contract":"*","methods":"*"}],"trusts":[],"safemethods":[],"extra":{"key":"value"}}` testUnmarshalMarshalManifest(t, s) }) } func testUnmarshalMarshalManifest(t *testing.T, s string) *Manifest { js := []byte(s) c := NewManifest(util.Uint160{}) require.NoError(t, json.Unmarshal(js, c)) data, err := json.Marshal(c) require.NoError(t, err) require.JSONEq(t, s, string(data)) return c } func TestManifest_CanCall(t *testing.T) { t.Run("safe methods", func(t *testing.T) { man1 := NewManifest(util.Uint160{}) man2 := DefaultManifest(util.Uint160{}) require.False(t, man1.CanCall(man2, "method1")) man2.SafeMethods.Add("method1") require.True(t, man1.CanCall(man2, "method1")) }) t.Run("wildcard permission", func(t *testing.T) { man1 := DefaultManifest(util.Uint160{}) man2 := DefaultManifest(util.Uint160{}) require.True(t, man1.CanCall(man2, "method1")) }) } func TestPermission_IsAllowed(t *testing.T) { manifest := DefaultManifest(util.Uint160{}) t.Run("wildcard", func(t *testing.T) { perm := NewPermission(PermissionWildcard) require.True(t, perm.IsAllowed(manifest, "AAA")) }) t.Run("hash", func(t *testing.T) { perm := NewPermission(PermissionHash, util.Uint160{}) require.True(t, perm.IsAllowed(manifest, "AAA")) t.Run("restrict methods", func(t *testing.T) { perm.Methods.Restrict() require.False(t, perm.IsAllowed(manifest, "AAA")) perm.Methods.Add("AAA") require.True(t, perm.IsAllowed(manifest, "AAA")) }) }) t.Run("invalid hash", func(t *testing.T) { perm := NewPermission(PermissionHash, util.Uint160{1}) require.False(t, perm.IsAllowed(manifest, "AAA")) }) priv, err := keys.NewPrivateKey() require.NoError(t, err) manifest.Groups = []Group{{PublicKey: priv.PublicKey()}} t.Run("group", func(t *testing.T) { perm := NewPermission(PermissionGroup, priv.PublicKey()) require.True(t, perm.IsAllowed(manifest, "AAA")) }) t.Run("invalid group", func(t *testing.T) { priv2, err := keys.NewPrivateKey() require.NoError(t, err) perm := NewPermission(PermissionGroup, priv2.PublicKey()) require.False(t, perm.IsAllowed(manifest, "AAA")) }) } func TestIsValid(t *testing.T) { contractHash := util.Uint160{1, 2, 3} m := NewManifest(contractHash) t.Run("valid, no groups", func(t *testing.T) { require.True(t, m.IsValid(contractHash)) }) t.Run("invalid, no groups", func(t *testing.T) { require.False(t, m.IsValid(util.Uint160{9, 8, 7})) }) t.Run("with groups", func(t *testing.T) { m.Groups = make([]Group, 3) pks := make([]*keys.PrivateKey, 3) for i := range pks { pk, err := keys.NewPrivateKey() require.NoError(t, err) pks[i] = pk m.Groups[i] = Group{ PublicKey: pk.PublicKey(), Signature: pk.Sign(contractHash.BytesBE()), } } t.Run("valid", func(t *testing.T) { require.True(t, m.IsValid(contractHash)) }) t.Run("invalid, wrong contract hash", func(t *testing.T) { require.False(t, m.IsValid(util.Uint160{4, 5, 6})) }) t.Run("invalid, wrong group signature", func(t *testing.T) { pk, err := keys.NewPrivateKey() require.NoError(t, err) m.Groups = append(m.Groups, Group{ PublicKey: pk.PublicKey(), // actually, there shouldn't be such situation, as Signature is always the signature // of the contract hash. Signature: pk.Sign([]byte{1, 2, 3}), }) require.False(t, m.IsValid(contractHash)) }) }) }
The code will need to be changed to: s = “I like programming” s = s[0] This will make the code work properly as it will assign the value of the first character in the string to the variable s, instead of 's[0]' which is not valid syntax.