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
3e1d48c495916682c24185ec98ad5c1a721ee5fb
525
py
Python
visualqc/__defacing__.py
raamana/corticalqa
8bca13b2c624e7a230d0b0a5a6539357af641163
[ "Apache-2.0" ]
54
2018-02-05T14:50:57.000Z
2022-02-04T10:24:35.000Z
visualqc/__defacing__.py
shannyfoo/visualqc
606d2b8770e619f8d990faeae24032bf4b152f29
[ "Apache-2.0" ]
45
2018-02-09T02:46:32.000Z
2022-03-30T22:36:59.000Z
visualqc/__defacing__.py
shannyfoo/visualqc
606d2b8770e619f8d990faeae24032bf4b152f29
[ "Apache-2.0" ]
10
2018-02-09T19:46:27.000Z
2022-02-17T09:44:36.000Z
from sys import version_info if version_info.major > 2: from visualqc import defacing from warnings import catch_warnings, filterwarnings else: raise NotImplementedError('visualqc_defacing requires Python 3 or higher!') def main(): """Entry point.""" # disabling all not severe warnings with ...
22.826087
79
0.710476
57
525
6.298246
0.649123
0.061281
0.150418
0
0
0
0
0
0
0
0
0.004773
0.201905
525
22
80
23.863636
0.852029
0.089524
0
0
0
0
0.139831
0
0
0
0
0
0
1
0.076923
true
0
0.230769
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
1
0
0
0
0
0
0
1
3e22a1162e721ca1a51ccb1b37ccfb1cdc11bf0c
1,250
py
Python
samples/nta_change_settings.py
john-westcott-iv/orionsdk-python
5aad8a2a7997ef06d65cbcfdb0b221ed4459ff05
[ "Apache-2.0" ]
177
2016-04-05T17:29:46.000Z
2022-03-29T20:25:33.000Z
samples/nta_change_settings.py
superadm1n/orionsdk-python
6f341d4e84d1a1275f904105d6e04c6e89678475
[ "Apache-2.0" ]
51
2016-05-31T17:28:06.000Z
2022-03-31T17:13:07.000Z
samples/nta_change_settings.py
superadm1n/orionsdk-python
6f341d4e84d1a1275f904105d6e04c6e89678475
[ "Apache-2.0" ]
79
2016-02-18T00:31:37.000Z
2022-03-11T21:07:25.000Z
from __future__ import print_function import re import requests import pprint from orionsdk import SwisClient def main(): # Connect to SWIS server = 'localhost' username = 'admin' password = '' swis = SwisClient(server, username, password) # List available Orion Settings # Uncomment if you...
39.0625
207
0.7208
154
1,250
5.668831
0.402597
0.082474
0.054983
0.072165
0.492554
0.390607
0.390607
0.390607
0.390607
0.390607
0
0.003902
0.18
1,250
31
208
40.322581
0.847805
0.264
0
0
0
0.045455
0.346112
0
0
0
0
0
0
1
0.045455
false
0.090909
0.227273
0
0.272727
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
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
3e256c62c657697142ee16103a119fb574f99cb7
777
py
Python
src/utils/common_utils.py
victen18/simple-dvc-project-vikram
c3d9458f257d34ebb8cfba410c1e3d11a13e576e
[ "MIT" ]
null
null
null
src/utils/common_utils.py
victen18/simple-dvc-project-vikram
c3d9458f257d34ebb8cfba410c1e3d11a13e576e
[ "MIT" ]
null
null
null
src/utils/common_utils.py
victen18/simple-dvc-project-vikram
c3d9458f257d34ebb8cfba410c1e3d11a13e576e
[ "MIT" ]
null
null
null
import yaml import os import shutil import json import logging def read_params(config_path: str) -> dict: with open(config_path) as yaml_file: config = yaml.safe_load(yaml_file) return config def clean_prev_dirs_if_exists(dir_path: str): if os.path.isdir(dir_path): shutil.rmtree(dir_path...
22.2
63
0.680824
125
777
4.008
0.464
0.06986
0.047904
0.035928
0.091816
0.091816
0.091816
0
0
0
0
0.001629
0.209781
777
34
64
22.852941
0.814332
0
0
0
0
0
0.003876
0
0
0
0
0
0
1
0.208333
false
0
0.208333
0
0.458333
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
0
0
0
1
3e2d2ee73f0a769215715c393db92896f8c33337
3,117
py
Python
digitalClass/courses/models.py
digitalClass/serverDeploy
785573f215f1e564809ad7987330a40e33aa553e
[ "BSD-3-Clause" ]
1
2016-07-14T13:51:34.000Z
2016-07-14T13:51:34.000Z
digitalClass/courses/models.py
digitalClass/serverDeploy
785573f215f1e564809ad7987330a40e33aa553e
[ "BSD-3-Clause" ]
null
null
null
digitalClass/courses/models.py
digitalClass/serverDeploy
785573f215f1e564809ad7987330a40e33aa553e
[ "BSD-3-Clause" ]
null
null
null
#coding:utf-8 from __future__ import unicode_literals from django.utils.encoding import python_2_unicode_compatible from django.db import models from users import models as users_models from django.forms import ModelForm,Textarea from django.core.exceptions import ValidationError import gettext from filetype import * ...
33.880435
97
0.720885
384
3,117
5.658854
0.3125
0.075932
0.033134
0.025771
0.336861
0.277036
0.277036
0.212149
0.212149
0.123332
0
0.011738
0.152711
3,117
91
98
34.252747
0.811056
0.026949
0
0.346667
0
0
0.086942
0
0
0
0
0
0
1
0.08
false
0
0.106667
0.066667
0.76
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
1
0
0
1
3e2e9551a37bb4ccefee93bd334c40859b89fb1a
6,141
py
Python
_20170617/conservatives_count.py
nslobodchuk/twitter-data
803cd1bcd9dca2e11e0e466e65cc65a718396714
[ "MIT" ]
null
null
null
_20170617/conservatives_count.py
nslobodchuk/twitter-data
803cd1bcd9dca2e11e0e466e65cc65a718396714
[ "MIT" ]
null
null
null
_20170617/conservatives_count.py
nslobodchuk/twitter-data
803cd1bcd9dca2e11e0e466e65cc65a718396714
[ "MIT" ]
null
null
null
from pymongo import MongoClient import datetime import snap import csv client = MongoClient() db = client.twitter_data tweets = db.tweets g = snap.TNGraph.New() user_dictionary = {} user_array = [] index = [0] words = ["conservative", "gop", "republican", "moderate", "...
40.94
109
0.598762
697
6,141
4.928264
0.1033
0.069869
0.178166
0.186317
0.772344
0.577293
0.481805
0.359243
0.359243
0.337118
0
0.010266
0.254519
6,141
149
110
41.214765
0.740061
0
0
0.151515
0
0
0.307116
0
0
0
0
0
0
1
0.015152
false
0
0.030303
0
0.060606
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
3e2ff56f299966ba388ef8258259c6f11c361085
535
py
Python
scripting/plots/plot-con-heat-NDE.py
znes/OSeEM-DE
74b24f8921eb14ccac12c8329e39d67a7d45319c
[ "BSD-3-Clause" ]
1
2022-02-19T16:31:15.000Z
2022-02-19T16:31:15.000Z
scripting/plots/plot-con-heat-NDE.py
znes/OSeEM-DE
74b24f8921eb14ccac12c8329e39d67a7d45319c
[ "BSD-3-Clause" ]
null
null
null
scripting/plots/plot-con-heat-NDE.py
znes/OSeEM-DE
74b24f8921eb14ccac12c8329e39d67a7d45319c
[ "BSD-3-Clause" ]
2
2021-02-11T11:35:54.000Z
2021-11-10T05:41:32.000Z
#Update the directory paths accordingly import plotly.offline as offline from oemof.tabular.tools.plots_heat_NDE import hourly_plot name = "con-heat-NDE" offline.plot( hourly_plot( name, "heat_Bus_NDE", '/home/dozeummam/Insync/mnimaruf@gmail.com/Google Drive/projects/models/OSeEM-DE/results...
35.666667
142
0.734579
74
535
5.202703
0.554054
0.054545
0.072727
0.14026
0.384416
0.384416
0.384416
0.384416
0.384416
0.384416
0
0
0.147664
535
14
143
38.214286
0.844298
0.071028
0
0
0
0.166667
0.516129
0.429435
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3e38006dbf005bc279367318a08c00cbe4fbfd6b
4,848
py
Python
Numpy/numpy1.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
2
2021-05-27T19:13:02.000Z
2021-06-02T13:26:35.000Z
Numpy/numpy1.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
null
null
null
Numpy/numpy1.py
ALDOR99/Python
a76f37bb3e573cd3fdcfc19f4f73494cafa9140e
[ "MIT" ]
1
2021-06-07T18:17:35.000Z
2021-06-07T18:17:35.000Z
# -*- coding: utf-8 -*- """ Created on Sat Apr 24 22:57:01 2021 @author: ali_d """ ## Numpy import numpy as np #python listy # lst = [1,2,3,4,5,6,7,8,9] # #numy array # a = np.array(lst) # print(a) # print(type(a)) # print() # py_multi = [[1,2,3],[4,5,6],[7,8,9]] # np_multi = np_array.reshape(3,3) np_array = np....
14.690909
67
0.670998
731
4,848
4.425445
0.233926
0.061824
0.037094
0.023184
0.107264
0.095518
0.048841
0.015456
0.015456
0.009892
0
0.087979
0.123144
4,848
330
68
14.690909
0.672783
0.169554
0
0.372449
0
0
0.015853
0
0
0
0
0
0
1
0
false
0
0.02551
0
0.02551
0.602041
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
3e3e6ea42c7bf1c04443b7133fecb3847089a174
658
py
Python
Amazon/ColName.py
jsourabh1/6Days6Company
65899c7c9d4734bd2151a9b54de633b1709ce583
[ "MIT" ]
1
2022-01-11T02:04:57.000Z
2022-01-11T02:04:57.000Z
Amazon/ColName.py
jsourabh1/6Days6Company
65899c7c9d4734bd2151a9b54de633b1709ce583
[ "MIT" ]
null
null
null
Amazon/ColName.py
jsourabh1/6Days6Company
65899c7c9d4734bd2151a9b54de633b1709ce583
[ "MIT" ]
null
null
null
alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' class Solution: def colName(self, num): global alpha # your code here if num < 26: return alpha[num-1] else: q, r = num//26, num % 26 if r == 0: if q == 1: return alpha[r-...
18.8
57
0.475684
82
658
3.817073
0.45122
0.047923
0.067093
0.070288
0.185304
0.185304
0.185304
0.185304
0
0
0
0.036176
0.411854
658
34
58
19.352941
0.77261
0.12614
0
0.15
0
0
0.045694
0.045694
0
0
0
0.029412
0
1
0.05
false
0
0
0
0.3
0.05
0
0
0
null
0
0
0
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
3e40a7cd4aaf63fa63f7969b194b75fbaf7ea9fb
405
py
Python
MxForum/apps/users/urls.py
mtianyan/TornadoForum
5698dd5cc0e399d3d0ec53e159b8e1f1cddfbe71
[ "Apache-2.0" ]
2
2019-02-01T00:59:19.000Z
2019-02-11T10:50:43.000Z
MxForum/apps/users/urls.py
mtianyan/TornadoForum
5698dd5cc0e399d3d0ec53e159b8e1f1cddfbe71
[ "Apache-2.0" ]
null
null
null
MxForum/apps/users/urls.py
mtianyan/TornadoForum
5698dd5cc0e399d3d0ec53e159b8e1f1cddfbe71
[ "Apache-2.0" ]
1
2020-10-12T06:15:17.000Z
2020-10-12T06:15:17.000Z
from tornado.web import url from apps.users.handler import SmsHandler, RegisterHandler, LoginHandler, ProfileHandler, HeadImageHandler, ChangePasswordHandler url_pattern = ( url("/code/", SmsHandler), url("/register/", RegisterHandler), url("/login/", LoginHandler), url("/info/", ProfileHandler), u...
33.75
129
0.723457
36
405
8.111111
0.583333
0
0
0
0
0
0
0
0
0
0
0
0.133333
405
11
130
36.818182
0.831909
0
0
0
0
0
0.125926
0
0
0
0
0
0
1
0
false
0.2
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3e4397a2326a2533b7bd25a37c436d9a4e5d16c5
1,174
py
Python
describe/examples/aseatoms.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
2
2018-10-10T09:32:34.000Z
2019-03-28T08:42:31.000Z
describe/examples/aseatoms.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
describe/examples/aseatoms.py
MadsAW/machine-learning-on-materials
6101c7e3d12be54b12391c78442294198a39cc9b
[ "MIT" ]
null
null
null
""" Demonstrates the use of the ASE library to load and create atomic configurations that can be used in the describe package. """ import os os.chdir('..') import ase.io from describe.descriptors import MBTR from describe.descriptors import CoulombMatrix from describe.descriptors import SineMatrix from describe.util...
34.529412
94
0.781942
182
1,174
4.945055
0.5
0.053333
0.04
0.096667
0.044444
0
0
0
0
0
0
0.023233
0.120102
1,174
33
95
35.575758
0.848015
0.431005
0
0
0
0
0.084098
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
3e4408ccc1944b2314adbe4828cdf345edcdd816
6,087
py
Python
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
doublyLinkedList.py
nemodesouza/ed-trabalho-01-1-doubly-linked-list
b86689a52837ee7d9cb7a6cde7a420ffeb809fb6
[ "CC0-1.0" ]
null
null
null
from cursor import Cursor from node import Node class DoublyLinkedList: def __init__(self, limit=None): self.__cursor = Cursor() self.__limit = None self.__elements = 0 @property def element(self): return self.__elements def accessCurrent(self): """(elemento) a...
33.629834
91
0.55676
612
6,087
5.269608
0.156863
0.164341
0.210853
0.093023
0.55876
0.51814
0.469147
0.415194
0.392248
0.305736
0
0.005202
0.336783
6,087
180
92
33.816667
0.793659
0.076557
0
0.550725
0
0
0.062782
0
0
0
0
0
0
1
0.123188
false
0
0.014493
0.007246
0.195652
0.094203
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
3e503d98c89fb96237341b077c1c28de7c3a7e8c
567
py
Python
bot/tools/initial_datetime.py
allyotov/Behemoth_bot
96d64053ed3e0557f0bf61d50e10cf9f5031f0d7
[ "MIT" ]
null
null
null
bot/tools/initial_datetime.py
allyotov/Behemoth_bot
96d64053ed3e0557f0bf61d50e10cf9f5031f0d7
[ "MIT" ]
null
null
null
bot/tools/initial_datetime.py
allyotov/Behemoth_bot
96d64053ed3e0557f0bf61d50e10cf9f5031f0d7
[ "MIT" ]
null
null
null
from calendar import week from datetime import datetime, timedelta import logging import pytz logging.basicConfig(level=logging.DEBUG) logger = logging.getLogger(__name__) def get_week_ago_datetime(): return get_localized_datetime(timedelta(days=7)) def get_current_datetime(): return get_localized_datetim...
21.807692
58
0.779541
73
567
5.780822
0.438356
0.120853
0.14218
0.123223
0.222749
0.222749
0.222749
0
0
0
0
0.004073
0.134039
567
25
59
22.68
0.855397
0
0
0
0
0
0.047788
0
0
0
0
0
0
1
0.2
false
0
0.266667
0.133333
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3e538444c3d24c44da338c56205c67f7d3b33e1a
1,325
py
Python
synth/devices/bytes.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
2
2021-03-15T18:02:46.000Z
2021-12-09T20:54:25.000Z
synth/devices/bytes.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
2
2017-04-18T08:41:49.000Z
2017-10-04T15:13:06.000Z
synth/devices/bytes.py
DevicePilot/synth
c2b2345322e86c8dfac101ff375421e7dcd5f1b2
[ "MIT" ]
3
2018-02-06T17:07:06.000Z
2020-01-27T17:05:11.000Z
""" bytes ===== Provides a device property which sends back the number of bytes sent Configurable parameters:: { } Device properties created:: { "bytes_sent" : Bytes sent in the last period } """ from .device import Device import logging BYTECOUNT_SEND_INTERVAL_S = 60 * 60 class Bytes(De...
28.191489
97
0.707925
177
1,325
4.99435
0.333333
0.081448
0.079186
0.076923
0.450226
0.393665
0.278281
0.278281
0.278281
0.162896
0
0.005607
0.192453
1,325
46
98
28.804348
0.820561
0.162264
0
0.190476
0
0
0.009083
0
0
0
0
0
0
1
0.285714
false
0
0.095238
0.047619
0.47619
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
0
0
0
1
3e5448fd8bad27ee3bec601f3c60bc06da9d7f4b
431
py
Python
dojo/tool_config/factory.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
null
null
null
dojo/tool_config/factory.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
275
2021-02-19T15:16:15.000Z
2022-03-31T21:09:29.000Z
dojo/tool_config/factory.py
mtcolman/django-DefectDojo
76175aca446e077884bdb5e1d8e2a671a0840775
[ "BSD-3-Clause" ]
1
2021-04-11T08:11:26.000Z
2021-04-11T08:11:26.000Z
from dojo.tools.sonarqube_api.api_client import SonarQubeAPI from dojo.tools.cobalt_api.api_client import CobaltAPI SCAN_APIS = {'SonarQube': SonarQubeAPI, 'Cobalt.io': CobaltAPI} def create_API(tool_configuration): if tool_configuration.tool_type.name in SCAN_APIS: api_class = SCAN_APIS.get...
30.785714
68
0.74942
57
431
5.385965
0.45614
0.221498
0.084691
0.117264
0.188925
0
0
0
0
0
0
0
0.176334
431
13
69
33.153846
0.864789
0
0
0
0
0
0.041763
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
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
3e578b0f9da1cb6a3e9bff27b19b022aa4020129
528
py
Python
setup.py
saskenuba/simple-flask-blog
929b8912a85ba154dc898712ef12a41d140ff60a
[ "MIT" ]
4
2017-08-04T17:59:31.000Z
2021-12-02T16:02:39.000Z
setup.py
saskenuba/simple-flask-blog
929b8912a85ba154dc898712ef12a41d140ff60a
[ "MIT" ]
1
2018-08-08T17:41:35.000Z
2018-08-08T17:41:35.000Z
setup.py
saskenuba/simple-flask-blog
929b8912a85ba154dc898712ef12a41d140ff60a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='martinblog', packages=['martinblog'], version='0.4.9', author='Martin Mariano', author_email='contato@martinmariano.com', include_package_data=True, install_requires=[ 'flask', 'jinja2', 'flask-sqlalchemy', 'flask-jsglue', 'flask-login', ...
27.789474
77
0.607955
52
528
6.076923
0.807692
0
0
0
0
0
0
0
0
0
0
0.012048
0.214015
528
18
78
29.333333
0.749398
0
0
0
0
0
0.401515
0.047348
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
3e591b199dcc60b7d3ecd3091d2f2076305d17b1
9,062
py
Python
test/test_integration.py
mrc-ide/hint-deploy
5459fbc67ab5b984f36ec905221f04bd444f5d41
[ "MIT" ]
1
2020-05-07T21:26:08.000Z
2020-05-07T21:26:08.000Z
test/test_integration.py
mrc-ide/hint-deploy
5459fbc67ab5b984f36ec905221f04bd444f5d41
[ "MIT" ]
37
2019-11-01T08:17:25.000Z
2022-01-06T10:04:25.000Z
test/test_integration.py
mrc-ide/hint-deploy
5459fbc67ab5b984f36ec905221f04bd444f5d41
[ "MIT" ]
null
null
null
import docker import json import io import os.path import pytest import requests import time from contextlib import redirect_stdout from unittest import mock import constellation import constellation.docker_util as docker_util from src import hint_cli, hint_deploy def test_start_hint(): cfg = hint_deploy.HintC...
36.248
79
0.695983
1,241
9,062
4.862208
0.181305
0.092807
0.076898
0.058336
0.652469
0.621975
0.608717
0.5295
0.508784
0.446636
0
0.006586
0.178989
9,062
249
80
36.393574
0.804435
0.055175
0
0.492147
0
0
0.221988
0.02807
0
0
0
0
0.424084
1
0.026178
false
0.010471
0.062827
0
0.089005
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
3e5de4f3d5df81ad75f7d6e659046ea770243a5c
3,159
py
Python
lesson_1/solution_1.py
nicofretti/AI-Lab
0683aa212727ff4675e4eb8dd16c7dff47851d64
[ "MIT" ]
null
null
null
lesson_1/solution_1.py
nicofretti/AI-Lab
0683aa212727ff4675e4eb8dd16c7dff47851d64
[ "MIT" ]
null
null
null
lesson_1/solution_1.py
nicofretti/AI-Lab
0683aa212727ff4675e4eb8dd16c7dff47851d64
[ "MIT" ]
null
null
null
import os, sys, time, math module_path = os.path.abspath(os.path.join('../tools')) if module_path not in sys.path: sys.path.append(module_path) from utils.ai_lab_functions import * import gym, envs def BFS_TreeSearch(problem): """ Tree Search BFS Args->problem: OpenAI Gym environment Returns->(pa...
35.897727
79
0.598291
378
3,159
4.833333
0.222222
0.068966
0.056924
0.074439
0.709907
0.709907
0.676519
0.676519
0.638205
0.541872
0
0.003614
0.211776
3,159
88
80
35.897727
0.728514
0.088636
0
0.548387
0
0
0.167138
0.091873
0
0
0
0
0
1
0.032258
false
0
0.048387
0
0.177419
0.193548
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
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
3e60d37f63c3dadee36f788c0a2595b6dbbb3561
522
py
Python
CS.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
CS.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
CS.py
olesmith/SmtC
dfae5097f02192b60aae05b9d02404fcfe893be3
[ "CC0-1.0" ]
null
null
null
from math import * import re,sys,time,os from Vector import * from Base import * class CS(Base): #Coordinate system O=[] I=[] J=[] K=[] eps=1.0E-3 eps2inv=0 ##! ##! Sets eps parms. ##! def CS_SetParms(self,vals={}): self.O=Vector([0.0,0.0]) ...
15.818182
52
0.5
84
522
3.095238
0.404762
0.046154
0.034615
0.053846
0.169231
0.169231
0.169231
0.169231
0
0
0
0.085635
0.306513
522
32
53
16.3125
0.632597
0.068966
0
0.111111
0
0
0
0
0
0
0
0
0
1
0.055556
false
0
0.222222
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3e641c0a9c707525de39bcf235ccf88e52e8f325
421
py
Python
tests/app.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
tests/app.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
tests/app.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
from flask import Flask, send_from_directory, render_template_string app = Flask(__name__) @app.route("/") def index(): return render_template_string( """<video controls width=500> <source src="{{ url_for('stream', filename='vid.mp4') }}"> </video>""" ) @app.route("/stream/<file...
22.157895
70
0.655582
51
421
5.156863
0.588235
0.159696
0.129278
0
0
0
0
0
0
0
0
0.011594
0.180523
421
19
71
22.157895
0.750725
0
0
0
0
0
0.082781
0
0
0
0
0
0
1
0.2
false
0
0.1
0.2
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
3e6984b5a209bdec5d3dcb1eec9351a89355202e
827
py
Python
pylex/config/lexer_dict_config.py
subhajeet2107/pylexer
64336fb14299a56116e58c3016261b3f5509510d
[ "MIT" ]
null
null
null
pylex/config/lexer_dict_config.py
subhajeet2107/pylexer
64336fb14299a56116e58c3016261b3f5509510d
[ "MIT" ]
null
null
null
pylex/config/lexer_dict_config.py
subhajeet2107/pylexer
64336fb14299a56116e58c3016261b3f5509510d
[ "MIT" ]
null
null
null
""" * This file is part of the subhajeet2107/pylexer package. * * (c) Subhajeet Dey <subhajeet2107@gmail.com> * * This source file is subject to the MIT license that is bundled * with this source code in the file LICENSE. """ from pylex.config.lexer_config import LexerConfig from pylex.config.token_defination imp...
24.323529
65
0.753325
108
827
5.601852
0.5
0.14876
0.089256
0.072727
0
0
0
0
0
0
0
0.011429
0.153567
827
34
66
24.323529
0.852857
0.309553
0
0
0
0
0
0
0
0
0
0
0
1
0.214286
false
0
0.142857
0.071429
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
1
0
0
0
0
0
0
0
1
3e7430f00b4c6d074230f63425c5f0da2250c27c
423
py
Python
loam/parts/ftdi/ft232r.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
14
2017-10-08T09:16:10.000Z
2021-11-27T19:12:24.000Z
loam/parts/ftdi/ft232r.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
7
2018-04-12T21:33:49.000Z
2018-08-21T22:14:20.000Z
loam/parts/ftdi/ft232r.py
splhack/loam
10b08bd622b7cfd63eabaec4729f6238e4521b30
[ "MIT" ]
3
2018-07-24T04:55:02.000Z
2019-12-30T08:12:39.000Z
from magma import Bit, In, Out from loam import Part class FT232R(Part): name = 'ft232r' IO = ["RX", In(Bit), "TX", Out(Bit)] def __init__(self, name='console', board=None): Part.__init__(self, name, board) self.usart = None def peripheral(self, usart): self.usart = usart ...
19.227273
51
0.572104
57
423
4.105263
0.421053
0.153846
0.102564
0
0
0
0
0
0
0
0
0.02027
0.300236
423
21
52
20.142857
0.77027
0
0
0.133333
0
0
0.04038
0
0
0
0
0
0
1
0.2
false
0
0.133333
0
0.666667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
3e7fcca0fd6e6c0e725d6cce7ae6b5f93aec761e
1,195
py
Python
lib/openjdk.py
tengu-team/java
3e179141b83848161f692c90cf91ae9e28b505a2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
lib/openjdk.py
tengu-team/java
3e179141b83848161f692c90cf91ae9e28b505a2
[ "ECL-2.0", "Apache-2.0" ]
1
2018-01-30T10:04:52.000Z
2018-01-31T11:54:55.000Z
lib/openjdk.py
tengu-team/layer-java
3e179141b83848161f692c90cf91ae9e28b505a2
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # pylint: disable=c0111,c0103,c0301 import charms.apt #pylint: disable=e0611,e0401 from charmhelpers.core import hookenv from jujubigdata import utils def installopenjdk(): hookenv.log('Installing OpenJDK') conf = hookenv.config() install_type = conf['install-type'] java_maj...
29.875
94
0.684519
163
1,195
4.90184
0.503067
0.112641
0.035044
0.052566
0.217772
0.132666
0
0
0
0
0
0.037871
0.182427
1,195
39
95
30.641026
0.779939
0.23682
0
0
0
0
0.217054
0.094131
0
0
0
0.025641
0
1
0.130435
false
0
0.130435
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
3e91170b733184b81cf20f82067463747ca83822
2,670
py
Python
main.py
entn-at/lcnn
797d8847fad6d1179866ac2d7d7402240483123b
[ "BSD-3-Clause" ]
15
2018-11-04T18:35:41.000Z
2021-01-10T14:18:54.000Z
main.py
entn-at/lcnn
797d8847fad6d1179866ac2d7d7402240483123b
[ "BSD-3-Clause" ]
2
2018-11-02T20:15:53.000Z
2019-04-13T06:55:01.000Z
main.py
entn-at/lcnn
797d8847fad6d1179866ac2d7d7402240483123b
[ "BSD-3-Clause" ]
5
2018-10-07T12:44:16.000Z
2019-07-16T08:29:44.000Z
#! /usr/bin/env python ########################################################### ## Main script # ########################################################### ## Copyright (c) 2018, National Institute of Informatics # ## Author: Fuming Fang ...
41.076923
86
0.631461
341
2,670
4.780059
0.337243
0.104908
0.19816
0.055215
0.14908
0.125767
0.125767
0.104294
0
0
0
0.014166
0.153933
2,670
64
87
41.71875
0.707393
0.102622
0
0
0
0
0.161305
0
0
0
0
0
0
1
0.022222
false
0
0.133333
0
0.155556
0.044444
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
e40e10bf687a12a30b0486824150ad0ed481f55c
838
py
Python
scratch/fm-param-analysis.py
boldsort/NeuralDX7
327844cea18a6dfe35e0dc8f5de0832343487366
[ "MIT" ]
119
2020-05-31T23:49:07.000Z
2022-02-28T09:38:41.000Z
scratch/fm-param-analysis.py
boldsort/NeuralDX7
327844cea18a6dfe35e0dc8f5de0832343487366
[ "MIT" ]
4
2020-06-01T08:53:16.000Z
2021-03-05T03:02:43.000Z
scratch/fm-param-analysis.py
boldsort/NeuralDX7
327844cea18a6dfe35e0dc8f5de0832343487366
[ "MIT" ]
8
2020-05-31T23:49:13.000Z
2020-12-21T22:16:27.000Z
#%% import torch from torch.utils.data import Subset as DataSubset from sklearn.model_selection import train_test_split from fm_param_vae import Net, DX7Dataset, ARTIFACTS_ROOT, VOICE_KEYS from dx7_constants import VOICE_PARAMETER_RANGES import numpy as np dataset = DX7Dataset() train_idxs, test_idxs = train_test_spl...
23.942857
79
0.745823
128
838
4.65625
0.492188
0.055369
0.04698
0
0
0
0
0
0
0
0
0.019074
0.124105
838
34
80
24.647059
0.792916
0.016706
0
0
0
0
0.020757
0
0
0
0
0
0
1
0
false
0
0.315789
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
1
0
0
0
0
1
e41203b98563c1987fdd5a0fa92159f715912168
7,808
py
Python
shash/code/genDatForLDA.py
piyush-kansal/reverse-image-search
43790e3b655314a1c6363df3a7b20551b431ea3b
[ "MIT" ]
3
2017-01-18T15:51:40.000Z
2017-04-01T22:29:48.000Z
shash/code/genDatForLDA.py
piyush-kansal/reverse-image-search
43790e3b655314a1c6363df3a7b20551b431ea3b
[ "MIT" ]
null
null
null
shash/code/genDatForLDA.py
piyush-kansal/reverse-image-search
43790e3b655314a1c6363df3a7b20551b431ea3b
[ "MIT" ]
null
null
null
# Main script for generating .dat file as an i/p to LDA program # Piyush Kansal and Vinak K import sys import os import pickle import subprocess as sp import operator import threading import time global vocabFileName, wordLexiconFileName, wordCount # Function to process all the tags in the data set to generate # i/p...
27.687943
104
0.687372
999
7,808
5.36036
0.229229
0.017927
0.017927
0.019608
0.189169
0.161718
0.10943
0.060504
0.030626
0.030626
0
0.011823
0.176742
7,808
281
105
27.786477
0.821251
0.066726
0
0.153465
0
0.004951
0.086897
0.005912
0
0
0
0
0
0
null
null
0
0.034653
null
null
0.024752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e422420bd9168af3aa9b05d65a45db6bb3d98580
2,882
py
Python
Examples/Python Script Examples/Test_file-generate_data.py
skasiraj/ckbit
8ad3914652dc78e56af9e3607ddc692d15b2fc0a
[ "MIT" ]
2
2021-08-18T20:06:27.000Z
2021-11-07T04:22:01.000Z
Examples/Python Script Examples/Test_file-generate_data.py
skasiraj/ckbit
8ad3914652dc78e56af9e3607ddc692d15b2fc0a
[ "MIT" ]
null
null
null
Examples/Python Script Examples/Test_file-generate_data.py
skasiraj/ckbit
8ad3914652dc78e56af9e3607ddc692d15b2fc0a
[ "MIT" ]
10
2021-04-30T00:00:17.000Z
2022-01-10T12:51:01.000Z
# -*- coding: utf-8 -*- """ Created on Sun Jun 28 12:07:40 2020 @author: Jane """ #First, we generate the CSTR data with experimental noise added to the concentrations. #The smooth lines are the unperturbed data, and the data points are the noisy #measurements we use as our data points. import numpy as np imp...
27.447619
89
0.648161
524
2,882
3.55916
0.253817
0.048257
0.051475
0.060054
0.333512
0.203753
0.183378
0.112601
0.112601
0.112601
0
0.112825
0.145038
2,882
105
90
27.447619
0.644075
0.111034
0
0.123457
1
0
0.058454
0
0
0
0
0
0
1
0
false
0.012346
0.024691
0
0.024691
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
e4241f6d88adefce9062180c7371b03b36cfc39a
2,683
py
Python
python/sample-config.py
liamstar97/searchhub
b936eff55d0d6e9631464095d11ef30788e4bdce
[ "Apache-2.0" ]
48
2016-05-17T14:39:47.000Z
2019-11-20T16:35:02.000Z
python/sample-config.py
liamstar97/searchhub
b936eff55d0d6e9631464095d11ef30788e4bdce
[ "Apache-2.0" ]
95
2016-05-20T03:55:03.000Z
2017-12-04T17:23:16.000Z
python/sample-config.py
liamstar97/searchhub
b936eff55d0d6e9631464095d11ef30788e4bdce
[ "Apache-2.0" ]
18
2016-06-09T21:53:54.000Z
2021-08-15T08:18:55.000Z
import os # SEE: http://flask.pocoo.org/docs/0.10/config/ # Statement for enabling the development environment DEBUG = True # Define the application directory BASE_DIR = os.path.abspath(os.path.dirname(__file__)) # The name and port to bind the server to # SERVER_NAME = "localhost:5000" # The backend for the lucidfi...
30.83908
168
0.785688
385
2,683
5.332468
0.561039
0.013151
0.020458
0.01851
0.031174
0.031174
0
0
0
0
0
0.014655
0.135296
2,683
87
169
30.83908
0.870259
0.597838
0
0
0
0
0.253346
0.095602
0
0
0
0
0
1
0
false
0.066667
0.033333
0
0.033333
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
e4258a37cb174a6fe079419f00926c3902a42874
17,723
py
Python
tools/asm.py
ilbers/etna_viv
d4c87f61bdcd15f98d4bdbea8c34788bb71fbad9
[ "MIT" ]
121
2015-01-16T11:36:13.000Z
2021-11-18T07:56:03.000Z
tools/asm.py
ilbers/etna_viv
d4c87f61bdcd15f98d4bdbea8c34788bb71fbad9
[ "MIT" ]
15
2016-11-29T17:08:23.000Z
2022-01-01T07:34:28.000Z
tools/asm.py
ilbers/etna_viv
d4c87f61bdcd15f98d4bdbea8c34788bb71fbad9
[ "MIT" ]
45
2015-01-25T01:52:05.000Z
2021-06-26T22:14:50.000Z
#!/usr/bin/python ''' Shader assembler. Usage: asm.py --isa-file ../rnndb/isa.xml in.asm out.bin ''' # Copyright (c) 2012-2017 Wladimir J. van der Laan # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in t...
39.560268
170
0.55775
2,146
17,723
4.531687
0.199907
0.019537
0.027969
0.030848
0.202982
0.162468
0.129769
0.09563
0.080206
0.080206
0
0.013722
0.325622
17,723
447
171
39.64877
0.79995
0.137336
0
0.204545
0
0.002841
0.101954
0.010478
0
0
0.000806
0.002237
0
0
null
null
0
0.03125
null
null
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4279bdeeb3292f3f5227331639b60ae7171fd09
1,294
py
Python
CursoEmVideo/Exercicio045.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
CursoEmVideo/Exercicio045.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
CursoEmVideo/Exercicio045.py
LucasAlmeida0/Estudos
ae5b498c0bf3dee94f761a5fe49c77b0e270d483
[ "MIT" ]
null
null
null
#45 Crie um programa que faça o computador jogar Jokenpô com você. import time import random print("Vamos jogar JO KEN PÔ?") print('''Suas opções: [0] PEDRA [1] PAPEL [2] TESOURA ''') escolha = int(input("Qual é sua jogada? ")) print('--------------') print('JO') time.sleep(1) print('KEN') time.sleep(1) print('PO') pri...
26.408163
66
0.594281
167
1,294
4.60479
0.323353
0.152146
0.042913
0.081925
0.369311
0
0
0
0
0
0
0.029442
0.238794
1,294
48
67
26.958333
0.751269
0.082689
0
0.333333
0
0
0.276884
0
0
0
0
0
0
1
0
false
0
0.051282
0
0.051282
0.487179
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
e42dc4cb2358e1cb8ea35a2608da0c0441315eed
296
py
Python
learn/ML/stats/stats1.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
learn/ML/stats/stats1.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
learn/ML/stats/stats1.py
nvkhedkar/python-code
a66f383368388953f9d01a46b45fcac69c06543d
[ "Apache-2.0" ]
null
null
null
# %% import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt # %% nums = np.random.uniform(100, 200, 1_000_000).astype(np.float32) print(nums) n = 100 samples = np.array([np.random.choice(nums, 100) for x in range(200)], np.float32) print(samples.shape)
17.411765
81
0.719595
51
296
4.137255
0.588235
0.075829
0.132701
0
0
0
0
0
0
0
0
0.103175
0.148649
296
16
82
18.5
0.734127
0.016892
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e43109e299b0fe6b90965c36602c8976a9ec9449
392
py
Python
Python/patuljci/patuljci.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
12
2016-10-03T20:43:43.000Z
2021-06-12T17:18:42.000Z
Python/patuljci/patuljci.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
null
null
null
Python/patuljci/patuljci.py
rvrheenen/OpenKattis
7fd59fcb54e86cdf10f56c580c218c62e584f391
[ "MIT" ]
10
2017-11-14T19:56:37.000Z
2021-02-02T07:39:57.000Z
import random N_DWARVES = 7 def main(): dwarves = [] for i in range(N_DWARVES + 2): dwarves.append(int(input())) selection = random.sample(dwarves, N_DWARVES) while sum(selection) != 100: selection = random.sample(dwarves, N_DWARVES) print("\n".join([str(dwarve) for dwarve in dw...
19.6
80
0.637755
52
392
4.576923
0.5
0.134454
0.176471
0.235294
0.302521
0.302521
0
0
0
0
0
0.016556
0.229592
392
19
81
20.631579
0.771523
0
0
0.166667
0
0
0.02551
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.166667
0.083333
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
e4328d0cc6a2afe52b8d2bafb3334142a2f57207
691
py
Python
models/author.py
mglidden/git-analysis
818efe65ff37bd8aeff44912b57c2e6bcd6f2eea
[ "MIT" ]
1
2015-09-14T15:15:03.000Z
2015-09-14T15:15:03.000Z
models/author.py
mglidden/git-analysis
818efe65ff37bd8aeff44912b57c2e6bcd6f2eea
[ "MIT" ]
null
null
null
models/author.py
mglidden/git-analysis
818efe65ff37bd8aeff44912b57c2e6bcd6f2eea
[ "MIT" ]
null
null
null
import fix_paths from commit import Commit import common from sqlalchemy import Column, ForeignKey, Integer, String from sqlalchemy.orm import relationship, backref class Author(common.Base): __tablename__ = 'authors' id = Column(Integer, primary_key=True) name = Column(String) email = Column(String, index=...
28.791667
97
0.738061
87
691
5.643678
0.436782
0.04888
0.101833
0.130346
0.171079
0.171079
0
0
0
0
0
0
0.143271
691
23
98
30.043478
0.829392
0
0
0
0
0
0.072359
0
0
0
0
0
0
1
0.117647
false
0
0.294118
0.058824
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
0
0
1
0
0
1
e4355a44708a523ca785283a1363a21b4f934150
3,236
py
Python
bpi_experiments/10000_mixed_traces.py
probablytom/bpi_experiments
171ba23d033ccda3870e01de41635b3d354b8e70
[ "MIT" ]
null
null
null
bpi_experiments/10000_mixed_traces.py
probablytom/bpi_experiments
171ba23d033ccda3870e01de41635b3d354b8e70
[ "MIT" ]
null
null
null
bpi_experiments/10000_mixed_traces.py
probablytom/bpi_experiments
171ba23d033ccda3870e01de41635b3d354b8e70
[ "MIT" ]
null
null
null
from bpi_13_experimental_frontend import run_model, skip_current_action, manually_log, new_trace, generate_XES from bpi_13_experimental_frontend import CustomerServiceWorkflow, action_log import bpi_13_experimental_frontend from functools import partial class ExperimentAdvice(object): triggered_counts = dict() ...
35.173913
122
0.693449
380
3,236
5.557895
0.281579
0.06392
0.117424
0.047348
0.336648
0.302083
0.180871
0.180871
0.180871
0.157197
0
0.020305
0.208591
3,236
92
123
35.173913
0.804373
0.307787
0
0
1
0
0.033484
0.027149
0
0
0
0
0
1
0.095238
false
0.02381
0.095238
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e43c0fb58e1005e2733beaabcaa17fe841748e76
1,377
py
Python
server/frontend/app/blueprints/network.py
jakuta-tech/TinyCheck
a6fb73b87e1c1927490aa83b246016ca44587be4
[ "Apache-2.0" ]
2,054
2020-11-25T10:02:51.000Z
2022-03-28T15:58:38.000Z
server/frontend/app/blueprints/network.py
jakuta-tech/TinyCheck
a6fb73b87e1c1927490aa83b246016ca44587be4
[ "Apache-2.0" ]
57
2020-11-26T12:35:26.000Z
2022-03-06T05:26:23.000Z
server/frontend/app/blueprints/network.py
DissectCyber/seewho
fdef687467119de8f3cac7de7853a2a303f3b7ab
[ "Apache-2.0" ]
151
2020-11-24T23:07:10.000Z
2022-03-30T17:45:14.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- from flask import Blueprint, jsonify, request from app.classes.network import Network network = Network() network_bp = Blueprint("network", __name__) @network_bp.route("/status", methods=["GET"]) def api_network_status(): """ Get the network status of e...
27
65
0.639797
174
1,377
4.87931
0.33908
0.074205
0.09894
0.094229
0.077739
0.077739
0
0
0
0
0
0.003626
0.198983
1,377
50
66
27.54
0.766092
0.171387
0
0.071429
0
0
0.101614
0
0
0
0
0
0
1
0.214286
false
0.035714
0.071429
0
0.535714
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
1
0
0
0
0
0
0
0
1
e43e1cac83fe1b3af8b090d96edf8d5a924cd1a1
2,194
py
Python
main.py
Pyver/Kunox
b33e09bc4011a98dd46865cb388d725534ab40fd
[ "MIT" ]
null
null
null
main.py
Pyver/Kunox
b33e09bc4011a98dd46865cb388d725534ab40fd
[ "MIT" ]
null
null
null
main.py
Pyver/Kunox
b33e09bc4011a98dd46865cb388d725534ab40fd
[ "MIT" ]
null
null
null
from telethon import TelegramClient from telethon.tl.types import UserStatusOnline from datetime import datetime from time import sleep # To obtain API Keys, you have to visit https://my.telegram.org/apps, and make an app. API_ID = 0 # ENTER YOU API ID HERE (SHOUlD BE AN INT) API_HASH = '<ENTER YOUR API HASH HERE>' ...
35.387097
117
0.624886
289
2,194
4.67128
0.435986
0.005926
0.035556
0.055556
0.080741
0.053333
0.053333
0.053333
0.053333
0.053333
0
0.008181
0.275752
2,194
61
118
35.967213
0.84141
0.333637
0
0
0
0
0.122407
0
0
0
0
0.016393
0
1
0
false
0
0.111111
0
0.111111
0.138889
0
0
0
null
0
0
0
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
e444885bb394a6f1d996208e6b560520327e634f
1,039
py
Python
FishCDailyQuestion/ex021-030/Python3_022/022_01.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex021-030/Python3_022/022_01.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
FishCDailyQuestion/ex021-030/Python3_022/022_01.py
YorkFish/git_study
6e023244daaa22e12b24e632e76a13e5066f2947
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding:utf-8 # 改进小红球 class Ball: def __init__(self, canvas, paddle, color): self.canvas = canvas self.paddle = paddle self.id = canvas.create_oval(10, 10, 25, 25, fill=color) self.canvas.move(self.id, 245, 100) starts = [-3, -2, -1, 1, 2, 3] ...
26.641026
64
0.536092
149
1,039
3.651007
0.369128
0.202206
0.044118
0.044118
0.191176
0
0
0
0
0
0
0.055319
0.321463
1,039
38
65
27.342105
0.716312
0.075072
0
0.1
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
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
0
0
0
0
0
0
0
1
e44c949ffdefd5ab9f481ac428262e09f44d6c3a
958
py
Python
math/python/stepsToReduce.py
FreezeSnail/LeetCode-Problems
9754af9193b03fd2235c4ef8ec508f004ddf023f
[ "MIT" ]
null
null
null
math/python/stepsToReduce.py
FreezeSnail/LeetCode-Problems
9754af9193b03fd2235c4ef8ec508f004ddf023f
[ "MIT" ]
null
null
null
math/python/stepsToReduce.py
FreezeSnail/LeetCode-Problems
9754af9193b03fd2235c4ef8ec508f004ddf023f
[ "MIT" ]
null
null
null
#1342. Number of Steps to Reduce a Number to Zero def numberOfSteps (self, num): """ :type num: int :rtype: int 23% faster 67% less mem """ count = 0 while num != 0: if(num %2 == 0): num /=2 else: num...
23.365854
60
0.444676
116
958
3.672414
0.37931
0.037559
0.140845
0.161972
0.467136
0.467136
0.467136
0.467136
0.467136
0.178404
0
0.068053
0.447808
958
41
60
23.365854
0.73724
0.317328
0
0.333333
0
0
0.006135
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
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
e45253b182de6edb6434de5755a0b14de4c80b91
411
py
Python
backend/recipes/migrations/0011_alter_ingredientrecipe_amount.py
Falken565/foodgram-CV-
8ff7646eda13f82c6329f360ba02563f9a991a74
[ "BSD-3-Clause" ]
null
null
null
backend/recipes/migrations/0011_alter_ingredientrecipe_amount.py
Falken565/foodgram-CV-
8ff7646eda13f82c6329f360ba02563f9a991a74
[ "BSD-3-Clause" ]
null
null
null
backend/recipes/migrations/0011_alter_ingredientrecipe_amount.py
Falken565/foodgram-CV-
8ff7646eda13f82c6329f360ba02563f9a991a74
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-22 15:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('recipes', '0010_auto_20211220_0159'), ] operations = [ migrations.AlterField( model_name='ingredientrecipe', name='a...
21.631579
65
0.618005
42
411
5.928571
0.833333
0
0
0
0
0
0
0
0
0
0
0.103333
0.270073
411
18
66
22.833333
0.726667
0.109489
0
0
1
0
0.17033
0.063187
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e452b6201d2f63080eb0f3945a09fc2263eb923f
212
py
Python
readhashmap.py
TheOnePerson/coind-ncurses
019b2633105956662bafceac099731e3a9820ab4
[ "MIT" ]
1
2017-02-20T23:22:33.000Z
2017-02-20T23:22:33.000Z
readhashmap.py
TheOnePerson/coind-ncurses
019b2633105956662bafceac099731e3a9820ab4
[ "MIT" ]
null
null
null
readhashmap.py
TheOnePerson/coind-ncurses
019b2633105956662bafceac099731e3a9820ab4
[ "MIT" ]
1
2019-05-01T15:04:56.000Z
2019-05-01T15:04:56.000Z
#!/usr/bin/env python def get(filename): d = {} with open(filename) as f: for line in f: (key, val) = line.split("\t") d[str(key).strip()] = str(val).strip() return d
21.2
50
0.495283
31
212
3.387097
0.709677
0
0
0
0
0
0
0
0
0
0
0
0.325472
212
9
51
23.555556
0.734266
0.09434
0
0
0
0
0.010471
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
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
e46132e2c93b8700e9be06d12f788f24d5b5b3ff
241
py
Python
Python3/1545-Find-Kth-Bit-in-Nth-Binary-String/soln.py
wyaadarsh/LeetCode-Solutions
3719f5cb059eefd66b83eb8ae990652f4b7fd124
[ "MIT" ]
5
2020-07-24T17:48:59.000Z
2020-12-21T05:56:00.000Z
Python3/1545-Find-Kth-Bit-in-Nth-Binary-String/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
null
null
null
Python3/1545-Find-Kth-Bit-in-Nth-Binary-String/soln.py
zhangyaqi1989/LeetCode-Solutions
2655a1ffc8678ad1de6c24295071308a18c5dc6e
[ "MIT" ]
2
2020-07-24T17:49:01.000Z
2020-08-31T19:57:35.000Z
class Solution: def findKthBit(self, n: int, k: int) -> str: # S1 = "0" lst = [0] for _ in range(n - 1): lst = lst + [1] + [1 - v for v in reversed(lst)] return "1" if lst[k - 1] == 1 else "0"
30.125
60
0.443983
38
241
2.789474
0.552632
0.037736
0
0
0
0
0
0
0
0
0
0.068027
0.390041
241
7
61
34.428571
0.653061
0.033195
0
0
0
0
0.008658
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
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
0
0
0
0
0
1
e466902dc480739e597eb1792e082501096ee2d8
877
py
Python
src/c3nav/mapdata/migrations/0077_obstacle_altitude.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
132
2016-11-12T01:45:23.000Z
2022-03-08T15:17:10.000Z
src/c3nav/mapdata/migrations/0077_obstacle_altitude.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
66
2016-09-29T09:46:19.000Z
2022-03-11T23:26:18.000Z
src/c3nav/mapdata/migrations/0077_obstacle_altitude.py
johnjohndoe/c3nav
a17f863a3512e305595c16b0300796b6bae81241
[ "Apache-2.0" ]
42
2016-09-29T08:34:57.000Z
2022-03-08T15:17:15.000Z
# Generated by Django 2.2.8 on 2019-12-22 19:55 from decimal import Decimal import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('mapdata', '0076_obstacle_color'), ] operations = [ migrations.AddField( ...
33.730769
188
0.667047
96
877
5.989583
0.458333
0.083478
0.104348
0.093913
0.528696
0.528696
0.528696
0.528696
0.528696
0.528696
0
0.039074
0.212087
877
25
189
35.08
0.793054
0.051311
0
0.421053
1
0
0.127711
0
0
0
0
0
0
1
0
false
0
0.157895
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e476e3af86410f80877238f0e4a4a8197f70257a
275
py
Python
web_app/models/blog.py
ankit-v2-1/Delete-Instagram
276b740c847e9761fdf06e6f350d7ea5d2eec7fd
[ "MIT" ]
null
null
null
web_app/models/blog.py
ankit-v2-1/Delete-Instagram
276b740c847e9761fdf06e6f350d7ea5d2eec7fd
[ "MIT" ]
null
null
null
web_app/models/blog.py
ankit-v2-1/Delete-Instagram
276b740c847e9761fdf06e6f350d7ea5d2eec7fd
[ "MIT" ]
null
null
null
from django.db import models from froala_editor.fields import FroalaField class BlogModel(models.Model): title = models.CharField(max_length = 1000) content = FroalaField() slug = models.SlugField(max_length = 1000) image = models.ImageField(upload_to = 'image')
27.5
49
0.76
35
275
5.857143
0.685714
0.087805
0.126829
0
0
0
0
0
0
0
0
0.034043
0.145455
275
9
50
30.555556
0.838298
0
0
0
0
0
0.018182
0
0
0
0
0
0
1
0
false
0
0.285714
0
1
0
0
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
0
0
0
0
0
1
e4778263778bff55d3edfe40e5130ef43b75c532
515
py
Python
backend/api/users/schema.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
56
2018-01-20T17:18:40.000Z
2022-03-28T22:42:04.000Z
backend/api/users/schema.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
2,029
2018-01-20T11:37:24.000Z
2022-03-31T04:10:51.000Z
backend/api/users/schema.py
pauloxnet/pycon
82b6eff76dcc785865ea3ffd97a45e931c0add26
[ "MIT" ]
17
2018-03-17T09:44:28.000Z
2021-12-27T19:57:35.000Z
from typing import List import strawberry from users.models import get_countries from .types import Country @strawberry.type class CountryQuery: @strawberry.field def countries(self, info) -> List[Country]: resp = get_countries() return [Country(code=country["code"], name=country["name"]) f...
24.52381
88
0.679612
64
515
5.421875
0.390625
0.103746
0.103746
0.132565
0
0
0
0
0
0
0
0
0.2
515
20
89
25.75
0.842233
0
0
0.142857
0
0
0.031068
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.642857
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
1
0
0
1
e477a6720139135d458d34220a18b297564634b3
3,842
py
Python
script/collect.py
sertalpbilal/QDBB
168acbb175b0abd3ee9435bd76137c78fc06fe1a
[ "MIT" ]
1
2016-10-06T13:24:38.000Z
2016-10-06T13:24:38.000Z
script/collect.py
sertalpbilal/QDBB
168acbb175b0abd3ee9435bd76137c78fc06fe1a
[ "MIT" ]
null
null
null
script/collect.py
sertalpbilal/QDBB
168acbb175b0abd3ee9435bd76137c78fc06fe1a
[ "MIT" ]
null
null
null
# This file gathers the results from test folder and put them into table import os, os.path, sys, pdb import string result = [] status_format = 0 summary_format = 0 no_cmd = 0 if(len(sys.argv) >= 2): if("summary" in sys.argv[1]): summary_format = 1 if("status" in sys.argv[1]): status_format...
31.491803
219
0.541385
513
3,842
3.992203
0.300195
0.079102
0.043945
0.073242
0.166992
0.118164
0.109375
0.041992
0.041992
0
0
0.027361
0.30557
3,842
121
220
31.752066
0.740255
0.185841
0
0.133333
0
0.013333
0.178088
0
0
0
0
0
0
0
null
null
0
0.026667
null
null
0.053333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e479cf1f881e868adec32f427242f74dca936ef1
463
py
Python
trip/__init__.py
guoweikuang/trip
4b444700d5cdc39c0570e8fc8d9ef9267377dabe
[ "Apache-2.0" ]
241
2017-10-31T09:18:47.000Z
2022-01-14T12:34:26.000Z
trip/__init__.py
guoweikuang/trip
4b444700d5cdc39c0570e8fc8d9ef9267377dabe
[ "Apache-2.0" ]
18
2017-11-02T02:43:17.000Z
2021-03-06T07:48:38.000Z
trip/__init__.py
guoweikuang/trip
4b444700d5cdc39c0570e8fc8d9ef9267377dabe
[ "Apache-2.0" ]
32
2017-03-04T15:40:17.000Z
2022-02-04T02:34:01.000Z
from tornado import concurrent, gen, ioloop from tornado.concurrent import Future from tornado.gen import coroutine, Return, sleep from tornado.ioloop import IOLoop from .api import ( request, get, options, head, post, put, patch, delete, run) from .sessions import session, Session from .__version__ i...
28.9375
49
0.74946
56
463
5.767857
0.589286
0.136223
0
0
0
0
0
0
0
0
0
0.015748
0.177106
463
15
50
30.866667
0.832021
0
0
0
0
0
0.113839
0
0
0
0
0
0
1
0
false
0
0.538462
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
0
0
0
1
e47ae96d642d482252b271c947b12370d0da73a5
1,687
py
Python
filesystemlib/extended/macos.py
chbrown/filesystemlib
0303ec69159507b5da9a640971b6e6f412f3e72a
[ "MIT" ]
null
null
null
filesystemlib/extended/macos.py
chbrown/filesystemlib
0303ec69159507b5da9a640971b6e6f412f3e72a
[ "MIT" ]
null
null
null
filesystemlib/extended/macos.py
chbrown/filesystemlib
0303ec69159507b5da9a640971b6e6f412f3e72a
[ "MIT" ]
null
null
null
from typing import Iterator import plistlib from xattr import xattr from ..internal import Pathable COLOR_MAPPING = [ "None", # 0 "Gray", # 1 "Green", # 2 "Purple", # 3 "Blue", # 4 "Yellow", # 5 "Red", # 6 "Orange", # 7 ] FINDER_INFO = "com.apple.FinderInfo" METADATA_ITEM_USER...
31.240741
88
0.631298
227
1,687
4.559471
0.524229
0.048309
0.061836
0.077295
0
0
0
0
0
0
0
0.017427
0.285714
1,687
53
89
31.830189
0.841494
0.368109
0
0.171429
0
0
0.094542
0.034113
0
0
0
0
0
1
0.028571
false
0.057143
0.114286
0
0.142857
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
e48105639db06812619cf3d4fc146a400494237a
459
py
Python
django_test/articles/migrations/0004_auto_20200419_1221.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
django_test/articles/migrations/0004_auto_20200419_1221.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
django_test/articles/migrations/0004_auto_20200419_1221.py
AraxnoAnarxo/neu_uni_py_20
65f8ed036fac0dc22771411933bc98362e88408c
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-19 12:21 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('articles', '0003_auto_20200419_1136'), ] operations = [ migrations.AlterField( model_name='article', ...
22.95
99
0.625272
52
459
5.423077
0.711538
0.028369
0.042553
0
0
0
0
0
0
0
0
0.147059
0.259259
459
19
100
24.157895
0.682353
0.098039
0
0
1
0
0.121359
0.055825
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e487a8b3ccdf4c5a9f833cf091aa0d86ccc4f7fb
1,397
py
Python
tock/hours/migrations/0030_timecardnote.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
134
2015-02-02T18:42:03.000Z
2022-01-20T04:27:06.000Z
tock/hours/migrations/0030_timecardnote.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
1,220
2015-03-19T01:57:30.000Z
2022-03-23T21:52:15.000Z
tock/hours/migrations/0030_timecardnote.py
mikiec84/tock
15318a45b2b144360e4d7e15db655467a45c2ab9
[ "CC0-1.0" ]
49
2015-03-09T15:44:33.000Z
2022-01-19T02:02:37.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.8 on 2017-10-03 20:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hours', '0029_merge_20170227_1725'), ] operations = [ migrations.CreateMode...
49.892857
269
0.6335
168
1,397
5.136905
0.553571
0.03708
0.050985
0.069525
0.089224
0
0
0
0
0
0
0.035055
0.224052
1,397
27
270
51.740741
0.76107
0.048676
0
0
1
0
0.328808
0.0181
0
0
0
0
0
1
0
false
0
0.1
0
0.25
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
e489ea1b0e69d4bc88ea30c7dbcb1230bae67fa2
5,243
py
Python
src/gui/imu_page/visualization.py
realjc/rov_viewer2
cfe4c02492269afa438c3515c039a0a18de3ce8b
[ "MIT" ]
null
null
null
src/gui/imu_page/visualization.py
realjc/rov_viewer2
cfe4c02492269afa438c3515c039a0a18de3ce8b
[ "MIT" ]
null
null
null
src/gui/imu_page/visualization.py
realjc/rov_viewer2
cfe4c02492269afa438c3515c039a0a18de3ce8b
[ "MIT" ]
1
2021-06-16T08:04:56.000Z
2021-06-16T08:04:56.000Z
#from PySide2 import QtCore, QtGui,QtWidgets from PyQt5 import QtCore from PyQt5 import QtWidgets from PyQt5 import QtGui from OpenGL import GL,GLU,GLUT from PyQt5.QtOpenGL import * class Visualization(QtWidgets.QOpenGLWidget): def __init__(self,parent=None): super(Visualization,self).__init__(parent) ...
26.614213
67
0.514972
787
5,243
3.385006
0.113088
0.243243
0.043544
0.126126
0.652402
0.613739
0.519144
0.484985
0.484985
0.484985
0
0.107485
0.322144
5,243
196
68
26.75
0.642093
0.021934
0
0.627586
0
0
0
0
0
0
0
0
0
1
0.055172
false
0
0.034483
0
0.096552
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
e48b6931bd67939fcdbf50a26224d691828ede3b
14,684
py
Python
community/pbs/scripts/startup-script.py
Anuradha677/deploymentmanager-samples
6e079da1208fb8b8208495298a7b52f3b8004a2b
[ "Apache-2.0" ]
930
2015-07-30T19:02:32.000Z
2022-03-09T18:02:11.000Z
community/pbs/scripts/startup-script.py
Anuradha677/deploymentmanager-samples
6e079da1208fb8b8208495298a7b52f3b8004a2b
[ "Apache-2.0" ]
426
2015-05-06T17:25:41.000Z
2022-03-09T16:13:41.000Z
community/pbs/scripts/startup-script.py
Anuradha677/deploymentmanager-samples
6e079da1208fb8b8208495298a7b52f3b8004a2b
[ "Apache-2.0" ]
812
2015-05-06T15:43:05.000Z
2022-03-24T18:35:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright 2018 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
27.758034
137
0.64349
1,928
14,684
4.784232
0.274378
0.042498
0.032958
0.041631
0.227775
0.170859
0.130963
0.091284
0.068083
0.061145
0
0.012255
0.22201
14,684
528
138
27.810606
0.795168
0.174816
0
0.189024
0
0
0.447681
0.091113
0
0
0
0
0
0
null
null
0
0.033537
null
null
0.051829
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e48d33556f0a39ce4a544b5f0892799d4acfc654
1,207
py
Python
src/ListaToDo/migrations/0001_initial.py
agustin29a/ListaTarea
178790241044451dd8653d6382391c4c846929d4
[ "MIT" ]
null
null
null
src/ListaToDo/migrations/0001_initial.py
agustin29a/ListaTarea
178790241044451dd8653d6382391c4c846929d4
[ "MIT" ]
null
null
null
src/ListaToDo/migrations/0001_initial.py
agustin29a/ListaTarea
178790241044451dd8653d6382391c4c846929d4
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-02-01 09:49 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel(...
40.233333
172
0.605634
133
1,207
5.323308
0.56391
0.063559
0.076271
0.101695
0.107345
0.107345
0.107345
0
0
0
0
0.029221
0.234466
1,207
29
173
41.62069
0.737013
0.035626
0
0
1
0
0.148881
0.031842
0
0
0
0
0
1
0
false
0
0.090909
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e491368f73f14913ff131d3c9008eeba294dc70b
768
py
Python
src/learners/__init__.py
umersheikh846/WQMIX
3fbc088273c4ddb6876a352d18f057c50703546c
[ "Apache-1.1" ]
4
2022-01-12T03:12:09.000Z
2022-01-23T09:45:38.000Z
src/learners/__init__.py
umersheikh846/WQMIX
3fbc088273c4ddb6876a352d18f057c50703546c
[ "Apache-1.1" ]
null
null
null
src/learners/__init__.py
umersheikh846/WQMIX
3fbc088273c4ddb6876a352d18f057c50703546c
[ "Apache-1.1" ]
null
null
null
from .q_learner import QLearner from .coma_learner import COMALearner from .qtran_learner import QLearner as QTranLearner from .max_q_learner import MAXQLearner from .max_q_learner_ddpg import DDPGQLearner from .max_q_learner_sac import SACQLearner from .q_learner_w import QLearner as WeightedQLearner from .qatten_lear...
33.391304
53
0.830729
96
768
6.354167
0.229167
0.104918
0.072131
0.07377
0
0
0
0
0
0
0
0
0.095052
768
22
54
34.909091
0.877698
0
0
0
0
0
0.127771
0
0
0
0
0
0
1
0
false
0
0.473684
0
0.473684
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
e492d1e7a9fd26474f08f5db86d5282833afb4ec
2,677
py
Python
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
zhima/send_email.py
ericgibert/zhima
f62015d98a13b0ead720fc816812db2e33cb7fa9
[ "MIT" ]
null
null
null
""" Wrapper to send email """ # Import smtplib for the actual sending function import smtplib # Here are the email package modules we'll need from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText def send_email(subject, from_, to_, ...
31.494118
82
0.573777
332
2,677
4.493976
0.421687
0.033512
0.021448
0.034853
0.061662
0.041555
0.041555
0
0
0
0
0.005339
0.300336
2,677
84
83
31.869048
0.791244
0.24916
0
0.074074
0
0
0.09949
0.019388
0
0
0
0
0
1
0.018519
false
0.055556
0.092593
0
0.111111
0.148148
0
0
0
null
0
0
0
0
0
0
0
0
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
e4969d3d64848e30d617971a4393d2d00c79f3ee
1,759
py
Python
src/scv/optimistic.py
tpinhoda/Graph-Based_Spatial_Cross_Validation
19300a715d3d03580232926bbc1f6ea8800b23e3
[ "MIT" ]
null
null
null
src/scv/optimistic.py
tpinhoda/Graph-Based_Spatial_Cross_Validation
19300a715d3d03580232926bbc1f6ea8800b23e3
[ "MIT" ]
null
null
null
src/scv/optimistic.py
tpinhoda/Graph-Based_Spatial_Cross_Validation
19300a715d3d03580232926bbc1f6ea8800b23e3
[ "MIT" ]
null
null
null
"""Generate optmistic spatial folds""" import os import time from dataclasses import dataclass from tqdm import tqdm from src.scv.scv import SpatialCV OPTIMISTIC = "Optimistic" @dataclass class Optimistic(SpatialCV): """Represents the Optimistic Spatial Cross-Validation, without considering the removing buff...
32.574074
87
0.587265
203
1,759
4.866995
0.423645
0.032389
0.033401
0.040486
0.040486
0
0
0
0
0
0
0.000847
0.328596
1,759
53
88
33.188679
0.835732
0.305287
0
0
1
0
0.068398
0.018182
0
0
0
0
0
1
0.04
false
0
0.2
0
0.28
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4a7bdbc7990abab6bbaaee28802b3c7873051d6
1,214
py
Python
magma/log.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
167
2017-10-08T00:59:22.000Z
2022-02-08T00:14:39.000Z
magma/log.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
719
2017-08-29T17:58:28.000Z
2022-03-31T23:39:18.000Z
magma/log.py
leonardt/magma
d3e8c9500ec3b167df8ed067e0c0305781c94ab6
[ "MIT" ]
14
2017-09-01T03:25:16.000Z
2021-11-05T13:30:24.000Z
import functools from magma.circuit import peek_definition_context_stack from magma.display import Display class Log(Display): level = None def __init__(self, display_str, args, file=None): display_prefix = type(self).__name__.upper() super().__init__(f"[{display_prefix}] {display_str}", arg...
22.90566
78
0.6771
170
1,214
4.447059
0.288235
0.074074
0.087302
0.068783
0
0
0
0
0
0
0
0.00418
0.211697
1,214
52
79
23.346154
0.785789
0
0
0
0
0
0.089786
0
0
0
0
0
0
1
0.114286
false
0
0.085714
0
0.6
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
1
0
0
1
e4af4c930e6863f66e82a3b5025faa9d0d2f3e8a
3,965
py
Python
tests/test_endtoend.py
ntaylorwss/pavlov
c10dff9e32934fb0bba0531c041251f4c61366ac
[ "MIT" ]
2
2018-07-04T03:34:48.000Z
2018-07-04T06:57:11.000Z
tests/test_endtoend.py
ntaylorwss/kerasgym
c10dff9e32934fb0bba0531c041251f4c61366ac
[ "MIT" ]
53
2018-06-26T01:11:43.000Z
2018-07-04T00:56:43.000Z
tests/test_endtoend.py
ntaylorwss/pavlov
c10dff9e32934fb0bba0531c041251f4c61366ac
[ "MIT" ]
null
null
null
import sys sys.path.append('/home') import warnings warnings.filterwarnings("ignore", category=DeprecationWarning) import pavlov import gym import tensorflow as tf class TestPavlov: def test_basic_discrete_agent(self): # arrange env = gym.make("CartPole-v0") base_config = { '...
36.712963
92
0.571248
402
3,965
5.457711
0.283582
0.041021
0.035552
0.052871
0.711942
0.662261
0.64722
0.64722
0.611668
0.611668
0
0.03882
0.324338
3,965
107
93
37.056075
0.780142
0.002774
0
0.573034
0
0
0.061503
0.006074
0
0
0
0
0
1
0.033708
false
0
0.05618
0
0.101124
0.033708
0
0
0
null
0
0
0
0
0
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
1
e4b18ec11a86c46df448a713d8e7ed01bc4ea1dd
578
py
Python
debug_jsnapy_cpu_high.py
taijiji/sample_JSNAPy
a09ceae35b9c4e0f6dc1bcca8e7231039f1267d5
[ "MIT" ]
2
2016-12-02T05:31:30.000Z
2020-01-12T21:48:30.000Z
debug_jsnapy_cpu_high.py
taijiji/sample_JSNAPy
a09ceae35b9c4e0f6dc1bcca8e7231039f1267d5
[ "MIT" ]
null
null
null
debug_jsnapy_cpu_high.py
taijiji/sample_JSNAPy
a09ceae35b9c4e0f6dc1bcca8e7231039f1267d5
[ "MIT" ]
null
null
null
# This is debug script for JSNAPy 1.0.0 issue(https://github.com/Juniper/jsnapy/issues/204) # The issue had be solved after JSNAPY 1.0.1, #! /usr/bin/env python # -*- coding: utf-8 -*- from jnpr.junos.utils.config import Config from jnpr.jsnapy import SnapAdmin jsnapy_config =\ ''' hosts: - device: 192.168.34.16 ...
22.230769
91
0.652249
83
578
4.481928
0.710843
0.037634
0.043011
0
0
0
0
0
0
0
0
0.06
0.221453
578
26
92
22.230769
0.766667
0.306228
0
0
0
0
0.021583
0
0
0
0
0
0
0
null
null
0
0.222222
null
null
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4b7ad8b8acf1467f2eb192e680a24841e6a6d87
698
py
Python
pandashells/test/utils_lib_test.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
878
2015-08-02T02:07:20.000Z
2022-01-15T19:06:47.000Z
pandashells/test/utils_lib_test.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
44
2015-05-12T15:56:57.000Z
2021-01-13T20:58:29.000Z
pandashells/test/utils_lib_test.py
timgates42/pandashells
4b565435a25ac713eeeacf28c3e5b52fe94530d8
[ "BSD-2-Clause-FreeBSD" ]
31
2015-08-02T22:48:36.000Z
2021-01-13T20:54:58.000Z
#! /usr/bin/env python from unittest import TestCase import datetime import time from pandashells.lib.utils_lib import Timer, TimerResult from mock import patch class TimerResultTests(TestCase): def test_repr(self): starting = datetime.datetime(2000, 1, 1) ending = datetime.datetime(2000, 1, 2) ...
27.92
75
0.69341
92
698
5.065217
0.456522
0.05794
0.081545
0.094421
0
0
0
0
0
0
0
0.031802
0.189112
698
24
76
29.083333
0.791519
0.030086
0
0
0
0
0.121302
0.060651
0
0
0
0
0.117647
1
0.117647
false
0
0.294118
0
0.529412
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
1
0
0
1
e4b7afd862bd79e1ae009ef03e04a9903547721a
826
py
Python
src/visualization/labels_eda.py
Business-Wizard/License_Plate_Reader_App
968217ffaa74ba636ea83f54ec9825567ca8699c
[ "CNRI-Python", "RSA-MD", "Xnet", "FTL", "X11" ]
5
2021-02-11T07:08:39.000Z
2021-10-31T10:10:54.000Z
src/visualization/labels_eda.py
Business-Wizard/License_Plate_Reader_App
968217ffaa74ba636ea83f54ec9825567ca8699c
[ "CNRI-Python", "RSA-MD", "Xnet", "FTL", "X11" ]
6
2021-02-04T19:19:42.000Z
2022-02-10T03:15:00.000Z
src/visualization/labels_eda.py
Business-Wizard/License_Plate_Recognition
968217ffaa74ba636ea83f54ec9825567ca8699c
[ "CNRI-Python", "RSA-MD", "Xnet", "FTL", "X11" ]
1
2020-12-14T11:43:35.000Z
2020-12-14T11:43:35.000Z
from src.models.processhelpers import load_labels, holdout_directory from src.models import segmentation import seaborn as sns import matplotlib.pyplot as plt import pandas as pd labels_array = load_labels(holdout_directory) counter_dict = dict() for idx, label in enumerate(labels_array): for char in label: ...
34.416667
71
0.709443
117
826
4.811966
0.470085
0.136767
0.046181
0.092362
0.17762
0.17762
0.17762
0.17762
0.17762
0.17762
0
0.005997
0.192494
826
23
72
35.913043
0.838081
0.261501
0
0
0
0
0.008292
0
0
0
0
0
0
1
0
false
0
0.3125
0
0.3125
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e4ca5977826750389d041e65d25177b238affd28
502
py
Python
falcon_helpers/resources/redirect.py
nZac/falcon-helpers
a5b3efa40de38867a572d80d958414fa8d303293
[ "BSD-3-Clause" ]
null
null
null
falcon_helpers/resources/redirect.py
nZac/falcon-helpers
a5b3efa40de38867a572d80d958414fa8d303293
[ "BSD-3-Clause" ]
null
null
null
falcon_helpers/resources/redirect.py
nZac/falcon-helpers
a5b3efa40de38867a572d80d958414fa8d303293
[ "BSD-3-Clause" ]
null
null
null
import falcon class RedirectResource: """A simple redirect resource which can be used to force a route to redirect. :params path: the string version of the path to redirect to :params status: a falcon status object, default to falcon.HTTP_301 """ def __init__(self, path, status=None): ...
26.421053
71
0.671315
72
502
4.569444
0.527778
0.072948
0.079027
0.097264
0
0
0
0
0
0
0
0.015915
0.249004
502
18
72
27.888889
0.856764
0.40239
0
0
0
0
0.028881
0
0
0
0
0
0
1
0.25
false
0
0.125
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
1
0
0
0
0
0
0
0
1
e4d000c6124cb7813e8f183fdda3d93dfe08fcf0
252
py
Python
world_data_scraper.py
rishabnayak/COVID-19-Data-Scraper
4bdcc19cddb38cefd9518f08ff5c7f40668f4926
[ "MIT" ]
null
null
null
world_data_scraper.py
rishabnayak/COVID-19-Data-Scraper
4bdcc19cddb38cefd9518f08ff5c7f40668f4926
[ "MIT" ]
null
null
null
world_data_scraper.py
rishabnayak/COVID-19-Data-Scraper
4bdcc19cddb38cefd9518f08ff5c7f40668f4926
[ "MIT" ]
1
2020-04-14T03:58:34.000Z
2020-04-14T03:58:34.000Z
from bs4 import BeautifulSoup import dryscrape url = "https://www.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6" sess = dryscrape.Session() sess.visit(url) content = BeautifulSoup(sess.body(), "html.parser") print(content)
28
93
0.793651
30
252
6.666667
0.733333
0
0
0
0
0
0
0
0
0
0
0.098712
0.075397
252
8
94
31.5
0.759657
0
0
0
0
0
0.380952
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
1
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
e4d4a82f4fb2338b1f3770e89df049e8ad1e4900
2,081
py
Python
src/redirector.py
LovisaLugnegard/wopiserver
1f210bcd6df7d490d9244d939b3de42b799b5aa9
[ "Apache-2.0" ]
null
null
null
src/redirector.py
LovisaLugnegard/wopiserver
1f210bcd6df7d490d9244d939b3de42b799b5aa9
[ "Apache-2.0" ]
null
null
null
src/redirector.py
LovisaLugnegard/wopiserver
1f210bcd6df7d490d9244d939b3de42b799b5aa9
[ "Apache-2.0" ]
null
null
null
#!/bin/python ''' redirector.py A redirector from http on port 80 to https according to the WOPI server configuration Author: Giuseppe.LoPresti@cern.ch CERN/IT-ST ''' import sys, ConfigParser import logging import logging.handlers try: import flask # Flask app server, python-flask-0.10.1-4.el7.noar...
34.683333
123
0.655935
278
2,081
4.888489
0.535971
0.015453
0.01766
0
0
0
0
0
0
0
0
0.025393
0.20519
2,081
59
124
35.271186
0.796252
0.138876
0
0.128205
0
0.025641
0.284444
0.070476
0
0
0
0
0
0
null
null
0
0.128205
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4e81b982d9bd16cb79d619ef8858f19db6f91cc
1,254
py
Python
eval/make_sample_labels_consistent.py
nellore/rail
8827a7a0b1195c04cddf6d7a23ec7885619716ca
[ "MIT" ]
78
2015-04-13T19:50:16.000Z
2022-02-02T10:39:42.000Z
eval/make_sample_labels_consistent.py
nellore/rail
8827a7a0b1195c04cddf6d7a23ec7885619716ca
[ "MIT" ]
37
2015-04-30T16:31:27.000Z
2020-11-30T18:58:55.000Z
eval/make_sample_labels_consistent.py
nellore/rail
8827a7a0b1195c04cddf6d7a23ec7885619716ca
[ "MIT" ]
17
2015-04-12T00:02:57.000Z
2021-12-01T05:16:15.000Z
""" make_sample_labels_consistent.py Makes sample labels from 56-/28- manifest files agree with sample labels from 112-sample manifest file. """ import argparse import sys # Print file's docstring if -h is invoked parser = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescript...
29.162791
65
0.6563
160
1,254
5.0375
0.43125
0.044665
0.039702
0.049628
0.295285
0.225806
0.066998
0.066998
0
0
0
0.02439
0.215311
1,254
43
66
29.162791
0.794715
0.052632
0
0.137931
0
0
0.130644
0.020173
0
0
0
0
0
0
null
null
0
0.068966
null
null
0.034483
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e4ea9446c77adfd57bce4a40855edb9316c6fbc5
737
py
Python
test/render_test.py
parsd/imgs2pdf
561b4f78be781b1fc2b79cf888712480f7a18ffa
[ "MIT" ]
null
null
null
test/render_test.py
parsd/imgs2pdf
561b4f78be781b1fc2b79cf888712480f7a18ffa
[ "MIT" ]
1
2021-09-08T01:57:17.000Z
2021-09-08T01:57:17.000Z
test/render_test.py
parsd/imgs2pdf
561b4f78be781b1fc2b79cf888712480f7a18ffa
[ "MIT" ]
null
null
null
"""Integration test of the `imgs2pdf` package.""" import pathlib from typing import Sequence from _pytest.capture import CaptureFixture # type: ignore import imgs2pdf from .conftest import remove_creation_date THIS_DIR = pathlib.Path(__file__).resolve().parent def test_images(capsysbinary: CaptureFixture, images...
30.708333
86
0.744912
92
737
5.793478
0.565217
0.078799
0.101313
0
0
0
0
0
0
0
0
0.0048
0.151967
737
23
87
32.043478
0.848
0.176391
0
0
0
0
0.02521
0
0
0
0
0
0.083333
1
0.083333
false
0
0.416667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e4eb22a1be12c6e052e425f9a59a6e66e121dc36
3,390
py
Python
alipay/aop/api/domain/ExpenseCtrRuleGroupInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/ExpenseCtrRuleGroupInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/ExpenseCtrRuleGroupInfo.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.ExpenseCtrRuleInfo import ExpenseCtrRuleInfo class ExpenseCtrRuleGroupInfo(object): def __init__(self): self._expense_ctrl_rule_info_list = None self._expense...
34.591837
105
0.627139
434
3,390
4.5
0.129032
0.11828
0.16129
0.204301
0.473118
0.437788
0.232463
0.121352
0.121352
0.095238
0
0.000827
0.287021
3,390
97
106
34.948454
0.807199
0.012389
0
0.111111
0
0
0.089115
0.032297
0
0
0
0
0
1
0.135802
false
0
0.037037
0.049383
0.271605
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
e4ee14325ca5cc335b871084a72200fecef8fdff
1,148
py
Python
paas-ce/paas/paas/engine/constants.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
767
2019-03-25T06:35:43.000Z
2022-03-30T08:57:51.000Z
paas-ce/paas/paas/engine/constants.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
194
2019-03-29T07:16:41.000Z
2022-03-30T06:17:49.000Z
paas-ce/paas/paas/engine/constants.py
renmcc/bk-PaaS
1c9e4e9cfb40fc3375cd6b5f08af8c84203de246
[ "Apache-2.0" ]
381
2019-03-25T07:19:54.000Z
2022-03-29T03:22:42.000Z
# -*- coding: utf-8 -*- """ Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in co...
37.032258
305
0.767422
154
1,148
5.655844
0.688312
0.068886
0.029851
0.036739
0
0
0
0
0
0
0
0.01134
0.155052
1,148
30
306
38.266667
0.886598
0.633275
0
0
0
0
0.084951
0
0
0
0
0
0
1
0
false
0
0.166667
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
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
e4f9ec7db578ce240cb33b781cd8e2112f969efc
2,354
py
Python
src/logs/migrations/0001_initial.py
georgy-komarov/innopolis-sec.deploy
dee116738de7e209b6ba54506431b815aaf1789f
[ "MIT" ]
4
2018-08-24T11:54:56.000Z
2018-08-24T18:13:10.000Z
src/logs/migrations/0001_initial.py
georgy-komarov/innopolis-sec.deploy
dee116738de7e209b6ba54506431b815aaf1789f
[ "MIT" ]
null
null
null
src/logs/migrations/0001_initial.py
georgy-komarov/innopolis-sec.deploy
dee116738de7e209b6ba54506431b815aaf1789f
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-22 08:10 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('teamboard', '0001_initial'), ] operations = [ migrations.CreateModel( name='L...
43.592593
192
0.60068
236
2,354
5.864407
0.313559
0.040462
0.060694
0.095376
0.518786
0.468208
0.384393
0.384393
0.381503
0.312139
0
0.014891
0.258284
2,354
53
193
44.415094
0.777778
0.018267
0
0.521739
1
0
0.125162
0
0
0
0
0
0
1
0
false
0
0.043478
0
0.130435
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e4fadec51a38f4e837a12957d124e56b4d025c90
18,457
py
Python
app.py
ethan-nelson/bartiromo
b767a15c440274a176b4dc33b353ec34af062eed
[ "MIT" ]
null
null
null
app.py
ethan-nelson/bartiromo
b767a15c440274a176b4dc33b353ec34af062eed
[ "MIT" ]
2
2017-04-25T03:06:17.000Z
2017-09-24T21:59:15.000Z
app.py
ethan-nelson/bartiromo
b767a15c440274a176b4dc33b353ec34af062eed
[ "MIT" ]
null
null
null
from flask import Flask from flask import * from flask.ext.login import * from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.uploads import configure_uploads, IMAGES, UploadSet from flask_wtf import FlaskForm from wtforms import * import datetime import os from werkzeug.security import generate_password_hash, c...
36.987976
210
0.599502
2,117
18,457
5.083609
0.144072
0.04265
0.022301
0.020535
0.402434
0.322431
0.25683
0.203958
0.165583
0.127671
0
0.003265
0.220133
18,457
498
211
37.062249
0.744407
0.047082
0
0.326705
0
0
0.158924
0.021864
0
0
0
0
0
1
0.09375
false
0.065341
0.028409
0.028409
0.423295
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
e4fda7d885404f7cdfe2169cb70e0ca7ae1cafee
1,734
py
Python
Python/Assistente_virtual/Versao_final/TestePosteriores/Teste2.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Assistente_virtual/Versao_final/TestePosteriores/Teste2.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
Python/Assistente_virtual/Versao_final/TestePosteriores/Teste2.py
Jhonattan-rocha/Meus-primeiros-programas
f5971b66c0afd049b5d0493e8b7a116b391d058e
[ "MIT" ]
null
null
null
import pickle import numpy as np from pybrain.tools.shortcuts import buildNetwork from pybrain.supervised.trainers.backprop import BackpropTrainer from pybrain.datasets.supervised import SupervisedDataSet class BagOfWords: def __init__(self): self.vocab = [] def build_vocab(self, sentences): ...
27.967742
95
0.650519
233
1,734
4.793991
0.44206
0.056401
0.023277
0.039391
0
0
0
0
0
0
0
0.009893
0.242215
1,734
61
96
28.42623
0.840183
0.144175
0
0.046512
0
0
0.048747
0
0
0
0
0
0
1
0.093023
false
0.069767
0.116279
0.023256
0.27907
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
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
9015838692b1c941b049e05f914c7242ac1bd35e
1,621
py
Python
class_email.py
jrstats/twitterNotifications
8c70ca823fdf67f109022dd9862e8ef4fccf3b3c
[ "MIT" ]
null
null
null
class_email.py
jrstats/twitterNotifications
8c70ca823fdf67f109022dd9862e8ef4fccf3b3c
[ "MIT" ]
null
null
null
class_email.py
jrstats/twitterNotifications
8c70ca823fdf67f109022dd9862e8ef4fccf3b3c
[ "MIT" ]
null
null
null
# %% import smtplib from email.message import EmailMessage class Emailer: def __init__(self, host, port, email, password): self.host = host self.port = port self.email = email self.password = password @classmethod def fromDict(cls, keys, tls=False): host = keys["ema...
27.474576
85
0.59161
191
1,621
4.890052
0.366492
0.067452
0.041756
0.067452
0.098501
0.098501
0.098501
0.098501
0
0
0
0.007813
0.289328
1,621
58
86
27.948276
0.802951
0.016039
0
0.090909
0
0
0.142138
0.013208
0
0
0
0
0
1
0.090909
false
0.159091
0.068182
0
0.227273
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
90195973d0552baef7cddd314b0639abeef5778e
5,625
py
Python
python/windrose_rimini.py
RS-eco/wfc
d8e14e7da766aa2c8d19b005f745407d148bd33e
[ "MIT" ]
null
null
null
python/windrose_rimini.py
RS-eco/wfc
d8e14e7da766aa2c8d19b005f745407d148bd33e
[ "MIT" ]
null
null
null
python/windrose_rimini.py
RS-eco/wfc
d8e14e7da766aa2c8d19b005f745407d148bd33e
[ "MIT" ]
1
2020-12-16T11:50:41.000Z
2020-12-16T11:50:41.000Z
import numpy import pylab as lab #from mpl_toolkits.basemap import * import string import datetime as dt #import utils import matplotlib.ticker as ticker import matplotlib.dates as mdates import copy import random import matplotlib.cm as cm import math import calendar months2 = mdates.MonthLocator(interval=1) month...
27.846535
127
0.609956
1,011
5,625
3.283877
0.24728
0.007831
0.005422
0.007229
0.196084
0.145482
0.112651
0.112651
0.057831
0.057831
0
0.12575
0.199822
5,625
201
128
27.985075
0.611864
0.027378
0
0.113924
0
0
0.049588
0.015919
0
0
0
0
0
0
null
null
0
0.06962
null
null
0.006329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
9025763529b2e54297bbe6236fdce96b40cfe8ab
541
py
Python
utils/generate_parquet.py
sano307/redshift-spectrum-demo
7c6df5705fdec8e13a471216e5cd7d134a959269
[ "MIT" ]
1
2021-07-12T21:33:25.000Z
2021-07-12T21:33:25.000Z
utils/generate_parquet.py
sano307/redshift-spectrum-demo
7c6df5705fdec8e13a471216e5cd7d134a959269
[ "MIT" ]
null
null
null
utils/generate_parquet.py
sano307/redshift-spectrum-demo
7c6df5705fdec8e13a471216e5cd7d134a959269
[ "MIT" ]
null
null
null
import os import sys from fastparquet import ParquetFile, write import pandas as pd PARQUET_FILE_PATH = '../data/sample.parq' if os.path.isfile(PARQUET_FILE_PATH): os.remove(PARQUET_FILE_PATH) data = [ {'year': 2014, 'make': "toyota", 'model':"corolla"}, {'year': 2017, 'make': "nissan" ,'model':"sentra"}, ...
22.541667
54
0.67098
74
541
4.756757
0.513514
0.15625
0.213068
0.107955
0
0
0
0
0
0
0
0.034115
0.133087
541
23
55
23.521739
0.716418
0
0
0
0
0
0.218115
0
0
0
0
0
0
1
0
false
0
0.235294
0
0.235294
0.058824
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
902decc6e1db8e55a548f8e5c66d714755bfc1ea
593
py
Python
app/game/forms.py
wmeira/gothongames
b21de419a6ba274e1bad6feceafbb75ac593c50c
[ "MIT" ]
1
2021-09-02T14:03:34.000Z
2021-09-02T14:03:34.000Z
app/game/forms.py
wmeira/gothongames
b21de419a6ba274e1bad6feceafbb75ac593c50c
[ "MIT" ]
null
null
null
app/game/forms.py
wmeira/gothongames
b21de419a6ba274e1bad6feceafbb75ac593c50c
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import StringField, SubmitField, RadioField from wtforms.validators import DataRequired from ..games import Room class GameForm(FlaskForm): action = StringField('Action', validators=[DataRequired()]) submit = SubmitField('Submit') class GameQuizForm(FlaskForm): ...
29.65
71
0.708263
66
593
6.227273
0.454545
0.053528
0.111922
0
0
0
0
0
0
0
0
0
0.173693
593
19
72
31.210526
0.838776
0
0
0.142857
0
0
0.040472
0
0
0
0
0
0
1
0.071429
false
0
0.285714
0
0.785714
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
1
0
0
1
902ea7307a73b6201ff40581b91766ca2b75d548
486
py
Python
apps/accounts/migrations/0013_student_gender.py
abdulwaliyahaya/resultLab
08c84d9b8c2bcc2a71e9c0a7766988ada0234be4
[ "MIT" ]
3
2019-03-19T03:49:17.000Z
2021-03-20T10:36:22.000Z
apps/accounts/migrations/0013_student_gender.py
abdulwaliyahaya/resultLab
08c84d9b8c2bcc2a71e9c0a7766988ada0234be4
[ "MIT" ]
null
null
null
apps/accounts/migrations/0013_student_gender.py
abdulwaliyahaya/resultLab
08c84d9b8c2bcc2a71e9c0a7766988ada0234be4
[ "MIT" ]
3
2019-08-10T18:39:59.000Z
2021-01-19T07:30:20.000Z
# Generated by Django 2.1 on 2018-09-07 20:47 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0012_auto_20180905_2337'), ] operations = [ migrations.AddField( model_name='student', name='gender', ...
24.3
116
0.59465
51
486
5.54902
0.784314
0
0
0
0
0
0
0
0
0
0
0.089636
0.265432
486
19
117
25.578947
0.703081
0.088477
0
0
1
0
0.154195
0.052154
0
0
0
0
0
1
0
false
0
0.076923
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
90365bacda9f131680c890c7ca1c0b0c206d209f
810
py
Python
backend/histocat/core/gate/models.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
4
2021-06-14T15:19:25.000Z
2022-02-09T13:17:39.000Z
backend/histocat/core/gate/models.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
null
null
null
backend/histocat/core/gate/models.py
BodenmillerGroup/histocat-web
c598cd07506febf0b7c209626d4eb869761f2e62
[ "MIT" ]
1
2022-02-09T13:17:41.000Z
2022-02-09T13:17:41.000Z
import sqlalchemy as sa from sqlalchemy.dialects.postgresql import JSONB from histocat.core.base import Base class GateModel(Base): """Cell gate.""" __tablename__ = "gate" id = sa.Column(sa.Integer(), primary_key=True, index=True) dataset_id = sa.Column(sa.Integer(), sa.ForeignKey("dataset.id", ond...
33.75
117
0.692593
106
810
5.084906
0.490566
0.103896
0.092764
0.044527
0.070501
0
0
0
0
0
0
0
0.145679
810
23
118
35.217391
0.778902
0.012346
0
0
0
0
0.151134
0.050378
0
0
0
0
0
1
0.066667
false
0
0.2
0.066667
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
903a633468bd15197a97ac2be07950cd359c4c69
903
py
Python
weatherAPI.py
yusufaltattan/CA3
f0bea3cf66de6af2757c89704cd388e16e3e4673
[ "MIT" ]
null
null
null
weatherAPI.py
yusufaltattan/CA3
f0bea3cf66de6af2757c89704cd388e16e3e4673
[ "MIT" ]
null
null
null
weatherAPI.py
yusufaltattan/CA3
f0bea3cf66de6af2757c89704cd388e16e3e4673
[ "MIT" ]
null
null
null
from apiHelper import get_weather_URL import requests '''Main Weather API''' data = requests.get(get_weather_URL()) weather = data.json() def weather_today(): '''This function extracts relevent info from the API''' description = weather["weather"][0]["description"] temp = str(round(weather["main"]["temp"...
36.12
164
0.694352
122
903
4.942623
0.5
0.109453
0.043118
0
0
0
0
0
0
0
0
0.018301
0.152824
903
24
165
37.625
0.769935
0.054264
0
0
0
0
0.233656
0
0
0
0
0
0
1
0.066667
false
0.266667
0.133333
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
9041503c6f60fe4bd6e64ead24995d93616168aa
8,556
py
Python
apps/users/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/users/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
apps/users/models.py
dongdawang/ssrmgmt
a41e595aec503dcb191a20ea8d58233bbb8f2db0
[ "MIT" ]
null
null
null
import base64 from datetime import datetime, timedelta from django.db import models from django.contrib.auth.models import AbstractUser from django.utils.translation import gettext_lazy as _ from django.utils import timezone from django.core.validators import MaxValueValidator, MinValueValidator import markdown from ...
35.65
105
0.629383
1,002
8,556
5.207585
0.292415
0.094864
0.031046
0.041395
0.259486
0.219816
0.176504
0.151782
0.151782
0.119203
0
0.023504
0.234222
8,556
239
106
35.799163
0.772894
0.039037
0
0.162011
0
0.011173
0.063825
0.003063
0
0
0
0
0
1
0.100559
false
0.027933
0.055866
0.044693
0.530726
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
1
0
0
1
5f39b35f41252ae207c02418340c5ce291b13262
260
py
Python
string/maior.py
felipeaq/solution_of_a_course
5cfe7d18919746040a3e721317c7651fc9a88f99
[ "MIT" ]
null
null
null
string/maior.py
felipeaq/solution_of_a_course
5cfe7d18919746040a3e721317c7651fc9a88f99
[ "MIT" ]
null
null
null
string/maior.py
felipeaq/solution_of_a_course
5cfe7d18919746040a3e721317c7651fc9a88f99
[ "MIT" ]
null
null
null
def menor_nome(nomes): nome=nomes[0] for i in nomes: if len(i.strip())<len(nome.strip()): nome= i return nome.strip().capitalize() if __name__=='__main__': print (menor_nome(['maria', ' josé ', ' PAULO', 'Catarina ']))
26
70
0.565385
34
260
4.029412
0.588235
0.131387
0
0
0
0
0
0
0
0
0
0.005128
0.25
260
9
71
28.888889
0.697436
0
0
0
0
0
0.146154
0
0
0
0
0
0
1
0.125
false
0
0
0
0.25
0.125
0
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
0
0
0
0
0
1
5f3e5c3b363f725a5d5a7758ca53c2dea6bb97b1
968
py
Python
public/shader/220207_1703.py
pome-ta/soundShader4twigl
abdb42fbda96981e8c2d71696f4f76049796ffad
[ "MIT" ]
null
null
null
public/shader/220207_1703.py
pome-ta/soundShader4twigl
abdb42fbda96981e8c2d71696f4f76049796ffad
[ "MIT" ]
null
null
null
public/shader/220207_1703.py
pome-ta/soundShader4twigl
abdb42fbda96981e8c2d71696f4f76049796ffad
[ "MIT" ]
null
null
null
#define BPM 90.0 const float PI = acos(-1.0); const float TAU = PI * 2.0; /* sound common */ float timeToBeat(float t) {return t / 60.0 * BPM;} float beatToTime(float b) {return b / BPM * 60.0;} float sine(float phase) { return sin(TAU * phase); } float fm(float t, float f, float i, float r){ return sin(TAU * ...
21.511111
81
0.553719
180
968
2.977778
0.338889
0.018657
0.022388
0.074627
0.085821
0.05597
0.05597
0.05597
0.05597
0
0
0.13172
0.231405
968
44
82
22
0.58871
0.015496
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
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
1
0
0
0
0
0
0
0
0
1
5f4a3ab08d5613c064a29bb1b4b45c0dbd206ac3
1,399
py
Python
dialogue_system/language_generation/generator.py
syugoing/communication
82296561ff525aac0fea0ff38c7660699430ed79
[ "MIT" ]
null
null
null
dialogue_system/language_generation/generator.py
syugoing/communication
82296561ff525aac0fea0ff38c7660699430ed79
[ "MIT" ]
null
null
null
dialogue_system/language_generation/generator.py
syugoing/communication
82296561ff525aac0fea0ff38c7660699430ed79
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys class LanguageGenerator(object): def __init__(self): pass def generate_sentence(self, dialogue_act): sent = '' if 'SUBJECT' in dialogue_act: sent += '質問の科目は{0}ですね。'.format(dialogue_act['SUBJECT']) if 'TEACHER' in dialogue_act: ...
31.088889
67
0.535382
144
1,399
4.951389
0.381944
0.154278
0.112202
0.098177
0.088359
0
0
0
0
0
0
0.005417
0.340243
1,399
45
68
31.088889
0.767064
0.015011
0
0.054054
1
0
0.222222
0.020334
0
0
0
0
0
1
0.054054
false
0.027027
0.027027
0
0.135135
0.027027
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
5f4bad1080a1b152a3be6ede81184b16c7c4c4d7
569
py
Python
carbon_intensity/api/__init__.py
Silverdoses/py-carbonintensity-uk
20f00fac4a9cb07f61db363244c7d162ed80e219
[ "MIT" ]
4
2020-11-30T19:40:31.000Z
2022-03-17T01:59:30.000Z
carbon_intensity/api/__init__.py
Silverdoses/py-carbonintensity-uk
20f00fac4a9cb07f61db363244c7d162ed80e219
[ "MIT" ]
1
2021-03-12T22:03:23.000Z
2021-03-12T22:03:23.000Z
carbon_intensity/api/__init__.py
Silverdoses/py-carbonintensity-uk
20f00fac4a9cb07f61db363244c7d162ed80e219
[ "MIT" ]
null
null
null
from typing import Any import requests from .national import NationalJSONAPI, NationalXMLAPI from .regional import RegionalJSONAPI class JSONClient: def __init__(self, **kwargs: Any): self.session = requests.Session() self._settings = {"session": self.session, **kwargs} self.national = N...
27.095238
62
0.70123
58
569
6.689655
0.327586
0.113402
0.056701
0.087629
0.154639
0
0
0
0
0
0
0
0.191564
569
20
63
28.45
0.843478
0
0
0.142857
0
0
0.012302
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
1
5f52a29c25ccd7a2c573d0b8f0f8eba8e39a5381
3,374
py
Python
flow/core/kernel/lane_area_detectors/base.py
vallout/flow
59871cab252e225fab2258dbfa53714a48d9e9ab
[ "MIT" ]
null
null
null
flow/core/kernel/lane_area_detectors/base.py
vallout/flow
59871cab252e225fab2258dbfa53714a48d9e9ab
[ "MIT" ]
null
null
null
flow/core/kernel/lane_area_detectors/base.py
vallout/flow
59871cab252e225fab2258dbfa53714a48d9e9ab
[ "MIT" ]
null
null
null
"""Script containing the base lane area kernel class.""" class KernelLaneAreaDetector(object): """Base traffic light kernel. This kernel sub-class is used to interact with the simulator with regards to all traffic light -dependent components. Specifically, this class contains methods for: * Info...
34.080808
88
0.661826
429
3,374
5.090909
0.314685
0.028846
0.062271
0.076923
0.375916
0.312729
0.24359
0.22207
0.22207
0.083791
0
0
0.274155
3,374
98
89
34.428571
0.891793
0.555127
0
0.375
0
0
0
0
0
0
0
0
0
1
0.458333
false
0.041667
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
5f55150b3d995079ef417be8b3ce7fc4c1af1959
2,116
py
Python
Week 6/id_750/LeetCode_36_750.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-10-12T06:48:45.000Z
2019-10-12T06:48:45.000Z
Week 6/id_750/LeetCode_36_750.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
1
2019-12-01T10:02:03.000Z
2019-12-01T10:02:03.000Z
Week 6/id_750/LeetCode_36_750.py
larryRishi/algorithm004-05
e60d0b1176acd32a9184b215e36d4122ba0b6263
[ "Apache-2.0" ]
null
null
null
""" 判断一个 9x9 的数独是否有效。只需要根据以下规则,验证已经填入的数字是否有效即可。 1.数字 1-9 在每一行只能出现一次。 2.数字 1-9 在每一列只能出现一次。 3.数字 1-9 在每一个以粗实线分隔的 3x3 宫内只能出现一次。 4.数独部分空格内已填入了数字,空白格用 '.' 表示。 示例 1: 输入: [ ["5","3",".",".","7",".",".",".","."], ["6",".",".","1","9","5",".",".","."], [".","9","8",".",".",".",".","6","."], ["8",".",".",".","6",".","...
31.117647
106
0.318053
228
2,116
2.899123
0.337719
0.02118
0.060514
0.066566
0.163389
0.090772
0.090772
0.090772
0.090772
0.090772
0
0.062756
0.307183
2,116
67
107
31.58209
0.388131
0.326087
0
0
0
0
0.065076
0
0
0
0
0
0
1
0.038462
false
0
0
0
0.153846
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
1
5f5cd80bb3c8cf428803703dc26a9d459ed21a0d
1,178
py
Python
toy_examples.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
3
2019-05-20T17:16:52.000Z
2021-01-29T15:14:47.000Z
toy_examples.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
null
null
null
toy_examples.py
pgora/neurips2019
42fee97620ff45d0e497f64a317aa5444cecb046
[ "MIT" ]
null
null
null
# This file contains code for generating toy datasets to fit using neural networks def generate_dataset_based_on_graph(graph, nb_of_points): points = generate_points(size=graph.shape[0], nb_of_points=nb_of_points) values = get_values_for_points(points, graph) return points, values def generate_points(siz...
32.722222
82
0.651104
172
1,178
4.174419
0.331395
0.125348
0.069638
0.050139
0.169916
0.169916
0.097493
0
0
0
0
0.020595
0.258065
1,178
36
83
32.722222
0.800915
0.067912
0
0
1
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0.071429
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f65b3d1d8678ade4c83e8cf0520c29cb5529feb
642
py
Python
cli/minitrino/cmd/cmd_version.py
jefflester/minipresto
aafa8cf05566c8a1786ed7b261cdef5419437da2
[ "Apache-2.0" ]
8
2020-09-03T20:17:34.000Z
2020-12-22T17:53:33.000Z
cli/minitrino/cmd/cmd_version.py
jefflester/minipresto
aafa8cf05566c8a1786ed7b261cdef5419437da2
[ "Apache-2.0" ]
21
2020-07-30T00:20:06.000Z
2020-12-04T02:43:41.000Z
cli/minitrino/cmd/cmd_version.py
jefflester/minitrino
aafa8cf05566c8a1786ed7b261cdef5419437da2
[ "Apache-2.0" ]
2
2020-09-08T21:15:25.000Z
2020-09-15T16:13:22.000Z
#!usr/bin/env/python3 # -*- coding: utf-8 -*- import os import sys import click from minitrino.cli import pass_environment from minitrino import utils @click.command( "version", help=("""Display Minitrino CLI and library versions."""), ) @utils.exception_handler @pass_environment def cli(ctx): """Version...
22.928571
62
0.697819
86
642
5.05814
0.465116
0.082759
0.082759
0.05977
0
0
0
0
0
0
0
0.003774
0.174455
642
27
63
23.777778
0.816981
0.113707
0
0
0
0
0.252669
0
0
0
0
0
0
1
0.052632
false
0.105263
0.263158
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
1
0
0
0
0
0
1
5f6d0fc56a0899dfe7a7d0a97a3162e818a0bc68
2,023
py
Python
simple/management/commands/parse_government_bill_pdf/textutil.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
69
2015-02-03T12:02:56.000Z
2022-02-16T13:08:01.000Z
simple/management/commands/parse_government_bill_pdf/textutil.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
446
2015-01-01T11:10:33.000Z
2021-11-01T08:15:39.000Z
simple/management/commands/parse_government_bill_pdf/textutil.py
navotsil/Open-Knesset
d6cc6457f87e67a3dbeaec9c1ccbc8d8b7c60c04
[ "BSD-3-Clause" ]
67
2015-01-01T09:13:58.000Z
2021-11-01T07:51:08.000Z
from itertools import chain import re from hashlib import md5 superscript = u'\u200F' digits = set([str(i) for i in xrange(10)]) def fix_superscripts(txt): """ Note: call this before reverse_numbers!! Here's what happens: We have the following input to pdftotext AAAAA XS DBBB What we get is ...
28.492958
84
0.591201
295
2,023
4.010169
0.423729
0.015216
0.010144
0.011834
0.035503
0.035503
0
0
0
0
0
0.017446
0.291646
2,023
70
85
28.9
0.808095
0.296589
0
0.136364
0
0
0.022206
0
0
0
0
0.014286
0
1
0.136364
false
0
0.068182
0.045455
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5f7393b76fb86fafc998d168818d09b2afb46128
370
py
Python
main/migrations/0009_auto_20200820_1748.py
junydania/lostsalesapp
116fe3cf24106d172b4e75d38a2ab97f60168125
[ "MIT" ]
2
2020-10-11T13:49:36.000Z
2020-10-22T13:27:12.000Z
main/migrations/0009_auto_20200820_1748.py
heyrun/lostsales
95cc9c388838b8de26b534fd53ff9a836ccb6f11
[ "MIT" ]
null
null
null
main/migrations/0009_auto_20200820_1748.py
heyrun/lostsales
95cc9c388838b8de26b534fd53ff9a836ccb6f11
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-08-20 16:48 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('main', '0008_auto_20200820_1738'), ] operations = [ migrations.RenameField( model_name='products', old_name='Description', ...
19.473684
45
0.594595
38
370
5.631579
0.815789
0.140187
0
0
0
0
0
0
0
0
0
0.115385
0.297297
370
18
46
20.555556
0.707692
0.116216
0
0
1
0
0.175385
0.070769
0
0
0
0
0
1
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5f8689d4d60bd1ce00d79ea1b2494288e33263e5
1,666
py
Python
oneview_redfish_toolkit/category_resource.py
AgneshKumar/oneview-redfish-toolkit
f559ce795b43891a919dc431563c0d0c8000a2d9
[ "Apache-2.0" ]
19
2017-07-20T17:30:55.000Z
2022-02-14T11:46:16.000Z
oneview_redfish_toolkit/category_resource.py
shobhit-sinha/oneview-redfish-toolkit
ffc86ea0a9e5d192ab6a2fe21c1717957b55d1da
[ "Apache-2.0" ]
421
2017-07-21T17:49:52.000Z
2021-02-08T21:47:00.000Z
oneview_redfish_toolkit/category_resource.py
shobhit-sinha/oneview-redfish-toolkit
ffc86ea0a9e5d192ab6a2fe21c1717957b55d1da
[ "Apache-2.0" ]
20
2017-08-16T15:52:17.000Z
2022-02-18T07:16:49.000Z
# -*- coding: utf-8 -*- # Copyright (2018) Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless...
28.724138
75
0.753902
227
1,666
5.286344
0.436123
0.1
0.166667
0.11
0.138333
0.138333
0.138333
0.083333
0.083333
0
0
0.006579
0.178872
1,666
57
76
29.22807
0.870614
0.42377
0
0.086957
0
0
0
0
0
0
0
0
0
1
0.217391
false
0
0.043478
0.043478
0.434783
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
0
0
0
1
5f8d9abc753fedfe507f893876080fa375a74ae2
402
py
Python
Django/Dstagram/photo/admin.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
Django/Dstagram/photo/admin.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
102
2020-02-12T00:10:33.000Z
2022-03-11T23:58:41.000Z
Django/Dstagram/photo/admin.py
sug5806/TIL
2309d8a270e4a7b8961268a40b6492c5db317e37
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Photo class PhotoAdmin(admin.ModelAdmin): list_display = ['id', 'author', 'image', 'created', 'updated'] list_filter = ['created', 'updated'] search_fields = ['created', 'updated', 'text'] ordering = ['-updated', '-c...
20.1
66
0.669154
45
402
5.866667
0.6
0.159091
0
0
0
0
0
0
0
0
0
0
0.171642
402
19
67
21.157895
0.792793
0.064677
0
0
0
0
0.216578
0
0
0
0
0
0
1
0
false
0
0.222222
0
0.888889
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
1
0
0
1
5f8e704e3700ebc4289a38667cdfd837671b39ee
831
py
Python
congo/templatetags/admin_utils.py
integree/django-congo
f79804fd246e0fcddc7b13c059014081ee982d2c
[ "MIT" ]
1
2017-12-11T23:47:27.000Z
2017-12-11T23:47:27.000Z
congo/templatetags/admin_utils.py
integree/django-congo
f79804fd246e0fcddc7b13c059014081ee982d2c
[ "MIT" ]
null
null
null
congo/templatetags/admin_utils.py
integree/django-congo
f79804fd246e0fcddc7b13c059014081ee982d2c
[ "MIT" ]
null
null
null
from django.core.urlresolvers import reverse, NoReverseMatch from django.contrib.contenttypes.models import ContentType from congo.templatetags import Library register = Library() @register.filter def admin_change_url(value): # {% url 'admin:index' %} # {% url 'admin:polls_choice_add' %} # {% url '...
29.678571
114
0.67509
97
831
5.57732
0.463918
0.05915
0.072089
0.10536
0
0
0
0
0
0
0
0
0.215403
831
27
115
30.777778
0.829755
0.188929
0
0.210526
0
0
0.028169
0
0
0
0
0
0
1
0.105263
false
0.052632
0.157895
0
0.421053
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
5f9143860879d200c01a5dca48f9f076db41cde9
5,031
py
Python
resources/slrauthzswitch.py
bcarpent/smart-license-app
17273b0c793b27a7897de4d07f15113853bbe3a8
[ "BSD-Source-Code" ]
11
2019-02-18T20:36:50.000Z
2020-11-13T08:58:27.000Z
resources/slrauthzswitch.py
bcarpent/smart-license-app
17273b0c793b27a7897de4d07f15113853bbe3a8
[ "BSD-Source-Code" ]
14
2019-04-10T00:57:48.000Z
2022-03-16T17:42:45.000Z
resources/slrauthzswitch.py
bcarpent/smart-license-app
17273b0c793b27a7897de4d07f15113853bbe3a8
[ "BSD-Source-Code" ]
15
2019-02-22T19:39:09.000Z
2022-03-10T17:41:57.000Z
# Copyright (c) 2019 Cisco and/or its affiliates. # # This software is licensed to you under the terms of the Cisco Sample # Code License, Version 1.1 (the "License"). You may obtain a copy of the # License at # # https://developer.cisco.com/docs/licenses # # All use of the material herein must be in acc...
35.680851
177
0.628503
643
5,031
4.699844
0.343701
0.041694
0.017869
0.019854
0.238915
0.211118
0.177366
0.138981
0.122435
0.099934
0
0.010335
0.269131
5,031
140
178
35.935714
0.811531
0.134566
0
0.211009
0
0
0.096358
0
0
0
0
0
0
1
0.06422
false
0.055046
0.091743
0.018349
0.211009
0.073395
0
0
0
null
0
0
0
0
0
0
0
0
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
5f9297f08acf2248274bfc9d3ce29416cd17970c
1,011
py
Python
dtu_test_project/core/management/commands/setup_dtu_tenants.py
foarsitter/django-tenant-users
4ff5d7293436c720f1af567a8088ac1305502c8c
[ "MIT" ]
165
2016-11-28T20:14:45.000Z
2022-03-24T09:24:48.000Z
dtu_test_project/core/management/commands/setup_dtu_tenants.py
foarsitter/django-tenant-users
4ff5d7293436c720f1af567a8088ac1305502c8c
[ "MIT" ]
125
2016-08-20T20:43:13.000Z
2022-03-31T02:30:47.000Z
dtu_test_project/core/management/commands/setup_dtu_tenants.py
Dresdn/django-tenant-users
7e0887606cd63e4a879e0a46246fc8a0e1c6ca25
[ "MIT" ]
47
2017-03-11T22:23:01.000Z
2022-03-10T17:00:38.000Z
from django.core.management.base import BaseCommand from users.models import TenantUser from tenant_users.tenants.tasks import provision_tenant from tenant_users.tenants.utils import create_public_tenant class Command(BaseCommand): help = 'Setups DTU' def __init__(self, *args, **kwargs): super(Comma...
37.444444
119
0.730959
126
1,011
5.650794
0.365079
0.098315
0.061798
0.109551
0.382022
0.328652
0.233146
0.179775
0.179775
0.179775
0
0.009195
0.139466
1,011
26
120
38.884615
0.809195
0
0
0
0
0
0.189484
0.020833
0
0
0
0
0
1
0.125
false
0.1875
0.25
0
0.5
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
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
5f95871645d75e5ffa160f5ef1a606cc05786b8c
2,457
py
Python
src/reader/transmir_corpus.py
admukhty/IHP
b812938582c77d7ab275f8ea04316a38b576323c
[ "MIT" ]
8
2018-05-10T10:27:18.000Z
2021-08-30T02:55:54.000Z
src/reader/transmir_corpus.py
admukhty/IHP
b812938582c77d7ab275f8ea04316a38b576323c
[ "MIT" ]
4
2018-10-24T13:32:45.000Z
2021-02-05T11:48:04.000Z
src/reader/transmir_corpus.py
admukhty/IHP
b812938582c77d7ab275f8ea04316a38b576323c
[ "MIT" ]
5
2020-07-22T06:13:56.000Z
2020-11-18T14:48:39.000Z
import logging import progressbar as pb from reader.pubmed_corpus import PubmedCorpus from mirna_base import MirbaseDB from config import config class TransmirCorpus(PubmedCorpus): """ Corpus generated from the TransmiR database, using distant supervision """ def __init__(self, corpusdir, **kwarg...
37.8
117
0.521775
268
2,457
4.690299
0.38806
0.027844
0.023866
0.020684
0.070008
0.070008
0.070008
0.070008
0.070008
0.070008
0
0.006386
0.362637
2,457
64
118
38.390625
0.796296
0.185185
0
0
0
0
0.035533
0
0
0
0
0.015625
0
1
0.088889
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
5f99cdd4f7cddcf2c21f08f8d2f267ac25b459fd
1,104
py
Python
tools/json_process/merge_trainval.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
tools/json_process/merge_trainval.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
tools/json_process/merge_trainval.py
cenchaojun/detectron2
03ca41a6873bb641764c4762d40d355f215e7ad9
[ "Apache-2.0" ]
null
null
null
import json import os json_path = '/data/cenzhaojun/detectron2/tools/json_process' train_json = json_path + os.sep + 'instance_train.json' val_json = json_path + os.sep + 'instance_val.json' with open(val_json,) as f: data = json.load(f) print(type(data)) # print(data) for index, anns in enumerate(dat...
26.926829
60
0.602355
140
1,104
4.635714
0.321429
0.043143
0.067797
0.043143
0.186441
0.127889
0
0
0
0
0
0.026538
0.249094
1,104
41
61
26.926829
0.756333
0.190217
0
0.307692
0
0
0.187571
0.051977
0
0
0
0
0
1
0
false
0
0.076923
0
0.076923
0.461538
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
5fa2f3cda3ac8a36f7b1d7f184fca613c4bab4c6
2,462
py
Python
userdb-cli.py
eflows4hpc/datacatalog
06e85b43c997773379f707fbb2b686ef8fe9593e
[ "BSD-2-Clause" ]
1
2021-07-08T13:05:53.000Z
2021-07-08T13:05:53.000Z
userdb-cli.py
eflows4hpc/datacatalog
06e85b43c997773379f707fbb2b686ef8fe9593e
[ "BSD-2-Clause" ]
null
null
null
userdb-cli.py
eflows4hpc/datacatalog
06e85b43c997773379f707fbb2b686ef8fe9593e
[ "BSD-2-Clause" ]
null
null
null
from apiserver import settings from apiserver.security import JsonDBInterface, get_password_hash, UserInDB import getopt, sys, getpass def main(argv): userdb = JsonDBInterface(settings) noarg = True try: opts, args = getopt.getopt(argv,"hla:d:g:",["list", "add=", "delete=", "get=", "help"]) e...
45.592593
219
0.581641
318
2,462
4.462264
0.386792
0.033827
0.02537
0.035941
0.085271
0.059901
0.059901
0.059901
0.040874
0
0
0.001138
0.285946
2,462
54
220
45.592593
0.80603
0.006093
0
0.148936
0
0.106383
0.40924
0
0
0
0
0
0
1
0.021277
false
0.170213
0.06383
0
0.085106
0.319149
0
0
0
null
0
0
0
0
0
0
0
0
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
5fa6e6f95de454f40a4bbc7610dde67bcc589686
1,937
py
Python
src/reader/reader.py
t-a-y-l-o-r/checkip
efc9e544f793716a1248a4cd85b39d2d889c23b1
[ "MIT" ]
null
null
null
src/reader/reader.py
t-a-y-l-o-r/checkip
efc9e544f793716a1248a4cd85b39d2d889c23b1
[ "MIT" ]
11
2020-12-28T18:05:22.000Z
2022-01-24T22:55:26.000Z
src/reader/reader.py
t-a-y-l-o-r/checkip
efc9e544f793716a1248a4cd85b39d2d889c23b1
[ "MIT" ]
null
null
null
from abc import (ABC, abstractmethod) from typing import List, Dict import json import os ''' Handles reading in ip addresses from a file. Will provde a list, map, or set of those ips ''' class Abstract_Reader(ABC): ''' Defines the interface for the reader class. Determines how the reader should be intera...
25.826667
60
0.567888
253
1,937
4.229249
0.296443
0.06729
0.04486
0.056075
0.403738
0.364486
0.364486
0.315888
0.315888
0.315888
0
0
0.348477
1,937
74
61
26.175676
0.847861
0.343831
0
0.357143
0
0
0.006356
0
0
0
0
0
0
1
0.178571
false
0.071429
0.142857
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
0
0
0
0
0
1
5faa29b4befe837f8d379eea225c3b61f8000ebb
267
py
Python
currency_converter/converter/views.py
jbhayback/currency-converter
c7e0bf2663ee9d60a97cb9f76269691574fce0a0
[ "MIT" ]
null
null
null
currency_converter/converter/views.py
jbhayback/currency-converter
c7e0bf2663ee9d60a97cb9f76269691574fce0a0
[ "MIT" ]
null
null
null
currency_converter/converter/views.py
jbhayback/currency-converter
c7e0bf2663ee9d60a97cb9f76269691574fce0a0
[ "MIT" ]
null
null
null
from django.shortcuts import render from .currencies import Currency # Create your views here. def index(request): template = 'index.html' context = dict() context['currencies'] = Currency.get_currencies() return render(request, template, context)
22.25
53
0.726592
31
267
6.225806
0.645161
0.15544
0
0
0
0
0
0
0
0
0
0
0.17603
267
11
54
24.272727
0.877273
0.086142
0
0
0
0
0.082645
0
0
0
0
0
0
1
0.142857
false
0
0.285714
0
0.571429
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
1
0
0
1
5fbcec1e44814c5e4efe189a8d97a0c5569b0aca
4,158
py
Python
setup.py
Webhose/webhose2
8a57c8e3a656ccf74b4c14cc65beb54a8f1ee29f
[ "MIT" ]
null
null
null
setup.py
Webhose/webhose2
8a57c8e3a656ccf74b4c14cc65beb54a8f1ee29f
[ "MIT" ]
null
null
null
setup.py
Webhose/webhose2
8a57c8e3a656ccf74b4c14cc65beb54a8f1ee29f
[ "MIT" ]
null
null
null
from codecs import open from pathlib import Path try: from setuptools import setup except ImportError: from distutils.core import setup long_description = ''' ============================ webz.io client for Python ============================ A simple way to access the `Webz.io <https://webz.io/>`_ API from y...
26.825806
180
0.639731
555
4,158
4.751351
0.381982
0.022753
0.075844
0.049298
0.150929
0.130451
0.100114
0.080394
0.080394
0.040956
0
0.014342
0.211881
4,158
154
181
27
0.790357
0
0
0.113043
0
0.017391
0.865079
0.116883
0
0
0
0
0
1
0
false
0
0.069565
0
0.069565
0.034783
0
0
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
5fbef6dd2a4044251cde8e28d5a4084655326cd3
980
py
Python
Image/backuphomework3.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/backuphomework3.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
Image/backuphomework3.py
pection/InternshipProject
2b39cc244e7ac989795d3aba5c1a11bb6c9a57b7
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np from scipy import ndimage import cv2 def plot(data, title): plot.i += 1 plt.subplot(2,2,plot.i) plt.imshow(data) plt.gray() plt.title(title) plot.i = 0 im = cv2.imread("gofestoneyear.jpg") data = np.array(im, dtype=float) plot(data, 'Or...
31.612903
64
0.538776
142
980
3.669014
0.338028
0.084453
0.092131
0.076775
0.28023
0.276392
0.230326
0
0
0
0
0.091298
0.284694
980
31
65
31.612903
0.651926
0
0
0.066667
0
0
0.106204
0
0
0
0
0
0
1
0.033333
false
0.233333
0.133333
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
5fc31b918b78c263f0f1b921482e5c0df13ae30d
1,451
py
Python
cogs/info.py
abiri7/eroicabo
9d33ace8da5f368309b20ead6034592e9aec0549
[ "MIT" ]
null
null
null
cogs/info.py
abiri7/eroicabo
9d33ace8da5f368309b20ead6034592e9aec0549
[ "MIT" ]
null
null
null
cogs/info.py
abiri7/eroicabo
9d33ace8da5f368309b20ead6034592e9aec0549
[ "MIT" ]
1
2021-04-22T18:57:18.000Z
2021-04-22T18:57:18.000Z
import discord from discord.ext import commands class info(commands.Cog): def __init__(self,client): self.client = client @commands.Cog.listener() async def on ready(self): await client.change_presence(activity=discord.Game('.helpme for more info')) print('Bot is re...
31.543478
126
0.614748
182
1,451
4.82967
0.554945
0.045506
0.068259
0.068259
0.097838
0.054608
0
0
0
0
0
0.023832
0.27705
1,451
46
127
31.543478
0.814109
0
0
0.083333
0
0
0.525231
0.014925
0
0
0
0
0
0
null
null
0.027778
0.055556
null
null
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1