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
bdad75a5c272a6a370cabe03d8a9c92e370eb250
2,331
py
Python
tests/functional/procedure/create/test_03.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/procedure/create/test_03.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
tests/functional/procedure/create/test_03.py
reevespaul/firebird-qa
98f16f425aa9ab8ee63b86172f959d63a2d76f21
[ "MIT" ]
null
null
null
#coding:utf-8 # # id: functional.procedure.create.03 # title: CREATE PROCEDURE - Output paramaters # decription: CREATE PROCEDURE - Output paramaters # # Dependencies: # CREATE DATABASE # tracker_id: # min_versions: [] # versions: 2.1 # qmid: ...
25.9
92
0.515659
300
2,331
3.883333
0.346667
0.020601
0.042918
0.053219
0.159657
0.159657
0.159657
0.159657
0.159657
0.159657
0
0.125935
0.311883
2,331
89
93
26.191011
0.600374
0.160017
0
0.461538
0
0.030769
0.751415
0.079259
0
0
0
0
0.015385
1
0.015385
false
0
0.030769
0
0.046154
0
0
0
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
bdae629d015b4bd01109b064dbe25c826202f52a
1,295
py
Python
pygame_demos/vector_move_use_key.py
chivitc1/pygamedemo
e1515ed9b94171a9e61a92ecec9da8cdcbe0efde
[ "MIT" ]
null
null
null
pygame_demos/vector_move_use_key.py
chivitc1/pygamedemo
e1515ed9b94171a9e61a92ecec9da8cdcbe0efde
[ "MIT" ]
null
null
null
pygame_demos/vector_move_use_key.py
chivitc1/pygamedemo
e1515ed9b94171a9e61a92ecec9da8cdcbe0efde
[ "MIT" ]
null
null
null
import pygame, sys from gameobjects.vector2 import Vector2 size = w, h = 640, 320 pygame.init() screen = pygame.display.set_mode(size, 0, 32) background = pygame.image.load('images/sushiplate.jpg').convert() sprite = pygame.image.load('images/intro_ball.gif').convert_alpha() clock = pygame.time.Clock() rect_color = 0...
28.777778
74
0.682625
187
1,295
4.534759
0.395722
0.099057
0.100236
0.084906
0.112028
0.112028
0.084906
0.084906
0.084906
0
0
0.045933
0.19305
1,295
45
75
28.777778
0.76555
0.064093
0
0
0
0
0.034711
0.034711
0
0
0
0
0
1
0
false
0.088235
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
0
1
0
0
0
0
0
1
bdb008283a0dfea5a15ec76391b216bd3bd22d44
1,199
py
Python
main.py
SetoKayaba/ssh_in
75e97514a4e14bd0304f556a35a9b35a999d5e7d
[ "MIT" ]
null
null
null
main.py
SetoKayaba/ssh_in
75e97514a4e14bd0304f556a35a9b35a999d5e7d
[ "MIT" ]
null
null
null
main.py
SetoKayaba/ssh_in
75e97514a4e14bd0304f556a35a9b35a999d5e7d
[ "MIT" ]
null
null
null
#Dependancies import paramiko import time '''Getting Target Information''' host = input("Enter Host Name:") port = input("Enter Port:") print("Target Acquired! Setting Up Paramiko environment........") time.sleep(1) '''Setting Paramiko''' ssh = paramiko.SSHClient() ssh.set_missing_host_key_policy(paramiko.AutoAddPoli...
29.243902
67
0.672227
141
1,199
5.659574
0.531915
0.062657
0.025063
0
0
0
0
0
0
0
0
0.002058
0.189324
1,199
40
68
29.975
0.81893
0.010008
0
0.08
0
0
0.324435
0
0
0
0
0
0
1
0
false
0.08
0.08
0
0.08
0.2
0
0
0
null
0
0
0
0
0
0
0
0
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
bdb0a435cf92bffa8b35bd76a950859b897fa4e8
600
py
Python
openprocurement/tender/esco/views/contract.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/esco/views/contract.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
openprocurement/tender/esco/views/contract.py
raccoongang/openprocurement.tender.esco
1d86442599d60447a8fd2d79f8d9c2baecd7cb8c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from openprocurement.tender.openeu.views.contract import TenderAwardContractResource as TenderEUContractResource from openprocurement.tender.core.utils import optendersresource @optendersresource(name='esco:Tender Contracts', collection_path='/tenders/{tender_id}/contracts',...
46.153846
112
0.71
51
600
8.27451
0.54902
0.090047
0.118483
0.090047
0.132701
0
0
0
0
0
0
0.002053
0.188333
600
12
113
50
0.864476
0.088333
0
0
0
0
0.222222
0.137037
0
0
0
0
0
1
0
true
0
0.25
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
bdb3aa6f704c0c65c7f42f735215a565ea76538c
754
py
Python
modules/pyemail.py
nbness2/TradingCards
11149254962b093f8294cfcef31e13106a8ac1f4
[ "MIT" ]
13
2016-02-24T14:50:38.000Z
2020-02-15T21:29:16.000Z
modules/pyemail.py
nbness2/TradingCards
11149254962b093f8294cfcef31e13106a8ac1f4
[ "MIT" ]
5
2016-02-24T11:47:29.000Z
2016-05-12T11:31:21.000Z
modules/pyemail.py
nbness2/TradingCards
11149254962b093f8294cfcef31e13106a8ac1f4
[ "MIT" ]
11
2016-02-24T13:39:52.000Z
2022-03-23T07:03:02.000Z
from smtplib import SMTP_SSL as SMTP from email.mime.text import MIMEText def send_email(params): send_to, message_body, subject, login_name, login_pass, server_addr, debug = params msg = MIMEText(message_body, 'plain') msg['Subject'] = str(subject) msg['To'] = str(send_to) try: conn = SMT...
30.16
87
0.625995
98
754
4.653061
0.469388
0.052632
0
0
0
0
0
0
0
0
0
0.008803
0.246684
754
24
88
31.416667
0.794014
0
0
0.117647
0
0
0.023569
0
0
0
0
0
0
1
0.058824
false
0.117647
0.117647
0
0.176471
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
bdb3e9e4163c3284c6421bfbe83fee4bcafffba9
16,136
py
Python
HW2/hw2.py
vwxyzjn/CS583
6d7f4da1533253a8738ed0ced6982c72140b01d0
[ "MIT" ]
1
2019-10-22T07:49:40.000Z
2019-10-22T07:49:40.000Z
HW2/hw2.py
vwxyzjn/CS583
6d7f4da1533253a8738ed0ced6982c72140b01d0
[ "MIT" ]
null
null
null
HW2/hw2.py
vwxyzjn/CS583
6d7f4da1533253a8738ed0ced6982c72140b01d0
[ "MIT" ]
null
null
null
""" Imports we need. Note: You may _NOT_ add any more imports than these. """ import argparse import imageio import logging import numpy as np from PIL import Image def load_image(filename): """Loads the provided image file, and returns it as a numpy array.""" im = Image.open(filename) return np.array(im...
39.356098
135
0.636217
2,506
16,136
4.028731
0.148444
0.008914
0.005349
0.002773
0.264659
0.203942
0.174128
0.142631
0.142631
0.128566
0
0.035345
0.251301
16,136
409
136
39.452323
0.800348
0.432015
0
0.172619
0
0
0.130755
0.0061
0
0
0
0.01956
0
1
0.065476
false
0
0.029762
0
0.154762
0
0
0
0
null
0
0
0
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
bdb70111e4d7c8c184cc7984053017f95c3b3bc7
807
py
Python
rewards_engine/transaction_app/migrations/0001_initial.py
TheArijitSaha/Flexible-Rewards-Engine
fd536cbbbf197e6ce0c4ba1fd6036c04a53110e3
[ "MIT" ]
null
null
null
rewards_engine/transaction_app/migrations/0001_initial.py
TheArijitSaha/Flexible-Rewards-Engine
fd536cbbbf197e6ce0c4ba1fd6036c04a53110e3
[ "MIT" ]
null
null
null
rewards_engine/transaction_app/migrations/0001_initial.py
TheArijitSaha/Flexible-Rewards-Engine
fd536cbbbf197e6ce0c4ba1fd6036c04a53110e3
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-08-27 18:43 import datetime from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('customer_app', '0001_initial'), ] operations = [ migrations.CreateModel...
29.888889
122
0.623296
89
807
5.539326
0.662921
0.048682
0.056795
0.089249
0
0
0
0
0
0
0
0.042904
0.249071
807
26
123
31.038462
0.770627
0.055762
0
0
1
0
0.107895
0.027632
0
0
0
0
0
1
0
false
0
0.157895
0
0.368421
0
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
bdb73f3a42a4d5b2947098ab7c7afbfde226717c
1,144
py
Python
ProjectApplication/project_core/migrations/0003_change_name_geographicarea.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-07-29T10:00:11.000Z
2022-02-19T11:00:34.000Z
ProjectApplication/project_core/migrations/0003_change_name_geographicarea.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
471
2019-09-20T14:37:28.000Z
2022-03-25T14:16:34.000Z
ProjectApplication/project_core/migrations/0003_change_name_geographicarea.py
code-review-doctor/project-application
d85b40b69572efbcda24ce9c40803f76d8ffd192
[ "MIT" ]
5
2020-03-15T12:42:47.000Z
2022-02-15T18:06:52.000Z
# Generated by Django 2.2.4 on 2019-09-20 09:53 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('project_core', '0002_proposal_models'), ] operations = [ migrations.CreateModel( name='Geograph...
36.903226
191
0.641608
122
1,144
5.893443
0.557377
0.03338
0.038943
0.061196
0
0
0
0
0
0
0
0.02907
0.248252
1,144
30
192
38.133333
0.806977
0.039336
0
0.125
1
0
0.273473
0.026436
0
0
0
0
0
1
0
false
0
0.083333
0
0.208333
0
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
bdb843d3a3ff6c584cb17ef2b4a9fb5a3a698a33
656
py
Python
api/uuid_list.py
gotangle/aribox-iota
0282f5e8830fd16ba4d727f5d8f86183e34ace83
[ "MIT" ]
null
null
null
api/uuid_list.py
gotangle/aribox-iota
0282f5e8830fd16ba4d727f5d8f86183e34ace83
[ "MIT" ]
null
null
null
api/uuid_list.py
gotangle/aribox-iota
0282f5e8830fd16ba4d727f5d8f86183e34ace83
[ "MIT" ]
null
null
null
from config import HOST_URL from decode import split import requests def get_uuid_list(): payload = {'command':'get_all_claims', 'uuid':'LASSUUIDLIST'} response = requests.post(HOST_URL, json=payload) claim_list = response.json() uuid_list = [] for tx in claim_list: try: payloa...
31.238095
65
0.609756
83
656
4.626506
0.481928
0.104167
0.088542
0.125
0.197917
0.197917
0.197917
0
0
0
0
0.008511
0.283537
656
20
66
32.8
0.808511
0
0
0.105263
0
0
0.10061
0
0
0
0
0
0
1
0.052632
false
0.052632
0.157895
0
0.263158
0
0
0
0
null
0
0
0
0
0
0
0
0
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
bdbfc1f19c1887b54c4217090e35b1a7d2e36d08
469
py
Python
websites/migrations/0033_websitecontent_title_index.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
2
2020-08-07T15:55:41.000Z
2021-08-16T18:28:09.000Z
websites/migrations/0033_websitecontent_title_index.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
924
2020-08-10T17:54:19.000Z
2022-03-31T21:15:17.000Z
websites/migrations/0033_websitecontent_title_index.py
mitodl/ocw-studio
949f96ec0647064f8d495ebdd22d66eea7d024a5
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.1.12 on 2021-07-27 18:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("websites", "0032_website_short_id_unique"), ] operations = [ migrations.AlterField( model_name="websitecontent", na...
22.333333
68
0.586354
50
469
5.36
0.82
0
0
0
0
0
0
0
0
0
0
0.070769
0.307036
469
20
69
23.45
0.753846
0.098081
0
0.142857
1
0
0.130641
0.066508
0
0
0
0
0
1
0
false
0
0.071429
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bdcd50e643ce621cbceb3718f2447f4e4c6daab8
21,507
py
Python
lstm_ae_spatial_mr_com.py
zhaofang0627/face-deocc-lstm
e0666238b15df439036170554754a44abfd4f2ec
[ "MIT" ]
16
2018-12-05T02:35:28.000Z
2021-12-01T15:57:06.000Z
lstm_ae_spatial_mr_com.py
zhaofang0627/face-deocc-lstm
e0666238b15df439036170554754a44abfd4f2ec
[ "MIT" ]
3
2019-03-04T07:35:33.000Z
2020-10-08T06:06:50.000Z
lstm_ae_spatial_mr_com.py
zhaofang0627/face-deocc-lstm
e0666238b15df439036170554754a44abfd4f2ec
[ "MIT" ]
5
2019-01-24T21:53:18.000Z
2020-07-08T05:35:55.000Z
import sys sys.path.append('./protobuf/python/') from data_handler import * import lstm import lstm_spatial_mr as lstm_spatial from util import * import Image import h5py import os import cPickle def unpickle(filename): fo = open(filename, 'r') contents = cPickle.load(fo) fo.close() return contents cl...
41.761165
114
0.674292
3,251
21,507
4.084589
0.078745
0.032758
0.046991
0.042247
0.689585
0.646434
0.596581
0.568793
0.532043
0.502749
0
0.019091
0.206026
21,507
514
115
41.842412
0.75855
0.024597
0
0.450549
0
0
0.052249
0.038434
0
0
0
0
0.004396
0
null
null
0
0.01978
null
null
0.026374
0
0
0
null
0
0
0
0
0
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
bdd020483abcdc5774010892d743eac62e2b05bd
412
py
Python
reo/migrations/0069_electrictariffmodel_emissions_region.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
41
2020-02-21T08:25:17.000Z
2022-01-14T23:06:42.000Z
reo/migrations/0069_electrictariffmodel_emissions_region.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
167
2020-02-17T17:26:47.000Z
2022-01-20T20:36:54.000Z
reo/migrations/0069_electrictariffmodel_emissions_region.py
GUI/REopt_Lite_API
f2ade81b67c526cbe778c7bc584e3e1d616c1efc
[ "BSD-3-Clause" ]
31
2020-02-20T00:22:51.000Z
2021-12-10T05:48:08.000Z
# Generated by Django 2.2.10 on 2020-07-20 20:38 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('reo', '0068_auto_20200708_2235'), ] operations = [ migrations.AddField( model_name='electrictariffmodel', name='emi...
21.684211
58
0.616505
44
412
5.659091
0.795455
0
0
0
0
0
0
0
0
0
0
0.106667
0.271845
412
18
59
22.888889
0.723333
0.11165
0
0
1
0
0.167582
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
bdd62416e016ede6dc64b2e6c0dbe68ceed0ff34
2,883
py
Python
robot.py
MomsFriendlyRobotCompany/marauder
1b9dabc0d197c6e2a5549283682809cfc8580d46
[ "MIT" ]
null
null
null
robot.py
MomsFriendlyRobotCompany/marauder
1b9dabc0d197c6e2a5549283682809cfc8580d46
[ "MIT" ]
null
null
null
robot.py
MomsFriendlyRobotCompany/marauder
1b9dabc0d197c6e2a5549283682809cfc8580d46
[ "MIT" ]
null
null
null
from pycreate2 import Create2 import time from pygecko.multiprocessing import geckopy from pygecko.packets import Sensors class create_st(namedtuple('create_st', 'bumps_wheeldrops cliff bumper encoder timestamp')): """ Create2 key sensors """ __slots__ = () def __new__(cls, bw, c, b, e, ts=None):...
28.264706
92
0.561221
323
2,883
4.693498
0.337461
0.023747
0.07124
0.039578
0.213061
0.140501
0.140501
0.126649
0.067282
0.067282
0
0.009927
0.336108
2,883
101
93
28.544554
0.782132
0.035727
0
0.103896
0
0
0.075702
0
0
0
0
0
0
0
null
null
0
0.051948
null
null
0.012987
0
0
0
null
0
0
0
0
0
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
bdd9b42d03300a8ef8e8d9fd8da4fec9e29f5913
11,242
py
Python
philo/models/pages.py
kgodey/philo
c19bf577d44606d2b284e6058d633f4a174b61cc
[ "0BSD" ]
1
2019-12-03T09:32:41.000Z
2019-12-03T09:32:41.000Z
philo/models/pages.py
kgodey/philo
c19bf577d44606d2b284e6058d633f4a174b61cc
[ "0BSD" ]
null
null
null
philo/models/pages.py
kgodey/philo
c19bf577d44606d2b284e6058d633f4a174b61cc
[ "0BSD" ]
null
null
null
# encoding: utf-8 """ :class:`Page`\ s are the most frequently used :class:`.View` subclass. They define a basic HTML page and its associated content. Each :class:`Page` renders itself according to a :class:`Template`. The :class:`Template` may contain :ttag:`container` tags, which define related :class:`Contentlet`\ s...
42.104869
401
0.748443
1,529
11,242
5.400916
0.211903
0.007266
0.010172
0.014531
0.181158
0.138653
0.115767
0.101841
0.090216
0.079075
0
0.002106
0.155221
11,242
267
402
42.104869
0.867432
0.13841
0
0.211765
0
0
0.040374
0
0
0
0
0
0
0
null
null
0
0.094118
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
bde45a7f5c68bfcb765b7faedd1dae858d488b5c
1,248
py
Python
audioclass/extractor.py
pabletos/Audio-classifier
b60903efee4479ae33c912ea947debd3e9830cc3
[ "MIT" ]
1
2018-06-17T16:15:54.000Z
2018-06-17T16:15:54.000Z
audioclass/extractor.py
pabletos/Audio-classifier
b60903efee4479ae33c912ea947debd3e9830cc3
[ "MIT" ]
null
null
null
audioclass/extractor.py
pabletos/Audio-classifier
b60903efee4479ae33c912ea947debd3e9830cc3
[ "MIT" ]
null
null
null
from classifier.utils import * from classifier.trainer import * def generate_dataset(path_data): res = {} for audio_type in listdir(path_data): if audio_type == "test": continue directory = "%s/%s" % (path_data, audio_type) res[audio_type] = [] for file in listdir(directory): path = "%s/%s" % (directory,...
31.2
77
0.699519
186
1,248
4.575269
0.349462
0.063455
0.038778
0.047004
0.220917
0.150411
0.150411
0.150411
0.150411
0.150411
0
0.015992
0.148237
1,248
39
78
32
0.784572
0
0
0.212121
1
0
0.086538
0
0
0
0
0
0
1
0.090909
false
0
0.060606
0
0.242424
0.121212
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bdf4189188e52e0e53bb09bce8d6102c41ddde05
1,244
py
Python
app/blueprints/__init__.py
vendari12/job-board
0076864f12c93831289407c85b7fca6ff662fef1
[ "MIT" ]
null
null
null
app/blueprints/__init__.py
vendari12/job-board
0076864f12c93831289407c85b7fca6ff662fef1
[ "MIT" ]
null
null
null
app/blueprints/__init__.py
vendari12/job-board
0076864f12c93831289407c85b7fca6ff662fef1
[ "MIT" ]
null
null
null
"""from app.api.account.views import account from app.api.public.views import public from app.api.blog.views import blog from app.api.main.views import main from app.api.jobs.views import jobs from app.api.employer.views import employer from app.api.posts.views import feeds from app.api.organisations.views import orga...
37.69697
81
0.772508
167
1,244
5.688623
0.173653
0.081053
0.115789
0
0
0
0
0
0
0
0
0
0.073151
1,244
32
82
38.875
0.823938
0.371383
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.5
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
da00d023a86822bc7d732119eaab9968f87e2725
235
py
Python
Codeforces/667A Yet Another Two Integers Problem.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
12
2021-06-05T09:40:10.000Z
2021-10-07T17:59:51.000Z
Codeforces/667A Yet Another Two Integers Problem.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
21
2020-10-10T10:41:03.000Z
2020-10-31T10:41:23.000Z
Codeforces/667A Yet Another Two Integers Problem.py
a3X3k/Competitive-programing-hacktoberfest-2021
bc3997997318af4c5eafad7348abdd9bf5067b4f
[ "Unlicense" ]
67
2021-08-01T10:04:52.000Z
2021-10-10T00:25:04.000Z
t = int(input()) for _ in range(t): a, b = map(int, input().split()) diff = abs(b-a) if diff == 0: print(0) continue if diff % 10 == 0: print(diff//10) else: print(diff//10 + 1)
16.785714
36
0.446809
35
235
2.971429
0.542857
0.173077
0.211538
0
0
0
0
0
0
0
0
0.068493
0.378723
235
14
37
16.785714
0.643836
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.272727
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
da1334b99a7ee40b28cd44123358f92a0917e416
191
py
Python
Chapter 3/types-string-lines-capitalize.py
JoeBugajski/python-examples
c32472900a68aca43d699c610f6f50638b9ddb98
[ "MIT" ]
null
null
null
Chapter 3/types-string-lines-capitalize.py
JoeBugajski/python-examples
c32472900a68aca43d699c610f6f50638b9ddb98
[ "MIT" ]
null
null
null
Chapter 3/types-string-lines-capitalize.py
JoeBugajski/python-examples
c32472900a68aca43d699c610f6f50638b9ddb98
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2009-2017 BHG http://bw.org/ # No difference between single and double quotes x = ''' seven '''.capitalize() print('x is {}'.format(x)) print(type(x))
14.692308
48
0.659686
29
191
4.344828
0.862069
0
0
0
0
0
0
0
0
0
0
0.055556
0.151832
191
12
49
15.916667
0.722222
0.560209
0
0
0
0
0.209877
0
0
0
0
0
0
1
0
false
0
0
0
0
0.4
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
da14881770d10dff621166cd50c70ad0774dd16c
13,557
py
Python
escnn/gspaces/r3.py
QUVA-Lab/escnn
59ed6b96f61f8616f87b3f25aa2f8abdb6f1a882
[ "BSD-3-Clause" ]
4
2022-03-16T22:51:39.000Z
2022-03-18T18:45:49.000Z
escnn/gspaces/r3.py
QUVA-Lab/escnn
59ed6b96f61f8616f87b3f25aa2f8abdb6f1a882
[ "BSD-3-Clause" ]
null
null
null
escnn/gspaces/r3.py
QUVA-Lab/escnn
59ed6b96f61f8616f87b3f25aa2f8abdb6f1a882
[ "BSD-3-Clause" ]
null
null
null
from __future__ import annotations from escnn import gspaces from escnn import kernels from escnn.group import * from .utils import linear_transform_array_3d import numpy as np from typing import Tuple, Union, Callable, List __all__ = [ "GSpace3D", ########### "flipRot3dOnR3", "rot3dOnR3", "fu...
36.940054
189
0.627868
1,786
13,557
4.651736
0.18533
0.029369
0.024555
0.032499
0.507342
0.494704
0.49001
0.457872
0.444632
0.376264
0
0.022682
0.255292
13,557
366
190
37.040984
0.800218
0.480932
0
0.258278
0
0
0.040656
0.004339
0
0
0
0.010929
0.066225
1
0.13245
false
0
0.046358
0.013245
0.337748
0
0
0
0
null
0
0
0
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
da15eb70bbfb8da1517237bf94ad15171a392a13
1,467
py
Python
resources/lib/test_relive.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
7
2018-12-11T22:39:02.000Z
2021-12-19T09:59:58.000Z
resources/lib/test_relive.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
15
2018-09-05T12:41:27.000Z
2021-12-29T17:06:15.000Z
resources/lib/test_relive.py
eudyptes-pachyrynchus/plugin.video.media-ccc-de
36f51726b6035b9beabdf8c1f4e8fae68820dc22
[ "CC-BY-2.0" ]
2
2019-11-15T18:36:36.000Z
2020-12-30T14:32:26.000Z
# coding: utf-8 from __future__ import print_function, division, absolute_import from .relive import Relives, ReliveRecordings from .testdata import getfile def test_index(): r = Relives(sample_index) assert len(r.recordings) == 2 assert r.recordings[0].project == "wevsclimatecrisis" assert r.recordi...
34.928571
93
0.718473
204
1,467
5.02451
0.27451
0.047805
0.068293
0.109268
0.404878
0.404878
0.269268
0.206829
0.19122
0.19122
0
0.041765
0.134969
1,467
41
94
35.780488
0.765957
0.008862
0
0
0
0
0.256198
0.130854
0
0
0
0
0.535714
1
0.107143
false
0
0.107143
0
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
da183aabf7b91666e2572abcae12ad0c069078a0
1,826
py
Python
seizmeia/user/routes.py
seizmeia/seizmeia
8bdb5f9be832c56237e5684110ce30d1c322fc70
[ "MIT" ]
null
null
null
seizmeia/user/routes.py
seizmeia/seizmeia
8bdb5f9be832c56237e5684110ce30d1c322fc70
[ "MIT" ]
12
2022-02-14T00:03:28.000Z
2022-03-29T18:08:35.000Z
seizmeia/user/routes.py
seizmeia/seizmeia
8bdb5f9be832c56237e5684110ce30d1c322fc70
[ "MIT" ]
1
2022-02-27T17:57:56.000Z
2022-02-27T17:57:56.000Z
from __future__ import annotations from fastapi import APIRouter, Depends, HTTPException, Security from fastapi.security import OAuth2PasswordRequestForm from sqlalchemy.orm import Session from seizmeia.db import get_db from seizmeia.user import db, schemas from seizmeia.user.security import ( authenticate_user, ...
28.984127
78
0.750821
234
1,826
5.589744
0.277778
0.058869
0.036697
0.025994
0.295107
0.256881
0.105505
0.105505
0.105505
0.105505
0
0.005175
0.153341
1,826
62
79
29.451613
0.84088
0
0
0.173913
0
0
0.056407
0
0
0
0
0
0
1
0
false
0.130435
0.173913
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da1f103100786d30609ef6b14533d6a0f949074c
1,068
py
Python
Network/__init__.py
irisSchaffer/component-based-asteroids
0e82a6cb5ab7519d82f53179a242f48520ae9ab3
[ "Apache-2.0" ]
null
null
null
Network/__init__.py
irisSchaffer/component-based-asteroids
0e82a6cb5ab7519d82f53179a242f48520ae9ab3
[ "Apache-2.0" ]
null
null
null
Network/__init__.py
irisSchaffer/component-based-asteroids
0e82a6cb5ab7519d82f53179a242f48520ae9ab3
[ "Apache-2.0" ]
null
null
null
# Game Architecture Network Layer # # Copyright (c) 2014 Roman Divotkey, Univ. of Applied Sciences Upper Austria. # All rights reserved. # # This file is subject to the terms and conditions defined in file # 'LICENSE', which is part of this source code package. # # THIS CODE IS PROVIDED AS EDUCATIONAL MATERIAL AND NOT...
28.864865
78
0.746255
148
1,068
5.310811
0.533784
0.041985
0.030534
0.058524
0.211196
0.211196
0.211196
0.117048
0.117048
0.117048
0
0.004689
0.201311
1,068
36
79
29.666667
0.916764
0.652622
0
0
0
0
0.092958
0
0
0
0
0
0
1
0.076923
false
0
0.307692
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
da1f4f1fd9b2ac926f3d8fa13bcbf38085836750
8,964
py
Python
specs/client/ml_pipelines/vo_pb2.py
bitgn/ml-pipelines
904b6fa200aac1638491658c2d51ea40c33cbffa
[ "BSD-2-Clause" ]
7
2019-07-25T05:36:21.000Z
2020-08-23T18:04:53.000Z
specs/test_api/vo_pb2.py
bitgn/ml-pipelines
904b6fa200aac1638491658c2d51ea40c33cbffa
[ "BSD-2-Clause" ]
1
2019-08-18T14:05:49.000Z
2019-08-18T17:51:39.000Z
specs/test_api/vo_pb2.py
bitgn/ml-pipelines
904b6fa200aac1638491658c2d51ea40c33cbffa
[ "BSD-2-Clause" ]
4
2019-08-18T13:42:45.000Z
2021-04-04T11:15:21.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: vo.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf i...
35.291339
923
0.742079
1,134
8,964
5.589947
0.159612
0.050481
0.082821
0.043382
0.543146
0.512857
0.497082
0.497082
0.441395
0.433665
0
0.048601
0.13465
8,964
253
924
35.43083
0.768596
0.030344
0
0.570796
1
0.004425
0.185398
0.124252
0
0
0
0
0
1
0
false
0
0.026549
0
0.026549
0
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
da22981e7fd7ea4ff8fbec59ab9d3fa244a8559f
545
py
Python
apps/accounts/migrations/0025_userprofile_authorize_applications.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
25
2017-12-10T00:48:31.000Z
2022-03-25T01:29:13.000Z
apps/accounts/migrations/0025_userprofile_authorize_applications.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
298
2017-12-05T05:53:32.000Z
2022-03-21T19:29:03.000Z
apps/accounts/migrations/0025_userprofile_authorize_applications.py
dtisza1/bluebutton-web-server
6322f28d75bd9e00f8dc4b5988a0cd5f7c6c80cb
[ "Apache-2.0" ]
31
2017-12-04T16:01:12.000Z
2021-09-26T22:34:55.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-11-11 20:19 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0024_auto_20161111_1719'), ] operations = [ migrations.AddField(...
25.952381
125
0.656881
61
545
5.688525
0.803279
0.121037
0
0
0
0
0
0
0
0
0
0.076923
0.236697
545
20
126
27.25
0.757212
0.122936
0
0
1
0
0.256842
0.094737
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
da22ae8e153269b8b053e374fd2d416f421106cc
761
py
Python
py/py_0544_chromatic_conundrum.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0544_chromatic_conundrum.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
py/py_0544_chromatic_conundrum.py
lcsm29/project-euler
fab794ece5aa7a11fc7c2177f26250f40a5b1447
[ "MIT" ]
null
null
null
# Solution of; # Project Euler Problem 544: Chromatic Conundrum # https://projecteuler.net/problem=544 # # Let F(r,c,n) be the number of ways to colour a rectangular grid with r rows # and c columns using at most n colours such that no two adjacent cells share # the same colour. Cells that are diagonal to each other...
30.44
78
0.670171
140
761
3.564286
0.635714
0.012024
0.012024
0
0
0
0
0
0
0
0
0.137255
0.195795
761
24
79
31.708333
0.678105
0.768725
0
0
0
0
0.04908
0
0
0
0
0
0
1
0.125
false
0.125
0.125
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da2741d8a0a47187feb9654b8e1afbf4e3c42497
516
py
Python
examples/seesaw_analogin_test.py
todbot/Adafruit_CircuitPython_seesaw
9fa9b6160bb879477004ee5fd2d492efbdac4bb0
[ "MIT" ]
26
2017-10-04T22:35:15.000Z
2022-02-28T00:34:28.000Z
examples/seesaw_analogin_test.py
todbot/Adafruit_CircuitPython_seesaw
9fa9b6160bb879477004ee5fd2d492efbdac4bb0
[ "MIT" ]
50
2017-12-13T02:54:10.000Z
2022-03-14T19:53:28.000Z
examples/seesaw_analogin_test.py
todbot/Adafruit_CircuitPython_seesaw
9fa9b6160bb879477004ee5fd2d492efbdac4bb0
[ "MIT" ]
33
2017-12-13T01:54:17.000Z
2022-03-12T17:46:50.000Z
# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT # Simple seesaw test reading analog value # on SAMD09, analog in can be pins 2, 3, or 4 # on Attiny8x7, analog in can be pins 0, 1, 2, 3, 6, 7, 18, 19, 20 import time import board from adafruit_seesaw.seesaw import Seesaw fr...
24.571429
66
0.751938
83
516
4.60241
0.566265
0.08377
0.057592
0.068063
0.089005
0
0
0
0
0
0
0.062645
0.164729
516
20
67
25.8
0.823666
0.46124
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.4
0
0.4
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
da2a9be7360095bf222b5e423e9bbe576a16aa66
818
py
Python
project/settings.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
null
null
null
project/settings.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
10
2020-04-15T17:54:57.000Z
2022-03-12T00:11:27.000Z
project/settings.py
CONABIO-audio/selia-managers
4d603bd329bd47654839596793e168db7a0ec35f
[ "BSD-4-Clause" ]
null
null
null
import os from collections import OrderedDict from irekua_dev_settings.settings import * from irekua_database.settings import * from irekua_models.settings import * from irekua_autocomplete.settings import * from selia_templates.settings import * from selia_registration.settings import * from selia_managers.settings i...
28.206897
70
0.789731
107
818
5.700935
0.317757
0.160656
0.177049
0.118033
0.052459
0
0
0
0
0
0
0
0.124694
818
28
71
29.214286
0.851955
0
0
0
0
0
0.035452
0
0
0
0
0
0
1
0
false
0
0.391304
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
da30956e19f8bd7e9e76c73441f264f9de822380
328
py
Python
users/migrations/0003_remove_member_username.py
AlparslanErol/Web_App
f8d2285a908d276d7e0aa157220d6594a3f69f17
[ "MIT" ]
4
2021-02-02T19:54:38.000Z
2022-03-05T14:59:55.000Z
users/migrations/0003_remove_member_username.py
AlparslanErol/Web_App
f8d2285a908d276d7e0aa157220d6594a3f69f17
[ "MIT" ]
1
2021-09-10T21:02:49.000Z
2021-09-10T21:02:49.000Z
users/migrations/0003_remove_member_username.py
AlparslanErol/Hospital_UW_Django
f8d2285a908d276d7e0aa157220d6594a3f69f17
[ "MIT" ]
2
2021-01-15T19:59:12.000Z
2021-01-15T20:10:55.000Z
# Generated by Django 3.1.4 on 2021-01-16 22:46 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_auto_20210116_0447'), ] operations = [ migrations.RemoveField( model_name='member', name='username', )...
18.222222
47
0.591463
35
328
5.428571
0.857143
0
0
0
0
0
0
0
0
0
0
0.134199
0.295732
328
17
48
19.294118
0.688312
0.137195
0
0
1
0
0.149466
0.081851
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da3599bd365ede9b248845cec58f5802bd86c5d4
806
py
Python
indra/tests/test_chebi_client.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
2
2020-01-14T08:59:10.000Z
2020-12-18T16:21:38.000Z
indra/tests/test_chebi_client.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
indra/tests/test_chebi_client.py
pupster90/indra
e90b0bc1016fc2d210a9b46fb160b78a7d6a5ab9
[ "BSD-2-Clause" ]
null
null
null
from __future__ import absolute_import, print_function, unicode_literals from builtins import dict, str from indra.databases import chebi_client from indra.util import unicode_strs from nose.plugins.attrib import attr def test_read_chebi_to_pubchem(): (ctop, ptoc) = chebi_client._read_chebi_to_pubchem() asser...
32.24
72
0.755583
120
806
4.683333
0.408333
0.117438
0.078292
0.106762
0.323843
0.181495
0.181495
0.181495
0
0
0
0.083453
0.137717
806
24
73
33.583333
0.72518
0
0
0
0
0
0.085608
0
0
0
0
0
0.444444
1
0.166667
false
0
0.277778
0
0.444444
0.055556
0
0
0
null
0
0
0
0
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
da362d9226c22e92bc7beef8bf5345c443435248
6,539
py
Python
main.py
jwalareddy/cs5293sp20-project3
954eb357782160972fd300394130dfe8e78c1c65
[ "MIT" ]
null
null
null
main.py
jwalareddy/cs5293sp20-project3
954eb357782160972fd300394130dfe8e78c1c65
[ "MIT" ]
null
null
null
main.py
jwalareddy/cs5293sp20-project3
954eb357782160972fd300394130dfe8e78c1c65
[ "MIT" ]
null
null
null
import json import os import re import numpy as np import pandas as pd import sys import io import sklearn from sklearn import metrics from sklearn.feature_extraction.text import CountVectorizer from sklearn.naive_bayes import MultinomialNB from sklearn.linear_model import SGDClassifier from sklearn.ensemble import Ran...
40.614907
118
0.753173
886
6,539
5.314898
0.243792
0.037375
0.021236
0.011892
0.257167
0.189637
0.156721
0.145678
0.12869
0.12869
0
0.008653
0.133965
6,539
160
119
40.86875
0.822885
0
0
0.111111
0
0
0.116275
0.025997
0
0
0
0
0
0
null
null
0
0.134921
null
null
0.087302
0
0
0
null
0
0
0
0
0
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
da375963bddb12f44cf20d71d71fbceff85550b3
2,462
py
Python
tests/auth/test_login_endpoint.py
Aokigahara23/flask-restapp-boilerplate
44446a7c46c8fea3b9b356613a6eeb050d8e74c1
[ "MIT" ]
1
2021-12-06T11:03:07.000Z
2021-12-06T11:03:07.000Z
tests/auth/test_login_endpoint.py
Aokigahara23/flask-restapp-boilerplate
44446a7c46c8fea3b9b356613a6eeb050d8e74c1
[ "MIT" ]
null
null
null
tests/auth/test_login_endpoint.py
Aokigahara23/flask-restapp-boilerplate
44446a7c46c8fea3b9b356613a6eeb050d8e74c1
[ "MIT" ]
null
null
null
from http import HTTPStatus from src.endpoints.auth.model import User from src.extensions.errors import AUTH_ERROR from . import AuthBase class TestUser: email = 'test@test.test' password = '#1Test1234' display_name = 'test_user' class TestLoginEndpoint(AuthBase): @classmethod def setUpClass(c...
39.709677
119
0.718115
290
2,462
5.931034
0.234483
0.055814
0.080233
0.051163
0.628488
0.628488
0.628488
0.628488
0.565116
0.5
0
0.004405
0.170187
2,462
61
120
40.360656
0.837494
0
0
0.244444
0
0
0.073517
0.008936
0
0
0
0
0.333333
1
0.111111
false
0.155556
0.088889
0
0.311111
0
0
0
0
null
0
0
0
0
0
0
0
0
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
da3bdd9973282494c0c0ca30213aef5d2e3baff7
957
py
Python
uploader.py
zr40/scc
56166c85a69a8ec408c38d2c6d12417d83fc3aae
[ "MIT" ]
1
2022-03-17T03:55:41.000Z
2022-03-17T03:55:41.000Z
uploader.py
Excloudx6/scc
56166c85a69a8ec408c38d2c6d12417d83fc3aae
[ "MIT" ]
null
null
null
uploader.py
Excloudx6/scc
56166c85a69a8ec408c38d2c6d12417d83fc3aae
[ "MIT" ]
1
2022-03-17T03:54:36.000Z
2022-03-17T03:54:36.000Z
#!/usr/bin/python from optparse import OptionParser from lib.hardware import Hardware from lib.listports import listPorts from lib.uploadprogram import uploadProgram def main(): usage = 'usage: %prog SERIALPORT HEXFILE' description = 'Uploads HEXFILE to the device connected to SERIALPORT, and runs the program.' ...
22.785714
154
0.733542
127
957
5.433071
0.535433
0.030435
0.031884
0.043478
0
0
0
0
0
0
0
0.00615
0.15047
957
41
155
23.341463
0.842558
0.016719
0
0.076923
0
0
0.262766
0
0
0
0
0
0
0
null
null
0
0.153846
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
da3cca69a899c700c7042742dd3514929d8d175b
1,554
py
Python
tools/utils/image.py
nicholaspalomo/VisionAlgosCourseETHZ
dfaa442a274a3ded15833a44a60a012b4fd27654
[ "MIT" ]
4
2021-07-29T02:26:59.000Z
2021-09-27T10:50:40.000Z
tools/utils/image.py
nicholaspalomo/VisionAlgosCourseETHZ
dfaa442a274a3ded15833a44a60a012b4fd27654
[ "MIT" ]
2
2020-09-27T10:28:41.000Z
2020-10-04T02:07:23.000Z
tools/utils/image.py
nicholaspalomo/VisionAlgosCourseETHZ
dfaa442a274a3ded15833a44a60a012b4fd27654
[ "MIT" ]
3
2021-07-29T02:27:03.000Z
2021-09-27T10:50:42.000Z
from operator import matmul from matplotlib import image import numpy as np import cv2 # OpenCV import math from matplotlib import pyplot as plt import os from ..utils.process_text_file import ProcessTextFile class Image: def __init__(self): self.gs = [] def load_image(self, image_fname, display=Fals...
24.28125
138
0.618404
223
1,554
4.188341
0.336323
0.051392
0.035332
0.029979
0.295503
0.229122
0.229122
0.229122
0.229122
0.17773
0
0.014693
0.25547
1,554
64
139
24.28125
0.792567
0.050193
0
0.302326
0
0
0
0
0
0
0
0
0
1
0.186047
false
0
0.186047
0.023256
0.55814
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
da46ed3f8c3e947f77a6683e0f41cbdece0b45d5
11,731
py
Python
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
domain-gistry/domain-gistry.py
Jcharis/DomainGistry_CLI
f621f4e9936169911653fef26ab46638d7a3aaa3
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import click from click_didyoumean import DYMGroup import json new_domain = ['app','site','online','xyz','tech','ai','shop','blog','space','live','life','website','news','ninja','solutions','expert','services','media','rocks','company','guru','club','today','agency','technolo...
38.336601
821
0.669508
1,792
11,731
4.204241
0.15067
0.091319
0.034245
0.043005
0.688213
0.657022
0.596098
0.533979
0.533979
0.529599
0
0.003016
0.123945
11,731
306
822
38.336601
0.730077
0.107578
0
0.70098
0
0
0.234116
0.003466
0
0
0
0
0
1
0.04902
false
0.004902
0.014706
0
0.073529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da5ca817859ef570ae41a81f5883fb6ee0bc35fd
447
py
Python
fabfile/pypi/__init__.py
mc706/url_check
23c27665b2c7a0b8c7e1c07d502395a0a4c02572
[ "MIT" ]
null
null
null
fabfile/pypi/__init__.py
mc706/url_check
23c27665b2c7a0b8c7e1c07d502395a0a4c02572
[ "MIT" ]
10
2016-01-06T15:38:20.000Z
2016-01-06T17:05:34.000Z
fabfile/pypi/__init__.py
mc706/webmon
23c27665b2c7a0b8c7e1c07d502395a0a4c02572
[ "MIT" ]
1
2016-01-06T16:57:40.000Z
2016-01-06T16:57:40.000Z
""" Fabric Commands Managing releases to Pypi """ from fabric.api import task, local import shutil @task(default=True) def deploy(): """ deploys package to production pypi """ local('python setup.py bdist_wheel') local('twine upload dist/*') clean() @task() def clean(): """ removes ...
15.964286
41
0.628635
53
447
5.283019
0.679245
0.128571
0
0
0
0
0
0
0
0
0
0
0.225951
447
27
42
16.555556
0.809249
0.243848
0
0
0
0
0.236486
0
0
0
0
0
0
1
0.166667
true
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
da5e64a6ac7428f75805678af68ae4cff24b7515
3,322
py
Python
model/loss.py
fangtiancheng/NSRR
6722f192319f6837687a932005a96dcb1be6bcf8
[ "MIT" ]
null
null
null
model/loss.py
fangtiancheng/NSRR
6722f192319f6837687a932005a96dcb1be6bcf8
[ "MIT" ]
null
null
null
model/loss.py
fangtiancheng/NSRR
6722f192319f6837687a932005a96dcb1be6bcf8
[ "MIT" ]
null
null
null
from turtle import forward import torch import torch.nn as nn import torchvision import pytorch_ssim #from pytorch_msssim import ssim from utils import SingletonPattern from model import LayerOutputModelDecorator from typing import List def feature_reconstruction_loss(conv_layer_output: torch.Tensor, conv_layer_tar...
40.512195
114
0.683022
421
3,322
5.173397
0.306413
0.045455
0.041322
0.027548
0.207071
0.140955
0.089073
0.044077
0.044077
0
0
0.012806
0.224262
3,322
81
115
41.012346
0.831975
0.192053
0
0
0
0
0.021053
0
0
0
0
0.012346
0
1
0.148936
false
0
0.170213
0.021277
0.468085
0
0
0
0
null
0
0
0
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
da5eeb128c680fc61a65b1e93ec8035e8f81f450
1,485
py
Python
solution/shr.py
FrancescSala/Instagram-Challenge
3fece4ba0bdcc31748ccecdf5eeb2efa024339cd
[ "MIT" ]
null
null
null
solution/shr.py
FrancescSala/Instagram-Challenge
3fece4ba0bdcc31748ccecdf5eeb2efa024339cd
[ "MIT" ]
null
null
null
solution/shr.py
FrancescSala/Instagram-Challenge
3fece4ba0bdcc31748ccecdf5eeb2efa024339cd
[ "MIT" ]
null
null
null
from PIL import Image from random import shuffle import sys if len(sys.argv) != 4: sys.exit("Usage: python shr.py input_image num_shreds output_image") # load the input image img = Image.open(sys.argv[1]) # read the desired number of shreds numShreds = int(sys.argv[2]) if numShreds < 2: sys.exit("Expected number of ...
33
95
0.717845
248
1,485
4.241935
0.358871
0.051331
0.038023
0.024715
0.055133
0.028517
0
0
0
0
0
0.022259
0.183165
1,485
44
96
33.75
0.845012
0.287542
0
0
0
0
0.184866
0
0
0
0
0
0
0
null
null
0
0.125
null
null
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
da5fe85fa1b415cd9f5d49fa63bdb48a1d2c1346
546
py
Python
setup.py
dkirkby/STXLDriver
86830fa66c45d0a0bf4d755addb5efbefcc5a326
[ "MIT" ]
null
null
null
setup.py
dkirkby/STXLDriver
86830fa66c45d0a0bf4d755addb5efbefcc5a326
[ "MIT" ]
7
2019-07-24T18:04:18.000Z
2019-09-21T15:01:07.000Z
setup.py
dkirkby/STXLDriver
86830fa66c45d0a0bf4d755addb5efbefcc5a326
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='stxldriver', version='0.2.dev0', description='HTTP Driver for SBIG STXL Cameras', url='http://github.com/dkirkby/STXLDriver', author='David Kirkby', author_email='dkirkby@uci.edu', license='MIT', packages=['stxldriver', 'stxldriver.scripts'], ...
28.736842
58
0.637363
56
546
6.142857
0.767857
0.148256
0
0
0
0
0
0
0
0
0
0.006977
0.212454
546
19
59
28.736842
0.793023
0
0
0
0
0
0.469835
0.153565
0
0
0
0
0
1
0
true
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
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
da62830b8f6201d29b42d88a9f2f866d28892760
3,893
py
Python
Blog/BlogApp/views.py
PratikGarai/Blog-Clone-Django
a9224065c07a38bafea2a49f14949b4b96501b88
[ "MIT" ]
2
2021-05-19T15:44:18.000Z
2021-09-06T08:54:44.000Z
Blog/BlogApp/views.py
PratikGarai/Blog-Clone-Django
a9224065c07a38bafea2a49f14949b4b96501b88
[ "MIT" ]
2
2021-06-10T20:20:20.000Z
2021-06-11T01:18:19.000Z
Blog/BlogApp/views.py
PratikGarai/Blog-Clone-Django
a9224065c07a38bafea2a49f14949b4b96501b88
[ "MIT" ]
null
null
null
from django.shortcuts import render, get_object_or_404, redirect from django.urls import reverse, reverse_lazy from django.views.generic import TemplateView,ListView, DetailView, CreateView, UpdateView, DeleteView from . import models from . import forms from django.utils import timezone from django.contrib.auth.mixins...
30.653543
131
0.722836
467
3,893
5.8394
0.214133
0.082142
0.066007
0.06674
0.46498
0.448111
0.421709
0.393839
0.393839
0.393839
0
0.004625
0.166966
3,893
126
132
30.896825
0.836263
0.005137
0
0.383721
0
0
0.14472
0.105085
0
0
0
0
0
1
0.139535
false
0
0.104651
0.069767
0.697674
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
0
0
0
1
0
0
1
da6d7ccc6996e855d27ad1d1b0b649aaf0be5d17
564
py
Python
python/src/enums/order_type.py
KrishanBhalla/MatchingEngines
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
[ "MIT" ]
null
null
null
python/src/enums/order_type.py
KrishanBhalla/MatchingEngines
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
[ "MIT" ]
null
null
null
python/src/enums/order_type.py
KrishanBhalla/MatchingEngines
f085c0eb2c1aa85267b942bcb1dab09b0fc66406
[ "MIT" ]
null
null
null
from enum import Enum, auto class OrderType(Enum): """ Implements order types -- limit - an order in the book to trade a security at at worst the limit price set -- market - an order in the book to trade the security at the realised market price. -- cancel - an order to the engine to cancel a previou...
31.333333
88
0.656028
83
564
4.457831
0.493976
0.075676
0.048649
0.064865
0.124324
0.124324
0.124324
0
0
0
0
0
0.265957
564
17
89
33.176471
0.89372
0.670213
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.142857
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
da71589e484d7951c1c093d0f34785bd71f0c813
1,222
py
Python
exer/fileWriter.py
MarcSerret51/galactic_empire_database
e8bc42d1ebd98e197df53aef37692cd66831f0df
[ "Apache-2.0" ]
null
null
null
exer/fileWriter.py
MarcSerret51/galactic_empire_database
e8bc42d1ebd98e197df53aef37692cd66831f0df
[ "Apache-2.0" ]
null
null
null
exer/fileWriter.py
MarcSerret51/galactic_empire_database
e8bc42d1ebd98e197df53aef37692cd66831f0df
[ "Apache-2.0" ]
null
null
null
import os import sys import json from logger import errorLog from pathlib import * import datetime as time def writeToFile(name, planet): """Writes the name of the rebel and the planet in a text file""" config = getConfig() if config == 0: errorLog("Configuration file not found") retur...
32.157895
115
0.599018
148
1,222
4.945946
0.513514
0.046448
0.054645
0.068306
0
0
0
0
0
0
0
0.003476
0.293781
1,222
37
116
33.027027
0.844728
0.207038
0
0.066667
0
0
0.182784
0
0
0
0
0.027027
0
1
0.066667
false
0
0.2
0
0.433333
0
0
0
0
null
0
0
0
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
da73fc05bc82cf2ccddb0d9e0df6d44def964376
2,346
py
Python
database_setup.py
Hailot/planetside_elo
579bc4d722a34b1fbd8d6646acc050f5ad99dd83
[ "MIT" ]
null
null
null
database_setup.py
Hailot/planetside_elo
579bc4d722a34b1fbd8d6646acc050f5ad99dd83
[ "MIT" ]
null
null
null
database_setup.py
Hailot/planetside_elo
579bc4d722a34b1fbd8d6646acc050f5ad99dd83
[ "MIT" ]
3
2020-07-01T20:24:54.000Z
2020-07-19T16:48:21.000Z
import mariadb from decouple import config import sys from update import * def setup_db(): # Connect to MariaDB Platform try: conn = mariadb.connect( user='root', password='pugs1337', host='db', database="planetside_data" ) print('database...
29.696203
103
0.691816
304
2,346
5.144737
0.305921
0.11509
0.048593
0.061381
0.366368
0.356777
0.297954
0.221228
0.221228
0.066496
0
0.007739
0.2289
2,346
79
104
29.696203
0.856827
0.063939
0
0.190476
0
0
0.60137
0
0
0
0
0
0
1
0.015873
false
0.015873
0.063492
0
0.079365
0.031746
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
da749f570b7106ea5f3e109a0781bc73dbfc701c
716
py
Python
compare_arg.py
thkkk/GANSketching_Jittor
92df81787b5e8c4ed492af3cfad55c06619fdfe7
[ "MIT" ]
12
2022-01-02T02:10:31.000Z
2022-03-27T03:00:14.000Z
compare_arg.py
thkkk/GANSketching_Jittor
92df81787b5e8c4ed492af3cfad55c06619fdfe7
[ "MIT" ]
null
null
null
compare_arg.py
thkkk/GANSketching_Jittor
92df81787b5e8c4ed492af3cfad55c06619fdfe7
[ "MIT" ]
null
null
null
import os import argparse import random import numpy as np import torch from torchvision import utils from training.networks.stylegan2 import Generator import jittor as jt g1 = Generator(256, 512, 8) checkpoint = jt.load("checkpoint/teaser_cat_augment/12500_net_G.jt") g1.load_state_dict(checkpoint) g2 = Generator(25...
20.457143
68
0.694134
107
716
4.570093
0.420561
0.03272
0.04908
0.171779
0.380368
0.316973
0.249489
0.118609
0
0
0
0.05082
0.148045
716
35
69
20.457143
0.75082
0
0
0.285714
0
0
0.172943
0.172943
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.214286
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
da750fcf6827845f6adbdd3b1c6df2c743adce30
1,788
py
Python
application/migrations/0002_auto_20211210_1838.py
Timoh97/AWWards-KE254
ea12944b7cf7b8b6b1e335bdbd9b97971491270c
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20211210_1838.py
Timoh97/AWWards-KE254
ea12944b7cf7b8b6b1e335bdbd9b97971491270c
[ "MIT" ]
null
null
null
application/migrations/0002_auto_20211210_1838.py
Timoh97/AWWards-KE254
ea12944b7cf7b8b6b1e335bdbd9b97971491270c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.9 on 2021-12-10 15:38 import cloudinary.models from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), (...
31.368421
132
0.555928
160
1,788
6.09375
0.4625
0.046154
0.106667
0.123077
0.157949
0.157949
0
0
0
0
0
0.019624
0.315996
1,788
56
133
31.928571
0.777596
0.025168
0
0.42
1
0
0.084434
0
0
0
0
0
0
1
0
false
0
0.08
0
0.14
0
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
da77e6e6ec67c817e7db9edf333843b4689335b6
781
py
Python
sjtuface/core/forms.py
vinx13/sjtuface-web
ea50591fa4dd15d27eef0a8e3e5c10c045d42707
[ "Apache-2.0" ]
null
null
null
sjtuface/core/forms.py
vinx13/sjtuface-web
ea50591fa4dd15d27eef0a8e3e5c10c045d42707
[ "Apache-2.0" ]
2
2016-08-15T14:54:42.000Z
2017-04-13T05:50:04.000Z
sjtuface/core/forms.py
vinx13/sjtuface-web
ea50591fa4dd15d27eef0a8e3e5c10c045d42707
[ "Apache-2.0" ]
null
null
null
from flask_wtf import Form from wtforms import StringField, PasswordField, BooleanField, FileField from wtforms.validators import DataRequired class LoginForm(Form): username = StringField('username', validators=[DataRequired()]) password = PasswordField('password', validators=[DataRequired()]) # remember...
26.931034
71
0.732394
78
781
7.282051
0.397436
0.193662
0.100352
0.088028
0.130282
0
0
0
0
0
0
0
0.142125
781
28
72
27.892857
0.847761
0.101152
0
0.1875
0
0
0.055874
0
0
0
0
0
0
1
0
false
0.125
0.1875
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da89af2d183cbbb1503abec81e6b00526279b18b
363
py
Python
final.py
shy982/Smart-Traffic-Violation-Recognition-Automation
a1a4c5c0331508f9b64aa3f2f35ae04c1c94cfad
[ "MIT" ]
1
2021-06-07T20:55:04.000Z
2021-06-07T20:55:04.000Z
final.py
shy982/Smart-Traffic-Violation-Recognition-Automation
a1a4c5c0331508f9b64aa3f2f35ae04c1c94cfad
[ "MIT" ]
null
null
null
final.py
shy982/Smart-Traffic-Violation-Recognition-Automation
a1a4c5c0331508f9b64aa3f2f35ae04c1c94cfad
[ "MIT" ]
null
null
null
import mysql.connector import mycursor from test import myfunc mydb = mysql.connector.connect( host = "localhost", user = "root", passwd = "shyam", database = "testdb" ) if __name__ == '__main__': x = myfunc() mycursor.execute("SELECT email_id FROM license WHERE vehicle_number = {x}"...
25.928571
80
0.633609
43
363
5.116279
0.767442
0.127273
0
0
0
0
0
0
0
0
0
0
0.256198
363
14
81
25.928571
0.814815
0
0
0
0
0
0.247863
0
0
0
0
0
0
1
0
false
0.071429
0.214286
0
0.214286
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
da8fe1fd5fc06e4b58d3f69af15a9ee5e5fb75b7
373
py
Python
src/gateway/decorator.py
unikubehq/gateway
798c8e19b9e8284b22c5a54198a5ec54495e1895
[ "Apache-2.0" ]
1
2021-06-20T07:52:39.000Z
2021-06-20T07:52:39.000Z
src/gateway/decorator.py
unikubehq/gateway
798c8e19b9e8284b22c5a54198a5ec54495e1895
[ "Apache-2.0" ]
2
2021-11-23T22:48:18.000Z
2021-11-23T22:52:17.000Z
src/gateway/decorator.py
unikubehq/gateway
798c8e19b9e8284b22c5a54198a5ec54495e1895
[ "Apache-2.0" ]
null
null
null
from functools import wraps def inject_organization(): def decorator(f): @wraps(f) async def decorated_function(request, *args, **kwargs): orga_uuid = request.headers.get("x-orga") response = await f(request, orga=orga_uuid, *args, **kwargs) return response ...
24.866667
72
0.632708
42
373
5.5
0.547619
0.147186
0
0
0
0
0
0
0
0
0
0
0.273458
373
14
73
26.642857
0.852399
0
0
0
0
0
0.016086
0
0
0
0
0
0
1
0.2
false
0
0.1
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
da906dfe8eb164a6c4e47e7653b7cd1dbe4cbd9e
3,013
py
Python
check_job_completion_MB.py
dantaslab/ngs-scripts
2dc61ddba93fd20841a05e5e5bbc094f1d40f335
[ "MIT" ]
null
null
null
check_job_completion_MB.py
dantaslab/ngs-scripts
2dc61ddba93fd20841a05e5e5bbc094f1d40f335
[ "MIT" ]
null
null
null
check_job_completion_MB.py
dantaslab/ngs-scripts
2dc61ddba93fd20841a05e5e5bbc094f1d40f335
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ This program check if the job submitted to the cluster completed successfully The program takes in jobid and prints code and a message. Return value if job completed successfully: return [1, "jobid completed successfully"] else: retur...
30.13
145
0.627282
392
3,013
4.696429
0.357143
0.024443
0.036936
0.029332
0.159696
0.109723
0.109723
0.059207
0.059207
0.059207
0
0.012736
0.244275
3,013
99
146
30.434343
0.795784
0.039827
0
0.129032
0
0
0.276152
0.038878
0
0
0
0
0
0
null
null
0
0.112903
null
null
0.016129
0
0
0
null
0
0
0
0
0
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
da9377d8af37a262d468cd2b59acc84488d30336
883
py
Python
regconfig/reg_z.py
cfpb/regulations-configs
ccb7fc6d3cbe44e58f9001fd561f0dc43d5155a8
[ "CC0-1.0" ]
1
2015-07-11T17:52:38.000Z
2015-07-11T17:52:38.000Z
regconfig/reg_z.py
cfpb/regulations-configs
ccb7fc6d3cbe44e58f9001fd561f0dc43d5155a8
[ "CC0-1.0" ]
7
2015-07-29T18:41:35.000Z
2015-09-09T17:38:12.000Z
regconfig/reg_z.py
cfpb/regulations-configs
ccb7fc6d3cbe44e58f9001fd561f0dc43d5155a8
[ "CC0-1.0" ]
5
2015-07-29T17:10:01.000Z
2021-02-21T10:34:30.000Z
#### Regulation Z IGNORE_DEFINITIONS_IN_PART_1026 = [ 'credit report', 'credit-report', 'Consumer Price Index', 'credit counseling', 'and credit the', 'credit reporting agencies', 'credit history', 'Credit the amount', 'credit to a deposit account', 'Consumer Price level', '...
22.641026
71
0.586636
102
883
5.009804
0.666667
0.046967
0.046967
0
0
0
0
0
0
0
0
0.076052
0.300113
883
38
72
23.236842
0.750809
0.01359
0
0
0
0
0.604624
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
16f284553976c5ce634147b916996068482309eb
523
py
Python
training_scripts/resume.py
grantsrb/langpractice
59cf8f53b85fa8b4d639ffc6e175ec22c0d2362c
[ "MIT" ]
null
null
null
training_scripts/resume.py
grantsrb/langpractice
59cf8f53b85fa8b4d639ffc6e175ec22c0d2362c
[ "MIT" ]
null
null
null
training_scripts/resume.py
grantsrb/langpractice
59cf8f53b85fa8b4d639ffc6e175ec22c0d2362c
[ "MIT" ]
null
null
null
import torch import langpractice as lp from langpractice.utils.training import run_training import torch.multiprocessing as mp import sys """ Just argue the path to a model folder that you would like to resume the training of $ python3 resume.py /path/to/model/folder/ """ torch.autograd.set_detect_anomaly(True) if ...
23.772727
67
0.751434
82
523
4.597561
0.585366
0.058355
0.04244
0
0
0
0
0
0
0
0
0.008929
0.143403
523
21
68
24.904762
0.832589
0
0
0
0
0
0.080311
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
16f6745876ed2a418b5a62eb3e0880a9d92430e0
2,161
py
Python
qbay_test/test_Login.py
AlexanderMKovalev/QBay
6f7ae9ba772ebcaf55a2be91089d89448127eb64
[ "MIT" ]
null
null
null
qbay_test/test_Login.py
AlexanderMKovalev/QBay
6f7ae9ba772ebcaf55a2be91089d89448127eb64
[ "MIT" ]
null
null
null
qbay_test/test_Login.py
AlexanderMKovalev/QBay
6f7ae9ba772ebcaf55a2be91089d89448127eb64
[ "MIT" ]
null
null
null
# File containing tests for the login import pytest from qbay.models import User from qbay.models import db # Create a user before running any tests for product testing @pytest.fixture(scope='module', autouse=True) def fixture(request): db.create_all() db.session.query(User).delete() db.session.commit() ...
31.318841
76
0.681166
299
2,161
4.886288
0.367893
0.067762
0.051335
0.020534
0.351814
0.351814
0.245722
0.182067
0.128679
0.128679
0
0.013341
0.202221
2,161
68
77
31.779412
0.834107
0.265618
0
0.372093
0
0
0.23731
0
0
0
0
0
0.069767
1
0.116279
false
0.139535
0.069767
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
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
16fa709f18767005951a7729a2210d7cabd5f0f4
394
py
Python
hood/migrations/0004_business_description.py
Joseph-Odhiambo/Neighborhood-watch
c7b99bf12bde71b3ecb3aabc1602cd9e6957acf0
[ "MIT" ]
1
2020-10-29T06:09:42.000Z
2020-10-29T06:09:42.000Z
hood/migrations/0004_business_description.py
Joseph-Odhiambo/Neighborhood-watch
c7b99bf12bde71b3ecb3aabc1602cd9e6957acf0
[ "MIT" ]
null
null
null
hood/migrations/0004_business_description.py
Joseph-Odhiambo/Neighborhood-watch
c7b99bf12bde71b3ecb3aabc1602cd9e6957acf0
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-10-27 06:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('hood', '0003_remove_business_description'), ] operations = [ migrations.AddField( model_name='business', name='descr...
20.736842
53
0.606599
41
394
5.731707
0.804878
0
0
0
0
0
0
0
0
0
0
0.067138
0.281726
394
18
54
21.888889
0.763251
0.114213
0
0
1
0
0.158501
0.092219
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
16fbadce6345f15f94e16e2f823c5b1da2622b17
325
py
Python
SQLite - Pratice/codemy/sqlite1-10.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
2
2020-11-27T13:21:05.000Z
2021-04-19T21:14:21.000Z
SQLite - Pratice/codemy/sqlite1-10.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
null
null
null
SQLite - Pratice/codemy/sqlite1-10.py
shubhamnag14/Python-Documents
d3fee0ad90232b413f6ac1b562588fb255b79e42
[ "Apache-2.0" ]
1
2021-06-27T20:31:42.000Z
2021-06-27T20:31:42.000Z
# And / Or import sqlite3 conn = sqlite3.connect('customer.db') c = conn.cursor() c.execute("SELECT rowid, * FROM customers WHERE last LIKE 'B%' AND rowid=1") c.execute("SELECT rowid, * FROM customers WHERE last LIKE 'B%' OR rowid=1") items = c.fetchall() for item in items: print(item) conn.commit() conn.clo...
19.117647
77
0.683077
51
325
4.352941
0.54902
0.072072
0.126126
0.171171
0.414414
0.414414
0.414414
0.414414
0.414414
0.414414
0
0.014815
0.169231
325
16
78
20.3125
0.807407
0.024615
0
0
0
0
0.438095
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.1
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
16ffe1e6746fdf91e9d9fe33377bbccd53fa156f
4,564
py
Python
biz_portal/apps/portal/tests/test_api.py
BarisSari/biz-portal
63e737277ad4c241521430deb8d29d35e0cba126
[ "MIT" ]
1
2022-01-21T15:28:18.000Z
2022-01-21T15:28:18.000Z
biz_portal/apps/portal/tests/test_api.py
BarisSari/biz-portal
63e737277ad4c241521430deb8d29d35e0cba126
[ "MIT" ]
17
2019-07-16T13:43:57.000Z
2022-02-26T12:05:25.000Z
biz_portal/apps/portal/tests/test_api.py
BarisSari/biz-portal
63e737277ad4c241521430deb8d29d35e0cba126
[ "MIT" ]
6
2019-09-05T18:58:48.000Z
2022-01-17T03:09:30.000Z
import json from django.test import Client, TestCase from .. import models class BusinessSearchTestCase(TestCase): """Loads the business requested in the URL""" fixtures = [ "sectors", "business_types", "business_statuses", "regions", "test_api_businesses", ] ...
35.379845
84
0.608019
472
4,564
5.713983
0.25
0.055617
0.03337
0.048943
0.695217
0.695217
0.682981
0.641083
0.608083
0.608083
0
0.006913
0.271034
4,564
128
85
35.65625
0.803727
0.121166
0
0.64
0
0
0.241692
0.037764
0
0
0
0
0.13
1
0.04
false
0
0.03
0
0.12
0
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
e50a410bf3bfa87b5773184897c8acf0f7a72aad
1,413
py
Python
sr-pwc/scripts/kitti_flow_gts.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
sr-pwc/scripts/kitti_flow_gts.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
sr-pwc/scripts/kitti_flow_gts.py
ashariati/srfnet
2171a635006d3ac98e39a9f07c17027b70e5aead
[ "MIT" ]
null
null
null
import sys import os import pprint import math import numpy as np import PIL import torch from torch import nn import torchvision import torchvision.transforms as transforms import torchvision.utils as vutils sys.path.append('..') import data_utils from data_utils import KITTIDerot import fl...
23.949153
95
0.69356
189
1,413
4.962963
0.492063
0.031983
0.055437
0
0
0
0
0
0
0
0
0.021164
0.197452
1,413
58
96
24.362069
0.805996
0.053079
0
0.055556
0
0
0.051887
0.031447
0
0
0
0
0
1
0
false
0
0.444444
0
0.444444
0.027778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
e51021b8fcd42415c0a52ded4b2bb257cc6e1e53
671
py
Python
src/models/title.py
hirmeos/identifier_translation_service
3cfabb69db863e1f4f05d8c255cec13c2d77f785
[ "MIT" ]
5
2018-06-18T11:31:23.000Z
2021-03-11T15:21:10.000Z
src/models/title.py
hirmeos/identifier_translation_service
3cfabb69db863e1f4f05d8c255cec13c2d77f785
[ "MIT" ]
1
2020-05-05T09:17:06.000Z
2020-05-05T09:17:06.000Z
src/models/title.py
hirmeos/identifier_translation_service
3cfabb69db863e1f4f05d8c255cec13c2d77f785
[ "MIT" ]
2
2018-07-17T09:40:07.000Z
2018-10-01T15:36:12.000Z
import web import psycopg2 from aux import logger_instance, debug_mode from api import db from errors import Error, FATAL logger = logger_instance(__name__) web.config.debug = debug_mode() class Title(): def __init__(self, title): self.title = title def save_if_not_exists(self): try: ...
24.851852
78
0.643815
85
671
4.894118
0.552941
0.064904
0.067308
0
0
0
0
0
0
0
0
0.004057
0.265276
671
26
79
25.807692
0.839757
0
0
0
0
0
0.090909
0
0
0
0
0
0
1
0.142857
false
0
0.238095
0.047619
0.52381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e518156e8bd88aaeb074751b90261508df8cb3ba
4,983
py
Python
video_part/video_reply.py
OtakuNio/bilibili-crawler
6e9dbf693bc2fba9b0d19bd7f1dcafeedb80253e
[ "MIT" ]
2
2021-08-05T06:47:45.000Z
2021-08-05T07:17:42.000Z
video_part/video_reply.py
OtakuNio/bilibili-crawler
6e9dbf693bc2fba9b0d19bd7f1dcafeedb80253e
[ "MIT" ]
null
null
null
video_part/video_reply.py
OtakuNio/bilibili-crawler
6e9dbf693bc2fba9b0d19bd7f1dcafeedb80253e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ 视频评论爬取脚本 参数为某视频的BV号 """ __author__ = 'OtakuNio' import time import pandas as pd from sqlalchemy import create_engine from get_response_with_proxy_ip import get_response, get_proxy_ip def video_reply_main(bid): print("video_reply") my_url1 = 'http://api.bilibili.com/...
37.75
118
0.602248
629
4,983
4.411765
0.201908
0.079279
0.086486
0.075676
0.711712
0.684685
0.663784
0.634234
0.634234
0.603964
0
0.008225
0.243628
4,983
131
119
38.038168
0.728045
0.032511
0
0.60177
0
0.00885
0.163248
0.008761
0
0
0
0
0
1
0.044248
false
0
0.035398
0
0.106195
0.017699
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
e52940b71a5dc1e75ff3c9cc66d4f69e67479999
290
py
Python
tests/context_manager.py
bastibe/PySoundCard
fb16460b75a1bb416089ebecdf700fa954faa5b7
[ "BSD-3-Clause" ]
70
2015-01-10T12:01:57.000Z
2021-08-06T03:19:22.000Z
tests/context_manager.py
bastibe/PySoundCard
fb16460b75a1bb416089ebecdf700fa954faa5b7
[ "BSD-3-Clause" ]
40
2015-01-07T14:20:33.000Z
2020-09-13T11:55:30.000Z
tests/context_manager.py
bastibe/PySoundCard
fb16460b75a1bb416089ebecdf700fa954faa5b7
[ "BSD-3-Clause" ]
8
2015-01-23T13:14:43.000Z
2019-05-10T05:55:30.000Z
from pysoundcard import Stream, continue_flag import time """Loop back five seconds of audio data.""" def callback(in_data, out_data, time_info, status): out_data[:] = in_data return continue_flag with Stream(samplerate=44100, blocksize=16, callback=callback): time.sleep(5)
24.166667
63
0.748276
42
290
5
0.666667
0.114286
0
0
0
0
0
0
0
0
0
0.03252
0.151724
290
11
64
26.363636
0.821138
0
0
0
0
0
0
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
e52cf02a24e06377cac352454e52a41d7c6c6b13
1,566
py
Python
encode/hevc.py
Netflix/codec_compare
c13566144e8aa421cbafdfbe8033f1203d84bea2
[ "Apache-2.0" ]
19
2018-03-09T18:14:49.000Z
2022-03-29T16:27:45.000Z
encode/hevc.py
joelsole/codec_compare
c13566144e8aa421cbafdfbe8033f1203d84bea2
[ "Apache-2.0" ]
null
null
null
encode/hevc.py
joelsole/codec_compare
c13566144e8aa421cbafdfbe8033f1203d84bea2
[ "Apache-2.0" ]
7
2018-05-03T18:10:49.000Z
2021-08-03T01:45:54.000Z
#!/usr/bin/env python import sys import os import subprocess import math image_src = sys.argv[1] image_out = sys.argv[2] bpp_target = sys.argv[3] width = sys.argv[4] height = sys.argv[5] pix_fmt = sys.argv[6] depth = sys.argv[7] hevc_bin = '/tools/HM-16.9+SCM-8.0/bin/TAppEncoderStatic' hevc_cfg = '...
27.964286
135
0.603448
242
1,566
3.756198
0.396694
0.061606
0.036304
0.022002
0.229923
0.163916
0.033003
0
0
0
0
0.034711
0.227331
1,566
55
136
28.472727
0.716529
0.012771
0
0.222222
0
0
0.14822
0.092557
0
0
0
0
0
0
null
null
0
0.088889
null
null
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e534da8d5fabce1941c4fa76c095f04775c248a4
1,096
py
Python
src/OTLMOW/PostenMapping/Model/Post050304001.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/PostenMapping/Model/Post050304001.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/PostenMapping/Model/Post050304001.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post050304001(StandaardPost): def __init__(self): super().__init__( nummer...
42.153846
111
0.626825
91
1,096
7.461538
0.802198
0.029455
0.067747
0
0
0
0
0
0
0
0
0.048469
0.284672
1,096
25
112
43.84
0.817602
0.066606
0
0
1
0.047619
0.257843
0
0
0
0
0
0
1
0.047619
false
0
0.095238
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5357626e4f7d34ec4f6ba249d7c829329180f6a
3,531
py
Python
nsot/fields.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
1
2015-11-26T07:36:12.000Z
2015-11-26T07:36:12.000Z
nsot/fields.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
null
null
null
nsot/fields.py
jathanism/nsot
9369c86189a64c682e28fd5663762e4d3205b058
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from __future__ import absolute_import from django.conf import settings from django.db import models from django.utils.datastructures import DictWrapper from django_extensions.db.fields.json import JSONField from macaddress.fields import MACAddressField a...
30.439655
77
0.655622
422
3,531
5.329384
0.348341
0.028012
0.020009
0.017341
0.34771
0.292574
0.264117
0.264117
0.225878
0.225878
0
0.002301
0.261399
3,531
115
78
30.704348
0.860046
0.198527
0
0.430769
0
0
0.037491
0.009012
0
0
0
0
0
1
0.123077
false
0
0.169231
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
0
0
1
0
0
1
e53753db9d2f52acc6b56bff4c7d40858ac262db
2,248
py
Python
packages/asv_perception_homography/src/asv_perception_homography/FeedforwardImuController.py
rolker/asv_perception
395e5ebbd28790257c0c5188da6d409b49a64253
[ "BSD-3-Clause" ]
11
2020-12-08T17:41:56.000Z
2022-03-27T08:32:30.000Z
packages/asv_perception_homography/src/asv_perception_homography/FeedforwardImuController.py
20-210-River-Data-Analysis-Captone/asv_perception
a396b1ca980c2ddcb0480804dbc4c7e34df91fba
[ "BSD-3-Clause" ]
null
null
null
packages/asv_perception_homography/src/asv_perception_homography/FeedforwardImuController.py
20-210-River-Data-Analysis-Captone/asv_perception
a396b1ca980c2ddcb0480804dbc4c7e34df91fba
[ "BSD-3-Clause" ]
10
2020-11-30T03:10:47.000Z
2022-03-06T12:10:09.000Z
""" Copyright (c) 2020 University of Massachusetts All rights reserved. This source code is licensed under the BSD-style license found in the LICENSE file in the root directory of this source tree. Authors: Tom Clunie <clunietp@gmail.com> """ from sensor_msgs.msg import Imu from tf.transformations import euler_from_q...
38.101695
125
0.65258
316
2,248
4.481013
0.357595
0.039548
0.04661
0.021186
0
0
0
0
0
0
0
0.012448
0.249555
2,248
58
126
38.758621
0.826912
0.330516
0
0.076923
0
0
0
0
0
0
0
0.017241
0
1
0.076923
false
0
0.076923
0
0.192308
0
0
0
0
null
0
0
0
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
e5390e743afea493430eefd4cb90c1f65fe0b335
1,029
py
Python
tests/data/gradient.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
12
2017-07-11T15:58:12.000Z
2021-05-10T20:33:26.000Z
tests/data/gradient.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
808
2015-04-12T00:36:08.000Z
2022-03-27T21:06:06.000Z
tests/data/gradient.py
untzag/WrightTools
05480d2f91ceeca422d9e5ac381fce1840207cb0
[ "MIT" ]
9
2017-07-22T18:54:23.000Z
2022-02-17T20:31:05.000Z
#! /usr/bin/env python3 """Test collapse.""" # --- import ------------------------------------------------------------------------------------- import WrightTools as wt import numpy as np # --- tests -------------------------------------------------------------------------------------- def test_gradient(): ...
28.583333
99
0.45967
127
1,029
3.559055
0.354331
0.053097
0.079646
0.044248
0.159292
0.159292
0.159292
0.159292
0
0
0
0.060948
0.13897
1,029
35
100
29.4
0.44921
0.319728
0
0
0
0
0.031838
0
0
0
0
0
0.235294
1
0.058824
false
0
0.117647
0
0.176471
0
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
e54e2739ffdf3e0f41e61ef679b391c040a0c0fa
1,119
py
Python
nxpy/nxsound.py
SebastianDang/nxpy
cdac410810f5af73736a22ad0bdd80ddcc742bf3
[ "MIT" ]
1
2022-02-14T06:46:09.000Z
2022-02-14T06:46:09.000Z
nxpy/nxsound.py
SebastianDang/nxpy
cdac410810f5af73736a22ad0bdd80ddcc742bf3
[ "MIT" ]
null
null
null
nxpy/nxsound.py
SebastianDang/nxpy
cdac410810f5af73736a22ad0bdd80ddcc742bf3
[ "MIT" ]
null
null
null
import io from pydub import AudioSegment def unpack_data_to_wav(data): # header = sound[32:82] # fmt = int.from_bytes(header[8:12], 'big') # channels = int.from_bytes(header[22:24], 'little') # sample_rate = int.from_bytes(header[24:28], 'little') # byte_rate = int.from_bytes(header[28:32], 'lit...
27.975
63
0.617516
147
1,119
4.503401
0.394558
0.063444
0.108761
0.163142
0.123867
0
0
0
0
0
0
0.042755
0.247542
1,119
39
64
28.692308
0.743468
0.32529
0
0
0
0
0.026991
0
0
0
0
0
0
1
0.15
false
0
0.1
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
e552bb1c3dd0f5abdd44db56cc739ccde7f226a2
1,303
py
Python
clothstream/favorites/views.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/favorites/views.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
clothstream/favorites/views.py
julienaubert/clothstream
daa76389be8b359208e88cd1f7aa8e7e98766656
[ "MIT" ]
null
null
null
from rest_framework import viewsets, mixins, permissions from clothstream.lib.permissions import FieldIsUserOrReadOnlyClassFactory from .models import FavoritedItem from .serializers import FavoritedItemSerializer IsUserOrReadOnly = FieldIsUserOrReadOnlyClassFactory('user') class FavoritedItemDestroy(mixins.Destroy...
38.323529
109
0.769762
121
1,303
8.165289
0.46281
0.033401
0.060729
0.087045
0.323887
0.323887
0.323887
0.323887
0.323887
0.323887
0
0.00271
0.150422
1,303
33
110
39.484848
0.889792
0
0
0.25
0
0
0.00921
0
0
0
0
0
0
1
0.125
false
0
0.166667
0.041667
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e55e2d260f9d5e0c4359739165c8da5023bce82f
4,864
py
Python
src/data/fasta_taxonomy.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
src/data/fasta_taxonomy.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
src/data/fasta_taxonomy.py
emcuttsy/algal-polysaccharides
de340c8521bca7c74d741ae0b356b1816af0768d
[ "MIT" ]
null
null
null
# fasta_taxnomy # generates a table with the taxon names and taxon ids associated with the protein seq IDs of a fasta # by default, it outputs the table in the raw directory since this is 'queried' data # IMPORTANT! # Change the Entrez email and key to your own. import argparse import pandas as pd from src import con...
32.644295
145
0.653783
637
4,864
4.828885
0.299843
0.013004
0.022107
0.026008
0.195709
0.172627
0.13459
0.094928
0.094928
0.094928
0
0.010114
0.22759
4,864
149
146
32.644295
0.808358
0.125411
0
0.116279
1
0
0.154571
0.009167
0
0
0
0
0
1
0.046512
false
0
0.104651
0
0.151163
0.116279
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
e56274ef4bf6a8fd13ff8e8e87b0318748f87d29
3,062
py
Python
test/engine/test_imagga.py
hedrickbt/TigerTag
3e4f0c25b4e62577cf2381675372a3e1aba3ab8d
[ "MIT" ]
1
2021-11-23T21:45:49.000Z
2021-11-23T21:45:49.000Z
test/engine/test_imagga.py
hedrickbt/TigerTag
3e4f0c25b4e62577cf2381675372a3e1aba3ab8d
[ "MIT" ]
null
null
null
test/engine/test_imagga.py
hedrickbt/TigerTag
3e4f0c25b4e62577cf2381675372a3e1aba3ab8d
[ "MIT" ]
null
null
null
import unittest from tigertag.engine.imagga import * logging.basicConfig( stream=sys.stderr, level=logging.DEBUG, format='%(asctime)s %(levelname)-8s %(name)s : %(funcName)s | %(message)s', datefmt='%Y-%m-%d %H:%M:%S') class TestImaggaEngine(unittest.TestCase): def on_tags(self, engi...
45.029412
114
0.64533
423
3,062
4.43026
0.236407
0.067236
0.110993
0.072572
0.661686
0.661686
0.661686
0.661686
0.661686
0.65635
0
0.027409
0.213586
3,062
67
115
45.701493
0.750831
0.03821
0
0.446429
0
0.017857
0.124956
0
0
0
0
0
0.25
1
0.107143
false
0
0.035714
0
0.160714
0
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
e566fe55c13b26ffef14fe785b3329f2d0ffb184
485
py
Python
src/graphkernels/setup.py
vishalbelsare/GraphKernels
4ec42015a52c01b01363b0711b463408b2c49ca1
[ "MIT" ]
76
2016-12-14T08:19:38.000Z
2022-01-16T18:53:51.000Z
src/graphkernels/setup.py
vishalbelsare/GraphKernels
4ec42015a52c01b01363b0711b463408b2c49ca1
[ "MIT" ]
23
2018-01-25T20:58:24.000Z
2021-08-16T06:21:54.000Z
src/graphkernels/setup.py
vishalbelsare/GraphKernels
4ec42015a52c01b01363b0711b463408b2c49ca1
[ "MIT" ]
31
2018-02-02T22:18:58.000Z
2021-11-29T01:38:05.000Z
from setuptools import setup setup(name = 'graphkernels', version = '0.2.1', description = 'Package for computing graph kernels', url = 'https://github.com/eghisu/GraphKernels/tree/master/graphkernels', author = 'Elisabetta Ghisu', author_email = 'elisabetta.ghisu@bsse.ethz.ch', license = 'ETH Zurich', pac...
32.333333
73
0.709278
57
485
5.982456
0.789474
0.087977
0
0
0
0
0
0
0
0
0
0.007126
0.131959
485
14
74
34.642857
0.80285
0.051546
0
0
0
0
0.502183
0.063319
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
e56f12d9df8c67f3e10a9c5b6f40cc0f7d78d6bc
170
py
Python
booking/constant.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
1
2022-01-16T00:20:31.000Z
2022-01-16T00:20:31.000Z
booking/constant.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
null
null
null
booking/constant.py
gilbertekalea/booking.com_crawler
71e52c87cd72a77f80a3e5fc0af0e1a68a5712ae
[ "MIT" ]
null
null
null
BASE_URL = "https://www.booking.com/" HEADERS = [ "Hotel Name", "Type", "Location", "Date Range", "adults", "rooms", "Score", "price", ]
13.076923
37
0.494118
17
170
4.882353
1
0
0
0
0
0
0
0
0
0
0
0
0.294118
170
12
38
14.166667
0.691667
0
0
0
0
0
0.452941
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e570d9f8d03c68a47cc90c4816eb0299db11df2e
562
py
Python
Bridge42/planner/FloorPlanTest.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
12
2020-07-23T17:11:22.000Z
2022-02-03T12:44:56.000Z
Bridge42/planner/FloorPlanTest.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
1
2020-07-28T13:35:51.000Z
2020-07-28T13:35:51.000Z
Bridge42/planner/FloorPlanTest.py
Q-Alpha/Hackathon2020
c0ed45b4c1cc4f475f83786e641b859dad94f863
[ "MIT" ]
25
2020-07-22T14:32:17.000Z
2021-09-08T11:43:55.000Z
import unittest from . import FloorPlan, Component from .Component import Orientation class FloorPlanDrawTest(unittest.TestCase): plan: FloorPlan def setUp(self) -> None: self.plan = FloorPlan(10, 15) self.plan.append(Component(height=3, width=5, x=0, y=15)) self.plan.append(Component...
26.761905
98
0.677936
77
562
4.818182
0.467532
0.107817
0.113208
0.185984
0.28841
0.210243
0.210243
0.210243
0.210243
0.210243
0
0.037281
0.188612
562
20
99
28.1
0.776316
0
0
0
0
0
0.014235
0
0
0
0
0
0
1
0.142857
false
0
0.214286
0
0.5
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
e5769e67a11ba2aa005fff649a9bc67a1f4a5825
499
py
Python
gtm_demo_web/gtm_demo/migrations/0002_auto_20210222_1515.py
oleg-dirtrider/gtm-demo
fb13fc89737097f271ad3abbc1dc311c1a9f8d71
[ "Apache-2.0" ]
1
2021-04-21T17:06:24.000Z
2021-04-21T17:06:24.000Z
gtm_demo_web/gtm_demo/migrations/0002_auto_20210222_1515.py
oleg-dirtrider/gtm-demo
fb13fc89737097f271ad3abbc1dc311c1a9f8d71
[ "Apache-2.0" ]
null
null
null
gtm_demo_web/gtm_demo/migrations/0002_auto_20210222_1515.py
oleg-dirtrider/gtm-demo
fb13fc89737097f271ad3abbc1dc311c1a9f8d71
[ "Apache-2.0" ]
null
null
null
# Generated by Django 3.1.7 on 2021-02-22 15:15 from django.db import migrations, models import gtm_demo.models class Migration(migrations.Migration): dependencies = [ ('gtm_demo', '0001_initial'), ] operations = [ migrations.AlterField( model_name='demolanding', ...
24.95
145
0.649299
61
499
5.131148
0.639344
0.067093
0.083067
0
0
0
0
0
0
0
0
0.055118
0.236473
499
19
146
26.263158
0.766404
0.09018
0
0
1
0
0.119469
0
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
e57b411912896b0aa1f92e9395ae4e4bd8837b5f
679
py
Python
dashboard/migrations/0025_auto_20210802_2344.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
15
2021-08-28T18:18:37.000Z
2022-03-13T07:48:15.000Z
dashboard/migrations/0025_auto_20210802_2344.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
65
2021-08-20T02:37:27.000Z
2022-02-07T17:19:23.000Z
dashboard/migrations/0025_auto_20210802_2344.py
ankanb240/otis-web
45eda65b419705c65c02b15872a137969d53d8e9
[ "MIT" ]
31
2020-01-09T02:35:29.000Z
2022-03-13T07:48:18.000Z
# Generated by Django 3.2.5 on 2021-08-03 03:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('dashboard', '0024_achievementcode_level'), ] operations = [ migrations.AddField( model_name='achievementcode', name=...
28.291667
115
0.630339
69
679
6.115942
0.695652
0.085308
0.109005
0.127962
0
0
0
0
0
0
0
0.040161
0.266568
679
23
116
29.521739
0.807229
0.066274
0
0.235294
1
0
0.246835
0.041139
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e57dccb3456fbe64d5b0cb457111915ee73072c3
379
py
Python
history/migrations/0004_auto_20200721_0110.py
lewisorenge/VIDEO_HISTORY
bd687960cf74909de552869546ad9afab9c9d561
[ "MIT" ]
null
null
null
history/migrations/0004_auto_20200721_0110.py
lewisorenge/VIDEO_HISTORY
bd687960cf74909de552869546ad9afab9c9d561
[ "MIT" ]
null
null
null
history/migrations/0004_auto_20200721_0110.py
lewisorenge/VIDEO_HISTORY
bd687960cf74909de552869546ad9afab9c9d561
[ "MIT" ]
null
null
null
# Generated by Django 3.0.8 on 2020-07-20 22:10 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('history', '0003_history_viewed_on'), ] operations = [ migrations.AlterField( model_name='history', name='object_id',...
19.947368
47
0.593668
40
379
5.5
0.775
0
0
0
0
0
0
0
0
0
0
0.070896
0.292876
379
18
48
21.055556
0.75
0.118734
0
0
1
0
0.135542
0.066265
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
e58252eb9c80f1f3915c2ab9f3ff4be5a85ba44a
863
py
Python
setup.py
ttz21/colourful_nose
10b7465d74937bbfc71f2872b17f975779bebff3
[ "BSD-3-Clause" ]
null
null
null
setup.py
ttz21/colourful_nose
10b7465d74937bbfc71f2872b17f975779bebff3
[ "BSD-3-Clause" ]
null
null
null
setup.py
ttz21/colourful_nose
10b7465d74937bbfc71f2872b17f975779bebff3
[ "BSD-3-Clause" ]
null
null
null
import os import sys try: from setuptools import setup except ImportError: from distutils.core import setup execfile("mycode/__init__.py") if sys.argv[-1] == 'publish': os.system('python setup.py sdist upload') sys.exit() packages = [ 'mycode' ] requires = [] setup( name='nose-mycode', ...
21.575
105
0.659328
106
863
5.235849
0.660377
0.081081
0.036036
0
0
0
0
0
0
0
0
0.008811
0.210892
863
39
106
22.128205
0.806167
0
0
0
0
0.03125
0.38007
0.053302
0
0
0
0
0
0
null
null
0
0.15625
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
e5825cc340a1ba490306bfa70321d2845f7001a5
12,522
py
Python
result/boto.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
3
2020-06-16T20:03:31.000Z
2021-01-17T20:45:51.000Z
result/boto.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
8
2020-02-08T09:04:08.000Z
2021-06-09T18:31:03.000Z
result/boto.py
Uqhs-1/uqhs
1c7199d8c23a9d9eb3f75b1e36633a145fd2cd40
[ "MIT" ]
null
null
null
#python def users(x): if x == 'gen': users = User.objects.all() data = [[i.profile.title, i.profile.last_name, i.profile.first_name, i.username, i.profile.department] for i in users] else: if not User.objects.filter(username__exact=request.GET.get('username')): userObj = User.objects.create_user(...
34.027174
367
0.735506
1,967
12,522
4.626335
0.252669
0.010989
0.021099
0.026374
0.203956
0.16978
0.140989
0.126264
0.117253
0.117253
0
0.024486
0.165069
12,522
367
368
34.119891
0.833286
0.041846
0
0.2397
0
0.048689
0.152484
0.052359
0
0
0
0
0
0
null
null
0.007491
0.011236
null
null
0.003745
0
0
0
null
0
0
0
0
0
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
e583080597942b33bfd629685f72230a145f3dcb
474
py
Python
teachers/migrations/0006_exam_term.py
reivhax/Exams-MIS
5c4c6d30d1d8fc3040505c660fffbdffd1ef4a53
[ "MIT" ]
null
null
null
teachers/migrations/0006_exam_term.py
reivhax/Exams-MIS
5c4c6d30d1d8fc3040505c660fffbdffd1ef4a53
[ "MIT" ]
null
null
null
teachers/migrations/0006_exam_term.py
reivhax/Exams-MIS
5c4c6d30d1d8fc3040505c660fffbdffd1ef4a53
[ "MIT" ]
null
null
null
# Generated by Django 2.1 on 2018-08-28 00:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('teachers', '0005_auto_20180828_0210'), ] operations = [ migrations.AddField( model_name='exam', name='term', ...
24.947368
145
0.580169
57
474
4.736842
0.666667
0.055556
0.066667
0
0
0
0
0
0
0
0
0.114613
0.263713
474
18
146
26.333333
0.659026
0.090717
0
0
1
0
0.188811
0.053613
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
e5850ba89e0428563c38c5924fd208732bcd05e7
1,420
py
Python
backend/treeckle/users/serializers.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
null
null
null
backend/treeckle/users/serializers.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
1
2021-11-28T06:18:51.000Z
2021-11-28T06:18:51.000Z
backend/treeckle/users/serializers.py
CAPTxTreeckle/Treeckle-3.0
0c8a1a1db5685a22968644deabdd79b525ff0140
[ "MIT" ]
1
2021-08-02T09:20:10.000Z
2021-08-02T09:20:10.000Z
from rest_framework import serializers from .models import User, UserInvite, Role, PatchUserAction class PostSingleUserInviteSerializer(serializers.ModelSerializer): ## needed for role to be automatically assigned a default value role = serializers.ChoiceField(Role.choices, default=Role.RESIDENT) class ...
28.979592
71
0.754225
132
1,420
8.083333
0.409091
0.082474
0.073102
0.084349
0.160262
0
0
0
0
0
0
0.002517
0.160563
1,420
48
72
29.583333
0.892617
0.062676
0
0.178571
0
0
0.019608
0
0
0
0
0
0
1
0
false
0
0.071429
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
e58eac732d804d9ccb9bfd63d28b155463902ff4
1,655
py
Python
django_docker_engine/historian.py
mccalluc/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
7
2017-04-25T10:22:53.000Z
2021-09-11T10:18:04.000Z
django_docker_engine/historian.py
django-africa/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
117
2017-03-22T19:24:24.000Z
2021-03-25T21:57:53.000Z
django_docker_engine/historian.py
mccalluc/django_docker_engine
2f8241ef9b504e89de54bb5f18ef3c925adea116
[ "MIT" ]
3
2018-05-23T10:00:06.000Z
2020-03-05T05:56:02.000Z
from __future__ import print_function import errno import os from datetime import datetime class FileHistorian(): """ Records incoming requests to a file, and provides access to the records in that file. """ DIR = '/tmp/django-docker-file-historian' def __init__(self): # mkdir -p: h...
29.553571
78
0.603021
210
1,655
4.57619
0.442857
0.137357
0.093652
0.079084
0.171696
0.171696
0.087409
0.087409
0.087409
0
0
0.008496
0.288822
1,655
55
79
30.090909
0.807986
0.138369
0
0.055556
0
0
0.028965
0.023896
0
0
0
0
0
1
0.194444
false
0.055556
0.111111
0.055556
0.472222
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
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
e58f170c19ba2122cf9105d3cd6d5cdea5583cc8
3,071
py
Python
wce_triage/bin/restore_volume.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
3
2019-07-25T03:24:23.000Z
2021-06-23T14:01:34.000Z
wce_triage/bin/restore_volume.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
1
2019-12-20T16:04:19.000Z
2019-12-20T16:04:19.000Z
wce_triage/bin/restore_volume.py
pfrouleau/wce-triage-v2
25610cda55f5cb2170e13e121ae1cbaa92ef7626
[ "MIT" ]
2
2019-07-25T03:24:26.000Z
2021-02-14T05:27:11.000Z
# # # import os, sys, subprocess from ..lib.util import is_block_device, get_transport_scheme, get_file_decompression_app from .process_driver import drive_process, PipeInfo def load_disk(source, dest_dev, filesystem=None): if not is_block_device(dest_dev): return 1 partclone_path = os.path.join('/', 'usr'...
28.435185
117
0.679583
431
3,071
4.700696
0.276102
0.034551
0.037512
0.0385
0.14462
0.090326
0.090326
0.090326
0.063179
0.063179
0
0.006902
0.197981
3,071
107
118
28.700935
0.815672
0.130251
0
0.333333
0
0.013333
0.102371
0
0
0
0
0
0
1
0.013333
false
0.16
0.04
0
0.093333
0.013333
0
0
0
null
0
0
0
0
0
0
0
0
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
e58fc3f4520cda6b1f150ce7409af8df5e86bf66
703
py
Python
TFBertForQuestionAnswering/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
3
2021-01-24T04:55:46.000Z
2021-05-12T15:11:35.000Z
TFBertForQuestionAnswering/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
null
null
null
TFBertForQuestionAnswering/main.py
Sniper970119/ExampleForTransformers
3348525957c38b2a45898d4f4652879933503b25
[ "Apache-2.0" ]
1
2021-01-24T04:55:53.000Z
2021-01-24T04:55:53.000Z
# -*- coding:utf-8 -*- """ ┏┛ ┻━━━━━┛ ┻┓ ┃       ┃ ┃   ━   ┃ ┃ ┳┛  ┗┳ ┃ ┃       ┃ ┃   ┻   ┃ ┃       ┃ ┗━┓   ┏━━━┛ ┃   ┃ 神兽保佑 ┃   ┃ 代码无BUG! ┃   ┗━━━━━━━━━┓ ┃CREATE BY SNIPER┣┓ ┃     ┏┛ ┗━┓ ┓ ┏━━━┳ ┓ ┏━┛ ...
21.96875
63
0.456615
97
703
4.164948
0.546392
0.049505
0.029703
0
0
0
0
0
0
0
0
0.002268
0.372688
703
32
64
21.96875
0.714286
0.365576
0
0
0
0
0.008772
0
0
0
0
0
0
1
0
false
0
0.777778
0
0.777778
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e5977280aae41b80a449c26a4b1b40d7fe34d352
5,270
py
Python
download.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
15
2015-03-05T17:03:08.000Z
2022-01-28T07:49:38.000Z
download.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
null
null
null
download.py
tankbusta/rescache
86ca7f3fb66e28a8761f0995a300f57a73a9561d
[ "MIT" ]
9
2015-03-06T09:56:30.000Z
2017-11-07T00:24:17.000Z
import gzip import os import urllib2 import threading import time import Queue import StringIO from checksum import calc_checksum from format_memory import format_memory import progress DOWNLOAD_THREAD_COUNT = 12 def get_url_root(): return 'http://res.eveonline.ccpgames.com' def DownloadResourceFile(target_url...
28.797814
121
0.620683
664
5,270
4.676205
0.231928
0.034783
0.018035
0.023188
0.14525
0.11562
0.089533
0.05475
0.039291
0.039291
0
0.014213
0.29241
5,270
182
122
28.956044
0.81845
0
0
0.136986
0
0.006849
0.067945
0
0
0
0
0
0
0
null
null
0.013699
0.075342
null
null
0.041096
0
0
0
null
0
0
0
0
0
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
e59c028b47764a6d093d98f9ef53daa4a46168a1
1,387
py
Python
docs-xml/mkmsgs.py
serg6854/feedvalidator
f6f42d640ff250e42fd5aaeb775e6c5e6d9ff941
[ "MIT" ]
65
2015-01-30T09:17:59.000Z
2022-03-05T16:23:46.000Z
docs-xml/mkmsgs.py
serg6854/feedvalidator
f6f42d640ff250e42fd5aaeb775e6c5e6d9ff941
[ "MIT" ]
25
2015-01-30T09:23:28.000Z
2021-11-30T08:52:08.000Z
docs-xml/mkmsgs.py
serg6854/feedvalidator
f6f42d640ff250e42fd5aaeb775e6c5e6d9ff941
[ "MIT" ]
33
2015-03-13T17:14:15.000Z
2022-03-05T11:18:43.000Z
import sys import os.path as path basename = path.dirname(path.dirname(path.abspath(__file__))) sys.path.append(path.join(basename,'src')) from feedvalidator.i18n.en import messages from feedvalidator.logging import Warning, Error template = ''' <fvdoc> <div xmlns='http://www.w3.org/1999/xhtml'> <div id='message'> <p...
22.370968
68
0.653929
188
1,387
4.712766
0.441489
0.01693
0.023702
0.020316
0.097065
0
0
0
0
0
0
0.006082
0.170151
1,387
61
69
22.737705
0.763684
0
0
0.156863
0
0
0.180966
0
0
0
0
0
0.019608
0
null
null
0
0.117647
null
null
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e5a089aa6ea638f2f03baf554cfe6647b58b2d7e
1,791
py
Python
src/nl/ekholabs/sample/python/test/testTuplesNSets.py
ekholabs/python
03a80c1341fa3259513e794703eb88c7cca9db21
[ "Apache-2.0" ]
null
null
null
src/nl/ekholabs/sample/python/test/testTuplesNSets.py
ekholabs/python
03a80c1341fa3259513e794703eb88c7cca9db21
[ "Apache-2.0" ]
null
null
null
src/nl/ekholabs/sample/python/test/testTuplesNSets.py
ekholabs/python
03a80c1341fa3259513e794703eb88c7cca9db21
[ "Apache-2.0" ]
null
null
null
''' Created on Sep 2, 2010 @author: Wilder Rodrigues (wilder.rodrigues@ekholabs.nl) ''' ''' Imports tuplesNSets from com.irdeto.python.structure package. ''' from com.irdeto.sample.python.structure import tuplesNSets ''' Using Tuples to create a profile. ''' profile = 'Robert', 'Poulsen', '01/10/1979',...
25.225352
105
0.689001
274
1,791
4.470803
0.529197
0.022857
0.022041
0.02449
0.169796
0.127347
0.066939
0.066939
0
0
0
0.028966
0.190396
1,791
70
106
25.585714
0.815862
0
0
0.235294
0
0
0.156156
0
0
0
0
0
0
0
null
null
0
0.058824
null
null
0.235294
0
0
0
null
0
0
0
0
0
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
e5a36e0147df5dbc6f2cc497ee2bbfccca7dcc8b
1,510
py
Python
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
null
null
null
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
3
2020-08-14T07:50:27.000Z
2020-08-14T08:51:06.000Z
数据结构/NowCode/16_FindFirstCommonNode.py
Blankwhiter/LearningNotes
83e570bf386a8e2b5aa699c3d38b83e5dcdd9cb0
[ "MIT" ]
2
2021-03-14T05:58:45.000Z
2021-08-29T17:25:52.000Z
# 两个链表的公共节点 # 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针random指向一个随机节点), # 请对此链表进行深拷贝,并返回拷贝后的头结点。(注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空) class Solution: # 第一个参数给比较短的链表,第二个参数给长链表的值 # def findEqual(self,): def FindFirstCommonNode(self, pHead1, pHead2): # 假设输入的两个链表,是同一个链表 if pHead1 == pHead2: ...
23.968254
61
0.491391
130
1,510
5.646154
0.407692
0.081744
0.095368
0.077657
0.284741
0.284741
0.284741
0.239782
0.239782
0.147139
0
0.069822
0.440397
1,510
62
62
24.354839
0.798817
0.223841
0
0.702703
0
0
0.006914
0
0
0
0
0
0
1
0.027027
false
0
0
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
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5a5bf50ba3ddd1eadc5108f189da4ad561777ea
1,588
py
Python
fdi/factories.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
5
2016-09-12T12:52:45.000Z
2020-03-24T14:43:13.000Z
fdi/factories.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
435
2016-10-18T12:51:39.000Z
2021-06-09T17:22:08.000Z
fdi/factories.py
uktrade/export-wins-data
46caa444812e89abe504bec8c15aa7f7ba1a247e
[ "MIT" ]
2
2016-12-06T10:37:21.000Z
2017-02-22T17:27:43.000Z
import datetime import factory from factory.fuzzy import FuzzyChoice, FuzzyDate import faker from fdi.models import ( Country, Investments, InvestmentType, InvestmentUKRegion, Involvement, FDIValue, Sector, SpecificProgramme, UKRegion, ) TEAMS = [ '', 'British Consulate Ge...
25.612903
90
0.714106
163
1,588
6.822086
0.521472
0.035971
0.06205
0.03777
0.067446
0.067446
0
0
0
0
0
0.042287
0.195844
1,588
61
91
26.032787
0.828504
0
0
0
0
0
0.142317
0
0
0
0
0
0
1
0
false
0
0.106383
0
0.531915
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e5a89c95083bd936c11ba56c4b7c1533a24d4236
3,983
py
Python
src/utils.py
planetceres/spr
ccffe4dc71feec23c111025f7a8405b08af2f428
[ "MIT" ]
1
2020-09-14T20:06:46.000Z
2020-09-14T20:06:46.000Z
src/utils.py
planetceres/spr
ccffe4dc71feec23c111025f7a8405b08af2f428
[ "MIT" ]
null
null
null
src/utils.py
planetceres/spr
ccffe4dc71feec23c111025f7a8405b08af2f428
[ "MIT" ]
null
null
null
from rlpyt.experiments.configs.atari.dqn.atari_dqn import configs def count_parameters(model): return sum(p.numel() for p in model.parameters() if p.requires_grad) class dummy_context_mgr: def __enter__(self): return None def __exit__(self, exc_type, exc_value, traceback): return False ...
44.255556
81
0.680643
519
3,983
4.959538
0.262042
0.115385
0.025253
0.032634
0.130536
0.048174
0.024864
0
0
0
0
0.01173
0.143861
3,983
90
82
44.255556
0.743109
0.019583
0
0
0
0
0.272681
0.01102
0
0
0
0.011111
0
1
0.051948
false
0
0.012987
0.038961
0.12987
0
0
0
0
null
0
0
0
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
e5ac7107bbe2afd365d4529164880a5b85cf9dc1
260
py
Python
python/src/textversion.py
Descent098/the-pantheon
3bf09c4feea6c3737de955691bb007366c82f407
[ "Unlicense" ]
null
null
null
python/src/textversion.py
Descent098/the-pantheon
3bf09c4feea6c3737de955691bb007366c82f407
[ "Unlicense" ]
null
null
null
python/src/textversion.py
Descent098/the-pantheon
3bf09c4feea6c3737de955691bb007366c82f407
[ "Unlicense" ]
null
null
null
from greekgods import * from hindugods import * from catholicangels import * if __name__ == '__main__': zuess = zuess() print(zuess) vishnu = vishnu() print(vishnu) seraph = seraph("Seraph", 1000000, 1000000, 1000, 1000) print(seraph)
21.666667
59
0.669231
29
260
5.724138
0.482759
0.120482
0
0
0
0
0
0
0
0
0
0.108374
0.219231
260
11
60
23.636364
0.70936
0
0
0
0
0
0.053846
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.3
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
e5addf6be911755a2bd7b8f3a22a854354f13987
1,327
py
Python
tests/test_validate.py
learncloudops/awsutils
2331148a2a6f0ee1a5cc9bc46cdfe175c4e53a84
[ "MIT" ]
null
null
null
tests/test_validate.py
learncloudops/awsutils
2331148a2a6f0ee1a5cc9bc46cdfe175c4e53a84
[ "MIT" ]
null
null
null
tests/test_validate.py
learncloudops/awsutils
2331148a2a6f0ee1a5cc9bc46cdfe175c4e53a84
[ "MIT" ]
null
null
null
import pytest from awsutils.services import Validate def test_str_not_null_success(): Validate.not_null(object='test', err_msg='the value is null') def test_str_not_null_failure(): with pytest.raises(ValueError): Validate.not_null(object=None, err_msg='the value is null') def test_str_not_null_err_msg(): ...
25.037736
68
0.725697
204
1,327
4.45098
0.220588
0.059471
0.077093
0.10022
0.674009
0.59141
0.59141
0.5
0.5
0.5
0
0
0.159759
1,327
52
69
25.519231
0.81435
0
0
0.432432
0
0
0.17483
0
0
0
0
0
0.108108
1
0.216216
false
0
0.054054
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
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
e5b0dfa4e1527a8b393e65536df7e4d4989786a5
284
py
Python
checkout/migrations/0006_delete_coupon.py
JoeyyScott/Gamer-Supplies
efd4b31cb95a087ae064ec79653d3f8d228856e5
[ "PostgreSQL" ]
null
null
null
checkout/migrations/0006_delete_coupon.py
JoeyyScott/Gamer-Supplies
efd4b31cb95a087ae064ec79653d3f8d228856e5
[ "PostgreSQL" ]
null
null
null
checkout/migrations/0006_delete_coupon.py
JoeyyScott/Gamer-Supplies
efd4b31cb95a087ae064ec79653d3f8d228856e5
[ "PostgreSQL" ]
1
2021-08-14T03:21:11.000Z
2021-08-14T03:21:11.000Z
# Generated by Django 3.2.5 on 2021-08-04 17:40 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('checkout', '0005_coupon'), ] operations = [ migrations.DeleteModel( name='Coupon', ), ]
16.705882
47
0.588028
30
284
5.533333
0.833333
0
0
0
0
0
0
0
0
0
0
0.095
0.295775
284
16
48
17.75
0.735
0.158451
0
0
1
0
0.105485
0
0
0
0
0
0
1
0
false
0
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5b92392403daf801857a0ceaeaff6610b2f5fe8
660
py
Python
kivy_modules/utils/resources.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
kivy_modules/utils/resources.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
kivy_modules/utils/resources.py
VictorManhani/polingua
16309ef4b25347e2d114749a24dfec5f9696e30f
[ "MIT" ]
null
null
null
import os import sys from kivy.utils import platform def resource_path(relative_path): """ It is used to find the temp path if exists else return the absolute path of a relative_path.""" abs_path = os.path.join(os.path.abspath("."), relative_path) if platform == "android": if has...
28.695652
64
0.639394
93
660
4.376344
0.397849
0.14742
0.07371
0.113022
0.27027
0.27027
0.27027
0.27027
0.27027
0.27027
0
0
0.259091
660
22
65
30
0.832311
0.140909
0
0.266667
0
0
0.101103
0
0
0
0
0
0
1
0.066667
false
0.266667
0.2
0
0.533333
0
0
0
0
null
0
0
0
0
0
0
0
0
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
e5bc656d7edae65f62f25c4318b700480e56d788
364
py
Python
main/web/forms/ad_update.py
abrgzej/WEBOT
144a4bd316f2e3491183c70ddf554e9a982caf9f
[ "Apache-2.0" ]
null
null
null
main/web/forms/ad_update.py
abrgzej/WEBOT
144a4bd316f2e3491183c70ddf554e9a982caf9f
[ "Apache-2.0" ]
null
null
null
main/web/forms/ad_update.py
abrgzej/WEBOT
144a4bd316f2e3491183c70ddf554e9a982caf9f
[ "Apache-2.0" ]
null
null
null
from flask_wtf import FlaskForm from wtforms import TextAreaField, SubmitField from wtforms.validators import DataRequired class UpdateForm(FlaskForm): with open('../all/db/update', 'r', encoding='utf-8') as f: re = f.read() utext = TextAreaField('Текст обновления', validators=[DataRequired()], defaul...
33.090909
86
0.725275
43
364
6.116279
0.72093
0.08365
0
0
0
0
0
0
0
0
0
0.003236
0.151099
364
10
87
36.4
0.847896
0
0
0
0
0
0.129121
0
0
0
0
0
0
1
0
false
0
0.375
0
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e5c3e62678dbb0bb1886c915205be5106e4dd85e
14,232
py
Python
boxuegu/apps/users/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
1
2019-06-13T10:08:25.000Z
2019-06-13T10:08:25.000Z
boxuegu/apps/users/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
null
null
null
boxuegu/apps/users/views.py
libin-c/bxg
c509a5b39bc3f3f34ad9d7fbfb61a63d2f67bc23
[ "MIT" ]
null
null
null
import re from datetime import datetime from django.conf import settings from django.contrib.auth import authenticate from django.contrib.auth import login, logout from django.contrib.auth.mixins import LoginRequiredMixin from django.core.paginator import Paginator from django.shortcuts import render, redirect from dj...
37.851064
129
0.573004
1,414
14,232
5.630835
0.159123
0.043708
0.069204
0.019342
0.645818
0.590932
0.553127
0.505903
0.505401
0.436574
0
0.006875
0.315275
14,232
375
130
37.952
0.810159
0.17025
0
0.493506
0
0.004329
0.124989
0.014995
0
0
0
0
0
1
0.077922
false
0.108225
0.08658
0
0.380952
0.004329
0
0
0
null
0
0
0
0
0
0
0
0
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
e5c6c2a8383d2298120de7858219a7e84f40b077
886
py
Python
client_scripts/register.py
pedro-carmine/networking-monitoring-raspberry
c2db89b1271c70cc44b14f99cc8f655dd93005c4
[ "MIT" ]
null
null
null
client_scripts/register.py
pedro-carmine/networking-monitoring-raspberry
c2db89b1271c70cc44b14f99cc8f655dd93005c4
[ "MIT" ]
null
null
null
client_scripts/register.py
pedro-carmine/networking-monitoring-raspberry
c2db89b1271c70cc44b14f99cc8f655dd93005c4
[ "MIT" ]
null
null
null
import socket import getpass import psycopg2 def get_ip_address(): s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(("8.8.8.8", 80)) return s.getsockname()[0] hostname = socket.gethostname() user = getpass.getuser() model = input("Raspberry Pi model: ") location = input("Raspberry Pi locatio...
27.6875
118
0.674944
116
886
5.112069
0.508621
0.010118
0.080944
0
0
0
0
0
0
0
0
0.012346
0.177201
886
32
119
27.6875
0.801097
0
0
0
0
0.037037
0.295378
0
0
0
0
0
0
1
0.037037
false
0.074074
0.111111
0
0.185185
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
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
e5c81d189050722a5e64c456e9e2948e1ed76765
853
py
Python
bot/src/utils/rt_timer.py
SlenderCylinder/pomoji
50a11b969faff28d55b0d6aef48a7f0f2888b66a
[ "MIT" ]
1
2021-10-02T18:27:07.000Z
2021-10-02T18:27:07.000Z
bot/src/utils/rt_timer.py
SlenderCylinder/pomoji
50a11b969faff28d55b0d6aef48a7f0f2888b66a
[ "MIT" ]
null
null
null
bot/src/utils/rt_timer.py
SlenderCylinder/pomoji
50a11b969faff28d55b0d6aef48a7f0f2888b66a
[ "MIT" ]
null
null
null
import random import time as t from discord import Embed, Colour from discord.ext import commands from src.session import Session from src.session import session_manager, session_controller, session_messenger from src.utils import msg_builder from configs import user_messages as u_msg from asyncio import sleep ...
42.65
137
0.758499
121
853
5.173554
0.371901
0.063898
0.071885
0.086262
0.476038
0.316294
0.316294
0.316294
0.316294
0.316294
0
0
0.159437
853
19
138
44.894737
0.873082
0
0
0.117647
0
0
0.165468
0.093525
0
0
0
0
0
1
0
false
0
0.588235
0
0.588235
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e5cd1bae051862f520d877f2d7804c76cb97c3c9
1,853
py
Python
orm/user.py
phenopolis/phenopolis
4750858f68b99dc1d60f24cd7f1c27a1b6aa12ca
[ "MIT" ]
24
2017-03-22T12:05:39.000Z
2021-01-02T19:27:36.000Z
orm/user.py
phenopolis/phenopolis
4750858f68b99dc1d60f24cd7f1c27a1b6aa12ca
[ "MIT" ]
89
2017-02-19T17:54:48.000Z
2022-01-24T11:14:55.000Z
orm/user.py
phenopolis/phenopolis
4750858f68b99dc1d60f24cd7f1c27a1b6aa12ca
[ "MIT" ]
3
2017-03-13T13:23:12.000Z
2019-12-13T21:44:09.000Z
from flask import jsonify import lookups from os import listdir, chdir from os.path import isfile, join import pymongo from collections import defaultdict, Counter class User(object): def __init__(self, user, user_db, groups=[], email='', affiliation=''): User.db=user_db data=User.db.users.find_on...
34.962264
119
0.632488
234
1,853
4.722222
0.376068
0.038009
0.046154
0.057014
0.206335
0.142986
0.142986
0.142986
0.142986
0.142986
0
0.006438
0.245548
1,853
52
120
35.634615
0.783977
0.038856
0
0.285714
0
0
0.147783
0
0
0
0
0
0
1
0.163265
false
0.102041
0.122449
0
0.408163
0.020408
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e5ce4fe9d1fe8571c3a5c42cf45e1107ab6a848c
3,554
py
Python
final_project/main/views/courses_views.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/main/views/courses_views.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
final_project/main/views/courses_views.py
W7SP/project_defense
550152bd82998333444ace099c47feffffb6c3ab
[ "MIT" ]
null
null
null
from django.contrib.auth import mixins as auth_mixins from django.http import HttpResponse from django.urls import reverse_lazy from django.views import generic as views from django.views.decorators.cache import cache_page from final_project.accounts.models import Profile from final_project.main.models import Courses ...
37.410526
120
0.699775
438
3,554
5.557078
0.26484
0.049712
0.048891
0.032868
0.413722
0.303615
0.231306
0.231306
0.21857
0.181594
0
0.001397
0.194429
3,554
94
121
37.808511
0.84876
0.063309
0
0.242424
0
0
0.143631
0.039747
0
0
0
0
0
1
0.075758
false
0
0.121212
0
0.712121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
e5d5e2286d37c39de9d12930655e18e9b1605014
1,151
py
Python
src/analysis/podcasts.py
Aryan20/podcatcher
09712725fcc1fd54f1af6feaaf565ce139675143
[ "MIT" ]
3
2021-08-12T03:31:31.000Z
2021-12-09T10:51:35.000Z
src/analysis/podcasts.py
Aryan20/podcatcher
09712725fcc1fd54f1af6feaaf565ce139675143
[ "MIT" ]
34
2021-08-09T02:05:43.000Z
2022-03-12T01:06:21.000Z
src/analysis/podcasts.py
Aryan20/podcatcher
09712725fcc1fd54f1af6feaaf565ce139675143
[ "MIT" ]
3
2021-08-12T00:38:13.000Z
2022-01-13T10:51:22.000Z
import json import pandas as pd from config import config from elastic import Elastic from elastic.definitions import INDEX from vocabulary import MULTILINGUAL from constants import STREAM_TYPE, CHANNEL_TYPE from .cache import update_streams_cache, update_channels_cache # Load block list with open(config["SAFE_LIST"],...
32.885714
84
0.730669
154
1,151
5.253247
0.396104
0.074166
0.051916
0.059333
0
0
0
0
0
0
0
0
0.165074
1,151
34
85
33.852941
0.841831
0.112076
0
0
0
0
0.100394
0
0
0
0
0
0
1
0.083333
false
0
0.333333
0.041667
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
e5da592712538ecd32acc3b41dd3b3fe6352c1b5
1,069
py
Python
tests/a_unit/test_00_registry.py
JamesDougharty/aiorethink
5c2031b50e98e4171c17e7e2a6d4250af27b9318
[ "MIT" ]
8
2016-06-05T18:01:23.000Z
2018-09-14T15:45:49.000Z
tests/a_unit/test_00_registry.py
JamesDougharty/aiorethink
5c2031b50e98e4171c17e7e2a6d4250af27b9318
[ "MIT" ]
null
null
null
tests/a_unit/test_00_registry.py
JamesDougharty/aiorethink
5c2031b50e98e4171c17e7e2a6d4250af27b9318
[ "MIT" ]
4
2017-05-29T12:59:37.000Z
2019-11-11T15:31:24.000Z
import pytest import aiorethink from aiorethink.registry import registry class Dummy: pass class Dummy2: pass def test_register(aiorethink_session): registry.register("Dummy", Dummy) assert "Dummy" in registry assert registry["Dummy"] == Dummy assert len(registry) == 1 for name in regis...
23.755556
54
0.704397
121
1,069
6.14876
0.231405
0.094086
0.134409
0.133065
0.383065
0.383065
0.325269
0.188172
0.188172
0.188172
0
0.012702
0.189897
1,069
44
55
24.295455
0.84642
0
0
0.15625
0
0
0.062675
0
0
0
0
0
0.3125
1
0.125
false
0.0625
0.09375
0
0.28125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
e5e08138834205b35328595f9eda7d631fb1593e
942
py
Python
mtp_api/apps/transaction/migrations/0035_transaction_log_to_credit_log_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
5
2016-01-05T12:21:35.000Z
2020-10-28T17:06:02.000Z
mtp_api/apps/transaction/migrations/0035_transaction_log_to_credit_log_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
209
2015-06-12T09:39:41.000Z
2022-03-21T16:01:19.000Z
mtp_api/apps/transaction/migrations/0035_transaction_log_to_credit_log_conversion.py
ministryofjustice/mtp-api
b1c34c29e4aa9f48598cb060abe1368ae7686e0b
[ "MIT" ]
1
2021-04-11T06:19:23.000Z
2021-04-11T06:19:23.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.4 on 2016-05-03 14:32 from __future__ import unicode_literals from django.db import migrations def convert_to_credit_logs(apps, schema_editor): TransactionLog = apps.get_model('transaction', 'Log') CreditLog = apps.get_model('credit', 'Log') for transacti...
28.545455
65
0.646497
102
942
5.696078
0.54902
0.144578
0.051635
0.065404
0
0
0
0
0
0
0
0.051282
0.254777
942
32
66
29.4375
0.776353
0.071125
0
0
1
0
0.114679
0.068807
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.26087
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e5f274cffc7df6c1b75666fcf73aa48e5ca43865
5,851
py
Python
docs/markdown_generator.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
docs/markdown_generator.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
docs/markdown_generator.py
nbk905/mlapp
af650a8a302959674dd5a1bc6d15e30e90abf227
[ "Apache-2.0" ]
null
null
null
import os import re # This script will go over the modules listed in libraries and generates an md file with all docstrings for each one of # modules using the third party library - pydocmd. # It then does some editing on the file so it shows nicely in github's wiki. # notice that pydoc will only list the outermost de...
37.748387
120
0.523842
679
5,851
4.421208
0.312224
0.026649
0.019987
0.019987
0.135243
0.091606
0.022652
0
0
0
0
0.006748
0.316185
5,851
154
121
37.993506
0.743564
0.392924
0
0.236111
1
0.027778
0.119068
0.049756
0.013889
0
0
0
0
1
0.027778
false
0
0.027778
0
0.069444
0
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