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
f425b3f1aa164f959785491a74aa48937d14a68a
4,770
py
Python
tests/sequence_tests.py
holmrenser/picea
7510eb79202754b01fc037e1aaee393bd994851c
[ "MIT" ]
5
2019-06-07T14:03:51.000Z
2022-02-17T13:16:51.000Z
tests/sequence_tests.py
holmrenser/picea
7510eb79202754b01fc037e1aaee393bd994851c
[ "MIT" ]
null
null
null
tests/sequence_tests.py
holmrenser/picea
7510eb79202754b01fc037e1aaee393bd994851c
[ "MIT" ]
1
2020-08-01T18:37:07.000Z
2020-08-01T18:37:07.000Z
from unittest import TestCase from picea import Sequence, SequenceReader, SequenceCollection,\ MultipleSequenceAlignment, alphabets class SequenceTests(TestCase): def setUp(self): self.fasta = '>A\nABC\n>B\nDEF' self.json = ( '[{"header":"A","sequence":"ABC"},' '{"head...
36.412214
73
0.679665
570
4,770
5.450877
0.133333
0.056324
0.072417
0.079498
0.570003
0.480528
0.444802
0.308658
0.216286
0.166077
0
0.004747
0.205031
4,770
130
74
36.692308
0.81461
0
0
0.205882
0
0
0.045912
0.013627
0
0
0
0
0.245098
1
0.254902
false
0.039216
0.019608
0
0.284314
0
0
0
0
null
0
0
0
0
0
0
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
f4269064870178f2f7e409d0a453dfe394adb9fb
480
py
Python
setup.py
rjkoch/meerkat
890399e8597e3d3a9f187ed9857758035e976cc3
[ "MIT" ]
null
null
null
setup.py
rjkoch/meerkat
890399e8597e3d3a9f187ed9857758035e976cc3
[ "MIT" ]
null
null
null
setup.py
rjkoch/meerkat
890399e8597e3d3a9f187ed9857758035e976cc3
[ "MIT" ]
null
null
null
from setuptools import setup setup( name = 'meerkat', packages = ['meerkat'], version = '0.3.3', description = 'A program for reciprocal space reconstruction', author = 'Arkadiy Simonov, Dmitry Logvinovich', author_email = 'aglietto@gmail.com', url = 'https://github.com/aglie/meerkat.git', # download_url...
32
86
0.691667
52
480
6.326923
0.807692
0.091185
0.176292
0
0
0
0
0
0
0
0
0.009852
0.154167
480
14
87
34.285714
0.800493
0.029167
0
0
0
0
0.491342
0
0
0
0
0
0
1
0
true
0
0.076923
0
0.076923
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
1
f442ed3261e9ae4ea1d7d54aafd750a41fc6dcde
9,722
py
Python
application/routes.py
LaCoolClass-INTI/AlloBobo
11fadd48cb454a585d9130ddf9f26be193368470
[ "MIT" ]
1
2022-02-28T18:29:31.000Z
2022-02-28T18:29:31.000Z
application/routes.py
LaCoolClass-INTI/AlloBobo
11fadd48cb454a585d9130ddf9f26be193368470
[ "MIT" ]
4
2022-02-24T11:45:19.000Z
2022-02-25T09:16:47.000Z
application/routes.py
LaCoolClass-INTI/AlloBobo
11fadd48cb454a585d9130ddf9f26be193368470
[ "MIT" ]
null
null
null
from pydoc import doc from application import app from flask import render_template, redirect, url_for, request, session from application import db from bson.objectid import ObjectId import pymongo import bcrypt from flask_mail import Mail, Message app.config['MAIL_SERVER'] = 'smtp.gmail.com' app.config['MAIL_PORT'] =...
33.874564
147
0.629706
1,144
9,722
5.244755
0.152972
0.074667
0.103333
0.051
0.490333
0.443333
0.409833
0.3405
0.281667
0.281667
0
0.001978
0.219914
9,722
287
148
33.874564
0.789161
0.001234
0
0.383966
0
0
0.211865
0.019878
0
0
0
0
0
1
0.109705
false
0.050633
0.033755
0.008439
0.350211
0
0
0
0
null
0
0
0
0
0
0
0
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
f445fa9e38b287fa5784ffb7fd37e11803abeeb4
2,092
py
Python
src/object_detection/core/box_coder_test.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
src/object_detection/core/box_coder_test.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
src/object_detection/core/box_coder_test.py
Tobias-Fischer/ros_people_object_detection_tensorflow
2a0af311b4eef55c053bd2349e1dff10abe1f32a
[ "Apache-2.0" ]
null
null
null
# 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 applica...
33.741935
80
0.676386
311
2,092
4.369775
0.418006
0.010302
0.041943
0.023547
0.069904
0.057395
0.010302
0
0
0
0
0.036756
0.180688
2,092
61
81
34.295082
0.756126
0.370459
0
0
0
0
0.006187
0
0
0
0
0
0.034483
1
0.137931
false
0
0.103448
0.103448
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
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
f447911adfb38186ae63242a871312ace678a55b
474
py
Python
app/flask_chat/instance/dev/config.py
R2002/flask_chat
cf6ecfb7b25bee0447318cf6af2850fca53ce16f
[ "MIT" ]
null
null
null
app/flask_chat/instance/dev/config.py
R2002/flask_chat
cf6ecfb7b25bee0447318cf6af2850fca53ce16f
[ "MIT" ]
null
null
null
app/flask_chat/instance/dev/config.py
R2002/flask_chat
cf6ecfb7b25bee0447318cf6af2850fca53ce16f
[ "MIT" ]
null
null
null
import os #--------------------------------------# # 設定ファイル #--------------------------------------# # 環境 ENV = 'development' DEBUG = True # DB設定 SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{user}:{password}@{host}/{db_name}?charset=utf8'.format(**{ 'user': os.getenv('DB_USER', 'root'), 'password': os.getenv('D...
24.947368
102
0.533755
49
474
4.959184
0.632653
0.098765
0.123457
0
0
0
0
0
0
0
0
0.002392
0.118143
474
19
103
24.947368
0.578947
0.21097
0
0
0
0
0.416894
0.171662
0
0
0
0
0
1
0
false
0.181818
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
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
f44f1a45ba56ceb944397414525b584e8aeee9c0
1,939
py
Python
src/v2/DB.py
Snehashish-s-Organization/Password-Manager-Flask
ea72b0e60b1be788e17458271b1de4f00de22706
[ "MIT" ]
null
null
null
src/v2/DB.py
Snehashish-s-Organization/Password-Manager-Flask
ea72b0e60b1be788e17458271b1de4f00de22706
[ "MIT" ]
null
null
null
src/v2/DB.py
Snehashish-s-Organization/Password-Manager-Flask
ea72b0e60b1be788e17458271b1de4f00de22706
[ "MIT" ]
null
null
null
# Importing the necessary modules import json with open("data/userdata.json", "r") as file: data = json.load(file) class Password: """ A class Password to represent each password Each password has : => The name of the site this password is being saved for => The Password used...
29.378788
100
0.574523
238
1,939
4.579832
0.239496
0.044037
0.044037
0.073395
0.304587
0.282569
0.282569
0.255963
0.099083
0.099083
0
0.002222
0.303765
1,939
66
101
29.378788
0.805185
0.133058
0
0.209302
0
0
0.125848
0
0
0
0
0
0
1
0.116279
false
0.255814
0.023256
0
0.186047
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
f456af0858c58f43837e88267fd9081e307281d0
3,422
py
Python
sila_library/sila2lib/framework/std_features/ParameterConstraintProvider_pb2_grpc.py
lemmi25/sila2lib
ac4db8ee7fe6c99bde498151a539b25be2021d2f
[ "MIT" ]
null
null
null
sila_library/sila2lib/framework/std_features/ParameterConstraintProvider_pb2_grpc.py
lemmi25/sila2lib
ac4db8ee7fe6c99bde498151a539b25be2021d2f
[ "MIT" ]
null
null
null
sila_library/sila2lib/framework/std_features/ParameterConstraintProvider_pb2_grpc.py
lemmi25/sila2lib
ac4db8ee7fe6c99bde498151a539b25be2021d2f
[ "MIT" ]
null
null
null
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! import grpc from . import ParameterConstraintProvider_pb2 as ParameterConstraintProvider__pb2 class ParameterConstraintsProviderStub(object): """Feature: Parameter Constraint Provider Allows a server to apply constraints on specific command p...
43.871795
132
0.805085
383
3,422
7.052219
0.339426
0.099963
0.017771
0.088856
0.637542
0.518327
0.518327
0.457608
0.457608
0.457608
0
0.003436
0.14962
3,422
77
133
44.441558
0.924742
0.494448
0
0
1
0
0.174497
0.146431
0
0
0
0
0
1
0.12
false
0
0.08
0
0.28
0
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
f45db1aa1b1bae097fe37eaf1321904e3d830cec
3,517
py
Python
example.py
JHUAPL/lantern-smt
d3c0da59d1bda0de53db6a869039e11efbb13166
[ "BSD-3-Clause" ]
1
2020-12-13T11:51:49.000Z
2020-12-13T11:51:49.000Z
example.py
JHUAPL/lantern-smt
d3c0da59d1bda0de53db6a869039e11efbb13166
[ "BSD-3-Clause" ]
null
null
null
example.py
JHUAPL/lantern-smt
d3c0da59d1bda0de53db6a869039e11efbb13166
[ "BSD-3-Clause" ]
1
2020-09-18T21:12:24.000Z
2020-09-18T21:12:24.000Z
#!/usr/bin/env python3 # Copyright 2020 The Johns Hopkins University Applied Physics Laboratory LLC # All rights reserved. # # Licensed under the 3-Clause BSD License (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://opensource.org...
37.021053
80
0.687518
490
3,517
4.881633
0.436735
0.025084
0.013796
0.013378
0.125418
0.125418
0.103679
0.103679
0.074415
0.037625
0
0.018396
0.227182
3,517
94
81
37.414894
0.861663
0.560136
0
0.348837
0
0
0.220305
0
0
0
0
0
0
1
0.023256
false
0
0.069767
0
0.093023
0.534884
0
0
0
null
0
0
0
0
0
0
0
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
f46024ac0c51f2131ade54e3ab4e0a65a3414ce2
519
py
Python
chatty_back/diary/migrations/0004_auto_20180831_1735.py
always-awake/chatty_back
1a061be70d74b096c32a5f0c0eaa44176866c652
[ "MIT" ]
null
null
null
chatty_back/diary/migrations/0004_auto_20180831_1735.py
always-awake/chatty_back
1a061be70d74b096c32a5f0c0eaa44176866c652
[ "MIT" ]
1
2020-06-05T19:09:44.000Z
2020-06-05T19:09:44.000Z
chatty_back/diary/migrations/0004_auto_20180831_1735.py
always-awake/chatty_back
1a061be70d74b096c32a5f0c0eaa44176866c652
[ "MIT" ]
null
null
null
# Generated by Django 2.0.8 on 2018-08-31 08:35 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('diary', '0003_auto_20180829_2123'), ] operations = [ migrations.AlterModelOptions( name='user_answer', options={'ord...
22.565217
50
0.576108
51
519
5.72549
0.823529
0
0
0
0
0
0
0
0
0
0
0.090909
0.300578
519
22
51
23.590909
0.713499
0.086705
0
0.125
1
0
0.154661
0.048729
0
0
0
0
0
1
0
false
0
0.0625
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
f469d313f62345b9bd66c8772d5a5e4377cdfd8c
570
py
Python
Classifiers/IClassifier.py
dukeNashor/ChessMaster
0b1f7b75a76e5c9129e73e0722af9e5b3b76f033
[ "MIT" ]
null
null
null
Classifiers/IClassifier.py
dukeNashor/ChessMaster
0b1f7b75a76e5c9129e73e0722af9e5b3b76f033
[ "MIT" ]
null
null
null
Classifiers/IClassifier.py
dukeNashor/ChessMaster
0b1f7b75a76e5c9129e73e0722af9e5b3b76f033
[ "MIT" ]
null
null
null
import abc # A good reference of Python OOP: # https://www.cs.colorado.edu/~kena/classes/5448/f12/presentation-materials/li.pdf # interface of the classifiers class IClassifier: # this method should accept a list of file names of the training data @abc.abstractmethod def Train(self, train_file_names): ...
30
110
0.715789
79
570
5.126582
0.670886
0.037037
0.064198
0
0
0
0
0
0
0
0
0.028889
0.210526
570
19
111
30
0.871111
0.550877
0
0.5
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f46ebcac4418da339d85b7f0b1e82386b941e9b7
4,402
py
Python
configuration.py
Vandervir/PyLetterQuest
91809bbd6c4e6a16e129f92ba5b339ef4dae91d9
[ "MIT" ]
null
null
null
configuration.py
Vandervir/PyLetterQuest
91809bbd6c4e6a16e129f92ba5b339ef4dae91d9
[ "MIT" ]
3
2018-06-14T22:42:19.000Z
2018-06-27T21:23:35.000Z
configuration.py
Vandervir/PyLetterQuest
91809bbd6c4e6a16e129f92ba5b339ef4dae91d9
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- import logging import math from yaml import load from yaml import Loader, Dumper class Configuration: config = None CONFIG_DISPLAY = 'display' CONFIG_BUTTONS = 'buttons' CONFIG_RANGES = 'ranges' BUTTON_RESUME_GAME = 'resume_game' BUTTON_ACCEPT_TILES ...
44.02
105
0.690141
636
4,402
4.342767
0.143082
0.045619
0.084721
0.086169
0.524982
0.517379
0.423606
0.388125
0.375815
0.32223
0
0.02925
0.215584
4,402
99
106
44.464646
0.770634
0.008632
0
0.22619
0
0
0.11669
0.009858
0
0
0
0
0
1
0.071429
false
0
0.047619
0
0.595238
0
0
0
0
null
0
0
0
0
0
0
0
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
f478784e7b93453ef04d47315d9b6893515bc883
15,671
py
Python
opt.py
cclauss/statarb
a59366f70122c355fc93a2391362a3e8818a290e
[ "Apache-2.0" ]
1
2019-01-28T00:10:38.000Z
2019-01-28T00:10:38.000Z
opt.py
cclauss/statarb
a59366f70122c355fc93a2391362a3e8818a290e
[ "Apache-2.0" ]
null
null
null
opt.py
cclauss/statarb
a59366f70122c355fc93a2391362a3e8818a290e
[ "Apache-2.0" ]
1
2019-11-18T21:28:37.000Z
2019-11-18T21:28:37.000Z
#!/usr/bin/env python import sys import numpy import math import openopt import util max_sumnot = 50.0e6 max_expnot = 0.048 max_posnot = 0.0048 max_trdnot = 1.0 max_iter = 500 min_iter = 500 plotit = False hard_limit = 1.02 kappa = 4.3e-5 #HAND-TWEAKED PARAMETERS TO MATCH CURRENT TRADING BEHAVIOR slip_alpha = 1.0 ...
40.703896
236
0.672899
2,181
15,671
4.663916
0.151307
0.02556
0.020448
0.023594
0.440818
0.355584
0.322257
0.287652
0.258946
0.258946
0
0.014609
0.209368
15,671
384
237
40.809896
0.806376
0.089975
0
0.085911
0
0.003436
0.034226
0
0
0
0
0
0
0
null
null
0
0.017182
null
null
0.051546
0
0
0
null
0
0
0
0
0
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
f48696008e3f7a7425b2df9027ce21add3d073aa
22,364
py
Python
src/oci/adm/models/vulnerability_audit.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/adm/models/vulnerability_audit.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
src/oci/adm/models/vulnerability_audit.py
pabs3/oci-python-sdk
437ba18ce39af2d1090e277c4bb8750c89f83021
[ "Apache-2.0", "BSD-3-Clause" ]
null
null
null
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.498413
245
0.665847
2,582
22,364
5.539892
0.094113
0.036074
0.142617
0.06264
0.712248
0.607662
0.536423
0.449804
0.417925
0.404502
0
0.005673
0.259122
22,364
629
246
35.554849
0.857626
0.573735
0
0.093407
0
0
0.138307
0.035163
0
0
0
0
0
1
0.208791
false
0
0.010989
0.010989
0.373626
0
0
0
0
null
0
0
0
0
0
0
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
f48b9421541c785ec09bae397e22b5fc3096b105
260
py
Python
dj_bookmarks/bookmarks/templatetags/collection_tags.py
jeremy886/django_bookmarks
41b224158dfa8feaed284081e1ec415dbbb6f155
[ "BSD-3-Clause" ]
8
2017-07-14T18:24:05.000Z
2021-02-18T10:03:35.000Z
dj_bookmarks/bookmarks/templatetags/collection_tags.py
jeremy886/django_bookmarks
41b224158dfa8feaed284081e1ec415dbbb6f155
[ "BSD-3-Clause" ]
18
2017-07-14T17:17:24.000Z
2018-09-28T18:52:18.000Z
dj_bookmarks/bookmarks/templatetags/collection_tags.py
jeremy886/django_bookmarks
41b224158dfa8feaed284081e1ec415dbbb6f155
[ "BSD-3-Clause" ]
7
2017-07-14T17:17:19.000Z
2018-06-19T00:41:40.000Z
from django import template register = template.Library() @register.inclusion_tag('bookmarks/_tags/collections_modal.html', takes_context=True) def collections_modal(context): user = context.get('user') return {'collections': user.collections.all()}
28.888889
85
0.769231
31
260
6.290323
0.677419
0.164103
0
0
0
0
0
0
0
0
0
0
0.103846
260
9
86
28.888889
0.83691
0
0
0
0
0
0.203065
0.145594
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
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
f48f2ffc52f6ec3e6993a6015418ed86a70325f3
940
py
Python
ppgan/faceutils/image.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
6,852
2020-06-18T10:56:27.000Z
2022-03-31T10:17:47.000Z
ppgan/faceutils/image.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
283
2020-07-09T13:29:58.000Z
2022-03-23T02:50:25.000Z
ppgan/faceutils/image.py
pcwuyu/PaddleGAN
b4ff90f0c92c4d8dcaa8e25267151b82fc7aa268
[ "Apache-2.0" ]
973
2020-06-18T11:15:35.000Z
2022-03-30T10:50:16.000Z
# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserve. # # 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 appl...
32.413793
74
0.706383
154
940
4.279221
0.584416
0.091047
0.039454
0.048558
0.036419
0
0
0
0
0
0
0.024096
0.205319
940
28
75
33.571429
0.858099
0.619149
0
0
0
0
0
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.545455
0
0
0
0
null
0
0
0
0
0
0
0
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
be32a49ef2d2e85423853293fed6f3e3697d36a4
1,801
py
Python
onedrived/od_api_session.py
neoocean/onedrived-dev
331fe6aca2f96eb39c2ec3d6ceb45dc91f1b9962
[ "MIT" ]
null
null
null
onedrived/od_api_session.py
neoocean/onedrived-dev
331fe6aca2f96eb39c2ec3d6ceb45dc91f1b9962
[ "MIT" ]
null
null
null
onedrived/od_api_session.py
neoocean/onedrived-dev
331fe6aca2f96eb39c2ec3d6ceb45dc91f1b9962
[ "MIT" ]
null
null
null
import base64 import pickle import zlib from time import time import keyring import keyring.backend from keyrings.alt.file import PlaintextKeyring import onedrivesdk.session def get_keyring_key(account_id): return OneDriveAPISession.KEYRING_ACCOUNT_KEY_PREFIX + account_id class OneDriveAPISession(onedrivesdk.s...
35.313725
111
0.727929
220
1,801
5.686364
0.35
0.072742
0.067946
0.05036
0.113509
0.073541
0.073541
0.073541
0.073541
0
0
0.00955
0.186008
1,801
50
112
36.02
0.843793
0.052748
0
0.057143
0
0
0.089008
0
0
0
0
0
0
1
0.114286
false
0.057143
0.228571
0.057143
0.571429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
be33c8eec5d9110d6e4364e7fee99a0b013755b7
1,524
py
Python
examples/apidemos-preference-advanced_preferences.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
1,155
2015-01-07T06:41:35.000Z
2022-03-31T07:06:05.000Z
examples/apidemos-preference-advanced_preferences.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
154
2015-01-11T03:33:19.000Z
2022-03-03T04:35:06.000Z
examples/apidemos-preference-advanced_preferences.py
tqchagas/AndroidViewClient
f1e11c587717b061c4d4434a21c2eb464b464ae0
[ "Apache-2.0" ]
307
2015-01-14T15:52:59.000Z
2022-01-30T02:33:56.000Z
#! /usr/bin/env python ''' Copyright (C) 2012 Diego Torres Milano Created on Sep 18, 2012 @author: diego ''' import re import sys import os try: sys.path.append(os.path.join(os.environ['ANDROID_VIEW_CLIENT_HOME'], 'src')) except: pass import com.dtmilano.android.viewclient as viewclient if viewclient.__ve...
31.75
213
0.753937
210
1,524
5.380952
0.595238
0.053097
0.029204
0.033628
0.051327
0
0
0
0
0
0
0.055841
0.106955
1,524
47
214
32.425532
0.774431
0.152887
0
0.09375
0
0
0.201331
0.066556
0
0
0.008319
0
0
0
null
null
0.03125
0.125
null
null
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
1
0
0
0
0
0
0
0
0
1
be374ee00114457306e3c154654a7ffce68745f9
1,607
py
Python
{{cookiecutter.project_slug}}/{{cookiecutter.module_name}}/jobs/stream_delta.py
guiferviz/virgil-apptpl
54bc31dec4e9af7adafb1e139d7632d735d8ff1b
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.module_name}}/jobs/stream_delta.py
guiferviz/virgil-apptpl
54bc31dec4e9af7adafb1e139d7632d735d8ff1b
[ "MIT" ]
null
null
null
{{cookiecutter.project_slug}}/{{cookiecutter.module_name}}/jobs/stream_delta.py
guiferviz/virgil-apptpl
54bc31dec4e9af7adafb1e139d7632d735d8ff1b
[ "MIT" ]
null
null
null
from {{ cookiecutter.module_name }}.utilities.configuration import config, get_config_setting from {{ cookiecutter.module_name }}.utilities.validations import validate_presence_of_columns from pyspark.sql import SparkSession def run(spark, config): df = (spark.readStream .format("delta") .lo...
34.191489
106
0.637212
173
1,607
5.745665
0.479769
0.066398
0.080483
0.084507
0.249497
0.179074
0.146881
0.146881
0.094567
0
0
0.005627
0.225887
1,607
46
107
34.934783
0.793408
0.04107
0
0.096774
0
0
0.264629
0.144343
0
0
0
0
0
0
null
null
0
0.096774
null
null
0.032258
0
0
0
null
0
0
0
0
0
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
be3a99c915e9d43b20f570070a6b140d19719d0b
2,122
py
Python
assets/level/generation_scripts/level.py
Lalaland/SuperGunBros
87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998
[ "MIT" ]
2
2017-02-06T19:55:01.000Z
2017-08-16T18:05:47.000Z
assets/level/generation_scripts/level.py
Lalaland/SuperGunBros
87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998
[ "MIT" ]
null
null
null
assets/level/generation_scripts/level.py
Lalaland/SuperGunBros
87da6138ac7d1c8eee5e9b5cac8bcec4a38e2998
[ "MIT" ]
null
null
null
import json import io from collections import OrderedDict class Level(): def __init__(self, title, width, height, mirrored = False): self.width = width self.height = height self.dict = OrderedDict([ ("title", title), ("width", width), ("height" , height...
35.366667
98
0.538643
249
2,122
4.542169
0.309237
0.06366
0.039788
0.045977
0.178603
0.148541
0.148541
0.109637
0.083112
0.083112
0
0.005391
0.30066
2,122
59
99
35.966102
0.756739
0
0
0.08
0
0
0.158812
0
0
0
0
0
0
0
null
null
0
0.06
null
null
0.02
0
0
0
null
0
0
0
0
0
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
be3ff88736f960be3eacf7ca0c91949d9a6c451d
3,190
py
Python
convert_parameters.py
roy881020/qpic
259585cc77606f88e4ad684c1f530cf02bccbd9f
[ "Apache-2.0" ]
82
2021-03-10T03:58:49.000Z
2022-03-30T14:02:03.000Z
convert_parameters.py
roy881020/qpic
259585cc77606f88e4ad684c1f530cf02bccbd9f
[ "Apache-2.0" ]
31
2021-03-10T07:14:08.000Z
2022-03-08T13:40:58.000Z
convert_parameters.py
roy881020/qpic
259585cc77606f88e4ad684c1f530cf02bccbd9f
[ "Apache-2.0" ]
23
2021-03-17T13:21:28.000Z
2022-03-24T05:31:09.000Z
# ------------------------------------------------------------------------ # Copyright (c) Hitachi, Ltd. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ import argparse import torch from torch imp...
42.533333
111
0.577116
470
3,190
3.746809
0.312766
0.143101
0.204429
0.109029
0.636002
0.636002
0.555366
0.481545
0.41908
0.41908
0
0.070023
0.171787
3,190
74
112
43.108108
0.596518
0.087461
0
0.057692
0
0
0.386231
0.268503
0
0
0
0
0
1
0.038462
false
0
0.057692
0
0.115385
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
be42cad9c5dbdbc1ad75ff0a3dc4f8a5310f2e39
1,157
py
Python
rally/rally-plugins/nova/nova.py
kumulustech/browbeat
deb3bfc26481ff0bc3ac2633dbf38a26ef9aa6fc
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/nova/nova.py
kumulustech/browbeat
deb3bfc26481ff0bc3ac2633dbf38a26ef9aa6fc
[ "Apache-2.0" ]
null
null
null
rally/rally-plugins/nova/nova.py
kumulustech/browbeat
deb3bfc26481ff0bc3ac2633dbf38a26ef9aa6fc
[ "Apache-2.0" ]
1
2022-01-19T14:00:08.000Z
2022-01-19T14:00:08.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed ...
41.321429
76
0.743302
158
1,157
5.367089
0.575949
0.070755
0.03066
0.037736
0
0
0
0
0
0
0
0.004154
0.167675
1,157
27
77
42.851852
0.876428
0.460674
0
0
0
0
0.068852
0
0
0
0
0
0
1
0.083333
false
0
0.333333
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
be431ae12920eabf5d0a3df5c76e6498f90b6849
6,041
py
Python
backend/settings/base.py
lucaspar/eyetagger
634bc31ad3452e33ac01ef28c5bf02624f34344b
[ "MIT" ]
null
null
null
backend/settings/base.py
lucaspar/eyetagger
634bc31ad3452e33ac01ef28c5bf02624f34344b
[ "MIT" ]
8
2021-03-30T14:27:58.000Z
2022-02-27T08:04:50.000Z
backend/settings/base.py
lucaspar/eyetagger
634bc31ad3452e33ac01ef28c5bf02624f34344b
[ "MIT" ]
1
2020-09-14T21:03:29.000Z
2020-09-14T21:03:29.000Z
""" Django settings for project project. Generated by 'django-admin startproject' using Django 2.1. SECURITY WARNING :: SEE CHECKLIST BEFORE DEPLOYING IN PRODUCTION https://docs.djangoproject.com/en/2.1/howto/deployment/checklist/ For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/se...
30.664975
125
0.666777
648
6,041
6.087963
0.381173
0.04943
0.039037
0.04436
0.151584
0.126236
0.086692
0.086692
0.030418
0
0
0.006785
0.194835
6,041
196
126
30.821429
0.804276
0.279093
0
0.066667
1
0.007407
0.487957
0.348078
0
0
0
0
0
1
0
false
0.044444
0.014815
0
0.014815
0
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
be44daf3fb78b3a74a7a60a15ecab1ad2b9a823c
1,430
py
Python
bccalc.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
11
2018-10-02T23:07:48.000Z
2022-02-22T17:53:03.000Z
bccalc.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
null
null
null
bccalc.py
Venkatprasadkalet1/carboncalc
b7a66407b453e16d9b8606f6ceac43e882c16b19
[ "Unlicense" ]
3
2017-10-25T12:43:06.000Z
2020-07-17T13:49:23.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 11 09:54:08 2014 Script for producing biomass and CO2 sequestration results from John de Goede data tables. @author: adh """ import growth, biomass import sys FIAdata = False f = sys.stdin fout = sys.stdout lines = f.readlines() header = lines[0].strip() fout.write("%s...
31.086957
130
0.639161
182
1,430
5
0.428571
0.104396
0.120879
0.153846
0.341758
0.282418
0.237363
0.153846
0.153846
0.153846
0
0.028922
0.202098
1,430
45
131
31.777778
0.768624
0.194406
0
0.137931
0
0
0.044132
0.027081
0
0
0
0
0
0
null
null
0
0.068966
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
be45c615d8e10d198598688691ac0008b553b198
689
py
Python
tests/test_aligned_sents_three_words_seq.py
BramVanroy/astred
450e4d071319ea02768db9fd0b2c6e12b037676c
[ "Apache-2.0" ]
10
2020-03-25T10:23:49.000Z
2021-12-18T02:35:37.000Z
tests/test_aligned_sents_three_words_seq.py
BramVanroy/astred
450e4d071319ea02768db9fd0b2c6e12b037676c
[ "Apache-2.0" ]
2
2021-10-07T09:56:55.000Z
2022-03-01T10:57:24.000Z
tests/test_aligned_sents_three_words_seq.py
BramVanroy/astred
450e4d071319ea02768db9fd0b2c6e12b037676c
[ "Apache-2.0" ]
null
null
null
from pytest_cases import parametrize_with_cases from astred.pairs import IdxPair from .conftest import TestAlignedSents @parametrize_with_cases("aligned", cases=TestAlignedSents, glob="*three_words_seq") def test_aligned_sents__word_cross(aligned): # NULL-to-NULL alignments included assert len(aligned.aligne...
34.45
83
0.769231
96
689
5.25
0.395833
0.089286
0.119048
0.107143
0.333333
0.333333
0.333333
0.333333
0.333333
0.333333
0
0.016694
0.130624
689
19
84
36.263158
0.824708
0.089985
0
0.166667
0
0
0.073718
0
0
0
0
0
0.416667
1
0.166667
false
0
0.25
0
0.416667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
0
0
0
0
0
0
0
0
1
be45d94ac326c36cca737cc44bde381618633ea4
598
py
Python
src/udiff/_func_diff_registry.py
joaosferreira/udiff
304768983aa3ca28e583728c76d2b0a56adf5f86
[ "BSD-3-Clause" ]
null
null
null
src/udiff/_func_diff_registry.py
joaosferreira/udiff
304768983aa3ca28e583728c76d2b0a56adf5f86
[ "BSD-3-Clause" ]
null
null
null
src/udiff/_func_diff_registry.py
joaosferreira/udiff
304768983aa3ca28e583728c76d2b0a56adf5f86
[ "BSD-3-Clause" ]
null
null
null
class FunctionDifferentialRegistry(dict): def __setitem__(self, k, v): if not callable(k): raise ValueError("key must be callable") if not callable(v): raise ValueError("value must be callable") super().__setitem__(k, v) global_registry = FunctionDifferentialRegis...
22.148148
54
0.650502
74
598
5.040541
0.378378
0.053619
0.048257
0.091153
0.13941
0.13941
0
0
0
0
0
0
0.257525
598
26
55
23
0.84009
0
0
0
0
0
0.070234
0
0
0
0
0
0
1
0.235294
false
0
0
0
0.411765
0
0
0
0
null
0
0
0
0
0
0
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
be49bc159cdeeb66e3f577a0fcf43f20a920c3ff
1,687
py
Python
history/b0/v3/data/vocabulary.py
houzeyu2683/DIWM
d31e5bd7bc52215c9440d13046304dfef0b25463
[ "MIT" ]
null
null
null
history/b0/v3/data/vocabulary.py
houzeyu2683/DIWM
d31e5bd7bc52215c9440d13046304dfef0b25463
[ "MIT" ]
null
null
null
history/b0/v3/data/vocabulary.py
houzeyu2683/DIWM
d31e5bd7bc52215c9440d13046304dfef0b25463
[ "MIT" ]
null
null
null
import nltk import re import string import itertools from collections import Counter def tokenize(x = 'hello word!'): ''' 兩個英文單字或是字母中間如果有 '-' ,那定義為一個單字,在清除標點符號的過程要忽略,其餘標點符號刪掉。 ''' pattern = "[" + re.sub("[-]", "", string.punctuation) + ']' word = re.sub(pattern, "", x).split() ''' Ste...
24.808824
109
0.554238
204
1,687
4.563725
0.372549
0.106337
0.032223
0
0
0
0
0
0
0
0
0.009106
0.283936
1,687
67
110
25.179104
0.761589
0.031417
0
0.093023
0
0
0.073791
0
0
0
0
0
0
1
0.116279
false
0.093023
0.116279
0
0.27907
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
be49d85558c2e4c6718e12c131c98c921ffbd3e4
258
py
Python
mymodule.py
miaoyinnu/-
039251f08398ebd18847e44bf8fd07e1178b5688
[ "MIT" ]
null
null
null
mymodule.py
miaoyinnu/-
039251f08398ebd18847e44bf8fd07e1178b5688
[ "MIT" ]
null
null
null
mymodule.py
miaoyinnu/-
039251f08398ebd18847e44bf8fd07e1178b5688
[ "MIT" ]
null
null
null
version = "1.0" def sayhi(): print("Hi,this is mymodule speaking.") def judge_1(): a = int(input("input a")) c = int(input("input c")) if a > c: print("椭圆") if a == c: print("抛物线") if a < c: print("双曲线")
13.578947
42
0.468992
39
258
3.076923
0.512821
0.066667
0.1
0.225
0
0
0
0
0
0
0
0.017647
0.341085
258
18
43
14.333333
0.688235
0
0
0
0
0
0.210938
0
0
0
0
0
0
1
0.166667
false
0
0
0
0.166667
0.333333
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
be4d32bc50a1ce0288d4d092c0093c232444ea55
3,810
py
Python
src/tests/older_parser_loop_method.py
BrianTurza/Flash
10e57c63e6b8e5c41f7342c7c5e339e0d705a96d
[ "MIT" ]
4
2020-02-07T11:18:06.000Z
2021-12-30T14:13:37.000Z
src/tests/older_parser_loop_method.py
BrianTurza/Flash
10e57c63e6b8e5c41f7342c7c5e339e0d705a96d
[ "MIT" ]
1
2020-06-05T12:17:33.000Z
2020-06-05T12:17:33.000Z
src/tests/older_parser_loop_method.py
BrianTurza/Flash
10e57c63e6b8e5c41f7342c7c5e339e0d705a96d
[ "MIT" ]
null
null
null
def parse_loop(self, token_stream, isNested): # for x :: x < 10 :: x++ { tokens_checked = 0 keyword = "" condition = "" value = "" increment = "" var_decl = False ast = {'loop': []} for token in range(0, len(token_stream)): token_...
43.295455
112
0.539108
430
3,810
4.6
0.183721
0.091001
0.083418
0.035389
0.529323
0.402427
0.326087
0.282103
0.139535
0.050556
0
0.015812
0.319423
3,810
88
113
43.295455
0.747011
0.081102
0
0.186441
0
0
0.140773
0
0
0
0
0
0
0
null
null
0
0
null
null
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
be4dc433505c70ec95074e97cdfdea0eb7e78e5a
255
py
Python
2/func8.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
2/func8.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
2/func8.py
ikramulkayes/Python_season2
d057460d07c5d2d218ecd52e08c1d355add44df2
[ "MIT" ]
null
null
null
def timeconverter(days): years = days // 365 days = days % 365 months = days // 30 days = days % 30 print(f"{years} years, {months} months and {days} days") days = input("Enter number of days: ") days = int(days) timeconverter(days)
21.25
60
0.619608
35
255
4.514286
0.428571
0.253165
0
0
0
0
0
0
0
0
0
0.051813
0.243137
255
12
61
21.25
0.766839
0
0
0
0
0
0.265625
0
0
0
0
0
0
1
0.111111
false
0
0
0
0.111111
0.111111
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
be540890a1e9fa9b116e8153db9b94c85d485eac
363
py
Python
git py/print.py
CubeACloud/Python
5cb8b436f5991463705aa38df6f7d76ea07f1444
[ "Apache-2.0" ]
1
2020-03-07T13:19:43.000Z
2020-03-07T13:19:43.000Z
git py/print.py
CubeACloud/Python
5cb8b436f5991463705aa38df6f7d76ea07f1444
[ "Apache-2.0" ]
null
null
null
git py/print.py
CubeACloud/Python
5cb8b436f5991463705aa38df6f7d76ea07f1444
[ "Apache-2.0" ]
null
null
null
print("hello world") print("my name is mark zed bruyg") print("555") karachi_city = ["gulshan", "johar", "malir", "defence", "liyari"] print(karachi_city[2]) names_of_student = ["maaz", "musab", "usman", "shuraim", "sudais", "ausaf"] print(names_of_student) age = 12 amount_to_increment = 3 a...
15.782609
76
0.639118
48
363
4.625
0.6875
0.099099
0.126126
0
0
0
0
0
0
0
0
0.023891
0.192837
363
22
77
16.5
0.733788
0
0
0
0
0
0.297935
0
0
0
0
0
0
1
0
false
0
0
0
0
0.545455
0
0
0
null
0
0
0
0
0
0
0
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
be56dbdab6b57421453c827dcfe9db24d07d01a8
3,001
py
Python
pioneer/das/api/egomotion/egomotion_provider.py
leddartech/pioneer.das.api
35f2c541ea8d1768d5f4612ea8d29cb2ba8345b7
[ "BSD-3-Clause" ]
8
2021-02-19T16:24:18.000Z
2021-10-01T17:51:22.000Z
pioneer/das/api/egomotion/egomotion_provider.py
leddartech/pioneer.das.api
35f2c541ea8d1768d5f4612ea8d29cb2ba8345b7
[ "BSD-3-Clause" ]
8
2021-02-25T08:56:37.000Z
2021-10-20T20:58:26.000Z
pioneer/das/api/egomotion/egomotion_provider.py
leddartech/pioneer.das.api
35f2c541ea8d1768d5f4612ea8d29cb2ba8345b7
[ "BSD-3-Clause" ]
2
2021-03-01T07:47:31.000Z
2021-07-07T20:50:27.000Z
from pioneer.common import linalg import numpy as np class EgomotionProvider(object): """Computes the position and orientation of the ego vehicle. A Platform must have an ego motion provider in order to use the 'world' referential. A sub-class should be created and adapted to a motion sensing dev...
47.634921
134
0.708431
424
3,001
4.766509
0.290094
0.069273
0.059377
0.056408
0.16576
0.0762
0.0762
0.0762
0.036616
0.036616
0
0.007614
0.212263
3,001
63
135
47.634921
0.847293
0.277907
0
0.114286
0
0
0.014388
0
0
0
0
0
0
1
0.228571
false
0
0.057143
0.057143
0.457143
0
0
0
0
null
0
0
0
0
0
0
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
be5e7d65639a2dd11dfa020642fde7aa87124b59
2,596
py
Python
Exercise_7_problem_2.py
student-work-agu-gis2021/lesson7-matplotlib-a5719089
50af091d41579bf4596e99688884b9c1d2aca94b
[ "BSD-3-Clause" ]
null
null
null
Exercise_7_problem_2.py
student-work-agu-gis2021/lesson7-matplotlib-a5719089
50af091d41579bf4596e99688884b9c1d2aca94b
[ "BSD-3-Clause" ]
null
null
null
Exercise_7_problem_2.py
student-work-agu-gis2021/lesson7-matplotlib-a5719089
50af091d41579bf4596e99688884b9c1d2aca94b
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # ## Problem 2 - Plotting temperatures # # In this problem we will plot monthly mean temperatures from the Helsinki-Vantaa airpot for the past 30 years. # # ## Input data # # File `data/helsinki-vantaa.csv` monthly average temperatures from Helsinki Vantaa airport. Column des...
27.326316
114
0.727658
414
2,596
4.485507
0.381643
0.045234
0.025848
0.033926
0.052773
0.033387
0.033387
0.033387
0
0
0
0.027354
0.140986
2,596
94
115
27.617021
0.805381
0.531587
0
0
0
0
0.232781
0.020924
0
0
0
0.010638
0
1
0
false
0
0.142857
0
0.142857
0.107143
0
0
0
null
0
0
0
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
be641b083e11a72dac5526315c0a204073f62610
876
py
Python
examples/cookbook/cookbook/ingredients/filtersets.py
ace-han/graphene-django
c455cb55a4722de1ebcc024b105c0f5fad7ad250
[ "MIT" ]
null
null
null
examples/cookbook/cookbook/ingredients/filtersets.py
ace-han/graphene-django
c455cb55a4722de1ebcc024b105c0f5fad7ad250
[ "MIT" ]
null
null
null
examples/cookbook/cookbook/ingredients/filtersets.py
ace-han/graphene-django
c455cb55a4722de1ebcc024b105c0f5fad7ad250
[ "MIT" ]
null
null
null
from django.db.models.functions import Length from django_filters import FilterSet, NumberFilter, OrderingFilter from cookbook.ingredients.models import Ingredient class IngredientFilterSet(FilterSet): order_by = OrderingFilter(fields=(("name", "-name"),)) name_len_gt = NumberFilter(method="filter_name_len...
31.285714
105
0.658676
94
876
5.968085
0.531915
0.035651
0.048128
0.053476
0
0
0
0
0
0
0
0.023188
0.212329
876
27
106
32.444444
0.789855
0.118721
0
0
0
0
0.144531
0
0
0
0
0
0
1
0.058824
false
0
0.176471
0
0.529412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
be796f43fbde4a06547798f81ba0d5fda76f9a21
632
py
Python
Launch.py
aniket-gupta1/Reinforcement_Learning_Swarm
d333606b8d275e41985ecc3015cd841b0e30fce5
[ "MIT" ]
1
2022-03-21T12:17:44.000Z
2022-03-21T12:17:44.000Z
Launch.py
aniket-gupta1/Reinforcement_Learning_Swarm
d333606b8d275e41985ecc3015cd841b0e30fce5
[ "MIT" ]
null
null
null
Launch.py
aniket-gupta1/Reinforcement_Learning_Swarm
d333606b8d275e41985ecc3015cd841b0e30fce5
[ "MIT" ]
null
null
null
import os import sys import dronekit import getpass from time import sleep N = int(sys.argv[1]) launch_string_mopso="gnome-terminal" launch_string="gnome-terminal" for i in range(N): os.chdir("/home/"+getpass.getuser()+"/IAF/Integrated_CodeBase/") launch_string += " --tab -- python3 modified_server7.py " + str(i) s...
25.28
84
0.735759
97
632
4.628866
0.443299
0.160356
0.113586
0.048998
0.36971
0.36971
0.311804
0.311804
0.311804
0.311804
0
0.017575
0.099684
632
25
85
25.28
0.771529
0
0
0.272727
0
0
0.317536
0.126382
0
0
0
0
0
1
0
false
0.136364
0.227273
0
0.227273
0.136364
0
0
0
null
0
0
0
0
0
0
0
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
be7e5af4d29dfe9013bec9bdd6eb77b687ee0a88
1,715
py
Python
knowledge/migrations/0006_packet.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
3
2019-07-27T08:42:27.000Z
2020-04-02T14:26:35.000Z
knowledge/migrations/0006_packet.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
34
2019-08-14T19:05:56.000Z
2022-02-10T10:54:45.000Z
knowledge/migrations/0006_packet.py
darth-dodo/hustlers-den
74c375da1b82c6ad4d4f2b763bc8e47a3f73417d
[ "MIT" ]
null
null
null
# Generated by Django 2.0.6 on 2019-08-04 14:33 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("hustlers", "0001_initial"), ("knowledge", "0005_auto_20180624_1317"), ] operations = [ migrations.C...
32.980769
82
0.444898
132
1,715
5.613636
0.560606
0.032389
0.037787
0.059379
0.075574
0
0
0
0
0
0
0.044164
0.445481
1,715
51
83
33.627451
0.735016
0.026239
0
0.155556
1
0
0.113909
0.013789
0
0
0
0
0
1
0
false
0
0.044444
0
0.111111
0
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
be7eecf68e81c88de8b2653dec2d7a024b6c934c
1,221
py
Python
docs/release_notes.py
cclauss/redun
55792921b42b430571eafc30ab21eb50eb4f64b3
[ "Apache-2.0" ]
null
null
null
docs/release_notes.py
cclauss/redun
55792921b42b430571eafc30ab21eb50eb4f64b3
[ "Apache-2.0" ]
null
null
null
docs/release_notes.py
cclauss/redun
55792921b42b430571eafc30ab21eb50eb4f64b3
[ "Apache-2.0" ]
null
null
null
""" Generate release notes for redun's release. Usage:: python release_notes.py <current-tag> <new-tag> Example:: python release_notes.py 0.4.10 0.4.11 """ import argparse from datetime import date import re import subprocess def main(): parser = argparse.ArgumentParser() parser.add_argument("curre...
25.978723
94
0.610975
160
1,221
4.48125
0.4625
0.069735
0.054393
0.055788
0.150628
0.080893
0
0
0
0
0
0.011543
0.219492
1,221
46
95
26.543478
0.740818
0.128583
0
0.066667
1
0.033333
0.249053
0.055871
0
0
0
0
0
1
0.033333
false
0
0.133333
0
0.166667
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
be80896710ab262e0c72d1bc5a558f9eacbfed72
1,857
py
Python
official/vision/image_classification/mobilenet_v1/mobilenet_v1_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
null
null
null
official/vision/image_classification/mobilenet_v1/mobilenet_v1_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
3
2020-08-12T06:16:40.000Z
2020-08-17T05:44:26.000Z
official/vision/image_classification/mobilenet_v1/mobilenet_v1_config.py
arayabrain/models
ceaa23c0ebecdb445d14f002cc66a39c50ac92e3
[ "Apache-2.0" ]
1
2020-08-04T01:56:03.000Z
2020-08-04T01:56:03.000Z
# Lint as: python3 # Copyright 2019 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 ...
37.14
116
0.724825
231
1,857
5.670996
0.601732
0.067176
0.036641
0.024427
0
0
0
0
0
0
0
0.024204
0.15455
1,857
49
117
37.897959
0.810191
0.447496
0
0
0
0
0.081
0.031
0
0
0
0
0
1
0
true
0
0.222222
0
0.481481
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
0
0
1
0
0
0
0
0
0
1
be830ad9a9582f4a13aefe52c2f27a3f9a638ee6
431
py
Python
docs/docs_env/Lib/site-packages/pip-1.0-py2.5.egg/pip/runner.py
gilsonbp/Django-facebook
7c6900be332f4e9e2ac66a37de5d94d7edfbd3dc
[ "BSD-3-Clause" ]
10,056
2017-04-15T14:15:40.000Z
2022-03-31T15:29:57.000Z
crowdstance-api/venv/lib/python2.7/site-packages/pip/runner.py
crowdhackathon-transport/optimizers
95c2cade7296a95aa9340250a442a9ff5502525e
[ "MIT" ]
247
2017-04-14T13:37:59.000Z
2022-03-31T11:16:33.000Z
crowdstance-api/venv/lib/python2.7/site-packages/pip/runner.py
crowdhackathon-transport/optimizers
95c2cade7296a95aa9340250a442a9ff5502525e
[ "MIT" ]
2,892
2017-04-14T10:43:20.000Z
2022-03-31T14:16:15.000Z
import sys import os def run(): base = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ## FIXME: this is kind of crude; if we could create a fake pip ## module, then exec into it and update pip.__path__ properly, we ## wouldn't have to update sys.path: sys.path.insert(0, base) impo...
22.684211
70
0.642691
68
431
3.838235
0.602941
0.068966
0.099617
0.114943
0.122605
0
0
0
0
0
0
0.003058
0.241299
431
18
71
23.944444
0.795107
0.361949
0
0
0
0
0.029851
0
0
0
0
0.055556
0
1
0.090909
false
0
0.272727
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
1
0
0
0
0
0
0
0
0
0
0
1
be85119901e9beb186f06cc234030a0a25c20ddb
8,701
py
Python
kernels/fct_ale_c_horizontal.py
ESiWACE-S1/fesom2-accelerate
7d41322016a5f18ce6371ae4fb746359fed42b63
[ "Apache-2.0" ]
null
null
null
kernels/fct_ale_c_horizontal.py
ESiWACE-S1/fesom2-accelerate
7d41322016a5f18ce6371ae4fb746359fed42b63
[ "Apache-2.0" ]
null
null
null
kernels/fct_ale_c_horizontal.py
ESiWACE-S1/fesom2-accelerate
7d41322016a5f18ce6371ae4fb746359fed42b63
[ "Apache-2.0" ]
null
null
null
from kernel_tuner import tune_kernel import numpy import argparse import json def generate_code(tuning_parameters): code = \ "__global__ void fct_ale_c_horizontal(const int maxLevels, const int * __restrict__ nLevels, const int * __restrict__ nodesPerEdge, const int * __restrict__ elementsPerEdge, <%REAL_...
59.59589
344
0.661878
1,158
8,701
4.682211
0.159758
0.038362
0.038731
0.017706
0.355035
0.317226
0.267245
0.224456
0.148654
0.126522
0
0.013388
0.193081
8,701
146
345
59.59589
0.758866
0.012412
0
0.162963
1
0.02963
0.267963
0.026668
0
0
0
0
0
1
0.02963
false
0
0.02963
0
0.088889
0.02963
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
be85ac992984bf1e11e11e0ecd4b4c47db115870
1,124
py
Python
todo/schemas.py
kokimoribe/todo-api
5cce85c5cfc45c7a6044a199100bea7fba4f4b1c
[ "MIT" ]
1
2017-11-17T03:25:35.000Z
2017-11-17T03:25:35.000Z
todo/schemas.py
kokimoribe/todo-api
5cce85c5cfc45c7a6044a199100bea7fba4f4b1c
[ "MIT" ]
null
null
null
todo/schemas.py
kokimoribe/todo-api
5cce85c5cfc45c7a6044a199100bea7fba4f4b1c
[ "MIT" ]
null
null
null
"""Request/Response Schemas are defined here""" # pylint: disable=invalid-name from marshmallow import Schema, fields, validate from todo.constants import TO_DO, IN_PROGRESS, DONE class TaskSchema(Schema): """Schema for serializing an instance of Task""" id = fields.Int(required=True) title = fields.Str...
32.114286
70
0.703737
141
1,124
5.553191
0.425532
0.168582
0.086845
0.10728
0.47765
0.372925
0.372925
0.222222
0.222222
0.222222
0
0
0.185053
1,124
34
71
33.058824
0.854803
0.192171
0
0.285714
0
0
0.054115
0
0
0
0
0
0
1
0
false
0
0.095238
0
0.809524
0
0
0
0
null
0
0
0
0
0
0
0
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
be89034278f1ad2072371a84b66bf5b1d417d7dc
1,241
py
Python
datalad/downloaders/tests/utils.py
ypid/datalad
d50e6135a35edca9406faa44953a7c8ba61ee8c0
[ "MIT" ]
298
2015-01-25T17:36:29.000Z
2022-03-20T03:38:47.000Z
datalad/downloaders/tests/utils.py
ypid/datalad
d50e6135a35edca9406faa44953a7c8ba61ee8c0
[ "MIT" ]
6,387
2015-01-02T18:15:01.000Z
2022-03-31T20:58:58.000Z
datalad/downloaders/tests/utils.py
ypid/datalad
d50e6135a35edca9406faa44953a7c8ba61ee8c0
[ "MIT" ]
109
2015-01-25T17:49:40.000Z
2022-03-06T06:54:54.000Z
# emacs: -*- mode: python; py-indent-offset: 4; tab-width: 4; indent-tabs-mode: nil -*- # ex: set sts=4 ts=4 sw=4 noet: # ## ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the datalad package for the # copyright and license terms. # # ## ### ##...
42.793103
100
0.628525
150
1,241
5.073333
0.58
0.085414
0.04205
0
0
0
0
0
0
0
0
0.005097
0.209508
1,241
28
101
44.321429
0.770642
0.389202
0
0
0
0
0.069132
0
0
0
0
0
0
1
0.083333
false
0.083333
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
be8c2a77197744b2708b455e7568767a3466abeb
51,143
py
Python
src/actuator/config.py
haxsaw/actuator
ac2ff590bb27830a3068d9a5a7b8869f28eda161
[ "MIT" ]
21
2015-02-13T13:26:44.000Z
2022-01-29T21:50:44.000Z
src/actuator/config.py
haxsaw/actuator
ac2ff590bb27830a3068d9a5a7b8869f28eda161
[ "MIT" ]
35
2015-02-16T20:16:48.000Z
2017-06-29T08:29:22.000Z
src/actuator/config.py
haxsaw/actuator
ac2ff590bb27830a3068d9a5a7b8869f28eda161
[ "MIT" ]
null
null
null
# # Copyright (c) 2014 Tom Carroll # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dis...
42.941226
154
0.62994
6,701
51,143
4.642441
0.107894
0.023144
0.017551
0.006943
0.352856
0.260568
0.203607
0.161947
0.125398
0.102382
0
0.001724
0.30796
51,143
1,190
155
42.977311
0.877236
0.04943
0
0.393298
0
0.001764
0.052218
0
0
0
0
0.00084
0
0
null
null
0.035273
0.014109
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
be904e2bbeb6e5b7b12b5dc242176eede58088e5
2,169
py
Python
fundingapi/workers/handlers/check_balance.py
edge2b/fundingapi
1b3a59a141687027ef8a4ff1d6614518381edb61
[ "MIT" ]
2
2017-11-04T07:42:11.000Z
2017-11-29T00:19:21.000Z
fundingapi/workers/handlers/check_balance.py
edge2b/fundingapi
1b3a59a141687027ef8a4ff1d6614518381edb61
[ "MIT" ]
2
2017-11-24T15:27:17.000Z
2017-11-29T00:26:12.000Z
fundingapi/workers/handlers/check_balance.py
edge2b/fundingapi
1b3a59a141687027ef8a4ff1d6614518381edb61
[ "MIT" ]
null
null
null
import asyncio import logging from functools import partial from attrdict import AttrDict from web3 import HTTPProvider from web3 import Web3 logger = logging.getLogger(__name__) async def process_mapping(env: AttrDict, mapping: dict): network_name = mapping['resource']['network_type'] provider = env.provid...
34.428571
100
0.646842
258
2,169
5.294574
0.406977
0.048316
0.04612
0.032943
0.054173
0.054173
0.054173
0
0
0
0
0.029516
0.218995
2,169
62
101
34.983871
0.776269
0.047026
0
0.039216
0
0
0.244423
0.026673
0
0
0.00485
0.016129
0
1
0
false
0
0.117647
0
0.156863
0
0
0
0
null
0
0
0
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
be9daa7df5435ea143cdb424749737df28fac312
2,692
py
Python
40-49/40. piecewiserange/test_piecewiserange.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
1
2021-11-30T05:03:24.000Z
2021-11-30T05:03:24.000Z
40-49/40. piecewiserange/test_piecewiserange.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
null
null
null
40-49/40. piecewiserange/test_piecewiserange.py
dcragusa/PythonMorsels
5f75b51a68769036e4004e9ccdada6b220124ab6
[ "MIT" ]
2
2021-04-18T05:26:43.000Z
2021-11-28T18:46:43.000Z
import unittest from piecewiserange import PiecewiseRange class PiecewiseRangeTests(unittest.TestCase): """Tests for PiecewiseRange.""" def test_three_ranges(self): self.assertEqual( list(PiecewiseRange('1-3,4-6,8-10')), [1, 2, 3, 4, 5, 6, 8, 9, 10], ) def test_...
32.433735
78
0.562407
348
2,692
4.284483
0.215517
0.251509
0.160966
0.102616
0.695506
0.55332
0.531858
0.458082
0.361502
0.221999
0
0.125259
0.282318
2,692
82
79
32.829268
0.64648
0.118871
0
0.258065
0
0
0.147819
0.018213
0
0
0
0
0.290323
1
0.112903
false
0
0.032258
0
0.16129
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
bea0f4d9f8aed48503c3a30bcb7af162bcfbfdc0
4,828
py
Python
MODULES/LateralMovement_PassTheTicket_BySharpwmi.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
MODULES/LateralMovement_PassTheTicket_BySharpwmi.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
MODULES/LateralMovement_PassTheTicket_BySharpwmi.py
evi1hack/viperpython
04bf8e31e21385edb58ea9d25296df062197df39
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # @File : SimpleRewMsfModule.py # @Date : 2019/1/11 # @Desc : from Lib.ModuleAPI import * class PostModule(PostMSFCSharpModule): NAME_ZH = "Sharpwmi横向移动" DESC_ZH = "模块内存执行定制版的Sharpwmi.exe.\n" \ "通过指定的用户名密码或使用当前用户内存中的Hash进行横向移动,通过调用目标主机的powershell加载载荷上线.\n" \ ...
43.495495
170
0.588442
545
4,828
5.084404
0.374312
0.051967
0.034645
0.012992
0.074702
0.063876
0.056297
0.033201
0.033201
0.033201
0
0.006164
0.294325
4,828
110
171
43.890909
0.807162
0.024234
0
0.126437
0
0.022989
0.331418
0.042146
0
0
0
0
0
1
0.034483
false
0.114943
0.011494
0
0.229885
0
0
0
0
null
0
0
0
0
0
0
0
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
bea6b4a493149aa849ff9bcd36b6e50d54c80a70
1,108
py
Python
example/server.py
balabit-deps/balabit-os-6-pyrad
70ac01348547c09839a6a450c6d14337256aed25
[ "BSD-3-Clause" ]
2
2015-09-16T00:43:36.000Z
2015-11-26T17:06:23.000Z
example/server.py
balabit-deps/balabit-os-6-pyrad
70ac01348547c09839a6a450c6d14337256aed25
[ "BSD-3-Clause" ]
1
2015-02-26T07:06:54.000Z
2015-02-26T07:06:54.000Z
example/server.py
balabit-deps/balabit-os-6-pyrad
70ac01348547c09839a6a450c6d14337256aed25
[ "BSD-3-Clause" ]
3
2019-03-13T02:48:48.000Z
2020-03-10T09:47:53.000Z
#!/usr/bin/python from pyrad import dictionary, packet, server class FakeServer(server.Server): def _HandleAuthPacket(self, pkt): server.Server._HandleAuthPacket(self, pkt) print "Received an authentication request" print "Attributes: " for attr in pkt.keys(): print "%...
29.157895
74
0.600181
115
1,108
5.747826
0.391304
0.04236
0.069592
0.057489
0.426626
0.272315
0.272315
0.272315
0.272315
0.272315
0
0.016352
0.282491
1,108
37
75
29.945946
0.815094
0.01444
0
0.444444
0
0
0.153071
0.027498
0
0
0
0
0
0
null
null
0
0.037037
null
null
0.296296
0
0
0
null
0
0
0
0
0
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
beb0dfa09b1e990a23b768d32c709b8b362c657b
11,825
py
Python
decoder/rec_hammaspuhe.py
phsmit/AaltoASR
33cb58b288cc01bcdff0d6709a296d0dfcc7f74a
[ "BSD-3-Clause" ]
78
2015-01-07T14:33:47.000Z
2022-03-15T09:01:30.000Z
decoder/rec_hammaspuhe.py
phsmit/AaltoASR
33cb58b288cc01bcdff0d6709a296d0dfcc7f74a
[ "BSD-3-Clause" ]
4
2015-05-19T13:00:34.000Z
2016-07-26T12:29:32.000Z
decoder/rec_hammaspuhe.py
phsmit/AaltoASR
33cb58b288cc01bcdff0d6709a296d0dfcc7f74a
[ "BSD-3-Clause" ]
32
2015-01-16T08:16:24.000Z
2021-04-02T21:26:22.000Z
#!/usr/bin/python # # Recognizes status dictation or free dictation speech files (select using the # -l option. # # Arguments: # model-directory # speech-directory # output-file # -a acoustic-model [basename] # -l language-model [status | free] # -s language-model-scale # # Example: # rec_hammaspuhe.py /s...
28.562802
265
0.682791
1,733
11,825
4.476053
0.233122
0.01186
0.015341
0.006188
0.261441
0.22947
0.177646
0.168106
0.168106
0.168106
0
0.020783
0.157717
11,825
413
266
28.631961
0.758032
0.146808
0
0.216495
0
0.010309
0.153619
0.041684
0
0
0
0
0
0
null
null
0.003436
0.041237
null
null
0.089347
0
0
0
null
0
0
0
0
0
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
beb4d4b41ca2af034ee0306db763d2a8a974e328
58,240
py
Python
salt/modules/dockerio.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerio.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
null
null
null
salt/modules/dockerio.py
pille/salt
47322575309faac8c4755287d930469caffc1c65
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- ''' Management of dockers ===================== .. versionadded:: 2014.1.0 (Hydrogen) .. note:: The DockerIO integration is still in beta; the API is subject to change General notes ------------- - As we use states, we don't want to pop continuously dockers, we will map each container...
26.962963
81
0.537242
6,234
58,240
4.932788
0.107475
0.026113
0.019772
0.022861
0.532178
0.484114
0.450424
0.407694
0.365842
0.349387
0
0.006404
0.361899
58,240
2,159
82
26.975452
0.821059
0.007057
0
0.533649
0
0.002844
0.086485
0.000708
0
0
0
0
0
0
null
null
0.011374
0.016114
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
bec7f697233f4a9727737540ed34c654986f82d1
25,671
py
Python
tests/test_utils.py
MSLNZ/rpi-ocr
326fd1276c80f1778fe536aaee14dfc7fc440b4f
[ "MIT" ]
1
2019-06-23T02:09:05.000Z
2019-06-23T02:09:05.000Z
tests/test_utils.py
MSLNZ/rpi-ocr
326fd1276c80f1778fe536aaee14dfc7fc440b4f
[ "MIT" ]
null
null
null
tests/test_utils.py
MSLNZ/rpi-ocr
326fd1276c80f1778fe536aaee14dfc7fc440b4f
[ "MIT" ]
1
2020-02-22T16:04:03.000Z
2020-02-22T16:04:03.000Z
import os import base64 import tempfile from io import BytesIO import pytest import numpy as np from PIL import Image import cv2 as opencv from ocr import utils ROOT = os.path.join(os.path.dirname(__file__), 'images') PNG_PATH = os.path.join(ROOT, 'six_digits.png') JPG_PATH = os.path.join(ROOT, 'tesseract_numbers.jp...
34.457718
106
0.609014
3,564
25,671
4.232323
0.071268
0.039446
0.03275
0.045346
0.537192
0.470499
0.377751
0.33804
0.310263
0.280562
0
0.039431
0.273889
25,671
744
107
34.504032
0.769796
0.049394
0
0.33211
0
0
0.0357
0.006162
0
0
0
0
0.489908
1
0.033028
false
0
0.016514
0
0.049541
0
0
0
0
null
0
0
0
0
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
fe1ef0ce74bd46ac0898a0f1fc9bd26c853df120
2,137
py
Python
hls4ml/model/optimizer/passes/pointwise.py
ngpaladi/hls4ml
54861d0f611ee72f779a8f739b5fac571f3e79c2
[ "Apache-2.0" ]
1
2022-02-05T14:20:22.000Z
2022-02-05T14:20:22.000Z
hls4ml/model/optimizer/passes/pointwise.py
ngpaladi/hls4ml
54861d0f611ee72f779a8f739b5fac571f3e79c2
[ "Apache-2.0" ]
1
2021-06-16T12:52:01.000Z
2021-06-16T12:52:01.000Z
hls4ml/model/optimizer/passes/pointwise.py
ngpaladi/hls4ml
54861d0f611ee72f779a8f739b5fac571f3e79c2
[ "Apache-2.0" ]
2
2021-02-16T21:15:53.000Z
2021-04-01T03:51:52.000Z
import numpy as np import re from hls4ml.model.optimizer import OptimizerPass from hls4ml.model.hls_model import Conv1D, Conv2D, register_layer from hls4ml.templates import templates class PointwiseConv1D(Conv1D): ''' Optimized Conv1D implementation for 1x1 kernels. ''' # Nothing to do, will pick up function...
37.491228
139
0.735143
269
2,137
5.542751
0.315985
0.024145
0.034876
0.067069
0.401073
0.300469
0.244131
0.244131
0.244131
0.166331
0
0.024739
0.148807
2,137
56
140
38.160714
0.794942
0.154422
0
0.108108
0
0.054054
0.255866
0.118436
0
0
0
0
0
1
0.054054
false
0.108108
0.135135
0.027027
0.324324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe249657367106a895fce8d20e41c91a15efd708
1,288
py
Python
Source/helpers/ssh.py
stho32/vultr-vscode-python
6a67112e1ac7d4e917b68d42d411f9fb6304e8a5
[ "MIT" ]
null
null
null
Source/helpers/ssh.py
stho32/vultr-vscode-python
6a67112e1ac7d4e917b68d42d411f9fb6304e8a5
[ "MIT" ]
null
null
null
Source/helpers/ssh.py
stho32/vultr-vscode-python
6a67112e1ac7d4e917b68d42d411f9fb6304e8a5
[ "MIT" ]
null
null
null
""" The things we need to do using SSH """ import os import time from fabric import Connection class ssh: """ ssh connection """ def __init__(self, ip, username, password): self.ip = ip self.username = username self.password = password pass def execute(self,...
28.622222
70
0.46972
116
1,288
5.163793
0.413793
0.040067
0.070117
0.056761
0.430718
0.430718
0.430718
0.430718
0.430718
0.430718
0
0.005556
0.440994
1,288
44
71
29.272727
0.826389
0.038043
0
0.411765
0
0
0.09942
0
0
0
0
0
0
1
0.088235
false
0.147059
0.088235
0
0.264706
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe2796660e8af336ac7c17a1508c0a1784d13862
358
py
Python
djnic/zonas/migrations/0004_auto_20201117_2233.py
avdata99/nic
70399bd78fd2b4b496d338e7959867ad12cdf477
[ "MIT" ]
8
2021-05-01T13:03:22.000Z
2021-12-17T21:50:04.000Z
djnic/zonas/migrations/0004_auto_20201117_2233.py
avdata99/nic
70399bd78fd2b4b496d338e7959867ad12cdf477
[ "MIT" ]
16
2020-11-20T23:18:22.000Z
2021-04-08T20:09:35.000Z
djnic/zonas/migrations/0004_auto_20201117_2233.py
OpenDataCordoba/nic
f9528856e13d106bdfb476cab1236bc5b8a92183
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-11-18 01:33 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('zonas', '0003_grupozona_zonaengrupo'), ] operations = [ migrations.AlterUniqueTogether( name='zonaengrupo', unique_together=...
19.888889
48
0.603352
35
358
6.085714
0.857143
0
0
0
0
0
0
0
0
0
0
0.073077
0.273743
358
17
49
21.058824
0.746154
0.125698
0
0
1
0
0.163987
0.083601
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
fe2921d5c57fb4b2981d3b54b32747584ab7d3b6
703
py
Python
cuddly-chameleons/cuddly_chameleons/retro_news/migrations/0003_auto_20200808_1230.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
40
2020-08-02T07:38:22.000Z
2021-07-26T01:46:50.000Z
cuddly-chameleons/cuddly_chameleons/retro_news/migrations/0003_auto_20200808_1230.py
Vthechamp22/summer-code-jam-2021
0a8bf1f22f6c73300891fd779da36efd8e1304c1
[ "MIT" ]
134
2020-07-31T12:15:45.000Z
2020-12-13T04:42:19.000Z
cuddly-chameleons/cuddly_chameleons/retro_news/migrations/0003_auto_20200808_1230.py
ks129/summer-code-jam-2020
819ac854269af8ef482c83f851c39c1887a27c5b
[ "MIT" ]
101
2020-07-31T12:00:47.000Z
2021-11-01T09:06:58.000Z
# Generated by Django 3.1 on 2020-08-08 12:30 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('retro_news', '0002_blogarticle'), ] operations = [ migrations.RemoveField( model_name='blogarticle', name='date_create...
25.107143
90
0.581792
68
703
5.867647
0.632353
0.067669
0.100251
0.120301
0
0
0
0
0
0
0
0.043033
0.305832
703
27
91
26.037037
0.77459
0.061166
0
0.238095
1
0
0.147416
0
0
0
0
0
0
1
0
false
0
0.047619
0
0.190476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe2e00b618597f37b55a01d4fdb5c989b05a01c8
7,490
py
Python
wgpu/_structs.py
Correct-Syntax/wgpu-py
de57c89183b2092ff73e584fed3494a59d396269
[ "BSD-2-Clause" ]
null
null
null
wgpu/_structs.py
Correct-Syntax/wgpu-py
de57c89183b2092ff73e584fed3494a59d396269
[ "BSD-2-Clause" ]
null
null
null
wgpu/_structs.py
Correct-Syntax/wgpu-py
de57c89183b2092ff73e584fed3494a59d396269
[ "BSD-2-Clause" ]
null
null
null
""" All wgpu structs. """ # THIS CODE IS AUTOGENERATED - DO NOT EDIT # %% Structs (45) RequestAdapterOptions = {"power_preference": "GPUPowerPreference"} DeviceDescriptor = { "label": "str", "extensions": "GPUExtensionName-list", "limits": "GPULimits", } Limits = { "max_bind_groups": "GPUSize32", ...
27.435897
87
0.690387
581
7,490
8.6179
0.445783
0.031955
0.01398
0.022968
0.071899
0.071899
0.019972
0.019972
0.019972
0.019972
0
0.007554
0.151669
7,490
272
88
27.536765
0.780453
0.010013
0
0.173516
1
0
0.571159
0.151094
0
0
0
0
0
1
0
false
0.031963
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
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe2e2d298a66d4e31ffdffd434c9ed0af85c0fd2
576
py
Python
nyc_data/ppe/templatetags/ppe_extras.py
nyccto-rapicastillo/nyc-ppe
e6d5ba45cf2815f7659298103d3b5bc7210ed8cf
[ "MIT" ]
3
2020-04-16T03:24:17.000Z
2020-09-11T22:12:31.000Z
nyc_data/ppe/templatetags/ppe_extras.py
nyccto-rapicastillo/nyc-ppe
e6d5ba45cf2815f7659298103d3b5bc7210ed8cf
[ "MIT" ]
47
2020-04-10T20:02:09.000Z
2021-09-08T02:05:09.000Z
nyc_data/ppe/templatetags/ppe_extras.py
nyccto-rapicastillo/nyc-ppe
e6d5ba45cf2815f7659298103d3b5bc7210ed8cf
[ "MIT" ]
1
2020-04-22T19:10:24.000Z
2020-04-22T19:10:24.000Z
from django import template from ppe.aggregations import split_value_unit from ppe.dataclasses import Item, MayoralCategory register = template.Library() def pretty_num(value): (value, unit) = split_value_unit(value) return f"{value}{unit}" def display_name(value): try: return MayoralCategory(...
19.2
49
0.703125
71
576
5.56338
0.408451
0.091139
0.070886
0
0
0
0
0
0
0
0
0
0.210069
576
29
50
19.862069
0.868132
0.017361
0
0.315789
0
0
0.062057
0
0
0
0
0
0
1
0.105263
false
0.105263
0.157895
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe2ee72bdc944ccd6a7c49d2abf6befc15a18738
1,049
py
Python
Chatbot_Rest/urls.py
daniellibin/Chatbot_CN
0d021933889ce077fa09994938425971ea94b950
[ "Apache-2.0" ]
8
2019-08-12T12:38:35.000Z
2022-02-21T03:25:04.000Z
Chatbot_Rest/urls.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
null
null
null
Chatbot_Rest/urls.py
JianboTang/Chatbot_CN
a0f7194252a189f8bc2b62fd16eb2abe432c0bf9
[ "Apache-2.0" ]
5
2020-01-08T15:30:38.000Z
2022-02-15T02:39:46.000Z
#-*- coding:utf-8 _*- """ @author:charlesXu @file: urls.py @desc: 接口url @time: 2019/05/10 """ # =============== # # apis 下面的路由 # # =============== from django.urls import path from Chatbot_Rest.Api.intent_detection.intent_rest_controller import intent_controller from Chatbot_Rest.Api.info_extraction.entity_e...
29.138889
95
0.733079
131
1,049
5.549618
0.366412
0.090784
0.123796
0.148556
0.115543
0
0
0
0
0
0
0.010056
0.146806
1,049
36
96
29.138889
0.802235
0.172545
0
0
0
0
0.048406
0
0
0
0
0
0
1
0
false
0
0.466667
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
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
fe345408df8fe18471d4a9d2d7dbda9b62a9258f
451
py
Python
react_django/django-src/django_app/migrations/0002_auto_20180911_2342.py
Lambda-School-Labs/CS9-LambdaMap
385c4a7c45b8885bda4559787acd766b1d1577c6
[ "MIT" ]
3
2018-08-13T22:25:37.000Z
2018-08-24T19:51:15.000Z
react_django/django-src/django_app/migrations/0002_auto_20180911_2342.py
Lambda-School-Labs/CS9-LambdaMap
385c4a7c45b8885bda4559787acd766b1d1577c6
[ "MIT" ]
17
2018-08-14T06:43:36.000Z
2018-09-01T00:58:08.000Z
react_django/django-src/django_app/migrations/0002_auto_20180911_2342.py
Lambda-School-Labs/CS9-LambdaMap
385c4a7c45b8885bda4559787acd766b1d1577c6
[ "MIT" ]
6
2018-08-13T21:00:23.000Z
2018-09-04T22:52:23.000Z
# Generated by Django 2.1 on 2018-09-11 23:42 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('django_app', '0001_initial'), ] operations = [ migrations.AlterField( model_name='users', name='portfolio_picture', ...
23.736842
115
0.625277
49
451
5.653061
0.816327
0.079422
0
0
0
0
0
0
0
0
0
0.053254
0.250554
451
18
116
25.055556
0.766272
0.095344
0
0
1
0
0.20936
0.068966
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
fe37452ae1bcab3ec20904c6f6f3adcc71b3548d
2,668
py
Python
tests/test_method_types.py
jantofelbp/loggo
a457356ea3efaa3f71d124339d5b2ee319eb687a
[ "MIT" ]
null
null
null
tests/test_method_types.py
jantofelbp/loggo
a457356ea3efaa3f71d124339d5b2ee319eb687a
[ "MIT" ]
null
null
null
tests/test_method_types.py
jantofelbp/loggo
a457356ea3efaa3f71d124339d5b2ee319eb687a
[ "MIT" ]
null
null
null
from unittest.mock import patch from loggo import Loggo loggo = Loggo(log_if_graylog_disabled=False) @loggo class AllMethodTypes: def __secret__(self): """a method that should never be logged.""" return True def public(self): """normal method.""" return True @classmetho...
25.169811
51
0.597826
311
2,668
4.938907
0.221865
0.070313
0.09375
0.123047
0.553385
0.524089
0.502604
0.502604
0.478516
0.478516
0
0.008724
0.312594
2,668
105
52
25.409524
0.82879
0.044228
0
0.44
0
0
0.057052
0
0
0
0
0
0.266667
1
0.226667
false
0
0.026667
0.053333
0.426667
0
0
0
0
null
0
0
0
0
0
0
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
fe375d024a0fdf041f9e665f727f6895d31bf2cf
713
py
Python
Inheritance/class_Inheritance/project_Shop/product_repository.py
vasetousa/OOP
e4fedc497dd149c9800613ea11846e0e770d122c
[ "MIT" ]
null
null
null
Inheritance/class_Inheritance/project_Shop/product_repository.py
vasetousa/OOP
e4fedc497dd149c9800613ea11846e0e770d122c
[ "MIT" ]
null
null
null
Inheritance/class_Inheritance/project_Shop/product_repository.py
vasetousa/OOP
e4fedc497dd149c9800613ea11846e0e770d122c
[ "MIT" ]
null
null
null
from Encapsulation.project_wild_cat_zoo import Product class ProductRepository: products: list def __init__(self): self.products = [] def add(self, prd: Product): self.products.append(prd) def find(self, product: str): for prod in self.products: if prod.name == p...
23.766667
54
0.56662
84
713
4.654762
0.440476
0.184143
0.071611
0
0
0
0
0
0
0
0
0
0.338008
713
30
55
23.766667
0.82839
0
0
0
0
0
0.002801
0
0
0
0
0
0
1
0.227273
false
0
0.045455
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fe37c3df184f292dc1ca0669723231a44e46b22c
2,148
py
Python
short-read-mngs/idseq-dag/tests/unit/util/test_trace_lock.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
30
2020-05-23T21:23:38.000Z
2022-03-24T17:18:47.000Z
short-read-mngs/idseq-dag/tests/unit/util/test_trace_lock.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
96
2018-06-05T20:53:27.000Z
2020-08-15T00:13:26.000Z
short-read-mngs/idseq-dag/tests/unit/util/test_trace_lock.py
lynnlangit/idseq-workflows
2423bcb88e3e084b0d709c9936aecd476364a31e
[ "MIT" ]
12
2020-08-24T12:00:28.000Z
2022-02-03T08:28:02.000Z
import unittest from unittest.mock import patch, call # Collaborators to inject import threading import time # Class under test from idseq_dag.util.trace_lock import TraceLock class TestTraceLock(unittest.TestCase): '''Tests for `util/trace_rlock.py`''' @staticmethod @patch('idseq_dag.util.log.log_event...
39.777778
135
0.628026
265
2,148
4.890566
0.290566
0.055556
0.070216
0.102623
0.503858
0.465278
0.450617
0.450617
0.385802
0.385802
0
0.008439
0.227654
2,148
53
136
40.528302
0.772755
0.133613
0
0.342105
0
0
0.264274
0.030451
0
0
0
0
0.052632
1
0.078947
false
0.052632
0.131579
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
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
fe3a547f7de93b0b9739e7737c1d9cb3b87ae7cf
1,866
py
Python
models/r-maccs-r-trees.py
Raalsky/metstab-shap
98626341fd8347ff94ae2efcd59cff54e4d94edb
[ "MIT" ]
4
2021-10-05T04:02:53.000Z
2022-01-28T08:25:01.000Z
models/r-maccs-r-trees.py
Raalsky/metstab-shap
98626341fd8347ff94ae2efcd59cff54e4d94edb
[ "MIT" ]
1
2021-07-05T14:26:57.000Z
2021-07-05T14:35:02.000Z
models/r-maccs-r-trees.py
Raalsky/metstab-shap
98626341fd8347ff94ae2efcd59cff54e4d94edb
[ "MIT" ]
4
2021-07-02T19:05:44.000Z
2021-10-05T04:02:55.000Z
import numpy as np import pandas as pd from sklearn.ensemble import ExtraTreesRegressor from sklearn.pipeline import make_pipeline, make_union from sklearn.preprocessing import Binarizer, MinMaxScaler from sklearn.tree import DecisionTreeRegressor from tpot.builtins import StackingEstimator, ZeroCount from tpot.export_...
46.65
195
0.825295
263
1,866
5.585551
0.403042
0.040844
0.030633
0.028591
0.133424
0.040844
0.040844
0
0
0
0
0.037803
0.092712
1,866
39
196
47.846154
0.829888
0.090568
0
0
0
0
0.054932
0.028943
0
0
0
0
0
1
0
false
0
0.366667
0
0.366667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
fe3af7d5fe163a8e8b5a1233968dea2695c280d8
2,174
py
Python
feed/models.py
M-krishna/mumbleapi
2d988eda503428b6557085e985c28345ac4c6b95
[ "Apache-2.0" ]
null
null
null
feed/models.py
M-krishna/mumbleapi
2d988eda503428b6557085e985c28345ac4c6b95
[ "Apache-2.0" ]
null
null
null
feed/models.py
M-krishna/mumbleapi
2d988eda503428b6557085e985c28345ac4c6b95
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth.models import User from ckeditor.fields import RichTextField import uuid #This needs to be shareable class Mumble(models.Model): parent =models.ForeignKey("self", on_delete=models.CASCADE, null=True, blank=True) #For re-mumble (Share) functionality rem...
36.847458
115
0.682613
272
2,174
5.363971
0.356618
0.061686
0.047978
0.071967
0.358465
0.358465
0.358465
0.316655
0.161755
0.095956
0
0.007454
0.197792
2,174
59
116
36.847458
0.829128
0.066237
0
0.186047
0
0
0.043414
0
0
0
0
0
0
1
0.093023
false
0
0.093023
0.023256
0.72093
0
0
0
0
null
0
0
0
0
0
0
0
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
fe3bf171fc6d275b1e4068bb463e2bcdadc329c4
459
py
Python
crm/migrations/0006_auto_20200506_1430.py
eviltnan/portfolio
a3f82ee867f87e62adc26541afc4de74aed4b186
[ "MIT" ]
7
2022-01-22T14:13:51.000Z
2022-03-25T22:24:14.000Z
crm/migrations/0006_auto_20200506_1430.py
eviltnan/portfolio
a3f82ee867f87e62adc26541afc4de74aed4b186
[ "MIT" ]
3
2019-12-06T13:34:09.000Z
2020-01-06T19:23:26.000Z
crm/migrations/0006_auto_20200506_1430.py
thorin-schiffer/freeturn
a3f82ee867f87e62adc26541afc4de74aed4b186
[ "MIT" ]
1
2018-12-13T20:18:36.000Z
2018-12-13T20:18:36.000Z
# Generated by Django 2.2.12 on 2020-05-06 14:30 from django.db import migrations import wagtail.core.fields class Migration(migrations.Migration): dependencies = [ ('crm', '0005_auto_20200506_1427'), ] operations = [ migrations.AlterField( model_name='cvgenerationsettings',...
22.95
78
0.647059
49
459
5.938776
0.77551
0.075601
0.116838
0
0
0
0
0
0
0
0
0.101156
0.246187
459
19
79
24.157895
0.739884
0.100218
0
0
1
0
0.19708
0.107056
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
fe3ccecf9ffc389d340447fdeaeef90a0f4afe54
2,047
py
Python
Image_cls/Baseline/models/alexnet_passport.py
ZJZAC/Passport-aware-Normalization
e2c2b928678188c1b5440f7da2c529ace87f23ac
[ "MIT" ]
16
2020-10-10T08:31:13.000Z
2021-11-21T08:18:42.000Z
Image_cls/Original/models/alexnet_passport.py
ZJZAC/Passport-aware-Normalization
e2c2b928678188c1b5440f7da2c529ace87f23ac
[ "MIT" ]
1
2021-06-10T12:28:16.000Z
2021-06-10T13:17:56.000Z
Image_cls/Original/models/alexnet_passport.py
ZJZAC/Passport-aware-Normalization
e2c2b928678188c1b5440f7da2c529ace87f23ac
[ "MIT" ]
5
2020-10-10T08:31:17.000Z
2022-02-23T07:14:40.000Z
import torch import torch.nn as nn from models.layers.conv2d import ConvBlock from models.layers.passportconv2d import PassportBlock class AlexNetPassport(nn.Module): def __init__(self, in_channels, num_classes, passport_kwargs): super(AlexNetPassport, self).__init__() maxpoolidx = [1, 3, 7] ...
29.242857
110
0.51148
237
2,047
4.28692
0.350211
0.055118
0.050197
0.073819
0.035433
0.035433
0
0
0
0
0
0.042587
0.380557
2,047
69
111
29.666667
0.758675
0
0
0.054545
0
0
0.006351
0
0
0
0
0
0
1
0.054545
false
0.2
0.072727
0
0.163636
0
0
0
0
null
0
0
0
0
0
0
0
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
fe3e776b07c8f327ffad5a1b35b924cd86951507
1,468
py
Python
solved/mq004.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
2
2021-01-06T14:02:14.000Z
2022-02-19T17:38:16.000Z
solved/mq004.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
null
null
null
solved/mq004.py
zao95/codingdojang-zao95-solving
409d1696700b453b183947d7bda8abcbbfe95bc5
[ "WTFPL" ]
null
null
null
# 자작 문제풀이 # Question number. 004 # Author: Lee Jeongwoo # Github name: zao95 # ========== Question ========== # 철수는 현재 아래 지도에서 좌상단에 위치하고 있다. # 철수는 지금부터 우하단에 위치한 집을 향해 가는데, # 최단거리로 가는 전제하에 가는 길의 숫자와 연산자로 계산하면서 간다면, # 최소값과 최대값은 얼마이고, 그 길은 어떤 길인가? # route_map = [ # ['1', '-', '2', '-', '5', ], # ['-', '4', '*', ...
23.677419
116
0.413488
213
1,468
2.746479
0.43662
0.041026
0.030769
0.041026
0.211966
0.211966
0.133333
0.133333
0.133333
0.133333
0
0.099432
0.280654
1,468
62
117
23.677419
0.454545
0.467302
0
0
0
0
0.042895
0
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe490376f07acbe50e926ca3d3b03b7092b750d1
702
py
Python
setup.py
dcbaker/jsonstreams
84f7697ab99911e8ecae35f4254fd8723f5d7297
[ "MIT" ]
18
2017-07-07T09:41:03.000Z
2022-03-28T12:21:45.000Z
setup.py
dcbaker/jsonstreams
84f7697ab99911e8ecae35f4254fd8723f5d7297
[ "MIT" ]
33
2016-08-19T17:23:25.000Z
2021-06-10T03:16:30.000Z
setup.py
dcbaker/jsonstreams
84f7697ab99911e8ecae35f4254fd8723f5d7297
[ "MIT" ]
6
2017-11-22T14:25:42.000Z
2021-04-14T10:54:45.000Z
from setuptools import setup from setuptools.command.test import test as TestCommand class Tox(TestCommand): user_options = [('tox-args=', 'a', "Arguments to pass to tox")] def initialize_options(self): TestCommand.initialize_options(self) self.tox_args = None def finalize_options(self):...
26
67
0.645299
89
702
4.966292
0.438202
0.063348
0.074661
0
0
0
0
0
0
0
0
0
0.260684
702
26
68
27
0.851638
0.069801
0
0
0
0
0.058282
0
0
0
0
0
0
1
0.157895
false
0.052632
0.210526
0
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
1
0
0
0
0
0
1
fe499b06b9251c3e504feb9c7640d36573a874f9
913
py
Python
src/compas_rv2/singular/datastructures/network/network.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
4
2022-01-17T19:17:22.000Z
2022-01-21T18:06:02.000Z
src/compas_rv2/singular/datastructures/network/network.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
src/compas_rv2/singular/datastructures/network/network.py
selinabitting/compas-RV2
0884cc00d09c8f4a75eb2b97614105e4c8bfd818
[ "MIT" ]
null
null
null
from __future__ import absolute_import from __future__ import print_function from __future__ import division from compas.datastructures import Network class Network(Network): def __init__(self): super(Network, self).__init__() @classmethod def from_nodes_and_edges(cls, nodes, edges): ""...
24.026316
108
0.575027
110
913
4.527273
0.463636
0.060241
0.096386
0.068273
0
0
0
0
0
0
0
0
0.330778
913
37
109
24.675676
0.815057
0.311062
0
0
0
0
0
0
0
0
0
0
0
1
0.133333
false
0
0.266667
0
0.533333
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
0
0
1
0
0
1
fe4b2a1947e9b9f3cfa0e7bf62f997371e6be81a
2,694
py
Python
office365/onedrive/termstore/term.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
office365/onedrive/termstore/term.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
office365/onedrive/termstore/term.py
theodoriss/Office365-REST-Python-Client
3bd7a62dadcd3f0a0aceeaff7584fff3fd44886e
[ "MIT" ]
null
null
null
from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.onedrive.internal.paths.children_path import ChildrenPath from office365.onedrive.termstore.localized_label import LocalizedLabel from office365.runtime.client_result import ClientResult from office365.runtime.cl...
39.043478
115
0.671863
308
2,694
5.762987
0.311688
0.065915
0.047324
0.051831
0.030423
0
0
0
0
0
0
0.014684
0.241648
2,694
68
116
39.617647
0.854136
0.21121
0
0.121951
0
0
0.029383
0
0
0
0
0
0
1
0.195122
false
0
0.219512
0.02439
0.609756
0
0
0
0
null
0
0
0
0
0
0
0
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
fe4c5ef1c14a79317d87e3a038e7d485687a87fe
207
py
Python
lib/admin.py
madenney/smash-scraper
9f135fa90d9d13a24e6ed1e5b603a329b22d1111
[ "MIT" ]
null
null
null
lib/admin.py
madenney/smash-scraper
9f135fa90d9d13a24e6ed1e5b603a329b22d1111
[ "MIT" ]
null
null
null
lib/admin.py
madenney/smash-scraper
9f135fa90d9d13a24e6ed1e5b603a329b22d1111
[ "MIT" ]
null
null
null
import os def clear(archiveDir): print("CLEARING ARCHIVE") for filename in os.listdir(archiveDir): os.remove(archiveDir + "/" + filename) print(" -- Deleted " + filename)
18.818182
54
0.599034
21
207
5.904762
0.666667
0
0
0
0
0
0
0
0
0
0
0
0.275362
207
10
55
20.7
0.826667
0
0
0
0
0
0.142157
0
0
0
0
0
0
1
0.166667
false
0
0.166667
0
0.333333
0.333333
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
fe54706509d29991fd9dd831f98bc33d836b9691
2,970
py
Python
color_propagation/compute_rmse.py
varunjampani/video_prop_networks
4f4a39842bd9112932abe40bad746c174a242bf6
[ "BSD-3-Clause" ]
99
2017-04-19T21:08:48.000Z
2021-11-08T10:41:15.000Z
color_propagation/compute_rmse.py
varunjampani/video_prop_networks
4f4a39842bd9112932abe40bad746c174a242bf6
[ "BSD-3-Clause" ]
7
2017-04-29T05:16:53.000Z
2020-05-04T14:29:56.000Z
color_propagation/compute_rmse.py
varunjampani/video_prop_networks
4f4a39842bd9112932abe40bad746c174a242bf6
[ "BSD-3-Clause" ]
29
2017-04-26T00:45:23.000Z
2020-05-19T04:03:34.000Z
#!/usr/bin/env python ''' File name: compute_rmse.py Author: Varun Jampani ''' # --------------------------------------------------------------------------- # Video Propagation Networks #---------------------------------------------------------------------------- # Copyright 2017 Max Planck Society # Distribu...
25.826087
79
0.573401
387
2,970
4.193798
0.310078
0.036969
0.019717
0.016636
0.103512
0.078866
0.018484
0
0
0
0
0.006143
0.23266
2,970
114
80
26.052632
0.706011
0.139057
0
0.041096
0
0
0.067969
0
0
0
0
0
0
0
null
null
0
0.109589
null
null
0.041096
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
1
0
0
0
0
0
0
0
0
1
fe5afdb68646c765911d03d7b9b76386e582c2c7
717
py
Python
andrew_li_django_website/login/migrations/0002_item.py
Zeyu-Li/django_login
88d0b71e780e71c8f94ce9555192598c07c128b6
[ "MIT" ]
1
2019-06-05T17:11:00.000Z
2019-06-05T17:11:00.000Z
andrew_li_django_website/login/migrations/0002_item.py
Zeyu-Li/django_ecommerse_app_deprecated
88d0b71e780e71c8f94ce9555192598c07c128b6
[ "MIT" ]
2
2019-05-31T17:14:14.000Z
2019-06-05T17:04:37.000Z
andrew_li_django_website/login/migrations/0002_item.py
Zeyu-Li/django_ecommerse_app_deprecated
88d0b71e780e71c8f94ce9555192598c07c128b6
[ "MIT" ]
2
2019-05-22T17:44:52.000Z
2019-06-07T17:35:30.000Z
# Generated by Django 2.1.7 on 2019-05-29 00:06 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('login', '0001_initial'), ] operations = [ migrations.CreateModel( name='Item', fields=[ ('id', model...
29.875
114
0.571827
73
717
5.493151
0.767123
0
0
0
0
0
0
0
0
0
0
0.046967
0.287308
717
23
115
31.173913
0.737769
0.062762
0
0
1
0
0.09403
0
0
0
0
0
0
1
0
false
0
0.058824
0
0.235294
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe5e7b811afb4163e065e4acf1681380577f8725
11,763
py
Python
sleepmachine.py
cjbumgardner/Baby_sleep_wiggle
7b2a6bbcd07dc9ae9b72c00db27afb0dffa2c7dd
[ "MIT" ]
null
null
null
sleepmachine.py
cjbumgardner/Baby_sleep_wiggle
7b2a6bbcd07dc9ae9b72c00db27afb0dffa2c7dd
[ "MIT" ]
null
null
null
sleepmachine.py
cjbumgardner/Baby_sleep_wiggle
7b2a6bbcd07dc9ae9b72c00db27afb0dffa2c7dd
[ "MIT" ]
null
null
null
"""Graphing and labeling tool with helper functions for time series sleep data. A tool to aid in labeling sleep=1/awake=0 timeseries data of 3D accelerometer reading that is intended to be used alongside sleep data estimates. Mostly intended to be used with an interactive python notebook (like jupyter), it provides ...
37.461783
81
0.507609
1,451
11,763
4.086147
0.262578
0.047226
0.025974
0.013493
0.146568
0.133749
0.075223
0.067128
0.03913
0.01383
0
0.016042
0.385276
11,763
314
82
37.461783
0.8039
0.007141
0
0.189744
0
0
0.080035
0
0
0
0
0
0
0
null
null
0
0.041026
null
null
0.020513
0
0
0
null
0
0
0
0
0
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
fe5fbf2d86dae724a6c0d0355f2efb7005c05839
1,956
py
Python
practice-exercises/section-17-file-io/10.py
mugan86/bootcamp-basic-to-expert-from-scratch
028aab243386e5a75d84aea319c480ec54913c53
[ "MIT" ]
31
2022-01-19T18:33:40.000Z
2022-03-29T16:24:44.000Z
practice-exercises/section-17-file-io/10.py
mugan86/bootcamp-basic-to-expert-from-scratch
028aab243386e5a75d84aea319c480ec54913c53
[ "MIT" ]
1
2022-02-09T17:47:17.000Z
2022-02-09T17:47:17.000Z
practice-exercises/section-17-file-io/10.py
mugan86/bootcamp-basic-to-expert-from-scratch
028aab243386e5a75d84aea319c480ec54913c53
[ "MIT" ]
4
2022-01-20T15:41:09.000Z
2022-03-29T16:25:08.000Z
""" """ import os file_name = "exercise10" result_fle_name = "exercise10-result" result = [] # Obtenemos la ruta absoluta del directorio en el que estamos trabajando script_directory = os.path.dirname(__file__) def get_file_content(): try: file_path = f"{script_directory}/{file_name}.txt" return ...
32.6
84
0.634969
254
1,956
4.732283
0.440945
0.026622
0.033278
0.024958
0.039933
0
0
0
0
0
0
0.011228
0.271472
1,956
60
85
32.6
0.832281
0.249489
0
0.095238
0
0
0.118703
0.05107
0
0
0
0.016667
0
1
0.095238
false
0
0.02381
0
0.214286
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
1
0
0
0
0
0
0
0
0
0
0
1
fe61b077153ea65cd7f00b30e84509dae550a435
3,040
py
Python
image.py
SatanHoney/dc-help
4a62f8e7c35cf1b76057fd9dee2af6e8dd4d1c9e
[ "MIT" ]
null
null
null
image.py
SatanHoney/dc-help
4a62f8e7c35cf1b76057fd9dee2af6e8dd4d1c9e
[ "MIT" ]
null
null
null
image.py
SatanHoney/dc-help
4a62f8e7c35cf1b76057fd9dee2af6e8dd4d1c9e
[ "MIT" ]
null
null
null
# -- coding:utf8 -- import os,sys,subprocess import datetime img_back_path = './back/image/' temp_path = './temp/' def run_cmd(cmd): print('执行shell:'+cmd) p = subprocess.call(cmd, shell=True) def read_images(): dc_file = 'docker-compose.yml' imgs =[] with open(dc_file,'rt') as f: lines = f.readlines() ...
31.666667
86
0.574342
467
3,040
3.573876
0.218415
0.03595
0.052726
0.053925
0.415818
0.376872
0.349311
0.27861
0.244458
0.208508
0
0.009771
0.225658
3,040
96
87
31.666667
0.699235
0.040132
0
0.329268
0
0
0.123619
0
0
0
0
0
0
0
null
null
0
0.02439
null
null
0.04878
0
0
0
null
0
0
0
0
0
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
fe6557073cfc3803ec42479b5f8ce5791f76b5bd
1,889
py
Python
pilot/planning/mp_planning.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
129
2019-05-21T09:15:12.000Z
2022-03-03T15:14:32.000Z
pilot/planning/mp_planning.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
1
2022-03-28T04:21:54.000Z
2022-03-28T04:21:54.000Z
pilot/planning/mp_planning.py
yanbarurobotics/PythonPilot
eb07c620320c90ba85941041d08678a6142f988f
[ "Apache-2.0" ]
31
2019-05-21T23:31:24.000Z
2022-03-21T19:22:40.000Z
#!/usr/bin/python3 # -*- coding: utf-8 -*- import multiprocessing import numpy as np import time from common.pilot_gloval_variable import MPVariable from planning import pure_pursuit class MPPlanning(): def __init__(self, cfg): self.__m = multiprocessing.Process(target=self.__process, \ ...
34.345455
108
0.536792
187
1,889
5.037433
0.433155
0.095541
0.063694
0.089172
0.124204
0.096603
0.067941
0
0
0
0
0.001756
0.397035
1,889
54
109
34.981481
0.825285
0.043939
0
0.128205
0
0
0.020236
0
0
0
0
0
0
1
0.076923
false
0.051282
0.153846
0
0.333333
0.051282
0
0
0
null
0
0
0
0
0
0
0
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
fe6ca6132fd3d4c89d5ded448a325fa1bfa66596
959
py
Python
src/main.py
tiopi/LomitoRelleno
64bfe9a6be5e0c1f42b0cf8e591880307ee92c0d
[ "MIT" ]
1
2020-04-30T02:40:05.000Z
2020-04-30T02:40:05.000Z
src/main.py
tiopi/LomitoRelleno
64bfe9a6be5e0c1f42b0cf8e591880307ee92c0d
[ "MIT" ]
null
null
null
src/main.py
tiopi/LomitoRelleno
64bfe9a6be5e0c1f42b0cf8e591880307ee92c0d
[ "MIT" ]
1
2020-04-30T02:27:31.000Z
2020-04-30T02:27:31.000Z
from utils import get_contract_from_blockchain from compiler import compile_into_ast from analyze import analyze_ast import argparse import json parser = argparse.ArgumentParser(description="Analyze Tacos") parser.add_argument("--get-file", help="Use a local file path to analyze") parser.add_argument("--get-...
35.518519
95
0.752868
115
959
5.869565
0.347826
0.106667
0.111111
0.185185
0.18963
0.18963
0
0
0
0
0
0.11194
0.161627
959
26
96
36.884615
0.727612
0.277372
0
0
0
0
0.165913
0
0
0
0
0
0
1
0
false
0
0.294118
0
0.294118
0.117647
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
fe704831e870ca90fcf63a150b08046fde3c6f4d
1,607
py
Python
food_water code/UI.py
djr59/Automated-Petcare-System
63ae7e024beab658acdc4004cb44dfe10d23fae2
[ "MIT" ]
null
null
null
food_water code/UI.py
djr59/Automated-Petcare-System
63ae7e024beab658acdc4004cb44dfe10d23fae2
[ "MIT" ]
null
null
null
food_water code/UI.py
djr59/Automated-Petcare-System
63ae7e024beab658acdc4004cb44dfe10d23fae2
[ "MIT" ]
null
null
null
import os food_hour_array = [] food_min_array = [] food_serving_array = [] Feedings = int(raw_input("how many feedings a day ")) while Feedings < 1 or Feedings > 10: print "Invalid feedings per day, must be 1-10" Feedings = int(raw_input("how many feedings a day ")) i = 1 #run a loop to get the users input for how...
30.903846
160
0.679527
257
1,607
4.132296
0.29572
0.045198
0.082863
0.096045
0.423729
0.386064
0.386064
0.329567
0.329567
0.082863
0
0.021505
0.189795
1,607
51
161
31.509804
0.794163
0.161792
0
0.3125
0
0
0.310216
0.052946
0
0
0
0
0
0
null
null
0
0.03125
null
null
0.125
0
0
0
null
0
0
0
0
0
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
fe72267acba18d0d109852398360fc62b117f3d5
3,630
py
Python
metrics.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
null
null
null
metrics.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
null
null
null
metrics.py
natureyoo/siamese-triplet
83c916e30fa40d890febeffc25cf6bedf542fd3f
[ "BSD-3-Clause" ]
1
2020-12-08T02:20:25.000Z
2020-12-08T02:20:25.000Z
import numpy as np def pdist(source_mtx, target_mtx): distance_matrix = -2 * source_mtx.dot(target_mtx.transpose()) \ + (source_mtx ** 2).sum(axis=1).reshape(-1, 1) \ + (target_mtx ** 2).sum(axis=1).reshape(1, -1) return distance_matrix def get_acc(query_emb, quer...
28.359375
106
0.613499
505
3,630
4.213861
0.217822
0.029605
0.041353
0.042293
0.356673
0.304041
0.256109
0.169173
0.094925
0.094925
0
0.022099
0.252066
3,630
127
107
28.582677
0.761694
0.025895
0
0.413793
0
0
0.014265
0
0
0
0
0
0
1
0.252874
false
0.011494
0.011494
0.057471
0.425287
0
0
0
0
null
0
0
0
0
0
0
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
fe74fd2e3a9c30783d18c595ff5249645bd7e00e
1,747
py
Python
makerspaceleiden/templatetags/isingroup.py
MakerSpaceLeiden/makerspaceleiden-crm
039c1b291507951658de6824de3b18a75b36b5ad
[ "Apache-2.0" ]
5
2019-03-12T21:38:32.000Z
2021-11-06T15:26:56.000Z
makerspaceleiden/templatetags/isingroup.py
MakerSpaceLeiden/makerspaceleiden-crm
039c1b291507951658de6824de3b18a75b36b5ad
[ "Apache-2.0" ]
33
2019-01-21T15:54:50.000Z
2021-05-18T17:54:52.000Z
makerspaceleiden/templatetags/isingroup.py
MakerSpaceLeiden/makerspaceleiden-crm
039c1b291507951658de6824de3b18a75b36b5ad
[ "Apache-2.0" ]
5
2019-01-21T15:47:26.000Z
2021-09-22T07:14:34.000Z
from django import template from django.conf import settings from pettycash.models import PettycashBalanceCache from django.core.exceptions import ObjectDoesNotExist from django.utils import timezone from datetime import datetime, timedelta register = template.Library() @register.filter(name="has_group") def has_gr...
26.469697
83
0.726388
215
1,747
5.790698
0.344186
0.096386
0.086747
0.096386
0.257028
0.212851
0.13012
0
0
0
0
0.000696
0.178019
1,747
65
84
26.876923
0.866295
0.050944
0
0.069767
0
0
0.05925
0.015115
0
0
0
0
0
1
0.139535
false
0.023256
0.139535
0.093023
0.511628
0
0
0
0
null
0
0
0
0
0
0
0
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
fe76341af5a00a1955f14831d1fec3f3c19e9b34
2,559
py
Python
byceps/services/user_group/dbmodels.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
33
2018-01-16T02:04:51.000Z
2022-03-22T22:57:29.000Z
byceps/services/user_group/dbmodels.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
7
2019-06-16T22:02:03.000Z
2021-10-02T13:45:31.000Z
byceps/services/user_group/dbmodels.py
GSH-LAN/byceps
ab8918634e90aaa8574bd1bb85627759cef122fe
[ "BSD-3-Clause" ]
14
2019-06-01T21:39:24.000Z
2022-03-14T17:56:43.000Z
""" byceps.services.user_group.dbmodels ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from datetime import datetime from typing import Optional from sqlalchemy.ext.associationproxy import association_proxy from ...database i...
30.831325
97
0.660414
315
2,559
5.161905
0.320635
0.0492
0.061501
0.04428
0.238622
0.238622
0.238622
0.221402
0.221402
0.119311
0
0.003951
0.208675
2,559
82
98
31.207317
0.799012
0.12036
0
0.188679
0
0
0.068345
0.009892
0
0
0
0
0
1
0.075472
false
0
0.132075
0.056604
0.622642
0
0
0
0
null
0
0
0
0
0
0
0
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
fe7eb88a1d06b7da00768f11beae07161c440614
2,126
py
Python
github.py
GeoLibra/spiders
4c1611f7356c8aa7be4f280af27efe0b83cf0a99
[ "MIT" ]
null
null
null
github.py
GeoLibra/spiders
4c1611f7356c8aa7be4f280af27efe0b83cf0a99
[ "MIT" ]
null
null
null
github.py
GeoLibra/spiders
4c1611f7356c8aa7be4f280af27efe0b83cf0a99
[ "MIT" ]
null
null
null
import requests from lxml import etree import urllib import urllib3 import time import re try: from urllib.parse import urlparse except ImportError: from urlparse import urlparse urllib3.disable_warnings() # 禁用安全请求警告 class Git(): def __init__(self,username,password): self.headers={ 'Use...
35.433333
137
0.616181
248
2,126
5.197581
0.487903
0.034135
0.031032
0.037238
0.034135
0
0
0
0
0
0
0.026217
0.246472
2,126
60
138
35.433333
0.778402
0.090781
0
0
0
0.019608
0.194397
0.04574
0
0
0
0
0
1
0.078431
false
0.058824
0.176471
0
0.333333
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
0
0
0
1
0
0
0
0
0
1
fe837203cd31344a264e425ffee7dc55fb6f8c80
316
py
Python
src/char_recognition/demo.py
0x0soir/tensorwine
3dfcb88bb45b214f1a67c245b631e14ef31f4ad0
[ "MIT" ]
1
2018-01-18T21:56:36.000Z
2018-01-18T21:56:36.000Z
src/char_recognition/demo.py
0x0soir/tensorwine
3dfcb88bb45b214f1a67c245b631e14ef31f4ad0
[ "MIT" ]
null
null
null
src/char_recognition/demo.py
0x0soir/tensorwine
3dfcb88bb45b214f1a67c245b631e14ef31f4ad0
[ "MIT" ]
null
null
null
import wx import mainFrame import letter import layer if __name__ == '__main__': # Cargar red neuronal net = layer.net(model="denseConv", input_shape=[letter.max_size, letter.max_size]) # Abrir ventana app = wx.App(redirect=False) frame = mainFrame.MainFrame(net) app.MainLoop()
24.307692
87
0.68038
40
316
5.1
0.625
0.088235
0.127451
0
0
0
0
0
0
0
0
0
0.21519
316
12
88
26.333333
0.822581
0.10443
0
0
0
0
0.063433
0
0
0
0
0
0
1
0
false
0
0.444444
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
0
0
0
1
0
0
0
0
1
fe83729e7ccb7fd4ab1f5daa112380d6ad4baeb1
2,633
py
Python
twobody.py
iambernie/numint
53b9a446123aeb7ce3d0a1e462478b35675d4e77
[ "MIT" ]
null
null
null
twobody.py
iambernie/numint
53b9a446123aeb7ce3d0a1e462478b35675d4e77
[ "MIT" ]
null
null
null
twobody.py
iambernie/numint
53b9a446123aeb7ce3d0a1e462478b35675d4e77
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import h5py import numpy from numpy import sin, cos, pi, degrees from ext import hdf5handler from matplotlib import pyplot as plt #MKS G = 6.67384e-11 # m^3 kg^-1 s^-2 MSun = 1.9891e30 # kg^1 AU = 149597870700 # m^1 DAY = 3600*24 # s^1 YEAR = DAY*365.25 # s^1 def rk4...
27.427083
79
0.5188
440
2,633
3.054545
0.295455
0.0625
0.015625
0.071429
0.272321
0.272321
0.264881
0.264881
0.172619
0.159226
0
0.081751
0.279909
2,633
95
80
27.715789
0.62711
0.044816
0
0.112676
0
0
0.055933
0
0
0
0
0.010526
0
1
0.056338
false
0
0.070423
0.014085
0.169014
0.014085
0
0
0
null
0
0
0
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
fe8489aa298ad343596849dedb5e264fc7d410b4
659
py
Python
mediagoblin/tests/test_processing.py
pythonsnake/MediaDwarf
1bd9ee4112ad493b775dfaf68b7f1b55e4352075
[ "CC0-1.0" ]
1
2016-02-10T18:22:42.000Z
2016-02-10T18:22:42.000Z
mediagoblin/tests/test_processing.py
pythonsnake/MediaDwarf
1bd9ee4112ad493b775dfaf68b7f1b55e4352075
[ "CC0-1.0" ]
1
2016-04-19T13:03:17.000Z
2016-04-19T13:03:17.000Z
mediagoblin/tests/test_processing.py
pythonsnake/MediaDwarf
1bd9ee4112ad493b775dfaf68b7f1b55e4352075
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python from nose.tools import assert_equal from mediagoblin import processing class TestProcessing(object): def run_fill(self, input, format, output=None): builder = processing.FilenameBuilder(input) result = builder.fill(format) if output is None: return result...
31.380952
79
0.634294
84
659
4.845238
0.559524
0.051597
0.078624
0.09828
0.132678
0.132678
0
0
0
0
0
0.015779
0.230653
659
20
80
32.95
0.786982
0.030349
0
0
0
0
0.139498
0.032915
0
0
0
0
0.142857
1
0.214286
false
0
0.142857
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
fe8841290caf7c9f935b218251bbb75a6b51aceb
292
py
Python
Settings.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
null
null
null
Settings.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
null
null
null
Settings.py
Overkillus/Paper-Football
c72a04270c2b20ffcac1785cf1b7e105df3d912b
[ "MIT" ]
5
2020-11-11T17:47:14.000Z
2021-04-09T00:04:57.000Z
# Display default_screen_width = 940 default_screen_height = 600 screen_width = default_screen_width screen_height = default_screen_height is_native = False max_tps = 16 board_width = 13 board_height = 9 theme = "neon" # neon/paper/football # Sound sound_volume = 0.1 sound_muted = False
16.222222
37
0.787671
44
292
4.863636
0.568182
0.242991
0.168224
0
0
0
0
0
0
0
0
0.052209
0.14726
292
17
38
17.176471
0.807229
0.113014
0
0
0
0
0.01581
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe892cee2ccc30f11228f46da09d378347ae470a
1,253
py
Python
tests/utilities.py
tschm/chebpy
7248249a75ed65bfc0ea9d711986c3c9c51278a0
[ "BSD-3-Clause" ]
2
2020-05-06T00:14:59.000Z
2021-02-15T03:18:16.000Z
tests/utilities.py
KennyKangMPC/chebpy
5ad603b15f90a0f36093f1705e3e08d090330cef
[ "BSD-3-Clause" ]
null
null
null
tests/utilities.py
KennyKangMPC/chebpy
5ad603b15f90a0f36093f1705e3e08d090330cef
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import numpy as np eps = np.finfo(float).eps def infnorm(x): return np.linalg.norm(x, np.inf) def scaled_tol(n): tol = 5e1*eps if n < 20 else np.log(n)**2.5*eps return tol # bespoke test generators def infNormLessThanTol(a, b, tol): def asserter(self): self.assertLes...
27.844444
67
0.535515
183
1,253
3.628415
0.453552
0.073795
0.049699
0.042169
0
0
0
0
0
0
0
0.045351
0.296089
1,253
44
68
28.477273
0.707483
0.190742
0
0
0
0
0.056943
0
0
0
0
0.022727
0.12
1
0.16
false
0
0.04
0.04
0.32
0
0
0
0
null
0
0
0
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
fe8a39ea06a033793744b04b37d681d9c6acda08
2,637
py
Python
transcode.py
Palethorn/multibitrate-vod
ebe48447374920c2dffde0b6ebd33b95f788a4f1
[ "MIT" ]
8
2016-12-22T11:40:56.000Z
2020-06-25T19:54:26.000Z
transcode.py
Palethorn/multibitrate-vod
ebe48447374920c2dffde0b6ebd33b95f788a4f1
[ "MIT" ]
null
null
null
transcode.py
Palethorn/multibitrate-vod
ebe48447374920c2dffde0b6ebd33b95f788a4f1
[ "MIT" ]
1
2020-03-17T21:58:21.000Z
2020-03-17T21:58:21.000Z
import yaml import sys import os from jinja2 import Template import argparse backend = { 'cpu': { 'pass1': 'ffmpeg -hide_banner -loglevel error -y -i {{ input_file }} -an -c:v libx264 -preset:v {{ preset }} -threads 0 -r {{ fps }} -g {{ gop }} -keyint_min {{ gop }} -sc_threshold 0 -x264opts bframes=1 -pass...
47.089286
399
0.606371
371
2,637
4.204852
0.269542
0.028846
0.041026
0.061538
0.580769
0.580769
0.578205
0.571795
0.516667
0.491026
0
0.030888
0.214259
2,637
55
400
47.945455
0.722008
0
0
0.090909
0
0.090909
0.562761
0
0
0
0
0
0
1
0
false
0.25
0.113636
0
0.113636
0.090909
0
0
0
null
0
0
0
0
0
0
0
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
fe8b3ccbf49ff66e25fb41bdf014b4f3ed703082
2,512
py
Python
backend/boards/tests/test_models.py
LucasSantosGuedes/App-Gestao
88b21208f9a2585421d0b949d2d44cdde72f0ec9
[ "MIT" ]
null
null
null
backend/boards/tests/test_models.py
LucasSantosGuedes/App-Gestao
88b21208f9a2585421d0b949d2d44cdde72f0ec9
[ "MIT" ]
null
null
null
backend/boards/tests/test_models.py
LucasSantosGuedes/App-Gestao
88b21208f9a2585421d0b949d2d44cdde72f0ec9
[ "MIT" ]
null
null
null
from ..models import Label import pytest from mixer.backend.django import mixer pytestmark = pytest.mark.django_db class TestBoard: def test_model(self): board = mixer.blend('boards.Board') assert board.pk == 1, 'Should create a Board instance' def test_str(self): board = mixer.blend(...
32.205128
72
0.618232
326
2,512
4.723926
0.193252
0.136364
0.218182
0.090909
0.485065
0.418831
0.230519
0.116234
0.08961
0.08961
0
0.028042
0.247611
2,512
77
73
32.623377
0.786772
0
0
0.283333
0
0
0.180334
0
0
0
0
0
0.25
1
0.183333
false
0
0.05
0
0.333333
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
fe8c7c3649c3737e5bbd0705f4a9d1eb7e37fb4c
2,695
py
Python
bokeh/models/widgets/widget.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
1
2020-03-21T04:11:51.000Z
2020-03-21T04:11:51.000Z
bokeh/models/widgets/widget.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
2
2021-05-08T11:43:21.000Z
2021-05-10T19:16:43.000Z
bokeh/models/widgets/widget.py
jeisch/bokeh
6be4d5ebbec04117f2bb0693fe64dc664f8f1bb1
[ "BSD-3-Clause" ]
null
null
null
#----------------------------------------------------------------------------- # Copyright (c) 2012 - 2019, Anaconda, Inc., and Bokeh Contributors. # All rights reserved. # # The full license is in the file LICENSE.txt, distributed with this software. #-------------------------------------------------------------------...
33.6875
78
0.381447
191
2,695
5.329843
0.596859
0.014735
0.019646
0.02554
0.031434
0
0
0
0
0
0
0.006242
0.108349
2,695
79
79
34.113924
0.417395
0.718367
0
0.105263
0
0
0.415385
0
0
0
0
0
0
1
0
false
0
0.210526
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fe97be8ccec2afe986ff68b374a9a32c7efebd9e
55,784
py
Python
markdown_to_json/vendor/CommonMark/CommonMark.py
userexponentia/markdown-to-json
4a5bdd7eba3b2779b5c4b8d596b280e7378b5b44
[ "MIT" ]
197
2016-06-09T07:47:19.000Z
2022-03-29T03:29:37.000Z
markdown_to_json/vendor/CommonMark/CommonMark.py
ZizhengYang/markdown-to-json
ec51a1a633025da949e0b0ecb2335f38455485ce
[ "MIT" ]
16
2015-01-02T23:19:40.000Z
2017-01-11T15:52:33.000Z
markdown_to_json/vendor/CommonMark/CommonMark.py
ZizhengYang/markdown-to-json
ec51a1a633025da949e0b0ecb2335f38455485ce
[ "MIT" ]
57
2016-09-06T22:41:58.000Z
2022-02-17T04:30:31.000Z
#!/usr/bin/env python # 2014 - Bibek Kafle & Roland Shoemaker # Port of @jgm's JavaScript stmd.js implementation of the CommonMark spec # Basic usage: # # import CommonMark # parser = CommonMark.DocParser() # renderer = CommonMark.HtmlRenderer() # print(renderer.render(parser.parse('Hello *world*'))) import re, sys, a...
40.423188
1,090
0.515524
6,119
55,784
4.626736
0.131884
0.015824
0.010067
0.01208
0.282894
0.218714
0.17502
0.149589
0.122814
0.101657
0
0.011541
0.350746
55,784
1,380
1,091
40.423188
0.770142
0.107558
0
0.354839
0
0.016565
0.097684
0.038862
0.004359
0
0
0
0
1
0.048823
false
0.006975
0.006103
0.000872
0.163906
0.020924
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
fea0245b43824bb6a29762c04d3a8db3572c705d
947
py
Python
App/core/Licores/forms.py
Carlososuna11/CheappyBeer
5d01e4f47ab1b2eb2d5d67e110278fa82820e611
[ "MIT" ]
null
null
null
App/core/Licores/forms.py
Carlososuna11/CheappyBeer
5d01e4f47ab1b2eb2d5d67e110278fa82820e611
[ "MIT" ]
null
null
null
App/core/Licores/forms.py
Carlososuna11/CheappyBeer
5d01e4f47ab1b2eb2d5d67e110278fa82820e611
[ "MIT" ]
null
null
null
from django.forms import * from core.Licores.models import * class LicorForm(ModelForm): def __init__(self,*args, **kwargs): super().__init__(*args, **kwargs) count = 0 for form in self.visible_fields(): form.field.widget.attrs['autocomplete'] = 'off' form.field.w...
27.852941
70
0.467793
86
947
5
0.639535
0.083721
0.139535
0.186047
0
0
0
0
0
0
0
0.012346
0.401267
947
33
71
28.69697
0.746032
0
0
0.071429
0
0
0.133052
0
0
0
0
0
0
1
0.035714
false
0
0.071429
0
0.178571
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
fea0f9f31d544eb961461409eae4d15f59ef3334
738
py
Python
src/bot/helpers.py
proyecto-chaucha/bot-template
f7b011b88d21cb59e9aabf1bf8065723af396cee
[ "MIT" ]
null
null
null
src/bot/helpers.py
proyecto-chaucha/bot-template
f7b011b88d21cb59e9aabf1bf8065723af396cee
[ "MIT" ]
1
2018-05-01T16:12:36.000Z
2018-05-01T16:12:36.000Z
src/bot/helpers.py
proyecto-chaucha/bot-template
f7b011b88d21cb59e9aabf1bf8065723af396cee
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from bot import logger from telegram import Update class Chat(object): @staticmethod def is_private(update: Update): """ Tells if the message is private or not :param update: telegram bot update object :return: true if is...
22.363636
63
0.593496
90
738
4.811111
0.533333
0.062356
0.096998
0
0
0
0
0
0
0
0
0.003817
0.289973
738
32
64
23.0625
0.822519
0.272358
0
0.125
0
0
0.08554
0
0
0
0
0
0
1
0.125
false
0
0.1875
0
0.625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
fea16f60bcc6ee79ba69d5b9bca9948c0301fc8f
677
py
Python
26/00/normalize.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
26/00/normalize.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
39
2017-07-31T22:54:01.000Z
2017-08-31T00:19:03.000Z
26/00/normalize.py
pylangstudy/201708
126b1af96a1d1f57522d5a1d435b58597bea2e57
[ "CC0-1.0" ]
null
null
null
import unicodedata #http://d.hatena.ne.jp/expectorate/20131230/1388433282 #https://gist.github.com/ikegami-yukino/8186853 def show(form, code): char = chr(code) normalized_char = unicodedata.normalize(form, char) if char != normalized_char: if len(normalized_char) == 1: print('{:5x} {}...
33.85
99
0.610044
86
677
4.732558
0.5
0.206388
0.088452
0.078624
0
0
0
0
0
0
0
0.072464
0.184638
677
19
100
35.631579
0.664855
0.146233
0
0
0
0
0.118261
0
0
0
0.036522
0
0
1
0.076923
false
0
0.076923
0
0.153846
0.230769
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
fea1bc42c492f8364f3fb7a7e465947444d4ea12
4,424
py
Python
source/documentModel/comparators/NGramGraphSimilarity.py
vilaras/PyINSECT
4cc20659c47bd5f9c394d175cb041b729f6eb132
[ "Apache-2.0" ]
2
2020-12-20T01:05:23.000Z
2021-09-17T08:53:30.000Z
source/documentModel/comparators/NGramGraphSimilarity.py
vilaras/PyINSECT
4cc20659c47bd5f9c394d175cb041b729f6eb132
[ "Apache-2.0" ]
2
2021-05-27T19:47:25.000Z
2021-05-28T17:11:23.000Z
source/documentModel/comparators/NGramGraphSimilarity.py
vilaras/PyINSECT
4cc20659c47bd5f9c394d175cb041b729f6eb132
[ "Apache-2.0" ]
1
2021-04-21T17:21:39.000Z
2021-04-21T17:21:39.000Z
#!/usr/bin/env python """ NGramCachedGraphComparator.py Created on May 24, 2017, 3:56 PM """ """ An n-gram graph similarity class that calculates a set of ngram graph similarity measures implementing basic similarity extraction functions. @author ysig """ from Operator import * # a general similarity...
31.15493
124
0.625452
549
4,424
4.981785
0.251366
0.040951
0.047532
0.055576
0.496161
0.478611
0.454845
0.426325
0.243144
0.170384
0
0.029994
0.268987
4,424
141
125
31.375887
0.815708
0.298146
0
0.390625
0
0
0.020833
0
0
0
0
0
0
1
0.21875
false
0
0.015625
0.09375
0.5625
0
0
0
0
null
0
0
0
0
0
0
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
fea8ce1c9d0e85827e6f54a06454185caa41db97
460
py
Python
kuwala/core/neo4j/importer/src/main.py
bmahmoudyan/kuwala
7951ed49ac1c31c874a4446bb4661152c4d69c90
[ "Apache-2.0" ]
null
null
null
kuwala/core/neo4j/importer/src/main.py
bmahmoudyan/kuwala
7951ed49ac1c31c874a4446bb4661152c4d69c90
[ "Apache-2.0" ]
null
null
null
kuwala/core/neo4j/importer/src/main.py
bmahmoudyan/kuwala
7951ed49ac1c31c874a4446bb4661152c4d69c90
[ "Apache-2.0" ]
null
null
null
import argparse import sys sys.path.insert(0, '../../../../common/') import PipelineImporter as PipelineImporter if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('--continent', help='Continent of the file') parser.add_argument('--country', help='Country of the file') ...
28.75
78
0.708696
55
460
5.690909
0.472727
0.086262
0.162939
0.095847
0.210863
0.210863
0.210863
0
0
0
0
0.002532
0.141304
460
15
79
30.666667
0.789873
0
0
0
0
0
0.280435
0
0
0
0
0
0
1
0
false
0
0.363636
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
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
feab07e18d1ce27e081e6b5e4de99a0f7d46ee04
2,376
py
Python
sympy/functions/special/tests/test_spec_polynomials.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
1
2016-05-09T10:08:18.000Z
2016-05-09T10:08:18.000Z
sympy/functions/special/tests/test_spec_polynomials.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
null
null
null
sympy/functions/special/tests/test_spec_polynomials.py
matthew-brett/sympy
7b87b62144c28f2e734e9106897c72806b99d181
[ "BSD-3-Clause" ]
1
2021-11-10T06:39:41.000Z
2021-11-10T06:39:41.000Z
from sympy import legendre, Symbol, hermite, chebyshevu, chebyshevt, \ chebyshevt_root, chebyshevu_root, assoc_legendre, Rational, \ roots, sympify, S x = Symbol('x') def test_legendre(): assert legendre(0, x) == 1 assert legendre(1, x) == x assert legendre(2, x) == ((3*x**2-1)/2).expand(...
33.464789
79
0.518939
434
2,376
2.815668
0.131336
0.11784
0.057283
0.052373
0.38707
0.247136
0.237316
0.225859
0.225859
0.225859
0
0.124154
0.254209
2,376
70
80
33.942857
0.565463
0.004209
0
0.068966
0
0
0.000423
0
0
0
0
0
0.637931
1
0.068966
false
0
0.017241
0
0.086207
0
0
0
0
null
0
0
0
0
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
feac2e1efb6273b72c469f04354e48dfac367296
2,759
py
Python
Python3/1284.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/1284.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/1284.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 16 ms submission class Solution: def minFlips(self, mat: List[List[int]]) -> int: M, N = len(mat), len(mat[0]) res = float('inf') dire = [(0,0),(1,0),(-1,0),(0,1),(0,-1)] ...
32.845238
98
0.447626
305
2,759
3.065574
0.265574
0.037433
0.042781
0.035294
0.158289
0.08984
0.074866
0.038503
0
0
0
0.032173
0.447988
2,759
83
99
33.240964
0.581747
0.015223
0
0.142857
0
0
0.002212
0
0
0
0
0
0
0
null
null
0
0.028571
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
fead08099465f11a5746523567cee42613c864eb
663
py
Python
tests/test_commandline.py
bluegenes/orpheum
a76c3f3e5c649894a5a8cd85738d5a7c78d6b1b8
[ "MIT" ]
4
2021-04-18T21:17:49.000Z
2021-07-19T04:12:25.000Z
tests/test_commandline.py
czbiohub/kh-tools
a76c3f3e5c649894a5a8cd85738d5a7c78d6b1b8
[ "MIT" ]
48
2019-04-13T18:18:30.000Z
2020-04-24T03:50:00.000Z
tests/test_commandline.py
czbiohub/leaftea
a76c3f3e5c649894a5a8cd85738d5a7c78d6b1b8
[ "MIT" ]
3
2021-07-27T19:10:41.000Z
2022-03-31T15:08:19.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ test_commandline ---------------------------------- Tests for `orpheum` module. """ from click.testing import CliRunner def test_cli(): from orpheum.commandline import cli runner = CliRunner() result = runner.invoke(cli) assert result.exit_code == ...
17.447368
43
0.631976
81
663
5.037037
0.382716
0.051471
0.073529
0.205882
0.715686
0.664216
0.664216
0.664216
0.512255
0.512255
0
0.007519
0.197587
663
37
44
17.918919
0.759399
0.18552
0
0.5625
0
0
0.015066
0
0
0
0
0
0.1875
1
0.1875
false
0
0.25
0
0.4375
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
feae332aef5e8e08e6c5eae2cfafd30bb34f6ab9
4,115
py
Python
python-code/opengl-learning/glumpy-learning/shadertoy-voronoi.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
13
2018-09-07T02:29:07.000Z
2021-06-18T08:40:09.000Z
python-code/opengl-learning/glumpy-learning/shadertoy-voronoi.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
null
null
null
python-code/opengl-learning/glumpy-learning/shadertoy-voronoi.py
juxiangwu/image-processing
c644ef3386973b2b983c6b6b08f15dc8d52cd39f
[ "Apache-2.0" ]
4
2019-06-20T00:09:39.000Z
2021-07-15T10:14:36.000Z
# ----------------------------------------------------------------------------- # Copyright (c) 2009-2016 Nicolas P. Rougier. All rights reserved. # Distributed under the (new) BSD License. # ----------------------------------------------------------------------------- """ Voronoi shadertoy example from www.shadertoy....
30.257353
92
0.560389
581
4,115
3.934596
0.383821
0.007874
0.007874
0.008749
0.091426
0.081365
0.071741
0.068241
0.068241
0.068241
0
0.060872
0.225516
4,115
136
93
30.257353
0.656417
0.078979
0
0.173554
0
0.049587
0.834435
0.118487
0
0
0
0
0
1
0.024793
false
0.016529
0.016529
0
0.066116
0
0
0
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
feaf47fa6b9c6b66b511b52e149d1af86c1be371
1,581
py
Python
concept_selection/bronkerbosch.py
sairin1202/Commonsense-Knowledge-Aware-Concept-Selection-For-Diverse-and-Informative-Visual-Storytelling
b223413cf8f7ef25584f9c0408230ed6be8ecd51
[ "MIT" ]
17
2021-02-13T01:27:29.000Z
2022-03-11T05:09:11.000Z
concept_selection/bronkerbosch.py
sairin1202/Commonsense-Knowledge-Aware-Concept-Selection-For-Diverse-and-Informative-Visual-Storytelling
b223413cf8f7ef25584f9c0408230ed6be8ecd51
[ "MIT" ]
8
2021-02-13T01:50:19.000Z
2022-03-14T12:56:25.000Z
concept_selection/bronkerbosch.py
sairin1202/Commonsense-Knowledge-Aware-Concept-Selection-For-Diverse-and-Informative-Visual-Storytelling
b223413cf8f7ef25584f9c0408230ed6be8ecd51
[ "MIT" ]
2
2021-08-02T11:21:45.000Z
2021-12-06T12:38:44.000Z
MIN_SIZE = 13 # coding: utf-8 class Reporter(object): def __init__(self): self.cnt = 0 self.cliques = [] def inc_count(self): self.cnt += 1 def record(self, clique): self.cliques.append(clique) def print_report(self): print ('%d recursive calls' % self.cn...
24.323077
87
0.582543
205
1,581
4.395122
0.370732
0.048835
0.024417
0
0
0
0
0
0
0
0
0.031304
0.272612
1,581
65
88
24.323077
0.751304
0.223909
0
0
0
0
0.019917
0
0
0
0
0
0
1
0.205882
false
0
0
0.029412
0.323529
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1