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
65141789b1d04c7324aedcb45b8ce03e94b8730e
422
py
Python
src/selection.py
EDAII/Lista2_LeonardoDosSantos
335dcc13cb1a854af18bccebdf0a4da727115ef5
[ "MIT" ]
null
null
null
src/selection.py
EDAII/Lista2_LeonardoDosSantos
335dcc13cb1a854af18bccebdf0a4da727115ef5
[ "MIT" ]
null
null
null
src/selection.py
EDAII/Lista2_LeonardoDosSantos
335dcc13cb1a854af18bccebdf0a4da727115ef5
[ "MIT" ]
null
null
null
import time def selectionSort(vector): start_time = time.time() for i in range(len(vector)): iMin = i for j in range(i+1, len(vector)): if(vector[iMin] > vector[j]): iMin = j vector[i], vector[iMin] = vector[iMin], vector[i] elapsed_time = time.time() ...
32.461538
66
0.575829
58
422
4.12069
0.448276
0.133891
0.200837
0
0
0
0
0
0
0
0
0.006601
0.281991
422
12
67
35.166667
0.782178
0.049763
0
0
0
0
0.0425
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.090909
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
6525e7c2b7da6dfb62a0e365b484c27d30fb8636
661
py
Python
Communicate/connect.py
david-yd-hao/Vision-RB-Robotics
c9fc812d2b08291f47f046ed1b4c97967bf9f098
[ "Apache-2.0" ]
null
null
null
Communicate/connect.py
david-yd-hao/Vision-RB-Robotics
c9fc812d2b08291f47f046ed1b4c97967bf9f098
[ "Apache-2.0" ]
1
2022-02-21T18:09:51.000Z
2022-02-21T18:09:51.000Z
Communicate/connect.py
david-yd-hao/Vision-RB-Robotics
c9fc812d2b08291f47f046ed1b4c97967bf9f098
[ "Apache-2.0" ]
null
null
null
#/usr/local/sbin/mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf from time import sleep import paho.mqtt.client as mqtt def connect(client_name = "laptop",host_name = "127.0.0.1"): client =mqtt.Client(client_name) client.connect(host_name) return client def send(client, data, topic): client.publ...
30.045455
69
0.698941
94
661
4.744681
0.425532
0.053812
0.049327
0.053812
0.06278
0.06278
0
0
0
0
0
0.021661
0.161876
661
22
70
30.045455
0.783394
0.102874
0
0
0
0
0.089376
0
0
0
0
0
0
1
0.235294
false
0
0.117647
0.058824
0.470588
0
0
0
0
null
0
0
0
0
0
0
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
6525fd8be44cd238f6ec1d1567c043313df5e5c6
552
py
Python
REDIS WITH PYTHON/STRING.py
Ajay2521/REDIS-HANDS-ON
22e896b0071d1bcb3949f5dfba4c0ec041ad5951
[ "MIT" ]
1
2020-10-02T15:00:37.000Z
2020-10-02T15:00:37.000Z
REDIS WITH PYTHON/STRING.py
maayon2521/REDIS-HANDS-ON
22e896b0071d1bcb3949f5dfba4c0ec041ad5951
[ "MIT" ]
null
null
null
REDIS WITH PYTHON/STRING.py
maayon2521/REDIS-HANDS-ON
22e896b0071d1bcb3949f5dfba4c0ec041ad5951
[ "MIT" ]
null
null
null
# importing redis module import redis # calling redis with its port number on the local machine with an object instance r = redis.Redis(host='localhost', port=6379, db=0) # printing empty line print() # setting the key and value print("Did the value is set for the specified key ? :",r.set('Name', 'Ajay')...
27.6
119
0.699275
90
552
4.288889
0.5
0.082902
0.11658
0.11399
0.093264
0
0
0
0
0
0
0.011442
0.208333
552
19
120
29.052632
0.871854
0.516304
0
0.333333
0
0
0.457983
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.666667
0
0
0
null
0
0
0
0
0
0
0
0
0
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
e8e334fe65cb450c88d769dd97ae7ac34a01681a
1,673
py
Python
generator_xmlsec_strings.py
dnet/pyxmlsec
c0b0d9269dae3a2f20e935c1b88a3fc5ca07f6db
[ "MIT" ]
3
2016-07-27T22:17:54.000Z
2019-01-26T11:42:16.000Z
generator_xmlsec_strings.py
dnet/pyxmlsec
c0b0d9269dae3a2f20e935c1b88a3fc5ca07f6db
[ "MIT" ]
6
2015-12-08T20:49:19.000Z
2019-06-04T10:06:58.000Z
generator_xmlsec_strings.py
dnet/pyxmlsec
c0b0d9269dae3a2f20e935c1b88a3fc5ca07f6db
[ "MIT" ]
8
2015-08-23T21:19:51.000Z
2020-05-31T00:33:53.000Z
#! /usr/bin/env python # # $Id$ # # PyXMLSec - Python bindings for XML Security library (XMLSec) # Automatic generation of xmlsec_strings.py with src/strings.c # # Copyright (C) 2003-2013 Valery Febvre # http://pyxmlsec.labs.libre-entreprise.org # # Author: Valery Febvre <vfebvre@easter-eggs.com> # # This is free so...
26.555556
90
0.616856
236
1,673
4.279661
0.360169
0.029703
0.039604
0.050495
0.525743
0.525743
0.525743
0.49901
0.346535
0.346535
0
0.014559
0.219964
1,673
62
91
26.983871
0.759387
0.219964
0
0.195122
0
0.02439
0.379551
0.065066
0
0
0
0
0
0
null
null
0
0.02439
null
null
0.02439
0
0
0
null
0
0
0
0
0
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
e8f3286dac4c9b46f1d20f4322574775a1b9690a
476
py
Python
user_pass/username_lists/find_usernames.py
jlreiter/SuperMarioHost
b31734f4b1c47964b6dd69c5f78a9846a75f3fcb
[ "MIT" ]
null
null
null
user_pass/username_lists/find_usernames.py
jlreiter/SuperMarioHost
b31734f4b1c47964b6dd69c5f78a9846a75f3fcb
[ "MIT" ]
null
null
null
user_pass/username_lists/find_usernames.py
jlreiter/SuperMarioHost
b31734f4b1c47964b6dd69c5f78a9846a75f3fcb
[ "MIT" ]
1
2021-02-18T02:12:48.000Z
2021-02-18T02:12:48.000Z
#!/usr/bin/python import requests import sys usernames = open(sys.argv[1], 'r') foundUsernames = [] for user in usernames: for i in range(0,50,1): payload = {'username':user.strip(), 'submit':'Search'} r = requests.post('http://mario.supermariohost.local:8180/command.php', params = payload) if ...
23.8
95
0.672269
64
476
5
0.640625
0.084375
0.13125
0.14375
0
0
0
0
0
0
0
0.022901
0.17437
476
19
96
25.052632
0.791349
0.033613
0
0
0
0
0.178649
0
0
0
0
0
0
0
null
null
0
0.153846
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
e8f71796611ca3d6453dd844cb75157f10f701a6
475
py
Python
crash/migrations/0004_auto_20170324_1521.py
i13DR/demand_manager_admin
1a2a3a258cce127a6ab9112b53fe66fa599d09f0
[ "Apache-2.0" ]
null
null
null
crash/migrations/0004_auto_20170324_1521.py
i13DR/demand_manager_admin
1a2a3a258cce127a6ab9112b53fe66fa599d09f0
[ "Apache-2.0" ]
null
null
null
crash/migrations/0004_auto_20170324_1521.py
i13DR/demand_manager_admin
1a2a3a258cce127a6ab9112b53fe66fa599d09f0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.6 on 2017-03-24 14:21 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('crash', '0001_initial'), ] operations = [ migrations.AlterField( ...
22.619048
87
0.623158
53
475
5.396226
0.792453
0.076923
0
0
0
0
0
0
0
0
0
0.05949
0.256842
475
20
88
23.75
0.750708
0.143158
0
0
1
0
0.101485
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
e8f8b4ae39c943573017e01ee3b27b251698eeab
140
py
Python
cpp2rst/global_vars.py
Algomorph/cpp2py
0febc3f923f0a72e36796e6f2932382419e2b878
[ "ECL-2.0", "Apache-2.0" ]
1
2020-06-26T13:05:11.000Z
2020-06-26T13:05:11.000Z
cpp2rst/global_vars.py
Algomorph/cpp2py
0febc3f923f0a72e36796e6f2932382419e2b878
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
cpp2rst/global_vars.py
Algomorph/cpp2py
0febc3f923f0a72e36796e6f2932382419e2b878
[ "ECL-2.0", "Apache-2.0" ]
1
2020-12-28T00:47:14.000Z
2020-12-28T00:47:14.000Z
# Global parameter examples_root = None process_type_name_ns_to_clean = None synopsis_maxlen_function = 120 synopsis_class_list = None
12.727273
36
0.821429
20
140
5.25
0.85
0
0
0
0
0
0
0
0
0
0
0.025
0.142857
140
10
37
14
0.85
0.114286
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3302fef52536752db0cbbf142962cb5c1415cb3d
3,099
py
Python
test/master/test_master.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
2
2021-01-28T15:56:50.000Z
2021-03-02T06:27:09.000Z
test/master/test_master.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
test/master/test_master.py
BenjaminHamon/BuildService
2ca12f9ae74e9cbf732229849f6cd6d13f40151a
[ "MIT" ]
null
null
null
""" Unit tests for Master """ import asyncio import logging from unittest.mock import Mock import pytest from bhamon_orchestra_master.job_scheduler import JobScheduler from bhamon_orchestra_master.master import Master from bhamon_orchestra_master.supervisor import Supervisor from ..mock_extensions import AsyncMock,...
31.622449
92
0.767667
413
3,099
5.585956
0.179177
0.062419
0.047681
0.073689
0.670134
0.670134
0.670134
0.621586
0.621586
0.621586
0
0.00791
0.143272
3,099
97
93
31.948454
0.861017
0.006776
0
0.630769
0
0
0.012921
0
0
0
0
0
0.169231
1
0
false
0
0.123077
0
0.123077
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
33044f447caa53d82837941c3caa614e8b1fd674
1,268
py
Python
backend/plugins/person_list/models.py
marksweb/django-cms-60min-demo-2021
d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4
[ "MIT" ]
null
null
null
backend/plugins/person_list/models.py
marksweb/django-cms-60min-demo-2021
d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4
[ "MIT" ]
1
2022-01-15T11:29:16.000Z
2022-01-15T22:11:45.000Z
backend/plugins/person_list/models.py
marksweb/django-cms-60min-demo-2021
d9ca83538d6c5c7a0b0e1a18ae1a15bda4c296e4
[ "MIT" ]
3
2022-01-14T15:55:00.000Z
2022-01-23T23:46:56.000Z
from cms.models.pluginmodel import CMSPlugin from django.db import models from filer.fields.image import FilerImageField from parler.models import TranslatableModel from parler.models import TranslatedFields class PersonListPluginModel(CMSPlugin): title = models.CharField(max_length=2048, blank=True) def __s...
28.818182
101
0.690852
151
1,268
5.662252
0.463576
0.052632
0.063158
0.084211
0.14386
0.053801
0
0
0
0
0
0.012245
0.227129
1,268
43
102
29.488372
0.860204
0
0
0.090909
0
0
0.129338
0
0
0
0
0
0
1
0.121212
false
0
0.151515
0.060606
0.636364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
33065fda53c03c3dd9d15f5186ae58f400930594
1,616
py
Python
kinematics/Trajectory.py
lovelykite/COSRA
fcf5d68fd6d1b1e12f921935e7f0b2d22a446062
[ "MIT" ]
null
null
null
kinematics/Trajectory.py
lovelykite/COSRA
fcf5d68fd6d1b1e12f921935e7f0b2d22a446062
[ "MIT" ]
null
null
null
kinematics/Trajectory.py
lovelykite/COSRA
fcf5d68fd6d1b1e12f921935e7f0b2d22a446062
[ "MIT" ]
null
null
null
import numpy as np class Trajectory: def __init__(self): pass @classmethod def LSPB(cls, q0, qf, tf, tb, t_step=0.07): q0 = np.array(q0) qf = np.array(qf) if np.allclose(q0, qf): t = [0.0] q_pos = [qf] return q_pos, t # Define c...
30.490566
107
0.407797
261
1,616
2.448276
0.268199
0.140845
0.169014
0.194053
0.109546
0.109546
0.093897
0.081377
0.081377
0.064163
0
0.128631
0.403465
1,616
52
108
31.076923
0.534232
0.042698
0
0.097561
0
0
0.005185
0
0
0
0
0
0.04878
1
0.04878
false
0.04878
0.02439
0
0.146341
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
33128f3c0abd6a7bfdd156075102f15af3cd238d
571
py
Python
tests/test_models.py
mgierm/djangocms_semantic_ui
3b62fb00a35120ced0d613dd4672dcfd6c8c082d
[ "MIT" ]
3
2017-04-28T18:54:17.000Z
2018-09-26T11:45:31.000Z
tests/test_models.py
mgierm/djangocms_semantic_ui
3b62fb00a35120ced0d613dd4672dcfd6c8c082d
[ "MIT" ]
null
null
null
tests/test_models.py
mgierm/djangocms_semantic_ui
3b62fb00a35120ced0d613dd4672dcfd6c8c082d
[ "MIT" ]
2
2017-06-27T14:25:10.000Z
2021-04-16T14:17:55.000Z
# -*- coding: utf-8 -*- from django.test import TestCase from djangocms_semantic_ui.models import Segment class SegmentTestCase(TestCase): def setUp(self): pass def test_models(self): segment = Segment.objects.create( label='Test', color='green', inverted...
25.954545
80
0.628722
61
571
5.754098
0.557377
0.128205
0.11396
0.119658
0
0
0
0
0
0
0
0.002353
0.255692
571
21
81
27.190476
0.823529
0.036778
0
0
0
0
0.093066
0
0
0
0
0
0.2
1
0.133333
false
0.066667
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
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
3319157e2855138ef9e783214367b04847c8741f
1,158
py
Python
main.py
satishnarasimhan/pAInt
3cf44a0265569559d0b921caf98173cc4f954107
[ "MIT" ]
null
null
null
main.py
satishnarasimhan/pAInt
3cf44a0265569559d0b921caf98173cc4f954107
[ "MIT" ]
null
null
null
main.py
satishnarasimhan/pAInt
3cf44a0265569559d0b921caf98173cc4f954107
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Fri Sep 10 15:49:49 2021 @author: Satish Narasimhan """ import matplotlib.pyplot as plt import cv2 import tensorflow_hub as hub import tensorflow as tf import numpy as np import file_path as f # Load the model from tensorflow hub model = hub.load('https://tfhub.dev/google/magen...
29.692308
100
0.753886
186
1,158
4.575269
0.456989
0.029377
0.028202
0.039953
0.148061
0.148061
0.148061
0.148061
0.148061
0.148061
0
0.030723
0.12867
1,158
39
100
29.692308
0.812686
0.323834
0
0
0
0.052632
0.114434
0
0
0
0
0
0
1
0.052632
false
0
0.315789
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
331eaa996a79ad3ba535cc8f5bc04da850e65676
323
py
Python
backend/drf_project/api/migrations/0007_remove_tag_keywords.py
JumboCode/ProjectShare
41fe2d741b94a52371384853b0ad39f506ddfd95
[ "MIT" ]
2
2021-05-26T21:07:32.000Z
2021-11-10T15:33:25.000Z
backend/drf_project/api/migrations/0007_remove_tag_keywords.py
JumboCode/ProjectShare
41fe2d741b94a52371384853b0ad39f506ddfd95
[ "MIT" ]
38
2021-04-10T18:13:32.000Z
2021-06-02T04:34:36.000Z
backend/drf_project/api/migrations/0007_remove_tag_keywords.py
JumboCode/ProjectShare
41fe2d741b94a52371384853b0ad39f506ddfd95
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-01-06 03:21 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('api', '0006_auto_20210106_0255'), ] operations = [ migrations.RemoveField( model_name='tag', name='keywords', ), ...
17.944444
47
0.585139
35
323
5.285714
0.857143
0
0
0
0
0
0
0
0
0
0
0.137168
0.30031
323
17
48
19
0.681416
0.139319
0
0
1
0
0.134058
0.083333
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
3322f27aa766ada831295200649121ce6a8d6ccb
421
py
Python
attendance/migrations/0002_auto_20180228_1406.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
1
2018-04-10T11:47:16.000Z
2018-04-10T11:47:16.000Z
attendance/migrations/0002_auto_20180228_1406.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
attendance/migrations/0002_auto_20180228_1406.py
NSYT0607/DONGKEY
83f926f22a10a28895c9ad71038c9a27d200e231
[ "MIT" ]
null
null
null
# Generated by Django 2.0.1 on 2018-02-28 05:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('attendance', '0001_initial'), ] operations = [ migrations.AlterField( model_name='event', name='absent_member', ...
22.157895
87
0.610451
45
421
5.644444
0.822222
0
0
0
0
0
0
0
0
0
0
0.061688
0.268409
421
18
88
23.388889
0.762987
0.106888
0
0
1
0
0.141711
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
332dbb708fa2c016e173c3e6c646188856120d8d
689
py
Python
201603/opencv_sample/sample_face.py
ryuichiueda/NikkeiRaspiMouse
4a0073aba5523eb0fd7be2ce724375230e989085
[ "MIT" ]
1
2015-09-27T06:43:44.000Z
2015-09-27T06:43:44.000Z
201603/opencv_sample/sample_face.py
ryuichiueda/NikkeiRaspiMouse
4a0073aba5523eb0fd7be2ce724375230e989085
[ "MIT" ]
null
null
null
201603/opencv_sample/sample_face.py
ryuichiueda/NikkeiRaspiMouse
4a0073aba5523eb0fd7be2ce724375230e989085
[ "MIT" ]
6
2017-05-24T08:13:53.000Z
2021-04-26T12:03:05.000Z
#!/usr/bin/python #vim:fileencoding=utf-8 #参考: 「python+OpenCVで顔認識をやってみる」 # http://qiita.com/wwacky/items/98d8be2844fa1b778323 import cv2, sys #画像を読み込む img = cv2.imread("/home/pi/face.jpg") #処理用に変換 gimg = cv2.cvtColor(img,cv2.cv.CV_BGR2GRAY) #顔識別用のデータをロード classifier = "/usr/share/opencv/haarcascades/haarcascade_front...
22.966667
81
0.738752
110
689
4.572727
0.6
0.011928
0.017893
0.031809
0
0
0
0
0
0
0
0.075472
0.076923
689
29
82
23.758621
0.715409
0.256894
0
0
0
0
0.204
0.132
0
0
0
0
0
0
null
null
0
0.083333
null
null
0.166667
0
0
0
null
0
0
0
0
0
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
333e66f7574c746b7f677a8bda39488b9ef20ba9
568
py
Python
wagtailcommerce/promotions/migrations/0010_auto_20190910_1353.py
wagtail-commerce/wagtail-commerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
3
2019-04-12T15:38:43.000Z
2019-09-22T10:23:20.000Z
wagtailcommerce/promotions/migrations/0010_auto_20190910_1353.py
wagtailcommerce/wagtailcommerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
null
null
null
wagtailcommerce/promotions/migrations/0010_auto_20190910_1353.py
wagtailcommerce/wagtailcommerce
308ed8348483806c16062d09a7e69ec44d9a2e73
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.5 on 2019-09-10 16:53 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('wagtailcommerce_promotions', '0009_coupon_categories'), ] operations = [ migrations.AlterField( model_name='coupon', ...
29.894737
210
0.672535
62
568
6.016129
0.758065
0
0
0
0
0
0
0
0
0
0
0.044843
0.214789
568
18
211
31.555556
0.79148
0.079225
0
0
1
0
0.301344
0.15547
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
334922a0963137ca2fb8db6777bbe4baed090507
424
py
Python
setup.py
guilhermebruzzi/pypersonalfin
180619b36ed28e90b2891a9b2b9b4708d22cbdc8
[ "MIT" ]
1
2021-12-05T17:51:00.000Z
2021-12-05T17:51:00.000Z
setup.py
guilhermebruzzi/pypersonalfin
180619b36ed28e90b2891a9b2b9b4708d22cbdc8
[ "MIT" ]
null
null
null
setup.py
guilhermebruzzi/pypersonalfin
180619b36ed28e90b2891a9b2b9b4708d22cbdc8
[ "MIT" ]
1
2021-02-21T20:07:18.000Z
2021-02-21T20:07:18.000Z
# -*- coding: utf-8 -*- from setuptools import setup setup( name='pypersonalfin', version='1.0.1', url='https://github.com/guilhermebruzzi/pypersonalfin', author='Guilherme Dantas Heynemann Bruzzi', author_email='guibruzzi@gmail.com', license='MIT', packages=['pypersonalfin'], install_r...
23.555556
59
0.617925
46
424
5.652174
0.804348
0.015385
0
0
0
0
0
0
0
0
0
0.032641
0.205189
424
17
60
24.941176
0.738872
0.049528
0
0
0
0
0.458853
0
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
334b678e0f399563c6f5863c7f07b2ea2849f14f
15,036
py
Python
tests/extension/types_/axi_/slave_readwrite_lite_simultaneous/test_types_axi_slave_readwrite_lite_simultaneous.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
232
2015-09-01T16:07:48.000Z
2022-03-28T14:53:28.000Z
tests/extension/types_/axi_/slave_readwrite_lite_simultaneous/test_types_axi_slave_readwrite_lite_simultaneous.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
34
2015-08-21T09:13:03.000Z
2022-03-21T23:52:44.000Z
tests/extension/types_/axi_/slave_readwrite_lite_simultaneous/test_types_axi_slave_readwrite_lite_simultaneous.py
jesseclin/veriloggen
a645f2c53f04e5b88213eef17779d212192ea2b5
[ "Apache-2.0" ]
46
2015-09-24T14:39:57.000Z
2022-02-23T21:59:56.000Z
from __future__ import absolute_import from __future__ import print_function import veriloggen import types_axi_slave_readwrite_lite_simultaneous expected_verilog = """ module test; reg CLK; reg RST; wire [32-1:0] sum; reg [32-1:0] myaxi_awaddr; reg [4-1:0] myaxi_awcache; reg [3-1:0] myaxi_awprot; reg m...
24.251613
108
0.606611
2,126
15,036
3.834431
0.055974
0.069676
0.011776
0.035329
0.428238
0.28631
0.240309
0.198479
0.187561
0.173332
0
0.059473
0.295491
15,036
619
109
24.290792
0.710092
0
0
0.352212
0
0
0.957569
0.049481
0
0
0
0
0.00177
1
0.00177
false
0
0.010619
0
0.012389
0.00177
0
0
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
335b983e25c9da04cba8f5526651d17960de1f08
2,680
py
Python
noronha/db/model.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
43
2021-04-14T00:41:15.000Z
2022-01-02T23:32:58.000Z
noronha/db/model.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
19
2021-04-14T00:35:21.000Z
2022-01-12T14:24:48.000Z
noronha/db/model.py
pierodesenzi/noronha
ee7cba8d0d29d0dc5484d2000e1a42c9954c20e4
[ "Apache-2.0" ]
8
2021-04-14T00:31:02.000Z
2022-01-02T23:33:08.000Z
# -*- coding: utf-8 -*- # Copyright Noronha Development Team # # 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 applica...
31.529412
92
0.673881
315
2,680
5.587302
0.415873
0.034091
0.045455
0.061364
0.282955
0.2625
0.2625
0.2625
0.210227
0.210227
0
0.002959
0.243284
2,680
84
93
31.904762
0.864892
0.226866
0
0.272727
0
0
0.101365
0
0
0
0
0.011905
0.159091
1
0.068182
false
0.045455
0.136364
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
335bde409fcb1331e3132f087c54e3195ff2f862
841
py
Python
kattis/addingwords.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
506
2018-08-22T10:30:38.000Z
2022-03-31T10:01:49.000Z
kattis/addingwords.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
13
2019-08-07T18:31:18.000Z
2020-12-15T21:54:41.000Z
kattis/addingwords.py
Ashindustry007/competitive-programming
2eabd3975c029d235abb7854569593d334acae2f
[ "WTFPL" ]
234
2018-08-06T17:11:41.000Z
2022-03-26T10:56:42.000Z
#!/usr/bin/env python2 # https://open.kattis.com/problems/addingwords a = {} b = {} while True: try: line = raw_input() except: break fs = line.split() if fs[0] == 'def': n = fs[1] v = int(fs[2]) if n in a: del(b[a[n]]) a[n] = v b[v] = n elif f...
24.735294
52
0.409037
130
841
2.638462
0.376923
0.043732
0.034985
0.040816
0.139942
0.104956
0
0
0
0
0
0.030488
0.414982
841
33
53
25.484848
0.666667
0.078478
0
0.129032
0
0
0.028461
0
0
0
0
0
0
0
null
null
0
0
null
null
0.096774
0
0
0
null
0
0
0
0
0
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
335e00f50e7886b5562d20c9be93898eff2f05dd
379
py
Python
hris/apps/employees/migrations/0012_auto_20210624_2313.py
Minedomain/hris_backend
90aab497c076c2d4ce4e05a441db0ee7a175df57
[ "MIT" ]
null
null
null
hris/apps/employees/migrations/0012_auto_20210624_2313.py
Minedomain/hris_backend
90aab497c076c2d4ce4e05a441db0ee7a175df57
[ "MIT" ]
null
null
null
hris/apps/employees/migrations/0012_auto_20210624_2313.py
Minedomain/hris_backend
90aab497c076c2d4ce4e05a441db0ee7a175df57
[ "MIT" ]
null
null
null
# Generated by Django 3.1.8 on 2021-06-24 15:13 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('employees', '0011_auto_20210624_2313'), ] operations = [ migrations.RenameField( model_name='employee', old_name='dept_role'...
19.947368
49
0.601583
41
379
5.365854
0.829268
0
0
0
0
0
0
0
0
0
0
0.115242
0.290237
379
18
50
21.055556
0.702602
0.118734
0
0
1
0
0.192771
0.069277
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
336920b1fdae84ca9fb30220f796029bdb55e87f
9,853
py
Python
dace/codegen/instrumentation/report.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
dace/codegen/instrumentation/report.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
dace/codegen/instrumentation/report.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. """ Implementation of the performance instrumentation report. """ import json import numpy as np import re class InstrumentationReport(object): @staticmethod def get_event_uuid(event): uuid = (-1, -1, -1) if 'args' in...
40.714876
79
0.376434
811
9,853
4.466091
0.171393
0.024296
0.037272
0.040585
0.280784
0.184152
0.168691
0.146052
0.101877
0.090558
0
0.015494
0.515275
9,853
241
80
40.883817
0.742881
0.038059
0
0.3
0
0
0.060129
0.00317
0
0
0
0
0
1
0.035
false
0
0.015
0.005
0.1
0.005
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
336980b47a33312c08a6f9a32e6002d76f3f15e7
800
py
Python
tests/test_GitHubUtils.py
Prodigysov/pyutil
d8faa7196ce3f9f156b49d088c97d93d25c2ec20
[ "Apache-2.0" ]
null
null
null
tests/test_GitHubUtils.py
Prodigysov/pyutil
d8faa7196ce3f9f156b49d088c97d93d25c2ec20
[ "Apache-2.0" ]
null
null
null
tests/test_GitHubUtils.py
Prodigysov/pyutil
d8faa7196ce3f9f156b49d088c97d93d25c2ec20
[ "Apache-2.0" ]
null
null
null
import os import unittest from github.GithubException import GithubException from pyutil import GitHubUtils from .TestSupport import TestSupport class test_GitHubUtils(unittest.TestCase): def test_search_repos_with_username(self): test_user = "google" test_repos_1 = GitHubUtils.search_repos("use...
30.769231
109
0.72
103
800
5.262136
0.38835
0.099631
0.121771
0.143911
0.335793
0.191882
0.191882
0.191882
0.191882
0
0
0.01506
0.17
800
25
110
32
0.801205
0.04125
0
0
0
0
0.087582
0.027451
0
0
0
0
0.1875
1
0.0625
false
0
0.3125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
336b48a9e751536fb44266ac441ced9fa2277d06
2,079
py
Python
tensorflow/python/pywrap_dlopen_global_flags.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
6
2022-02-04T18:12:24.000Z
2022-03-21T23:57:12.000Z
Lib/site-packages/tensorflow/python/pywrap_dlopen_global_flags.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2021-05-20T00:58:04.000Z
2021-05-20T00:58:04.000Z
Lib/site-packages/tensorflow/python/pywrap_dlopen_global_flags.py
shfkdroal/Robot-Learning-in-Mixed-Adversarial-and-Collaborative-Settings
1fa4cd6a566c8745f455fc3d2273208f21f88ced
[ "bzip2-1.0.6" ]
1
2022-02-08T03:53:23.000Z
2022-02-08T03:53:23.000Z
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
40.764706
81
0.738817
289
2,079
5.124567
0.515571
0.054018
0.035111
0.030385
0.082377
0.082377
0.082377
0.082377
0.082377
0.082377
0
0.004632
0.169312
2,079
50
82
41.58
0.852924
0.700818
0
0.2
0
0
0.051282
0
0
0
0
0
0
1
0.133333
false
0
0.333333
0
0.466667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
336bf850069303d8faceae1f96a6e6862a3801d5
7,057
py
Python
eracuni/data.py
zapisnicar/epsracun
0869b78d70f382d748823b6cf5430b7b7d3a67e8
[ "MIT" ]
1
2021-02-02T11:08:20.000Z
2021-02-02T11:08:20.000Z
eracuni/data.py
zapisnicar/eracuni
0869b78d70f382d748823b6cf5430b7b7d3a67e8
[ "MIT" ]
1
2021-01-17T22:14:03.000Z
2021-01-17T22:14:03.000Z
eracuni/data.py
zapisnicar/eracuni
0869b78d70f382d748823b6cf5430b7b7d3a67e8
[ "MIT" ]
1
2021-01-17T20:29:25.000Z
2021-01-17T20:29:25.000Z
""" Data module for configuration, data storage and file manipulation """ import os import sys import yaml import platform import shutil from datetime import date from pathlib import Path from typing import List, Dict, Any class Account: """ Helper class for Config Account: user_id: string ...
35.109453
106
0.607482
886
7,057
4.621896
0.240406
0.035165
0.045665
0.030769
0.258608
0.162149
0.136752
0.103541
0.103541
0.103541
0
0.007056
0.297152
7,057
200
107
35.285
0.818548
0.335837
0
0.129032
0
0
0.132597
0.047882
0
0
0
0.005
0
1
0.096774
false
0.075269
0.086022
0.010753
0.236559
0.010753
0
0
0
null
0
0
0
0
0
0
0
0
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
3370de6bb8ca0b283c35e6b8612bcc22b9dfaf62
2,768
py
Python
app/main/forms.py
YoungYJMaze/TongQu
00951b85aab549230a6f4089a838ec362a6c5126
[ "MIT" ]
2
2020-03-29T08:20:17.000Z
2020-03-29T08:20:19.000Z
app/main/forms.py
YoungYJMaze/TongQu
00951b85aab549230a6f4089a838ec362a6c5126
[ "MIT" ]
3
2020-03-24T16:39:46.000Z
2021-02-02T21:53:35.000Z
app/main/forms.py
YoungYJMaze/TongQu
00951b85aab549230a6f4089a838ec362a6c5126
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- from flask_wtf import FlaskForm from wtforms import StringField, TextAreaField, BooleanField, SelectField, \ SubmitField, FileField, SelectMultipleField, FloatField, RadioField,Label from wtforms.validators import DataRequired, Length, Email, Regexp from wtforms import ValidationError from f...
34.6
78
0.651012
285
2,768
6.259649
0.368421
0.086323
0.053251
0.053812
0.421525
0.326233
0.274664
0.243274
0.243274
0.243274
0
0.01
0.205202
2,768
79
79
35.037975
0.800909
0.007587
0
0.344262
0
0
0.057966
0.00875
0
0
0
0
0
1
0.04918
false
0
0.098361
0
0.754098
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
33729af45c564c6b242ee56ff9f3423cc58ba56e
38,031
py
Python
dodixie/api.py
parkerhoyes/dodixie
732a80bbf4ab1fa73700ad629a6d4494603e5e1f
[ "Zlib" ]
null
null
null
dodixie/api.py
parkerhoyes/dodixie
732a80bbf4ab1fa73700ad629a6d4494603e5e1f
[ "Zlib" ]
null
null
null
dodixie/api.py
parkerhoyes/dodixie
732a80bbf4ab1fa73700ad629a6d4494603e5e1f
[ "Zlib" ]
null
null
null
# License for the Dodixie project, originally found here: # https://github.com/parkerhoyes/dodixie # # Copyright (C) 2017 Parker Hoyes <contact@parkerhoyes.com> # # This software is provided "as-is", without any express or implied warranty. In # no event will the authors be held liable for any damages arising from the ...
46.210207
120
0.627462
4,961
38,031
4.731506
0.095344
0.023261
0.010906
0.013803
0.627785
0.551314
0.511481
0.477016
0.460359
0.446002
0
0.001525
0.310536
38,031
822
121
46.266423
0.893673
0.52586
0
0.470769
0
0
0.072395
0.003909
0
0
0
0
0
1
0.187692
false
0.116923
0.012308
0.006154
0.304615
0.006154
0
0
0
null
0
0
0
0
0
0
0
0
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
68286ab66bd79277c164534a9deca45fcf605025
3,287
py
Python
mopidy_avcntrl/TouchListener.py
axelv/mopidy-avcntrl
ad52afff0a1ab775bce7f4eb05d84aaf301a6977
[ "Apache-2.0" ]
null
null
null
mopidy_avcntrl/TouchListener.py
axelv/mopidy-avcntrl
ad52afff0a1ab775bce7f4eb05d84aaf301a6977
[ "Apache-2.0" ]
null
null
null
mopidy_avcntrl/TouchListener.py
axelv/mopidy-avcntrl
ad52afff0a1ab775bce7f4eb05d84aaf301a6977
[ "Apache-2.0" ]
null
null
null
# TouchListener by Axel Vanraes import Adafruit_MPR121.MPR121 as MPR121 import time import pykka # TODO: refactor this code with threading. Make subclass Listener from threading.Thread that plays the role of a button. import sys from collections import namedtuple Listener = namedtuple('Listener', ['mode','call...
28.582609
121
0.697597
433
3,287
5.127021
0.351039
0.046847
0.01982
0.034234
0.182883
0.152252
0.152252
0.152252
0.088288
0.088288
0
0.018154
0.212352
3,287
115
122
28.582609
0.83932
0.190447
0
0.164384
0
0
0.150593
0
0
0
0
0.008696
0
0
null
null
0.027397
0.068493
null
null
0.150685
0
0
0
null
0
0
0
0
0
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
6830029c7561fcdb7b6acf50f49168622fcc1c20
1,262
py
Python
speedysvc/client_server/base_classes/ServerProviderBase.py
mcyph/shmrpc
4e0e972657f677a845eb6e7acbf788535c07117a
[ "Unlicense", "MIT" ]
4
2020-02-11T04:20:57.000Z
2021-06-20T10:03:52.000Z
speedysvc/client_server/base_classes/ServerProviderBase.py
mcyph/shmrpc
4e0e972657f677a845eb6e7acbf788535c07117a
[ "Unlicense", "MIT" ]
1
2020-09-16T23:18:30.000Z
2020-09-21T10:07:22.000Z
speedysvc/client_server/base_classes/ServerProviderBase.py
mcyph/shmrpc
4e0e972657f677a845eb6e7acbf788535c07117a
[ "Unlicense", "MIT" ]
null
null
null
from speedysvc.serialisation.RawSerialisation import \ RawSerialisation class ServerProviderBase: ___init = False def __init__(self, server_methods): """ TODO!!!! =========================================================== :param server_inst: """ # Couldn't see mu...
31.55
76
0.580824
140
1,262
5.057143
0.564286
0.110169
0.072034
0
0
0
0
0
0
0
0
0
0.29794
1,262
39
77
32.358974
0.799097
0.316957
0
0
0
0
0.057039
0
0
0
0
0.025641
0.05
1
0.1
false
0
0.05
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
68332527e91ab950a57358ae06f57056881a7fd9
5,204
py
Python
src/generator/AutoRest.Python.Azure.Tests/AcceptanceTests/xms_request_clientid_tests.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
3
2018-03-20T22:36:32.000Z
2021-07-15T02:36:51.000Z
src/generator/AutoRest.Python.Azure.Tests/AcceptanceTests/xms_request_clientid_tests.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Azure.Tests/AcceptanceTests/xms_request_clientid_tests.py
yugangw-msft/AutoRest
32775a902b522e5e7fda9debb8dfc1d40cfb6de0
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------- # # Copyright (c) Microsoft Corporation. All rights reserved. # # The MIT License (MIT) # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the ""Software""),...
43.366667
116
0.734627
593
5,204
6.313659
0.357504
0.043269
0.032051
0.038729
0.430288
0.417201
0.375801
0.330395
0.315438
0.315438
0
0.054813
0.151614
5,204
119
117
43.731092
0.792978
0.25538
0
0.353846
0
0
0.163504
0.052508
0
0
0
0.008403
0.076923
0
null
null
0
0.246154
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
6834de19665d131fd27646b91304df810cfa4a64
7,565
py
Python
load.py
SteveGaukrodger/AntiXenoBGS
91ede9b1c53dd2dde18350e23f21cf38fded195c
[ "MIT" ]
2
2019-03-18T07:46:09.000Z
2020-05-24T18:44:27.000Z
load.py
SteveGaukrodger/AntiXenoBGS
91ede9b1c53dd2dde18350e23f21cf38fded195c
[ "MIT" ]
null
null
null
load.py
SteveGaukrodger/AntiXenoBGS
91ede9b1c53dd2dde18350e23f21cf38fded195c
[ "MIT" ]
null
null
null
import Tkinter as tk import sys import sqlite3 import os import json from datetime import timedelta, datetime, tzinfo from config import config import myNotebook as nb import pickle import ttk import entry_lookup from event_parser import EventParser from db_connection import DbConnection from file_finder import FileFi...
37.636816
318
0.684997
1,050
7,565
4.767619
0.246667
0.03356
0.017978
0.013983
0.301838
0.184978
0.115861
0.0835
0.069517
0.069517
0
0.014896
0.192465
7,565
201
319
37.636816
0.804551
0.014276
0
0.065359
0
0.013072
0.206428
0.003846
0
0
0
0.004975
0
0
null
null
0
0.098039
null
null
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
6838044a30a1cba8ecbccc5b40a33619a81834e3
746
py
Python
monitor/monitor/utils/models.py
reynierg/websites-monitor
afa67d65f4a3dcef11ef86b068e885689970cdd1
[ "MIT" ]
null
null
null
monitor/monitor/utils/models.py
reynierg/websites-monitor
afa67d65f4a3dcef11ef86b068e885689970cdd1
[ "MIT" ]
null
null
null
monitor/monitor/utils/models.py
reynierg/websites-monitor
afa67d65f4a3dcef11ef86b068e885689970cdd1
[ "MIT" ]
null
null
null
"""Defines the model that should match a link's metadata This file can be imported as a module and contains the following classes: * UrlModel - Defines the expected metadata associated to an URL in the input file. """ from typing import Optional from pydantic import AnyHttpUrl, BaseModel class UrlModel...
24.064516
76
0.683646
96
746
5.302083
0.614583
0.058939
0.070727
0.102161
0.223969
0.223969
0.223969
0.223969
0.223969
0.223969
0
0
0.245308
746
30
77
24.866667
0.904085
0.640751
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.857143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
683be394715d297da937443b59144fec70d575f7
9,313
py
Python
transactions-subset2.py
rlowrance/re-local-linear
ef1400102d4410ec4a2c52e62c32a433efc5ff01
[ "MIT" ]
null
null
null
transactions-subset2.py
rlowrance/re-local-linear
ef1400102d4410ec4a2c52e62c32a433efc5ff01
[ "MIT" ]
null
null
null
transactions-subset2.py
rlowrance/re-local-linear
ef1400102d4410ec4a2c52e62c32a433efc5ff01
[ "MIT" ]
null
null
null
# create files # WORKING/transactions-subset2.pickle # WORKING/transactions-subset2-counts.csv # # read file # WORKING/transactions.csv # import built-ins and libraries import numpy as np import pandas as pd import pdb import sys import cPickle as pickle import datetime # import my stuff from directory import directo...
32.224913
78
0.599377
1,176
9,313
4.579932
0.241497
0.03899
0.019309
0.015039
0.133494
0.078351
0.045303
0.023394
0.023394
0.023394
0
0.016196
0.297219
9,313
288
79
32.336806
0.806723
0.147858
0
0.062827
0
0
0.130333
0.025571
0
0
0
0
0
0
null
null
0
0.062827
null
null
0.08377
0
0
0
null
0
0
0
0
0
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
6845edda49503624f9c04a139281ab2a6f637631
2,779
py
Python
crossword/tests/test_numbered_cell.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
1
2020-06-30T06:22:31.000Z
2020-06-30T06:22:31.000Z
crossword/tests/test_numbered_cell.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
145
2020-06-02T17:33:18.000Z
2020-08-25T03:25:40.000Z
crossword/tests/test_numbered_cell.py
philhanna/crossword
db05c8301bba8b1b5f31e059d2bba2c734b0d0c0
[ "MIT" ]
null
null
null
import unittest from unittest import TestCase from crossword import NumberedCell class TestNumberedCell(TestCase): def test_just_r_and_c(self): numbered_cell = NumberedCell(1, 3, 2) expected = "NumberedCell(seq=1,r=3,c=2)" actual = str(numbered_cell) self.assertEqual(expected, ac...
33.890244
64
0.61389
395
2,779
4.187342
0.146835
0.208585
0.012696
0.016929
0.593712
0.593712
0.496977
0.459492
0.412334
0.378476
0
0.064392
0.251169
2,779
81
65
34.308642
0.730418
0
0
0.328358
0
0.044776
0.097157
0.059734
0
0
0
0
0.358209
1
0.164179
false
0
0.044776
0
0.223881
0.029851
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
684ea39a22c36652629750df3126061cf2f7b323
21,795
py
Python
mvc/models/base.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
27
2018-06-15T15:28:18.000Z
2022-03-10T12:23:50.000Z
mvc/models/base.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
22
2018-06-14T08:29:16.000Z
2021-07-05T13:33:44.000Z
mvc/models/base.py
PyXRD/pyxrd
26bacdf64f3153fa74b8caa62e219b76d91a55c1
[ "BSD-2-Clause" ]
8
2019-04-13T13:03:51.000Z
2021-06-19T09:29:11.000Z
# coding=UTF-8 # ex:ts=4:sw=4:et=on # ------------------------------------------------------------------------- # Copyright (C) 2014 by Mathijs Dumon <mathijs dot dumon at gmail dot com> # Copyright (C) 2005 by Roberto Cavada <roboogle@gmail.com> # # mvc is a framework derived from the original pygtkmvc framework #...
40.891182
116
0.571324
2,347
21,795
5.06732
0.172135
0.024973
0.022871
0.021189
0.46397
0.411755
0.372572
0.3122
0.282687
0.24939
0
0.001594
0.337876
21,795
532
117
40.968045
0.822535
0.255059
0
0.446945
0
0
0.062198
0.006272
0
0
0
0
0.022508
1
0.07717
false
0.093248
0.048232
0.003215
0.209003
0
0
0
0
null
0
0
0
0
0
0
0
0
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
68664349963ed6253b4a7a998060997cc30c6f04
303
py
Python
flarmnet/reader.py
Turbo87/flarmnet.py
511d2d004f06d01933fea6ce383ebfcadca45c39
[ "Unlicense" ]
2
2016-06-21T18:35:28.000Z
2016-10-12T12:21:01.000Z
flarmnet/reader.py
Turbo87/flarmnet.py
511d2d004f06d01933fea6ce383ebfcadca45c39
[ "Unlicense" ]
4
2018-05-13T14:51:25.000Z
2021-06-25T15:14:58.000Z
flarmnet/reader.py
Turbo87/flarmnet.py
511d2d004f06d01933fea6ce383ebfcadca45c39
[ "Unlicense" ]
1
2018-05-13T15:07:13.000Z
2018-05-13T15:07:13.000Z
from flarmnet.record import Record class Reader: def __init__(self, file): self.file = file def read(self): for line in self.file: # Valid records have at least 172 characters if len(line) < 172: continue yield Record(line)
21.642857
56
0.564356
37
303
4.513514
0.675676
0.143713
0
0
0
0
0
0
0
0
0
0.031414
0.369637
303
13
57
23.307692
0.842932
0.138614
0
0
0
0
0
0
0
0
0
0
0
1
0.222222
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
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
6866938fa060cfb7fc1c09c3f743e3f80bfb7041
71,408
pyp
Python
SimpleLoopSelectionEdge.pyp
youdiaozi/SimpleLoopSelection
0228d56042c98b59971129a85b6f26d9d32b1b6c
[ "MIT" ]
1
2020-01-28T13:52:10.000Z
2020-01-28T13:52:10.000Z
SimpleLoopSelectionEdge.pyp
youdiaozi/SimpleLoopSelection
0228d56042c98b59971129a85b6f26d9d32b1b6c
[ "MIT" ]
null
null
null
SimpleLoopSelectionEdge.pyp
youdiaozi/SimpleLoopSelection
0228d56042c98b59971129a85b6f26d9d32b1b6c
[ "MIT" ]
1
2020-01-28T15:58:29.000Z
2020-01-28T15:58:29.000Z
import c4d import os from c4d import gui, plugins, bitmaps #be sure to use a unique ID obtained from https://plugincafe.maxon.net/c4dpluginid_cp PLUGIN_ID = 1053305 #for GeLoadString(IDS IDM 无法以c4d.的形式调用?) # Control IDs (1001+) ID_SIMPLELOOPSELECTIONEDGE_TIPS1 = 1001 ID_SIMPLELOOPSELECTIONEDGE_TIP...
42.20331
222
0.536971
5,735
71,408
6.60959
0.135833
0.008864
0.006674
0.017939
0.590856
0.533662
0.494275
0.465414
0.442357
0.414446
0
0.028443
0.372241
71,408
1,692
223
42.20331
0.817119
0.107019
0
0.673469
0
0
0.019291
0.000468
0
0
0
0
0
0
null
null
0.006494
0.002783
null
null
0.018553
0
0
0
null
0
0
0
0
0
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
6867d73de95624e6cf417bb42337c12e883218e3
8,405
py
Python
treconomics_project/treconomics/experiment_configuration.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
1
2021-07-20T01:58:22.000Z
2021-07-20T01:58:22.000Z
treconomics_project/treconomics/experiment_configuration.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
null
null
null
treconomics_project/treconomics/experiment_configuration.py
leifos/treconomics
28eeae533cbe92a717b1d552efe57485f301fa37
[ "MIT" ]
null
null
null
__author__ = 'leif' import os import socket import logging import logging.config import logging.handlers from autocomplete_trie import AutocompleteTrie from ifind.search.engines.whooshtrec import Whooshtrec from experiment_setup import ExperimentSetup work_dir = os.getcwd() # when deployed this needs to match up with...
36.543478
129
0.69649
880
8,405
6.5
0.228409
0.015909
0.017483
0.022028
0.543706
0.487063
0.477622
0.432517
0.388636
0.38042
0
0.058101
0.137894
8,405
229
130
36.703057
0.7313
0.051993
0
0.475936
0
0
0.460485
0.18545
0
0
0
0
0
0
null
null
0
0.042781
null
null
0.02139
0
0
0
null
0
0
0
0
0
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
686d285f74b362fae915d8c0a293ba76bfaebd0e
734
py
Python
writing_helper_funcs.py
param-b/USC-CSCI-Projects
fd707483c619553a8cf858332774411917f5a017
[ "MIT" ]
null
null
null
writing_helper_funcs.py
param-b/USC-CSCI-Projects
fd707483c619553a8cf858332774411917f5a017
[ "MIT" ]
null
null
null
writing_helper_funcs.py
param-b/USC-CSCI-Projects
fd707483c619553a8cf858332774411917f5a017
[ "MIT" ]
null
null
null
import random import time import math from copy import deepcopy def readInput(n, path="input.txt"): # Taken from host.py with open(path, 'r') as f: lines = f.readlines() piece_type = int(lines[0]) last_game_field = [[int(x) for x in line.rstrip('\n')] for line in lines[1:n+1...
24.466667
89
0.558583
112
734
3.589286
0.428571
0.089552
0.059701
0.079602
0.308458
0.218905
0.218905
0.218905
0.218905
0.218905
0
0.015414
0.292916
734
29
90
25.310345
0.759152
0.050409
0
0
0
0
0.051205
0
0
0
0
0
0
1
0.105263
false
0.105263
0.210526
0
0.368421
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
686e15da87fced7de3c84ae274f386f866de647e
1,859
py
Python
tests/UnitTests.py
MattBussing/DistancePi
23b8eca8b8e5cd9f619639cadd06e6f8b194fddb
[ "MIT" ]
null
null
null
tests/UnitTests.py
MattBussing/DistancePi
23b8eca8b8e5cd9f619639cadd06e6f8b194fddb
[ "MIT" ]
null
null
null
tests/UnitTests.py
MattBussing/DistancePi
23b8eca8b8e5cd9f619639cadd06e6f8b194fddb
[ "MIT" ]
null
null
null
# This is the experimental testing suite for this app import json import re import sys import unittest import requests from main import Device from custom_threads import MyThread # TODO delete all the messages added class TestAdd(unittest.TestCase): url = 'https://distance-pi.herokuapp.com' postUrl = url ...
28.6
75
0.600323
217
1,859
5.059908
0.373272
0.081967
0.030055
0.054645
0.238616
0.238616
0.238616
0.157559
0.157559
0.157559
0
0
0.255514
1,859
64
76
29.046875
0.793353
0.055944
0
0.173913
0
0
0.134209
0.03084
0
0
0
0.015625
0.065217
1
0.130435
false
0
0.152174
0.043478
0.478261
0.108696
0
0
0
null
0
0
0
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
687d57490245d46c08bd758f389e766e59036f9b
9,346
py
Python
python/svm2classcuda.py
mhaut/gpusvm
342e94634446c4561dc684cd18748302722038d8
[ "BSD-3-Clause" ]
11
2015-06-02T22:15:52.000Z
2022-03-28T21:47:34.000Z
python/svm2classcuda.py
niitsuma/gpusvm
342e94634446c4561dc684cd18748302722038d8
[ "BSD-3-Clause" ]
null
null
null
python/svm2classcuda.py
niitsuma/gpusvm
342e94634446c4561dc684cd18748302722038d8
[ "BSD-3-Clause" ]
6
2015-10-05T08:46:00.000Z
2019-04-06T13:35:58.000Z
#!/usr/bin/env python import uuid import subprocess import shlex import csv import sys import time from sklearn.base import BaseEstimator,RegressorMixin, ClassifierMixin from sklearn.datasets import load_svmlight_file,dump_svmlight_file import libsvm import libsvm.svmutil import numpy as np import scipy.sparse import...
31.574324
156
0.57875
1,305
9,346
4.013793
0.268199
0.018709
0.016037
0.014318
0.194731
0.176594
0.103284
0.092593
0.092593
0.059565
0
0.013276
0.298844
9,346
295
157
31.681356
0.786052
0.110957
0
0.174419
0
0.005814
0.09818
0.005724
0
0
0
0.00339
0
0
null
null
0
0.098837
null
null
0.005814
0
0
0
null
0
0
0
0
0
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
688184b4d5b5f7ff9ee2df7c0c71d218d15bca62
3,023
py
Python
code/python/archive/c0117_find_paired_end.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0117_find_paired_end.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
code/python/archive/c0117_find_paired_end.py
jesnyder/MeasuredStress
8009529da326a66733c26983cc59af8619f6cb42
[ "MIT" ]
null
null
null
from c0101_retrieve_ref import retrieve_ref from c0101_retrieve_ref import retrieve_ref_color from c0101_retrieve_ref import retrieve_sensor_unit from c0102_timestamp import timestamp_source from c0103_trim_record_to_max import trim_record_to_max from c0104_plot_timestamp import plot_timestamp from c0105_find_records i...
34.352273
95
0.685412
380
3,023
5.215789
0.313158
0.048436
0.027245
0.030272
0.152371
0.10999
0.037336
0
0
0
0
0.027074
0.242474
3,023
87
96
34.747126
0.838428
0.179623
0
0
0
0
0.08449
0
0
0
0
0
0
1
0.020408
false
0
0.408163
0
0.428571
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
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
6883b7ca8c28122dfed18b790763204445b0e68e
678
py
Python
DecryptLogin/modules/clients/fishc.py
hedou/DecryptLogin
ff86a5d378c8a42d1caebbb7482658a95053f716
[ "Apache-2.0" ]
null
null
null
DecryptLogin/modules/clients/fishc.py
hedou/DecryptLogin
ff86a5d378c8a42d1caebbb7482658a95053f716
[ "Apache-2.0" ]
null
null
null
DecryptLogin/modules/clients/fishc.py
hedou/DecryptLogin
ff86a5d378c8a42d1caebbb7482658a95053f716
[ "Apache-2.0" ]
null
null
null
''' Function: 鱼C论坛客户端 Author: Charles 微信公众号: Charles的皮卡丘 更新日期: 2022-03-11 ''' import re from .baseclient import BaseClient '''鱼C论坛客户端''' class FishCClient(BaseClient): def __init__(self, reload_history=True, **kwargs): super(FishCClient, self).__init__(website_name='fishc', reload_history=...
26.076923
104
0.648968
75
678
5.68
0.653333
0.091549
0
0
0
0
0
0
0
0
0
0.016729
0.20649
678
26
105
26.076923
0.775093
0.125369
0
0
0
0
0.106033
0.043876
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.583333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
688a40bb36e6de536aed64c321d387f6b806e786
465
py
Python
primality/__init__.py
farhan369/primality
5a9698e6c94ebf54c818fabb95f93831bd73d6dd
[ "MIT" ]
9
2020-10-01T21:31:02.000Z
2022-02-22T22:59:07.000Z
primality/__init__.py
farhan369/primality
5a9698e6c94ebf54c818fabb95f93831bd73d6dd
[ "MIT" ]
19
2020-10-01T21:29:42.000Z
2021-03-23T03:12:29.000Z
primality/__init__.py
farhan369/primality
5a9698e6c94ebf54c818fabb95f93831bd73d6dd
[ "MIT" ]
13
2020-10-02T01:42:38.000Z
2021-06-14T04:59:53.000Z
import sys py_ver = sys.version_info if py_ver.minor < 8 or py_ver.major < 3: msg = """ Primality requires Python >= 3.8 to run Once you have Python 3.8 or greater installed you can use Primality: 1. Create and activate venv: python3 -m venv venv source venv/bin/activate 2. Install ...
29.0625
76
0.668817
71
465
4.323944
0.690141
0.04886
0.052117
0
0
0
0
0
0
0
0
0.028571
0.247312
465
15
77
31
0.848571
0
0
0
0
0
0.737634
0
0
0
0
0
0
1
0
false
0
0.071429
0
0.071429
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
68920bea7154950db0385a48bb67fda03069a568
1,523
py
Python
src/api/api_lists/common/security.py
rrickgauer/lists
371de6af332789ef386392fd24857702794d05a6
[ "Apache-2.0" ]
null
null
null
src/api/api_lists/common/security.py
rrickgauer/lists
371de6af332789ef386392fd24857702794d05a6
[ "Apache-2.0" ]
67
2021-12-14T22:30:56.000Z
2022-03-15T18:28:27.000Z
src/api/api_lists/common/security.py
rrickgauer/lists
371de6af332789ef386392fd24857702794d05a6
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations import flask from functools import wraps import pymysql #------------------------------------------------------ # Verifies that: # - client request has basic authentication header fields # - the credentials are correct #------------------------------------------------------ def ...
28.203704
105
0.550886
171
1,523
4.842105
0.467836
0.078502
0.09058
0
0
0
0
0
0
0
0
0.005952
0.22784
1,523
53
106
28.735849
0.698129
0.405778
0
0
0
0
0.075536
0
0
0
0
0
0
1
0.125
false
0.166667
0.166667
0
0.458333
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
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
689240a8842617257827ece9953b0e1fc0be8ca7
1,846
py
Python
lyrics_generator.py
RitikRajSharma/Lyrics-generation-using-Markrov-chain
1d36a507f48be2773b052eeed6db15f226769485
[ "Apache-2.0" ]
null
null
null
lyrics_generator.py
RitikRajSharma/Lyrics-generation-using-Markrov-chain
1d36a507f48be2773b052eeed6db15f226769485
[ "Apache-2.0" ]
null
null
null
lyrics_generator.py
RitikRajSharma/Lyrics-generation-using-Markrov-chain
1d36a507f48be2773b052eeed6db15f226769485
[ "Apache-2.0" ]
null
null
null
def generateTable(data,k=4): T = {} for i in range(len(data)-k): X = data[i:i+k] Y = data[i+k] #print("X %s and Y %s "%(X,Y)) if T.get(X) is None: T[X] = {} T[X][Y] = 1 else: if T[X].get(Y) is None: ...
22.240964
62
0.53467
257
1,846
3.766537
0.311284
0.010331
0.009298
0.012397
0.016529
0
0
0
0
0
0
0.014563
0.330444
1,846
82
63
22.512195
0.768608
0.072589
0
0.166667
1
0
0.024631
0
0
0
0
0
0
1
0.111111
false
0
0.037037
0
0.277778
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
689bc55537385ee0a8188c7d1c4c8a7287f1ed77
350
py
Python
ansible/filter_plugins/utilities.py
Donearm/arch-ansible
84fa5979f9dba3db1f49210b78eac6f85be72b05
[ "MIT" ]
2
2020-04-10T10:02:42.000Z
2021-10-16T12:55:25.000Z
ansible/filter_plugins/utilities.py
Donearm/arch-ansible
84fa5979f9dba3db1f49210b78eac6f85be72b05
[ "MIT" ]
null
null
null
ansible/filter_plugins/utilities.py
Donearm/arch-ansible
84fa5979f9dba3db1f49210b78eac6f85be72b05
[ "MIT" ]
null
null
null
class FilterModule: def filters(self): return { 'user_home': self.user_home } def user_home(self, d, username): for user in d["results"]: if user["item"] == username: return user["home"] return ValueError("Cannot find the home directory f...
26.923077
88
0.56
40
350
4.825
0.525
0.165803
0.145078
0
0
0
0
0
0
0
0
0
0.325714
350
12
89
29.166667
0.817797
0
0
0
0
0
0.188571
0
0
0
0
0
0
1
0.2
false
0
0
0.1
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
689ea8cbd525a204ab659de471bba1e4b7190104
4,108
py
Python
msal/authority.py
chlowell/microsoft-authentication-library-for-python
0b1e9027ebcf0eca366ad1419bd159eb55430019
[ "MIT" ]
1
2022-01-10T07:08:22.000Z
2022-01-10T07:08:22.000Z
msal/authority.py
roederja/microsoft-authentication-library-for-python
4c5245836452bc9331b1a992ebe70ecdf9afd737
[ "MIT" ]
null
null
null
msal/authority.py
roederja/microsoft-authentication-library-for-python
4c5245836452bc9331b1a992ebe70ecdf9afd737
[ "MIT" ]
null
null
null
import re import requests from .exceptions import MsalServiceError WORLD_WIDE = 'login.microsoftonline.com' # There was an alias login.windows.net WELL_KNOWN_AUTHORITY_HOSTS = set([ WORLD_WIDE, 'login.chinacloudapi.cn', 'login-us.microsoftonline.com', 'login.microsoftonline.us', 'login.microsof...
43.242105
82
0.675268
470
4,108
5.740426
0.368085
0.061156
0.068199
0.01705
0.101557
0.073388
0.043736
0.043736
0.043736
0
0
0.00437
0.220058
4,108
94
83
43.702128
0.837703
0.229552
0
0.09375
0
0
0.210578
0.084685
0
0
0
0.010638
0
1
0.078125
false
0
0.046875
0
0.203125
0
0
0
0
null
0
0
0
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
68a6e46c16c29c456f5bbacdf35407d529aadc16
1,068
py
Python
src/get_more_features/get_number_posts.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_more_features/get_number_posts.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
src/get_more_features/get_number_posts.py
kashev/reddit-reliability
6d92486019b9264d2b7bfd51912ef257fc6088ae
[ "MIT" ]
null
null
null
#!/usr/bin/env python ## -*- coding: utf-8 -*- # reddit-reliability import pymongo from pymongo import MongoClient def main(): mongo_client = MongoClient('mongodb://cs598tar:cs598tar@' '107.170.215.176:27017') reddit_data = mongo_client.reddit_data user_data = reddit_data.u...
28.105263
76
0.63015
125
1,068
5.048
0.48
0.07607
0.123613
0.057052
0
0
0
0
0
0
0
0.031686
0.261236
1,068
37
77
28.864865
0.768061
0.057116
0
0
0
0
0.112662
0.048853
0
0
0
0
0
0
null
null
0
0.074074
null
null
0.037037
0
0
0
null
0
0
0
0
0
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
68aa3c298d4ae6a3d954f5f76fc02860898f38f1
670
py
Python
DFS BFS/Leetcode 364. Nested List Weight Sum II.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
DFS BFS/Leetcode 364. Nested List Weight Sum II.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
DFS BFS/Leetcode 364. Nested List Weight Sum II.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def depthSumInverse(self, nestedList: List[NestedInteger]) -> int: dic = {} level = 0 q = collections.deque() q.append(nestedList) res = 0 while q: size = len(q) level += 1 sums = 0 for _ in range(size): ...
29.130435
70
0.392537
67
670
3.910448
0.552239
0.061069
0
0
0
0
0
0
0
0
0
0.015106
0.50597
670
23
71
29.130435
0.776435
0
0
0
0
0
0
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
68acac55a9b0daa5d4f6902f9f9eafee536c0851
1,057
py
Python
delta_node/crypto/ecdhe/ecdhe.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
4
2021-07-22T01:11:15.000Z
2022-03-17T03:26:20.000Z
delta_node/crypto/ecdhe/ecdhe.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
10
2021-09-13T09:55:02.000Z
2022-03-23T09:41:26.000Z
delta_node/crypto/ecdhe/ecdhe.py
delta-mpc/delta-node
674fc61f951e41ed353597f93ca6ea6bc74a102b
[ "Apache-2.0" ]
null
null
null
from typing import Tuple from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives.asymmetric import ec from ... import serialize __all__ = ["generate_key_pair", "generate_shared_key"] def generate_key_pair(curve: ec.EllipticCurve) -> Tuple[bytes, bytes]: priv_key = e...
30.2
79
0.754967
142
1,057
5.302817
0.330986
0.046481
0.058433
0.084993
0
0
0
0
0
0
0
0.006674
0.14948
1,057
34
80
31.088235
0.830923
0
0
0
1
0
0.034059
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
68b06137fda3e0868c46c12d26c13ad52e95d44c
4,489
py
Python
Application_Server/databaser.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
1
2018-03-29T09:55:32.000Z
2018-03-29T09:55:32.000Z
Application_Server/databaser.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
null
null
null
Application_Server/databaser.py
atreanor/OnYourBike
2fcec795a46ec3f28f2bc2727ab2f679c7ddcbd0
[ "BSD-2-Clause" ]
1
2018-04-16T16:11:51.000Z
2018-04-16T16:11:51.000Z
# coding=utf-8 import MySQLdb from time import sleep import mysql.connector def connector(): """ method to make a connection with database """ global cnx while True: try: cnx = mysql.connector.connect(user='', password='', host="o...
37.722689
250
0.550234
535
4,489
4.418692
0.248598
0.01692
0.019036
0.01692
0.534687
0.508883
0.508883
0.505499
0.501692
0.469543
0
0.002632
0.323012
4,489
118
251
38.042373
0.775255
0.077968
0
0.310345
0
0.011494
0.316688
0.056211
0
0
0
0
0
1
0.057471
false
0.08046
0.034483
0
0.091954
0.126437
0
0
0
null
0
0
0
0
0
0
0
0
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
d7a3d0de6d54f0baf1ecc93e8e2df33793792614
11,003
py
Python
JYTools/JYWorker/help.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
JYTools/JYWorker/help.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
3
2018-01-24T08:16:55.000Z
2018-01-30T06:55:59.000Z
JYTools/JYWorker/help.py
meisanggou/Tools
66acd710e4227a3a35acf3b804ce12f1de518912
[ "MIT" ]
null
null
null
#! /usr/bin/env python # coding: utf-8 import sys from JYTools.JYWorker._config import RedisWorkerConfig, WorkerConfig if sys.version_info[0] == 3: raw_input = input """ add in version 0.8.7 """ redis_host_input = "please input the redis_host, need the format like 192.168.0.1, default localhost" redis_password_inp...
52.645933
120
0.588294
1,425
11,003
4.160702
0.083509
0.095632
0.057345
0.023613
0.696913
0.651543
0.61039
0.597234
0.565694
0.530781
0
0.013229
0.313006
11,003
208
121
52.899038
0.771134
0.003181
0
0.590909
0
0.020202
0.155161
0.010149
0
0
0
0
0
1
0.005051
false
0.070707
0.010101
0
0.020202
0.010101
0
0
0
null
0
0
0
0
0
0
0
0
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
d7a9338248ba0e3046e09f1b451b8713888ec592
2,911
py
Python
tools/test_featureMatching_RealTime.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
4
2017-06-03T02:01:46.000Z
2020-02-22T14:57:15.000Z
tools/test_featureMatching_RealTime.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
null
null
null
tools/test_featureMatching_RealTime.py
chaowu2009/stereo-vo
56ce2295c80935016d015f72ebc7f81c5ee8d898
[ "MIT" ]
1
2019-09-29T13:33:14.000Z
2019-09-29T13:33:14.000Z
import numpy as np import cv2 from loadYamlData import * data = loadYamlData("cam_left_1.yml") K = data["K"] D = data["D"] """ data = loadYamlData("cam_stereo_1.yml") K1 = data["K1"] D1 = data["D1"] K2 = data["K2"] D2 = data["D2"] R = data["R"] T = data["T"] E = data["E"] """ focal = 837.69 pp = (332.9648, 220.3798) ...
25.761062
74
0.629337
400
2,911
4.55
0.4
0.017582
0.026374
0.012088
0.047253
0.047253
0.047253
0
0
0
0
0.06186
0.2281
2,911
112
75
25.991071
0.748109
0.242528
0
0.032787
0
0
0.044357
0
0
0
0.001971
0
0
0
null
null
0
0.04918
null
null
0.065574
0
0
0
null
0
0
0
0
0
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
d7abbfb6e476d6b81d7f4827b1719916c74c36e6
396
py
Python
LeetCode/1-1000/501-600/551-575/557. Reverse Words in a String III/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/501-600/551-575/557. Reverse Words in a String III/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
LeetCode/1-1000/501-600/551-575/557. Reverse Words in a String III/solution-python.py
adubois85/coding_challenge_websites
7867a05847a216661eff3b24b1cb1480fb7d3030
[ "Apache-2.0" ]
null
null
null
class Solution: def reverseWords(self, s: str) -> str: # Using Python's built-in string manipulation methods # Split the string into words at the spaces, reverse and join the # individual words, then rejoin the words with a space s = s.split(' ') for i, word in enumerate(s): ...
39.6
73
0.598485
55
396
4.309091
0.654545
0.016878
0
0
0
0
0
0
0
0
0
0
0.295455
396
9
74
44
0.849462
0.424242
0
0
0
0
0.008929
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d7ad0d9168c9b667c0f823a76a2fc58cbedd69a3
6,177
py
Python
metadeploy/tests/consumers.py
shibinkunnath/MetaDeploy
0e1bfa1460279f6ab30b1e56b67a4ad78b1e7c94
[ "BSD-3-Clause" ]
null
null
null
metadeploy/tests/consumers.py
shibinkunnath/MetaDeploy
0e1bfa1460279f6ab30b1e56b67a4ad78b1e7c94
[ "BSD-3-Clause" ]
null
null
null
metadeploy/tests/consumers.py
shibinkunnath/MetaDeploy
0e1bfa1460279f6ab30b1e56b67a4ad78b1e7c94
[ "BSD-3-Clause" ]
null
null
null
import pytest from channels.testing import WebsocketCommunicator from ..api.models import Job, PreflightResult from ..api.push import ( notify_org_result_changed, notify_post_job, preflight_completed, user_token_expired, ) from ..api.serializers import JobSerializer, OrgSerializer, PreflightResultSeria...
31.840206
88
0.71151
671
6,177
6.281669
0.159463
0.116963
0.074021
0.075919
0.70344
0.697509
0.653855
0.636536
0.636536
0.609015
0
0.001183
0.179051
6,177
193
89
32.005181
0.830014
0.006476
0
0.519737
0
0
0.102689
0
0
0
0
0
0.131579
1
0.013158
false
0
0.039474
0
0.052632
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
d7ae5c190e8d9295a07589a284c41ef2ee7c3d89
12,251
py
Python
make_workflow.py
adehecq/make_workflow
6847110b96f2fb680f64fa7f46304a88cbb0e3da
[ "MIT" ]
2
2020-02-04T11:57:11.000Z
2020-09-25T13:17:33.000Z
make_workflow.py
adehecq/make_workflow
6847110b96f2fb680f64fa7f46304a88cbb0e3da
[ "MIT" ]
2
2020-12-08T16:43:34.000Z
2020-12-08T16:47:32.000Z
make_workflow.py
adehecq/make_workflow
6847110b96f2fb680f64fa7f46304a88cbb0e3da
[ "MIT" ]
null
null
null
#!/bin/env python # # Utilities to generate an automated workflow with GNU make # makefile_init is used to initialize the make, then makefile_append # or makefile_secondary to add commands and makefile_run to run the workflow. # Amaury Dehecq # 03/2019 import os import sys from tempfile import NamedTemporaryFile impor...
34.412921
207
0.573749
1,632
12,251
4.256127
0.199142
0.019868
0.018716
0.009502
0.316873
0.290527
0.275986
0.241578
0.237547
0.237547
0
0.005799
0.324382
12,251
355
208
34.509859
0.833152
0.397845
0
0.342857
1
0.011429
0.097459
0.010396
0
0
0
0
0
1
0.057143
false
0.005714
0.034286
0
0.131429
0.08
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
d7b135faabdd0fdd61ba0a9b225caf97166bcc65
255
py
Python
scripts/similarity.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
null
null
null
scripts/similarity.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
19
2021-11-01T13:56:31.000Z
2021-11-30T16:20:46.000Z
scripts/similarity.py
nirmalhk7/veronica-cli
512d61d490b9c0ff2e2c745fe2664d89fde01a92
[ "MIT" ]
null
null
null
import pickle import spacy nlp= pickle.load(open("veronica/data/en_core_web_md","rb")) nlp=spacy.load("en_core_web_md") while True: d1= nlp(input("S1 = ")) d2= nlp(input("S2 = ")) print("{} {} || {}".format(d1.ents,d2.ents,d1.similarity(d2)))
28.333333
66
0.643137
41
255
3.853659
0.585366
0.075949
0.113924
0.139241
0
0
0
0
0
0
0
0.036036
0.129412
255
9
66
28.333333
0.675676
0
0
0
0
0
0.253906
0.109375
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d7b701af34b6ae35bb1d3f319bd04ea20750c4f8
574
py
Python
examples/alias.py
wyfo/apimodel
99e6b23504e8ca775fda9dfa93c4e350211c1b8a
[ "MIT" ]
118
2020-05-24T20:22:27.000Z
2022-03-23T23:04:50.000Z
examples/alias.py
wyfo/apimodel
99e6b23504e8ca775fda9dfa93c4e350211c1b8a
[ "MIT" ]
89
2021-02-26T14:22:41.000Z
2022-03-30T22:17:06.000Z
examples/alias.py
wyfo/apimodel
99e6b23504e8ca775fda9dfa93c4e350211c1b8a
[ "MIT" ]
13
2020-12-24T22:43:50.000Z
2022-03-13T15:03:44.000Z
from dataclasses import dataclass, field from apischema import alias, deserialize, serialize from apischema.json_schema import deserialization_schema @dataclass class Foo: class_: str = field(metadata=alias("class")) assert deserialization_schema(Foo) == { "$schema": "http://json-schema.org/draft/2020-12/s...
27.333333
62
0.679443
64
574
6.03125
0.46875
0.067358
0
0
0
0
0
0
0
0
0
0.012146
0.139373
574
20
63
28.7
0.769231
0
0
0
0
0
0.254355
0
0
0
0
0
0.2
1
0
true
0
0.2
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d7bc5968f26117c7be18ca2f5b97e117f4ac4fc4
1,050
py
Python
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
4,812
2015-01-02T19:38:10.000Z
2022-03-27T12:42:24.000Z
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
11,789
2015-01-05T04:50:15.000Z
2022-03-31T23:39:19.000Z
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
medismailben/llvm-project
e334a839032fe500c3bba22bf976ab7af13ce1c1
[ "Apache-2.0" ]
2,543
2015-01-01T11:18:36.000Z
2022-03-22T21:32:36.000Z
#!/usr/bin/env python import sys if len(sys.argv) != 2: raise ValueError("unexpected number of args") if sys.argv[1] == "--gtest_list_tests": print("""\ Running main() from gtest_main.cc FirstTest. subTestA subTestB ParameterizedTest/0. subTest ParameterizedTest/1. subTest""") sys.exit(0) elif no...
26.923077
67
0.651429
152
1,050
4.434211
0.394737
0.071217
0.047478
0.059347
0.323442
0.323442
0.175074
0.083086
0
0
0
0.019977
0.189524
1,050
38
68
27.631579
0.772033
0.019048
0
0.151515
0
0
0.500486
0.052478
0
0
0
0
0
1
0
false
0.121212
0.030303
0
0.030303
0.242424
0
0
0
null
0
0
0
0
0
0
0
0
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
d7c057f7bcfb38b8c584758b4a5bfa068e6033cf
408
py
Python
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
setup.py
tww-software/py_gps_nmea
8295d146014d4e8636e7ca05f7e843f023c67e45
[ "MIT" ]
null
null
null
from setuptools import setup setup(name='pygpsnmea', version='2021.2', description='a Python 3 GPS NMEA 0183 decoder', author='Thomas W Whittam', url='https://github.com/tww-software/py_gps_nmea', license='MIT', packages=['pygpsnmea', 'pygpsnmea.sentences', 'pygpsnmea.gui'], ...
25.5
69
0.659314
49
408
5.367347
0.877551
0.053232
0
0
0
0
0
0
0
0
0
0.030675
0.20098
408
15
70
27.2
0.776074
0
0
0
0
0
0.388206
0
0
0
0
0
0
1
0
true
0
0.083333
0
0.083333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
d7c61dcc2dd7d0d9bf0e0e1b1455375251bf2b5f
16,970
py
Python
eskypl_tests.py
dankon/eskypl_tests
39d24cd741065696a055e3b9060b8c86764767ec
[ "MIT" ]
null
null
null
eskypl_tests.py
dankon/eskypl_tests
39d24cd741065696a055e3b9060b8c86764767ec
[ "MIT" ]
null
null
null
eskypl_tests.py
dankon/eskypl_tests
39d24cd741065696a055e3b9060b8c86764767ec
[ "MIT" ]
null
null
null
#-*- coding: utf-8 -*- #!/usr/bin/env python """ This is a simple script for tests esky.pl website functionality by Selenium/Webdriver Python module. """ from datetime import date from time import sleep from dateutil.relativedelta import relativedelta from selenium import webdriver from selenium.webdriver.support.wai...
50.058997
111
0.64779
1,989
16,970
5.201106
0.173957
0.045723
0.054036
0.032866
0.514355
0.458386
0.38115
0.331078
0.311358
0.262929
0
0.012724
0.245138
16,970
339
112
50.058997
0.794848
0.081615
0
0.167331
0
0
0.245287
0.09824
0
0
0
0.0059
0.111554
0
null
null
0.003984
0.035857
null
null
0.071713
0
0
0
null
0
0
0
0
0
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
d7ca0f24439232701ac2b358bd4940f578bea672
1,510
py
Python
d1/stack_with_two_queues.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/stack_with_two_queues.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
d1/stack_with_two_queues.py
jwbat/python-datastructures
82ff91f1ee8c76a382bd5d43cdefe4ffcde00528
[ "MIT" ]
null
null
null
''' Stack implemented using two queues. ''' from queue import Queue class StackWithTwoQueues: def __init__(self): self.queue1 = Queue() self.queue2 = Queue() self.size = self.get_size() def is_empty(self): return self.size == 0 def get_size(self): return self.queue...
23.230769
82
0.580795
197
1,510
4.304569
0.28934
0.153302
0.049528
0.060142
0.370283
0.345519
0.183962
0.183962
0.183962
0
0
0.03321
0.282119
1,510
64
83
23.59375
0.749077
0.023179
0
0.255319
0
0
0.050443
0
0
0
0
0
0
1
0.212766
false
0
0.021277
0.042553
0.361702
0.12766
0
0
0
null
0
0
0
0
0
0
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
d7d6c330da6c5eb5820d18f8e3fdb08caa5b1d8c
5,410
py
Python
shkolyar/settings.py
audiua/shkolyar_django
a2de2dc0a42e6bdd51321f857c0aa1106c51ba80
[ "MIT" ]
1
2017-04-22T11:00:07.000Z
2017-04-22T11:00:07.000Z
shkolyar/settings.py
audiua/shkolyar_django
a2de2dc0a42e6bdd51321f857c0aa1106c51ba80
[ "MIT" ]
6
2017-04-20T17:49:39.000Z
2017-04-22T11:55:07.000Z
shkolyar/settings.py
audiua/shkolyar_django
a2de2dc0a42e6bdd51321f857c0aa1106c51ba80
[ "MIT" ]
null
null
null
""" Django settings for shkolyar project. Generated by 'django-admin startproject' using Django 1.11. For more information on this file, see https://docs.djangoproject.com/en/1.11/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.11/ref/settings/ """ import os ...
25.162791
91
0.675416
581
5,410
6.165232
0.423408
0.065327
0.042993
0.048855
0.24651
0.207147
0.130653
0.130653
0.076214
0.041876
0
0.019196
0.181516
5,410
214
92
25.280374
0.789747
0.221996
0
0.042857
1
0.007143
0.514593
0.382775
0
0
0
0
0
1
0
false
0.042857
0.028571
0
0.028571
0
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
d7dd4791605ce9f8e3efbf12e853156f03189bd1
642
py
Python
src/compas_rv2/singular/datastructures/__init__.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
4
2022-01-17T19:17:22.000Z
2022-01-21T18:06:02.000Z
src/compas_rv2/singular/datastructures/__init__.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
src/compas_rv2/singular/datastructures/__init__.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import division from __future__ import print_function from .mesh import Mesh from .mesh_quad import QuadMesh from .mesh_quad_coarse import CoarseQuadMesh from .mesh_quad_pseudo import PseudoQuadMesh, split_quad_in_pseudo_quads, merge_pseudo_quads_in_quad from .mes...
26.75
100
0.79595
78
642
6.012821
0.282051
0.085288
0.102345
0.076759
0.247335
0.247335
0.247335
0.247335
0.247335
0.247335
0
0
0.14486
642
23
101
27.913043
0.854281
0
0
0
0
0
0.197819
0.080997
0
0
0
0
0
1
0
false
0
0.47619
0
0.47619
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d7df005a4768d5134064bc704102a7c218c15409
14,070
py
Python
scripts/processors/Aligner.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
63
2017-08-23T08:19:01.000Z
2021-09-06T12:31:25.000Z
scripts/processors/Aligner.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
25
2017-08-24T13:18:50.000Z
2022-03-16T07:07:22.000Z
scripts/processors/Aligner.py
arnacadia/Oscar
469b26495d46bcca604884d9b0347a29ad3bd572
[ "Apache-2.0" ]
30
2017-08-25T08:07:36.000Z
2022-03-12T15:37:56.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- ## Project: Simple4All - January 2013 - www.simple4all.org ## Contact: Oliver Watts - owatts@staffmail.ed.ac.uk ## Contact: Antti Suni - Antti.Suni@helsinki.fi import glob import shutil from processors.UtteranceProcessor import SUtteranceProcessor from util.NodeProcessors...
46.744186
202
0.603198
1,660
14,070
4.866867
0.194578
0.03701
0.026736
0.027231
0.434088
0.41775
0.396089
0.387919
0.377274
0.377274
0
0.002239
0.301493
14,070
300
203
46.9
0.819801
0.194812
0
0.377358
0
0.018868
0.129682
0.00894
0
0
0
0.01
0.006289
0
null
null
0
0.031447
null
null
0.037736
0
0
0
null
0
0
0
0
0
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
d7df1bb587730e55ef7a2776d087cb056102de8b
828
py
Python
instance/config.py
jinjiaho/project57
32fdefa42b0a220efb0b7ca6552150f8d4c56c88
[ "MIT" ]
null
null
null
instance/config.py
jinjiaho/project57
32fdefa42b0a220efb0b7ca6552150f8d4c56c88
[ "MIT" ]
7
2020-03-24T15:38:55.000Z
2022-01-13T00:42:41.000Z
instance/config.py
jinjiaho/project57
32fdefa42b0a220efb0b7ca6552150f8d4c56c88
[ "MIT" ]
1
2017-10-03T09:40:20.000Z
2017-10-03T09:40:20.000Z
# 1. Property-specific details # Timezone string follows TZ format (see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) PROP_NAME = "Ascott Raffles Place Singapore" TIMEZONE = "Asia/Singapore" # 2. Languages expected to be in use at this property BABEL_LOCALES = ('en', 'zh', 'ms', 'ta') BABEL_DEFAULT_LO...
33.12
102
0.77657
117
828
5.264957
0.65812
0.084416
0.090909
0.058442
0.178571
0.11039
0.11039
0
0
0
0
0.017497
0.102657
828
25
103
33.12
0.811575
0.277778
0
0
0
0
0.438449
0.08769
0
0
0
0
0
1
0
false
0.071429
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
d7e03e75e7250612cb064e7f13a423813067fe65
444
py
Python
tweet.py
m-r-moon/videographer
e06baff4ffcba60e5be86d71cc46aa4c131294f3
[ "MIT" ]
null
null
null
tweet.py
m-r-moon/videographer
e06baff4ffcba60e5be86d71cc46aa4c131294f3
[ "MIT" ]
null
null
null
tweet.py
m-r-moon/videographer
e06baff4ffcba60e5be86d71cc46aa4c131294f3
[ "MIT" ]
null
null
null
############################### # Filename: tweet.py # # Author: Mitchel R Moon # ############################### import tweepy from time import sleep from credentials import * auth = tweepy.OAuthHandler(consumer_key, consumer_secret) auth.set_access_token(access_token, access_secret) api = tweepy.API(a...
23.368421
57
0.648649
52
444
5.365385
0.557692
0.078853
0.121864
0.150538
0
0
0
0
0
0
0
0
0.137387
444
18
58
24.666667
0.72846
0.213964
0
0
0
0
0.021429
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
d7e99da6cb4b03d32d38d762b3480eb107e09804
11,180
py
Python
lectura_equipos/lectura.py
rubennj/lectura_equipos
ae18fc5d9d09647a22a4b799c786ef5f81a8d436
[ "MIT" ]
null
null
null
lectura_equipos/lectura.py
rubennj/lectura_equipos
ae18fc5d9d09647a22a4b799c786ef5f81a8d436
[ "MIT" ]
null
null
null
lectura_equipos/lectura.py
rubennj/lectura_equipos
ae18fc5d9d09647a22a4b799c786ef5f81a8d436
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 22 15:42:46 2016 @author: ruben """ import os import datetime as dt import time as time_t import pandas as pd import numpy as np import pytz UNIDAD_ESTACIONES = 'Z:' PATH_ESTACION_GEONICA = UNIDAD_ESTACIONES + '/geonica/' PATH_ESTACION_HELIOS = UNIDAD_ESTACIONES + '/E...
40.654545
183
0.613327
1,358
11,180
4.861561
0.218704
0.076341
0.02166
0.036353
0.384277
0.349137
0.313844
0.284611
0.269464
0.202969
0
0.008317
0.290161
11,180
274
184
40.80292
0.823463
0.077549
0
0.304348
0
0
0.104483
0.002609
0
0
0
0.007299
0
0
null
null
0
0.043478
null
null
0.074534
0
0
0
null
0
0
0
0
0
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
d7ec9702dcfc3828b70ee3f99b5c645a27e84213
8,671
py
Python
tests/unit/resources/settings/test_appliance_device_snmp_v1_trap_destinations.py
gzecchi/oneview-python
949bc67ca3eaed324a6dc058620145d9e067e25b
[ "Apache-2.0" ]
null
null
null
tests/unit/resources/settings/test_appliance_device_snmp_v1_trap_destinations.py
gzecchi/oneview-python
949bc67ca3eaed324a6dc058620145d9e067e25b
[ "Apache-2.0" ]
null
null
null
tests/unit/resources/settings/test_appliance_device_snmp_v1_trap_destinations.py
gzecchi/oneview-python
949bc67ca3eaed324a6dc058620145d9e067e25b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ### # (C) Copyright [2020] Hewlett Packard Enterprise Development LP # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 #...
41.888889
146
0.685157
1,054
8,671
5.288425
0.132827
0.014352
0.013994
0.057409
0.757445
0.724435
0.678687
0.611231
0.59329
0.540187
0
0.019792
0.201707
8,671
206
147
42.092233
0.785467
0.069657
0
0.56962
0
0
0.117574
0.008451
0
0
0
0
0.107595
1
0.082278
false
0
0.031646
0
0.120253
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d7ee97c87f592c1043c4539173d7a3d117565183
1,628
py
Python
deepacstrain/command_line.py
JakubBartoszewicz/DeePaC-strain
dc412cedeff3b4b542e637998d4efb6d4c0ede48
[ "MIT" ]
null
null
null
deepacstrain/command_line.py
JakubBartoszewicz/DeePaC-strain
dc412cedeff3b4b542e637998d4efb6d4c0ede48
[ "MIT" ]
3
2020-05-05T17:34:58.000Z
2020-11-26T20:41:50.000Z
deepacstrain/command_line.py
JakubBartoszewicz/DeePaC-strain
dc412cedeff3b4b542e637998d4efb6d4c0ede48
[ "MIT" ]
null
null
null
"""@package deepacstrain.command_line A DeePaC CLI. Support subcommands, prediction with built-in and custom models, training, evaluation, data preprocessing. """ import sklearn # to load libgomp early to solve problems with static TLS on some systems like bioconda mulled-tests import matplotlib.pyplot as plt # also t...
41.74359
120
0.637592
188
1,628
5.356383
0.446809
0.029791
0.039722
0.079444
0.293942
0.293942
0.266137
0.266137
0.266137
0.266137
0
0.002483
0.257985
1,628
38
121
42.842105
0.831126
0.210074
0
0
0
0
0.232704
0.124214
0
0
0
0
0
1
0.035714
false
0
0.321429
0
0.357143
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
d7f1b1ea2cd42fa8dc11757584b33f8d0d38a766
2,998
py
Python
ensemble_study/wbf.py
carranza96/mmdetection
d9d205f86acd65b441d3cd71df09934e3e2f3811
[ "Apache-2.0" ]
null
null
null
ensemble_study/wbf.py
carranza96/mmdetection
d9d205f86acd65b441d3cd71df09934e3e2f3811
[ "Apache-2.0" ]
null
null
null
ensemble_study/wbf.py
carranza96/mmdetection
d9d205f86acd65b441d3cd71df09934e3e2f3811
[ "Apache-2.0" ]
null
null
null
from numba import jit import numpy as np @jit(nopython=True) def bb_intersection_over_union(A, B) -> float: xA = max(A[0], B[0]) yA = max(A[1], B[1]) xB = min(A[2], B[2]) yB = min(A[3], B[3]) # compute the area of intersection rectangle interArea = max(0, xB - xA) * max(0, yB - yA) if int...
30.591837
119
0.613409
451
2,998
3.900222
0.266075
0.103468
0.042638
0.03411
0.103468
0.059125
0.03411
0.03411
0
0
0
0.024889
0.2495
2,998
97
120
30.907216
0.756889
0.192462
0
0.032787
0
0
0.005036
0
0
0
0
0.010309
0
1
0.065574
false
0
0.032787
0
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
d7f20eb15256900e31f024ab44b442edb2b85a5d
6,774
py
Python
proc_aster_in.py
YannChemin/wxGIPE
da444c11710a39d1e3892402484f2d3b097178de
[ "Unlicense" ]
1
2018-11-12T02:46:11.000Z
2018-11-12T02:46:11.000Z
proc_aster_in.py
YannChemin/wxGIPE
da444c11710a39d1e3892402484f2d3b097178de
[ "Unlicense" ]
null
null
null
proc_aster_in.py
YannChemin/wxGIPE
da444c11710a39d1e3892402484f2d3b097178de
[ "Unlicense" ]
1
2021-01-14T13:11:21.000Z
2021-01-14T13:11:21.000Z
#!/usr/bin/python import wx import wx.lib.filebrowsebutton as filebrowse import os # For Image Processing import numpy from osgeo import gdalnumeric from osgeo import gdal import gdal_merge as g_m from GDAL_functions import * # For icons, pngs, etc coming from images.py from wx import ImageFromStream, BitmapFromImag...
30.241071
116
0.689105
1,025
6,774
4.461463
0.253659
0.02974
0.036081
0.034113
0.221955
0.182375
0.121146
0.101465
0.079598
0.055106
0
0.037872
0.161943
6,774
223
117
30.376682
0.767659
0.081783
0
0.069364
0
0
0.067657
0.007751
0
0
0
0
0
0
null
null
0
0.069364
null
null
0.011561
0
0
0
null
0
0
0
0
0
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
d7f3249a5945d42f93b0176ef06fd9e889e3de18
581
py
Python
pyconcz_2016/sponsors/migrations/0007_auto_20161019_1700.py
pyvec/cz.pycon.org-2016
b4affabcf2b1cdd629a2dc67dba671b3414b3682
[ "MIT" ]
10
2016-01-27T08:37:41.000Z
2018-04-26T08:33:44.000Z
pyconcz_2016/sponsors/migrations/0007_auto_20161019_1700.py
pyvec/cz.pycon.org-2016
b4affabcf2b1cdd629a2dc67dba671b3414b3682
[ "MIT" ]
101
2015-11-15T11:20:33.000Z
2019-04-03T15:17:47.000Z
pyconcz_2016/sponsors/migrations/0007_auto_20161019_1700.py
pyvec/cz.pycon.org-2016
b4affabcf2b1cdd629a2dc67dba671b3414b3682
[ "MIT" ]
10
2015-11-15T21:35:53.000Z
2017-01-25T14:30:27.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-19 15:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('sponsors', '0006_auto_20160929_1218'), ] operations = [ migrations.AlterFie...
27.666667
179
0.600688
64
581
5.3125
0.8125
0
0
0
0
0
0
0
0
0
0
0.091723
0.230637
581
20
180
29.05
0.668904
0.11704
0
0
1
0
0.170588
0.045098
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
d7f44f7ded836fe7fd840ac7b48b186cf420ec1c
1,886
py
Python
monday/resources/items.py
uricod/monday
eae5bbec6d6263cbbb294644bbfae5ddcf7f0256
[ "Apache-2.0" ]
null
null
null
monday/resources/items.py
uricod/monday
eae5bbec6d6263cbbb294644bbfae5ddcf7f0256
[ "Apache-2.0" ]
null
null
null
monday/resources/items.py
uricod/monday
eae5bbec6d6263cbbb294644bbfae5ddcf7f0256
[ "Apache-2.0" ]
null
null
null
from monday.resources.base import BaseResource from monday.query_joins import mutate_item_query, get_item_query, update_item_query, get_item_by_id_query, \ update_multiple_column_values_query, mutate_subitem_query, add_file_to_column_query class ItemResource(BaseResource): def __init__(self, token): s...
46
108
0.716331
260
1,886
4.75
0.192308
0.087449
0.102024
0.111741
0.654251
0.625911
0.421053
0.325506
0.296356
0.276923
0
0.001338
0.207317
1,886
40
109
47.15
0.824749
0
0
0.322581
0
0
0.002121
0
0
0
0
0
0
1
0.258065
false
0
0.064516
0
0.580645
0
0
0
0
null
0
0
0
0
0
0
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
d7f557c8e7575327e404a4bff270d99ca016df67
12,593
py
Python
rosidl_parser/test/test_parser.py
aws-ros-dev/rosidl
7c5c7d3af98fb8f5fd8ae9112ee278d21f899df1
[ "Apache-2.0" ]
null
null
null
rosidl_parser/test/test_parser.py
aws-ros-dev/rosidl
7c5c7d3af98fb8f5fd8ae9112ee278d21f899df1
[ "Apache-2.0" ]
null
null
null
rosidl_parser/test/test_parser.py
aws-ros-dev/rosidl
7c5c7d3af98fb8f5fd8ae9112ee278d21f899df1
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Open Source Robotics Foundation, 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 required by applicable law...
41.153595
78
0.740491
1,595
12,593
5.717241
0.115361
0.180722
0.137515
0.098256
0.713126
0.591074
0.473298
0.432175
0.409584
0.37548
0
0.021294
0.146034
12,593
305
79
41.288525
0.826669
0.055586
0
0.30837
0
0
0.079579
0.019874
0
0
0
0
0.665198
1
0.044053
false
0
0.070485
0.013216
0.127753
0
0
0
0
null
0
0
0
0
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
d7f57ae029e291e29ed1806c12a0226ca7800157
4,147
py
Python
eazyAdjust.py
tddesjardins/image-stacking
a9477987b7d267d6604deafaf0080794193264eb
[ "Unlicense" ]
null
null
null
eazyAdjust.py
tddesjardins/image-stacking
a9477987b7d267d6604deafaf0080794193264eb
[ "Unlicense" ]
2
2018-06-10T04:44:16.000Z
2018-06-14T18:11:46.000Z
eazyAdjust.py
tddesjardins/image-stacking
a9477987b7d267d6604deafaf0080794193264eb
[ "Unlicense" ]
null
null
null
import subprocess, os, pdb, shutil from astropy.table import Table import pandas as pd, numpy as np, eazy as e, matplotlib.pyplot as plt from matplotlib import cm #Just getting rid of some annoying clutter in the output import warnings warnings.simplefilter('ignore') #Standard plotting settings plt.rc('text', usetex=...
36.377193
111
0.542802
555
4,147
4.032432
0.371171
0.028597
0.017873
0.025469
0.089366
0.039768
0
0
0
0
0
0.024155
0.251266
4,147
113
112
36.699115
0.696618
0.025078
0
0.025641
0
0
0.111139
0.024752
0
0
0
0
0
0
null
null
0
0.064103
null
null
0.012821
0
0
0
null
0
0
0
0
0
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
cc025c6967e8d85288558353b69e3613e4ad66fb
1,435
py
Python
davarocr/davarocr/davar_det/datasets/pipelines/seg_det_formating.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
null
null
null
davarocr/davarocr/davar_det/datasets/pipelines/seg_det_formating.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
null
null
null
davarocr/davarocr/davar_det/datasets/pipelines/seg_det_formating.py
icedream2/DAVAR-Lab-OCR
c8b82f45516850eeadcab2739fb2a4292f2fdca1
[ "Apache-2.0" ]
null
null
null
""" ################################################################################################## # Copyright Info : Copyright (c) Davar Lab @ Hikvision Research Institute. All rights reserved. # Filename : seg_det_formatting.py # Abstract : Definition of seg_based_method data formationg # Cu...
32.613636
99
0.56446
159
1,435
4.91195
0.503145
0.06146
0.043534
0.06146
0
0
0
0
0
0
0
0.016725
0.208362
1,435
43
100
33.372093
0.670775
0.531707
0
0
0
0
0.052381
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0.066667
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
cc09a542222ec542a4be1aced1fc891e5c80a6c8
977
py
Python
demos/hello/test_helloworld.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
17
2020-08-29T18:45:51.000Z
2022-03-02T19:37:13.000Z
demos/hello/test_helloworld.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
29
2020-07-18T04:34:03.000Z
2021-07-06T09:42:36.000Z
demos/hello/test_helloworld.py
akornatskyy/wheezy.web
417834db697cf1f78f3a60cc880b9fd25d40c6de
[ "MIT" ]
1
2022-03-14T08:41:42.000Z
2022-03-14T08:41:42.000Z
""" ``test_helloworld`` module. """ import unittest from helloworld import main from wheezy.http.functional import WSGIClient class HelloworldTestCase(unittest.TestCase): def setUp(self): self.client = WSGIClient(main) def tearDown(self): del self.client self.client = None def ...
26.405405
50
0.626407
120
977
5.058333
0.3
0.181219
0.092257
0.131796
0.522241
0.522241
0.510708
0.415157
0.174629
0.174629
0
0.023161
0.248721
977
36
51
27.138889
0.803815
0.159672
0
0.190476
0
0
0.04918
0
0
0
0
0
0.380952
1
0.285714
false
0
0.142857
0
0.47619
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
cc0bc5c1795b448ddcc59f6dafbafa4d6f5a8f74
1,405
py
Python
tests/test_sqlite_shelf.py
ian-andrich/SqliteShelve
528b95a5522c508b73a9c60cf26cbee411281fbc
[ "MIT" ]
null
null
null
tests/test_sqlite_shelf.py
ian-andrich/SqliteShelve
528b95a5522c508b73a9c60cf26cbee411281fbc
[ "MIT" ]
null
null
null
tests/test_sqlite_shelf.py
ian-andrich/SqliteShelve
528b95a5522c508b73a9c60cf26cbee411281fbc
[ "MIT" ]
null
null
null
import pytest from ..src import SqlitePickleShelve @pytest.fixture def blank_shelf(): shelf = SqlitePickleShelve(":memory:", "test", sync_count=10) shelf.open() yield shelf shelf.close() @pytest.fixture def loaded_shelf(blank_shelf): for x in range(1000): blank_shelf[f"{x}"] = f"Hello {x...
20.362319
70
0.684698
188
1,405
4.882979
0.281915
0.191721
0.126362
0.143791
0.277778
0.095861
0.095861
0
0
0
0
0.013298
0.197153
1,405
68
71
20.661765
0.800532
0
0
0.181818
0
0
0.053381
0
0
0
0
0
0.113636
1
0.272727
false
0.045455
0.045455
0
0.340909
0
0
0
0
null
0
0
0
0
0
0
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
cc0d53a807d7541031505a19651b1f25ce4240bb
590
py
Python
code/learn-AI/20171226/music_classifier_01.py
lsieun/learn-AI
0a164bc2e6317de3aa03c747c0e6f15d93e7f49a
[ "Apache-2.0" ]
1
2019-03-27T23:22:44.000Z
2019-03-27T23:22:44.000Z
code/learn-AI/20171226/music_classifier_01.py
lsieun/learn-AI
0a164bc2e6317de3aa03c747c0e6f15d93e7f49a
[ "Apache-2.0" ]
null
null
null
code/learn-AI/20171226/music_classifier_01.py
lsieun/learn-AI
0a164bc2e6317de3aa03c747c0e6f15d93e7f49a
[ "Apache-2.0" ]
null
null
null
import numpy as np from scipy import fft from scipy.io import wavfile from sklearn.linear_model import LogisticRegression import pickle import pprint # 准备音乐数据 def create_fft(g, n): rad = "d:/tmp/genres/" + g + "/converted/" + g + "." + str(n).zfill(5) + ".au.wav" (sample_rate, X) = wavfile.read(rad) fft_f...
25.652174
86
0.628814
91
590
3.989011
0.571429
0.049587
0.055096
0.060606
0.060606
0
0
0
0
0
0
0.018947
0.194915
590
22
87
26.818182
0.745263
0.010169
0
0
0
0
0.148021
0
0
0
0
0
0
1
0.0625
false
0
0.375
0
0.4375
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
cc10acf2e182719fa981f2d7703c9522c7bb9c43
3,956
py
Python
maspy_resources/peptide_mapping.py
hollenstein/maspy
f15fcfd24df306d8420540460d902aa3073ec133
[ "CC-BY-2.0", "CC-BY-3.0", "MIT" ]
2
2017-03-16T10:12:54.000Z
2017-04-15T00:33:11.000Z
maspy_resources/peptide_mapping.py
hollenstein/maspy
f15fcfd24df306d8420540460d902aa3073ec133
[ "CC-BY-2.0", "CC-BY-3.0", "MIT" ]
3
2017-03-10T11:19:32.000Z
2017-06-06T11:55:08.000Z
maspy_resources/peptide_mapping.py
hollenstein/maspy
f15fcfd24df306d8420540460d902aa3073ec133
[ "CC-BY-2.0", "CC-BY-3.0", "MIT" ]
null
null
null
""" TODO """ # Copyright 2015-2017 David M. Hollenstein, Jakob J. Hollenstein # # 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 # # Unl...
39.959596
80
0.684024
429
3,956
6.270396
0.4662
0.022305
0.006691
0.015613
0.057249
0.013383
0
0
0
0
0
0.007018
0.207533
3,956
98
81
40.367347
0.851037
0.416582
0
0.088889
0
0
0.063037
0
0
0
0
0.010204
0
1
0.022222
false
0.022222
0.266667
0
0.311111
0.022222
0
0
0
null
0
0
0
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
cc14c144389c575c3f178d55e880968d29fefc7f
1,527
py
Python
Lab3/bbc.py
danhkaito/IoT_Lab
1134778217fda3f3939fa3f1c795c6253600ad79
[ "Apache-2.0" ]
null
null
null
Lab3/bbc.py
danhkaito/IoT_Lab
1134778217fda3f3939fa3f1c795c6253600ad79
[ "Apache-2.0" ]
null
null
null
Lab3/bbc.py
danhkaito/IoT_Lab
1134778217fda3f3939fa3f1c795c6253600ad79
[ "Apache-2.0" ]
null
null
null
def on_data_received(): global cmd cmd = serial.read_until(serial.delimiters(Delimiters.HASH)) basic.show_string(cmd) if cmd == "0": basic.show_leds(""" . # # # . . # . # . . # . # . . # . # . ...
27.267857
84
0.311067
104
1,527
4.403846
0.336538
0.098253
0.113537
0.111354
0.131004
0
0
0
0
0
0
0.024793
0.524558
1,527
55
85
27.763636
0.606061
0
0
0.528302
0
0
0.452521
0
0
0
0
0
0
1
0.037736
false
0
0
0
0.037736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
cc1e8fdb00ec9cea8d4514b4cc94f560efa264b1
490
py
Python
example.py
gaojiuli/xweb
28a7b1e0d7ca424bf1d4b9265d68a212c5e5a799
[ "MIT" ]
357
2017-03-07T09:24:30.000Z
2022-03-07T04:31:48.000Z
example.py
gaojiuli/xweb
28a7b1e0d7ca424bf1d4b9265d68a212c5e5a799
[ "MIT" ]
8
2017-03-08T15:39:19.000Z
2018-10-11T23:09:05.000Z
example.py
gaojiuli/xweb
28a7b1e0d7ca424bf1d4b9265d68a212c5e5a799
[ "MIT" ]
50
2017-03-07T11:09:29.000Z
2020-03-24T03:50:43.000Z
from xweb import App, Model, RESTController class UserModel(Model): schema = { "type": "object", "properties": { "username": {"type": "string"}, "password": {"type": "string"}, }, "required": ['username'] } class EventController(RESTController): as...
18.148148
43
0.542857
45
490
5.911111
0.644444
0.075188
0
0
0
0
0
0
0
0
0
0
0.285714
490
26
44
18.846154
0.76
0
0
0
0
0
0.169388
0
0
0
0
0
0
1
0
false
0.052632
0.052632
0
0.210526
0
0
0
0
null
0
0
0
0
0
0
0
0
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
cc263720523325c53121f85680e0fa6e750d0ae5
425
py
Python
Code/Interfaces/cpp/current/build.py
steve-ord/askapsoft
21b9df1b393b973ec312591efad7ee2b8c974811
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
1
2020-06-18T08:37:43.000Z
2020-06-18T08:37:43.000Z
Code/Interfaces/cpp/current/build.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
Code/Interfaces/cpp/current/build.py
ATNF/askapsoft
d839c052d5c62ad8a511e58cd4b6548491a6006f
[ "BSL-1.0", "Apache-2.0", "OpenSSL" ]
null
null
null
import os from askapdev.rbuild.builders import Scons as Builder # This directory is expected by the build system if not os.path.exists("icegenerated"): os.makedirs("icegenerated") b = Builder(".") b.build() # See Issue #2462 as to why we need to run the builder twice. # build() method in Code removes the ins...
26.5625
62
0.731765
71
425
4.352113
0.633803
0.038835
0
0
0
0
0
0
0
0
0
0.022857
0.176471
425
15
63
28.333333
0.86
0.512941
0
0.25
1
0
0.125
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
cc265dd241605371541e4ec6bde3519358d10daf
4,349
py
Python
api/nucleus/models.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
3
2018-02-15T20:04:23.000Z
2018-09-29T18:13:55.000Z
api/nucleus/models.py
wepickheroes/wepickheroes.github.io
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
5
2018-01-31T02:01:15.000Z
2018-05-11T04:07:32.000Z
api/nucleus/models.py
prattl/wepickheroes
032c2a75ef058aaceb795ce552c52fbcc4cdbba3
[ "MIT" ]
null
null
null
import uuid from django.conf import settings from django.contrib.auth import get_user_model from django.contrib.sites.models import Site from django.db import models from django.utils import timezone User = get_user_model() class UUIDModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid...
26.041916
118
0.651184
477
4,349
5.771488
0.266247
0.036324
0.025427
0.03814
0.19506
0.139121
0.139121
0.095895
0.070469
0.070469
0
0.005414
0.235456
4,349
166
119
26.198795
0.822556
0
0
0.218487
0
0
0.052196
0
0
0
0
0
0.008403
1
0.07563
false
0.033613
0.05042
0.05042
0.621849
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cc27354e399873dbbbd47935bbbbce1a6a9738da
2,525
py
Python
Lab4_Introduction_to_Shellcoding/src/pwntools_example/ROP_hello.py
mitjakarki/CompSec
3ab0dc0312cd24e2fb29a180dd646c55c89285cf
[ "MIT" ]
27
2018-07-14T06:15:25.000Z
2021-09-09T09:21:01.000Z
Lab4_Introduction_to_Shellcoding/src/pwntools_example/ROP_hello.py
mitjakarki/CompSec
3ab0dc0312cd24e2fb29a180dd646c55c89285cf
[ "MIT" ]
4
2020-09-02T16:58:31.000Z
2021-08-29T07:21:15.000Z
Lab4_Introduction_to_Shellcoding/src/pwntools_example/ROP_hello.py
mitjakarki/CompSec
3ab0dc0312cd24e2fb29a180dd646c55c89285cf
[ "MIT" ]
66
2018-07-31T11:01:28.000Z
2021-12-26T16:44:46.000Z
# Example implementation to produce ROP chain for vulnerable program, # and print 'Hello, world!' # Program is taking input as argument, as has buffer overflow vulneralibity # We are using CTP framework 'pwntools' https://github.com/Gallopsled/pwntools # We are expecting, that ASLR is disabled. Bypassing NX bit fr...
32.371795
78
0.681188
341
2,525
4.973607
0.521994
0.03184
0.041274
0.056014
0.084316
0.069575
0
0
0
0
0
0.044938
0.233267
2,525
78
79
32.371795
0.831095
0.506535
0
0.060606
0
0
0.088889
0.018107
0
0
0.049383
0.012821
0
1
0.030303
false
0
0.121212
0
0.151515
0.030303
0
0
0
null
0
0
0
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
cc2775511e5b6a8e4503855ee78e4af8a5f3c6dd
13,626
py
Python
pysprite/psprite.py
QuentinAndre/pysprite
d1d9d9c416b0c90f18e13361559becdcaf5e1f86
[ "MIT" ]
6
2018-11-28T02:10:09.000Z
2022-02-08T10:43:23.000Z
pysprite/psprite.py
QuentinAndre/pysprite
d1d9d9c416b0c90f18e13361559becdcaf5e1f86
[ "MIT" ]
1
2021-08-18T19:51:04.000Z
2021-08-18T22:01:05.000Z
pysprite/psprite.py
QuentinAndre/pysprite
d1d9d9c416b0c90f18e13361559becdcaf5e1f86
[ "MIT" ]
6
2018-12-06T22:01:12.000Z
2022-02-08T10:43:26.000Z
import numpy as np import math def deviation(data, u): return (sum([(i - u) ** 2 for i in data]) / (len(data) - 1)) ** .5 def deviation_dict(data, u): return (sum([((i - u) ** 2) * data[i] for i in data]) / (sum(data.values()) - 1)) ** .5 def SPRITE(u, mean_decimals, sd, sd_decimals, n, min_value, max_val...
41.042169
119
0.404741
1,396
13,626
3.848138
0.077364
0.04691
0.053797
0.059568
0.614855
0.565711
0.510611
0.460722
0.440246
0.438384
0
0.024613
0.502055
13,626
332
120
41.042169
0.767133
0.007045
0
0.581994
0
0
0.017099
0
0
0
0
0
0
1
0.009646
false
0.009646
0.006431
0.006431
0.054662
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
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
cc289728080ccae66b1f6dd69d1459c15b826cb2
657
py
Python
scripts/udp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/udp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
null
null
null
scripts/udp_server.py
taoyimin/omnicontrol
f3418990b310cb35ab0fa316188b789d79f23c23
[ "Apache-2.0" ]
1
2019-06-18T02:30:45.000Z
2019-06-18T02:30:45.000Z
import socket import threading class UdpServer(threading.Thread): def __init__(self, port): threading.Thread.__init__(self) self.addr = ('', port) self.thread = threading.Thread() self.server = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.isWorking = True ...
25.269231
70
0.599696
75
657
5.12
0.44
0.104167
0
0
0
0
0
0
0
0
0
0.008475
0.281583
657
25
71
26.28
0.805085
0
0
0
0
0
0.027397
0
0
0
0
0
0
0
null
null
0
0.105263
null
null
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cc2980f32effee97fc56c3873137294fa5726b78
403
py
Python
Guess_Number_Higher_or_Lower_II.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
1
2017-05-21T04:28:37.000Z
2017-05-21T04:28:37.000Z
Guess_Number_Higher_or_Lower_II.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
Guess_Number_Higher_or_Lower_II.py
thydeyx/LeetCode-Python
03296dfa37910ef13b0726bde5e757b52f1590d7
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import sys class Solution(object): def getMoneyAmount(self, n): dp = [[0] * (n+1) for _ in range(n+ 1)] for gap in range(1, n): for low in range(1, n + 1 - gap): high = low + gap dp[low][high] = min(x + max(dp[low][x-1], dp[x+1][high])for x in range(low, high)) return dp[1][...
19.190476
86
0.575682
73
403
3.054795
0.424658
0.125561
0.044843
0.080717
0
0
0
0
0
0
0
0.038462
0.225806
403
20
87
20.15
0.676282
0.049628
0
0
0
0
0.020997
0
0
0
0
0
0
0
null
null
0
0.076923
null
null
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
cc2d395bcc4d99a7ba5830955bb21fcc88fe841d
1,956
py
Python
data_aggregator/tests/view_utils.py
uw-it-aca/canvas-analytics
9df8098183b0193457808438ae665cef84b9aedd
[ "Apache-2.0" ]
null
null
null
data_aggregator/tests/view_utils.py
uw-it-aca/canvas-analytics
9df8098183b0193457808438ae665cef84b9aedd
[ "Apache-2.0" ]
172
2021-01-22T20:16:50.000Z
2022-03-25T18:47:10.000Z
data_aggregator/tests/view_utils.py
uw-it-aca/canvas-analytics
9df8098183b0193457808438ae665cef84b9aedd
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.contrib.auth.models import User from django.test import TestCase, Client from django.test.client import RequestFactory def get_user(netid): try: user = User.objects.get(username=netid) return user ...
29.19403
63
0.600204
222
1,956
5.13964
0.301802
0.03681
0.059597
0.084137
0.355828
0.331288
0.280456
0.280456
0.280456
0.280456
0
0.005878
0.304192
1,956
66
64
29.636364
0.832476
0.041922
0
0.333333
0
0
0.047568
0
0
0
0
0
0
1
0.156863
false
0.078431
0.058824
0.019608
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
cc30f3bb6a903102f51b02a935eedaef1b4f9553
31,724
py
Python
demand_response.py
switch-model/switch-hawaii
7e7b064b98210f7338d1b84d09f5ea9a1053d884
[ "Apache-2.0" ]
1
2018-09-13T03:50:17.000Z
2018-09-13T03:50:17.000Z
demand_response.py
switch-model/switch-hawaii
7e7b064b98210f7338d1b84d09f5ea9a1053d884
[ "Apache-2.0" ]
null
null
null
demand_response.py
switch-model/switch-hawaii
7e7b064b98210f7338d1b84d09f5ea9a1053d884
[ "Apache-2.0" ]
null
null
null
""" cancel out the basic system load and replace it with a convex combination of bids note: the demand_module (or some subsidiary module) may store calibration data at the module level (not in the model), so this module should only be used with one model at a time. An alternative approach would be to receive a calibr...
43.044776
160
0.639201
4,753
31,724
4.11214
0.136335
0.0132
0.015656
0.017907
0.321259
0.253057
0.222921
0.192684
0.162036
0.142696
0
0.004523
0.261316
31,724
736
161
43.103261
0.829521
0.308662
0
0.232843
0
0
0.117411
0.015535
0
0
0
0.001359
0
0
null
null
0
0.017157
null
null
0.04902
0
0
0
null
0
0
0
0
0
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
cc3452eb7513f0138c6bb3d636a882d4905ff619
1,160
py
Python
rcds/backends/k8s/jinja.py
TJCSec/rcds
7d1b800a0cdb565c27839d47306336279cc7cfe3
[ "BSD-3-Clause" ]
null
null
null
rcds/backends/k8s/jinja.py
TJCSec/rcds
7d1b800a0cdb565c27839d47306336279cc7cfe3
[ "BSD-3-Clause" ]
null
null
null
rcds/backends/k8s/jinja.py
TJCSec/rcds
7d1b800a0cdb565c27839d47306336279cc7cfe3
[ "BSD-3-Clause" ]
null
null
null
from textwrap import dedent from typing import Any, Dict, List, Optional import yaml from jinja2 import Environment, PackageLoader, filters jinja_env = Environment( loader=PackageLoader("rcds.backends.k8s", "templates"), autoescape=False, trim_blocks=True, lstrip_blocks=True, ) def jinja_filter_inde...
29.74359
81
0.710345
176
1,160
4.528409
0.318182
0.124216
0.062735
0.052698
0.155583
0.155583
0.155583
0.155583
0.155583
0.155583
0
0.002047
0.157759
1,160
38
82
30.526316
0.813715
0
0
0
0
0
0.042241
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0.115385
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0bcb3f1f38a75c7cfbf7cc033d7ddd60a8160b14
583
py
Python
preprocess/main.py
NarnePranay/Movie-genre-prediction-model
1780e24c88495b4c653a7b75c219b06c134e06c6
[ "MIT" ]
2
2018-12-01T19:53:43.000Z
2018-12-01T19:53:49.000Z
preprocess/main.py
goutham-kalikrishna/Movie-genre-prediction-model
ac3d119e89534500a42ca92b53c41d5e7e2dbe12
[ "MIT" ]
null
null
null
preprocess/main.py
goutham-kalikrishna/Movie-genre-prediction-model
ac3d119e89534500a42ca92b53c41d5e7e2dbe12
[ "MIT" ]
null
null
null
from os import path from preprocess import preprocess_subtitles from tokenization import process_movie_subtitles from preprocessNormalText import preprocess_normal_text def main(): input_path = path.relpath("Subtitles") output_path = path.relpath("ProcessedSubtitles") preprocess_subtitles(input_path, outp...
27.761905
93
0.7753
66
583
6.575758
0.333333
0.152074
0.138249
0.110599
0
0
0
0
0
0
0
0
0.135506
583
20
94
29.15
0.861111
0.212693
0
0
0
0
0.125551
0
0
0
0
0
0
1
0.1
false
0
0.4
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
0bccf6c9797293d68ed8083de7d69f80db5bedd5
484
py
Python
plotly/validators/scatter3d/projection/x/_scale.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
2
2020-03-24T11:41:14.000Z
2021-01-14T07:59:43.000Z
plotly/validators/scatter3d/projection/x/_scale.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
null
null
null
plotly/validators/scatter3d/projection/x/_scale.py
faezs/plotly.py
6009b5b9c746e5d2a2849ad255a4eb234b551ed7
[ "MIT" ]
4
2019-06-03T14:49:12.000Z
2022-01-06T01:05:12.000Z
import _plotly_utils.basevalidators class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='scale', parent_name='scatter3d.projection.x', **kwargs ): super(ScaleValidator, self).__init__( plotly_name=plotly_name,...
23.047619
67
0.566116
44
484
5.795455
0.613636
0.117647
0.196078
0
0
0
0
0
0
0
0
0.0125
0.338843
484
20
68
24.2
0.784375
0
0
0.117647
0
0
0.07438
0.045455
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.176471
0
0
0
0
null
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0bcd933477d378067133200d649a4ca55b39b470
751
py
Python
app/account/migrations/0006_auto_20200518_1143.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
null
null
null
app/account/migrations/0006_auto_20200518_1143.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
9
2020-07-09T15:29:48.000Z
2020-07-29T13:05:30.000Z
app/account/migrations/0006_auto_20200518_1143.py
nabechin/article
63bbaaaa9c194cc259456c46d8c3ccd0f8ee10c1
[ "MIT" ]
null
null
null
# Generated by Django 2.2.12 on 2020-05-18 11:43 import account.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('account', '0005_auto_20200518_1120'), ] operations = [ migrations.AlterField( model_name='userprofile', ...
30.04
135
0.660453
78
751
6.192308
0.589744
0.080745
0.10352
0.120083
0.3147
0.3147
0.132505
0
0
0
0
0.055459
0.231691
751
24
136
31.291667
0.781629
0.061252
0
0.333333
1
0
0.170697
0.062589
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
0bd1551e0a4522153a310035669a88d1c1fa2111
1,419
py
Python
-Results/Evaluate_HICO_DET.py
DirtyHarryLYL/DJ-RN
7f362693f433d49e2fb5c0fc6216218d464c612b
[ "Apache-2.0" ]
96
2020-03-07T09:23:56.000Z
2022-01-05T08:31:59.000Z
-Results/Evaluate_HICO_DET.py
DirtyHarryLYL/DJ-RN
7f362693f433d49e2fb5c0fc6216218d464c612b
[ "Apache-2.0" ]
71
2020-04-21T07:25:51.000Z
2022-03-01T12:17:06.000Z
-Results/Evaluate_HICO_DET.py
DirtyHarryLYL/DJ-RN
7f362693f433d49e2fb5c0fc6216218d464c612b
[ "Apache-2.0" ]
14
2020-04-20T08:53:10.000Z
2022-02-27T05:24:23.000Z
import cPickle as pickle import numpy as np import argparse from HICO_DET_utils import calc_ap, obj_range, rare def parse_args(): parser = argparse.ArgumentParser(description='Generate detection file') parser.add_argument('--file', dest='file', help='Detection file to evaluate', default...
30.847826
75
0.639183
220
1,419
3.936364
0.309091
0.064665
0.062356
0.060046
0.137413
0.099307
0.099307
0
0
0
0
0.017778
0.207188
1,419
46
76
30.847826
0.752
0
0
0
1
0
0.140141
0.014789
0
0
0
0
0
1
0.026316
false
0
0.105263
0
0.157895
0.157895
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
0bd2ad1978bcfb9eaf11be584baf3f3db3f70657
5,734
py
Python
final/160401073/deneme.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
8
2020-04-15T12:06:42.000Z
2022-01-21T10:35:51.000Z
final/160401073/deneme.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
3
2020-05-13T20:41:27.000Z
2020-06-11T00:45:27.000Z
final/160401073/deneme.py
omuryorulmaz/kriptografi
04c22e4f05f126b14f41842597a7b27065326670
[ "Unlicense" ]
54
2020-04-23T14:58:50.000Z
2020-06-26T06:00:32.000Z
import random import array import time def generate32bitStringFromDecimal(decimal): not32bit = bin(decimal).replace("0b", "") boyut = len(not32bit) zero = 32 - boyut fixed32bit = "" for i in range(zero): fixed32bit = fixed32bit + "0" for i in range(boyut): fixed32bi...
29.864583
125
0.482735
601
5,734
4.602329
0.21797
0.061461
0.065076
0.043745
0.237166
0.19812
0.154375
0.121837
0.121837
0.121837
0
0.047991
0.396756
5,734
192
126
29.864583
0.751662
0
0
0.154762
1
0
0.044012
0
0
0
0
0
0
1
0.119048
false
0
0.017857
0.029762
0.27381
0.029762
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
0bd52b00f3ebbf1f31d5fa20fbe78bd16246d7bd
32,528
py
Python
trace-viewer/third_party/pywebsocket/src/test/test_mux.py
yinquan529/platform-external-chromium-trace
8252ae6b83ea65cf871e7981e981da07379f5a0f
[ "BSD-3-Clause" ]
1
2019-01-22T02:36:35.000Z
2019-01-22T02:36:35.000Z
trace-viewer/third_party/pywebsocket/src/test/test_mux.py
yinquan529/platform-external-chromium-trace
8252ae6b83ea65cf871e7981e981da07379f5a0f
[ "BSD-3-Clause" ]
null
null
null
trace-viewer/third_party/pywebsocket/src/test/test_mux.py
yinquan529/platform-external-chromium-trace
8252ae6b83ea65cf871e7981e981da07379f5a0f
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # Copyright 2012, Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # notice, this list...
41.331639
79
0.63699
3,623
32,528
5.381176
0.114822
0.049395
0.050267
0.062833
0.629001
0.596943
0.556371
0.529185
0.502359
0.466916
0
0.019219
0.276992
32,528
786
80
41.384224
0.809763
0.073875
0
0.5
0
0.001724
0.058701
0.013041
0
0
0.002313
0
0.12069
0
null
null
0.001724
0.025862
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
0bd6134aedcffb35429882230217ca28b59e812c
1,814
py
Python
services/server/verify/__init__.py
prabin-acharya/prep-project-4.1.2
c87a202106f5b43d0756b7aaeb37fb3c7fce1080
[ "MIT" ]
1
2021-10-12T05:08:20.000Z
2021-10-12T05:08:20.000Z
services/server/verify/__init__.py
prabin-acharya/prep-project-4.1.2
c87a202106f5b43d0756b7aaeb37fb3c7fce1080
[ "MIT" ]
20
2021-10-08T23:35:10.000Z
2021-10-31T07:17:20.000Z
services/server/verify/__init__.py
prabin-acharya/prep-project-4.1.2
c87a202106f5b43d0756b7aaeb37fb3c7fce1080
[ "MIT" ]
9
2021-10-09T21:46:26.000Z
2021-10-31T06:00:19.000Z
import os from db.crud import get_db from sqlalchemy.orm.session import Session from fastapi.security import OAuth2PasswordBearer from jose import jwt, JWTError from passlib.context import CryptContext from typing import Optional from datetime import datetime, timedelta from fastapi import Depends, HTTPException, statu...
30.745763
95
0.739802
227
1,814
5.718062
0.409692
0.027735
0.057781
0.024653
0.077042
0
0
0
0
0
0
0.008032
0.176406
1,814
58
96
31.275862
0.860776
0
0
0.066667
0
0
0.051819
0
0
0
0
0
0
1
0.066667
false
0.155556
0.244444
0.044444
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1