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
68bfdc92a00fb5b201a60c596f05590bb0c70edb
6,281
py
Python
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
File Man/note.py
splimter/Univ
f28723756616ffd212d1c59d5547240c694a2d24
[ "MIT" ]
null
null
null
import os import helpers as H # Cette function va afficher le menu def menu(): print("1- Ajouter un Etudiant") print("2- Ajouter un Matieres") print("3- Ajouter un Note") print("4- afficher la Moyenne d'un Etudiant") print("5- Modifie le numIns d'un Etudiant") print("6- suprimer une N...
27.915556
109
0.532559
802
6,281
4.154613
0.169576
0.059424
0.048019
0.023409
0.485294
0.382053
0.352341
0.304622
0.254502
0.254502
0
0.009651
0.307117
6,281
224
110
28.040179
0.755974
0.078968
0
0.275449
0
0
0.199098
0.017313
0
0
0
0
0
1
0.05988
false
0
0.011976
0
0.209581
0.113772
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
68c4d76626da0bce8c26017b492f398cab45c0ab
18,560
py
Python
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
3
2019-06-18T15:28:09.000Z
2019-07-11T07:31:45.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
2
2019-07-11T14:03:25.000Z
2021-02-08T16:14:04.000Z
GZP_GTO_QGIS/INSTALLATION/GeoTaskOrganizer/gto_point.py
msgis/swwat-gzp-template
080afbe9d49fb34ed60ba45654383d9cfca01e24
[ "MIT" ]
1
2019-06-12T11:07:37.000Z
2019-06-12T11:07:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import sys # QDoubleValidator needs QValidator in qgis 3.4! from PyQt5.QtCore import Qt, QLocale, pyqtSignal from PyQt5.QtGui import QDoubleValidator from PyQt5.QtWidgets import QWidget, QLabel, QLineEdit, QHBoxLayout, QToolButton, QToolBar, QComboBox, QDoubleSpinBox from PyQ...
41.061947
154
0.563524
1,926
18,560
5.36189
0.185358
0.027888
0.022369
0.033117
0.333495
0.275007
0.214777
0.1376
0.128498
0.086085
0
0.006297
0.332651
18,560
451
155
41.152993
0.827466
0.073707
0
0.32967
0
0
0.034593
0
0
0
0
0
0
1
0.06044
false
0.002747
0.024725
0
0.090659
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
68c9488a495919a38f2ff870419c8d832b14221b
11,909
py
Python
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
76
2022-02-11T12:04:49.000Z
2022-03-30T10:43:59.000Z
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
1
2022-03-22T12:57:43.000Z
2022-03-22T12:57:43.000Z
model/loss.py
arthurlirui/MVSDF
0b1014682e9b5cd5a92fea715d26ebc9845da4bf
[ "MIT" ]
4
2022-02-13T11:47:50.000Z
2022-03-02T12:07:21.000Z
from numpy.lib.function_base import diff import torch from torch import nn from torch.nn import functional as F from itertools import accumulate import numpy as np import os import importlib from utils.my_utils import carving_t, carving_t2, FeatExt, get_in_range, idx_cam2img, idx_world2cam, normalize_for_grid...
54.131818
237
0.591485
1,611
11,909
4.080074
0.130975
0.047163
0.038795
0.045489
0.60429
0.557584
0.493838
0.475734
0.465845
0.440286
0
0.028853
0.275338
11,909
219
238
54.378995
0.732793
0.065497
0
0.431953
0
0.011834
0.049185
0.005987
0
0
0
0.004566
0
1
0.047337
false
0
0.065089
0
0.183432
0.029586
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
68c9ea4c15db64ff1e75a845e1e422b9fc6a1a9f
682
py
Python
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
list-users/list-users.py
nl-hugo/power-bi-snippets
5d63f88526b8dc4241dd26301b4b8fd72096c822
[ "MIT" ]
null
null
null
import argparse from bs4 import BeautifulSoup def list_users(file_name): with open(file_name, 'r', encoding='utf-8') as f: soup = BeautifulSoup(f.read(), 'html.parser') for user in soup.find_all('li', class_='accessListData'): user_name = user.find(class_='username').string ...
27.28
75
0.64956
89
682
4.730337
0.550562
0.042755
0.057007
0
0
0
0
0
0
0
0
0.003731
0.214076
682
24
76
28.416667
0.781716
0
0
0
0
0
0.184751
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
68cf170ee8230ba31ec966d1a0949d9a8190f908
6,614
py
Python
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
9
2019-02-10T20:23:21.000Z
2021-03-04T04:15:49.000Z
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
1
2020-05-07T05:55:24.000Z
2020-05-07T05:55:24.000Z
module.py
Afvanjaffer/Image-translation-
a7b379ddd1fb3fa21a6f0a41fdb1ed986b5c68d7
[ "MIT" ]
4
2018-07-14T08:03:27.000Z
2020-07-29T09:36:54.000Z
import tensorflow as tf def conv2d_layer( inputs, filters, kernel_size = [4, 4], strides = [2, 2], padding = 'same', activation = None, kernel_initializer = tf.truncated_normal_initializer(stddev = 0.02), name = None): conv_layer = tf.layers.conv2d( inputs = inputs, ...
42.127389
171
0.638948
868
6,614
4.624424
0.142857
0.071251
0.076233
0.063029
0.598904
0.474838
0.358495
0.343797
0.336572
0.315147
0
0.044559
0.239946
6,614
156
172
42.397436
0.753929
0.03039
0
0.394495
0
0
0.057335
0
0
0
0
0
0.018349
1
0.055046
false
0
0.009174
0
0.119266
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
68d55b5aefd614b22b142233553491d7448b67bf
40,735
py
Python
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
src/core/train.py
spencerpomme/GSPNet
ff165de95ec0f258ba444ff343d18d812a066b8f
[ "MIT" ]
null
null
null
''' Copyright <2019> <COPYRIGHT Pingcheng Zhang> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ...
33.037307
139
0.59455
5,086
40,735
4.597719
0.118364
0.01655
0.01129
0.015053
0.608621
0.577831
0.528182
0.496493
0.476437
0.452917
0
0.011208
0.301289
40,735
1,232
140
33.064123
0.810379
0.28489
0
0.542113
0
0.004594
0.124277
0.021215
0
0
0
0
0.003063
1
0.022971
false
0
0.032159
0
0.070444
0.059724
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
68d59a01d4c210fcbd52841f20fd474a440205a5
7,727
py
Python
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
tests/time_tests.py
ankpradh/parallel-composition-RE
8e1d1df8a27951445fd1d80e89febba89d275fdf
[ "MIT" ]
null
null
null
import sys import time import random sys.path.append("..") from pympler import asizeof from test_automata import * # For computing average runtimes def avg_tests(runs, test, string, test_num): test_avg_runs = runs test_Ptime = 0 test_Ctime = 0 if test.__name__ in ["test4", "test5"]: test_Sti...
30.662698
109
0.613045
1,083
7,727
4.270545
0.144044
0.072649
0.042378
0.034595
0.663784
0.595459
0.524541
0.471784
0.428541
0.390703
0
0.063358
0.236055
7,727
251
110
30.784861
0.720142
0.1531
0
0.557471
0
0
0.089834
0.016124
0
0
0
0
0
1
0.04023
false
0
0.028736
0
0.103448
0.109195
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
68d6234592f2e3a24cd47ab684d14a6a36f999f3
4,815
py
Python
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
63
2021-12-22T10:17:18.000Z
2022-03-31T22:03:06.000Z
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
150
2021-11-04T20:16:14.000Z
2022-03-31T23:00:21.000Z
language/evm/hardhat-examples/compile_move.py
lxfind/move
2e7c37edada44436805e047dd26724a26c07635a
[ "Apache-2.0" ]
63
2021-11-04T19:32:56.000Z
2022-03-30T16:28:41.000Z
#!/usr/local/bin/python3 # This is a script to compile Move source code into artifacts that can be used for testing. # Copy this to the root of your hardhat project to use it. # # Note: this is a temporary solution that will be phased out once we implement the Move plugin. # # Move code should be stored within the `co...
27.672414
132
0.620561
623
4,815
4.624398
0.292135
0.059007
0.037487
0.01562
0.137452
0.091635
0.06942
0.052759
0.052759
0.027074
0
0.008741
0.239668
4,815
173
133
27.83237
0.778203
0.146833
0
0.142857
0
0.008929
0.151188
0.011517
0
0
0.00147
0
0
1
0.080357
false
0
0.0625
0
0.205357
0.116071
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
68d99f26e2d322b5f1410136dc8d32fdc852ce2d
4,497
py
Python
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
3
2019-08-08T09:09:35.000Z
2020-12-15T18:04:17.000Z
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
null
null
null
tuiuiu/tuiuiuredirects/views.py
caputomarcos/tuiuiu.io
d8fb57cf95487e7fe1454b2130ef18acc916da46
[ "BSD-3-Clause" ]
1
2017-09-09T20:10:40.000Z
2017-09-09T20:10:40.000Z
from __future__ import absolute_import, unicode_literals from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404, redirect, render from django.utils.translation import ugettext as _ from django.views.decorators.vary import vary_on_headers from tuiuiu.utils.pagination import paginat...
35.690476
103
0.681565
483
4,497
6.165631
0.26087
0.033244
0.031901
0.057085
0.401276
0.390866
0.370047
0.314305
0.314305
0.243116
0
0.003368
0.207694
4,497
125
104
35.976
0.832445
0.022682
0
0.416667
0
0
0.153759
0.045786
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.270833
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
68d9c2874c4137a2cc2a81b3b6c8979882134cbf
2,639
py
Python
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
fd_lib/feature_engineering.py
fdavidsen/Personal-Data-Science-Projects
4167744295c96e3f984830b6203428ea41b111e7
[ "MIT" ]
null
null
null
from itertools import combinations from sklearn.base import BaseEstimator from sklearn.base import TransformerMixin class BestPair: ''' Find out the feature pairs with the highest correlation (positive and negative). ''' def __init__(self, X, y, how='product'): self.X = X self.y = y ...
33.405063
102
0.530125
341
2,639
3.958944
0.240469
0.075556
0.053333
0.035556
0.282222
0.20963
0.185185
0.133333
0.133333
0.133333
0
0.009101
0.333839
2,639
79
103
33.405063
0.758817
0.050777
0
0.076923
0
0
0.058186
0
0
0
0
0
0
1
0.192308
false
0
0.057692
0.057692
0.384615
0.019231
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
68da0b7e3b7b6e70fde041111bd397e4346b2c04
3,778
py
Python
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
2
2020-05-07T22:34:16.000Z
2020-09-03T20:30:37.000Z
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
null
null
null
benchmarks/cocompilation_benchmarks.py
SanggunLee/edgetpu
d3cf166783265f475c1ddba5883e150ee84f7bfe
[ "Apache-2.0" ]
1
2020-01-08T05:55:58.000Z
2020-01-08T05:55:58.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
34.981481
91
0.736633
531
3,778
5.043315
0.387947
0.036968
0.029126
0.037341
0.084018
0.060866
0.019417
0
0
0
0
0.014626
0.167549
3,778
107
92
35.308411
0.836884
0.454209
0
0
0
0
0.088367
0.031952
0
0
0
0
0.022222
1
0.044444
false
0
0.133333
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
68da25d88380998dc70170f5b963f169ab2d9195
11,849
py
Python
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
pygl.py
sidd5sci/game-engin
8aa580ae79083c6420e004720ea91650029caf2c
[ "Apache-2.0" ]
null
null
null
#Import OpenGL and GLU. Don't import GLUT because it is ancient, broken, inflexible, and poorly #designed--and we aren't using it. from OpenGL.GL import * from OpenGL.GLU import * #Import PyGame. We'll mostly just use this to make a window. Also import all the local #declarations (e.g. pygame.KEYDOWN, etc.), so that...
54.856481
100
0.720314
1,923
11,849
4.382735
0.279771
0.013764
0.01317
0.011865
0.159587
0.14701
0.084124
0.048291
0.038206
0.022544
0
0.022412
0.197907
11,849
215
101
55.111628
0.864373
0.703941
0
0.091954
0
0
0.024823
0
0
0
0
0
0
1
0.034483
false
0
0.068966
0
0.114943
0.011494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
68e1f5cc56b5a7a07848391ac060d809aa03eb20
6,827
py
Python
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gpt_gnn.py
zhangdan0602/cogdl
35a338f29066e4b1a5d7f46217f09ebceaf13106
[ "MIT" ]
null
null
null
from typing import Any, Union, Type, Optional from cogdl.models import register_model from cogdl.models.supervised_model import ( SupervisedHomogeneousNodeClassificationModel, SupervisedHeterogeneousNodeClassificationModel, ) from cogdl.trainers.gpt_gnn_trainer import ( GPT_GNNHomogeneousTrainer, GPT_...
32.509524
107
0.535228
721
6,827
4.871012
0.278779
0.056378
0.101651
0.030752
0.220387
0.198747
0.177677
0.09795
0.089408
0.045558
0
0.006113
0.35301
6,827
209
108
32.665072
0.788997
0.342464
0
0.305556
0
0
0.251699
0.006562
0
0
0
0
0
1
0.055556
false
0.027778
0.037037
0.018519
0.12037
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
68edc1beb9d2bae550d0e6eb145fb0caa55200b1
2,663
py
Python
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
hadoopCluster/hadoop.py
anycode-inc/TerminalUI-CGI
8db7d19d25b0de6d599b9de8a4172d0668f4d688
[ "MIT" ]
null
null
null
#!/usr/bin/python3 from jinja2 import Environment, FileSystemLoader import subprocess import cgi print("content-type: text/html") print() mydata = cgi.FieldStorage() namenode_ip = mydata.getvalue("namenode_ip") namenode_port = mydata.getvalue("namenode_port") namenode_directory = mydata.getvalue("namenode_directory...
35.506667
96
0.733383
298
2,663
6.473154
0.244966
0.029031
0.02281
0.054432
0.411612
0.346293
0.327631
0.288232
0.273199
0.273199
0
0.002163
0.131806
2,663
74
97
35.986486
0.83218
0.006384
0
0.262295
0
0
0.220038
0.084688
0
0
0
0
0
1
0.114754
false
0
0.04918
0
0.180328
0.04918
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
68f2c194115b15d0b37b208d612c93ce0b1eb749
1,418
py
Python
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
gs15_py/Inversion.py
Jajajzhh/Blockchain_EncryptionKasumi
604352a804433e482d754ab928aaacfd70cada04
[ "MIT" ]
null
null
null
#!/usr/bin/env python #Examples of irreductible polynomes 16 degree #x^16 + x^9 + x^8 + x^7 + x^6 + x^4 + x^3 + x^2 + 1 #x^16 + x^12 + x^3 + x^1 + 1 #x^16 + x^12 + x^7 + x^2 + 1 from sympy.polys.domains import ZZ from sympy.polys.galoistools import gf_gcdex, gf_strip def gf_inv(a): # irriducible polynomial ...
23.245902
111
0.504937
261
1,418
2.666667
0.295019
0.022989
0.022989
0.011494
0.12931
0.022989
0
0
0
0
0
0.112169
0.333568
1,418
60
112
23.633333
0.624339
0.245416
0
0.088889
0
0
0.007992
0
0
0
0.010989
0
0
1
0.111111
false
0
0.044444
0
0.266667
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
68f4f86882cc9b12d44b29372c5ed00acbd058e5
2,469
py
Python
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
pic2formula/polyline.py
s-col/pic2formula
0e254f98fca8dd22b5136d018cd33413baba85d5
[ "MIT" ]
null
null
null
import math import numpy as np from scipy import interpolate class Polyline(list): @staticmethod def _2Dcheck(value): if len(value) != 2: raise ValueError("Value must be 2-D.") def __init__(self): super().__init__() def __setitem__(self, key, value): ...
26.548387
63
0.45565
334
2,469
3.272455
0.260479
0.038426
0.008234
0.038426
0.247027
0.203111
0.164684
0.164684
0.164684
0.164684
0
0.032952
0.397732
2,469
92
64
26.836957
0.702085
0.002835
0
0.133333
0
0
0.029838
0
0
0
0
0
0
1
0.16
false
0
0.04
0.026667
0.306667
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
68fe5357f2994a0a75698eb8a8e7824b9a9f7c44
2,592
py
Python
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
season_crawler.py
charmoky/f1_crawler
c4edec5d0a19283690347fc9ed21c454e5db2d4b
[ "MIT" ]
null
null
null
import requests from bs4 import BeautifulSoup import lxml import re import ast import urllib.parse as urllib class season_crawler(): def __init__(self, url): self.url = url self.hostname = urllib.urlparse(url).hostname self.source = requests.get(url).text self.soup = BeautifulSoup(...
28.483516
101
0.486497
305
2,592
4.019672
0.255738
0.057096
0.039152
0.04894
0.500816
0.500816
0.474715
0.4323
0.4323
0.4323
0
0.013201
0.415509
2,592
90
102
28.8
0.79604
0.050154
0
0.470588
0
0
0.055397
0
0
0
0
0
0
1
0.044118
false
0
0.088235
0
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
68ffd02431b608770d9cb6427c85ad56bdc7189e
1,921
py
Python
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
2
2021-05-05T16:06:38.000Z
2021-05-05T19:21:30.000Z
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
7
2021-06-22T21:36:29.000Z
2022-01-21T19:15:58.000Z
cogs/clock/cog.py
DenverCoder1/weasley-chess-bot
70d6250cf2eea4faceacf3a809f38d8cc6f19059
[ "MIT" ]
null
null
null
import config import discord from discord.errors import HTTPException from discord.ext import commands from discord.ext.tasks import loop from .clock import ( clock_embed, get_or_create_message, new_channel_name, get_embed_title, ) class Clock(commands.Cog, name="🕒 Clock"): def __init__(self, bo...
32.559322
84
0.645497
247
1,921
4.777328
0.327935
0.065254
0.027966
0.045763
0.09322
0.09322
0.09322
0.09322
0.09322
0.09322
0
0.000711
0.26809
1,921
58
85
33.12069
0.837838
0.150442
0
0.052632
0
0
0.034
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.263158
0.052632
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
ec006c8af6686f4d727533bc4bdf28b8f92b3527
6,989
py
Python
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
Ellie_Lambda_Introductory_Convo.py
dodobirb/Project_2_ETF_Lex_RoboAdvisor
f8e1a5143e74c0dc6f8bef1ed6d4b4fbd6c66739
[ "MIT" ]
null
null
null
### Required Libraries ### from datetime import datetime from dateutil.relativedelta import relativedelta from botocore.vendored import requests ### Functionality Helper Functions ### def parse_float(n): """ Securely converts a non-numeric value to float. """ try: return float(n) ...
31.624434
126
0.593075
740
6,989
5.45
0.312162
0.067692
0.027771
0.041656
0.216464
0.159683
0.147781
0.104637
0.086784
0.051079
0
0.008166
0.31664
6,989
220
127
31.768182
0.836265
0.201889
0
0.219512
0
0.01626
0.191939
0
0
0
0
0
0
1
0.081301
false
0
0.02439
0
0.243902
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
ec01276c37a7b31604c880dcb9890eab8f123340
876
py
Python
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
6
2021-09-02T18:50:40.000Z
2022-02-27T11:06:31.000Z
Algoritma/radixSort.py
SyamsulAlterra/Alta
13e8c185e91414e3f46e5d20f39370f8e58e7cd0
[ "MIT" ]
null
null
null
arr=[123,321,487,908,123,465,987,46,762,12389] def findMax(arr): Max=None for num in arr: if Max==None or num>Max: Max=num return Max def checkDigit(num): i=0 remainder=0 while (remainder!=num): i+=1 remainder=num%(10**i) return i def digit(i,num): ...
21.365854
57
0.515982
114
876
3.964912
0.333333
0.026549
0.039823
0.048673
0
0
0
0
0
0
0
0.078073
0.312785
876
40
58
21.9
0.672757
0
0
0.058824
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0
0.029412
0.235294
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec029f2e7581e96d907379e0c7b77a55feafa39c
577
py
Python
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
2
2021-12-31T22:14:31.000Z
2021-12-31T22:14:34.000Z
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
users/urls.py
pauloaugusto-dmf/blog_django
7374e85dd4f0622aefbbb99d27ceb85f19fd1cd8
[ "MIT" ]
null
null
null
from django.urls import path from .views import ( UserLoginView, UserLogoutView, UserSignupView, UserUpdateView, UserDeleteView, UserProfileView, ) app_name = "user" urlpatterns = [ path("signup", UserSignupView.as_view(), name="signup"), path("update", UserUpdateView.as_view(), name=...
26.227273
63
0.679376
60
577
6.416667
0.4
0.093506
0.155844
0
0
0
0
0
0
0
0
0
0.157712
577
21
64
27.47619
0.792181
0
0
0
0
0
0.131716
0
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
ec03beeeb8e83dd9401f7dcd95618bf9eb96ca5c
7,232
py
Python
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
3
2017-12-09T16:16:18.000Z
2020-05-05T12:01:53.000Z
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
utils/image_processing.py
ebritsyn/obormot
de05707d0a9b7a8de813ee8e1104dea02caeb236
[ "MIT" ]
null
null
null
import io import cv2 import numpy as np import tensorflow as tf from PIL import Image from keras.models import model_from_json import dlib class Model: """This class represents the base model of the whole project. The model predicts if the face on the picture is smiling or not. The model and its weights a...
33.953052
86
0.552683
971
7,232
3.955716
0.183316
0.040614
0.007029
0.004166
0.145795
0.102317
0.063525
0.049987
0.023952
0.023952
0
0.029914
0.343612
7,232
212
87
34.113208
0.779229
0.215431
0
0.093023
0
0
0.016849
0.016083
0
0
0
0
0
1
0.085271
false
0
0.054264
0
0.232558
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
ec05ae5f172a76ae27b1aab78fa3fe888df7828e
30,898
py
Python
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
null
null
null
antipetros_discordbot/cogs/general_cogs/image_manipulation_cog.py
official-antistasi-community/Antipetros_Discord_Bot
1b5c8b61c09e61cdff671e259f0478d343a50c8d
[ "MIT" ]
1
2021-02-12T01:10:51.000Z
2021-02-12T01:10:51.000Z
# region [Imports] # * Standard Library Imports ----------------------------------------------------------------------------> import os import asyncio from io import BytesIO from pathlib import Path from datetime import datetime from tempfile import TemporaryDirectory # * Third Party Imports ------------------------...
49.122417
214
0.643472
3,746
30,898
5.022424
0.139349
0.043585
0.015148
0.020198
0.422505
0.347348
0.323057
0.288668
0.274158
0.246784
0
0.009874
0.242831
30,898
628
215
49.200637
0.794315
0.073144
0
0.280822
0
0.006849
0.092456
0.01625
0
0
0
0.003185
0
1
0.057078
false
0
0.052511
0.011416
0.212329
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
ec085bbbaef39f0640fc7171919973e59bcfe3fd
885
py
Python
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
exe84.py
henrique-alvaro/EXERCICIOS
dd2509a682009ee4a01f0ca346d960ab09cc284b
[ "MIT" ]
null
null
null
reserva = list() principal = list() maior = menor = 0 while True: reserva.append(str(input('Nome: '))) reserva.append(float(input('Peso: '))) if len(principal) == 0: maior = menor = reserva[1] else: if reserva[1] > maior: maior = reserva[1] if reserva[1] < menor: ...
26.818182
69
0.542373
126
885
3.809524
0.349206
0.083333
0.054167
0.05
0.183333
0.183333
0.116667
0.116667
0.116667
0.116667
0
0.021572
0.266667
885
32
70
27.65625
0.718028
0
0
0.1875
0
0
0.19096
0
0
0
0
0
0
1
0
false
0
0
0
0
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec09685680a3107d366ed078bdbf9404ece34bc4
1,560
py
Python
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-19T04:02:46.000Z
2022-01-19T04:02:46.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2021-11-19T07:21:48.000Z
2021-11-19T07:21:48.000Z
ws2122-lspm/Lib/site-packages/pm4py/algo/discovery/alpha/utils/endpoints.py
Malekhy/ws2122-lspm
e4dc8b801d12f862b8ef536a0f125f346f085a00
[ "MIT" ]
1
2022-01-14T17:15:38.000Z
2022-01-14T17:15:38.000Z
''' This file is part of PM4Py (More Info: https://pm4py.fit.fraunhofer.de). PM4Py is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any late...
24.761905
76
0.604487
218
1,560
4.252294
0.422018
0.118662
0.073355
0.061489
0.420712
0.36246
0.30205
0.222222
0.222222
0.222222
0
0.011029
0.302564
1,560
62
77
25.16129
0.840993
0.616026
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
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
ec0b058f553343a897e71eea532d993fcfa42a8b
926
py
Python
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,610
2020-10-01T14:14:53.000Z
2022-03-31T18:02:31.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
1,959
2020-09-30T20:22:42.000Z
2022-03-31T23:58:37.000Z
ground_truth_labeling_jobs/bring_your_own_model_for_sagemaker_labeling_workflows_with_active_learning/src/tests/test_add_record_id.py
jerrypeng7773/amazon-sagemaker-examples
c5ddecce1f739a345465b9a38b064983a129141d
[ "Apache-2.0" ]
2,052
2020-09-30T22:11:46.000Z
2022-03-31T23:02:51.000Z
import boto3 from Bootstrap.add_record_id import lambda_handler from moto import mock_s3 @mock_s3 def test_add_record_id(): manifest_content = b'{"source":"Fed revises guidelines sending stocks up."}\n{"source": "Review Guardians of the Galaxy"}' s3r = boto3.resource("s3", region_name="us-east-1") s3r.cre...
37.04
155
0.708423
125
926
5.04
0.416
0.095238
0.107937
0.15873
0.473016
0.473016
0.238095
0.133333
0
0
0
0.020151
0.142549
926
24
156
38.583333
0.7733
0
0
0
0
0.117647
0.426566
0.071274
0
0
0
0
0.117647
1
0.058824
false
0
0.176471
0
0.235294
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
ec0f9ff9cd997919f338a2ecbd614e9c94929507
828
py
Python
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
6
2021-04-26T16:12:48.000Z
2021-04-29T17:05:33.000Z
pages/homepage.py
kriss-u/selenium-python-framework
d4f6416de25c955861f6d8a099a780c702693b63
[ "MIT" ]
null
null
null
from selenium.webdriver.common.by import By from utilities import find_all_contains_text from utilities import find_one_present from utilities import wait class Homepage: def __init__(self, driver, base_url, timeout=10): self.driver = driver self.base_url = base_url self.wait = wait(drive...
30.666667
89
0.669082
112
828
4.714286
0.383929
0.113636
0.107955
0.087121
0.102273
0
0
0
0
0
0
0.003053
0.208937
828
26
90
31.846154
0.803053
0
0
0.1
0
0
0.103865
0.030193
0
0
0
0
0
1
0.2
false
0
0.2
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
ec12e98cc644839d7e6aaadb7ca7b24595f6ffa0
8,897
py
Python
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
main/page/foreign_transfer.py
keith-lewis100/pont-workbench
010716e115c47ca881645800befffcc97d07f638
[ "MIT" ]
null
null
null
#_*_ coding: UTF-8 _*_ from flask import request, redirect, render_template from application import app import wtforms import db import data_models import mailer import renderers import properties import views from role_types import RoleType import urls from . import grants from . import purchases STATE_REQUESTED =...
46.098446
112
0.725188
1,063
8,897
5.780809
0.171214
0.021155
0.037754
0.009764
0.237592
0.177543
0.109845
0.089504
0.046216
0.030269
0
0.000961
0.18096
8,897
192
113
46.338542
0.842185
0.00236
0
0.10303
0
0
0.063331
0.005973
0
0
0
0
0
1
0.072727
false
0
0.078788
0
0.254545
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
ec1403cf6f7b91861d5877a772a1b93da4045f15
2,332
py
Python
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
5
2022-03-21T12:39:01.000Z
2022-03-31T06:02:01.000Z
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
null
null
null
finite_element_networks/lightning/data/common.py
martenlienen/finite-element-networks
5e8f6ecc473d1e93ccf366fcc45a47b08492ffde
[ "MIT" ]
1
2022-03-26T02:58:58.000Z
2022-03-26T02:58:58.000Z
from dataclasses import dataclass from typing import Callable, Optional import numpy as np from scipy.spatial import Delaunay from ...data import TimeEncoder from ...domain import ( BoundaryAnglePredicate, CellPredicate, Domain, select_boundary_mesh_cells, ) @dataclass(frozen=True) class MeshConfig:...
27.435294
85
0.690823
300
2,332
5.283333
0.423333
0.030284
0.022713
0.029022
0
0
0
0
0
0
0
0.004425
0.2247
2,332
84
86
27.761905
0.872235
0.268868
0
0
0
0
0.00672
0
0
0
0
0
0.021277
1
0.085106
false
0
0.170213
0.06383
0.425532
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
ec15071df1bf9ea9d459a13a9ce32f102c847633
1,245
py
Python
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
DataProcess/community_detection.py
teamclouday/Mooner
ed7deed101e92b1d8f5ec47091cdbdadb2c1159c
[ "MIT" ]
null
null
null
import os import community import pandas as pd import networkx as nx graphdf = pd.read_csv(os.path.join("..", "NetworkData", "fetchcontent.csv")) G = nx.from_pandas_edgelist(graphdf) partition = community.best_partition(G) # following code comes from https://medium.com/@adityagandhi.7/network-analysis-and-community-...
36.617647
162
0.767871
176
1,245
5.255682
0.488636
0.058378
0.045405
0.054054
0.058378
0
0
0
0
0
0
0.009042
0.111647
1,245
34
163
36.617647
0.827306
0.268273
0
0
0
0
0.104741
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.045455
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
ec18386bf1e4f992e71d8f27e8056dac7297cb93
1,404
py
Python
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
getFileList.py
DoJing/hd3
124b1b169422898830d2cd602cf6e074f1238b6f
[ "BSD-3-Clause" ]
null
null
null
import os import cv2 def ListFilesToTxt(dir,file,wildcard,recursion): file_list=[] exts = wildcard.split(" ") files = os.listdir(dir) for name in files: fullname=os.path.join(dir,name) if(os.path.isdir(fullname) & recursion): ListFilesToTxt(fullname,file,wildcard,recursion) ...
29.87234
92
0.581909
178
1,404
4.539326
0.404494
0.089109
0.044554
0.066832
0.153465
0.056931
0.056931
0.056931
0
0
0
0.021912
0.2849
1,404
46
93
30.521739
0.782869
0.01567
0
0
0
0
0.094271
0.028281
0
0
0
0
0
1
0.05
false
0
0.05
0
0.1
0.025
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
ec18cd1695ba62deebb499631731dcc890f6543b
7,647
py
Python
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
20
2021-05-03T18:02:23.000Z
2022-03-12T12:01:04.000Z
Lib/site-packages/ginga/canvas/transform.py
fochoao/cpython
3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9
[ "bzip2-1.0.6", "0BSD" ]
null
null
null
# # transform.py -- coordinate transforms for Ginga # # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy as np from ginga import trcalc __all__ = ['TransformError', 'BaseTransform', 'ComposedTransform', 'CanvasWindowTransform', 'Cartes...
28.427509
78
0.613574
1,058
7,647
4.135161
0.169187
0.077714
0.0336
0.032914
0.465371
0.403886
0.383314
0.294857
0.221029
0.1712
0
0.003849
0.286518
7,647
268
79
28.533582
0.798021
0.212109
0
0.442177
0
0
0.059418
0.011473
0
0
0
0
0
1
0.190476
false
0.006803
0.013605
0.027211
0.394558
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
ec1e30101ec04ff986f4f441cf6da3dbede160cc
13,178
py
Python
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
8
2019-08-05T20:28:45.000Z
2021-09-02T09:20:59.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
Bhaskers-Blu-Org2/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
3
2019-07-31T10:12:52.000Z
2021-09-13T12:01:51.000Z
src/mvnfeed_modules/mvnfeed-cli-transfer/mvnfeed/cli/transfer/transfer.py
easterapps/mvnfeed-cli
cf4b43e300edee8f5bc64de9bcf1faf924fa2737
[ "MIT" ]
11
2019-07-31T12:58:14.000Z
2021-09-13T12:50:21.000Z
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
39.573574
113
0.635074
1,493
13,178
5.427328
0.179504
0.035542
0.029619
0.026657
0.429224
0.365173
0.346168
0.338887
0.291127
0.269036
0
0.00522
0.258613
13,178
332
114
39.692771
0.824156
0.164744
0
0.366812
0
0
0.127828
0
0
0
0
0
0
1
0.048035
false
0
0.043668
0.017467
0.144105
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
ec1ee81ce412cde25b50543e502ef0e9f4204892
16,523
py
Python
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/models/intervention.py
uwcirg/true_nth_usa_portal
e2434731aed86f1c43f15d428dde8ffc28ac7e5f
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/models/intervention.py
uwcirg/truenth-portal
459a0d157982f010175c50b9cccd860a61790370
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""Intervention Module""" from flask import current_app from sqlalchemy import and_ from sqlalchemy.dialects.postgresql import ENUM from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.orm.exc import NoResultFound from werkzeug.exceptions import BadRequest from ..database import db from ..dict_tools impor...
38.159353
79
0.651516
2,025
16,523
5.163457
0.204938
0.013389
0.018171
0.014728
0.294855
0.252295
0.215092
0.190704
0.158569
0.14365
0
0.00264
0.266417
16,523
432
80
38.247685
0.859995
0.29468
0
0.256098
0
0
0.152304
0.011864
0
0
0
0
0
1
0.089431
false
0
0.04878
0.00813
0.349594
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
ec1f0874784570485a2cb6d70a6752e769ab9710
3,156
py
Python
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
371
2018-03-15T00:26:23.000Z
2022-03-30T14:32:48.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
14
2018-03-23T08:03:02.000Z
2022-02-06T18:39:05.000Z
utils/extract_features.py
ArjitJ/tbd-nets
8e93ecad54489706ec3249c9ca5d345d6866e1ba
[ "MIT" ]
81
2018-03-15T00:54:46.000Z
2021-12-07T16:09:58.000Z
# DISTRIBUTION STATEMENT A. Approved for public release: distribution unlimited. # # This material is based upon work supported by the Assistant Secretary of Defense for Research and # Engineering under Air Force Contract No. FA8721-05-C-0002 and/or FA8702-15-D-0001. Any opinions, # findings, conclusions or recommendat...
36.697674
100
0.695501
468
3,156
4.653846
0.455128
0.018365
0.016529
0.02112
0.080808
0.050505
0.050505
0.050505
0.050505
0
0
0.063669
0.203739
3,156
85
101
37.129412
0.802626
0.630228
0
0.086957
0
0
0.016441
0
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.347826
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
ec1feb9807faf84631629db4a3a466c150882506
14,080
py
Python
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
ai_solutions/maze_solver.py
zerobits01/AI-Project
68d5e7a8b2c826644683a08e916f961f878d218f
[ "MIT" ]
null
null
null
import sys import collections from queue import PriorityQueue from itertools import count from ai_solutions.graph_node import GraphNode class MazeSolver: ''' this class is for solving the maze question using three algorithms: - BFS - IDS - A* ''' def __init__(self, s...
34.594595
100
0.464063
1,488
14,080
4.283602
0.147177
0.060402
0.015061
0.027612
0.512708
0.478506
0.451365
0.387041
0.376373
0.360998
0
0.019719
0.438139
14,080
406
101
34.679803
0.785994
0.144815
0
0.562232
0
0
0.027379
0.008259
0
0
0
0
0
1
0.038627
false
0
0.021459
0
0.184549
0.150215
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
ec212b4bab89667f0bd94d6a9a7ed05d39f3098c
4,998
py
Python
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
107
2020-09-07T01:06:37.000Z
2022-03-31T04:16:51.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
9
2020-09-09T06:49:03.000Z
2022-03-25T18:19:57.000Z
examples/development/simulate_policy_with_state.py
zhanghc12/mopo
f6db90f55ca6becbc34988b88404b289699637da
[ "MIT" ]
29
2020-09-10T16:26:33.000Z
2022-03-16T08:15:41.000Z
import argparse from distutils.util import strtobool import json import os import pickle import numpy as np import tensorflow as tf import pdb from softlearning.environments.utils import get_environment_from_params from softlearning.policies.utils import get_policy_from_variant # from softlearning.samplers import rol...
31.2375
88
0.622649
571
4,998
5.238179
0.285464
0.033434
0.028419
0.016048
0.013373
0
0
0
0
0
0
0.003012
0.269308
4,998
159
89
31.433962
0.815991
0.02401
0
0.065041
0
0
0.088798
0
0
0
0
0
0.00813
1
0.03252
false
0.00813
0.105691
0
0.170732
0.04065
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
ec21a2f2b80af73693b16e92ab450451f7f0d1b4
2,566
py
Python
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-12-17T14:18:00.000Z
2019-12-17T14:18:00.000Z
test_mask_rcnn_bdd.py
sxhxliang/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-29T04:05:51.000Z
2019-04-29T04:05:51.000Z
test_mask_rcnn_bdd.py
AaronLeong/challenagerAI-gluon-cv
a0018adad887e9045d3d356b8eb16372323888bf
[ "Apache-2.0" ]
1
2019-04-28T11:53:40.000Z
2019-04-28T11:53:40.000Z
from matplotlib import pyplot as plt from gluoncv import model_zoo, data, utils import mxnet as mx import numpy as np from PIL import Image import json from tqdm import tqdm # epoch = 1 save_path = '/data1/datasets/bdd100k/testB_result/' test_path = '/data1/datasets/bdd100k/images/100k/test2018/' test_json = [] CLAS...
33.763158
111
0.622759
368
2,566
4.127717
0.415761
0.02765
0.029625
0.0316
0.026333
0.026333
0
0
0
0
0
0.039634
0.233048
2,566
75
112
34.213333
0.732215
0.064302
0
0
0
0
0.145668
0.084973
0
0
0
0
0
1
0.019608
false
0
0.137255
0
0.156863
0.019608
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
ec21accf9670823d9e86649f1391298f34bb5e19
300
py
Python
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
3
2018-03-11T14:10:59.000Z
2019-01-23T12:34:27.000Z
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
boj/1110.py
byeonggukgong/algorithm
d9283fdbcfe4966cd4de3e394d9fd3aa33d533a8
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- if __name__ == '__main__': input = int(input()) output = 0 temp = input while True: temp = temp % 10 * 10 + (int(temp / 10) + temp % 10) % 10 output += 1 if input == temp: break print(output)
18.75
65
0.43
33
300
3.666667
0.515152
0.14876
0.132231
0
0
0
0
0
0
0
0
0.076471
0.433333
300
15
66
20
0.635294
0.07
0
0
0
0
0.028881
0
0
0
0
0
0
1
0
false
0
0
0
0
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
ec21d79eb0f508eab1e4d4b450e489d5d2153f80
1,222
py
Python
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
data_load.py
IdanAzuri/tensorflow-generative-model-collections
321f45f6dc0e7d4321b35a32e2eb7e864c9e0546
[ "Apache-2.0" ]
null
null
null
from __future__ import division from __future__ import print_function from __future__ import absolute_import import scipy.misc import glob import scipy import utils import tensorflow as tf """ param """ epoch = 50 batch_size = 64 lr = 0.0002 z_dim = 100 n_critic = 5 gpu_id = 3 ''' data ''' # you should prepare yo...
22.62963
117
0.739771
203
1,222
4.17734
0.472906
0.04717
0.056604
0.028302
0
0
0
0
0
0
0
0.048113
0.13257
1,222
53
118
23.056604
0.751887
0.107201
0
0.0625
0
0
0.035849
0.029245
0
0
0
0
0
1
0.03125
false
0
0.25
0
0.3125
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec2b8f23f26b48259c53767971ede949f67de8b4
3,221
py
Python
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
97
2018-06-26T13:02:55.000Z
2022-03-26T21:03:13.000Z
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
524
2018-11-09T12:00:08.000Z
2022-03-31T17:00:13.000Z
xcube/core/gen2/local/writer.py
bcdev/xcube
9d275ef3baef8fbcea5c1fbbfb84c3d0164aecd3
[ "MIT" ]
15
2019-07-09T08:46:03.000Z
2022-02-07T18:47:34.000Z
# The MIT License (MIT) # Copyright (c) 2021 by the xcube development team and contributors # # 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...
43.527027
81
0.671531
408
3,221
5.127451
0.387255
0.080306
0.031071
0.025813
0.086998
0.029637
0
0
0
0
0
0.002983
0.271344
3,221
73
82
44.123288
0.888368
0.368519
0
0.043478
0
0
0.008454
0
0
0
0
0
0
1
0.043478
false
0
0.195652
0
0.282609
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
ec2f222af58da2bc64e5b28bba59ebdceae5e124
4,148
py
Python
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
33
2019-12-05T15:20:26.000Z
2022-03-27T17:53:57.000Z
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
12
2020-03-23T08:54:32.000Z
2021-11-07T14:33:04.000Z
tests/test_subspaces.py
ndem0/ATHENA
87825ad95de539ac5e816a19922e9d615fabd5b8
[ "MIT" ]
16
2019-12-05T14:10:57.000Z
2021-07-30T14:12:10.000Z
from unittest import TestCase import numpy as np from athena.subspaces import Subspaces class TestUtils(TestCase): def test_init_W1(self): ss = Subspaces(dim=1) self.assertIsNone(ss.W1) def test_init_W2(self): ss = Subspaces(dim=1) self.assertIsNone(ss.W2) def test_init_e...
32.40625
72
0.5892
527
4,148
4.493359
0.163188
0.059122
0.118243
0.095017
0.668497
0.613598
0.577703
0.547297
0.500422
0.447635
0
0.066939
0.290501
4,148
127
73
32.661417
0.737683
0
0
0.490566
0
0
0.011331
0.005786
0
0
0
0
0.188679
1
0.188679
false
0
0.028302
0
0.226415
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
ec300133e36d8c7c6858a83eca5e80abaa22a5dc
1,131
py
Python
premium/backend/src/baserow_premium/api/license/urls.py
ashishdhngr/baserow
b098678d2165eb7c42930ee24dc6753a3cb520c3
[ "MIT" ]
1
2022-01-24T15:12:02.000Z
2022-01-24T15:12:02.000Z
premium/backend/src/baserow_premium/api/license/urls.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
premium/backend/src/baserow_premium/api/license/urls.py
rasata/baserow
c6e1d7842c53f801e1c96b49f1377da2a06afaa9
[ "MIT" ]
null
null
null
from django.conf.urls import re_path from .views import ( AdminLicensesView, AdminLicenseView, AdminLicenseFillSeatsView, AdminRemoveAllUsersFromLicenseView, AdminLicenseUserView, AdminLicenseLookupUsersView, AdminCheckLicense, ) app_name = "baserow_premium.api.license" urlpatterns = [ ...
25.133333
75
0.591512
121
1,131
5.347107
0.322314
0.074189
0.075734
0.074189
0.126739
0.126739
0.126739
0.05255
0
0
0
0.015964
0.22458
1,131
44
76
25.704545
0.721779
0
0
0.25
0
0
0.223696
0.158267
0
0
0
0
0
1
0
false
0
0.05
0
0.05
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
ec330b8bd3eee04a448cd277aee3a50bec98e49d
2,052
py
Python
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
2
2022-03-16T10:18:38.000Z
2022-03-16T13:08:51.000Z
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
1
2022-03-16T12:52:28.000Z
2022-03-16T13:08:30.000Z
redirect_server/main.py
SantaSpeen/gitflic
14c68092e238d6731863f9db29b304a9fad3e61c
[ "MIT" ]
4
2022-03-16T09:33:05.000Z
2022-03-30T05:46:58.000Z
""" This is redirect server for https://oauth.gitflic.ru/oauth/authorize Base URL: https://gitflic.santaspeen.ru/ Author: @SantaSpeen License: MIT """ import json import random from string import ascii_letters, digits from flask import Flask, request, redirect, abort app = Flask("gitflic oauth redirec...
28.109589
107
0.615984
267
2,052
4.636704
0.393258
0.051696
0.042003
0.055735
0.164782
0.164782
0.164782
0.164782
0.164782
0.164782
0
0.040198
0.211988
2,052
72
108
28.5
0.725417
0.07846
0
0.25
0
0
0.230852
0.026781
0
0
0
0
0
1
0.090909
false
0
0.090909
0.022727
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
ec344b7aa9b7b7dc268010d8de19cfb167034b6e
5,241
py
Python
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
1
2020-10-14T00:06:54.000Z
2020-10-14T00:06:54.000Z
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
null
null
null
applied_python/applied_python/lib/python2.7/site-packages/ansible/modules/extras/packaging/language/cpanm.py
mith1979/ansible_automation
013dfa67c6d91720b787fadb21de574b6e023a26
[ "Apache-2.0" ]
2
2015-08-06T07:45:48.000Z
2017-01-04T17:47:16.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2012, Franck Cuny <franck@lumberjaph.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the L...
33.170886
126
0.672582
727
5,241
4.766162
0.314993
0.037518
0.034632
0.02886
0.2557
0.180952
0.121212
0.084271
0.065224
0.065224
0
0.006836
0.21847
5,241
157
127
33.382166
0.839111
0.163518
0
0.185841
0
0.035398
0.495186
0.039202
0
0
0
0
0
1
0.026549
false
0
0.00885
0
0.061947
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
ec34fcd27c4d0849f4617b2ff48d291c0d3e7793
5,877
py
Python
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
python/pong.py
rajszym/Pong
ddf6e3a9853ce9d3487636f32b408677b4487210
[ "MIT" ]
null
null
null
import os, sys, pygame White = (0xFF, 0xFF, 0xFF) Red = (0xFF, 0x00, 0x00) Yellow = (0xFF, 0xFF, 0x00) Green = (0x00, 0xFF, 0x00) Blue = (0x00, 0x00, 0xFF) Black = (0x00, 0x00, 0x00) BKG = Black class Player(pygame.Rect): def __init__(self): pygame.Rect.__init__(self, (0, 0), PlayerSize) self.center...
26.835616
75
0.652714
889
5,877
4.247469
0.152981
0.046081
0.03178
0.034428
0.476695
0.431939
0.392214
0.351695
0.337924
0.302436
0
0.030277
0.207589
5,877
218
76
26.958716
0.780545
0
0
0.25
0
0
0.011741
0
0
0
0.012251
0
0
1
0.083333
false
0
0.005952
0
0.113095
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
ec375bc4d8ef16784bec0fbac23a1ea72eb34608
13,406
py
Python
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
RL-snake/main.py
Yashprime1/RL--Snake
9eb1a6306bad83c263f2fec7752d2d772860990c
[ "MIT" ]
null
null
null
import pygame import random import random import itertools import json import os import matplotlib.pyplot as plt from IPython import display plt.ion() def plot(scores, mean_scores,save=False): display.clear_output(wait=True) display.display(plt.gcf()) plt.clf() plt.title('Training...') plt.xlabel...
31.84323
292
0.635313
1,926
13,406
4.15161
0.117342
0.083917
0.015758
0.015008
0.544772
0.458854
0.415083
0.395573
0.358304
0.347549
0
0.017829
0.23855
13,406
420
293
31.919048
0.765478
0.046546
0
0.365559
0
0
0.069256
0.007249
0
0
0
0
0
1
0.030211
false
0.003021
0.024169
0
0.072508
0.033233
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
ec39ff5313fd7c3fd2b71acde83c9cf8579b9481
4,999
py
Python
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
backend/boards/models.py
xelam11/TaskPlanner
c1e940d2a9babba7721c0f2d261e1c7df9c48581
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from users.models import CustomUser class BoardManager(models.Manager): def create_board(self, author, **kwargs): current_user = author board = Board.objects.create(author=current_user, **kwargs) ParticipantInBoard.objects.create(board=board, ...
34.475862
77
0.468894
395
4,999
5.736709
0.313924
0.097087
0.03707
0.055605
0.207855
0.160635
0.150927
0.123124
0.102383
0.051192
0
0.010152
0.44829
4,999
144
78
34.715278
0.811458
0
0
0.201681
0
0
0.112823
0.004601
0
0
0
0
0
1
0.05042
false
0
0.016807
0.042017
0.336134
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
ec3a1ba3d6ddeb0aa249439a8c2888cd61f0d04f
1,605
py
Python
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
null
null
null
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
4
2021-08-31T18:27:25.000Z
2021-09-17T20:26:43.000Z
extractcondo.py
mattyschell/geodatabase-buildings-condoetl
b9be05f749d3c1d7c7dec2f86bbc8776141a93bf
[ "CC0-1.0" ]
null
null
null
import os import logging import time import pathlib import condo def main(sourcesdeconn ,outputdir): sourcecondo = condo.Condo() sourcecondo.extracttofile('DOF_TAXMAP.Condo' ,outputdir) return sourcecondo.countcondos() if __name__ == '__main__'...
25.887097
87
0.545794
167
1,605
5.143713
0.54491
0.027939
0.034924
0.044237
0.116414
0
0
0
0
0
0
0.006783
0.357009
1,605
62
88
25.887097
0.825581
0.11215
0
0.108108
0
0
0.173362
0
0
0
0
0
0
1
0.027027
false
0
0.135135
0
0.189189
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
ec3b0f1dfb39b25fc236995951ab1bc52cc30f8b
690
py
Python
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
MarketData/testMKup.py
yirencaifu/pyWindMongoDB
df1bf3d0bfe6872a5d18fa2f72beccafd7c93b73
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Sep 27 08:11:48 2014 @author: space_000 """ from scipy.io import loadmat from WindPy import w import pymongo as mg from wsiTools import findDate from mgWsi import upiter d=loadmat('D:\FieldSHSZ') Field=d['Field'].tolist() stride=100 numF=range(len(Field))[::stride] dt=load...
20.294118
124
0.678261
116
690
4.025862
0.62931
0.034261
0
0
0
0
0
0
0
0
0
0.065327
0.134783
690
33
125
20.909091
0.716918
0.113043
0
0
0
0
0.157285
0.043046
0
0
0
0
0
1
0
false
0
0.238095
0
0.238095
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
ec3ed91b0547d338c06ce42617025e071787d68a
4,585
py
Python
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
23
2020-11-01T21:55:30.000Z
2021-12-05T14:03:05.000Z
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
25
2020-11-25T23:24:23.000Z
2022-03-30T04:40:45.000Z
dokdo/api/beta_3d_plot.py
sbslee/dokdo
a528a830b3347c39e1dc415b0f3e2c6ad60b0a1d
[ "MIT" ]
7
2020-11-27T06:46:47.000Z
2021-09-25T03:26:07.000Z
from . import common import pandas as pd import matplotlib.pyplot as plt from skbio.stats.ordination import OrdinationResults from qiime2 import Artifact def beta_3d_plot( artifact, metadata=None, hue=None, azim=-60, elev=30, s=80, ax=None, figsize=None, hue_order=None ): """ Create a 3D scatter plot ...
32.062937
114
0.532606
533
4,585
4.470919
0.35272
0.0235
0.025178
0.018884
0.153588
0.118338
0.118338
0.118338
0.074696
0
0
0.027069
0.299019
4,585
142
115
32.288732
0.714375
0.615921
0
0.097561
0
0
0.077295
0
0
0
0
0
0
1
0.02439
false
0
0.121951
0
0.170732
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
ec3edfbe3bdf65ebc6cecba5e84ff7e63361940c
9,682
py
Python
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
2
2021-10-02T19:56:32.000Z
2021-10-02T21:31:26.000Z
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
null
null
null
Human-Falling-Detect-Tracks/Actionsrecognition/Models.py
mathemusician/IncidenceReporting
d1cb747ecdbad641276981133a78813f878c89f3
[ "MIT" ]
1
2021-10-02T21:46:08.000Z
2021-10-02T21:46:08.000Z
### Reference from: https://github.com/yysijie/st-gcn/tree/master/net import torch import torch.nn as nn import torch.nn.functional as F import numpy as np from Actionsrecognition.Utils import Graph class GraphConvolution(nn.Module): """The basic module for applying a graph convolution. Args: - in_c...
37.527132
92
0.575088
1,272
9,682
4.224057
0.153302
0.072585
0.030709
0.022148
0.480179
0.444444
0.38526
0.359948
0.30616
0.287921
0
0.021045
0.307994
9,682
257
93
37.673152
0.780896
0.417682
0
0.215827
0
0
0.004327
0
0
0
0
0
0.014388
1
0.057554
false
0
0.100719
0
0.215827
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
ec3fe1d1b9136cf779530748aa16a309021ed5cb
4,572
py
Python
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
3
2021-11-03T07:30:16.000Z
2021-12-18T16:26:14.000Z
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
null
null
null
baselines_pharmaco_nontrainable.py
francescobarbara/idad
7931daeec5ae7db0c212d0b13f3c13d4784ecfdb
[ "MIT" ]
3
2022-01-31T10:21:38.000Z
2022-03-04T23:56:58.000Z
import os import math import argparse from tqdm import tqdm import pandas as pd import torch import torch.nn as nn import pyro import mlflow from pharmacokinetic import Pharmacokinetic from experiment_tools.pyro_tools import auto_seed from experiment_tools.output_utils import get_mlflow_meta from estimators.mi import...
33.617647
88
0.667323
556
4,572
5.196043
0.289568
0.024922
0.044306
0.06369
0.222568
0.149533
0.097612
0
0
0
0
0.012518
0.23119
4,572
135
89
33.866667
0.809388
0.032152
0
0.052632
0
0
0.091733
0.029219
0
0
0
0
0
1
0.008772
false
0
0.131579
0
0.149123
0.017544
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ec424d0484b0678464ceb56aac0631a916e0e37d
311
py
Python
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
bot/config.py
i-dubits/tg-bot-style
798b42b2892307a668cc676be216634e7a7cf7de
[ "BSD-3-Clause" ]
null
null
null
TOKEN = '' # your token should be here file_path_to_download = './images/' checkpoint_dir = './scripts/checkpoints/' nst_state_dict = './nst/vgg19-dcbb9e9d.pth' # you should download an vgg19 dict from here https://download.pytorch.org/models/vgg19-dcbb9e9d.pth
28.272727
144
0.639871
38
311
5.078947
0.710526
0.134715
0.165803
0
0
0
0
0
0
0
0
0.042735
0.247588
311
10
145
31.1
0.782051
0.398714
0
0
0
0
0.298913
0.25
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
ec43f38ce7e8616b6ecbb84b8e45c133aaf66327
2,849
py
Python
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
blog/projectCode.py
iloveyougit/ylink2
a87d8fde79ab259012cd6486299fcf86e1afc740
[ "MIT" ]
null
null
null
from django.shortcuts import redirect from django.shortcuts import render from django.utils import timezone from .models import Post,views from django.shortcuts import render, get_object_or_404 from .forms import PostForm import youtube_dl from django.core.files import File from .models import FileSaver import codecs...
32.747126
100
0.531064
326
2,849
4.576687
0.355828
0.046917
0.038204
0.050268
0.176944
0.135389
0.135389
0.063003
0.063003
0.063003
0
0.014231
0.358722
2,849
86
101
33.127907
0.802408
0
0
0.210526
0
0
0.126711
0.028782
0
0
0
0
0
1
0.013158
false
0
0.210526
0
0.263158
0.092105
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
ec45f10d301fdd0d325a8177f688357eddd958d5
33,366
py
Python
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
1
2019-01-24T04:22:39.000Z
2019-01-24T04:22:39.000Z
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
reference_kernels/PetFinder Slow and Steady Feature Building.py
MarcusJones/kaggle_petfinder_adoption
2d745b48405f4d4211b523eae272b9169fcf9fa2
[ "MIT" ]
null
null
null
''' If you find this useful, please give a thumbs up! Thanks! - Claire & Alhan https://github.com/alhankeser/kaggle-petfinder ''' # External libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns # from sklearn.linear_model import LogisticRegression from sklearn.ensemb...
35.723769
102
0.543457
4,084
33,366
4.247307
0.132958
0.010089
0.016488
0.008648
0.252047
0.189669
0.151735
0.110861
0.086418
0.075695
0
0.013555
0.334472
33,366
933
103
35.762058
0.767585
0.100611
0
0.207989
0
0
0.061898
0.002229
0.002755
0
0
0.001072
0.002755
1
0.103306
false
0.008264
0.030303
0.00551
0.242424
0.015152
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
ec4649677b2490023b21a9d452d053eff7e18fef
58,219
py
Python
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
49
2020-09-12T13:04:40.000Z
2022-03-04T16:48:26.000Z
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
1
2021-03-12T03:14:31.000Z
2021-03-12T03:14:31.000Z
bin/backup.py
TechGeek01/BackDrop
9f72bcc4027df6bfa64b645cd6eb0e4148ae5557
[ "MIT" ]
1
2021-03-21T19:01:13.000Z
2021-03-21T19:01:13.000Z
from tkinter import messagebox import os import itertools from datetime import datetime import shutil import pickle from bin.fileutils import human_filesize, get_directory_size from bin.color import bcolor from bin.threadmanager import ThreadManager from bin.config import Config from bin.status import Status class Ba...
51.796263
279
0.571892
7,015
58,219
4.533571
0.073984
0.021633
0.010691
0.015596
0.550986
0.470019
0.410527
0.379744
0.354998
0.29145
0
0.002166
0.341727
58,219
1,123
280
51.842386
0.82768
0.20574
0
0.381503
0
0.00578
0.075469
0.00995
0
0
0
0.003562
0
1
0.018786
false
0.001445
0.015896
0
0.08237
0.00289
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
ec4668ea105fe43b89baef884539542d10b494a5
1,134
py
Python
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
From Another World/bullet.py
Grantlee11/From_Another_World_Pygame
1aa98162a458a1a4aacfbc9170eaa233db055e9e
[ "CC-BY-3.0" ]
null
null
null
import pygame from pygame.sprite import Sprite class Bullet(Sprite): """A CLASS TO MANAGE BULLETS FIRED FROM THE SHIP""" def __init__(self, ai_settings, screen, ship): """CREATE A BULLET OBJECT AT THE SHIP'S CURRENT POSITION""" super(Bullet, self).__init__() self.screen = screen ...
34.363636
90
0.638448
159
1,134
4.421384
0.314465
0.068279
0.091038
0.036984
0
0
0
0
0
0
0
0.004819
0.268078
1,134
33
91
34.363636
0.842169
0.295414
0
0
0
0
0
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0
0.352941
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
ec4d41b5339a13570027a14f5668646325d52607
1,648
py
Python
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
1
2016-09-29T22:39:31.000Z
2016-09-29T22:39:31.000Z
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
tcc_rpi/adafruit_mcp3008.py
MegaNo0body/tcc
469824a8afc1cf846793212d42f6c8c43ee4b0bf
[ "MIT" ]
null
null
null
import time import os import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) # read SPI data from MCP3008 chip, 8 possible adc's (0 thru 7) def readadc(adcnum, clockpin, mosipin, misopin, cspin): if ((adcnum > 7) or (adcnum < 0)): return -1 GPIO.output(cspin, True) GPIO.output(clockpin, False) # start clock low GPIO....
21.684211
66
0.695995
258
1,648
4.422481
0.434109
0.087642
0.078878
0.057844
0.113059
0.089395
0.089395
0.089395
0.089395
0
0
0.03386
0.193568
1,648
75
67
21.973333
0.82468
0.219053
0
0.2
0
0
0
0
0
0
0.008621
0
0
1
0.018182
false
0
0.054545
0
0.109091
0.018182
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
ec50387d2267d7e50a0c69f978fb2011b6de161c
1,720
py
Python
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
6
2019-08-05T07:37:52.000Z
2021-12-30T20:07:01.000Z
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
8
2019-10-25T11:07:03.000Z
2021-06-10T18:43:42.000Z
apps/poker/views/settings.py
deniskrumko/izyan-poker
ce70c9c8f761409adad289809e5220237b312407
[ "MIT" ]
1
2019-10-07T15:44:26.000Z
2019-10-07T15:44:26.000Z
from core.views import BaseView, LoginRequiredMixin from ..models import PokerMember, PokerRoom class SettingsView(LoginRequiredMixin, BaseView): template_name = 'settings.html' def get(self, request, token): """Handle GET request.""" if not self.member: return self.redirect('po...
29.655172
77
0.591279
199
1,720
4.994975
0.291457
0.070423
0.054326
0.069417
0.123742
0.123742
0.123742
0
0
0
0
0.002423
0.280233
1,720
57
78
30.175439
0.800485
0.050581
0
0.102564
0
0
0.057072
0
0
0
0
0
0
1
0.102564
false
0
0.051282
0
0.358974
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
ec58e48e50bae8cea63a104f2bb6e36683806f7e
954
py
Python
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
eureka/lib/models_c/py_func/fixipmapping.py
iancrossfield/Eureka
88b178d1b830c16915045b6387cf91955e0071e2
[ "MIT" ]
null
null
null
def fixipmapping(ipparams, posflux, etc = [], retbinflux = False, retbinstd = False): """ This function returns the fixed best-fit intra-pixel mapping. Parameters ---------- ipparams : tuple unused bestmip : 1D array, size = # of measurements Best-fit ip mapping ...
26.5
85
0.584906
97
954
5.752577
0.57732
0.09319
0.039427
0.046595
0.089606
0
0
0
0
0
0
0.019969
0.31761
954
35
86
27.257143
0.837174
0.549266
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0
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
ec5935855d0506591f11a5c9e27865542c48e32b
528
py
Python
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
38
2020-05-11T10:54:15.000Z
2022-03-30T13:19:09.000Z
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
45
2020-04-21T23:52:22.000Z
2022-02-19T20:29:27.000Z
tests/wrapper/testsuite.py
gimbas/openinput
9cbb4b22aebe46dfc33ae9c56b164baa6c1fe693
[ "MIT" ]
5
2020-08-29T02:10:42.000Z
2021-08-31T03:12:15.000Z
# SPDX-License-Identifier: MIT # SPDX-FileCopyrightText: 2021 Filipe Laíns <lains@riseup.net> from typing import List, Set import _testsuite import pages class Device(_testsuite.Device): def __init__( self, *, name: str, functions: Set[pages.Function], ) -> None: supe...
22
66
0.617424
61
528
5.081967
0.672131
0.045161
0
0
0
0
0
0
0
0
0
0.010363
0.268939
528
23
67
22.956522
0.792746
0.242424
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.2
0
0.4
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
6b57fc39f4fd2e01c5a6e624252774aacda18038
2,578
py
Python
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
samples/summarize-bot/dialogs/main_dialog.py
tsuwandy/botbuilder-community-python
e035a993cd3b0fd8c7b2ff1126c4e993d0c8efc3
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. """Main dialog. """ from botbuilder.dialogs import ( ComponentDialog, WaterfallDialog, WaterfallStepContext, DialogTurnResult, ) from botbuilder.dialogs.prompts import TextPrompt, PromptOptions from botbuilder....
39.661538
135
0.689294
274
2,578
6.244526
0.383212
0.083577
0.056108
0.051432
0.178843
0.178843
0.061952
0.061952
0
0
0
0
0.232351
2,578
64
136
40.28125
0.864578
0.121024
0
0.045455
0
0
0.012311
0
0
0
0
0
0
1
0.022727
false
0
0.136364
0
0.272727
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
6b5832f803883a22182b709c9785af4bb2e2a7ee
3,642
py
Python
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
handroll/composers/__init__.py
mblayman/handroll
42703cf5c969dccd0eb0715402ab84056ab65e22
[ "BSD-2-Clause" ]
null
null
null
# Copyright (c) 2014, Matt Layman import filecmp import os import shutil import warnings from pkg_resources import iter_entry_points from handroll import logger from handroll.i18n import _ class Composer(object): """Interface for all composers""" def compose(self, catalog, source_file, out_dir): "...
36.787879
78
0.643053
433
3,642
5.265589
0.374134
0.035088
0.038596
0.021053
0.111404
0.080702
0.032456
0.032456
0
0
0
0.003414
0.276222
3,642
98
79
37.163265
0.861533
0.375618
0
0.130435
0
0
0.08403
0.011606
0
0
0
0
0
1
0.108696
false
0
0.152174
0
0.391304
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
6b5b594a8ddc22e1ab3c6c0d7edc6fdc3c650bfc
14,791
py
Python
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
git_jdime.py
xai/jdime-utils
b5978a4572afbeaa3e4a9f72cfdccc0a14ee0cf8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # # Copyright (C) 2017 Olaf Lessenich import argparse import csv import os import sys import tempfile import time import signal import statistics import psutil from plumbum import colors from plumbum import local from plumbum.cmd import grep from plumbum.commands.processes import ProcessExecutio...
38.719895
114
0.423366
1,211
14,791
5.120562
0.235343
0.018868
0.035639
0.015481
0.219803
0.181906
0.156426
0.115143
0.090147
0.067731
0
0.006778
0.461362
14,791
381
115
38.821522
0.771558
0.011358
0
0.274854
0
0
0.118005
0.014845
0
0
0
0
0
1
0.020468
false
0.005848
0.04386
0
0.084795
0.020468
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
6b5ba9e7cc299303aeb45f7e67c51d27bbdf3426
3,863
py
Python
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
13
2020-02-13T20:55:32.000Z
2021-12-11T21:20:20.000Z
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
6
2020-05-19T21:06:20.000Z
2021-05-28T13:31:09.000Z
wagtail_automatic_redirects/signal_handlers.py
tbrlpld/wagtail-automatic-redirects
70ff04c7aeb64916f6827c4b84616a4c96d64a5e
[ "BSD-3-Clause" ]
4
2020-05-19T13:40:05.000Z
2021-03-03T21:36:48.000Z
from wagtail import VERSION as WAGTAIL_VERSION if WAGTAIL_VERSION >= (2, 0): from wagtail.core.signals import page_published from wagtail.contrib.redirects.models import Redirect if WAGTAIL_VERSION >= (2, 10): from wagtail.core.signals import post_page_move else: post_page_move = None ...
39.418367
79
0.683407
509
3,863
4.943026
0.265226
0.061208
0.041733
0.047695
0.294515
0.183625
0.101749
0.101749
0.050079
0.050079
0
0.001737
0.254983
3,863
97
80
39.824742
0.872481
0.31271
0
0.213115
0
0
0.044419
0
0
0
0
0
0
1
0.065574
false
0
0.098361
0
0.196721
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
6b5c6925b389b1b726a316fd95e267319608e4ab
1,377
py
Python
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
main.py
tegarimansyah/download-folder-manager
1c93e5a513107fd65ac74ec5afb5f203d739b75e
[ "MIT" ]
null
null
null
import os import glob import pprint from pathlib import Path # Setup pp = pprint.PrettyPrinter(indent=4) # All variable DOWNLOAD_FOLDER_PATH = os.path.join( # add trailing slash os.getenv('DOWNLOAD_FOLDER_PATH', f'{Path.home()}/Downloads/') # get from env ) def extract_file_data(filepath): _, file_extension ...
28.6875
97
0.69281
189
1,377
4.767196
0.37037
0.039956
0.048835
0.028857
0.037736
0
0
0
0
0
0
0.000902
0.194626
1,377
47
98
29.297872
0.811542
0.095861
0
0
0
0
0.070331
0.019402
0
0
0
0
0
1
0.090909
false
0
0.121212
0.030303
0.30303
0.121212
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
6b5c790a442c8ec83937f33d65197c87f874fb7f
4,295
py
Python
dane/handlers/RabbitMQHandler.py
CLARIAH/DANE-util
8a3edec69be18ac3bdee476b65059409af05c1bb
[ "Apache-2.0" ]
2
2020-11-24T11:03:14.000Z
2021-03-25T13:25:35.000Z
DANE/handlers/RabbitMQHandler.py
CLARIAH/DANE
c27b11d6fe6dc1da5097d90b32bcee64fdc27837
[ "Apache-2.0" ]
1
2019-12-11T19:46:20.000Z
2019-12-11T21:30:38.000Z
DANE/handlers/RabbitMQHandler.py
CLARIAH/DANE
c27b11d6fe6dc1da5097d90b32bcee64fdc27837
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-present, Netherlands Institute for Sound and Vision (Nanne van Noord) # # 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 # #...
37.675439
86
0.56298
431
4,295
5.531323
0.417633
0.041946
0.060403
0.03146
0.149748
0.072567
0.032299
0
0
0
0
0.00498
0.345518
4,295
113
87
38.00885
0.843116
0.164843
0
0.168675
0
0
0.074764
0
0
0
0
0
0
1
0.072289
false
0.012048
0.084337
0
0.168675
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
6b5f1427746108b86dc7e91797ab19861fcd228b
947
py
Python
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
src/Exercise_3/src/plots.py
djeada/Stanford-Machine-Learning
e6ef77939b7c581aebb5e9454669ad2dbb4f98f0
[ "MIT" ]
null
null
null
"""" The goal of this module is to implement all the visualization tools needed to graph the data and results of the computations for the Task 3 from the coding homeworks in the Machine Learning course on coursera.com. """ import numpy as np import matplotlib.pyplot as plt def display_random_grid(x: np.ndarray, n: i...
27.057143
100
0.658923
150
947
4.146667
0.573333
0.016077
0
0
0
0
0
0
0
0
0
0.026912
0.254488
947
34
101
27.852941
0.854108
0.575502
0
0
0
0
0.008798
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6b5fd207e69fc80407e2e9f565ac8467717e39c5
986
py
Python
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
1
2021-11-07T00:30:05.000Z
2021-11-07T00:30:05.000Z
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
dit/object_detection/adaptive_binarize.py
guotao0628/DeepNet
1ae74d8b44d715bf67c7d64a8efafff4b7c7937a
[ "MIT" ]
null
null
null
import argparse import os import cv2 import tqdm def convert(fn): # given a file name, convert it into binary and store at the same position img = cv2.imread(fn) gim = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) gim = cv2.adaptiveThreshold(gim, 255, cv2.ADAPTIVE_THRESH_GAUSSIAN_C, cv2.THRESH_BINARY, 45, 11)...
29
100
0.649087
131
986
4.717557
0.526718
0.029126
0.035599
0
0
0
0
0
0
0
0
0.033245
0.237323
986
33
101
29.878788
0.788564
0.073022
0
0.086957
0
0
0.077457
0.046243
0
0
0
0
0
1
0.043478
false
0
0.173913
0
0.217391
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
6b62a1b0dff941851becc78ed4922a7c9853d341
3,685
py
Python
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-05-14T06:37:14.000Z
2022-03-07T02:25:32.000Z
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
2
2017-10-08T19:41:18.000Z
2021-04-08T04:40:50.000Z
src/mode/modeopening3.py
JovialKnoll/monsters
15d969d0220fd003c2c28ae690f66633da370682
[ "MIT" ]
null
null
null
import random from collections import deque import pygame import constants import shared from monster import Monster from .modeintroduction0 import ModeIntroduction0 from .modeopening import ModeOpening class ModeOpening3(ModeOpening): GROUND_LEVEL = constants.SCREEN_SIZE[1] - 8 CENTER_TIME = 2500 TRANS...
34.439252
94
0.617096
432
3,685
5.050926
0.275463
0.08066
0.071494
0.058662
0.403758
0.362053
0.311641
0.252521
0.11549
0.076077
0
0.017169
0.288738
3,685
106
95
34.764151
0.815338
0.05943
0
0.186813
0
0
0.021965
0
0
0
0
0
0
1
0.054945
false
0
0.087912
0
0.230769
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
6b630feef7b82478ebf730437b4ab760f83635c1
1,651
py
Python
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
onadata/apps/logger/management/commands/sync_deleted_instances_fix.py
ubpd/kobocat
45906e07e8f05c30e3e26bab5570a8ab1ee264db
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python # vim: ai ts=4 sts=4 et sw=4 fileencoding=utf-8 # coding: utf-8 from __future__ import unicode_literals, print_function, division, absolute_import import json from django.conf import settings from django.core.management import BaseCommand from django.utils import timezone from django.utils.datep...
36.688889
82
0.63295
193
1,651
5.227979
0.518135
0.098117
0.044599
0
0
0
0
0
0
0
0
0.004195
0.278013
1,651
44
83
37.522727
0.842282
0.11387
0
0
0
0
0.105697
0
0
0
0
0
0
1
0.032258
false
0
0.258065
0
0.354839
0.032258
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
6b63ba2575b08e6d1979a05d2e94572ca308d8dd
1,149
py
Python
YOLO TESTS/grobotUtils.py
Lilly7777/GRobot---Server
d6261b72215ba0cdc281387c23427b04b2a9311d
[ "MIT" ]
null
null
null
YOLO TESTS/grobotUtils.py
Lilly7777/GRobot---Server
d6261b72215ba0cdc281387c23427b04b2a9311d
[ "MIT" ]
null
null
null
YOLO TESTS/grobotUtils.py
Lilly7777/GRobot---Server
d6261b72215ba0cdc281387c23427b04b2a9311d
[ "MIT" ]
null
null
null
def convertBack(x, y, w, h): xmin = int(round(x - (w / 2))) xmax = int(round(x + (w / 2))) ymin = int(round(y - (h / 2))) ymax = int(round(y + (h / 2))) return xmin, ymin, xmax, ymax def cvDrawBoxes(detections, img): # Colored labels dictionary color_dict = { 'Tin can' : [0, 255, ...
32.828571
80
0.442124
138
1,149
3.601449
0.384058
0.064386
0.012072
0.016097
0.088531
0
0
0
0
0
0
0.06006
0.420366
1,149
35
81
32.828571
0.686186
0.021758
0
0
0
0
0.01426
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.133333
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
6b6c4918437ff01fd308871c7f88d92fe127782e
7,590
py
Python
offrl/base.py
dlqudwns/RepB-SDE
d799c3bbfc9aeca9251dfa84255d1c1b90af42ce
[ "MIT" ]
null
null
null
offrl/base.py
dlqudwns/RepB-SDE
d799c3bbfc9aeca9251dfa84255d1c1b90af42ce
[ "MIT" ]
null
null
null
offrl/base.py
dlqudwns/RepB-SDE
d799c3bbfc9aeca9251dfa84255d1c1b90af42ce
[ "MIT" ]
null
null
null
import numpy as np import tensorflow as tf import tensorflow_probability as tfp SCALE_DIAG_MIN_MAX = (-20, 2) EPS = 1e-6 def apply_squashing_func(sample, logp): """ Squash the ouput of the gaussian distribution and account for that in the log probability. :param sample: (tf.Tensor) Action sampled from Ga...
40.15873
100
0.645059
1,081
7,590
4.314524
0.148011
0.03452
0.036235
0.038593
0.378859
0.354631
0.246355
0.216124
0.189751
0.155446
0
0.013297
0.227141
7,590
188
101
40.37234
0.781793
0.045323
0
0.119718
0
0
0.011646
0
0
0
0
0
0.007042
1
0.15493
false
0
0.021127
0.021127
0.316901
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
6b6d4190127b487993f75e4be2892ed1328ace49
3,565
py
Python
skinematics/sensors/xio.py
mohataher/scikit-kinematics
fa8c80c13981310666e22dcd35138be1af1b4318
[ "BSD-3-Clause" ]
null
null
null
skinematics/sensors/xio.py
mohataher/scikit-kinematics
fa8c80c13981310666e22dcd35138be1af1b4318
[ "BSD-3-Clause" ]
null
null
null
skinematics/sensors/xio.py
mohataher/scikit-kinematics
fa8c80c13981310666e22dcd35138be1af1b4318
[ "BSD-3-Clause" ]
1
2021-11-02T22:53:23.000Z
2021-11-02T22:53:23.000Z
''' Import data saved with XIO-sensors ''' ''' Author: Thomas Haslwanter Version: 0.2 Date: May-2016 ''' import os import pandas as pd def read_ratefile(reg_file): '''Read send-rates from an XIO sensor. "Disabled" channels have the "rate" set to "None". Parameters ---------- in_file : string...
24.756944
64
0.520898
397
3,565
4.528967
0.332494
0.030033
0.010011
0.024472
0.167964
0.167964
0.14683
0.14683
0
0
0
0.011989
0.368303
3,565
143
65
24.93007
0.786412
0.349229
0
0.04
0
0
0.116667
0.023958
0
0
0
0
0.02
1
0.06
false
0
0.04
0
0.16
0.04
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
6b6de959719deda0bcf0d3617c5c148c46c3e48d
2,166
py
Python
zcls/util/cutmix.py
ZJCV/PyCls
1ef59301646b6134f2ffcc009b4fd76550fa4089
[ "Apache-2.0" ]
110
2021-02-04T14:32:57.000Z
2022-03-30T01:51:56.000Z
zcls/util/cutmix.py
ZJCV/PyCls
1ef59301646b6134f2ffcc009b4fd76550fa4089
[ "Apache-2.0" ]
8
2021-04-11T02:46:57.000Z
2021-12-14T19:30:58.000Z
zcls/util/cutmix.py
ZJCV/PyCls
1ef59301646b6134f2ffcc009b4fd76550fa4089
[ "Apache-2.0" ]
20
2021-02-07T14:17:07.000Z
2022-03-22T05:20:40.000Z
# -*- coding: utf-8 -*- """ @date: 2021/7/26 下午10:10 @file: cutmix.py @author: zj @description: refer to [ clovaai/CutMix-PyTorch](https://github.com/clovaai/CutMix-PyTorch) """ import torch import numpy as np from zcls.config.key_word import KEY_LOSS def rand_bbox(size, lam): W = size[2] H = size[3] ...
26.740741
106
0.645891
346
2,166
3.83237
0.289017
0.036953
0.064103
0.040724
0.13273
0.104072
0.045249
0.045249
0
0
0
0.033392
0.211911
2,166
80
107
27.075
0.743409
0.124654
0
0
0
0
0.001603
0
0
0
0
0
0.02381
1
0.095238
false
0
0.071429
0
0.261905
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
6b707cd697e11ff349acb292012f7c6bd2f868a2
4,625
py
Python
jsk_2015_05_baxter_apc/node_scripts/common.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
jsk_2015_05_baxter_apc/node_scripts/common.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
2
2019-04-11T05:36:23.000Z
2019-08-19T12:58:10.000Z
jsk_2015_05_baxter_apc/node_scripts/common.py
pazeshun/jsk_apc
0ff42000ad5992f8a31e719a5360a39cf4fa1fde
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # import os import yaml import gzip import cPickle as pickle import cv2 from catkin import terminal_color import rospy from jsk_2015_05_baxter_apc.srv import ObjectMatch, ObjectMatchResponse def get_data_dir(): data_dir = os.path.join(os.path.dirname(os.path.abspath...
32.570423
82
0.592432
603
4,625
4.334992
0.253731
0.064269
0.038256
0.026779
0.142311
0.047437
0.016832
0
0
0
0
0.010086
0.292541
4,625
141
83
32.801418
0.788814
0.068973
0
0.100917
0
0
0.070459
0.00515
0
0
0
0
0
1
0.091743
false
0
0.073395
0
0.266055
0.027523
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
6b71925db630f1e5d7b40afa3a4eea245f2b4272
372
py
Python
examples/timer.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
23
2018-03-07T18:58:13.000Z
2022-03-29T17:11:47.000Z
examples/timer.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
87
2018-04-04T19:44:13.000Z
2022-03-31T11:18:00.000Z
examples/timer.py
TeskaLabs/asab
f28894b62bad192d8d30df01a8ad1b842ee2a2fb
[ "BSD-3-Clause" ]
10
2018-04-30T16:40:25.000Z
2022-03-09T10:55:24.000Z
#!/usr/bin/env python3 import asab class TimerApplication(asab.Application): async def initialize(self): # The timer will trigger a message publishing at every second self.Timer = asab.Timer(self, self.on_tick, autorestart=True) self.Timer.start(1) async def on_tick(self): print("Think!") if __name__ ...
17.714286
63
0.723118
52
372
4.980769
0.692308
0.061776
0
0
0
0
0
0
0
0
0
0.006369
0.155914
372
20
64
18.6
0.818471
0.217742
0
0
0
0
0.048443
0
0
0
0
0
0
1
0
false
0
0.1
0
0.2
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
6b720ba819c29547ae26389980f418117f2a4a29
26,708
py
Python
main.py
ikarmus2001/DziekanBOT
393df5b5d4bdfa6e34bd44da0cca8e97fa51e46a
[ "MIT" ]
2
2021-02-22T16:38:08.000Z
2021-02-23T12:26:29.000Z
main.py
ikarmus2001/DziekanBOT
393df5b5d4bdfa6e34bd44da0cca8e97fa51e46a
[ "MIT" ]
null
null
null
main.py
ikarmus2001/DziekanBOT
393df5b5d4bdfa6e34bd44da0cca8e97fa51e46a
[ "MIT" ]
1
2021-02-22T10:48:38.000Z
2021-02-22T10:48:38.000Z
import discord as dc from dotenv import load_dotenv from os import getenv import datetime as dt import json, string load_dotenv() #*#*#*# variables #*#*#*# config_relative_path = getenv("CONFIG") database_relative_path = getenv("DATABASE") token = getenv("TOKEN") #*#*#*#*#*#*#*#*#*#*#*#*# with open(co...
48.648452
193
0.545305
3,087
26,708
4.650794
0.139294
0.037612
0.039075
0.019921
0.425994
0.332939
0.288361
0.227137
0.18841
0.153375
0
0.008326
0.338962
26,708
549
194
48.648452
0.804758
0.074734
0
0.307865
0
0.006742
0.178333
0.020124
0
0
0
0
0
1
0.017978
false
0
0.011236
0
0.080899
0.013483
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
6b7335fdc121bab7e4b361e779e47bb56e5672d8
6,635
py
Python
filter_cube.py
jd-au/thor-hi
16a1326fcfe2ffaac496d2576b8727ca2f12dc9b
[ "Apache-2.0" ]
null
null
null
filter_cube.py
jd-au/thor-hi
16a1326fcfe2ffaac496d2576b8727ca2f12dc9b
[ "Apache-2.0" ]
null
null
null
filter_cube.py
jd-au/thor-hi
16a1326fcfe2ffaac496d2576b8727ca2f12dc9b
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python -u # Filter out emission from a THOR HI cube. Will 2D Fourier transform each plane of the cube and zero out the centre # of the Fourier image and then inverse Fouroer transform back to the image domain. This produces a cube without the # large scale emission # Author James Dempsey # Date 26 Nov ...
32.52451
119
0.677468
958
6,635
4.585595
0.235908
0.043706
0.02595
0.020487
0.288869
0.213522
0.190758
0.151605
0.151605
0.131118
0
0.015577
0.216277
6,635
203
120
32.684729
0.829231
0.312283
0
0.121212
0
0
0.150137
0
0
0
0
0
0
1
0.10101
false
0
0.070707
0
0.262626
0.090909
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
6b7384092723174901fdb2fe1b0d1247ce21ab53
2,383
py
Python
niscv_v2/experiments/simulation/resampling_ratio.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
niscv_v2/experiments/simulation/resampling_ratio.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
niscv_v2/experiments/simulation/resampling_ratio.py
IanFla/Importance-Sampling
f2dd2164e95377d2cf025fcddd19b2592394e4d7
[ "Apache-2.0" ]
null
null
null
import numpy as np import scipy.stats as st from niscv_v2.basics.exp import Exp from niscv_v2.basics import utils import multiprocessing import os from functools import partial from datetime import datetime as dt import pickle def experiment(dim, fun, size_est, sn, show, size_kn, ratio, bootstrap): mean = np.zero...
30.164557
100
0.632396
332
2,383
4.436747
0.376506
0.040733
0.01833
0.02444
0.131025
0.050917
0.050917
0.050917
0
0
0
0.04057
0.234578
2,383
78
101
30.551282
0.766996
0
0
0.047619
0
0
0.045741
0.018884
0
0
0
0
0
1
0.047619
false
0
0.142857
0
0.222222
0.031746
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
6b7b7ed1542c5197c3dec6914240d11b49526c97
4,649
py
Python
engraving/engraving.py
catt0/lostarkthings
72d8756d899c01e19884eebd3978d965f9073bba
[ "MIT" ]
1
2022-03-24T12:29:54.000Z
2022-03-24T12:29:54.000Z
engraving/engraving.py
catt0/lostarkthings
72d8756d899c01e19884eebd3978d965f9073bba
[ "MIT" ]
null
null
null
engraving/engraving.py
catt0/lostarkthings
72d8756d899c01e19884eebd3978d965f9073bba
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # Copyright (c) 2022 catt0 # 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,...
33.446043
178
0.670897
632
4,649
4.829114
0.371835
0.032438
0.026212
0.024902
0.201507
0.172674
0.172674
0.135321
0.135321
0.087156
0
0.009923
0.241342
4,649
138
179
33.688406
0.855401
0.449989
0
0.24
0
0
0.059992
0
0
0
0
0
0
1
0.026667
false
0
0.026667
0.013333
0.2
0.146667
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
6b7cc6ba3cb5669cb102ecb6c5ae731e244b2f55
4,447
py
Python
tests/topo_test.py
dlgeorge/geoclaw
2b4ce9b1ba2532fe3ac38ee7c05297eb61e45bd1
[ "BSD-3-Clause" ]
null
null
null
tests/topo_test.py
dlgeorge/geoclaw
2b4ce9b1ba2532fe3ac38ee7c05297eb61e45bd1
[ "BSD-3-Clause" ]
2
2018-11-05T19:41:12.000Z
2019-03-19T00:03:38.000Z
tests/topo_test.py
BrisaDavis/geoclaw
ccab58669bc2950de13cf0f35c10b3cd1cb1cda6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 from __future__ import absolute_import from __future__ import print_function import os import glob import tempfile import matplotlib.pyplot as plt from clawpack.geoclaw import topotools import clawpack.geoclaw.topo as topo import numpy as np def test1(): """ Make two...
28.690323
83
0.555431
600
4,447
3.993333
0.238333
0.033389
0.029215
0.040902
0.397746
0.390234
0.345993
0.342654
0.250417
0.250417
0
0.033473
0.301327
4,447
155
84
28.690323
0.737689
0.089723
0
0.174757
0
0
0.106485
0
0
0
0
0
0.058252
1
0.048544
false
0
0.087379
0
0.145631
0.058252
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
6b7cddd851735817010a31afc1a8841a61a5dfc8
3,443
py
Python
moveit/moveit.py
pavel-paulau/moveit
9572f3b4330b058c4cb324c774fff443a1ccb2f9
[ "Apache-2.0" ]
2
2015-09-28T13:54:43.000Z
2015-09-28T16:59:43.000Z
moveit/moveit.py
pavel-paulau/moveit
9572f3b4330b058c4cb324c774fff443a1ccb2f9
[ "Apache-2.0" ]
null
null
null
moveit/moveit.py
pavel-paulau/moveit
9572f3b4330b058c4cb324c774fff443a1ccb2f9
[ "Apache-2.0" ]
1
2020-03-10T20:17:28.000Z
2020-03-10T20:17:28.000Z
#!/usr/bin/env python import argparse import json from collections import defaultdict def read_data(fname): raw_data = defaultdict(list) with open(fname) as fh: for line in fh.readlines(): event = json.loads(line.strip()) if event['type'] == 'rebalanceStart': # only last rebal...
32.481132
79
0.598606
415
3,443
4.836145
0.286747
0.044843
0.027902
0.028401
0.126059
0.108122
0.064773
0.028899
0
0
0
0.007197
0.273599
3,443
105
80
32.790476
0.795282
0.013651
0
0.072289
0
0
0.103712
0
0
0
0
0
0
1
0.084337
false
0.012048
0.036145
0
0.156627
0.036145
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
6b7e960044cdd21ef1c64e33f14c9a00d918de92
516
py
Python
print_spelling_suggestions.py
tmills/econsult
a702948278bd9995623026702bcd4c4c9bd47159
[ "Apache-2.0" ]
null
null
null
print_spelling_suggestions.py
tmills/econsult
a702948278bd9995623026702bcd4c4c9bd47159
[ "Apache-2.0" ]
3
2021-03-25T22:10:23.000Z
2021-06-01T22:48:12.000Z
print_spelling_suggestions.py
tmills/econsult
a702948278bd9995623026702bcd4c4c9bd47159
[ "Apache-2.0" ]
1
2019-04-12T19:02:12.000Z
2019-04-12T19:02:12.000Z
#!/usr/bin/env python from pattern.en import spelling import sys def main(args): if len(args) < 1: sys.stderr.write("1 required argument: <input file>") with open(args[0], 'r') as f: for line in f.readlines(): word = line.rstrip() try: suggestions ...
24.571429
61
0.542636
63
516
4.31746
0.698413
0
0
0
0
0
0
0
0
0
0
0.011429
0.321705
516
21
62
24.571429
0.765714
0.03876
0
0
0
0
0.122984
0
0
0
0
0
0
1
0.066667
false
0
0.133333
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
6b7f23ac39d6f288d7f8df3e114d47ba4ac7749a
391
py
Python
setup.py
opalmer/vpsutil
3d589f0c6184a9ca79f0a96af1181bc4466b7095
[ "MIT" ]
null
null
null
setup.py
opalmer/vpsutil
3d589f0c6184a9ca79f0a96af1181bc4466b7095
[ "MIT" ]
null
null
null
setup.py
opalmer/vpsutil
3d589f0c6184a9ca79f0a96af1181bc4466b7095
[ "MIT" ]
null
null
null
from distutils.core import setup requires = ["requests", "paramiko"] try: import configparser except ImportError: requires.append("configparser") setup( name="vpsutil", version="0.0.0", license="MIT", packages=["vpsutil"], install_requires=requires, entry_points={ "console_scr...
17.772727
43
0.618926
38
391
6.289474
0.710526
0.016736
0
0
0
0
0
0
0
0
0
0.010169
0.245524
391
21
44
18.619048
0.8
0
0
0
0
0
0.240409
0.053708
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
6b7fffb88d3d8522751df917d4f9168bc42ba45e
4,117
py
Python
aitlas/datasets/sat6.py
biasvariancelabs/aitlas
e36913c44d5a8393566b7271607ba839f9be0df3
[ "MIT" ]
32
2020-12-04T19:48:19.000Z
2022-03-16T18:18:05.000Z
aitlas/datasets/sat6.py
biasvariancelabs/aitlas
e36913c44d5a8393566b7271607ba839f9be0df3
[ "MIT" ]
2
2021-04-11T17:09:14.000Z
2021-05-14T13:22:41.000Z
aitlas/datasets/sat6.py
biasvariancelabs/aitlas
e36913c44d5a8393566b7271607ba839f9be0df3
[ "MIT" ]
8
2021-04-06T22:06:27.000Z
2022-01-30T06:01:39.000Z
import csv import pandas as pd import seaborn as sns import matplotlib.pyplot as plt import scipy.io import numpy as np import random from ..base import BaseDataset from .schemas import MatDatasetSchema """ The format of the mat dataset is: train_x 28x28x4x400000 uint8 (containing 400000 training samples of 28x28 ima...
35.188034
103
0.621326
545
4,117
4.557798
0.321101
0.022544
0.014493
0.014493
0.153784
0.113527
0.099034
0.099034
0.034622
0.034622
0
0.039643
0.264756
4,117
116
104
35.491379
0.780971
0.057323
0
0.074074
0
0
0.112581
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0.024691
0.382716
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
6b8206189230c459d344d826bd836366d971ebcf
6,768
py
Python
src/config_gui.py
blaubachn/slideshow
8f87db77502ee89a689a884ac2455d4019b20363
[ "MIT" ]
null
null
null
src/config_gui.py
blaubachn/slideshow
8f87db77502ee89a689a884ac2455d4019b20363
[ "MIT" ]
null
null
null
src/config_gui.py
blaubachn/slideshow
8f87db77502ee89a689a884ac2455d4019b20363
[ "MIT" ]
null
null
null
import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk from config import Configuration_Manager about_text = '''Welcome to Slideshow! Photo Directory: The remote will diplay a slideshow of the photos in this folder (excluding photos in it's subfolders) Installation Type: flatpak commands have an ext...
45.12
120
0.494385
620
6,768
5.154839
0.254839
0.048811
0.059136
0.037547
0.241239
0.185544
0.119524
0.103254
0.103254
0.103254
0
0.009506
0.207299
6,768
149
121
45.422819
0.586207
0.253694
0
0.10989
0
0.043956
0.152161
0
0
0
0
0
0
1
0.065934
false
0
0.032967
0
0.10989
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
6b834a7d97ab58b448634df72525ae3e7aa49bda
391
py
Python
PythonExercicios/ex033.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
PythonExercicios/ex033.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
PythonExercicios/ex033.py
Lucas-ns/Python-3-Curso-Em-Video
f6d338fffd7a4606d34fab09634eea0fe4b3dfb3
[ "MIT" ]
null
null
null
n1 = int(input('Primeiro Valor: ')) n2 = int(input('Segundo Valor: ')) n3 = int(input('Terceiro Valor: ')) maior = n1 menor = n1 if n2 < n3 and n2 < n1: menor = n2 if n3 < n2 and n3 < n1: menor = n3 print('O menor valor digitado foi {}'.format(menor)) if n2 > n3 and n2 > n1: maior = n2 if n3 > n2 and n3 > n...
24.4375
52
0.608696
67
391
3.552239
0.268657
0.10084
0.05042
0.07563
0.235294
0.235294
0.12605
0
0
0
0
0.083893
0.237852
391
15
53
26.066667
0.714765
0
0
0
0
0
0.268542
0
0
0
0
0
0
1
0
false
0
0
0
0
0.133333
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
6b85c3711ce945544b892923a3692a030d199f9f
2,705
py
Python
processing/data_collection/gazette/spiders/rj_rio_de_janeiro.py
gabubellon/querido-diario
b783dac359b86121173286869a8e0bbd31cf22af
[ "MIT" ]
null
null
null
processing/data_collection/gazette/spiders/rj_rio_de_janeiro.py
gabubellon/querido-diario
b783dac359b86121173286869a8e0bbd31cf22af
[ "MIT" ]
null
null
null
processing/data_collection/gazette/spiders/rj_rio_de_janeiro.py
gabubellon/querido-diario
b783dac359b86121173286869a8e0bbd31cf22af
[ "MIT" ]
null
null
null
from gazette.items import Gazette import datetime as dt import re import scrapy from gazette.spiders.base import BaseGazetteSpider class RjRioDeJaneiroSpider(BaseGazetteSpider): TERRITORY_ID = "3304557" name = "rj_rio_de_janeiro" allowed_domains = ["doweb.rio.rj.gov.br"] start_urls = ["http://doweb.ri...
38.642857
121
0.607024
332
2,705
4.722892
0.355422
0.042092
0.044643
0.033163
0.335459
0.249362
0.237245
0.211735
0.0625
0.0625
0
0.021069
0.280592
2,705
69
122
39.202899
0.784687
0.017006
0
0.067797
0
0.033898
0.176958
0
0
0
0
0
0
1
0.050847
false
0
0.084746
0.016949
0.305085
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
6b86ad80d46cd8819ce8434a7d769597836cdf0f
3,502
py
Python
2c-AutopilotByColorSegmentation.py
Branyac/tello-innovation-challenge
173087677bf2f964785ab76fae146b12e352ee0b
[ "MIT" ]
1
2022-01-30T19:34:45.000Z
2022-01-30T19:34:45.000Z
2c-AutopilotByColorSegmentation.py
Branyac/tello-innovation-challenge
173087677bf2f964785ab76fae146b12e352ee0b
[ "MIT" ]
null
null
null
2c-AutopilotByColorSegmentation.py
Branyac/tello-innovation-challenge
173087677bf2f964785ab76fae146b12e352ee0b
[ "MIT" ]
1
2021-06-23T04:13:43.000Z
2021-06-23T04:13:43.000Z
from djitellopy import Tello import cv2 import numpy as np import time # Values for color segmentation # It match an orange battery LOWER = np.array([0, 239, 180]) UPPER = np.array([30, 255, 255]) DESIRED_OBJECT_SIZE = 100 MAX_SPEED_FORWARDBACK = 50 MAX_SPEED_UPDOWN = 50 MAX_SPEED_YAW = 100 MIN_MOV_TIME = 0.15 def ...
35.734694
153
0.58538
454
3,502
4.288546
0.354626
0.032871
0.026194
0.027735
0.114535
0.053416
0.053416
0
0
0
0
0.040842
0.321816
3,502
98
154
35.734694
0.778947
0.161622
0
0.03125
0
0
0.004796
0
0
0
0.00137
0
0
1
0.03125
false
0
0.0625
0
0.109375
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
6b8a00b506487aff2b0ea1fefe241cb675cb897d
4,169
py
Python
gcloud/commons/tastypie/resources.py
springborland/bk-sops
a9057672c10efb5f2414a805a30ead4092429c76
[ "Apache-2.0" ]
1
2021-05-19T04:31:34.000Z
2021-05-19T04:31:34.000Z
gcloud/commons/tastypie/resources.py
sighttviewliu/bk-sops
6bf2f38bd93990f20f7c3a4decafc310e09e679c
[ "Apache-2.0" ]
null
null
null
gcloud/commons/tastypie/resources.py
sighttviewliu/bk-sops
6bf2f38bd93990f20f7c3a4decafc310e09e679c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2020 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
35.939655
115
0.633245
478
4,169
5.39749
0.449791
0.023256
0.032558
0.017442
0
0
0
0
0
0
0
0.006981
0.278484
4,169
115
116
36.252174
0.850731
0.277285
0
0.04918
0
0
0.053873
0
0
0
0
0
0
1
0.098361
false
0
0.114754
0
0.327869
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
6b8ba5e38a11991c07975fe01f68ff669ab459c0
811
py
Python
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
badx12/common/click.py
agaddis02/badX12
7362a4d9629e570be8cd3b42af5210cda39e0efc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from collections import Iterable import click def add_commands(click_group, commands): if not isinstance(click_group, click.core.Group): raise TypeError( f"add_commands() expects click.core.Group for click_group, got {type(click_group)}" ) if not isinstanc...
30.037037
103
0.633785
99
811
5.10101
0.313131
0.106931
0.110891
0.091089
0.312871
0.215842
0
0
0
0
0
0.001698
0.273736
811
26
104
31.192308
0.855688
0.025894
0
0.157895
0
0.052632
0.30203
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
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
6b8d70280f0cb0d3625c06ba1c69384706890a4a
2,602
py
Python
sequence/fastx_translate.py
shenwei356/bio_scripts
703cec8d21903516346e2aae4d77d23385c30905
[ "MIT" ]
94
2015-03-26T04:32:29.000Z
2022-03-22T13:44:11.000Z
sequence/fastx_translate.py
xinwang-bio/bio_scripts
64fda3a72ba14edf87952a809c3d52871f155cca
[ "MIT" ]
null
null
null
sequence/fastx_translate.py
xinwang-bio/bio_scripts
64fda3a72ba14edf87952a809c3d52871f155cca
[ "MIT" ]
70
2015-04-01T10:27:05.000Z
2021-11-08T01:46:39.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # https://github.com/shenwei356/bio_scripts from __future__ import print_function import argparse import gzip import logging import os import re import sys from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import SeqRecord def parse_args(): parser = a...
35.162162
130
0.601076
350
2,602
4.365714
0.365714
0.05301
0.020942
0.021597
0.130236
0.065445
0.045812
0.045812
0
0
0
0.005691
0.25711
2,602
73
131
35.643836
0.78479
0.038816
0
0.071429
0
0.035714
0.257509
0.036844
0
0
0
0
0
1
0.017857
false
0
0.178571
0
0.214286
0.071429
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
6b90cf31e44e1e7e27466082bc57a29d138e03cf
7,345
py
Python
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
null
null
null
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
1
2021-04-28T18:40:13.000Z
2021-04-28T18:40:13.000Z
pyfilter/test/test_filter.py
zkscpqm/pyfilter
39c284681ec6f377059907b75346028d99cbdd4c
[ "MIT" ]
null
null
null
import unittest import os from typing import Any, Text, NoReturn, Set, Union from parameterized import parameterized from pyfilter import FilterContext from pyfilter import TextFilter class TestFilter(unittest.TestCase): def setUp(self) -> Any: self.any_inclusion_keywords: Set[Text] = {'dog', 'cat'} ...
53.224638
116
0.644384
798
7,345
5.659148
0.150376
0.150576
0.088574
0.099646
0.568202
0.499114
0.45992
0.45992
0.348981
0.242693
0
0.001503
0.275425
7,345
137
117
53.613139
0.84705
0
0
0.144068
0
0
0.188913
0.027377
0
0
0
0
0.169492
1
0.067797
false
0.016949
0.050847
0
0.127119
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
6b934399f266b4f9c4b7a0180b20fcdaa634e13b
4,263
py
Python
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
13
2021-12-11T11:52:32.000Z
2022-03-11T12:58:56.000Z
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2021-12-19T19:15:29.000Z
2021-12-26T14:09:16.000Z
tests/conftest.py
Dimfred/imxpy
289a67fa51ef7b33ee106a65ad69340d07c986b3
[ "MIT" ]
1
2022-01-10T15:01:04.000Z
2022-01-10T15:01:04.000Z
from pathlib import Path import sys import time # add parent dir of imxpy sys.path.insert(0, str(Path(__file__).parent.parent.parent)) from easydict import EasyDict as edict import pytest from imx_client import IMXClient from imx_objects import * def random_number(): import random return random.randint(0...
21.861538
84
0.697162
475
4,263
6.086316
0.277895
0.089934
0.066413
0.071947
0.198893
0.110688
0.067797
0.067797
0.067797
0.037357
0
0.132842
0.203612
4,263
194
85
21.974227
0.718704
0.046915
0
0.34375
0
0
0.192213
0.148595
0
0
0.093149
0
0
1
0.171875
false
0
0.070313
0.09375
0.40625
0.007813
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
6b93c4cb81d74f0acde8f0cc82aaa2e1626a119a
1,088
py
Python
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
1
2021-04-12T07:04:26.000Z
2021-04-12T07:04:26.000Z
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
1
2021-11-10T15:51:15.000Z
2021-11-10T15:51:15.000Z
off_policy_rl/off_policy_rl/utils/epoch.py
dti-research/ur-learning-shifting-for-grasping
2dfecf6b2dbe67b65af00fc0ae5f73be2cb8a801
[ "BSD-3-Clause" ]
null
null
null
from typing import List import numpy as np from off_policy_rl.utils.selection_method import SelectionMethod class Epoch: def __init__( self, number_episodes: int, selection_methods: List[SelectionMethod], probabilities: List[float] = None ): self.number_episodes = numb...
35.096774
106
0.661765
121
1,088
5.793388
0.404959
0.182596
0.085592
0
0
0
0
0
0
0
0
0.008728
0.262868
1,088
30
107
36.266667
0.865337
0
0
0
0
0
0.118566
0
0
0
0
0
0.086957
1
0.086957
false
0
0.130435
0
0.347826
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
6b947dc36dc1850a2e02965bc2a02ae7eeca3cad
11,761
py
Python
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
26
2019-04-18T13:07:34.000Z
2021-03-24T11:55:26.000Z
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
null
null
null
model/deterministic_decoder.py
illc-uva/deep-generative-lm
c65bdf9d72e7d9d4e02576b1e84bce623725a0cd
[ "MIT" ]
9
2019-04-18T23:00:46.000Z
2021-09-23T15:34:56.000Z
""" A deterministic decoder. """ import numpy as np import sys import os.path as osp from collections import defaultdict from warnings import warn import torch import torch.nn as nn import torch.nn.functional as F from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence # We include the path of the t...
45.762646
122
0.596803
1,677
11,761
4.013119
0.206917
0.011887
0.026746
0.007132
0.218276
0.168053
0.150074
0.108172
0.100743
0.093314
0
0.009768
0.303631
11,761
256
123
45.941406
0.811966
0.310348
0
0.2
0
0
0.025168
0
0
0
0
0
0
1
0.045161
false
0.012903
0.070968
0.006452
0.16129
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
6b96bddabe2ed1e571fa0fb67e8fe24ad3b42daf
2,316
py
Python
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
244
2015-01-01T12:04:44.000Z
2022-03-25T23:38:39.000Z
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
6
2015-08-18T08:19:10.000Z
2022-03-05T02:32:36.000Z
trove/tests/scenario/runners/instance_force_delete_runners.py
sapcc/trove
c03ec0827687fba202f72f4d264ab70158604857
[ "Apache-2.0" ]
178
2015-01-02T15:16:58.000Z
2022-03-23T03:30:20.000Z
# Copyright 2016 Tesora 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 a...
38.6
78
0.702936
298
2,316
5.214765
0.419463
0.030888
0.050193
0.057915
0.189833
0.138996
0.113256
0.113256
0
0
0
0.008319
0.221503
2,316
59
79
39.254237
0.853577
0.294041
0
0.0625
0
0
0.02534
0
0
0
0
0
0.09375
1
0.125
false
0
0.125
0
0.28125
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
6b976f533f13bffac48ebcfedaef5b78d985ab9b
489
py
Python
tests/providers/test_twilio.py
yaakov-github/notifiers
ae204bc08fd9efa06597e5e2cf30ad0a305c94bb
[ "MIT" ]
2
2019-10-06T01:53:42.000Z
2019-11-19T07:52:17.000Z
tests/providers/test_twilio.py
Delgan/notifiers
8dd2a8aaa81a9433034a8f347d984c8aa80be9af
[ "MIT" ]
null
null
null
tests/providers/test_twilio.py
Delgan/notifiers
8dd2a8aaa81a9433034a8f347d984c8aa80be9af
[ "MIT" ]
null
null
null
import pytest provider = 'twilio' class TestTwilio: def test_twilio_metadata(self, provider): assert provider.metadata == { 'base_url': 'https://api.twilio.com/2010-04-01/Accounts/{}/Messages.json', 'name': 'twilio', 'site_url': 'https://www.twilio.com/' } ...
23.285714
86
0.570552
53
489
5.132075
0.679245
0.051471
0
0
0
0
0
0
0
0
0
0.022792
0.282209
489
20
87
24.45
0.752137
0
0
0
0
0
0.253579
0
0
0
0
0
0.066667
1
0.133333
false
0
0.066667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0