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
f8e92112b61dc64252a8bdb77bbf3e0e15b55abe
5,074
py
Python
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
60,067
2017-01-18T17:21:31.000Z
2022-03-31T21:37:45.000Z
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
66,955
2017-01-18T17:21:38.000Z
2022-03-31T23:56:11.000Z
test/jit/test_backend_nnapi.py
Hacky-DH/pytorch
80dc4be615854570aa39a7e36495897d8a040ecc
[ "Intel" ]
19,210
2017-01-18T17:45:04.000Z
2022-03-31T23:51:56.000Z
import os import sys import unittest import torch import torch._C from pathlib import Path from test_nnapi import TestNNAPI from torch.testing._internal.common_utils import TEST_WITH_ASAN # Make the helper files in test/ importable pytorch_test_dir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) sys.pa...
44.508772
132
0.643082
644
5,074
4.89441
0.285714
0.069797
0.037754
0.020939
0.409264
0.388959
0.388959
0.35882
0.329632
0.329632
0
0.011182
0.259756
5,074
113
133
44.902655
0.828009
0.162594
0
0.356164
0
0.027397
0.252449
0.005632
0
0
0
0
0.068493
1
0.068493
false
0
0.109589
0
0.205479
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8e997acb5df08763f83e5ed402ea27c456b06ca
1,078
py
Python
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
24
2018-11-04T17:16:52.000Z
2022-01-06T12:34:49.000Z
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
3
2018-12-09T00:31:36.000Z
2020-07-29T06:21:51.000Z
main/configure.py
syxu828/Graph2Seq-0.1
36e38f755c0ee390735e49121259151da54bcc1c
[ "Apache-2.0" ]
4
2019-01-09T06:44:41.000Z
2019-08-04T07:55:00.000Z
train_data_path = "../data/no_cycle/train.data" dev_data_path = "../data/no_cycle/dev.data" test_data_path = "../data/no_cycle/test.data" word_idx_file_path = "../data/word.idx" word_embedding_dim = 100 train_batch_size = 32 dev_batch_size = 500 test_batch_size = 500 l2_lambda = 0.000001 learning_rate = 0.001 epoch...
21.137255
63
0.727273
180
1,078
4.033333
0.466667
0.044077
0.049587
0.057851
0.078512
0
0
0
0
0
0
0.054645
0.151206
1,078
50
64
21.56
0.738798
0.197588
0
0
0
0
0.164912
0.091228
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8ea7055295dd79ddcfe4843e79b06f95f13078d
7,506
py
Python
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataControlWidget.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
from PyQt5.QtWidgets import QLabel, QWidget, QGridLayout, QCheckBox, QGroupBox from InftyDoubleSpinBox import InftyDoubleSpinBox from PyQt5.QtCore import pyqtSignal, Qt import helplib as hl import numpy as np class dataControlWidget(QGroupBox): showErrorBars_changed = pyqtSignal(bool) ignoreFirstPoint_changed ...
34.589862
123
0.635092
769
7,506
5.890767
0.197659
0.06181
0.020088
0.023841
0.182561
0.14128
0.132671
0.116998
0.070199
0.060044
0
0.010033
0.269651
7,506
216
124
34.75
0.816308
0.026246
0
0.138158
0
0
0.024654
0
0
0
0
0
0
1
0.144737
false
0
0.032895
0.032895
0.335526
0.006579
0
0
0
null
0
0
0
0
0
0
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
1
0
f8ea7298a7caca93599e616f2e4db31947e61892
6,425
py
Python
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
3
2015-01-29T14:09:25.000Z
2016-04-24T04:25:49.000Z
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
src/freemovr_engine/calib/acquire.py
strawlab/flyvr
335892cae740e53e82e07b526e1ba53fbd34b0ce
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
import roslib roslib.load_manifest('sensor_msgs') roslib.load_manifest('dynamic_reconfigure') import rospy import sensor_msgs.msg import dynamic_reconfigure.srv import dynamic_reconfigure.encoding import numpy as np import time import os.path import queue class CameraHandler(object): def __init__(self,topic_pref...
36.095506
124
0.588327
829
6,425
4.306393
0.207479
0.064706
0.033894
0.026611
0.380112
0.337815
0.285434
0.229132
0.220168
0.220168
0
0.006348
0.313463
6,425
177
125
36.299435
0.802993
0.036887
0
0.296552
0
0
0.040783
0
0
0
0
0
0
1
0.096552
false
0
0.062069
0.006897
0.213793
0.013793
0
0
0
null
0
0
0
0
0
0
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
1
0
f8eb7ee679859acda30ad6ca74e666a2bc11c767
6,949
py
Python
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
24
2021-04-06T20:36:10.000Z
2022-02-26T17:03:33.000Z
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
20
2021-04-02T00:51:34.000Z
2022-03-29T15:00:08.000Z
examples/hfht/pointnet_classification.py
nixli/hfta
76274b5ee0e32732da20b153a3cc6550510d8a78
[ "MIT" ]
5
2021-04-11T20:07:32.000Z
2021-06-14T06:41:05.000Z
import argparse import logging import numpy as np import os import pandas as pd import random import subprocess from pathlib import Path from hyperopt import hp from hyperopt.pyll.stochastic import sample from hfta.hfht import (tune_hyperparameters, attach_common_args, rearrange_algorithm_kwarg...
29.570213
80
0.61534
880
6,949
4.693182
0.281818
0.017433
0.028329
0.013801
0.143584
0.104358
0.084262
0.05908
0.030508
0.030508
0
0.012228
0.258598
6,949
234
81
29.696581
0.789402
0.110088
0
0.115578
0
0
0.128431
0.003758
0
0
0
0
0.005025
1
0.025126
false
0
0.065327
0
0.115578
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8eb7f85d81c3a2dfe42f499dfc3e4db4b3a0b93
444
py
Python
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
25
2018-07-20T22:31:40.000Z
2021-07-15T16:58:41.000Z
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
13
2018-06-18T23:08:47.000Z
2022-02-10T07:38:25.000Z
cpdb/trr/migrations/0002_alter_trr_subject_id_type.py
invinst/CPDBv2_backend
b4e96d620ff7a437500f525f7e911651e4a18ef9
[ "Apache-2.0" ]
6
2018-05-17T21:59:43.000Z
2020-11-17T00:30:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.4 on 2018-03-06 04:00 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('trr', '0001_initial'), ] operations = [ migrations.AlterField( ...
21.142857
57
0.61036
48
444
5.479167
0.8125
0
0
0
0
0
0
0
0
0
0
0.064815
0.27027
444
20
58
22.2
0.746914
0.153153
0
0
1
0
0.075067
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f8ec1873a929e5565a9c1de6ad8321fa85a4a6d9
1,409
py
Python
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
24
2019-05-09T08:36:46.000Z
2022-03-16T16:20:01.000Z
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
122
2019-05-27T12:27:15.000Z
2020-07-31T06:45:08.000Z
tests/utils/dut.py
Ostrokrzew/standalone-linux-io-tracer
5fcbe7f0c7b027d9e5fdfb4c6e9d553c6fa617b6
[ "BSD-3-Clause-Clear" ]
18
2019-05-27T09:31:56.000Z
2021-05-27T18:54:52.000Z
# # Copyright(c) 2020 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause-Clear # from core.test_run_utils import TestRun from utils.installer import install_iotrace, check_if_installed from utils.iotrace import IotracePlugin from utils.misc import kill_all_io from test_tools.fio.fio import Fio def dut_prepare...
30.630435
112
0.726757
189
1,409
5.275132
0.481481
0.078235
0.102307
0.054162
0
0
0
0
0
0
0
0.005119
0.168204
1,409
45
113
31.311111
0.845563
0.110007
0
0
0
0.035714
0.236568
0.085806
0
0
0
0
0
1
0.071429
false
0
0.178571
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8ecc8d3dac32d7fd54bf1a19d511383c8e5ce7f
355
py
Python
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
null
null
null
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
1
2019-08-09T21:36:33.000Z
2019-08-09T21:37:24.000Z
game_service.py
Drew8521/MusiQ
e52671c7dcc4f54f6cbb829486a733a9179575b1
[ "MIT" ]
null
null
null
from models import Song from random import choice def random_song(genre): results = Song.query().filter(Song.genre==genre).fetch() print(results) songs = choice(results) random_song = { "title": songs.song, "album": songs.album, "artist": songs.artist.lower(), "genre": g...
23.666667
60
0.622535
42
355
5.190476
0.452381
0.137615
0
0
0
0
0
0
0
0
0
0
0.247887
355
14
61
25.357143
0.816479
0
0
0
0
0
0.059155
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8ed0d2649220a6a4bd9e78f42580892fbc06d4f
288
py
Python
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
13
2017-08-22T12:26:07.000Z
2021-07-29T16:13:50.000Z
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
1
2021-02-08T10:24:33.000Z
2021-02-08T10:24:33.000Z
stdlib/csv/custom_dialect.py
janbodnar/Python-Course
51705ab5a2adef52bcdb99a800e94c0d67144a38
[ "BSD-2-Clause" ]
17
2018-08-13T11:10:33.000Z
2021-07-29T16:14:02.000Z
#!/usr/bin/python # custom_dialect.py import csv csv.register_dialect("hashes", delimiter="#") f = open('items3.csv', 'w') with f: writer = csv.writer(f, dialect="hashes") writer.writerow(("pencils", 2)) writer.writerow(("plates", 1)) writer.writerow(("books", 4))
16.941176
45
0.635417
38
288
4.763158
0.631579
0.232044
0
0
0
0
0
0
0
0
0
0.016529
0.159722
288
16
46
18
0.731405
0.118056
0
0
0
0
0.166667
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
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
f8ed4e06a829662d9c548dd0be8745a5ea388df8
996
py
Python
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
3
2019-12-31T06:44:06.000Z
2021-03-19T17:39:42.000Z
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
132
2019-10-09T20:45:53.000Z
2022-03-30T19:07:37.000Z
servicex/web/forms.py
zorache/ServiceX_App
4479afa0f019bbdcd35812691e78abba442c9d37
[ "BSD-3-Clause" ]
12
2019-12-06T22:47:35.000Z
2021-09-23T21:13:47.000Z
from typing import Optional from flask_wtf import FlaskForm from wtforms import StringField, SelectField, SubmitField from wtforms.validators import DataRequired, Length, Email from servicex.models import UserModel class ProfileForm(FlaskForm): name = StringField('Full Name', validators=[DataRequired(), Length(...
38.307692
80
0.653614
97
996
6.618557
0.42268
0.137072
0
0
0
0
0
0
0
0
0
0.005202
0.227912
996
25
81
39.84
0.829649
0
0
0
0
0
0.068273
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.6
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
1
0
0
1
f8ed824436e6201a95f5e3c52f9d1d1dd87092b2
24
py
Python
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
data/studio21_generated/interview/1657/starter_code.py
vijaykumawat256/Prompt-Summarization
614f5911e2acd2933440d909de2b4f86653dc214
[ "Apache-2.0" ]
null
null
null
def string_func(s, n):
12
22
0.666667
5
24
3
1
0
0
0
0
0
0
0
0
0
0
0
0.166667
24
2
23
12
0.75
0
0
0
0
0
0
0
0
0
0
0
0
0
null
null
0
0
null
null
0
1
1
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
1
0
0
0
0
0
0
0
0
4
f8ee134e47a471c9b912238f8dbcd8fb83c49b93
3,405
py
Python
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
libs/export_pbs/exportPb.py
linye931025/FPN_Tensorflow-master
e972496a798e9d77a74ddc6062d46b152d072ce7
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import absolute_import, print_function, division import os, sys import tensorflow as tf import tf_slim as slim from tensorflow.python.tools import freeze_graph sys.path.append('../../') from data.io.image_preprocess import short_side_resize_for_inference_data from libs.configs...
38.693182
126
0.612335
426
3,405
4.553991
0.368545
0.041237
0.018557
0.018557
0.098969
0.059794
0.027835
0.027835
0
0
0
0.016393
0.283407
3,405
87
127
39.137931
0.778689
0.021733
0
0
0
0
0.090499
0.041792
0
0
0
0
0
1
0.032258
false
0
0.129032
0
0.177419
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
0
0
0
0
0
0
0
0
1
0
f8eef0cd263627a15c156d8fca2fb80f3faea6c2
983
py
Python
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
ngadnap/command_templates/adapter_removal.py
smilefreak/NaDNAP
18354778dd896bc0ab3456ca7dbb9d194c1ebf4d
[ "MIT" ]
null
null
null
""" Adapter Removal templates """ # AdapterRemoval # # {0}: executable # {1}: fastq1 abs # {2}: fastq2 abs # {3}: fastq1 # {4}: fastq2 # {5}: minimum length # {6}: mismatch_rate # {7}: min base uality # {8}: min merge_length __ADAPTER_REMOVAL__=""" {0} --collapse --file1 {1} --file2 {2} --outputstats {3}....
31.709677
225
0.678535
128
983
5
0.539063
0.13125
0.040625
0
0
0
0
0
0
0
0
0.049818
0.162767
983
30
226
32.766667
0.727825
0.201424
0
0
0
0.090909
0.351245
0
0
0
0
0
0
1
0.090909
false
0
0.181818
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
0
0
0
0
1
0
f8f15b0752a64958efc156868083500a63e94dc1
1,745
py
Python
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
52
2015-04-17T12:06:09.000Z
2021-11-23T09:46:30.000Z
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
null
null
null
undercloud_heat_plugins/immutable_resources.py
AllenJSebastian/tripleo-common
d510a30266e002e90c358e69cb720bfdfa736134
[ "Apache-2.0" ]
47
2015-10-09T15:22:38.000Z
2021-04-22T04:35:57.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 # ...
28.145161
78
0.696848
231
1,745
5.164502
0.411255
0.050293
0.063705
0.057837
0.253982
0.253982
0.253982
0.140821
0.140821
0.140821
0
0.002907
0.211461
1,745
61
79
28.606557
0.864099
0.384527
0
0.2
0
0
0.049666
0
0
0
0
0
0
1
0.066667
false
0
0.133333
0.033333
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
0
0
0
0
1
0
f8f18448ffd7145536a1fb795da3a1417cfe03f4
255
py
Python
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
4
2018-09-25T07:29:05.000Z
2022-02-22T01:56:36.000Z
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
null
null
null
lm5/input.py
jmcph4/lm5
cd6f480ad70a3769090eab6ac3f3d47378a965de
[ "MIT" ]
2
2018-09-25T07:29:06.000Z
2021-12-30T07:19:13.000Z
class Input(object): def __init__(self, type, data): self.__type = type self.__data = deepcopy(data) def __repr__(self): return repr(self.__data) def __str__(self): return str(self.__type) + str(self.__data)
21.25
50
0.611765
32
255
4.1875
0.375
0.179104
0
0
0
0
0
0
0
0
0
0
0.270588
255
11
51
23.181818
0.72043
0
0
0
0
0
0
0
0
0
0
0
0
1
0.375
false
0
0
0.25
0.75
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
1
1
0
0
3
f8f2378998282c62f5eff079407d0b48e7bea81d
2,154
py
Python
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
slybot/setup.py
DataKnower/dk-portia
24579c0160167af2442117975bf7d6a714b4d7d5
[ "BSD-3-Clause" ]
null
null
null
from os.path import join, abspath, dirname, exists from slybot import __version__ from setuptools import setup, find_packages from setuptools.command.bdist_egg import bdist_egg from setuptools.command.sdist import sdist def build_js(): root = abspath(dirname(__file__)) base_path = abspath(join(root, '..', 'sp...
29.916667
76
0.615135
245
2,154
5.216327
0.461224
0.043818
0.035211
0.029734
0.106416
0
0
0
0
0
0
0.002414
0.230734
2,154
71
77
30.338028
0.768859
0
0
0.068966
0
0
0.283658
0.037604
0
0
0
0
0
1
0.051724
false
0
0.086207
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f25149f3eefd3629cc486cf987c4d8a9a5bbb9
3,846
py
Python
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
35
2018-10-12T06:33:09.000Z
2022-02-25T03:19:37.000Z
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
1
2019-08-31T16:05:12.000Z
2020-01-05T15:34:54.000Z
yolov3.py
huhuhang/yolov3
6c254b3f453c394046381e1c00cb0908b8f97b3a
[ "MIT" ]
14
2018-12-10T22:48:51.000Z
2021-11-18T20:56:38.000Z
import torch import torch.nn as nn from .yolo_layer import * from .yolov3_base import * class Yolov3(Yolov3Base): def __init__(self, num_classes=80): super().__init__() self.backbone = Darknet([1,2,8,8,4]) anchors_per_region = 3 self.yolo_0_pre = Yolov3UpsamplePrep([512, 1...
38.079208
119
0.578783
556
3,846
3.748201
0.208633
0.06142
0.025912
0.043186
0.335893
0.296065
0.246161
0.196257
0.145873
0.145873
0
0.06742
0.263391
3,846
100
120
38.46
0.668196
0.026781
0
0.146667
0
0
0.006812
0
0
0
0
0
0
1
0.133333
false
0
0.053333
0.026667
0.306667
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f25cd96d67041f861381dbd21810aa553cccdc
883
py
Python
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
tests/assets/test_driver_errors.py
CyrilLeMat/modelkit
2150ffe78ebb00e3302dac36ccb09e66becd5130
[ "MIT" ]
null
null
null
import os import pytest from modelkit.assets import errors from tests.conftest import skip_unless def _perform_driver_error_object_not_found(driver): with pytest.raises(errors.ObjectDoesNotExistError): driver.download_object("someasset", "somedestination") assert not os.path.isfile("somedestination"...
29.433333
65
0.822197
117
883
5.726496
0.307692
0.077612
0.107463
0.143284
0.352239
0.352239
0.304478
0.304478
0.304478
0.304478
0
0.007595
0.105323
883
29
66
30.448276
0.840506
0
0
0
0
0
0.08607
0
0
0
0
0
0.052632
1
0.210526
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
0
0
0
0
0
0
0
0
null
0
0
0
0
0
1
0
0
0
0
0
0
0
1
f8f2d8744612c8dd54640bd2fc3dd67702898911
2,163
py
Python
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
null
null
null
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
4
2020-06-06T01:42:46.000Z
2021-06-10T20:10:57.000Z
wiki/tests.py
Jarquevious/makewiki
a945da5ab7704042ef9d740987e23da19ec87267
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth.models import User from wiki.models import Page # Create your tests here. def test_detail_page(self): """ Test to see if slug generated when saving a Page.""" # Create a user and save to the database user = User.objects.create() user.save() ...
27.730769
98
0.660194
299
2,163
4.715719
0.314381
0.046099
0.031915
0.044681
0.401418
0.257447
0.185816
0.185816
0.185816
0.070922
0
0.009445
0.216828
2,163
78
99
27.730769
0.822904
0.230236
0
0.357143
1
0
0.152068
0
0
0
0
0
0.142857
1
0.071429
false
0
0.071429
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
f8f3fc84d2eec11a3d1fe8de179b44f825aeb0e4
419
py
Python
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
BanditSim/__init__.py
AJB0211/BanditSim
5426486b40c35492049b09f9b57eb18ad5d6ce63
[ "MIT" ]
null
null
null
from .multiarmedbandit import MultiArmedBandit from .eps_greedy_constant_stepsize import EpsilonGreedyConstantStepsize from .greedy_constant_stepsize import GreedyConstantStepsize from .epsilon_greedy_average_step import EpsilonGreedyAverageStep from .greedy_average_step import GreedyAverageStep from .greedy_bayes_upd...
38.090909
71
0.909308
43
419
8.511628
0.418605
0.081967
0.071038
0.153005
0
0
0
0
0
0
0
0
0.073986
419
10
72
41.9
0.943299
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
1
0
1
0
0
3
f8f43d95779ee26635e6e7c26bda70278bc13afd
3,915
py
Python
tests/queries/test_query.py
txf626/django
95bda03f2da15172cf342f13ba8a77c007b63fbb
[ "PSF-2.0", "BSD-3-Clause" ]
2
2019-02-28T12:38:32.000Z
2019-09-30T08:08:16.000Z
tests/queries/test_query.py
Scheldon/django
11a9017179812198a12a2fc19610262a549aa46e
[ "PSF-2.0", "BSD-3-Clause" ]
57
2018-10-08T12:37:30.000Z
2018-10-08T17:39:26.000Z
tests/queries/test_query.py
Scheldon/django
11a9017179812198a12a2fc19610262a549aa46e
[ "PSF-2.0", "BSD-3-Clause" ]
1
2021-06-21T07:51:09.000Z
2021-06-21T07:51:09.000Z
from datetime import datetime from django.core.exceptions import FieldError from django.db.models import CharField, F, Q from django.db.models.expressions import SimpleCol from django.db.models.fields.related_lookups import RelatedIsNull from django.db.models.functions import Lower from django.db.models.lookups import...
41.648936
81
0.696552
489
3,915
5.421268
0.186094
0.113165
0.107884
0.048284
0.523576
0.408148
0.397963
0.288948
0.288948
0.265937
0
0.006969
0.193614
3,915
93
82
42.096774
0.832753
0
0
0.325
0
0
0.034227
0
0
0
0
0
0.4
1
0.1
false
0
0.15
0
0.2625
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f4457783432480005e18ff932b887d871f9663
16,356
py
Python
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
26
2019-10-28T09:01:45.000Z
2021-09-20T08:56:12.000Z
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
1
2020-07-25T06:50:05.000Z
2020-07-25T06:50:05.000Z
src/matrix_game/matrix_game.py
ewanlee/mackrl
6dd505aa09830f16c35a022f67e255db935c807e
[ "Apache-2.0" ]
6
2019-12-18T12:02:57.000Z
2021-03-03T13:15:47.000Z
# This notebook implements a proof-of-principle for # Multi-Agent Common Knowledge Reinforcement Learning (MACKRL) # The entire notebook can be executed online, no need to download anything # http://pytorch.org/ from itertools import chain import torch import torch.nn.functional as F from torch.multiprocessing import...
38.037209
145
0.547811
2,375
16,356
3.501895
0.151579
0.023807
0.027895
0.014068
0.481664
0.446916
0.406036
0.358783
0.33173
0.314056
0
0.039799
0.331744
16,356
430
146
38.037209
0.721134
0.119589
0
0.263804
0
0
0.024855
0
0
0
0
0
0
1
0.02454
false
0.015337
0.033742
0
0.088957
0.009202
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f4dcd9fb78ee1924b9f50173ac949a710abcfd
3,190
py
Python
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
testcases/school_bus.py
wilsonsuen/av-testing
a6967b4cb4e4ad6b10d041ffd3dc62188fccad81
[ "MIT" ]
null
null
null
import sys import os import glob import json from robot import rebot from robot.api import TestSuite sys.path.append(os.path.join(os.path.dirname(__file__), '..')) if __name__ == "__main__": main_suite = TestSuite('School Bus Scenario') main_suite.resource.imports.library('lib/simulation.py') testcas...
91.142857
1,951
0.754232
399
3,190
5.894737
0.343358
0.042092
0.023384
0.030612
0.048469
0.048469
0
0
0
0
0
0.056318
0.109404
3,190
35
1,952
91.142857
0.771559
0
0
0
0
0
0.251623
0.130682
0
0
0
0
0
1
0
false
0
0.269231
0
0.269231
0
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
f8f623d0cb63c4b268f633b3bf392a5401ce666a
2,962
py
Python
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
10
2018-02-24T15:06:39.000Z
2020-11-24T15:28:35.000Z
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
63
2018-01-22T20:12:47.000Z
2021-07-10T15:42:58.000Z
pr_consistency/2.find_pr_branches.py
adrn/astropy-tools
c26a5e4cdf8735976375dd2b77de797a7723bcd9
[ "BSD-3-Clause" ]
16
2018-02-25T16:32:51.000Z
2021-07-10T13:33:46.000Z
# The purpose of this script is to check all the maintenance branches of the # given repository, and find which pull requests are included in which # branches. The output is a JSON file that contains for each pull request the # list of all branches in which it is included. We look specifically for the # message "Merge ...
33.659091
102
0.686698
437
2,962
4.599542
0.366133
0.031343
0.029851
0.035821
0.025871
0.025871
0
0
0
0
0
0.001719
0.214382
2,962
87
103
34.045977
0.862054
0.310263
0
0.117647
0
0
0.248641
0.051409
0
0
0
0
0
1
0
false
0
0.176471
0
0.176471
0.098039
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f63abc9f6d14490126b79f424fe99cf745e819
603
py
Python
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-06-03T20:03:50.000Z
2021-06-03T20:03:50.000Z
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
null
null
null
agents/solo_q_agents/q_agent_test/aux.py
pedMatias/matias_hfo
6d88e1043a1455f5c1f6cc11b9380869772f4176
[ "MIT" ]
1
2021-03-14T01:22:33.000Z
2021-03-14T01:22:33.000Z
from datetime import datetime as dt import os import numpy as np import settings def mkdir(): now = dt.now().replace(second=0, microsecond=0) name_dir = "q_agent_train_" + now.strftime("%Y-%m-%d_%H:%M:%S") path = os.path.join(settings.MODELS_DIR, name_dir) try: os.mkdir(path) except File...
24.12
67
0.665008
94
603
4.074468
0.43617
0.073107
0.078329
0.109661
0.198433
0.198433
0.198433
0.198433
0.198433
0
0
0.006289
0.208955
603
24
68
25.125
0.796646
0
0
0.222222
0
0
0.054726
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8f65ce2aa90b1532e983805cc84833de1433b1e
1,316
py
Python
Python38/Lib/site-packages/PyInstaller/hooks/hook-PyQt4.py
AXFS-H/Windows10Debloater
ab5f8a8a8fb065bb40b7ddbd1df75563d8b8d13e
[ "MIT" ]
5
2020-08-24T23:29:58.000Z
2022-02-07T19:58:07.000Z
PyInstaller/hooks/hook-PyQt4.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
12
2020-02-15T04:04:55.000Z
2022-02-18T20:29:49.000Z
PyInstaller/hooks/hook-PyQt4.py
jeremysanders/pyinstaller
321b24f9a9a5978337735816b36ca6b4a90a2fb4
[ "Apache-2.0" ]
2
2020-08-24T23:30:06.000Z
2021-12-23T18:23:38.000Z
#----------------------------------------------------------------------------- # Copyright (c) 2013-2020, PyInstaller Development Team. # # Distributed under the terms of the GNU General Public License (version 2 # or later) with exception for distributing the bootloader. # # The full license is in the file COPYING.txt...
35.567568
86
0.670213
178
1,316
4.865169
0.550562
0.027714
0.04157
0.027714
0
0
0
0
0
0
0
0.014235
0.145897
1,316
36
87
36.555556
0.756228
0.669453
0
0
0
0
0.057279
0
0
0
0
0
0
1
0
false
0
0.454545
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
1
0
0
0
0
1
f8f694a754b9e6ecfc7a48eb472c8ee96d237a42
278
py
Python
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
63
2019-07-12T17:16:27.000Z
2022-02-22T11:06:50.000Z
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
34
2019-07-30T11:52:09.000Z
2022-03-28T12:42:02.000Z
timeserio/utils/functools.py
ig248/timeserio
afc2a953a83e763418d417059493ef13a17d349c
[ "MIT" ]
12
2019-08-14T05:51:22.000Z
2021-03-15T09:34:15.000Z
import inspect def get_default_args(func): """Get default arguments of a function. """ signature = inspect.signature(func) return { k: v.default for k, v in signature.parameters.items() if v.default is not inspect.Parameter.empty }
21.384615
51
0.636691
36
278
4.861111
0.666667
0.114286
0
0
0
0
0
0
0
0
0
0
0.269784
278
12
52
23.166667
0.862069
0.129496
0
0
0
0
0
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8f72bfabd477794319287090180fb8cb1c3008e
2,059
py
Python
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
Sec_10_expr_lambdas_fun_integradas/a_lambdas.py
PauloAlexSilva/Python
690913cdcfd8bde52d9ddd15e3c838e6aef27730
[ "MIT" ]
null
null
null
""" Utilizando Lambdas Conhecidas por Expressões Lambdas, ou simplesmente Lambdas, são funções sem nome, ou seja, funções anónimas. # Função em Python def funcao(x): return 3 * x + 1 print(funcao(4)) print(funcao(7)) # Expressão Lambda lambda x: 3 * x + 1 # Como utlizar a expressão lambda? calc = lambda x...
20.79798
94
0.641088
303
2,059
4.326733
0.349835
0.032037
0.009153
0.020595
0.230359
0.18688
0.18688
0.181541
0.169336
0.169336
0
0.024848
0.19864
2,059
98
95
21.010204
0.769697
0.86984
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.285714
0.571429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
1
0
2
f8f83df34dfaf5ae52ea9e532bb035a4e1cce478
825
py
Python
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
ex085.py
EduotavioFonseca/ProgramasPython
8e0ef5f6f4239d1fe52321f8795b6573f6ff5130
[ "MIT" ]
null
null
null
# Lista dentro de dicionário campeonato = dict() gol = [] aux = 0 campeonato['Jogador'] = str(input('Digite o nome do jogador: ')) print() partidas = int(input('Quantas partidas ele jogou? ')) print() for i in range(0, partidas): aux = int(input(f'Quantos gols na partida {i + 1}? ')) gol.append(aux) ...
25.78125
71
0.613333
121
825
4.181818
0.371901
0.055336
0.071146
0.043478
0.098814
0.098814
0.098814
0
0
0
0
0.01949
0.191515
825
31
72
26.612903
0.73913
0.031515
0
0.5
0
0
0.368146
0.057441
0
0
0
0
0
1
0
false
0
0
0
0
0.6
0
0
0
null
0
0
0
0
0
0
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
f8f8dae5df2040a52619a0f46630de1b8ffbe445
533
py
Python
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
null
null
null
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
6
2020-11-13T19:04:16.000Z
2022-02-10T02:10:50.000Z
heat/initial_data.py
kjetil-lye/ismo_heat
09776b740a0543e270417af653d2a047c94f1b50
[ "MIT" ]
1
2021-03-26T06:53:19.000Z
2021-03-26T06:53:19.000Z
import numpy class InitialDataControlSine: def __init__(self, coefficients): self.coefficients = coefficients def __call__(self, x): u = numpy.zeros_like(x) for k, coefficient in enumerate(self.coefficients): u += coefficient * numpy.sin(k * numpy.pi * x) return...
28.052632
85
0.613508
69
533
4.594203
0.42029
0.201893
0.07571
0.100946
0.375394
0.375394
0.271293
0.271293
0
0
0
0.005141
0.270169
533
18
86
29.611111
0.809769
0
0
0
0
0
0
0
0
0
0
0
0
1
0.25
false
0
0.083333
0.083333
0.583333
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
1
0
0
0
0
1
0
0
3
f8fa0708043799c2510940867111d04480ef484c
5,030
py
Python
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
12
2019-03-02T06:42:37.000Z
2022-03-01T03:59:08.000Z
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
6
2020-04-14T21:22:36.000Z
2022-01-19T23:41:35.000Z
explore/scripts/get_repos_creationhistory.py
john18/uccross.github.io
72cd88c7310ab1503467fba27add2338cf57d8f7
[ "MIT" ]
29
2017-11-08T19:39:20.000Z
2022-03-17T18:05:29.000Z
import helpers import json import re datfilepath = "../github-data/labRepos_CreationHistory.json" allData = {} # Check for and read existing data file allData = helpers.read_existing(datfilepath) # Read repo info data file (to use as repo list) dataObj = helpers.read_json("../github-data/labReposInfo.json") # Popul...
31.4375
110
0.695626
633
5,030
5.492891
0.248025
0.096635
0.08283
0.097785
0.432557
0.39258
0.368709
0.325568
0.295082
0.295082
0
0.005535
0.137972
5,030
159
111
31.63522
0.796356
0.132406
0
0.356436
0
0
0.310281
0.049101
0
0
0
0
0
1
0
false
0
0.029703
0
0.029703
0.267327
0
0
0
null
0
0
0
0
0
0
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
1
0
f8fb454d7a74c617f9f1467386eb93a2fe60e4db
341
py
Python
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
examples/test/runMe.py
tomaszjonak/PBL
738b95da52cd59dcacb0b9dc244ca1713b0264ac
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
#! /usr/bin/env python2.7 from __future__ import print_function import sys sys.path.append("../../include") import PyBool_public_interface as Bool if __name__ == "__main__": expr = Bool.parse_std("input.txt") expr = expr["main_expr"] expr = Bool.simplify(expr) expr = Bool.nne(expr) print(Bo...
16.238095
38
0.683284
48
341
4.479167
0.604167
0.148837
0.111628
0
0
0
0
0
0
0
0
0.007117
0.175953
341
20
39
17.05
0.758007
0.070381
0
0
0
0
0.123418
0
0
0
0
0
0
1
0
false
0
0.3
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8fcc7a6b82e6b901e4e3c720b6e0e1f082a90c0
24,425
py
Python
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
calculator.py
rupen4678/botique_management_system
9b7807cc28bb15e024093d6161a8fef96ce7e291
[ "Apache-2.0" ]
null
null
null
from tkinter import * import random import time from PIL import Image from datetime import datetime from tinydb import * import os import pickle #from database1 import * from random import randint root = Tk() root.geometry("1600x800+0+0") root.title("Suman_dai_ko_DHOKAN") root.configure(bg="goldenrod4") text_Input =...
34.401408
155
0.600368
3,463
24,425
4.182501
0.148715
0.044118
0.031897
0.041425
0.384355
0.319387
0.25939
0.213339
0.184203
0.159279
0
0.036604
0.155537
24,425
709
156
34.449929
0.665616
0.154023
0
0.05303
0
0
0.148139
0
0
0
0
0
0
1
0.049242
false
0.022727
0.034091
0
0.090909
0.011364
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8feca35fdbbdb7ba2119b9d7d1e1e21456081ac
18,656
py
Python
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
mmdet/models/anchor_heads/embedding_nnms_head_v2_limited.py
Lanselott/mmdetection
03ce0a87f4d52f4adf4f78fd39ad30b2da394376
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from mmcv.cnn import normal_init from mmdet.core import distance2bbox, force_fp32, multi_apply, multiclass_nms, bbox_overlaps from ..builder import build_loss from ..registry import HEADS from ..utils import ConvModule, Scale, bias_init_with_prob from IPython import embed INF = 1e8 ...
40.468547
125
0.572684
2,290
18,656
4.352838
0.134498
0.026184
0.012841
0.007725
0.25632
0.191413
0.147873
0.10945
0.070526
0.063102
0
0.019415
0.340159
18,656
460
126
40.556522
0.790333
0.081904
0
0.132597
0
0
0.005063
0
0
0
0
0.002174
0.013812
1
0.033149
false
0
0.022099
0.002762
0.085635
0
0
0
0
null
0
0
0
0
0
0
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
1
0
f8ff164c7b99d263ef5622eb983cd4b6a79fdda1
863
py
Python
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
firefly_flask/app/models.py
Haehnchen/trivago-firefly
ee92450fda42059f1865971849dc234a42dc9027
[ "MIT" ]
null
null
null
from . import db from sqlalchemy.dialects.mysql import LONGTEXT class Search(db.Model): __tablename__ = 'spots' id = db.Column(db.Integer, primary_key=True) search_string = db.Column(db.Text) lat = db.Column(db.Float) lon = db.Column(db.Float) location_name = db.Column(db.Text) json_result ...
28.766667
66
0.682503
126
863
4.547619
0.333333
0.251309
0.296684
0.17103
0.115183
0.115183
0.115183
0.115183
0
0
0
0
0.184241
863
29
67
29.758621
0.81392
0
0
0.083333
0
0
0.012791
0
0
0
0
0
0
1
0
false
0
0.083333
0
1
0
0
0
0
null
1
1
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
1
0
0
4
f8ffdfd391593d89205af0a89c79433669635ec2
471
py
Python
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
plotly_basic_plots/line_chart2.py
HarishOsthe/Plotly_Dash_Practice_Codes
ca709509d27803a4d727b3986d4473cdd71a41a6
[ "MIT" ]
null
null
null
import pandas as pd import numpy as np import plotly.offline as pyo import plotly.graph_objs as go df= pd.read_csv("Data/nst-est2017-alldata.csv") df2=df[df["DIVISION"] == '1'] df2.set_index("NAME",inplace=True) list_of_pop_col=[col for col in df2.columns if col.startswith('POP')] df2=df2[list_of_pop_col] data=[go....
24.789474
69
0.66879
81
471
3.777778
0.530864
0.078431
0.058824
0.078431
0
0
0
0
0
0
0
0.034211
0.193206
471
19
70
24.789474
0.771053
0
0
0
0
0
0.103814
0.059322
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
f8fff1c2d03cf1ef4aae436dd124c9505b06ab95
21,993
py
Python
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
4,973
2015-01-03T15:44:00.000Z
2022-03-31T03:11:51.000Z
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
7,850
2015-01-02T08:09:25.000Z
2022-03-31T18:57:40.000Z
tests/test_markup.py
samdoran/sphinx
4c91c038b220d07bbdfe0c1680af42fe897f342c
[ "BSD-2-Clause" ]
2,179
2015-01-03T15:26:53.000Z
2022-03-31T12:22:44.000Z
""" test_markup ~~~~~~~~~~~ Test various Sphinx-specific markup extensions. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. """ import re import pytest from docutils import frontend, nodes, utils from docutils.parsers.rst import Parser as ...
35.702922
111
0.60592
2,520
21,993
5.190476
0.152381
0.042813
0.048089
0.050917
0.544878
0.505657
0.457416
0.408333
0.376529
0.34159
0
0.016342
0.223708
21,993
615
112
35.760976
0.749429
0.060428
0
0.397119
0
0.030864
0.324364
0.12279
0
0
0
0
0.146091
1
0.061728
false
0.00823
0.028807
0.002058
0.119342
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d018e12b1c73bed5cd0c0150226e9cf4fc0779d
50,253
py
Python
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoon01/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2021-02-13T22:40:50.000Z
2021-02-13T22:40:50.000Z
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
1
2018-07-28T20:07:04.000Z
2018-07-30T18:28:34.000Z
dev/tools/leveleditor/direct/showbase/ContainerLeakDetector.py
CrankySupertoonArchive/Toontown-2
60893d104528a8e7eb4aced5d0015f22e203466d
[ "MIT" ]
2
2019-12-02T01:39:10.000Z
2021-02-13T22:41:00.000Z
from pandac.PandaModules import PStatCollector from direct.directnotify.DirectNotifyGlobal import directNotify from direct.showbase.PythonUtil import Queue, invertDictLossless, makeFlywheelGen from direct.showbase.PythonUtil import itype, serialNum, safeRepr, fastRepr from direct.showbase.Job import Job import types, w...
44.159051
138
0.528804
4,653
50,253
5.585859
0.155599
0.03078
0.016082
0.008618
0.37209
0.326921
0.305452
0.282675
0.272864
0.243661
0
0.012192
0.404274
50,253
1,137
139
44.197889
0.855998
0.128032
0
0.505814
0
0
0.037967
0.004393
0
0
0
0.003518
0.003488
0
null
null
0.026744
0.00814
null
null
0.00814
0
0
0
null
0
0
0
0
0
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
5d02f65a15a35f3f5f2205ff5270eaa60e785026
12,032
py
Python
virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
207
2018-10-01T08:53:01.000Z
2022-03-14T12:15:54.000Z
virtual/lib/python3.6/site-packages/sqlalchemy/sql/default_comparator.py
mzazakeith/flask-blog
2833404cc5e96ffdbfb767f35b9caf2bdcce7997
[ "MIT" ]
32
2018-05-01T05:24:43.000Z
2022-03-11T23:20:39.000Z
lib/python2.7/site-packages/sqlalchemy/sql/default_comparator.py
anish03/weather-dash
d517fa9da9028d1fc5d8fd71d77cee829ddee87b
[ "MIT" ]
53
2019-03-12T16:50:21.000Z
2022-03-15T23:16:18.000Z
# sql/default_comparator.py # Copyright (C) 2005-2018 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """Default implementation of SQL comparison operations. """ from .. impor...
36.907975
79
0.593251
1,297
12,032
5.184271
0.189668
0.0232
0.05815
0.026026
0.283611
0.180101
0.163147
0.133998
0.118084
0.092356
0
0.001312
0.303108
12,032
325
80
37.021538
0.800596
0.086769
0
0.262948
0
0
0.069476
0.004022
0
0
0
0.003077
0
1
0.059761
false
0
0.01992
0.007968
0.191235
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0300b0501feb02f7f7fdb3d0f6bb946c42313a
2,153
py
Python
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
null
null
null
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
3
2020-06-05T21:58:22.000Z
2021-06-10T21:40:50.000Z
recipes/serializers.py
klharshini/recipe-django-api
7ceb00ab26f6e0d19196519ece297d2f4d616a5d
[ "Apache-2.0" ]
null
null
null
from django.contrib.auth.validators import UnicodeUsernameValidator from rest_framework import serializers from django.contrib.auth.models import User from recipes.models import Recipe, Ingredient, Step class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = ("usernam...
33.123077
69
0.672085
218
2,153
6.518349
0.261468
0.073188
0.059817
0.070373
0.401126
0.270232
0.270232
0.270232
0.270232
0.211119
0
0
0.228518
2,153
64
70
33.640625
0.855509
0
0
0.24
0
0
0.060845
0
0
0
0
0
0
1
0.04
false
0
0.08
0
0.38
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0375507c268370ae9c58f1a6b3dd509a4f4999
1,652
py
Python
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
tests/test_model/test_temporal_regression_head.py
jcwon0/BlurHPE
c97a57e92a8a7f171b0403aee640222a32513562
[ "Apache-2.0" ]
null
null
null
import numpy as np import pytest import torch from mmpose.models import TemporalRegressionHead def test_temporal_regression_head(): """Test temporal head.""" head = TemporalRegressionHead( in_channels=1024, num_joints=17, loss_keypoint=dict(type='MPJPELoss', use_target_wei...
28.982456
70
0.625303
215
1,652
4.613953
0.390698
0.100806
0.080645
0.060484
0.210685
0.194556
0.129032
0
0
0
0
0.041051
0.262712
1,652
56
71
29.5
0.773399
0.174334
0
0.212121
0
0
0.022817
0
0
0
0
0
0.181818
1
0.060606
false
0
0.121212
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d03e84b9fba295a1596df9171a5466ae68073d3
415
py
Python
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
6
2020-06-06T01:50:21.000Z
2022-02-10T11:33:02.000Z
django_orm/sports_orm/leagues/migrations/0002_auto_20161031_1620.py
gfhuertac/coding_dojo_python
4d17bb63fb2b9669216a0f60326d4a4b9055af7e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.2 on 2016-10-31 23:20 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('leagues', '0001_initial'), ] operations = [ migrations.RenameField( mod...
19.761905
48
0.592771
45
415
5.266667
0.8
0
0
0
0
0
0
0
0
0
0
0.070946
0.286747
415
20
49
20.75
0.72973
0.163855
0
0
1
0
0.101744
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
5d04161d9491b3b2bccc61b8d346c61f251d0a5b
1,774
py
Python
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
353-Design-Snake-Game/solution.py
Tanych/CodeTracking
86f1cb98de801f58c39d9a48ce9de12df7303d20
[ "MIT" ]
null
null
null
class SnakeGame(object): def __init__(self, width,height,food): """ Initialize your data structure here. @param width - screen width @param height - screen height @param food - A list of food positions E.g food = [[1,1], [1,0]] means the first food is positioned at ...
35.48
102
0.567644
244
1,774
4.106557
0.348361
0.083832
0.02994
0
0
0
0
0
0
0
0
0.02502
0.301578
1,774
50
103
35.48
0.783697
0.379369
0
0.08
0
0
0.00418
0
0
0
0
0
0
1
0.08
false
0
0
0
0.24
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d046e78f1ff28c88e9dd3fba255e0d381257af6
975
py
Python
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
scripts/register_sam.py
jessebrennan/azul
65970a0947f38fae439a3bf8fd960d351787b7a3
[ "Apache-2.0" ]
null
null
null
from itertools import ( chain, ) import logging from azul import ( config, require, ) from azul.logging import ( configure_script_logging, ) from azul.terra import ( TDRClient, TDRSourceName, ) log = logging.getLogger(__name__) def main(): configure_script_logging(log) tdr = TDRClien...
22.159091
78
0.644103
109
975
5.486239
0.431193
0.040134
0.050167
0
0
0
0
0
0
0
0
0
0.262564
975
43
79
22.674419
0.831711
0
0
0
0
0
0.086154
0
0
0
0
0
0
1
0.027778
false
0
0.138889
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d0497316627f4c13c17f9d3db674195ece95272
3,584
py
Python
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
1
2018-07-11T16:55:49.000Z
2018-07-11T16:55:49.000Z
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
null
null
null
altitude/players.py
StamKaly/altitude-mod-foundation
403befeba7d0e2e6afe3897081cd3e01f438e3d5
[ "MIT" ]
null
null
null
class Player: def __init__(self, nickname, vapor_id, player_id, ip): self.nickname = nickname self.vapor_id = vapor_id self.player_id = player_id self.ip = ip self.not_joined = True self.loads_map = True self.joined_after_change_map = True class Players: ...
35.84
88
0.626395
457
3,584
4.647702
0.131291
0.088041
0.062147
0.077684
0.428437
0.353578
0.282486
0.198682
0.130885
0.130885
0
0.000797
0.300223
3,584
99
89
36.20202
0.846093
0
0
0.268293
0
0
0.00558
0
0
0
0
0
0
1
0.195122
false
0
0
0.02439
0.329268
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0642e93e7a866ace737fc8f40342ddac2993c4
17,835
py
Python
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
2
2019-04-30T05:42:05.000Z
2019-08-11T19:17:20.000Z
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
dsn/editor/construct.py
expressionsofchange/nerf0
788203619fc89c92e8c7301d62bbc4f1f4ee66e1
[ "MIT" ]
null
null
null
""" Tools to "play notes for the editor clef", which may be thought of as "executing editor commands". NOTE: in the below, we often connect notes together "manually", i.e. using NoteSlur(..., previous_hash). As an alternative, we could consider `nouts_for_notes`. """ from s_address import node_for_s_address, s_dfs f...
47.18254
120
0.691786
2,549
17,835
4.635936
0.179678
0.033765
0.059575
0.025387
0.373784
0.329864
0.297707
0.266819
0.229923
0.18778
0
0.005173
0.230502
17,835
377
121
47.307692
0.855873
0.371124
0
0.317949
0
0
0.003376
0
0
0
0
0.002653
0
1
0.025641
false
0
0.030769
0.015385
0.225641
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d06e71f9e23ea91aab0fd29960c633c1cc96c2f
636
py
Python
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
src/pytong/base.py
richtong/pytong
6ff07a1bdf1d5e2232bfc102cce2dd74783bb111
[ "MIT" ]
null
null
null
"""Base for all Classes. Base mainly includes the description fields """ import logging from typing import Optional from .log import Log # type: ignore class BaseLog: """ Set a base logging. Use this as the base class for all your work. This adds a logging root. """ def __init__(self, log_roo...
22.714286
75
0.610063
88
636
4.25
0.511364
0.093583
0.058824
0
0
0
0
0
0
0
0
0
0.300314
636
27
76
23.555556
0.840449
0.349057
0
0
0
0
0.018325
0
0
0
0
0
0
1
0.083333
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
0
0
0
0
0
0
0
0
0
1
0
5d073e43082666b4fb7e947816cf1a811338dbe3
620
py
Python
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
1
2021-12-08T12:58:14.000Z
2021-12-08T12:58:14.000Z
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
null
null
null
subprocess-10.py
GuillaumeFalourd/poc-subprocess
8f014a709ac2e471092d4ea1f61f1a9ff65ff571
[ "Apache-2.0" ]
null
null
null
import subprocess import re programs = input('Separe the programs with a space: ').split() secure_pattern = '[\w\d]' for program in programs: if not re.match(secure_pattern, program): print("Sorry we can't check that program") continue process = subprocess. run( ['which', program],...
22.962963
65
0.63871
82
620
4.792683
0.585366
0.045802
0.045802
0
0
0
0
0
0
0
0
0.002123
0.240323
620
27
66
22.962963
0.832272
0
0
0
0
0
0.320451
0
0
0
0
0
0
1
0
false
0
0.117647
0
0.117647
0.352941
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0751ff55112db535e551765b215e8ad53a88d2
2,320
py
Python
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
4
2020-05-06T17:22:00.000Z
2021-12-13T20:43:30.000Z
authentication/socialaccount/forms.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
from __future__ import absolute_import from django import forms from authentication.account.forms import BaseSignupForm from . import app_settings, signals from .adapter import get_adapter from .models import SocialAccount class SignupForm(BaseSignupForm): def __init__(self, *args, **kwargs): self.soc...
35.692308
76
0.617241
226
2,320
6.110619
0.309735
0.036206
0.030413
0.021723
0.036206
0.036206
0
0
0
0
0
0
0.289655
2,320
64
77
36.25
0.837985
0
0
0.039216
0
0
0.036638
0
0
0
0
0
0
1
0.117647
false
0
0.117647
0
0.352941
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d0792b2d66082b8e779a07e75899ce616d825f2
12,110
py
Python
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
null
null
null
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T16:31:41.000Z
2021-10-30T16:31:41.000Z
pytheos/pytheos.py
nilsbeck/pytheos
de4f3a03330ddb28e68ddcaa7b4888ea9a25e238
[ "MIT" ]
1
2021-10-30T14:24:58.000Z
2021-10-30T14:24:58.000Z
#!/usr/bin/env python """ Provides the primary interface into the library """ from __future__ import annotations import asyncio import logging from typing import Callable, Optional, Union from . import utils from . import controllers from .networking.connection import Connection from .networking.types import SSDPRes...
31.952507
108
0.650372
1,394
12,110
5.416069
0.176471
0.042914
0.033377
0.039603
0.249007
0.189007
0.143046
0.101722
0.062517
0.029139
0
0.000896
0.262675
12,110
378
109
32.037037
0.844663
0.12981
0
0.138889
0
0
0.030354
0.009636
0
0
0
0.007937
0
1
0.15
false
0.011111
0.061111
0.027778
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d0806edbac94be1802c588fc12c4cc3d74c7198
1,673
py
Python
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
source/188-Lista_celulares.py
FelixLuciano/DesSoft-2020.2
a44063d63778329f1e1266881f20f7954ecb528b
[ "MIT" ]
null
null
null
# Lista celulares # O departamento de marketing da sua empresa está interessado em obter apenas os números de telefone celular, separando-os dos telefones fixos. Para simplificar esta operação serão considerados números de celular apenas aqueles que, após o código de área, iniciarem com o dígito adicional 9. # Você rec...
152.090909
409
0.775254
260
1,673
4.980769
0.457692
0.032432
0.055598
0.040154
0
0
0
0
0
0
0
0.123044
0.159594
1,673
10
410
167.3
0.798009
0.987448
0
null
0
null
0
0
null
0
0
0.1
null
1
null
true
0
0
null
null
null
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
0
0
0
0
null
0
0
1
0
0
0
1
0
0
0
0
0
0
4
5d0889f3f4e69f4a0ebb469755c280704d4811e2
326
py
Python
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary-Pronunciation.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
1
2021-10-02T13:16:29.000Z
2021-10-02T13:16:29.000Z
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary-Pronunciation.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
2
2021-09-08T14:08:33.000Z
2021-10-10T04:35:08.000Z
test_modules/language_dictionary_test.py
1goodday/Google-Dictionary.ankiaddon
35837802e41d81733aec656fbf4ad1c8e4aeec5e
[ "MIT" ]
null
null
null
import csv _iso_639_1_codes_file = open("files/ISO-639-1_Codes.csv", mode='r') _iso_639_1_codes_dictreader = csv.DictReader(_iso_639_1_codes_file) _iso_639_1_codes_dict: dict = {} for _row in _iso_639_1_codes_dictreader: _iso_639_1_codes_dict[_row['ISO-639-1 Code']] = _row['Language'] print(str(_iso_639_1_codes_...
32.6
68
0.794479
61
326
3.606557
0.327869
0.245455
0.286364
0.436364
0.609091
0
0
0
0
0
0
0.120805
0.08589
326
10
69
32.6
0.61745
0
0
0
0
0
0.146789
0.076453
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.142857
0
0
0
null
1
1
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
3
5d090b8cc45daaa469bff1113230ad77ae43f4b6
9,596
py
Python
tianshou/data/collector.py
DZ9/tianshou
04208e6cce722b7a2353d9a5f4d6f0fc05797d67
[ "MIT" ]
1
2020-04-01T04:47:39.000Z
2020-04-01T04:47:39.000Z
tianshou/data/collector.py
TommeyChang/tianshou
4f843d3f51789f488169131a5b5decba8bab2b31
[ "MIT" ]
null
null
null
tianshou/data/collector.py
TommeyChang/tianshou
4f843d3f51789f488169131a5b5decba8bab2b31
[ "MIT" ]
1
2022-01-23T10:52:48.000Z
2022-01-23T10:52:48.000Z
import time import torch import warnings import numpy as np from tianshou.env import BaseVectorEnv from tianshou.data import Batch, ReplayBuffer,\ ListReplayBuffer from tianshou.utils import MovAvg class Collector(object): """docstring for Collector""" def __init__(self, policy, env, buffer=None, stat_si...
40.150628
79
0.492393
1,100
9,596
4.080909
0.140909
0.032747
0.02896
0.021831
0.185342
0.056137
0.012029
0
0
0
0
0.009566
0.411734
9,596
238
80
40.319328
0.785651
0.021259
0
0.198198
0
0
0.034957
0
0
0
0
0
0.009009
1
0.045045
false
0
0.031532
0.004505
0.112613
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0a9e073091c730b7a6a4929db2b2500c65ff5d
1,591
py
Python
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
22
2020-05-02T19:32:24.000Z
2021-10-17T21:19:46.000Z
drink_partners/partners/tests/views/test_search_partner_view.py
henriquebraga/drink-partners
4702263ae3e43ea9403cff5a72b68245d61880c7
[ "Apache-2.0" ]
null
null
null
from drink_partners.contrib.samples import partner_bar_legal class TestSearchPartner: async def test_should_return_bad_request_for_str_coordinates( self, client, partner_search_with_str_coordinates_url ): async with client.get(partner_search_with_str_coordinates_url) as respon...
31.82
90
0.649906
174
1,591
5.574713
0.333333
0.136082
0.092784
0.094845
0.683505
0.547423
0.519588
0.437113
0.278351
0.278351
0
0.020193
0.284098
1,591
49
91
32.469388
0.831431
0.0088
0
0.432432
0
0
0.115702
0
0
0
0
0
0.216216
1
0
false
0
0.027027
0
0.054054
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0c13bd9ead504a51ba033deca97415ff355734
17,858
py
Python
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
1
2018-07-23T08:41:02.000Z
2018-07-23T08:41:02.000Z
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
null
null
null
Titanic/class_create_model_of_logistic_regression.py
ysh329/Titanic-Machine-Learning-from-Disaster
d2ba330625e40b648b2946a8ca221198af148368
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # !/usr/bin/python ################################### PART0 DESCRIPTION ################################# # Filename: class_create_model_of_logistic_regression.py # Description: # # Author: Shuai Yuan # E-mail: ysh329@sina.com # Create: 2016-01-23 23:32:49 # Last: __author__ = 'yuens' ######...
48.005376
177
0.57302
1,986
17,858
4.8429
0.12286
0.049179
0.048243
0.045852
0.633604
0.524849
0.496985
0.470576
0.400395
0.337804
0
0.020973
0.297794
17,858
372
178
48.005376
0.746013
0.051294
0
0.345679
0
0.016461
0.130502
0.053253
0
0
0
0
0
0
null
null
0.090535
0.032922
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
1
0
0
0
0
0
2
5d0d63268d357d52fa0b7327baa9d61702e3b1cd
3,341
py
Python
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
mjecv/io/base.py
mje-nz/mjecv
9a02c005a0abc7d21594f65c348cfe5185c90184
[ "MIT" ]
null
null
null
import multiprocessing from typing import List, Optional import numpy as np from ..util import dill_for_apply class ImageSequenceWriter: def __init__(self, pattern, writer, *, max_index=None): if type(pattern) is not str: raise ValueError("Pattern must be string") if pattern.format(1...
33.079208
86
0.609398
393
3,341
4.977099
0.328244
0.03272
0.018405
0.026585
0.03681
0.03681
0.03681
0.03681
0
0
0
0.003409
0.297516
3,341
100
87
33.41
0.829996
0.161329
0
0.109589
0
0
0.02381
0
0
0
0
0
0.013699
1
0.150685
false
0.013699
0.054795
0
0.246575
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d0f2e44cd4703366dc6065304ee5f71411d41c4
1,495
py
Python
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
2
2018-04-24T19:17:40.000Z
2018-04-24T19:33:52.000Z
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
null
null
null
377_combination_sum_iv.py
gengwg/leetcode
0af5256ec98149ef5863f3bba78ed1e749650f6e
[ "Apache-2.0" ]
3
2020-06-17T05:48:52.000Z
2021-01-02T06:08:25.000Z
# 377 Combination Sum IV # Given an integer array with all positive numbers and no duplicates, # find the number of possible combinations that add up to a positive integer target. # # Example: # # nums = [1, 2, 3] # target = 4 # # The possible combination ways are: # (1, 1, 1, 1) # (1, 1, 2) # (1, 2, 1) # (1, 3) # (2,...
24.508197
84
0.535786
208
1,495
3.850962
0.423077
0.017478
0.014981
0.014981
0.174782
0
0
0
0
0
0
0.042596
0.340468
1,495
60
85
24.916667
0.769777
0.471572
0
0.190476
0
0
0
0
0
0
0
0
0
1
0.095238
false
0
0
0
0.238095
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d102888dd921effe96e5fc388b2a1b8ea50b383
3,440
py
Python
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
nvidia-texture-tools/conanfile.py
koeleck/conan-packages
da43e82c2444e934e69a38e524998d028f8edcc3
[ "Unlicense" ]
null
null
null
from conans import ConanFile, CMake, tools import os STATIC_LIBS = ["nvtt", "squish", "rg_etc1", "nvimage", "bc6h", "posh", "bc7", "nvmath", "nvthread", "nvcore"] SHARED_LIBS = ["nvtt", "nvimage", "nvthread", "nvmath", "nvcore"] class NvidiatexturetoolsConan(ConanFile): name = "nvidia-texture-tools...
47.123288
184
0.627326
432
3,440
4.87037
0.30787
0.022814
0.038023
0.053232
0.269487
0.248574
0.217205
0.203897
0.203897
0.203897
0
0.011936
0.22064
3,440
72
185
47.777778
0.772846
0
0
0.145161
0
0.016129
0.23054
0.018789
0
0
0
0
0
1
0.080645
false
0
0.032258
0
0.322581
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d105ccb37935c70d4da4645c5743044452805b9
2,890
py
Python
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
train_args.py
MyWay/Create-Your-Own-Image-Classifier
70e5744084435af8a74b2cfe2098c25b0745c9af
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ train_args.py train_args.py command-line args. """ import argparse def get_args(): """ """ parser = argparse.ArgumentParser( description="This script lets you train and save your model.", usage="python3 train.py flowers/train --gpu --learning_rate 0.001 --epochs...
30.104167
112
0.450173
259
2,890
4.868726
0.382239
0.087232
0.09437
0.031721
0.093577
0.093577
0.093577
0.093577
0.093577
0.093577
0
0.012369
0.440484
2,890
96
113
30.104167
0.767471
0.028374
0
0.227273
0
0.015152
0.261158
0
0
0
0
0
0
1
0.030303
false
0
0.015152
0
0.060606
0.015152
0
0
0
null
0
0
0
0
0
0
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
1
0
5d12933f8b3900ae610ac625eadbf5cf407b20ba
1,483
py
Python
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
apps/payment/views.py
canadiyaman/thetask
0f1cea1d8eea4966138ef0bdc303a53e3511e57d
[ "RSA-MD" ]
null
null
null
from django.http import HttpResponseRedirect from django.conf import settings from django.views.generic import TemplateView from apps.payment.models import PaymentLog from apps.payment.stripe import get_token, get_payment_charge from apps.subscription.views import start_subscription class ChargeView(TemplateView): ...
34.488372
106
0.653405
177
1,483
5.316384
0.355932
0.058448
0.074389
0.036132
0.061637
0.061637
0.061637
0
0
0
0
0.006969
0.225893
1,483
42
107
35.309524
0.812718
0
0
0
0
0
0.084289
0
0
0
0
0
0
1
0.085714
false
0
0.171429
0
0.371429
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d12b1edae2081b00e12d5653d2750d5567eb062
211
py
Python
users/apps.py
srinidhibhat/booknotes
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
null
null
null
users/apps.py
srinidhibhat/booknotes
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
2
2020-08-11T07:23:21.000Z
2020-08-11T07:26:41.000Z
users/apps.py
srinidhibhat/booknotes-DjangoProject
666f92fac309b97c13b79e91f5493220f934cab3
[ "MIT" ]
null
null
null
from django.apps import AppConfig class UsersConfig(AppConfig): name = 'users' # below piece of code is needed for automatic profile creation for user def ready(self): import users.signals
23.444444
75
0.71564
28
211
5.392857
0.857143
0
0
0
0
0
0
0
0
0
0
0
0.227488
211
8
76
26.375
0.92638
0.327014
0
0
0
0
0.035714
0
0
0
0
0
0
1
0.2
false
0
0.4
0
1
0
1
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
1
0
1
0
0
4
5d12e645166a3997ff332b7bb734f77bb3785c93
1,407
py
Python
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
1
2021-11-23T12:26:01.000Z
2021-11-23T12:26:01.000Z
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
null
null
null
secure_data_store/cli.py
HumanBrainProject/secure-data-store
69b615cf979fc08f4ae8474ca9cd3e6d2f04b7f0
[ "MIT" ]
1
2020-05-21T15:51:44.000Z
2020-05-21T15:51:44.000Z
# -*- coding: utf-8 -*- """Console script for secure_data_store.""" import click from . import secure_data_store as sds CONFIG='~/.sdsrc' @click.group() def main(): """Wrapper for GoCryptFS""" @main.command() @click.argument('name') @click.option('--config', help='Path to config file', default='~/.sdsrc') def cr...
29.3125
88
0.663113
183
1,407
5.060109
0.311475
0.058315
0.051836
0.077754
0.633909
0.633909
0.633909
0.518359
0.518359
0.390929
0
0.000864
0.177683
1,407
47
89
29.93617
0.799481
0.183369
0
0.545455
0
0
0.111707
0
0
0
0
0
0
1
0.121212
false
0
0.060606
0
0.181818
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
0
0
0
0
0
1
0
5d13dcd7f99f525058d1ada523c294f362a0d8b9
1,052
py
Python
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
1
2019-04-24T13:32:23.000Z
2019-04-24T13:32:23.000Z
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
Support/Fuego/Pythia/pythia-0.4/packages/pyre/pyre/graph/Node.py
marient/PelePhysics
e6ad1839d77b194e09ab44ff850c9489652e5d81
[ "BSD-3-Clause-LBNL" ]
null
null
null
#!/usr/bin/env python # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # # Michael A.G. Aivazis # California Institute of Technology # (C) 1998-2003 All Rights Reserved # # <LicenseText> # # ~~~~~~~~~~~~~~~~~...
19.849057
82
0.429658
86
1,052
5.069767
0.593023
0.041284
0
0
0
0
0
0
0
0
0
0.011142
0.31749
1,052
52
83
20.230769
0.5961
0.403992
0
0
0
0
0.121911
0
0
0
0
0
0
1
0.130435
false
0
0.043478
0.043478
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d13e82b9800d2ed9d73368f30bea490d35c562b
3,522
py
Python
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
cairis/gui/RiskScatterPanel.py
RachelLar/cairis_update
0b1d6d17ce49bc74887d1684e28c53c1b06e2fa2
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may...
33.865385
141
0.70017
488
3,522
5
0.422131
0.032787
0.027049
0.018443
0.019672
0.019672
0.019672
0
0
0
0
0.027138
0.173481
3,522
103
142
34.194175
0.811061
0.216638
0
0
0
0
0.068953
0
0
0
0
0
0
1
0.065789
false
0
0.118421
0
0.315789
0.026316
0
0
0
null
0
0
0
0
0
0
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
1
0
5d147935a791e2ef09a425d200ac60697365562a
7,380
py
Python
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure/containerservice/get_registry.py
aangelisc/pulumi-azure
71dd9c75403146e16f7480e5a60b08bc0329660e
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import...
36.716418
215
0.65813
879
7,380
5.255973
0.175199
0.047836
0.058874
0.071429
0.220346
0.172511
0.1171
0.073593
0.041558
0.041558
0
0.00018
0.246206
7,380
200
216
36.9
0.830307
0.186585
0
0.124031
1
0
0.155715
0.016253
0
0
0
0
0
1
0.108527
false
0.069767
0.03876
0.015504
0.263566
0
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
1
0
0
0
0
0
2
5d14d6320ca92dcf32c70f780204293a845032e6
21,539
py
Python
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
1
2020-01-23T16:25:50.000Z
2020-01-23T16:25:50.000Z
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
2
2016-07-28T20:55:46.000Z
2016-08-02T13:59:28.000Z
contrib/memcache_whisper.py
TimWhalen/graphite-web
e150af45e01d01141a8767ec0597e218105b9914
[ "Apache-2.0" ]
1
2020-03-05T06:50:02.000Z
2020-03-05T06:50:02.000Z
#!/usr/bin/env python # Copyright 2008 Orbitz WorldWide # # 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 ...
40.563089
160
0.720553
2,509
21,539
6.114388
0.182144
0.022163
0.025487
0.017209
0.242162
0.183169
0.166352
0.149273
0.120657
0.107425
0
0.004745
0.168299
21,539
530
161
40.639623
0.851624
0.282697
0
0.350923
0
0
0.084923
0
0
0
0
0.001887
0.021108
1
0.060686
false
0
0.013193
0.005277
0.108179
0.002639
0
0
0
null
0
0
0
0
0
0
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
1
0
5d15eae6d6d420d8166df518e95a6f5df2ba41f1
2,619
py
Python
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
main.py
showtimesynergy/mojify
8c012730b9f56d6e7e2003e8db99669516f4e027
[ "BSD-2-Clause" ]
null
null
null
from PIL import Image import csv from ast import literal_eval as make_tuple from math import sqrt import argparse import os.path def load_img(image): # load an image as a PIL object im = Image.open(image).convert('RGBA') return im def color_distance(c_tuple1, c_tuple2): # calculate the color distanc...
29.426966
63
0.557083
349
2,619
3.988539
0.352436
0.045259
0.011494
0.012931
0.022989
0.022989
0
0
0
0
0
0.032702
0.334479
2,619
88
64
29.761364
0.765921
0.063383
0
0.055556
0
0
0.051492
0
0
0
0
0.011364
0
1
0.069444
false
0
0.083333
0
0.208333
0.013889
0
0
0
null
0
0
0
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
5d15ebcd4b1cb7692dfb4253406f6c027f0525d0
17,824
py
Python
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
venv/lib/python3.7/site-packages/Xlib/ext/xinput.py
umr-bot/sliding-puzzle-solver-bot
826532a426f343bcc66034b241a42b3bd864e07c
[ "MIT" ]
null
null
null
# Xlib.ext.xinput -- XInput extension module # # Copyright (C) 2012 Outpost Embedded, LLC # Forest Bond <forest.bond@rapidrollout.com> # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public License # as published by the Free Software...
27.212214
96
0.601212
1,985
17,824
5.265491
0.226196
0.026024
0.018178
0.011481
0.381936
0.345388
0.298603
0.278129
0.248374
0.22656
0
0.033212
0.276986
17,824
654
97
27.253823
0.777838
0.090103
0
0.363289
0
0
0.085054
0.001355
0
0
0.000645
0
0.003824
1
0.047801
false
0.01912
0.011472
0.028681
0.151052
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d173dba73e014674031b329494a05e8bf83b546
24
py
Python
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
273
2018-09-01T08:54:34.000Z
2022-02-02T13:22:51.000Z
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
47
2018-08-17T11:27:08.000Z
2022-03-11T23:26:55.000Z
vel/notebook/__init__.py
tigerwlin/vel
00e4fbb7b612e888e2cbb5d8455146664638cd0b
[ "MIT" ]
37
2018-10-11T22:56:57.000Z
2020-10-06T19:53:05.000Z
from .loader import load
24
24
0.833333
4
24
5
1
0
0
0
0
0
0
0
0
0
0
0
0.125
24
1
24
24
0.952381
0
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
1
0
1
0
1
1
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
1
0
1
0
1
0
0
6
5d17411291af35f334b84d9eb9a01839cc0b1a31
340
py
Python
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
1
2020-07-08T10:57:37.000Z
2020-07-08T10:57:37.000Z
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
6
2021-04-08T20:23:17.000Z
2021-09-22T18:58:16.000Z
YourJobAidApi/migrations/0019_remove_category_count_post.py
rayhanrock/django-yourjobaid-api
17751dac5a298998aeecf7a70b79792f8311b9b2
[ "MIT" ]
null
null
null
# Generated by Django 3.0.4 on 2020-04-16 23:10 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('YourJobAidApi', '0018_category_count_post'), ] operations = [ migrations.RemoveField( model_name='category', name='count_post...
20
54
0.608824
36
340
5.611111
0.777778
0.089109
0
0
0
0
0
0
0
0
0
0.077869
0.282353
340
16
55
21.25
0.75
0.132353
0
0
1
0
0.187713
0.081911
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
5d190891c7c8c6ae88bd8b11a4958d94ac97d775
129
py
Python
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
null
null
null
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
2
2022-01-26T15:50:37.000Z
2022-03-30T14:08:36.000Z
easyquant/login/__init__.py
CharlieZhao95/easy-quant
9df126433e27d92eced9b087e581b5fd66c5a400
[ "Apache-2.0" ]
null
null
null
# @Time : 2022/1/26 23:07 # @Author : zhaoyu # @Site : # @File : __init__.py.py # @Software: PyCharm # @Note : xx
21.5
29
0.527132
17
129
3.764706
0.941176
0
0
0
0
0
0
0
0
0
0
0.120879
0.294574
129
6
30
21.5
0.582418
0.906977
0
null
0
null
0
0
null
0
0
0
null
1
null
true
0
0
null
null
null
1
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
0
0
0
0
null
0
0
0
0
0
0
1
0
0
0
0
0
0
4
5d1b794c29c7e14b547cb2e45a43996ab2eb188a
60,985
py
Python
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
19
2019-12-03T17:28:07.000Z
2021-09-10T21:30:52.000Z
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
51
2019-12-06T08:06:07.000Z
2021-05-06T02:10:50.000Z
tests/api/test_attributes.py
DowneyTung/saleor
50f299d8e276b594753ee439d9e1a212f85a91b1
[ "CC-BY-4.0" ]
20
2020-02-03T00:38:59.000Z
2022-01-03T13:07:52.000Z
from typing import Union from unittest import mock import graphene import pytest from django.core.exceptions import ValidationError from django.db.models import Q from django.template.defaultfilters import slugify from graphene.utils.str_converters import to_camel_case from saleor.core.taxes import zero_money from sa...
31.598446
88
0.649504
6,532
60,985
5.785364
0.066748
0.025959
0.026674
0.025933
0.611802
0.541492
0.487722
0.455306
0.416433
0.392379
0
0.004877
0.24347
60,985
1,929
89
31.614826
0.814206
0.063967
0
0.469185
0
0
0.245785
0.017626
0
0
0
0
0.102054
1
0.033797
false
0
0.012591
0
0.046388
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d1c26b574f8d1aa48c37371f029724022116688
3,557
py
Python
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
1
2020-11-26T16:12:16.000Z
2020-11-26T16:12:16.000Z
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
null
null
null
3-photos/1-chromakey/app.py
rafacm/aws-serverless-workshop-innovator-island
3f982ef6f70d28dfdc4e1d19103c181609b06b08
[ "MIT-0" ]
1
2020-11-26T16:12:21.000Z
2020-11-26T16:12:21.000Z
import os import json import cv2 import logging import boto3 import botocore s3 = boto3.client('s3') logger = logging.getLogger() logger.setLevel(logging.INFO) def upload_file(file_name, bucket, object_name=None): """Upload a file to an S3 bucket :param file_name: File to upload :param bucket: Bucket to ...
30.663793
86
0.671633
502
3,557
4.571713
0.294821
0.043573
0.04183
0.031373
0.16732
0.088889
0.063617
0
0
0
0
0.022785
0.22266
3,557
115
87
30.930435
0.807233
0.22041
0
0.032258
0
0
0.12908
0
0
0
0
0
0
1
0.048387
false
0
0.096774
0
0.225806
0.112903
0
0
0
null
0
0
0
0
0
0
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
1
0
5d1d2183e311c349b4e6a54b6abedc9e76fcc8d1
323
py
Python
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2021-04-10T15:07:51.000Z
2021-04-10T15:07:51.000Z
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2022-02-28T02:48:43.000Z
2022-02-28T02:48:43.000Z
metrics/overflow.py
DEKHTIARJonathan/pyinstrument
cc4f3f6fc1b493d7cd058ecf41ad012e0030a512
[ "BSD-3-Clause" ]
1
2018-09-24T15:32:13.000Z
2018-09-24T15:32:13.000Z
from pyinstrument import Profiler p = Profiler(use_signal=False) p.start() def func(num): if num == 0: return b = 0 for x in range(1,100000): b += x return func(num - 1) func(900) p.stop() print(p.output_text()) with open('overflow_out.html', 'w') as f: f.write(p.output_html(...
13.458333
41
0.597523
53
323
3.566038
0.679245
0.074074
0
0
0
0
0
0
0
0
0
0.053942
0.25387
323
23
42
14.043478
0.73029
0
0
0
0
0
0.055728
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.266667
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d1d2acfb826681789b607d0aa918460c8853f38
12,995
py
Python
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
scripts/gen_tee_bin.py
wawang621/optee_os
bf7298044beca7a4501ece95c6146b5987cecaa4
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 # SPDX-License-Identifier: BSD-2-Clause # # Copyright (c) 2019, Linaro Limited # from __future__ import print_function from __future__ import division import argparse import sys import struct import re import hashlib try: from elftools.elf.elffile import ELFFile from elftools.elf.consta...
33.066158
79
0.604309
1,660
12,995
4.408434
0.163855
0.042088
0.026237
0.020087
0.419923
0.319076
0.248975
0.221372
0.176004
0.176004
0
0.013428
0.260716
12,995
392
80
33.15051
0.748309
0.121431
0
0.233333
0
0
0.106433
0.008086
0
0
0.004394
0
0
1
0.074074
false
0
0.051852
0
0.177778
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
0
0
0
0
1
0
5d1d311ba4f1a92388fbc36107c0bf393d5b97bc
1,864
py
Python
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
665
2017-09-27T21:20:14.000Z
2022-03-31T09:09:25.000Z
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
641
2017-10-03T19:46:37.000Z
2022-03-30T18:28:46.000Z
CircuitPython_JEplayer_mp3/repeat.py
gamblor21/Adafruit_Learning_System_Guides
f5dab4a758bc82d0bfc3c299683fe89dc093912a
[ "MIT" ]
734
2017-10-02T22:47:38.000Z
2022-03-30T14:03:51.000Z
# The MIT License (MIT) # # Copyright (c) 2020 Jeff Epler for Adafruit Industries LLC # # 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 r...
38.833333
79
0.694742
272
1,864
4.735294
0.525735
0.068323
0.020186
0
0
0
0
0
0
0
0
0.007037
0.237661
1,864
47
80
39.659574
0.899367
0.70118
0
0.235294
0
0
0
0
0
0
0
0
0
1
0.117647
false
0
0.058824
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
0
0
0
0
0
0
0
1
0
5d1d5be9e9e0382909fb3777ed89becc272c0e93
767
py
Python
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
1
2020-12-24T15:42:54.000Z
2020-12-24T15:42:54.000Z
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
Kapitel_1/_1_public_private.py
Geralonx/Classes_Tutorial
9499db8159efce1e3c38975b66a9c649631c6727
[ "MIT" ]
null
null
null
# --- Klassendeklaration mit Konstruktor --- # class PC: def __init__(self, cpu, gpu, ram): self.cpu = cpu self.gpu = gpu self.__ram = ram # --- Instanziierung einer Klasse ---# # --- Ich bevorzuge die Initialisierung mit den Keywords --- # pc_instanz = PC(cpu='Ryzen 7', gpu='RTX2070Super'...
29.5
89
0.684485
95
767
5.242105
0.526316
0.108434
0.140562
0
0
0
0
0
0
0
0
0.007924
0.177314
767
25
90
30.68
0.7813
0.588005
0
0
0
0
0.083893
0
0
0
0
0
0
1
0.1
false
0
0
0
0.2
0.4
0
0
0
null
0
0
0
0
0
0
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
1
0
5d1d8a76e626c2ee6f2e02dabc04e268863c54e7
723
py
Python
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2017-07-02T01:35:39.000Z
2017-07-02T01:35:39.000Z
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
null
null
null
algorithm/dynamic_programming/coin_change/solution.py
delaanthonio/hackerrank
b1f2e1e93b3260be90eb3b8cb8e86e9a700acf27
[ "MIT" ]
1
2018-04-03T15:11:56.000Z
2018-04-03T15:11:56.000Z
#!/usr/bin/env python3 """ The Coin Change Problem :author: Dela Anthonio :hackerrank: https://hackerrank.com/delaanthonio :problem: https://www.hackerrank.com/challenges/coin-change/problem """ from typing import List def count_ways(amount: int, coins: List[int]) -> int: """Return the number of ways we can cou...
24.1
85
0.625173
105
723
4.209524
0.495238
0.045249
0.076923
0.036199
0.113122
0.113122
0.113122
0.113122
0
0
0
0.008696
0.204703
723
29
86
24.931034
0.76
0.362379
0
0
0
0
0.017857
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d1e0c02d27663acdb4392c5b988ee86f8972b53
147
py
Python
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
null
null
null
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
5
2018-11-24T16:15:24.000Z
2022-02-11T03:40:48.000Z
climbproject/climbapp/admin.py
javawolfpack/ClimbProject
508cf822a1eb0b78f7120a3d469ceb65e3b423f7
[ "MIT" ]
1
2018-11-24T16:13:49.000Z
2018-11-24T16:13:49.000Z
from django.contrib import admin #from .models import * from . import models # Register your models here. admin.site.register(models.ClimbModel)
18.375
38
0.782313
20
147
5.75
0.55
0
0
0
0
0
0
0
0
0
0
0
0.136054
147
7
39
21
0.905512
0.326531
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0
0.666667
0
0.666667
0
1
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
1
0
1
0
1
0
0
5
5d1e73e0421ce77dfe2003f2cfbf66fd1ffd338e
1,264
py
Python
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
setup.py
TheMagicNacho/artemis-nozzle
5c02672feb7b437a4ff0ccc45394de3010bcd5ab
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 from runpy import run_path from setuptools import setup # Get the version from the relevant file d = run_path('skaero/version.py') __version__ = d['__version__'] setup( name="scikit-aero", version=__version__, description="Aeronautical engineering calculations in Python.", author="Juan...
30.829268
70
0.625791
123
1,264
6.300813
0.650407
0.073548
0.096774
0
0
0
0
0
0
0
0
0.009269
0.231804
1,264
40
71
31.6
0.788877
0.041139
0
0.083333
0
0
0.54177
0.036394
0
0
0
0
0
1
0
false
0
0.055556
0
0.055556
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d1e977ff682cc24e27dda8c4298d920050e0d35
1,226
py
Python
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
5
2019-03-06T12:28:47.000Z
2022-01-06T14:06:02.000Z
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
6
2021-02-02T22:40:49.000Z
2022-03-12T00:27:54.000Z
appendix/AI.by.Search/backtracking.search/3-1.eight.queens.py
royqh1979/programming_with_python
7e1e8f88381151b803b6ae6ebda9809d9cc6664a
[ "MIT" ]
4
2019-03-06T14:29:25.000Z
2020-06-02T15:16:40.000Z
""" 8皇后问题 使用栈实现回溯法 """ def print_board(n,count): print(f"------解.{count}------") print(" ",end="") for j in range(n): print(f"{j:<2}" ,end="") print() for i in range(1,n+1): print(f"{i:<2}",end="") for j in range(1,n+1): if queens[i] == j: print("Q ",end="") else: print(" ",end="") print...
15.518987
67
0.58646
241
1,226
2.892116
0.232365
0.028694
0.050215
0.047346
0.261119
0.126255
0.04878
0
0
0
0
0.040486
0.194127
1,226
78
68
15.717949
0.66498
0.084013
0
0.155172
0
0
0.052299
0.018936
0
0
0
0
0
1
0.103448
false
0
0
0
0.172414
0.189655
0
0
0
null
0
0
0
0
0
0
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
1
0
5d1ef3d88231b985a99b51b59e99bc1d40f0567f
24,820
py
Python
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
6
2021-07-06T12:48:18.000Z
2021-12-06T01:52:24.000Z
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
null
null
null
multimodal_affinities/evaluation/analysis/plots_producer.py
amzn/multimodal-affinities
23045eb6a9387ce0c9c6f5a15227cf1cc4282626
[ "CC-BY-4.0" ]
5
2021-07-10T08:09:17.000Z
2022-03-24T16:27:15.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # SPDX-License-Identifier: CC-BY-4.0 import os import cv2 from collections import namedtuple import imageio from PIL import Image from random import randrange import numpy as np from sklearn.decomposition import PCA from scipy.spatial.distance import...
50.040323
148
0.621112
3,028
24,820
4.824967
0.136724
0.017796
0.00924
0.008624
0.48768
0.439288
0.418823
0.380972
0.359754
0.335387
0
0.010493
0.293473
24,820
495
149
50.141414
0.822651
0.11801
0
0.406077
0
0
0.027857
0.005953
0
0
0
0
0
1
0.038674
false
0
0.049724
0
0.116022
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d208ff94339d61c9f91237707d44d87ad7cd192
6,294
py
Python
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
openstates/openstates-master/openstates/de/legislators.py
Jgorsick/Advocacy_Angular
8906af3ba729b2303880f319d52bce0d6595764c
[ "CC-BY-4.0" ]
null
null
null
import re import lxml.html from openstates.utils import LXMLMixin from billy.scrape.legislators import LegislatorScraper, Legislator class DELegislatorScraper(LegislatorScraper,LXMLMixin): jurisdiction = 'de' def scrape(self, chamber, term): url = { 'upper': 'http://legis.delaware.gov/l...
35.359551
82
0.522402
719
6,294
4.458971
0.258693
0.03088
0.015908
0.018715
0.125078
0.102308
0.049906
0.049906
0.026201
0.026201
0
0.005167
0.354306
6,294
177
83
35.559322
0.783711
0.058151
0
0.142857
0
0
0.127113
0.019777
0
0
0
0
0.022556
1
0.037594
false
0.007519
0.030075
0
0.135338
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d20ce5f76b15dfb9e999e6d113dbf7e789ecd49
10,386
py
Python
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
36
2021-10-13T10:32:08.000Z
2022-03-20T07:50:05.000Z
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
3
2021-11-24T10:57:59.000Z
2022-03-27T15:37:40.000Z
simpleredial/dataloader/fine_grained_test_dataloader.py
gmftbyGMFTBY/SimpleReDial-v1
f45b8eb23d1499ec617b4cc4f417d83d8f2b6bde
[ "MIT" ]
1
2022-03-15T07:13:22.000Z
2022-03-15T07:13:22.000Z
from header import * from .utils import * from .util_func import * '''Only for Testing''' class FineGrainedTestDataset(Dataset): def __init__(self, vocab, path, **args): self.args = args self.vocab = vocab self.vocab.add_tokens(['[EOS]']) self.pad = self.vocab.convert_tokens_...
41.378486
106
0.501637
1,213
10,386
4.114592
0.10305
0.045081
0.036065
0.057303
0.802044
0.773392
0.767982
0.721298
0.721298
0.710479
0
0.006425
0.355575
10,386
250
107
41.544
0.73928
0.004333
0
0.72973
0
0
0.113804
0.03228
0
0
0
0
0.013514
1
0.067568
false
0
0.013514
0.013514
0.148649
0.027027
0
0
0
null
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
7
5d21c5c96591c41db957d015a344d7b68da97b7a
4,396
py
Python
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
dabing/DABING-MIB.py
SvajkaJ/dabing
8ddd8c1056b182b52f76028e23cd2ba8418a0dec
[ "MIT" ]
null
null
null
# # PySNMP MIB module DABING-MIB (http://snmplabs.com/pysmi) # ASN.1 source file://..\DABING-MIB.mib # Produced by pysmi-0.3.4 at Tue Mar 22 12:53:47 2022 # On host ? platform ? version ? by user ? # Using Python version 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 22:45:29) [MSC v.1916 32 bit (Intel)] # OctetString, Objec...
93.531915
523
0.75364
511
4,396
6.479452
0.258317
0.012685
0.016309
0.021746
0.430384
0.295681
0.295681
0.228934
0.203564
0.125642
0
0.0856
0.08849
4,396
46
524
95.565217
0.740704
0.065287
0
0
0
0
0.174348
0.010729
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d228bf6a4bad705b90b99a4ee75f695228944a7
956
py
Python
parameter_setup/run_setup_extra_vis.py
kharris/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
7
2018-04-02T01:30:31.000Z
2020-02-23T03:31:57.000Z
parameter_setup/run_setup_extra_vis.py
yijizhao/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
null
null
null
parameter_setup/run_setup_extra_vis.py
yijizhao/allen-voxel-network
3c39cf7e7400c09f78ebe9d1d9f8a6d7b9ef6d7b
[ "BSD-2-Clause" ]
2
2016-11-10T03:27:29.000Z
2018-08-06T17:32:05.000Z
import os import numpy as np save_stem='extra_vis_friday_harbor' data_dir='../../data/sdk_new_100' resolution=100 cre=False source_acronyms=['VISal','VISam','VISl','VISp','VISpl','VISpm', 'VISli','VISpor','VISrl','VISa'] lambda_list = np.logspace(3,12,10) scale_lambda=True min_vox=0 # save_file_name='...
26.555556
77
0.789749
154
956
4.564935
0.61039
0.034139
0.042674
0.039829
0.082504
0.082504
0.082504
0
0
0
0
0.029345
0.073222
956
35
78
27.314286
0.764108
0.074268
0
0
0
0
0.257662
0.166856
0
0
0
0
0
1
0
false
0
0.064516
0
0.064516
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d246013ebe48dbfeb0d5a33d4837a599aed75ec
396
py
Python
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
examples/runall.py
GNiklas/MOSSEPy
fbae1294beefe48f321bc5dbbc70e6c72d3ffe1f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Nov 20 09:42:39 2020 @author: niklas """ from mossepy.mosse_tracker import MOSSE # choose position of object in first frame # that should be done by mouse click objPos = [256, 256] # choose tracker type tracker = MOSSE() # initialize object position ...
19.8
43
0.729798
59
396
4.881356
0.762712
0.048611
0.083333
0
0
0
0
0
0
0
0
0.060241
0.161616
396
20
44
19.8
0.807229
0.628788
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5d252f7a220679f8642989c387a00db59609427b
3,194
py
Python
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
core/formulas.py
mike006322/PolynomialCalculator
bf56b0e773a3461ab2aa958d0d90e08f80a4d201
[ "MIT" ]
null
null
null
def solve(polynomial): """ input is polynomial if more than one variable, returns 'too many variables' looks for formula to apply to coefficients returns solution or 'I cannot solve yet...' """ if len(polynomial.term_matrix[0]) > 2: return 'too many variables' elif len(polynomial...
31.623762
106
0.556669
456
3,194
3.79386
0.201754
0.178035
0.254335
0.09711
0.367052
0.318497
0.17341
0.17341
0.123121
0.112717
0
0.041723
0.302129
3,194
100
107
31.94
0.73441
0.116781
0
0.09589
0
0
0.009489
0
0
0
0
0
0
1
0.068493
false
0.013699
0
0
0.232877
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
5d25df408d94ab31e94a89b3213ae144d0477893
5,761
py
Python
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
manim/mobject/svg/style_utils.py
5Points7Edges/manim
1c2a5099133dbf0abdd5517b2ac93cfc8275b842
[ "MIT" ]
null
null
null
"""Utility functions for parsing SVG styles.""" __all__ = ["cascade_element_style", "parse_style", "parse_color_string"] from xml.dom.minidom import Element as MinidomElement from colour import web2hex from ...utils.color import rgb_to_hex from typing import Dict, List CASCADING_STYLING_ATTRIBUTES: List[str] = [ ...
31.140541
119
0.635306
745
5,761
4.781208
0.303356
0.038181
0.022459
0.020213
0.112296
0.06064
0
0
0
0
0
0.00543
0.264711
5,761
184
120
31.309783
0.835458
0.453741
0
0.08
0
0
0.116438
0.007192
0
0
0
0
0
1
0.053333
false
0.013333
0.053333
0
0.146667
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d2760eb1387adc84de54a02742f29d1beeb4ef2
1,361
py
Python
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
null
null
null
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
1
2017-01-08T14:22:32.000Z
2019-01-08T23:51:53.000Z
iotrigger.py
mm011106/iotrigger
643ced0440a8c4fb95ade56399f813c88ac8ddd6
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #coding:utf-8 import os import RPi.GPIO as GPIO # import json from time import sleep # from twython import Twython f=open("tw_config.json",'r') config=json.load(f) f.close() CONSUMER_KEY =config['consumer_key'] CONSUMER_SECRET =config['consumer_secret'] ACCESS_TOKEN =config['access_token'] ACCE...
21.951613
93
0.714916
196
1,361
4.785714
0.520408
0.051173
0.040512
0.053305
0
0
0
0
0
0
0
0.013817
0.149155
1,361
61
94
22.311475
0.7962
0.045555
0
0
0
0
0.117738
0
0
0
0
0
0
1
0.026316
false
0.026316
0.131579
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d27ee1b746e920a8fbbde21e0ae74440138e1ce
2,293
py
Python
src/wheezy/template/tests/test_utils.py
nxsofsys/wheezy.template
b65b70b2927974790ff2413843ec752dd9c6c609
[ "MIT" ]
2
2017-02-08T11:48:41.000Z
2017-12-18T08:04:13.000Z
src/wheezy/template/tests/test_utils.py
ezotrank/wheezy.template
d54bc667303fd4de7314f659e17dd317ac3e3a82
[ "MIT" ]
null
null
null
src/wheezy/template/tests/test_utils.py
ezotrank/wheezy.template
d54bc667303fd4de7314f659e17dd317ac3e3a82
[ "MIT" ]
1
2022-03-04T20:26:20.000Z
2022-03-04T20:26:20.000Z
""" Unit tests for ``wheezy.templates.utils``. """ import unittest class FindAllBalancedTestCase(unittest.TestCase): """ Test the ``find_all_balanced``. """ def test_start_out(self): """ The start index is out of range. """ from wheezy.template.utils import find_all_balanced ...
31.847222
62
0.602704
294
2,293
4.513605
0.163265
0.144687
0.158252
0.105501
0.894499
0.853806
0.803316
0.787491
0.666164
0.590053
0
0.025989
0.261666
2,293
71
63
32.295775
0.757826
0.195813
0
0.457143
0
0
0.081127
0
0
0
0
0
0.457143
1
0.228571
false
0
0.257143
0
0.542857
0
0
0
0
null
0
0
0
1
1
1
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
1
0
1
0
0
0
0
1
0
0
7
5d28c827c798225b6b2063067a58a432acbd8766
34,967
py
Python
akshare/economic/macro_constitute.py
peterrosetu/akshare
9eac9ccb531b6e07d39140830d65349ea9441dc3
[ "MIT" ]
1
2020-12-26T23:39:05.000Z
2020-12-26T23:39:05.000Z
akshare/economic/macro_constitute.py
Hecate2/akshare
2d8904f5cf242ab784f748ab2f886329ebf69742
[ "MIT" ]
null
null
null
akshare/economic/macro_constitute.py
Hecate2/akshare
2d8904f5cf242ab784f748ab2f886329ebf69742
[ "MIT" ]
2
2020-09-23T08:50:14.000Z
2020-09-28T09:57:07.000Z
# -*- coding:utf-8 -*- # /usr/bin/env python """ Date: 2019/10/21 12:08 Desc: 获取金十数据-数据中心-主要机构-宏观经济 """ import json import time import pandas as pd import requests from tqdm import tqdm from akshare.economic.cons import ( JS_CONS_GOLD_ETF_URL, JS_CONS_SLIVER_ETF_URL, JS_CONS_OPEC_URL, ) def macro_cons_...
42.128916
140
0.574885
6,079
34,967
3.192795
0.086363
0.055335
0.018548
0.026586
0.848885
0.832191
0.830594
0.822969
0.81591
0.811376
0
0.241673
0.258158
34,967
829
141
42.179735
0.506438
0.321846
0
0.818356
0
0.028681
0.278654
0.00915
0
0
0
0
0
1
0.017208
false
0
0.011472
0
0.045889
0.01912
0
0
0
null
0
0
0
1
1
1
1
1
1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
8
5d29262ef748030566b97eaf9b5c7c914c6c44fd
1,811
py
Python
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:12.000Z
2019-08-13T15:22:12.000Z
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
null
null
null
test/testers/winforms/scrollbar/__init__.py
ABEMBARKA/monoUI
5fda266ad2db8f89580a40b525973d86cd8de939
[ "MIT" ]
1
2019-08-13T15:22:17.000Z
2019-08-13T15:22:17.000Z
############################################################################## # Written by: Cachen Chen <cachen@novell.com> # Date: 08/06/2008 # Description: Application wrapper for scrollbar.py # Used by the scrollbar-*.py tests ###################################################################...
32.339286
134
0.602982
204
1,811
5.269608
0.54902
0.037209
0.03907
0.055814
0
0
0
0
0
0
0
0.006442
0.228603
1,811
55
135
32.927273
0.763064
0.145224
0
0
0
0.034483
0.280029
0.023155
0
0
0
0
0
0
null
null
0
0.103448
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
5d2a93367402f8cedeb2edebdd44e28110111fbf
4,209
py
Python
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
save_tweets.py
iglesiasmanu/data_analysis
61127c91ad0eb11ecdc7258e186e430e9dddb0b6
[ "BSD-3-Clause" ]
null
null
null
import json from os import path from tweepy import OAuthHandler, Stream from tweepy.streaming import StreamListener from sqlalchemy.orm.exc import NoResultFound from database import session, Tweet, Hashtag, User consumer_key = "0qFf4T2xPWVIycLmAwk3rDQ55" consumer_secret = "LcHpujASn4fIIrQ8sikbCTQ3oyU6T6opchFVWBBqwI...
32.882813
80
0.623188
482
4,209
5.165975
0.290456
0.019679
0.025301
0.021687
0.049398
0.015261
0
0
0
0
0
0.015077
0.275125
4,209
127
81
33.141732
0.801049
0.029936
0
0.030612
0
0
0.130211
0.057626
0
0
0
0
0
1
0.081633
false
0
0.061224
0
0.193878
0.010204
0
0
0
null
0
0
0
0
0
0
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
1
0
5d2b1bb602059e1df9b567f6022d9d62a73d9127
907
py
Python
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
app/views/main.py
chrisjws-harness/flaskSaaS
f42558c523de23f03a098044df164ead3539a4dd
[ "MIT" ]
null
null
null
from flask import render_template, jsonify from app import app import random @app.route('/') @app.route('/index') def index(): # Feature flags init goes here! # # noinspection PyDictCreation flags = { "welcome_text": "welcome to my python FF tutorial!" } # Flag goes here! #...
19.717391
59
0.61301
107
907
5.121495
0.476636
0.072993
0.109489
0
0
0
0
0
0
0
0
0.051948
0.235943
907
45
60
20.155556
0.738817
0.080485
0
0
0
0
0.181159
0
0
0
0
0
0
1
0.148148
false
0
0.111111
0.074074
0.407407
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d2e7fe7c422e728c2698140a25e0895a9bb3030
254
py
Python
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
2
2018-08-29T11:09:36.000Z
2018-10-22T11:46:36.000Z
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
null
null
null
base_sample/numpy_mat.py
keepangry/ai_algorithm
21d8024296a2f2d2797448ed34eb383359259684
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 ''' @author: yangsen @license: @contact: @software: @file: numpy_mat.py @time: 18-8-25 下午9:56 @desc: ''' import numpy as np a = np.arange(9).reshape(3,3) # 行 a[1] a[[1,2]] a[np.array([1,2])] # 列 a[:,1] a[:,[1,2]] a[:,np.array([1,2])]
11.043478
29
0.574803
52
254
2.788462
0.596154
0.055172
0.041379
0.055172
0.206897
0.206897
0.206897
0.206897
0.206897
0.206897
0
0.100457
0.137795
254
23
30
11.043478
0.561644
0.46063
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d2ea06d1190699ab0cefe6b4179c68d747feca4
17,002
py
Python
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
22
2020-08-21T03:03:05.000Z
2022-02-22T10:15:36.000Z
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
23
2021-02-13T20:35:45.000Z
2022-02-06T20:15:37.000Z
ai_traineree/agents/rainbow.py
laszukdawid/ai-traineree
af32940eba8e11012de87b60d78f10f5a3b96c79
[ "Apache-2.0" ]
6
2020-10-11T08:36:09.000Z
2021-11-20T18:31:03.000Z
import copy from typing import Callable, Dict, List, Optional import torch import torch.nn as nn import torch.optim as optim from ai_traineree import DEVICE from ai_traineree.agents import AgentBase from ai_traineree.agents.agent_utils import soft_update from ai_traineree.buffers import NStepBuffer, PERBuffer from ai...
45.218085
118
0.648688
2,261
17,002
4.697037
0.199912
0.016573
0.025612
0.034652
0.229849
0.161111
0.141055
0.114689
0.082109
0.05951
0
0.008118
0.2465
17,002
375
119
45.338667
0.820857
0.272262
0
0.048077
0
0
0.05104
0.011588
0
0
0
0.002667
0.057692
1
0.086538
false
0
0.081731
0.014423
0.225962
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d2fb89dd83715259f4676be3c051b02287f606c
4,169
py
Python
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
nvvm/core/nvvm.py
uchytilc/PyCu
9ba25281611bf4dbd70d37f4eba0574f817d6928
[ "MIT" ]
null
null
null
from pycu.nvvm import (get_libdevice, ir_version, version, add_module_to_program, compile_program, create_program, destroy_program, get_compiled_result, get_compiled_result_size, get_program_log, get_program_log_size, lazy_add_module_to_program, verify_program) import os import sys from ctypes import c...
28.951389
181
0.708803
583
4,169
4.910806
0.291595
0.027943
0.048201
0.05868
0.22913
0.21446
0.21446
0.171149
0.155781
0.155781
0
0.02282
0.180139
4,169
143
182
29.153846
0.814804
0.611897
0
0.036364
0
0
0.096672
0.011622
0
0
0
0
0
1
0.145455
false
0.036364
0.090909
0.054545
0.345455
0
0
0
0
null
0
0
0
0
0
0
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
1
0
5d314e81984e8fdd23c8fa9711722c873d27574a
160
py
Python
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
null
null
null
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
null
null
null
fieldservice/fieldservice/doctype/fieldservice_settings/test_fieldservice_settings.py
itsdaveit/fieldservice
90bd813fb01f23a18df3b24fc67ec86c4d8be5a5
[ "MIT" ]
1
2021-11-09T10:26:06.000Z
2021-11-09T10:26:06.000Z
# Copyright (c) 2022, itsdve GmbH and Contributors # See license.txt # import frappe import unittest class TestFieldserviceSettings(unittest.TestCase): pass
17.777778
50
0.79375
19
160
6.684211
0.894737
0
0
0
0
0
0
0
0
0
0
0.028986
0.1375
160
8
51
20
0.891304
0.4875
0
0
0
0
0
0
0
0
0
0
0
1
0
true
0.333333
0.333333
0
0.666667
0
1
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
1
1
1
0
0
0
0
5
5d332a4a020a6faa75a8b1522601b2bced79121d
2,621
py
Python
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
null
null
null
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
null
null
null
Codes/Data Processing.py
BrickerP/Investment-
8b57c0d157a7eaa38d693c8d42ce1bc7dc7bdde9
[ "Apache-2.0" ]
1
2022-01-07T06:25:54.000Z
2022-01-07T06:25:54.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 21 14:51:01 2021 @author: 75638 """ import pandas as pd import numpy as np pd.set_option('display.max_columns', None) pd.set_option('display.width', 10000) def process_data(path1,path2): ''' 1.path1: file path of different factor 2.path2:file path...
33.177215
97
0.591759
365
2,621
4.158904
0.336986
0.059289
0.034256
0.029644
0.194993
0.129117
0.129117
0.054018
0.054018
0.054018
0
0.054724
0.260969
2,621
79
98
33.177215
0.728962
0.145364
0
0.125
0
0
0.142655
0.107227
0
0
0
0
0
1
0.053571
false
0
0.035714
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0