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
cf07119cf6e3bdb2abce6a77371ad7da0041ab09
2,260
py
Python
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
muk_utils/tests/test_search_parents.py
juazisco/gestion_rifa
bce6b75f17cb5ab2df7e2f7dd5141fc85a1a5bfb
[ "MIT" ]
null
null
null
########################################################################## # # Copyright (C) 2017 MuK IT GmbH # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either ve...
36.451613
78
0.620354
266
2,260
5.12782
0.424812
0.046188
0.065982
0.064516
0.25
0.148094
0.124633
0.07478
0.07478
0
0
0.005155
0.227434
2,260
61
79
37.04918
0.77606
0.305752
0
0.125
0
0
0.026866
0
0
0
0
0
0.0625
1
0.1875
false
0
0.15625
0
0.375
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
cf07d61453467fdaf7a52e8c01b18b42bfc7226e
4,514
py
Python
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
null
null
null
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
null
null
null
daal4py/df_regr.py
PivovarA/scikit-learn_bench
52e96f28eda3ca25d0f51594041fd06ee3f8d4c2
[ "MIT" ]
2
2020-08-07T16:19:32.000Z
2020-08-07T16:22:12.000Z
# Copyright (C) 2018-2020 Intel Corporation # # SPDX-License-Identifier: MIT import argparse from bench import ( parse_args, measure_function_time, load_data, print_output, rmse_score, float_or_int, getFPType ) from daal4py import ( decision_forest_regression_training, decision_forest_regression_predi...
36.699187
83
0.636907
530
4,514
5.158491
0.316981
0.019751
0.049378
0.029261
0.125457
0.060351
0.019751
0
0
0
0
0.013209
0.262074
4,514
122
84
37
0.807565
0.022375
0
0
0
0
0.175176
0.019741
0
0
0
0
0
1
0.022222
false
0
0.044444
0
0.088889
0.022222
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
cf0923f79d25f11e0f15404bd9b6b8cdac76eb86
8,658
py
Python
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
src/feature/eme_data_loader.py
0shimax/Pytorch-DRN
a5e70784d0097069e9e1cf958a446f819dbdb7f1
[ "MIT" ]
null
null
null
from pathlib import Path import pandas as pd import numpy as np import random import torch from torch.utils.data import Dataset from sklearn.model_selection import train_test_split def get_id_columns(df): user_and_target_id_columns = ["user_id", "target_user_id"] return df[user_and_target_id_column...
39.176471
109
0.661354
1,156
8,658
4.544118
0.121972
0.044546
0.064725
0.087569
0.416905
0.364744
0.300781
0.284028
0.214163
0.189796
0
0.00477
0.249365
8,658
220
110
39.354545
0.803508
0.003465
0
0.127907
0
0
0.034154
0
0
0
0
0.004545
0
1
0.093023
false
0
0.040698
0.005814
0.25
0.017442
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
cf09fa6ef4f4a3fb801b920743bebb3502eaa28b
2,320
py
Python
mp/plot_process.py
RawPikachu/valor
02e1eb0e599904d3f0c49b52534fcb6c3762951d
[ "MIT" ]
null
null
null
mp/plot_process.py
RawPikachu/valor
02e1eb0e599904d3f0c49b52534fcb6c3762951d
[ "MIT" ]
null
null
null
mp/plot_process.py
RawPikachu/valor
02e1eb0e599904d3f0c49b52534fcb6c3762951d
[ "MIT" ]
null
null
null
from sql import ValorSQL from util import guild_name_from_tag import matplotlib.pyplot as plt import matplotlib.dates as md from scipy.interpolate import make_interp_spline from matplotlib.ticker import MaxNLocator import numpy as np from datetime import datetime import time def plot_process(lock, opt, query): a =...
25.494505
96
0.551293
337
2,320
3.706231
0.335312
0.057646
0.102482
0.054444
0.339472
0.339472
0.339472
0.32506
0.32506
0.32506
0
0.015645
0.311207
2,320
90
97
25.777778
0.765957
0
0
0.272727
0
0
0.080172
0.010776
0
0
0
0
0
1
0.015152
false
0
0.136364
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
cf0d0e8e618571c35cece51daafa83cd4f90bede
47,627
py
Python
bot.py
SHIA1204/kyaru
c76a5df7c26fb30136ac473bd3f1ca90a2b65739
[ "Apache-2.0" ]
null
null
null
bot.py
SHIA1204/kyaru
c76a5df7c26fb30136ac473bd3f1ca90a2b65739
[ "Apache-2.0" ]
null
null
null
bot.py
SHIA1204/kyaru
c76a5df7c26fb30136ac473bd3f1ca90a2b65739
[ "Apache-2.0" ]
null
null
null
import os import shutil from os import system import discord import asyncio import os.path import linecache import datetime import urllib import requests from bs4 import BeautifulSoup from discord.utils import get from discord.ext import commands from discord.ext.commands import CommandNotFound import logging imp...
43.140399
374
0.659752
6,782
47,627
4.506488
0.143763
0.021987
0.032981
0.018912
0.491608
0.43749
0.358538
0.331577
0.30478
0.259759
0
0.032297
0.161358
47,627
1,103
375
43.17951
0.730985
0.058538
0
0.154501
0
0.014599
0.21004
0.015797
0
0
0.005343
0
0
1
0.03528
false
0.019465
0.051095
0.010949
0.13747
0.001217
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
cf0ef43a8bc52fd3f88dd05dc9e8f4a26b23551b
760
py
Python
deploy.py
ksksksks-dev/Solidity-Demo
572f26efdfcaeb8721cf9f98c08205dd344848b3
[ "MIT" ]
null
null
null
deploy.py
ksksksks-dev/Solidity-Demo
572f26efdfcaeb8721cf9f98c08205dd344848b3
[ "MIT" ]
null
null
null
deploy.py
ksksksks-dev/Solidity-Demo
572f26efdfcaeb8721cf9f98c08205dd344848b3
[ "MIT" ]
1
2021-10-02T07:23:28.000Z
2021-10-02T07:23:28.000Z
import json import solcx from solcx import compile_standard # solcx.install_solc() with open("./SimpleStorage.sol", "r") as file: simple_storage_file = file.read() compiled_sol = compile_standard( { "language": "Solidity", "sources": {"SimpleStorage.sol": {"content": simple_storage_file}}, ...
25.333333
82
0.610526
76
760
5.947368
0.460526
0.141593
0.075221
0.146018
0.216814
0.216814
0
0
0
0
0
0
0.203947
760
29
83
26.206897
0.747107
0.026316
0
0
0
0
0.334688
0
0
0
0
0
0
1
0
false
0
0.136364
0
0.136364
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
cf10b831b724d9102e64bddbd11566c602b17ffc
2,185
py
Python
test_clouddb/test_instance.py
adregner/python-clouddb
6c77261a0e9cda221980c9240c7fffc93a78f7f7
[ "X11" ]
1
2018-05-21T23:09:36.000Z
2018-05-21T23:09:36.000Z
test_clouddb/test_instance.py
adregner/python-clouddb
6c77261a0e9cda221980c9240c7fffc93a78f7f7
[ "X11" ]
null
null
null
test_clouddb/test_instance.py
adregner/python-clouddb
6c77261a0e9cda221980c9240c7fffc93a78f7f7
[ "X11" ]
null
null
null
"""Primary testing suite for clouddb.models.instance. This code is licensed under the MIT license. See COPYING for more details.""" import time import unittest import clouddb import test_clouddb CLOUDDB_TEST_INSTANCE_OBJECT = None CLOUDDB_TEST_BASELINE_INSTANCE_COUNT = None CLOUDDB_TEST_INSTANCE_NAME = "testsuite...
37.672414
88
0.769794
250
2,185
6.432
0.232
0.109453
0.141791
0.085821
0.522388
0.441542
0.398632
0.372512
0.280473
0.10199
0
0.002142
0.145538
2,185
57
89
38.333333
0.859132
0.058124
0
0.162791
0
0
0.011214
0
0
0
0
0
0.139535
1
0.139535
false
0
0.093023
0
0.372093
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
cf12d221f01553d46a5821f0b5720d8d94341b9e
3,327
py
Python
examples/tensorflow/nlp/bert_large_squad/tune_squad.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
100
2020-12-01T02:40:12.000Z
2021-09-09T08:14:22.000Z
examples/tensorflow/nlp/bert_large_squad/tune_squad.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2021-01-05T00:16:17.000Z
2021-09-10T03:24:01.000Z
examples/tensorflow/nlp/bert_large_squad/tune_squad.py
kevinintel/neural-compressor
b57645566aeff8d3c18dc49d2739a583c072f940
[ "Apache-2.0" ]
25
2020-12-01T19:07:08.000Z
2021-08-30T14:20:07.000Z
#!/usr/bin/env python # coding=utf-8 # Copyright 2018 The Google AI Language Team Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 ...
36.56044
94
0.703937
468
3,327
4.839744
0.326923
0.038852
0.03532
0.025166
0.175717
0.121854
0.065342
0.065342
0.065342
0.065342
0
0.014574
0.195672
3,327
90
95
36.966667
0.831839
0.227833
0
0.127273
0
0
0.198821
0
0
0
0
0
0
1
0.036364
false
0
0.109091
0
0.163636
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
cf18350dca3c8a011e1f04f49243469e79dd2045
1,484
py
Python
run.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
run.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
run.py
wallarelvo/SmallCartography
007e621386eb86d904fefef3f518b1d5f1dc7fe6
[ "Apache-2.0" ]
null
null
null
import carto import argparse def main(): parser = argparse.ArgumentParser( description="Runs programs for the carto MapReduce library" ) parser.add_argument( "--host", dest="host", type=str, default="localhost", help="Host of the program" ) parser.add_argument( "...
26.981818
67
0.607143
185
1,484
4.756757
0.264865
0.061364
0.115909
0.075
0.418182
0.396591
0.293182
0.197727
0.197727
0.106818
0
0.007266
0.258086
1,484
54
68
27.481481
0.792007
0
0
0.195122
0
0
0.209036
0
0
0
0
0
0
1
0.02439
false
0
0.04878
0
0.073171
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
cf1bdfaeda3c9d3dd53a3e8c1108702ddef142c8
3,623
py
Python
microservices_miner/control/issue_mgr.py
IBM/microservices-miner
b7befa1c97930b1e7347c9e386a4bb5c5f2d2198
[ "MIT" ]
null
null
null
microservices_miner/control/issue_mgr.py
IBM/microservices-miner
b7befa1c97930b1e7347c9e386a4bb5c5f2d2198
[ "MIT" ]
4
2021-06-08T22:11:29.000Z
2022-01-14T21:21:04.000Z
microservices_miner/control/issue_mgr.py
IBM/microservices-miner
b7befa1c97930b1e7347c9e386a4bb5c5f2d2198
[ "MIT" ]
1
2020-08-06T14:53:05.000Z
2020-08-06T14:53:05.000Z
# (C) Copyright IBM Corporation 2017, 2018, 2019 # U.S. Government Users Restricted Rights: Use, duplication or disclosure restricted # by GSA ADP Schedule Contract with IBM Corp. # # Author: Leonardo P. Tizzei <ltizzei@br.ibm.com> from microservices_miner.control.database_conn import IssueConn, UserConn, RepositoryCo...
27.44697
121
0.548993
384
3,623
4.921875
0.265625
0.052381
0.075661
0.07037
0.110053
0.069841
0.032804
0
0
0
0
0.005957
0.351366
3,623
131
122
27.656489
0.798298
0.157604
0
0.109091
0
0
0.014607
0
0
0
0
0
0
1
0.127273
false
0
0.054545
0
0.327273
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
cf1d3c9ee4fa3f3a46513695b9bd7c1714c7aef5
10,893
py
Python
custom_components/skyq/config_flow.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
custom_components/skyq/config_flow.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
custom_components/skyq/config_flow.py
TomBrien/Home_Assistant_SkyQ_MediaPlayer
50f9ad0d3b7a3bc2acc652415ff59740bf3ace10
[ "MIT" ]
null
null
null
"""Configuration flow for the skyq platform.""" import ipaddress import json import logging import re from operator import attrgetter import homeassistant.helpers.config_validation as cv import pycountry import voluptuous as vol from homeassistant import config_entries, exceptions from homeassistant.const import CONF_...
36.431438
88
0.597815
1,133
10,893
5.425419
0.185349
0.038067
0.034163
0.030747
0.228729
0.109647
0.076948
0.056613
0.027005
0.027005
0
0.0019
0.323602
10,893
298
89
36.553691
0.832383
0.028
0
0.177215
0
0
0.017202
0
0
0
0
0
0
1
0.025316
false
0.004219
0.067511
0
0.168776
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
cf1e1fc048aed029497d762bdbe8c8befabdb682
2,045
py
Python
tradssat/out/soilni.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
null
null
null
tradssat/out/soilni.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
null
null
null
tradssat/out/soilni.py
shreyayadav/traDSSAT
cc9650f896910c0d0a7a382aff36bef89aba70f2
[ "MIT" ]
null
null
null
from tradssat.tmpl.output import OutFile from tradssat.tmpl.var import FloatVar, IntegerVar class SoilNiOut(OutFile): """ Reader for DSSAT soil nitrogen (SOILNI.OUT) files. """ filename = 'SoilNi.Out' def _get_var_info(self): return vars_ vars_ = { IntegerVar('YEAR', 4, info='Year')...
43.510638
72
0.604401
340
2,045
3.620588
0.285294
0.022746
0.068237
0.15922
0.448416
0.34606
0.315191
0.315191
0
0
0
0.084611
0.202445
2,045
46
73
44.456522
0.670141
0.02445
0
0
0
0
0.39717
0
0
0
0
0
0
1
0.026316
false
0
0.052632
0.026316
0.157895
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
cf1edbd7a30a852f3ca1224c69d6e47997c186c3
4,888
py
Python
project/scripts/run-cooja.py
nfi/multitrace
7a043f4c3f580ca87c39f23337322b98594f3a51
[ "BSD-3-Clause" ]
4
2021-12-20T12:25:56.000Z
2022-03-23T20:39:16.000Z
project/scripts/run-cooja.py
nfi/multitrace
7a043f4c3f580ca87c39f23337322b98594f3a51
[ "BSD-3-Clause" ]
null
null
null
project/scripts/run-cooja.py
nfi/multitrace
7a043f4c3f580ca87c39f23337322b98594f3a51
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 import argparse import sys import os import time import traceback import subprocess from subprocess import PIPE, STDOUT, CalledProcessError # Find path to this script SELF_PATH = os.path.dirname(os.path.abspath(__file__)) # Find path to Contiki-NG relative to this script CONTIKI_PATH = os.path....
33.479452
108
0.63748
635
4,888
4.711811
0.264567
0.098262
0.030414
0.046791
0.081551
0.052807
0.037433
0.037433
0.037433
0.037433
0
0.004639
0.206219
4,888
145
109
33.710345
0.766495
0.059534
0
0.088235
0
0.009804
0.18336
0.01719
0
0
0
0
0
1
0.039216
false
0.009804
0.068627
0
0.166667
0.127451
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
cf1f3cd2308c871fbca4d806dda3a4b0a43ddbe0
711
py
Python
Recent Excel Documents.lbaction/Contents/Scripts/default.py
nriley/LBOfficeMRU
e2df583cdb32a066f3ab002d4182fa40759839a6
[ "Apache-2.0" ]
13
2016-08-21T12:18:42.000Z
2022-02-01T22:03:45.000Z
Recent Excel Documents.lbaction/Contents/Scripts/default.py
nriley/LBOfficeMRU
e2df583cdb32a066f3ab002d4182fa40759839a6
[ "Apache-2.0" ]
1
2017-02-11T10:46:12.000Z
2017-03-31T04:20:01.000Z
Recent Excel Documents.lbaction/Contents/Scripts/default.py
nriley/LBOfficeMRU
e2df583cdb32a066f3ab002d4182fa40759839a6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 import json, operator import mruservice, mruuserdata APP_NAME = 'Excel' APP_BUNDLE_ID = 'com.microsoft.Excel' APP_URL_PREFIX = 'ms-excel:ofe|u|' EXTENSION_TO_ICON_NAME = dict( slk='XLS8', dif='XLS8', ods='ODS', xls='XLS8', xlsx='XLSX', xltx='XLTX', xlsm='XLSM', xltm='XLTM', xlsb='XLSB',...
35.55
98
0.703235
110
711
4.345455
0.590909
0.043933
0.046025
0.079498
0.075314
0
0
0
0
0
0
0.014063
0.099859
711
19
99
37.421053
0.732813
0.029536
0
0
0
0
0.191582
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.076923
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
cf1f9a3ecc8549d804dcf2f5aef38297dc7945b8
2,458
py
Python
3sum_medium.py
victorsemenov1980/LeetCodeDailyFun
f66273a9868ede5e2337f586e21eaf9e771b9b48
[ "MIT" ]
null
null
null
3sum_medium.py
victorsemenov1980/LeetCodeDailyFun
f66273a9868ede5e2337f586e21eaf9e771b9b48
[ "MIT" ]
null
null
null
3sum_medium.py
victorsemenov1980/LeetCodeDailyFun
f66273a9868ede5e2337f586e21eaf9e771b9b48
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sat May 22 12:03:16 2021 @author: user """ ''' Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0. Notice that the solution set must not contain dupli...
22.550459
156
0.47559
311
2,458
3.720257
0.321543
0.031115
0.072602
0.093345
0.361279
0.331893
0.266206
0.257563
0.257563
0.257563
0
0.055814
0.387714
2,458
108
157
22.759259
0.712957
0.091131
0
0.488889
0
0
0
0
0
0
0
0
0
1
0.044444
false
0
0.022222
0
0.2
0.066667
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
cf20204aba78a60c893f6561c24e36c3ce30077f
651
py
Python
tests/test_loss.py
MartinXPN/abcde
13192c5f7dfb32a461b9205aed4b0b21e79d8285
[ "MIT" ]
4
2021-01-20T09:15:37.000Z
2022-03-03T13:58:18.000Z
tests/test_loss.py
MartinXPN/abcde
13192c5f7dfb32a461b9205aed4b0b21e79d8285
[ "MIT" ]
null
null
null
tests/test_loss.py
MartinXPN/abcde
13192c5f7dfb32a461b9205aed4b0b21e79d8285
[ "MIT" ]
null
null
null
from unittest import TestCase from torch import Tensor from abcde.loss import PairwiseRankingCrossEntropyLoss class TestPairwiseRankingLoss(TestCase): def test_simple_case(self): loss = PairwiseRankingCrossEntropyLoss() res = loss(pred_betweenness=Tensor([[0.5], [0.7], [3]]), target_betweenness=...
40.6875
110
0.623656
91
651
4.395604
0.428571
0.035
0.045
0.03
0.075
0.075
0.075
0.075
0.075
0.075
0
0.109344
0.227343
651
15
111
43.4
0.685885
0.084485
0
0
0
0
0
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
cf27715d55b617221f21406b94ab34e0ac04baac
5,981
py
Python
lib/surface/compute/instance_groups/managed/abandon_instances.py
eyalev/gcloud
421ee63a0a6d90a097e8530d53a6df5b905a0205
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instance_groups/managed/abandon_instances.py
eyalev/gcloud
421ee63a0a6d90a097e8530d53a6df5b905a0205
[ "Apache-2.0" ]
null
null
null
lib/surface/compute/instance_groups/managed/abandon_instances.py
eyalev/gcloud
421ee63a0a6d90a097e8530d53a6df5b905a0205
[ "Apache-2.0" ]
2
2020-11-04T03:08:21.000Z
2020-11-05T08:14:41.000Z
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
35.390533
80
0.69587
590
5,981
6.947458
0.325424
0.031715
0.029275
0.025616
0.312515
0.303733
0.260795
0.251769
0.241034
0.241034
0
0.00195
0.22839
5,981
168
81
35.60119
0.886241
0.126066
0
0.434109
0
0
0.165383
0.01367
0
0
0
0
0
1
0.085271
false
0
0.03876
0.046512
0.20155
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
cf289c374ee47f4952cddf28f571e3c1c464ba43
1,185
py
Python
day:22/isBinaryTreeSymmetric.py
hawaijar/FireLeetcode
e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a
[ "MIT" ]
1
2020-10-21T12:28:23.000Z
2020-10-21T12:28:23.000Z
day:22/isBinaryTreeSymmetric.py
hawaijar/FireLeetcode
e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a
[ "MIT" ]
null
null
null
day:22/isBinaryTreeSymmetric.py
hawaijar/FireLeetcode
e981e96f6a38a3b08e9b7ef59aec65f6e0e5728a
[ "MIT" ]
1
2020-10-21T12:28:24.000Z
2020-10-21T12:28:24.000Z
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def isSymmetric(self, root: TreeNode) -> bool: #base case(s) if(root is None): return True; ...
28.902439
66
0.420253
131
1,185
3.770992
0.335878
0.048583
0.048583
0.064777
0
0
0
0
0
0
0
0.012422
0.45654
1,185
40
67
29.625
0.754658
0.161181
0
0.206897
0
0
0.004057
0
0
0
0
0
0
1
0.068966
false
0
0
0
0.206897
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
cf296e88d03c596024b49c000c2c21fe1354248f
3,991
py
Python
main.py
prjavidi/C-
76e7c7720a921e48726ad652cfc0f1000f9a2b3e
[ "MIT" ]
null
null
null
main.py
prjavidi/C-
76e7c7720a921e48726ad652cfc0f1000f9a2b3e
[ "MIT" ]
null
null
null
main.py
prjavidi/C-
76e7c7720a921e48726ad652cfc0f1000f9a2b3e
[ "MIT" ]
null
null
null
'''chane the below arguments to check different tasks''' TRAINSIZE = 5000 TESTSIZE = 500 '''To check TASK 3 put Normalize=1 otherwise 0''' Nomalize = 1 learningRate = 0.01 threshold = 85 import numpy as np import matplotlib import matplotlib.pyplot as plt @np.vectorize def sigmoid(x): return 1 / (1 + np.e ** -x)...
27.14966
104
0.606865
576
3,991
4.154514
0.300347
0.015044
0.020059
0.023402
0.088592
0.075219
0.055997
0.055997
0.055997
0.055997
0
0.041476
0.232774
3,991
146
105
27.335616
0.740039
0.117013
0
0.198113
0
0
0.050088
0
0
0
0
0
0
1
0.018868
false
0
0.028302
0.009434
0.066038
0.04717
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
cf2c4d8068a5e81799ce759db7c058c410706010
6,269
py
Python
polyaxon/scheduler/spawners/tensorboard_spawner.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/scheduler/spawners/tensorboard_spawner.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
polyaxon/scheduler/spawners/tensorboard_spawner.py
elyase/polyaxon
1c19f059a010a6889e2b7ea340715b2bcfa382a0
[ "MIT" ]
null
null
null
import json import random from django.conf import settings from polyaxon_k8s.exceptions import PolyaxonK8SError from scheduler.spawners.project_job_spawner import ProjectJobSpawner from scheduler.spawners.templates import constants, ingresses, services from scheduler.spawners.templates.pod_environment import ( ge...
43.534722
93
0.595948
591
6,269
5.978003
0.184433
0.051514
0.040759
0.033965
0.320974
0.276819
0.276819
0.251344
0.251344
0.216247
0
0.0024
0.335301
6,269
143
94
43.839161
0.845452
0
0
0.307692
0
0
0.021375
0
0
0
0
0
0
1
0.030769
false
0
0.069231
0.007692
0.169231
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
cf2cdf5265503bfa5f46413c8c8ff1d4149197dd
4,651
py
Python
iot/rooms/__init__.py
joh90/iot
4a571be7e0760445dd2d5be858ecb4372b5d59b4
[ "MIT" ]
6
2018-11-06T02:07:21.000Z
2021-12-15T07:56:14.000Z
iot/rooms/__init__.py
joh90/iot
4a571be7e0760445dd2d5be858ecb4372b5d59b4
[ "MIT" ]
7
2019-06-17T15:50:22.000Z
2021-03-14T19:24:16.000Z
iot/rooms/__init__.py
joh90/iot
4a571be7e0760445dd2d5be858ecb4372b5d59b4
[ "MIT" ]
1
2020-05-26T09:32:56.000Z
2020-05-26T09:32:56.000Z
import logging from iot.constants import ROOM_LIST_MESSAGE from iot.utils import return_mac from iot.devices import DeviceType from iot.devices.broadlink import ( BroadlinkDeviceFactory, BroadlinkDeviceTypes ) from iot.devices.errors import ( DeviceTypeNotFound, BrandNotFound, SendCommandError ) from ...
29.436709
81
0.529779
517
4,651
4.562863
0.195358
0.025435
0.023739
0.015261
0.135227
0.090293
0.069521
0.042391
0.022891
0.022891
0
0.000678
0.365513
4,651
157
82
29.624204
0.798712
0.025586
0
0.106557
0
0
0.098962
0
0
0
0
0
0
1
0.106557
false
0.008197
0.065574
0.016393
0.237705
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
cf2d6649ae78a91eff025de10e3d668a7dec13c5
2,919
py
Python
start.py
mutageneral/fossdiscord
54111e6e6ff8ee64f54241a11b9da52db4776223
[ "MIT" ]
null
null
null
start.py
mutageneral/fossdiscord
54111e6e6ff8ee64f54241a11b9da52db4776223
[ "MIT" ]
null
null
null
start.py
mutageneral/fossdiscord
54111e6e6ff8ee64f54241a11b9da52db4776223
[ "MIT" ]
null
null
null
import os, ctypes, sys, subprocess, config, globalconfig, shutil from git import Repo from shutil import copyfile commands = ["--help", "--updatebot", "--start", "--credits"] def startbot(): print("Attempting to start the bot...") print("REMEMBER: YOU MUST RUN THE COMMAND '" + config.prefix + "shutdownbot' TO...
42.304348
249
0.64063
385
2,919
4.807792
0.322078
0.041599
0.025932
0.049703
0.123717
0.10805
0.10805
0.071313
0
0
0
0.008243
0.210346
2,919
68
250
42.926471
0.794794
0.005139
0
0.183333
0
0.016667
0.443679
0.052015
0
0
0
0
0
1
0.033333
false
0
0.05
0
0.083333
0.1
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
cf2ebd0be605b85c733e5e7a385de095a11ecc48
932
py
Python
QTM/MixQC/1.0.0/plt.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
QTM/MixQC/1.0.0/plt.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
QTM/MixQC/1.0.0/plt.py
binggu56/qmd
e2628710de15f8a8b9a1280fcf92f9e87559414c
[ "MIT" ]
null
null
null
##!/usr/bin/python import numpy as np import pylab as pl #with open("traj.dat") as f: # data = f.read() # # data = data.split('\n') # # x = [row.split(' ')[0] for row in data] # y = [row.split(' ')[1] for row in data] # # fig = plt.figure() # # ax1 = fig.add_subplot(111) # # ax1.set_title("Plot t...
19.416667
49
0.549356
150
932
3.386667
0.48
0.05315
0.031496
0.047244
0
0
0
0
0
0
0
0.030831
0.199571
932
47
50
19.829787
0.650134
0.590129
0
0
0
0
0.1875
0
0
0
0
0
0
1
0
false
0
0.166667
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
cf2ee0d6951dff87d2cc119417466bb9ccb36246
2,753
py
Python
generator/generator.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
1
2020-07-23T02:57:12.000Z
2020-07-23T02:57:12.000Z
generator/generator.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
null
null
null
generator/generator.py
zbelateche/ee272_cgra
4cf2e3cf4a4bdf585d87a9209a5bf252666bc6a2
[ "BSD-3-Clause" ]
1
2021-04-27T23:13:43.000Z
2021-04-27T23:13:43.000Z
from abc import ABC, abstractmethod from ordered_set import OrderedSet import magma from common.collections import DotDict from generator.port_reference import PortReference, PortReferenceBase import warnings class Generator(ABC): def __init__(self): self.ports = DotDict() self.wires = [] @ab...
30.588889
69
0.55721
289
2,753
5.217993
0.256055
0.041777
0.029178
0.023873
0.210875
0.18435
0.18435
0.18435
0.18435
0.18435
0
0.020101
0.349437
2,753
89
70
30.932584
0.821887
0
0
0.133333
0
0
0.03814
0.017799
0
0
0
0
0.053333
1
0.146667
false
0.013333
0.08
0
0.32
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
cf33c0f359af61ed23f396ff759a9bbdc5a2e5ec
7,118
py
Python
app/gws/web/wrappers.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/web/wrappers.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
app/gws/web/wrappers.py
ewie/gbd-websuite
6f2814c7bb64d11cb5a0deec712df751718fb3e1
[ "Apache-2.0" ]
null
null
null
import os import gzip import io import werkzeug.utils import werkzeug.wrappers import werkzeug.wsgi from werkzeug.utils import cached_property import gws import gws.tools.date import gws.tools.json2 import gws.tools.net import gws.tools.vendor.umsgpack as umsgpack import gws.web.error import gws.types as t _JSON =...
31.635556
117
0.609722
906
7,118
4.634658
0.232892
0.027149
0.015718
0.019052
0.136699
0.094784
0.036675
0.036675
0.036675
0.027864
0
0.006958
0.27311
7,118
224
118
31.776786
0.8046
0.045659
0
0.180723
0
0
0.064397
0.017094
0
0
0
0
0
1
0.162651
false
0.006024
0.084337
0.066265
0.451807
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
cf34a3f0197c3f6dc8a1f65c74ae293fb179d4ac
3,299
py
Python
mozinor/example/toto_stack_model_script.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
3
2017-08-17T21:32:05.000Z
2018-07-30T11:30:09.000Z
mozinor/example/toto_stack_model_script.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
null
null
null
mozinor/example/toto_stack_model_script.py
Jwuthri/Mozinor
5a2cd4f0447a96425d899a8e063668741a091a8b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on July 2017 @author: JulienWuthrich """ import pandas as pd import numpy as np from sklearn.preprocessing import PolynomialFeatures from sklearn.metrics import mean_absolute_error, accuracy_score, r2_score from sklearn.model_selection import train_test_split from sklearn.ensembl...
35.095745
136
0.76114
469
3,299
5.130064
0.381663
0.054863
0.012469
0.012469
0.148795
0.093101
0.073982
0.041563
0.041563
0.041563
0
0.023734
0.144286
3,299
93
137
35.473118
0.828551
0.090634
0
0.067797
0
0
0.037261
0
0
0
0
0
0
1
0
false
0
0.271186
0
0.271186
0.050847
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
cf36336bd222b8046304d99fe89eeed7d9b73ede
4,330
py
Python
Detection and Tracking/main.py
Jay-Nehra/Object-Detection
f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2
[ "BSD-3-Clause" ]
1
2021-01-23T09:11:59.000Z
2021-01-23T09:11:59.000Z
Detection and Tracking/main.py
Jay-Nehra/Object-Detection
f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2
[ "BSD-3-Clause" ]
null
null
null
Detection and Tracking/main.py
Jay-Nehra/Object-Detection
f91085ecf709d21bf7ffd3b2e370fc36ae5e88f2
[ "BSD-3-Clause" ]
null
null
null
""" this program takes in a checkerboard image from a camera and calibrates the image to remove camera radial and tangential distortion. """ import cv2 import YOLO as odYOLO # object detection using YOLO import HOG as odHOG # object detection using an svm and HOG features import data import numpy as np """ Uncomment ...
37.982456
115
0.671132
624
4,330
4.575321
0.399038
0.031524
0.018214
0.011208
0.1331
0.10718
0.10718
0.10718
0.082662
0.051839
0
0.034555
0.231409
4,330
113
116
38.318584
0.823317
0.419861
0
0.272727
0
0
0.073418
0.064557
0
0
0.001688
0
0
1
0.036364
false
0
0.090909
0
0.163636
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
cf39abdd7b9db220323875a0a137611f84fce21d
1,646
py
Python
functions/07.py
luan-gomes/python-basic-exercises
213844b421b27ab3e9c09be24d4efb37cc6fce08
[ "MIT" ]
null
null
null
functions/07.py
luan-gomes/python-basic-exercises
213844b421b27ab3e9c09be24d4efb37cc6fce08
[ "MIT" ]
null
null
null
functions/07.py
luan-gomes/python-basic-exercises
213844b421b27ab3e9c09be24d4efb37cc6fce08
[ "MIT" ]
null
null
null
""" 1) Faça um programa que use a função valorPagamento para determinar o valor a ser pago por uma prestação de uma conta. 2) O programa deverá solicitar ao usuário o valor da prestação e o número de dias em atraso e passar estes valores para a função valorPagamento, que calculará o valor a ser pago e devolverá est...
35.021277
74
0.744228
253
1,646
4.841897
0.426877
0.034286
0.036735
0.053061
0.034286
0
0
0
0
0
0
0.015683
0.186513
1,646
46
75
35.782609
0.899178
0.556501
0
0.086957
0
0
0.246537
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.130435
0.173913
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
cf3a73df976f6a84385fb7762c36292debe844b3
1,814
py
Python
common/login.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
common/login.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
common/login.py
zhaopiandehuiyiforsang/python_test
7a6ef77afd3b436f798ca68c77b9ac8669e00094
[ "MIT" ]
null
null
null
# -*- conding:utf-8 -*- from init_env import BASE_DIR from common.HttpUtils import HttpUtils from common.env_config import ServerCC from common.DateUtils import currentTimeMillis, DateTime import json import os token_json_path = BASE_DIR + '/resources/token.json' """ 获取接口调用凭证token工具 """ URL_AUTH = 'https://rasdev9.z...
25.914286
60
0.669239
238
1,814
4.857143
0.331933
0.030277
0.054498
0.041522
0.188581
0.119377
0.074394
0.074394
0
0
0
0.006276
0.209482
1,814
69
61
26.289855
0.799861
0.025358
0
0.163265
0
0
0.095348
0.012062
0
0
0
0
0
1
0.040816
false
0
0.122449
0
0.265306
0.020408
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
cf3bbae06f3088b31cf43074001976c60e15c3b8
262
py
Python
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
1
2021-11-17T13:25:25.000Z
2021-11-17T13:25:25.000Z
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
null
null
null
wbb/utils/filter_groups.py
Imran95942/userbotisl
1614af1d1ba904dfd5e28dfd5b3e21d5e24bb55c
[ "MIT" ]
null
null
null
chat_filters_group = 1 chatbot_group = 2 karma_positive_group = 3 karma_negative_group = 4 regex_group = 5 welcome_captcha_group = 6 antiflood_group = 7 blacklist_filters_group = 8 taglog_group = 9 chat_watcher_group = 10 flood_group = 11 autocorrect_group = 12
20.153846
27
0.816794
42
262
4.666667
0.666667
0.122449
0
0
0
0
0
0
0
0
0
0.066372
0.137405
262
12
28
21.833333
0.800885
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
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
cf3e620c460aed9e0fba7d56f5f6161f6fb1dbd6
3,162
py
Python
my_pilz_sandbox/scripts/pause.py
ct2034/my_pilz_sandbox
40400c6469918f56d384580d41f61b2cca3b49c9
[ "BSD-3-Clause" ]
null
null
null
my_pilz_sandbox/scripts/pause.py
ct2034/my_pilz_sandbox
40400c6469918f56d384580d41f61b2cca3b49c9
[ "BSD-3-Clause" ]
null
null
null
my_pilz_sandbox/scripts/pause.py
ct2034/my_pilz_sandbox
40400c6469918f56d384580d41f61b2cca3b49c9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python from geometry_msgs.msg import Pose, Point, PoseArray, Quaternion import math import numpy as np from pilz_robot_programming import * import random import rospy import time __REQUIRED_API_VERSION__ = "1" # API version SLOW_VEL_SCALE = .1 ACC_SCALE = .1 GRIPPER_POSE_CLOSED = 0.001 GRIPPER_POSE_OP...
30.403846
92
0.606262
441
3,162
4.113379
0.226757
0.028666
0.114664
0.083793
0.556229
0.556229
0.556229
0.556229
0.520397
0.484565
0
0.041286
0.272296
3,162
103
93
30.699029
0.747066
0.058191
0
0.468354
0
0
0.028966
0
0
0
0
0
0
1
0.050633
false
0
0.088608
0
0.151899
0.025316
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
cf3f13905a5ccf5bc9884a2805ccfdf8e0e29624
822
py
Python
feed-runner.py
quandram/podcatcher
b1d14b10b3e1afd1947e09ddf2006dac37c6fae7
[ "MIT" ]
null
null
null
feed-runner.py
quandram/podcatcher
b1d14b10b3e1afd1947e09ddf2006dac37c6fae7
[ "MIT" ]
null
null
null
feed-runner.py
quandram/podcatcher
b1d14b10b3e1afd1947e09ddf2006dac37c6fae7
[ "MIT" ]
null
null
null
import configparser import os from podcatcher import podcatcher import configKeys def update_last_processed_date(config, configSection, lastDownloadedDate): config.set(configSection, configKeys.LAST_DOWNLOADED_DATE, lastDownloadedDate.strftime("%Y-%m-%d %H:%M:%S %Z")) with open(os.path.join(os.path.dirname(__...
37.363636
161
0.744526
98
822
5.959184
0.459184
0.041096
0.065068
0.078767
0.267123
0.267123
0.123288
0.123288
0.123288
0
0
0
0.131387
822
21
162
39.142857
0.817927
0
0
0
0
0
0.059611
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.375
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
cf47b256b9183a754f0c9560868b735c8181e6d5
9,250
py
Python
cli/train.py
breid1313/nlp_hw3_text_fcn_pytorch
a4234e90d37e94a3043d9715c90bac7543f4b0ae
[ "Apache-2.0" ]
null
null
null
cli/train.py
breid1313/nlp_hw3_text_fcn_pytorch
a4234e90d37e94a3043d9715c90bac7543f4b0ae
[ "Apache-2.0" ]
null
null
null
cli/train.py
breid1313/nlp_hw3_text_fcn_pytorch
a4234e90d37e94a3043d9715c90bac7543f4b0ae
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Vladislav Lialin and Skillfactory LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
36.27451
162
0.647027
1,231
9,250
4.734362
0.300569
0.023164
0.035003
0.010295
0.103638
0.054736
0.033974
0.013384
0
0
0
0.007746
0.260324
9,250
254
163
36.417323
0.844051
0.339676
0
0
0
0.007463
0.185037
0.015461
0
0
0
0
0
1
0.014925
false
0.014925
0.089552
0
0.11194
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
cf483c36d559d50ef56df32e2b8c8288a4ddb79b
7,436
py
Python
src/profile.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/profile.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
null
null
null
src/profile.py
SimonPerche/PersonalitiesWars
495803a5be5e9fde572c3f39086d8a3510c75f58
[ "MIT" ]
1
2022-03-08T22:07:50.000Z
2022-03-08T22:07:50.000Z
from datetime import datetime, timedelta import asyncio import math from collections import defaultdict import discord from discord.ext import commands, pages from discord.commands import slash_command, Option from database import DatabaseDeck, DatabasePersonality from roll import min_until_next_claim import utils ...
44.261905
120
0.620764
966
7,436
4.593168
0.200828
0.023665
0.029299
0.01465
0.302457
0.249042
0.18526
0.18526
0.18526
0.146495
0
0.003676
0.268424
7,436
167
121
44.526946
0.811949
0.030662
0
0.153226
0
0.040323
0.145202
0.025313
0
0
0
0
0
1
0.008065
false
0
0.080645
0
0.120968
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
cf4a971868a5db584bf5e20d4c62c91c74f32e96
271
py
Python
aids/strings/is_palindrome.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
aids/strings/is_palindrome.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
aids/strings/is_palindrome.py
ueg1990/aids
bb543c6f53983d59edbc6a522ca10d64efd9c42e
[ "MIT" ]
null
null
null
''' In this module, we determine if a given string is a palindrome ''' def is_palindrome(string): ''' Return True if given string is a palindrome ''' if len(string) < 2: return True if string[0] == string[-1]: return is_palindrome(string[1:-1]) return False
16.9375
62
0.678967
43
271
4.232558
0.44186
0.120879
0.142857
0.153846
0.263736
0
0
0
0
0
0
0.022936
0.195572
271
15
63
18.066667
0.811927
0.391144
0
0
0
0
0
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.666667
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
cf4dc6fb0422c61d631abfb411ae82187b6217d2
3,433
py
Python
Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py
PacktPublishing/Supercharge-Your-Applications-with-GraalVM
bfb068e445f0325be9c7d526b6e07324dff9d1d2
[ "MIT" ]
9
2021-06-27T07:22:14.000Z
2022-02-25T18:05:01.000Z
Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py
PacktPublishing/Supercharge-Your-Applications-with-GraalVM
bfb068e445f0325be9c7d526b6e07324dff9d1d2
[ "MIT" ]
null
null
null
Chapter08/python/ab-env/lib/python3.8/site-packages/numpy-1.16.4-py3.8-macosx-10.16-x86_64.egg/numpy/core/_dtype_ctypes.py
PacktPublishing/Supercharge-Your-Applications-with-GraalVM
bfb068e445f0325be9c7d526b6e07324dff9d1d2
[ "MIT" ]
8
2021-05-28T15:45:12.000Z
2022-02-01T10:21:37.000Z
""" Conversion from ctypes to dtype. In an ideal world, we could acheive this through the PEP3118 buffer protocol, something like:: def dtype_from_ctypes_type(t): # needed to ensure that the shape of `t` is within memoryview.format class DummyStruct(ctypes.Structure): _fields_ = [('a',...
30.380531
103
0.633848
435
3,433
4.770115
0.31954
0.072289
0.043855
0.05494
0.250602
0.2
0.167711
0.167711
0.143614
0.143614
0
0.015538
0.268861
3,433
112
104
30.651786
0.811155
0.30032
0
0.4
0
0
0.059695
0
0
0
0
0
0
1
0.076923
false
0
0.030769
0.015385
0.276923
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
cf500d8b74ed4e30cef6a56fa9722244906f9406
2,202
py
Python
tests/test_micromagnetic_zeeman.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
53
2016-02-27T09:40:21.000Z
2022-01-19T21:37:44.000Z
tests/test_micromagnetic_zeeman.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
132
2016-02-26T13:18:58.000Z
2021-12-01T21:52:42.000Z
tests/test_micromagnetic_zeeman.py
computationalmodelling/fidimag
07a275c897a44ad1e0d7e8ef563f10345fdc2a6e
[ "BSD-2-Clause" ]
32
2016-02-26T13:21:40.000Z
2022-03-08T08:54:51.000Z
from fidimag.micro import Zeeman from fidimag.common import CuboidMesh from fidimag.micro import Sim import numpy as np def varying_field(pos): return (1.2 * pos[0], 2.3 * pos[1], 0) def test_H0_is_indexable_or_callable(): """ Test that an exception is raised if H0 is not indexable, and that an exce...
25.604651
78
0.560854
319
2,202
3.761755
0.401254
0.008333
0.0325
0.036667
0.11
0.11
0.11
0
0
0
0
0.044325
0.323797
2,202
85
79
25.905882
0.761585
0.232062
0
0.156863
0
0
0.048707
0
0
0
0
0
0.058824
1
0.078431
false
0.019608
0.078431
0.019608
0.176471
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
cf50585745c7b40989b43625db650caccd9e042a
13,058
py
Python
rule_learner_both_classes.py
mgbarsky/classification_rules
699969b87bd7a9080a7e937025fd26398c11a60d
[ "MIT" ]
null
null
null
rule_learner_both_classes.py
mgbarsky/classification_rules
699969b87bd7a9080a7e937025fd26398c11a60d
[ "MIT" ]
null
null
null
rule_learner_both_classes.py
mgbarsky/classification_rules
699969b87bd7a9080a7e937025fd26398c11a60d
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np class Rule: def __init__(self, class_label): self.conditions = [] # list of conditions self.class_label = class_label # rule class def add_condition(self, condition): self.conditions.append(condition) def set_params(self, accuracy, coverag...
38.519174
116
0.593736
1,555
13,058
4.796141
0.151768
0.044248
0.020649
0.015286
0.469697
0.412443
0.373022
0.342853
0.33159
0.323277
0
0.029144
0.327309
13,058
339
117
38.519174
0.8199
0.189998
0
0.458763
0
0
0.02616
0.002699
0.015464
0
0
0
0
1
0.06701
false
0
0.015464
0.005155
0.190722
0.015464
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
cf5251ba997fd509524b5ed305550da937b3de70
5,314
py
Python
packager/rpm/build.py
csdms/packagebuilder
a72f1d264d9219acfb422864fbcd57dfd6cfd51b
[ "MIT" ]
null
null
null
packager/rpm/build.py
csdms/packagebuilder
a72f1d264d9219acfb422864fbcd57dfd6cfd51b
[ "MIT" ]
null
null
null
packager/rpm/build.py
csdms/packagebuilder
a72f1d264d9219acfb422864fbcd57dfd6cfd51b
[ "MIT" ]
null
null
null
#! /usr/bin/env python # # Builds binary and source RPMs for a CSDMS model or tool. # # Create the executable script `build_rpm` with: # $ cd path/to/packagebuilder # $ sudo python setup.py install # # Examples: # $ build_rpm --help # $ build_rpm --version # $ build_rpm hydrotrend # $ build_rpm babel --tag ...
36.902778
80
0.59936
661
5,314
4.711044
0.279879
0.021195
0.028902
0.035967
0.147078
0.125883
0.06808
0.06808
0.051381
0.039178
0
0.002057
0.26816
5,314
143
81
37.160839
0.798663
0.258939
0
0.025316
0
0
0.171946
0
0
0
0
0
0
1
0.075949
false
0
0.101266
0
0.189873
0.088608
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
cf528e1ce597b280628a646ef42b416b3143745b
1,094
py
Python
setup.py
dwhall/sx127x_ahsm
71605ddb218636cb86f628441c2f1aee904bd271
[ "MIT" ]
1
2019-09-07T08:59:41.000Z
2019-09-07T08:59:41.000Z
setup.py
dwhall/sx127x_ahsm
71605ddb218636cb86f628441c2f1aee904bd271
[ "MIT" ]
1
2020-06-15T14:25:28.000Z
2020-06-15T22:55:40.000Z
setup.py
dwhall/sx127x_ahsm
71605ddb218636cb86f628441c2f1aee904bd271
[ "MIT" ]
1
2020-06-14T16:35:47.000Z
2020-06-14T16:35:47.000Z
import setuptools with open("README.md", "r") as fh: long_description = fh.read() setuptools.setup( name="sx127x_ahsm", version="0.1.0", author="Dean Hall", author_email="dwhall256@gmail.com", description="A driver for the Semtech SX127X radio data modem.", long_description=long_descriptio...
33.151515
68
0.632541
128
1,094
5.328125
0.65625
0.087977
0.146628
0.152493
0
0
0
0
0
0
0
0.03253
0.241316
1,094
32
69
34.1875
0.789157
0.11426
0
0
0
0
0.507772
0
0
0
0
0
0
1
0
false
0
0.04
0
0.04
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
cf545cb8f22abd776b690122d22917eb5c3778ef
5,756
py
Python
Preprocessing/reversegeo.py
salathegroup/Semester_Project
2de38eef4ae6b3c350f8b742021ff098ecb376c4
[ "MIT" ]
null
null
null
Preprocessing/reversegeo.py
salathegroup/Semester_Project
2de38eef4ae6b3c350f8b742021ff098ecb376c4
[ "MIT" ]
1
2018-02-20T15:25:22.000Z
2018-02-20T15:25:22.000Z
Preprocessing/reversegeo.py
salathegroup/Semester_Project
2de38eef4ae6b3c350f8b742021ff098ecb376c4
[ "MIT" ]
2
2017-11-07T09:12:11.000Z
2019-04-12T16:07:40.000Z
import reverse_geocoder as rg import csv import multiprocessing as mp import multiprocessing.pool import glob import re mx_ca_us_state_abbrev = { 'Alabama': '1', 'Alaska': '2', 'Arizona': '3', 'Arkansas': '4', 'California': '5', 'Colorado': '6', 'Connecticut': '7', 'Delaware': '8', ...
30.455026
130
0.509034
620
5,756
4.63871
0.508065
0.029207
0.013561
0.00765
0.098748
0.086926
0.086926
0.061892
0.061892
0.027121
0
0.040131
0.255386
5,756
188
131
30.617021
0.630891
0.430334
0
0
0
0
0.274928
0
0
0
0
0.005319
0
1
0.030303
false
0.010101
0.060606
0
0.090909
0.040404
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
cf54c232a75d4a7341295831e0d07ef22dddb9f7
12,143
py
Python
Trainer.py
Gorilla-Lab-SCUT/OrthDNNs
7391b1751334c485feea212a80abc4dc8430dc1e
[ "BSD-3-Clause" ]
4
2021-07-15T07:34:30.000Z
2022-03-30T08:23:46.000Z
Trainer.py
Gorilla-Lab-SCUT/OrthDNNs
7391b1751334c485feea212a80abc4dc8430dc1e
[ "BSD-3-Clause" ]
1
2020-02-11T10:55:46.000Z
2020-02-11T10:55:46.000Z
Trainer.py
Yuxin-Wen/OrthDNNs
7391b1751334c485feea212a80abc4dc8430dc1e
[ "BSD-3-Clause" ]
1
2021-11-23T03:31:09.000Z
2021-11-23T03:31:09.000Z
from __future__ import division import time import numpy as np import math import random import torch import torch.nn as nn import torch.nn.parallel import torch.nn.functional as F import torch.optim as optim from torch.autograd import Variable import torchvision from Utility import Average_meter from Utility import ...
43.679856
174
0.534464
1,472
12,143
4.238451
0.158288
0.01683
0.027088
0.026927
0.431319
0.374098
0.336432
0.317038
0.298125
0.285623
0
0.024778
0.35189
12,143
277
175
43.837545
0.76798
0.066376
0
0.253456
0
0.004608
0.043106
0.005801
0
0
0
0
0
1
0.02765
false
0
0.064516
0
0.119816
0.036866
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
cf555654bbc3d88a367ec4273df655fffb2396cc
952
py
Python
src/utils/login_to_spotify.py
SecondThundeR/spotichecker
05787bae85cb0d9c5832939c72bad526eb419705
[ "MIT" ]
null
null
null
src/utils/login_to_spotify.py
SecondThundeR/spotichecker
05787bae85cb0d9c5832939c72bad526eb419705
[ "MIT" ]
null
null
null
src/utils/login_to_spotify.py
SecondThundeR/spotichecker
05787bae85cb0d9c5832939c72bad526eb419705
[ "MIT" ]
null
null
null
"""Utils for logging to Spotify. This module contains functions for connecting to Spotify API. This file can also be imported as a module and contains the following functions: * login_to_spotify - connect to Spotify and return OAuth object """ import spotipy from spotipy.oauth2 import SpotifyOAuth SCOPES = "u...
27.2
80
0.698529
111
952
5.882883
0.540541
0.068913
0.042879
0
0
0
0
0
0
0
0
0.008086
0.220588
952
34
81
28
0.871968
0.465336
0
0
0
0
0.235294
0.102941
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
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
cf556fe0579840dc64ac6b121230f3d881ae21c9
17,516
py
Python
prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py
MaxenceLarose/ProstateCancerNomograms
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
[ "Apache-2.0" ]
1
2021-10-04T18:03:10.000Z
2021-10-04T18:03:10.000Z
prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py
MaxenceLarose/ProstateCancerNomograms
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
[ "Apache-2.0" ]
null
null
null
prostate_cancer_nomograms/statistical_analysis/nomograms_performance_evaluation/decision_curve_analysis/__init__.py
MaxenceLarose/ProstateCancerNomograms
4ff15dccd1f2dbde58d3a21a2e680e909e2e408a
[ "Apache-2.0" ]
null
null
null
import pandas as pd from .algo import * from .validate import * from .validate import DCAError __all__ = ['DecisionCurveAnalysis'] # only public member should be the class class DecisionCurveAnalysis: """DecisionCurveAnalysis(...) DecisionCurveAnalysis(algorithm='dca', **kwargs) Create an object of...
32.13945
99
0.565711
1,925
17,516
5.02026
0.152727
0.031043
0.042012
0.018626
0.292529
0.224855
0.212024
0.168874
0.162459
0.141349
0
0.003206
0.341117
17,516
545
100
32.13945
0.834156
0.375885
0
0.205882
0
0
0.12688
0.004829
0
0
0
0.007339
0
1
0.142157
false
0
0.04902
0
0.284314
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
cf565b37008bf14878731348b0d414b055945931
1,493
py
Python
pyxmp/xmp.py
jeslyvarghese/pyxmp
94e9f97574230f04b47fbcc7ed2caaa26e125ec4
[ "MIT" ]
null
null
null
pyxmp/xmp.py
jeslyvarghese/pyxmp
94e9f97574230f04b47fbcc7ed2caaa26e125ec4
[ "MIT" ]
null
null
null
pyxmp/xmp.py
jeslyvarghese/pyxmp
94e9f97574230f04b47fbcc7ed2caaa26e125ec4
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from .__keysearch import keysearch from .__attribute import Attribute class XMP(object): def __init__(self, filepath, **namespaces): self.filepath = filepath with open(self.filepath, 'rb') as f: data = f.read() xmp_start = data.find(b'<x:xmpmet...
37.325
68
0.578701
176
1,493
4.494318
0.363636
0.106195
0.091024
0.025284
0.042984
0
0
0
0
0
0
0.00388
0.309444
1,493
39
69
38.282051
0.763337
0
0
0
0
0
0.018084
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.194444
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
cf58a225d1a16173cd170707ce55c8de870dc56f
568
py
Python
sparse/utils.py
ContinuumIO/sparse
10da2d31f0228f192b3064ab253bc828b3cf1a50
[ "BSD-3-Clause" ]
2
2017-09-17T21:22:21.000Z
2019-08-26T02:28:10.000Z
sparse/utils.py
ContinuumIO/sparse
10da2d31f0228f192b3064ab253bc828b3cf1a50
[ "BSD-3-Clause" ]
null
null
null
sparse/utils.py
ContinuumIO/sparse
10da2d31f0228f192b3064ab253bc828b3cf1a50
[ "BSD-3-Clause" ]
4
2019-03-21T05:38:06.000Z
2021-02-23T06:26:48.000Z
import numpy as np from .core import COO def assert_eq(x, y): assert x.shape == y.shape assert x.dtype == y.dtype if isinstance(x, COO): if x.sorted: assert is_lexsorted(x) if isinstance(y, COO): if y.sorted: assert is_lexsorted(y) if hasattr(x, 'todense')...
19.586207
61
0.549296
86
568
3.569767
0.383721
0.107492
0.091205
0.149837
0
0
0
0
0
0
0
0.002597
0.322183
568
28
62
20.285714
0.794805
0
0
0.090909
0
0
0.024648
0
0
0
0
0
0.272727
1
0.090909
false
0
0.090909
0.045455
0.227273
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
cf6581484116a18845484669a17d5f8076cfe782
2,612
py
Python
baseline/xray.py
RoliKhanna/Anchor-Free
e3d599b7cbdc988ad7720c1e8324cabe87917d59
[ "MIT" ]
null
null
null
baseline/xray.py
RoliKhanna/Anchor-Free
e3d599b7cbdc988ad7720c1e8324cabe87917d59
[ "MIT" ]
null
null
null
baseline/xray.py
RoliKhanna/Anchor-Free
e3d599b7cbdc988ad7720c1e8324cabe87917d59
[ "MIT" ]
1
2019-11-25T22:08:19.000Z
2019-11-25T22:08:19.000Z
from nltk.corpus import reuters import sys import numpy as np from scipy import optimize # Loading data here train_documents, train_categories = zip(*[(reuters.raw(i), reuters.categories(i)) for i in reuters.fileids() if i.startswith('training/')]) test_documents, test_categories = zip(*[(reuters.raw(i), reuters.cate...
28.086022
139
0.568147
387
2,612
3.775194
0.315245
0.032854
0.023956
0.031485
0.144422
0.144422
0.102669
0.102669
0.102669
0.102669
0
0.009677
0.287902
2,612
92
140
28.391304
0.775806
0.035222
0
0.027397
0
0
0.01432
0
0
0
0
0
0
1
0.09589
false
0
0.054795
0.013699
0.246575
0.013699
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
cf664ab43e12cf24ecd3e41b3708349ac277b2fd
2,487
py
Python
models/deepset.py
sgvdan/OCTransformer
4bc6861406ea75afd23bdf1608a088dcba99ff14
[ "Apache-2.0" ]
null
null
null
models/deepset.py
sgvdan/OCTransformer
4bc6861406ea75afd23bdf1608a088dcba99ff14
[ "Apache-2.0" ]
null
null
null
models/deepset.py
sgvdan/OCTransformer
4bc6861406ea75afd23bdf1608a088dcba99ff14
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn # Obtained from: https://github.com/manzilzaheer/DeepSets/blob/master/PointClouds/classifier.py#L58 class PermEqui1_mean(nn.Module): def __init__(self, in_dim, out_dim): super().__init__() self.Gamma = nn.Linear(in_dim, out_dim) def forward(self, x): x...
34.068493
112
0.602734
339
2,487
4.235988
0.327434
0.027855
0.024373
0.02507
0.245822
0.201253
0.201253
0.114903
0.100975
0.067549
0
0.015194
0.285485
2,487
72
113
34.541667
0.792909
0.184158
0
0.24
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.04
0
0.24
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
cf677d8bfffcaf593d5e10ff7108b260a1cb5b41
2,478
py
Python
pandoc-wrapfig.py
nsheff/pandoc-wrapfig
d4523cf43ebab47024d7efde27d7ccddfd983d2f
[ "MIT" ]
null
null
null
pandoc-wrapfig.py
nsheff/pandoc-wrapfig
d4523cf43ebab47024d7efde27d7ccddfd983d2f
[ "MIT" ]
null
null
null
pandoc-wrapfig.py
nsheff/pandoc-wrapfig
d4523cf43ebab47024d7efde27d7ccddfd983d2f
[ "MIT" ]
1
2020-08-11T18:35:53.000Z
2020-08-11T18:35:53.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- """Pandoc filter to allow variable wrapping of LaTeX/pdf documents through the wrapfig package. Simply add a " {?}" tag to the end of the caption for the figure, where ? is an integer specifying the width of the wrap in inches. 0 will cause the width of the figure to be ...
38.71875
124
0.536723
280
2,478
4.657143
0.421429
0.055215
0.052147
0.019939
0.173313
0.136503
0.136503
0.075153
0.075153
0
0
0.007652
0.314366
2,478
63
125
39.333333
0.759859
0.274415
0
0.171429
0
0
0.155318
0.090039
0
0
0
0
0
1
0.057143
false
0
0.057143
0.028571
0.257143
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
cf697a286088c58c3db9ead0e8a7c5dfcff5c956
3,999
py
Python
las2vola.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
6
2019-02-11T14:32:23.000Z
2021-12-07T09:49:41.000Z
las2vola.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
null
null
null
las2vola.py
moloned/volumetric_accelerator_toolkit
8f5cf226a7d788e4dd4215c181db49d9568c6240
[ "Apache-2.0" ]
2
2018-10-11T17:29:37.000Z
2021-09-08T12:01:40.000Z
#!/usr/bin/env python3 """ Las2vola: Converts Las files into VOLA format. The ISPRS las format is the standard for LIDAR devices and stores information on the points obtained. This parser uses the las information for the nbit per voxel representation. The data stored is: color, height, number of returns, intensity and...
32.778689
118
0.607652
499
3,999
4.819639
0.390782
0.018711
0.012474
0.011642
0.022453
0.022453
0.022453
0
0
0
0
0.020083
0.277819
3,999
121
119
33.049587
0.812673
0.186797
0
0.142857
0
0
0.065965
0
0
0
0
0
0
1
0.02381
false
0
0.095238
0
0.154762
0.095238
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
cf6a926cdf026b6807d2fbef9356b946cbf88279
2,871
py
Python
pipeline/test_users.py
streamsets/datacollector-tests-external
6f255b5e7496deeef333b57a5e9df4911ba3ef00
[ "Apache-2.0" ]
1
2020-04-14T03:01:51.000Z
2020-04-14T03:01:51.000Z
pipeline/test_users.py
streamsets/test
1ead70179ee92a4acd9cfaa33c56a5a9e233bf3d
[ "Apache-2.0" ]
1
2019-04-24T11:06:38.000Z
2019-04-24T11:06:38.000Z
pipeline/test_users.py
anubandhan/datacollector-tests
301c024c66d68353735256b262b681dd05ba16cc
[ "Apache-2.0" ]
2
2019-05-24T06:34:37.000Z
2020-03-30T11:48:18.000Z
# Copyright 2017 StreamSets Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
30.542553
102
0.703239
370
2,871
5.310811
0.37027
0.083969
0.035623
0.045802
0.23715
0.116031
0.116031
0.040712
0
0
0
0.005469
0.172065
2,871
93
103
30.870968
0.821203
0.253222
0
0.230769
0
0
0.144805
0
0
0
0
0
0.269231
1
0.096154
false
0
0.057692
0
0.173077
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
cf6af0cf676fc11ed879ddf07c27b61f75d1ae0d
1,107
py
Python
email_client/email_send.py
geeksLabTech/email-client
0f533f7b33c38d74aec8663ccc6d8116e0a2489d
[ "MIT" ]
1
2021-09-06T16:43:37.000Z
2021-09-06T16:43:37.000Z
email_client/email_send.py
geeksLabTech/email-client
0f533f7b33c38d74aec8663ccc6d8116e0a2489d
[ "MIT" ]
null
null
null
email_client/email_send.py
geeksLabTech/email-client
0f533f7b33c38d74aec8663ccc6d8116e0a2489d
[ "MIT" ]
2
2020-09-13T02:25:50.000Z
2021-01-06T17:25:38.000Z
import smtplib from tools.errors import LoginException from tools.read_config import read_config def send_mail(sender:str, pwd:str, to:str, subject:str, text:str): # Read the email config file config = read_config('./config/config_email.json') # create connection with the smtp server smtpserver = smtp...
42.576923
91
0.515808
109
1,107
5.165138
0.422018
0.053286
0
0
0
0
0
0
0
0
0
0
0.417344
1,107
25
92
44.28
0.872868
0.200542
0
0
0
0
0.063854
0.029647
0
0
0
0
0
1
0.066667
false
0
0.2
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
cf70a281c3c891880251c2d76efe8ac3eb44248a
1,860
py
Python
spongeauth/api/tests/test_delete_user.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
10
2016-11-18T12:37:24.000Z
2022-03-04T09:25:25.000Z
spongeauth/api/tests/test_delete_user.py
felixoi/SpongeAuth
d44ee52d0b35b2e1909c7bf6bad29aa7b4835b26
[ "MIT" ]
794
2016-11-19T18:34:37.000Z
2022-03-31T16:49:11.000Z
spongeauth/api/tests/test_delete_user.py
PowerNukkit/OreAuth
96a2926c9601fce6fac471bdb997077f07e8bf9a
[ "MIT" ]
11
2016-11-26T22:30:17.000Z
2022-03-16T17:20:14.000Z
import urllib.parse import django.shortcuts import pytest import faker import accounts.tests.factories import api.models @pytest.fixture def fake(): return faker.Faker() def _make_path(data): return "{}?{}".format(django.shortcuts.reverse("api:users-list"), urllib.parse.urlencode(data)) @pytest.mark.dj...
26.956522
113
0.716129
255
1,860
5.078431
0.27451
0.034749
0.049421
0.055598
0.52278
0.485714
0.380695
0.307336
0.307336
0.234749
0
0.007561
0.146774
1,860
68
114
27.352941
0.808444
0.015591
0
0.295455
0
0
0.077681
0
0
0
0
0
0.318182
1
0.136364
false
0
0.136364
0.045455
0.318182
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
cf70d57cf63af1b7800f864d1cbbd1296009fe92
2,091
py
Python
tests/rw_all.py
clayne/retrowrite
117dad525114bca695317e14affffd4e3de13cce
[ "MIT" ]
478
2019-06-19T09:33:50.000Z
2022-03-25T09:34:24.000Z
tests/rw_all.py
clayne/retrowrite
117dad525114bca695317e14affffd4e3de13cce
[ "MIT" ]
30
2019-07-12T09:38:43.000Z
2022-03-28T04:53:31.000Z
tests/rw_all.py
clayne/retrowrite
117dad525114bca695317e14affffd4e3de13cce
[ "MIT" ]
62
2019-06-25T16:41:04.000Z
2022-02-22T15:47:35.000Z
import argparse import json import subprocess import os from multiprocessing import Pool def do_test(cmd): print("[!] Running on {}".format(cmd)) try: subprocess.check_call(cmd, shell=True) except subprocess.CalledProcessError: print("[x] Failed {}".format(cmd)) def do_tests(tests, filte...
27.155844
79
0.583931
261
2,091
4.563218
0.35249
0.030227
0.062972
0.035264
0.117548
0.082284
0.082284
0.058774
0.058774
0
0
0
0.275466
2,091
76
80
27.513158
0.786139
0
0
0.180328
0
0
0.175036
0
0
0
0
0
0.016393
1
0.032787
false
0
0.081967
0
0.114754
0.032787
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
cf73010efaaefc559ce2e5d857ca0b89c2eb9c35
2,753
py
Python
tests/conftest.py
Nonse/monkeys
93681edf18126cc49858992f80df25a7cff931e8
[ "MIT" ]
null
null
null
tests/conftest.py
Nonse/monkeys
93681edf18126cc49858992f80df25a7cff931e8
[ "MIT" ]
null
null
null
tests/conftest.py
Nonse/monkeys
93681edf18126cc49858992f80df25a7cff931e8
[ "MIT" ]
null
null
null
import os import pytest import random import config from monkeygod import create_app, models from monkeygod.models import db as _db TEST_DATABASE_URI = 'postgresql://postgres:postgres@localhost/test_monkeydb' # Adapted from http://goo.gl/KXDq2p @pytest.fixture(scope='session') def app(request): """Session-wide ...
24.149123
76
0.65129
322
2,753
5.462733
0.313665
0.044343
0.061399
0.059125
0.361001
0.261512
0.221717
0.175099
0.175099
0.175099
0
0.007615
0.236833
2,753
113
77
24.362832
0.829605
0.073738
0
0.375
0
0
0.050533
0.021319
0
0
0
0
0
1
0.125
false
0
0.075
0
0.2375
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
cf73290c5bcbebb20fd5e98add009b993c971061
8,610
py
Python
src/classifier.py
WattSocialBot/ijcnlp2017-customer-feedback
2dccdcfaf26df832343dbb76b1e31a094c578c0e
[ "MIT" ]
17
2017-10-27T20:48:38.000Z
2020-03-16T15:05:47.000Z
src/classifier.py
WattSocialBot/ijcnlp2017-customer-feedback
2dccdcfaf26df832343dbb76b1e31a094c578c0e
[ "MIT" ]
null
null
null
src/classifier.py
WattSocialBot/ijcnlp2017-customer-feedback
2dccdcfaf26df832343dbb76b1e31a094c578c0e
[ "MIT" ]
3
2017-10-28T15:34:26.000Z
2020-03-09T13:56:40.000Z
__author__ = "bplank" import argparse from sklearn.feature_extraction.text import TfidfVectorizer from sklearn.pipeline import Pipeline, FeatureUnion from sklearn.svm import LinearSVC from sklearn.metrics import accuracy_score, classification_report, confusion_matrix, f1_score from sklearn.preprocessing import LabelE...
30.316901
180
0.589315
901
8,610
5.477248
0.256382
0.055117
0.068085
0.07538
0.339412
0.324823
0.310638
0.298886
0.285512
0.26768
0
0.010678
0.260395
8,610
283
181
30.424028
0.76429
0.03856
0
0.446078
0
0
0.15339
0.002906
0
0
0
0
0
1
0
false
0
0.073529
0
0.073529
0.088235
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
cf73e7f195ff23cb66846fa6c6da7d28660538de
20,029
py
Python
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
6
2021-08-20T20:00:31.000Z
2022-01-03T15:43:50.000Z
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
1
2021-07-30T13:07:36.000Z
2021-07-30T13:07:36.000Z
scripts/parser/oldslavdep.py
npedrazzini/jPTDPEarlySlavic
de9d3fa720fb86acadafc923d85473ae3371903f
[ "MIT" ]
1
2021-01-23T20:00:25.000Z
2021-01-23T20:00:25.000Z
# coding=utf-8 from __future__ import absolute_import, division, print_function, unicode_literals from builtins import str from io import open from dynet import * import dynet from utils import read_conll, read_conll_predict, write_conll, load_embeddings_file from operator import itemgetter import utils, time, random...
48.379227
127
0.567277
2,230
20,029
4.943946
0.133184
0.044807
0.017687
0.019592
0.606168
0.56
0.521088
0.474376
0.443356
0.434467
0
0.012726
0.333017
20,029
413
128
48.496368
0.812561
0.023017
0
0.405751
0
0
0.010587
0
0
0
0
0
0.003195
1
0.028754
false
0
0.031949
0.003195
0.079872
0.015974
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
cf7bf89fc30751bcda78ce1d1f53a0da0361b74d
1,509
py
Python
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
dashdaemon/keys.py
rGunti/CarPi-DashDaemon
b8b340d35125b6f7fe5bb9647760d37301b07cac
[ "MIT" ]
null
null
null
""" CARPI DASH DAEMON (C) 2018, Raphael "rGunti" Guntersweiler Licensed under MIT """ from redisdatabus.bus import TypedBusListener as Types import gpsdaemon.keys as gpskeys import obddaemon.keys as obdkeys SETTINGS_KEY_BASE = 'carpi.settings.' DASH_KEY_BASE = 'carpi.dashboard.' def _build_key(type, key_base, name...
30.795918
92
0.743539
214
1,509
4.808411
0.369159
0.07483
0.088435
0.115646
0.251701
0.229349
0.204082
0.204082
0.204082
0.12828
0
0.009909
0.13055
1,509
48
93
31.4375
0.77439
0.051027
0
0
0
0
0.212781
0
0
0
0
0
0
1
0.030303
false
0
0.090909
0.030303
0.151515
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
cf7e16d1f4e90c037eb66831eeffade73df69683
261
py
Python
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
imdb_movie_review_sentiment_prediction/training_and_evaluation.py
slaily/deep-learning-bits
cb9ce7ec539efbdfcaa023d141466f919bd31b71
[ "MIT" ]
null
null
null
model.compile( optimizer='rmsprop', loss='binary_crossentropy', metrics=['acc'] ) history = model.fit( x_train, y_train, epochs=10, batch_size=32, validation_data=(x_val, y_val) ) model.save_weights('pre_trained_glove_model.h5')
18.642857
48
0.678161
35
261
4.742857
0.8
0
0
0
0
0
0
0
0
0
0
0.023474
0.183908
261
13
49
20.076923
0.755869
0
0
0
0
0
0.210728
0.099617
0
0
0
0
0
1
0
false
0
0
0
0
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
cf831543b480d5861c0d351648dc6dd8a55ea5de
460
py
Python
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/choicegroup/choicegroup_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
import pglet from pglet import ChoiceGroup, choicegroup, Text with pglet.page("choicegroup-with-change-event") as page: def choicegroup_changed(e): t.value = f"ChoiceGroup value changed to {cg.value}" t.update() cg = ChoiceGroup(label='Select color', on_change=choicegroup_changed, options=[ ...
24.210526
81
0.680435
58
460
5.344828
0.517241
0.164516
0
0
0
0
0
0
0
0
0
0
0.184783
460
19
82
24.210526
0.826667
0
0
0
0
0
0.199566
0.062907
0
0
0
0
0
1
0.071429
false
0
0.142857
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
cf84fe1671965d8bf607c4db0b1fce05cc370700
910
py
Python
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
null
null
null
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
null
null
null
raspberrypi/sound1.py
Shadowsith/python
b8878c822e55528e663de16bd1029d330862c8dc
[ "MIT" ]
1
2020-05-19T11:32:25.000Z
2020-05-19T11:32:25.000Z
#!/usr/bin/python #Doppelklatschen import time gpioPort = 40 import RPi.GPIO as GPIO import mysql.connector #MySQL Verbindung statement = "UPDATE Flags SET wert=0 WHERE name='bewegung';" #GPIO Layout verwenden GPIO.setmode(GPIO.BOARD) GPIO.setup(gpioPort, GPIO.IN) lastSound = 0 def mysqlConnect(statement): ...
23.947368
103
0.631868
110
910
5.227273
0.554545
0.052174
0.041739
0.055652
0.069565
0
0
0
0
0
0
0.03741
0.236264
910
37
104
24.594595
0.789928
0.074725
0
0.153846
0
0
0.108592
0
0
0
0
0
0
1
0.038462
false
0.038462
0.115385
0
0.153846
0.076923
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
cf85325b7b5d658e0a68da64304ce7b4f2588e9a
7,466
py
Python
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
52
2017-11-14T06:45:45.000Z
2022-03-01T01:14:45.000Z
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
7
2018-11-21T17:21:14.000Z
2021-09-04T09:23:53.000Z
apted/all_possible_mappings_ted.py
JoaoFelipe/apted
828b3e3f4c053f7d35f0b55b0d5597e8041719ac
[ "MIT" ]
7
2017-12-17T16:49:45.000Z
2020-07-16T18:49:44.000Z
# # The MIT License # # Copyright 2017 Joao Felipe Pimentel # 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, modif...
42.420455
80
0.583311
964
7,466
4.409751
0.274896
0.016937
0.00941
0.012232
0.234533
0.228652
0.21642
0.201835
0.175488
0.175488
0
0.019895
0.360434
7,466
175
81
42.662857
0.870366
0.425931
0
0.216867
0
0
0.000757
0
0
0
0
0
0
1
0.060241
false
0
0.048193
0
0.192771
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
cf8a7c68901bef8af36175c6396dc707d25c27e2
4,429
py
Python
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
Antics/AI/AIPlayer.py
sundercode/AI-Homework
423f703685852313bc127338f9cf6b4e862b898e
[ "MIT" ]
null
null
null
import random import sys sys.path.append("..") #so other modules can be found in parent dir from Player import * from Constants import * from Construction import CONSTR_STATS from Ant import UNIT_STATS from Move import Move from GameState import * from AIPlayerUtils import * ## #AIPlayer #Description: The responsbili...
37.533898
105
0.589298
551
4,429
4.704174
0.303085
0.006173
0.032407
0.029321
0.337191
0.283179
0.283179
0.261574
0.23071
0.23071
0
0.010183
0.334839
4,429
117
106
37.854701
0.869654
0.413186
0
0.423077
0
0
0.003163
0
0
0
0
0
0
1
0.076923
false
0
0.173077
0.019231
0.365385
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
d8415d3e67ce2c47d7251854165bcf91208abf86
22,718
py
Python
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
13
2019-12-23T06:51:08.000Z
2022-01-07T18:14:55.000Z
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
3
2020-07-30T16:07:43.000Z
2021-07-14T09:00:42.000Z
pysnptools/util/mapreduce1/runner/hpc.py
fastlmm/PySnpTools
ce2ecaa5548e82b64c8ed6a205dbf419701b66b6
[ "Apache-2.0" ]
3
2020-05-22T09:46:16.000Z
2021-01-26T13:27:36.000Z
from pysnptools.util.mapreduce1.runner import * import os import subprocess, sys, os.path import multiprocessing import pysnptools.util as pstutil import pdb import logging try: import dill as pickle except: logging.warning("Can't import dill, so won't be able to clusterize lambda expressions. If you try, you'...
52.832558
265
0.61832
2,752
22,718
4.950218
0.165334
0.026426
0.02048
0.017177
0.340527
0.285547
0.256478
0.201864
0.173163
0.147618
0
0.013471
0.264812
22,718
429
266
52.955711
0.802179
0.087904
0
0.204611
0
0.034582
0.20704
0.016001
0
0
0
0
0.011527
1
0.057637
false
0
0.037464
0
0.146974
0.002882
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
d8424bf36382d1072f3fbfbb2e4fabd3526822c8
496
py
Python
tests/formatters_test.py
MiraGeoscience/mirageoscience-apps
8c445ec8f2391349aa4cac6c705426301b3c31ca
[ "MIT" ]
1
2022-02-18T16:28:22.000Z
2022-02-18T16:28:22.000Z
tests/formatters_test.py
nwilliams-kobold/geoapps
eb972321316a33628d8ae04613cc403a27d942ee
[ "MIT" ]
null
null
null
tests/formatters_test.py
nwilliams-kobold/geoapps
eb972321316a33628d8ae04613cc403a27d942ee
[ "MIT" ]
null
null
null
# Copyright (c) 2022 Mira Geoscience Ltd. # # This file is part of geoapps. # # geoapps is distributed under the terms and conditions of the MIT License # (see LICENSE file at the root of this source code package). import pytest from geoapps.utils.formatters import string_name def test_string_name(): char...
23.619048
75
0.681452
80
496
4.0375
0.6
0.123839
0.018576
0.024768
0.06192
0.06192
0.06192
0.06192
0.06192
0.06192
0
0.010076
0.199597
496
20
76
24.8
0.803526
0.413306
0
0
0
0
0.282686
0
0
0
0
0
0.125
1
0.125
false
0
0.25
0
0.375
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
d8455d466c10af2e80eabb1b98ebf27274580915
5,992
py
Python
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
midonet/neutron/services/l2gateway/plugin.py
NeCTAR-RC/networking-midonet
7a69af3eab25f57e77738fd8398b6f4854346fd9
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2015 Midokura SARL # 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...
47.555556
79
0.691255
739
5,992
5.331529
0.301759
0.061675
0.08198
0.046701
0.374112
0.284264
0.236548
0.195939
0.195939
0.148731
0
0.018157
0.255507
5,992
125
80
47.936
0.865053
0.315921
0
0.185714
0
0
0.036954
0
0
0
0
0
0
1
0.085714
false
0
0.157143
0
0.285714
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
d848f8dd8085e1bf86cb047117735a5685ffbd13
1,781
py
Python
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
setup.py
mcrowson/wunderpy2
a3a959d1a3569ccb0869adba10e671978609a697
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from codecs import open import os.path import sys script_dir = os.path.abspath(os.path.dirname(__file__)) def read(*paths): """Build a file path from *paths* and return the contents.""" with open(os.path.join(*paths), 'r') as f: return f.read() # argparse i...
36.346939
95
0.632229
218
1,781
5.105505
0.573395
0.085355
0.112309
0.093441
0.048518
0
0
0
0
0
0
0.021708
0.224031
1,781
48
96
37.104167
0.783647
0.137563
0
0
0
0
0.442408
0
0
0
0.006545
0
0
1
0.025
false
0
0.1
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
d8491385a7cb1fe2a3fcabf28f8d930e00a5e6f3
612
py
Python
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
null
null
null
mpos/web/manager.py
cackharot/ngen-milk-pos
4814bdbc6bddf02530ff10e1ec842fb316b0fa91
[ "Apache-2.0" ]
1
2019-04-24T06:11:47.000Z
2019-04-24T06:11:47.000Z
# Set the path import os import sys from flask_script import Manager, Server sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from web import app manager = Manager(app) # Turn on debugger by default and reloader manager.add_command("run", Server( use_debugger=True, use_reloade...
19.741935
79
0.691176
92
612
4.391304
0.48913
0.019802
0.069307
0.079208
0.252475
0.252475
0.252475
0.252475
0.252475
0.252475
0
0.03373
0.176471
612
31
80
19.741935
0.767857
0.173203
0
0
0
0
0.065737
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.190476
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
d84b963aacb5fb2dab3e77cf74727cfedec95c03
323
py
Python
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
setup.py
khsk/Python-App-Capture
a0b893765558f144399ec31f1f11fb0b30025cc7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Tue Oct 03 15:54:20 2017 @author: y-takeuchi """ from cx_Freeze import setup, Executable exe = Executable(script = 'capture.py', base = 'Win32Gui') setup(name = 'AppCapture', version = '0.1', description = 'Save Screen', executables = [ex...
17.944444
60
0.585139
39
323
4.820513
0.923077
0
0
0
0
0
0
0
0
0
0
0.07113
0.260062
323
18
61
17.944444
0.715481
0.244582
0
0
0
0
0.190909
0
0
0
0
0
0
1
0
false
0
0.166667
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
d84bc5b6f7292dc9f40fd92ef12317fa084962da
2,731
py
Python
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
null
null
null
mosquitto-1.5.4/test/broker/08-ssl-bridge.py
RainaWLK/mqtt-test
cb4175c8bd1e35deed45941ca61c88fdcc6ddeba
[ "MIT" ]
1
2021-06-19T17:17:41.000Z
2021-06-19T17:17:41.000Z
#!/usr/bin/env python import subprocess import socket import ssl import inspect, os, sys # From http://stackoverflow.com/questions/279237/python-import-a-module-from-a-folder cmd_subfolder = os.path.realpath(os.path.abspath(os.path.join(os.path.split(inspect.getfile( inspect.currentframe() ))[0],".."))) if cmd_subfol...
31.390805
168
0.680337
389
2,731
4.606684
0.383033
0.049107
0.027344
0.047433
0.061384
0.046875
0
0
0
0
0
0.021978
0.166972
2,731
86
169
31.755814
0.765714
0.038081
0
0.092308
0
0
0.125381
0.009527
0
0
0
0
0
1
0.015385
false
0.015385
0.076923
0
0.092308
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
d84c3bb5b6974c0f95b489673269ce950a277333
8,658
py
Python
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
1
2018-10-08T09:29:51.000Z
2018-10-08T09:29:51.000Z
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
4
2018-06-30T18:06:47.000Z
2018-08-16T02:01:59.000Z
models/architecture/vaegan/trainer.py
EmmaNguyen/feature_adversarial_with_topology_signatures
efa7db6d0fdf5b2505d67d4341dcdb2ab05a97a7
[ "MIT" ]
null
null
null
import numpy as np import torch import torch.nn.functional as F from torch.autograd import Variable from .distributions import rand_circle2d from ot import gromov_wasserstein2, unif def rand_projections(embedding_dim, num_samples=50): """This fn generates `L` random samples from the latent space's unit sphere. ...
46.299465
195
0.71125
1,096
8,658
5.443431
0.211679
0.073248
0.041904
0.029501
0.563024
0.521958
0.501341
0.488099
0.456252
0.422058
0
0.015604
0.208016
8,658
186
196
46.548387
0.854455
0.377916
0
0.227273
0
0
0.008641
0
0
0
0
0
0
1
0.125
false
0
0.079545
0.011364
0.329545
0.011364
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
d84cdf2cbca845f67fc205a391078d2af1f1badc
475
py
Python
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
image_action.py
abhishekchetani/ML_18june
4a6465259c7d0de0cbdc12c1c9f10dd6f925883d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python import cv2 img = cv2.imread("/home/abhishek/Desktop/tracks.jpeg") cv2.line(img,(0,0),(236,236),(100,54,255),3) cv2.rectangle(img,(199,112),(325,238),(0,0,255),2) cv2.circle(img,(262,175),60,(255,200,0),3) font = cv2.FONT_HERSHEY_SIMPLEX cv2.putText(img,'TRAIN',(210,270),font,1,(90,200,140),cv2.LIN...
23.75
65
0.661053
81
475
3.839506
0.580247
0.057878
0.122187
0
0
0
0
0
0
0
0
0.189573
0.111579
475
19
66
25
0.547393
0.033684
0
0
0
0
0.172489
0.146288
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
d84e2e63426049e55a4ce07d524f85ba7b495330
14,662
py
Python
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
1
2019-06-07T13:22:57.000Z
2019-06-07T13:22:57.000Z
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
null
null
null
GMM_nDim3.py
Sharut/My-Hybrid-GMM-SVM-Model
68f0ab9b86dbb0ca3d1e63f2df0dcc4c7066e424
[ "MIT" ]
1
2020-08-30T06:49:25.000Z
2020-08-30T06:49:25.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri May 24 09:08:48 2019 @author: uiet_mac1 """ import numpy as np import random as rd import matplotlib.pyplot as plt from matplotlib.patches import Ellipse #import hungarian as hg def random_parameters(data, K): """ K is the number of gaussians""...
29.033663
103
0.559132
2,096
14,662
3.81584
0.166985
0.019255
0.016879
0.010003
0.384471
0.311453
0.245436
0.213303
0.195049
0.185046
0
0.034831
0.283317
14,662
505
104
29.033663
0.726304
0.149366
0
0.352941
0
0
0.022873
0.003781
0
0
0
0
0.022059
1
0.058824
false
0
0.033088
0.003676
0.143382
0.066176
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
d854e1572c3ce2b3c51dea839fbb388e61fd565b
535
py
Python
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
2
2019-07-28T08:25:40.000Z
2019-07-29T05:29:10.000Z
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
null
null
null
li_hang/test/test_knn.py
LucienShui/HelloMachineLearning
b00a4b3791808ace3b1e45112350c2b3c539995e
[ "Apache-2.0" ]
null
null
null
import unittest import logging import numpy from knn import KNN class MyTestCase(unittest.TestCase): def test_something(self): logging.basicConfig() dataset = numpy.array([ [[5, 4], 1], [[9, 6], 1], [[4, 7], 1], [[2, 3], -1], [[8, 1], -1...
18.448276
52
0.48785
63
535
3.968254
0.492063
0.08
0.088
0
0
0
0
0
0
0
0
0.063401
0.351402
535
28
53
19.107143
0.657061
0
0
0
0
0
0.014953
0
0
0
0
0
0.05
1
0.05
false
0
0.2
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
d8560e6218ec99112b9cb038f1f87fe00535d31f
2,130
py
Python
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
src/taming.py
dwaybright/g729a_python
a9c78d9a6b2934c9742f63e3ade225fe4aee245e
[ "Unlicense" ]
null
null
null
from basic_op import * from ld8a import * from tab_ld8a import * L_exc_err = [0] * 4 def Init_exc_err() -> None: global L_exc_err for i in range(0, 4): L_exc_err[i] = MAX_INT_14 # Q14 def test_err(T0: int, T0_frac: int) -> int: """ # (o) flag set to 1 if taming is necessary # ...
21.958763
51
0.530047
380
2,130
2.655263
0.181579
0.109019
0.077304
0.047572
0.477701
0.326065
0.326065
0.288404
0.288404
0.288404
0
0.059942
0.357746
2,130
96
52
22.1875
0.677632
0.088732
0
0.387097
0
0
0
0
0
0
0
0
0
1
0.048387
false
0
0.048387
0
0.112903
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
d85ca52402346be7dfaf6277ede793e7a996a2e4
1,176
py
Python
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
7
2015-11-11T22:55:49.000Z
2021-06-03T17:23:59.000Z
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
null
null
null
db_create.py
abmorton/stockhawk
b5f4d188a8f9420898f2390b01741c87a17ebbbd
[ "MIT" ]
3
2016-01-19T02:23:14.000Z
2018-08-03T12:20:07.000Z
from app import db from models import * import datetime # create the db and tables db.create_all() # prepare data to insert year = 1982 month = 4 day = 3 birthday = datetime.date(year, month, day) now = datetime.datetime.now() today = datetime.date(now.year, now.month, now.day) yesterday = datetime.date(now.year, n...
21.381818
98
0.706633
182
1,176
4.56044
0.412088
0.108434
0.086747
0.045783
0.13494
0.13494
0.06988
0
0
0
0
0.027723
0.141156
1,176
55
99
21.381818
0.794059
0.311224
0
0.173913
0
0
0.080301
0
0
0
0
0
0
1
0
false
0
0.130435
0
0.130435
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
d85fa73be967336630b8bccd9bd0353e0af7dd9d
879
py
Python
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
26
2019-05-05T04:52:38.000Z
2022-01-27T19:25:27.000Z
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
null
null
null
test/libraryData_BulkUpdates.py
masqu3rad3/tik_manager
59821670e87a2af753a59cc70924c5f0aad8ad51
[ "BSD-3-Clause" ]
5
2020-02-14T06:43:07.000Z
2021-08-13T09:58:44.000Z
from tik_manager import assetLibrary reload(assetLibrary) import pprint import time pathList = ["E:\\backup\\_CharactersLibrary", "E:\\backup\\_BalikKrakerAssetLibrary", "E:\\backup\\_AssetLibrary", "M:\\Projects\\_CharactersLibrary", "M:\\Projects\\_BalikKrakerAssetLibrary", "M:\\Projects\\_AssetLibrary"] for path in...
43.95
223
0.651877
96
879
5.875
0.447917
0.06383
0.095745
0.088652
0.14539
0.14539
0.14539
0
0
0
0
0
0.185438
879
19
224
46.263158
0.78771
0.341297
0
0
0
0
0.337413
0.328671
0
0
0
0
0
1
0
false
0
0.25
0
0.25
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
d862e5191af1e26ac32d9cdf7c011969df1241d6
997
py
Python
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
3
2020-10-15T14:32:36.000Z
2022-03-08T20:56:58.000Z
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
2
2022-02-09T23:51:20.000Z
2022-02-10T02:25:10.000Z
video_reader.py
evgenevolkov/Automated-car-tracker-and-plates-reader
5cee11b654bb8cfd20d081198af43b56811d2107
[ "MIT" ]
2
2021-04-07T11:56:20.000Z
2022-01-28T22:25:36.000Z
# import nesessary packages import cv2 import config DEBUG = config.DEBUG class Reader: def __init__(self, source): if DEBUG: print('[INFO, reader]: reader module loaded') # if source: self.vs = None self.set_source(source) # else: # print('[INFO, r...
29.323529
84
0.594784
123
997
4.682927
0.398374
0.052083
0.078125
0.0625
0.097222
0.097222
0
0
0
0
0
0.008683
0.306921
997
34
85
29.323529
0.824891
0.194584
0
0.090909
0
0
0.179423
0
0
0
0
0
0
1
0.181818
false
0
0.090909
0
0.363636
0.136364
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
d863b2417d20fc0b71005243f57ab636233f418d
2,605
py
Python
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
1
2021-05-18T15:49:54.000Z
2021-05-18T15:49:54.000Z
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
null
null
null
Harry_Poter_Cloak/harry_potter_cloak.py
SusovanGithub/SusovanGithub-OpenCV_projects
bff292a976e0e48c8b4094607878133e70395029
[ "MIT" ]
null
null
null
import cv2 import numpy as np # function for the empty work def empty(a): pass # * creating the Window windowName = 'Color Detection in HSV Space' # Window Name cv2.namedWindow(windowName) # Window Creation # * Adding the Track pad cv2.createTrackbar('HUE min',windowName,0,179,empty) cv2....
28.010753
70
0.664491
365
2,605
4.643836
0.30411
0.041298
0.046018
0.044248
0.19174
0.147493
0.102655
0.029499
0
0
0
0.042418
0.212668
2,605
93
71
28.010753
0.784008
0.187716
0
0.072727
0
0
0.057252
0
0
0
0.001908
0
0
1
0.018182
false
0.018182
0.036364
0
0.054545
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
d8644fc985adc50f63489cffe3bfe8417550597e
5,575
py
Python
autosrc.py
pwnwikiorg/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
44
2021-07-12T05:45:47.000Z
2021-09-24T13:49:39.000Z
autosrc.py
mama2100/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
null
null
null
autosrc.py
mama2100/AutoSRC
4cee92b2ae0e4f024059840a0b84d49f5e125e94
[ "MIT" ]
15
2021-07-12T05:48:25.000Z
2021-09-10T07:56:55.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import os import subprocess import requests import argparse import base64 import sys import json import codecs def dec_data(byte_data: bytes): try: return byte_data.decode('UTF-8') except UnicodeDecodeError: return byte_data.decode('GB1...
45.696721
136
0.411121
581
5,575
3.851979
0.292599
0.073727
0.068365
0.058088
0.316354
0.290438
0.226095
0.206434
0.186774
0.157283
0
0.106799
0.348341
5,575
121
137
46.07438
0.509221
0.006816
0
0.132075
0
0.09434
0.49372
0.087551
0
0
0
0
0
1
0.037736
false
0
0.075472
0
0.141509
0.198113
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
d8681174b4934ada560118e7c8363f5ba24fcfa0
4,263
py
Python
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
16
2020-05-16T00:40:31.000Z
2022-02-22T11:59:03.000Z
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
9
2020-08-10T08:33:55.000Z
2021-08-17T02:10:50.000Z
gym-kinova-gripper/Old Code/stuff.py
OSUrobotics/KinovaGrasping
f22af60d3683fdc4ffecf49ccff179fbc6750748
[ "Linux-OpenIB" ]
7
2020-07-27T09:45:05.000Z
2021-06-21T21:42:50.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Dec 13 09:59:13 2019 @author: orochi """ import numpy as np import csv from classifier_network import LinearNetwork from classifier_network import ReducedLinearNetwork import torch import torch.nn as nn import torch.nn.functional as F import matplotlib....
31.577778
138
0.655407
676
4,263
3.989645
0.323965
0.007416
0.020393
0.031517
0.068224
0.034112
0
0
0
0
0
0.034808
0.204785
4,263
135
139
31.577778
0.760767
0.289937
0
0.122222
0
0
0.082581
0.076563
0
0
0
0
0
1
0.022222
false
0
0.088889
0
0.133333
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
d8693362b05650b4c1b31dbc4438c95cc27c7e7b
3,052
py
Python
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
1
2021-06-19T16:08:52.000Z
2021-06-19T16:08:52.000Z
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
null
null
null
src/app.py
davidkowalk/Kalaha
2b00fce97f5559c0527ec1c8addf3c488c46fccf
[ "MIT" ]
null
null
null
from Board import Board, code_to_list from sys import argv def print_layout(): print("╔══╦══╦══╦══╦══╦══╦══╦══╗") print("║ ║ 6║ 5║ 4║ 3║ 2║ 1║ ║ <- Player 2") print("║ ╠══╬══╬══╬══╬══╬══╣ ║") print("║ ║ 1║ 2║ 3║ 4║ 5║ 6║ ║ <- Player 1") print("╚══╩══╩══╩══╩══╩══╩══╩══╝") def lpad(str, length...
28.259259
97
0.449541
450
3,052
3.393333
0.264444
0.068762
0.11002
0.05239
0.090373
0.083824
0.083824
0.083824
0.083824
0.083824
0
0.047059
0.331586
3,052
107
98
28.523364
0.614216
0.071756
0
0.05814
0
0
0.265039
0.079972
0
0
0
0
0
1
0.069767
false
0
0.023256
0
0.127907
0.267442
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
d8709d89acee40ccaac332ee9c01a0773827a0af
499
py
Python
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
2
2021-05-28T03:41:39.000Z
2021-10-19T16:53:16.000Z
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
null
null
null
python/arrays/0048-rotate-image.py
karolinyoliveira/leetcode-ebbinghaus-practice
5149e06f1c187b87e280fd58541c11d8ab8626d3
[ "MIT" ]
null
null
null
from typing import List def rotate(matrix: List[List[int]]) -> None: for layer in range(len(matrix) // 2): first = layer last = len(matrix) - layer - 1 for i in range(first, last): offset = i - first top = matrix[first][i] matrix[first][i] = matrix[last -...
35.642857
70
0.541082
64
499
4.21875
0.328125
0.185185
0.088889
0.133333
0.325926
0.192593
0
0
0
0
0
0.005882
0.318637
499
13
71
38.384615
0.788235
0
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.083333
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
d87268d377955c1f6efb88d6ef67f9df1b77d9d4
6,279
py
Python
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
py-src/helper/img_transform.py
gabeoh/CarND-P01-LaneLines
5a35a7698f5a2efeff70d5537fedae366c1e51a0
[ "MIT" ]
null
null
null
import numpy as np import matplotlib.pyplot as plt import cv2 import math def grayscale(img): """Applies the Grayscale transform This will return an image with only one color channel but NOTE: to see the returned image as grayscale (assuming your grayscaled image is called 'gray') you should call ...
38.521472
104
0.672241
992
6,279
4.118952
0.25504
0.017621
0.010768
0.010768
0.21488
0.174743
0.111601
0.09349
0.077827
0.063632
0
0.023372
0.236821
6,279
162
105
38.759259
0.829299
0.47842
0
0.125
0
0
0
0
0
0
0
0
0.015625
1
0.140625
false
0.015625
0.0625
0
0.3125
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
d8794c7745220a34124f93774d760cb2a2e49b5f
1,581
py
Python
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
src/prepare_train_valid.py
partham16/demo_classification
d756ab150a1913c220f1048eda552483e88c01c1
[ "MIT" ]
null
null
null
from typing import List, Tuple import h2o import pandas as pd from sklearn.model_selection import train_test_split from .config import Config def get_train_valid(df: pd.DataFrame) -> Tuple[pd.DataFrame]: """Get train - valid - test""" full_train_df, test_df = train_test_split( df, test_size=...
28.745455
73
0.674889
226
1,581
4.486726
0.247788
0.069034
0.065089
0.04142
0.110454
0.061144
0.061144
0.061144
0.061144
0
0
0.013699
0.215054
1,581
54
74
29.277778
0.803384
0.056926
0
0
0
0
0
0
0
0
0
0
0
1
0.073171
false
0
0.121951
0
0.268293
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
d87c366bf70803b5e5a62ba14bdd8953959d7029
419
py
Python
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
generate-text-replacements.py
clrcrl/tech-name-fixer
4d5ab36aa28a1e2912e02c5ea33a3f8af8d0e77b
[ "Apache-2.0" ]
null
null
null
import csv import plistlib as plist SOURCE_FILE = "tech-names.csv" snippets_array = [] with open(SOURCE_FILE, "rt") as csvfile: reader = csv.DictReader(csvfile) firstline = True for row in reader: snippets_array.append( {"phrase": row["correct_spelling"], "shortcut": row["common_missp...
23.277778
86
0.661098
54
419
5
0.592593
0.144444
0
0
0
0
0
0
0
0
0
0
0.210024
419
17
87
24.647059
0.81571
0
0
0
0
0
0.195704
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
d87dbe03e3d17cde827cd192191f97d4763ebc9a
4,524
py
Python
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
2
2022-01-26T18:02:51.000Z
2022-02-15T01:36:39.000Z
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
null
null
null
cjax/continuation/_perturbed_arc_len_continuation.py
harsh306/continuation-jax
c1452604558764df9cd4770130b60035eea5c5b3
[ "MIT" ]
1
2022-02-15T01:37:50.000Z
2022-02-15T01:37:50.000Z
from cjax.continuation._arc_len_continuation import PseudoArcLenContinuation from cjax.continuation.states.state_variables import StateWriter from cjax.continuation.methods.predictor.secant_predictor import SecantPredictor from jax.experimental.optimizers import l2_norm from cjax.continuation.methods.corrector.perturbe...
36.192
100
0.600133
462
4,524
5.541126
0.279221
0.042188
0.049219
0.044531
0.225391
0.179297
0.156641
0.156641
0.142188
0.046875
0
0.003924
0.32405
4,524
124
101
36.483871
0.833224
0.070292
0
0.247619
0
0
0.029525
0.011522
0
0
0
0.008065
0
1
0.019048
false
0
0.085714
0
0.114286
0.028571
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
d87e5d6a6c3a210e859a21073e4fe4f95aee7c09
1,345
py
Python
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
dependencytrack/bom.py
dmuse89/dependency-track-python
462d4a2b7ba5b1b1b0d0ea9066057872f5bd74bb
[ "CNRI-Python" ]
null
null
null
# SPDX-License-Identifier: GPL-2.0+ from .exceptions import DependencyTrackApiError class Bom: """Class dedicated to all "bom" related endpoints""" def upload_bom( self, file_name, project_id=None, project_name=None, project_version=None, auto_create=False, ...
29.888889
67
0.613383
142
1,345
5.591549
0.521127
0.11461
0.149874
0.06801
0.078086
0
0
0
0
0
0
0.005314
0.300372
1,345
44
68
30.568182
0.83847
0.186617
0
0
0
0
0.074856
0
0
0
0
0
0
1
0.034483
false
0
0.034483
0
0.137931
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
d87f974916d2df6ce93e6643e73f56fff02c54aa
1,895
py
Python
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
33
2019-12-02T23:29:47.000Z
2022-03-24T02:40:36.000Z
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
39
2020-01-15T19:28:12.000Z
2021-11-26T05:13:29.000Z
Contributors/IanDavis/ValidSentence.py
FergusDevelopmentLLC/Coders-Workshop
3513bd5f79eaa85b4d2a648c5f343a224842325d
[ "MIT" ]
49
2019-12-02T23:29:53.000Z
2022-03-03T01:11:37.000Z
"""By Ian Davis for Bootcampers Collective Coders Workshop on 2/19/20""" """ This program evaluates a string and determines if it its a real sentence """ validString = 'This is a valid sentence.' twoSpaces = "This isn't valid" firstCharacterNotCapitalized = 'not capitalized' containsProperNoun = 'Only the firs charac...
31.065574
80
0.624802
206
1,895
5.708738
0.393204
0.030612
0.017007
0.02381
0.079932
0.052721
0.052721
0
0
0
0
0.006461
0.264908
1,895
60
81
31.583333
0.83776
0.034829
0
0.255319
0
0
0.236948
0
0
0
0
0
0
1
0.106383
false
0.021277
0
0
0.276596
0.191489
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
d87fb2cf3d6c3c5eaead08973e95a1d7f892f80b
1,269
py
Python
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
2
2021-07-07T13:21:11.000Z
2021-09-24T06:57:16.000Z
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
null
null
null
MirrorMirror/theme/TextBox.py
RubanSeven/MirrorMirror
47c7a1f458f87c536d068fcf249625f426920cc3
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- """ @author: RubanSeven @project: MirrorMirror """ from PyQt5.QtWidgets import * class CodeTextEdit(QTextEdit): def __init__(self, *__args): super().__init__(*__args) self.setStyleSheet( """ QTextEdit { background-color: ...
24.403846
51
0.408983
98
1,269
4.928571
0.438776
0.082816
0.068323
0.093168
0.362319
0.279503
0.279503
0.279503
0.279503
0
0
0.085329
0.473601
1,269
51
52
24.882353
0.637725
0.050433
0
0.5625
0
0
0
0
0
0
0
0
0
1
0.1875
false
0
0.0625
0
0.4375
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
d8819ce394b5003e6d8376f1810f650835d534ec
1,429
py
Python
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
012getLncRNA_PMID.py
qiufengdiewu/LPInsider
92fcc2ad9e05cb634c4e3f1accd1220b984a027d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: UTF-8 -*- from Bio import Entrez import MySQLdb as mySQLDB Entrez.email="A.N.Other@example.com" def savePID(): returnCount=100000#每次可以最大返回十万条数据。 handle=Entrez.esearch(db="pubmed",term="lncRNA",RetMax=returnCount) ''' 这些参数值目前是够用的,但是不能保证以后一定可以。如果运行错误,则参照官网给出的...
34.02381
222
0.590623
163
1,429
5.104294
0.638037
0.028846
0.019231
0.028846
0
0
0
0
0
0
0
0.032474
0.26732
1,429
42
223
34.02381
0.762178
0.13366
0
0
0
0
0.171364
0.023675
0
0
0
0
0
1
0.04
false
0.04
0.08
0
0.12
0.16
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
d8836803dce845ee19f76d28736903e2e7b8d35b
11,867
py
Python
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
7
2018-10-02T01:32:23.000Z
2020-10-08T00:42:35.000Z
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
47
2018-10-02T05:41:13.000Z
2021-02-02T21:50:31.000Z
scripts/generate_schema/worldbank/generate_worldbank_schema.py
liangmuxin/datamart
495a21588db39c9ad239409208bec701dca07f30
[ "MIT" ]
19
2018-10-01T22:27:20.000Z
2019-02-28T18:59:53.000Z
import os from argparse import ArgumentParser import requests import json import traceback LOCATIONS = [ "Aruba", "Afghanistan", "Africa", "Angola", "Albania", "Andorra", "Andean Region", "Arab World", "United Arab Emirates", "Argentina", "Armenia", "American Samoa", "Antigua and Barbuda", ...
27.469907
110
0.605292
1,219
11,867
5.83347
0.400328
0.023907
0.038251
0.023625
0.259598
0.208128
0.166362
0.138096
0.088314
0.077064
0
0.002908
0.24665
11,867
431
111
27.533643
0.792506
0
0
0.01699
0
0.002427
0.574703
0.003623
0
0
0
0
0
1
0.004854
false
0.002427
0.012136
0
0.019417
0.004854
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
d88413a8c6025245623ff27f30f5b74590dab51a
1,546
py
Python
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
22
2016-10-19T15:02:22.000Z
2021-12-23T12:40:37.000Z
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
4
2017-04-16T03:15:48.000Z
2020-10-28T11:36:35.000Z
examples/lineplots/devol.py
aengelke/z-plot
63e4e6656355b608487a3e4df5da13b7fad9b108
[ "BSD-3-Clause" ]
11
2017-01-18T02:41:57.000Z
2021-12-28T02:21:30.000Z
#! /usr/bin/env python from zplot import * import sys import sys ctype = 'eps' if len(sys.argv) < 2 else sys.argv[1] c = canvas(ctype, title='devol', dimensions=['400','340']) t = table(file='devol.data') t.addcolumns(['month','year']) t.update(set='month = substr(date, 1, 2)') t.update(set='year = substr(date, 4, 2...
35.136364
80
0.666882
229
1,546
4.502183
0.558952
0.043647
0.037827
0.052376
0.106693
0.050436
0
0
0
0
0
0.048084
0.139069
1,546
43
81
35.953488
0.726521
0.062096
0
0.064516
0
0.032258
0.147099
0
0
0
0
0
0
1
0
false
0
0.096774
0
0.096774
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
d88462214366d2d59a4aa76c3e990d20a7d331bd
4,208
py
Python
DLplatform/aggregating/geometric_median.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
5
2020-05-05T08:54:26.000Z
2021-02-20T07:36:28.000Z
DLplatform/aggregating/geometric_median.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
1
2020-11-16T14:15:53.000Z
2020-11-16T14:15:53.000Z
DLplatform/aggregating/geometric_median.py
zagazao/dlplatform
ab32af8f89cfec4b478203bd5d13ce2d30e89ba7
[ "Apache-2.0" ]
4
2020-05-05T08:56:57.000Z
2020-07-22T11:28:52.000Z
from DLplatform.aggregating import Aggregator from DLplatform.parameters import Parameters from typing import List import numpy as np from scipy.spatial.distance import cdist, euclidean class GeometricMedian(Aggregator): ''' Provides a method to calculate an averaged model from n individual models (using the ...
31.402985
122
0.481939
466
4,208
4.293991
0.362661
0.02099
0.011994
0.011994
0
0
0
0
0
0
0
0.017642
0.407319
4,208
133
123
31.639098
0.784683
0.512595
0
0.040816
0
0
0.017094
0
0
0
0
0.007519
0
1
0.102041
false
0
0.102041
0.020408
0.346939
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
d88610b31c7b5f25ebda49d4c2f961d36945c83b
4,670
py
Python
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
3
2019-07-25T22:41:38.000Z
2021-04-06T04:37:05.000Z
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
2
2019-07-13T15:36:06.000Z
2021-06-01T23:56:50.000Z
stock_price_predictor/app.py
abdullahtk/Stock-Market-Predictor
1e97d5d2c647912447b9db8eb548e52c0ad1fe8a
[ "MIT" ]
1
2019-07-25T22:42:03.000Z
2019-07-25T22:42:03.000Z
from flask import Flask from flask import render_template, request, jsonify from source import StockPredictor as sp from source import ModelsParametersTunning as mpt from datetime import datetime import json from plotly.graph_objs import Scatter from pandas.tseries.offsets import BDay app = Flask(__name__) def insta...
33.357143
162
0.601927
520
4,670
5.107692
0.294231
0.033133
0.042169
0.02259
0.190136
0.111069
0.056476
0.056476
0.056476
0.056476
0
0.005341
0.278373
4,670
139
163
33.597122
0.782789
0.009422
0
0.194915
0
0
0.130651
0.020333
0
0
0
0
0
1
0.025424
false
0
0.127119
0
0.169492
0.016949
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
d88917a3681f54f58e6f0236e05d538383e5fe13
1,100
py
Python
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2018-10-01T10:59:55.000Z
2018-10-01T10:59:55.000Z
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
null
null
null
src/unittest/python/modules/processing/filter_lt_tests.py
FHNW-CyberCaptain/CyberCaptain
07c989190e997353fbf57eb7a386947d6ab8ffd5
[ "MIT" ]
1
2021-11-01T00:09:00.000Z
2021-11-01T00:09:00.000Z
import unittest from cybercaptain.processing.filter import processing_filter class ProcessingFilterLTTest(unittest.TestCase): """ Test the filters for LT """ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) arguments = {'src': '.', 'filterby':...
32.352941
85
0.579091
116
1,100
5.37069
0.37931
0.179775
0.128411
0.141252
0.433387
0.327448
0.260032
0
0
0
0
0.019133
0.287273
1,100
33
86
33.333333
0.77551
0.142727
0
0
0
0
0.135535
0
0
0
0
0
0.25
1
0.1875
false
0
0.125
0
0.375
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
d889b29c8ab7230fa4821ccc373f7fe3a359f78f
6,129
py
Python
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2022-01-01T11:06:22.000Z
2022-02-19T03:19:18.000Z
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
null
null
null
src/data/clean.py
samatix/ml-asset-managers
27c9c0b3f67fd0350e80c5fb2729e64a13dccbb8
[ "Apache-2.0" ]
2
2020-08-15T05:38:49.000Z
2022-03-05T07:31:11.000Z
import logging import numpy as np import pandas as pd from sklearn.neighbors.kde import KernelDensity from scipy.optimize import minimize from src.utils import cov2corr class MarcenkoPastur: def __init__(self, points=1000): """ Marcenko-Pastur :param points: :type points: int ...
33.309783
79
0.586229
697
6,129
5.037303
0.249641
0.050128
0.037596
0.005127
0.134435
0.096554
0.066078
0
0
0
0
0.014068
0.315712
6,129
183
80
33.491803
0.823081
0.195791
0
0.089109
0
0
0.048579
0
0
0
0
0
0
1
0.108911
false
0
0.059406
0
0.287129
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
d88d295ec1717480689aae0ec07ffd4cad0afd39
530
py
Python
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
2
2019-12-04T19:43:51.000Z
2020-07-06T09:56:04.000Z
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
11
2021-02-02T22:34:37.000Z
2022-02-10T20:20:50.000Z
saleor/core/emails.py
cleobuck/krolocosmetics
4ae97601a18461323606d6e22673bb38cbaa6272
[ "CC-BY-4.0" ]
null
null
null
from django.contrib.sites.models import Site from django.templatetags.static import static from ..core.utils import build_absolute_uri def get_email_context(): site: Site = Site.objects.get_current() logo_url = build_absolute_uri(static("images/logo-light.jpg")) send_email_kwargs = {"from_email": site.se...
31.176471
72
0.732075
71
530
5.15493
0.464789
0.057377
0.087432
0
0
0
0
0
0
0
0
0
0.167925
530
16
73
33.125
0.829932
0
0
0
0
0
0.101887
0.039623
0
0
0
0
0
1
0.076923
false
0
0.230769
0
0.384615
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
d88fb1b1d25ac7b6d5954cd96c458c9d471fb3b6
4,109
py
Python
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
1
2021-01-05T17:29:02.000Z
2021-01-05T17:29:02.000Z
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
null
null
null
inb/tests/test_linkedin/test_driver.py
JoshiAyush/LinkedIn-Automator
6341867fb9bb974ecfe388d90d1860e9c85a3b3c
[ "MIT" ]
null
null
null
# MIT License # # Copyright (c) 2019 Creative Commons # # 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, me...
40.683168
127
0.748601
531
4,109
5.595104
0.369115
0.037025
0.02861
0.022215
0.088522
0.051161
0
0
0
0
0
0.004755
0.181066
4,109
100
128
41.09
0.878158
0.324166
0
0.035714
0
0
0.040015
0.030837
0
0
0
0
0.071429
1
0.071429
false
0
0.196429
0
0.285714
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
d895cb920f81b7b33316df8ee7c07eb1ad364352
3,037
py
Python
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
11
2019-08-22T12:47:40.000Z
2022-01-28T16:07:29.000Z
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
14
2019-09-02T08:24:55.000Z
2022-02-14T11:40:43.000Z
example-tests/example_Grid.py
Indomerun/pyHiChi
fdceb238dfed6433ee350d5c593ca5e2cd4fbd2b
[ "MIT" ]
9
2019-07-31T13:25:20.000Z
2022-01-28T16:07:45.000Z
import sys sys.path.append("../bin/") import pyHiChi as hichi import numpy as np def valueE(x, y, z): E = hichi.Vector3d(0, np.cos(z), 0) #sin(x) return E def valueEx(x, y, z): Ex = 0 return Ex def valueEy(x, y, z): Ey = np.cos(z) return Ey def valueEz(x, y, z): Ez = 0 return Ez de...
24.103175
94
0.622654
592
3,037
3.113176
0.179054
0.040695
0.024417
0.026044
0.322843
0.212154
0.212154
0.212154
0.212154
0.212154
0
0.079541
0.167929
3,037
125
95
24.296
0.649782
0.003293
0
0
0
0
0.028118
0
0
0
0
0
0
1
0.086022
false
0
0.043011
0
0.215054
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