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
cfc750727d6c4741228488819c79fe8825da6d65
15,095
py
Python
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
4
2019-10-05T12:54:51.000Z
2021-03-29T11:41:50.000Z
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
null
null
null
data_loader.py
armyja/CHAOS_GCN
685c84fdabf6db71cfc007cec41a72d900422920
[ "MIT" ]
3
2019-10-05T12:54:55.000Z
2021-07-15T05:32:37.000Z
import math import random import torch import numpy as np from torch.utils.data.dataset import Dataset from PIL import Image import os from torchvision import transforms from utils import * # 1 x n_class x height x width tensor def decode_output_to_label(temp): n, c, h, w = temp.size() temp = temp.transpo...
37.7375
111
0.549718
2,021
15,095
3.97526
0.109847
0.042569
0.061364
0.04705
0.699776
0.676002
0.639781
0.592482
0.541573
0.491785
0
0.055588
0.31474
15,095
399
112
37.83208
0.721094
0.131567
0
0.517361
0
0
0.005827
0
0
0
0
0
0
1
0.045139
false
0
0.03125
0.010417
0.121528
0.003472
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfcb567563b3d4494c056cf9b6b3cc3c9bd24ae3
12,191
py
Python
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
core/models/bev_speed_model.py
timothijoe/DI-drive
3cddefc85bbbca6bcdd8a4d796decacaf8d81778
[ "Apache-2.0" ]
null
null
null
import torch import torch.nn as nn from typing import Dict, Optional, Tuple, List, Union from ding.torch_utils import MLP class BEVSpeedConvEncoder(nn.Module): """ Convolutional encoder of Bird-eye View image and speed input. It takes a BeV image and a speed scalar as input. The BeV image is encoded by a...
37.860248
118
0.618817
1,579
12,191
4.48955
0.124763
0.04768
0.027507
0.028213
0.531669
0.454366
0.405135
0.378051
0.367753
0.317252
0
0.021782
0.284472
12,191
321
119
37.978193
0.790898
0.26618
0
0.446602
0
0
0.001517
0
0
0
0
0
0.009709
1
0.07767
false
0
0.019417
0
0.184466
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfcf530f45cfc31304305ccd0a5618dda6f958ac
1,266
py
Python
perception/manage.py
ramaneswaran/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
1
2021-04-14T10:58:13.000Z
2021-04-14T10:58:13.000Z
perception/manage.py
shivamsaraswat8/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
null
null
null
perception/manage.py
shivamsaraswat8/perception
045b85634412355d66b2db6a102a97796c9aa11f
[ "Apache-2.0" ]
1
2021-04-10T18:02:45.000Z
2021-04-10T18:02:45.000Z
import os from sqlalchemy.orm import Session from perception.database import SessionLocal, engine from perception import models, schemas from perception.core.faiss_helper import FaissCore models.Base.metadata.create_all(bind=engine) # Dependency def get_db(): db = SessionLocal() try: yield db f...
23.018182
86
0.666667
174
1,266
4.632184
0.37931
0.052109
0.048387
0.063275
0.251861
0.215881
0.171216
0
0
0
0
0.004032
0.21643
1,266
55
87
23.018182
0.808468
0.227488
0
0.25
0
0
0.008247
0
0
0
0
0
0
1
0.107143
false
0
0.178571
0
0.357143
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfd03e2de858927a123e0392f69647b19f5245c3
3,462
py
Python
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
7
2021-12-24T03:51:28.000Z
2022-01-31T02:50:46.000Z
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
null
null
null
lamblayer/init.py
YU-SUKETAKAHASHI/lamblayer
5650235d16a40c41e8395a1fae7484c8c297e2ef
[ "MIT" ]
null
null
null
import os import json import requests import click from .lamblayer import Lamblayer class Init(Lamblayer): def __init__(self, profile, region, log_level): super().__init__(profile, region, log_level) def __call__(self, function_name, download): self.init(function_name, download) def in...
28.85
82
0.590699
389
3,462
5.015424
0.244216
0.110712
0.065607
0.033829
0.186571
0.157868
0.09226
0.034854
0.034854
0
0
0.00293
0.309936
3,462
119
83
29.092437
0.81373
0.200173
0
0
0
0
0.12131
0
0
0
0
0
0
1
0.107143
false
0
0.089286
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfd0af6f971f3ce7bf05347862e1f5a1232a4e5f
3,135
py
Python
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
3
2021-04-01T02:52:04.000Z
2021-11-05T15:48:43.000Z
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
null
null
null
deadunits/model_load.py
google-research/deadunits
5f4c7d9dc0201cefeb3dc970bcaee66a78cfa423
[ "Apache-2.0" ]
2
2021-11-05T15:45:30.000Z
2022-01-16T11:50:00.000Z
# coding=utf-8 # Copyright 2021 The Deadunits Authors. # # 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.321429
80
0.717384
448
3,135
4.841518
0.415179
0.049793
0.053942
0.014753
0.082988
0.062702
0.062702
0.062702
0.062702
0.062702
0
0.018065
0.205423
3,135
83
81
37.771084
0.85267
0.439872
0
0.093023
0
0
0.054118
0
0
0
0
0
0
1
0.023256
false
0
0.209302
0
0.255814
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
cfd4fb606ff1d4d7e97383391e3aac4284986abd
4,012
py
Python
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
11
2021-02-28T23:33:18.000Z
2022-02-11T20:42:18.000Z
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
1
2021-05-21T08:08:19.000Z
2021-06-30T12:28:55.000Z
scripts/generate_topk.py
sarapapi/FBK-fairseq-ST
33f381937c1589602944da8cf39e533802d283ca
[ "MIT" ]
5
2021-03-15T02:05:38.000Z
2022-02-14T09:20:20.000Z
import logging import os import torch import numpy as np from fairseq import utils, options, tasks, progress_bar, checkpoint_utils from fairseq.data.knowledge_distillation import TeacherOutputDataset logger = logging.getLogger(__name__) def gen_outputs(args): use_cuda = torch.cuda.is_available() and not args....
38.209524
102
0.662512
548
4,012
4.604015
0.332117
0.041221
0.02061
0.015854
0.1522
0.130797
0.069758
0.069758
0.069758
0
0
0.006094
0.222832
4,012
104
103
38.576923
0.803079
0.038883
0
0.024096
0
0
0.08054
0
0
0
0
0
0.060241
1
0.024096
false
0
0.072289
0
0.108434
0.012048
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfdb04f375f82469afd2de9898e6269f06588e28
3,928
py
Python
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
1
2015-03-23T18:52:12.000Z
2015-03-23T18:52:12.000Z
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
null
null
null
DTL/db/models/tablemodel.py
rocktavious/DevToolsLib
117200c91a3361e04f7c8e07d2ed4999bbcfc469
[ "MIT" ]
2
2017-05-21T12:50:41.000Z
2021-10-17T03:32:45.000Z
from DTL.qt import QtCore, QtGui from DTL.qt.QtCore import Qt #------------------------------------------------------------ #------------------------------------------------------------ class TableModel(QtCore.QAbstractTableModel): #------------------------------------------------------------ def __init__(self...
33.862069
76
0.455448
330
3,928
5.293939
0.236364
0.06411
0.027476
0.031483
0.372639
0.340011
0.265598
0.194619
0.146537
0.146537
0
0.004129
0.260183
3,928
116
77
33.862069
0.597041
0.231161
0
0.342857
0
0
0.001332
0
0
0
0
0
0
1
0.157143
false
0
0.028571
0.042857
0.414286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfe0414c8157e5f726b4a1a487bb20c7b5854909
706
py
Python
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
null
null
null
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
5
2021-12-11T18:39:59.000Z
2021-12-12T02:34:25.000Z
wendy/models/seeds/chair.py
AIFI-INC/wendy-framework
e752748428dad550eb9fa1833571c721c089bbc6
[ "Apache-2.0" ]
null
null
null
import os import sys import asyncio from faker import Faker faker = Faker() sys.path.insert(0, os.path.abspath(os.curdir)) from config import init_db from wendy.models import * __all__ = [ 'ChairFaker', 'seed_chair' ] class ChairFaker(object): async def generate(self, **kwargs): await init_db() ...
19.081081
46
0.594901
83
706
4.891566
0.542169
0.049261
0.128079
0
0
0
0
0
0
0
0
0.005988
0.290368
706
36
47
19.611111
0.804391
0
0
0.129032
0
0
0.041076
0
0
0
0
0
0
1
0.032258
false
0
0.193548
0
0.290323
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfe103929d40cc1fd5b17a3bd2751486f8d91d6a
3,814
py
Python
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
10
2018-05-07T07:52:51.000Z
2021-09-04T05:34:46.000Z
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
null
null
null
tasks/outlooksend.py
cmu-sei/usersim
0a90e1c2f32ce27bbb564c7196050c50409989dd
[ "BSL-1.0" ]
4
2018-04-09T17:59:13.000Z
2019-11-17T01:33:35.000Z
# Copyright 2017 Carnegie Mellon University. See LICENSE.md file for terms. import platform try: import win32com.client except ImportError: # Tasks must be importable on any platform. pass import api from tasks import outlook class OutlookSend(outlook.Outlook): """ Interact with Outlook to send ema...
34.990826
115
0.640535
427
3,814
5.587822
0.388759
0.036882
0.050293
0.024308
0.131601
0.106454
0.106454
0.106454
0.106454
0
0
0.005398
0.271369
3,814
108
116
35.314815
0.853185
0.24043
0
0.066667
0
0
0.205618
0.008282
0
0
0
0.009259
0
1
0.1
false
0.016667
0.083333
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfe3d87776cd3825a075db83aacd350f318e2832
2,146
py
Python
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
1
2019-06-12T01:46:22.000Z
2019-06-12T01:46:22.000Z
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
null
null
null
monoweb/mono/cache.py
ragnraok/MonoReader
4672f5f0ca48f69e9180b33b62e773ab323c2cbc
[ "MIT" ]
null
null
null
from flask import current_app import pickle import os import time import fcntl class FileLock(object): def __init__(self, filename, *args, **kwargs): self.filename = filename self.open_args = args self.open_kwargs = kwargs self.fileobj = None def __enter__(self): f = o...
28.613333
85
0.55918
254
2,146
4.468504
0.311024
0.042291
0.042291
0.052863
0.211454
0.188546
0.188546
0.188546
0.188546
0.114537
0
0.000686
0.321062
2,146
74
86
29
0.778312
0.027959
0
0.169492
0
0
0.041546
0
0
0
0
0
0
1
0.135593
false
0
0.084746
0.016949
0.338983
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cfed61c9b170b49c4d5f7fdd3356dd67308b7946
5,901
py
Python
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
fnn.py
Yanjing-PENG/feedforward-neural-network
0ef94c172fdd4773beb6e7ca26e5c944a97f84de
[ "MIT" ]
null
null
null
""" This program builds a two-layer neural network for the Iris dataset. The first layer is a relu layer with 10 units, and the second one is a softmax layer. The network structure is specified in the "train" function. The parameters are learned using SGD. The forward propagation and backward propagation are carri...
30.261538
101
0.604304
934
5,901
3.716274
0.217345
0.022184
0.0121
0.022184
0.229329
0.176894
0.131374
0.122155
0.10314
0.10314
0
0.046808
0.254194
5,901
194
102
30.417526
0.741877
0.261142
0
0.109091
0
0
0.040633
0.005434
0
0
0
0
0
1
0.063636
false
0
0.027273
0.018182
0.145455
0.018182
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cfeff2979c260def21d3497db63dd0e2915c929e
3,021
py
Python
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
31
2017-01-28T10:08:12.000Z
2021-06-01T06:57:27.000Z
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
34
2017-02-03T14:47:00.000Z
2020-05-27T05:48:09.000Z
src/commands/context_create_override.py
EatBreatheCode/sublime_override_audit
4170bccc88e5442e18f337e291b771769b00d3c4
[ "MIT" ]
8
2017-02-03T08:31:36.000Z
2022-02-26T20:13:43.000Z
import sublime import sublime_plugin from os.path import isfile from ..core import oa_setting, setup_new_override_view from ..core import PackageListCollectionThread, ContextHelper ###---------------------------------------------------------------------------- class OverrideAuditContextCreateOverrideCommand(Contex...
37.7625
92
0.617014
377
3,021
4.859416
0.328912
0.048035
0.03821
0.029476
0.121179
0.079694
0.06441
0
0
0
0
0.000882
0.249586
3,021
79
93
38.240506
0.807234
0.336312
0
0.225
0
0
0.049428
0.015609
0
0
0
0
0
1
0.125
false
0
0.125
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cff1461f14e1b3e15b0d50f0e2b63bd501d06025
2,557
py
Python
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
nicos_mlz/pgaa/devices/sampledevices.py
jkrueger1/nicos
5f4ce66c312dedd78995f9d91e8a6e3c891b262b
[ "CC-BY-3.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# -*- coding: utf-8 -*- # ***************************************************************************** # NICOS, the Networked Instrument Control System of the MLZ # Copyright (c) 2009-2022 by the NICOS contributors (see AUTHORS) # # This program is free software; you can redistribute it and/or modify it under # the t...
37.057971
79
0.625342
321
2,557
4.900312
0.504673
0.050858
0.062301
0.036236
0.115702
0.035601
0
0
0
0
0
0.014624
0.224482
2,557
68
80
37.602941
0.778618
0.47282
0
0.0625
0
0
0.109589
0
0
0
0
0
0
1
0.125
false
0
0.03125
0
0.40625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cff38ffb9953a78d832f2d9e41f612523b84e3e1
4,265
py
Python
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
custom_components/pioneer_async/config_flow.py
2t0m/ha-pioneer_async
bc0361536b257eb9059c0ba5cfa6103e1907f8cb
[ "Apache-2.0" ]
null
null
null
"""Config flow for pioneer_async integration.""" import logging import voluptuous as vol from homeassistant import config_entries, core, exceptions from homeassistant.const import ( CONF_HOST, CONF_PORT, CONF_SCAN_INTERVAL, CONF_TIMEOUT, ) from homeassistant.core import callback from .pioneer_avr imp...
32.807692
97
0.637749
484
4,265
5.357438
0.295455
0.034709
0.018511
0.013112
0.12418
0.084073
0.022368
0
0
0
0
0.000322
0.27245
4,265
129
98
33.062016
0.835321
0.121923
0
0.077778
0
0
0.045804
0.015078
0
0
0
0.007752
0
1
0.022222
false
0
0.088889
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cff5e002899e3ed1c30ff51720ac0be6ed86fc5b
6,316
py
Python
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
TwoTimeScaleHybridLearning/src/comparison_poc_3.py
sidsrini12/FURL_Sim
55b420a771858c06f1aef58f48bb68302be36621
[ "MIT" ]
null
null
null
import argparse import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np import pickle as pkl import common.config as cfg from common.utils import Struct matplotlib.rcParams.update({'font.size': 24}) matplotlib.rcParams['lines.linewidth'] = 2.5 matplotlib.rcParams['...
36.72093
80
0.651203
1,070
6,316
3.683178
0.193458
0.015225
0.039584
0.025882
0.446841
0.354986
0.25628
0.20071
0.153768
0.130931
0
0.047584
0.15152
6,316
171
81
36.935673
0.687815
0.03594
0
0.047619
0
0
0.082676
0.016108
0
0
0
0
0
1
0.013605
false
0
0.054422
0.006803
0.081633
0.006803
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cff7f0dca5d382c69b5e9605f440ff2bd5bd0d15
638
py
Python
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
2
2015-11-26T15:33:28.000Z
2015-11-29T23:28:34.000Z
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
null
null
null
code/ex3.2-aio_multiple_requests.py
MA3STR0/PythonAsyncWorkshop
e7ecbcf602be4e858b6b7415335da5fa35018605
[ "MIT" ]
3
2017-07-25T08:02:15.000Z
2020-10-26T10:06:15.000Z
import asyncio import aiohttp import time URLS = [ 'http://127.0.0.1:8000', 'http://127.0.0.1:8000', 'http://127.0.0.1:8000', ] @asyncio.coroutine def request_greetings(): response_tasks = yield from asyncio.wait([aiohttp.get(url) for url in URLS]) text_tasks = yield from asyncio.wait( [ta...
23.62963
80
0.673981
96
638
4.375
0.416667
0.05
0.057143
0.064286
0.219048
0.1
0.1
0.1
0.1
0.1
0
0.06379
0.164577
638
26
81
24.538462
0.724203
0
0
0.136364
0
0
0.123824
0
0
0
0
0
0
1
0.045455
false
0.045455
0.136364
0
0.227273
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cff94841fb558efbf47ac2efacf5957f299d35b0
394
py
Python
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
13
2018-04-12T06:03:44.000Z
2021-05-22T22:42:53.000Z
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
null
null
null
utils.py
sidchilling/zerodha_TA
b1c67cfdc16e8ef569f13c8529621322d0eadb27
[ "Apache-2.0" ]
15
2018-12-28T21:34:46.000Z
2022-01-16T14:54:05.000Z
from mongoengine import * from models import * def get_symbol_data(symbol): db_client = connect(db = 'stocks_db') data = [] for sp in StockPrice.objects(symbol = symbol).order_by('date'): data.append({ 'date': sp.date, 'open': sp.open, 'high': sp.high, 'low': sp.low, 'close': sp...
23.176471
65
0.604061
53
394
4.377358
0.509434
0.068966
0
0
0
0
0
0
0
0
0
0
0.241117
394
17
66
23.176471
0.77592
0
0
0
0
0
0.098734
0
0
0
0
0
0
1
0.0625
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
cff9ae37ed184a7106978b35ce97b96f7c324bca
1,434
py
Python
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
84
2017-10-22T11:01:39.000Z
2022-02-27T03:43:48.000Z
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
22
2017-12-11T07:21:56.000Z
2021-09-23T02:53:50.000Z
sa/profiles/HP/GbE2/get_mac_address_table.py
prorevizor/noc
37e44b8afc64318b10699c06a1138eee9e7d6a4e
[ "BSD-3-Clause" ]
23
2017-12-06T06:59:52.000Z
2022-02-24T00:02:25.000Z
# --------------------------------------------------------------------- # HP.GbE2.get_mac_address_table # --------------------------------------------------------------------- # Copyright (C) 2007-2019 The NOC Project # See LICENSE for details # --------------------------------------------------------------------- # N...
34.97561
79
0.456764
153
1,434
4.222222
0.470588
0.032508
0.027864
0.037152
0.074303
0.074303
0
0
0
0
0
0.016983
0.301953
1,434
40
80
35.85
0.628372
0.237796
0
0.103448
0
0
0.091328
0.026753
0
0
0
0
0
1
0.034483
false
0
0.103448
0
0.275862
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cffa548efb720426a20010047da63946608d1f48
1,628
py
Python
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
src/api_trt/prepare_models.py
a7ypically/InsightFace-REST
8436a9308ba335102ae059f57a4fc83c5e7098b5
[ "Apache-2.0" ]
null
null
null
import os import logging from modules.utils.helpers import parse_size, tobool, validate_max_size from modules.model_zoo.getter import prepare_backend from modules.configs import Configs from env_parser import EnvConfigs log_level = os.getenv('LOG_LEVEL', 'INFO') logging.basicConfig( level=log_level, format='...
30.716981
105
0.687961
225
1,628
4.648889
0.297778
0.124283
0.122371
0.076482
0.047801
0
0
0
0
0
0
0.0086
0.214373
1,628
52
106
31.307692
0.809226
0
0
0
0
0
0.086609
0
0
0
0
0
0
1
0.026316
false
0
0.157895
0
0.184211
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cffa6ded7c7c5d1fba7de3158859d833e3843ca3
8,202
py
Python
TUI/ScriptMenu.py
r-owen/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2015-04-29T20:28:20.000Z
2015-04-29T20:28:20.000Z
TUI/ScriptMenu.py
ApachePointObservatory/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2017-06-05T22:53:58.000Z
2017-06-05T22:53:58.000Z
TUI/ScriptMenu.py
r-owen/TUI
8f130368254161a2748167b7c8260cc24170c28c
[ "BSD-3-Clause" ]
1
2020-01-28T06:28:02.000Z
2020-01-28T06:28:02.000Z
#!/usr/bin/env python """Creates the Script menu. To Do: - add html help; note that this will have to be fed to ScriptWdg, RO.ScriptWdg has no idea of TUI help History: 2004-07-19 ROwen 2004-08-11 ROwen Modified for updated RO.Wdg.Toplevel. 2004-08-23 ROwen Added some diagnostic print statements (commented ou...
35.353448
106
0.588881
920
8,202
5.184783
0.331522
0.002935
0.01195
0.010482
0.12956
0.104822
0.09392
0.077568
0.062055
0.062055
0
0.016679
0.320166
8,202
231
107
35.506494
0.838773
0.43465
0
0.106195
0
0
0.017409
0
0
0
0
0
0
1
0.106195
false
0
0.053097
0.00885
0.230089
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cffb6437c4e4737ed0d16d417d528aae9ad7f455
3,121
py
Python
tests/views/test_plot_configuration_dialog.py
lsst-sitcom/spot_motion_monitor
3d0242276198126240667ba13e95b7bdf901d053
[ "BSD-3-Clause" ]
null
null
null
tests/views/test_plot_configuration_dialog.py
lsst-sitcom/spot_motion_monitor
3d0242276198126240667ba13e95b7bdf901d053
[ "BSD-3-Clause" ]
5
2020-01-08T23:50:22.000Z
2020-02-14T18:15:20.000Z
tests/views/test_plot_configuration_dialog.py
lsst-com/spot_motion_monitor
3d0242276198126240667ba13e95b7bdf901d053
[ "MIT" ]
null
null
null
# This file is part of spot_motion_monitor. # # Developed for LSST System Integration, Test and Commissioning. # # See the LICENSE file at the top-level directory of this distribution # for details of code ownership. # # Use of this source code is governed by a 3-clause BSD-style # license that can be found in the LICE...
45.231884
106
0.694008
281
3,121
7.658363
0.409253
0.013011
0.040892
0.055762
0.378253
0.197955
0.153346
0.127323
0.127323
0
0
0.010634
0.216597
3,121
68
107
45.897059
0.86953
0.099648
0
0.297872
0
0
0.085
0
0
0
0
0
0.212766
1
0.085106
false
0
0.06383
0
0.170213
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
cffcff915342cd1b241c4888358b81014d40b492
1,586
py
Python
spider/pipelines.py
TeamDDH/bbk-server
3fdd201e8b7854759b6f5113790d90adb9879b88
[ "MIT" ]
3
2018-08-20T04:57:57.000Z
2021-11-01T01:27:34.000Z
spider/pipelines.py
TeamDDH/bbk-server
3fdd201e8b7854759b6f5113790d90adb9879b88
[ "MIT" ]
null
null
null
spider/pipelines.py
TeamDDH/bbk-server
3fdd201e8b7854759b6f5113790d90adb9879b88
[ "MIT" ]
2
2019-06-18T09:00:46.000Z
2020-04-09T20:32:45.000Z
# -*- coding: utf-8 -*- """ pipelines ~~~~~~~~~ :copyright: (c) 2017-18 by Wendell Hu. :license: MIT, see LICENSE for more details. """ from scrapy.exceptions import DropItem from .db import spider_session_generator, RawArticle class ArticlePipeline(object): """Persist article items into databas...
31.72
80
0.566204
180
1,586
4.872222
0.405556
0.071836
0.100342
0.059293
0.068415
0.068415
0
0
0
0
0
0.013761
0.312736
1,586
49
81
32.367347
0.790826
0.209962
0
0
0
0
0.052459
0
0
0
0
0
0
1
0.076923
false
0
0.076923
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
cffe63c3675a8ef582e92a5d2831d5faa5ba38af
1,268
py
Python
commonmark/main.py
phst/commonmark.py
d031003aa23cfce1787cfb29c1eb109b369ca5b7
[ "BSD-3-Clause" ]
154
2015-12-10T23:17:28.000Z
2019-04-04T06:49:36.000Z
commonmark/main.py
phst/commonmark.py
d031003aa23cfce1787cfb29c1eb109b369ca5b7
[ "BSD-3-Clause" ]
131
2019-07-02T15:56:33.000Z
2022-03-25T19:54:02.000Z
commonmark/main.py
phst/commonmark.py
d031003aa23cfce1787cfb29c1eb109b369ca5b7
[ "BSD-3-Clause" ]
53
2015-12-08T18:06:51.000Z
2019-05-02T18:08:10.000Z
# 2014 - Bibek Kafle & Roland Shoemaker # 2015-2017 - Nikolas Nyby # Port of @jgm's commonmark.js implementation of the CommonMark spec. # Basic usage: # # import commonmark # parser = commonmark.Parser() # renderer = commonmark.HtmlRenderer() # print(renderer.render(parser.parse('Hello *world*'))) from __future__ im...
30.190476
69
0.669558
149
1,268
5.657718
0.422819
0.04745
0.052195
0.030842
0
0
0
0
0
0
0
0.011858
0.201893
1,268
41
70
30.926829
0.821146
0.355678
0
0.1
0
0
0.089629
0
0
0
0
0
0
1
0.05
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
32018d05e0f153d9cb272bc8a457d7fb3169bb74
37,195
py
Python
ktapp/views/web/user_profile.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
5
2015-04-13T09:44:31.000Z
2017-10-19T01:07:58.000Z
ktapp/views/web/user_profile.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
49
2015-02-15T07:12:05.000Z
2022-03-11T23:11:43.000Z
ktapp/views/web/user_profile.py
cu2/KT
8a0964b77dce150358637faa679d969a07e42f07
[ "CC-BY-3.0" ]
null
null
null
# -*- coding: utf-8 -*- import datetime import math from django.db import connection from django.shortcuts import render, get_object_or_404 from django.http import HttpResponseRedirect, Http404 from django.core.urlresolvers import reverse from django.contrib.auth.decorators import login_required from django.db.models...
45.249392
171
0.652561
5,007
37,195
4.535051
0.070501
0.086317
0.024045
0.030035
0.698639
0.668208
0.636191
0.619457
0.564936
0.543665
0
0.012377
0.231053
37,195
821
172
45.304507
0.781546
0.000995
0
0.509702
0
0.011643
0.276344
0.023794
0
0
0
0
0
1
0.016818
false
0
0.018111
0
0.058215
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
32059ef6b7d6492ac78fa492483daba2584c090a
18,502
py
Python
metrics.py
adamtiger/CPmethod
9220d39f2f8cbfc191a89418c8795eabf09469d0
[ "MIT" ]
null
null
null
metrics.py
adamtiger/CPmethod
9220d39f2f8cbfc191a89418c8795eabf09469d0
[ "MIT" ]
null
null
null
metrics.py
adamtiger/CPmethod
9220d39f2f8cbfc191a89418c8795eabf09469d0
[ "MIT" ]
1
2019-11-20T15:48:57.000Z
2019-11-20T15:48:57.000Z
from dataloader_utils import Gender, HeartPart, EndPhase from enum import Enum import numpy as np import math import cv2 # -------------------------------------- # Shape (contour) similarity # -------------------------------------- def __areas(curve1, curve2): # floats come in # find the corners of the bbox ...
37.15261
117
0.600908
2,400
18,502
4.444167
0.152917
0.03844
0.019689
0.031689
0.426402
0.395087
0.326458
0.28633
0.271704
0.201013
0
0.0322
0.283267
18,502
497
118
37.227364
0.772114
0.181062
0
0.131902
0
0
0.008116
0
0
0
0
0
0
1
0.101227
false
0
0.015337
0
0.260736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
3206936433ce667f0ce4f6df51f664f04496ea93
9,077
py
Python
coinbase.py
foppini975/FinRL
aead943817d1387dc3654de2c189767d10140b78
[ "MIT" ]
null
null
null
coinbase.py
foppini975/FinRL
aead943817d1387dc3654de2c189767d10140b78
[ "MIT" ]
null
null
null
coinbase.py
foppini975/FinRL
aead943817d1387dc3654de2c189767d10140b78
[ "MIT" ]
null
null
null
# Coinbase Pro library: # https://github.com/danpaquin/coinbasepro-python #curl "https://api.pro.coinbase.com/products/BTC-USD/candles?start=2021-01-01T12:00:00&end=2021-01-12T12:00:00&granularity=3600" import cbpro import numpy as np import pandas as pd import logging from datetime import datetime, timedelta imp...
46.076142
128
0.593588
1,137
9,077
4.591909
0.201407
0.068952
0.055162
0.080444
0.425206
0.356828
0.302241
0.2647
0.199962
0.1923
0
0.017632
0.300209
9,077
197
129
46.076142
0.804314
0.145312
0
0.28
0
0.013333
0.113398
0.00945
0
0
0
0
0
1
0.053333
false
0
0.04
0.013333
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
3206d78caefb347d3aafe66f87b062f05ea1e6f8
1,134
py
Python
tests/integration/shell/runner.py
d--j/salt
579f900be67a80e1a77674bc6aa21fec836c1c4c
[ "Apache-2.0" ]
1
2015-06-05T13:47:02.000Z
2015-06-05T13:47:02.000Z
tests/integration/shell/runner.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
tests/integration/shell/runner.py
epoelke/salt
80ae64e54f9f336d3cdb6e03e42f2a50469ec8f2
[ "Apache-2.0" ]
null
null
null
''' Tests for the salt-run command ''' # Import Salt Testing libs from salttesting.helpers import ensure_in_syspath ensure_in_syspath('../../') # Import salt libs import integration class RunTest(integration.ShellCase, integration.ShellCaseCommonTestsMixIn): ''' Test the salt-run command ''' _call_...
24.652174
76
0.617284
136
1,134
4.963235
0.404412
0.118519
0.165926
0.088889
0.094815
0.094815
0.094815
0.094815
0.094815
0.094815
0
0
0.246032
1,134
45
77
25.2
0.789474
0.155203
0
0.181818
0
0
0.15991
0
0
0
0
0
0.363636
1
0.090909
false
0
0.136364
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
320a56299d5b0a2df9ef09f9fd22f38ffc418aca
8,229
py
Python
stacktach/stacklog.py
PreetiKamble29/stacktach
f4f905393a0d7eaa226a72b6a27b61e4ef52211d
[ "Apache-2.0" ]
null
null
null
stacktach/stacklog.py
PreetiKamble29/stacktach
f4f905393a0d7eaa226a72b6a27b61e4ef52211d
[ "Apache-2.0" ]
4
2020-02-28T10:27:34.000Z
2022-02-02T01:13:09.000Z
stacktach/stacklog.py
PreetiKamble29/stacktach
f4f905393a0d7eaa226a72b6a27b61e4ef52211d
[ "Apache-2.0" ]
null
null
null
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.2875
97
0.655244
1,000
8,229
5.226
0.264
0.078454
0.055109
0.020092
0.223881
0.183697
0.118638
0.107922
0.106008
0.083429
0
0.004929
0.260299
8,229
239
98
34.430962
0.853622
0.198201
0
0.218182
0
0.006061
0.046295
0.009473
0
0
0
0
0
1
0.127273
false
0
0.054545
0.012121
0.260606
0.006061
0
0
0
null
0
0
0
0
0
0
0
0
0
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
320d4ac1c04314ad47e8ce414ec8f5ce00f6d0a4
1,087
py
Python
Chapter07/plotly_flask_demo1/template2.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter07/plotly_flask_demo1/template2.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
null
null
null
Chapter07/plotly_flask_demo1/template2.py
allen-zqh/plotly
bcaf0930901e77db07245b63bff049eb75893416
[ "MIT" ]
1
2021-02-04T06:56:18.000Z
2021-02-04T06:56:18.000Z
from flask import render_template from flask import Flask import plotly as py import plotly.graph_objs as go app = Flask(__name__) @app.route('/') def index(): pyplt = py.offline.plot trace0 = go.Bar( x=['A类户型', 'B类户型', 'C类户型'], y=[20, 14, 23], text=['27%市场占有率', '24%市场占有率', '19%市场占有率...
22.645833
97
0.547378
134
1,087
4.298507
0.649254
0.057292
0.052083
0
0
0
0
0
0
0
0
0.05291
0.304508
1,087
47
98
23.12766
0.708995
0
0
0
0
0
0.132475
0
0
0
0
0
0
1
0.026316
false
0
0.131579
0
0.184211
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
320f930d9ba74b1df7112b848be26ad7f7ad719b
4,101
py
Python
scraper/log.py
micort35/prestiology
729d4558005e1c6d07ac5044ff10cbb1b7a522c6
[ "MIT" ]
null
null
null
scraper/log.py
micort35/prestiology
729d4558005e1c6d07ac5044ff10cbb1b7a522c6
[ "MIT" ]
null
null
null
scraper/log.py
micort35/prestiology
729d4558005e1c6d07ac5044ff10cbb1b7a522c6
[ "MIT" ]
null
null
null
import statistics from datetime import date import psycopg2 from psycopg2 import sql class Log: def __init__(self, score, gameday): #gather player data self.name = score.get('name') self.team = (score.get('team')).name self.date = gameday self.mins = round(((score.get('seco...
41.424242
121
0.568642
591
4,101
3.807107
0.199662
0.013333
0.017333
0.021333
0.270222
0.259111
0.218222
0.191556
0.138222
0.094667
0
0.006866
0.289685
4,101
99
122
41.424242
0.765534
0.059742
0
0.126582
0
0.037975
0.200416
0.018196
0
0
0
0
0
1
0.075949
false
0
0.050633
0
0.177215
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
32117082982e1b0cb2bf7bcfb0c7a96c4bf33ab1
14,141
py
Python
main.py
VuNguyenQS/My-capstone-project
219bdd50aa046bbecc30496cfdba39ea8799537c
[ "MIT" ]
null
null
null
main.py
VuNguyenQS/My-capstone-project
219bdd50aa046bbecc30496cfdba39ea8799537c
[ "MIT" ]
null
null
null
main.py
VuNguyenQS/My-capstone-project
219bdd50aa046bbecc30496cfdba39ea8799537c
[ "MIT" ]
null
null
null
import os import time import csv import numpy as np import torch import torch.backends.cudnn as cudnn import torch.optim cudnn.benchmark = True from models import ResNet from metrics import AverageMeter, Result from dataloaders.dense_to_sparse import UniformSampling, SimulatedStereo import criteria import utils # Th...
40.402857
148
0.617849
1,731
14,141
4.882149
0.170422
0.016566
0.0142
0.021299
0.471778
0.427168
0.378772
0.331913
0.296533
0.287067
0
0.013787
0.256276
14,141
349
149
40.518625
0.789769
0.065696
0
0.297398
0
0.003717
0.136413
0.066724
0
0
0
0
0.007435
1
0.018587
false
0
0.052045
0
0.085502
0.055762
0
0
0
null
0
0
0
0
0
0
0
0
0
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
32154a7bfec8aa22a3e74820b2c2af57fc5f81c6
647
py
Python
reports/forms.py
kreeger/etcetera
a0e82e56ffc76cbc73aa59e23f6a77fce92fad08
[ "BSD-3-Clause" ]
1
2015-02-26T20:47:40.000Z
2015-02-26T20:47:40.000Z
reports/forms.py
kreeger/etcetera
a0e82e56ffc76cbc73aa59e23f6a77fce92fad08
[ "BSD-3-Clause" ]
null
null
null
reports/forms.py
kreeger/etcetera
a0e82e56ffc76cbc73aa59e23f6a77fce92fad08
[ "BSD-3-Clause" ]
null
null
null
import urllib from django import forms from etcetera.reports import models as reports from etcetera.extras.dateutil import formfield_callback, DateTimeField class SearchForm(forms.Form): q = forms.CharField(max_length=50) def get_list(self): # The search list is automatically everything ...
24.884615
70
0.678516
75
647
5.706667
0.64
0.119159
0
0
0
0
0
0
0
0
0
0.004115
0.248841
647
26
71
24.884615
0.876543
0.066461
0
0
0
0
0.029851
0
0
0
0
0
0
1
0.111111
false
0
0.222222
0.055556
0.722222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
32180c83a0a4b8233e9903ee6c946175a6e07df6
2,873
py
Python
cac/server/announcement.py
tobias93/cards-against-cli
33c5a43a3b821438c94da719571655d87998384a
[ "MIT" ]
null
null
null
cac/server/announcement.py
tobias93/cards-against-cli
33c5a43a3b821438c94da719571655d87998384a
[ "MIT" ]
null
null
null
cac/server/announcement.py
tobias93/cards-against-cli
33c5a43a3b821438c94da719571655d87998384a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Handles the service announcement of the Cards against Cli Server. Debugging command: (linux, requires avahi) (A similar command should be available using bonjour on mac) > avahi-browse --resolve "_cac._tcp" Use the environment variable CAC_LISTEN_INTERFACES to control, on which interface(s)...
29.618557
78
0.674904
350
2,873
5.354286
0.337143
0.048026
0.029883
0.022412
0.123266
0.071505
0.040555
0
0
0
0
0.002737
0.237034
2,873
96
79
29.927083
0.85219
0.203968
0
0.034483
0
0
0.110867
0.043995
0
0
0
0
0
1
0.103448
false
0
0.103448
0
0.293103
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
3218c85b611430d9cfad372e384dd6e2a555de20
1,440
py
Python
Python-desenvolvimento/ex059.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex059.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
Python-desenvolvimento/ex059.py
MarcosMaciel-MMRS/Desenvolvimento-python
2b2fc54788da3ca110d495b9e80a494f2b31fb09
[ "MIT" ]
null
null
null
#o programa vai ler 2 números, em seguida mostrar um menu. ''' O programa vai pedir 2 número. Tabela [1]- Soma [2]- Multiplica [3]- Maior [4]-Novos números [5]- sair ''' from time import sleep n1 = int(input('Informe o primeiro núm...
30.638298
87
0.4875
171
1,440
4.105263
0.368421
0.039886
0.08547
0.091168
0.430199
0.430199
0.310541
0.310541
0.310541
0.310541
0
0.045603
0.360417
1,440
46
88
31.304348
0.716612
0.126389
0
0.162162
0
0
0.411508
0
0
0
0
0
0
1
0
false
0
0.027027
0
0.027027
0.27027
0
0
0
null
0
0
0
0
0
0
0
0
0
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
321a077e7efc9d3ad00c1d1ebd91b91a3a74dcc6
3,320
py
Python
mdstudio_cli/wamp_services.py
MD-Studio/lie_cli
567c2c7f146898b804f418e052f01960fca7e0d4
[ "Apache-2.0" ]
null
null
null
mdstudio_cli/wamp_services.py
MD-Studio/lie_cli
567c2c7f146898b804f418e052f01960fca7e0d4
[ "Apache-2.0" ]
1
2019-12-03T10:47:11.000Z
2019-12-03T10:47:11.000Z
mdstudio_cli/wamp_services.py
MD-Studio/MDStudio_cli
567c2c7f146898b804f418e052f01960fca7e0d4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ file: wamp_services.py WAMP service methods the module exposes. """ import os import json import logging from twisted.internet import reactor from autobahn.wamp.exception import ApplicationError from graphit.graph_io.io_jsonschema_format import read_json_schema from mdstudio.component.s...
29.380531
104
0.656928
383
3,320
5.592689
0.362924
0.039216
0.021008
0.032213
0.095238
0.095238
0.095238
0.095238
0.095238
0.095238
0
0.001226
0.262952
3,320
112
105
29.642857
0.874132
0.283133
0
0.166667
0
0
0.041986
0
0
0
0
0
0
1
0.083333
false
0
0.208333
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
321a849775e824655942ecde437bbf281050052a
4,692
py
Python
code_verification.py
KeithYue/weibo-keywords-crawler
6d90dea6c1619e06b1846f849e3c3c89fad26dd8
[ "MIT" ]
16
2015-03-08T20:32:47.000Z
2021-12-26T09:11:34.000Z
code_verification.py
KeithYue/weibo-keywords-crawler
6d90dea6c1619e06b1846f849e3c3c89fad26dd8
[ "MIT" ]
1
2015-04-10T03:15:23.000Z
2016-04-10T12:16:58.000Z
code_verification.py
KeithYue/weibo-keywords-crawler
6d90dea6c1619e06b1846f849e3c3c89fad26dd8
[ "MIT" ]
13
2015-10-15T07:37:35.000Z
2021-12-26T09:14:01.000Z
# coding=utf-8 import base64 import time import logging from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities from selenium.common.exceptions import NoSuchElementException from PIL import Image from io import StringIO, BytesIO from synchronize_util import synchron...
31.702703
107
0.660912
600
4,692
4.981667
0.346667
0.042824
0.028438
0.031783
0.178655
0.117096
0.093677
0.093677
0.06825
0.06825
0
0.011065
0.22954
4,692
147
108
31.918367
0.815768
0.140665
0
0.123711
0
0.010309
0.339164
0.123447
0
0
0
0
0
1
0.061856
false
0
0.092784
0
0.247423
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c4d369413fd643cd1e49d231d62a011fe2c227d
7,032
py
Python
blender/addons/io_scene_fmod/__init__.py
tkgamegroup/flame
f1628100cc66e13f84ea3047ea33af019caeb01b
[ "MIT" ]
25
2018-02-28T05:59:50.000Z
2022-03-18T03:11:52.000Z
blender/addons/io_scene_fmod/__init__.py
tkgamegroup/flame
e5884c7a773c351f3dadadbdb908cfe00f1ce586
[ "MIT" ]
null
null
null
blender/addons/io_scene_fmod/__init__.py
tkgamegroup/flame
e5884c7a773c351f3dadadbdb908cfe00f1ce586
[ "MIT" ]
5
2018-05-17T04:16:30.000Z
2021-12-22T04:02:02.000Z
bl_info = { "name": "flame model format", "blender": (2, 81, 6), "category": "Import-Export", } import bpy from bpy.props import ( BoolProperty, FloatProperty, StringProperty, EnumProperty, ) from bpy_extras.io_utils import ( ImportHelper, ExportHelpe...
30.977974
154
0.55347
856
7,032
4.313084
0.232477
0.023835
0.021127
0.018418
0.230228
0.182828
0.127844
0.07909
0.059588
0.03792
0
0.007063
0.335609
7,032
226
155
31.115044
0.783176
0
0
0.150838
0
0
0.043658
0
0
0
0
0
0
1
0.061453
false
0.01676
0.100559
0.005587
0.273743
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c4f3ff0fca74925cdc32cdab044c3f0a4860df6
1,616
py
Python
tests/dataverk/connectors/storage/test_nais_s3_storage_connector.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
3
2019-09-29T20:48:46.000Z
2021-03-31T10:16:07.000Z
tests/dataverk/connectors/storage/test_nais_s3_storage_connector.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
148
2019-02-08T12:30:58.000Z
2021-03-11T15:31:55.000Z
tests/dataverk/connectors/storage/test_nais_s3_storage_connector.py
navikt/dataverk
7dd803236433048686dd7a58358bc1c09565b14b
[ "MIT" ]
1
2020-11-18T14:10:05.000Z
2020-11-18T14:10:05.000Z
import unittest import requests from unittest import mock from dataverk.connectors import NaisS3Connector from tests.dataverk.connectors.storage.test_resources.mock_nais_s3_api import mock_requests_put, mock_requests_get from tests.dataverk.connectors.storage.test_resources.nais_s3_storage_common import NAIS_S3_ENDPOI...
48.969697
122
0.799505
229
1,616
5.196507
0.218341
0.110924
0.067227
0.067227
0.478992
0.478992
0.460504
0.336134
0.284034
0.284034
0
0.026112
0.123144
1,616
32
123
50.5
0.813691
0
0
0.24
0
0
0.073639
0.051361
0
0
0
0
0.12
1
0.16
false
0
0.24
0
0.44
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c50c15b31a06a2fc340734629a90deb26627e13
275
py
Python
onlineshopping/cart/templatetags/cart_tag.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
1
2021-01-27T03:20:45.000Z
2021-01-27T03:20:45.000Z
onlineshopping/cart/templatetags/cart_tag.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
null
null
null
onlineshopping/cart/templatetags/cart_tag.py
SarahMohamedAbdAlkader/DjangoEcommerceProject
edfe3071e5ee301702ff8e55a513efbb8feadab8
[ "MIT" ]
1
2020-03-24T21:28:31.000Z
2020-03-24T21:28:31.000Z
from django import template from cart.models import Order register = template.Library() @register.filter def cart_total(user): order = Order.objects.filter(user=user, ordered=False) if order.exists(): return order[0].orderitems.count() else: return 0
21.153846
58
0.716364
37
275
5.297297
0.621622
0
0
0
0
0
0
0
0
0
0
0.00885
0.178182
275
13
59
21.153846
0.858407
0
0
0
0
0
0
0
0
0
0
0
0
1
0.1
false
0
0.2
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c51c0397e0805fb91d95ef1e2d33d5b04ad1808
1,466
py
Python
scripts/tomidi.py
callistachang/CycleGAN-Music-Transfer
928e87b4bebc4da1dcf7c43936d2c10fe76170f1
[ "MIT" ]
null
null
null
scripts/tomidi.py
callistachang/CycleGAN-Music-Transfer
928e87b4bebc4da1dcf7c43936d2c10fe76170f1
[ "MIT" ]
1
2021-07-07T13:36:18.000Z
2021-07-07T13:36:18.000Z
scripts/tomidi.py
callistachang/CycleGAN-Music-Transfer
928e87b4bebc4da1dcf7c43936d2c10fe76170f1
[ "MIT" ]
null
null
null
import numpy as np from working import writemidi def load_npy_data(npy_data): npy_A = np.load(npy_data[0]) * 1.0 # 64 * 84 * 1 npy_B = np.load(npy_data[1]) * 1.0 # 64 * 84 * 1 npy_AB = np.concatenate( ( npy_A.reshape(npy_A.shape[0], npy_A.shape[1], 1), npy_B.reshape(npy_B...
28.192308
80
0.566849
219
1,466
3.534247
0.30137
0.167959
0.116279
0.033592
0.173127
0.173127
0.147287
0.069767
0
0
0
0.057197
0.284447
1,466
51
81
28.745098
0.680648
0.023874
0
0.090909
0
0
0.033637
0.023125
0
0
0
0
0
1
0.045455
false
0
0.045455
0
0.113636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c541aa9113adae24d37bc78ba5676b3f3fe64e0
524
py
Python
cdwar1.py
fernandopm248/digital-root
b2039eb50a9a23b0a7799dfd36c1a3380b841ed9
[ "MIT" ]
null
null
null
cdwar1.py
fernandopm248/digital-root
b2039eb50a9a23b0a7799dfd36c1a3380b841ed9
[ "MIT" ]
null
null
null
cdwar1.py
fernandopm248/digital-root
b2039eb50a9a23b0a7799dfd36c1a3380b841ed9
[ "MIT" ]
null
null
null
def digital_root (n): total = 10 while total > 9 : total = 0 x = str(n) stringfy = [] cont = (len(x)) i = 0 e = 1 num = [] while i < cont : stringfy += x[i:e] i += 1 e += 1 for i in range(len(stringfy...
12.186047
38
0.389313
61
524
3.311475
0.459016
0.108911
0
0
0
0
0
0
0
0
0
0.05283
0.494275
524
43
39
12.186047
0.709434
0
0
0
0
0
0
0
0
0
0
0
0
1
0.043478
false
0
0
0
0.043478
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
5c5a5460d0ba3fe976caca1f2575a005ff9201fc
35,567
py
Python
src/data/data_classes.py
sandralima/MLMortgage
16946e4c1a1cfec87739eb5aa0c711e5e305dc24
[ "MIT" ]
null
null
null
src/data/data_classes.py
sandralima/MLMortgage
16946e4c1a1cfec87739eb5aa0c711e5e305dc24
[ "MIT" ]
null
null
null
src/data/data_classes.py
sandralima/MLMortgage
16946e4c1a1cfec87739eb5aa0c711e5e305dc24
[ "MIT" ]
null
null
null
"""Module for loading the real datasets.""" import numpy as np import pandas as pd import os import math import glob import random_permutation as rp from datetime import datetime import sys RANDOM_SEED = 123 # eliminate for taking from the clock! class DataBatch(object): """ABC.""" def __init__(self, archi...
58.498355
247
0.575196
4,215
35,567
4.59573
0.076868
0.035207
0.030871
0.019617
0.697486
0.666357
0.639926
0.616798
0.588973
0.581539
0
0.015046
0.310484
35,567
607
248
58.594728
0.774833
0.194562
0
0.523364
0
0
0.086701
0.009919
0
0
0
0
0.009346
1
0.058411
false
0
0.018692
0.002336
0.133178
0.077103
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c5bcfb620d91c04a78b6a0659fdd5357ae64bd7
402
py
Python
ch9/place.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
4
2020-05-18T05:25:44.000Z
2021-07-30T01:02:39.000Z
ch9/place.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
null
null
null
ch9/place.py
chunhua2017/pythonprogrammingdemo
64e4ac2b33c54cde4671291a6203e94cd96de4ba
[ "MIT" ]
2
2021-09-15T05:41:05.000Z
2022-01-25T05:44:43.000Z
from tkinter import * #导入tkinter模块 window = Tk() #创建主窗口对象 window.title('Place Example') #设置窗口标题 window.geometry('300x200') #设置窗口大小与位置 colors = ['red', 'green', 'light blue', 'yellow'] #Place放置效果 [Label(window, font="Arial 12",text='place(80,%d),anchor=NW' % (20 + i * 40), bg=colors[i]).place(x=40, y=20 +...
30.923077
77
0.646766
59
402
4.40678
0.779661
0.023077
0.038462
0
0
0
0
0
0
0
0
0.076923
0.159204
402
13
78
30.923077
0.692308
0.124378
0
0
0
0
0.213256
0.063401
0
0
0
0
0
1
0
false
0
0.1
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c5e3aae9b20d433324b1ee0506da0c93c47e6f1
5,110
py
Python
satflow/models/hub.py
lewtun/satflow
6a675e4fa921b4dd023361b55cc2a5fa25b8f8ed
[ "MIT" ]
null
null
null
satflow/models/hub.py
lewtun/satflow
6a675e4fa921b4dd023361b55cc2a5fa25b8f8ed
[ "MIT" ]
null
null
null
satflow/models/hub.py
lewtun/satflow
6a675e4fa921b4dd023361b55cc2a5fa25b8f8ed
[ "MIT" ]
null
null
null
""" Originally Taken from https://github.com/rwightman/pytorch-image-models/blob/acd6c687fd1c0507128f0ce091829b233c8560b9/timm/models/hub.py """ import json import logging import os from functools import partial from typing import Union, Optional import pytorch_lightning import torch try: from torch.hub import g...
35.241379
136
0.722505
725
5,110
4.798621
0.248276
0.030181
0.028456
0.026157
0.193446
0.148606
0.148606
0.148606
0.124461
0.124461
0
0.015093
0.196086
5,110
144
137
35.486111
0.831792
0.171429
0
0.15
0
0
0.131018
0
0
0
0
0
0.04
1
0.09
false
0
0.14
0
0.35
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c616179b40409b6df7a7b9997dac34dc5c2f054
1,568
py
Python
VM/__main__.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
75
2017-09-22T22:36:13.000Z
2022-03-20T16:18:27.000Z
VM/__main__.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
7
2019-05-10T19:15:08.000Z
2021-08-24T16:03:34.000Z
VM/__main__.py
djtech-dev/PyVM
1edda436ce7073d0cecbf16f5cab2509895d953c
[ "MIT" ]
14
2018-07-02T02:49:46.000Z
2022-02-22T15:24:47.000Z
import argparse import shlex import logging import sys from . import VMKernel, ExecutionStrategy parser = argparse.ArgumentParser() parser.add_argument('command', help='The command to be executed') parser.add_argument( '-t', '--type', default=ExecutionStrategy.ELF, type=lambda s: ExecutionStrategy[s.upper()]...
30.745098
118
0.698342
215
1,568
5.027907
0.353488
0.033303
0.078631
0.066605
0.177613
0.07308
0
0
0
0
0
0.003788
0.158163
1,568
50
119
31.36
0.815152
0
0
0.1
0
0
0.314413
0
0
0
0
0
0
1
0
false
0
0.125
0
0.125
0.1
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c62285051765df8785d97d4cb963aaaad64edf9
2,224
py
Python
imomoe_client/japanese_anime_page.py
xiaoland/DuerosSkill_ImomoeService
e94e74f9c1939cca80e0592d8d1f2f4d2520bb04
[ "MIT" ]
5
2020-06-15T01:43:07.000Z
2021-02-08T03:01:53.000Z
imomoe_client/japanese_anime_page.py
xiaoland/DuerosSkill_ImomoeService
e94e74f9c1939cca80e0592d8d1f2f4d2520bb04
[ "MIT" ]
null
null
null
imomoe_client/japanese_anime_page.py
xiaoland/DuerosSkill_ImomoeService
e94e74f9c1939cca80e0592d8d1f2f4d2520bb04
[ "MIT" ]
2
2020-06-15T01:43:17.000Z
2021-02-08T03:00:17.000Z
# coding=utf-8 import requests from bs4 import BeautifulSoup as bs class ImomoeClientJapaneseAnimePage(object): def __init__(self): self.base_url = "http://www.imomoe.in" r = requests.get(self.base_url + "/list/2.html") self.jp_html = r.content self.soup = bs(self.jp_html, "lxml"...
26.164706
58
0.513939
272
2,224
4.033088
0.227941
0.014585
0.021878
0.047402
0.251595
0.251595
0.251595
0.251595
0.251595
0.251595
0
0.008197
0.341727
2,224
84
59
26.47619
0.74112
0.026978
0
0.296296
0
0
0.071463
0
0
0
0
0
0
1
0.092593
false
0
0.037037
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
5c688d37744f8919869471727e3b542ad0e4c131
940
py
Python
star-track/testprog.py
valentinp72/star-track
0537f1a9494297d6de5025a945abc41ca4a40738
[ "MIT" ]
null
null
null
star-track/testprog.py
valentinp72/star-track
0537f1a9494297d6de5025a945abc41ca4a40738
[ "MIT" ]
null
null
null
star-track/testprog.py
valentinp72/star-track
0537f1a9494297d6de5025a945abc41ca4a40738
[ "MIT" ]
null
null
null
import time from logic.axis import Axis e = Axis.azimuth() #e.motor.set_dist(209) #e.move_angle(degrees=-90) #time.sleep(1) #e.move_angle(seconds=340) from skyfield.api import load from skyfield.api import Topos ts = load.timescale() planets = load('de421.bsp') earth = planets["earth"] moon = planets["moon"] j...
19.583333
65
0.661702
147
940
4.190476
0.496599
0.012987
0.019481
0.055195
0
0
0
0
0
0
0
0.041131
0.17234
940
47
66
20
0.750643
0.152128
0
0
0
0
0.148101
0
0
0
0
0
0
1
0
false
0
0.16
0
0.16
0.08
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c697a310f0427f6467e603fb1ffba4ed0518bf0
717
py
Python
DFRobot_MAX31855.py
Red-Hide/ZeroP_Software
8cc1b39966bb69870efabfc47c08aac7af1090c5
[ "MIT" ]
null
null
null
DFRobot_MAX31855.py
Red-Hide/ZeroP_Software
8cc1b39966bb69870efabfc47c08aac7af1090c5
[ "MIT" ]
null
null
null
DFRobot_MAX31855.py
Red-Hide/ZeroP_Software
8cc1b39966bb69870efabfc47c08aac7af1090c5
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import time import sys import pigpio as GPIO MAX31855_ADDR = 0x10 pi = GPIO.pi() class DFRobot_MAX31855: def __init__(self): self.i2c = pi.i2c_open(1,MAX31855_ADDR) def readData(self): a = pi.i2c_read_byte_data(self.i2c.handle, 0x00) b = pi.i2c_read_byte_data(self.i2c.handl...
21.727273
53
0.595537
119
717
3.420168
0.378151
0.085995
0.088452
0.127764
0.334152
0.29484
0.29484
0.29484
0
0
0
0.111524
0.249651
717
32
54
22.40625
0.644981
0.101813
0
0.083333
0
0
0
0
0
0
0.048362
0
0
1
0.125
false
0
0.125
0
0.458333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c6a85a9d1b092254c2132467b21aaf79fda4140
1,060
py
Python
student-project-management-devv/code.py
deveshk72/dsmp-pre-work
f7bdcd976bcff6c93819f35fb5ce013a0d2b9a10
[ "MIT" ]
null
null
null
student-project-management-devv/code.py
deveshk72/dsmp-pre-work
f7bdcd976bcff6c93819f35fb5ce013a0d2b9a10
[ "MIT" ]
null
null
null
student-project-management-devv/code.py
deveshk72/dsmp-pre-work
f7bdcd976bcff6c93819f35fb5ce013a0d2b9a10
[ "MIT" ]
null
null
null
# -------------- # Code starts here class_1 = ['Geoffrey Hinton','Andrew Ng','Sebastian Raschka','Yoshua Bengio'] class_2 = ['Hilary Mason','Carla Gentry','Corinna Cortes'] new_class = class_1+class_2 print(new_class) new_class.append('Peter Warden') print(new_class) new_class.remove('Carla Gentry') print(new_class)...
16.825397
77
0.683019
144
1,060
4.895833
0.423611
0.068085
0.079433
0.04539
0.133333
0.073759
0
0
0
0
0
0.032468
0.128302
1,060
62
78
17.096774
0.730519
0.190566
0
0.125
0
0
0.263658
0
0
0
0
0
0
1
0
false
0
0
0
0
0.375
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c6c408433b03a9fe094016964841137491b8945
812
py
Python
src/paper/management/commands/recalc_discussion_count.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
18
2021-05-20T13:20:16.000Z
2022-02-11T02:40:18.000Z
src/paper/management/commands/recalc_discussion_count.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
109
2021-05-21T20:14:23.000Z
2022-03-31T20:56:10.000Z
src/paper/management/commands/recalc_discussion_count.py
ResearchHub/ResearchHub-Backend-Open
d36dca33afae2d442690694bb2ab17180d84bcd3
[ "MIT" ]
4
2021-05-17T13:47:53.000Z
2022-02-12T10:48:21.000Z
''' Recalculates paper discussion count ''' from django.core.management.base import BaseCommand from paper.models import Paper class Command(BaseCommand): def handle(self, *args, **options): papers = Paper.objects.iterator() count = Paper.objects.count() print('Recalculating paper discus...
30.074074
79
0.587438
86
812
5.488372
0.488372
0.190678
0.169492
0.139831
0
0
0
0
0
0
0
0.001802
0.316502
812
26
80
31.230769
0.848649
0.043103
0
0
0
0
0.219766
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.222222
0.222222
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c6dee994fb01185ef6915184567b795aa87c303
2,291
py
Python
ccc/py/ccc05j5.py
tylertian123/CompSciSolutions
33769a20ea613439f92055b40deeac4927cb0a91
[ "MIT" ]
null
null
null
ccc/py/ccc05j5.py
tylertian123/CompSciSolutions
33769a20ea613439f92055b40deeac4927cb0a91
[ "MIT" ]
null
null
null
ccc/py/ccc05j5.py
tylertian123/CompSciSolutions
33769a20ea613439f92055b40deeac4927cb0a91
[ "MIT" ]
null
null
null
""" ccc05j5.py: Python solution to CCC '05 J5 (Bananas) """ # Create these sets to hold the known valid and invalid A-words to save time # We already know that 'A' is a valid A-word and an empty string is always invalid known_awords = set(['A']) known_nonawords = set(['']) def is_aword(word): # First try looking i...
32.728571
93
0.588826
342
2,291
3.877193
0.333333
0.031674
0.058824
0.039216
0.175716
0.156863
0
0
0
0
0
0.011858
0.337407
2,291
69
94
33.202899
0.86166
0.389786
0
0.355556
0
0
0.007273
0
0
0
0
0
0
1
0.044444
false
0.022222
0
0
0.266667
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c6f489d7f4ddd337cd5c3487bd38ef583744941
1,004
py
Python
07/p1_test.py
en0/aoc2021
14c74f872319f023b7ee4293009445dab315716f
[ "Unlicense" ]
null
null
null
07/p1_test.py
en0/aoc2021
14c74f872319f023b7ee4293009445dab315716f
[ "Unlicense" ]
null
null
null
07/p1_test.py
en0/aoc2021
14c74f872319f023b7ee4293009445dab315716f
[ "Unlicense" ]
null
null
null
from unittest import TestCase, main from aocfw import TestCaseMixin from p1 import Solution class SolutionTests(TestCase, TestCaseMixin): solution = Solution source = "sample.txt" given = 37 def test_find_target(self): data = self.get_parsed_data() self.assertEqual(Solution().get_tar...
25.74359
56
0.656375
137
1,004
4.481752
0.270073
0.091205
0.143322
0.12215
0.490228
0.372964
0.332248
0.332248
0.332248
0.332248
0
0.028758
0.238048
1,004
38
57
26.421053
0.773856
0
0
0.178571
0
0
0.017928
0
0
0
0
0
0.178571
1
0.178571
false
0
0.107143
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
5c6f61323eed68703a3ed669efbf6f92ee935246
2,569
py
Python
server.py
telminov/prometheus-rabbitmq-exporter
d13f67102c60853132dc3efcb8a2d54b1bd2e2ac
[ "MIT" ]
null
null
null
server.py
telminov/prometheus-rabbitmq-exporter
d13f67102c60853132dc3efcb8a2d54b1bd2e2ac
[ "MIT" ]
null
null
null
server.py
telminov/prometheus-rabbitmq-exporter
d13f67102c60853132dc3efcb8a2d54b1bd2e2ac
[ "MIT" ]
null
null
null
#! /usr/bin/env python import argparse import yaml from aiohttp import web, ClientSession, TCPConnector, BasicAuth import async_timeout parser = argparse.ArgumentParser(description='Prometheus rabbitmq exporter.') parser.add_argument('-c', '--config', dest='config', default='config.yml', help='Path...
33.802632
120
0.606462
309
2,569
4.92233
0.343042
0.00789
0.00789
0.017094
0.019724
0.019724
0
0
0
0
0
0.010493
0.258077
2,569
75
121
34.253333
0.787513
0.008174
0
0
0
0.017241
0.207303
0.053396
0
0
0
0
0
1
0.034483
false
0.017241
0.068966
0
0.206897
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7148885a4bcc7103f891edb01fd7a7ba508c40
1,705
py
Python
olea/core/errors/__init__.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
2
2020-06-18T03:25:52.000Z
2020-06-18T07:33:45.000Z
olea/core/errors/__init__.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
15
2021-01-28T07:11:04.000Z
2021-05-24T07:11:37.000Z
olea/core/errors/__init__.py
Pix-00/olea
98bee1fd8866a3929f685a139255afb7b6813f31
[ "Apache-2.0" ]
null
null
null
__all__ = [ 'AccessDenied', 'AccountDeactivated', 'BaseError', 'DoesNotMeetRequirements', 'DuplicatedRecord', 'FileExist', 'FileVerConflict', 'InvalidAccessToken', 'InvalidCredential', 'InvalidRefreshToken', 'InvalidReply', 'InvalidSource', 'NotQualifiedToPick', 'PermissionDenied', 'PitStatusLocked'...
46.081081
99
0.651613
134
1,705
8.074627
0.529851
0.055453
0.073937
0
0
0
0
0
0
0
0
0.001542
0.239296
1,705
36
100
47.361111
0.832691
0.053372
0
0
0
0
0.204444
0.029206
0
0
0
0
0
1
0.071429
false
0
0.285714
0.035714
0.392857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7771b8e689f85c44bb0476f8c6fdb2d2047022
3,592
py
Python
encodeAudio.py
TimelessParadise/encodeAudio
a17403628699e2ff08a02e60f8bfb93c786c4bb6
[ "MIT" ]
null
null
null
encodeAudio.py
TimelessParadise/encodeAudio
a17403628699e2ff08a02e60f8bfb93c786c4bb6
[ "MIT" ]
null
null
null
encodeAudio.py
TimelessParadise/encodeAudio
a17403628699e2ff08a02e60f8bfb93c786c4bb6
[ "MIT" ]
null
null
null
import subprocess as sp import shlex import os import argparse import glob import sys extensionsTuple = (".m2ts", ".wav", ".flac") def wavEncode(filePath): sp.run( shlex.split( f"eac3to \"{filePath}\" -log=NUL \"{os.path.splitext(filePath)[0]}.wav\"" ) ) def wavEncode2(filePath, t...
35.92
138
0.560412
419
3,592
4.756563
0.260143
0.060211
0.056197
0.088309
0.510286
0.479177
0.375314
0.311089
0.311089
0.293026
0
0.008557
0.284243
3,592
99
139
36.282828
0.766628
0
0
0.41573
0
0.011236
0.195991
0.019488
0
0
0
0
0
1
0.044944
false
0
0.067416
0
0.11236
0.011236
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7898a236d93a0f71c8b6e1ef252d0e74cabda8
12,285
py
Python
augmentation/methods/robust/utils.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
28
2020-08-19T02:59:37.000Z
2022-03-17T18:10:24.000Z
augmentation/methods/robust/utils.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
null
null
null
augmentation/methods/robust/utils.py
SaraR-1/model-patching
97b30bad4bb4575a5f3a4cc23fbd333b10a057a8
[ "Apache-2.0" ]
3
2021-01-29T10:20:14.000Z
2021-11-15T17:06:27.000Z
import tensorflow as tf import wandb import yaml import subprocess from augmentation.utilities.visualize import gallery from augmentation.utilities.wandb import * from augmentation.utilities.checkpoint import load_tf_optimizer_state def rewrite_config_for_resumption(config): config.prev_wandb_entity = config.wand...
48.944223
156
0.641758
1,533
12,285
4.87606
0.204827
0.041739
0.02087
0.021405
0.301672
0.247893
0.185552
0.162943
0.125485
0.097926
0
0.013639
0.265934
12,285
250
157
49.14
0.815258
0.173871
0
0.115152
0
0
0.0807
0.039
0
0
0
0
0.012121
1
0.066667
false
0
0.042424
0
0.236364
0.030303
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c794db4e212c6cf7d9537acd92f512aa6cdb0cf
1,046
py
Python
main.py
Jodagito/Pandomit
19278aee951d1238272a18473ea1581380f437d7
[ "MIT" ]
null
null
null
main.py
Jodagito/Pandomit
19278aee951d1238272a18473ea1581380f437d7
[ "MIT" ]
null
null
null
main.py
Jodagito/Pandomit
19278aee951d1238272a18473ea1581380f437d7
[ "MIT" ]
null
null
null
import os import parser import pandas as pd def file_converter(filename, expected_format): """Given a file returns a converted file to a preferred format""" read_methods = [method for method in dir(pd) if method[:4] == 'read'] i = 0 while os.path.exists("converted filename {}.".format(i) + expected_f...
33.741935
131
0.58891
121
1,046
4.892562
0.454545
0.094595
0.037162
0.081081
0.158784
0.158784
0.158784
0.158784
0
0
0
0.005427
0.295411
1,046
30
132
34.866667
0.797829
0.056405
0
0.083333
0
0
0.095821
0
0
0
0
0
0
1
0.041667
false
0
0.125
0
0.166667
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
5c7a952effb826e1fbf8fc0f5e9663289f251cf5
4,317
py
Python
apps/run_command_line.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
apps/run_command_line.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
apps/run_command_line.py
MattSegal/AuTuMN
49d78d9c07ea3825ac31682a4d124eab9d3365ce
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
""" Runs AuTuMN apps You can access this script from your CLI by running: python -m apps --help """ import os import click from . import covid_19, marshall_islands, mongolia, sir_example from .marshall_islands.calibration import run_calibration_chain as run_rmi_calibration_chain from .mongolia.calibration impo...
28.401316
100
0.756544
623
4,317
4.956661
0.163724
0.075777
0.042098
0.048575
0.490609
0.462435
0.32772
0.261658
0.261658
0.172927
0
0.003158
0.119759
4,317
151
101
28.589404
0.809474
0.145471
0
0.202247
0
0
0.089136
0
0
0
0
0
0.022472
1
0.179775
false
0
0.11236
0
0.292135
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7b170332c963d2c748af8230525d7348d1ce37
1,851
py
Python
Toolkits/Discovery/meta/searx/searx/engines/translated.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
4
2018-09-07T15:35:24.000Z
2019-03-27T09:48:12.000Z
Toolkits/Discovery/meta/searx/searx/engines/translated.py
roscopecoltran/SniperKit-Core
4600dffe1cddff438b948b6c22f586d052971e04
[ "MIT" ]
371
2020-03-04T21:51:56.000Z
2022-03-31T20:59:11.000Z
searx/engines/translated.py
xu1991/open
5398dab4ba669b3ca87d9fe26eb24431c45f153e
[ "CC0-1.0" ]
3
2019-06-18T19:57:17.000Z
2020-11-06T03:55:08.000Z
""" MyMemory Translated @website https://mymemory.translated.net/ @provide-api yes (https://mymemory.translated.net/doc/spec.php) @using-api yes @results JSON @stable yes @parse url, title, content """ import re from sys import version_info from searx.utils import is_valid_lang if version_...
26.826087
93
0.590492
247
1,851
4.222672
0.303644
0.099712
0.067114
0.053691
0.141898
0
0
0
0
0
0
0.011594
0.254457
1,851
68
94
27.220588
0.744203
0.116153
0
0.065217
0
0.021739
0.192474
0
0
0
0
0
0
1
0.043478
false
0
0.065217
0
0.195652
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7c7bbed183e6691077921479d848eb10529f59
4,849
py
Python
core/python_src/test_protobuf.py
kellpossible/libgdx-atc-sim
b469ccc3245004d36a9e0f6d1d27651182ba2962
[ "MIT" ]
null
null
null
core/python_src/test_protobuf.py
kellpossible/libgdx-atc-sim
b469ccc3245004d36a9e0f6d1d27651182ba2962
[ "MIT" ]
1
2019-07-03T04:28:57.000Z
2019-07-03T04:28:57.000Z
core/python_src/test_protobuf.py
kellpossible/libgdx-atc-sim
b469ccc3245004d36a9e0f6d1d27651182ba2962
[ "MIT" ]
2
2019-05-06T14:54:26.000Z
2021-02-16T03:33:16.000Z
import DebugDataFeedServe_pb2 as NetworkInterfacePacket import socket import sys import time import math from google.protobuf.internal import encoder from google.protobuf.internal import decoder from threading import Thread from Queue import Queue def build_test_packet(dt): t = int(round(time.time() * 1000)) ...
28.028902
80
0.655599
585
4,849
5.270085
0.360684
0.046708
0.036328
0.015569
0.226727
0.1518
0.117418
0.117418
0.117418
0.117418
0
0.037579
0.253661
4,849
172
81
28.19186
0.814313
0.135698
0
0.280702
0
0
0.042895
0
0
0
0.000959
0
0
1
0.096491
false
0
0.078947
0.008772
0.245614
0.04386
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c7ef61a5d394fa533e6ad33c697d5d4aacf0bf9
645
py
Python
scripts/annotation/extract_cds_by_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
10
2015-04-28T14:15:04.000Z
2021-03-15T00:07:38.000Z
scripts/annotation/extract_cds_by_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
null
null
null
scripts/annotation/extract_cds_by_gff.py
mahajrod/MAVR
4db74dff7376a2ffe4426db720b241de9198f329
[ "MIT" ]
6
2017-03-16T22:38:41.000Z
2021-08-11T00:22:52.000Z
#!/usr/bin/env python __author__ = 'Sergei F. Kliver' import argparse from RouToolPa.Tools.Expression import Gffread parser = argparse.ArgumentParser() parser.add_argument("-i", "--input", action="store", dest="input", required=True, help="Input gff with annotation") parser.add_argument("-g", "--...
33.947368
83
0.665116
80
645
5.25
0.525
0.064286
0.121429
0
0
0
0
0
0
0
0
0
0.176744
645
18
84
35.833333
0.79096
0.031008
0
0
0
0
0.229167
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
5c826613b4eb9967c2381828b12ff8fbe1540c84
6,879
py
Python
demo/python/picovoice_demo_mic.py
soltrinox/picovoice
2fb47389c7031c3a365eca40edd67cef1dc152c5
[ "Apache-2.0" ]
null
null
null
demo/python/picovoice_demo_mic.py
soltrinox/picovoice
2fb47389c7031c3a365eca40edd67cef1dc152c5
[ "Apache-2.0" ]
null
null
null
demo/python/picovoice_demo_mic.py
soltrinox/picovoice
2fb47389c7031c3a365eca40edd67cef1dc152c5
[ "Apache-2.0" ]
null
null
null
# # Copyright 2020-2021 Picovoice Inc. # # You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE" # file accompanying this source. # # Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on # an "AS ...
35.096939
120
0.643989
814
6,879
5.218673
0.259214
0.027542
0.052024
0.032957
0.327919
0.221281
0.129473
0.102166
0.037665
0.019303
0
0.006328
0.264864
6,879
195
121
35.276923
0.833696
0.07065
0
0.104167
0
0.020833
0.21921
0.014886
0
0
0
0
0
1
0.041667
false
0
0.0625
0
0.111111
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c862c8e739f0576851e5f917cdfc1912121180e
700
py
Python
algorithms_and_data_structures/algorithms/sorting/insertion_sort/insertion_sort_naive.py
JCPedroza/algorithms-and-data-structures-py
e8532060e82bb7f56d667c587469dea2921117df
[ "MIT" ]
2
2022-01-14T01:33:24.000Z
2022-01-14T03:23:41.000Z
algorithms_and_data_structures/algorithms/sorting/insertion_sort/insertion_sort_naive.py
JCPedroza/algorithms-and-data-structures-py
e8532060e82bb7f56d667c587469dea2921117df
[ "MIT" ]
1
2022-01-14T03:26:58.000Z
2022-01-14T03:26:58.000Z
algorithms_and_data_structures/algorithms/sorting/insertion_sort/insertion_sort_naive.py
JCPedroza/algorithms-and-data-structures-py
e8532060e82bb7f56d667c587469dea2921117df
[ "MIT" ]
1
2022-01-14T03:23:45.000Z
2022-01-14T03:23:45.000Z
def insertion_sort(nums: list[float]) -> list[float]: """Sorts a list in-place using the insertion sort approach. This version does more comparisons and moves more data than necessary, so it is sub-optimal. Time complexity: O(n) best O(n^2) worst O(n^2) average. Space complexity: O(n) total O(1) a...
24.137931
77
0.607143
104
700
4.067308
0.538462
0.132388
0.06383
0.113475
0.120567
0.099291
0.099291
0
0
0
0
0.017928
0.282857
700
28
78
25
0.824701
0.455714
0
0
0
0
0.04142
0
0
0
0
0
0
1
0.111111
false
0
0
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
5c86d2ba40619a738f5d8ad8d925e6ddb561978c
6,010
py
Python
drf_localize/serializers.py
ebs-integrator/DRF-Localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
3
2022-03-10T12:34:18.000Z
2022-03-14T08:52:22.000Z
drf_localize/serializers.py
ebs-integrator/drf-localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
null
null
null
drf_localize/serializers.py
ebs-integrator/drf-localize
85201157027770ff3859842f04ce8a3e302ab072
[ "MIT" ]
null
null
null
from django.utils.translation import ugettext_lazy as _ from rest_framework.serializers import ( Serializer, JSONField, ModelSerializer, ) from rest_framework.utils.serializer_helpers import BindingDict from rest_framework.exceptions import ValidationError from rest_framework.fields import empty from django...
35.56213
136
0.612313
656
6,010
5.458841
0.233232
0.073722
0.042726
0.018431
0.098297
0.062832
0.062832
0.045239
0.045239
0.045239
0
0.010989
0.303494
6,010
168
137
35.77381
0.844482
0.159401
0
0.165138
0
0
0.018578
0
0
0
0
0
0
1
0.091743
false
0.018349
0.073395
0.009174
0.284404
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c8fb708a31f92aa30ed34d57058f849faa1abff
488
py
Python
S4/S4 Decompiler/Old Libraries/xdis/opcodes/opcode_23.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Decompiler/Old Libraries/xdis/opcodes/opcode_23.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Decompiler/Old Libraries/xdis/opcodes/opcode_23.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
# (C) Copyright 2017, 2019 by Rocky Bernstein """ CPython 2.3 bytecode opcodes This is a like Python 2.3's opcode.py with some classification of stack usage. """ import xdis.opcodes.opcode_2x as opcode_2x from xdis.opcodes.base import ( finalize_opcodes, format_extended_arg, init_opdata, update_pj2, )...
18.074074
62
0.741803
76
488
4.552632
0.592105
0.017341
0.098266
0
0
0
0
0
0
0
0
0.046455
0.161885
488
26
63
18.769231
0.799511
0.313525
0
0
0
0
0.036697
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c8fd73e664627880e0ceebfd049cc8bfc1a9308
2,302
py
Python
prodj/pdblib/track.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
66
2018-01-16T09:25:30.000Z
2022-03-24T14:58:44.000Z
prodj/pdblib/track.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
25
2018-05-16T12:17:11.000Z
2021-02-06T11:09:03.000Z
prodj/pdblib/track.py
beauburrows/python-prodj-link
1cc6b6c19e38ac09fadb91420e45adbe2c9691bb
[ "Apache-2.0" ]
18
2018-03-15T13:54:40.000Z
2022-03-24T20:49:43.000Z
from construct import Struct, Int8ul, Int16ul, Int32ul, Array, Const, Tell, Default from .piostring import PioString, IndexedPioString TRACK_ENTRY_MAGIC = 0x24 Track = Struct( "entry_start" / Tell, "magic" / Const(TRACK_ENTRY_MAGIC, Int16ul), "index_shift" / Int16ul, # the index inside the page <<5 (0x00, 0x20,...
37.129032
120
0.682016
278
2,302
5.503597
0.485612
0.052941
0.019608
0.030065
0.091503
0.091503
0.091503
0.091503
0.091503
0.091503
0
0.084211
0.174631
2,302
61
121
37.737705
0.721053
0.213727
0
0
0
0
0.233221
0
0
0
0.002237
0
0
1
0
false
0
0.033898
0
0.033898
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c92a88457ea25794c1ceb7149e058a6f314e651
1,301
py
Python
core/wakeup/SnowboyWakeup.py
aibittek/WallERobot
956f47ce91cb8e89d67c7a3df23e1a7014ffc1e5
[ "MIT" ]
1
2021-07-06T04:13:56.000Z
2021-07-06T04:13:56.000Z
core/wakeup/SnowboyWakeup.py
aibittek/WallERobot
956f47ce91cb8e89d67c7a3df23e1a7014ffc1e5
[ "MIT" ]
null
null
null
core/wakeup/SnowboyWakeup.py
aibittek/WallERobot
956f47ce91cb8e89d67c7a3df23e1a7014ffc1e5
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os import sys import wakeup import snowboydetect class SnowboyWakeup(wakeup.Wakeup): def __init__(self, args): print(args) tm = type(args['models']) ts = type(args['sensitivity']) if tm is not list: args['models'] = [args['models']] ...
36.138889
86
0.617218
145
1,301
5.413793
0.4
0.09172
0.057325
0.033121
0.073885
0
0
0
0
0
0
0.003071
0.249039
1,301
35
87
37.171429
0.800409
0.015373
0
0.068966
0
0
0.139171
0
0
0
0
0
0.034483
1
0.068966
false
0
0.137931
0.034483
0.275862
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
5c92ee282d9ec36a7c22cb593bc6dbc705b019f8
637
py
Python
graycode.py
pritam19798/BPCS-Steganography
3e0025f34bc42d4c5de1a84177a130ff33d3e35e
[ "MIT" ]
null
null
null
graycode.py
pritam19798/BPCS-Steganography
3e0025f34bc42d4c5de1a84177a130ff33d3e35e
[ "MIT" ]
null
null
null
graycode.py
pritam19798/BPCS-Steganography
3e0025f34bc42d4c5de1a84177a130ff33d3e35e
[ "MIT" ]
null
null
null
import cv2 def grayCode(n): return n ^ (n >> 1) def inversegrayCode(n): inv = 0; while(n): inv = inv ^ n; n = n >> 1; return inv; def image_grayCode(image): row,col,channel=image.shape for r in range(row): for c in range(col): for ch in range(channel): ...
19.30303
64
0.549451
94
637
3.702128
0.234043
0.12069
0.08046
0.103448
0.597701
0.597701
0.482759
0.482759
0.482759
0.482759
0
0.009174
0.315542
637
32
65
19.90625
0.788991
0
0
0.434783
0
0
0
0
0
0
0
0
0
1
0.173913
false
0
0.043478
0.043478
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c973fe5744d6e662b689c47a3285c65fec2e1df
6,768
py
Python
WRN-backbone-32/utils/utils_my.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
5
2021-05-23T13:05:45.000Z
2022-02-13T21:40:59.000Z
WRN-backbone-32/utils/utils_my.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
null
null
null
WRN-backbone-32/utils/utils_my.py
ashleylqx/AIB
77e418cac52f0ca5f2a7c54927468a7bd75a8fc9
[ "MIT" ]
3
2021-08-11T03:23:31.000Z
2021-11-17T01:48:52.000Z
from nested_dict import nested_dict from functools import partial import torch from torch.nn.init import kaiming_normal_ from torch.nn.parallel._functions import Broadcast from torch.nn.parallel import scatter, parallel_apply, gather import torch.nn.functional as F from torch.distributions import Normal, Independent, k...
31.924528
130
0.621602
1,048
6,768
3.879771
0.22042
0.045991
0.011805
0.012051
0.283817
0.27816
0.252336
0.245942
0.23881
0.21274
0
0.024801
0.219563
6,768
211
131
32.075829
0.744983
0.218824
0
0.169492
0
0
0.038055
0
0
0
0
0
0
1
0.169492
false
0
0.110169
0.067797
0.457627
0.050847
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5c9cd4d2ff71a7b5c5769ea7aac45585efe9e300
913
py
Python
src/main.py
ChiaCatPool/ChiaSignature
114cce3b1e811183c85ef745e21f564b9a6e718c
[ "MIT" ]
2
2021-05-27T09:36:54.000Z
2021-10-12T08:03:08.000Z
src/main.py
Pow-Duck/ChiaSignature
114cce3b1e811183c85ef745e21f564b9a6e718c
[ "MIT" ]
null
null
null
src/main.py
Pow-Duck/ChiaSignature
114cce3b1e811183c85ef745e21f564b9a6e718c
[ "MIT" ]
null
null
null
from fastapi import FastAPI, Response from pydantic import BaseModel import src.option as option import src.plot as plot app = FastAPI() @app.get("/") async def root(): return "Chia Signature Version: 0.0.1 https://github.com/Pow-Duck/ChiaSignature" class InputDataModel(BaseModel): farmer_public_key: str ...
31.482759
120
0.731654
130
913
4.953846
0.5
0.069876
0.069876
0.062112
0.170807
0.170807
0.170807
0.170807
0.170807
0.170807
0
0.017173
0.170865
913
28
121
32.607143
0.833554
0
0
0
0
0
0.166484
0
0
0
0
0
0
1
0
false
0
0.190476
0
0.47619
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5c9e7f1f755ab1c025d13ac796c3080931f4af5f
9,720
py
Python
notifandhelpline.py
deepthiinduri/TRACK_THE_COVID
c1f3773c5d7e9f41fe464786c6e29bb419ab78e0
[ "Apache-2.0" ]
1
2021-07-21T08:13:37.000Z
2021-07-21T08:13:37.000Z
notifandhelpline.py
deepthiinduri/TRACK_THE_COVID
c1f3773c5d7e9f41fe464786c6e29bb419ab78e0
[ "Apache-2.0" ]
null
null
null
notifandhelpline.py
deepthiinduri/TRACK_THE_COVID
c1f3773c5d7e9f41fe464786c6e29bb419ab78e0
[ "Apache-2.0" ]
1
2022-02-28T13:05:29.000Z
2022-02-28T13:05:29.000Z
from tkinter import * from PIL import ImageTk, Image ,ImageDraw, ImageFont, ImageFilter import json import html5lib import plyer import urllib.request import imageio import webbrowser import requests import bs4 def notif_and_helplines(): url = "https://www.mohfw.gov.in/" html_data = requests.get(url) bs ...
66.575342
315
0.648045
1,347
9,720
4.586488
0.244989
0.037876
0.052282
0.027193
0.362901
0.303173
0.240693
0.207996
0.197313
0.140175
0
0.074192
0.188786
9,720
145
316
67.034483
0.704122
0
0
0.014925
0
0.022388
0.222326
0.011484
0.014925
0
0
0
0
1
0.089552
false
0
0.074627
0
0.164179
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5ca16157b5f09400ffca7155b0bd7515dc8fa4bf
790
py
Python
tests/test_mean_std.py
rdemaria/xfields
0f1a984c4dda7cd5dadd199e748fb2b584a096c9
[ "MIT" ]
null
null
null
tests/test_mean_std.py
rdemaria/xfields
0f1a984c4dda7cd5dadd199e748fb2b584a096c9
[ "MIT" ]
null
null
null
tests/test_mean_std.py
rdemaria/xfields
0f1a984c4dda7cd5dadd199e748fb2b584a096c9
[ "MIT" ]
null
null
null
import numpy as np import xobjects as xo import xfields as xf def test_mean_and_std(): for CTX in xo.ContextCpu, xo.ContextPyopencl, xo.ContextCupy: if CTX not in xo.context.available: continue print(f"Test {CTX}") ctx = CTX() n_x=100 a_host = np.array(np.ran...
28.214286
65
0.640506
129
790
3.689922
0.348837
0.073529
0.12605
0.063025
0.451681
0.451681
0.338235
0.338235
0.338235
0.243697
0
0.00678
0.253165
790
27
66
29.259259
0.8
0
0
0.2
0
0
0.012658
0
0
0
0
0
0.2
1
0.05
false
0
0.15
0
0.2
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5ca225f5afe43c654b35619caef218fd0f7a679c
3,286
py
Python
promort/predictions_manager/serializers.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
3
2016-12-28T08:12:51.000Z
2020-07-08T21:03:48.000Z
promort/predictions_manager/serializers.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
37
2016-11-11T09:57:45.000Z
2022-03-31T16:04:53.000Z
promort/predictions_manager/serializers.py
lucalianas/ProMort
63702e1b573025e1f956f7d7a0e829f655e728f9
[ "MIT" ]
4
2016-04-22T07:49:40.000Z
2021-09-22T08:09:44.000Z
# Copyright (c) 2021, CRS4 # # Permission is hereby granted, free of charge, to any person obtaining a copy of # this software and associated documentation files (the "Software"), to deal in # the Software without restriction, including without limitation the rights to # use, copy, modify, merge, publish, distribu...
38.209302
102
0.714242
378
3,286
6.119048
0.391534
0.034587
0.030264
0.034587
0.35668
0.316904
0.304799
0.304799
0.242542
0.182879
0
0.0019
0.19933
3,286
85
103
38.658824
0.877233
0.322276
0
0.510638
0
0
0.158133
0
0
0
0
0
0
1
0.042553
false
0
0.12766
0
0.489362
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5cac943593c7fe65cc7bacbda5a3b4ec95fe7dc4
3,764
py
Python
research/im2txt/im2txt/gradcam_wrapper.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
19
2018-09-26T03:52:59.000Z
2021-08-19T08:41:06.000Z
research/im2txt/im2txt/gradcam_wrapper.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
13
2020-06-29T03:53:45.000Z
2022-03-11T23:28:19.000Z
research/im2txt/im2txt/gradcam_wrapper.py
dorazhao99/women-snowboard
9cb2569d7a3cbb846d10aabae825ead9a6e1de29
[ "Apache-2.0" ]
6
2018-09-19T17:07:00.000Z
2021-03-21T14:20:25.000Z
"""Model wrapper class for performing GradCam visualization with a ShowAndTellModel.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from im2txt import show_and_tell_model from im2txt.inference_utils import inference_wrapper_base import numpy as np im...
36.192308
212
0.7144
578
3,764
4.385813
0.32699
0.041026
0.051282
0.020513
0.16568
0.074162
0.066272
0.066272
0.066272
0.066272
0
0.029477
0.161796
3,764
103
213
36.543689
0.77401
0.096706
0
0
0
0
0.073121
0.011992
0
0
0
0
0
1
0.056338
false
0
0.253521
0
0.352113
0.028169
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cb1d1c1b2d0620a0d048a8f6d7b4fcc7668f049
1,851
py
Python
tests/tcn/test_keras_onnx.py
ggardiakos/timemachines
845001fc6ca3005d3612ef8f44040f5d1e15d9b8
[ "MIT" ]
null
null
null
tests/tcn/test_keras_onnx.py
ggardiakos/timemachines
845001fc6ca3005d3612ef8f44040f5d1e15d9b8
[ "MIT" ]
null
null
null
tests/tcn/test_keras_onnx.py
ggardiakos/timemachines
845001fc6ca3005d3612ef8f44040f5d1e15d9b8
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: Apache-2.0 from timemachines.skaters.tcn.tcninclusiontraining import using_tcntraining if using_tcntraining: from onnxruntime import InferenceSession import numpy as np from tensorflow import keras from tensorflow.keras import layers, Input def test_keras_onnx_runtime()...
34.277778
113
0.558617
196
1,851
5.153061
0.505102
0.035644
0.027723
0.025743
0.083168
0.041584
0.041584
0
0
0
0
0.013591
0.244733
1,851
53
114
34.924528
0.70887
0.179363
0
0
0
0
0.022551
0
0
0
0
0
0.038462
1
0.038462
false
0
0.230769
0
0.269231
0.192308
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cb4f3d7bb829612fae0f449b3de61ecc0409094
1,476
py
Python
software/Opal/spud/diamond/build/lib.linux-x86_64-2.7/diamond/databuttonswidget.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-11T02:39:46.000Z
2020-05-11T03:08:38.000Z
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/databuttonswidget.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
null
null
null
software/multifluids_icferst/libspud/diamond/build/lib.linux-x86_64-2.7/diamond/databuttonswidget.py
msc-acse/acse-9-independent-research-project-Wade003
cfcba990d52ccf535171cf54c0a91b184db6f276
[ "MIT" ]
2
2020-05-21T22:50:19.000Z
2020-10-28T17:16:31.000Z
#!/usr/bin/env python # This file is part of Diamond. # # Diamond is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # ...
30.75
79
0.70664
199
1,476
5.100503
0.517588
0.014778
0.038424
0.056158
0.193103
0.124138
0.068966
0
0
0
0
0.000845
0.197832
1,476
47
80
31.404255
0.856419
0.45935
0
0
0
0
0.072797
0
0
0
0
0
0
1
0.142857
false
0
0.095238
0
0.380952
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cb5891ba04d0b3c481ca3b5fc5261fc95bd5a1e
5,274
py
Python
metapose/launch_iterative_solver.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
metapose/launch_iterative_solver.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
metapose/launch_iterative_solver.py
dumpmemory/google-research
bc87d010ab9086b6e92c3f075410fa6e1f27251b
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # 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 applicab...
37.140845
79
0.695108
795
5,274
4.296855
0.300629
0.036885
0.012295
0.023419
0.147248
0.074063
0.028689
0.016979
0.016979
0
0
0.031591
0.183732
5,274
141
80
37.404255
0.761905
0.142207
0
0
0
0
0.269496
0.025994
0
0
0
0
0
1
0.009804
false
0
0.058824
0
0.068627
0.009804
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cb679704e23a1b0acbe6405efd9aa5634185c0e
3,450
py
Python
models.py
RCSnyder/subreddit_scraper
17062c585f2dc0136e6e4ecb914d1ff456c80069
[ "MIT" ]
null
null
null
models.py
RCSnyder/subreddit_scraper
17062c585f2dc0136e6e4ecb914d1ff456c80069
[ "MIT" ]
null
null
null
models.py
RCSnyder/subreddit_scraper
17062c585f2dc0136e6e4ecb914d1ff456c80069
[ "MIT" ]
null
null
null
from abc import ABC, abstractmethod import nltk nltk.download('vader_lexicon') from nltk.sentiment.vader import SentimentIntensityAnalyzer s = SentimentIntensityAnalyzer() import flair flair_sentiment = flair.models.TextClassifier.load('en-sentiment') """ from azure.ai.textanalytics import TextAnalyticsClient from a...
31.944444
140
0.655072
419
3,450
5.334129
0.334129
0.008054
0.03132
0.034004
0.09038
0.021477
0
0
0
0
0
0.017898
0.238841
3,450
107
141
32.242991
0.833206
0.116232
0
0.125
0
0
0.055556
0
0
0
0
0
0
1
0.15
false
0.025
0.1
0.025
0.45
0.025
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cc062591cfe12fa5a06316443ec900f3dbf315c
1,139
py
Python
sagemaker-pyspark-sdk/tests/wrapper_test.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
261
2017-11-30T04:53:01.000Z
2022-03-27T14:52:46.000Z
sagemaker-pyspark-sdk/tests/wrapper_test.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
114
2017-12-15T23:10:09.000Z
2022-01-07T18:52:30.000Z
sagemaker-pyspark-sdk/tests/wrapper_test.py
hyandell/sagemaker-spark
0149cf0f52562008a1a163e455207bb6d00d3e4a
[ "Apache-2.0" ]
127
2017-11-30T18:53:51.000Z
2022-03-13T18:58:10.000Z
import os import pytest from pyspark import SparkConf, SparkContext from sagemaker_pyspark import classpath_jars from sagemaker_pyspark.wrapper import Option, ScalaMap, ScalaList @pytest.fixture(autouse=True) def with_spark_context(): os.environ['SPARK_CLASSPATH'] = ":".join(classpath_jars()) conf = (SparkC...
24.76087
79
0.697103
138
1,139
5.514493
0.384058
0.063075
0.09067
0.118265
0
0
0
0
0
0
0
0.004228
0.169447
1,139
45
80
25.311111
0.800211
0.007024
0
0.071429
0
0
0.117803
0.023915
0
0
0
0
0.178571
1
0.142857
false
0
0.178571
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cc149375b44096dc121a4abf69408bc16d3f4e2
401
py
Python
python/controls/datepicker/datepicker_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/datepicker/datepicker_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
python/controls/datepicker/datepicker_with_change_event.py
pglet/pglet-samples
ab47e797a4daccfa4779daa3d1fd1cc27d92e7f9
[ "MIT" ]
null
null
null
from datetime import datetime import pglet from pglet import DatePicker, Text with pglet.page("datepicker-with-change-event") as page: def datepicker_changed(e): t.value = f"DatePicker value changed to {dp.value}" t.update() now = datetime.now() t = Text() dp = DatePicker(label="Start date", v...
28.642857
89
0.698254
58
401
4.775862
0.5
0.101083
0
0
0
0
0
0
0
0
0
0.009146
0.182045
401
14
90
28.642857
0.835366
0
0
0
0
0
0.189055
0.069652
0
0
0
0
0
1
0.083333
false
0
0.25
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
5cc5b7cbbc5f291340922f4de02d42c9001eb684
5,312
py
Python
interactive_bots/test/test_commons/test_form_crawler.py
dmitrijbozhkov/emergenecy-medicine-data
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
[ "Apache-2.0" ]
null
null
null
interactive_bots/test/test_commons/test_form_crawler.py
dmitrijbozhkov/emergenecy-medicine-data
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
[ "Apache-2.0" ]
null
null
null
interactive_bots/test/test_commons/test_form_crawler.py
dmitrijbozhkov/emergenecy-medicine-data
7fea6b2c76a180c5e4c145a7fa6c83ae3e7af7bc
[ "Apache-2.0" ]
null
null
null
""" Tests for form crawlers """ from unittest import TestCase, main from unittest.mock import Mock from functools import partial from interactive_bots.commons.form_crawler import FormActionOptions, FormCrawler class FormActionOptionsTestCase(TestCase): """ Test case for FormActionOptions class """ def setUp(se...
46.191304
127
0.69823
703
5,312
5.002845
0.167852
0.063691
0.063691
0.040944
0.466022
0.388684
0.325562
0.260449
0.217799
0.19619
0
0.004974
0.205196
5,312
114
128
46.596491
0.828044
0.164157
0
0.202381
0
0
0.00713
0
0
0
0
0
0.142857
1
0.178571
false
0.011905
0.047619
0
0.27381
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cc96bccafaee3453353f6c6ebd4f4f2e2c88027
1,828
py
Python
tests/test_reader.py
hsuchristine/code_challenge
de82243a685e465a01445cd700f156cbf9b89572
[ "MIT" ]
1
2020-06-29T01:53:30.000Z
2020-06-29T01:53:30.000Z
tests/test_reader.py
hsuchristine/code_challenge
de82243a685e465a01445cd700f156cbf9b89572
[ "MIT" ]
2
2022-01-13T01:54:57.000Z
2022-03-12T00:07:09.000Z
tests/test_reader.py
hsuchristine/code_challenge
de82243a685e465a01445cd700f156cbf9b89572
[ "MIT" ]
null
null
null
"""Unit test for DataReader (public methods only)""" import unittest import numpy as np import os from dicom_data_preprocess import parsing from dicom_data_preprocess.reader import DataReader __author__ = 'Christine Hsu' class TestReader(unittest.TestCase): @classmethod def setUpClass(TestReader): TestReader.dow...
35.153846
92
0.791028
231
1,828
5.991342
0.341991
0.052023
0.069364
0.093931
0.089595
0.089595
0.089595
0.063584
0
0
0
0.001827
0.101751
1,828
51
93
35.843137
0.841048
0.025164
0
0
0
0
0.113739
0.039977
0
0
0
0
0.157895
1
0.052632
false
0
0.131579
0
0.210526
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
5cc99818ef3d420ba12270f6fd7f4e8403fb924e
4,064
py
Python
lib/dashboard/logger.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
null
null
null
lib/dashboard/logger.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
8
2020-07-17T01:49:53.000Z
2022-02-17T22:58:31.000Z
lib/dashboard/logger.py
hexueyuan/Adanos
b35873fc88b61dabda49c85f0e2b2d126731d34f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import logging import logging.config import logging.handlers class Logger: _default_conf = { "version": 1, "disable_existing_loggers": False, "formatters": { "default": { "format": "[%(asctime)s][%(name)s][%(levelname)s][%(filename)s:%(li...
33.04065
105
0.532726
397
4,064
5.329975
0.239295
0.042533
0.049622
0.017013
0.365312
0.351134
0.086011
0.086011
0.086011
0.086011
0
0.007631
0.322835
4,064
122
106
33.311475
0.761265
0.065207
0
0.245098
0
0.019608
0.293668
0.051187
0
0
0
0
0
1
0.019608
false
0
0.029412
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
5ccbceb319266f245b6042a34c87089c38999e11
846
py
Python
FileFolder/tempFile.py
jwannebo3524/Attendence
e8ff3f7457337c0516b1e53f2918b9a87f3f1de4
[ "Unlicense", "MIT" ]
null
null
null
FileFolder/tempFile.py
jwannebo3524/Attendence
e8ff3f7457337c0516b1e53f2918b9a87f3f1de4
[ "Unlicense", "MIT" ]
2
2021-09-17T16:56:28.000Z
2021-11-02T00:57:32.000Z
FileFolder/tempFile.py
jwannebo3524/Attendence
e8ff3f7457337c0516b1e53f2918b9a87f3f1de4
[ "Unlicense", "MIT" ]
null
null
null
from tempfile import NamedTemporaryFile import shutil import csv import datetime import time #filename = 'tmpEmployeeDatabase.csv' tempfile = NamedTemporaryFile('w+t', newline='', delete=False) class tempFile: def __init__ (): filename = "" + str(datetime.date().month) + str(datetime.date().day) + str((da...
26.4375
144
0.637116
93
846
5.741935
0.505376
0.061798
0.08427
0.104869
0.172285
0.172285
0.172285
0
0
0
0
0.010495
0.211584
846
31
145
27.290323
0.790105
0.042553
0
0.1
0
0
0.044499
0.030902
0
0
0
0
0
1
0.15
false
0
0.25
0
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
5ccfae5fa95146d589ab65e046f6f95b2dcb1775
3,205
py
Python
imagingresponse/explore_layouts.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-01-29T07:24:14.000Z
2022-03-16T10:05:25.000Z
imagingresponse/explore_layouts.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
6
2020-07-03T00:31:10.000Z
2021-09-10T07:45:01.000Z
imagingresponse/explore_layouts.py
marivasq/gamma-ai
735953e80901afea3e5cdeb2a7b27c9ab5725434
[ "MIT" ]
5
2019-02-27T22:56:49.000Z
2019-08-24T19:01:41.000Z
################################################################################################### # # # Copyright (C) by Shivani Kishnani & Andreas Zoglauer. # All rights reserved. # # Please see the file License.txt in the main repository for the copyright-notice. # ###############################################...
33.041237
139
0.60936
372
3,205
5.204301
0.419355
0.03719
0.070248
0.019628
0
0
0
0
0
0
0
0.011565
0.136661
3,205
96
140
33.385417
0.68811
0.099532
0
0.039216
0
0
0.281601
0
0
0
0
0
0
1
0.039216
false
0.019608
0.117647
0
0.176471
0.078431
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cd096bb54ddc46b06b8bf177a453f80287a8129
24,252
py
Python
inspect4py/utils.py
SoftwareUnderstanding/inspect4py
9c4d7252535082ad938b26baf281d93f3a27285e
[ "BSD-3-Clause" ]
2
2022-02-15T20:30:57.000Z
2022-03-17T00:50:37.000Z
inspect4py/utils.py
SoftwareUnderstanding/inspect4py
9c4d7252535082ad938b26baf281d93f3a27285e
[ "BSD-3-Clause" ]
14
2022-01-25T14:03:50.000Z
2022-03-28T13:21:08.000Z
inspect4py/utils.py
SoftwareUnderstanding/inspect4py
9c4d7252535082ad938b26baf281d93f3a27285e
[ "BSD-3-Clause" ]
null
null
null
import ast import os import subprocess from pathlib import Path from json2html import * from inspect4py.parse_setup_files import inspect_setup from inspect4py.structure_tree import DisplayablePath, get_directory_structure def print_summary(json_dict): """ This method prints a small summary of the classes an...
41.813793
121
0.616485
3,128
24,252
4.557545
0.144182
0.027497
0.040123
0.012346
0.388608
0.319304
0.282057
0.255261
0.229026
0.210227
0
0.004732
0.294161
24,252
579
122
41.88601
0.828076
0.204643
0
0.285354
0
0
0.084796
0.001524
0
0
0
0
0
1
0.063131
false
0.007576
0.088384
0.005051
0.242424
0.025253
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cd6e644acdbb15b82dfab8d7e7022c02998853f
2,151
py
Python
days/day10.py
Kurocon/AdventOfCode2020
40ae8e604eb0e3bc0967c220cf868a8194769a6b
[ "BSD-3-Clause" ]
null
null
null
days/day10.py
Kurocon/AdventOfCode2020
40ae8e604eb0e3bc0967c220cf868a8194769a6b
[ "BSD-3-Clause" ]
null
null
null
days/day10.py
Kurocon/AdventOfCode2020
40ae8e604eb0e3bc0967c220cf868a8194769a6b
[ "BSD-3-Clause" ]
null
null
null
from functools import lru_cache from typing import List from days import AOCDay, day @day(10) class Day10(AOCDay): print_debug = "c12" test_input = """16 10 15 5 1 11 7 19 6 12 4""".split("\n") test_input2 = """28 33 18 42 31 14 46 20 48 47 24 23 49 45 19 38 39 11 1 32 25 35 8 17 7 9 4 2 34 10 3""".split(...
23.637363
118
0.645281
298
2,151
4.432886
0.315436
0.127933
0.078728
0.11355
0.342922
0.342922
0.336866
0.295231
0.181681
0.096896
0
0.061108
0.269642
2,151
90
119
23.9
0.779758
0.013482
0
0.146341
0
0
0.056132
0
0
0
0
0
0
1
0.060976
false
0
0.036585
0
0.195122
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5cd8b1b9a2e75158a87d41bc9d2a842af4dc3ce7
642
py
Python
problems/287_find_dup_number.py
apoorvkk/LeetCodeSolutions
1c3461cfc05deb930d0866428eb00362b4338aab
[ "MIT" ]
1
2018-02-03T14:17:18.000Z
2018-02-03T14:17:18.000Z
problems/287_find_dup_number.py
apoorvkk/LeetCodeSolutions
1c3461cfc05deb930d0866428eb00362b4338aab
[ "MIT" ]
null
null
null
problems/287_find_dup_number.py
apoorvkk/LeetCodeSolutions
1c3461cfc05deb930d0866428eb00362b4338aab
[ "MIT" ]
null
null
null
''' URL: https://leetcode.com/problems/find-the-duplicate-number/ Time complexity: O(nlogn) Space complexity: O(1) ''' class Solution(object): def findDuplicate(self, nums): """ :type nums: List[int] :rtype: int """ if len(nums) < 2: return -1 lo, hi = 1...
20.0625
61
0.423676
73
642
3.726027
0.547945
0.044118
0
0
0
0
0
0
0
0
0
0.025788
0.456386
642
31
62
20.709677
0.753582
0.244548
0
0
0
0
0
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
5ce2e2885759b71f922db45b1b250447965a354c
14,927
py
Python
certifire/cli.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
null
null
null
certifire/cli.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
null
null
null
certifire/cli.py
CertiFire/certifire
722da20bade41b8cc8553177e70e1f56015fe335
[ "MIT" ]
1
2021-02-06T03:29:56.000Z
2021-02-06T03:29:56.000Z
import argparse import logging import os import sys from certifire import app, auth, config, database, db, get_version from certifire.errors import CertifireError from certifire.plugins.acme import crypto from certifire.plugins.acme.models import Account, Certificate, Order from certifire.plugins.acme.plugin import (c...
36.85679
128
0.638239
1,793
14,927
5.192415
0.182376
0.05435
0.035446
0.024812
0.435768
0.40247
0.39957
0.380666
0.32739
0.306767
0
0.001795
0.253567
14,927
404
129
36.94802
0.833782
0.012595
0
0.318339
0
0
0.213956
0.003342
0
0
0
0.002475
0
1
0.024221
false
0.048443
0.038062
0
0.086505
0.076125
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5ce43cf725e3bf8836e708394822671100ec1604
2,783
py
Python
data_gen/gen_p_e_m/gen_p_e_m_from_wiki.py
EMBEDDIA/multilingual_entity_linking
9042259dd72ae85d94a460a981e9716df4eac203
[ "Apache-2.0" ]
null
null
null
data_gen/gen_p_e_m/gen_p_e_m_from_wiki.py
EMBEDDIA/multilingual_entity_linking
9042259dd72ae85d94a460a981e9716df4eac203
[ "Apache-2.0" ]
2
2021-04-20T13:30:09.000Z
2021-05-03T14:24:06.000Z
data_gen/gen_p_e_m/gen_p_e_m_from_wiki.py
EMBEDDIA/multilingual_entity_linking
9042259dd72ae85d94a460a981e9716df4eac203
[ "Apache-2.0" ]
null
null
null
import argparse, os from urllib.parse import unquote import os.path from os import path import pickle ap = argparse.ArgumentParser() ap.add_argument("-l", "--language", default='en',type = str, help="path") args = ap.parse_args() exec(open("utils/utils.py").read()) exec(open("data_gen/parse_wiki_dump/parse_wiki_du...
37.106667
137
0.610492
381
2,783
4.170604
0.275591
0.073631
0.033984
0.067967
0.161737
0.114537
0.052863
0
0
0
0
0.010779
0.266619
2,783
74
138
37.608108
0.767761
0
0
0
0
0
0.164211
0.034495
0
0
0
0
0
1
0
false
0
0.083333
0
0.083333
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
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
5ce7079747845637d28230c2367ed9d83c91e81e
1,865
py
Python
setup.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
null
null
null
setup.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
null
null
null
setup.py
Pranavj94/All-things-NLP
009e63e35611679afb54ca981675019679179fd3
[ "Apache-2.0" ]
1
2021-07-27T05:53:36.000Z
2021-07-27T05:53:36.000Z
############################################################################################ #Licensed under the Apache License, Version 2.0 (the "License"); #you may not use this file except in compliance with the License. #You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # #U...
38.061224
92
0.619839
221
1,865
5.171946
0.588235
0.052493
0.065617
0.068241
0
0
0
0
0
0
0
0.012739
0.158177
1,865
49
93
38.061224
0.715287
0.384987
0
0
0
0
0.422996
0.023207
0
0
0
0
0
1
0.04
false
0
0.04
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a228588da1a1865d35b49af11b46dd3d71bba03
3,532
py
Python
pysph/examples/sphysics/dambreak_sphysics.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
293
2017-05-26T14:41:15.000Z
2022-03-28T09:56:16.000Z
pysph/examples/sphysics/dambreak_sphysics.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
217
2017-05-29T15:48:14.000Z
2022-03-24T16:16:55.000Z
pysph/examples/sphysics/dambreak_sphysics.py
nauaneed/pysph
9cb9a859934939307c65a25cbf73e4ecc83fea4a
[ "BSD-3-Clause" ]
126
2017-05-25T19:17:32.000Z
2022-03-25T11:23:24.000Z
"""Dam break past an obstacle with data from SPHysics. (40 minutes) For benchmarking, we use the input geometry and discretization as the SPHYSICS Case 5 (https://wiki.manchester.ac.uk/sphysics/index.php/SPHYSICS_Home_Page) We only require the INDAT and IPART files generated by SPHysics. These define respectively, th...
33.009346
79
0.625708
410
3,532
5.312195
0.417073
0.03719
0.027548
0.028926
0.111111
0.070707
0.070707
0.030303
0
0
0
0.017633
0.277463
3,532
106
80
33.320755
0.835815
0.182616
0
0.057971
0
0
0.059151
0
0
0
0
0
0
1
0.057971
false
0
0.15942
0.014493
0.275362
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a25c60958291760ba28905779810fb418738cea
396
py
Python
RaspberryPi/work1.py
DTK-Creaters/Course
eb6518306482d21cc6e5848a783ffc0820b017fd
[ "Apache-2.0" ]
3
2020-05-15T15:14:17.000Z
2021-04-05T11:39:53.000Z
RaspberryPi/work1.py
DTK-Creaters/Course
eb6518306482d21cc6e5848a783ffc0820b017fd
[ "Apache-2.0" ]
null
null
null
RaspberryPi/work1.py
DTK-Creaters/Course
eb6518306482d21cc6e5848a783ffc0820b017fd
[ "Apache-2.0" ]
1
2020-05-17T02:48:13.000Z
2020-05-17T02:48:13.000Z
# -*- coding: utf-8 -*- ''' 第1回 LEDの点滅を3回繰り返すプログラムを作ってください。 LEDが3つのバージョンを作ってください。 ''' import RPi.GPIO as GPIO import time PINS=[10, 11, 12] #毎回するおまじない GPIO.setmode(GPIO.BCM) GPIO.setup(PINS,GPIO.OUT) for x in range(3): GPIO.output(PINS,GPIO.HIGH) # ピン10, 11, 12に電流を流す(HIGH) time.sleep(2) GPIO.output(PINS...
17.217391
62
0.684343
58
396
4.672414
0.586207
0.088561
0.103321
0.132841
0
0
0
0
0
0
0
0.077381
0.151515
396
22
63
18
0.729167
0.35101
0
0.181818
0
0
0
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a2796507aa8a3ec5cbd031ab878c3b23d7bbd5a
1,654
py
Python
tests/test_reset.py
embray/amqp-mock
dfcf50a4a455063331fa334b19db98cf59d88ea9
[ "Apache-2.0" ]
6
2021-01-13T08:32:16.000Z
2022-03-23T08:19:47.000Z
tests/test_reset.py
embray/amqp-mock
dfcf50a4a455063331fa334b19db98cf59d88ea9
[ "Apache-2.0" ]
20
2020-12-02T09:44:15.000Z
2022-01-04T16:33:09.000Z
tests/test_reset.py
embray/amqp-mock
dfcf50a4a455063331fa334b19db98cf59d88ea9
[ "Apache-2.0" ]
3
2020-08-20T13:21:13.000Z
2021-11-05T19:14:58.000Z
import pytest from amqp_mock import Message from ._test_utils.fixtures import amqp_client, mock_client, mock_server from ._test_utils.helpers import random_uuid, to_binary from ._test_utils.steps import given, then, when __all__ = ("mock_client", "mock_server", "amqp_client",) @pytest.mark.asyncio async def test_r...
27.114754
73
0.692866
216
1,654
5.027778
0.226852
0.110497
0.096685
0.060773
0.542357
0.492634
0.492634
0.461326
0.425414
0.346225
0
0.003867
0.218259
1,654
60
74
27.566667
0.83604
0
0
0.571429
0
0
0.045949
0
0
0
0
0
0.142857
1
0
false
0
0.119048
0
0.119048
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a27a7a55e2650fe9334f43d5b8dce70103b5737
12,749
py
Python
karta/raster/band.py
fortyninemaps/karta
b35d8cbcfb62e9f1d826a5c73605d34a0c0990b6
[ "MIT" ]
84
2016-03-18T15:42:02.000Z
2022-02-20T15:12:28.000Z
karta/raster/band.py
fortyninemaps/karta
b35d8cbcfb62e9f1d826a5c73605d34a0c0990b6
[ "MIT" ]
21
2016-03-06T01:47:38.000Z
2019-01-13T20:33:52.000Z
karta/raster/band.py
fortyninemaps/karta
b35d8cbcfb62e9f1d826a5c73605d34a0c0990b6
[ "MIT" ]
12
2016-03-18T15:33:53.000Z
2022-03-02T08:18:22.000Z
""" Band implementations for storing data in Karta Grid instances Overview -------- `BandIndexer` interface for accessing data from one or more bands `SimpleBand` use numpy arrays for data storage `CompressedBand` uses blosc compression to reduce in-memory footprint Implementation -------------- Bands are expecte...
33.287206
95
0.543337
1,618
12,749
4.211372
0.158838
0.029058
0.013208
0.013208
0.395656
0.33079
0.306721
0.288817
0.280305
0.280305
0
0.022151
0.33783
12,749
382
96
33.374346
0.785004
0.183073
0
0.412017
0
0
0.04303
0
0
0
0
0.002618
0.004292
1
0.072961
false
0
0.017167
0.004292
0.175966
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a29de7a43e2c76cd682a22718fc79113ae69a57
2,789
py
Python
Kepler.py
wongongv/scholarship_wonjun
b46a621a756782bf0929ef96738bf484afd1708e
[ "MIT" ]
null
null
null
Kepler.py
wongongv/scholarship_wonjun
b46a621a756782bf0929ef96738bf484afd1708e
[ "MIT" ]
null
null
null
Kepler.py
wongongv/scholarship_wonjun
b46a621a756782bf0929ef96738bf484afd1708e
[ "MIT" ]
null
null
null
import tensorflow as tf import matplotlib.pyplot as plt import pdb import numpy as np import pandas as pd from tensorflow.keras import layers sample_num = 500000 # coeff = tf.cast(4*np.pi*np.pi/(6.673*10**-11), dtype = tf.float32) coeff = tf.cast(1, dtype = tf.float32) #try the range of 10**5 ~10**7 for both mass and ...
34.432099
123
0.630333
407
2,789
4.235872
0.324324
0.028422
0.048724
0.046404
0.312645
0.312645
0.24536
0.207077
0.207077
0.207077
0
0.06062
0.201506
2,789
80
124
34.8625
0.713516
0.131947
0
0.172414
0
0
0.061021
0
0
0
0
0
0
1
0.068966
false
0
0.103448
0.017241
0.224138
0.017241
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a2b60eeeb9c5a441e5b481a07de842558d9a0f8
1,589
py
Python
IOPool/Output/test/PoolOutputTestUnscheduled_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
IOPool/Output/test/PoolOutputTestUnscheduled_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
IOPool/Output/test/PoolOutputTestUnscheduled_cfg.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms process = cms.Process("TESTOUTPUT") process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") process.maxEvents = cms.untracked.PSet( input = cms.untracked.int32(20) ) process.Thing = cms.EDProducer("ThingProducer") process.OtherThing = cms.EDProducer("OtherThingProduc...
26.04918
131
0.721838
159
1,589
7.150943
0.408805
0.063325
0.029903
0.05277
0.158311
0.158311
0.091469
0.091469
0.091469
0
0
0.021339
0.144745
1,589
60
132
26.483333
0.815305
0
0
0.045455
0
0
0.206049
0.063642
0
0
0
0
0
1
0
false
0
0.022727
0
0.022727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a2fe90ca9c1760303393523fbb9dfacdfef8238
11,435
py
Python
tests/test_main.py
Asday/ytdl
96a51ba3589e855b27f75095b0cd4a6f00f8eefa
[ "MIT" ]
null
null
null
tests/test_main.py
Asday/ytdl
96a51ba3589e855b27f75095b0cd4a6f00f8eefa
[ "MIT" ]
1
2019-04-15T02:09:37.000Z
2019-04-15T02:09:37.000Z
tests/test_main.py
Asday/ytdl
96a51ba3589e855b27f75095b0cd4a6f00f8eefa
[ "MIT" ]
null
null
null
import datetime import os import subprocess from django.apps import apps from django.core.management import call_command import attr from freezegun import freeze_time import pytest import pytz from downloader.exceptions import ( NoFilesCreatedError, TooManyFilesCreatedError, YoutubeDLError, ) from playli...
30.412234
76
0.457718
949
11,435
5.336143
0.14647
0.058649
0.091232
0.064179
0.624605
0.549566
0.459913
0.439179
0.390798
0.380134
0
0.014275
0.418015
11,435
375
77
30.493333
0.746657
0.035068
0
0.631902
0
0
0.168315
0
0
0
0
0
0.015337
1
0.033742
false
0.003067
0.033742
0
0.082822
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a324221f1f84a57129bf65acf3d694eadd4186b
900
py
Python
where/parsers/vascc_crf.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
16
2018-08-31T10:31:11.000Z
2022-03-15T16:07:24.000Z
where/parsers/vascc_crf.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
5
2018-07-13T14:04:24.000Z
2021-06-17T02:14:44.000Z
where/parsers/vascc_crf.py
ingridfausk/where
b65398911075b7ddef3a3a1146efa428eae498fe
[ "MIT" ]
15
2018-06-07T05:45:24.000Z
2022-03-15T16:07:27.000Z
"""A parser for reading radio source coordinates from VASCC apriori crf Description: ------------ Reads radio source coordinates from VASCC (VLBI Software Analysis Comparison Campaign) apriori file. """ # Midgard imports from midgard.dev import plugins from midgard.parsers._parser_line import LineParser @plugins.r...
25.714286
100
0.576667
99
900
5.171717
0.616162
0.099609
0.123047
0.066406
0.121094
0
0
0
0
0
0
0.011382
0.316667
900
34
101
26.470588
0.821138
0.305556
0
0
0
0
0.080065
0
0
0
0
0
0
1
0.105263
false
0
0.105263
0.052632
0.315789
0
0
0
0
null
0
0
0
0
0
0
0
0
0
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
7a32575dae7683b788c3a10ea2963e61f6b9dee6
1,520
py
Python
data_engineering/opcua/client.py
croidzen/playground
37dfe861cdc1803b0f51a0ee623f42c450e75f04
[ "MIT" ]
null
null
null
data_engineering/opcua/client.py
croidzen/playground
37dfe861cdc1803b0f51a0ee623f42c450e75f04
[ "MIT" ]
null
null
null
data_engineering/opcua/client.py
croidzen/playground
37dfe861cdc1803b0f51a0ee623f42c450e75f04
[ "MIT" ]
null
null
null
import asyncio import sys # sys.path.insert(0, "..") import logging from asyncua import Client, Node, ua logging.basicConfig(level=logging.INFO) _logger = logging.getLogger('asyncua') async def main(): url = 'opc.tcp://localhost:4840/freeopcua/server/' # url = 'opc.tcp://commsvr.com:51234/UA/CAS_UA_Server' ...
44.705882
122
0.678289
229
1,520
4.39738
0.484716
0.039722
0.03575
0.039722
0.089374
0.043694
0.043694
0
0
0
0
0.022388
0.206579
1,520
33
123
46.060606
0.812604
0.476974
0
0
0
0
0.213368
0.053985
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0.0625
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0