hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3ce1874797f955e0861f0ec1dfc943c5714b8253 | 6,192 | py | Python | utils.py | kalpetros/greek-dictionary | 962f36c299cbb46ffce9c7f78db7c9e513269499 | [
"MIT"
] | 3 | 2021-04-27T16:39:12.000Z | 2021-11-17T02:15:13.000Z | utils.py | kalpetros/greek-dictionary | 962f36c299cbb46ffce9c7f78db7c9e513269499 | [
"MIT"
] | null | null | null | utils.py | kalpetros/greek-dictionary | 962f36c299cbb46ffce9c7f78db7c9e513269499 | [
"MIT"
] | 1 | 2021-06-15T23:57:44.000Z | 2021-06-15T23:57:44.000Z | import click
import os
import requests
import shutil
import sys
import time
from bs4 import BeautifulSoup
alphabet = [
{
'letter': 'Α',
'pages': 31660
},
{
'letter': 'Β',
'pages': 5050
},
{
'letter': 'Γ',
'pages': 5890
},
{
'letter':... | 18.211765 | 97 | 0.439599 | 670 | 6,192 | 4.026866 | 0.346269 | 0.023721 | 0.013343 | 0.020756 | 0.159377 | 0.142328 | 0.083766 | 0.022239 | 0 | 0 | 0 | 0.028378 | 0.379683 | 6,192 | 339 | 98 | 18.265487 | 0.674043 | 0.056363 | 0 | 0.106299 | 0 | 0.003937 | 0.20179 | 0.019302 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03937 | false | 0 | 0.027559 | 0 | 0.110236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ce959e8fac079b9e0e0bacc34e00bde93edb83c | 1,937 | py | Python | Log1/HiPyQt3/HiPyQt38QTableWidget.py | codenara/PyQt1 | 1550920577188e4d318b47fc69ba5ee243092d88 | [
"MIT"
] | null | null | null | Log1/HiPyQt3/HiPyQt38QTableWidget.py | codenara/PyQt1 | 1550920577188e4d318b47fc69ba5ee243092d88 | [
"MIT"
] | null | null | null | Log1/HiPyQt3/HiPyQt38QTableWidget.py | codenara/PyQt1 | 1550920577188e4d318b47fc69ba5ee243092d88 | [
"MIT"
] | null | null | null | # HiPyQt version 3.8
# use QTableWidget
# use QCheckBox
# use QPushButton
import sys
from PyQt5.QtWidgets import *
class MyWindow(QMainWindow):
def __init__(self):
super().__init__()
self.setWindowTitle("Hi PyQt")
self.setGeometry(50, 50, 400, 300)
# QTableWidget
self.tab... | 32.283333 | 97 | 0.674239 | 187 | 1,937 | 6.877005 | 0.42246 | 0.163297 | 0.068429 | 0.03577 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.033619 | 0.21683 | 1,937 | 59 | 98 | 32.830508 | 0.814107 | 0.06763 | 0 | 0 | 0 | 0 | 0.030067 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.075 | false | 0 | 0.05 | 0 | 0.15 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cea6fdbaa10d4f4a87f24213944a946b586b65c | 1,346 | py | Python | predictor.py | abhayraw1/crnn.pytorch | 307f2dbf8163148d165ef15cdd522c7c137041e4 | [
"MIT"
] | null | null | null | predictor.py | abhayraw1/crnn.pytorch | 307f2dbf8163148d165ef15cdd522c7c137041e4 | [
"MIT"
] | null | null | null | predictor.py | abhayraw1/crnn.pytorch | 307f2dbf8163148d165ef15cdd522c7c137041e4 | [
"MIT"
] | null | null | null | import torch
from torch.autograd import Variable
from . import utils
from . import dataset
from PIL import Image
from pathlib import Path
from . import crnn
model_path = Path(__file__).parent/'data/crnn.pth'
alphabet = '0123456789abcdefghijklmnopqrstuvwxyz'
model = crnn.CRNN(32, 1, 37, 256)
if torch.cuda.is_availabl... | 28.041667 | 71 | 0.696137 | 188 | 1,346 | 4.861702 | 0.37234 | 0.054705 | 0.02954 | 0.028446 | 0.14442 | 0.09628 | 0.09628 | 0.09628 | 0.09628 | 0 | 0 | 0.029864 | 0.179049 | 1,346 | 47 | 72 | 28.638298 | 0.797285 | 0.034175 | 0 | 0.055556 | 0 | 0 | 0.063223 | 0.027756 | 0 | 0 | 0 | 0 | 0.027778 | 1 | 0.027778 | false | 0 | 0.194444 | 0 | 0.25 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3ced3da168b0c4d5fb8345ab35a6e8f79cade777 | 2,951 | py | Python | src/graph_transpiler/webdnn/backend/webgl/kernels/split_axis.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | 1 | 2018-07-26T13:52:21.000Z | 2018-07-26T13:52:21.000Z | src/graph_transpiler/webdnn/backend/webgl/kernels/split_axis.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | src/graph_transpiler/webdnn/backend/webgl/kernels/split_axis.py | gunpowder78/webdnn | c659ea49007f91d178ce422a1eebe289516a71ee | [
"MIT"
] | null | null | null | from typing import List, Sequence
from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector
from webdnn.backend.webgl.attributes.channel_mode import ChannelMode, ChannelModeEnum
from webdnn.backend.webgl.generator import WebGLDescriptorGenerator
from webdnn.backend.webgl.kernel import... | 32.788889 | 127 | 0.686208 | 382 | 2,951 | 5.044503 | 0.253927 | 0.060716 | 0.052932 | 0.057084 | 0.167618 | 0.062273 | 0.021796 | 0.021796 | 0 | 0 | 0 | 0.011849 | 0.199254 | 2,951 | 89 | 128 | 33.157303 | 0.803639 | 0 | 0 | 0 | 0 | 0 | 0.280583 | 0.036937 | 0 | 0 | 0 | 0 | 0.044776 | 1 | 0.029851 | false | 0 | 0.119403 | 0 | 0.179104 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cedde962258fae75ef3400a99dada61c8a82bd1 | 1,244 | py | Python | systemstat.py | asl97/asl97-i3bar-status-spacer | 83245582cf8973b0d128b5ed806e776e00960c5e | [
"MIT"
] | null | null | null | systemstat.py | asl97/asl97-i3bar-status-spacer | 83245582cf8973b0d128b5ed806e776e00960c5e | [
"MIT"
] | null | null | null | systemstat.py | asl97/asl97-i3bar-status-spacer | 83245582cf8973b0d128b5ed806e776e00960c5e | [
"MIT"
] | null | null | null | import time
import psutil
def _parsesendrecv(interface, new, old):
up = max(new[interface].bytes_sent - old[interface].bytes_sent, -1)
down = max(new[interface].bytes_recv - old[interface].bytes_recv, -1)
return up, down
class _netlink:
def __init__(self):
self.old = psutil.net_io_counters(per... | 28.272727 | 73 | 0.549035 | 157 | 1,244 | 4.22293 | 0.426752 | 0.084465 | 0.075415 | 0.060332 | 0.087481 | 0.087481 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.31672 | 1,244 | 43 | 74 | 28.930233 | 0.76 | 0 | 0 | 0.054054 | 0 | 0 | 0.039389 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.162162 | false | 0 | 0.054054 | 0.054054 | 0.378378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cefbde68b0741c1883ec538b390be6d177b8949 | 18,044 | py | Python | tests/test_net.py | ciubecca/kalasanty | df99f6814f073f2fb0fbd271d2fbfccb209c4b45 | [
"BSD-3-Clause"
] | 1 | 2021-10-19T16:59:31.000Z | 2021-10-19T16:59:31.000Z | tests/test_net.py | ciubecca/kalasanty | df99f6814f073f2fb0fbd271d2fbfccb209c4b45 | [
"BSD-3-Clause"
] | null | null | null | tests/test_net.py | ciubecca/kalasanty | df99f6814f073f2fb0fbd271d2fbfccb209c4b45 | [
"BSD-3-Clause"
] | 1 | 2021-10-20T13:05:56.000Z | 2021-10-20T13:05:56.000Z | import os
import numpy as np
import h5py
import tempfile
import pytest
from keras import backend as K
from keras.layers import Input, Convolution3D, concatenate
from keras.models import Model
from keras.optimizers import Adam
import pybel
from tfbio.data import Featurizer
from kalasanty.net import dice_np, dice,... | 39.483589 | 92 | 0.63323 | 2,383 | 18,044 | 4.624423 | 0.117919 | 0.034301 | 0.041924 | 0.033031 | 0.630581 | 0.579583 | 0.524864 | 0.465699 | 0.445009 | 0.409074 | 0 | 0.024901 | 0.232155 | 18,044 | 456 | 93 | 39.570175 | 0.77048 | 0.00061 | 0 | 0.381616 | 0 | 0 | 0.090012 | 0 | 0 | 0 | 0 | 0 | 0.116992 | 1 | 0.052925 | false | 0 | 0.036212 | 0 | 0.089136 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf130cd62278bdee384dab7ff29ec047f8b848a | 2,256 | py | Python | tests/test_bash_runner.py | rtmigo/svet | 06f9c5be7706351c2ef93fae0f9fa97ee69593f7 | [
"BSD-3-Clause"
] | 5 | 2021-05-18T19:55:22.000Z | 2022-03-07T20:52:19.000Z | tests/test_bash_runner.py | rtmigo/vien | 06f9c5be7706351c2ef93fae0f9fa97ee69593f7 | [
"BSD-3-Clause"
] | null | null | null | tests/test_bash_runner.py | rtmigo/vien | 06f9c5be7706351c2ef93fae0f9fa97ee69593f7 | [
"BSD-3-Clause"
] | 1 | 2021-05-23T04:04:29.000Z | 2021-05-23T04:04:29.000Z | # SPDX-FileCopyrightText: (c) 2021 Artëm IG <github.com/rtmigo>
# SPDX-License-Identifier: BSD-3-Clause
import unittest
from pathlib import Path
from tempfile import TemporaryDirectory
from timeit import default_timer as timer
from tests.common import is_posix
from vien._bash_runner import *
from tests.time_limited ... | 37.6 | 79 | 0.624113 | 291 | 2,256 | 4.597938 | 0.443299 | 0.03139 | 0.06278 | 0.044843 | 0.218236 | 0.218236 | 0.207025 | 0.178625 | 0.178625 | 0.178625 | 0 | 0.011664 | 0.277926 | 2,256 | 59 | 80 | 38.237288 | 0.809699 | 0.113032 | 0 | 0.222222 | 0 | 0 | 0.104418 | 0.035141 | 0 | 0 | 0 | 0 | 0.177778 | 1 | 0.088889 | false | 0 | 0.155556 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf1aac57cec16e9686acb6784d6d3e00f8dc890 | 8,825 | py | Python | adversarial/train_adversarial.py | liguge/Conditional-Adversarial-Domain-Generalization-with-Single-Discriminator | e0f2cd042e2c124e73d2982af28fa270263180d8 | [
"MIT"
] | 1 | 2022-01-16T03:21:18.000Z | 2022-01-16T03:21:18.000Z | adversarial/train_adversarial.py | liguge/Conditional-Adversarial-Domain-Generalization-with-Single-Discriminator | e0f2cd042e2c124e73d2982af28fa270263180d8 | [
"MIT"
] | 1 | 2022-03-29T10:50:48.000Z | 2022-03-30T07:14:56.000Z | adversarial/train_adversarial.py | hectorLop/Conditional-Adversarial-Domain-Generalization-with-Single-Discriminator | e0f2cd042e2c124e73d2982af28fa270263180d8 | [
"MIT"
] | 2 | 2022-01-16T03:21:54.000Z | 2022-03-10T01:17:12.000Z | from typing import Dict, List, Tuple
import torch
import numpy as np
import argparse
from torch import nn
import yaml
import pandas as pd
from sklearn.metrics import roc_auc_score
from adversarial.adversarial import AdversarialNetwork, Classifier, Discriminator
from adversarial.dataset import (
AdversarialDataset,... | 33.942308 | 136 | 0.566799 | 962 | 8,825 | 4.95842 | 0.177755 | 0.022642 | 0.03522 | 0.01761 | 0.313417 | 0.272537 | 0.216352 | 0.207547 | 0.207547 | 0.17065 | 0 | 0.008205 | 0.33711 | 8,825 | 260 | 137 | 33.942308 | 0.807179 | 0.041813 | 0 | 0.255556 | 0 | 0.011111 | 0.047334 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.072222 | 0 | 0.122222 | 0.044444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf1f4f9c94b916e1af4be610a5cfc8f880bc37a | 18,425 | py | Python | generate_md.py | wzyjerry/EPO-patent-process | 686c0ea6d9122436071c809a238b8348cdf65120 | [
"MIT"
] | null | null | null | generate_md.py | wzyjerry/EPO-patent-process | 686c0ea6d9122436071c809a238b8348cdf65120 | [
"MIT"
] | null | null | null | generate_md.py | wzyjerry/EPO-patent-process | 686c0ea6d9122436071c809a238b8348cdf65120 | [
"MIT"
] | null | null | null | def trans_date(field: dict) -> str:
text = str(field['date'])
return '%s.%s.%s' % (text[6:], text[4:6], text[:4])
def trans_4xx(field: dict, lang: str) -> str:
text = str(field['bnum'])
return '%s %s %s/%s' % (trans_date(field), labels['bulletin'][lang], text[:4], text[4:])
def trans_ipc(field... | 39.623656 | 153 | 0.48711 | 2,109 | 18,425 | 4.220009 | 0.157895 | 0.077303 | 0.034382 | 0.013596 | 0.346629 | 0.279213 | 0.238427 | 0.205281 | 0.182022 | 0.182022 | 0 | 0.084032 | 0.314084 | 18,425 | 464 | 154 | 39.709052 | 0.620193 | 0.003256 | 0 | 0.174779 | 0 | 0.002212 | 0.310533 | 0.011655 | 0 | 0 | 0 | 0.002155 | 0 | 1 | 0.019912 | false | 0 | 0 | 0 | 0.048673 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf5831f266719f857798ff19bb7f65e432caf03 | 710 | py | Python | Python/287. FindTheDuplicateNumber.py | RaymondWaterlooLi/LeetCode-Solutions | 7973d2838b114f1dffc29f436fb660a96b51f660 | [
"MIT"
] | 263 | 2020-10-05T18:47:29.000Z | 2022-03-31T19:44:46.000Z | Python/287. FindTheDuplicateNumber.py | RaymondWaterlooLi/LeetCode-Solutions | 7973d2838b114f1dffc29f436fb660a96b51f660 | [
"MIT"
] | 1,264 | 2020-10-05T18:13:05.000Z | 2022-03-31T23:16:35.000Z | Python/287. FindTheDuplicateNumber.py | RaymondWaterlooLi/LeetCode-Solutions | 7973d2838b114f1dffc29f436fb660a96b51f660 | [
"MIT"
] | 760 | 2020-10-05T18:22:51.000Z | 2022-03-29T06:06:20.000Z | #Given an array of integers nums containing n + 1 integers where each integer is in the range [1, n] inclusive.
#There is only one duplicate number in nums, return this duplicate number.
class Solution(object):
def findDuplicate(self, nums):
#Traversing the list using for loop
s = sorted(nums) ... | 37.368421 | 111 | 0.539437 | 101 | 710 | 3.792079 | 0.524752 | 0.065274 | 0.031332 | 0.036554 | 0.067885 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02 | 0.366197 | 710 | 18 | 112 | 39.444444 | 0.831111 | 0.384507 | 0 | 0.142857 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0 | 0 | 0.214286 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf74e26261f13d85a64a42ef32a7fccd8ef0a55 | 2,484 | py | Python | utils/evaluate_annotation.py | cltl-students/hamersma-agression-causes | 11cbfd94031a0a3c84a27afa20d8a539acdab609 | [
"MIT"
] | null | null | null | utils/evaluate_annotation.py | cltl-students/hamersma-agression-causes | 11cbfd94031a0a3c84a27afa20d8a539acdab609 | [
"MIT"
] | null | null | null | utils/evaluate_annotation.py | cltl-students/hamersma-agression-causes | 11cbfd94031a0a3c84a27afa20d8a539acdab609 | [
"MIT"
] | null | null | null | import pandas as pd
from sklearn.metrics import cohen_kappa_score, confusion_matrix
import os
import seaborn as sns
import matplotlib.pyplot as plt
import numpy as np
dirname = os.path.dirname(__file__)
def extract_annotations(files):
'''Function that takes a file with the annotations as input and extra... | 39.428571 | 119 | 0.686393 | 326 | 2,484 | 5.055215 | 0.398773 | 0.018204 | 0.018204 | 0.018204 | 0.019417 | 0.019417 | 0 | 0 | 0 | 0 | 0 | 0.036272 | 0.200886 | 2,484 | 63 | 120 | 39.428571 | 0.793955 | 0.178341 | 0 | 0 | 0 | 0 | 0.137789 | 0.037018 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069767 | false | 0 | 0.139535 | 0 | 0.232558 | 0.069767 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cf9d103d47dd847c7bbdc09c8f10bae634a2961 | 20,459 | py | Python | src/astrild/particles/halo.py | Christovis/wys-ars | bb15f2d392842f9b32de12b5db5c86079bc97105 | [
"MIT"
] | 3 | 2021-07-27T14:45:58.000Z | 2022-01-31T21:09:46.000Z | src/astrild/particles/halo.py | Christovis/wys-ars | bb15f2d392842f9b32de12b5db5c86079bc97105 | [
"MIT"
] | 1 | 2021-11-03T10:47:45.000Z | 2021-11-03T10:47:45.000Z | src/astrild/particles/halo.py | Christovis/wys-ars | bb15f2d392842f9b32de12b5db5c86079bc97105 | [
"MIT"
] | 1 | 2021-11-03T10:17:34.000Z | 2021-11-03T10:17:34.000Z | import os
from gc import collect
from pathlib import Path
from typing import List, Optional, Tuple, Type, Union
from importlib import import_module
import yaml
import numpy as np
import pandas as pd
from sklearn.neighbors import BallTree
#from halotools.mock_observables import tpcf_multipole
from astrild.particles.e... | 34.853492 | 92 | 0.525783 | 2,172 | 20,459 | 4.777624 | 0.16989 | 0.015611 | 0.020815 | 0.00848 | 0.511709 | 0.465549 | 0.399923 | 0.373518 | 0.357136 | 0.331117 | 0 | 0.0081 | 0.360379 | 20,459 | 586 | 93 | 34.912969 | 0.784885 | 0.29762 | 0 | 0.286195 | 0 | 0 | 0.091823 | 0.012478 | 0 | 0 | 0 | 0.001706 | 0.003367 | 1 | 0.050505 | false | 0.003367 | 0.053872 | 0 | 0.148148 | 0.020202 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cfcd1fb4a8c9717754df6618804de4a66eaa349 | 5,475 | py | Python | notebooks/working/_02_tb-Demo-visual-marginal-independence-tests.py | hassanobeid1994/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | null | null | null | notebooks/working/_02_tb-Demo-visual-marginal-independence-tests.py | hassanobeid1994/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | 89 | 2020-02-10T02:52:11.000Z | 2020-06-23T03:50:27.000Z | notebooks/working/_02_tb-Demo-visual-marginal-independence-tests.py | hassan-obeid/tr_b_causal_2020 | 1ffaeb7dcefccf5e1f24c459e9a2f140b2a052a5 | [
"MIT"
] | null | null | null | # ---
# jupyter:
# jupytext:
# formats: ipynb,py,md
# text_representation:
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.4.2
# kernelspec:
# display_name: Python 3
# language: python
# name: python3
# ---
# # Purpose
# The point of th... | 30.586592 | 302 | 0.715982 | 865 | 5,475 | 4.342197 | 0.338728 | 0.00852 | 0.009585 | 0.007455 | 0.135517 | 0.096113 | 0.038072 | 0.029286 | 0 | 0 | 0 | 0.033028 | 0.181553 | 5,475 | 178 | 303 | 30.758427 | 0.805177 | 0.47726 | 0 | 0.183908 | 0 | 0 | 0.085038 | 0.026552 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.091954 | 0 | 0.091954 | 0.011494 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cfd1eff7aa3274bf5ba215dcc74c84bcd761113 | 1,799 | py | Python | Labs/Lab-4.0 WiFi/5_wifi_logging.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | 4 | 2018-04-28T13:43:20.000Z | 2021-03-11T16:10:35.000Z | Labs/Lab-4.0 WiFi/5_wifi_logging.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | null | null | null | Labs/Lab-4.0 WiFi/5_wifi_logging.py | Josverl/MicroPython-Bootcamp | 29f5ccc9768fbea621029dcf6eea9c91ff84c1d5 | [
"MIT"
] | null | null | null | # import the network module
# This module provides access to various network related functions and classes.
# https://github.com/loboris/MicroPython_ESP32_psRAM_LoBo/wiki/network
import network,utime #pylint: disable=import-error
# ----------------------------------------------------------
# Define callback function... | 24.986111 | 81 | 0.568093 | 226 | 1,799 | 4.469027 | 0.588496 | 0.011881 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048849 | 0.203446 | 1,799 | 71 | 82 | 25.338028 | 0.655967 | 0.423013 | 0 | 0.071429 | 0 | 0 | 0.231144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.035714 | 0 | 0.071429 | 0.178571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cfd92551f129b14e3271b5e4699d932dae50065 | 681 | py | Python | medium/1282.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | medium/1282.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | medium/1282.py | nkwib/leetcode | 73f7492ba208417d8bf8340b6bf9dc68a6ded7f7 | [
"MIT"
] | null | null | null | from typing import List
class Solution:
def groupThePeople(self, groupSizes: List[int]) -> List[List[int]]:
def slice_per(source, step):
for i in range(0, len(source), step):
yield source[i:i + step]
groups = {}
res = []
for index, person in enumerate(g... | 32.428571 | 71 | 0.565345 | 91 | 681 | 4.208791 | 0.450549 | 0.015666 | 0.062663 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.031381 | 0.298091 | 681 | 21 | 72 | 32.428571 | 0.769874 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.117647 | false | 0 | 0.058824 | 0 | 0.294118 | 0.058824 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
3cff24ff2a3befb7112dd8c73ae11e32acd5099b | 1,576 | py | Python | Code/Data_Collection/Web_Scraping/job_scraping/job_scraping/scrapy_crawler.py | gilnribeiro/Work-Project | 15ad906ef5e757daed1df9c7547e5703ad496930 | [
"MIT"
] | 1 | 2022-01-31T11:31:04.000Z | 2022-01-31T11:31:04.000Z | Code/Data_Collection/Web_Scraping/job_scraping/job_scraping/scrapy_crawler.py | gilnribeiro/Work-Project | 15ad906ef5e757daed1df9c7547e5703ad496930 | [
"MIT"
] | null | null | null | Code/Data_Collection/Web_Scraping/job_scraping/job_scraping/scrapy_crawler.py | gilnribeiro/Work-Project | 15ad906ef5e757daed1df9c7547e5703ad496930 | [
"MIT"
] | null | null | null | # Import spiders
from .spiders.bons_empregos import BonsEmpregosSpider
from .spiders.cargadetrabalhos import CargaDeTrabalhosSpider
from .spiders.emprego_org import EmpregoOrgSpider
from .spiders.emprego_xl import EmpregoXlSpider
from .spiders.net_empregos import NetEmpregosSpider
from twisted.internet import reactor,... | 34.26087 | 84 | 0.741751 | 183 | 1,576 | 6.218579 | 0.415301 | 0.067663 | 0.092267 | 0.094903 | 0.123023 | 0.123023 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166244 | 1,576 | 46 | 85 | 34.26087 | 0.866058 | 0.106599 | 0 | 0 | 0 | 0 | 0.146724 | 0.029915 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.28125 | 0 | 0.34375 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70095a05438f3493dabb7b856707d3589d2cc37 | 2,302 | py | Python | sentiment/train/management/commands/train.py | mnvx/sentiment | b24fad4cfc67b0b443e8ab93b08ac1dbcb095a7c | [
"MIT"
] | null | null | null | sentiment/train/management/commands/train.py | mnvx/sentiment | b24fad4cfc67b0b443e8ab93b08ac1dbcb095a7c | [
"MIT"
] | null | null | null | sentiment/train/management/commands/train.py | mnvx/sentiment | b24fad4cfc67b0b443e8ab93b08ac1dbcb095a7c | [
"MIT"
] | null | null | null | import configparser
import csv
from django.core.management.base import BaseCommand
import logging
import os
from ....common.catalog.sentiment_type import SentimentType
from ....common.catalog.source import Source
class Command(BaseCommand):
help = 'Train the sentiment classifier'
def add_arguments(self, pars... | 34.878788 | 93 | 0.591659 | 255 | 2,302 | 5.286275 | 0.34902 | 0.038576 | 0.04451 | 0.037834 | 0.281899 | 0.20178 | 0.123145 | 0.123145 | 0.123145 | 0.123145 | 0 | 0 | 0.290182 | 2,302 | 66 | 94 | 34.878788 | 0.824969 | 0 | 0 | 0.263158 | 0 | 0 | 0.158923 | 0.009119 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035088 | false | 0 | 0.122807 | 0 | 0.245614 | 0.017544 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70361c3e3b8431100d15650b5da10d40acb287d | 504 | py | Python | appzoo/utils/log/__init__.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | 5 | 2020-11-05T12:13:45.000Z | 2021-11-19T12:26:49.000Z | appzoo/utils/log/__init__.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | null | null | null | appzoo/utils/log/__init__.py | streamlit-badge-bot/AppZoo | 86547fdc5209fa137b0a6384d63e92f263c1e160 | [
"MIT"
] | 3 | 2020-11-23T23:06:34.000Z | 2021-04-18T02:12:40.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Project : tql-App.
# @File : __init__.py
# @Time : 2019-12-10 17:24
# @Author : yuanjie
# @Email : yuanjie@xiaomi.com
# @Software : PyCharm
# @Description :
from loguru import logger
trace = logger.add('runtime_{time}.log', rota... | 21.913043 | 80 | 0.571429 | 64 | 504 | 4.296875 | 0.875 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.064865 | 0.265873 | 504 | 23 | 81 | 21.913043 | 0.678378 | 0.450397 | 0 | 0 | 0 | 0 | 0.231343 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.111111 | 0 | 0.333333 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a704ebb77dcf3890670eefaa40d9424024056adf | 1,850 | py | Python | beast/tools/run/helper_functions.py | galaxyumi/beast | f5ce89d73c88ce481b04fc31a8c099c9c19041fb | [
"BSD-3-Clause"
] | 21 | 2017-03-18T13:46:06.000Z | 2022-02-21T16:02:10.000Z | beast/tools/run/helper_functions.py | galaxyumi/beast | f5ce89d73c88ce481b04fc31a8c099c9c19041fb | [
"BSD-3-Clause"
] | 673 | 2017-03-12T23:39:28.000Z | 2022-03-17T14:07:38.000Z | beast/tools/run/helper_functions.py | galaxyumi/beast | f5ce89d73c88ce481b04fc31a8c099c9c19041fb | [
"BSD-3-Clause"
] | 36 | 2017-03-18T18:00:35.000Z | 2021-09-22T06:35:55.000Z | # other imports
from multiprocessing import Pool
def subcatalog_fname(full_cat_fname, source_density, sub_source_density):
"""
Return the name of a sub-catalog
Parameters
----------
full_cat_fname : string
name of the photometry catalog
source_density : string
the current sou... | 21.511628 | 94 | 0.621081 | 229 | 1,850 | 4.886463 | 0.379913 | 0.09294 | 0.032172 | 0.02681 | 0.051832 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003788 | 0.286486 | 1,850 | 85 | 95 | 21.764706 | 0.843939 | 0.521081 | 0 | 0.105263 | 0 | 0 | 0.036466 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.052632 | 0 | 0.315789 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70572ac4f62a9762d70dcd70a9fd3e4dc437ab3 | 2,621 | py | Python | experiments/sparse_sparsity_fixed_results.py | Remi-Boutin/sparsebm | 5979eafff99d59a3b6edac586ee5658529763402 | [
"MIT"
] | 1 | 2021-09-22T23:25:25.000Z | 2021-09-22T23:25:25.000Z | experiments/sparse_sparsity_fixed_results.py | Remi-Boutin/sparsebm | 5979eafff99d59a3b6edac586ee5658529763402 | [
"MIT"
] | null | null | null | experiments/sparse_sparsity_fixed_results.py | Remi-Boutin/sparsebm | 5979eafff99d59a3b6edac586ee5658529763402 | [
"MIT"
] | 1 | 2021-09-08T13:25:15.000Z | 2021-09-08T13:25:15.000Z | from matplotlib import rc
# rc("text", usetex=True)
import matplotlib
# font = {"size": 14}
# matplotlib.rc("font", **font)
import numpy as np
import matplotlib.pyplot as plt
import glob
import pickle
import time
import matplotlib.colors as mcolors
dataset_files = glob.glob("./experiments/results/sparsity_fixed/*.... | 26.474747 | 78 | 0.649752 | 385 | 2,621 | 4.212987 | 0.296104 | 0.083231 | 0.088779 | 0.086313 | 0.459926 | 0.321825 | 0.278668 | 0.1418 | 0.098644 | 0.098644 | 0 | 0.022118 | 0.189241 | 2,621 | 98 | 79 | 26.744898 | 0.741176 | 0.149943 | 0 | 0.088235 | 0 | 0 | 0.139819 | 0.053394 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.132353 | 0 | 0.132353 | 0.014706 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70af31dd713880205073e138c1e10e6d9d8591d | 4,236 | py | Python | SerialController/Camera.py | Moi-poke/Poke-Controller-temp | b632f55eb6e5adc0f85f2ba6ef59c1230a5d5606 | [
"MIT"
] | 3 | 2021-04-23T06:30:36.000Z | 2022-01-04T09:10:25.000Z | SerialController/Camera.py | Moi-poke/Poke-Controller-temp | b632f55eb6e5adc0f85f2ba6ef59c1230a5d5606 | [
"MIT"
] | 1 | 2022-01-04T06:33:11.000Z | 2022-01-04T06:33:11.000Z | SerialController/Camera.py | Moi-poke/Poke-Controller-temp | b632f55eb6e5adc0f85f2ba6ef59c1230a5d5606 | [
"MIT"
] | 6 | 2021-10-03T05:42:50.000Z | 2022-03-15T00:29:09.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
import cv2
import datetime
import os
import numpy as np
from logging import getLogger, DEBUG, NullHandler
def imwrite(filename, img, params=None):
_logger = getLogger(__name__)
_logger.addHandler(NullHandler())
_logger.setLevel(DEBUG)
_logg... | 33.09375 | 77 | 0.553824 | 516 | 4,236 | 4.389535 | 0.251938 | 0.07947 | 0.05298 | 0.028256 | 0.234879 | 0.180574 | 0.147461 | 0.082561 | 0.082561 | 0.064459 | 0 | 0.021314 | 0.335458 | 4,236 | 127 | 78 | 33.354331 | 0.783304 | 0.061615 | 0 | 0.171717 | 0 | 0 | 0.094271 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.070707 | false | 0.010101 | 0.050505 | 0 | 0.191919 | 0.050505 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70ebc7cdf0e76c3a3a02437342d60d6be4b5d1f | 4,513 | py | Python | test/test_cli.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | null | null | null | test/test_cli.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | 2 | 2021-02-05T18:58:23.000Z | 2021-02-14T15:23:46.000Z | test/test_cli.py | Datateer/upload-agent | 4684bcf902d6c54baefb08446252a69612bf15a0 | [
"MIT"
] | null | null | null | import os
from pathlib import Path
from unittest.mock import patch
from click.testing import CliRunner
import pytest
from datateer.upload_agent.main import cli
from datateer.upload_agent.config import load_config, save_config, save_feed
import datateer.upload_agent.constants as constants
@pytest.fixture
def runner... | 41.40367 | 132 | 0.734766 | 636 | 4,513 | 5.022013 | 0.13522 | 0.082655 | 0.095805 | 0.068879 | 0.599249 | 0.539449 | 0.493112 | 0.424546 | 0.419224 | 0.381027 | 0 | 0.00228 | 0.125194 | 4,513 | 108 | 133 | 41.787037 | 0.806738 | 0.014181 | 0 | 0.346154 | 0 | 0 | 0.32081 | 0.178178 | 0 | 0 | 0 | 0 | 0.307692 | 1 | 0.141026 | false | 0 | 0.102564 | 0.012821 | 0.25641 | 0.102564 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a70f8fbd9aef0f039b565e8b5e5bf81d26036760 | 14,899 | py | Python | modron/characters.py | WardLT/play-by-post-helper | 26df681f2a28510f88e552be628910e4e5fe57bb | [
"MIT"
] | null | null | null | modron/characters.py | WardLT/play-by-post-helper | 26df681f2a28510f88e552be628910e4e5fe57bb | [
"MIT"
] | 13 | 2020-04-08T02:56:58.000Z | 2020-10-04T21:52:43.000Z | modron/characters.py | WardLT/play-by-post-helper | 26df681f2a28510f88e552be628910e4e5fe57bb | [
"MIT"
] | null | null | null | """Saving and using information about characters"""
import json
import os
from enum import Enum
from typing import Dict, List, Optional, Tuple
import yaml
from pydantic import BaseModel, Field, validator
from modron.config import get_config
_config = get_config()
def _compute_mod(score: int) -> int:
"""Compute... | 34.093822 | 118 | 0.627626 | 1,873 | 14,899 | 4.873465 | 0.194875 | 0.039439 | 0.026293 | 0.026293 | 0.224693 | 0.150745 | 0.114483 | 0.072305 | 0.059159 | 0.059159 | 0 | 0.005389 | 0.27767 | 14,899 | 436 | 119 | 34.172018 | 0.84278 | 0.25391 | 0 | 0.137615 | 0 | 0 | 0.143515 | 0.004128 | 0 | 0 | 0 | 0 | 0.022936 | 1 | 0.146789 | false | 0.004587 | 0.03211 | 0.045872 | 0.490826 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a7101a610a52017f13a5fe2d6d32d405867f9aef | 1,558 | py | Python | setup.py | Borsos/rubik | af220a142b81a8f5b5011e4e072be9e3d130e827 | [
"Apache-2.0"
] | 1 | 2019-11-13T00:44:09.000Z | 2019-11-13T00:44:09.000Z | setup.py | Borsos/rubik | af220a142b81a8f5b5011e4e072be9e3d130e827 | [
"Apache-2.0"
] | null | null | null | setup.py | Borsos/rubik | af220a142b81a8f5b5011e4e072be9e3d130e827 | [
"Apache-2.0"
] | 1 | 2019-11-13T00:47:16.000Z | 2019-11-13T00:47:16.000Z | #
# Copyright 2013 Simone Campagna
#
# 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 wri... | 27.333333 | 101 | 0.668164 | 200 | 1,558 | 5.155 | 0.575 | 0.081474 | 0.025218 | 0.031038 | 0.069835 | 0.069835 | 0.069835 | 0 | 0 | 0 | 0 | 0.009076 | 0.22208 | 1,558 | 56 | 102 | 27.821429 | 0.841584 | 0.3543 | 0 | 0 | 0 | 0 | 0.328615 | 0.079879 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.121212 | 0 | 0.121212 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a710a43bb737f726810f9f83e8727afbf0fbd72e | 5,130 | py | Python | geco/mips/tests/test_set_cover.py | FreestyleBuild/GeCO | 6db1a549b3145b3bc5d3025a9bccc03be6575564 | [
"MIT"
] | 8 | 2020-12-16T09:59:05.000Z | 2022-03-18T09:48:43.000Z | geco/mips/tests/test_set_cover.py | FreestyleBuild/GeCO | 6db1a549b3145b3bc5d3025a9bccc03be6575564 | [
"MIT"
] | 101 | 2020-11-09T10:20:03.000Z | 2022-03-24T13:50:06.000Z | geco/mips/tests/test_set_cover.py | FreestyleBuild/GeCO | 6db1a549b3145b3bc5d3025a9bccc03be6575564 | [
"MIT"
] | 3 | 2021-04-06T13:26:03.000Z | 2022-03-22T13:22:16.000Z | import collections
import itertools
import pytest
from geco.mips.set_cover.yang import *
from geco.mips.set_cover.sun import *
from geco.mips.set_cover.orlib import *
from geco.mips.set_cover.gasse import *
"""
Generic Tests
"""
def test_set_cover_solution_1():
model = set_cover([1], [{0}])
model.optimize(... | 28.5 | 87 | 0.670175 | 703 | 5,130 | 4.678521 | 0.14367 | 0.048647 | 0.021891 | 0.040134 | 0.690179 | 0.595014 | 0.520523 | 0.501064 | 0.483734 | 0.394345 | 0 | 0.089809 | 0.194737 | 5,130 | 179 | 88 | 28.659218 | 0.706367 | 0.005848 | 0 | 0.424 | 0 | 0 | 0.038015 | 0.016407 | 0 | 0 | 0 | 0 | 0.192 | 1 | 0.096 | false | 0 | 0.056 | 0 | 0.152 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a711b022a699f3a1657ba1bf4a22b34ce38cfe57 | 2,878 | py | Python | hcplot/scales/colors/hue.py | bernhard-42/hcplot | 1c791e2b19b173b9b98a3d8914095e3c372c9de4 | [
"Apache-2.0"
] | null | null | null | hcplot/scales/colors/hue.py | bernhard-42/hcplot | 1c791e2b19b173b9b98a3d8914095e3c372c9de4 | [
"Apache-2.0"
] | null | null | null | hcplot/scales/colors/hue.py | bernhard-42/hcplot | 1c791e2b19b173b9b98a3d8914095e3c372c9de4 | [
"Apache-2.0"
] | null | null | null | # Copyright 2017 Bernhard Walter
#
# 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 writin... | 30.294737 | 99 | 0.592078 | 406 | 2,878 | 4.197044 | 0.374384 | 0.035211 | 0.056338 | 0.051056 | 0.174296 | 0.174296 | 0.174296 | 0.174296 | 0.174296 | 0.1473 | 0 | 0.041386 | 0.277971 | 2,878 | 94 | 100 | 30.617021 | 0.778633 | 0.297429 | 0 | 0.318182 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.136364 | false | 0.045455 | 0.045455 | 0.022727 | 0.295455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a7143837d4f1b09881e05cb620fce36372532de7 | 2,010 | py | Python | alipay/aop/api/domain/AlipayEcoCityserviceIndustryEnergySendModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayEcoCityserviceIndustryEnergySendModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | alipay/aop/api/domain/AlipayEcoCityserviceIndustryEnergySendModel.py | antopen/alipay-sdk-python-all | 8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.EnergyExtRequest import EnergyExtRequest
class AlipayEcoCityserviceIndustryEnergySendModel(object):
def __init__(self):
self._ext_info = None
self._outer_no =... | 26.8 | 69 | 0.584577 | 244 | 2,010 | 4.557377 | 0.184426 | 0.100719 | 0.079137 | 0.048561 | 0.203237 | 0.149281 | 0 | 0 | 0 | 0 | 0 | 0.000727 | 0.31592 | 2,010 | 74 | 70 | 27.162162 | 0.808 | 0.020896 | 0 | 0.118644 | 0 | 0 | 0.064155 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.152542 | false | 0 | 0.050847 | 0.050847 | 0.322034 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a715a55b0649d434e3e3db7475617b277a5112ae | 1,657 | py | Python | project_receipt/receipt/urls.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | null | null | null | project_receipt/receipt/urls.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | 8 | 2021-02-01T12:47:02.000Z | 2021-12-13T09:34:38.000Z | project_receipt/receipt/urls.py | Guilouf/django-receipt | fb42de12311cd1a20cc28c74a732d818f28ef551 | [
"Apache-2.0"
] | null | null | null | from django.urls import path
from receipt import views
urlpatterns = [
path('', views.ReceiptList.as_view(), name='home'),
path('receipt/', views.ReceiptList.as_view(), name='receipt_list'),
path('receipt/create', views.ReceiptCreate.as_view(), name='receipt_create'),
path('receipt/<int:pk>/edit', vie... | 61.37037 | 106 | 0.719976 | 202 | 1,657 | 5.712871 | 0.19802 | 0.093588 | 0.155979 | 0.099653 | 0.045061 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095353 | 1,657 | 26 | 107 | 63.730769 | 0.769847 | 0 | 0 | 0 | 0 | 0 | 0.33796 | 0.126132 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.083333 | 0 | 0.083333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a71e3a4361a99f178927d847326e3096eeaee755 | 4,216 | py | Python | utils/common/_common.py | Pzqqt/Django_Transportation_Management_System | f4f0905d8e007920ae190252eeaefbc6ee67ed85 | [
"MIT"
] | null | null | null | utils/common/_common.py | Pzqqt/Django_Transportation_Management_System | f4f0905d8e007920ae190252eeaefbc6ee67ed85 | [
"MIT"
] | null | null | null | utils/common/_common.py | Pzqqt/Django_Transportation_Management_System | f4f0905d8e007920ae190252eeaefbc6ee67ed85 | [
"MIT"
] | null | null | null | from functools import partial
from itertools import chain
from collections import UserList
import logging
import traceback
from django import forms
from django.db.models import Model
from django.core.validators import validate_comma_separated_integer_list
from django.core.serializers.json import DjangoJSONEncoder
from... | 35.728814 | 101 | 0.708491 | 468 | 4,216 | 6.168803 | 0.410256 | 0.034292 | 0.053343 | 0.030135 | 0.059231 | 0.024939 | 0 | 0 | 0 | 0 | 0 | 0.001745 | 0.184298 | 4,216 | 117 | 102 | 36.034188 | 0.837744 | 0.225569 | 0 | 0.029851 | 0 | 0 | 0.032463 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.149254 | false | 0 | 0.179104 | 0 | 0.447761 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a72993531283fe9cd45b23f3481f393933bdc390 | 15,777 | py | Python | main.py | chilipolygon/Amazon-Requests-Module | 20fcfa9b9764e097bc107aa9dc5b0db772ce3ad9 | [
"Apache-2.0"
] | 3 | 2022-01-18T20:54:08.000Z | 2022-02-05T23:27:13.000Z | main.py | chilipolygon/Amazon-Requests-Module | 20fcfa9b9764e097bc107aa9dc5b0db772ce3ad9 | [
"Apache-2.0"
] | null | null | null | main.py | chilipolygon/Amazon-Requests-Module | 20fcfa9b9764e097bc107aa9dc5b0db772ce3ad9 | [
"Apache-2.0"
] | null | null | null | # ---------------------
from bs4 import BeautifulSoup as bs
import requests
import urllib3
import urllib
from urllib.parse import unquote
import re
import os
import sys
import json
import time
from colorama import Fore, init
from pprint import pprint
from datetime import datetime
import uuid
import threading
# --------... | 41.518421 | 272 | 0.548647 | 1,811 | 15,777 | 4.725014 | 0.202098 | 0.027346 | 0.029216 | 0.040318 | 0.511745 | 0.454248 | 0.422695 | 0.404698 | 0.397102 | 0.310506 | 0 | 0.026249 | 0.280408 | 15,777 | 379 | 273 | 41.627968 | 0.727385 | 0.03353 | 0 | 0.319749 | 0 | 0.047022 | 0.38562 | 0.050624 | 0 | 0 | 0.000525 | 0 | 0 | 1 | 0.031348 | false | 0.003135 | 0.053292 | 0 | 0.090909 | 0.106583 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a72d7496d5e3f428cdf8342b764e52a9a68ac6a0 | 3,092 | py | Python | cdparser/Features.py | opengulf/nyc-directories-support-scripts | e22582b8f4cb3c365e9aac1d860d9c36831277a5 | [
"MIT"
] | 1 | 2021-09-07T20:41:00.000Z | 2021-09-07T20:41:00.000Z | cdparser/Features.py | opengulf/nyc-directories-support-scripts | e22582b8f4cb3c365e9aac1d860d9c36831277a5 | [
"MIT"
] | null | null | null | cdparser/Features.py | opengulf/nyc-directories-support-scripts | e22582b8f4cb3c365e9aac1d860d9c36831277a5 | [
"MIT"
] | 2 | 2021-09-07T20:49:14.000Z | 2021-11-05T02:03:47.000Z | from functools import partial
class Features:
@staticmethod
def __emit_word_features(rel_pos, word):
features = {}
for f in Features.__word_feature_functions().items():
features.update({str(rel_pos) + ":" + f[0]: f[1](word)})
return features
@staticmethod
def get_w... | 28.366972 | 88 | 0.559185 | 356 | 3,092 | 4.617978 | 0.210674 | 0.136861 | 0.068127 | 0.089416 | 0.293796 | 0.237226 | 0.193431 | 0 | 0 | 0 | 0 | 0.007726 | 0.330207 | 3,092 | 109 | 89 | 28.366972 | 0.786094 | 0 | 0 | 0.397849 | 0 | 0 | 0.064339 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.16129 | false | 0 | 0.010753 | 0.053763 | 0.419355 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a733182bb7d063e48b371c3b9b8871a0afe48521 | 19,712 | py | Python | dashboard/api/config.py | x3niasweden/fomalhaut-panel | 8b4b3d81e2c91bef8f24ccbaf9cf898a47ac38a6 | [
"MIT"
] | 14 | 2017-08-01T08:28:00.000Z | 2020-08-29T06:55:16.000Z | dashboard/api/config.py | x3niasweden/fomalhaut-panel | 8b4b3d81e2c91bef8f24ccbaf9cf898a47ac38a6 | [
"MIT"
] | 1 | 2021-03-29T06:16:34.000Z | 2021-03-29T06:16:34.000Z | dashboard/api/config.py | x3niasweden/fomalhaut-panel | 8b4b3d81e2c91bef8f24ccbaf9cf898a47ac38a6 | [
"MIT"
] | 12 | 2017-07-18T02:59:03.000Z | 2021-03-23T04:04:58.000Z | # !/usr/bin/env python
# -*- coding: utf-8 -*-
# created by restran on 2016/1/2
from __future__ import unicode_literals, absolute_import
import traceback
from django.views.decorators.http import require_http_methods
from django.views.decorators.csrf import csrf_protect
from django.db import transaction
from cerberu... | 33.241147 | 122 | 0.491985 | 1,928 | 19,712 | 4.782676 | 0.130187 | 0.033185 | 0.022774 | 0.023859 | 0.523913 | 0.438239 | 0.380761 | 0.318621 | 0.261251 | 0.202581 | 0 | 0.001527 | 0.401887 | 19,712 | 592 | 123 | 33.297297 | 0.780577 | 0.057325 | 0 | 0.511013 | 0 | 0 | 0.112272 | 0.008109 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019824 | false | 0.004405 | 0.03304 | 0 | 0.0837 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a733c76add330a704c87d51a39a3121429990715 | 2,209 | py | Python | WX_BG.py | boristown/WX_BG | c715d1f3ffeef60187be0289f26549204d6b963f | [
"MIT"
] | 1 | 2019-08-17T23:21:28.000Z | 2019-08-17T23:21:28.000Z | WX_BG.py | boristown/WX_BG | c715d1f3ffeef60187be0289f26549204d6b963f | [
"MIT"
] | null | null | null | WX_BG.py | boristown/WX_BG | c715d1f3ffeef60187be0289f26549204d6b963f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# filename: WX_BG.py
import prices
import glob
import prediction
import os
import time
import random
#预测数据文件
prices_file_pattern = "Output\\prices\\*.csv"
#预测数据文件
predict_file_pattern = "Output\\predict\\*.csv"
#预测数据文件
prices_file_second_pattern = "Output\\prices_second\\*.csv"
#预测数据文件
predict_... | 26.939024 | 103 | 0.663649 | 280 | 2,209 | 4.982143 | 0.246429 | 0.111828 | 0.077419 | 0.05448 | 0.193548 | 0.162007 | 0.126165 | 0.071685 | 0.071685 | 0 | 0 | 0.019492 | 0.23359 | 2,209 | 81 | 104 | 27.271605 | 0.797401 | 0.044817 | 0 | 0.236364 | 0 | 0 | 0.076301 | 0.050531 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.109091 | 0 | 0.109091 | 0.109091 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a734a04a2790536248f0af4b3c7aedde27c72873 | 929 | py | Python | hyppo/d_variate/tests/test_dhsic.py | zdbzdb123123/hyppo | c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde | [
"MIT"
] | 116 | 2020-02-28T10:29:22.000Z | 2022-03-22T12:19:39.000Z | hyppo/d_variate/tests/test_dhsic.py | zdbzdb123123/hyppo | c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde | [
"MIT"
] | 253 | 2020-02-17T16:18:56.000Z | 2022-03-30T16:55:02.000Z | hyppo/d_variate/tests/test_dhsic.py | zdbzdb123123/hyppo | c22dcfb7bdf25c9945e6d4ddd7c6bfe5fcdd0cde | [
"MIT"
] | 27 | 2020-03-02T21:07:41.000Z | 2022-03-08T08:33:23.000Z | import numpy as np
import pytest
from numpy.testing import assert_almost_equal
from ...tools import linear, power
from .. import dHsic # type: ignore
class TestdHsicStat:
@pytest.mark.parametrize("n, obs_stat", [(100, 0.04561), (200, 0.03911)])
@pytest.mark.parametrize("obs_pvalue", [1 / 1000])
def test... | 27.323529 | 77 | 0.620022 | 124 | 929 | 4.475806 | 0.427419 | 0.086486 | 0.122523 | 0.075676 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.082969 | 0.260495 | 929 | 33 | 78 | 28.151515 | 0.724891 | 0.012917 | 0 | 0.076923 | 0 | 0 | 0.059016 | 0.025137 | 0 | 0 | 0 | 0 | 0.153846 | 1 | 0.076923 | false | 0 | 0.192308 | 0 | 0.346154 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a7351f98fb299d1d929cbe7b4a8c9742f60b725d | 2,844 | py | Python | Pages/showHistory.py | ajaydeepsingh/ATLZoo | ab5ba27dc8602da39ce8bb47c4a050ff09d79b82 | [
"MIT"
] | null | null | null | Pages/showHistory.py | ajaydeepsingh/ATLZoo | ab5ba27dc8602da39ce8bb47c4a050ff09d79b82 | [
"MIT"
] | null | null | null | Pages/showHistory.py | ajaydeepsingh/ATLZoo | ab5ba27dc8602da39ce8bb47c4a050ff09d79b82 | [
"MIT"
] | null | null | null | from tkinter import *
from PIL import ImageTk, Image
import pymysql
from tkinter import messagebox
from tkinter import ttk
from datetime import datetime, timedelta
import decimal
class ATLzooShowHistory:
def __init__(self):
self.createShowHistoryWindow()
self.buildShowHistoryWindow(self.showHistory... | 37.92 | 120 | 0.688819 | 275 | 2,844 | 7.109091 | 0.374545 | 0.085934 | 0.053197 | 0.028645 | 0.058312 | 0.040921 | 0 | 0 | 0 | 0 | 0 | 0.030197 | 0.196554 | 2,844 | 74 | 121 | 38.432432 | 0.825383 | 0.017581 | 0 | 0 | 0 | 0 | 0.058085 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.092593 | false | 0 | 0.148148 | 0 | 0.259259 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a739f43b0588186a90f5d8f8245209820d58a6a6 | 1,683 | py | Python | setup.py | eltonn/toki | 22efd9ce84414380904e3a5ac84e84de9bdb5bce | [
"Apache-2.0"
] | 1 | 2020-11-30T16:52:50.000Z | 2020-11-30T16:52:50.000Z | setup.py | eltonn/toki | 22efd9ce84414380904e3a5ac84e84de9bdb5bce | [
"Apache-2.0"
] | 7 | 2020-05-29T23:22:21.000Z | 2020-11-30T20:49:37.000Z | setup.py | eltonn/toki | 22efd9ce84414380904e3a5ac84e84de9bdb5bce | [
"Apache-2.0"
] | 1 | 2020-04-29T21:59:25.000Z | 2020-04-29T21:59:25.000Z | """The setup script."""
from setuptools import find_packages, setup
with open('README.md') as readme_file:
readme = readme_file.read()
with open('docs/release-notes.md') as history_file:
history = history_file.read()
requirements = []
dev_requirements = [
# lint and tools
'black',
'flake8',
... | 26.296875 | 61 | 0.616756 | 185 | 1,683 | 5.513514 | 0.556757 | 0.130392 | 0.171569 | 0.127451 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017028 | 0.232323 | 1,683 | 63 | 62 | 26.714286 | 0.772446 | 0.036839 | 0 | 0 | 0 | 0 | 0.430788 | 0.027933 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.019608 | 0 | 0.019608 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
a73aed88b329c068d8782d3c38cdfcf8ff4be7a3 | 3,109 | py | Python | dq0/sdk/estimators/data_handler/csv.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | 2 | 2020-09-16T09:28:00.000Z | 2021-03-18T21:26:29.000Z | dq0/sdk/estimators/data_handler/csv.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | 22 | 2020-04-15T10:19:33.000Z | 2022-03-12T00:20:57.000Z | dq0/sdk/estimators/data_handler/csv.py | gradientzero/dq0-sdk | 90856dd5ac56216971ffe33004447fd037a21660 | [
"0BSD"
] | null | null | null | # -*- coding: utf-8 -*-
"""Base data handler.
Copyright 2021, Gradient Zero
All rights reserved
"""
import logging
import dq0.sdk
from dq0.sdk.estimators.data_handler.base import BasicDataHandler
import pandas as pd
from sklearn.model_selection import train_test_split
logger = logging.getLogger(__name__)
class ... | 42.013514 | 184 | 0.690254 | 458 | 3,109 | 4.445415 | 0.279476 | 0.063851 | 0.02947 | 0.021611 | 0.179764 | 0.179764 | 0.082515 | 0.082515 | 0.060904 | 0.060904 | 0 | 0.008568 | 0.211644 | 3,109 | 73 | 185 | 42.589041 | 0.822113 | 0.13477 | 0 | 0.04878 | 0 | 0.02439 | 0.179082 | 0.009406 | 0 | 0 | 0 | 0 | 0 | 1 | 0.170732 | false | 0 | 0.121951 | 0.02439 | 0.463415 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
595209a149b488a190b55a28e227e0653341e30a | 407 | py | Python | core/utils/template_updater.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | 3 | 2021-12-22T07:02:24.000Z | 2022-01-27T20:19:11.000Z | core/utils/template_updater.py | vulnman/vulnman | d48ee022bc0e4368060a990a527b1c7a5e437504 | [
"MIT"
] | 44 | 2021-12-14T07:24:29.000Z | 2022-03-23T07:01:16.000Z | core/utils/template_updater.py | blockomat2100/vulnman | 835ff3aae1168d8e2fa5556279bc86efd2e46472 | [
"MIT"
] | 1 | 2022-01-21T16:29:56.000Z | 2022-01-21T16:29:56.000Z | import os
from django.conf import settings
from git import Repo
def update_vulnerability_templates():
template_dir = os.path.join(
settings.BASE_DIR, "resources/vuln_templates")
if os.path.isdir(template_dir):
repo = Repo(template_dir)
origin = repo.remotes.origin
origin.pull()... | 27.133333 | 75 | 0.712531 | 52 | 407 | 5.365385 | 0.5 | 0.157706 | 0.107527 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.203931 | 407 | 14 | 76 | 29.071429 | 0.861111 | 0 | 0 | 0 | 0 | 0 | 0.058968 | 0.058968 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.25 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5952c5d9520173eb54626c3cf8e791dbdc5d7f03 | 656 | py | Python | pages/basket_page.py | Espad/stepik_autotests_final_tasks | 2d9e3408766cc00387a8ddd656006556cce567b4 | [
"MIT"
] | null | null | null | pages/basket_page.py | Espad/stepik_autotests_final_tasks | 2d9e3408766cc00387a8ddd656006556cce567b4 | [
"MIT"
] | null | null | null | pages/basket_page.py | Espad/stepik_autotests_final_tasks | 2d9e3408766cc00387a8ddd656006556cce567b4 | [
"MIT"
] | null | null | null | from .base_page import BasePage
from .locators import BasketPageLocators
class BasketPage(BasePage):
def should_be_empty_basket_message(self):
assert self.is_element_present(*BasketPageLocators.BASKET_EMPTY_MESSAGE), \
"Empty basket message element not found on page"
assert self.brows... | 41 | 135 | 0.745427 | 80 | 656 | 5.85 | 0.4375 | 0.051282 | 0.115385 | 0.068376 | 0.094017 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.184451 | 656 | 15 | 136 | 43.733333 | 0.874766 | 0 | 0 | 0 | 0 | 0 | 0.224085 | 0 | 0 | 0 | 0 | 0 | 0.272727 | 1 | 0.181818 | false | 0 | 0.181818 | 0 | 0.454545 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
595945cb1c25f789695dd2fae8ba200ee3b77c80 | 1,454 | py | Python | trypython/extlib/aiohttp/aiohttp01.py | devlights/try-python-extlib | 9bfb649d3f5b249b67991a30865201be794e29a9 | [
"MIT"
] | null | null | null | trypython/extlib/aiohttp/aiohttp01.py | devlights/try-python-extlib | 9bfb649d3f5b249b67991a30865201be794e29a9 | [
"MIT"
] | null | null | null | trypython/extlib/aiohttp/aiohttp01.py | devlights/try-python-extlib | 9bfb649d3f5b249b67991a30865201be794e29a9 | [
"MIT"
] | null | null | null | """
aiohttp モジュールのサンプルです
基本的な使い方について
REFERENCES:: http://bit.ly/2O2lmeU
http://bit.ly/2O08oy3
"""
import asyncio
from asyncio import Future
from typing import List, Dict
import aiohttp
from trypython.common.commoncls import SampleBase
async def fetch_async(index: int, url: str) -> Dict:
async wit... | 25.068966 | 97 | 0.592847 | 174 | 1,454 | 4.890805 | 0.528736 | 0.016451 | 0.021152 | 0.042303 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009381 | 0.26685 | 1,454 | 57 | 98 | 25.508772 | 0.788931 | 0.096974 | 0 | 0 | 0 | 0 | 0.183142 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.083333 | false | 0 | 0.138889 | 0 | 0.305556 | 0.027778 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
595abb6fdb13a008e2f80cf057085a05a97b14a8 | 1,860 | py | Python | models.py | camerongray1515/HackDee-2015 | 6459c5bd3ad895e0a216ff61342eb73877dc9ee5 | [
"MIT"
] | null | null | null | models.py | camerongray1515/HackDee-2015 | 6459c5bd3ad895e0a216ff61342eb73877dc9ee5 | [
"MIT"
] | 1 | 2015-04-04T20:55:52.000Z | 2015-12-17T23:35:08.000Z | models.py | camerongray1515/HackDee-2015 | 6459c5bd3ad895e0a216ff61342eb73877dc9ee5 | [
"MIT"
] | null | null | null | from sqlalchemy import Column, String, Boolean, ForeignKey, Integer
from sqlalchemy.orm import relationship
from database import Base
from string import ascii_letters
from random import choice
class Playlist(Base):
__tablename__ = "playlists"
id = Column(String, primary_key=True)
name = Column(String)
... | 29.0625 | 89 | 0.614516 | 216 | 1,860 | 5.078704 | 0.333333 | 0.100273 | 0.065634 | 0.054695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003044 | 0.293548 | 1,860 | 63 | 90 | 29.52381 | 0.831811 | 0.032258 | 0 | 0 | 0 | 0 | 0.052836 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.081633 | false | 0 | 0.102041 | 0.020408 | 0.489796 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
595ecf0b3419dbc932591ff7beb5487e3db35f47 | 932 | py | Python | script/rmLinebyIndFile.py | ASLeonard/danbing-tk | 15540124ff408777d0665ace73698b0c2847d1cc | [
"BSD-3-Clause"
] | 17 | 2020-08-16T14:28:11.000Z | 2022-03-23T23:30:47.000Z | script/rmLinebyIndFile.py | ASLeonard/danbing-tk | 15540124ff408777d0665ace73698b0c2847d1cc | [
"BSD-3-Clause"
] | 7 | 2021-01-25T15:26:18.000Z | 2022-03-31T14:30:46.000Z | script/rmLinebyIndFile.py | ASLeonard/danbing-tk | 15540124ff408777d0665ace73698b0c2847d1cc | [
"BSD-3-Clause"
] | 2 | 2020-11-01T20:41:38.000Z | 2021-05-29T03:22:24.000Z | #!/usr/bin/env python3
import sys
import numpy as np
if len(sys.argv) == 1 or sys.argv[1] == "-h" or sys.argv[1] == "--help":
print(
"""
Remove line indices (0-based) specified in 'index.txt'
usage: program [-k] index.txt inFile
-k Keep line indices in 'index.txt' instead of removing ... | 22.731707 | 78 | 0.55794 | 141 | 932 | 3.687943 | 0.453901 | 0.053846 | 0.046154 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01391 | 0.305794 | 932 | 40 | 79 | 23.3 | 0.789799 | 0.022532 | 0 | 0 | 0 | 0 | 0.104167 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 1 | 0 | false | 0 | 0.064516 | 0 | 0.064516 | 0.064516 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5960088035b5df4aefdc1abf2b6dd9894a0c53be | 5,978 | py | Python | estimators.py | RakitinDen/pytorch-recursive-gumbel-max-trick | 44f9854020e727946a074a6e53b20dd593f96cc1 | [
"Apache-2.0"
] | 20 | 2021-12-03T13:20:17.000Z | 2022-03-20T18:58:06.000Z | estimators.py | RakitinDen/pytorch-recursive-gumbel-max-trick | 44f9854020e727946a074a6e53b20dd593f96cc1 | [
"Apache-2.0"
] | null | null | null | estimators.py | RakitinDen/pytorch-recursive-gumbel-max-trick | 44f9854020e727946a074a6e53b20dd593f96cc1 | [
"Apache-2.0"
] | null | null | null | # Estimators are partially based on the "estimators.py" from the following repositories:
# https://github.com/agadetsky/pytorch-pl-variance-reduction
# https://github.com/sdrobert/pydrobert-pytorch
import torch
def uniform_to_exp(logits, uniform=None, enable_grad=False):
'''
Converts a tensor of independent u... | 36.674847 | 119 | 0.666109 | 837 | 5,978 | 4.561529 | 0.197133 | 0.075432 | 0.044264 | 0.061289 | 0.502095 | 0.469094 | 0.456784 | 0.427973 | 0.399686 | 0.399686 | 0 | 0.015125 | 0.225828 | 5,978 | 162 | 120 | 36.901235 | 0.809853 | 0.321512 | 0 | 0.550562 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.022472 | 1 | 0.05618 | false | 0 | 0.011236 | 0 | 0.123596 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
596098c174bcd92a072f4a63dcf655eaaf7c83e8 | 1,332 | py | Python | squareroot.py | martinaobrien/pands-problem-sets | 5928f9ed2a743f46a9615f41192fd6dfb810b73c | [
"CNRI-Python"
] | null | null | null | squareroot.py | martinaobrien/pands-problem-sets | 5928f9ed2a743f46a9615f41192fd6dfb810b73c | [
"CNRI-Python"
] | null | null | null | squareroot.py | martinaobrien/pands-problem-sets | 5928f9ed2a743f46a9615f41192fd6dfb810b73c | [
"CNRI-Python"
] | null | null | null | #Martina O'Brien 10/3/2019
#Problem Set 7 - squareroots
#Programming Code to determining the squareroots of positive floating point numbers
## Reference for try and expect https://www.w3schools.com/python/python_try_except.asp
while True: # this loop will run to allow the user to input a value again if they do ... | 45.931034 | 114 | 0.693694 | 209 | 1,332 | 4.401914 | 0.464115 | 0.026087 | 0.045652 | 0.043478 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01992 | 0.246246 | 1,332 | 28 | 115 | 47.571429 | 0.896414 | 0.600601 | 0 | 0 | 0 | 0 | 0.393443 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.25 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5961e885fedcd68b3653416c363d4e461726bdc8 | 5,578 | py | Python | pywbemtools/pywbemlistener/_context_obj.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 8 | 2017-04-01T13:55:00.000Z | 2022-03-15T18:28:47.000Z | pywbemtools/pywbemlistener/_context_obj.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 918 | 2017-03-03T14:29:03.000Z | 2022-03-29T15:32:16.000Z | pywbemtools/pywbemlistener/_context_obj.py | pywbem/pywbemtools | 6b7c3f124324fd3ab7cffb82bc98c8f9555317e4 | [
"Apache-2.0"
] | 2 | 2020-01-17T15:56:46.000Z | 2020-02-12T18:49:30.000Z | # (C) Copyright 2021 Inova Development 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 appl... | 31.693182 | 80 | 0.620115 | 674 | 5,578 | 5.020772 | 0.32641 | 0.052009 | 0.047872 | 0.028073 | 0.182624 | 0.155437 | 0.11052 | 0.065012 | 0.038416 | 0.038416 | 0 | 0.003307 | 0.295267 | 5,578 | 175 | 81 | 31.874286 | 0.857543 | 0.435281 | 0 | 0.184615 | 0 | 0 | 0.079352 | 0.037969 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.061538 | 0.015385 | 0.384615 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5963d226f34e95078375678dfe6099b78982408c | 573 | py | Python | userbot/modules/trd.py | LUCKYRAJPUTOP/VibeXUserbot | 257c86ff1775592688815435d8c5ce91e1dd299e | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/trd.py | LUCKYRAJPUTOP/VibeXUserbot | 257c86ff1775592688815435d8c5ce91e1dd299e | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | userbot/modules/trd.py | LUCKYRAJPUTOP/VibeXUserbot | 257c86ff1775592688815435d8c5ce91e1dd299e | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | import asyncio
from asyncio import sleep
from random import choice
from userbot.events import register
T_R_D = [
"@PrajjuS",
"@Vin02vin",
"@Iamsaisharan",
"@venomsamurai",
]
@register(outgoing=True, pattern="^.trd$")
async def truthrdare(trd):
"""Truth or Dare"""
await trd.edit("`Choosing Name... | 22.92 | 74 | 0.602094 | 77 | 573 | 4.402597 | 0.506494 | 0.094395 | 0.106195 | 0.070796 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.015317 | 0.202443 | 573 | 24 | 75 | 23.875 | 0.722101 | 0 | 0 | 0.1 | 0 | 0 | 0.238267 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
596512b76ad497342148f69daf0ea980f36bbf49 | 2,384 | py | Python | collectors/nct/collector.py | almeidaah/collectors | f03096855b8d702969d22af0b20a4d6a0d820bd0 | [
"MIT"
] | 17 | 2016-06-28T21:20:21.000Z | 2022-03-02T16:31:25.000Z | collectors/nct/collector.py | almeidaah/collectors | f03096855b8d702969d22af0b20a4d6a0d820bd0 | [
"MIT"
] | 41 | 2016-04-04T10:36:45.000Z | 2017-04-24T10:04:57.000Z | collectors/nct/collector.py | kenferrara/collectors | e6c1f45df3a1ffd5d60dada1816484812eb51417 | [
"MIT"
] | 25 | 2016-05-18T09:27:42.000Z | 2021-03-21T14:44:31.000Z | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import zipfile
import logging
import requests
import tempfile
import contextlib
from .parser import parse_record
from .. import base
logger = logg... | 32.657534 | 87 | 0.633389 | 314 | 2,384 | 4.544586 | 0.382166 | 0.034338 | 0.035039 | 0.04555 | 0.068676 | 0.032235 | 0.032235 | 0 | 0 | 0 | 0 | 0.035897 | 0.263842 | 2,384 | 72 | 88 | 33.111111 | 0.777208 | 0.113255 | 0 | 0.074074 | 0 | 0 | 0.05795 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.203704 | 0 | 0.259259 | 0.018519 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5969ba0b61715dcc3c0755544d810b16a9ba7f4b | 6,116 | py | Python | src/contexts/context_local_structure.py | aindrila-ghosh/SmartReduce | b2b28055bc0b269155270c1f8206445e405e8d9b | [
"MIT"
] | null | null | null | src/contexts/context_local_structure.py | aindrila-ghosh/SmartReduce | b2b28055bc0b269155270c1f8206445e405e8d9b | [
"MIT"
] | null | null | null | src/contexts/context_local_structure.py | aindrila-ghosh/SmartReduce | b2b28055bc0b269155270c1f8206445e405e8d9b | [
"MIT"
] | null | null | null |
import numpy as np
import matplotlib.pyplot as plt
from sklearn.manifold import Isomap
from scipy.spatial.distance import pdist
from sklearn.neighbors import KNeighborsClassifier
from sklearn.model_selection import cross_val_score, LeaveOneOut
RANDOM_STATE = 42
def calculate_pairwise_distances(df_for_Box_Plot_featu... | 28.985782 | 137 | 0.680347 | 745 | 6,116 | 5.404027 | 0.311409 | 0.062593 | 0.011923 | 0.017884 | 0.23696 | 0.211624 | 0.121709 | 0.121709 | 0.121709 | 0.121709 | 0 | 0.036099 | 0.225474 | 6,116 | 210 | 138 | 29.12381 | 0.813806 | 0.332243 | 0 | 0.028986 | 0 | 0 | 0.045977 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.086957 | false | 0 | 0.086957 | 0 | 0.246377 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
596bbf6cce06d70f6a325d7a5bf75a3e2280c89c | 1,110 | py | Python | hparams.py | TanUkkii007/vqvae | 6ac433490fd827174e5b925780d32bea14bfb097 | [
"MIT"
] | 2 | 2019-03-30T16:49:11.000Z | 2019-12-18T22:50:56.000Z | hparams.py | TanUkkii007/vqvae | 6ac433490fd827174e5b925780d32bea14bfb097 | [
"MIT"
] | null | null | null | hparams.py | TanUkkii007/vqvae | 6ac433490fd827174e5b925780d32bea14bfb097 | [
"MIT"
] | 1 | 2020-01-06T12:37:00.000Z | 2020-01-06T12:37:00.000Z | import tensorflow as tf
default_params = tf.contrib.training.HParams(
# Encoder
encoder_num_hiddens=128,
encoder_num_residual_hiddens=32,
encoder_num_residual_layers=2,
# Decoder
decoder_num_hiddens=128,
decoder_num_residual_hiddens=32,
decoder_num_residual_layers=2,
embedding_di... | 23.617021 | 71 | 0.711712 | 145 | 1,110 | 5.117241 | 0.6 | 0.059299 | 0.03504 | 0.053908 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.058231 | 0.195496 | 1,110 | 46 | 72 | 24.130435 | 0.772676 | 0.112613 | 0 | 0 | 0 | 0 | 0.05123 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.033333 | false | 0 | 0.033333 | 0 | 0.1 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
596db7d21a1d0b9384a4b3ba2a66f7f8e7dbfeba | 1,080 | py | Python | coroutines.py | PraveenMathew92/python-chatroom-asyncio | 8b3048f17b76e649aff6bcbb7d084362cab32b58 | [
"MIT"
] | null | null | null | coroutines.py | PraveenMathew92/python-chatroom-asyncio | 8b3048f17b76e649aff6bcbb7d084362cab32b58 | [
"MIT"
] | null | null | null | coroutines.py | PraveenMathew92/python-chatroom-asyncio | 8b3048f17b76e649aff6bcbb7d084362cab32b58 | [
"MIT"
] | null | null | null | """
File to demonstrate the coroutines api in python
"""
import asyncio
async def coroutine(caller):
print(f'entering ${caller}')
await asyncio.sleep(1)
print(f'exited {caller}')
"""
asyncio.run takes a coroutine and
A RuntimeWarning is generated if the coroutine is not awaited
Eg: coroutine('withou... | 16.363636 | 76 | 0.694444 | 142 | 1,080 | 5.169014 | 0.366197 | 0.054496 | 0.038147 | 0.059946 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.001153 | 0.197222 | 1,080 | 66 | 77 | 16.363636 | 0.845444 | 0.044444 | 0 | 0 | 0 | 0 | 0.185039 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.055556 | 0 | 0.055556 | 0.166667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5972ea55ea758af92089d41c09629539cc06ea40 | 12,048 | py | Python | test/test_subprocess.py | python-useful-helpers/exec-helpers | 3e0adfa7dded72ac1c9c93bd88db070f4c9050b6 | [
"Apache-2.0"
] | 12 | 2018-03-23T23:37:40.000Z | 2021-07-16T16:07:28.000Z | test/test_subprocess.py | penguinolog/exec-helpers | 0784a4772f6e9937540b266fdbb1f5a060fd4b76 | [
"Apache-2.0"
] | 111 | 2018-03-26T14:10:52.000Z | 2021-07-12T07:12:45.000Z | test/test_subprocess.py | penguinolog/exec-helpers | 0784a4772f6e9937540b266fdbb1f5a060fd4b76 | [
"Apache-2.0"
] | 6 | 2018-03-26T13:37:21.000Z | 2018-09-07T03:35:09.000Z | # Copyright 2018 - 2020 Alexey Stepanov aka penguinolog.
#
# 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 requi... | 34.820809 | 117 | 0.664011 | 1,549 | 12,048 | 4.962556 | 0.183344 | 0.05724 | 0.030051 | 0.028099 | 0.508781 | 0.458827 | 0.422792 | 0.392351 | 0.34734 | 0.30376 | 0 | 0.009221 | 0.216882 | 12,048 | 345 | 118 | 34.921739 | 0.805511 | 0.099187 | 0 | 0.321429 | 0 | 0.007937 | 0.101301 | 0.011338 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.079365 | false | 0 | 0.039683 | 0.015873 | 0.150794 | 0.003968 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
597345ee49817e67d67ebede702d14893a6e8c4d | 4,732 | py | Python | Lib/featureMan/familyFeatures.py | typoman/featureman | f115ea8d3faae042845cfca9502d91da88405c68 | [
"MIT"
] | 13 | 2019-07-21T14:00:49.000Z | 2019-07-29T21:43:03.000Z | Lib/featureMan/familyFeatures.py | typoman/featureman | f115ea8d3faae042845cfca9502d91da88405c68 | [
"MIT"
] | 1 | 2019-07-28T12:06:23.000Z | 2019-07-28T12:06:23.000Z | Lib/featureMan/familyFeatures.py | typoman/featureman | f115ea8d3faae042845cfca9502d91da88405c68 | [
"MIT"
] | null | null | null | from featureMan.otSingleSubFeatures import *
from featureMan.otNumberFeatures import *
from featureMan.otLanguages import *
from featureMan.otLocalized import *
from featureMan.otLigatureFeatures import *
from featureMan.otMark import mark
from featureMan.otSyntax import fontDic, GDEF
from featureMan.otKern import kern... | 40.793103 | 391 | 0.674134 | 571 | 4,732 | 5.56042 | 0.383538 | 0.039685 | 0.031496 | 0.023937 | 0.059213 | 0.029606 | 0.029606 | 0.029606 | 0.006299 | 0.006299 | 0 | 0.013658 | 0.210904 | 4,732 | 115 | 392 | 41.147826 | 0.836636 | 0 | 0 | 0.020833 | 0 | 0.03125 | 0.223373 | 0.010144 | 0 | 0 | 0 | 0 | 0 | 1 | 0.020833 | false | 0 | 0.125 | 0.010417 | 0.15625 | 0.052083 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5975a408ae1c989c338845f71aa3900205bb24fd | 15,265 | py | Python | FFSP/FFSP_MatNet/FFSPModel.py | MinahPark/MatNet | 63342de76f6a982bdfb5c1e8d5930d64ec3efa61 | [
"MIT"
] | 18 | 2021-11-22T09:37:52.000Z | 2022-03-31T03:48:00.000Z | FFSP/FFSP_MatNet/FFSPModel.py | MinahPark/MatNet | 63342de76f6a982bdfb5c1e8d5930d64ec3efa61 | [
"MIT"
] | 1 | 2021-12-04T05:14:26.000Z | 2021-12-14T03:04:55.000Z | FFSP/FFSP_MatNet/FFSPModel.py | MinahPark/MatNet | 63342de76f6a982bdfb5c1e8d5930d64ec3efa61 | [
"MIT"
] | 5 | 2021-12-15T01:56:02.000Z | 2022-03-07T13:13:05.000Z |
"""
The MIT License
Copyright (c) 2021 MatNet
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, d... | 39.141026 | 123 | 0.648411 | 2,088 | 15,265 | 4.42433 | 0.133621 | 0.061702 | 0.053583 | 0.02533 | 0.492639 | 0.384066 | 0.319658 | 0.264992 | 0.235224 | 0.192141 | 0 | 0.00849 | 0.228431 | 15,265 | 389 | 124 | 39.241645 | 0.775853 | 0.244546 | 0 | 0.268041 | 0 | 0 | 0.025486 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.097938 | false | 0.005155 | 0.020619 | 0 | 0.195876 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5975bf51cf6b40314443cbac07c50fa49c107d36 | 1,697 | py | Python | compose.py | lvyufeng/mindspore_poems | 2f46afa290a8065cd1c774c26a96be76da30873e | [
"MIT"
] | null | null | null | compose.py | lvyufeng/mindspore_poems | 2f46afa290a8065cd1c774c26a96be76da30873e | [
"MIT"
] | null | null | null | compose.py | lvyufeng/mindspore_poems | 2f46afa290a8065cd1c774c26a96be76da30873e | [
"MIT"
] | null | null | null | import os
import numpy as np
import mindspore
from mindspore import Tensor
from mindspore import load_checkpoint, load_param_into_net
from src.model import RNNModel, RNNModelInfer
from src.utils import process_poems
start_token = 'B'
end_token = 'E'
model_dir = './ckpt/'
corpus_file = './data/poems.txt'
def to_word(p... | 30.303571 | 83 | 0.669417 | 240 | 1,697 | 4.483333 | 0.383333 | 0.04461 | 0.036245 | 0.02974 | 0.133829 | 0.074349 | 0.074349 | 0.074349 | 0 | 0 | 0 | 0.010487 | 0.213318 | 1,697 | 56 | 84 | 30.303571 | 0.795506 | 0 | 0 | 0.041667 | 0 | 0 | 0.079505 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.145833 | 0 | 0.229167 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5976b5eadcdfa649651a6db9b9bd714639c5b347 | 1,523 | py | Python | pychemia/core/from_file.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 67 | 2015-01-31T07:44:55.000Z | 2022-03-21T21:43:34.000Z | pychemia/core/from_file.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 13 | 2016-06-03T19:07:51.000Z | 2022-03-31T04:20:40.000Z | pychemia/core/from_file.py | petavazohi/PyChemia | e779389418771c25c830aed360773c63bb069372 | [
"MIT"
] | 37 | 2015-01-22T15:37:23.000Z | 2022-03-21T15:38:10.000Z | import os
import sys
from pychemia import HAS_PYMATGEN, pcm_log
from .structure import Structure
from pychemia.code.vasp import read_poscar
from pychemia.code.abinit import AbinitInput
def structure_from_file(structure_file):
"""
Attempts to reconstruct a PyChemia Structure from the contents of any given file... | 37.146341 | 99 | 0.692055 | 199 | 1,523 | 5.170854 | 0.38191 | 0.164237 | 0.049563 | 0.061224 | 0.109815 | 0.08552 | 0.08552 | 0.08552 | 0.08552 | 0 | 0 | 0.00337 | 0.220617 | 1,523 | 40 | 100 | 38.075 | 0.863521 | 0.170716 | 0 | 0.096774 | 0 | 0 | 0.111741 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.032258 | false | 0 | 0.225806 | 0 | 0.290323 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59792e136f9480b5e034aa6d01981255bd1bfdd7 | 992 | py | Python | snptools/vc_matrix.py | pvanheus/variant_exploration_with_tralynca | 4ffadc29c19d68909beed2254646e36513311847 | [
"MIT"
] | null | null | null | snptools/vc_matrix.py | pvanheus/variant_exploration_with_tralynca | 4ffadc29c19d68909beed2254646e36513311847 | [
"MIT"
] | null | null | null | snptools/vc_matrix.py | pvanheus/variant_exploration_with_tralynca | 4ffadc29c19d68909beed2254646e36513311847 | [
"MIT"
] | null | null | null |
from os import listdir
import os.path
import pandas as pd
from .count_variants_per_gene import process_vcf
from .genetree import make_gene_tree
def make_variant_count_matrix(input_directory, output_filename):
gene_tree = make_gene_tree()
locus_names = sorted([ interval.data['locus'] for interval in gene_tree ... | 41.333333 | 93 | 0.676411 | 130 | 992 | 4.953846 | 0.376923 | 0.062112 | 0.118012 | 0.059006 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0.26087 | 0 | 0.002581 | 0.21875 | 992 | 24 | 94 | 41.333333 | 0.828387 | 0 | 0 | 0 | 0 | 0 | 0.028226 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5979cf5bed5000445a52e27786a6829f4458f888 | 481 | py | Python | oarepo_records_draft/merge.py | oarepo/invenio-records-draft | 6d77309996c58fde7731e5f182e9cd5400f81f14 | [
"MIT"
] | 1 | 2020-06-03T14:44:49.000Z | 2020-06-03T14:44:49.000Z | oarepo_records_draft/merge.py | oarepo/invenio-records-draft | 6d77309996c58fde7731e5f182e9cd5400f81f14 | [
"MIT"
] | 7 | 2020-06-02T14:45:48.000Z | 2021-11-16T08:38:47.000Z | oarepo_records_draft/merge.py | oarepo/invenio-records-draft | 6d77309996c58fde7731e5f182e9cd5400f81f14 | [
"MIT"
] | 1 | 2019-08-15T07:59:48.000Z | 2019-08-15T07:59:48.000Z | from deepmerge import Merger
def list_merge(config, path, base, nxt):
for k in range(0, min(len(base), len(nxt))):
if isinstance(base[k], (dict, list, tuple)):
draft_merger.merge(base[k], nxt[k])
else:
base[k] = nxt[k]
for k in range(len(base), len(nxt)):
base.a... | 20.913043 | 52 | 0.534304 | 64 | 481 | 3.953125 | 0.421875 | 0.059289 | 0.047431 | 0.086957 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00295 | 0.295218 | 481 | 22 | 53 | 21.863636 | 0.743363 | 0 | 0 | 0 | 0 | 0 | 0.043659 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0 | 0.055556 | 0 | 0.166667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
597bfa5b6f7cdb21349ef3d1cce73227ae2c86fc | 4,951 | py | Python | source/01_make_coordinates/make_coordinates.py | toshi-k/kaggle-airbus-ship-detection-challenge | 872a160057592022488b1772b6c7a8982677d1dc | [
"Apache-2.0"
] | 90 | 2018-11-17T21:37:41.000Z | 2021-11-24T11:55:34.000Z | source/01_make_coordinates/make_coordinates.py | jackweiwang/kaggle-airbus-ship-detection-challenge | 872a160057592022488b1772b6c7a8982677d1dc | [
"Apache-2.0"
] | 3 | 2018-11-27T14:23:15.000Z | 2020-03-09T09:23:25.000Z | source/01_make_coordinates/make_coordinates.py | jackweiwang/kaggle-airbus-ship-detection-challenge | 872a160057592022488b1772b6c7a8982677d1dc | [
"Apache-2.0"
] | 14 | 2018-11-17T21:37:44.000Z | 2020-11-30T02:22:28.000Z | import os
import numpy as np
import pandas as pd
from tqdm import tqdm
from PIL import Image
from lib.img2_coord_ica import img2_coord_iter, coord2_img
from lib.log import Logger
# ref: https://www.kaggle.com/paulorzp/run-length-encode-and-decode
def rle_decode(mask_rle, shape=(768, 768)):
"""
Args:
... | 30.006061 | 119 | 0.626338 | 675 | 4,951 | 4.33037 | 0.238519 | 0.038317 | 0.037633 | 0.041054 | 0.255559 | 0.189531 | 0.180636 | 0.180636 | 0.153267 | 0.153267 | 0 | 0.021925 | 0.244597 | 4,951 | 164 | 120 | 30.189024 | 0.759626 | 0.05413 | 0 | 0.137255 | 0 | 0 | 0.086957 | 0.015497 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029412 | false | 0.009804 | 0.068627 | 0 | 0.107843 | 0.029412 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
597e7da85300fb6bd6d365c07bb2ba1dbac55565 | 1,598 | py | Python | scripts/combine_errors.py | nbren12/nn_atmos_param | cb138f0b211fd5743e56ad659aec38c082d2b3ac | [
"MIT"
] | 4 | 2018-09-16T20:55:57.000Z | 2020-12-06T11:27:50.000Z | scripts/combine_errors.py | nbren12/nn_atmos_param | cb138f0b211fd5743e56ad659aec38c082d2b3ac | [
"MIT"
] | 5 | 2018-04-07T07:40:39.000Z | 2018-06-20T06:56:08.000Z | scripts/combine_errors.py | nbren12/nn_atmos_param | cb138f0b211fd5743e56ad659aec38c082d2b3ac | [
"MIT"
] | null | null | null | import numpy as np
import re
import json
import xarray as xr
import pandas as pd
def read_train_loss(epoch, fname,
variables=['test_loss', 'train_loss']):
"""Read the loss.json file for the current epochs test and train loss"""
df = pd.read_json(fname)
epoch_means = df.groupby('epoch')... | 30.150943 | 90 | 0.627034 | 236 | 1,598 | 4.15678 | 0.432203 | 0.045872 | 0.045872 | 0.030581 | 0.059123 | 0.059123 | 0.059123 | 0 | 0 | 0 | 0 | 0.004055 | 0.228411 | 1,598 | 52 | 91 | 30.730769 | 0.791565 | 0.174593 | 0 | 0 | 0 | 0 | 0.163359 | 0.101527 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.138889 | 0 | 0.222222 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5980a13b88db20b5e773819c926a4981f53bb21e | 1,611 | py | Python | mu.py | cool2645/shadowsocksrr | 0a594857f4c3125ab14d27d7fd8143291b7c9fee | [
"Apache-2.0"
] | 2 | 2018-05-14T10:41:38.000Z | 2020-05-22T12:40:57.000Z | mu.py | cool2645/shadowsocksrr | 0a594857f4c3125ab14d27d7fd8143291b7c9fee | [
"Apache-2.0"
] | null | null | null | mu.py | cool2645/shadowsocksrr | 0a594857f4c3125ab14d27d7fd8143291b7c9fee | [
"Apache-2.0"
] | 1 | 2018-09-22T16:15:14.000Z | 2018-09-22T16:15:14.000Z | import db_transfer
import config
import logging
from musdk.client import Client
class MuApiTransfer(db_transfer.TransferBase):
client = None
users = []
def __init__(self):
super(MuApiTransfer, self).__init__()
self.pull_ok = False
self.port_uid_table = {}
self.init_mu_clie... | 28.767857 | 76 | 0.590937 | 202 | 1,611 | 4.455446 | 0.267327 | 0.035556 | 0.036667 | 0.053333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.00724 | 0.314091 | 1,611 | 55 | 77 | 29.290909 | 0.80724 | 0 | 0 | 0 | 0 | 0 | 0.044693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.104167 | false | 0 | 0.083333 | 0 | 0.354167 | 0.083333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
598126ffcc8da7b8ff9a91f8f601f2ef5306a660 | 2,001 | py | Python | tests/test_json.py | NyntoFive/data_extractor | 965e12570d6b7549aa2f8b3bd1951e06b010c444 | [
"MIT"
] | null | null | null | tests/test_json.py | NyntoFive/data_extractor | 965e12570d6b7549aa2f8b3bd1951e06b010c444 | [
"MIT"
] | null | null | null | tests/test_json.py | NyntoFive/data_extractor | 965e12570d6b7549aa2f8b3bd1951e06b010c444 | [
"MIT"
] | null | null | null | # Standard Library
import json
# Third Party Library
import pytest
from jsonpath_rw.lexer import JsonPathLexerError
# First Party Library
from data_extractor.exceptions import ExprError, ExtractError
from data_extractor.json import JSONExtractor
@pytest.fixture(scope="module")
def text():
return """
{
... | 23.267442 | 82 | 0.590705 | 224 | 2,001 | 5.205357 | 0.258929 | 0.030875 | 0.072041 | 0.085763 | 0.506003 | 0.35506 | 0.328473 | 0.328473 | 0.039451 | 0.039451 | 0 | 0.012089 | 0.255872 | 2,001 | 85 | 83 | 23.541176 | 0.770987 | 0.027986 | 0 | 0.215385 | 0 | 0 | 0.192169 | 0 | 0 | 0 | 0 | 0 | 0.107692 | 1 | 0.092308 | false | 0 | 0.076923 | 0.030769 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59814b4554d683700762543937d73f8de4e2078a | 938 | py | Python | demo/predictions/visualize.py | qixuxiang/maskrcnn_tianchi_stage2 | 52023b64268dc91f0b5b9f085203ab00a542458a | [
"MIT"
] | null | null | null | demo/predictions/visualize.py | qixuxiang/maskrcnn_tianchi_stage2 | 52023b64268dc91f0b5b9f085203ab00a542458a | [
"MIT"
] | null | null | null | demo/predictions/visualize.py | qixuxiang/maskrcnn_tianchi_stage2 | 52023b64268dc91f0b5b9f085203ab00a542458a | [
"MIT"
] | null | null | null | import numpy as np
from PIL import Image
import os
npy_file1 = './prediction/1110_1.npy'
npy_file2 = './prediction/1110_2.npy'
npy_file3 = './prediction/1110_3.npy'
npy_file4 = './prediction/1110_4.npy'
npy_file5 = './prediction/1110_5.npy'
arr1 = np.load(npy_file1)
arr2 = np.load(npy_file2)
arr3 = np.load(npy_file3)... | 26.055556 | 41 | 0.715352 | 160 | 938 | 4.06875 | 0.29375 | 0.107527 | 0.069124 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.099299 | 0.08742 | 938 | 35 | 42 | 26.8 | 0.661215 | 0 | 0 | 0 | 0 | 0 | 0.234542 | 0.122601 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0.151515 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5985441293e6489af243c2cd16aa10e62e49c056 | 16,658 | py | Python | gamestonk_terminal/cryptocurrency/due_diligence/pycoingecko_view.py | clairvoyant/GamestonkTerminal | 7b40cfe61b32782e36f5de8a08d075532a08c294 | [
"MIT"
] | null | null | null | gamestonk_terminal/cryptocurrency/due_diligence/pycoingecko_view.py | clairvoyant/GamestonkTerminal | 7b40cfe61b32782e36f5de8a08d075532a08c294 | [
"MIT"
] | null | null | null | gamestonk_terminal/cryptocurrency/due_diligence/pycoingecko_view.py | clairvoyant/GamestonkTerminal | 7b40cfe61b32782e36f5de8a08d075532a08c294 | [
"MIT"
] | null | null | null | """CoinGecko view"""
__docformat__ = "numpy"
import argparse
from typing import List, Tuple
import pandas as pd
from pandas.plotting import register_matplotlib_converters
import matplotlib.pyplot as plt
from tabulate import tabulate
import mplfinance as mpf
from gamestonk_terminal.helper_funcs import (
parse_know... | 27.308197 | 117 | 0.551327 | 1,786 | 16,658 | 5.015677 | 0.166853 | 0.040188 | 0.034829 | 0.042867 | 0.666667 | 0.653159 | 0.646796 | 0.625251 | 0.591762 | 0.591762 | 0 | 0.005174 | 0.350222 | 16,658 | 609 | 118 | 27.353038 | 0.822432 | 0.119642 | 0 | 0.65122 | 0 | 0.014634 | 0.266301 | 0.007307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.029268 | false | 0 | 0.026829 | 0 | 0.102439 | 0.087805 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5985716e3511f569993e2ea970c450df3042b443 | 701 | py | Python | source/loaders/tploaders.py | rodsom22/gcn_refinement | b1b76811b145a2fa7e595cc6d131d75c0553d5a3 | [
"MIT"
] | 24 | 2020-05-04T20:24:35.000Z | 2022-03-21T07:57:02.000Z | source/loaders/tploaders.py | rodsom22/gcn_refinement | b1b76811b145a2fa7e595cc6d131d75c0553d5a3 | [
"MIT"
] | 3 | 2020-09-02T15:54:10.000Z | 2021-05-27T03:09:31.000Z | source/loaders/tploaders.py | rodsom22/gcn_refinement | b1b76811b145a2fa7e595cc6d131d75c0553d5a3 | [
"MIT"
] | 6 | 2020-08-03T21:01:37.000Z | 2021-02-04T02:24:46.000Z | """
Data loaders based on tensorpack
"""
import numpy as np
from utilities import nparrays as arrtools
def get_pancreas_generator(sample_name, volumes_path, references_path):
sample_vol_name = volumes_path + sample_name[0]
reference_vol_name = references_path + sample_name[1]
volume = np.load(sample_vol... | 29.208333 | 71 | 0.706134 | 94 | 701 | 4.978723 | 0.425532 | 0.059829 | 0.064103 | 0.111111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.010733 | 0.202568 | 701 | 23 | 72 | 30.478261 | 0.826476 | 0.045649 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.133333 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5986b5465c4c37fe33e19dc8df090df96c8f030d | 3,137 | py | Python | deep_learning/dl.py | remix-yh/moneycount | e8f35549ef96b8ebe6ca56417f0833f519179173 | [
"MIT"
] | null | null | null | deep_learning/dl.py | remix-yh/moneycount | e8f35549ef96b8ebe6ca56417f0833f519179173 | [
"MIT"
] | 7 | 2020-09-26T00:46:23.000Z | 2022-02-10T01:08:15.000Z | deep_learning/dl.py | remix-yh/moneycount | e8f35549ef96b8ebe6ca56417f0833f519179173 | [
"MIT"
] | null | null | null | import os
import io
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.backends.backend_agg import FigureCanvasAgg
from matplotlib.figure import Figure
from keras.applications.imagenet_utils import preprocess_input
from keras.backend.tensorflow_backend import set_session
from kera... | 31.37 | 95 | 0.667198 | 450 | 3,137 | 4.464444 | 0.371111 | 0.034843 | 0.025884 | 0.009955 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02913 | 0.201148 | 3,137 | 100 | 96 | 31.37 | 0.772546 | 0.006694 | 0 | 0 | 0 | 0 | 0.048812 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0 | 0.179487 | 0 | 0.230769 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
598974722569cb3c84cf300f7c787f22839c151a | 2,255 | py | Python | authors/tests/test_article_filters.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | null | null | null | authors/tests/test_article_filters.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 43 | 2018-10-25T10:14:52.000Z | 2022-03-11T23:33:46.000Z | authors/tests/test_article_filters.py | andela/ah-backend-odin | 0e9ef1a10c8a3f6736999a5111736f7bd7236689 | [
"BSD-3-Clause"
] | 4 | 2018-10-29T07:04:58.000Z | 2020-04-02T14:15:10.000Z | from . import BaseAPITestCase
class TestArticleFilters(BaseAPITestCase):
def setUp(self):
super().setUp()
self.authenticate()
def test_it_filters_articles_by_article_title(self):
self.create_article()
self.create_article(title="Some article with another title")
respo... | 36.370968 | 75 | 0.640355 | 250 | 2,255 | 5.572 | 0.276 | 0.071788 | 0.097631 | 0.05743 | 0.594401 | 0.519024 | 0.400574 | 0.293611 | 0.264178 | 0.264178 | 0 | 0.002872 | 0.227938 | 2,255 | 61 | 76 | 36.967213 | 0.797243 | 0 | 0 | 0.24 | 0 | 0 | 0.208426 | 0.068293 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.16 | false | 0 | 0.02 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
598d5551f035952fc6ef820f0bbd414d1bb129f0 | 720 | py | Python | myexporter/tcpexporter.py | abh15/flower | 7e1ab9393e0494f23df65bfa4f858cc35fea290e | [
"Apache-2.0"
] | null | null | null | myexporter/tcpexporter.py | abh15/flower | 7e1ab9393e0494f23df65bfa4f858cc35fea290e | [
"Apache-2.0"
] | null | null | null | myexporter/tcpexporter.py | abh15/flower | 7e1ab9393e0494f23df65bfa4f858cc35fea290e | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/python3
import subprocess
import time
from prometheus_client import start_http_server, Gauge
def getstat():
s=subprocess.getoutput('ss -i -at \'( dport = :x11 or sport = :x11 )\' | awk \'FNR == 3 { print $4}\'')
if s == "":
return(0.0,"")
else:
rtt=s.lstrip("rtt:")
r=rtt.... | 32.727273 | 112 | 0.590278 | 102 | 720 | 4.117647 | 0.568627 | 0.042857 | 0.071429 | 0.104762 | 0.228571 | 0.228571 | 0.228571 | 0.228571 | 0.228571 | 0.228571 | 0 | 0.042553 | 0.216667 | 720 | 22 | 113 | 32.727273 | 0.702128 | 0.023611 | 0 | 0 | 0 | 0 | 0.129445 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.157895 | 0 | 0.210526 | 0.105263 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
598f144f73e5a69e09521df868c498cc54751d48 | 516 | py | Python | tests/features/steps/roman.py | TestowanieAutomatyczneUG/laboratorium_14-maciejSzcz | b92186c574d3f21acd9f3e913e1a8ddcb5ec81fd | [
"MIT"
] | null | null | null | tests/features/steps/roman.py | TestowanieAutomatyczneUG/laboratorium_14-maciejSzcz | b92186c574d3f21acd9f3e913e1a8ddcb5ec81fd | [
"MIT"
] | null | null | null | tests/features/steps/roman.py | TestowanieAutomatyczneUG/laboratorium_14-maciejSzcz | b92186c574d3f21acd9f3e913e1a8ddcb5ec81fd | [
"MIT"
] | null | null | null | from behave import *
use_step_matcher("re")
@given("user inputs (?P<number>.+) and (?P<guess>.+)")
def step_impl(context, number, guess):
context.number = int(number)
context.user_guess = guess
@when("we run the converter")
def step_impl(context):
try:
context.res = context.roman.check_guess(con... | 24.571429 | 83 | 0.672481 | 74 | 516 | 4.581081 | 0.513514 | 0.061947 | 0.097345 | 0.159292 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.178295 | 516 | 20 | 84 | 25.8 | 0.799528 | 0 | 0 | 0 | 0 | 0 | 0.193798 | 0 | 0 | 0 | 0 | 0 | 0.066667 | 1 | 0.2 | false | 0 | 0.066667 | 0 | 0.266667 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
599099e8cbd4ce7be2457cb90f171f8cb872d8d1 | 1,266 | py | Python | main.py | AbirLOUARD/AspiRobot | 0ea78bfd7c20f1371c01a0e912f5e92bed6648b7 | [
"MIT"
] | 1 | 2022-03-31T18:37:11.000Z | 2022-03-31T18:37:11.000Z | main.py | AbirLOUARD/AspiRobot | 0ea78bfd7c20f1371c01a0e912f5e92bed6648b7 | [
"MIT"
] | null | null | null | main.py | AbirLOUARD/AspiRobot | 0ea78bfd7c20f1371c01a0e912f5e92bed6648b7 | [
"MIT"
] | null | null | null | import functions
import Aspirobot
import time
import os
import Manoir
import Capteur
import Etat
import threading
import Case
from threading import Thread
manor_size = 5
gameIsRunning = True
clearConsole = lambda: os.system('cls' if os.name in ('nt', 'dos') else 'clear')
manoir = Manoir.Manoir(manor_size, manor_size... | 21.827586 | 80 | 0.691153 | 147 | 1,266 | 5.816327 | 0.442177 | 0.031579 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014866 | 0.203002 | 1,266 | 57 | 81 | 22.210526 | 0.832507 | 0.011058 | 0 | 0.083333 | 0 | 0 | 0.024561 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.055556 | false | 0.027778 | 0.277778 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
599104a205da723279b528df24bd43e2dcb5bdbb | 1,169 | py | Python | docs/src/newsgroups_data.py | vishalbelsare/RLScore | 713f0a402f7a09e41a609f2ddcaf849b2021a0a7 | [
"MIT"
] | 61 | 2015-03-06T08:48:01.000Z | 2021-04-26T16:13:07.000Z | docs/src/newsgroups_data.py | andrecamara/RLScore | 713f0a402f7a09e41a609f2ddcaf849b2021a0a7 | [
"MIT"
] | 5 | 2016-09-08T15:47:00.000Z | 2019-02-25T17:44:55.000Z | docs/src/newsgroups_data.py | vishalbelsare/RLScore | 713f0a402f7a09e41a609f2ddcaf849b2021a0a7 | [
"MIT"
] | 31 | 2015-01-28T15:05:33.000Z | 2021-04-16T19:39:48.000Z | import numpy as np
from scipy import sparse as sp
from rlscore.utilities import multiclass
def load_newsgroups():
T = np.loadtxt("train.data")
#map indices from 1...n to 0...n-1
rows = T[:,0] -1
cols = T[:,1] -1
vals = T[:,2]
X_train = sp.coo_matrix((vals, (rows, cols)))
X_train = X_train.... | 30.763158 | 58 | 0.638152 | 202 | 1,169 | 3.455446 | 0.292079 | 0.06447 | 0.025788 | 0.051576 | 0.363897 | 0.323782 | 0.26361 | 0.194842 | 0.131805 | 0.131805 | 0 | 0.019481 | 0.209581 | 1,169 | 37 | 59 | 31.594595 | 0.735931 | 0.101796 | 0 | 0.206897 | 0 | 0 | 0.108883 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068966 | false | 0 | 0.103448 | 0 | 0.206897 | 0.172414 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59962bcd6324fb181e2aeed2776a6d4ee13fa678 | 1,245 | py | Python | 5hours/14_dictionaries.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null | 5hours/14_dictionaries.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null | 5hours/14_dictionaries.py | matiasmasca/python | 7631583820d51e3132bdb793fed28cc83f4877a2 | [
"MIT"
] | null | null | null | # como los hash de ruby, guarda "clave" "valor"
# al igual que un diccionario, esta la Palabra, que es la clave y la definción que seria el valor.
# las claves tienen que ser unicas
nombre_de_diccionario = {} #curly brackets.
monthConversions = {
"Jan": "January",
"Feb": "February",
"Mar": "March",
"Apr": "A... | 23.055556 | 98 | 0.654618 | 164 | 1,245 | 4.957317 | 0.579268 | 0.180812 | 0.088561 | 0.066421 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019455 | 0.174297 | 1,245 | 53 | 99 | 23.490566 | 0.771401 | 0.343775 | 0 | 0.055556 | 0 | 0 | 0.306351 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.194444 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
5997a4ecb7f8086a5d0b295c0471521ff04b54f7 | 6,985 | py | Python | graph/__init__.py | worldwise001/stylometry | b5a4cc98fb8dfb6d1600d41bb15c96aeaf4ecb72 | [
"MIT"
] | 14 | 2015-02-24T16:14:07.000Z | 2022-02-19T21:49:55.000Z | graph/__init__.py | worldwise001/stylometry | b5a4cc98fb8dfb6d1600d41bb15c96aeaf4ecb72 | [
"MIT"
] | 1 | 2015-02-25T09:45:13.000Z | 2015-02-25T09:45:13.000Z | graph/__init__.py | worldwise001/stylometry | b5a4cc98fb8dfb6d1600d41bb15c96aeaf4ecb72 | [
"MIT"
] | 4 | 2015-11-20T10:47:11.000Z | 2021-03-30T13:14:20.000Z | import matplotlib
matplotlib.use('Agg')
import statsmodels.api as sm
import statsmodels.formula.api as smf
import numpy as np
from scipy.stats import linregress
import matplotlib.pyplot as plt
from sklearn.metrics import roc_curve, auc
def hist_prebin(filename, values, width=1, x_title='', y_title='', title=None):
... | 30.502183 | 100 | 0.591553 | 1,077 | 6,985 | 3.751161 | 0.16156 | 0.039604 | 0.043564 | 0.025743 | 0.582673 | 0.515099 | 0.481683 | 0.474257 | 0.425 | 0.425 | 0 | 0.030654 | 0.234073 | 6,985 | 228 | 101 | 30.635965 | 0.724486 | 0.024338 | 0 | 0.505435 | 0 | 0 | 0.057701 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.048913 | false | 0 | 0.038043 | 0 | 0.086957 | 0.01087 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59995210d6ac282b5113ee3252c96de5a50256f9 | 2,251 | py | Python | test/test_component.py | gadalang/gada | 2dd4f4dfd5b7390c06307040cad23203a015f7a4 | [
"MIT"
] | null | null | null | test/test_component.py | gadalang/gada | 2dd4f4dfd5b7390c06307040cad23203a015f7a4 | [
"MIT"
] | null | null | null | test/test_component.py | gadalang/gada | 2dd4f4dfd5b7390c06307040cad23203a015f7a4 | [
"MIT"
] | 1 | 2021-06-15T13:52:33.000Z | 2021-06-15T13:52:33.000Z | __all__ = ["ComponentTestCase"]
import os
import sys
import yaml
import unittest
from gada import component
from test.utils import TestCaseBase
class ComponentTestCase(TestCaseBase):
def test_load(self):
"""Test loading the testnodes package that is in PYTHONPATH."""
# Load component configuration... | 32.157143 | 86 | 0.662372 | 255 | 2,251 | 5.603922 | 0.278431 | 0.055983 | 0.062981 | 0.044087 | 0.357593 | 0.23373 | 0.216935 | 0.103569 | 0.071379 | 0 | 0 | 0 | 0.236784 | 2,251 | 69 | 87 | 32.623188 | 0.831781 | 0.161706 | 0 | 0.181818 | 0 | 0 | 0.147709 | 0.012399 | 0 | 0 | 0 | 0 | 0.204545 | 1 | 0.136364 | false | 0 | 0.136364 | 0 | 0.295455 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
599a3aac676f1bdb004c22bf7034b685260f3101 | 17,820 | py | Python | color pattern with threading.py | HashtagInnovator/Alpha-Star | f69a35b1924320dfec9610d6b61acae8d9de4afa | [
"Apache-2.0"
] | null | null | null | color pattern with threading.py | HashtagInnovator/Alpha-Star | f69a35b1924320dfec9610d6b61acae8d9de4afa | [
"Apache-2.0"
] | null | null | null | color pattern with threading.py | HashtagInnovator/Alpha-Star | f69a35b1924320dfec9610d6b61acae8d9de4afa | [
"Apache-2.0"
] | null | null | null | import time
import random
from multiprocessing import pool
from playsound import playsound
from threading import Thread
i = -1
l = 0
count = 0
class loops:
def loop(self):
print(" ", end="")
def A(self):
global i
global l
global i
for j in range(i, 5):
... | 26.322009 | 129 | 0.306285 | 2,048 | 17,820 | 2.665039 | 0.071777 | 0.111396 | 0.056064 | 0.047637 | 0.633199 | 0.538476 | 0.423232 | 0.360572 | 0.329425 | 0.317332 | 0 | 0.046841 | 0.48844 | 17,820 | 676 | 130 | 26.360947 | 0.551887 | 0.01257 | 0 | 0.580101 | 0 | 0 | 0.048209 | 0.002786 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047218 | false | 0 | 0.008432 | 0 | 0.10118 | 0.305228 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
599d3203f355bf0108b50dc6b8026b093b4736fc | 395 | py | Python | scripts/test_web3.py | AeneasHe/eth-brownie-enhance | e53995924ffb93239b9fab6c1c1a07e9166dd1c6 | [
"MIT"
] | 1 | 2021-10-04T23:34:14.000Z | 2021-10-04T23:34:14.000Z | scripts/test_web3.py | AeneasHe/eth-brownie-enhance | e53995924ffb93239b9fab6c1c1a07e9166dd1c6 | [
"MIT"
] | null | null | null | scripts/test_web3.py | AeneasHe/eth-brownie-enhance | e53995924ffb93239b9fab6c1c1a07e9166dd1c6 | [
"MIT"
] | null | null | null | import wpath
from web3 import Web3
from web3 import Web3, HTTPProvider, IPCProvider, WebsocketProvider
def get_web3_by_http_rpc():
address = "http://47.243.92.131:8545"
print("===>address:", address)
p = HTTPProvider(address)
web3 = Web3(p)
return web3
w3 = get_web3_by_http_rpc()
eth = w3.eth
... | 18.809524 | 67 | 0.721519 | 52 | 395 | 5.326923 | 0.5 | 0.057762 | 0.101083 | 0.129964 | 0.115523 | 0 | 0 | 0 | 0 | 0 | 0 | 0.154545 | 0.164557 | 395 | 20 | 68 | 19.75 | 0.684848 | 0 | 0 | 0 | 0 | 0 | 0.2 | 0.106329 | 0 | 0 | 0.106329 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.230769 | 0 | 0.384615 | 0.153846 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
599f0418376070df049179da7c8e1b8f17a142f2 | 834 | py | Python | models/sklearn_model.py | Ailln/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | 11 | 2020-07-11T06:14:29.000Z | 2021-12-02T08:48:53.000Z | models/sklearn_model.py | HaveTwoBrush/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | null | null | null | models/sklearn_model.py | HaveTwoBrush/stock-prediction | 9de77de5047446ffceeed83cb610c7edd2cb1ad3 | [
"MIT"
] | 8 | 2020-04-15T14:29:47.000Z | 2021-12-19T09:26:53.000Z | from sklearn import svm
from sklearn import ensemble
from sklearn import linear_model
class Model(object):
def __init__(self):
self.model_dict = {
"SGDRegressor": linear_model.SGDRegressor(max_iter=1000),
"HuberRegressor": linear_model.HuberRegressor(),
"LinearRegressio... | 37.909091 | 77 | 0.681055 | 67 | 834 | 8.268657 | 0.402985 | 0.079422 | 0.092058 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006173 | 0.223022 | 834 | 21 | 78 | 39.714286 | 0.848765 | 0 | 0 | 0 | 0 | 0 | 0.178657 | 0.055156 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0.055556 | 0.388889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59a0a3b7aa59f29b5ba0e35ea23ff02112e179f9 | 1,023 | py | Python | 00Python/day05/basic02.py | HaoZhang95/PythonAndMachineLearning | b897224b8a0e6a5734f408df8c24846a98c553bf | [
"MIT"
] | 937 | 2019-05-08T08:46:25.000Z | 2022-03-31T12:56:07.000Z | 00Python/day05/basic02.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 47 | 2019-09-17T10:06:02.000Z | 2022-03-11T23:46:52.000Z | 00Python/day05/basic02.py | Sakura-gh/Python24 | b97e18867264a0647d5645c7d757a0040e755577 | [
"MIT"
] | 354 | 2019-05-10T02:15:26.000Z | 2022-03-30T05:52:57.000Z | """
list元素的排序
sort() 默认无参数是从小到大
reversed(list) 整个列表直接反过来,返回值是一个新的list
"""
import random
a_list = []
for i in range(10):
a_list.append(random.randint(0, 200))
print(a_list)
a_list.sort()
print(a_list)
a_list.sort(reverse=True) # 降序,从大到小
print(a_list)
new_list = reversed(a_list) # [12,10,7,9] -> ... | 18.267857 | 60 | 0.641251 | 139 | 1,023 | 4.568345 | 0.467626 | 0.062992 | 0.047244 | 0.034646 | 0.059843 | 0.059843 | 0 | 0 | 0 | 0 | 0 | 0.042959 | 0.180841 | 1,023 | 55 | 61 | 18.6 | 0.714797 | 0.200391 | 0 | 0.166667 | 0 | 0 | 0.156112 | 0.060383 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.033333 | 0 | 0.033333 | 0.266667 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59a69dfbb3f7dfb97929bbbc436b9c105fe9fa48 | 1,643 | py | Python | ThreeBotPackages/unlock_service/scripts/restore.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 7 | 2020-02-05T16:10:46.000Z | 2021-04-28T10:39:20.000Z | ThreeBotPackages/unlock_service/scripts/restore.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 379 | 2020-01-13T10:22:21.000Z | 2022-03-23T08:59:57.000Z | ThreeBotPackages/unlock_service/scripts/restore.py | threefoldfoundation/tft-stellar | b36460e8dba547923778273b53fe4f0e06996db0 | [
"Apache-2.0"
] | 3 | 2020-01-24T09:56:44.000Z | 2020-08-03T21:02:38.000Z | #!/usr/bin/env python
# pylint: disable=no-value-for-parameter
import click
import os
import sys
import requests
import json
UNLOCK_SERVICE_DEFAULT_HOSTS = {"test": "https://testnet.threefold.io", "public": "https://tokenservices.threefold.io"}
@click.command()
@click.option("--source", default="export_data", help=... | 37.340909 | 120 | 0.684114 | 187 | 1,643 | 5.748663 | 0.42246 | 0.108837 | 0.094884 | 0.046512 | 0.043721 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.200243 | 1,643 | 43 | 121 | 38.209302 | 0.818113 | 0.03591 | 0 | 0.0625 | 0 | 0 | 0.269279 | 0.08091 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.25 | 0 | 0.28125 | 0.03125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59a7951eb259bc0943a926370fa409960f8cba7c | 4,984 | py | Python | pgdiff/diff/PgDiffConstraints.py | Onapsis/pgdiff | ee9f618bc339cbfaf7967103e95f9650273550f8 | [
"MIT"
] | 2 | 2020-05-11T16:42:48.000Z | 2020-08-27T04:11:49.000Z | diff/PgDiffConstraints.py | Gesha3809/PgDiffPy | 00466429d0385eb999c32addcbe6e2746782cb5d | [
"MIT"
] | 1 | 2018-04-11T18:19:33.000Z | 2018-04-13T15:18:40.000Z | diff/PgDiffConstraints.py | Gesha3809/PgDiffPy | 00466429d0385eb999c32addcbe6e2746782cb5d | [
"MIT"
] | 1 | 2018-04-11T15:09:22.000Z | 2018-04-11T15:09:22.000Z | from PgDiffUtils import PgDiffUtils
class PgDiffConstraints(object):
@staticmethod
def createConstraints(writer, oldSchema, newSchema, primaryKey, searchPathHelper):
for newTableName, newTable in newSchema.tables.items():
oldTable = None
if (oldSchema is not None):
... | 41.190083 | 99 | 0.58427 | 386 | 4,984 | 7.544041 | 0.178756 | 0.06044 | 0.027816 | 0.072115 | 0.50206 | 0.487981 | 0.487981 | 0.428571 | 0.428571 | 0.331731 | 0 | 0 | 0.347311 | 4,984 | 121 | 100 | 41.190083 | 0.895174 | 0.016453 | 0 | 0.404494 | 0 | 0 | 0.015922 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05618 | false | 0 | 0.011236 | 0 | 0.11236 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59a8688939bcf65bd9fa72756ce61831127d2530 | 7,715 | py | Python | experiments/old_code/result_scripts.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | null | null | null | experiments/old_code/result_scripts.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | null | null | null | experiments/old_code/result_scripts.py | hytsang/cs-ranking | 241626a6a100a27b96990b4f199087a6dc50dcc0 | [
"Apache-2.0"
] | 1 | 2018-10-30T08:57:14.000Z | 2018-10-30T08:57:14.000Z | import inspect
import logging
import os
from itertools import product
import numpy as np
import pandas as pd
from skopt import load, dump
from csrank.constants import OBJECT_RANKING
from csrank.util import files_with_same_name, create_dir_recursively, rename_file_if_exist
from experiments.util import dataset_options_... | 43.835227 | 119 | 0.608425 | 960 | 7,715 | 4.647917 | 0.179167 | 0.03429 | 0.025101 | 0.017481 | 0.422008 | 0.355446 | 0.284626 | 0.259525 | 0.23801 | 0.23801 | 0 | 0.004839 | 0.276734 | 7,715 | 175 | 120 | 44.085714 | 0.794803 | 0.012573 | 0 | 0.231788 | 0 | 0.006623 | 0.123687 | 0.003808 | 0 | 0 | 0 | 0 | 0 | 1 | 0.046358 | false | 0 | 0.066225 | 0 | 0.125828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59a98cedbef2ddabf9e787d32a317a09b1db8b5e | 13,108 | py | Python | notochord/features/BagOfWords.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/features/BagOfWords.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | notochord/features/BagOfWords.py | jroose/notochord | da9a6ff5d0fabbf0694d0bee1b81a240b66fa006 | [
"MIT"
] | null | null | null | from .. import schema, App, QueryCache, batcher, grouper, insert_ignore, export, lookup, persist, lookup_or_persist, ABCArgumentGroup, WorkOrderArgs, filter_widgets, temptable_scope, FeatureCache
from ..ObjectStore import ABCObjectStore
from sqlalchemy import Column, Integer, String, Float, ForeignKey, UnicodeText, Uni... | 51.403922 | 251 | 0.580333 | 1,515 | 13,108 | 4.772277 | 0.171617 | 0.049793 | 0.019779 | 0.033472 | 0.329737 | 0.283541 | 0.209959 | 0.188658 | 0.167082 | 0.138036 | 0 | 0.003319 | 0.310345 | 13,108 | 254 | 252 | 51.606299 | 0.79646 | 0.016555 | 0 | 0.161905 | 0 | 0 | 0.151094 | 0.00357 | 0 | 0 | 0 | 0 | 0 | 1 | 0.019048 | false | 0 | 0.109524 | 0.004762 | 0.152381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59ac1cf688342acfde23c07e10ca2e33caf1f078 | 450 | py | Python | trains/ATIO.py | Columbine21/TFR-Net | 1da01577542e7f477fdf7323ec0696aebc632357 | [
"MIT"
] | 7 | 2021-11-19T01:32:01.000Z | 2021-12-16T11:42:44.000Z | trains/ATIO.py | Columbine21/TFR-Net | 1da01577542e7f477fdf7323ec0696aebc632357 | [
"MIT"
] | 2 | 2021-11-25T08:28:08.000Z | 2021-12-29T08:42:55.000Z | trains/ATIO.py | Columbine21/TFR-Net | 1da01577542e7f477fdf7323ec0696aebc632357 | [
"MIT"
] | 1 | 2021-12-02T09:42:51.000Z | 2021-12-02T09:42:51.000Z | """
AIO -- All Trains in One
"""
from trains.baselines import *
from trains.missingTask import *
__all__ = ['ATIO']
class ATIO():
def __init__(self):
self.TRAIN_MAP = {
# single-task
'tfn': TFN,
'mult': MULT,
'misa': MISA,
# missing-task
... | 19.565217 | 59 | 0.52 | 49 | 450 | 4.530612 | 0.591837 | 0.09009 | 0.108108 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.346667 | 450 | 22 | 60 | 20.454545 | 0.755102 | 0.111111 | 0 | 0 | 0 | 0 | 0.056266 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.153846 | false | 0 | 0.153846 | 0.076923 | 0.461538 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59ad06dd6ba9abadeea6a1f889a37f3edb2cafd7 | 4,928 | py | Python | split_data.py | Anchorboy/PR_FinalProject | e744723c9c9dd55e6995ae5929eb45f90c70819b | [
"MIT"
] | null | null | null | split_data.py | Anchorboy/PR_FinalProject | e744723c9c9dd55e6995ae5929eb45f90c70819b | [
"MIT"
] | null | null | null | split_data.py | Anchorboy/PR_FinalProject | e744723c9c9dd55e6995ae5929eb45f90c70819b | [
"MIT"
] | null | null | null | import os
import cv2
import random
import shutil
import numpy as np
def split_img(input_path):
split_ratio = 0.8
for dir_name in xrange(10):
dir_name += 1
dir_name = str(dir_name)
dir_path = os.path.join(input_path, dir_name)
img_in_class = os.listdir(dir_path)
rand_tr... | 36.503704 | 126 | 0.631494 | 773 | 4,928 | 3.699871 | 0.108668 | 0.067133 | 0.062937 | 0.053846 | 0.729371 | 0.663287 | 0.566783 | 0.534965 | 0.534965 | 0.534965 | 0 | 0.023281 | 0.250406 | 4,928 | 135 | 127 | 36.503704 | 0.750947 | 0.116071 | 0 | 0.526882 | 0 | 0 | 0.013358 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043011 | false | 0 | 0.053763 | 0 | 0.129032 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59adc6e4725be00b3a4565680e9bf5a9aec1470e | 2,507 | py | Python | src/eval_command.py | luoyan407/n-reference | f486b639dc824d296fe0e5ab7a4959e2aef7504c | [
"MIT"
] | 7 | 2020-07-14T02:50:13.000Z | 2021-05-11T05:50:51.000Z | src/eval_command.py | luoyan407/n-reference | f486b639dc824d296fe0e5ab7a4959e2aef7504c | [
"MIT"
] | 1 | 2020-12-29T07:25:00.000Z | 2021-01-05T01:15:47.000Z | src/eval_command.py | luoyan407/n-reference | f486b639dc824d296fe0e5ab7a4959e2aef7504c | [
"MIT"
] | 3 | 2021-02-25T13:58:01.000Z | 2021-08-10T05:49:27.000Z | import os, sys
srcFolder = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'src')
sys.path.append(srcFolder)
from metrics import nss
from metrics import auc
from metrics import cc
from utils import *
import numpy as np
import argparse
parser = argparse.ArgumentParser(description='Evaluate predicted saliency... | 45.581818 | 122 | 0.717591 | 379 | 2,507 | 4.480211 | 0.248021 | 0.031802 | 0.080094 | 0.058893 | 0.358068 | 0.358068 | 0.233216 | 0.095406 | 0.095406 | 0.095406 | 0 | 0.016735 | 0.118069 | 2,507 | 55 | 123 | 45.581818 | 0.751244 | 0 | 0 | 0.041667 | 0 | 0 | 0.111643 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.145833 | 0 | 0.145833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59af05716663597c09c673680d272fcbf76c4851 | 294 | py | Python | Graficos/grafico_barras.py | brendacgoncalves97/Graficos | 250715bf8a0be9b9d39116be396d84512c79d45f | [
"MIT"
] | 1 | 2021-07-14T13:33:02.000Z | 2021-07-14T13:33:02.000Z | Graficos/grafico_barras.py | brendacgoncalves97/Graficos | 250715bf8a0be9b9d39116be396d84512c79d45f | [
"MIT"
] | null | null | null | Graficos/grafico_barras.py | brendacgoncalves97/Graficos | 250715bf8a0be9b9d39116be396d84512c79d45f | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
# Importação da biblioteca
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [2, 3, 7, 1, 0]
titulo = "Gráfico de barras"
eixoX = "EixoX"
eixoY = "EixoY"
# Legendas
plt.title(titulo)
plt.xlabel(eixoX)
plt.ylabel(eixoY)
plt.bar(x, y)
plt.show() | 16.333333 | 32 | 0.602041 | 47 | 294 | 3.765957 | 0.680851 | 0.022599 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.048246 | 0.22449 | 294 | 18 | 33 | 16.333333 | 0.72807 | 0.187075 | 0 | 0 | 0 | 0 | 0.123288 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.090909 | 0 | 0.090909 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59ba9203063b76fa754fc6f24d65541dacb224e0 | 2,786 | py | Python | features/steps/new-providers.py | lilydartdev/ppe-inventory | aaec9839fe324a3f96255756c15de45853bbb940 | [
"MIT"
] | 2 | 2020-10-06T11:33:02.000Z | 2021-10-10T13:10:12.000Z | features/steps/new-providers.py | foundry4/ppe-inventory | 1ee782aeec5bd3cd0140480f9bf58396eb11403b | [
"MIT"
] | 1 | 2020-04-23T22:19:17.000Z | 2020-04-23T22:19:17.000Z | features/steps/new-providers.py | foundry4/ppe-inventory | 1ee782aeec5bd3cd0140480f9bf58396eb11403b | [
"MIT"
] | 3 | 2020-05-26T11:41:40.000Z | 2020-06-29T08:53:34.000Z | from behave import *
from google.cloud import datastore
import os
import uuid
import pandas as pd
@given('site "{site}" exists')
def step_impl(context, site):
print(f'STEP: Given provider {site} exists')
context.domain = os.getenv('DOMAIN')
# Instantiates a client
datastore_client = datastore.Client()... | 34.395062 | 117 | 0.693108 | 390 | 2,786 | 4.85641 | 0.215385 | 0.134636 | 0.099789 | 0.066526 | 0.538015 | 0.491552 | 0.43189 | 0.380148 | 0.253432 | 0.192186 | 0 | 0.001304 | 0.174444 | 2,786 | 80 | 118 | 34.825 | 0.822174 | 0.031228 | 0 | 0.290323 | 0 | 0.016129 | 0.31997 | 0.047513 | 0 | 0 | 0 | 0 | 0.080645 | 1 | 0.112903 | false | 0 | 0.080645 | 0 | 0.193548 | 0.177419 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bafbd060c805be29e0312f879c03efc18325bc | 2,137 | py | Python | params.py | adarshchbs/disentanglement | 77e74409cd0220dbfd9e2809688500dcb2ecf5a5 | [
"MIT"
] | null | null | null | params.py | adarshchbs/disentanglement | 77e74409cd0220dbfd9e2809688500dcb2ecf5a5 | [
"MIT"
] | null | null | null | params.py | adarshchbs/disentanglement | 77e74409cd0220dbfd9e2809688500dcb2ecf5a5 | [
"MIT"
] | null | null | null | import os
gpu_flag = False
gpu_name = 'cpu'
x_dim = 2048
num_class = 87
num_query = 5
batch_size = 84
eval_batch_size = 128
glove_dim = 200
pretrain_lr = 1e-4
num_epochs_pretrain = 20
eval_step_pre = 1
fusion_iter_len = 100000
# num_epochs_pretrain = 30
num_epochs_style = 30
num_epochs_fusion = 50
log_step_pre = ... | 29.273973 | 69 | 0.801591 | 342 | 2,137 | 4.473684 | 0.22807 | 0.094118 | 0.110458 | 0.058824 | 0.224837 | 0.031373 | 0 | 0 | 0 | 0 | 0 | 0.021042 | 0.110435 | 2,137 | 72 | 70 | 29.680556 | 0.783798 | 0.011231 | 0 | 0 | 0 | 0 | 0.215538 | 0.043108 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.020833 | 0 | 0.020833 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bbb20f29672cea5fbe599708a44a6f4792d1f5 | 17,567 | py | Python | tests/views/view_test_case.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | tests/views/view_test_case.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | 139 | 2018-12-26T07:54:31.000Z | 2021-06-01T23:14:45.000Z | tests/views/view_test_case.py | BMeu/Aerarium | 119946cead727ef68b5ecea339990d982c006391 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Any
from typing import Dict
from typing import Optional
from typing import Set
from unittest import TestCase
from flask import abort
from app import create_app
from app import db
from app.configuration import TestConfiguration
from app.userprofile import Permission
from ap... | 40.383908 | 120 | 0.632322 | 2,239 | 17,567 | 4.866012 | 0.112997 | 0.02313 | 0.016154 | 0.01799 | 0.569252 | 0.527031 | 0.48738 | 0.469298 | 0.461404 | 0.461404 | 0 | 0.004039 | 0.29527 | 17,567 | 434 | 121 | 40.476959 | 0.87601 | 0.430637 | 0 | 0.237179 | 0 | 0 | 0.058414 | 0 | 0 | 0 | 0 | 0.002304 | 0.121795 | 1 | 0.121795 | false | 0.032051 | 0.076923 | 0 | 0.25641 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bd0619a2a8bf9b935ee21c0cf4d04a4238a3ac | 1,483 | py | Python | packtype/union.py | Intuity/packtype | bcd74dad8388883ddb4cfde40e1a11a14282dcbd | [
"Apache-2.0"
] | 1 | 2021-09-08T21:42:33.000Z | 2021-09-08T21:42:33.000Z | packtype/union.py | Intuity/packtype | bcd74dad8388883ddb4cfde40e1a11a14282dcbd | [
"Apache-2.0"
] | 2 | 2021-12-30T17:43:04.000Z | 2021-12-30T18:10:14.000Z | packtype/union.py | Intuity/packtype | bcd74dad8388883ddb4cfde40e1a11a14282dcbd | [
"Apache-2.0"
] | null | null | null | # Copyright 2021, Peter Birch, mailto:peter@lightlogic.co.uk
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable l... | 39.026316 | 80 | 0.688469 | 207 | 1,483 | 4.835749 | 0.550725 | 0.05994 | 0.025974 | 0.031968 | 0.051948 | 0.051948 | 0.051948 | 0.051948 | 0.051948 | 0 | 0 | 0.007874 | 0.229265 | 1,483 | 37 | 81 | 40.081081 | 0.867892 | 0.585974 | 0 | 0 | 0 | 0 | 0.111927 | 0 | 0 | 0 | 0 | 0 | 0.1 | 1 | 0.1 | false | 0 | 0.3 | 0 | 0.5 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bd6a738434b3879975e016eb21f88fd1d0fd13 | 644 | py | Python | ExerciseFiles/Ch03/03_07/03_07_Start.py | rlwheelwright/PY3_StandardLib | 0d9acc02f5ca934eab774bbdd5acc3c92eff7191 | [
"Apache-2.0"
] | null | null | null | ExerciseFiles/Ch03/03_07/03_07_Start.py | rlwheelwright/PY3_StandardLib | 0d9acc02f5ca934eab774bbdd5acc3c92eff7191 | [
"Apache-2.0"
] | null | null | null | ExerciseFiles/Ch03/03_07/03_07_Start.py | rlwheelwright/PY3_StandardLib | 0d9acc02f5ca934eab774bbdd5acc3c92eff7191 | [
"Apache-2.0"
] | null | null | null | # Zipfile Module
import zipfile
# Open and List
zip = zipfile.ZipFile('Archive.zip', 'r')
print(zip.namelist()) # Lists everything within zip file
# Metadata in the zip folder
for meta in zip.infolist(): # List of the metadata within zip file
print(meta)
info = zip.getinfo("purchased.txt")
# Access to files in ... | 24.769231 | 79 | 0.718944 | 97 | 644 | 4.773196 | 0.505155 | 0.071274 | 0.056156 | 0.077754 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.150621 | 644 | 25 | 80 | 25.76 | 0.846435 | 0.428571 | 0 | 0 | 0 | 0 | 0.241573 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.076923 | 0 | 0.076923 | 0.307692 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bee126e5a1aef1b499b08431cc09a3c72eb295 | 4,059 | py | Python | code/src/algorithm/algo.py | haloship/rec-sys-dynamics | 886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5 | [
"MIT"
] | null | null | null | code/src/algorithm/algo.py | haloship/rec-sys-dynamics | 886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5 | [
"MIT"
] | null | null | null | code/src/algorithm/algo.py | haloship/rec-sys-dynamics | 886095eca8c71cc2f30d64f0b1da9a0a8f2f37f5 | [
"MIT"
] | null | null | null | """Recommendation Algorithm Base Class
This module is a base class for algorithms using sparse matrices
The required packages can be found in requirements.txt
"""
import pandas as pd
import numpy as np
from lenskit import batch, topn, util
from lenskit import crossfold as xf
from lenskit.algorithms import Recommende... | 32.733871 | 84 | 0.652624 | 551 | 4,059 | 4.637024 | 0.281307 | 0.025832 | 0.043836 | 0.034442 | 0.277104 | 0.192564 | 0.143249 | 0.126027 | 0.100196 | 0.100196 | 0 | 0.002358 | 0.268785 | 4,059 | 124 | 85 | 32.733871 | 0.858491 | 0.301059 | 0 | 0.254237 | 0 | 0 | 0.067729 | 0 | 0 | 0 | 0 | 0 | 0.135593 | 1 | 0.135593 | false | 0 | 0.186441 | 0 | 0.338983 | 0.033898 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bf1bf5bc46d061cd8f9152d683ef35b28e4ff5 | 8,871 | py | Python | resources/tvdbsimple/user.py | sergserg2/script.uptodate.imdb.ratings | 091cafc2b2249dc757f877136b55fee86083c140 | [
"Apache-2.0"
] | null | null | null | resources/tvdbsimple/user.py | sergserg2/script.uptodate.imdb.ratings | 091cafc2b2249dc757f877136b55fee86083c140 | [
"Apache-2.0"
] | null | null | null | resources/tvdbsimple/user.py | sergserg2/script.uptodate.imdb.ratings | 091cafc2b2249dc757f877136b55fee86083c140 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
"""
This module implements the User functionality of TheTVDb API.
Allows to retrieve, add and delete user favorites and ratings.
See [Users API section](https://api.thetvdb.com/swagger#!/Users)
"""
from .base import TVDB
class User(TVDB):
"""
User class to retrieve, add and delete us... | 29.868687 | 94 | 0.557547 | 1,057 | 8,871 | 4.551561 | 0.14948 | 0.02619 | 0.027437 | 0.024943 | 0.523592 | 0.477863 | 0.45105 | 0.438994 | 0.404282 | 0.360216 | 0 | 0.009627 | 0.332544 | 8,871 | 297 | 95 | 29.868687 | 0.802905 | 0.492053 | 0 | 0.149425 | 0 | 0 | 0.092919 | 0.00986 | 0 | 0 | 0 | 0 | 0 | 1 | 0.172414 | false | 0 | 0.011494 | 0 | 0.436782 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59bf391cc29d920dbbc64d180ce68aef3842279a | 14,178 | py | Python | LR35902Arch.py | Lukas-Dresel/binja-GameBoy_LR35902 | f4d34b0477c20d353f45e731a2a68ee83e5509e3 | [
"MIT"
] | null | null | null | LR35902Arch.py | Lukas-Dresel/binja-GameBoy_LR35902 | f4d34b0477c20d353f45e731a2a68ee83e5509e3 | [
"MIT"
] | null | null | null | LR35902Arch.py | Lukas-Dresel/binja-GameBoy_LR35902 | f4d34b0477c20d353f45e731a2a68ee83e5509e3 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
import re
from binaryninja.log import log_info
from binaryninja.architecture import Architecture
from binaryninja.function import RegisterInfo, InstructionInfo, InstructionTextToken
from binaryninja.enums import InstructionTextTokenType, BranchType, FlagRole, LowLevelILFlagCondition
from . impo... | 38.010724 | 103 | 0.544576 | 1,340 | 14,178 | 5.598507 | 0.21194 | 0.049054 | 0.030392 | 0.031991 | 0.464276 | 0.400027 | 0.350706 | 0.280325 | 0.268328 | 0.268328 | 0 | 0.01475 | 0.311398 | 14,178 | 372 | 104 | 38.112903 | 0.753662 | 0.192834 | 0 | 0.331878 | 0 | 0 | 0.029474 | 0 | 0 | 0 | 0.002463 | 0 | 0.0131 | 1 | 0.026201 | false | 0.004367 | 0.034935 | 0 | 0.19214 | 0.004367 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59c3e17fa8af255a1451fdfdd7e503426c323a8e | 5,023 | py | Python | src/main.py | possoj/Mobile-URSONet | 1db664091f4a0daa2925174a67c21d20a1ed4db3 | [
"MIT"
] | null | null | null | src/main.py | possoj/Mobile-URSONet | 1db664091f4a0daa2925174a67c21d20a1ed4db3 | [
"MIT"
] | null | null | null | src/main.py | possoj/Mobile-URSONet | 1db664091f4a0daa2925174a67c21d20a1ed4db3 | [
"MIT"
] | null | null | null | """
Copyright (c) 2022 Julien Posso
"""
import torch
import optuna
from config import Config
from pose_net import POSENet
from submission import SubmissionWriter
from print_results import print_training_loss, print_training_score, print_beta_tuning, print_error_distance
import os
import numpy as np
import random
def... | 39.865079 | 120 | 0.665539 | 639 | 5,023 | 5.073552 | 0.334898 | 0.043183 | 0.021592 | 0.015731 | 0.078347 | 0.051203 | 0.03393 | 0.03393 | 0.03393 | 0.03393 | 0 | 0.006433 | 0.226359 | 5,023 | 125 | 121 | 40.184 | 0.827844 | 0.174398 | 0 | 0.057471 | 0 | 0 | 0.190927 | 0.038088 | 0 | 0 | 0 | 0 | 0 | 1 | 0.011494 | false | 0 | 0.103448 | 0 | 0.114943 | 0.252874 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59c55dd1d2d8290c9a483ce4efd76296c72441ee | 1,482 | py | Python | run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py | moyogo/tachyfont | 05c8b3e7357e7a13af37ef81b719a0ff749105a5 | [
"Apache-2.0"
] | 2 | 2019-05-24T18:19:18.000Z | 2020-09-17T10:23:13.000Z | run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py | moyogo/tachyfont | 05c8b3e7357e7a13af37ef81b719a0ff749105a5 | [
"Apache-2.0"
] | 9 | 2019-06-15T21:31:27.000Z | 2021-05-08T18:55:51.000Z | run_time/src/gae_server/third_party/old-fonttools-master/Lib/fontTools/misc/fixedTools.py | moyogo/tachyfont | 05c8b3e7357e7a13af37ef81b719a0ff749105a5 | [
"Apache-2.0"
] | null | null | null | """fontTools.misc.fixedTools.py -- tools for working with fixed numbers.
"""
from __future__ import print_function, division, absolute_import
from fontTools.misc.py23 import *
__all__ = [
"fixedToFloat",
"floatToFixed",
]
def fixedToFloat(value, precisionBits):
"""Converts a fixed-point number to a float, c... | 22.454545 | 72 | 0.669366 | 209 | 1,482 | 4.660287 | 0.425837 | 0.01848 | 0.053388 | 0.055441 | 0.055441 | 0 | 0 | 0 | 0 | 0 | 0 | 0.056432 | 0.18691 | 1,482 | 65 | 73 | 22.8 | 0.751867 | 0.439946 | 0 | 0 | 0 | 0 | 0.048101 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.066667 | false | 0 | 0.1 | 0 | 0.233333 | 0.033333 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59c911d5e0c8485540b7cc8e8e2d8d57369a43f1 | 725 | py | Python | Class3/selenium_waits.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | null | null | null | Class3/selenium_waits.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | 9 | 2020-02-13T09:14:12.000Z | 2022-01-13T03:17:03.000Z | Class3/selenium_waits.py | techsparksguru/python_ci_automation | 65e66266fdf2c14f593c6f098a23770621faef41 | [
"MIT"
] | 1 | 2021-03-10T03:27:37.000Z | 2021-03-10T03:27:37.000Z | from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
# import selenium exceptions module
from selenium.common.exceptions import *
browser = webdriver.Chrome()
browser.get("ht... | 30.208333 | 71 | 0.787586 | 92 | 725 | 6.119565 | 0.565217 | 0.106572 | 0.111901 | 0.099467 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006289 | 0.122759 | 725 | 24 | 72 | 30.208333 | 0.878931 | 0.045517 | 0 | 0 | 0 | 0 | 0.219971 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.277778 | 0 | 0.277778 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59cb2e8f401ebf77f3a739d719001e9eb7a93754 | 1,670 | py | Python | stacker/lookups/cognito-user-pool-app-client-secret-lookup.py | pataraco/hart_challenge | 47872a17b5ade54620df92a27d0ece2a8dfa6f07 | [
"MIT"
] | null | null | null | stacker/lookups/cognito-user-pool-app-client-secret-lookup.py | pataraco/hart_challenge | 47872a17b5ade54620df92a27d0ece2a8dfa6f07 | [
"MIT"
] | 2 | 2020-04-15T16:39:18.000Z | 2021-05-11T15:24:56.000Z | stacker/lookups/cognito-user-pool-app-client-secret-lookup.py | pataraco/scripts | 14ac6e10369ad3cc56eb7ce45adc87acd8935b60 | [
"MIT"
] | 1 | 2017-05-28T10:45:14.000Z | 2017-05-28T10:45:14.000Z | """Stacker custom lookup to get a Cognito User Pool App Client Secret."""
import logging
from stacker.session_cache import get_session
TYPE_NAME = 'CognitoUserPoolAppClientSecret'
LOGGER = logging.getLogger(__name__)
def handler(value, provider, **kwargs): # pylint: disable=W0613
""" Lookup a Cognito User Pool ... | 32.745098 | 94 | 0.673653 | 202 | 1,670 | 5.425743 | 0.415842 | 0.094891 | 0.063869 | 0.062044 | 0.217153 | 0.173358 | 0.120438 | 0 | 0 | 0 | 0 | 0.005499 | 0.237725 | 1,670 | 50 | 95 | 33.4 | 0.85546 | 0.356287 | 0 | 0 | 0 | 0 | 0.230769 | 0.029586 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.086957 | 0 | 0.26087 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59cbb8472e1057ce2bd992ed7975f6ff17e93e2b | 4,202 | py | Python | src/year2018/day07a.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | 10 | 2017-12-11T17:54:52.000Z | 2021-12-09T20:16:30.000Z | src/year2018/day07a.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | 260 | 2015-12-09T11:03:03.000Z | 2021-12-12T14:32:23.000Z | src/year2018/day07a.py | lancelote/advent_of_code | 06dda6ca034bc1e86addee7798bb9b2a34ff565b | [
"Unlicense"
] | null | null | null | r"""2018 - Day 7 Part 1: The Sum of Its Parts.
You find yourself standing on a snow-covered coastline; apparently, you landed
a little off course. The region is too hilly to see the North Pole from here,
but you do spot some Elves that seem to be trying to unpack something that
washed ashore. It's quite cold out, so y... | 36.859649 | 79 | 0.706568 | 675 | 4,202 | 4.379259 | 0.371852 | 0.016238 | 0.037889 | 0.054127 | 0.090325 | 0.080853 | 0.080853 | 0.061231 | 0.050068 | 0 | 0 | 0.003984 | 0.223465 | 4,202 | 113 | 80 | 37.185841 | 0.901931 | 0.705616 | 0 | 0 | 0 | 0 | 0.001653 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.166667 | 0 | 0.361111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59cffb75f77e318a5d2a6eaf36504527fb164588 | 12,140 | py | Python | functions_utils.py | b-mu/kbfgs_neurips2020_public | f9e8300211dee764e0a669d50a7176f83a28034a | [
"MIT"
] | null | null | null | functions_utils.py | b-mu/kbfgs_neurips2020_public | f9e8300211dee764e0a669d50a7176f83a28034a | [
"MIT"
] | null | null | null | functions_utils.py | b-mu/kbfgs_neurips2020_public | f9e8300211dee764e0a669d50a7176f83a28034a | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import scipy
import copy
def get_loss_from_z(model, z, t, reduction):
if model.name_loss == 'multi-class classification':
criterion = torch.nn.CrossEntropyLoss()
loss = criterion(z, t.type(torch.LongTensor).to(z... | 31.28866 | 114 | 0.590198 | 1,826 | 12,140 | 3.673604 | 0.07667 | 0.017293 | 0.02415 | 0.044275 | 0.660256 | 0.608229 | 0.545617 | 0.461688 | 0.434556 | 0.418008 | 0 | 0.010804 | 0.2757 | 12,140 | 387 | 115 | 31.369509 | 0.752076 | 0.004366 | 0 | 0.503185 | 0 | 0 | 0.043226 | 0.008943 | 0 | 0 | 0 | 0 | 0 | 1 | 0.101911 | false | 0 | 0.019108 | 0 | 0.235669 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
59d34d92fd7a34250d7ea36c0e7b42576a6d3121 | 1,332 | py | Python | p352_Data_Stream_as_Disjoint_Intervals.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p352_Data_Stream_as_Disjoint_Intervals.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | p352_Data_Stream_as_Disjoint_Intervals.py | bzhou26/leetcode_sol | 82506521e2cc412f96cd1dfc3c8c3ab635f67f73 | [
"MIT"
] | null | null | null | '''
- Leetcode problem: 352
- Difficulty: Hard
- Brief problem description:
Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of
disjoint intervals.
For example, suppose the integers from the data stream are 1, 3, 7, 2, 6, ..., then the summary will... | 23.368421 | 119 | 0.594595 | 191 | 1,332 | 4.120419 | 0.497382 | 0.02033 | 0.011436 | 0.010165 | 0.011436 | 0 | 0 | 0 | 0 | 0 | 0 | 0.04111 | 0.26952 | 1,332 | 57 | 120 | 23.368421 | 0.767729 | 0.574324 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |