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
97849e29d8bc30894785e486625de3eacbf655df
570
py
Python
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
2
2016-06-23T15:35:29.000Z
2022-01-11T00:55:21.000Z
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
27
2016-06-24T12:28:01.000Z
2022-01-13T00:37:25.000Z
src/odontology/person/migrations/0008_patient_date_created.py
nanomolina/JP
248a47bced4dac850f85d28968ddf279cd123400
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import datetime from django.utils.timezone import utc class Migration(migrations.Migration): dependencies = [ ('person', '0007_auto_20160214_2019'), ] operations = [ migrations.AddFi...
24.782609
124
0.64386
63
570
5.619048
0.746032
0.056497
0
0
0
0
0
0
0
0
0
0.078886
0.24386
570
22
125
25.909091
0.742459
0.036842
0
0
0
0
0.087751
0.042048
0
0
0
0
0
1
0
false
0
0.25
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97856bbd18162d533ea54eb1abdafde5f0b28d54
1,358
py
Python
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
1
2018-09-28T11:35:07.000Z
2018-09-28T11:35:07.000Z
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
null
null
null
Sensor_Debug/TestCase/test_01_Openapp.py
sdwfclcyk1/AutoTestCase
63a6a6a4acf2a9dc572bd917b186638eae65aee7
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/6/25 18:59 # @Author : Kay # @Site : # @File : test_01_openapp.py # @Software: PyCharm Community Edition import uiautomator2 as u2 import unittest from Public.Decorator import * from Public.BasePage import BasePage from Public.ReadConfig import Rea...
24.690909
71
0.715022
162
1,358
5.808642
0.450617
0.025505
0.034006
0.041445
0.230606
0.230606
0.230606
0.18916
0.18916
0.18916
0
0.022563
0.184094
1,358
54
72
25.148148
0.826715
0.119293
0
0.323529
0
0
0.02874
0
0
0
0
0
0
1
0.117647
false
0
0.205882
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
978a831843efed4c9a546c08310214668dcc7a6e
7,009
py
Python
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
2
2021-07-28T08:46:13.000Z
2022-01-19T17:05:48.000Z
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
3
2020-11-10T23:34:17.000Z
2021-03-31T16:19:21.000Z
docs/database_tables.py
wdr-data/wdr-okr
71c9e6e8d3521b1bb67d30310a93584389de2127
[ "MIT" ]
null
null
null
"""Read database information from Django models and create a HTML table for the documentation. """ import collections import os import sys import django from loguru import logger DOCS_DIR = os.path.dirname(os.path.abspath(__file__)) BASE_DIR = os.path.dirname(DOCS_DIR) sys.path.insert(0, BASE_DIR) os.environ["DJANG...
38.092391
194
0.542017
826
7,009
4.417676
0.245763
0.024938
0.015073
0.017539
0.135928
0.067964
0
0
0
0
0
0.004869
0.326009
7,009
183
195
38.300546
0.766723
0.206449
0
0.066116
0
0.016529
0.238502
0.101073
0.008264
0
0
0
0
1
0.016529
false
0
0.057851
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
978c454e2c28df828f082014fc81cd881d17aa27
2,497
py
Python
device/container/src/baseline_device/service/jobs/sample2.py
MartinMReed/aws-iot-baseline
61bdc51708e6f4480d0117a43f0adde5f6a63506
[ "MIT" ]
1
2021-12-31T05:05:30.000Z
2021-12-31T05:05:30.000Z
device/container/src/baseline_device/service/jobs/sample2.py
nelsestu/thing-expert
2e105d718c386258d8efdb329ea60da1072ffbe8
[ "MIT" ]
null
null
null
device/container/src/baseline_device/service/jobs/sample2.py
nelsestu/thing-expert
2e105d718c386258d8efdb329ea60da1072ffbe8
[ "MIT" ]
1
2021-04-05T23:44:12.000Z
2021-04-05T23:44:12.000Z
import json import logging import os import sys import threading import time import paho.mqtt.client as paho import paho.mqtt.publish as paho_publish from baseline_device.util.config import config from baseline_device.util.mqtt import MqttLoggingHandler logging.basicConfig(level=logging.INFO) logger = logging.getLog...
26.284211
109
0.673208
308
2,497
5.344156
0.435065
0.024301
0.025516
0.026731
0.17983
0.17983
0.087485
0.087485
0.087485
0.087485
0
0.009635
0.210252
2,497
94
110
26.56383
0.825051
0.132559
0
0.169492
0
0
0.203987
0.083449
0
0
0
0
0
1
0.016949
false
0
0.169492
0
0.186441
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
978cde5321a929429de3c79977503bd4e3e5a2f0
12,183
py
Python
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
12
2021-03-26T08:39:40.000Z
2022-03-16T02:20:10.000Z
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
13
2020-12-20T16:00:21.000Z
2022-03-14T14:55:30.000Z
odoo-13.0/addons/sale/tests/test_onchange.py
VaibhavBhujade/Blockchain-ERP-interoperability
b5190a037fb6615386f7cbad024d51b0abd4ba03
[ "MIT" ]
17
2020-08-31T11:18:49.000Z
2022-02-09T05:57:31.000Z
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from odoo.tests import Form from odoo.tests.common import TransactionCase class TestOnchangeProductId(TransactionCase): """Test that when an included tax is mapped by a fiscal position, the included tax must be ...
44.790441
204
0.583682
1,442
12,183
4.690014
0.136616
0.050569
0.019518
0.023658
0.672926
0.607275
0.577406
0.538518
0.508206
0.46296
0
0.025983
0.298695
12,183
271
205
44.95572
0.765566
0.075187
0
0.568182
0
0
0.238723
0.024336
0
0
0
0
0.059091
1
0.027273
false
0
0.009091
0
0.040909
0
0
0
0
null
0
0
0
0
0
0
0
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
978e392b87cb419fb505337ab4cee06b350097b0
8,390
py
Python
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
null
null
null
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
1
2021-11-10T02:00:41.000Z
2021-11-11T03:02:23.000Z
IEX_29id/utils/folders.py
kellyjelly0904/macros_29id
573946d13eee7f85da049ac666b5dd2d18d19bb1
[ "MIT" ]
2
2021-09-28T21:19:47.000Z
2021-10-12T20:51:43.000Z
from epics import caput from IEX_29id.utils.exp import Check_run, BL_Mode_Set, BL_ioc from IEX_29id.mda.file import MDA_CurrentDirectory from IEX_29id.mda.file import MDA_CurrentRun import os import re def Make_DataFolder(run,folder,UserName,scanIOC,ftp): #JM was here ->print full crontab command and change permi...
40.143541
297
0.590703
998
8,390
4.846693
0.229459
0.037213
0.013025
0.020467
0.251809
0.198677
0.193922
0.123217
0.095514
0.038867
0
0.018856
0.254112
8,390
208
298
40.336538
0.754075
0.148272
0
0.128378
0
0.02027
0.249498
0.066495
0
0
0
0
0
1
0.040541
false
0
0.040541
0.006757
0.101351
0.182432
0
0
0
null
0
0
0
0
0
0
0
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
978f1fcb3bef9348f27a0824ad9894eb219d2595
2,932
py
Python
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
6
2020-02-05T21:31:57.000Z
2020-03-08T00:35:16.000Z
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
null
null
null
sceance/set_watchlist.py
sjmignot/film-to-cal
82d5e96b65197ff96522324d6527fca6f18cc76b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ''' Starts a Firfox headless brower to see if movies on your watchlist are playing at any of your favorite theaters. Favorite theaters are taken from a txt file (extracted from "theaters.txt"). These showtimes are compared to a watchlist (extracted from "watchlist.txt") -samuel mignot- ''' # ...
32.21978
115
0.62824
391
2,932
4.531969
0.365729
0.063205
0.019752
0.020316
0.059819
0.059819
0.041761
0.041761
0.041761
0.041761
0
0.00308
0.224761
2,932
90
116
32.577778
0.776507
0.206003
0
0.186441
0
0
0.216558
0.022658
0
0
0
0
0
1
0.067797
false
0
0.084746
0
0.254237
0.067797
0
0
0
null
0
0
0
0
0
0
0
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
978fd61709e98a6a4163084a70975c96d6b7f512
21,143
py
Python
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
ARHMM-code/olfactory_search_xval.py
Smear-Lab/Olfactory_Search
92ea57cdd49b9c1d88ffe5d7b18a0be2cd73f0ff
[ "MIT" ]
null
null
null
#Misc import os, time, argparse import h5py, json import glob, fnmatch,pdb from tqdm import tqdm import multiprocessing #Base import numpy as np import pandas as pd import scipy.stats as st from sklearn.model_selection import StratifiedKFold #Plotting import matplotlib matplotlib.use('Agg') import seaborn as sns from m...
40.895551
185
0.62328
2,755
21,143
4.602541
0.189837
0.017744
0.033517
0.006703
0.188801
0.138722
0.108438
0.092666
0.074054
0.060252
0
0.00998
0.255924
21,143
516
186
40.974806
0.796021
0.21714
0
0.132686
0
0.003236
0.119868
0.006425
0
0
0
0
0
1
0.016181
false
0
0.064725
0
0.097087
0.022654
0
0
0
null
0
0
0
0
0
0
0
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
9793545d6d0e47925c766734e2f8f75b3b0595d3
1,402
py
Python
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
3
2019-06-24T08:04:25.000Z
2020-05-26T03:45:45.000Z
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
src/pyeff_io.py
pyflosic/pyeff
4b76fcc4a0bfb25f9f4106567d01b5ea02db6737
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 PyEFF developers # # 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 agree...
40.057143
131
0.574893
209
1,402
3.832536
0.478469
0.034956
0.052434
0.03995
0.149813
0.149813
0.149813
0.149813
0.149813
0.082397
0
0.017893
0.282454
1,402
34
132
41.235294
0.77833
0.437946
0
0.117647
0
0
0.095052
0
0
0
0
0
0
1
0.058824
false
0
0.058824
0
0.117647
0
0
0
0
null
0
0
0
0
0
0
0
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
979375047a16643d63291a0d8aad8d8fc63735f2
22,196
py
Python
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
32
2015-04-01T15:17:35.000Z
2021-05-02T20:46:33.000Z
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
52
2015-03-23T21:37:04.000Z
2022-02-10T07:27:13.000Z
declarations_site/catalog/data/mapping_chesno.py
li-ar/declarations.com.ua
343cd86cc5a4bd895f2859ed896728f6416ac223
[ "MIT" ]
18
2015-03-16T22:10:44.000Z
2021-11-01T12:56:12.000Z
from collections import namedtuple SubDocument = namedtuple("SubDocument", ["path_prefix", "mapping"]) NumericOperation = namedtuple("NumericOperation", ["path_prefix", "field", "operation"]) JoinOperation = namedtuple("JoinOperation", ["paths", "separator"]) MAPPING = { "_id": "details/id", "intro": { ...
34.573209
88
0.421157
1,760
22,196
5.128409
0.082955
0.167073
0.128518
0.070906
0.699092
0.676158
0.627964
0.590184
0.487924
0.381675
0
0.03649
0.402415
22,196
641
89
34.627145
0.643999
0
0
0.486614
0
0
0.388674
0.148045
0
0
0
0
0
1
0
false
0
0.001575
0
0.001575
0
0
0
0
null
0
0
0
0
0
0
0
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
9793ec4954370ea87c1224757843713b7976c1e3
3,179
py
Python
common/threads/thread_pool.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
8
2018-10-11T16:05:14.000Z
2020-12-30T08:21:15.000Z
common/threads/thread_pool.py
keven1z/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
1
2020-04-22T03:36:59.000Z
2020-06-11T06:42:42.000Z
common/threads/thread_pool.py
ziizhuwy/cify
627ae74f6a27d803521df213e8644366dbba183f
[ "Apache-2.0" ]
4
2019-07-10T06:51:45.000Z
2020-04-19T09:52:09.000Z
# !/usr/bin/env python # -*- coding:utf-8 -*- import queue import threading import traceback from data.config import * from common.log.log_util import LogUtil as log logger = log.getLogger(__name__) class ThreadPool(object): def __init__(self): self.task_queue = queue.Queue() self.threads = []...
32.773196
113
0.557093
385
3,179
4.418182
0.314286
0.10582
0.122281
0.05291
0.104644
0.079953
0.079953
0.079953
0.079953
0.079953
0
0.002389
0.341617
3,179
96
114
33.114583
0.81032
0.334382
0
0.178571
0
0
0.002459
0
0
0
0
0
0
1
0.178571
false
0.035714
0.089286
0
0.303571
0
0
0
0
null
0
0
0
0
0
0
0
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
9794d489e11c9d85b61fcfda17b5fcf122b391c0
4,431
py
Python
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
whatsappy/group.py
YohananDiamond/whatsappy
2474839baf32295fea568c4dd30c59edace11e58
[ "MIT" ]
null
null
null
from time import sleep from selenium.webdriver.common.keys import Keys from os import path from .tool import * from .error import BadPathError import traceback def change_group_description(self, description: str): """Changes the group description Args: description (str): New group description """...
31.204225
128
0.594223
666
4,431
3.83033
0.154655
0.079969
0.090553
0.123481
0.670325
0.624069
0.611133
0.597413
0.597413
0.597413
0
0.026447
0.232002
4,431
141
129
31.425532
0.723185
0.129091
0
0.586207
0
0.126437
0.340963
0.31176
0
0
0
0
0
1
0.045977
false
0.034483
0.068966
0
0.149425
0.034483
0
0
0
null
0
0
0
0
0
0
0
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
97959af172f3896c43a9153dc3a145cbbaa7178b
365
py
Python
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
2
2020-12-05T07:42:55.000Z
2021-01-06T23:23:18.000Z
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
Books/GodOfPython/P16_Networking/SimplehttpServer.py
Tim232/Python-Things
05f0f373a4cf298e70d9668c88a6e3a9d1cd8146
[ "MIT" ]
null
null
null
from http.server import HTTPServer, SimpleHTTPRequestHandler import sys ip = '127.0.0.1' port = 8000 addr = (ip, port) httpd = HTTPServer(addr, SimpleHTTPRequestHandler) Servip, Servport = httpd.socket.getsockname() try: httpd.serve_forever() except KeyboardInterrupt: print('Keyboard interrupt received, exi...
20.277778
60
0.750685
44
365
6.181818
0.704545
0
0
0
0
0
0
0
0
0
0
0.035032
0.139726
365
18
61
20.277778
0.83121
0
0
0
0
0
0.125683
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
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
979851dc526feb93a60dbe69c32893824847ba79
1,217
py
Python
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
19
2019-04-15T15:57:20.000Z
2021-07-09T07:01:12.000Z
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
14
2019-08-01T13:03:53.000Z
2021-04-20T13:26:54.000Z
dataclasses_serialization/serializer_base/dataclasses.py
blfoster/python-dataclasses-serialization
1a2d1fc15ca1800c2b4953fe5cb2557f37d1475d
[ "MIT" ]
11
2019-06-13T21:38:55.000Z
2022-02-28T08:53:20.000Z
from toolz import curry from dataclasses_serialization.serializer_base.errors import DeserializationError from dataclasses_serialization.serializer_base.noop import noop_deserialization from dataclasses_serialization.serializer_base.typing import ( dataclass_field_types, isinstance, ) __all__ = ["dict_to_data...
29.682927
87
0.642564
126
1,217
5.97619
0.420635
0.059761
0.111554
0.151394
0.167331
0
0
0
0
0
0
0
0.282662
1,217
40
88
30.425
0.862543
0
0
0.176471
0
0
0.123254
0
0
0
0
0
0
1
0.029412
false
0
0.117647
0
0.176471
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
979b57b2f520e53382dbdd26bd190261e6e49b86
9,359
py
Python
DQN_Qlearning/agent.py
WoShiDongZhiWu/Reinforcement-learning-Algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
1
2019-12-23T02:59:13.000Z
2019-12-23T02:59:13.000Z
DQN_Qlearning/agent.py
WoShiDongZhiWu/reinforcement-learning-algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
null
null
null
DQN_Qlearning/agent.py
WoShiDongZhiWu/reinforcement-learning-algorithm
59fdf29e7feb73048b9ddf3b4755b55f0459efcb
[ "Apache-2.0" ]
null
null
null
''' ################################################################################################# # author wudong # date 20190812 # 功能 # 实现各类算法,Srasa(0),Sarsa(λ),Q-learning,DQN ################################################################################################# ''' from random import random, choic...
35.316981
105
0.543862
1,172
9,359
4.116894
0.196246
0.024663
0.035026
0.026529
0.516269
0.459689
0.429016
0.395855
0.395855
0.395855
0
0.027433
0.337857
9,359
265
106
35.316981
0.75117
0.147452
0
0.517045
0
0
0.008036
0.003954
0
0
0
0
0
1
0.079545
false
0
0.051136
0.011364
0.215909
0.022727
0
0
0
null
0
0
0
0
0
0
0
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
979c4c7ab54f0e47ec7248d0082811b92e99c917
3,649
py
Python
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
1
2018-02-26T15:45:17.000Z
2018-02-26T15:45:17.000Z
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
DMProject/15.package/15.7.MNIST.py
gongjunhuang/Spider
c683137dafac9c7f4afd359baf9d0717d1a127e2
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding:utf-8 -*- import numpy as np from sklearn import svm import matplotlib.colors import matplotlib.pyplot as plt from PIL import Image from sklearn.metrics import accuracy_score import pandas as pd import os import csv from sklearn.model_selection import train_test_split from sklearn.model_...
35.086538
132
0.64456
562
3,649
4.021352
0.307829
0.011947
0.015929
0.015487
0.316372
0.253097
0.218142
0.197345
0.197345
0.163717
0
0.03488
0.190737
3,649
103
133
35.427184
0.730444
0.01014
0
0.191011
0
0
0.096953
0.014958
0
0
0
0
0
1
0.022472
false
0
0.157303
0
0.179775
0.157303
0
0
0
null
0
0
0
0
0
0
0
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
979c80762641e4c8d009fdd05535ea43eb570cd2
4,122
py
Python
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
examples/collision-avoid/pyplot_staticplan.py
yinanl/rocs
bf2483903e39f4c0ea254a9ef56720a1259955ad
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import matplotlib.patches as patches import matplotlib.animation as animation import matplotlib.colors as mcolors from scipy.interpolate import interp1d from scipy.integrate import solve_ivp import os import re import numpy as np import h5py import sys from os.path import dirname, realpa...
30.761194
83
0.607472
679
4,122
3.612666
0.273932
0.008969
0.007338
0.009784
0.157358
0.1064
0.087648
0.013045
0
0
0
0.068285
0.200631
4,122
133
84
30.992481
0.676176
0.08952
0
0.039604
0
0
0.065451
0.02441
0
0
0
0
0
1
0
false
0
0.138614
0
0.138614
0.019802
0
0
0
null
0
0
0
0
0
0
0
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
97a1ff60f08e5d9b17054c1f2b8239c0c712ac7b
17,655
py
Python
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
777
2015-01-17T22:48:26.000Z
2022-03-31T01:10:07.000Z
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
17
2015-01-02T14:41:24.000Z
2017-09-02T02:57:09.000Z
vol3/vol3-python-examples/lib/aifh/som.py
Sun-Joong/aifh
1b6363d26f54b77348020ce88ced0670568ed736
[ "Apache-2.0" ]
445
2015-01-26T17:01:49.000Z
2022-03-24T07:16:58.000Z
#!/usr/bin/env python """ Artificial Intelligence for Humans Volume 3: Deep Learning and Neural Networks Python Version http://www.aifh.org http://www.jeffheaton.com Code repository: https://github.com/jeffheaton/aifh Copyright 2015 by Jeff Heaton Licensed under the Apache License, V...
37.886266
114
0.63625
2,265
17,655
4.86181
0.170861
0.030512
0.008173
0.009807
0.162368
0.088086
0.048039
0.048039
0.03587
0.025608
0
0.003458
0.295667
17,655
465
115
37.967742
0.882107
0.470292
0
0.095238
0
0
0.019378
0
0
0
0
0
0
1
0.130952
false
0
0.02381
0
0.22619
0
0
0
0
null
0
0
0
0
0
0
0
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
97a57543f9dc26b5f9e4368297bf82071ccf16c7
1,855
py
Python
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
143
2019-12-31T08:12:36.000Z
2022-03-31T15:59:51.000Z
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
5
2020-01-28T15:47:23.000Z
2022-02-23T11:18:55.000Z
src/GUI/custom_widgets.py
QWERTSKIHACK/peniot
8b5c5c4dddb5adf53977c3e2e99e645a086f1f0b
[ "MIT" ]
39
2019-12-30T22:19:38.000Z
2022-03-17T10:24:37.000Z
from Tkinter import * from hard_coded_texts import get_project_name class Header(Frame): """ Generic header template class which is used for construction of different screens """ def __init__(self, parent_window): Frame.__init__(self, parent_window) # Configure the window self...
37.1
112
0.686253
222
1,855
5.518018
0.315315
0.052245
0.091429
0.130612
0.325714
0.308571
0.241633
0.241633
0.181224
0.181224
0
0.009447
0.201078
1,855
49
113
37.857143
0.817139
0.163342
0
0
0
0
0.026846
0
0
0
0
0
0
1
0.173913
false
0
0.086957
0
0.434783
0
0
0
0
null
0
0
0
0
0
0
0
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
97a757d0e58b59160fb7713ada622222e925c521
4,479
py
Python
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
null
null
null
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
4
2020-02-17T23:27:06.000Z
2020-03-10T20:21:22.000Z
Code/search.py
Keyology/cs-1.3-2020
7b6f02c76dc16f1abafc613ebe6088d51b36b3be
[ "MIT" ]
null
null
null
#!python def linear_search(array, item): """return the first index of item in array or None if item is not found""" # implement linear_search_iterative and linear_search_recursive below, then # change this to call your implementation to verify it passes all tests # return linear_search_iterative(array,...
31.542254
95
0.663764
636
4,479
4.584906
0.150943
0.090535
0.048011
0.057613
0.644033
0.540123
0.481824
0.424554
0.39369
0.336077
0
0.00459
0.270373
4,479
141
96
31.765957
0.887699
0.523778
0
0.571429
0
0
0.027683
0
0
0
0
0.007092
0
1
0.122449
false
0
0
0
0.387755
0.081633
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97affcf5430ea542d75da78b8065ecc199a3cc76
1,898
py
Python
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
PyMess/FIPS/ANN/ConvertData.py
mattkjames7/PyMess
f2c68285a7845a24d98284e20ed4292ed5e58138
[ "MIT" ]
null
null
null
import numpy as np from ... import Globals from .ReadData import ReadData import os import RecarrayTools as RT def _DateStrToDateUT(s): ''' convert date on the format YYYY-MM-DDThh:mm:ss.sss to an integer date and a floating point time. ''' Y = np.array([np.int32(x[0:4]) for x in s]) M = np.array([np.int32(x[5:7...
24.025316
70
0.630664
318
1,898
3.757862
0.383648
0.035146
0.045188
0.035146
0.093724
0.028452
0.028452
0.028452
0
0
0
0.050837
0.181243
1,898
78
71
24.333333
0.718147
0.19705
0
0
0
0
0.109772
0
0
0
0
0
0
1
0.044444
false
0
0.111111
0
0.177778
0
0
0
0
null
0
0
0
0
0
0
0
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
97b281cd2e09060653c37e8623382835d9e1206e
3,891
py
Python
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
2
2018-10-09T09:59:45.000Z
2021-11-21T17:01:47.000Z
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
2_data_files/plotter.py
Abhipanda4/RQs_in_Regex_Graphs
80b86b5b3f92ef28102ac0f5049bb495b5cc07f9
[ "Apache-2.0" ]
null
null
null
import csv import matplotlib.pyplot as plt import numpy as np def index_sizes(): fp = open("./index_size.csv") x = csv.reader(fp, delimiter='\t') sizes = [] for line in x: size = float(line[0].strip()[:-1]) sizes.append(size) temp = sorted(sizes[:-1]) nodes = [i for i in range(1...
25.431373
76
0.561809
627
3,891
3.425837
0.23445
0.020484
0.030726
0.035847
0.217877
0.111732
0.064246
0.064246
0.064246
0.064246
0
0.053472
0.25983
3,891
152
77
25.598684
0.692361
0.023901
0
0.161017
0
0
0.207388
0.029288
0
0
0
0
0
1
0.050847
false
0
0.025424
0
0.084746
0.042373
0
0
0
null
0
0
0
0
0
0
0
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
97b47597bcd7e262415d73a5d1a8d5d991bcfe66
3,022
py
Python
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
1
2018-09-22T22:34:35.000Z
2018-09-22T22:34:35.000Z
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
generic_editor.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
# https://github.com/JonathanNickerson/talon_voice_user_scripts # jsc added indent/outdent and simplified jolt from talon.voice import Key, press, Str, Context ctx = Context('generic_editor') # , bundle='com.microsoft.VSCode') numeral_map = dict((str(n), n) for n in range(0, 20)) for n in [20, 30, 40, 50, 60, 70, 80...
26.743363
82
0.625745
438
3,022
4.127854
0.319635
0.056416
0.034845
0.073009
0.277102
0.22677
0.082965
0.082965
0.045354
0.045354
0
0.013491
0.215089
3,022
112
83
26.982143
0.748735
0.12409
0
0.246753
0
0
0.1783
0
0.025974
0
0
0
0
1
0.155844
false
0
0.012987
0
0.220779
0
0
0
0
null
0
0
0
0
0
0
0
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
97b62ed540d6ffc6ab71d19b389a5534151aeb3d
4,260
py
Python
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
setup.py
blschatz/pyHDT
9553fd49e1e89a89d248e5d75b3a49ad3b3e124f
[ "MIT" ]
null
null
null
# setup.py # Author: Thomas MINIER - MIT License 2017-2018 from setuptools import setup, Extension from os import listdir import pybind11 import distutils import platform __pyhdt_version__ = "1.2.1" with open('README.rst') as file: long_description = file.read() def list_files(path, extension=".cpp", exclude="S...
37.368421
110
0.698122
675
4,260
4.251852
0.248889
0.060627
0.068293
0.078049
0.447735
0.447735
0.40662
0.396516
0.329268
0.227875
0
0.036374
0.135211
4,260
113
111
37.699115
0.742671
0.102347
0
0.022727
0
0
0.38514
0.292465
0
0
0
0.00885
0
1
0.034091
false
0
0.056818
0
0.136364
0
0
0
0
null
0
0
0
0
0
0
0
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
97ba1bc69fa28bb340ca97364cb86adfcaf60e62
2,880
py
Python
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
src/rest_api/mir_coords_to_csv.py
jonathanleinola/radiohead-master
f0854441c07aba0ccf51bf9ec8904b860eefd683
[ "MIT" ]
null
null
null
import time import sys import urllib3 from time import sleep import json import csv import datetime import requests from datetime import datetime import subprocess # just for changing file ownership at the end of script http = urllib3.PoolManager() ######################################################################...
39.452055
87
0.518056
323
2,880
4.575851
0.473684
0.005413
0.026387
0.042625
0.107578
0.048714
0
0
0
0
0
0.017849
0.221875
2,880
72
88
40
0.641678
0.301042
0
0.044444
0
0
0.135099
0
0
0
0
0
0
1
0.022222
false
0
0.222222
0
0.244444
0.088889
0
0
0
null
0
0
0
0
0
0
0
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
97be40091dbb9d0bd5f45ca454971f59e1fb204d
3,511
py
Python
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
2
2022-01-29T03:46:31.000Z
2022-02-14T14:06:35.000Z
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
timeeval_experiments/algorithms/mscred.py
HPI-Information-Systems/TimeEval
9b2717b89decd57dd09e04ad94c120f13132d7b8
[ "MIT" ]
null
null
null
from durations import Duration from typing import Any, Dict, Optional from timeeval import Algorithm, TrainingType, InputDimensionality from timeeval.adapters import DockerAdapter from timeeval.params import ParameterConfig import numpy as np import numpy as np from timeeval.utils.window import ReverseWindowing # p...
30.530435
125
0.672173
419
3,511
5.479714
0.362769
0.034843
0.033101
0.023519
0.111063
0.068815
0.068815
0.068815
0.068815
0.068815
0
0.013923
0.181715
3,511
114
126
30.798246
0.785242
0.011108
0
0.152381
0
0.019048
0.405592
0.023926
0
0
0
0
0
1
0.019048
false
0
0.07619
0.009524
0.114286
0
0
0
0
null
0
0
0
0
0
0
0
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
97bf1504b82eb929f132872535cb5630bd14f3ad
7,470
py
Python
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
fedot/core/operations/evaluation/operation_implementations/data_operations/sklearn_selectors.py
vishalbelsare/FEDOT
3a6f06b29cf2f173008d119f7cb5dc705a45f695
[ "BSD-3-Clause" ]
null
null
null
from typing import Optional import numpy as np from sklearn.feature_selection import RFE from sklearn.linear_model import LinearRegression, LogisticRegression from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor from fedot.core.data.data import OutputData from fedot.core.operations.evaluation.operat...
37.35
105
0.654485
817
7,470
5.749082
0.194614
0.041516
0.038748
0.04258
0.47839
0.447733
0.409836
0.390249
0.374069
0.374069
0
0.002215
0.274833
7,470
199
106
37.537688
0.86487
0.247925
0
0.476636
0
0
0.020837
0
0
0
0
0
0
1
0.102804
false
0
0.065421
0.009346
0.28972
0
0
0
0
null
0
0
0
0
0
0
0
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
97c09d6d0c463e1a6cbc1d5065aab627ff77af00
18,595
py
Python
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
budou/budou.py
aodag/budou
97be13eb87745d5ac78e9c42eda97ac923226259
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017 Google Inc. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requ...
33.625678
81
0.645012
2,348
18,595
5.002129
0.202726
0.013027
0.009366
0.014474
0.192337
0.134951
0.115028
0.079183
0.079183
0.079183
0
0.009344
0.251788
18,595
552
82
33.686594
0.834831
0.370046
0
0.227119
0
0
0.076359
0.002624
0
0
0
0
0
1
0.091525
false
0.00678
0.044068
0.00339
0.237288
0.00678
0
0
0
null
0
0
0
0
0
0
0
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
97c0f0316a610972e2430f4b0813c029c750b789
1,456
py
Python
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
4
2020-10-02T10:04:19.000Z
2022-01-19T12:45:02.000Z
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-06T17:43:57.000Z
2020-10-06T17:47:43.000Z
lpd/callbacks/collect_outputs.py
RoySadaka/lpd
921454d9730d8228f4b0ca5349b0558ebd123c65
[ "MIT" ]
1
2020-10-03T17:21:32.000Z
2020-10-03T17:21:32.000Z
from lpd.enums import Phase, State from lpd.callbacks.callback_base import CallbackBase from lpd.callbacks.callback_context import CallbackContext from typing import Union, List class CollectOutputs(CallbackBase): """ This callback will collect outputs per each state, (it is currently used in trainer.predi...
37.333333
110
0.677885
187
1,456
5
0.347594
0.052406
0.058824
0.096257
0.097326
0
0
0
0
0
0
0
0.249313
1,456
38
111
38.315789
0.855444
0.270604
0
0
0
0
0
0
0
0
0
0
0
1
0.15
false
0
0.2
0.05
0.45
0
0
0
0
null
0
0
0
0
0
0
0
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
97c42e24a090f424ea4838812d93847accbf8363
15,022
py
Python
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
snakebot.py
paulolima18/Snake_Python
f872f374c573963b4347333e4a2099a8956c9de4
[ "MIT" ]
null
null
null
'Game1' ''' x.type são os seguintes (Tudo em Capslock) quit atctiveevent keydown keyup mousemotion mousebuttonup mousebuttondown videioresize ''' #40pygame import pygame_textinput import pygame import random width=800 height=600 bsize=20 thick=20 fps=60 direction = 270 wall = 10 pygame.init() gdisplay=pygame.display....
34.853828
165
0.503462
1,756
15,022
4.274487
0.159453
0.026112
0.039169
0.039968
0.478684
0.384226
0.329869
0.306288
0.277511
0.264988
0
0.042361
0.357276
15,022
430
166
34.934884
0.73506
0.02037
0
0.419825
0
0
0.062491
0.010033
0
0
0
0
0
1
0.046647
false
0
0.008746
0
0.075802
0.002915
0
0
0
null
0
0
0
0
0
0
0
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
97c76c081c460323a55942e3974a52a93f0623d4
804
py
Python
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
11
2018-10-10T03:14:33.000Z
2022-01-05T14:18:15.000Z
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
196
2018-03-21T19:44:56.000Z
2021-12-21T21:56:24.000Z
run_tests.py
scottwittenburg/vcs
5b9f17fb78f7ab186fc0132ab81ada043a7ba348
[ "BSD-3-Clause" ]
5
2019-12-09T21:54:45.000Z
2022-03-20T04:22:14.000Z
#!/usr/bin/env python import os import sys import cdat_info class VCSTestRunner(cdat_info.TestRunnerBase): def _prep_nose_options(self): opt = super(VCSTestRunner, self)._prep_nose_options() if self.args.no_vtk_ui: opt += ["-A", "not vtk_ui"] if self.args.vtk is not None: ...
28.714286
75
0.618159
108
804
4.342593
0.527778
0.051173
0.063966
0
0
0
0
0
0
0
0
0
0.258706
804
27
76
29.777778
0.786913
0.024876
0
0
0
0
0.144317
0.061303
0
0
0
0
0
1
0.05
false
0
0.15
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97c77c550cf0c53433815e5c8467ef4ace730897
1,007
py
Python
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
2
2021-01-25T15:04:45.000Z
2021-11-05T06:15:40.000Z
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
null
null
null
pyrl/cli/util.py
jponf/pyrl
1353d59deee2731c509991a6cca90a7b991779bc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import random import six # SciPy Stack import numpy as np # Torch import torch ############################################################################### def initialize_seed(seed): """Initializes the seed of different PRNGs. :param seed: Value to initialize the PRNGs. ""...
20.55102
79
0.569017
121
1,007
4.669421
0.504132
0.056637
0.049558
0
0
0
0
0
0
0
0
0.00134
0.259186
1,007
48
80
20.979167
0.756032
0.242304
0
0
0
0
0
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
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
97c97448c31c9699860a83ac252dd71c1be4c6a6
1,522
py
Python
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
null
null
null
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2021-11-03T08:28:31.000Z
2021-11-03T08:28:31.000Z
code/src/main/python/mos/blocks/contest_meta_block.py
anonfse/COSAL_Anonymized
709906294fd775131f3e019862bbdd554d83773d
[ "Unlicense" ]
1
2022-03-22T14:24:13.000Z
2022-03-22T14:24:13.000Z
import sys import os sys.path.append(os.path.abspath(".")) sys.dont_write_bytecode = True __author__ = "COSAL" from utils.lib import O class ContestMeta(O): def __init__(self, **kwargs): O.__init__(self, **kwargs) self.submission_id = None self.contest_type = None self.contest_id = None sel...
24.548387
59
0.653745
212
1,522
4.485849
0.254717
0.080967
0.047319
0.068349
0.031546
0
0
0
0
0
0
0.001711
0.231932
1,522
61
60
24.95082
0.811805
0
0
0.039216
0
0
0.114398
0
0
0
0
0
0
1
0.078431
false
0
0.058824
0.019608
0.215686
0
0
0
0
null
0
0
0
0
0
0
0
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
97cc531294afb11301fe771674b2ba6517514180
562
py
Python
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
null
null
null
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
1
2020-02-10T08:11:23.000Z
2020-02-10T08:11:23.000Z
data/coco_korean/coco_load_image.py
Pixir/Pixir
63a6fc0728403af92eadf188f532f9f41cd9f912
[ "MIT" ]
3
2020-02-09T11:14:33.000Z
2020-04-11T16:10:17.000Z
from PIL import Image import json import numpy as np from tqdm import tqdm with open('../../../coco/MSCOCO_train_val_Korean.json', 'r', encoding='utf-8') as f: info = json.load(f) # print(info[0]['file_path']) img_path = '../../../coco/' img_size = 64 images = np.empty((len(info), img_size, img_size, 3), dtype=n...
26.761905
84
0.658363
96
562
3.697917
0.489583
0.098592
0.084507
0.078873
0
0
0
0
0
0
0
0.012526
0.147687
562
20
85
28.1
0.728601
0.048043
0
0
0
0
0.166979
0.078799
0
0
0
0
0
1
0
false
0
0.266667
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
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
97ccf40733199c207a29b866cea4353f6edc523b
630
py
Python
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
1
2021-01-03T06:42:58.000Z
2021-01-03T06:42:58.000Z
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
programming/udemy/SLLCycle.py
vamsitallapudi/Coderefer-Python-Projects
a7acc682251661e296c64533f4a85d47e6eedda2
[ "Apache-2.0" ]
null
null
null
class Node: def __init__(self, value): self.value = value self.nextnode = None def cycle_check(node): if not node: return False head = node node = node.nextnode while node: if node == head: return True node = node.nextnode return False if _...
17.027027
33
0.539683
87
630
3.747126
0.37931
0.07362
0.09816
0
0
0
0
0
0
0
0
0.014888
0.360317
630
36
34
17.5
0.794045
0.080952
0
0.148148
0
0
0.013913
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.222222
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
97cea0095c84b4a1f87650614e47111614016fd2
3,619
py
Python
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
3
2020-03-31T10:36:31.000Z
2020-04-23T12:01:10.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
1
2020-07-16T14:51:26.000Z
2020-07-30T12:46:55.000Z
awesome/plugins/other_xsh/__init__.py
Lparksi/bot
8a38953d09436b60e8edff4ebe86bf19fe3b7046
[ "MIT" ]
null
null
null
from nonebot import on_command, CommandSession from nonebot import on_natural_language, NLPSession, IntentCommand from jieba import posseg @on_command("sushe", aliases=("宿舍", "寝室"), only_to_me=False) async def sushe(session: CommandSession): if session.event.group_id == 818278353: await session.send("""一...
35.480392
109
0.721194
482
3,619
5.253112
0.255187
0.035545
0.047393
0.077014
0.64376
0.597946
0.564771
0.544234
0.516983
0.46248
0
0.053583
0.128489
3,619
102
110
35.480392
0.749207
0
0
0.361111
0
0.041667
0.231492
0.137293
0
0
0
0
0
1
0
false
0
0.041667
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
97cf4d5a480c01da483d0f38460e002acb1f26fe
3,387
py
Python
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
fabric_cf/broker/core/broker_kernel.py
fabric-testbed/ActorBase
3c7dd040ee79fef0759e66996c93eeec57c790b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # MIT License # # Copyright (c) 2020 FABRIC Testbed # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to ...
43.423077
117
0.71804
441
3,387
5.371882
0.399093
0.037146
0.025327
0.03588
0.14141
0.079358
0.056564
0.056564
0.056564
0.056564
0
0.002609
0.207854
3,387
78
118
43.423077
0.880358
0.384411
0
0.058824
0
0
0.017
0
0
0
0
0
0
1
0.117647
false
0
0.176471
0
0.441176
0
0
0
0
null
0
0
0
0
0
0
0
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
8ad8e73f0765a04eca466c875d8845aef87a9bad
372
py
Python
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
tests/lib/bes/hardware/test_Ftdi.py
reconstruir/bes
82ff54b2dadcaef6849d7de424787f1dedace85c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #-*- coding:utf-8; mode:python; indent-tabs-mode: nil; c-basic-offset: 2; tab-width: 2 -*- import unittest from bes.hardware.Ftdi import Ftdi class TestFtdi(unittest.TestCase): def test_find_devices(self): devices = Ftdi.find_devices() for device in devices: print('DEVICE: ', de...
23.25
90
0.693548
53
372
4.660377
0.716981
0.089069
0
0
0
0
0
0
0
0
0
0.009585
0.158602
372
15
91
24.8
0.779553
0.293011
0
0
0
0
0.061303
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
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
8adba14d1116a00200adf306c8aff70161525c2c
6,504
py
Python
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
pyhdx/fitting_torch.py
sebaztiano/PyHDX
12fc2b5f67200885706226823bd8e1f46e3b5db1
[ "MIT" ]
null
null
null
import torch.nn as nn import torch.nn.functional as F from torch.optim import SGD import torch as t from scipy import constants import numpy as np import pandas as pd from pyhdx.models import Protein class DeltaGFit(nn.Module): def __init__(self, deltaG): super(DeltaGFit, self).__init__() self.del...
36.745763
133
0.64837
835
6,504
4.875449
0.252695
0.033161
0.044706
0.011791
0.0958
0.039794
0.014247
0
0
0
0
0.0078
0.231242
6,504
177
134
36.745763
0.8064
0.164975
0
0.115044
0
0
0.041745
0
0
0
0
0.00565
0
1
0.150442
false
0
0.070796
0.026549
0.371681
0
0
0
0
null
0
0
0
0
0
0
0
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
8ae1bf6090dd889c0f197f2b8a758940dc94c4c9
992
py
Python
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
migrations/versions/035e7209663c_tags_and_base_with_unique.py
microservice-experiment-flask-0hsn/pocket-ws-flask
e7582a6ebe4b554070f183e43042c87762633085
[ "MIT" ]
null
null
null
"""tags and base with unique Revision ID: 035e7209663c Revises: Create Date: 2022-04-16 11:22:34.040818 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '035e7209663c' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### comman...
26.810811
72
0.680444
129
992
5.139535
0.503876
0.060332
0.063348
0.090498
0.229261
0.229261
0.229261
0.13273
0
0
0
0.054414
0.166331
992
36
73
27.555556
0.747279
0.297379
0
0
0
0
0.134848
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
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
8ae264be6fcb91ac2eb22ef29be6e415fafa0087
6,079
py
Python
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
4
2020-05-29T22:54:41.000Z
2021-10-03T07:59:07.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
2
2020-08-28T07:39:43.000Z
2021-04-05T12:45:39.000Z
recline/commands/man_utils.py
NetApp/recline
065d9d90b6f5b63b535a091f14552e4790c26ecc
[ "BSD-3-Clause" ]
null
null
null
""" This module holds some utility functions used as part of the man command to format text from CLI commands into consistent man pages that respond to the terminal width. """ import curses from recline.arg_types.positional import Positional from recline.arg_types.remainder import Remainder from recline.commands.cli_...
39.474026
92
0.623787
775
6,079
4.730323
0.236129
0.067649
0.10311
0.032733
0.281779
0.259411
0.237861
0.224768
0.195308
0.154392
0
0.002248
0.268136
6,079
153
93
39.732026
0.821758
0.226024
0
0.269231
0
0
0.035251
0
0
0
0
0
0
1
0.028846
false
0
0.038462
0
0.115385
0.028846
0
0
0
null
0
0
0
0
0
0
0
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
8ae39804dc5f4ef4b01469e35dccf93770837275
1,759
py
Python
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
3
2022-03-29T17:54:19.000Z
2022-03-29T17:54:42.000Z
bigml/tests/compare_forecasts_steps.py
pertinkoira/python
c486060f7f7c79ef9f48ced567f118ac7aae3f84
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2022 BigML # # 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 ...
37.425532
77
0.675952
239
1,759
4.824268
0.464435
0.112749
0.073721
0.027754
0.036427
0
0
0
0
0
0
0.010287
0.226265
1,759
46
78
38.23913
0.836885
0.371234
0
0
0
0
0.028493
0
0
0
0
0
0.090909
1
0.090909
false
0
0.181818
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
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
8ae58acf089690caafb8cdb5422fc701ad32f66a
2,749
py
Python
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
application.py
roupenminassian/UTS-DSI-x-Disability-Research-Network
e08378594f09560a477521f22f62a47622e07cdd
[ "MIT" ]
null
null
null
import pandas as pd import streamlit as st import openai import os import jsonlines import pickle from rank_bm25 import BM25Okapi openai.organization = "org-eiJyreiRZUtpiu8pm6LIIA8B" openai.api_key = st.secrets['API_KEY'] """ # Data Science Institute x Disability Research Network: A UTS HASS-DSI Research Project Th...
36.171053
441
0.706075
370
2,749
5.148649
0.52973
0.014698
0.011549
0.013648
0.018898
0
0
0
0
0
0
0.028118
0.19789
2,749
75
442
36.653333
0.835828
0.028738
0
0.042553
0
0
0.282915
0.01407
0
0
0
0
0
1
0
false
0.021277
0.148936
0
0.148936
0
0
0
0
null
0
0
0
0
0
0
0
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
8ae5d110cb00dff54458d2c48b5bb3d0525b7694
2,468
py
Python
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
examples/tour_examples/bootstrap_xkcd_tour.py
chau11ece/GitStudy
d2f1130d529ec99e3a08878dba7af41f2a08e27d
[ "MIT" ]
null
null
null
from seleniumbase import BaseCase class MyTestClass(BaseCase): def test_bootstrap_tour(self): self.open("https://xkcd.com/1117/") self.assert_element('img[alt="My Sky"]') self.create_bootstrap_tour() self.add_tour_step("Welcome to XKCD!") self.add_tour_step("This is the XKC...
36.294118
87
0.603728
306
2,468
4.722222
0.398693
0.043599
0.068512
0.093426
0.1391
0.07474
0.07474
0.041522
0
0
0
0.014154
0.255673
2,468
67
88
36.835821
0.772455
0.066856
0
0
0
0
0.246377
0.009662
0
0
0
0
0.09434
1
0.113208
false
0
0.018868
0.037736
0.226415
0
0
0
0
null
0
0
0
0
0
0
0
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
8aed0fd9be816c87487500edc230255c399c0ca8
8,283
py
Python
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
14
2020-09-23T18:51:41.000Z
2020-10-10T11:22:58.000Z
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
PyReQTL/annotate.py
nalomran/PyReQTL
020535e69dfd7ab3c074a3e28cda6cca465672e8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """Annotate the output of ReQTL as cis or trans Created on Aug, 29 2020 @author: Nawaf Alomran This module annotates the output of ReQTL as cis or trans based on whether the SNVs resides within its paired gene. Input + Options ---------------- + -r: the path to the ReQTL analysis result...
33
79
0.608234
1,000
8,283
4.859
0.289
0.049393
0.081498
0.017288
0.28051
0.210949
0.190574
0.155999
0.118337
0.095287
0
0.009085
0.269105
8,283
250
80
33.132
0.793525
0.354219
0
0.0625
0
0
0.198422
0.010008
0
0
0
0
0
1
0.017857
false
0
0.178571
0
0.205357
0.080357
0
0
0
null
0
0
0
0
0
0
0
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
8aef1e6b611dba02218b5cc706c486dafbea639a
940
py
Python
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
fx_bmark_extract.py
kiike/scripts
c58386288ff889dd14c91db4487734b294ba3a81
[ "ISC" ]
null
null
null
#!/usr/bin/env python """ Import a Firefox bookmarks file into a single json list """ import json import pprint def walk(struct, depth=0): children = struct.get('children') if children: for child in children: if child.get('type') == 'text/x-moz-place': title = child.get('t...
24.736842
60
0.453191
109
940
3.816514
0.495413
0.076923
0.038462
0
0
0
0
0
0
0
0
0.003731
0.429787
940
37
61
25.405405
0.772388
0.080851
0
0
0
0
0.068925
0
0
0
0
0
0
1
0.038462
false
0
0.076923
0
0.115385
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
8af9408c776206126f843ee9b5587d4d0acab636
5,153
py
Python
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
null
null
null
xcltk/utils/pileup_regions.py
Rongtingting/xcltk
2e86207c45a1caa7f905a89e1c121c3c203eab2d
[ "Apache-2.0" ]
2
2021-01-26T02:07:32.000Z
2021-02-03T03:56:55.000Z
# Copied from cellSNP, https://github.com/single-cell-genetics/cellSNP/blob/purePython/cellSNP/utils/pileup_regions.py # Utilility functions for pileup SNPs across regions # originally in from pileup_utils.py # Author: Yuanhua Huang # Date: 21/05/2018 # Modified by: Xianjie Huang from .pileup import * from .sam import...
38.744361
118
0.622938
682
5,153
4.438416
0.259531
0.023786
0.026759
0.026429
0.339941
0.309217
0.26561
0.251734
0.16518
0.143376
0
0.01252
0.287017
5,153
132
119
39.037879
0.811377
0.352222
0
0.171429
0
0
0.014747
0
0
0
0
0.007576
0
1
0.028571
false
0
0.028571
0
0.085714
0.014286
0
0
0
null
0
0
0
0
0
0
0
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
8af96d0df5555eb37bb2040db58c0c8a963553d0
374
py
Python
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
scrapy_framework/demotest.py
savor007/scrapy_framework
9f1266eb2d4bb7e181d1c5352b05298e77040980
[ "MIT" ]
null
null
null
import importlib # from scrapy_framework.config.settings import SPIDERS # # # for data in SPIDERS: # print(data) # path=data.rsplit(".",1)[0] # cls_name=data.rsplit(".",1)[1] # module=importlib.import_module(path) # cls=getattr(module, cls_name) # print(cls) d = {'a':1,'b':4,'c':2} c=sorted(...
20.777778
54
0.63369
58
374
4.017241
0.568966
0.085837
0.094421
0
0
0
0
0
0
0
0
0.025723
0.168449
374
18
55
20.777778
0.723473
0.65508
0
0
0
0
0.02521
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
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
8afad3555501f5f26b1ee0d4bb4ad784ace7da70
812
py
Python
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
2
2018-05-10T21:53:27.000Z
2018-05-15T17:37:20.000Z
imagersite/imager_images/urls.py
katcosgrove/django-imager
409081e6fa2933c7247fd8a9de49ec1cb053b778
[ "MIT" ]
null
null
null
from django.urls import path from .views import LibraryView, PhotosView, AlbumsView, PhotoView, AlbumView from .views import PhotoCreateView, AlbumCreateView, PhotoEditView, AlbumEditView urlpatterns = [ path('library/', LibraryView.as_view(), name='library'), path('photos/', PhotosView.as_view(), name='photo...
47.764706
81
0.704433
100
812
5.59
0.29
0.096601
0.161002
0.080501
0
0
0
0
0
0
0
0
0.108374
812
16
82
50.75
0.772099
0
0
0
0
0
0.227833
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
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
8afb51114e53c381340def1b8d3f0d6726b17916
310
py
Python
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
4
2020-03-17T03:08:51.000Z
2022-03-14T17:33:28.000Z
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
null
null
null
Python/049group_anagrams.py
Apocrypse/LeetCode
3ada2605ce8c8f6dadebf37a30c9c00a0d1ede39
[ "MIT" ]
3
2021-04-29T16:51:02.000Z
2022-03-19T17:37:56.000Z
class Solution: def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] """ result = collections.defaultdict(list) for s in strs: key = "".join(sorted(s)) result[key].append(s) return result.values()
25.833333
46
0.509677
33
310
4.787879
0.666667
0.088608
0
0
0
0
0
0
0
0
0
0
0.354839
310
11
47
28.181818
0.79
0.145161
0
0
0
0
0
0
0
0
0
0
0
1
0.142857
false
0
0
0
0.428571
0
0
0
0
null
0
0
0
0
0
0
0
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
8afb97d50c56a425188ed738b021e57471f05003
758
py
Python
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
1
2021-05-03T14:55:20.000Z
2021-05-03T14:55:20.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
2
2021-03-01T16:37:30.000Z
2021-05-03T20:37:56.000Z
app/urls.py
jhabarsingh/polling_app
8e9d6f8489576170cacb47be76e5bc4ec6378d06
[ "MIT" ]
null
null
null
from django.urls import path from app import views app_name = 'poll' urlpatterns = [ path('', views.home, name='home'), path('register', views.register, name='register'), path('login', views.admin_login, name='login'), path('create_poll/', views.create_poll, name='create_poll'), path('show_polls/'...
39.894737
77
0.675462
106
758
4.632075
0.254717
0.09165
0.06721
0.069246
0
0
0
0
0
0
0
0
0.124011
758
18
78
42.111111
0.739458
0
0
0
0
0
0.306069
0.064644
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
8afe34ceebaf6f7db1a23f0d092b72c7df8780de
501
py
Python
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
1200-minimum-absolute-difference/1200-minimum-absolute-difference.py
marzy-bn/Leetcode_2022
07d6b9050279e82f610ed4a54209b33db3e3f8f9
[ "MIT" ]
null
null
null
class Solution: def minimumAbsDifference(self, arr: List[int]) -> List[List[int]]: results = [] mini = 1000000000 arr.sort() for a,b in zip(arr,arr[1:]): diff = abs(a-b) if diff == mini: results.append([a,b]) #print("pp...
29.470588
70
0.423154
51
501
4.156863
0.529412
0.037736
0.066038
0
0
0
0
0
0
0
0
0.04
0.451098
501
17
71
29.470588
0.730909
0.07984
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
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
8aff4d08b156fe05c3178ca97948dcab05b52a18
1,588
py
Python
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
famous_block/SENet.py
dongqifong/learning
a36453e82802f92c6fb4b03cd8e09938a763bac7
[ "MIT" ]
null
null
null
import torch import torch.nn as nn class SEBlock(nn.Module): def __init__(self, in_c, kernel_size, r, dummy_x) -> None: super().__init__() self.in_c = in_c self.conv1 = nn.Conv1d(in_channels=self.in_c, out_channels=self.in_c, kernel_size=kernel_size, padding=...
30.538462
108
0.537783
268
1,588
2.94403
0.216418
0.057034
0.08872
0.015209
0.152091
0.108999
0.038023
0.038023
0
0
0
0.032403
0.300378
1,588
51
109
31.137255
0.677768
0.063602
0
0
0
0
0.005427
0
0
0
0
0
0
1
0.097561
false
0
0.04878
0.02439
0.243902
0.02439
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c1019da9fdbebdeb2177f41e024ec8a2375bfc50
355
py
Python
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/motech/migrations/0002_requestlog_payload_id.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('motech', '0001_initial'), ] operations = [ migrations.AddField( model_name='requestlog', name='payload_id', field=models.CharField(blank=True, max_length...
20.882353
74
0.588732
33
355
6.212121
0.818182
0
0
0
0
0
0
0
0
0
0
0.027888
0.292958
355
16
75
22.1875
0.788845
0
0
0
0
0
0.107042
0
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c10256e1a56feb6756445ccac8a450d8e5c12102
754
py
Python
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
2
2022-01-24T23:30:18.000Z
2022-01-26T00:21:22.000Z
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
revibe/_errors/data.py
Revibe-Music/core-services
6b11cf16ad2c35d948f3a5c0e7a161e5b7cfc1b2
[ "MIT" ]
null
null
null
from . import base from revibe._helpers import const, status # ----------------------------------------------------------------------------- class ParameterMissingError(base.ExpectationFailedError): default_detail = "missing paramter, please check the docs for request requirements" class SerializerValidationErr...
31.416667
87
0.71618
72
754
7.416667
0.638889
0.121723
0.123596
0.146067
0
0
0
0
0
0
0
0
0.124668
754
23
88
32.782609
0.809091
0.102122
0
0
0
0
0.305185
0
0
0
0
0
0
1
0
false
0
0.166667
0
1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c1099cb2a2632c598917595fb2f7f6e6745f4161
3,885
py
Python
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
reddit_IG_FB.py
Wanatux/Reddit-to-FB-Page
9f70b4cff72aecc34bad047078d77b534a1abfb4
[ "MIT" ]
null
null
null
#Clean Code for Picture uploader for social media platform import praw import random import pandas as pd import config from openpyxl import load_workbook import requests import json #Reddit Creds r = praw.Reddit( client_id= "Enter Info Here", client_secret= "Enter Info Here", user_agent= "Enter Info Here",...
28.566176
97
0.605405
515
3,885
4.44466
0.337864
0.019659
0.010485
0.012232
0.14941
0.117955
0.098733
0.0699
0.041066
0
0
0.010623
0.273102
3,885
136
98
28.566176
0.799929
0.149807
0
0.242991
0
0
0.175038
0.028006
0
0
0
0
0
1
0.028037
false
0.028037
0.065421
0
0.102804
0.046729
0
0
0
null
0
0
0
0
0
0
0
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
c10de940ca61195f3abd45d17f60bcb7de5621f4
3,834
py
Python
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
13
2019-06-25T13:23:30.000Z
2022-02-10T07:00:39.000Z
uil/core/templatetags/transformat.py
UiL-OTS-labs/django-shared-core
702ca346f1be861108ec70ceed2ed3b99623f0a3
[ "Apache-2.0" ]
null
null
null
from django.template import Library, Node, TemplateSyntaxError, Variable, VariableDoesNotExist from django.template.base import render_value_in_context from django.utils.safestring import SafeData, mark_safe register = Library() class FormattedTranslateNode(Node): def __init__(self, filter_expression, noop, for...
36.865385
116
0.603286
408
3,834
5.568627
0.308824
0.06338
0.070423
0.050616
0.172535
0.104313
0.104313
0.104313
0.104313
0.082746
0
0.003811
0.315597
3,834
103
117
37.223301
0.862043
0.092853
0
0.180723
0
0
0.086302
0
0
0
0
0
0
1
0.036145
false
0
0.036145
0
0.120482
0
0
0
0
null
0
0
0
0
0
0
0
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
c11bc2c07ea4c7d0324366918fff40bddd73b06c
1,585
py
Python
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
crawler/scrapy_ffxiv/spiders/gathering_spider.py
shengzhc/sc-ff14-scrapy
2d5b74980e47ec140a4b8d506079fcc94dde54a2
[ "MIT" ]
null
null
null
import scrapy from scrapy.spiders import CrawlSpider, Rule from scrapy.linkextractors import LinkExtractor from scrapy_ffxiv.items import FfxivGatheringNode """ Spider to gather info from `www.ffxiv-gathering.com` """ class GatheringSpider(CrawlSpider): name = 'ff14-gathering' allowed_domains = [ ...
35.222222
157
0.55142
170
1,585
5.088235
0.435294
0.072832
0.089017
0.046243
0.182659
0.099422
0.099422
0
0
0
0
0.007712
0.263722
1,585
44
158
36.022727
0.733505
0
0
0.0625
0
0
0.294156
0.142482
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.34375
0
0
0
0
null
0
0
0
0
0
0
0
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
c11c4e38953d87d8740e1177783eb8eb9e19cef3
927
py
Python
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
horizon/test_horizon-controller-node.py
cyberxml/testinfra-openstack-tests
8b57ff2901463deeaa4d58486bb6d14f65ba3d24
[ "MIT" ]
null
null
null
import pytest @pytest.mark.parametrize("name", [ ("openstack-dashboard"), ("httpd"), ("memcached"), ]) def test_packages(host, name): pkg = host.package(name) assert pkg.is_installed @pytest.mark.parametrize("name,port", [ ("httpd","80"), ("httpd-ssl","443"), ("memcached","11211"), ]) ...
25.054054
58
0.651564
113
927
5.19469
0.39823
0.068143
0.143101
0.085179
0
0
0
0
0
0
0
0.018182
0.169364
927
36
59
25.75
0.744156
0
0
0.125
0
0
0.192017
0
0
0
0
0
0.15625
1
0.125
false
0
0.03125
0
0.15625
0
0
0
0
null
0
0
0
0
0
0
0
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
c11f7822c5bd888ca47b611e77c261bcc7260743
15,956
py
Python
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
40
2017-05-27T03:53:22.000Z
2021-08-07T16:33:58.000Z
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
25
2017-07-17T14:33:24.000Z
2021-04-09T10:27:56.000Z
tests/annotator/test_structured_incident_annotator.py
langstok/EpiTator
721fdc444382a0493702ee5976c987954753f47a
[ "Apache-2.0" ]
9
2017-11-15T05:13:53.000Z
2021-08-07T16:33:59.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import absolute_import import unittest from epitator.annotator import AnnoDoc from epitator.structured_incident_annotator import StructuredIncidentAnnotator import datetime # import logging # from .test_utils import with_log_level def remove_empty_props(d)...
32.169355
245
0.572324
1,947
15,956
4.619928
0.289676
0.045025
0.050695
0.024903
0.37532
0.319066
0.277043
0.252585
0.229016
0.229016
0
0.107783
0.297004
15,956
495
246
32.234343
0.694125
0.072888
0
0.406484
0
0.049875
0.492893
0
0
0
0
0.00202
0.067332
1
0.044888
false
0.002494
0.012469
0.002494
0.062344
0
0
0
0
null
0
0
0
0
0
0
0
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
c1211c97bd0c2cd978848796f6323f97d81c815a
3,492
py
Python
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
346
2020-11-28T14:25:21.000Z
2022-03-25T14:50:22.000Z
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
22
2020-12-03T18:52:04.000Z
2022-02-26T05:19:14.000Z
fastseq/optimizer/fairseq/__init__.py
nttcs-ds/fastseq
f1338f1125612df318c9d1f030a8457397ed05a6
[ "MIT" ]
35
2020-11-30T21:37:45.000Z
2022-03-23T01:54:51.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT License. """ Automatically apply the optimizations if the supported versions of FairSeq are detected. """ import logging import sys from packaging import version from fastseq.config import FASTSEQ_VERSION, MAX_FAIRSEQ_VERSION, MIN_FAIRSEQ_VERSION from f...
37.148936
106
0.71134
427
3,492
5.590164
0.285714
0.041894
0.043988
0.043569
0.293255
0.234604
0.165061
0.131546
0.131546
0.091328
0
0.000363
0.21134
3,492
93
107
37.548387
0.866376
0.202176
0
0.103448
0
0
0.216881
0.049541
0
0
0
0
0
1
0.051724
false
0
0.258621
0
0.344828
0
0
0
0
null
0
0
0
0
0
0
0
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
c123c8a1452dd7217130353820cbbb49ad40ee13
1,340
py
Python
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
1
2015-12-20T13:32:51.000Z
2015-12-20T13:32:51.000Z
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
null
null
null
__main__.py
vmenezio/clippr
78d2d8e14090fcde3c43da1656afae25d7b1629e
[ "MIT" ]
null
null
null
#! python3 # -*- coding: utf-8 -*- # [ clipper ] # # # # Hey, welcome to clipper! This is a small tool I # # have been building for personal use as a means # # to take, analyze and upload screenshots quickly. # # ...
37.222222
139
0.54403
148
1,340
4.871622
0.682432
0.005548
0
0
0
0
0
0
0
0
0
0.011614
0.357463
1,340
35
140
38.285714
0.825784
0.590299
0
0
0
0
0.129344
0
0
0
0
0
0
1
0.090909
false
0
0.272727
0
0.363636
0.363636
0
0
0
null
0
0
0
0
0
0
0
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
c124253bfbcd49e0f1812986a73b8ad635b8c1fb
936
py
Python
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
core/setup.py
DiegoGH117/cellare
c0c68f6f53ee8f31999c3538c327ddca34ba6e94
[ "MIT" ]
null
null
null
from setuptools import setup with open('README.md', 'r') as f: long_description = f.read() setup( name = 'CellARE', version = '0.0.2', description = 'A cellular automaton based implementation to run SIR simulations', py_modules = ['cellare'], package_dir = {'':'src'}, classif...
33.428571
87
0.569444
91
936
5.747253
0.747253
0.114723
0.143403
0.14914
0
0
0
0
0
0
0
0.016692
0.29594
936
28
88
33.428571
0.776935
0
0
0.074074
0
0
0.422625
0
0
0
0
0
0
1
0
false
0
0.037037
0
0.037037
0
0
0
0
null
0
0
0
0
0
0
0
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
c1248143e6872a13760d0d34115b96fb5c387e21
12,008
py
Python
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
9
2019-02-28T06:24:08.000Z
2021-05-29T04:43:56.000Z
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
425
2019-04-02T08:07:27.000Z
2021-07-01T18:29:02.000Z
deploy-tools/auction-deploy/tests/test_cli.py
d3centr0z/trustlines-blockchain
b90cba6e4ca7a5194eadc35793cc0fad63d9c761
[ "MIT" ]
10
2019-02-25T08:40:24.000Z
2022-03-08T10:22:57.000Z
import csv import re import pytest from click.testing import CliRunner from deploy_tools.cli import test_json_rpc, test_provider from eth_tester.exceptions import TransactionFailed from eth_utils import to_checksum_address import auction_deploy.core from auction_deploy.cli import AuctionState, main from auction_deplo...
30.4
123
0.713358
1,451
12,008
5.650586
0.168849
0.068301
0.064398
0.051226
0.442127
0.386145
0.328821
0.297231
0.283571
0.240151
0
0.019922
0.193205
12,008
394
124
30.477157
0.826383
0.079947
0
0.32491
0
0
0.221181
0.05277
0.00361
0
0
0
0.097473
1
0.108303
false
0.021661
0.036101
0.00361
0.176895
0
0
0
0
null
0
0
0
0
0
0
0
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
c1257c741492e036061014a924bb9f56f773f5b1
10,555
py
Python
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
core/plugins/rabbitmq.py
dnegreira/hotsos
c88375d8700bf53faed4e5de55c34bd0bdc66187
[ "Apache-2.0" ]
null
null
null
import os from core.log import log from core.cli_helpers import CLIHelper from core.utils import mktemp_dump, sorted_dict from core.ycheck.events import YEventCheckerBase from core.searchtools import ( SearchDef, SequenceSearchDef, FileSearcher, ) from core import ( checks, plugintools, ) RMQ_SERV...
34.158576
168
0.559545
1,187
10,555
4.74305
0.20893
0.029307
0.028419
0.01492
0.277975
0.179396
0.142629
0.14103
0.123268
0.07833
0
0.009674
0.33406
10,555
308
169
34.269481
0.791293
0.110185
0
0.191781
0
0.004566
0.066102
0.029891
0
0
0
0
0
1
0.109589
false
0
0.031963
0.022831
0.255708
0
0
0
0
null
0
0
0
0
0
0
0
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
c127d6465fa7c0671438fe8816025b96ec521c2a
31,776
py
Python
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
11
2020-01-28T16:15:53.000Z
2021-05-20T08:05:42.000Z
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
null
null
null
src/mercs/core/Mercs.py
MattiasDC/mercs
466962e254c4f56f4a16a31b1a3d7bd893c8e23e
[ "MIT" ]
4
2020-02-06T09:02:28.000Z
2022-02-14T09:42:04.000Z
import itertools import warnings from inspect import signature from timeit import default_timer from sklearn.preprocessing import normalize import dask import numpy as np try: import shap except: msg = "SHAP not found, therefore using SHAP-values for feature importance not available." warnings.warn(msg) ...
30.97076
113
0.606905
3,734
31,776
4.909213
0.132833
0.012547
0.009328
0.01091
0.318641
0.252578
0.175277
0.150946
0.135126
0.114505
0
0.003078
0.304758
31,776
1,025
114
31.000976
0.826679
0.072382
0
0.21745
0
0
0.067073
0
0
0
0
0.000976
0.008054
1
0.067114
false
0
0.038926
0.004027
0.193289
0
0
0
0
null
0
0
0
0
0
0
0
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
c12c2ac656b7260dfdb953a62cfeab4d5b386d09
6,377
py
Python
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
242
2021-09-22T17:16:49.000Z
2022-03-30T10:26:25.000Z
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
13
2021-09-23T00:15:10.000Z
2022-02-04T16:33:42.000Z
src/ydata_quality/duplicates/engine.py
poga/ydata-quality
0cdda2774b05101c5f4f773b5e946f2a6544da09
[ "MIT" ]
21
2021-09-24T09:59:30.000Z
2022-03-16T02:48:11.000Z
""" Implementation of DuplicateChecker engine class to run duplicate records analysis. """ from typing import List, Optional, Union from pandas import DataFrame from src.ydata_quality.core.warnings import Priority from ..core import QualityEngine, QualityWarning from ..utils.auxiliary import find_duplicate_columns ...
45.877698
120
0.631175
747
6,377
5.26506
0.243641
0.014238
0.021358
0.026697
0.237478
0.167302
0.08238
0.08238
0.063565
0.034579
0
0.003067
0.284303
6,377
138
121
46.210145
0.858677
0.233966
0
0.201923
0
0
0.162418
0
0
0
0
0
0.009615
1
0.096154
false
0.009615
0.048077
0
0.240385
0
0
0
0
null
0
0
0
0
0
0
0
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
c12f7689727d68b07585dc735616888c343cb5e6
3,575
py
Python
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
1
2020-12-24T22:00:01.000Z
2020-12-24T22:00:01.000Z
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
null
null
null
dataio/python/pprint.py
hschwane/offline_production
e14a6493782f613b8bbe64217559765d5213dc1e
[ "MIT" ]
3
2020-07-17T09:20:29.000Z
2021-03-30T16:44:18.000Z
import collections import re from icecube import icetray from icecube import dataclasses from icecube import dataio def format_line( frame, key, maxwidth = None, ellipsis = '...' ): '''Given an icecube frame and a key in that frame, return exactly one line of text describing the I3FrameObject with that key. ...
30.818966
86
0.575385
466
3,575
4.377682
0.32618
0.027451
0.027451
0.037255
0.196078
0.163725
0.163725
0.163725
0.09902
0.09902
0
0.013029
0.313007
3,575
115
87
31.086957
0.81759
0.258741
0
0.32
0
0
0.080976
0.008524
0.013333
0
0
0
0
1
0.053333
false
0
0.066667
0
0.226667
0
0
0
0
null
0
0
0
0
0
0
0
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
c131857f7131f2f64a0c9cd301cbb4e69c3dcbec
9,619
py
Python
CryptoAttacks/Block/ecb.py
akbarszcz/CryptoAttacks
ae675d016b314414a3dc9b23c7d8a32da4c62457
[ "MIT" ]
54
2017-03-28T23:46:58.000Z
2022-02-23T01:53:38.000Z
CryptoAttacks/Block/ecb.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
null
null
null
CryptoAttacks/Block/ecb.py
maximmasiutin/CryptoAttacks
d1d47d3cb2ce38738a60b728bc35ce80bfe64374
[ "MIT" ]
13
2017-03-31T06:07:23.000Z
2021-11-20T19:01:30.000Z
from __future__ import absolute_import, division, print_function import string from builtins import bytes, range from CryptoAttacks.Math import factors from CryptoAttacks.Utils import (add_padding, b2h, chunks, log, print_chunks, random_bytes) def encryption_oracle(payload): """...
39.584362
132
0.640607
1,179
9,619
4.977099
0.149279
0.07362
0.043115
0.020279
0.406271
0.299591
0.222222
0.205351
0.145535
0.105658
0
0.006043
0.260214
9,619
242
133
39.747934
0.818578
0.174031
0
0.256757
0
0
0.067881
0
0
0
0
0
0.006757
1
0.040541
false
0
0.033784
0
0.121622
0.094595
0
0
0
null
0
0
0
0
0
0
0
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
c133b030e2d992d0cf7302a80fd9d38d5daf7e7c
973
py
Python
codes/convergence_elasticity_advection/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2021-06-18T14:52:03.000Z
2021-06-18T14:52:03.000Z
codes/comparison/fem/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
1
2019-01-07T13:11:11.000Z
2019-01-07T13:11:11.000Z
codes/convergence_elasticity_advection/bilinear.py
adRenaud/research
2f0062a1800d7a17577bbfc2393b084253d567f4
[ "MIT" ]
null
null
null
#!/usr/bin/python import numpy as np def bilinear(x,u_n,u,EPn,Pn,E,Sigy,H): #initialization h = x[1:len(x)]-x[:(len(x)-1)] eps_n = (u_n[1:len(u_n)]-u_n[:(len(u_n)-1)])/h eps = (u[1:len(u)]-u[:(len(u)-1)])/h S = np.zeros(len(eps)) EP = np.zeros(len(eps)) P = np.zeros(len(eps)) TM = np...
28.617647
66
0.464543
169
973
2.639053
0.337278
0.022422
0.089686
0.116592
0.053812
0.053812
0.053812
0.053812
0
0
0
0.012308
0.331963
973
33
67
29.484848
0.673846
0.174717
0
0
0
0
0
0
0
0
0
0
0
1
0.041667
false
0
0.041667
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
c1365b2df1fdc2c37aa4c5a090e8a65cce8207d8
2,985
py
Python
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
enigma.py
danhab99/EnigmaPY
b7526c26ac98675e911a8d0dcaf1acfe6d2659fb
[ "MIT" ]
null
null
null
import create from lib import Machine from lib import Transformer import argparse import pickle from itertools import chain from random import shuffle parser = argparse.ArgumentParser(description='A simulation of the enigma encryption algorithm', prog='enigma.py') subparsers = parser.add_subparsers(help='Which comman...
33.166667
163
0.669012
402
2,985
4.890547
0.335821
0.032045
0.043235
0.032045
0.073754
0.061038
0.032553
0
0
0
0
0.003342
0.19799
2,985
89
164
33.539326
0.817878
0.004355
0
0.071429
0
0.014286
0.213131
0
0
0
0
0
0
1
0.028571
false
0
0.1
0.014286
0.157143
0.028571
0
0
0
null
0
0
0
0
0
0
0
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
c13af56264e5c19bd63a5cb098d1273308f7f27f
5,962
py
Python
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
6
2019-10-16T02:35:06.000Z
2021-02-03T13:39:43.000Z
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
23
2020-03-17T13:16:02.000Z
2021-04-23T15:09:51.000Z
tests/sdk/test_client_response.py
AitoDotAI/aito-python-tools
891d433222b04f4ff8a4eeafbb9268516fd215dc
[ "MIT" ]
null
null
null
import requests from parameterized import parameterized, parameterized_class import aito.client.requests as aito_requests import aito.schema as aito_schema from aito.client import AitoClient from tests.cases import CompareTestCase from tests.sdk.contexts import grocery_demo_client def get_requests_resp_and_aito_resp...
42.283688
121
0.679638
701
5,962
5.476462
0.198288
0.070852
0.060172
0.05392
0.361552
0.318052
0.233655
0.220109
0.211253
0.211253
0
0.003532
0.192721
5,962
140
122
42.585714
0.794099
0.014089
0
0.295652
0
0
0.096901
0
0
0
0
0
0.165217
1
0.121739
false
0
0.06087
0
0.234783
0
0
0
0
null
0
0
0
0
0
0
0
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
c13d31a85ce3ce0b7615b9c5e782008402d5a721
9,292
py
Python
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
6
2018-10-28T07:43:34.000Z
2021-04-11T15:15:14.000Z
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
2
2019-03-13T15:16:57.000Z
2019-04-15T02:35:46.000Z
lib/worker.py
GuoxiaWang/InstanceLabelTool
ece37a0dfe1467ad24d6d3472adb50b20b6abd24
[ "MIT" ]
1
2020-01-16T10:23:36.000Z
2020-01-16T10:23:36.000Z
""" Copyright (c) 2018- Guoxia Wang mingzilaochongtu at gmail com 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, subject to the following conditions: The above cop...
36.439216
113
0.567908
1,001
9,292
5.255744
0.27972
0.020528
0.026611
0.037065
0.213648
0.197301
0.188747
0.173921
0.113857
0.113857
0
0.021365
0.330069
9,292
254
114
36.582677
0.823775
0.160245
0
0.251429
0
0
0.028453
0
0
0
0
0
0
1
0.051429
false
0.011429
0.04
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
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
c142870cdc5b68b605e9ca3cb9dda2dd39df1fad
674
py
Python
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
4
2020-11-18T11:25:00.000Z
2021-04-08T01:02:49.000Z
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
null
null
null
fastquotes/index/csi.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
1
2020-11-18T11:25:01.000Z
2020-11-18T11:25:01.000Z
import codecs import json import requests from ..const import CUSTOM_HEADER def latest_year_data(code: str, latest_year: int) -> list: """ lastest_year: 1、3、5 """ url = ( f"http://www.csindex.com.cn/zh-CN/indices/index-detail/{code}?" f"earnings_performance={latest_year}%E5%B9%B4&dat...
23.241379
71
0.578635
87
674
4.344828
0.655172
0.079365
0.058201
0
0
0
0
0
0
0
0
0.018405
0.274481
674
28
72
24.071429
0.754601
0.02819
0
0
0
0.05
0.236307
0.090767
0
0
0
0
0
1
0.05
false
0
0.2
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c144dd7ed4502a22ce0fcfc2f712cd5108d540e6
5,160
py
Python
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
substrabac/substrapp/utils.py
GuillaumeCisco/substra-backend
777ec0cfc10a1aad34cccba449e4923c20786d32
[ "Apache-2.0" ]
null
null
null
import io import hashlib import logging import os import tempfile from os import path from os.path import isfile, isdir import shutil import requests import tarfile import zipfile import uuid from checksumdir import dirhash from django.conf import settings from rest_framework import status class JsonException(Exce...
27.593583
105
0.64845
634
5,160
5.130915
0.293375
0.023978
0.027667
0.0166
0.183523
0.134952
0.083923
0.071934
0.050415
0
0
0.011743
0.257364
5,160
186
106
27.741935
0.837161
0.081008
0
0.236641
0
0
0.069807
0.016974
0
0
0
0
0
1
0.091603
false
0.007634
0.114504
0
0.312977
0
0
0
0
null
0
0
0
0
0
0
0
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
c1484f680c8d5268a7187ffd0cd5d37747e57a92
1,569
py
Python
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
Algorithms/Assign1/v2.py
thebishaldeb/ClassAssignments
f44c51695266da0c98d1ab3516c473c6d1008933
[ "MIT" ]
null
null
null
# FUNCTION def med(arr1, arr2, length): if length == 2: return findMed( arr1, arr2) mid = int((length-1)/2) if (arr1[mid] < arr2[mid]): return med( arr2[0:mid+1], arr1[-mid-1:length], len(arr2[0:mid+1])) elif (arr1[mid] > arr2[mid]): return med( arr1[0:mid+1], ar...
26.59322
82
0.586361
250
1,569
3.68
0.26
0.052174
0.021739
0.036957
0.323913
0.323913
0.208696
0.208696
0.208696
0.208696
0
0.058774
0.240918
1,569
59
83
26.59322
0.713686
0.123646
0
0.166667
0
0
0.170073
0
0
0
0
0
0
1
0.055556
false
0
0
0.027778
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c1486548c7b778a225198dc3750c6bc512122e6c
4,025
py
Python
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
28
2019-10-18T07:29:52.000Z
2022-01-27T15:12:45.000Z
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
2
2021-01-16T18:34:31.000Z
2022-02-03T14:49:34.000Z
brain-imaging/run_tsne_brain.py
agramfort/spatio-temporal-alignements
18594cf0372dc874decccecad69e310f84142c88
[ "BSD-3-Clause" ]
4
2021-01-16T17:22:23.000Z
2022-01-11T03:24:24.000Z
import mne import pickle import numpy as np from sta import sta_matrix, sdtw_matrix from sklearn.manifold import TSNE # change this if you have GPUs # in our platform, this experiment ran on 4 GPUs in around 20 minutes n_gpu_devices = 0 def generate_samples(n_samples, n_times, time_point, space_points, M, ...
37.268519
79
0.640248
592
4,025
4.119932
0.282095
0.052481
0.04059
0.055351
0.245182
0.203362
0.170562
0.170562
0.170562
0.170562
0
0.030723
0.24795
4,025
107
80
37.616822
0.775025
0.148571
0
0.08
0
0
0.035253
0.006463
0
0
0
0
0
1
0.013333
false
0
0.066667
0
0.093333
0
0
0
0
null
0
0
0
0
0
0
0
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
c14f824a0678ada5998332bc22d1955b5b7acece
19,547
py
Python
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
6
2021-02-05T21:53:08.000Z
2022-01-20T16:50:39.000Z
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
1
2021-02-06T14:14:52.000Z
2021-03-01T03:44:23.000Z
src/muscle_synergies/vicon_data/user_data.py
elvis-sik/muscle_synergies
eff0d016f2032faa9b8fba5363249e6fdb150abf
[ "MIT" ]
null
null
null
"""Types that help building the final representation of the data. From the point of view of the internal API, the main type in this module is :py:class:`Builder`, which uses the data stored in an :py:class:`~muscle_synergies.vicon_data.aggregator.Aggregator` to build the :py:class:`ViconNexusData`. That object, in tur...
37.020833
91
0.65785
2,392
19,547
5.198579
0.15301
0.031846
0.012545
0.011259
0.268999
0.190109
0.154564
0.133735
0.117973
0.095456
0
0.003207
0.250269
19,547
527
92
37.091082
0.845309
0.339234
0
0.249097
0
0
0.068773
0.013434
0
0
0
0.001898
0
1
0.194946
false
0.00722
0.032491
0.028881
0.444043
0
0
0
0
null
0
0
0
0
0
0
0
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
c1530d1f98179c78b07bae3b02ff2a685a89878e
1,629
py
Python
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
1
2017-05-14T17:09:38.000Z
2017-05-14T17:09:38.000Z
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
5
2021-03-15T21:43:04.000Z
2021-07-22T20:31:43.000Z
tests/modification-check.py
luisriverag/certbot
52e207a404ab3600637fc7a24492e2c68512ce2d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """Ensures there have been no changes to important certbot-auto files.""" import hashlib import os # Relative to the root of the Certbot repo, these files are expected to exist # and have the SHA-256 hashes contained in this dictionary. These hashes were # taken from our v1.14.0 tag which was t...
33.9375
90
0.745242
217
1,629
5.470046
0.511521
0.101095
0.070767
0.107835
0.170177
0.11289
0.077506
0.077506
0
0
0
0.076032
0.152241
1,629
47
91
34.659574
0.78349
0.398404
0
0
0
0
0.306334
0.180685
0
0
0
0
0.043478
1
0.130435
false
0
0.086957
0.043478
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
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
c153b504e55b04acb0b49c1e4ecd7223c00968b8
560
py
Python
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
7
2020-06-28T16:28:54.000Z
2020-09-18T13:18:55.000Z
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
1
2020-06-27T08:36:02.000Z
2020-06-28T23:30:03.000Z
tests/test_load.py
michaelpeterswa/qsml
e3aeb48ac8ba7bb3eca7ec866f6d75258cfdc7c2
[ "MIT" ]
1
2020-07-30T05:03:38.000Z
2020-07-30T05:03:38.000Z
import unittest import qsml class TestLoad(unittest.TestCase): def test_load(self): file = "tests/load.qsml" returned_val = { "myportfolio": {"GOOG": 10, "AAPL": 5, "BRK.B": 1}, "test": {"SNAP": 130, "MSFT": 5, "TSLA": 100}, } self.assertEqual(qsml.load(file...
25.454545
73
0.583929
67
560
4.671642
0.597015
0.044728
0.070288
0
0
0
0
0
0
0
0
0.029126
0.264286
560
21
74
26.666667
0.730583
0
0
0
0
0
0.166071
0
0
0
0
0
0.125
1
0.125
false
0
0.125
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
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
c153e1c37eaaf1da2ce812283ce1bb7f91f0f0b1
6,012
py
Python
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
8
2019-10-21T23:24:51.000Z
2021-09-14T03:04:59.000Z
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
2
2021-02-09T23:52:47.000Z
2021-02-10T04:08:35.000Z
votesim/utilities/decorators.py
johnh865/election_sim
b73b7e65f1bb22abb82cbe8442fcf02b0c20894e
[ "MIT" ]
1
2019-10-21T23:32:18.000Z
2019-10-21T23:32:18.000Z
""" Collection of utilities such as memoization, automatic property storage, etc """ from __future__ import print_function, absolute_import, division from functools import wraps, partial import logging from votesim.utilities import misc logger = logging.getLogger(__name__) class memoize: """ Decor...
23.669291
100
0.58849
710
6,012
4.774648
0.243662
0.028319
0.033038
0.025959
0.254867
0.228614
0.218289
0.218289
0.19292
0.19292
0
0.005119
0.317698
6,012
253
101
23.762846
0.821307
0.397705
0
0.494737
0
0
0.00526
0
0
0
0
0
0
1
0.178947
false
0.010526
0.042105
0
0.421053
0.010526
0
0
0
null
0
0
0
0
0
0
0
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
c15402f1ab58bd4a60c7b4bb3dddbb75ea0cbef9
10,304
py
Python
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
1
2021-07-15T04:35:08.000Z
2021-07-15T04:35:08.000Z
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
null
null
null
portcran.py
yzgyyang/portcran
04fa6ce8cd8585ed96aab19177d030b030ff79c9
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python3 from argparse import ArgumentParser, Namespace from pathlib import Path from re import search from sys import argv from typing import Callable, Iterable, List, Optional, TextIO, Tuple from urllib.request import urlopen, urlretrieve from ports import Platform, PortError, PortLicense, Ports from po...
40.566929
120
0.595885
1,294
10,304
4.657651
0.2017
0.042476
0.007964
0.004646
0.211548
0.167745
0.12444
0.105857
0.096565
0.043803
0
0.002426
0.279794
10,304
253
121
40.727273
0.809729
0.007085
0
0.146226
0
0
0.178138
0.003324
0
0
0
0
0.023585
1
0.080189
false
0.004717
0.037736
0.004717
0.146226
0.028302
0
0
0
null
0
0
0
0
0
0
0
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
c155e8b957ea1abd8dd89360b9558b67dc020499
1,243
py
Python
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
src/gluonts/nursery/torch_arsgls_rbpf/test/basic_tests/conv.py
richardk53/gluon-ts
5bde492198c0348b550ac6f7269f1740a699ec30
[ "Apache-2.0" ]
null
null
null
import torch from torch import nn from utils.utils import compute_conv_output_img_dims def test_compute_conv_dims_out(): for width_img in [63, 64, 65, 66]: dims_img = (width_img, width_img) inp = torch.randn((10, 1,) + dims_img) for padding in [0, 1, 2]: for dilation in [1, 2,...
38.84375
77
0.442478
127
1,243
4.031496
0.314961
0.095703
0.078125
0.078125
0.367188
0.242188
0.242188
0.242188
0.242188
0.242188
0
0.044304
0.491553
1,243
31
78
40.096774
0.765823
0
0
0.285714
0
0
0
0
0
0
0
0
0.035714
1
0.035714
false
0
0.107143
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
c1561171d3885a4dc3c76906c27aa5632df77a77
589
py
Python
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
1
2021-12-03T12:38:33.000Z
2021-12-03T12:38:33.000Z
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
null
null
null
OOP/deep_dive_tkinter/many_widget_example.py
Amaranese/python-exercises-notes-solutions-projects
58f7677ecb97971733d9f4ff87fda75e23d7c0cb
[ "Unlicense" ]
null
null
null
import tkinter as tk parent = tk.Tk() # tk.WidgetName(parent_frame, options) tk.Entry(parent, width=25).pack() tk.Button(parent, text="LOOKOUT!").pack() tk.Checkbutton(parent, text='RememberMe', variable=tk.IntVar()).pack() tk.Label(parent, text="What's Your Name?").pack() tk.OptionMenu(parent, tk.IntVar(), "Select ...
32.722222
83
0.702886
85
589
4.858824
0.470588
0.101695
0.116223
0.11138
0.130751
0
0
0
0
0
0
0.022059
0.076401
589
17
84
34.647059
0.737132
0.061121
0
0
0
0
0.139746
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c156565f017d48828a6c04509f6eaa61d605a332
432
py
Python
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
hardhat/recipes/x11/driver/xf86-video-nouveau.py
stangelandcl/hardhat
1ad0c5dec16728c0243023acb9594f435ef18f9c
[ "MIT" ]
null
null
null
from ..base import X11DriverBaseRecipe class Xf86VideoNouveauRecipe(X11DriverBaseRecipe): def __init__(self, *args, **kwargs): super(Xf86VideoNouveauRecipe, self).__init__(*args, **kwargs) self.sha256 = '6d9242ba139c3df7afefffb455573b52' \ 'f4427920b978161c00483c64a6da47cb' ...
33.230769
69
0.664352
36
432
7.75
0.722222
0.071685
0
0
0
0
0
0
0
0
0
0.172619
0.222222
432
12
70
36
0.657738
0
0
0
0
0
0.229167
0.148148
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c1588d562ae990566fc09dd0f8d1a7453c6a6f20
3,563
py
Python
fem_dsa/networks/autoencoders.py
idealab-isu/DSA
b9157eb9307c0ff06d91ff2bdcd8f70df5b896cb
[ "BSD-3-Clause" ]
3
2022-01-18T01:33:34.000Z
2022-03-22T20:46:16.000Z
DiffNet/networks/autoencoders.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
1
2022-03-30T10:16:47.000Z
2022-03-30T10:16:47.000Z
DiffNet/networks/autoencoders.py
adityabalu/DiffNet
a21e024ad9948fa76fe73796e216a0a6601f2c7c
[ "MIT" ]
2
2021-12-01T20:53:24.000Z
2021-12-02T06:42:39.000Z
import torch import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable class Encoder(nn.Module): def __init__(self, in_channels=3, dim=64, n_downsample=3, encoder_type='convolutional'): super(Encoder, self).__init__() # Initial convolution block layers = [ ...
33.299065
128
0.541959
435
3,563
4.28046
0.183908
0.059076
0.05102
0.019334
0.562836
0.440924
0.33029
0.305048
0.305048
0.305048
0
0.034884
0.324165
3,563
107
129
33.299065
0.738372
0.058939
0
0.302632
0
0
0.020683
0
0
0
0
0
0
1
0.105263
false
0
0.052632
0
0.263158
0.013158
0
0
0
null
0
0
0
0
0
0
0
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
c1598a3545cd8dc90345c280e6f51a6897b9912a
2,215
py
Python
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
week02/03.MoreTesting/fractions/tests_collect_fractions.py
TsvetomirTsvetkov/Python-Course-101
1c5ea4631128c22effe3c4ee5a18c43f5e79d463
[ "MIT" ]
null
null
null
# tests_collect_fractions.py import unittest from collect_fractions import ( validate_input_collect, lcm, collect_fractions ) class TestValidateInputCollect(unittest.TestCase): def test_validation_passes_with_correct_input(self): fractions = [(1, 3), (4, 5)] validate_input_collect(fractions) def test_vali...
25.170455
96
0.751242
308
2,215
5.068182
0.237013
0.122998
0.089686
0.111467
0.580397
0.539398
0.474055
0.435618
0.435618
0.435618
0
0.017433
0.145372
2,215
88
97
25.170455
0.807184
0.011738
0
0.484375
0
0
0.069927
0
0
0
0
0
0.1875
1
0.125
false
0.046875
0.03125
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
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
c159e41ff48b6f66e8bdd24ff1ed589656d0c172
3,278
py
Python
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
170
2021-02-12T12:52:37.000Z
2022-03-28T14:37:05.000Z
exporter/management/commands/exporter.py
open-contracting/data-registry
5a73e7f2334c6af5be23070493842b494b3e5357
[ "BSD-3-Clause" ]
null
null
null
import gzip import logging import shutil from django.conf import settings from django.core.management.base import BaseCommand from django.db import connections from yapw.methods.blocking import ack from exporter.util import Export, create_client logger = logging.getLogger(__name__) class Command(BaseCommand): ...
29.531532
113
0.556742
413
3,278
4.307506
0.382567
0.026981
0.011804
0.019112
0.068578
0.02923
0.02923
0.02923
0
0
0
0.007852
0.339536
3,278
110
114
29.8
0.813857
0.125381
0
0.031746
0
0
0.066693
0.021437
0
0
0
0
0
1
0.031746
false
0
0.126984
0
0.174603
0
0
0
0
null
0
0
0
0
0
0
0
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
c160f505df5dab1a29a92764a36839b1cc74f021
3,357
py
Python
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
29
2020-09-03T08:35:47.000Z
2022-02-10T18:39:29.000Z
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
6
2020-12-22T14:43:14.000Z
2022-03-12T00:55:24.000Z
test_triplegan.py
AmirHosseinAmeli/Triple-GAN
127948d9e22767d315a4b3ca58fc4a56d92ff9d3
[ "MIT" ]
8
2020-10-01T04:03:40.000Z
2022-03-21T10:23:40.000Z
import copy import os import pickle import torch import torch.nn as nn import numpy as np from library import inputs, eval_inception_score from Utils.checkpoints import save_context, Logger from Utils import flags from Utils import config import Torture FLAGS = flags.FLAGS KEY_ARGUMENTS = config.load_config(FLAGS.c...
32.278846
84
0.712541
514
3,357
4.412451
0.303502
0.037037
0.017637
0.022487
0.107143
0.074515
0.03836
0
0
0
0
0.021075
0.151921
3,357
103
85
32.592233
0.775553
0.231159
0
0
0
0
0.024247
0
0
0
0
0
0
1
0
false
0
0.152778
0
0.152778
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c164aad97b718794ec2487936b78ec7212cf88c1
1,523
py
Python
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
1
2019-12-06T16:48:10.000Z
2019-12-06T16:48:10.000Z
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
null
null
null
Library/operations.py
marcelodaher/ArraySim
f42db96e30acff6f3ce3829dc89a79ef5473b4db
[ "MIT" ]
null
null
null
# coding=utf-8 import numpy as np def colKRproduct(A,B): ''' columnwise Khatri-Rao product between matrix A and B ''' if A.shape[1] != B.shape[1]: raise TypeError("A and B must have the same number of columns") q = A.shape[1] C = np.zeros([A.shape[0]*B.shape[0],q]) for ...
27.196429
76
0.512147
231
1,523
3.34632
0.359307
0.090556
0.03881
0.043984
0.069858
0.069858
0
0
0
0
0
0.014141
0.349967
1,523
56
77
27.196429
0.766667
0.066316
0
0
0
0
0.048616
0
0
0
0
0
0
1
0.131579
false
0
0.078947
0.026316
0.342105
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
c1653d9ca159307ad4091c89f53debf9a3453ffc
1,337
py
Python
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
122
2021-02-07T23:01:58.000Z
2022-03-30T13:10:35.000Z
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
273
2021-01-30T16:45:26.000Z
2022-03-16T15:02:33.000Z
gtsfm/runner/run_scene_optimizer_olssonloader.py
swershrimpy/gtsfm
8d301eb3ef9172345a1ac1369fd4e19764d28946
[ "Apache-2.0" ]
13
2021-03-12T03:01:27.000Z
2022-03-11T03:16:54.000Z
import argparse import os from pathlib import Path import gtsfm.utils.logger as logger_utils from gtsfm.loader.loader_base import LoaderBase from gtsfm.loader.olsson_loader import OlssonLoader from gtsfm.runner.gtsfm_runner_base import GtsfmRunnerBase DATA_ROOT = Path(__file__).resolve().parent.parent.parent / "test...
31.833333
115
0.729993
156
1,337
5.929487
0.410256
0.043243
0.060541
0.036757
0
0
0
0
0
0
0
0.000905
0.173523
1,337
41
116
32.609756
0.836199
0
0
0
0
0
0.078534
0
0
0
0
0
0
1
0.107143
false
0
0.25
0
0.464286
0
0
0
0
null
0
0
0
0
0
0
0
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
c165a6d6b497f214d3ee7b9ab319db0cb8d9588f
384
py
Python
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
null
null
null
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
null
null
null
src/reverse/setup.py
fugue/zim-example
861b197ddc1074375bb9437b3282ab3e517b9019
[ "MIT" ]
2
2021-03-17T03:02:52.000Z
2021-07-21T23:31:08.000Z
import os.path from setuptools import setup, find_packages with open(os.path.join(os.path.dirname(__file__), "requirements.txt")) as f: requirements = f.read().strip() setup( name="reverse", version="0.0.0", description="Reverse data", packages=find_packages(exclude=["tests"]), package_data={"...
25.6
76
0.690104
48
384
5.354167
0.645833
0.070039
0
0
0
0
0
0
0
0
0
0.009119
0.143229
384
14
77
27.428571
0.772036
0
0
0
0
0
0.161458
0
0
0
0
0
0
1
0
false
0
0.166667
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
c165ec6055b3d0599812a0a06fa513f8948722c9
3,204
py
Python
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
tutorial_metarl/tasks/CompositionalTwoArmedBandit.py
akjagadish/tutorial-metarl
8810eafa783749c70a0575e805810a098b3df0fb
[ "MIT" ]
null
null
null
import torch import numpy as np import math class CompositionalTwoArmedBandit(): def __init__(self, probs, ctx_dim, num_arms, num_ctx=400, max_ctx=1000): self.probs = np.asarray(probs) self.num_arms = num_arms self.ctx_dim = ctx_dim self.num_ctx = num_ctx self.m...
41.61039
102
0.626717
441
3,204
4.335601
0.222222
0.034519
0.026151
0.020397
0.290795
0.196653
0.15272
0.15272
0.084728
0.084728
0
0.012319
0.265293
3,204
76
103
42.157895
0.799915
0.077715
0
0.103448
0
0
0
0
0
0
0
0
0
1
0.086207
false
0
0.051724
0
0.224138
0
0
0
0
null
0
0
0
0
0
0
0
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
c16896197cec1995065f5c34607ce687f11e89f6
2,916
py
Python
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
scripts/example.py
alexboden/nba-who-has-more
590ba8bd062b96ff866c13988eb79a8c7ff0f488
[ "MIT" ]
null
null
null
from nba_api.stats.static import players from nba_api.stats import endpoints from nba_api.stats.library.parameters import SeasonAll from nba_api.stats.endpoints import playercareerstats from nba_api.stats.endpoints import commonplayerinfo from nba_api.stats.endpoints import playergamelog import pandas as pd import tim...
25.80531
126
0.718793
410
2,916
4.834146
0.243902
0.056509
0.030272
0.045409
0.284057
0.254289
0.083754
0.058527
0
0
0
0.023304
0.175926
2,916
113
127
25.80531
0.801498
0.20439
0
0.070175
0
0
0.054569
0.009095
0
0
0
0
0
1
0.052632
false
0
0.175439
0
0.280702
0.087719
0
0
0
null
0
0
0
0
0
0
0
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
c168f756bc02752d155d2b864b3e1da8b5fa59b8
2,653
py
Python
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
null
null
null
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
1
2022-01-02T06:54:27.000Z
2022-01-02T12:09:13.000Z
data/Process_MIR1k.py
carrieeeeewithfivee/tf2_Vocal_Separation_UNet
5dbb6838bee0d8fbf0f73fa83e8c3d6c1978c67c
[ "MIT" ]
null
null
null
import os from librosa.core import load, stft, istft, magphase from librosa.output import write_wav from concurrent.futures import ThreadPoolExecutor from time import time import asyncio import os,glob import numpy as np from multiprocessing import cpu_count #Thanks to https://github.com/jnzhng/keras-unet-vocal-separat...
35.851351
107
0.656238
390
2,653
4.276923
0.328205
0.026978
0.021583
0.043165
0.196043
0.113909
0.056355
0.056355
0.056355
0
0
0.016053
0.201659
2,653
74
108
35.851351
0.771483
0.115718
0
0.070175
0
0
0.150193
0.092426
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.22807
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c1693dff2b16a43c1fe7913423163831050a96a1
3,195
py
Python
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
utils/utils.py
bo-miao/anomaly_classification
08829b3cdc488c6c7867f02950b5e22b6a5d5435
[ "Apache-2.0" ]
null
null
null
from utils import lr_scheduler, metric, prefetch, summary import os, sys import time import numpy as np from collections import OrderedDict import glob import math import copy import tqdm from sklearn.metrics import roc_auc_score, roc_curve, auc import matplotlib.pyplot as plt from torch.cuda.amp import autocast impor...
30.428571
103
0.638498
459
3,195
4.359477
0.363834
0.01999
0.010995
0.013993
0.209895
0.209895
0.193903
0.176912
0.176912
0.14093
0
0.02806
0.23036
3,195
104
104
30.721154
0.785685
0.008451
0
0.144578
0
0
0.047438
0
0
0
0
0
0.012048
1
0.060241
false
0
0.253012
0
0.385542
0.048193
0
0
0
null
0
0
0
0
0
0
0
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
c169f12d80ecf64a50d7329d9a77f916c0b26871
1,960
py
Python
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
null
null
null
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
null
null
null
src/kpi_WV_hs/.ipynb_checkpoints/compute_kpi_1d_v2_prun-checkpoint.py
tlechauveCLS/kpi_mpc
4dc61d210c2b97e6ac240e54a8d96c35cf9123de
[ "MIT" ]
1
2022-03-23T07:48:27.000Z
2022-03-23T07:48:27.000Z
#!/home1/datawork/agrouaze/conda_envs2/envs/py2.7_cwave/bin/python # coding: utf-8 """ """ import sys print(sys.executable) import subprocess import logging from dateutil import rrule import datetime if __name__ == '__main__': root = logging.getLogger () if root.handlers: for handler in root.handlers: ...
40
102
0.626531
269
1,960
4.468401
0.513011
0.054908
0.03827
0.049917
0.076539
0.076539
0.076539
0.076539
0.076539
0.076539
0
0.021484
0.216327
1,960
49
103
40
0.761068
0.101531
0
0.046512
0
0
0.251572
0.070898
0
0
0
0
0
1
0
false
0
0.139535
0
0.139535
0.023256
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
c16a520b3532e245375dff9d61f50950a6a91c7f
20,482
py
Python
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
pysrc/simulserver.py
juliusbierk/simultant
9d454b58797399f60812c4d8c482a57e82b5dba7
[ "MIT" ]
null
null
null
import asyncio import concurrent import functools import json import numpy as np import torch from aiohttp import web from aiohttp.web_runner import GracefulExit import aiohttp_cors import logging import csv import multiprocessing import queue import pickle # Local imports: from torchfcts import function_from_code, get...
33.412724
117
0.553803
2,573
20,482
4.223475
0.139915
0.019049
0.027514
0.044446
0.434435
0.374804
0.341401
0.298702
0.272936
0.246066
0
0.013218
0.309296
20,482
612
118
33.46732
0.75493
0.043257
0
0.383772
0
0
0.113757
0.002709
0
0
0
0
0
1
0.013158
false
0.004386
0.037281
0
0.116228
0.015351
0
0
0
null
0
0
0
0
0
0
0
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
c16b54a8fb917e5a067468f0c78cd337a4b77c6b
4,312
py
Python
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
2
2022-03-07T20:18:46.000Z
2022-03-08T12:48:04.000Z
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
null
null
null
streak/api_get.py
srevinsaju/streak
ff21f39b06da3010568940d335c32bd7d357ca69
[ "MIT" ]
null
null
null
from flask import jsonify, make_response, request from . import app from .api_post import engine, login from .core import utility_funcs from sqlalchemy.orm import sessionmaker from sqlalchemy_cockroachdb import run_transaction from .api_post import login_required @app.route("/api/v1/tasks/list") @login_required def l...
28
87
0.661874
541
4,312
5.007394
0.147874
0.073828
0.040605
0.047988
0.598007
0.558509
0.512366
0.472868
0.433001
0.365449
0
0.003854
0.217764
4,312
153
88
28.183007
0.799288
0
0
0.419355
0
0
0.12013
0.049165
0
0
0
0
0
1
0.08871
false
0
0.056452
0.008065
0.241935
0.008065
0
0
0
null
0
0
0
0
0
0
0
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
c16c66d300e2ec1188a948c8172e2c9116bd68b9
2,831
py
Python
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
null
null
null
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
null
null
null
octopus/modules/account/dao.py
tuub/magnificent-octopus
62722fbb9eecd0f6727b4d9cc0ef3b732b4702d9
[ "Apache-2.0" ]
2
2019-12-17T14:55:17.000Z
2020-02-03T12:35:24.000Z
from octopus.modules.es import dao from datetime import datetime from octopus.modules.account.exceptions import NonUniqueAccountException def query_filter(q): """Function used by the query endpoint to ensure only the relevant account data is returned""" # q is an esprit.models.Query object # this limits t...
36.766234
139
0.620276
359
2,831
4.749304
0.270195
0.070381
0.018768
0.032845
0.380059
0.380059
0.342522
0.342522
0.296774
0.277419
0
0.004373
0.273048
2,831
77
140
36.766234
0.824101
0.096079
0
0.327869
0
0
0.13127
0.008621
0
0
0
0
0
1
0.098361
false
0
0.04918
0
0.344262
0
0
0
0
null
0
0
0
0
0
0
0
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