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
73be84b001c712077d86afa0f8fb09e92373f9b7
228
py
Python
application/apps.py
yisangwu/awesome
c80501ee24e04f6b82d619b9a4343d6d81001b1f
[ "Apache-2.0" ]
1
2020-04-09T02:43:46.000Z
2020-04-09T02:43:46.000Z
application/apps.py
yisangwu/awesome
c80501ee24e04f6b82d619b9a4343d6d81001b1f
[ "Apache-2.0" ]
null
null
null
application/apps.py
yisangwu/awesome
c80501ee24e04f6b82d619b9a4343d6d81001b1f
[ "Apache-2.0" ]
null
null
null
from django.apps import AppConfig class ApplicationConfig(AppConfig): name = 'application' DB_APP_TABLE_PRE = 'app_' DB_APP_LABEL = 'application' # 过滤的UID EXPECT_ID_LIST = [2, 4, 5, 7, 8, 9, 10]
20.727273
44
0.640351
30
228
4.6
0.833333
0.072464
0
0
0
0
0
0
0
0
0
0.047337
0.258772
228
10
45
22.8
0.769231
0.026316
0
0
0
0
0.12381
0
0
0
0
0
0
1
0
false
0
0.166667
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
73bfc3b285a90b0576558a61df0b1d71afba8664
2,211
py
Python
client2.py
ngocphucck/elgamal-and-peer2peer-communication
71148b4a6cec73043d54c69f9a3e2a6bc0ca0d31
[ "MIT" ]
2
2022-01-14T04:49:35.000Z
2022-01-14T04:51:00.000Z
client2.py
ngocphucck/elgamal-and-peer2peer-communication
71148b4a6cec73043d54c69f9a3e2a6bc0ca0d31
[ "MIT" ]
null
null
null
client2.py
ngocphucck/elgamal-and-peer2peer-communication
71148b4a6cec73043d54c69f9a3e2a6bc0ca0d31
[ "MIT" ]
null
null
null
import socket import sys import threading import elgamal numBits = 32 keyOne = elgamal.generate_keys(iNumBits=numBits, iConfidence=1000) privKeyB = keyOne["privateKey"] pubKeyB = keyOne["publicKey"] print(f"Public Key: {pubKeyB.p} {pubKeyB.g} {pubKeyB.h}") # ----------------------------------------------------------...
29.48
111
0.641339
301
2,211
4.415282
0.335548
0.022573
0.022573
0.015049
0.267871
0.246802
0.173062
0.173062
0.173062
0.173062
0
0.039488
0.15242
2,211
74
112
29.878378
0.669691
0.258254
0
0.116279
1
0
0.27788
0.05114
0
0
0
0
0
1
0.023256
false
0
0.093023
0
0.116279
0.255814
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
73c025e8dbd1d588488bade173f4d50352d74b07
1,346
py
Python
usuario/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
usuario/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
1
2021-06-02T00:21:09.000Z
2021-06-02T00:21:09.000Z
usuario/forms.py
ricardosmbr/smartcon
6f6090b586e717b38066c20a7d620c4abae0a915
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.forms import UserCreationForm from django.contrib.auth import get_user_model from sistema.mail import send_mail_template from sistema.utils import generate_hash_key from usuario.models import PasswordReset User = get_user_model() class PasswordResetForm(forms.Form): ...
26.392157
74
0.748886
183
1,346
5.393443
0.371585
0.045593
0.048632
0.06079
0.213779
0.085106
0.085106
0.085106
0.085106
0
0
0
0.13373
1,346
50
75
26.92
0.846484
0
0
0.25
0
0
0.107727
0.017831
0
0
0
0
0
1
0.075
false
0.1
0.15
0
0.425
0
0
0
0
null
0
0
0
0
0
0
0
0
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
73c905438556ee6c3965cb86a34db649596f93a8
483
py
Python
backend/server/apps/tms/migrations/0002_auto_20210126_0800.py
nrupeshsurya/psd
523694a879d6f1c92071528ced4c5c4a346566a7
[ "MIT" ]
null
null
null
backend/server/apps/tms/migrations/0002_auto_20210126_0800.py
nrupeshsurya/psd
523694a879d6f1c92071528ced4c5c4a346566a7
[ "MIT" ]
null
null
null
backend/server/apps/tms/migrations/0002_auto_20210126_0800.py
nrupeshsurya/psd
523694a879d6f1c92071528ced4c5c4a346566a7
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2021-01-26 08:00 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('tms', '0001_initial'), ] operations = [ migrations.AlterField( model_name='ts2pstransfer', name='sub_type', ...
25.421053
155
0.585921
60
483
4.666667
0.683333
0.042857
0.042857
0
0
0
0
0
0
0
0
0.061972
0.26501
483
18
156
26.833333
0.726761
0.089027
0
0
1
0
0.26484
0
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
73c9c7dbd80c094c6932469c1418761d70a2131d
6,891
py
Python
aco/ant_colony.py
PelayoChoya/ACO_path_planning
492a35508b59ba9b97f86c80cb839c80391549e6
[ "MIT" ]
39
2017-12-12T08:28:14.000Z
2021-11-30T06:43:57.000Z
aco/ant_colony.py
PelayoChoya/ACO_path_planning
492a35508b59ba9b97f86c80cb839c80391549e6
[ "MIT" ]
1
2017-12-08T11:45:35.000Z
2020-08-09T10:09:13.000Z
aco/ant_colony.py
PelayoChoya/ACO_path_planning
492a35508b59ba9b97f86c80cb839c80391549e6
[ "MIT" ]
10
2018-05-10T08:03:13.000Z
2022-03-20T08:09:15.000Z
#!/usr/bin/env python import numpy as np class AntColony: ''' Class used for handling the behaviour of the whole ant colony ''' class Ant: ''' Class used for handling the ant's individual behaviour ''' def __init__(self, start_node_pos, final_node_pos): ...
36.654255
129
0.557684
823
6,891
4.483597
0.210207
0.029268
0.030352
0.01626
0.120596
0.058537
0.026558
0.026558
0.026558
0
0
0.005242
0.363227
6,891
187
130
36.850267
0.835688
0.087941
0
0.064815
0
0
0.025296
0
0
0
0
0
0
0
null
null
0
0.009259
null
null
0.009259
0
0
0
null
0
0
0
0
0
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
73cfadcc1cb0870e6b97cd6d0e807fffe2be2e75
3,230
py
Python
test.py
bailingnan/PyTorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
8
2020-08-05T13:26:15.000Z
2022-02-02T15:36:25.000Z
test.py
bailingnan/Pytorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
null
null
null
test.py
bailingnan/Pytorch-Template
c81b424cdce2a0093425aed94c61a2679641310e
[ "MIT" ]
10
2020-08-05T13:23:03.000Z
2022-03-12T07:24:34.000Z
""" tricks: 1.torch-optimizer:实现了最新的一些优化器. 2.numba:import numba as nb,纯python或numpy加速,加@nb.njit或@nb.jit(nopython=True) 3.swifter:df.apply()→·df.swifter.apply(),加速pandas 4.cupy:1000万以上数据更快 5.modin:import modin.pandas as mdpd,用mdpd代替pd即可,加速pandas,加载数据和查询数据更快,统计方法pandas更快 """ import os import sys import argparse import ti...
31.666667
82
0.695975
453
3,230
4.825607
0.439294
0.018298
0.031107
0.026075
0.035682
0.026532
0.026532
0
0
0
0
0.011304
0.178328
3,230
101
83
31.980198
0.811605
0.295975
0
0
0
0
0.086414
0.01069
0
0
0
0
0
1
0.016129
false
0
0.306452
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
73d0590728aeb0065fd4565aedf98dde980abda0
4,533
py
Python
utils/db_util.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
10
2020-07-30T14:46:43.000Z
2021-11-16T12:04:01.000Z
utils/db_util.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
utils/db_util.py
HyokaChen/DailyNewsSpider
ea70c69fb4cf10130a45e00a148246525571c013
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @File : db_util.py @Time : 2019-04-16 21:45 @Author : Empty Chan @Contact : chen19941018@gmail.com @Description: @License : (C) Copyright 2016-2017, iFuture Corporation Limited. """ # from gevent import monkey # monkey.patch_all() from pymon...
33.330882
119
0.463269
422
4,533
4.744076
0.383886
0.04995
0.064935
0.084915
0.148851
0.148851
0.11988
0.11988
0.11988
0.11988
0
0.025566
0.395985
4,533
136
120
33.330882
0.705625
0.647695
0
0
0
0
0.063673
0.014745
0
0
0
0
0
1
0.081081
false
0.054054
0.081081
0
0.297297
0
0
0
0
null
0
0
0
0
0
0
0
0
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
73d128f6678f884816de1ebf8c9a7abaf3961a19
842
py
Python
app/libs/httper.py
wnz27/fisher
3bf51ac4b89770276b6c44aa2250b7e7268c1a3a
[ "MIT" ]
null
null
null
app/libs/httper.py
wnz27/fisher
3bf51ac4b89770276b6c44aa2250b7e7268c1a3a
[ "MIT" ]
null
null
null
app/libs/httper.py
wnz27/fisher
3bf51ac4b89770276b6c44aa2250b7e7268c1a3a
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- # Create by 27 # @Time : 2020/2/21 22:45 __author__ = '27' ''' 使用python发送http请求的两个方法: 1、urllib 2、requests (推荐) 小原则: 对于外部获取的数据,如果出现异常,最好不要抛出来,而是应该默认值处理。 ''' import requests class HTTP: # python3中写与不写(object)没有区别 @staticmethod def get(url, return_json=True): r = requests.get(url...
24.057143
73
0.541568
92
842
4.826087
0.554348
0.112613
0.108108
0.058559
0.072072
0
0
0
0
0
0
0.045372
0.345606
842
34
74
24.764706
0.760436
0.414489
0
0
0
0
0.005333
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
73dbe7f5ec5fede1bf663243d92f6a3a977396a1
3,378
py
Python
amazon_crawler/amazon_crawler/pipelines.py
bobibi/AmazonCrawler
e5293cd2079bac70622c9046fdddb9859834f987
[ "MIT" ]
null
null
null
amazon_crawler/amazon_crawler/pipelines.py
bobibi/AmazonCrawler
e5293cd2079bac70622c9046fdddb9859834f987
[ "MIT" ]
null
null
null
amazon_crawler/amazon_crawler/pipelines.py
bobibi/AmazonCrawler
e5293cd2079bac70622c9046fdddb9859834f987
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: http://doc.scrapy.org/en/latest/topics/item-pipeline.html import amazon_crawler.mysql_helper as db from scrapy import log class AmazonCrawlerPipeline(object): def process_item(self,...
38.827586
89
0.572232
409
3,378
4.616137
0.271394
0.03178
0.050847
0.060381
0.358051
0.324153
0.275424
0.133475
0.133475
0.133475
0
0.006063
0.316459
3,378
86
90
39.27907
0.811607
0.076377
0
0.283582
0
0
0.126316
0
0
0
0
0
0
0
null
null
0
0.029851
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
73dd7d5af3d6d8ed792ec5e88f7d1740f40cfa12
1,176
py
Python
share/mdnjs/tohtml.py
racker/zeroclickinfo-fathead
600fdf04fbf47b4035cc5451f245c87979446754
[ "Apache-2.0" ]
1
2021-01-05T16:48:23.000Z
2021-01-05T16:48:23.000Z
share/mdnjs/tohtml.py
yanirs/zeroclickinfo-fathead
c06003560ef3368da5857df301938aad549a7d6b
[ "Apache-2.0" ]
null
null
null
share/mdnjs/tohtml.py
yanirs/zeroclickinfo-fathead
c06003560ef3368da5857df301938aad549a7d6b
[ "Apache-2.0" ]
1
2016-06-12T06:12:02.000Z
2016-06-12T06:12:02.000Z
""" Generate a quick HTML dump of a Fathead output.txt """ import csv from parse import FatWriter HTML = """ <meta http-equiv='Content-Type' content='text/html; charset=utf-8'> <style> body {{ font-family: 'Helvetica Neue', 'Segoe UI', sans-serif; font-size: 12px; }} .block {{ margin: 40px ...
20.275862
72
0.606293
154
1,176
4.564935
0.61039
0.034139
0.051209
0
0
0
0
0
0
0
0
0.022388
0.202381
1,176
57
73
20.631579
0.727079
0.042517
0
0.14
1
0.02
0.588183
0.078782
0
0
0
0
0
1
0.02
false
0
0.04
0
0.06
0
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
73e7146313d87abdea8ce49af87f7d9aa032e32a
1,554
py
Python
yo_fluq_ds__tests/test_queries/test_misc.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
16
2019-09-26T09:05:42.000Z
2021-02-04T01:39:09.000Z
yo_fluq_ds__tests/test_queries/test_misc.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-10-23T19:01:23.000Z
2020-06-11T09:08:45.000Z
yo_fluq_ds__tests/test_queries/test_misc.py
okulovsky/yo_ds
9e1fa2e7a1b9746c3982afc152c024169fec45ca
[ "MIT" ]
2
2019-09-26T09:05:50.000Z
2019-10-23T18:46:11.000Z
from yo_fluq_ds__tests.common import * import numpy as np class MiscMethodsTests(TestCase): def test_pairwise(self): result = Query.args(1,2,3).feed(fluq.pairwise()).to_list() self.assertListEqual([(1,2),(2,3)],result) def test_strjoin(self): result = Query.args(1,2,3).feed(fluq.strjoi...
34.533333
87
0.627413
238
1,554
3.983193
0.239496
0.066456
0.022152
0.082278
0.535865
0.477848
0.477848
0.448312
0.448312
0.200422
0
0.047049
0.19305
1,554
44
88
35.318182
0.708931
0
0
0.117647
0
0
0.004507
0
0
0
0
0
0.323529
1
0.264706
false
0
0.058824
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
73e9ccba099e67814e3b403134a63fafe616d4ad
2,139
py
Python
articles/manim_articles.py
Solara570/demo-solara
3ce6df1fd68089c427bbd46fb0857e8b76428ca6
[ "MIT" ]
79
2017-09-25T04:42:05.000Z
2022-03-24T06:10:56.000Z
articles/manim_articles.py
Solara570/demo-solara
3ce6df1fd68089c427bbd46fb0857e8b76428ca6
[ "MIT" ]
1
2018-04-13T14:12:00.000Z
2018-04-13T14:12:00.000Z
articles/manim_articles.py
Solara570/demo-solara
3ce6df1fd68089c427bbd46fb0857e8b76428ca6
[ "MIT" ]
13
2017-09-29T03:20:20.000Z
2022-03-07T13:18:16.000Z
#coding=utf-8 from helpers import * import numpy as np from animation.simple_animations import * from animation.transform import * from mobject.svg_mobject import * from mobject.tex_mobject import * from scene import Scene from camera import Camera # Part 1: https://www.bilibili.com/read/cv17444 class ConfigManimBa...
28.144737
77
0.608696
259
2,139
4.826255
0.436293
0.0384
0.024
0.0304
0.0368
0
0
0
0
0
0
0.017744
0.262272
2,139
75
78
28.52
0.774398
0.048621
0
0.109091
0
0
0.069985
0
0
0
0
0
0
0
null
null
0
0.145455
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
73f28531c3d70126e2fe585ae7aefe8da07bae2b
4,397
py
Python
hp-opt/autoencoder-4l/autoencoder4.py
IDEALLab/design_embeddings_idetc_2016
f1a8d2b637707d8e76d3189e970310bf34755058
[ "MIT" ]
1
2018-07-02T12:40:08.000Z
2018-07-02T12:40:08.000Z
hp-opt/autoencoder-4l/autoencoder4.py
IDEALLab/design_embeddings_idetc_2016
f1a8d2b637707d8e76d3189e970310bf34755058
[ "MIT" ]
null
null
null
hp-opt/autoencoder-4l/autoencoder4.py
IDEALLab/design_embeddings_idetc_2016
f1a8d2b637707d8e76d3189e970310bf34755058
[ "MIT" ]
2
2016-10-03T17:56:42.000Z
2021-06-04T13:18:12.000Z
''' Objective function for hyperparameter optimization of an autoencoder with 3 hidden layers Author(s): Wei Chen (wchen459@umd.edu) ''' import pickle import os import sys import ConfigParser import numpy as np from sklearn import preprocessing from sklearn.cross_validation import KFold sys.path.append('../..') from ...
33.564885
135
0.620423
598
4,397
4.334448
0.270903
0.065586
0.027778
0.023148
0.224151
0.172068
0.094136
0.094136
0.094136
0.066358
0
0.024405
0.235843
4,397
130
136
33.823077
0.747024
0.099841
0
0.183908
0
0
0.149724
0.005516
0
0
0
0
0
0
null
null
0
0.091954
null
null
0.057471
0
0
0
null
0
0
0
0
0
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
73f357be1ff815edae6d286b4d434ef4d58d07cb
444
py
Python
examples/receive/report.py
wendlers/rcswitch-fpga
765f23d4c7bec19e6c00207014fce449a849c937
[ "MIT" ]
1
2015-04-21T15:58:38.000Z
2015-04-21T15:58:38.000Z
examples/receive/report.py
wendlers/rcswitch-fpga
765f23d4c7bec19e6c00207014fce449a849c937
[ "MIT" ]
null
null
null
examples/receive/report.py
wendlers/rcswitch-fpga
765f23d4c7bec19e6c00207014fce449a849c937
[ "MIT" ]
null
null
null
#!/usr/bin/python import serial s = serial.Serial(port='/dev/ttyUSB1', baudrate=9600); while True: c = s.read(1) if c == 'A': print("Button A, ON") elif c == 'a': print("Button A, OFF") elif c == 'B': print("Button B, ON") elif c == 'b': print("Button B, OFF") elif c == 'C': print("Button C, ON") ...
17.076923
54
0.542793
75
444
3.213333
0.333333
0.365145
0.116183
0.107884
0.564315
0.448133
0
0
0
0
0
0.017493
0.227477
444
25
55
17.76
0.685131
0.036036
0
0
0
0
0.28103
0
0
0
0
0
0
1
0
false
0
0.05
0
0.05
0.4
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
73fad3682d0527ee65a5821c37f2055d3d443bda
1,050
py
Python
Chapter 11/clemailer.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
Chapter 11/clemailer.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
Chapter 11/clemailer.py
Miillky/automate_the_boring_stuff_with_python
284b074b0738c66f38b54fe0fc5f69b3446e7e43
[ "MIT" ]
null
null
null
#!/usr/bin python3 # Write and send emails from the Command Line. import sys import time from selenium import webdriver from selenium.webdriver.common.keys import Keys recipient = sys.argv[1] subject = sys.argv[2] message = sys.argv[3] # Username Login browser = webdriver.Firefox() browser.get('https://accounts.goo...
23.333333
76
0.787619
164
1,050
4.823171
0.365854
0.070796
0.106195
0.139064
0.318584
0.217446
0.075853
0
0
0
0
0.01046
0.089524
1,050
45
77
23.333333
0.816946
0.125714
0
0.111111
0
0
0.127333
0
0
0
0
0
0
1
0
false
0.111111
0.148148
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
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
73fb7255471f593e94dbb99bf3f8d876056fc1ea
2,114
py
Python
2016/day4/puzzle2.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
2016/day4/puzzle2.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
2016/day4/puzzle2.py
tcmitchell/AdventOfCode
caaac1aa37c999d4804f9f4154bf7033a06e98af
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys import re import collections from string import ascii_lowercase class Room(object): def __init__(self, name, sector_id, checksum): self.name = name self.sector_id = int(sector_id) self.checksum = checksum @staticmethod def cmp_freq(x, y): ...
28.186667
73
0.592715
276
2,114
4.402174
0.373188
0.039506
0.019753
0.027984
0
0
0
0
0
0
0
0.007232
0.280511
2,114
74
74
28.567568
0.791584
0.150899
0
0.038462
0
0
0.026842
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.038462
0
0
0
null
0
0
0
0
0
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
73fbf6cc6b015bbaaac91b0d753810930277b6ac
2,936
py
Python
libs/python/praxyk/result.py
jhallard/Praxyk-Clients
f5ab8f8d9772dde87345953fbc9c11563b62ed7b
[ "MIT" ]
null
null
null
libs/python/praxyk/result.py
jhallard/Praxyk-Clients
f5ab8f8d9772dde87345953fbc9c11563b62ed7b
[ "MIT" ]
null
null
null
libs/python/praxyk/result.py
jhallard/Praxyk-Clients
f5ab8f8d9772dde87345953fbc9c11563b62ed7b
[ "MIT" ]
null
null
null
#!/usr/bin/env python ## @auth John Allard, Nick Church, others ## @date Oct 2015 ## @github https://github.com/jhallard/praxyk ## @license MIT import os, sys, json, requests import subprocess, argparse, getpass import datetime as dt from praxyk_exception import PraxykException from base import PraxykBase # @info ...
39.675676
109
0.588215
364
2,936
4.56044
0.307692
0.054217
0.054819
0.014458
0
0
0
0
0
0
0
0.002966
0.310967
2,936
73
110
40.219178
0.817598
0.143392
0
0
0
0
0.078737
0
0
0
0
0
0
0
null
null
0.018182
0.090909
null
null
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
73fff1f02a64c1f8f845dac07d7c5ee12072ac36
1,461
py
Python
Django-REST-API/core/serializers.py
alekii/easthomes
4b705140a9ed217c0874e1baef615450a81e6d68
[ "MIT" ]
1
2022-03-31T20:45:46.000Z
2022-03-31T20:45:46.000Z
Django-REST-API/core/serializers.py
alekii/easthomes
4b705140a9ed217c0874e1baef615450a81e6d68
[ "MIT" ]
null
null
null
Django-REST-API/core/serializers.py
alekii/easthomes
4b705140a9ed217c0874e1baef615450a81e6d68
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Location, Property, Agent, PropertyImage, AgentImage class LocationSerializer(serializers.ModelSerializer): class Meta: model = Location fields = ['location_name', 'longitude', 'latitude'] class PropertyImageSerializer(serializers.ModelS...
29.816327
115
0.698836
142
1,461
7.056338
0.338028
0.129741
0.06986
0.06986
0.229541
0.229541
0.171657
0.067864
0
0
0
0
0.192334
1,461
48
116
30.4375
0.849153
0
0
0.28125
0
0
0.111644
0
0
0
0
0
0
1
0.0625
false
0
0.0625
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fb4cef6d1cebcfebc18343ae25e412afea18c8c1
4,791
py
Python
selenium/amazonBooks.py
InfiniteRandomVariable/hello-world
6ca4e2f4319c45d5d05b5719f0390f7cb16cca6e
[ "Apache-2.0" ]
null
null
null
selenium/amazonBooks.py
InfiniteRandomVariable/hello-world
6ca4e2f4319c45d5d05b5719f0390f7cb16cca6e
[ "Apache-2.0" ]
null
null
null
selenium/amazonBooks.py
InfiniteRandomVariable/hello-world
6ca4e2f4319c45d5d05b5719f0390f7cb16cca6e
[ "Apache-2.0" ]
null
null
null
from selenium import webdriver from selenium.webdriver.common.keys import Keys from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 from selenium.webdriver.support import expected_conditions as EC # available since 2.26.0 from selenium.common.except...
25.484043
177
0.714882
674
4,791
4.979228
0.320475
0.010429
0.027116
0.033373
0.150179
0.104887
0.064958
0.047378
0.036949
0.036949
0
0.019921
0.151325
4,791
187
178
25.620321
0.80546
0.108328
0
0.078431
0
0
0.166509
0.036608
0
0
0
0
0
0
null
null
0
0.068627
null
null
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fb4d3cd3f8984971483bfa5d4991efd54e643bc4
577
py
Python
redactor/urls.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
redactor/urls.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
redactor/urls.py
sergiorb/askkit
711ce404b5df1d4c7bed51c44fa120b4befefa70
[ "Apache-2.0" ]
null
null
null
try: from django.conf.urls import url, patterns except ImportError: # for Django version less than 1.4 from django.conf.urls.defaults import url, patterns from redactor.views import RedactorUploadView from redactor.forms import FileForm, ImageForm urlpatterns = patterns( '', url(r'^upload/image/(...
27.47619
57
0.708839
72
577
5.541667
0.486111
0.050125
0.070175
0.090226
0.210526
0.210526
0.210526
0.210526
0
0
0
0.004193
0.17331
577
20
58
28.85
0.832285
0.055459
0
0
0
0
0.187845
0.151013
0
0
0
0
0
1
0
false
0
0.333333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fb55b7a33786d0481e037a89201ee45370c9416a
323
py
Python
practice.py
precognition2018/SimpleFaceAPI
1c0c20ff4458159d19a7e1dd3ea575bdad6078a3
[ "Apache-2.0" ]
null
null
null
practice.py
precognition2018/SimpleFaceAPI
1c0c20ff4458159d19a7e1dd3ea575bdad6078a3
[ "Apache-2.0" ]
null
null
null
practice.py
precognition2018/SimpleFaceAPI
1c0c20ff4458159d19a7e1dd3ea575bdad6078a3
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf x = tf.placeholder(tf.float32, [None,3]) x_data = [[1,2,3],[4,5,6]] w = tf.Variable(tf.random_normal([3,2])) b = tf.Variable(tf.random_normal([2,1])) expr = tf.matmul(x,w) + b sess = tf.Session() sess.run(tf.global_variables_initializer()) print(x_data) print(sess.run(w)) print(sess.run(b...
17
43
0.674923
61
323
3.47541
0.47541
0.099057
0.113208
0.169811
0.226415
0
0
0
0
0
0
0.045296
0.111455
323
18
44
17.944444
0.69338
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0.272727
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
fb5f6c6e0402969db4b0580c30636686815998ee
1,981
py
Python
app/django/apps/filament/forms.py
aoirint/Mnemosyne
1b08aa827e4b74c24ec24887bce4bd0b50ce7b64
[ "MIT" ]
null
null
null
app/django/apps/filament/forms.py
aoirint/Mnemosyne
1b08aa827e4b74c24ec24887bce4bd0b50ce7b64
[ "MIT" ]
2
2020-11-12T17:12:18.000Z
2020-11-12T17:12:18.000Z
app/django/apps/filament/forms.py
aoirint/Mnemosyne
1b08aa827e4b74c24ec24887bce4bd0b50ce7b64
[ "MIT" ]
null
null
null
from django import forms from filament.models import * class FilamentForm(forms.Form): material = forms.ChoiceField( required=True, choices=FILAMENT_MATERIAL_CHOICES, widget=forms.Select(attrs={ 'class': 'form-control', 'form': 'filament_form', }), ...
28.3
69
0.488137
159
1,981
6.018868
0.308176
0.091954
0.117032
0.175549
0.596656
0.596656
0.596656
0.519331
0.469175
0.469175
0
0.001609
0.372539
1,981
69
70
28.710145
0.768302
0
0
0.573529
0
0
0.214958
0
0
0
0
0
0
1
0
false
0
0.029412
0
0.161765
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
fb5f94ff0a1c891c5e91a508394dad8e677051a3
481
py
Python
core/migrations/0012_auto_20200813_0238.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
922
2017-10-26T13:15:40.000Z
2020-02-05T19:06:13.000Z
core/migrations/0012_auto_20200813_0238.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
109
2017-10-26T14:00:30.000Z
2020-02-05T23:37:11.000Z
core/migrations/0012_auto_20200813_0238.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
87
2017-10-26T13:15:54.000Z
2020-01-25T12:49:46.000Z
# Generated by Django 3.1 on 2020-08-13 02:38 from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ("core", "0011_auto_20200214_1939"), ] operations = [ migrations.AlterField( model_name="note", ...
21.863636
70
0.592516
50
481
5.6
0.74
0.078571
0.135714
0
0
0
0
0
0
0
0
0.089021
0.299376
481
21
71
22.904762
0.74184
0.089397
0
0.133333
1
0
0.08945
0.052752
0
0
0
0
0
1
0
false
0
0.133333
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
fb70e39362d0d98f6d663a917662f4809c21b2d2
668
py
Python
Data/minimap.py
JamesStudd/PythonRPG
3f11158b069f9e7de9af4c75d78b9336dfe59e5f
[ "MIT" ]
null
null
null
Data/minimap.py
JamesStudd/PythonRPG
3f11158b069f9e7de9af4c75d78b9336dfe59e5f
[ "MIT" ]
null
null
null
Data/minimap.py
JamesStudd/PythonRPG
3f11158b069f9e7de9af4c75d78b9336dfe59e5f
[ "MIT" ]
null
null
null
import pygame as pg from Data.images import * pg.init() def draw_minimap(surface, player): pg.draw.rect(surface, pg.Color("black"), (595, 0, 205, 205), 0) surface.blit(pg.transform.scale(player.level.background, (200, 200)), (600,0)) surface.blit(IMAGES['minimap_player'], \ ((600 + ((pla...
39.294118
82
0.601796
94
668
4.148936
0.37234
0.169231
0.164103
0.215385
0.297436
0.297436
0.297436
0.297436
0
0
0
0.066794
0.215569
668
16
83
41.75
0.677481
0
0
0
0
0
0.04491
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.230769
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
fb757a31d8f0dc6513d1c7756ad93a05cf79e4e3
2,905
py
Python
openstack_dashboard/test/integration_tests/pages/keypairpage.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/integration_tests/pages/keypairpage.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/test/integration_tests/pages/keypairpage.py
maofutian/horizon
dab92e7d2f576caea8f81c8e22a516fb45633794
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Hewlett-Packard Development Company, L.P # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2....
37.24359
78
0.698107
366
2,905
5.15847
0.34153
0.064089
0.034958
0.044492
0.372352
0.240466
0.159958
0.122881
0.043432
0
0
0.003548
0.223752
2,905
77
79
37.727273
0.833703
0.215491
0
0.085106
0
0
0.062721
0.036661
0
0
0
0
0
1
0.234043
false
0
0.042553
0.085106
0.489362
0
0
0
0
null
0
0
0
0
0
0
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
fb78d49e1ba38d081cf46966d3dba4f941750a0e
2,481
py
Python
python/math/prime.py
aceway/tools
6c906f93377ab768da2e305303991a6d137a78ad
[ "Apache-2.0" ]
1
2017-09-10T14:53:36.000Z
2017-09-10T14:53:36.000Z
python/math/prime.py
aceway/tools
6c906f93377ab768da2e305303991a6d137a78ad
[ "Apache-2.0" ]
null
null
null
python/math/prime.py
aceway/tools
6c906f93377ab768da2e305303991a6d137a78ad
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import sys def load_prime_file(pf): plist = [] if os.path.isfile(pf): with open(pf, 'r') as rf: for line in rf: plist += [long(n.strip()) for n in line.strip().split("\t")] else: print "it's not a file:", pf return plist def i...
27.263736
76
0.482467
346
2,481
3.32659
0.213873
0.054735
0.057341
0.069505
0.294527
0.199826
0.199826
0.123371
0.091225
0
0
0.021769
0.407497
2,481
90
77
27.566667
0.761224
0.036679
0
0.358025
0
0
0.05111
0
0
0
0
0
0
0
null
null
0
0.024691
null
null
0.08642
0
0
0
null
0
0
0
0
0
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
fb828d47c48b37e4ef18e87e54588b68b6d40f6a
4,145
py
Python
main/serializers.py
Dekatron322/onion
5c3e872efcac7444af02761507d0879cbe8f8e9c
[ "MIT" ]
null
null
null
main/serializers.py
Dekatron322/onion
5c3e872efcac7444af02761507d0879cbe8f8e9c
[ "MIT" ]
null
null
null
main/serializers.py
Dekatron322/onion
5c3e872efcac7444af02761507d0879cbe8f8e9c
[ "MIT" ]
null
null
null
from rest_framework import serializers from django.contrib.auth.models import User, Group from .models import * class NotificationSerializer(serializers.ModelSerializer): class Meta: model = Notification # fields = ('id', 'title', 'description', 'completed') # Shortcut for getting all fie...
30.703704
98
0.690953
410
4,145
6.812195
0.158537
0.128894
0.148228
0.186896
0.768349
0.65879
0.65879
0.595775
0.552453
0.5256
0
0.016408
0.206031
4,145
134
99
30.932836
0.83227
0.15392
0
0.506667
0
0
0.070014
0
0
0
0
0
0
1
0
false
0
0.04
0
0.746667
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
fb842584080eef39a2aa33f9f1881edcf461e53d
388
py
Python
app/models.py
pelucky/Flask-test
12c77bfc5cf9a035ce927b0b7491d57ad3627663
[ "MIT" ]
null
null
null
app/models.py
pelucky/Flask-test
12c77bfc5cf9a035ce927b0b7491d57ad3627663
[ "MIT" ]
null
null
null
app/models.py
pelucky/Flask-test
12c77bfc5cf9a035ce927b0b7491d57ad3627663
[ "MIT" ]
null
null
null
from app import db ROLE_USER = 0 ROLE_ADMIN = 1 class User(db.Model): id = db.Column(db.Integer, primary_key = True) nickname = db.Column(db.String(64), index = True, unique = True) email = db.Column(db.String(120), index = True, unique = True) role = db.Column(db.SmallInteger, default = ROLE_USER) ...
27.714286
68
0.654639
58
388
4.241379
0.534483
0.130081
0.162602
0.130081
0
0
0
0
0
0
0
0.022727
0.206186
388
13
69
29.846154
0.775974
0
0
0
0
0
0.023196
0
0
0
0
0
0
1
0.1
false
0
0.1
0.1
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fb85369867d1b505f5d6514fd31e23601f459e19
816
py
Python
quines/ouroboros.py
binaris/functions-examples
e54a766aa079c2c89348f6b010bac0867423b20a
[ "MIT" ]
8
2019-03-27T00:42:39.000Z
2020-02-05T14:54:57.000Z
quines/ouroboros.py
binaris/functions-examples
e54a766aa079c2c89348f6b010bac0867423b20a
[ "MIT" ]
28
2018-12-06T20:23:00.000Z
2019-06-10T11:32:04.000Z
quines/ouroboros.py
binaris/functions-examples
e54a766aa079c2c89348f6b010bac0867423b20a
[ "MIT" ]
8
2019-04-02T22:45:54.000Z
2021-11-14T12:07:36.000Z
js = """ const quote = String.fromCharCode(34); const newline = String.fromCharCode(10); const marker = quote + quote + quote; const quine = 'js = ' + marker + js + marker + newline + 'py = ' + marker + py + marker + py; exports.handler = async (body, ctx) => { return new ctx.HTTPResponse({ body: Buffer.from(quin...
34
118
0.607843
100
816
4.96
0.26
0.100806
0.078629
0.080645
0.572581
0.572581
0.572581
0.572581
0.572581
0.572581
0
0.018405
0.20098
816
23
119
35.478261
0.742331
0
0
0.521739
0
0.086957
0.716912
0.109069
0
0
0
0
0
1
0.043478
false
0
0
0.043478
0.173913
0
0
0
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
fb867ac621e335950735a264485dcc38750aa3d9
1,448
py
Python
app/modules/frontend/resources.py
ivanklee86/hello-world
109764ddf990d806330c8083ad0bfdccce626be3
[ "MIT" ]
null
null
null
app/modules/frontend/resources.py
ivanklee86/hello-world
109764ddf990d806330c8083ad0bfdccce626be3
[ "MIT" ]
null
null
null
app/modules/frontend/resources.py
ivanklee86/hello-world
109764ddf990d806330c8083ad0bfdccce626be3
[ "MIT" ]
null
null
null
from flask import Blueprint, render_template, request from wtforms import Form, IntegerField, validators from flask_table import Table, Col from app.helpers.requestid import requestid from app.modules.books.models import Book # pylint: disable=invalid-name frontend_blueprint = Blueprint('frontend', __name__, url_prefi...
30.808511
68
0.710635
177
1,448
5.672316
0.350282
0.084661
0.087649
0.092629
0
0
0
0
0
0
0
0
0.147099
1,448
46
69
31.478261
0.812955
0.041436
0
0.081081
0
0
0.104693
0
0
0
0
0
0
1
0.081081
false
0
0.135135
0.027027
0.594595
0.162162
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fb87221b3d7233a055d3a0fd20f2e87ab5efca5e
571
py
Python
diventi/tooltips/migrations/0007_auto_20200612_2150.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
2
2019-06-27T16:00:17.000Z
2020-08-14T07:46:05.000Z
diventi/tooltips/migrations/0007_auto_20200612_2150.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
26
2020-02-15T22:39:35.000Z
2022-02-19T21:09:01.000Z
diventi/tooltips/migrations/0007_auto_20200612_2150.py
flavoi/diven
3173ca3ca3fbedc191b8eab3639a6bceb3c442c4
[ "Apache-2.0" ]
1
2021-11-12T22:30:15.000Z
2021-11-12T22:30:15.000Z
# Generated by Django 2.2.13 on 2020-06-12 19:50 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('ebooks', '0106_auto_20200524_1227'), ('tooltips', '0006_auto_20200612_2140'), ] operations = [ migrations.RemoveField( ...
23.791667
80
0.584939
57
571
5.701754
0.719298
0.055385
0
0
0
0
0
0
0
0
0
0.118519
0.290718
571
23
81
24.826087
0.683951
0.08056
0
0.235294
1
0
0.198853
0.087954
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
fb89c72d000c7dca1b80c1ac52be37ef1512c9b2
349
py
Python
source/interprocedural_analyses/taint/test/integration/starred.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-05-17T23:13:52.000Z
2021-05-17T23:13:52.000Z
source/interprocedural_analyses/taint/test/integration/starred.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-08-16T12:11:37.000Z
2021-08-16T12:11:37.000Z
source/interprocedural_analyses/taint/test/integration/starred.py
rcramblit/pyre-check
fa15d2021ab1bf5b52aae8c09d1520e2b7bcf6c9
[ "MIT" ]
1
2021-02-20T13:09:30.000Z
2021-02-20T13:09:30.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # flake8: noqa from builtins import __test_sink, __test_source def sink(json): __test_sink(json) def test(): query = {"json": __te...
20.529412
65
0.716332
52
349
4.576923
0.634615
0.084034
0
0
0
0
0
0
0
0
0
0.003559
0.194842
349
16
66
21.8125
0.843416
0.518625
0
0
0
0
0.024691
0
0
0
0
0
0
1
0.333333
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fb8a9fe83efc6609436824abda80bf8df47cfbb7
661
py
Python
C8/8.2.py
Triple-Z/Python-Crash-Course
7e59104420f6110e4d60668314264105534016ce
[ "MIT" ]
null
null
null
C8/8.2.py
Triple-Z/Python-Crash-Course
7e59104420f6110e4d60668314264105534016ce
[ "MIT" ]
null
null
null
C8/8.2.py
Triple-Z/Python-Crash-Course
7e59104420f6110e4d60668314264105534016ce
[ "MIT" ]
null
null
null
# 8-3 def make_shirt(size, string): """Make shirt""" print('Size: ' + size + ', String: ' + string) make_shirt('M', 'Hello, World') make_shirt(size='M', string='Hello, World again') # 8-4 def make_shirt(size='L', string='I love Python'): """Make python shirt""" print('Size: ' + size + ', String: ' + ...
23.607143
53
0.642965
93
661
4.451613
0.376344
0.173913
0.125604
0.077295
0.188406
0.188406
0.188406
0.188406
0
0
0
0.010791
0.15885
661
27
54
24.481481
0.733813
0.1059
0
0.142857
0
0
0.268761
0
0
0
0
0
0
1
0.214286
false
0
0
0
0.214286
0.214286
0
0
0
null
0
0
0
0
0
0
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
fb8bfc144ef36a0d4f926e6b570a842f1a7a66ca
2,957
py
Python
backend/corpora/common/utils/db_utils.py
isabella232/corpora-data-portal
09ed3cad3165f8b0db854b76404e0d5d0ea0b7d9
[ "MIT" ]
null
null
null
backend/corpora/common/utils/db_utils.py
isabella232/corpora-data-portal
09ed3cad3165f8b0db854b76404e0d5d0ea0b7d9
[ "MIT" ]
1
2021-02-23T22:56:13.000Z
2021-02-23T22:56:13.000Z
backend/corpora/common/utils/db_utils.py
isabella232/corpora-data-portal
09ed3cad3165f8b0db854b76404e0d5d0ea0b7d9
[ "MIT" ]
null
null
null
import functools import logging import typing from contextlib import contextmanager from sqlalchemy.exc import SQLAlchemyError from .exceptions import CorporaException from ..corpora_orm import Base, DBSessionMaker logger = logging.getLogger(__name__) class DbUtils: """DbUtils as a singleton to avoid creating ...
27.37963
115
0.595536
326
2,957
5.236196
0.328221
0.070885
0.029877
0.036907
0.048623
0
0
0
0
0
0
0
0.317213
2,957
107
116
27.635514
0.845468
0.204599
0
0.065574
0
0
0.007911
0
0
0
0
0
0
1
0.213115
false
0
0.114754
0.016393
0.491803
0
0
0
0
null
0
0
0
0
0
0
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
fb8e524c19ecb96f8502e10ad50581c06ffaa722
1,955
py
Python
epsilon/adminx.py
atlednolispe/blog
d3926e424d544f3e9a3805b16a15072ac6c6a780
[ "MIT" ]
null
null
null
epsilon/adminx.py
atlednolispe/blog
d3926e424d544f3e9a3805b16a15072ac6c6a780
[ "MIT" ]
7
2020-06-05T16:37:46.000Z
2022-03-11T23:11:36.000Z
epsilon/adminx.py
atlednolispe/blog
d3926e424d544f3e9a3805b16a15072ac6c6a780
[ "MIT" ]
null
null
null
import xadmin from django.utils.html import format_html from django.urls import reverse from xadmin.layout import Fieldset, Row from blog.adminx import BaseOwnerAdmin from .models import Post, Category, Tag from .adminforms import PostAdminForm, TagAdminForm class PostAdmin(BaseOwnerAdmin): form = PostAdminFor...
26.780822
74
0.577494
194
1,955
5.670103
0.458763
0.04
0.049091
0.038182
0
0
0
0
0
0
0
0
0.270588
1,955
72
75
27.152778
0.771389
0.159079
0
0
0
0
0.18193
0.019053
0
0
0
0
0
1
0.023256
false
0
0.162791
0.023256
0.604651
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fb9027b835a1152dce2e596e46524b3488755b00
11,133
py
Python
src/plaso/tarzan/lib/pyarrow_hdfs.py
nesfit/pyspark-plaso
4e0680a1a79a5aebfbc7ae983da30841bf984d95
[ "Apache-2.0" ]
2
2020-02-09T01:11:08.000Z
2021-09-17T04:16:31.000Z
src/plaso/tarzan/lib/pyarrow_hdfs.py
nesfit/pyspark-plaso
4e0680a1a79a5aebfbc7ae983da30841bf984d95
[ "Apache-2.0" ]
null
null
null
src/plaso/tarzan/lib/pyarrow_hdfs.py
nesfit/pyspark-plaso
4e0680a1a79a5aebfbc7ae983da30841bf984d95
[ "Apache-2.0" ]
1
2021-03-17T09:47:01.000Z
2021-03-17T09:47:01.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os from pyarrow import HadoopFileSystem, HdfsFile from pyarrow.hdfs import connect from plaso.tarzan.lib.hdfs import Hdfs class PyArrowHdfs(Hdfs): """HDFS driver utilizing PyArrow library.""" fs = None # type: HadoopFileSystem de...
44.178571
137
0.655798
1,377
11,133
5.20915
0.124183
0.035271
0.028998
0.042381
0.537153
0.526558
0.517775
0.504949
0.477903
0.452252
0
0.001202
0.252852
11,133
251
138
44.354582
0.861145
0.531393
0
0.194805
0
0
0.010934
0
0
0
0
0
0
1
0.220779
false
0.012987
0.064935
0
0.467532
0
0
0
0
null
0
0
0
0
0
0
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
fb921433699f803f7d60deed10e7661bf59b4b2a
407
py
Python
demo/person/project/infrastructure/constants/mongo_collections.py
giovannifarlley/ms--fastapi-template
5bbd6903305db07cc18330ec86fb04ca518e9dab
[ "MIT" ]
24
2021-03-07T13:00:35.000Z
2022-02-11T03:41:51.000Z
demo/person/project/infrastructure/constants/mongo_collections.py
giovannifarlley/ms--fastapi-template
5bbd6903305db07cc18330ec86fb04ca518e9dab
[ "MIT" ]
2
2021-05-15T01:05:17.000Z
2021-08-13T13:53:57.000Z
demo/person/project/infrastructure/constants/mongo_collections.py
giovannifarlley/ms--fastapi-template
5bbd6903305db07cc18330ec86fb04ca518e9dab
[ "MIT" ]
4
2021-04-27T12:18:33.000Z
2021-10-03T23:43:23.000Z
import enum class Collections(str, enum.Enum): """ Mongo collections enum set Please add your MongoDb collection to this class Obs: dont change snake_type pattern """ general_collection = "general_collection" person_billing_data = "person_billing_data" physical_person = "ph...
27.133333
56
0.70516
47
407
5.829787
0.574468
0.124088
0.124088
0
0
0
0
0
0
0
0
0
0.228501
407
14
57
29.071429
0.872611
0.272727
0
0
0
0
0.3
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
fb9598e9c6bf9d8639412665e036b2208af1ec74
460
py
Python
CyberProject/CyberUser/migrations/0007_auto_20210219_2044.py
rzhvn1/CyberBet
ed7b9d42a4b6b182540e4252ce9e149233f00da1
[ "MIT" ]
null
null
null
CyberProject/CyberUser/migrations/0007_auto_20210219_2044.py
rzhvn1/CyberBet
ed7b9d42a4b6b182540e4252ce9e149233f00da1
[ "MIT" ]
null
null
null
CyberProject/CyberUser/migrations/0007_auto_20210219_2044.py
rzhvn1/CyberBet
ed7b9d42a4b6b182540e4252ce9e149233f00da1
[ "MIT" ]
null
null
null
# Generated by Django 3.1.6 on 2021-02-19 14:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('CyberUser', '0006_auto_20210219_2041'), ] operations = [ migrations.AlterField( model_name='news', name='published_d...
23
80
0.615217
51
460
5.392157
0.803922
0
0
0
0
0
0
0
0
0
0
0.116418
0.271739
460
19
81
24.210526
0.704478
0.097826
0
0
1
0
0.145278
0.05569
0
0
0
0
0
1
0
false
0
0.076923
0
0.307692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fba7934d84f59875d7901005fd1d86d3fe4d8361
25,096
py
Python
torch_ecg/utils/ecg_arrhythmia_knowledge.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
7
2020-09-29T09:29:18.000Z
2021-04-13T14:22:57.000Z
torch_ecg/utils/ecg_arrhythmia_knowledge.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
null
null
null
torch_ecg/utils/ecg_arrhythmia_knowledge.py
wenh06/torch_ecg
a260bac0b4be8cd84c411874af3337358f135442
[ "MIT" ]
2
2021-04-28T03:13:11.000Z
2021-05-15T14:15:34.000Z
# -*- coding: utf-8 -*- """ knowledge about ECG arrhythmia Standard 12Leads ECG -------------------- Inferior leads: II, III, aVF Lateral leads: I, aVL, V5-6 Septal leads: aVR, V1 Anterior leads: V2-4 ----------------------------------- Chest (precordial) leads: V1-6 Limb leads: I, II, III,...
39.090343
287
0.680268
3,274
25,096
5.194258
0.273366
0.018229
0.023698
0.025403
0.22545
0.165471
0.144302
0.131895
0.097907
0.089557
0
0.072318
0.190588
25,096
641
288
39.151326
0.764338
0.09113
0
0.329114
0
0.063291
0.786433
0.102123
0
0
0
0
0
1
0
false
0.001808
0.007233
0
0.007233
0
0
0
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
fbaaaff91416cf6067aea07e343a2571a07d4430
3,218
py
Python
tests/help/test_hicting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
1
2021-04-07T19:10:28.000Z
2021-04-07T19:10:28.000Z
tests/help/test_hicting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
4
2021-03-30T20:50:19.000Z
2022-01-06T17:16:18.000Z
tests/help/test_hicting.py
pfeairheller/hio
44669adb62c81357491f9f6157312bc1313b56cf
[ "Apache-2.0" ]
3
2021-04-08T19:35:36.000Z
2021-06-03T13:39:05.000Z
# -*- encoding: utf-8 -*- """ tests.help.test_helping module """ import pytest from hio.help import hicting def test_hict(): """ Test Hict header case insensitive keyed multiple value dict """ from multidict import MultiDict from collections.abc import MutableMapping h = hicting.Hict() ...
22.503497
90
0.477937
505
3,218
3.019802
0.126733
0.110164
0.017705
0.023607
0.601311
0.563279
0.522623
0.517377
0.421639
0.390164
0
0.042277
0.257613
3,218
142
91
22.661972
0.596065
0.045059
0
0.282353
0
0.035294
0.100798
0
0
0
0
0
0.611765
1
0.023529
false
0
0.070588
0
0.094118
0
0
0
0
null
0
0
0
0
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
fbb5b8591cce838d1a15a93e2afa395d01c48cfb
1,934
py
Python
util/dataloaders.py
bcm628/pytorch_DANN
454d5a52f7ae912881db50a19856d1d91ced59ed
[ "MIT" ]
null
null
null
util/dataloaders.py
bcm628/pytorch_DANN
454d5a52f7ae912881db50a19856d1d91ced59ed
[ "MIT" ]
null
null
null
util/dataloaders.py
bcm628/pytorch_DANN
454d5a52f7ae912881db50a19856d1d91ced59ed
[ "MIT" ]
null
null
null
import torch from torch.utils.data import DataLoader from data.iemocap import MultimodalDataset from data.mosei import MoseiNewDataset from train import params #TODO: make batch size so that the number of samples is divisible by it ###attempt 1: based on FMT code### def get_train_loader(dataset): if dataset == '...
29.30303
71
0.578077
204
1,934
5.303922
0.259804
0.058226
0.04159
0.060998
0.621996
0.621996
0.621996
0.468577
0.468577
0.468577
0
0.003175
0.348501
1,934
65
72
29.753846
0.855556
0.050672
0
0.617021
0
0
0.027337
0
0
0
0
0.015385
0
1
0.06383
false
0
0.106383
0
0.234043
0
0
0
0
null
0
0
0
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
fbb8032b28e2c621a5968e447fe72ce2112c353c
2,408
py
Python
credentialstore/api/admin.py
ToxicSamN/python-credential
cb8c55aaddb185ec5f96e0a91895c3ea8e065320
[ "Apache-2.0" ]
null
null
null
credentialstore/api/admin.py
ToxicSamN/python-credential
cb8c55aaddb185ec5f96e0a91895c3ea8e065320
[ "Apache-2.0" ]
null
null
null
credentialstore/api/admin.py
ToxicSamN/python-credential
cb8c55aaddb185ec5f96e0a91895c3ea8e065320
[ "Apache-2.0" ]
null
null
null
# /api/admin.py from django.contrib import admin from .models import SecretModel, ClientModel from .pystuffing.secret import Secret class SecretAdminModel(admin.ModelAdmin): """ Custom ModelAdmin for the secrets model. This is so it can use a customized template and custom change_list table """ #...
33.915493
112
0.649917
314
2,408
4.907643
0.39172
0.042829
0.027255
0.040234
0.164828
0.137573
0.089552
0.041531
0.041531
0
0
0.000577
0.2799
2,408
70
113
34.4
0.88812
0.444352
0
0.08
0
0
0.071799
0.050173
0
0
0
0
0
1
0.08
false
0.12
0.12
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
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
fbbc334c8f7619ce2fd4452b7bc5831a0ceafb7f
10,439
py
Python
maps/models.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
maps/models.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
11
2020-03-24T15:29:46.000Z
2022-03-11T23:14:48.000Z
maps/models.py
stewardshiptools/stewardshiptools
ee5d27e7b0d5d4947f34ad02bdf63a06ad0a5c3e
[ "MIT" ]
null
null
null
import json from django.db import models from model_utils.managers import InheritanceManager from django_hstore import hstore from django.contrib.contenttypes.models import ContentType from colorful.fields import RGBColorField from geoinfo.models import GISLayerMaster import maps class LeafletMap(models.Model): ...
34.338816
150
0.655618
1,171
10,439
5.719044
0.270709
0.027475
0.032253
0.043004
0.368523
0.312229
0.298492
0.226967
0.174257
0.154099
0
0.007237
0.245522
10,439
303
151
34.452145
0.843068
0.091388
0
0.347826
0
0.009662
0.239876
0.00714
0
0
0
0.0033
0
1
0.091787
false
0.004831
0.038647
0.082126
0.555556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fbc84edb950e6ef413a41dda854e3dcc83465953
1,407
py
Python
middileware/iis/ms15_034.py
xin053/PocCollect
e13e137901bc91ae44465a1c9d88a9961dbab6bf
[ "MIT" ]
340
2016-06-21T08:05:57.000Z
2022-03-13T02:23:34.000Z
middileware/iis/ms15_034.py
xin053/PocCollect
e13e137901bc91ae44465a1c9d88a9961dbab6bf
[ "MIT" ]
1
2016-08-30T07:15:30.000Z
2016-08-30T07:15:30.000Z
middileware/iis/ms15_034.py
xin053/PocCollect
e13e137901bc91ae44465a1c9d88a9961dbab6bf
[ "MIT" ]
195
2016-06-21T08:06:00.000Z
2022-03-25T00:39:32.000Z
#!/usr/bin/env python # encoding: utf-8 from t import T import re import urllib2,requests,urllib2,json,urlparse class P(T): def __init__(self): T.__init__(self) def verify(self,head='',context='',ip='',port='',productname={},keywords='',hackinfo=''): timeout=3 if int(port) == 443: ...
26.055556
113
0.544421
156
1,407
4.762821
0.544872
0.107672
0.032301
0
0
0
0
0
0
0
0
0.043433
0.312722
1,407
53
114
26.54717
0.724922
0.036247
0
0
0
0
0.153732
0.020695
0
0
0
0
0
0
null
null
0
0.085714
null
null
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fbcd81a5374440f1149479ab3522d05fd6b8f5fa
524
py
Python
website/urls.py
hiperderecho/guachidog
f63dc7138657fb9287b1f75e55da2167ac6f3e79
[ "MIT" ]
1
2018-05-30T23:59:23.000Z
2018-05-30T23:59:23.000Z
website/urls.py
hiperderecho/guachidog
f63dc7138657fb9287b1f75e55da2167ac6f3e79
[ "MIT" ]
null
null
null
website/urls.py
hiperderecho/guachidog
f63dc7138657fb9287b1f75e55da2167ac6f3e79
[ "MIT" ]
null
null
null
import os from django.conf.urls import include, url from django.conf.urls.static import static from django.views.generic import RedirectView THIS_DIR = os.path.dirname(os.path.realpath(__file__)) ROOT_DIR = os.path.dirname(THIS_DIR) # Uncomment the next two lines to enable the admin: from django.contrib import admin ...
29.111111
71
0.753817
79
524
4.898734
0.481013
0.103359
0.072351
0.093023
0
0
0
0
0
0
0
0
0.104962
524
17
72
30.823529
0.82516
0.093511
0
0
0
0
0.124736
0.044397
0
0
0
0
0
1
0
false
0
0.384615
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fbd5860322bb52930dd7967274aa910dd05fc71c
21,055
py
Python
cassandra-analyzer/offline-log-collector/collect_logs.py
Anant/cassandra.vision
7e57c2b23483cdaae0d23d1d02f8c635d936fd3a
[ "Apache-2.0" ]
null
null
null
cassandra-analyzer/offline-log-collector/collect_logs.py
Anant/cassandra.vision
7e57c2b23483cdaae0d23d1d02f8c635d936fd3a
[ "Apache-2.0" ]
null
null
null
cassandra-analyzer/offline-log-collector/collect_logs.py
Anant/cassandra.vision
7e57c2b23483cdaae0d23d1d02f8c635d936fd3a
[ "Apache-2.0" ]
1
2020-12-15T18:29:05.000Z
2020-12-15T18:29:05.000Z
import argparse import os import shutil import yaml import subprocess from pathlib import Path from copy import deepcopy import zipfile import tarfile import fnmatch from datetime import datetime import sys from helper_classes.node import Node import stat # TODO rename to `offline_log_collector_path` project_root_path...
45.182403
302
0.639231
2,693
21,055
4.829558
0.185295
0.009688
0.012686
0.011072
0.161925
0.115101
0.077426
0.052822
0.03483
0.022836
0
0.001101
0.266777
21,055
465
303
45.27957
0.841365
0.318404
0
0.112613
0
0.004505
0.208564
0.057122
0
0
0
0.021505
0
1
0.063063
false
0.004505
0.067568
0
0.175676
0.121622
0
0
0
null
0
0
0
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
fbd7bc6d29e141cc903471cc12f4051cb62fa411
1,147
py
Python
tweets/models.py
Neo945/LetsTweet
b131536e2af9137075e68ac59ec8d5adb41d2279
[ "MIT" ]
null
null
null
tweets/models.py
Neo945/LetsTweet
b131536e2af9137075e68ac59ec8d5adb41d2279
[ "MIT" ]
null
null
null
tweets/models.py
Neo945/LetsTweet
b131536e2af9137075e68ac59ec8d5adb41d2279
[ "MIT" ]
null
null
null
from django.db import models from django.conf import settings import random User = settings.AUTH_USER_MODEL class TweetLike(models.Model): user = models.ForeignKey(User,on_delete=models.CASCADE) tweet = models.ForeignKey('Tweet',on_delete=models.CASCADE) timestamp = models.DateTimeField(auto_now_add=True) ...
31.861111
95
0.68701
145
1,147
5.303448
0.406897
0.083225
0.072822
0.081925
0.226268
0.226268
0.226268
0.117035
0
0
0
0.00432
0.192677
1,147
35
96
32.771429
0.826134
0.119442
0
0.181818
0
0
0.028971
0
0
0
0
0
0
1
0.090909
false
0
0.136364
0.090909
0.863636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
fbdb056a67b157d163194ba31e0b3d4832a58d76
327
py
Python
project0001api/follower/serializers.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
project0001api/follower/serializers.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
project0001api/follower/serializers.py
Hir0v0/SNS-API
7616494ccb59bd94e0999bb40ee576557d2cc4f2
[ "MIT" ]
null
null
null
from rest_framework import serializers from .models import Follower from ..user.serializers import UserByFollowerSerializer class FollowersListSerializer(serializers.ModelSerializer): follower = UserByFollowerSerializer(many=True, read_only=True) class Meta: model = Follower fields = ('follow...
25.153846
66
0.767584
31
327
8.032258
0.612903
0
0
0
0
0
0
0
0
0
0
0
0.165138
327
12
67
27.25
0.912088
0
0
0
0
0
0.02454
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
fbdfd6b27e607fd18ed182a7ed909a152054808f
656
py
Python
backend/StudentVillage/migrations/0003_studentvillage_templatewashlist.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
backend/StudentVillage/migrations/0003_studentvillage_templatewashlist.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
2
2020-05-02T18:17:44.000Z
2020-05-02T18:18:02.000Z
backend/StudentVillage/migrations/0003_studentvillage_templatewashlist.py
henrikhorluck/tdt4140-washlists
a75c3bc38a3f915eb48cf3e9ecba848f46a2bcaa
[ "MIT" ]
null
null
null
# Generated by Django 3.0.3 on 2020-02-27 22:21 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("Washlist", "0002_auto_20200227_2219"), ("StudentVillage", "0002_auto_20200227_2219"), ] operations = [ ...
25.230769
61
0.585366
64
656
5.859375
0.609375
0.064
0.074667
0.117333
0
0
0
0
0
0
0
0.103982
0.310976
656
25
62
26.24
0.725664
0.068598
0
0
1
0
0.20197
0.116585
0
0
0
0
0
1
0
false
0
0.105263
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fbe0ba08795071fcae9011fed8e8f2e010491029
2,883
py
Python
src/utils.py
charleneeboo/flatland
816287cd4f1a9cf57e2d6258e0b5c0aff77a323a
[ "MIT" ]
9
2020-05-02T15:55:17.000Z
2021-12-30T07:33:50.000Z
src/utils.py
charleneeboo/flatland
816287cd4f1a9cf57e2d6258e0b5c0aff77a323a
[ "MIT" ]
2
2020-02-20T12:41:40.000Z
2021-04-01T10:40:23.000Z
src/utils.py
charleneeboo/flatland
816287cd4f1a9cf57e2d6258e0b5c0aff77a323a
[ "MIT" ]
1
2020-06-03T09:41:59.000Z
2020-06-03T09:41:59.000Z
import numpy as np from flatland.envs.agent_utils import RailAgentStatus from flatland.core.grid.grid_utils import coordinate_to_position, distance_on_rail ''' Function that assigns a priority to each agent in the environment, following a specified criterion e.g. random with all distinct priorities 0..num_agents - 1 In...
31
105
0.682969
399
2,883
4.794486
0.35589
0.025091
0.021955
0.019864
0.046001
0.046001
0.046001
0
0
0
0
0.014878
0.230663
2,883
92
106
31.336957
0.84761
0.363163
0
0.137931
0
0
0.004026
0
0
0
0
0
0
1
0.206897
false
0
0.103448
0
0.551724
0
0
0
0
null
0
0
0
0
0
0
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
836c0c696df8baa00531028c282bb137c5ce34c1
370
py
Python
trainSetGenerate.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
1
2019-06-19T07:28:05.000Z
2019-06-19T07:28:05.000Z
trainSetGenerate.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
null
null
null
trainSetGenerate.py
zhang0peter/PythonCaptchaCnn
4d22dada14d0a4c3608e6651b85fcb14490b28c4
[ "MIT" ]
2
2019-06-19T07:28:06.000Z
2019-09-24T09:38:38.000Z
# -*- coding: utf-8 -*- """ Created on Sat Jun 1 16:21:45 2019 @author: peter """ from singleCaptchaGenerate import generateCaptchaText generateNumber = 10**2 if __name__ == '__main__': for i in range(0, generateNumber): text = generateCaptchaText(save=True) if i % 100 ==0: print("...
20.555556
68
0.618919
47
370
4.702128
0.808511
0
0
0
0
0
0
0
0
0
0
0.071174
0.240541
370
17
69
21.764706
0.715302
0.2
0
0
1
0
0.138889
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
837013fe1d006a3fed219e2d7bd1369218478871
3,446
py
Python
webapi/servidorapi/serializers.py
aecheverria40/proyectomoviles
5eff2b1c935324e07da3fb82a43b00e528d8c7c4
[ "MIT" ]
null
null
null
webapi/servidorapi/serializers.py
aecheverria40/proyectomoviles
5eff2b1c935324e07da3fb82a43b00e528d8c7c4
[ "MIT" ]
null
null
null
webapi/servidorapi/serializers.py
aecheverria40/proyectomoviles
5eff2b1c935324e07da3fb82a43b00e528d8c7c4
[ "MIT" ]
null
null
null
#Importar modelos de la BD from django.contrib.auth.models import User, Group from .models import Alumno, Boleta, Clase, Coordinador, Docente, Escuela, Parcial from django.contrib.auth.models import User #Importar la clase serializers para trabajar con la API from rest_framework import serializers from rest_framework.d...
34.808081
83
0.672664
316
3,446
7.253165
0.398734
0.039267
0.061082
0.122164
0.292321
0.032286
0.032286
0
0
0
0
0
0.22693
3,446
98
84
35.163265
0.86036
0.16657
0
0.173913
0
0
0.204617
0.03148
0
0
0
0
0
1
0.014493
false
0.057971
0.086957
0
0.405797
0.014493
0
0
0
null
0
0
0
0
0
0
0
0
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
837060031255d09ae36a1c815eb92747a97b17e1
1,699
py
Python
findmax.py
prateekchandan/Flight-Delay-Prediction
4330d32657c197fae47cd799b07cd2690154a4f3
[ "Apache-2.0" ]
4
2018-01-11T11:41:26.000Z
2021-03-16T17:50:06.000Z
findmax.py
prateekchandan/Flight-Delay-Prediction
4330d32657c197fae47cd799b07cd2690154a4f3
[ "Apache-2.0" ]
null
null
null
findmax.py
prateekchandan/Flight-Delay-Prediction
4330d32657c197fae47cd799b07cd2690154a4f3
[ "Apache-2.0" ]
4
2017-10-17T16:29:59.000Z
2020-07-08T16:45:32.000Z
#!/usr/bin/env python # # This python file contains script to find the maximum frequency carriers # and origin and destination airports # # Author - Prateek & Nishant # # # After running it on 10^6 random samples the max are # Top 20 carriers : ['WN', 'DL', 'AA', 'UA', 'US', 'NW', 'CO', 'MQ', 'HP', 'OO', 'TW', 'AS', '...
23.273973
163
0.606828
270
1,699
3.811111
0.474074
0.034985
0.046647
0.075802
0.271137
0.271137
0.258503
0.147716
0.116618
0.116618
0
0.02937
0.17834
1,699
72
164
23.597222
0.707736
0.446733
0
0.078947
0
0
0.043478
0
0
0
0
0
0
0
null
null
0
0.078947
null
null
0.078947
0
0
0
null
0
0
0
0
0
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
8374f2f486b74d69db4ba55ee53fe11aa9061071
5,804
py
Python
wxgigo/utils/misc.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
wxgigo/utils/misc.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
wxgigo/utils/misc.py
rfancn/wxgigo
7ed64248e4df037dbb5ff0683f21f458d3f29a0e
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (c) 2016 Ryan Fan Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
34.963855
113
0.588904
728
5,804
4.630495
0.376374
0.026105
0.00712
0.010086
0.053693
0.021359
0.021359
0.021359
0.021359
0.021359
0
0.001253
0.312543
5,804
165
114
35.175758
0.843609
0.095968
0
0.139535
0
0
0.081399
0
0
0
0
0
0
0
null
null
0
0.046512
null
null
0.034884
0
0
0
null
0
0
0
0
0
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
8375daf58e491e59a4f92c31f22af0de8a58e8e1
622
py
Python
spins_halp_line/resources/redis.py
aeturnum/spins_halp_line
c01fdb72ba565eab43278362bcdb8d4417fa26d8
[ "MIT" ]
null
null
null
spins_halp_line/resources/redis.py
aeturnum/spins_halp_line
c01fdb72ba565eab43278362bcdb8d4417fa26d8
[ "MIT" ]
7
2020-12-17T18:59:30.000Z
2020-12-21T22:21:30.000Z
spins_halp_line/resources/redis.py
aeturnum/spins_halp_line
c01fdb72ba565eab43278362bcdb8d4417fa26d8
[ "MIT" ]
null
null
null
import redio # holds the class that manages the player info in redis # todo: Consider using a single coroutine to do all loading and storing of players so that # todo: we can detect if a player is getting race condition'd (i.e. there are two copies of them) # todo: out and they might get squashed def redis_factory()...
21.448276
97
0.707395
97
622
4.43299
0.618557
0.055814
0
0
0
0
0
0
0
0
0
0
0.217042
622
28
98
22.214286
0.882957
0.495177
0
0
0
0
0.058442
0
0
0
0
0.035714
0
1
0.166667
false
0
0.083333
0.083333
0.416667
0
0
0
0
null
0
0
0
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
83791b456373074e1ee032f0a6da19db238e9837
1,506
py
Python
config.py
moonmagian/pyBeiHangClassTable
53b6914471f3ec889f9dffc2f15a2f0b11b72c30
[ "MIT" ]
2
2019-08-28T15:49:33.000Z
2019-09-01T10:31:26.000Z
config.py
moonmagian/pyBeiHangClassTable
53b6914471f3ec889f9dffc2f15a2f0b11b72c30
[ "MIT" ]
null
null
null
config.py
moonmagian/pyBeiHangClassTable
53b6914471f3ec889f9dffc2f15a2f0b11b72c30
[ "MIT" ]
null
null
null
# Edit this file to change settings CONFIG = { # Uncomment the following two lines to set your username and password. # 'userName': '', # 'passWord': '', # The beginDate of the term in %Y-%m-%d # Should be a Monday 'beginDate': '2019-09-02', # 'default' sets whether you want to use the new...
38.615385
74
0.681275
219
1,506
4.684932
0.616438
0.013645
0.019493
0
0
0
0
0
0
0
0
0.029982
0.247012
1,506
38
75
39.631579
0.87478
0.816069
0
0
0
0
0.185484
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
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
837c6cba4c2db4e2d31c08e8c6e930057744bee2
6,232
py
Python
evolutionaryNN.py
divir94/News-Analytics
1fcf2b11e38f9b0c182160dfded7be44d5a7c8bb
[ "Apache-2.0" ]
null
null
null
evolutionaryNN.py
divir94/News-Analytics
1fcf2b11e38f9b0c182160dfded7be44d5a7c8bb
[ "Apache-2.0" ]
null
null
null
evolutionaryNN.py
divir94/News-Analytics
1fcf2b11e38f9b0c182160dfded7be44d5a7c8bb
[ "Apache-2.0" ]
null
null
null
import random, copy from multiprocessing import Pool import test from pybrain.structure import RecurrentNetwork from pybrain.structure import FeedForwardNetwork from pybrain.structure import LinearLayer, SigmoidLayer from pybrain.structure import FullConnection from sklearn import svm import numpy as np import scipy.sp...
38.233129
153
0.629814
803
6,232
4.84807
0.171856
0.02877
0.030054
0.036989
0.23889
0.180324
0.085795
0.072951
0.0673
0.032366
0
0.019545
0.244705
6,232
162
154
38.469136
0.807521
0.044769
0
0.186207
0
0
0
0
0
0
0
0
0
0
null
null
0.006897
0.068966
null
null
0.006897
0
0
0
null
0
0
0
0
0
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
83805e09f54b5779679ffd753da6e0260ca9fcf7
387
py
Python
2017/day4/part1.py
SkullTech/adventofcode-2017
31577666057ab85feb473876fd7b301c8f8f2ef9
[ "MIT" ]
2
2017-12-05T21:18:57.000Z
2017-12-06T05:47:38.000Z
2017/day4/part1.py
SkullTech/adventofcode
31577666057ab85feb473876fd7b301c8f8f2ef9
[ "MIT" ]
null
null
null
2017/day4/part1.py
SkullTech/adventofcode
31577666057ab85feb473876fd7b301c8f8f2ef9
[ "MIT" ]
null
null
null
def solution(inp): data = [row.split() for row in inp.splitlines()] count = 0 for passphrase in data: if len(passphrase) == len(set(passphrase)): count = count + 1 return count def main(): with open('input.txt', 'r') as f: inp = f.read() print('[*] Reading input from input.txt...') print('[*] The soluti...
20.368421
49
0.633075
57
387
4.157895
0.561404
0.092827
0
0
0
0
0
0
0
0
0
0.006329
0.183463
387
18
50
21.5
0.743671
0
0
0
0
0
0.191214
0
0
0
0
0
0
1
0.133333
false
0.133333
0
0
0.2
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
83821f555c6fba1c04349a9d311903056711e33f
1,344
py
Python
recipes/qt-downloader/all/conanfile.py
todorico/conan-center-index
74140fc59fade35a56374453e6b8e6ea8a11ff20
[ "MIT" ]
null
null
null
recipes/qt-downloader/all/conanfile.py
todorico/conan-center-index
74140fc59fade35a56374453e6b8e6ea8a11ff20
[ "MIT" ]
null
null
null
recipes/qt-downloader/all/conanfile.py
todorico/conan-center-index
74140fc59fade35a56374453e6b8e6ea8a11ff20
[ "MIT" ]
null
null
null
import os, sys, subprocess from conan import ConanFile # TODO: remove legacy imports from conans import tools class PipPackageTool: """A simple Python Pip wrapper""" def install(self, packages): subprocess.check_call([sys.executable, "-m", "pip", "install"] + packages) class QtDownloaderConan(Con...
25.846154
82
0.608631
159
1,344
5.081761
0.553459
0.074257
0.044554
0.054455
0.084158
0.084158
0
0
0
0
0
0.018054
0.258185
1,344
51
83
26.352941
0.792377
0.08631
0
0
0
0
0.226415
0.018868
0
0
0
0.019608
0
1
0.147059
false
0
0.088235
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
1
0
0
0
0
0
0
0
0
0
0
1
83860c71332018201e180eae458d2778e0a8fdc2
42,565
py
Python
tests/google/appengine/api/mail_stub_unittest.py
phil-lopreiato/appengine-python-standard
5e2c400a24d299bb86e98f755a6ef510b4e1e0df
[ "Apache-2.0" ]
28
2021-01-06T19:55:21.000Z
2022-03-28T09:41:08.000Z
tests/google/appengine/api/mail_stub_unittest.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
13
2021-06-17T09:38:17.000Z
2022-03-11T01:12:33.000Z
tests/google/appengine/api/mail_stub_unittest.py
SOFTWARESOLUTONS-PVT-LIMITED/appengine-python-standard
530a54b0fc0eb74d9dc29b19b7c4cdfab0556ebc
[ "Apache-2.0" ]
28
2021-03-09T19:27:37.000Z
2022-01-21T21:18:52.000Z
#!/usr/bin/env python # # Copyright 2007 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
40.042333
80
0.582474
4,403
42,565
5.462639
0.115149
0.07226
0.036795
0.042658
0.697156
0.663936
0.648886
0.628513
0.609305
0.607351
0
0.009371
0.305533
42,565
1,062
81
40.080038
0.803924
0.063573
0
0.644048
0
0.00119
0.15472
0.009313
0
0
0
0
0.103571
1
0.052381
false
0.008333
0.02381
0
0.079762
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
8386fbc6b0f9fb0be5d188740c3fc8742ba37656
2,932
py
Python
apps/node/models.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
apps/node/models.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
apps/node/models.py
Chise1/my_audit_monitor
e302c339be4083cc03349096142bcff85b6947e5
[ "BSD-3-Clause" ]
null
null
null
from django.db import models from datetime import datetime # Create your models here. class CaseNode(models.Model): """ 节点管理 """ parent_id = models.ForeignKey("self", models.CASCADE, related_name='subs', blank=True, null=True, verbose_name="父节点") parent_ids = mode...
58.64
118
0.661323
377
2,932
4.920424
0.328912
0.142318
0.112129
0.146631
0.41186
0.380593
0.259838
0.209164
0.134771
0.134771
0
0.015287
0.196794
2,932
49
119
59.836735
0.772399
0.010232
0
0
0
0
0.067221
0
0
0
0
0
0
1
0.025
false
0
0.05
0.025
0.825
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
83899e331e882e978c50b9f25be2b7f66f3691c8
543
py
Python
MAEnv/env_FireFighter/test_FireFighter.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
5
2020-05-25T03:08:09.000Z
2022-02-27T05:57:28.000Z
MAEnv/env_FireFighter/test_FireFighter.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-12-22T01:35:36.000Z
2022-01-28T01:51:06.000Z
MAEnv/env_FireFighter/test_FireFighter.py
Abluceli/Multi-agent-Reinforcement-Learning-Algorithms
15810a559e2f2cf9e5fcb158c083f9e9dd6012fc
[ "MIT" ]
1
2020-05-06T01:56:55.000Z
2020-05-06T01:56:55.000Z
from env_FireFighter import EnvFireFighter import random def generate_tgt_list(agt_num): tgt_list = [] for i in range(agt_num): tgt_list.append(random.randint(0, 1)) return tgt_list env = EnvFireFighter(4) max_iter = 100 for i in range(max_iter): print("iter= ", i) print("actual fire lev...
23.608696
49
0.666667
79
543
4.379747
0.481013
0.16185
0.086705
0.075145
0
0
0
0
0
0
0
0.016279
0.208103
543
22
50
24.681818
0.788372
0
0
0
1
0
0.127072
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0.333333
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
838b8db37e9d085d2e0caae79a9c6f245d3c1629
2,821
py
Python
human_ai_robustness/common.py
HumanCompatibleAI/human_ai_robustness
c9a5f78f97ccf9373f79c1ff6624b5ca1ea78027
[ "MIT" ]
14
2021-01-17T06:12:47.000Z
2021-11-17T09:51:26.000Z
human_ai_robustness/common.py
HumanCompatibleAI/human_ai_robustness
c9a5f78f97ccf9373f79c1ff6624b5ca1ea78027
[ "MIT" ]
null
null
null
human_ai_robustness/common.py
HumanCompatibleAI/human_ai_robustness
c9a5f78f97ccf9373f79c1ff6624b5ca1ea78027
[ "MIT" ]
1
2021-01-18T03:47:05.000Z
2021-01-18T03:47:05.000Z
import numpy as np import pandas as pd from human_aware_rl.data_dir import DATA_DIR def get_trajs_for_new_data_format(data_path, layouts): """This loads the data then selects the data for the chosen layout, and returns joint_expert_trajs""" assert len(layouts) == 1, "Assuming only one layout is selected" m...
48.637931
114
0.723502
407
2,821
4.70516
0.361179
0.046997
0.066841
0.078329
0.233943
0.233943
0.217232
0.217232
0.217232
0.176501
0
0.00345
0.177951
2,821
57
115
49.491228
0.822337
0.18894
0
0.162791
0
0
0.168356
0.03041
0
0
0
0.017544
0.023256
1
0.093023
false
0
0.116279
0
0.27907
0
0
0
0
null
0
0
0
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
83946bc64395804e44bdc88dedc92b40177387ff
8,055
py
Python
passwdgen/utils.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
3
2016-12-05T16:09:03.000Z
2021-08-06T01:56:05.000Z
passwdgen/utils.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
null
null
null
passwdgen/utils.py
thanethomson/passwdgen
1e0ac64fe9fb4ed7fa73ddf51c3b05a82f87558e
[ "MIT" ]
1
2021-03-23T08:17:43.000Z
2021-03-23T08:17:43.000Z
# -*- coding: utf-8 -*- from functools import reduce from operator import mul from string import ascii_lowercase from io import open import time import math import pkg_resources import os import struct from .constants import * __all__ = [ "clean_word_list", "permutations", "calculate_entropy", "load...
35.641593
126
0.635878
1,116
8,055
4.473118
0.236559
0.027244
0.014022
0.016827
0.125
0.068309
0.044872
0.044872
0.044872
0.024038
0
0.012647
0.283426
8,055
225
127
35.8
0.852218
0.380881
0
0.084746
0
0
0.085642
0.004408
0
0
0
0
0
1
0.050847
false
0.084746
0.084746
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
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
83951a7734ca7815f2d68fef54aee2752713e6b3
797
py
Python
question/forms.py
mastsiarkou/django-poll
22416090f37bf35543de9c428674fb5bb7bda6d8
[ "MIT" ]
null
null
null
question/forms.py
mastsiarkou/django-poll
22416090f37bf35543de9c428674fb5bb7bda6d8
[ "MIT" ]
3
2020-02-11T23:34:25.000Z
2021-06-10T21:05:25.000Z
question/forms.py
mastsiarkou/django-poll
22416090f37bf35543de9c428674fb5bb7bda6d8
[ "MIT" ]
null
null
null
from django.contrib.admin.widgets import AdminDateWidget from django import forms from django.core.exceptions import ValidationError import datetime class VoteForm(forms.Form): LIST_OF_ALBUM = ( ('1', 'Radiohead: Kid A'), ('2', 'Pink Floyd: The wall'), ('3', 'The Beatles: Abbey Road'), ('4', 'Massive Attack: ...
33.208333
78
0.715182
105
797
5.314286
0.647619
0.100358
0.039427
0.089606
0.136201
0.136201
0
0
0
0
0
0.020231
0.131744
797
24
79
33.208333
0.786127
0
0
0
0
0
0.149123
0
0
0
0
0
0
1
0
false
0
0.173913
0
0.608696
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
83956c0528c996f6390bb3e9d08639b769697c8b
436
py
Python
busshaming/migrations/0022_auto_20180115_1110.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
42
2018-01-20T01:12:25.000Z
2022-02-02T01:40:17.000Z
busshaming/migrations/0022_auto_20180115_1110.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
2
2018-01-24T03:58:17.000Z
2018-06-10T01:05:57.000Z
busshaming/migrations/0022_auto_20180115_1110.py
katharosada/busshaming
c8d7cd4baf9ff049cda49c92da4d5ca10f68e6a9
[ "MIT" ]
7
2018-01-24T05:49:13.000Z
2018-12-03T08:47:43.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-01-15 11:10 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('busshaming', '0021_trip_scheduled'), ] operations = [ migrations.AlterUniqueTogethe...
21.8
58
0.62844
45
436
5.888889
0.844444
0
0
0
0
0
0
0
0
0
0
0.06383
0.245413
436
19
59
22.947368
0.741641
0.155963
0
0
1
0
0.161644
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.416667
0
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
839607603463269adda16e7a29dd2e0262abd9de
959
py
Python
Solutions/Exercise06/Python/helper.py
eric-risbakk/PythonOpenCL-Experimenting
c52929b4f6c2046ee8b50dee8c5f0379fb4ba211
[ "CC-BY-3.0" ]
null
null
null
Solutions/Exercise06/Python/helper.py
eric-risbakk/PythonOpenCL-Experimenting
c52929b4f6c2046ee8b50dee8c5f0379fb4ba211
[ "CC-BY-3.0" ]
null
null
null
Solutions/Exercise06/Python/helper.py
eric-risbakk/PythonOpenCL-Experimenting
c52929b4f6c2046ee8b50dee8c5f0379fb4ba211
[ "CC-BY-3.0" ]
1
2020-10-12T09:11:26.000Z
2020-10-12T09:11:26.000Z
from definitions import * import numpy # Function to compute the matrix product (sequential algorithm, dot prod) def seq_mat_mul_sdot(Mdim, Ndim, Pdim, A, B, C): for i in range(Ndim): for j in range(Mdim): tmp = 0.0 for k in range(Pdim): tmp += A[i*Ndim+k] * B[k*Pd...
29.96875
74
0.59854
150
959
3.786667
0.4
0.070423
0.105634
0.068662
0.169014
0.105634
0.105634
0.105634
0.105634
0.105634
0
0.020468
0.286757
959
31
75
30.935484
0.809942
0.16684
0
0.173913
0
0
0.051702
0
0
0
0
0
0
0
null
null
0
0.086957
null
null
0.086957
0
0
0
null
0
0
0
0
0
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
839d4d95e09e6a5e82f7e5389eb2d6c19ff7881e
445
py
Python
setup.py
Loran425/BOSCH-GLM-rangefinder
008b3f50678b9a33dd4b757c0fa4896e2318cd87
[ "MIT" ]
40
2019-01-04T15:17:05.000Z
2022-03-14T07:43:10.000Z
setup.py
Loran425/BOSCH-GLM-rangefinder
008b3f50678b9a33dd4b757c0fa4896e2318cd87
[ "MIT" ]
12
2018-11-14T12:41:10.000Z
2022-03-11T17:52:39.000Z
setup.py
Loran425/BOSCH-GLM-rangefinder
008b3f50678b9a33dd4b757c0fa4896e2318cd87
[ "MIT" ]
20
2018-12-05T20:59:01.000Z
2022-01-08T13:55:24.000Z
#!/usr/bin/env python3 from setuptools import setup, find_packages setup( name='BOSCH-GLM-rangefinder', version='0.0', author='philipptrenz', author_email='mail@philipptrenz.de', description='Remote control a BOSCH GLM 100C rangefinder via its Bluetooth serial interface.', url='https://github.c...
27.8125
98
0.680899
55
445
5.454545
0.745455
0.08
0.126667
0
0
0
0
0
0
0
0
0.035519
0.177528
445
15
99
29.666667
0.784153
0.047191
0
0
0
0
0.513002
0.049645
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
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
83a041de74470df66ecbf9631f9b927630f40b47
1,319
py
Python
var/spack/repos/builtin/packages/py-ipykernel/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2018-08-20T06:55:11.000Z
2018-08-20T06:55:11.000Z
var/spack/repos/builtin/packages/py-ipykernel/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2019-04-29T22:36:27.000Z
2019-04-30T12:51:38.000Z
var/spack/repos/builtin/packages/py-ipykernel/package.py
whitfin/spack
aabd2be31a511d0e00c1017f7311a421659319d9
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-03-12T19:27:17.000Z
2020-03-12T19:27:17.000Z
# Copyright 2013-2019 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyIpykernel(PythonPackage): """IPython Kernel for Jupyter""" homepage = "https://pypi...
41.21875
74
0.697498
160
1,319
5.7125
0.46875
0.087527
0.060175
0.083151
0.106127
0.106127
0.080963
0.054705
0
0
0
0.225499
0.125853
1,319
31
75
42.548387
0.567216
0.16376
0
0
0
0.05
0.548446
0.292505
0
0
0
0
0
1
0
false
0
0.05
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
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
83a5c31feefea81c29cf2e97f43bc6577446859c
8,666
py
Python
classes.py
richard-nguyen22/python-robot-vacuum
6eae4bdd1c2a783740145f4211a1bad9f8c595cd
[ "MIT" ]
null
null
null
classes.py
richard-nguyen22/python-robot-vacuum
6eae4bdd1c2a783740145f4211a1bad9f8c595cd
[ "MIT" ]
null
null
null
classes.py
richard-nguyen22/python-robot-vacuum
6eae4bdd1c2a783740145f4211a1bad9f8c595cd
[ "MIT" ]
null
null
null
import random import math class Position(object): """ A Position represents a location in a two-dimensional room. """ def __init__(self, x, y): """ Initializes a position with coordinates (x, y). """ self.x = x self.y = y def getX(self): return self.x def ...
31.285199
86
0.649319
1,171
8,666
4.730145
0.163962
0.025275
0.017873
0.00993
0.32551
0.250948
0.234338
0.215743
0.205633
0.205633
0
0.005822
0.266674
8,666
276
87
31.398551
0.865775
0.0997
0
0.230769
0
0
0.051406
0
0
0
0
0
0
0
null
null
0.009615
0.019231
null
null
0.009615
0
0
0
null
0
0
0
0
0
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
83a7b7935b7fb6971e82ba9b5f5924f7d16b3c28
1,466
py
Python
entitas/collector.py
Aenyhm/entitas-python
016e88b65cb231a6130bf4e9b1192a31c36b89df
[ "MIT" ]
43
2017-02-13T08:06:35.000Z
2022-03-22T03:54:21.000Z
src/entitas/collector.py
UpUpLiu/python_entitas
91878683f00811fa3afd0e5ab707b5054d832fec
[ "MIT" ]
null
null
null
src/entitas/collector.py
UpUpLiu/python_entitas
91878683f00811fa3afd0e5ab707b5054d832fec
[ "MIT" ]
6
2017-12-05T14:12:21.000Z
2021-08-12T09:07:41.000Z
from .group import GroupEvent class Collector(object): def __init__(self): self._collected_entities = set() self._groups = {} @property def collected_entities(self): return self._collected_entities def add(self, group, group_event): self._groups[group] = group_event ...
30.541667
79
0.648704
172
1,466
5.098837
0.203488
0.082098
0.08894
0.085519
0.510832
0.338655
0.338655
0.249715
0.249715
0.175599
0
0
0.266712
1,466
47
80
31.191489
0.815814
0.007503
0
0.181818
0
0
0.0117
0
0
0
0
0
0
1
0.242424
false
0
0.030303
0.060606
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
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
83ac10abad4ae80454501a31a8ee326016465803
1,465
py
Python
clkhash/benchmark.py
data61/clkhash
895d3433bab5c11ce7a738b64c8789b72cd87e7a
[ "Apache-2.0" ]
28
2019-06-24T18:45:38.000Z
2022-03-26T18:20:40.000Z
clkhash/benchmark.py
data61/clkhash
895d3433bab5c11ce7a738b64c8789b72cd87e7a
[ "Apache-2.0" ]
300
2019-04-15T07:34:11.000Z
2022-03-24T05:04:21.000Z
clkhash/benchmark.py
n1analytics/clkhash
2c568fb17c89d1a57ced074cf67135819792ad3f
[ "Apache-2.0" ]
5
2019-04-15T01:57:27.000Z
2022-03-16T23:29:14.000Z
import os import tempfile from timeit import default_timer as timer from clkhash.clk import generate_clk_from_csv from clkhash.randomnames import NameList def compute_hash_speed(num: int, quiet: bool = False, max_workers=None) -> float: """ Hash time. """ namelist = NameList(num) os_fd, tmpfile_name ...
29.3
115
0.625939
205
1,465
4.258537
0.44878
0.091638
0.034364
0.041237
0
0
0
0
0
0
0
0.03214
0.256655
1,465
49
116
29.897959
0.769513
0.006826
0
0
1
0
0.083853
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.194444
0.138889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83b2b34811dfa3b1529c2ceba3b233fd99191469
14,858
py
Python
pycherwell/models/action.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
2
2020-04-09T16:41:25.000Z
2020-08-25T21:07:53.000Z
pycherwell/models/action.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
15
2020-02-12T14:57:30.000Z
2020-11-27T23:34:15.000Z
pycherwell/models/action.py
greenpau/pycherwell
2a25446d5cf86d69e6158067faf27ce250aba966
[ "Apache-2.0" ]
2
2020-02-12T14:57:38.000Z
2021-07-30T11:32:28.000Z
# coding: utf-8 """ Cherwell REST API Unofficial Python Cherwell REST API library. # noqa: E501 The version of the OpenAPI document: 9.3.2 Contact: See AUTHORS. Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six from pycherwell.configuration imp...
29.480159
356
0.606609
1,752
14,858
4.920091
0.097032
0.041763
0.083527
0.083527
0.528422
0.41891
0.383295
0.285035
0.193039
0.12065
0
0.018041
0.302396
14,858
503
357
29.538767
0.813603
0.296944
0
0.104803
1
0
0.110845
0.014903
0
0
0
0
0
1
0.157205
false
0
0.017467
0
0.283843
0.008734
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
83b2daa637f659ab3c51147c4434aee16d2072aa
1,056
py
Python
my/lessdb_ut.py
killangell/huobi_Python
4bdf5acf4e31dadf236049703dac39b0ca8462f0
[ "Apache-2.0" ]
null
null
null
my/lessdb_ut.py
killangell/huobi_Python
4bdf5acf4e31dadf236049703dac39b0ca8462f0
[ "Apache-2.0" ]
null
null
null
my/lessdb_ut.py
killangell/huobi_Python
4bdf5acf4e31dadf236049703dac39b0ca8462f0
[ "Apache-2.0" ]
null
null
null
from lessismore import LESSDB_FILE from lessdb import Lessdb from my.lessdb import Operation if __name__ == "__main__": print("database name: " + LESSDB_FILE) lessdb = Lessdb(LESSDB_FILE) # lessdb.update_by_operation() lessdb.debug_select_all() # lessdb.debug_select_all() # LESSDB_F...
31.058824
132
0.663826
146
1,056
4.547945
0.5
0.075301
0.076807
0.090361
0.108434
0
0
0
0
0
0
0.134204
0.202652
1,056
34
133
31.058824
0.654394
0.647727
0
0
0
0
0.072555
0
0
0
0
0
0
1
0
false
0
0.428571
0
0.428571
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
83b3132c24b12513ac5fb9f560445ac8ab59e73d
307
py
Python
main/serializers.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
2
2017-04-22T11:07:13.000Z
2018-03-02T12:23:24.000Z
main/serializers.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
124
2020-04-30T07:06:58.000Z
2022-03-28T12:50:16.000Z
main/serializers.py
mindruion/test
d27ef1caf8f76aead934bc83be7729f79a4be503
[ "MIT" ]
1
2021-08-04T11:44:21.000Z
2021-08-04T11:44:21.000Z
from django.contrib.auth.models import User from rest_framework import serializers class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ['pk', 'fullname', 'first_name', 'last_name', 'email'] fullname = serializers.CharField(source='get_full_name')
27.909091
71
0.723127
35
307
6.2
0.742857
0
0
0
0
0
0
0
0
0
0
0
0.169381
307
10
72
30.7
0.85098
0
0
0
0
0
0.153094
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.714286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
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
83b678afc3727e8a7c7130d1e83445121577de8a
1,542
py
Python
src/loadbalancer/job.py
dantreiman/starcluster-observatory
1e8a0648bb1aa96cec72122eb4ca30f2fa178be8
[ "MIT" ]
null
null
null
src/loadbalancer/job.py
dantreiman/starcluster-observatory
1e8a0648bb1aa96cec72122eb4ca30f2fa178be8
[ "MIT" ]
null
null
null
src/loadbalancer/job.py
dantreiman/starcluster-observatory
1e8a0648bb1aa96cec72122eb4ca30f2fa178be8
[ "MIT" ]
null
null
null
"""The job class represents a job on the cluster.""" from datetime import datetime class Job: def __init__(self, job_id, requested_queue, assigned_queue, owner, state, predecessors, submit_timestamp): """Constructor Args: job_id (int) - The job ID. requested_queue (str) - ...
39.538462
110
0.635538
209
1,542
4.54067
0.287081
0.031612
0.028451
0.040042
0.071654
0.071654
0.071654
0.071654
0.071654
0.071654
0
0.000894
0.274968
1,542
38
111
40.578947
0.847943
0.357328
0
0
0
0
0.061384
0
0
0
0
0
0
1
0.222222
false
0
0.055556
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
83b9ddedc37dc01d521d28377d28127afc390927
1,534
py
Python
passwordGenerator/views.py
ChitSuThwin/password-generator
2049d992970e8a8b10efb6e133448c4605a65d7b
[ "MIT" ]
3
2020-10-31T12:38:48.000Z
2020-11-02T12:14:55.000Z
passwordGenerator/views.py
HeinKhantZaw/password-generator
25ec5c07e725b5de53b492e35ff453e8ecdd22c8
[ "MIT" ]
1
2020-11-01T04:50:11.000Z
2020-11-01T04:50:11.000Z
passwordGenerator/views.py
HeinKhantZaw/password-generator
25ec5c07e725b5de53b492e35ff453e8ecdd22c8
[ "MIT" ]
1
2020-10-31T09:47:19.000Z
2020-10-31T09:47:19.000Z
import random import string from django.shortcuts import render from zxcvbn import zxcvbn def home(req): return render(req, 'index.html') # this return index.html def password(request): strengthText = { 0: "The Worst", 1: "Very Bad", 2: "Still Weak", 3: "Good", 4: "...
31.958333
92
0.670143
176
1,534
5.767045
0.443182
0.070936
0.047291
0.059113
0
0
0
0
0
0
0
0.005098
0.232725
1,534
47
93
32.638298
0.857264
0.273142
0
0
0
0
0.135624
0
0
0
0
0
0
1
0.0625
false
0.40625
0.125
0.03125
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
83bcedcdbf4cae009802d64452415d2b3e84e36d
482
py
Python
v12/02_scaling_test.py
gavinIRL/RHBotArray
2b537c9657d74e9dd3f9dc8f679080c440df6e0c
[ "MIT" ]
null
null
null
v12/02_scaling_test.py
gavinIRL/RHBotArray
2b537c9657d74e9dd3f9dc8f679080c440df6e0c
[ "MIT" ]
113
2021-05-02T13:23:10.000Z
2021-07-12T21:22:01.000Z
v12/02_scaling_test.py
gavinIRL/RHBotArray
2b537c9657d74e9dd3f9dc8f679080c440df6e0c
[ "MIT" ]
null
null
null
import ctypes import time import os from rhba_utils import BotUtils, WindowCapture os.chdir(os.path.dirname(os.path.abspath(__file__))) # def get_monitor_scaling(): # scaleFactor = ctypes.windll.shcore.GetScaleFactorForDevice(0) / 100 # return float(scaleFactor) # time.sleep(2) # print(get_monitor_scaling())...
22.952381
73
0.763485
64
482
5.5625
0.65625
0.033708
0.095506
0
0
0
0
0
0
0
0
0.014118
0.118257
482
20
74
24.1
0.823529
0.354772
0
0
0
0
0.039344
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
83c038229cf0b6d9c6197cc1a79d72cedd236ede
3,024
py
Python
tests/test_stats_card.py
lhain08/FitbitDashboard
7105effa3ef50a916e4c3e0e2f5a0b3d96bcdc6a
[ "MIT" ]
null
null
null
tests/test_stats_card.py
lhain08/FitbitDashboard
7105effa3ef50a916e4c3e0e2f5a0b3d96bcdc6a
[ "MIT" ]
13
2022-03-17T16:20:04.000Z
2022-03-30T22:19:01.000Z
tests/test_stats_card.py
lhain08/FitbitDashboard
7105effa3ef50a916e4c3e0e2f5a0b3d96bcdc6a
[ "MIT" ]
null
null
null
from unittest.mock import Mock import dash_bootstrap_components as dbc from dash import html from src.dashboard.widgets.stats_card import StatsCardWidget class TestStatsCard: # Create a new mock client and data manager mock_data_manager = Mock() def test_stats_card_date_range(self): stats_card_...
36
72
0.592262
386
3,024
4.474093
0.238342
0.057325
0.064852
0.06601
0.764331
0.694847
0.663578
0.643891
0.643891
0.643891
0
0.077727
0.272487
3,024
83
73
36.433735
0.707273
0.051257
0
0.515625
0
0
0.131331
0
0
0
0
0
0.3125
1
0.03125
false
0
0.0625
0
0.125
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
83ca4fc199cc85dbb6e0617ec6c88073ab742173
2,841
py
Python
UDP_ChatRoom/UI_ChatRoom.py
AlterFrozen/Python-NetworkProgramming
6779966486c39805e6e6ead1514f4ad3ac083400
[ "MIT" ]
1
2021-11-26T11:36:21.000Z
2021-11-26T11:36:21.000Z
UDP_ChatRoom/UI_ChatRoom.py
AlterFrozen/Python-NetworkProgramming
6779966486c39805e6e6ead1514f4ad3ac083400
[ "MIT" ]
null
null
null
UDP_ChatRoom/UI_ChatRoom.py
AlterFrozen/Python-NetworkProgramming
6779966486c39805e6e6ead1514f4ad3ac083400
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'C:\Users\26692\Desktop\樱绮纪行2021[↓]\课程\网络编程\实验2-UDP\ChatRoom\UDPChatRoom.ui' # # Created by: PyQt5 UI code generator 5.15.6 # # WARNING: Any manual changes made to this file will be lost when pyuic5 is # run again. Do not edit this file unle...
51.654545
129
0.747624
287
2,841
7.28223
0.376307
0.095694
0.080383
0.038278
0.135885
0.090909
0
0
0
0
0
0.017485
0.154523
2,841
54
130
52.611111
0.852206
0.118268
0
0
1
0
0.087305
0.018022
0
0
0
0
0
1
0.05
false
0
0.025
0
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83cd1eb04778c9310a6cde3a8fe98c103c1c22e3
961
py
Python
commerce/migrations/0008_comment.py
anar2706/allauth_override
8d06e3c11bf54ff8cc2e8feb5b9af53ad4234720
[ "MIT" ]
1
2020-06-02T16:39:08.000Z
2020-06-02T16:39:08.000Z
commerce/migrations/0008_comment.py
anar2706/allauth_override
8d06e3c11bf54ff8cc2e8feb5b9af53ad4234720
[ "MIT" ]
8
2020-06-05T23:52:38.000Z
2022-03-12T00:02:20.000Z
commerce/migrations/0008_comment.py
anar2706/allauth_override
8d06e3c11bf54ff8cc2e8feb5b9af53ad4234720
[ "MIT" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-08 20:16 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('commerce', '0007_auto_20190908_1843'), ] operations = [ migrations.CreateModel( name='Comment',...
33.137931
151
0.576483
96
961
5.645833
0.635417
0.04428
0.051661
0.081181
0
0
0
0
0
0
0
0.053623
0.281998
961
28
152
34.321429
0.731884
0.046826
0
0
1
0
0.122538
0.025164
0
0
0
0
0
1
0
false
0
0.090909
0
0.227273
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83d02ac35274083af6c9d0596bc9c7821b62536e
3,592
py
Python
3_3_2_speaker_file.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
3_3_2_speaker_file.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
3_3_2_speaker_file.py
hajin-kim/Python-EV3
4d590772ee82697f43dea5a878275a917f13acc5
[ "MIT" ]
null
null
null
#!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor, InfraredSensor, UltrasonicSensor, GyroSensor) from pybricks.parameters import Port, Stop, Direction, Button, Color from pybricks.tools import wait, St...
25.295775
78
0.688753
405
3,592
5.990123
0.503704
0.029678
0.018549
0.014015
0.035449
0.035449
0.035449
0.035449
0.035449
0.035449
0
0.010764
0.224109
3,592
141
79
25.475177
0.858271
0.661748
0
0
0
0
0.014625
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
83d0c97bd3678ae73812eced768f5eed7a58cf9d
1,138
py
Python
environ.py
tubbeg/Server
2817e4cd9acdb817bc20c54d6929f7b6e1eb6e88
[ "MIT" ]
null
null
null
environ.py
tubbeg/Server
2817e4cd9acdb817bc20c54d6929f7b6e1eb6e88
[ "MIT" ]
null
null
null
environ.py
tubbeg/Server
2817e4cd9acdb817bc20c54d6929f7b6e1eb6e88
[ "MIT" ]
null
null
null
import sys class Environment(object): def __init__(self, server_name, request_method, path, stream, port): self.__environ = {} self.__environ['wsgi.url_scheme'] = 'http' self.__environ['wsgi.input'] = stream self.__environ['wsgi.errors'] = sys.stderr self.__environ['wsgi.m...
35.5625
77
0.651142
131
1,138
5.175573
0.274809
0.324484
0.176991
0.088496
0.556047
0.479351
0.479351
0.479351
0.479351
0.479351
0
0.002262
0.223199
1,138
31
78
36.709677
0.764706
0
0
0.4
0
0
0.174142
0
0
0
0
0
0
1
0.16
false
0
0.04
0.04
0.28
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83d3b174473b479f76f97a6324f753213992566e
4,530
py
Python
openstack_dashboard/dashboards/project/hadoop/views.py
Frostman/eho-horizon
27bbc8fcbc73cc6ac64d44bfe9c1cd56bac8e412
[ "Apache-2.0" ]
1
2015-06-23T08:23:12.000Z
2015-06-23T08:23:12.000Z
openstack_dashboard/dashboards/project/hadoop/views.py
Frostman/eho-horizon
27bbc8fcbc73cc6ac64d44bfe9c1cd56bac8e412
[ "Apache-2.0" ]
null
null
null
openstack_dashboard/dashboards/project/hadoop/views.py
Frostman/eho-horizon
27bbc8fcbc73cc6ac64d44bfe9c1cd56bac8e412
[ "Apache-2.0" ]
null
null
null
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless re...
31.241379
75
0.72053
526
4,530
6.034221
0.302281
0.024575
0.035287
0.055135
0.333963
0.279773
0.260239
0.189036
0.189036
0.161941
0
0.003027
0.197792
4,530
144
76
31.458333
0.870391
0.131347
0
0.351064
0
0
0.113805
0.074254
0
0
0
0
0
1
0.138298
false
0.053191
0.180851
0
0.670213
0
0
0
0
null
0
0
0
0
0
0
0
0
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
83dbd231ca0356f16ac2ad7011749b93bd21a22a
491
py
Python
atividade022.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
atividade022.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
atividade022.py
henrikysena/Atividades_CursosEmVideo_Python
2890c67ea4be2cde6f42c2489d4c96b47d7b597e
[ "MIT" ]
null
null
null
print('-='*30) print('Olá, seja bem vindo!') nome = str(input('Digite o seu nome completo: ')).strip() print('') print('Seu nome em letras maiúsculas: {}'.format(nome.upper())) print('Seu nome em letras minúsculas: {}'.format(nome.lower())) print('Total de letras do seu nome: {}'.format(len(nome.replace(' ', '')))) di...
30.6875
86
0.651731
71
491
4.507042
0.521127
0.0875
0.075
0.0875
0.125
0
0
0
0
0
0
0.011494
0.114053
491
15
87
32.733333
0.724138
0
0
0.333333
0
0
0.435845
0
0
0
0
0
0
1
0
false
0
0
0
0
0.833333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1
83dc025858c7664d9ef33eded11faf98323a1b43
643
py
Python
scripts/speech.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
31
2021-11-08T18:42:17.000Z
2022-03-25T07:45:46.000Z
scripts/speech.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
6
2021-12-20T14:15:44.000Z
2022-03-28T16:19:12.000Z
scripts/speech.py
iamDyeus/KnickAI
c17d808c949cb3467031498e7252bd2095c04699
[ "MIT" ]
3
2021-11-13T09:38:12.000Z
2022-03-25T07:44:17.000Z
from gtts import gTTS def speak(text): #https://pypi.org/project/gtts/ tts = gTTS(text=text, lang='en') tts.save("speech.mp3") import os import playsound playsound.playsound("speech.mp3", True) os.remove("speech.mp3") ''' import pyttsx3 #https://pypi....
30.619048
73
0.640747
92
643
4.478261
0.597826
0.065534
0.058252
0.092233
0
0
0
0
0
0
0
0.016563
0.248834
643
21
74
30.619048
0.836439
0.346812
0
0
0
0
0.137339
0
0
0
0
0
0
1
0.125
false
0
0.375
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
83e966f95614aff68460108b02421b0f09f611dd
757
py
Python
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0002_auto_20170202_1059.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0002_auto_20170202_1059.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
Restaurant_Finder_App/restaurant_finder_app/restaurant_finder_app/restaurant/migrations/0002_auto_20170202_1059.py
midhun3112/restaurant_locator
6ab5e906f26476352176059a8952c2c3f5b127bf
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-02-02 10:59 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('restaurant', '0001_initial'), ] operations = [ migrations.AddField( ...
29.115385
119
0.639366
80
757
5.85
0.5625
0.038462
0.068376
0.111111
0.239316
0.098291
0
0
0
0
0
0.036332
0.23646
757
25
120
30.28
0.773356
0.089828
0
0.111111
1
0
0.269679
0.161808
0
0
0
0
0
1
0
false
0
0.111111
0
0.277778
0
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
83f81c3c0d0f70ea8fc50b3c89bfd69efa00ea32
265
py
Python
readenv.py
tetsuya-ki/discord-globalipaddress-notification
4464ecbd0cc4d2650a6c6f77637c20be68affe06
[ "MIT" ]
null
null
null
readenv.py
tetsuya-ki/discord-globalipaddress-notification
4464ecbd0cc4d2650a6c6f77637c20be68affe06
[ "MIT" ]
null
null
null
readenv.py
tetsuya-ki/discord-globalipaddress-notification
4464ecbd0cc4d2650a6c6f77637c20be68affe06
[ "MIT" ]
null
null
null
import os from os.path import join, dirname from dotenv import load_dotenv load_dotenv(verbose=True) dotenv_path = join(dirname(__file__), '.env') load_dotenv(dotenv_path) DISCORD_TOKEN = os.environ.get('DISCORD_TOKEN') WEBHOOK_URL = os.environ.get('WEBHOOK_URL')
26.5
47
0.796226
41
265
4.829268
0.439024
0.151515
0.121212
0
0
0
0
0
0
0
0
0
0.090566
265
10
48
26.5
0.821577
0
0
0
0
0
0.105263
0
0
0
0
0
0
1
0
false
0
0.375
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
83f95e69c03f59439c01a08b832d4031abd0d2ed
1,962
py
Python
gas_flow/gas.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
4
2021-01-22T14:17:17.000Z
2021-01-23T16:29:41.000Z
gas_flow/gas.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
4
2018-02-01T05:40:09.000Z
2018-02-02T07:35:11.000Z
gas_flow/gas.py
aanish94/apsCFD
51ac84926d691ec80a46e877302ccbe47281f8f4
[ "MIT" ]
1
2021-01-22T02:14:49.000Z
2021-01-22T02:14:49.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """Thermodynamic Functions/Properties of a gas mixture in chemical equilibrium """ import cantera as ct import math def initialize_gas_object(name): """Initialize Cantera solution object Inputs are listed: - https://github.com/Cantera/cantera/tree/maste...
25.815789
79
0.659531
276
1,962
4.663043
0.445652
0.027195
0.04662
0.051282
0.096348
0.096348
0.096348
0
0
0
0
0.02122
0.231397
1,962
75
80
26.16
0.832228
0.537717
0
0
0
0
0.014286
0
0
0
0
0.013333
0
1
0.086957
false
0.043478
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
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
83fa2c9da8f10e48f92d89ae1c0877691939e716
2,040
py
Python
rest_todo_api/migrations/0001_initial.py
Saknowman/django-rest-todo-api
27b54baf6fb0911d8d93cb13d6e4487afb5d7f03
[ "BSD-2-Clause" ]
1
2019-11-22T15:42:44.000Z
2019-11-22T15:42:44.000Z
rest_todo_api/migrations/0001_initial.py
Saknowman/django-rest-todo-api
27b54baf6fb0911d8d93cb13d6e4487afb5d7f03
[ "BSD-2-Clause" ]
null
null
null
rest_todo_api/migrations/0001_initial.py
Saknowman/django-rest-todo-api
27b54baf6fb0911d8d93cb13d6e4487afb5d7f03
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 2.2.6 on 2019-11-04 03:25 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
43.404255
170
0.612255
217
2,040
5.599078
0.359447
0.032922
0.046091
0.072428
0.565432
0.507819
0.507819
0.507819
0.437037
0.437037
0
0.014398
0.25098
2,040
46
171
44.347826
0.780759
0.022059
0
0.384615
1
0
0.100853
0.026593
0
0
0
0
0
1
0
false
0
0.076923
0
0.179487
0
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
83fbee65ef00df98cd133ea38dfa67f371887092
4,774
py
Python
rxnfp/transformer_fingerprints.py
rxn4chemistry/rxnfp
6fd48f4927c2178555cc5d71dbfb225fb178f43c
[ "MIT" ]
77
2020-07-09T15:24:17.000Z
2022-03-14T16:01:44.000Z
rxnfp/transformer_fingerprints.py
rxn4chemistry/rxnfp
6fd48f4927c2178555cc5d71dbfb225fb178f43c
[ "MIT" ]
10
2020-12-03T10:26:50.000Z
2022-03-31T20:21:31.000Z
rxnfp/transformer_fingerprints.py
rxn4chemistry/rxnfp
6fd48f4927c2178555cc5d71dbfb225fb178f43c
[ "MIT" ]
21
2020-07-28T20:41:09.000Z
2022-03-25T06:54:42.000Z
# AUTOGENERATED! DO NOT EDIT! File to edit: nbs/02_transformer_fingerprints.ipynb (unless otherwise specified). __all__ = ['RXNBERTFingerprintGenerator', 'RXNBERTMinhashFingerprintGenerator', 'get_default_model_and_tokenizer', 'generate_fingerprints'] # Cell import torch import pkg_resources import numpy a...
32.924138
122
0.641181
506
4,774
5.802372
0.262846
0.036785
0.02248
0.016349
0.490804
0.433583
0.412466
0.377044
0.377044
0.350477
0
0.003722
0.268328
4,774
145
123
32.924138
0.836816
0.089443
0
0.276596
1
0
0.062087
0.041785
0
0
0
0
0
1
0.085106
false
0
0.106383
0
0.276596
0.191489
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
83fe9dfad7af55c54894c902571e222838dcd501
415
py
Python
main.py
jake-87/python-blackjack
274773620c83a576e12887ee9a9db0a41db364b2
[ "BSD-3-Clause" ]
null
null
null
main.py
jake-87/python-blackjack
274773620c83a576e12887ee9a9db0a41db364b2
[ "BSD-3-Clause" ]
null
null
null
main.py
jake-87/python-blackjack
274773620c83a576e12887ee9a9db0a41db364b2
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # This runs the main program. import blackjack.blackjack as blackjack import bjp.bjp as bjp if __name__ == "__main__": print("What would you like to play? (blackjack, blackjack-proper)") x = input(" >>> ") if x == "blackjack": print("Starting Blackjack.") blackjack.m()...
27.666667
71
0.628916
52
415
4.865385
0.538462
0.213439
0.173913
0
0
0
0
0
0
0
0
0.003135
0.231325
415
14
72
29.642857
0.789969
0.118072
0
0
0
0
0.385675
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0.272727
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
86032320209d1513c9aef3c9d6e5b36f1031ef1a
2,187
py
Python
python/src/main/python/pyalink/alink/batch/lazy/lazy_evaluation.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/batch/lazy/lazy_evaluation.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
python/src/main/python/pyalink/alink/batch/lazy/lazy_evaluation.py
wenwei8268/Alink
c00702538c95a32403985ebd344eb6aeb81749a7
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from rx import operators from rx.subject import Subject from ...py4j_util import get_java_class class LazyEvaluation: def __init__(self, sub=None): self._done = False self._sub = sub if sub is not None else Subject() self._value = None self._su...
26.035714
97
0.6877
295
2,187
4.823729
0.281356
0.029515
0.025299
0.027407
0.113844
0.082923
0.054814
0.054814
0
0
0
0.000595
0.231367
2,187
83
98
26.349398
0.845925
0.155007
0
0.078431
0
0
0.043598
0.014901
0
0
0
0
0
1
0.235294
false
0.019608
0.078431
0.019608
0.45098
0
0
0
0
null
0
0
0
0
0
0
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
86044a816691e4749a549e101d7c5a1e78b8efa4
394
py
Python
App/migrations/0013_playlist_is_showcase_or_comp.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
App/migrations/0013_playlist_is_showcase_or_comp.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
44
2022-01-21T01:33:59.000Z
2022-03-26T23:35:25.000Z
App/migrations/0013_playlist_is_showcase_or_comp.py
dlanghorne0428/StudioMusicPlayer
54dabab896b96d90b68d6435edfd52fe6a866bc2
[ "MIT" ]
null
null
null
# Generated by Django 4.0 on 2022-04-17 14:37 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('App', '0012_alter_song_image'), ] operations = [ migrations.AddField( model_name='playlist', name='is_showcase_or_comp...
20.736842
53
0.609137
43
394
5.418605
0.860465
0
0
0
0
0
0
0
0
0
0
0.063604
0.281726
394
18
54
21.888889
0.759717
0.109137
0
0
1
0
0.146132
0.060172
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
8606fdc871765dd367b05bb2f8aa4e9fc111b544
8,870
py
Python
api/python/logs/log_pb2.py
janitha09/eve
ffc5daabdb4106b477841828a89f9c9fd4fb4f87
[ "Apache-2.0" ]
null
null
null
api/python/logs/log_pb2.py
janitha09/eve
ffc5daabdb4106b477841828a89f9c9fd4fb4f87
[ "Apache-2.0" ]
null
null
null
api/python/logs/log_pb2.py
janitha09/eve
ffc5daabdb4106b477841828a89f9c9fd4fb4f87
[ "Apache-2.0" ]
null
null
null
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: log.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflectio...
39.247788
805
0.735851
1,168
8,870
5.308219
0.148973
0.054194
0.046452
0.041935
0.642097
0.607903
0.599516
0.581129
0.568226
0.552097
0
0.038781
0.130778
8,870
225
806
39.422222
0.76537
0.033709
0
0.628141
1
0.01005
0.160691
0.103936
0
0
0
0
0
1
0
false
0
0.030151
0
0.030151
0
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
f7a63020b322b9e8920c26512da9ee7b3c412810
1,706
py
Python
setup.py
genadijrazdorov/pyabif
e02dcee8553d83194881d0a155233990781d8c9b
[ "MIT" ]
1
2020-10-15T14:10:28.000Z
2020-10-15T14:10:28.000Z
setup.py
genadijrazdorov/pyabif
e02dcee8553d83194881d0a155233990781d8c9b
[ "MIT" ]
null
null
null
setup.py
genadijrazdorov/pyabif
e02dcee8553d83194881d0a155233990781d8c9b
[ "MIT" ]
null
null
null
"""A setuptools based setup module. See: https://packaging.python.org/guides/distributing-packages-using-setuptools/ https://github.com/pypa/sampleproject """ # Always prefer setuptools over distutils from setuptools import setup setup( # This field lists other packages that your project depends on to run. #...
33.45098
78
0.684056
215
1,706
5.376744
0.6
0.038927
0.029412
0.039792
0.091696
0
0
0
0
0
0
0
0.227433
1,706
50
79
34.12
0.877086
0.728605
0
0
0
0
0.183295
0.062645
0
0
0
0
0
1
0
true
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
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
f7a6d9a89cbf2afb28c88ff3bf99112aab381a97
3,259
py
Python
test/mapping/compass_test.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
3
2017-04-11T21:30:20.000Z
2018-02-28T23:17:30.000Z
test/mapping/compass_test.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
103
2016-08-26T15:05:35.000Z
2021-02-10T16:24:55.000Z
test/mapping/compass_test.py
cbworden/earthquake-impact-utils
fff41e41668896110bebbc7054a36dd60779655b
[ "CC0-1.0" ]
9
2016-08-24T01:07:40.000Z
2022-03-01T10:03:27.000Z
#!/usr/bin/env python from impactutils.mapping.compass import get_compass_dir, get_compass_dir_azimuth import numpy as np import pandas as pd def test_compass(): angles = [[1.0, ('N', 'North'), ('N', 'North'), ('N', 'North')], [23.5, ('N', 'North'), ('NE', 'Northeast'), ('NNE', 'Nort...
43.453333
85
0.445535
305
3,259
4.603279
0.281967
0.064103
0.083333
0.11396
0.412393
0.412393
0.412393
0.412393
0.412393
0.255698
0
0.032651
0.370359
3,259
74
86
44.040541
0.651559
0.032525
0
0.25
0
0
0.177199
0
0
0
0
0
0.116667
1
0.016667
false
0.166667
0.05
0
0.066667
0.016667
0
0
0
null
0
0
0
0
0
0
0
0
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
f7aa68274ca959e90a6d8620662bcf7c14598432
547
py
Python
NEST/old_realisations/second_level/src/namespace.py
KseniiaKarpova/memristive-spinal-cord
15be4aea80ede6315b9bf4ea76eec17b900f31e4
[ "MIT" ]
null
null
null
NEST/old_realisations/second_level/src/namespace.py
KseniiaKarpova/memristive-spinal-cord
15be4aea80ede6315b9bf4ea76eec17b900f31e4
[ "MIT" ]
null
null
null
NEST/old_realisations/second_level/src/namespace.py
KseniiaKarpova/memristive-spinal-cord
15be4aea80ede6315b9bf4ea76eec17b900f31e4
[ "MIT" ]
null
null
null
from enum import Enum class Params(Enum): MODEL = "model" EES_RATE = "ees_rate" INH_COEF = "inh_coef" SPEED = "speed" SIM_TIME = "sim_time" C_TIME = "c_time" RECORD_FROM = "record_from" MULTITEST = "multitest" ESS_THRESHOLD = "ees_threshold" class Name(Enum): MP_E = "MP_E" class Afferent(Enum): IA = 'Ia...
12.72093
32
0.64351
80
547
4.225
0.475
0.04142
0.053254
0.059172
0.071006
0
0
0
0
0
0
0.009259
0.210238
547
42
33
13.02381
0.773148
0
0
0.137931
0
0
0.179159
0
0
0
0
0
0
1
0
false
0
0.034483
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
f7adbdd3c4c0ce0a8e24e1d37c9b580d817f0c21
387
py
Python
exercise4-8.py
raygomez/python-exercise-4
5f4fdb23767f1cc04dc133497b866dfa9feeb7f9
[ "MIT" ]
null
null
null
exercise4-8.py
raygomez/python-exercise-4
5f4fdb23767f1cc04dc133497b866dfa9feeb7f9
[ "MIT" ]
null
null
null
exercise4-8.py
raygomez/python-exercise-4
5f4fdb23767f1cc04dc133497b866dfa9feeb7f9
[ "MIT" ]
null
null
null
from __future__ import print_function __author__ = 'ragomez' def prepend_this_is(f): def _(args): args = 'This is {}'.format(args) return f(args) return _ def append_exclamation(f): def _(args): args = '{}!'.format(args) return f(args) return _ @prepend_this_is @app...
16.125
40
0.633075
48
387
4.708333
0.395833
0.176991
0.115044
0.106195
0.238938
0.238938
0
0
0
0
0
0
0.245478
387
24
41
16.125
0.773973
0
0
0.352941
0
0
0.06701
0
0
0
0
0
0
1
0.294118
false
0
0.058824
0
0.588235
0.117647
0
0
0
null
0
0
0
0
0
0
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
f7ae5a3cb56e01c49f4b370c410d7ba61ca132f6
831
py
Python
13.Learning Python Libraries/03.Python Essential Libraries - JM/Pendulum/formatting.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
3
2020-06-01T04:17:18.000Z
2020-12-18T03:05:55.000Z
13.Learning Python Libraries/03.Python Essential Libraries - JM/Pendulum/formatting.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
1
2020-04-25T08:01:59.000Z
2020-04-25T08:01:59.000Z
13.Learning Python Libraries/03.Python Essential Libraries - JM/Pendulum/formatting.py
ptyadana/python-dojo
98c7234b84f0afea99a091c7198342d66bbdff5b
[ "MIT" ]
7
2020-04-26T10:02:36.000Z
2021-06-08T05:12:46.000Z
# Python Essential Libraries by Joe Marini course example # Example file for Pendulum library import pendulum # create a datetime and print it dt1 = pendulum.datetime(2020, 7, 28, 15, 30) print(dt1) # use some formatting functions print(dt1.to_date_string()) print(dt1.to_time_string()) print(dt1.to_datetime_string())...
23.083333
57
0.759326
133
831
4.609023
0.428571
0.169657
0.130506
0.130506
0.22186
0.156607
0.156607
0.11093
0
0
0
0.044959
0.116727
831
35
58
23.742857
0.790191
0.323706
0
0.166667
0
0
0.137432
0
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0.888889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
1