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
ca48cfdcb7622dc5e3da4e6a96f90e5e3237d589
6,356
py
Python
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
1
2021-12-22T03:35:18.000Z
2021-12-22T03:35:18.000Z
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- # Keras implement of Glow # Glow模型的Keras版 # https://blog.openai.com/glow/ from keras.layers import * from keras.models import Model from keras.datasets import cifar10 from keras.callbacks import Callback from keras.optimizers import Adam from flow_layers import * import imageio import numpy as...
28.630631
118
0.595028
895
6,356
4.064804
0.281564
0.026938
0.006597
0.012095
0.059373
0.041781
0.031886
0.031886
0.031886
0.031886
0
0.030956
0.263059
6,356
221
119
28.760181
0.74573
0.071901
0
0.125749
0
0
0.03674
0.012663
0
0
0
0
0
1
0.035928
false
0
0.077844
0
0.131737
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
ca492d3db1e7a431253fb27aa0253f4be2cd3179
1,985
py
Python
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
r_map/elaborate_tree.py
mentaal/r_map
42986e90b31018b1e7fc992a53b0f5f6e559253f
[ "MIT" ]
null
null
null
"""Module to take an existing r_map and replace all instances of ArrayedNode with its children. Also fix addresses of AddressedNodes to save the tree lookup penalty imposed within their address properties. This involves manipulating the tree in memory and providing an overridden AddressedNode which can be used when des...
33.083333
80
0.704786
239
1,985
5.736402
0.460251
0.040117
0.020423
0.026258
0
0
0
0
0
0
0
0
0.235264
1,985
59
81
33.644068
0.903162
0.300756
0
0.108108
0
0
0.004405
0
0
0
0
0
0
1
0.081081
false
0.054054
0.108108
0.027027
0.324324
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
1
0
0
0
0
0
1
ca4a501860d545885c7a68c5914cd3f72741cdda
488
py
Python
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
#Palindrome check for string s s = ['d','o','g','G','o','d'] #need to define a string s = [element.lower() for element in s] #convert each element to lowercase def isPal(s): print(' isPal called with', s ) #printing the string if len(s) <= 1: #zero or one letter case print('Base case is always true...
32.533333
84
0.608607
80
488
3.7125
0.5625
0.020202
0
0
0
0
0
0
0
0
0
0.013477
0.239754
488
14
85
34.857143
0.787062
0.340164
0
0
0
0
0.188742
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4bf45e859d235d8665ccec531d457472e1d9c8
4,653
py
Python
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- # # Pytorchで用いるDatasetの定義 # from numpy.lib.arraypad import pad import tensorflow as tf # 数値演算用モジュール(numpy)をインポート import numpy as np # sysモジュールをインポート import sys import math def build_dataset(feat_scp, label_scp, feat_mean, ...
25.565934
76
0.563507
486
4,653
5.106996
0.358025
0.042305
0.024174
0.012087
0.029009
0
0
0
0
0
0
0.013536
0.349022
4,653
181
77
25.707182
0.805877
0.271223
0
0
0
0
0.022503
0
0
0
0
0
0
1
0.034483
false
0
0.057471
0
0.126437
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
ca4c30d22355972e25a3ae44eba09d3d2c67bd12
2,901
py
Python
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
cba_examples/views/table_2.py
diefenbach/cba-examples
67c484f181935a40076d3ff3cc279cedf438c358
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function, unicode_literals from cba import components from cba.base import CBAView class TableRoot(components.Group): def init_components(self): self.initial_components = [ components.Group( css_class="ui form container", initial_co...
40.859155
106
0.454326
216
2,901
5.949074
0.328704
0.147082
0.196109
0.074708
0.374319
0.337743
0.291051
0.291051
0.291051
0.291051
0
0.006901
0.450534
2,901
70
107
41.442857
0.799247
0
0
0.35
0
0
0.09514
0.024819
0
0
0
0
0
1
0.05
false
0
0.05
0
0.15
0.016667
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca4c4257326dffb482bf77d2d863e1a9fe99032c
137
py
Python
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
null
null
null
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
1
2016-07-27T13:11:33.000Z
2016-07-27T13:11:33.000Z
proj/pushes/urls.py
TakesxiSximada/adminsite-collection
02fc51c0b0d5b81f1c6829f86f2b144fcdaf0d7e
[ "Apache-2.0" ]
null
null
null
from rest_framework import routers from . import views router = routers.DefaultRouter() router.register(r'pushes', views.PushViewSet)
17.125
45
0.79562
17
137
6.352941
0.705882
0
0
0
0
0
0
0
0
0
0
0
0.116788
137
7
46
19.571429
0.892562
0
0
0
0
0
0.043796
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ca4e977a8bbc9ad8ddd91fa8ba9e6bd2a4340a7e
1,410
py
Python
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk/internal/configuration_base.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
import yaml from aztk.error import AztkError, InvalidModelError class ConfigurationBase: """ Base class for any configuration. Include methods to help with validation """ @classmethod def from_dict(cls, args: dict): """ Create a new model from a dict values The dict is...
29.375
97
0.598582
171
1,410
4.789474
0.479532
0.029304
0.043956
0.053724
0.126984
0.080586
0.080586
0
0
0
0
0.005139
0.309929
1,410
47
98
30
0.836588
0.132624
0
0.193548
0
0
0.044369
0
0
0
0
0
0
1
0.193548
false
0
0.064516
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4fb8eba7e86423c3e317fa09aefd90269c7fd8
3,836
py
Python
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #this is a comment .!/usr/bin/env python3 import feedparser import pandas as pd import time import numpy as np import sys import logging import csv logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') #from subprocess import check_output #import sys with...
30.444444
112
0.637643
525
3,836
4.584762
0.329524
0.020357
0.03199
0.035314
0.174907
0.16452
0.099709
0
0
0
0
0.077102
0.215589
3,836
126
113
30.444444
0.722832
0.395464
0
0.09375
0
0
0.113182
0
0
0
0
0.007937
0
1
0.0625
false
0
0.109375
0.015625
0.234375
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
ca5127a4c0615ee23cb09f4ed4c5be2b27d633bf
31
py
Python
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
3
2021-07-24T08:50:26.000Z
2022-02-23T06:25:10.000Z
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
1
2022-03-27T17:55:39.000Z
2022-03-27T17:55:43.000Z
exts/omni.add_on.visualizer/omni/add_on/visualizer/tests/__init__.py
Toni-SM/omni.add_on.visualizer
0bbca6c93fb40f6c8dcded8f4b8a51df81feaf52
[ "MIT" ]
null
null
null
from .test_visualizer import *
15.5
30
0.806452
4
31
6
1
0
0
0
0
0
0
0
0
0
0
0
0.129032
31
1
31
31
0.888889
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
ca51bec93a8871725f379d36542bf86e0b2a84a7
1,640
py
Python
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
1
2020-11-10T08:17:37.000Z
2020-11-10T08:17:37.000Z
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
tests/test_timer.py
xsthunder/xs_lib
40d9ea2294abea5a231d018e7c6367245630e8b2
[ "MIT" ]
null
null
null
################################################# ### THIS FILE WAS AUTOGENERATED! DO NOT EDIT! ### ################################################# # file to edit: ./nb/timer.ipynb import sys if __name__ == '__main__': sys.path.append('..') import xs_lib.common as common import sure from datetime import datetime im...
23.098592
121
0.59939
244
1,640
3.844262
0.327869
0.051173
0.03838
0.046908
0.230277
0.230277
0.230277
0.230277
0.230277
0.230277
0
0.029253
0.207927
1,640
71
122
23.098592
0.692841
0.239024
0
0.4
1
0
0.021898
0
0
0
0
0
0
1
0.111111
false
0.022222
0.155556
0.022222
0.288889
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca52a7aab07c59186a8296a957a5d226e24e48dc
809
py
Python
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
app/restaurants/views.py
yagnic/recipe-app-me
2713461de85f7fb009a4244f43eca9ac97c35722
[ "MIT" ]
null
null
null
from rest_framework.decorators import action from rest_framework.response import Response from rest_framework import viewsets, mixins, status from rest_framework.authentication import TokenAuthentication from rest_framework.permissions import IsAuthenticated from core.models import Restaurant from restaurants import ...
31.115385
61
0.797281
87
809
7.298851
0.482759
0.062992
0.133858
0.059843
0
0
0
0
0
0
0
0
0.142151
809
25
62
32.36
0.914986
0.02843
0
0
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.411765
0
0.882353
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
1
0
1
0
0
2
ca52ac0d4f6eff14369de57d20140633d902fe4f
2,269
py
Python
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import torch from torch import nn, autograd from torch.utils.data import DataLoader, Dataset import numpy as np import random from sklearn import metrics class DatasetSplit(Dataset): def __init__(self, dataset, idxs): self.dataset = data...
33.865672
139
0.585721
278
2,269
4.629496
0.363309
0.055944
0.037296
0.049728
0.28749
0.28749
0.28749
0.28749
0.28749
0.28749
0
0.004502
0.314676
2,269
66
140
34.378788
0.823151
0.070075
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.102041
false
0
0.122449
0.020408
0.326531
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
ca52bf10a3c13ad103c254644b80cd50cb216d86
92
py
Python
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
13
2019-12-02T15:35:14.000Z
2022-03-13T18:22:06.000Z
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
35
2019-05-13T10:24:03.000Z
2021-12-14T14:13:38.000Z
hashtagsv2/hashtags/admin.py
eggpi/hashtags
a5bdc8d43159cb25df1a1155951cc96d725e786d
[ "MIT" ]
15
2018-10-17T15:01:13.000Z
2019-04-08T13:57:50.000Z
from django.contrib import admin from .models import Hashtag admin.site.register(Hashtag)
15.333333
32
0.815217
13
92
5.769231
0.692308
0
0
0
0
0
0
0
0
0
0
0
0.119565
92
5
33
18.4
0.925926
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ca5b47ff066ef55e1d1779346f934318a0c7cf47
1,996
py
Python
2 - Code/210924 - DQN Extensions #1/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
31
2021-04-08T15:21:56.000Z
2022-03-15T08:18:33.000Z
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
import argparse import gym import ptan import random import torch import torch.optim as optim from ignite.engine import Engine from lib import dqn_model, epsilon_tracker, hyper_params, utils if __name__ == "__main__": random.seed(hyper_params.SEED) torch.manual_seed(hyper_params.SEED) params = hyper_pa...
32.721311
108
0.725952
257
1,996
5.400778
0.392996
0.04755
0.032421
0.041066
0.040346
0
0
0
0
0
0
0.001806
0.167836
1,996
60
109
33.266667
0.833835
0
0
0
0
0
0.036072
0
0
0
0
0
0
1
0.02381
false
0
0.190476
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
ca5def6663dd34eb3d655b1ffbb1b95127bf3583
995
py
Python
blogapp/models.py
Altaf-H-Miazee/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
1
2020-10-06T16:23:35.000Z
2020-10-06T16:23:35.000Z
blogapp/models.py
hosenmdaltaf/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
null
null
null
blogapp/models.py
hosenmdaltaf/BlogApp-Django
4245729352f5ce1180f6ba3b4e7cc6650ffb8358
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone from django.contrib.auth.models import User from django.urls import reverse class Author(models.Model): author= models.ForeignKey(User,on_delete=models.CASCADE, null=True, blank=True) profile_pic = models.ImageField(upload_to='profile_pic',null=Tr...
30.151515
101
0.730653
136
995
5.213235
0.463235
0.056417
0.091678
0.119887
0.174894
0.107193
0.107193
0.107193
0
0
0
0.0047
0.144724
995
32
102
31.09375
0.828437
0
0
0.1
0
0
0.076382
0.047236
0
0
0
0
0
1
0.15
false
0
0.2
0.15
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
1
0
0
2
ca60b53e49cf1b6bb9d51a2399b1a6d7c2de70cd
1,487
py
Python
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np # Os dados utilizados referem-se à granulometria (tamanho de partícula) de um testemunho marinho; # Valores negativos em y indicam a profundidade da coluna estratigráfica em metros, sendo y = 0 o topo do testemunho (início do assoalho oceânico); # ...
61.958333
147
0.741762
244
1,487
4.504098
0.491803
0.007279
0.024568
0.027298
0.146497
0.146497
0.146497
0.072793
0
0
0
0.014196
0.147276
1,487
23
148
64.652174
0.852524
0.635508
0
0
0
0
0.316981
0.218868
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca615c44a11941f16384fb424e7463ca48d5dba0
1,221
py
Python
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
146
2020-06-17T04:14:40.000Z
2022-03-16T21:59:04.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
26
2020-06-17T13:54:20.000Z
2021-12-13T12:14:06.000Z
setup.py
paduel/pandas_ui
ca3f0214f209e68d15573fb9518b01ad36873648
[ "MIT" ]
46
2020-06-17T06:14:11.000Z
2022-01-29T14:07:33.000Z
import pathlib from setuptools import setup #from distutils.core import setup setup( name = 'pandas_ui', packages = ['pandas_ui'], version = '0.1', license='MIT License', description = ' pandas_ui helps you wrangle & explore your data and create custom visualizations without digging through StackOver...
33.916667
218
0.610975
125
1,221
5.88
0.72
0.054422
0.038095
0.046259
0.092517
0.092517
0.092517
0
0
0
0
0.007813
0.266175
1,221
36
219
33.916667
0.8125
0.026208
0
0.058824
0
0.029412
0.543314
0.019344
0
0
0
0
0
1
0
true
0
0.058824
0
0.058824
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
1
0
0
0
0
0
0
1
ca6399fda024ff3ca6fb6ffc6995041a2c15a6d0
1,644
py
Python
2021/04/day_04.py
mfep/advent-of-code-2020
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
2
2020-12-05T18:21:14.000Z
2020-12-08T19:37:51.000Z
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
class Board(object): def __init__(self, lines): assert(len(lines) == 5) self.data = [] for line in lines: self.data += [int(x) for x in line.split()] assert(len(self.data) == 25) self.drawn = [False for _ in self.data] def score(self, drawn): return sum([0 if self.drawn[idx] else self...
24.537313
87
0.583333
254
1,644
3.692913
0.255906
0.051173
0.051173
0.017058
0.319829
0.298507
0.298507
0.240938
0.240938
0.240938
0
0.03172
0.27129
1,644
66
88
24.909091
0.751252
0
0
0.357143
0
0
0.006691
0
0
0
0
0
0.035714
1
0.089286
false
0
0
0.017857
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca63c85b7dd719215770c89a01e560ca42f2a093
2,944
py
Python
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
import unittest.mock import unittest import os import pathlib from ons_csv_to_ctb_json_load import Loader from helper_funcs import conditional_mock_open, build_test_file HEADERS = ['Id', 'Database_Mnemonic', 'Variable_Mnemonic', 'Version', 'Lowest_Geog_Variable_Flag'] REQUIRED_FIELDS = {'Variable_Mnemonic': 'VAR1', ...
42.666667
115
0.638247
354
2,944
5.002825
0.271186
0.062112
0.08131
0.099379
0.330322
0.293619
0.293619
0.241671
0.206663
0.17956
0
0.012102
0.242188
2,944
68
116
43.294118
0.781712
0
0
0.2
0
0
0.324049
0.094429
0
0
0
0
0.018182
1
0.127273
false
0
0.109091
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
ca651fc6921278187b2a3bb6efc946859def4b2c
705
py
Python
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
#!/usr/bin/python """Sends a message that is read by the StillCaptureModule.""" import roslib; roslib.load_manifest('reefbot') import rospy from reefbot_msgs.msg import ImageCaptured if __name__ == "__main__": rospy.init_node('TestStillCaptureModule') publisher = rospy.Publisher( rospy.get_param('still_image...
25.178571
61
0.723404
93
705
5.290323
0.645161
0.146341
0.056911
0
0
0
0
0
0
0
0
0.026846
0.15461
705
27
62
26.111111
0.798658
0.102128
0
0
0
0
0.110048
0.035088
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca653894731570c9c358faadfe28ba24fca6a793
4,924
py
Python
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
############################################################################ # Python Tkinter All List III Save and Open ToDo Lists # Python Tkinter All List III Guardar y abrir listas de tareas pendientes ############################################################################ from tkinter import * from tkinter.f...
27.355556
91
0.647035
689
4,924
4.467344
0.256894
0.048733
0.031189
0.038986
0.402859
0.305718
0.27128
0.27128
0.27128
0.221897
0
0.015951
0.210601
4,924
180
92
27.355556
0.77592
0.140536
0
0.321739
0
0
0.143175
0.005184
0
0
0
0.005556
0
1
0.069565
false
0.008696
0.034783
0
0.104348
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
ca664f99426c4233bb183526150ff77bb24145d7
848
py
Python
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
1
2022-02-20T14:35:42.000Z
2022-02-20T14:35:42.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
4
2022-03-02T07:18:01.000Z
2022-03-31T07:09:30.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
null
null
null
"""Coordinator for SleepIQ.""" from datetime import timedelta import logging from asyncsleepiq import AsyncSleepIQ from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator _LOGGER = logging.getLogger(__name__) UPDATE_INTERVAL = timedelta(seconds=60) c...
25.69697
75
0.676887
77
848
7.181818
0.506494
0.075949
0
0
0
0
0
0
0
0
0
0.003091
0.237028
848
32
76
26.5
0.851623
0.095519
0
0
0
0
0.023968
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
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
ca6ad152789223ad92fe49facebc426481abe551
815
py
Python
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
setup.py
blablalab/supervisor-remote-logging
a3e6b1476ef3a230e1fe092bf23fc84315173a3a
[ "BSD-2-Clause" ]
null
null
null
from setuptools import setup, find_packages with open("requirements.txt") as requirements: setup( name="supervisor-remote-logging", version="0.0.3", description="Stream supervisord logs various remote endpoints", author="New Relic Site Engineering Team", url="https://github....
37.045455
76
0.631902
82
815
6.134146
0.682927
0.127237
0.182903
0
0
0
0
0
0
0
0
0.004839
0.239264
815
21
77
38.809524
0.806452
0
0
0
0
0
0.385276
0.09816
0
0
0
0
0
1
0
true
0
0.05
0
0.05
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
2
ca6c22adc311353b790d1fd415522f311a837d13
401
py
Python
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
null
null
null
function/python/brightics/function/recommendation/__init__.py
GSByeon/studio
782cf484541c6d68e1451ff6a0d3b5dc80172664
[ "Apache-2.0" ]
1
2020-11-19T06:44:15.000Z
2020-11-19T06:44:15.000Z
from .association_rule import association_rule from .association_rule import association_rule_visualization from .als import als_train from .als import als_predict from .als import als_recommend from .collaborative_filtering import collaborative_filtering_train from .collaborative_filtering import collaborative_filteri...
50.125
70
0.902743
49
401
7.040816
0.22449
0.382609
0.113043
0.13913
0.701449
0.701449
0
0
0
0
0
0
0.077307
401
8
70
50.125
0.932432
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
0
0
0
5
ca6e127b34486b1fde939d71dcd9e8af2f3a4daa
322
py
Python
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
2
2015-08-06T14:08:39.000Z
2015-09-29T09:47:26.000Z
xmlrpc/client.py
davidvoler/ate_meteor
d7ac20638a30e941e0ca8740499743bc26dd57be
[ "MIT" ]
null
null
null
__author__ = 'avraham' from xmlrpclib import ServerProxy port = 9876 class Client(ServerProxy): def __init__(self, ip='127.0.0.1'): ServerProxy.__init__(self, ('http://{}:{}'.format(ip, port))) def get_methods(self): return [x for x in self.system.listMethods() if not x.startswith('sys')...
24.769231
84
0.652174
43
322
4.581395
0.72093
0.081218
0
0
0
0
0
0
0
0
0
0.038314
0.189441
322
12
85
26.833333
0.716475
0
0
0
0
0
0.096273
0
0
0
0
0
0
1
0.25
false
0
0.125
0.125
0.625
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
1
0
0
0
1
1
0
0
3
ca6e3b8ba437468f1d2e6ebc7b338d1c4822e773
311
py
Python
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Bolinooo" def main(): L1 = [i for i in range(1, 10)] L2 = [i * 2 for i in range(1, 10)] print("Step 1: Import the correct algorithm") print("Step 2: Try out the correct algorithm using the above lists or your own") if __name__ == "__main__": main()
19.4375
84
0.623794
51
311
3.568627
0.647059
0.043956
0.065934
0.120879
0.153846
0.153846
0
0
0
0
0
0.046809
0.244373
311
15
85
20.733333
0.72766
0.064309
0
0
0
0
0.424138
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
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
ca6fb98607ef14400c5def23eec2923315d9fa2b
3,293
py
Python
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
project_1a_data_modeling_with_postgres/sql_queries.py
jpuris/udacity-data-engineering-submissions
e71e2569241c76b5e6c3cd074667b19bde4d7b9e
[ "MIT" ]
null
null
null
# DROP TABLES songplay_table_drop = "DROP TABLE IF EXISTS songplays;" user_table_drop = "DROP TABLE IF EXISTS users;" song_table_drop = "DROP TABLE IF EXISTS songs;" artist_table_drop = "DROP TABLE IF EXISTS artists;" time_table_drop = "DROP TABLE IF EXISTS \"time\";" # CREATE TABLES songplay_table_create = (""" CRE...
28.387931
117
0.670817
474
3,293
4.453587
0.151899
0.023685
0.028423
0.028423
0.257224
0.238276
0.124586
0.04595
0.016106
0
0
0.000788
0.229578
3,293
115
118
28.634783
0.831297
0.019131
0
0.193548
0
0.032258
0.774504
0.032258
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
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca705b4d66574b3cbb4b789138782fb79432f6ae
9,048
py
Python
Data Gen/relgen.py
selinozdas/ObsCo
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
1
2018-10-22T18:44:31.000Z
2018-10-22T18:44:31.000Z
Data Gen/relgen.py
selinozdas/epsikon
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
null
null
null
Data Gen/relgen.py
selinozdas/epsikon
296c0fbac97612b50bca03ccb24b8851781952ac
[ "MIT" ]
null
null
null
from pymongo import MongoClient #change url mongo_url = 'mongodb://127.0.0.1:27017/' client = MongoClient() db = client['obsco'] db.relations.insert_many([ { 'voter':12345671, 'voted':12345672, 'votes':[1,1,1,1,1,0,0,1,1] }, { 'voter':12345671, 'voted':12345673, ...
19.542117
44
0.383842
1,014
9,048
3.423077
0.036489
0.077211
0.049265
0.03342
0.845866
0.702679
0.467589
0.333045
0.158744
0.034572
0
0.370857
0.403073
9,048
463
45
19.542117
0.271802
0.001105
0
0.498915
0
0
0.154459
0.002877
0
0
0
0
0
1
0
false
0
0.002169
0
0.002169
0
0
0
0
null
0
0
0
1
1
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ca73356a167a495ef7f15554e401d4c020b25f47
822
py
Python
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
1
2021-12-07T10:54:48.000Z
2021-12-07T10:54:48.000Z
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
""" Advent Of Code 2021 Day 9 Date: 09-12-2021 Site: https://adventofcode.com/2021/day/9 Author: Tayyrov """ def isValid(r, c): return 0 <= c < cols and 0 <= r < rows input_file = open('../input_files/day9_input', 'r') matrix = input_file.readlines() rows = len(matrix) cols = len(matrix[0].s...
22.216216
64
0.519465
125
822
3.36
0.488
0.014286
0.038095
0
0
0
0
0
0
0
0
0.058608
0.335766
822
36
65
22.833333
0.710623
0.121655
0
0
0
0
0.116519
0.036873
0
0
0
0
0
1
0.047619
false
0
0
0.047619
0.095238
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca73616e330f62bf07e4bc8f69070d118dc75955
6,532
py
Python
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
56
2020-01-12T05:45:59.000Z
2022-03-17T15:04:15.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
7
2020-01-28T23:14:45.000Z
2022-02-10T01:56:48.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
2
2020-02-29T14:51:23.000Z
2020-03-07T03:23:27.000Z
import time from tqdm import tqdm import torch import torch.nn.functional as F from evkit.utils.losses import weighted_l1_loss, weighted_l2_loss, softmax_cross_entropy, dense_cross_entropy from tlkit.models.lifelong_framework import LifelongSidetuneNetwork from tlkit.data.datasets.taskonomy_dataset import get_lifelon...
39.829268
161
0.686467
903
6,532
4.739756
0.262458
0.029439
0.033645
0.043692
0.389019
0.361449
0.346028
0.31215
0.247196
0.230841
0
0.014517
0.177434
6,532
164
162
39.829268
0.782058
0.098132
0
0.219512
0
0
0.242916
0.068283
0
0
0
0
0
1
0
false
0
0.065041
0
0.065041
0.056911
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca74d344cab07cbfd869efaea460c4c5bc949315
316
py
Python
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("de") # Importiere die Klasse Doc from ____ import ____ # Erwarteter Text: "Na, alles klar?" words = ["Na", ",", "alles", "klar", "?"] spaces = [____, ____, ____, ____, ____] # Erstelle ein Doc mit den Wörtern und Leerzeichen doc = ____(____, ____=____, ____=____) print(doc.text)
21.066667
50
0.674051
34
316
4.735294
0.735294
0.086957
0.136646
0
0
0
0
0
0
0
0
0
0.167722
316
14
51
22.571429
0.612167
0.344937
0
0
0
0
0.073892
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca74e85f36d8815a258660b91b00fe2163b98715
2,602
py
Python
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
1
2021-11-26T10:08:39.000Z
2021-11-26T10:08:39.000Z
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
null
null
null
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
2
2020-12-10T08:07:05.000Z
2021-01-07T15:26:04.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 10 11:00:53 2020 @author: Gabriel """ import chess import chess.svg import random #Fonction qui demander un mouvement dans la console et le retourn sous la forme d'un chess move def recup_move(): case_dep = input("Case départ :") case_arr = input("Case arrivée ...
27.680851
152
0.609147
345
2,602
4.495652
0.373913
0.034816
0.042553
0.03675
0.411348
0.3804
0.3804
0.3804
0.3804
0.3804
0
0.01454
0.286318
2,602
94
153
27.680851
0.820679
0.197156
0
0.623188
0
0.014493
0.184096
0
0
0
0
0
0
1
0.072464
false
0
0.043478
0
0.144928
0.202899
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7506243947fc032fb70e7910e132594139685a
43
py
Python
libs/pyexcel/__version__.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
null
null
null
libs/pyexcel/__version__.py
rocketbot-cl/PivotTableExcel
041c8db2bbcd9655d30bf4c37aca4902b3d1db7a
[ "MIT" ]
3
2020-02-24T03:41:18.000Z
2021-12-13T20:45:52.000Z
pyexcel/__version__.py
heholek/pyexcel
bf111f20b51eeb10bf6020af84156fde3cb26b38
[ "BSD-3-Clause" ]
null
null
null
__version__ = '0.5.15' __author__ = 'C.W.'
14.333333
22
0.627907
7
43
2.714286
1
0
0
0
0
0
0
0
0
0
0
0.108108
0.139535
43
2
23
21.5
0.405405
0
0
0
0
0
0.232558
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
4
ca75cca3856c88a531bc1aaa1c544157626687b1
3,748
py
Python
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2018-08-21T06:28:36.000Z
2018-08-21T06:28:36.000Z
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2019-05-30T06:23:41.000Z
2019-09-03T09:49:06.000Z
test/test_bitcoin.py
coinplus-sa/coinplus-solo
e4f385a3d9eb7b72e14e397761fd9a113938917a
[ "MIT" ]
1
2021-06-30T12:36:25.000Z
2021-06-30T12:36:25.000Z
import unittest from coinplus_solo_redeem.common import wif_export_bitcoin, compute_public_key_sec256k1, address_from_publickey_bitcoin class TestBitcoin(unittest.TestCase): """test of the bitcoin conversion from private key to wif""" def setUp(self): self.test_vector = [("28cb1bccdc33f93c94b73360cef14...
96.102564
153
0.743863
141
3,748
19.539007
0.560284
0.011615
0.011615
0.019601
0
0
0
0
0
0
0
0.318348
0.198773
3,748
38
154
98.631579
0.599068
0.014408
0
0
0
0
0.585683
0.585683
0
0
0
0
0.060606
1
0.090909
false
0
0.060606
0
0.181818
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
3
ca75f434148d96356dd723dec0e4898094cb7430
1,250
py
Python
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
CH_13_async_io/T_00_async_await.py
mastering-python/code_2
441af8b67402c8216c482cca7c002e1d7f0f1baa
[ "MIT" ]
null
null
null
import asyncio @asyncio.coroutine def main(): print('Hello from main') yield from asyncio.sleep(1) loop = asyncio.new_event_loop() loop.run_until_complete(main()) loop.close() ################################################################# import asyncio async def main(): print('Hello from main') ...
17.123288
65
0.556
143
1,250
4.706294
0.223776
0.106984
0.089153
0.1263
0.734027
0.698366
0.661218
0.612184
0.612184
0.612184
0
0.005597
0.1424
1,250
72
66
17.361111
0.622201
0.0336
0
0.736842
0
0
0.079281
0
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.157895
0.131579
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ca75fcb3c8515832e54adfde75adb4f6c4ec10df
98
py
Python
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
13
2020-11-05T04:22:51.000Z
2022-02-27T08:44:50.000Z
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
null
null
null
tutorials/class_2/apps.py
MeGustas-5427/SQL_Tutorials
627372c2d5d8656d72645830c9a1fae1df278fc7
[ "Apache-2.0" ]
2
2020-11-10T10:01:20.000Z
2021-04-07T02:33:29.000Z
from django.apps import AppConfig class Class2Config(AppConfig): name = 'tutorials.class_2'
16.333333
33
0.765306
12
98
6.166667
0.833333
0
0
0
0
0
0
0
0
0
0
0.024096
0.153061
98
5
34
19.6
0.86747
0
0
0
0
0
0.173469
0
0
0
0
0
0
1
0
false
0
0.333333
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
1
0
0
4
ca77263261ea32fe43d682889ede3057c2714eb1
953
py
Python
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
1
2021-11-25T09:33:30.000Z
2021-11-25T09:33:30.000Z
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
#!/usr/bin/env python3 from typing import ( Tuple, ) from .character import Character from .gen.player_class import PlayerClass from .gen.player_stats import STATS_BY_PLAYER_CLASS from .gen.equipment import GearType from .stats import Stats class Player(Character): def __init__( self, userna...
25.078947
76
0.645331
112
953
5.276786
0.303571
0.1489
0.076142
0.060914
0
0
0
0
0
0
0
0.001437
0.269675
953
37
77
25.756757
0.847701
0.022036
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.2
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
ca77ed517dcb7e292e04556306984fb49fef89ce
8,361
py
Python
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2015-11-08T11:31:20.000Z
2015-11-08T11:31:20.000Z
m2wsgi/io/gevent.py
ged/m2wsgi
669ad356ee69ab1dffb28fb35dd7bde415999209
[ "MIT" ]
3
2018-02-25T02:16:32.000Z
2018-02-25T02:16:41.000Z
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2021-11-29T00:01:00.000Z
2021-11-29T00:01:00.000Z
""" m2wsgi.io.gevent: gevent-based I/O module for m2wsgi ===================================================== This module provides subclasses of m2wsgi.WSGIHandler and related classes that are specifically tuned for running under gevent. You can import and use the classes directory from here, or you can select th...
32.917323
78
0.672527
1,093
8,361
4.945105
0.26441
0.011656
0.015541
0.023312
0.207956
0.20074
0.20074
0.171878
0.158187
0.142091
0
0.005972
0.238967
8,361
253
79
33.047431
0.84347
0.257266
0
0.240741
0
0
0.170185
0
0
0
0
0
0
1
0.104938
false
0
0.080247
0
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
ca783de6ff83c65ac31c3c3f5577a1372db396ed
8,584
py
Python
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # for use with Python 3 # text_buffer # # This program 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 2 of the License, or # (at ...
37.484716
174
0.681034
1,279
8,584
4.241595
0.218921
0.04424
0.028387
0.040553
0.299908
0.21788
0.180277
0.114101
0.067834
0.052719
0
0.007333
0.189772
8,584
228
175
37.649123
0.772682
0.339585
0
0.139535
0
0
0.093145
0.008197
0
0
0
0
0
1
0.054264
false
0
0.046512
0.007752
0.124031
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca783e77d01b6a65f34fba8804bdd660d6dfe9a6
886
py
Python
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
""" This Lambda parses the output of ModelQualityStep to extract the value of a specific metric """ import json import boto3 sm_client = boto3.client("sagemaker") s3 = boto3.resource('s3') def lambda_handler(event, context): # model quality report URI model_quality_report_uri = event['model_quality_report_u...
26.058824
98
0.673815
119
886
4.789916
0.453782
0.084211
0.126316
0.147368
0.05614
0
0
0
0
0
0
0.02069
0.181716
886
33
99
26.848485
0.765517
0.132054
0
0
0
0
0.189474
0.069737
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7aaf0d27786d0d1b6110d5b7821183f0fa08f7
2,383
py
Python
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
3
2020-02-18T20:40:11.000Z
2020-03-16T15:05:13.000Z
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
from data_manager import DataManager, plot_fehpass_mention, plot_score_distribution from scraper import Scraper from datetime import date as dt from cloud import Cloud import sys import json def load_config(): with open("./ressources/config.json") as f: config = json.load(f) return config def save_last_import()...
25.351064
97
0.738984
332
2,383
5.057229
0.328313
0.035736
0.0405
0.032162
0.324598
0.280524
0.259678
0.259678
0.223943
0.126266
0
0.002946
0.145195
2,383
93
98
25.623656
0.821306
0.120436
0
0.196721
0
0
0.170708
0.046072
0
0
0
0
0
1
0.098361
false
0.04918
0.114754
0
0.229508
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
ca7bcebe8a789ca0d1b9184a805dc93a7fdf5be0
4,679
py
Python
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
19
2017-06-29T07:41:26.000Z
2021-11-03T18:48:48.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
175
2017-06-29T09:37:43.000Z
2021-07-09T12:55:28.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
8
2017-10-31T08:53:12.000Z
2021-07-21T06:14:43.000Z
#!/usr/bin/env python """ Edited from navigation.py in turtlebot2i_navigation module """ import rospy import actionlib from nav_msgs.msg import Odometry from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal import geometry_msgs.msg from sensor_msgs.msg import LaserScan from tf.transformations import quatern...
36.554688
112
0.70421
632
4,679
5.023734
0.259494
0.069291
0.07937
0.069291
0.450709
0.360945
0.333228
0.171969
0.171969
0.115906
0
0.040936
0.195982
4,679
127
113
36.84252
0.80303
0.06775
0
0.190476
0
0
0.087598
0.025357
0
0
0
0
0
1
0.057143
false
0
0.114286
0.009524
0.180952
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7cc46e8c8e4b7eedde7891b3c0b03ff8e70a99
6,320
py
Python
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
44
2016-10-29T18:53:00.000Z
2022-03-24T08:37:05.000Z
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
null
null
null
micropython firmware/mylib_modules/stepper.py
flashypepo/myMicropython-Examples
b2b63df865b5ad471b351ca5f279135025859f5d
[ "MIT" ]
37
2016-10-26T23:07:39.000Z
2022-01-21T19:10:35.000Z
# Stepper Motor Shield/Wing Driver # Based on Adafruit Motorshield library: # https://github.com/adafruit/Adafruit_Motor_Shield_V2_Library # Author: Tony DiCola import pca9685 # Constants that specify the direction and style of steps. FORWARD = const(1) BACKWARD = const(2) SINGLE = const(1) DOUBLE = const(2) INTERLEA...
36.959064
99
0.54557
709
6,320
4.782793
0.22567
0.163669
0.206429
0.092008
0.401651
0.316131
0.255382
0.188145
0.157476
0.157476
0
0.076275
0.361076
6,320
170
100
37.176471
0.763497
0.124209
0
0.375
0
0
0.004898
0
0
0
0.009432
0
0
1
0.041667
false
0
0.006944
0
0.076389
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca7e72ac8eca8a96798ab1b879172ea0ca0060fa
7,333
py
Python
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
null
null
null
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
8
2021-06-14T18:10:53.000Z
2022-03-23T18:30:10.000Z
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
1
2022-02-22T21:24:58.000Z
2022-02-22T21:24:58.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class OperationFilterKgraphTopNParameters(Model): """NOTE: This class is auto ...
38.798942
269
0.684167
909
7,333
5.290429
0.141914
0.028072
0.061759
0.077979
0.691204
0.585985
0.534415
0.514244
0.495737
0.33271
0
0.013821
0.250102
7,333
188
270
39.005319
0.860702
0.539343
0
0.217391
0
0
0.149154
0.012341
0
0
0
0
0
1
0.173913
false
0
0.072464
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
ca7fda4d86c2fba009810467ffdbbaf903beb734
138
py
Python
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
1,078
2016-07-19T02:48:30.000Z
2022-03-30T21:22:34.000Z
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
576
2017-05-21T12:36:48.000Z
2022-03-30T13:47:03.000Z
Src/StdLib/Lib/site-packages/pythoncom.py
cwensley/ironpython2
f854444e1e08afc8850cb7c1a739a7dd2d10d32a
[ "Apache-2.0" ]
269
2017-05-21T04:44:47.000Z
2022-03-31T16:18:13.000Z
# Magic utility that "redirects" to pythoncomxx.dll import pywintypes pywintypes.__import_pywin32_system_module__("pythoncom", globals())
34.5
67
0.833333
16
138
6.75
0.875
0
0
0
0
0
0
0
0
0
0
0.015748
0.07971
138
3
68
46
0.834646
0.355072
0
0
0
0
0.103448
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
5
ca8000a403d5b123e875d49d431c426113a4a558
1,119
py
Python
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
78
2020-10-26T11:08:41.000Z
2022-03-31T18:38:40.000Z
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
15
2020-10-31T11:46:07.000Z
2022-01-21T09:01:43.000Z
paperswithcode/models/evaluation/__init__.py
Kabongosalomon/paperswithcode-client
3b85082aa897312424976577bcbc6305e64acac0
[ "Apache-2.0" ]
13
2020-11-12T00:07:39.000Z
2022-01-14T03:07:45.000Z
__all__ = [ "Metric", "Metrics", "MetricCreateRequest", "MetricUpdateRequest", "Result", "Results", "ResultCreateRequest", "ResultUpdateRequest", "EvaluationTable", "EvaluationTables", "EvaluationTableCreateRequest", "EvaluationTableUpdateRequest", "ResultSyncRequest"...
23.3125
58
0.731903
61
1,119
13.360656
0.42623
0.088344
0.117791
0.166871
0.30184
0.30184
0
0
0
0
0
0
0.183199
1,119
47
59
23.808511
0.891685
0
0
0
0
0
0.27882
0.097408
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
0
0
0
1
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
ca8027790a4fceb962c245fd135028de87ab82b7
530
py
Python
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
6
2018-04-18T03:42:50.000Z
2021-11-20T18:46:37.000Z
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
13
2018-10-01T11:45:05.000Z
2022-03-16T12:28:36.000Z
tests/test_importall.py
physimals/fslpy
10dd3f996c79d402c65cf0af724b8b00082d5176
[ "Apache-2.0" ]
5
2017-12-09T09:02:17.000Z
2021-11-15T16:55:30.000Z
#!/usr/bin/env python # # test_importall.py - # # Author: Paul McCarthy <pauldmccarthy@gmail.com> # import pkgutil import importlib import fsl def test_importall(): def recurse(module): path = module.__path__ name = module.__name__ submods = list(pkgutil.iter_modules(path, '{}....
16.5625
70
0.615094
58
530
5.413793
0.62069
0.082803
0
0
0
0
0
0
0
0
0
0
0.273585
530
31
71
17.096774
0.815584
0.166038
0
0
0
0
0.006881
0
0
0
0
0
0
1
0.153846
false
0
0.384615
0
0.538462
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
1
0
1
0
0
2
ca810acaf114d27759397ca02efb21720c0a1ece
14,285
py
Python
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
1
2015-02-05T13:15:00.000Z
2015-02-05T13:15:00.000Z
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # propagation module # import datetime import os from random import random import re import sys import weakref import traceback import xml.sax.saxutils as saxutils import dateutil.parser as date_parser from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.orm.session import o...
34.756691
94
0.566398
1,546
14,285
5.05304
0.158473
0.038402
0.016897
0.021505
0.171915
0.077829
0.065796
0.05658
0.045315
0.021505
0
0.002138
0.312566
14,285
410
95
34.841463
0.793381
0.100805
0
0.191638
0
0
0.114972
0.006383
0
0
0
0.007317
0
1
0.031359
false
0
0.066202
0.003484
0.334495
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
ca81d00c9b08ea72e49aff7d13fb4cf046744724
517
py
Python
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
from imdbTask1 import* from imdbTask4 import* def get_movie_list_details(api): movieListDetails=[] for i in api[:10]: link=i["movieLink"] movieUrl=Scrap_Movie_Detail(link) new=movieUrl.copy() #They copy() method returns a shallow copy of the dictionary. movieUrl.clear() #...
34.466667
91
0.717602
63
517
5.761905
0.619048
0.044077
0.066116
0.104683
0
0
0
0
0
0
0
0.009639
0.197292
517
14
92
36.928571
0.86506
0.270793
0
0
0
0
0.024064
0
0
0
0
0
0
1
0.083333
false
0
0.166667
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
ca862c6e479fb1bc4dd13ef50993c3c14c1ddfc9
2,084
py
Python
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
2
2016-06-16T07:42:43.000Z
2016-06-24T23:49:19.000Z
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
null
null
null
Mobot_simulation/Animation.py
harveybia/the-flash-sudo
33753bf1ac854a030b2b27341c1ff893798c5821
[ "Apache-2.0" ]
null
null
null
from tkinter import * class Animation(object): DELAY = 20 # Override these methods when creating your own animation def mousePressed(self, event): pass def keyPressed(self, event): pass def keyReleased(self,event):pass def leftMouseReleased(self,event):pass def mouseMotion(self,event):pass...
30.202899
70
0.604127
218
2,084
5.775229
0.385321
0.03892
0.051628
0.063542
0
0
0
0
0
0
0
0.010907
0.296065
2,084
68
71
30.647059
0.847307
0.131478
0
0.0625
0
0
0.036171
0
0
0
0
0
0
1
0.270833
false
0.166667
0.020833
0
0.333333
0.020833
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
0
0
0
2
ca8899e5526768d89fe639ff3c58ac5fe8bcfec8
3,726
py
Python
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
null
null
null
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
null
null
null
test.py
FunkyKoki/Separable-Batch-Normalization-for-Robust-Facial-Landmark-Localization
361bafaffdb50e05a97aa7ef27b9bfddd07f6648
[ "MIT" ]
1
2021-11-22T09:18:53.000Z
2021-11-22T09:18:53.000Z
import tqdm import copy import torch import numpy as np import cv2 from models import Baseline, loadWeights, BaselineSepDyBN from datasets import WFLW256, datasetSize, kptNum import time from ptflops import get_model_complexity_info import os os.environ["CUDA_VISIBLE_DEVICES"] = "0" def testWFLW256Baseline(mode, test...
40.064516
102
0.618357
452
3,726
4.993363
0.25
0.013292
0.014178
0.024812
0.788658
0.788658
0.788658
0.788658
0.788658
0.788658
0
0.045282
0.223564
3,726
92
103
40.5
0.734877
0
0
0.722222
0
0
0.116479
0.019055
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.194444
0.166667
0
0
0
null
0
0
0
0
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
6
ca890cc0c4b716f777412a40314e358dfa561905
1,365
py
Python
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2019-03-05T22:35:47.000Z
2019-03-05T22:35:55.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2020-07-16T21:55:43.000Z
2021-05-08T12:14:05.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
4
2019-03-08T01:42:00.000Z
2021-01-28T03:01:34.000Z
from collections import defaultdict from itertools import product from functools import lru_cache from sys import setrecursionlimit setrecursionlimit(10000) @lru_cache(maxsize=6) def p_outcomes(a_dice, d_dice): total = 0 results = defaultdict(int) for a_rolls in product(range(1,7), repeat=a_dice): ...
29.673913
84
0.612454
190
1,365
4.205263
0.289474
0.031289
0.06383
0.035044
0.12766
0.12766
0.12766
0
0
0
0
0.027551
0.282051
1,365
45
85
30.333333
0.787755
0
0
0.052632
0
0
0.005128
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.263158
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8a90e5ceb797a2b9672b05c74b49ae1602ffc4
1,240
py
Python
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Puzzle Title: AoC 2021 Day 6: Lanternfish Puzzle Link: https://adventofcode.com/2021/day/6 Solution Author: Luke Spademan <info@lukespademan.com> Solution License: MIT """ import fileinput from collections import Counter import copy def parse_input(): for line in fileinput.in...
22.545455
79
0.642742
174
1,240
4.431034
0.442529
0.042802
0.058366
0.054475
0.132296
0.132296
0
0
0
0
0
0.034884
0.237097
1,240
54
80
22.962963
0.780127
0.219355
0
0
0
0
0.049009
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0.071429
0.428571
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
ca8bb0a6b5e76ac3dc813001f4574315eedd8360
2,082
py
Python
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3 import math class Particle(): def __init__(self, position, velocity, acceleration): self.position = position self.velocity = velocity self.acceleration = acceleration self.absA = self.__absoluteAccelleration() def __absoluteAccelleration(self): ...
34.131148
104
0.597502
251
2,082
4.85259
0.298805
0.128079
0.039409
0.039409
0.098522
0.064039
0.064039
0.064039
0.064039
0
0
0.005711
0.243036
2,082
60
105
34.7
0.767132
0.011047
0
0.043478
0
0
0.023324
0
0
0
0
0
0
1
0.173913
false
0
0.021739
0.021739
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8c4743210b0654e5b22385db2cf3bf8ce7e230
5,591
py
Python
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
1
2021-02-08T04:57:02.000Z
2021-02-08T04:57:02.000Z
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
null
null
null
src/BasicPacketInfo.py
ghousali17/nids-framework
cee79396ca057cd199cee6c73ffd11f7fa99fdb8
[ "MIT" ]
4
2019-03-25T14:25:55.000Z
2019-05-23T14:09:33.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- import pcap import sys import socket import struct class BasicPacketInfo: def __init__( self, src, dst, srcPort, dstPort, protocol, timestamp, generator, ): # Info to generate flows from packer...
22.913934
163
0.567519
572
5,591
5.215035
0.251748
0.080456
0.093865
0.006705
0.08582
0.030841
0.030841
0
0
0
0
0.013341
0.343051
5,591
244
164
22.913934
0.798802
0.039528
0
0.178571
0
0
0.003731
0
0
0
0.006715
0
0
1
0.285714
false
0
0.02381
0.130952
0.488095
0.011905
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
0
0
0
2
ca8c5cc3fe65bbbd435e863800b01663c3b5d815
1,414
py
Python
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
normj.py
AROM98/ipln2
d9942279d5b6d234196113eb2292b00f3b12bf14
[ "MIT" ]
null
null
null
#!python3 #!/usr/local/bin # encoding: utf-8 import os from re import * import sys from getopt import getopt import pandas as pd os.system("date") #os.system("poetry -i misc2.txt -o result.json") # pegar no ficheiro do poema # retirar metadados e crirar .txt temporario só com poema # usar coisa2 neste ficheiro, ret...
19.108108
58
0.659123
225
1,414
4.08
0.391111
0.052288
0.056645
0.03268
0
0
0
0
0
0
0
0.018503
0.159123
1,414
73
59
19.369863
0.753574
0.350071
0
0.057143
0
0
0.216908
0
0
0
0
0.013699
0
1
0
false
0
0.142857
0
0.142857
0.085714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
ca8d13ea07eda5a6096abb0bf841921b8a0004f4
614
py
Python
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
Histogram.py
TheoSaify/Yolo-Detector
f1ac387370982de323a4fc09109c57736b8ce8d6
[ "Apache-2.0" ]
null
null
null
import cv2 import numpy as np import imutils from matplotlib import pyplot as plt img = cv2.imread('img1.png',0) # color = ('b','g','r') # for i,col in enumerate(color): # histr = cv2.calcHist([img],[i],None,[256],[0,256]) # plt.plot(histr,color = col) # plt.xlim([0,256]) # plt.show() h...
23.615385
57
0.610749
97
614
3.845361
0.443299
0.053619
0.0563
0.058981
0.16622
0
0
0
0
0
0
0.067194
0.175896
614
26
58
23.615385
0.66996
0.260586
0
0
0
0
0.07565
0
0
0
0
0
0
1
0
false
0
0.307692
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
ca8e74bdcdf56ae9a145fc5960607020ba877bc3
25,083
py
Python
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 17 09:39:23 2020 @author: u0101486 """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 5 12:26:49 2019 @author: u0101486 """ # Aggregate QC measures import os import sys import numpy as np import matplotlib.pyplot as plt ...
33.134742
175
0.521429
3,101
25,083
4.158659
0.164141
0.021169
0.025589
0.023883
0.486275
0.437035
0.369262
0.322581
0.277916
0.262019
0
0.070862
0.325998
25,083
757
176
33.134742
0.691944
0.0543
0
0.20603
0
0
0.112283
0.051799
0
0
0
0.001321
0
1
0.020101
false
0
0.080402
0
0.105528
0.030151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8f100cbcd38d31bcc26bca290e0a38cd1a6502
5,987
py
Python
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
4,025
2021-01-05T23:52:33.000Z
2022-03-31T11:17:44.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
318
2021-01-06T08:14:36.000Z
2022-03-15T07:23:39.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
449
2021-01-06T17:30:17.000Z
2022-03-30T03:42:17.000Z
import json import os import torch from .distributed_backend import DistributedBackend class DeepSpeedBackend(DistributedBackend): """Distributed backend using the DeepSpeed engine.""" BACKEND_MODULE_NAME = 'deepspeed' BACKEND_NAME = 'DeepSpeed' def wrap_arg_parser(self, parser): if not se...
34.80814
78
0.601637
629
5,987
5.524642
0.27186
0.050647
0.057554
0.046619
0.24777
0.168058
0.127482
0.127482
0.084029
0.084029
0
0.000248
0.325372
5,987
171
79
35.011696
0.860114
0.152664
0
0.175
0
0
0.162371
0.005886
0
0
0
0
0.008333
1
0.1
false
0.008333
0.033333
0
0.233333
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca921305ecd69d1337aa587c3ee6490624527464
361
py
Python
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
27
2021-05-28T10:43:50.000Z
2022-03-29T14:30:17.000Z
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
13
2021-05-29T01:13:12.000Z
2022-01-08T14:53:21.000Z
discord/ext/ui/combine/just.py
sushi-chaaaan/discord-ext-ui-fork
aa726b97ee1cd4c60974e74d3c9113142131a76e
[ "MIT" ]
13
2021-06-08T15:21:36.000Z
2022-02-07T13:23:00.000Z
from __future__ import annotations from typing import Any from .publisher import Publisher class Just(Publisher): def __init__(self, value: Any) -> None: super().__init__() self.value: Any = value def dispatch(self) -> Any: self.upstream(self.value) def send(self, value: Any) ->...
21.235294
43
0.66205
43
361
5.27907
0.465116
0.15859
0.15859
0.140969
0
0
0
0
0
0
0
0
0.240997
361
16
44
22.5625
0.828467
0
0
0
0
0
0
0
0
0
0
0
0
1
0.272727
false
0
0.272727
0
0.636364
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
1
0
0
0
0
1
0
0
2
ca9214f2ddb4c13d7bee6606639e425ff6450b6f
329
py
Python
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
student/migrations/0003_remove_student_username.py
KhudadadKhawari/the-library
a6acd2e8ce9ca350339d99775f1e7906d343c7d4
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2021-12-24 04:20 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('student', '0002_student_clg_reg_no'), ] operations = [ migrations.RemoveField( model_name='student', name='username', ...
18.277778
47
0.595745
35
329
5.457143
0.8
0
0
0
0
0
0
0
0
0
0
0.077586
0.294833
329
17
48
19.352941
0.74569
0.130699
0
0
1
0
0.158451
0.080986
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca9339f4332b4f70213be088c7de5c5d457e5604
418
py
Python
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
8
2019-05-25T21:17:07.000Z
2020-10-18T11:46:12.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
1
2019-05-25T21:28:06.000Z
2019-05-25T21:28:06.000Z
MultiSC/MultiServer/protocols/protocols_objects/user_log_protocol.py
hvuhsg/MultiServer
079f7be1b8fed4938e6003a81e2d03a8ea03ffd4
[ "MIT" ]
null
null
null
from ..protocol import Protocol from .logs_protocol import LogsProtocol class UserLogsProtocol(Protocol): def __init__(self): self.name = "UserLogsProtocol" self.logs_protocol = LogsProtocol() self.functions = { "upload_log": self.logs_protocol.upload_log, "delete_l...
29.857143
56
0.667464
44
418
5.977273
0.363636
0.18251
0.18251
0.144487
0
0
0
0
0
0
0
0
0.23445
418
13
57
32.153846
0.821875
0
0
0
0
0
0.086124
0
0
0
0
0
0
1
0.090909
false
0
0.181818
0
0.363636
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca963c794e6b8ca2f4dbf07be128d72d92a54e5c
9,514
py
Python
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/SQL/INNERFUNC/last/Opengauss_Function_Innerfunc_Last_Case0007.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
42.663677
84
0.586189
1,324
9,514
4.076284
0.212991
0.037613
0.057069
0.030573
0.523254
0.426163
0.312025
0.254771
0.241616
0.217528
0
0.039195
0.289363
9,514
222
85
42.855856
0.759059
0.053395
0
0.196532
0
0
0.513659
0.107985
0
0
0
0
0.115607
1
0.017341
false
0
0.034682
0
0.057803
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
ca98069cb091fd65e974456a923332e50244ac8b
484
py
Python
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
0x11-python-network_1/8-json_api.py
Dev-Loup/holbertonschool-higher_level_programming
af6fe9a05c87dcdbb88270eec4c7ec81d6a70d9b
[ "FSFAP" ]
null
null
null
#!/usr/bin/python3 """ Search API """ import requests import sys if __name__ == '__main__': data = {'q': ''} try: data['q'] = sys.argv[1] except: pass data = requests.post('http://0.0.0.0:5000/search_user', data) try: q_to_json = data.json() if not q_to_json: ...
22
79
0.522727
67
484
3.522388
0.522388
0.050847
0.118644
0.084746
0
0
0
0
0
0
0
0.02924
0.293388
484
21
80
23.047619
0.660819
0.057851
0
0.235294
0
0
0.176339
0
0
0
0
0
0
1
0
false
0.058824
0.117647
0
0.117647
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
ca99a6d0c24e8be79c8b7ceda99e07215c385c4b
145
py
Python
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
2
2019-07-18T22:43:49.000Z
2020-03-09T03:27:41.000Z
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
20
2019-02-27T19:08:03.000Z
2021-06-22T16:47:32.000Z
discovery/__init__.py
amenezes/discovery-client
9c41456d1cc14f4aab34628ad4e13423e00bc4be
[ "Apache-2.0" ]
null
null
null
import logging from discovery.__version__ import __version__ log = logging.getLogger("discovery-client") log.addHandler(logging.NullHandler())
20.714286
45
0.82069
16
145
6.9375
0.625
0
0
0
0
0
0
0
0
0
0
0
0.082759
145
6
46
24.166667
0.834586
0
0
0
0
0
0.110345
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
3
ca9ab792d6449ca71d84ac63d8045de4ded0d016
114,149
py
Python
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
17
2021-05-19T01:42:53.000Z
2022-01-23T13:23:59.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
6
2021-05-26T15:36:52.000Z
2021-09-23T05:55:49.000Z
scripts/jHex.py
RPG-FReeKZ/Tales-of-Destiny-2
fdf0493f1a3ae05153199085e64b8ca29916b306
[ "MIT" ]
7
2021-05-23T17:29:57.000Z
2022-03-31T01:37:55.000Z
def jHex(word): jap = list(word) List = [] for i in jap: if i == " ": List.append("9940") elif i == ",": List.append("9941") elif i == ".": List.append("9942") elif i == "・": List.append("9943") elif i == ":": ...
27.479297
31
0.363481
12,437
114,149
3.3373
0.330064
0.499687
0.0053
0.006505
0.025442
0
0
0
0
0
0
0.074177
0.454485
114,149
4,153
32
27.485914
0.592131
0
0
0.011799
0
0
0.090811
0
0
0
0
0
0
1
0.000241
false
0
0
0
0.000482
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
ca9b8ab6ce1aa3e43c4ff91b4bd83dc9639155b3
6,548
py
Python
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
4
2019-07-22T06:56:56.000Z
2020-12-29T20:06:06.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
5
2018-04-01T11:42:11.000Z
2020-09-28T05:15:05.000Z
tests/structure_tests.py
ruivieira/python-ssm
09468506637cbdb7290b6f0896c2940213c14944
[ "Apache-2.0" ]
1
2019-07-20T13:40:59.000Z
2019-07-20T13:40:59.000Z
"""structure_tests This module contains tests for the DGLM structures """ # pylint: disable=no-self-use import unittest from nose.tools import assert_equals, assert_almost_equal # type: ignore from nose.tools.nontrivial import raises # type: ignore import numpy as np from pssm.dglm import NormalDLM from pssm.structu...
47.107914
80
0.651955
958
6,548
4.338205
0.11691
0.124158
0.111646
0.148219
0.702117
0.647257
0.517084
0.443215
0.365977
0.193696
0
0.049296
0.219304
6,548
138
81
47.449275
0.763693
0.129811
0
0.111111
0
0
0.166577
0
0
0
0
0
0.474747
1
0.131313
false
0
0.060606
0
0.20202
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
1
0
0
0
0
0
0
0
0
0
1
ca9b95c978ba4ebdf7212bca4a59b66c0c1f46e7
356
py
Python
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
test/record.py
titulebolide/variometer
7e5fbacdb9c403d11dd01abc6f5e20db4b922756
[ "MIT" ]
null
null
null
import flask import numpy as np buff = [] app = flask.Flask(__name__) @app.route("/",methods=['POST']) def index(): global buff datas = flask.request.get_json(force=True) buff.extend(datas["data"]) return "",200 @app.route("/save/",methods=['GET']) def save(): np.save("record.npy", buff) retu...
17.8
46
0.620787
53
356
4.075472
0.566038
0.027778
0.111111
0
0
0
0
0
0
0
0
0.047297
0.168539
356
19
47
18.736842
0.682432
0
0
0.133333
0
0
0.098315
0
0
0
0
0
0
1
0.133333
false
0
0.133333
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
ca9bf7b2d5b27c913dc9d1327604f448153b014a
13,207
py
Python
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
13
2018-06-02T09:11:15.000Z
2020-08-29T01:01:19.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
1
2021-01-17T14:03:13.000Z
2021-01-17T14:03:13.000Z
framework/cefs.py
shew91/Retropy
9feb34855b997c48d93a5343a9842788d19582e6
[ "MIT" ]
6
2018-06-02T16:20:47.000Z
2021-12-30T22:26:54.000Z
# https://www.cefconnect.com/closed-end-funds-screener # https://www.cefa.com/ # http://cefdata.com/funds/clm/ # https://www.cefconnect.com/fund/CLM # https://www.cefchannel.com/clm/ from framework.utils import * from framework.base import * from framework.meta_data import * from framework.stats_basic import * from ...
41.271875
678
0.673885
2,330
13,207
3.629614
0.329185
0.048244
0.039376
0.013007
0.371763
0.311694
0.253754
0.215561
0.19676
0.177486
0
0.010702
0.16514
13,207
319
679
41.401254
0.756303
0.245779
0
0.274262
0
0.008439
0.17823
0.003625
0
0
0
0
0
1
0.14346
false
0
0.029536
0.016878
0.409283
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
ca9c994cab0cb35cf5defa4b1739417be15fb6c9
2,616
py
Python
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2022-03-08T12:27:08.000Z
2022-03-08T12:27:08.000Z
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
null
null
null
ecco_v4_py/vector_calc.py
zelunwu/ECCOv4-py
03b6a1b01fcd17b0b88c25bee205c195df52d7fa
[ "MIT" ]
1
2020-05-09T01:07:03.000Z
2020-05-09T01:07:03.000Z
""" Functions defined on vector valued fields """ import xarray as xr import xgcm from .ecco_utils import get_llc_grid def UEVNfromUXVY(xfld,yfld,coords,grid=None): """Compute east, north facing vector field components from x, y components by interpolating to cell centers and rotating by grid cell angle ...
30.068966
84
0.66552
371
2,616
4.609164
0.431267
0.024561
0.023392
0.018713
0
0
0
0
0
0
0
0.00303
0.243119
2,616
86
85
30.418605
0.860606
0.603211
0
0
0
0
0.075964
0
0
0
0
0
0
1
0.1
false
0
0.15
0
0.35
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
045f42e7e3687860c6585444a23e801817f61e12
2,409
py
Python
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
StockExporter.py
A1eXFei/StockMarket3
01000d0731395868c4477982c6ed6c632c9a7427
[ "Apache-2.0" ]
null
null
null
# -*- coding: UTF-8 -*- import os import logging from logging.config import fileConfig from util import DatabaseUtil as dbu from util import ExportUtil as eu fileConfig("logging_config.ini") logger = logging.getLogger(__name__) class StockExporter(): def __init__(self, export_dir, stock_code, start_date, end_da...
43.8
114
0.602325
326
2,409
4.177914
0.236196
0.079295
0.066814
0.037445
0.420705
0.374449
0.311307
0.273128
0.232012
0.232012
0
0.00927
0.28352
2,409
54
115
44.611111
0.779838
0.008717
0
0.146341
0
0
0.158906
0.008971
0
0
0
0
0
1
0.04878
false
0
0.121951
0
0.195122
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
046046d511220f9b7bfb8a21f8d381f0f028cf8d
34,758
py
Python
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/plastic-evolvability-avida
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2021-09-16T14:47:43.000Z
2021-10-31T04:55:16.000Z
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
null
null
null
experiments/2021-02-18-knockouts/local/py_analysis/avida.py
amlalejini/evolutionary-consequences-of-plasticity
909d944e52a102e09dd714a8b7e0f2274c4a8072
[ "MIT" ]
2
2020-08-19T20:01:14.000Z
2020-12-21T21:24:12.000Z
from helpers import * import copy import pygame import random # Render vars inst_x = 32 inst_width = 128 arrow_width = inst_x / 2 font_size = 10 font = pygame.font.SysFont('ubuntu', size = font_size) large_font_size = 20 large_font = pygame.font.SysFont('ubuntu', size = large_font_size) # Basic Avidian class. Handles...
43.831021
101
0.466857
4,435
34,758
3.407892
0.060203
0.094019
0.047638
0.032023
0.707821
0.631203
0.562988
0.523025
0.488686
0.429999
0
0.040145
0.406611
34,758
792
102
43.886364
0.692655
0.039962
0
0.47561
0
0
0.034444
0
0.01084
0
0
0
0
1
0.020325
false
0.01084
0.00542
0
0.03523
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04611e1ebaeb1a4f4d094c70fa5acd7403c11436
366
py
Python
GaiaLab/hits/filters/__init__.py
bombrun/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
8
2018-06-21T14:36:25.000Z
2020-04-04T18:21:18.000Z
GaiaLab/hits/filters/__init__.py
MaraBucur/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
7
2018-11-26T15:01:27.000Z
2019-07-12T14:21:34.000Z
GaiaLab/hits/filters/__init__.py
MaraBucur/GaiaLab
186b39621cdc5d8fb165907107b1aaed933f0c8f
[ "MIT" ]
5
2018-07-24T07:20:47.000Z
2021-06-02T07:17:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Filters for the datasets. Natively implemented are the Kalman filter and a single-pole low-pass filter. There is also a base filter class created for subclassing to allow the creation of custom filters. """ from . import kalman from . import lowpass __author__ = "Toby ...
26.142857
72
0.740437
57
366
4.614035
0.789474
0.076046
0
0
0
0
0
0
0
0
0
0.013072
0.163934
366
13
73
28.153846
0.846405
0.672131
0
0
0
0
0.288288
0
0
0
0
0
0
1
0
false
0.25
0.5
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
1
1
0
0
0
0
2
0461b582aac0fa16e0fc7a9e87a02f30b33f771e
302
py
Python
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
5
2018-07-31T20:26:22.000Z
2019-05-07T16:36:23.000Z
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
1
2019-05-07T18:21:59.000Z
2020-09-18T10:45:39.000Z
scribbler/transformation/abstract_transformation.py
belosthomas/scribbler
fbd0bfb68cd30ca451b5d616d372b5e96ec0f8be
[ "MIT" ]
null
null
null
from abc import ABCMeta, abstractmethod class AbstractTransformation: __metaclass__ = ABCMeta @abstractmethod def transform_image(self, image): pass @abstractmethod def transform_position(self, x, y, width, height): pass @abstractmethod def generate_random(self): pass
20.133333
59
0.735099
32
302
6.71875
0.625
0.237209
0.24186
0
0
0
0
0
0
0
0
0
0.198676
302
14
60
21.571429
0.88843
0
0
0.333333
0
0
0
0
0
0
0
0
0
1
0.333333
false
0.333333
0.111111
0
0.666667
0
0
0
0
null
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
5
046277d3c02237d1299502009394a5bf6a8ac7e5
6,262
py
Python
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
40
2020-05-19T01:31:02.000Z
2022-01-28T00:25:33.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
3
2020-09-09T16:04:17.000Z
2022-03-18T00:59:39.000Z
examples/cvpr2020/reference_trainer.py
UCMerced-ML/LC-model-compression
bf12c3c1baad2bdd8d2aa3c560f8d7d0bed64a1e
[ "BSD-3-Clause" ]
8
2020-09-08T14:11:16.000Z
2022-01-28T00:25:41.000Z
#!/bin/env/python3 from types import ModuleType from lc.models import torch as model_def from utils import AverageMeter, Recorder, format_time, data_loader, compute_acc_loss import argparse import torch from torch import optim import torch.backends.cudnn as cudnn import torch.nn as nn import time import os if __name__...
44.728571
125
0.621048
770
6,262
4.848052
0.244156
0.022502
0.059202
0.016073
0.261988
0.226092
0.199839
0.167694
0.129119
0.109831
0
0.013061
0.241935
6,262
140
126
44.728571
0.773331
0.026509
0
0.118644
0
0.008475
0.173314
0.013294
0.008475
0
0
0
0
1
0.008475
false
0.008475
0.09322
0
0.110169
0.084746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0463351ecd48fd4a8685d1b1e0e86fd55a8bbaa2
1,249
py
Python
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/Generic/sync_vlans.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # Copyright (C) 2007-2015 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- from noc.core.script.base import BaseScript from noc.sa.interfaces.isyncvlans import ISyncVlans class Sc...
33.756757
92
0.552442
160
1,249
4.0875
0.35
0.045872
0.027523
0.033639
0.103976
0.055046
0.055046
0
0
0
0
0.013771
0.244195
1,249
36
93
34.694444
0.679025
0.180945
0
0
0
0
0.083661
0
0
0
0
0
0
1
0.041667
false
0
0.083333
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
0463d410530853a1c2fe7284a9f305e2222bedae
1,875
py
Python
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
Day_21/part2.py
Uklusi/AdventOfCode2021
3d22ace832bfd6c9855b2ebad3bf7f10c4751982
[ "MIT" ]
null
null
null
from types import new_class from AoCUtils import * result = 0 partNumber = "2" writeToLog = True if writeToLog: logFile = open("log" + partNumber + ".txt", "w") else: logFile = "stdout" printLog = printLogFactory(logFile) start1 = 8 start2 = 9 # Example # start1 = 4 # start2 = 8 score1 = 0 score2 = 0 di...
21.067416
95
0.5488
227
1,875
4.528634
0.356828
0.046693
0.027237
0.019455
0.036965
0.036965
0
0
0
0
0
0.07613
0.327467
1,875
88
96
21.306818
0.739096
0.063467
0
0.092308
0
0
0.014849
0
0
0
0
0
0
1
0
false
0
0.030769
0
0.030769
0.030769
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
046764af8b8febc01686b2caf4cec52bcb012ff6
20,510
py
Python
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
22
2021-01-21T19:57:39.000Z
2022-03-14T02:34:01.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
3
2021-05-20T16:34:21.000Z
2021-06-23T19:54:32.000Z
dpytools/menus.py
ComfortablyCoding/dpytools
e5588bc1795543eddb94c3d3a58a9ea9668740a0
[ "MIT" ]
7
2021-04-28T04:18:09.000Z
2021-06-23T00:20:06.000Z
# -*- coding: utf-8 -*- """ This module holds functions for displaying different kinds of menus. All menus are reaction based. """ import asyncio from copy import copy from inspect import isawaitable from typing import List, Optional, Union, Callable import discord from discord import Embed from discord.ext import c...
35.982456
120
0.570697
2,392
20,510
4.777174
0.150502
0.017765
0.01934
0.012252
0.30638
0.274788
0.21668
0.205303
0.175199
0.136781
0
0.005776
0.341589
20,510
569
121
36.045694
0.840196
0.10941
0
0.26935
0
0
0.039958
0.00253
0
0
0
0
0
1
0.037152
false
0.009288
0.034056
0.012384
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
046b23b296bfcedfcca9aaf23e3a6837b6efe373
9,706
py
Python
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
formulator/models.py
Cahersan/django-formulator
0b7552f9b0c11b83568ad37350c14a111694a931
[ "MIT" ]
null
null
null
from __future__ import unicode_literals import re import importlib from django.utils.translation import ugettext_lazy as _ from django.db import models from django.utils.encoding import python_2_unicode_compatible from django.utils.functional import cached_property from model_utils import Choices from collections im...
35.166667
119
0.637441
1,143
9,706
5.247594
0.218723
0.022508
0.039013
0.052017
0.204235
0.147049
0.106536
0.087362
0.030677
0.014338
0
0.007522
0.274057
9,706
275
120
35.294545
0.843741
0.084381
0
0.167568
0
0
0.170196
0.003737
0
0
0
0
0
1
0.075676
false
0
0.102703
0.037838
0.497297
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
046f7ca774853f5d3eb7867b83c71d1422a4ad73
36
py
Python
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
1
2021-09-14T16:30:44.000Z
2021-09-14T16:30:44.000Z
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
22
2021-02-26T06:35:00.000Z
2021-07-16T12:37:58.000Z
deliverable1/test_case_05/__init__.py
TrackerSB/IEEEAITestChallenge2021
836f0cfa39a3e25a8149a9adb77c3a8270417a39
[ "MIT" ]
2
2021-03-10T19:50:28.000Z
2021-08-23T08:02:36.000Z
from .test_case_05 import TestCase05
36
36
0.888889
6
36
5
1
0
0
0
0
0
0
0
0
0
0
0.121212
0.083333
36
1
36
36
0.787879
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
6
046fd9edd934bed85046c10ef5960e82ca8128c6
2,686
py
Python
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
src/pywink/test/devices/powerstrip_test.py
vickyg3/python-wink
1b9f4acd22a6784023ae57c2ff0ef4e26b9a38f7
[ "MIT" ]
null
null
null
import json import os import unittest from pywink.api import get_devices_from_response_dict from pywink.devices import types as device_types class PowerstripTests(unittest.TestCase): def test_state_powerstrip_state_should_be_true_if_one_outlet_is_true(self): with open('{}/api_responses/pivot_power_geniu...
43.322581
115
0.70551
339
2,686
5.218289
0.162242
0.142453
0.099491
0.117581
0.750141
0.735444
0.680045
0.680045
0.680045
0.680045
0
0.015131
0.188012
2,686
61
116
44.032787
0.795965
0
0
0.62
0
0
0.065525
0.059568
0
0
0
0
0.26
1
0.08
false
0
0.1
0
0.2
0
0
0
0
null
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
04700730113a9f3f7622d5a4ec5c89cef15b8e21
963
py
Python
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
null
null
null
src/python/pyLCIO/io/StdHepReader.py
jstrube/lcio
763eb323df33d3b0c4240e6b6feb7d0a27b790d5
[ "BSD-3-Clause" ]
4
2020-08-26T23:35:37.000Z
2020-09-22T21:13:25.000Z
src/python/pyLCIO/io/StdHepReader.py
JeffersonLab/hps-lcio
b83447dd8189d5f541601343066f8e3b4621f4ec
[ "BSD-3-Clause" ]
1
2020-08-26T19:31:19.000Z
2020-08-26T19:31:19.000Z
''' Created on Dec 4, 2012 @author: <a href="mailto:christian.grefe@cern.ch">Christian Grefe</a> ''' import os from pyLCIO.io.Reader import Reader from pyLCIO import EVENT, IMPL, UTIL class StdHepReader( Reader ): ''' Class to hold an LCStdHepRdr object ''' def __init__( self, fileName=None): ''' C...
25.342105
71
0.589823
102
963
5.372549
0.54902
0.104015
0
0
0
0
0
0
0
0
0
0.010526
0.30945
963
37
72
26.027027
0.813534
0.185877
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0.142857
0
0.428571
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
0470d58f55c3b1b314cc0262448436f7712baf8d
6,440
py
Python
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
test/deposit.py
DAism2019/ERCs
f5cfec6b5700685b5515c8106a373b5f71b429c6
[ "CC0-1.0" ]
null
null
null
from contract import Forge,Validator,TOH,NDAO from privateKey import my_address, private_key # from web3.auto.infura.rinkeby import w3 from web3.auto import w3 import time # 引入time模块 another = "0x2E8b222CFac863Ec6D3446c78fD46aAEA289A9fb" another_privateKey = "078e9ed558a9afd1e7e27b9884fbcc95f8fa406bd02de3a2a19fbac401...
29.406393
92
0.678416
695
6,440
6.151079
0.185612
0.032749
0.016374
0.047485
0.549942
0.511345
0.499415
0.421053
0.382924
0.382924
0
0.033462
0.197205
6,440
218
93
29.541284
0.793424
0.031832
0
0.605882
0
0
0.075563
0.017042
0
0
0.006752
0
0.017647
1
0.082353
false
0
0.023529
0
0.129412
0.182353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0470f24c34be36437ebfed026dd28c5941c7d5c4
815
py
Python
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
4
2020-09-07T15:39:10.000Z
2022-03-15T03:48:34.000Z
probe/influx.py
phenobarbital/asyncdb
d4ea3d6b60436afce758abbcd632164a6ac6fa0c
[ "Apache-2.0", "BSD-3-Clause" ]
394
2020-10-08T08:05:54.000Z
2022-03-31T10:28:27.000Z
probe/influx.py
jelitox/asyncdb
c5cad9857baa14fa949d34fa29406024d68d5735
[ "Apache-2.0", "BSD-3-Clause" ]
2
2020-09-07T15:38:56.000Z
2021-09-26T03:52:27.000Z
from asyncdb import AsyncDB, AsyncPool import asyncio loop = asyncio.get_event_loop() asyncio.set_event_loop(loop) params = { "host": "127.0.0.1", "port": "8086", "database": 'testdb', "user": "influxdata", "password": "12345678" } DRIVER='influx' async def test_connect(driver, params, event_lo...
22.638889
67
0.656442
103
815
4.990291
0.514563
0.070039
0.066148
0.089494
0
0
0
0
0
0
0
0.027821
0.206135
815
35
68
23.285714
0.766615
0
0
0
0
0
0.121472
0
0
0
0
0
0
1
0
false
0.035714
0.071429
0
0.071429
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0471e20c45f11d47b6540524d445d34d138a76b6
1,925
py
Python
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
2
2018-05-13T09:10:57.000Z
2019-03-06T08:10:40.000Z
packages/director-sdk/python/test/test_users_api.py
oetiker/osparc-simcore
00918bf8f000840cc70cc49458780a55858d52ea
[ "MIT" ]
null
null
null
# coding: utf-8 """ Director API This is the oSparc's director API # noqa: E501 OpenAPI spec version: 0.1.0 Contact: support@simcore.com Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import unittest import simcore_director_sdk from simcore_director_s...
25
101
0.677922
244
1,925
5.106557
0.348361
0.057785
0.05297
0.072231
0.430979
0.394864
0.276083
0.150883
0
0
0
0.021618
0.255065
1,925
76
102
25.328947
0.84728
0.481039
0
0.291667
1
0
0.009615
0
0
0
0
0
0
1
0.333333
false
0.291667
0.208333
0
0.583333
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
1
0
0
0
null
0
0
0
0
0
1
0
1
0
0
1
0
0
4
04723df89eebb8cfa4f96fd91422e906e34ae72a
9,953
py
Python
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
2
2018-01-18T13:22:29.000Z
2018-02-03T13:10:20.000Z
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
lookatweb/rules/domains.py
ivbeg/lookatweb
b98e3ebd29c00e2f718c3392bb31b7202aa82a99
[ "BSD-3-Clause" ]
null
null
null
from .consts import * L1_DOMAIN_RULES = [ {'type' : RULETYPE_EQUAL, 'text' : 'ru', 'action' : ACTION_FOLLOW, 'matcherkey' : 'r:net:domains_ru', 'entities' : [ {'name' : 'geo:ru:country/russia'}, ] }, {'type' : RULETYPE_EQUAL, 'text' : 'su', 'action' : ACTION_FOLLOW, 'matcherkey'...
27.193989
107
0.437054
798
9,953
5.343358
0.140351
0.185741
0.263133
0.325047
0.741557
0.619606
0.577158
0.540572
0.474672
0.278846
0
0.001091
0.35537
9,953
365
108
27.268493
0.663498
0.003818
0
0.350282
0
0
0.346562
0.119863
0
0
0
0
0
1
0
false
0
0.002825
0
0.002825
0
0
0
0
null
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
2
0472705f71b9f473bebe34fc4fa5caeef5f89456
17,557
py
Python
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
1
2020-05-27T04:24:36.000Z
2020-05-27T04:24:36.000Z
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
UI.py
Abdur-rahmaanJ/PygameUI
91139272f41558176ea105f7f0b613aef9a243f5
[ "Apache-2.0" ]
null
null
null
#Ui Widgets for pygame #this is supposed to make it as easy as possible to make and use buttons and other widgets #Documentation at 'https://github.com/TheBigKahuna353/PygameUI' #All made by Jordan Withell import pygame #make screen quick def Window(w = 500, h = 500): pygame.init() return pygame.dis...
43.8925
361
0.566327
2,382
17,557
4.054996
0.103694
0.047831
0.038824
0.027539
0.414846
0.330676
0.278083
0.249094
0.197743
0.157987
0
0.01802
0.317252
17,557
400
362
43.8925
0.787687
0.111466
0
0.288961
0
0
0.020593
0
0
0
0
0
0
1
0.087662
false
0.003247
0.003247
0.012987
0.159091
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
04763099553a3f60ab99174135b7fe8f42971ff3
2,108
py
Python
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
4
2021-06-30T19:58:59.000Z
2021-07-27T13:43:49.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
2
2021-07-10T16:08:25.000Z
2021-07-12T02:15:40.000Z
blurple/io/reaction.py
jeremytiki/blurple.py
c8f65955539cc27be588a06592b1c81c03f59c37
[ "MIT" ]
3
2021-07-08T03:00:40.000Z
2021-09-08T19:57:50.000Z
import discord import blurple.io as io class ReactionAddBasic(io.Reply): """An unopinionated, lower level class to wait for a user to add a reaction.""" event = "raw_reaction_add" async def on_reply_init(self, message: discord.Message): """Sepcialized to pass message object.""" self.mess...
37.642857
97
0.675047
266
2,108
5.255639
0.296992
0.062947
0.028612
0.042918
0.418455
0.312589
0.23319
0.23319
0.23319
0.170243
0
0
0.225332
2,108
55
98
38.327273
0.854868
0.202087
0
0.222222
0
0
0.024982
0
0
0
0
0
0
1
0.074074
false
0
0.074074
0
0.481481
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
047760c3a98e8a5a4320f0edc7bf1725194eacc7
341
py
Python
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
tasks/migrations/0005_alter_takeclass_unique_together.py
MUST-Quick-Fry/Face-Recognition-Sign-In-System
d1298f6c3d6f7da288fa736f8785d93fe1778703
[ "MIT" ]
null
null
null
# Generated by Django 3.2.7 on 2021-11-14 16:14 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('tasks', '0004_takeclass'), ] operations = [ migrations.AlterUniqueTogether( name='takeclass', unique_together={('sid', 'cid'...
18.944444
47
0.583578
34
341
5.794118
0.823529
0
0
0
0
0
0
0
0
0
0
0.078189
0.28739
341
17
48
20.058824
0.73251
0.131965
0
0
1
0
0.115646
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
047794e8835f067229c32824232b6e2929ad5189
824
py
Python
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
1
2019-01-09T22:05:03.000Z
2019-01-09T22:05:03.000Z
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
client/events.py
adamstallard/EtherBank
d5b24034d9416b6b61efb9f8cb8699e63cf322e9
[ "BSD-2-Clause" ]
null
null
null
from web3.auto import w3 import time # from infura import * import config import json with open("../build/contracts/EtherBank.json") as f: ether_bank_json = json.load(f) ether_bank_contract = w3.eth.contract( address=config.ETHER_BANK_ADDR, abi=ether_bank_json['abi'] ) accounts = w3.eth.accounts def han...
23.542857
72
0.71966
111
824
5.126126
0.495496
0.094903
0.035149
0.077329
0.091388
0
0
0
0
0
0
0.011645
0.166262
824
34
73
24.235294
0.816594
0.024272
0
0
0
0
0.09601
0.041147
0
0
0
0
0
1
0.08
false
0
0.16
0
0.24
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
0477d1fec515526460f168e4daf0936536d74afc
14,316
py
Python
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
1
2021-12-20T14:19:10.000Z
2021-12-20T14:19:10.000Z
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
train.py
HuipengXu/MixMatch-PyTorch
026a733de773a58e361f66ee48dc150d23ba9754
[ "MIT" ]
null
null
null
import argparse import os import shutil import time import random import json import numpy as np import torch import torch.nn as nn import torch.nn.parallel import torch.backends.cudnn as cudnn import torch.optim as optim from torch.utils.data import DataLoader from torchtext.vocab import GloVe from progress.bar imp...
38.074468
194
0.634325
1,902
14,316
4.564669
0.17245
0.017623
0.033287
0.008639
0.297742
0.229095
0.173923
0.147892
0.101359
0.092375
0
0.011518
0.241897
14,316
375
195
38.176
0.788446
0.036323
0
0.143369
0
0.007168
0.113775
0
0
0
0
0
0.003584
1
0.02509
false
0
0.0681
0.003584
0.111111
0.046595
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0477db777b9cee4f58f0a5582459326ea8dada3b
1,221
py
Python
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
87
2021-11-08T10:58:26.000Z
2022-03-31T19:02:47.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
80
2021-11-07T04:46:42.000Z
2022-03-31T23:58:00.000Z
api/anubis/utils/visuals/users.py
AnubisLMS/Anubis
2f66ed2e0518422832816615d6f948239c081400
[ "MIT" ]
15
2021-11-07T17:02:21.000Z
2022-03-28T02:04:16.000Z
from datetime import datetime, timedelta from anubis.utils.cache import cache from anubis.utils.data import is_debug, is_job from anubis.utils.usage.users import get_platform_users from anubis.utils.visuals.files import convert_fig_bytes from anubis.utils.visuals.watermark import add_watermark @cache.memoize(timeout...
28.395349
70
0.673219
181
1,221
4.425414
0.458564
0.062422
0.093633
0.054931
0
0
0
0
0
0
0
0.020683
0.208026
1,221
42
71
29.071429
0.807653
0.026208
0
0
0
0
0.095198
0
0
0
0
0
0
1
0.033333
false
0
0.233333
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
04796e79a9664545eb63e6ba84915a3f7ac3d290
438
py
Python
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
heatingcontrolstate.py
szbeni/heatingcontroller
624538fdb8ddb88992b1dc5240b5caa7f7380255
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import sys sys.argv[1:] if len(sys.argv) < 2: print("Off") exit() inp = sys.argv[1] if(inp == '00000'): print ("Off") elif(inp == '10000'): print ("Gas Auto Fan") elif(inp == '01000'): print ("Gas Slow Fan"); elif(inp == '00100'): print ("Fan"); elif(inp == '00010'): ...
16.846154
33
0.538813
64
438
3.6875
0.4375
0.148305
0.169492
0.084746
0
0
0
0
0
0
0
0.103245
0.226027
438
25
34
17.52
0.59292
0.038813
0
0.1
0
0
0.22619
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.4
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
047a04459c8afd589d167d2faedd9e21c93130bd
420
py
Python
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
31
2021-04-06T16:20:30.000Z
2022-02-16T08:29:24.000Z
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
3
2021-05-18T03:49:27.000Z
2022-01-05T01:50:22.000Z
language_bert/losses/__init__.py
gazalpatel/Language_BERT
92e4068c5c7c7e77244fb7f6158bb36bf1b61eed
[ "Apache-2.0" ]
5
2021-04-07T08:35:06.000Z
2022-03-08T08:33:05.000Z
from .CosineSimilarityLoss import * from .SoftmaxLoss import * from .MultipleNegativesRankingLoss import * from .TripletLoss import * from .MSELoss import * from .ContrastiveLoss import * from .OnlineContrastiveLoss import * from .BatchHardTripletLoss import * from .BatchHardSoftMarginTripletLoss import * from .BatchS...
30
45
0.82619
36
420
9.638889
0.388889
0.317003
0
0
0
0
0
0
0
0
0
0
0.116667
420
13
46
32.307692
0.93531
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
4
047cb5465f0509b508c436ea248be53acdef1e9f
2,876
py
Python
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
114
2019-03-28T06:59:46.000Z
2022-03-28T21:22:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
3
2019-04-11T01:52:56.000Z
2019-09-01T22:52:23.000Z
migrations/versions/b26b8edbe29a_.py
bbhunter/shadow-workers
88619f6ac685f89ae697b4bc0dc4c04e679535d0
[ "MIT" ]
31
2019-03-29T15:43:43.000Z
2021-11-25T16:33:49.000Z
"""empty message Revision ID: b26b8edbe29a Revises: Create Date: 2018-11-28 21:01:53.633579 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'b26b8edbe29a' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
37.842105
97
0.665855
366
2,876
5.136612
0.221311
0.102128
0.151596
0.189894
0.695213
0.668085
0.459574
0.421277
0.374468
0.347872
0
0.014604
0.142907
2,876
75
98
38.346667
0.748073
0.098401
0
0.280702
0
0
0.181534
0.018779
0
0
0
0
0
1
0.035088
false
0
0.035088
0
0.070175
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
047d17f6bf4f854c158900b4950a6ed69d11af25
2,919
py
Python
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
user/admin.py
kthaisse/website
be0d0e0763ae2a6b8351c08b432229eae9521f1d
[ "MIT" ]
null
null
null
from django.contrib import admin, messages from django.contrib.auth.models import Group from app.settings import GROUP_BY_DIVISION_NAME from user.models import Division, History, Role, Team, User from user.utils import send_imported, send_slack def send_welcome(modeladmin, request, users): for user in users: ...
28.067308
80
0.627612
337
2,919
5.204748
0.293769
0.036488
0.059863
0.076967
0.285633
0.165336
0.129989
0.078677
0
0
0
0
0.231929
2,919
103
81
28.339806
0.782337
0
0
0.188235
0
0
0.224735
0.023296
0
0
0
0
0
1
0.035294
false
0.011765
0.070588
0
0.435294
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
047d1fce76502daee3bd9c513a2ef6f8cb1425bd
11,584
py
Python
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
29
2021-07-27T15:59:31.000Z
2022-03-24T17:22:17.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
46
2021-07-29T08:47:21.000Z
2022-03-28T01:59:24.000Z
chassisml-sdk/chassisml/chassisml.py
modzy/chassis
a147411c5a27dfee371b75d4cba8d12171d89255
[ "Apache-2.0" ]
2
2021-12-06T20:33:38.000Z
2022-03-11T15:47:48.000Z
#!/usr/bin/env python # -*- coding utf-8 -*- import _io import os import time import json import requests import urllib.parse import tempfile import shutil import mlflow import base64 import string import numpy as np from chassisml import __version__ from ._utils import zipdir,fix_dependencies,write_modzy_yaml,NumpyEn...
41.224199
127
0.610238
1,404
11,584
4.770655
0.165954
0.041654
0.035533
0.018812
0.496268
0.461332
0.397283
0.372947
0.333831
0.299492
0
0.002878
0.280041
11,584
280
128
41.371429
0.80024
0.05827
0
0.314554
0
0
0.121037
0.016971
0
0
0
0
0
1
0.061033
false
0.00939
0.065728
0
0.201878
0.046948
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
047ffe9066fea69b5d6a121fa7e090201689c5c8
2,659
py
Python
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
null
null
null
test/cli/init_command/location_files_case/test_location_files.py
openeuler-mirror/pkgship
5aaa4953023fde8ff03892fe5608f0711a26a942
[ "MulanPSL-1.0" ]
1
2021-11-20T00:10:53.000Z
2021-11-20T00:10:53.000Z
#!/usr/bin/python3 # ****************************************************************************** # Copyright (c) Huawei Technologies Co., Ltd. 2020-2020. All rights reserved. # licensed under the Mulan PSL v2. # You can use this software according to the terms and conditions of the Mulan PSL v2. # You may obtain a c...
39.686567
98
0.616773
332
2,659
4.686747
0.391566
0.042416
0.044987
0.044987
0.382391
0.298201
0.219794
0.219794
0.179949
0.105398
0
0.008142
0.214742
2,659
66
99
40.287879
0.737069
0.303498
0
0.210526
0
0
0.126957
0.034676
0
0
0
0
0.052632
1
0.131579
false
0
0.105263
0
0.315789
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
04802ec7cded7ac0ac872783dbfebaa1d973ca5f
2,667
py
Python
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
1
2019-10-31T08:36:29.000Z
2019-10-31T08:36:29.000Z
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
apt/transports/filesytem.py
javajawa/debian-repo-remux
b6626b268acd1743208d8a399f8c975316cfbc80
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ APT transport for a local OS accessible filesystem """ import os.path import urllib.parse from typing import IO from apt.transport import Transport from apt.transport.exceptions import URIMismatchError from apt.transport.directorylisting import DirectoryListing cl...
24.694444
66
0.594301
305
2,667
5.177049
0.272131
0.062698
0.025332
0.063331
0.528816
0.516783
0.516783
0.516783
0.462318
0.462318
0
0.001075
0.302587
2,667
107
67
24.925234
0.847849
0.229096
0
0.410256
0
0
0.071116
0
0
0
0
0
0
1
0.102564
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0482d084a543e80e3312d3162660c7d16901c30c
7,213
py
Python
plugin/core.py
rohankumardubey/plux
c3eae790618ef55ac41541f85fffb0c843f07308
[ "Apache-2.0" ]
13
2022-01-16T20:00:20.000Z
2022-03-30T20:48:08.000Z
plugin/core.py
rohankumardubey/plux
c3eae790618ef55ac41541f85fffb0c843f07308
[ "Apache-2.0" ]
1
2022-03-02T22:15:21.000Z
2022-03-03T09:58:45.000Z
plugin/core.py
localstack/plux
a412ab0a0d7d17c3b5e1f560b7b31dc1876598f7
[ "Apache-2.0" ]
null
null
null
import abc import functools import inspect from typing import Any, Callable, Dict, List, Tuple, Type, Union class PluginException(Exception): def __init__(self, message, namespace: str = None, name: str = None) -> None: super().__init__(message) self.namespace = namespace self.name = name ...
31.225108
117
0.652572
882
7,213
5.202948
0.256236
0.030508
0.018305
0.031379
0.15341
0.107867
0.079756
0.022227
0.022227
0.022227
0
0
0.267018
7,213
230
118
31.36087
0.867978
0.350478
0
0.274194
0
0
0.023141
0
0
0
0
0.008696
0
1
0.201613
false
0.056452
0.032258
0.048387
0.491935
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
1
0
1
0
0
0
0
0
2