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
714ec7d33bab5008ec611874fc87d94cc9deca3c
9,769
py
Python
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-CMS
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
1
2019-04-22T14:22:38.000Z
2019-04-22T14:22:38.000Z
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-Updates-Text-Files-from-Sheets
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
null
null
null
venv/Lib/site-packages/pygsheets/client.py
13rilliant/Python-Updates-Text-Files-from-Sheets
56c4f3f1cbdd81020aa690ab92d0e26d042458c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-. import re import warnings import os import logging from pygsheets.drive import DriveAPIWrapper from pygsheets.sheet import SheetAPIWrapper from pygsheets.spreadsheet import Spreadsheet from pygsheets.exceptions import SpreadsheetNotFound, NoValidUrlKeyFound from pygsheets.custom_types import ...
46.519048
142
0.614085
1,124
9,769
5.224199
0.261566
0.018392
0.025545
0.01703
0.224114
0.171832
0.149012
0.131131
0.101158
0.047343
0
0.010132
0.292763
9,769
210
143
46.519048
0.839774
0.527587
0
0.073171
0
0
0.083066
0.045983
0
0
0
0
0
1
0.146341
false
0
0.121951
0
0.439024
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
714ecc8f34f21f3f5078c51278dfea154ffd4835
1,511
py
Python
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
model/group_contact.py
NatalyAristova/Training_python
e95a2b9e25238285d705a880fd94d73f173c3a31
[ "Apache-2.0" ]
null
null
null
from sys import maxsize class Group_contact: def __init__(self,firstname=None, middlename=None, lastname=None, nickname=None, title=None, company=None, address=None, home=None, mobile=None, work=None, fax=None, email=None, email2=None, email3=None, byear=None, address2=None, pho...
36.853659
148
0.650563
204
1,511
4.627451
0.22549
0.050847
0.076271
0.054025
0.139831
0
0
0
0
0
0
0.010582
0.249504
1,511
41
149
36.853659
0.821869
0
0
0
0
0
0.011243
0
0
0
0
0
0
1
0.114286
false
0
0.028571
0.057143
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
714fe59976a41e4840adb621109e180ee047b25c
5,567
py
Python
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
demo.py
cbsudux/minimal-hand
893c252e7e818a9a96b279023ea8a78a88fb0a4d
[ "MIT" ]
null
null
null
import argparse import cv2 import keyboard import numpy as np import open3d as o3d import os import pygame from transforms3d.axangles import axangle2mat import config from hand_mesh import HandMesh from kinematics import mpii_to_mano from utils import OneEuroFilter, imresize from wrappers import ModelPipeline from ut...
33.136905
100
0.629064
713
5,567
4.680224
0.333801
0.047947
0.02697
0.014384
0.10938
0.099491
0.099491
0.079712
0.060533
0.060533
0
0.021201
0.237471
5,567
167
101
33.335329
0.7649
0.303934
0
0.022222
0
0
0.073724
0.005671
0
0
0
0
0
1
0.022222
false
0
0.166667
0
0.211111
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7150fca7ddfd290e2618756c7d1c3d98b7e62c0b
11,824
py
Python
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
9
2015-07-21T01:43:05.000Z
2021-04-01T12:53:32.000Z
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
3
2015-09-28T09:01:17.000Z
2021-11-18T08:19:36.000Z
tests/test_akismet.py
cclauss/akismet
7b65bc163d6947a3013d01bf9accf1bc6c0781ca
[ "BSD-3-Clause" ]
7
2015-09-27T03:14:44.000Z
2021-12-05T22:48:44.000Z
import datetime import os import sys import unittest from unittest import mock import akismet class AkismetTests(unittest.TestCase): api_key = os.getenv("TEST_AKISMET_API_KEY") blog_url = os.getenv("TEST_AKISMET_BLOG_URL") api_key_env_var = "PYTHON_AKISMET_API_KEY" blog_url_env_var = "PYTHON_AKISMET...
31.87062
88
0.58931
1,282
11,824
5.177847
0.152886
0.031636
0.02561
0.040675
0.561916
0.511299
0.481772
0.414432
0.294667
0.277644
0
0.005455
0.302267
11,824
370
89
31.956757
0.799152
0.139039
0
0.401869
0
0
0.154412
0.009559
0
0
0
0
0.116822
1
0.121495
false
0
0.028037
0
0.196262
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7151993c0f8145d0e1fdf8168c7b895118af0892
2,581
py
Python
experimenting/dataset/datamodule.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
19
2021-04-16T11:43:34.000Z
2022-01-07T10:21:42.000Z
experimenting/dataset/datamodule.py
gaurvigoyal/lifting_events_to_3d_hpe
66d27eb7534f81a95d9f68e17cc534ef2a2c9b1c
[ "Apache-2.0" ]
4
2021-04-16T14:07:38.000Z
2022-02-12T16:35:22.000Z
experimenting/dataset/datamodule.py
gianscarpe/event-camera
8bb60a281adb9e2c961b5e12c24c9bbbba1876d5
[ "Apache-2.0" ]
5
2021-04-23T16:30:37.000Z
2022-02-12T01:42:14.000Z
import pytorch_lightning as pl from torch.utils.data import DataLoader, Dataset from .core import BaseCore from .factory import BaseDataFactory class DataModule(pl.LightningDataModule): def __init__( self, dataset_factory: BaseDataFactory, core: BaseCore, aug_train_config, ...
28.362637
84
0.631538
298
2,581
5.114094
0.191275
0.085302
0.094488
0.068898
0.416011
0.385827
0.237533
0.167979
0.116798
0.116798
0
0.0022
0.295622
2,581
90
85
28.677778
0.836084
0
0
0.181818
0
0
0
0
0
0
0
0
0
1
0.103896
false
0.012987
0.051948
0.051948
0.233766
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7152cc15e7baaacfb5a36373bdeff28f520d9e9f
2,906
py
Python
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
sevn-interface/SEVN/resources/SEVN_walkthrough/running_folder/analysis_3_pandas.py
giulianoiorio/PeTar
f6a849552b3d8e47c5e08fe90fed05bf38bc407d
[ "MIT" ]
null
null
null
import pandas as pd import matplotlib.pyplot as plt import numpy as np #Load file dt=pd.read_csv("sevn_output/output_0.csv") #Give a look to the columns print(dt.columns) #Consider only the final states dt=dt.drop_duplicates(["ID","name"], keep='last') #Load evolved file dte=pd.read_csv("sevn_output/evolved_0.dat",se...
34.595238
144
0.719202
500
2,906
4.114
0.326
0.035002
0.043753
0.037919
0.34808
0.284881
0.284881
0.248906
0.248906
0.191541
0
0.04173
0.092911
2,906
83
145
35.012048
0.738619
0.208878
0
0.235294
0
0
0.128778
0.021463
0
0
0
0
0
1
0
false
0
0.058824
0
0.058824
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
71530e1943a52265477429affe05d43b9f82d449
2,152
py
Python
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
office365/sharepoint/portal/group_site_manager.py
rikeshtailor/Office365-REST-Python-Client
ca7bfa1b22212137bb4e984c0457632163e89a43
[ "MIT" ]
null
null
null
from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.http_method import HttpMethod from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.resource_path import ResourcePath from of...
37.754386
109
0.701208
233
2,152
6.266094
0.32618
0.062329
0.068493
0.061644
0.30137
0.275342
0.191781
0.09589
0
0
0
0.014784
0.214219
2,152
56
110
38.428571
0.84861
0.138476
0
0.21875
0
0
0.043553
0
0
0
0
0
0
1
0.15625
false
0
0.21875
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
7157c50528da6262c46158a9ce6e62a7c31b48be
3,229
py
Python
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
aligner/grow_diag_final.py
ecalder6/MT-HW2
1356aeb374a6e4d0b0ae819684bf314039948c56
[ "MIT" ]
null
null
null
import optparse import sys def make_set(data, s, e_vocab, f_vocab, aligned, reverse): for pair in data.split(): cur = pair.split('-') if reverse: e_vocab.add(int(cur[1])) f_vocab.add(int(cur[0])) aligned.add(int(cur[0])) s.add((int(cur[1]), int(cur[0]...
44.232877
142
0.577888
482
3,229
3.661826
0.165975
0.040793
0.031728
0.054391
0.449858
0.315014
0.256657
0.232861
0.177904
0.147309
0
0.023595
0.278105
3,229
72
143
44.847222
0.733591
0
0
0.123077
0
0
0.09043
0
0
0
0
0
0
1
0.076923
false
0
0.030769
0
0.107692
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
715823dd8a36dcb9c1e16c0545d16a02d319badc
2,567
py
Python
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
35
2018-08-24T03:39:35.000Z
2021-08-21T23:35:57.000Z
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
40
2018-08-24T05:35:54.000Z
2021-12-15T08:23:38.000Z
tests/test_tbears_db.py
Transcranial-Solutions/t-bears
4712b8bb425814c444ee75f3220a31df934982aa
[ "Apache-2.0" ]
22
2018-08-28T15:11:46.000Z
2021-12-01T23:34:45.000Z
# -*- coding: utf-8 -*- # Copyright 2017-2018 ICON Foundation # # 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 ...
33.776316
85
0.679782
373
2,567
4.50134
0.329759
0.095295
0.128648
0.080405
0.319238
0.252531
0.238237
0.168553
0.168553
0.148898
0
0.012871
0.213089
2,567
75
86
34.226667
0.818317
0.245423
0
0.232558
0
0
0.059437
0
0
0
0
0
0.186047
1
0.116279
false
0
0.093023
0
0.232558
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
715db019834eea3cecfac08bf5fe333bb00487eb
3,658
py
Python
samples/destroy_vm.py
jm66/pyvmomi-community-samples
5ca4a50b767500e07b9bce9fba70240bfa963a4e
[ "Apache-2.0" ]
4
2016-01-04T06:19:56.000Z
2018-09-09T01:03:07.000Z
samples/destroy_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
12
2019-04-17T02:47:25.000Z
2021-04-02T09:15:37.000Z
samples/destroy_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
15
2018-04-26T05:18:12.000Z
2021-11-06T04:44:58.000Z
#!/usr/bin/env python # Copyright 2015 Michael Rice <michael@michaelrice.org> # # 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 # # ...
31.264957
76
0.594587
458
3,658
4.69214
0.40393
0.02792
0.031643
0.040949
0.122383
0.122383
0.122383
0.122383
0.072592
0.072592
0
0.006277
0.303171
3,658
116
77
31.534483
0.836799
0.209677
0
0.103896
0
0.012987
0.171859
0
0
0
0
0
0
1
0.025974
false
0.038961
0.077922
0
0.12987
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
71602e883fba7821b66ac710b8b6c9c76a964d73
5,193
py
Python
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
VirtualStage/BackgroundMatting/fixed_threshold.py
chris-han/ailab
b77d90f9089fa8003095843aa5de718fe73965a7
[ "MIT" ]
null
null
null
import os def fixed_split(videos, thresholds, mask_suffix, overlap=0, background_path="/"): # crop target background video frames backgrounds = [os.path.join(background_path, f[:-4]) for f in os.listdir(background_path) if f.endswith(".mp4")] print(f"Splitting {len(backgrounds)} target background videos...
33.720779
116
0.48238
615
5,193
3.960976
0.15122
0.036946
0.057471
0.04064
0.655993
0.641215
0.610837
0.599754
0.560345
0.516831
0
0.023084
0.349316
5,193
153
117
33.941176
0.69784
0.024456
0
0.611111
0
0.007937
0.259684
0.04585
0
0
0
0
0
1
0.015873
false
0
0.007937
0
0.02381
0.039683
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7160d131d6077709c38251321b7619b34bcdeab7
7,041
py
Python
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
hn2016_falwa/utilities.py
veredsil/hn2016_falwa
53035ac838860dd8a8d85619f16cc9785dee8655
[ "MIT" ]
null
null
null
import numpy as np from math import pi,exp def static_stability(height,area,theta,s_et=None,n_et=None): """ The function "static_stability" computes the vertical gradient (z-derivative) of hemispheric-averaged potential temperature, i.e. d\tilde{theta}/dz in the def- inition of QGPV in eq.(3) of Huang ...
40.234286
111
0.656441
1,078
7,041
4.164193
0.180891
0.036088
0.036757
0.046558
0.524838
0.474493
0.355981
0.34217
0.34217
0.34217
0
0.029082
0.213748
7,041
174
112
40.465517
0.781792
0.581452
0
0
0
0
0
0
0
0
0
0
0
1
0.037736
false
0
0.037736
0
0.113208
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7160dc5984a5a68781b1f9dc71bfe52a6ee535f4
12,570
py
Python
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
src/command_modules/azure-cli-iot/azure/cli/command_modules/iot/_params.py
JennyLawrance/azure-cli
cb9ca4b694110806b31803a95f9f315b2fde6410
[ "MIT" ]
null
null
null
# -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # --------------------------------------------------------------------...
61.019417
120
0.631344
1,579
12,570
4.886637
0.177961
0.072317
0.064282
0.092405
0.60057
0.55845
0.434552
0.387895
0.348237
0.299508
0
0.003044
0.242084
12,570
205
121
61.317073
0.806865
0.033095
0
0.192547
0
0
0.415857
0.016631
0
0
0
0
0
1
0.006211
false
0
0.055901
0
0.062112
0.012422
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7160eb99604d70299eb40716235e949ffc576a16
3,280
py
Python
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
metrics-calculator/tests/integration/test_s3.py
nhsconnect/prm-practice-migration-dashboard
40c8760f409834d05bde4fb015aa5f8765acaa82
[ "0BSD" ]
null
null
null
import boto3 import gzip from moto import mock_s3 import pytest import os from chalicelib.s3 import read_object_s3, write_object_s3, objects_exist from tests.builders.file import build_gzip_csv @pytest.fixture(scope='function') def aws_credentials(): """Mocked AWS Credentials for moto.""" os.environ['AWS_ACC...
28.521739
97
0.710366
468
3,280
4.643162
0.207265
0.078233
0.075932
0.069949
0.592269
0.543488
0.529682
0.514956
0.50023
0.484584
0
0.026354
0.155488
3,280
114
98
28.77193
0.758123
0.009756
0
0.38961
0
0.012987
0.266502
0.072178
0
0
0
0
0.077922
1
0.103896
false
0
0.090909
0
0.194805
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
716145a9d2a82e68a98031ac79781824db56e9c8
13,528
py
Python
image_analogy/losses/patch_matcher.py
kaldap/image-analogies
0867aedfae7dfc0d27c42805a3d07f7b9eb7eaa2
[ "MIT" ]
3,722
2016-02-28T18:03:51.000Z
2022-03-29T18:03:30.000Z
image_analogy/losses/patch_matcher.py
germanmad/image-analogies
066626149ccb96b0a0488ca7ea4fc992aa62b727
[ "MIT" ]
58
2016-02-28T03:23:43.000Z
2022-03-11T23:14:08.000Z
image_analogy/losses/patch_matcher.py
germanmad/image-analogies
066626149ccb96b0a0488ca7ea4fc992aa62b727
[ "MIT" ]
351
2016-03-05T03:22:48.000Z
2022-03-01T09:06:33.000Z
import numpy as np import scipy.interpolate import scipy.ndimage from sklearn.feature_extraction.image import extract_patches_2d, reconstruct_from_patches_2d def _calc_patch_grid_dims(shape, patch_size, patch_stride): x_w, x_h, x_c = shape num_rows = 1 + (x_h - patch_size) // patch_stride num_cols = 1 + (...
43.922078
171
0.671348
1,874
13,528
4.601387
0.173959
0.02818
0.021106
0.016236
0.272527
0.168851
0.103096
0.051026
0.030848
0.022962
0
0.015261
0.225015
13,528
307
172
44.065147
0.80723
0.14385
0
0.106977
0
0
0.028296
0.002015
0
0
0
0.003257
0
1
0.083721
false
0
0.037209
0.004651
0.204651
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
7161bb83a934c99f17f3988c15fe48d8592c6f29
1,247
py
Python
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
2
2020-02-17T17:36:23.000Z
2020-08-24T19:59:18.000Z
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
8
2020-11-13T19:02:47.000Z
2022-03-12T00:44:51.000Z
rllib/agents/ppo/tests/test_appo.py
noahshpak/ray
edd783bc327760a4892ab89222ee551e42df15b9
[ "Apache-2.0" ]
1
2021-07-26T07:17:06.000Z
2021-07-26T07:17:06.000Z
import unittest import ray import ray.rllib.agents.ppo as ppo from ray.rllib.utils.test_utils import check_compute_single_action, \ framework_iterator class TestAPPO(unittest.TestCase): @classmethod def setUpClass(cls): ray.init() @classmethod def tearDownClass(cls): ray.shutdown...
29
76
0.630313
142
1,247
5.274648
0.478873
0.064085
0.072096
0.096128
0.315087
0.315087
0.315087
0.315087
0.315087
0.315087
0
0.004367
0.265437
1,247
42
77
29.690476
0.813319
0.049719
0
0.375
0
0
0.047498
0
0
0
0
0
0
1
0.09375
false
0
0.1875
0
0.3125
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
716227dcc03cade8b73786f23f543f0e5e37ee6c
2,516
py
Python
ezeeai/utils/hooks.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
19
2019-06-12T03:14:59.000Z
2021-05-31T16:02:53.000Z
ezeeai/utils/hooks.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
29
2019-06-27T10:15:38.000Z
2022-03-11T23:46:36.000Z
ezeeai/utils/hooks.py
jmarine/ezeeai
091b4ce3bc5794c534084bff3301b15ba8a9be1a
[ "Apache-2.0" ]
10
2019-05-14T17:45:44.000Z
2020-08-26T13:25:04.000Z
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.training import session_run_hook from tensorflow.python.training.basic_session_run_hooks import NeverTriggerTimer, SecondOrStepTimer from tensorflow.python.training.session_run_hook impor...
37
113
0.68124
332
2,516
4.76506
0.304217
0.053097
0.05689
0.053097
0.127054
0.030341
0.030341
0.030341
0
0
0
0.003104
0.231717
2,516
67
114
37.552239
0.815313
0.012321
0
0.037736
0
0
0.108739
0.008458
0
0
0
0
0
1
0.113208
false
0.037736
0.169811
0
0.301887
0.018868
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7164421f4b7f16666c296653efa901ece81b5485
3,999
py
Python
quizzes/00.organize.me/hackerrank/sorted_set/server2.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
2
2018-07-20T10:15:49.000Z
2018-07-20T10:16:54.000Z
quizzes/00.organize.me/hackerrank/sorted_set/server2.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
2
2018-06-26T09:12:44.000Z
2019-12-18T00:09:14.000Z
quizzes/00.organize.me/hackerrank/sorted_set/server2.py
JiniousChoi/encyclopedia-in-code
77bc551a03a2a3e3808e50016ece14adb5cfbd96
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import socket, threading from queue import Queue import sys, struct # NOTE: Use this path to create the UDS Server socket SERVER_SOCKET_PATH = "./socket"; class Result: def __init__(self): self._evt = threading.Event() self._result = None def set_result(self, value...
24.838509
83
0.507877
481
3,999
4.081081
0.268191
0.039735
0.024962
0.013754
0.130922
0.030565
0.030565
0.030565
0.030565
0.030565
0
0.007264
0.380345
3,999
160
84
24.99375
0.784907
0.032008
0
0.166667
0
0
0.010875
0
0
0
0
0
0
1
0.150794
false
0.015873
0.02381
0.007937
0.285714
0.007937
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
716d93f8130aaab6f0fe666657a995579882463d
698
py
Python
ros_aruco.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
69
2019-09-30T13:42:02.000Z
2022-03-28T08:37:51.000Z
ros_aruco.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
5
2019-10-23T20:03:42.000Z
2021-07-10T09:43:50.000Z
ros_aruco.py
esteng/guiding-multi-step
3f0db0ba70b5851cc83878f4ed48cf82342a2ddf
[ "BSD-2-Clause" ]
18
2019-11-17T20:57:46.000Z
2022-03-15T10:46:25.000Z
""" Calibrate with the ROS package aruco_detect """ import rospy import roslib from geometry_msgs.msg import Transform class ROSArUcoCalibrate: def __init__(self, aruco_tag_len=0.0795): print("Please roslaunch roslaunch aruco_detect aruco_detect.launch before you run!") self.aruco_tf_topic = "/f...
24.928571
94
0.679083
97
698
4.556701
0.463918
0.162896
0.174208
0.072398
0
0
0
0
0
0
0
0.009452
0.24212
698
27
95
25.851852
0.826087
0.061605
0
0
0
0
0.181115
0
0
0
0
0
0
1
0.1875
false
0
0.1875
0
0.5
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
716e210884f18d925519c5ee8a6aa1f846b9c04f
3,977
py
Python
utils/utils.py
mmalandra-kb4/service-metrics-gatherer
f9a795a43d491ef59a32121ab4ed5c2c62cb968b
[ "Apache-2.0" ]
null
null
null
utils/utils.py
mmalandra-kb4/service-metrics-gatherer
f9a795a43d491ef59a32121ab4ed5c2c62cb968b
[ "Apache-2.0" ]
null
null
null
utils/utils.py
mmalandra-kb4/service-metrics-gatherer
f9a795a43d491ef59a32121ab4ed5c2c62cb968b
[ "Apache-2.0" ]
2
2022-01-28T18:31:21.000Z
2022-03-03T14:42:48.000Z
""" * Copyright 2019 EPAM Systems * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing,...
33.70339
103
0.647473
509
3,977
4.868369
0.302554
0.033898
0.03632
0.058111
0.254237
0.204197
0.17837
0.135593
0.110573
0.110573
0
0.011079
0.228313
3,977
117
104
33.991453
0.796351
0.163943
0
0.128205
0
0
0.022995
0.006354
0
0
0
0
0
1
0.128205
false
0.038462
0.076923
0.025641
0.435897
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
717008cf6d0ff4d98caa231046b8d209403318a1
6,193
py
Python
unityparser/commands.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
76
2019-06-17T13:17:59.000Z
2022-03-11T19:39:24.000Z
unityparser/commands.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
17
2019-06-07T09:04:27.000Z
2022-02-16T19:01:38.000Z
unityparser/commands.py
socialpoint-labs/unity-yaml-parser
91c175140ed32aed301bc34d4311f370da69a8ba
[ "MIT" ]
9
2019-10-08T16:07:35.000Z
2021-12-08T15:27:00.000Z
import re from argparse import ArgumentParser from multiprocessing import Pool, Manager, Process from pathlib import Path from .utils import UnityDocument YAML_HEADER = '%YAML' class UnityProjectTester: """ Class to run tests on a given Unity project folder """ AVAILABLE_COMMANDS = ('test_no_yaml_is...
39.698718
117
0.56467
712
6,193
4.689607
0.29073
0.037736
0.03504
0.023959
0.129979
0.101827
0.092243
0.072477
0.04732
0.02935
0
0.001484
0.347005
6,193
155
118
39.954839
0.824184
0.061844
0
0.173554
0
0
0.11308
0.004169
0
0
0
0
0
1
0.049587
false
0
0.041322
0.008264
0.140496
0.165289
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71707cf255fd21e42d8d8ac95ead6668d4d78aed
582
py
Python
DP/Leetcode 221. Maximal Square.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
31
2020-06-23T00:40:04.000Z
2022-01-08T11:06:24.000Z
DP/Leetcode 221. Maximal Square.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
null
null
null
DP/Leetcode 221. Maximal Square.py
kaizhengny/LeetCode
67d64536ab80f4966699fe7460d165f2a98d6a82
[ "MIT" ]
7
2020-04-30T08:46:03.000Z
2021-08-28T16:25:54.000Z
class Solution: def maximalSquare(self, matrix: List[List[str]]) -> int: if not matrix: return 0 m, n = len(matrix), len(matrix[0]) dp = [[0]*n for _ in range(m)] res = 0 for i in range(m): dp[i][0] = int(matrix[i][0]) for j in range(n): dp[0][...
36.375
72
0.429553
99
582
2.515152
0.272727
0.072289
0.048193
0.088353
0.048193
0
0
0
0
0
0
0.046961
0.378007
582
16
73
36.375
0.640884
0
0
0
0
0
0.001715
0
0
0
0
0
0
1
0.0625
false
0
0
0
0.1875
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7171d1486ab6a395eb9ff27ecf4115ab48da0237
3,767
py
Python
dokang/harvesters/__init__.py
Polyconseil/dokang
b0ab3e4aabfb97adb2a2e877a42fc1896e5fcf08
[ "BSD-3-Clause" ]
6
2016-07-04T17:16:42.000Z
2018-11-13T08:10:21.000Z
dokang/harvesters/__init__.py
Polyconseil/dokang
b0ab3e4aabfb97adb2a2e877a42fc1896e5fcf08
[ "BSD-3-Clause" ]
6
2016-02-23T15:08:51.000Z
2017-01-02T11:57:45.000Z
dokang/harvesters/__init__.py
Polyconseil/dokang
b0ab3e4aabfb97adb2a2e877a42fc1896e5fcf08
[ "BSD-3-Clause" ]
5
2015-04-05T14:07:11.000Z
2017-04-13T14:08:02.000Z
# -*- coding: utf-8 -*- # Copyright (c) Polyconseil SAS. All rights reserved. import hashlib import json import logging import os import re from .html import html_config, HtmlHarvester # pylint: disable=unused-import from .sphinx import ( # pylint: disable=unused-import sphinx_config, sphinx_rtd_config, Sph...
38.050505
104
0.617733
475
3,767
4.783158
0.355789
0.047535
0.014085
0.03037
0.078345
0.029049
0.029049
0.029049
0.029049
0
0
0.003398
0.296788
3,767
98
105
38.438776
0.854285
0.271834
0
0.107692
0
0
0.092002
0
0
0
0
0
0
1
0.046154
false
0
0.107692
0
0.215385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
717345e66810546b06a5a6c9cdbe99a57810c275
357
py
Python
src/fuckbot/ticker.py
Zer0-One/fuckbot
02f5a112988e25a9f04a9a941a55f11cf51c3d8f
[ "BSD-2-Clause" ]
null
null
null
src/fuckbot/ticker.py
Zer0-One/fuckbot
02f5a112988e25a9f04a9a941a55f11cf51c3d8f
[ "BSD-2-Clause" ]
null
null
null
src/fuckbot/ticker.py
Zer0-One/fuckbot
02f5a112988e25a9f04a9a941a55f11cf51c3d8f
[ "BSD-2-Clause" ]
1
2022-01-24T21:20:43.000Z
2022-01-24T21:20:43.000Z
import discord import logging TRADING_API_URL='https://cloud.iexapis.com/stable/stock/{0}/quote' TRADING_API_ICON='https://iextrading.com/favicon.ico' def ticker_embed(symbol): ticker = discord.Embed(title=f"{symbol}".upper(), type="rich", color=3029236, url=TRADING_API_URL.format(symbol)) ticker.set_author(n...
29.75
117
0.756303
51
357
5.137255
0.666667
0.114504
0.099237
0
0
0
0
0
0
0
0
0.024615
0.089636
357
11
118
32.454545
0.781538
0
0
0
0
0
0.291317
0
0
0
0
0
0
1
0.125
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
7173dccce721752a801b4b3463958745f87a8a0c
9,769
py
Python
minos/lib/util/StateSet.py
johny-c/minos
660e991f44118382f4a3cb7566670c4159d33fe3
[ "MIT" ]
1
2020-02-18T08:19:32.000Z
2020-02-18T08:19:32.000Z
minos/lib/util/StateSet.py
johny-c/minos
660e991f44118382f4a3cb7566670c4159d33fe3
[ "MIT" ]
4
2019-12-27T12:44:58.000Z
2021-05-07T17:41:09.000Z
minos/lib/util/StateSet.py
johny-c/minos
660e991f44118382f4a3cb7566670c4159d33fe3
[ "MIT" ]
1
2019-10-15T00:28:39.000Z
2019-10-15T00:28:39.000Z
import bz2 import csv import collections import math from enum import Enum class Select(Enum): FIRST = 'first' RANGE_KEY = 'range_key' RANGE_VALUE = 'range_value' class SelectPolicy: def __init__(self, policy, field=None): self.policy = policy self.field = field class StateSet: ...
41.747863
117
0.522469
1,145
9,769
4.262882
0.172926
0.030117
0.037287
0.034829
0.198525
0.159394
0.118418
0.085228
0.071707
0.054087
0
0.003274
0.374757
9,769
233
118
41.927039
0.795842
0.070632
0
0.125
0
0
0.068044
0
0
0
0
0
0
1
0.0625
false
0
0.03125
0.015625
0.166667
0.005208
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7175fb970f1844dacf40b20065573654fbebe36d
4,053
py
Python
cqlsh_tests/cqlsh_tools.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
cqlsh_tests/cqlsh_tools.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
cqlsh_tests/cqlsh_tools.py
vincewhite/cassandra-dtest
a01dce6af73a8656e8740227a811fe63025fb3f4
[ "Apache-2.0" ]
null
null
null
import csv import random import cassandra from cassandra.cluster import ResultSet from typing import List class DummyColorMap(object): def __getitem__(self, *args): return '' def csv_rows(filename, delimiter=None): """ Given a filename, opens a csv file and yields it line by line. """ ...
33.495868
107
0.683691
514
4,053
5.293774
0.371595
0.056229
0.033076
0.040794
0.172731
0.052922
0
0
0
0
0
0.011129
0.224032
4,053
120
108
33.775
0.854054
0.202813
0
0.057143
0
0
0.097041
0.013363
0
0
0
0
0.1
1
0.171429
false
0
0.071429
0.057143
0.371429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71764b0e93fc239b103c34e487ed538048a2ed7d
5,394
py
Python
tests/unit/sagemaker/tensorflow/test_estimator_init.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
1,690
2017-11-29T20:13:37.000Z
2022-03-31T12:58:11.000Z
tests/unit/sagemaker/tensorflow/test_estimator_init.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
2,762
2017-12-04T05:18:03.000Z
2022-03-31T23:40:11.000Z
tests/unit/sagemaker/tensorflow/test_estimator_init.py
LastRemote/sagemaker-python-sdk
fddf29d9e4383cd3f939253eef47ee79a464dd37
[ "Apache-2.0" ]
961
2017-11-30T16:44:03.000Z
2022-03-30T23:12:09.000Z
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You # may not use this file except in compliance with the License. A copy of # the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accompan...
32.890244
100
0.725436
715
5,394
5.155245
0.26014
0.121541
0.05643
0.081118
0.505155
0.482366
0.477482
0.456321
0.397179
0.317689
0
0.02479
0.184835
5,394
163
101
33.092025
0.813509
0.099184
0
0.333333
0
0.008772
0.178291
0.028683
0
0
0
0
0.114035
1
0.114035
false
0.008772
0.04386
0.017544
0.175439
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71770ce551bdcd43974b0f18b616fb25201796c0
827
py
Python
testing.py
sofwerx/mycroft-articlekeyword-skill
7cab109db512d3a6465db241b18018e9415f4a9f
[ "Unlicense" ]
null
null
null
testing.py
sofwerx/mycroft-articlekeyword-skill
7cab109db512d3a6465db241b18018e9415f4a9f
[ "Unlicense" ]
null
null
null
testing.py
sofwerx/mycroft-articlekeyword-skill
7cab109db512d3a6465db241b18018e9415f4a9f
[ "Unlicense" ]
null
null
null
import subprocess proc = subprocess.Popen(['python3', 'articlekeywords.py', 'aih.txt' , '5'], stdout=subprocess.PIPE ) #print(type(proc.communicate()[0])) # path = '/opt/mycroft/skills/mycroft-bitcoinprice-skill/' text = proc.stdout.read() rows = text.splitlines() #print(text.splitlines()) count = 0 s = "" for ...
21.205128
101
0.622733
109
827
4.66055
0.504587
0.027559
0.055118
0.07874
0.173228
0.173228
0.173228
0
0
0
0
0.013493
0.19347
827
39
102
21.205128
0.748126
0.474002
0
0.125
0
0
0.082742
0
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
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
717864c0c5586a731d9e7b34b779d6af81159c7a
4,509
py
Python
slcyGeneral.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyGeneral.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
slcyGeneral.py
mirrorcoloured/slcypi
c47975b3523f770d12a521c82e2dfca181e3f35b
[ "MIT" ]
null
null
null
# Python 2.7.1 import RPi.GPIO as GPIO from twython import Twython import time import sys import os import pygame APP_KEY='zmmlyAJzMDIntLpDYmSH98gbw' APP_SECRET='ksfSVa2hxvTQKYy4UR9tjpb57CAynMJDsygz9qOyzlH24NVwpW' OAUTH_TOKEN='794094183841566720-BagrHW91yH8C3Mdh9SOlBfpL6wrSVRW' OAUTH_TOKEN_SECRET='d0Uucq2dkSHrFHZGLM1...
30.883562
94
0.635174
599
4,509
4.712855
0.338898
0.035423
0.028339
0.022671
0.239816
0.22848
0.172512
0.172512
0.146298
0.146298
0
0.033114
0.223109
4,509
145
95
31.096552
0.772766
0.287425
0
0.046512
0
0
0.117492
0.056106
0
0
0
0
0
1
0.186047
false
0
0.069767
0
0.337209
0.081395
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
717a01e3e2c90ae46a5bad6b2a2010bbac8dace6
1,856
py
Python
python/pyarmnn/scripts/generate_docs.py
PetervdPerk-NXP/pyarmnn-release
2008c270f7c7c84a930842c845138628c8b95713
[ "MIT" ]
7
2020-02-27T07:45:14.000Z
2021-01-25T12:07:12.000Z
python/pyarmnn/scripts/generate_docs.py
MitchellTesla/PyArmNN
cbe37a0364b00f32ac2a8ced74eed5d576a0d52c
[ "MIT" ]
5
2020-07-28T15:01:12.000Z
2022-02-04T18:24:02.000Z
python/pyarmnn/scripts/generate_docs.py
MitchellTesla/PyArmNN
cbe37a0364b00f32ac2a8ced74eed5d576a0d52c
[ "MIT" ]
3
2020-07-31T11:41:24.000Z
2021-06-06T07:58:39.000Z
# Copyright © 2019 Arm Ltd. All rights reserved. # Copyright 2020 NXP # SPDX-License-Identifier: MIT import os import tarfile import pyarmnn as ann import shutil from typing import List, Union from pdoc.cli import main package_dir = os.path.join(os.path.dirname(os.path.realpath(__file__)), '..') d...
27.701493
82
0.644935
256
1,856
4.402344
0.351563
0.063886
0.06921
0.045253
0.136646
0.04614
0.04614
0
0
0
0
0.005662
0.238685
1,856
66
83
28.121212
0.791224
0.210129
0
0
0
0
0.051608
0.019447
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.285714
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71801cfc804d913976cbde0f2c680802285aa66d
817
py
Python
code/send.py
CamouOkau/messenger_new_years_bot
38f3c26b6c5b4dae7fe48f8b61680ec903c0deac
[ "MIT" ]
null
null
null
code/send.py
CamouOkau/messenger_new_years_bot
38f3c26b6c5b4dae7fe48f8b61680ec903c0deac
[ "MIT" ]
null
null
null
code/send.py
CamouOkau/messenger_new_years_bot
38f3c26b6c5b4dae7fe48f8b61680ec903c0deac
[ "MIT" ]
null
null
null
import sys import time from datetime import datetime from bot import FbMessengerBot if __name__ == "__main__": if len(sys.argv) < 3: print("No email or password provided") else: bot = FbMessengerBot(sys.argv[1], sys.argv[2]) with open("users.txt", "r") as file: users = dict...
29.178571
58
0.575275
107
817
4.233645
0.457944
0.046358
0.02649
0.04415
0
0
0
0
0
0
0
0.010417
0.294982
817
27
59
30.259259
0.776042
0
0
0
0
0
0.086903
0
0
0
0
0
0
1
0
false
0.043478
0.173913
0
0.173913
0.086957
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71803fa300d2ccbae9efe9edab91921379251431
4,361
py
Python
senlin_tempest_plugin/api/policies/test_policy_update_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "Apache-2.0" ]
null
null
null
senlin_tempest_plugin/api/policies/test_policy_update_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "Apache-2.0" ]
null
null
null
senlin_tempest_plugin/api/policies/test_policy_update_negative.py
ghanshyammann/senlin-tempest-plugin
9f33bbe723eb381f93c2248a6a277efef3d92ec3
[ "Apache-2.0" ]
null
null
null
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under t...
40.37963
75
0.616372
468
4,361
5.628205
0.361111
0.022779
0.034169
0.049355
0.474563
0.409643
0.409643
0.373197
0.339787
0.273728
0
0.062599
0.278377
4,361
107
76
40.757009
0.774388
0.173584
0
0.458333
0
0
0.215342
0.090934
0
0
0
0
0.138889
1
0.083333
false
0
0.055556
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
71820cfe7864a17de8d5ffb455a24ec586958eca
4,363
py
Python
tests/test_vmax.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
tests/test_vmax.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
tests/test_vmax.py
qinfeng2011/wltp
317ad38fb96599a29d22e40f69b6aeb4d205611d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright 2019 European Commission (JRC); # Licensed under the EUPL (the 'Licence'); # You may not use this work except in compliance with the Licence. # You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl import functools as fnt import logging impo...
32.080882
87
0.603942
603
4,363
4.170813
0.366501
0.055666
0.035785
0.035785
0.135984
0.122068
0.07992
0.07992
0.015507
0.015507
0
0.049444
0.258309
4,363
135
88
32.318519
0.72775
0.231492
0
0.244444
0
0
0.142513
0.016571
0
0
0
0
0.044444
1
0.033333
false
0
0.133333
0
0.188889
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
718275b3e8d58cfc1c69bd90b16b90b94fc076c8
881
py
Python
util/canonicaljson.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
2,027
2019-11-12T18:05:48.000Z
2022-03-31T22:25:04.000Z
util/canonicaljson.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
496
2019-11-12T18:13:37.000Z
2022-03-31T10:43:45.000Z
util/canonicaljson.py
giuseppe/quay
a1b7e4b51974edfe86f66788621011eef2667e6a
[ "Apache-2.0" ]
249
2019-11-12T18:02:27.000Z
2022-03-22T12:19:19.000Z
import collections def canonicalize(json_obj, preserve_sequence_order=True): """ This function canonicalizes a Python object that will be serialized as JSON. Example usage: json.dumps(canonicalize(my_obj)) Args: json_obj (object): the Python object that will later be serialized as JSON. Re...
32.62963
96
0.681044
110
881
5.281818
0.454545
0.096386
0.144578
0.068847
0.134251
0.134251
0
0
0
0
0
0
0.245176
881
26
97
33.884615
0.873684
0.30874
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.076923
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71829ce0488364233ac4688992792bd2903978d0
1,170
py
Python
datasette_plugin_geo/inspect.py
russss/datasette-geo
d4cecc020848bbde91e9e17bf352f7c70bc3dccf
[ "Apache-2.0" ]
9
2019-05-02T14:44:57.000Z
2022-01-19T20:56:50.000Z
datasette_plugin_geo/inspect.py
russss/datasette-geo
d4cecc020848bbde91e9e17bf352f7c70bc3dccf
[ "Apache-2.0" ]
5
2019-04-30T12:22:03.000Z
2021-05-29T20:08:42.000Z
datasette_plugin_geo/inspect.py
russss/datasette-geo
d4cecc020848bbde91e9e17bf352f7c70bc3dccf
[ "Apache-2.0" ]
2
2019-07-31T19:16:43.000Z
2021-05-28T20:12:36.000Z
from datasette import hookimpl from datasette.utils import detect_spatialite from shapely import wkt def get_spatial_tables(conn): if not detect_spatialite(conn): return {} spatial_tables = {} c = conn.cursor() c.execute( """SELECT f_table_name, f_geometry_column, srid, spatial_index_...
26.590909
110
0.564957
137
1,170
4.70073
0.423358
0.121118
0.059006
0.055901
0.074534
0
0
0
0
0
0
0.008997
0.335043
1,170
43
111
27.209302
0.818766
0
0
0.171429
0
0.028571
0.130435
0.032136
0
0
0
0
0
1
0.057143
false
0
0.085714
0
0.228571
0.028571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7182cc9e1a275d7846a31a780b10f6ed97021067
1,440
py
Python
microcosm_pubsub/context.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
5
2016-07-23T21:20:50.000Z
2021-07-15T00:27:47.000Z
microcosm_pubsub/context.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
76
2016-03-22T23:41:21.000Z
2020-07-27T17:35:36.000Z
microcosm_pubsub/context.py
Sinon/microcosm-pubsub
c98a188fcd5b3f358c7171dae0c39a33c5774a4e
[ "Apache-2.0" ]
8
2016-06-01T18:43:41.000Z
2021-04-27T20:22:15.000Z
""" Message context. """ from typing import Dict from microcosm.api import defaults, typed from microcosm.config.types import boolean from microcosm_logging.decorators import logger from microcosm_pubsub.constants import TTL_KEY, URI_KEY from microcosm_pubsub.message import SQSMessage @defaults( enable_ttl=typ...
26.181818
78
0.6625
180
1,440
5.1
0.344444
0.070806
0.055556
0.037037
0.067538
0.067538
0
0
0
0
0
0.002775
0.249306
1,440
54
79
26.666667
0.846438
0.120833
0
0
0
0
0
0
0
0
0
0
0
1
0.103448
false
0
0.206897
0
0.413793
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71860bda1bd4506337b0b07e0b43aaca3e5c2511
2,185
py
Python
azure_ml/pytorch_classifier/train_parameterized.py
murdockcrc/python-tricks
57f7ad9c00a045c1f9f18f89bed6e73be6c85b69
[ "MIT" ]
null
null
null
azure_ml/pytorch_classifier/train_parameterized.py
murdockcrc/python-tricks
57f7ad9c00a045c1f9f18f89bed6e73be6c85b69
[ "MIT" ]
null
null
null
azure_ml/pytorch_classifier/train_parameterized.py
murdockcrc/python-tricks
57f7ad9c00a045c1f9f18f89bed6e73be6c85b69
[ "MIT" ]
null
null
null
import os import argparse import torch import torch.optim as optim import torchvision import torchvision.transforms as transforms from model import Net from azureml.core import Run run = Run.get_context() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument( '--data_path', ...
23
69
0.622426
269
2,185
4.959108
0.420074
0.035982
0.011244
0.014993
0.008996
0.008996
0.008996
0.008996
0.008996
0.008996
0
0.0281
0.250801
2,185
95
70
23
0.786805
0.105263
0
0.09589
0
0
0.126927
0
0
0
0
0
0
1
0
false
0
0.109589
0
0.109589
0.09589
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7187ac8a1ef00393974831033262a38cc227b4e0
3,063
py
Python
catalyst/core/callbacks/formatters.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
1
2019-11-26T06:41:33.000Z
2019-11-26T06:41:33.000Z
catalyst/core/callbacks/formatters.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
null
null
null
catalyst/core/callbacks/formatters.py
cgarciae/catalyst
391ff89ab0d9a1961b88719e894f917ac0fb7fc3
[ "Apache-2.0" ]
null
null
null
from abc import ABC, abstractmethod from datetime import datetime import json import logging from catalyst import utils from catalyst.core import _State class MetricsFormatter(ABC, logging.Formatter): """ Abstract metrics formatter """ def __init__(self, message_prefix): """ Args: ...
27.845455
77
0.615083
326
3,063
5.558282
0.319018
0.06181
0.018212
0.033113
0.362031
0.286976
0.209713
0.209713
0.209713
0.209713
0
0
0.286321
3,063
109
78
28.100917
0.828911
0.267058
0
0.14
0
0
0.090244
0.033659
0
0
0
0
0
1
0.16
false
0.02
0.12
0
0.42
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7187ff57f53912dbb2c2ffb581f78542068a9ec6
7,612
py
Python
fuzzy/fuzzy.py
Suraj1127/fuzzy-matcher
a3a6ecc6954d79ca65e2517f93db44cc432e7a90
[ "MIT" ]
null
null
null
fuzzy/fuzzy.py
Suraj1127/fuzzy-matcher
a3a6ecc6954d79ca65e2517f93db44cc432e7a90
[ "MIT" ]
null
null
null
fuzzy/fuzzy.py
Suraj1127/fuzzy-matcher
a3a6ecc6954d79ca65e2517f93db44cc432e7a90
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Description: Python script to append the common columns in one sheet from another sheet using fuzzy matching. """ import pip def import_or_install(package): try: __import__(package) except ImportError: pip.main(['install', package]) import os import sys im...
35.078341
128
0.626379
994
7,612
4.6167
0.207243
0.013075
0.009152
0.013946
0.208106
0.185879
0.154718
0.115929
0.08455
0.08455
0
0.016667
0.274829
7,612
217
129
35.078341
0.814674
0.237126
0
0.039604
0
0
0.115036
0
0
0
0
0
0
1
0.079208
false
0
0.128713
0
0.287129
0.019802
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
718a2a5b0f6feb828e1a124e9a30a273db18a144
9,770
py
Python
exoatlas/visualizations/panels/BubblePanel.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2020-06-24T16:38:27.000Z
2022-01-23T01:57:19.000Z
exoatlas/visualizations/panels/BubblePanel.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
4
2018-09-20T23:12:30.000Z
2019-05-15T15:31:58.000Z
exoatlas/visualizations/panels/BubblePanel.py
zkbt/exopop
5e8b9d391fe9e2d39c623d7ccd7eca8fd0f0f3f8
[ "MIT" ]
null
null
null
from .Panel import * __all__ = ['BubblePanel'] default_size = plt.matplotlib.rcParams['lines.markersize']**2 class BubblePanel(Panel): ''' BubblePanel is a general wrapper for making scatter plots where planets are represented as bubbles that can have informative sizes and/or colors. ''' def...
35.787546
91
0.570624
1,151
9,770
4.79583
0.238923
0.037681
0.022826
0.009239
0.199094
0.143297
0.096196
0.076449
0.064493
0.064493
0
0.000629
0.349028
9,770
272
92
35.919118
0.867296
0.458444
0
0.142857
0
0
0.036636
0
0
0
0
0.003676
0
1
0.05102
false
0
0.010204
0
0.102041
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
718d447c90c45e89882aa6196cb3c3ab761ce174
2,207
py
Python
githubintro-fe2d832af2bad7d6b27d036c205cc9d8414b2183/CommunicationAnimation.py
TatendaNoreen/Python
df9799bbea84af03c1fb3b29fada1e16c04bab80
[ "MIT" ]
null
null
null
githubintro-fe2d832af2bad7d6b27d036c205cc9d8414b2183/CommunicationAnimation.py
TatendaNoreen/Python
df9799bbea84af03c1fb3b29fada1e16c04bab80
[ "MIT" ]
null
null
null
githubintro-fe2d832af2bad7d6b27d036c205cc9d8414b2183/CommunicationAnimation.py
TatendaNoreen/Python
df9799bbea84af03c1fb3b29fada1e16c04bab80
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('TkAgg') import matplotlib.pyplot import agentframework import csv import matplotlib.animation #create environment in which agents will operate environment=[] #read csv downloaded file f = open('in.txt', newline='') reader = csv.reader(f, quoting=csv.QUOTE_NONNUMERIC) for row in ...
24.797753
71
0.645673
299
2,207
4.662207
0.394649
0.080344
0.031564
0.034433
0.055954
0.055954
0.055954
0.040172
0
0
0
0.015235
0.256457
2,207
88
72
25.079545
0.834247
0.366561
0
0.081081
0
0
0.008017
0
0
0
0
0
0
1
0.027027
false
0
0.135135
0
0.162162
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
718e43027722775db4c64b0811dfc59a1835349b
2,418
py
Python
ibis/udf/validate.py
rtpsw/ibis
d7318fdf87121cd8fadbcf0369a2b217aab3053a
[ "Apache-2.0" ]
986
2017-06-07T07:33:01.000Z
2022-03-31T13:00:46.000Z
ibis/udf/validate.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
2,623
2017-06-07T18:29:11.000Z
2022-03-31T20:27:31.000Z
ibis/udf/validate.py
marlenezw/ibis
14b9baf3e1021e8698e7f0ae3c0ae5747543431c
[ "Apache-2.0" ]
238
2017-06-26T19:02:58.000Z
2022-03-31T15:18:29.000Z
"""Validation for UDFs. Warning: This is an experimental module and API here can change without notice. DO NOT USE DIRECTLY. """ from inspect import Parameter, Signature, signature from typing import Any, Callable, List import ibis.common.exceptions as com from ibis.expr.datatypes import DataType def _parameter_c...
28.447059
79
0.639371
295
2,418
5.118644
0.379661
0.074172
0.021854
0.027815
0.043709
0.043709
0
0
0
0
0
0
0.273366
2,418
84
80
28.785714
0.859419
0.324235
0
0
0
0
0.149508
0
0
0
0
0
0
1
0.085714
false
0
0.114286
0
0.257143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71915f8963ebf873674df05ecd7d2ac82cadfb43
5,629
py
Python
packages/stattik/stattik/schema/schema.py
stattikcms/stattik
5c96d600d105461edb95a11d8050dee3c32edd1e
[ "MIT" ]
1
2021-11-05T06:24:28.000Z
2021-11-05T06:24:28.000Z
packages/stattik/stattik/schema/schema.py
stattikcms/stattik
5c96d600d105461edb95a11d8050dee3c32edd1e
[ "MIT" ]
null
null
null
packages/stattik/stattik/schema/schema.py
stattikcms/stattik
5c96d600d105461edb95a11d8050dee3c32edd1e
[ "MIT" ]
null
null
null
import inspect from ariadne import make_executable_schema, QueryType, MutationType, SubscriptionType from .resolver import * # # Schema # class GrammarError(Exception): pass keywords = ['query', 'mutation', 'subscription', 'source'] class SchemaMetaDict(dict): ''' Dictionary that allows decorated sche...
28.004975
107
0.607035
625
5,629
5.2624
0.2224
0.017026
0.018243
0.025844
0.258133
0.174217
0.138948
0.085436
0.018243
0
0
0.000504
0.294724
5,629
201
108
28.004975
0.82796
0.103393
0
0.234043
0
0
0.064998
0.009084
0
0
0
0
0
1
0.177305
false
0.007092
0.021277
0
0.390071
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7193df3e00cf1bbbc7e779239b2adfcf9b4f4173
78,616
py
Python
toontown/battle/DistributedBattleBaseAI.py
DankMickey/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
1
2021-06-25T02:56:32.000Z
2021-06-25T02:56:32.000Z
toontown/battle/DistributedBattleBaseAI.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
null
null
null
toontown/battle/DistributedBattleBaseAI.py
kool601/Project-Altis-Educational-Source
0a74999fb52d4e690a41b984703119f63c372d20
[ "Apache-2.0" ]
2
2017-12-20T17:46:56.000Z
2021-06-25T02:56:36.000Z
import random from otp.ai.AIBase import * from direct.distributed.ClockDelta import * from toontown.battle.BattleBase import * from toontown.battle.BattleCalculatorAI import * from toontown.toonbase.ToontownBattleGlobals import * from toontown.battle.SuitBattleGlobals import * from pandac.PandaModules import * from too...
42.221267
279
0.551567
7,380
78,616
5.80542
0.107317
0.036178
0.034661
0.009756
0.347563
0.276398
0.220638
0.186747
0.154047
0.14072
0
0.006696
0.348415
78,616
1,861
280
42.243955
0.829693
0.00262
0
0.387077
0
0.001812
0.087457
0.001824
0
0
0
0.000537
0
1
0.076087
false
0.010266
0.012681
0.009662
0.144324
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
719665fcbb1b48dc2e95347865f8f0d20166bbd8
2,127
py
Python
conf/constants.py
codingwangfeng/GoodGoodName
02bfeb3ae65fd9ba0354f5b67237fcad4c0e11cb
[ "MIT" ]
null
null
null
conf/constants.py
codingwangfeng/GoodGoodName
02bfeb3ae65fd9ba0354f5b67237fcad4c0e11cb
[ "MIT" ]
null
null
null
conf/constants.py
codingwangfeng/GoodGoodName
02bfeb3ae65fd9ba0354f5b67237fcad4c0e11cb
[ "MIT" ]
null
null
null
# -*-coding:utf-8-*- # from functools import reduce from functools import reduce SANCAI_jixiang = [1, 3, 5, 7, 8, 11, 13, 15, 16, 18, 21, 23, 24, 25, 31, 32, 33, 35, 37, 39, 41, 45, 47, 48, 52, 57, 61, 63, 65, 67, 68, 81] # 吉祥运暗示数(代表健全,幸福,名誉等) SANCAI_xiaoji = [6, 17, 26, 27, 29, 30,...
49.465116
120
0.640809
367
2,127
3.53406
0.476839
0.037008
0.040093
0.038551
0.285274
0.269854
0.269854
0.269854
0.269854
0.164996
0
0.174501
0.199812
2,127
42
121
50.642857
0.587544
0.181946
0
0.066667
0
0
0.015125
0
0
0
0
0
0
1
0
false
0
0.033333
0
0.033333
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
7196e863b7922259efe8d454892b5eb76fb7593e
27,897
py
Python
bzt/modules/blazemeter/blazemeter_reporter.py
beachwood23/taurus
698ac747bae5d4940a879a8526add67c11ef42da
[ "Apache-2.0" ]
null
null
null
bzt/modules/blazemeter/blazemeter_reporter.py
beachwood23/taurus
698ac747bae5d4940a879a8526add67c11ef42da
[ "Apache-2.0" ]
34
2017-08-31T22:54:12.000Z
2022-03-16T00:39:48.000Z
bzt/modules/blazemeter/blazemeter_reporter.py
beachwood23/taurus
698ac747bae5d4940a879a8526add67c11ef42da
[ "Apache-2.0" ]
null
null
null
""" Module for reporting into http://www.blazemeter.com/ service Copyright 2015 BlazeMeter Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unles...
40.547965
120
0.566979
3,094
27,897
4.936005
0.175501
0.022328
0.012768
0.008905
0.183408
0.117012
0.070259
0.03955
0.027632
0.020953
0
0.007744
0.319568
27,897
687
121
40.606987
0.796808
0.085601
0
0.138196
0
0
0.099897
0.009827
0
0
0
0
0.007678
1
0.057582
false
0
0.038388
0.003839
0.12476
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71975dd9b4598f0884460876d889b91d528834d3
20,434
py
Python
nitorch/nn/losses/_spatial.py
wyli/nitorch
3ecd18944cf45fb9193c4c6ffc32953c4d1c71ac
[ "MIT" ]
1
2021-04-09T21:24:47.000Z
2021-04-09T21:24:47.000Z
nitorch/nn/losses/_spatial.py
wyli/nitorch
3ecd18944cf45fb9193c4c6ffc32953c4d1c71ac
[ "MIT" ]
null
null
null
nitorch/nn/losses/_spatial.py
wyli/nitorch
3ecd18944cf45fb9193c4c6ffc32953c4d1c71ac
[ "MIT" ]
null
null
null
""" Losses that assume an underlying spatial organization (gradients, curvature, etc.) """ import torch import torch.nn as tnn from nitorch.core.pyutils import make_list, prod from nitorch.core.utils import slice_tensor from nitorch.spatial import diff1d from ._base import Loss class LocalFeatures(tnn.Module): "...
35.414211
90
0.553049
2,571
20,434
4.306496
0.119409
0.04552
0.016438
0.024025
0.711163
0.673952
0.659772
0.629606
0.613891
0.597995
0
0.014615
0.343692
20,434
576
91
35.475694
0.810976
0.465401
0
0.57971
0
0
0.017748
0
0
0
0
0.001736
0
1
0.05314
false
0
0.028986
0
0.135266
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
719876b6e33d3caa67b41082a88c72293d4411b5
2,801
py
Python
launch/twist_mux_launch.py
nuclearsandwich-ros/twist_mux-release
d92dcda0255e727b899d3bac62ef3d89c19cb38e
[ "Apache-2.0" ]
31
2017-11-25T17:13:00.000Z
2022-01-20T14:39:12.000Z
launch/twist_mux_launch.py
nuclearsandwich-ros/twist_mux-release
d92dcda0255e727b899d3bac62ef3d89c19cb38e
[ "Apache-2.0" ]
27
2015-05-22T13:35:04.000Z
2021-12-29T07:26:02.000Z
launch/twist_mux_launch.py
nuclearsandwich-ros/twist_mux-release
d92dcda0255e727b899d3bac62ef3d89c19cb38e
[ "Apache-2.0" ]
51
2015-10-16T11:41:24.000Z
2022-03-28T07:33:24.000Z
#!/usr/bin/env python3 # Copyright 2020 Gaitech Korea Co., Ltd. # # 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 appli...
38.902778
84
0.63513
294
2,801
5.836735
0.42517
0.041958
0.034965
0.055944
0.177156
0.132867
0.09324
0.09324
0.09324
0.09324
0
0.006417
0.276687
2,801
71
85
39.450704
0.840573
0.21528
0
0.2
0
0
0.195144
0.00962
0
0
0
0
0
1
0.02
false
0
0.12
0
0.16
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
7199385be37350560f528085cc7c3bcbd212b172
5,298
py
Python
Tests/testLiveService.py
psu-capstone-teamD/ElementalAuth
d896efad5a3e4cb453c324afc456aa82f82da239
[ "MIT" ]
2
2017-08-21T00:52:35.000Z
2018-10-31T17:38:42.000Z
Tests/testLiveService.py
psu-capstone-teamD/ElementalAuth
d896efad5a3e4cb453c324afc456aa82f82da239
[ "MIT" ]
27
2017-07-27T21:10:35.000Z
2017-08-24T21:19:23.000Z
Tests/testLiveService.py
psu-capstone-teamD/ElementalAuth
d896efad5a3e4cb453c324afc456aa82f82da239
[ "MIT" ]
2
2017-07-08T00:57:08.000Z
2017-07-24T19:21:12.000Z
import sys import unittest import requests_mock from mock import patch sys.path.append('services/LiveService') from LiveService import LiveService L = LiveService() baseURL = "https://yanexx65s8e1.live.elementalclouddev.com/api" class LiveServiceTest(unittest.TestCase): '''@patch('services.LiveService.LiveSe...
35.557047
85
0.634957
631
5,298
5.18542
0.187005
0.110024
0.119193
0.137531
0.660147
0.580379
0.535147
0.511308
0.462408
0.462408
0
0.048841
0.234806
5,298
148
86
35.797297
0.758263
0.089656
0
0.460177
0
0
0.125914
0.075799
0
0
0
0
0.159292
1
0.150442
false
0
0.044248
0
0.20354
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
719a305b1e0f6ee4015df4fc0e1d42b61d553b49
1,611
py
Python
employee/views/check_rental.py
odrolliv13/Hex-Photos
d1b42b63394783164f843fe6343491f04fe11e0c
[ "Apache-2.0" ]
null
null
null
employee/views/check_rental.py
odrolliv13/Hex-Photos
d1b42b63394783164f843fe6343491f04fe11e0c
[ "Apache-2.0" ]
null
null
null
employee/views/check_rental.py
odrolliv13/Hex-Photos
d1b42b63394783164f843fe6343491f04fe11e0c
[ "Apache-2.0" ]
null
null
null
from django import forms from django.conf import settings from django.http import HttpResponse, HttpResponseRedirect, Http404 from manager import models as pmod from . import templater from django.conf import settings import decimal, datetime # This view will display all users and then on a new page display al...
30.980769
150
0.703911
201
1,611
5.572139
0.437811
0.035714
0.025
0.035714
0.289286
0.128571
0.128571
0.128571
0.128571
0.128571
0
0.00382
0.187461
1,611
52
150
30.980769
0.851795
0.136561
0
0.4
0
0
0.090501
0.020194
0
0
0
0
0
1
0.025
false
0.025
0.175
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
719d88c236122420bab454b120302ded66f22838
828
py
Python
var/spack/repos/builtin/packages/py-cyvcf2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-cyvcf2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/py-cyvcf2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class PyCyvcf2(PythonPackage): """fast vcf parsing with cython + htslib""" homepage...
31.846154
96
0.689614
109
828
5.174312
0.623853
0.111702
0.097518
0.134752
0.230496
0.12234
0
0
0
0
0
0.099859
0.141304
828
25
97
33.12
0.69339
0.274155
0
0
0
0
0.415541
0.153716
0
0
0
0
0
1
0
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
719e7932fde71fc017391588fcca49763cf61208
5,283
py
Python
test_soundcard.py
flying-sheep/SoundCard
b476c8142b460fc8161d374b282fe846d72a0780
[ "BSD-3-Clause" ]
1
2020-01-27T00:59:12.000Z
2020-01-27T00:59:12.000Z
test_soundcard.py
flying-sheep/SoundCard
b476c8142b460fc8161d374b282fe846d72a0780
[ "BSD-3-Clause" ]
null
null
null
test_soundcard.py
flying-sheep/SoundCard
b476c8142b460fc8161d374b282fe846d72a0780
[ "BSD-3-Clause" ]
null
null
null
import sys import soundcard import numpy import pytest ones = numpy.ones(1024) signal = numpy.concatenate([[ones], [-ones]]).T def test_speakers(): for speaker in soundcard.all_speakers(): assert isinstance(speaker.name, str) assert hasattr(speaker, 'id') assert isinstance(speaker.channels...
38.845588
102
0.696952
662
5,283
5.432024
0.163142
0.050612
0.013904
0.022247
0.676307
0.657953
0.622358
0.59594
0.556174
0.548109
0
0.046955
0.18569
5,283
135
103
39.133333
0.788935
0.057543
0
0.477876
0
0
0.024744
0
0
0
0
0
0.327434
1
0.132743
false
0
0.044248
0
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
719fd87192b7b49949a8b70a475fd96677b03575
6,137
py
Python
osr_odometry/scripts/osr_odom_ackerman2.py
ljb2208/osr-rover-code
f4791d835cd760446777a226d37bb3114256affd
[ "Apache-2.0" ]
null
null
null
osr_odometry/scripts/osr_odom_ackerman2.py
ljb2208/osr-rover-code
f4791d835cd760446777a226d37bb3114256affd
[ "Apache-2.0" ]
null
null
null
osr_odometry/scripts/osr_odom_ackerman2.py
ljb2208/osr-rover-code
f4791d835cd760446777a226d37bb3114256affd
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import time from osr_msgs.msg import Joystick, Commands, Encoder, RunStop from nav_msgs.msg import Odometry from geometry_msgs.msg import Point, Pose, Quaternion, Twist, Vector3 import rospy import tf import math import numpy class Odometry2(): def __init__(self, baseFrame, wheelTrack, mpt, d...
30.532338
96
0.579599
739
6,137
4.763194
0.247632
0.005682
0.025852
0.035795
0.139205
0.126136
0.082955
0.067045
0.067045
0.067045
0
0.030026
0.305361
6,137
200
97
30.685
0.795684
0.053772
0
0.044776
0
0
0.054021
0.011564
0
0
0
0
0
1
0.067164
false
0
0.059701
0
0.186567
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71a0b40b2d964c1cdacc2a99529ad40612493ff0
4,199
py
Python
src/simulation-conditioning/utilities/data-generation-scripts/Wavefield_Marmousi_pml_401x301_1000-1287_120-232_4k_20kp100_A_train.py
alisiahkoohi/importance-of-transfer-learning
bb4c7943f4ff64a2f1785503328b4cbb4f5111aa
[ "MIT" ]
null
null
null
src/simulation-conditioning/utilities/data-generation-scripts/Wavefield_Marmousi_pml_401x301_1000-1287_120-232_4k_20kp100_A_train.py
alisiahkoohi/importance-of-transfer-learning
bb4c7943f4ff64a2f1785503328b4cbb4f5111aa
[ "MIT" ]
4
2020-09-25T22:32:41.000Z
2022-02-09T23:36:02.000Z
src/simulation-conditioning/utilities/data-generation-scripts/Wavefield_Marmousi_pml_401x301_1000-1287_120-232_4k_20kp100_A_train.py
slimgroup/Software.siahkoohi2019itl
bb4c7943f4ff64a2f1785503328b4cbb4f5111aa
[ "MIT" ]
null
null
null
import numpy as np import h5py import os from devito.logger import info from devito import TimeFunction, clear_cache from examples.seismic.acoustic import AcousticWaveSolver from examples.seismic import Model, RickerSource, Receiver, TimeAxis from math import floor from scipy.interpolate import griddata import argparse...
34.702479
116
0.700881
676
4,199
4.233728
0.263314
0.018868
0.033543
0.026555
0.402166
0.354997
0.336827
0.336827
0.297694
0.274284
0
0.062346
0.129078
4,199
120
117
34.991667
0.720263
0.042391
0
0.04878
0
0
0.076252
0.035883
0
0
0
0
0
1
0
false
0
0.121951
0
0.121951
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71a3ec3949c4d0b824f364cf880c163e7d4093ec
749
py
Python
JumpscaleCore/clients/tcprouter/TCPRouterFactory.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
1
2020-06-21T11:18:52.000Z
2020-06-21T11:18:52.000Z
JumpscaleCore/clients/tcprouter/TCPRouterFactory.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
644
2019-08-25T10:19:56.000Z
2020-12-23T09:41:04.000Z
JumpscaleCore/clients/tcprouter/TCPRouterFactory.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
11
2019-08-29T21:38:50.000Z
2020-06-21T11:18:55.000Z
from Jumpscale import j from .TCPRouterClient import TCPRouterClient JSConfigs = j.baseclasses.object_config_collection class TCPRouterFactory(JSConfigs): __jslocation__ = "j.clients.tcp_router" _CHILDCLASS = TCPRouterClient def test(self): """ kosmos 'j.clients.tcp_router.test()' ...
22.029412
81
0.580774
82
749
5.134146
0.585366
0.019002
0.052257
0.08076
0
0
0
0
0
0
0
0.037328
0.320427
749
33
82
22.69697
0.789784
0.192256
0
0
0
0
0.103627
0
0
0
0
0
0
1
0.055556
false
0
0.111111
0
0.333333
0.055556
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71a54794818c1c14503bf2853a8ad157b14a963f
8,837
py
Python
nmrglue/fileio/spinsolve.py
miguelarbesu/nmrglue
6ca36de7af1a2cf109f40bf5afe9c1ce73c9dcdc
[ "BSD-3-Clause" ]
null
null
null
nmrglue/fileio/spinsolve.py
miguelarbesu/nmrglue
6ca36de7af1a2cf109f40bf5afe9c1ce73c9dcdc
[ "BSD-3-Clause" ]
null
null
null
nmrglue/fileio/spinsolve.py
miguelarbesu/nmrglue
6ca36de7af1a2cf109f40bf5afe9c1ce73c9dcdc
[ "BSD-3-Clause" ]
null
null
null
""" Functions for reading Magritek Spinsolve binary (dx/1d) files and parameter (acqu.par/proc.par) files. """ import os from warnings import warn import numpy as np from . import fileiobase from . import jcampdx __developer_info__ = """ Spinsolve is the software used on the Magritek benchtop NMR devices. A spect...
37.764957
132
0.593188
1,177
8,837
4.425658
0.254036
0.021117
0.013822
0.009215
0.212901
0.149549
0.105586
0.094836
0.094836
0.094836
0
0.016102
0.269096
8,837
233
133
37.927039
0.79037
0.278715
0
0.265625
0
0.070313
0.377132
0.01949
0
0
0
0
0
1
0.015625
false
0
0.039063
0
0.070313
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71a6a1b4c00b5723fdf1d5cebd6d02a67810c5fb
21,781
py
Python
src/navigation_analytics/navigation_data.py
mielgosez/navigation_analytics
3c382e8200afe4d37fa0880f155bf1bb2f48b83f
[ "MIT" ]
null
null
null
src/navigation_analytics/navigation_data.py
mielgosez/navigation_analytics
3c382e8200afe4d37fa0880f155bf1bb2f48b83f
[ "MIT" ]
null
null
null
src/navigation_analytics/navigation_data.py
mielgosez/navigation_analytics
3c382e8200afe4d37fa0880f155bf1bb2f48b83f
[ "MIT" ]
null
null
null
import logging import copy import pickle import pandas as pd class BaseClass: def __init__(self, input_data: pd.DataFrame, logger: logging.Logger, metadata: dict): self.__input_data = input_data self.__logger = logger self.__metadata = met...
40.186347
120
0.620724
2,659
21,781
4.802933
0.103422
0.036646
0.035079
0.02584
0.532065
0.436614
0.374051
0.314619
0.222222
0.17618
0
0.001271
0.277352
21,781
541
121
40.260628
0.810102
0.093338
0
0.340852
0
0
0.111899
0.010615
0
0
0
0
0
1
0.155388
false
0
0.010025
0.080201
0.280702
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71ad91d94d2021895fed2197ad1e1027179c068d
5,844
py
Python
oneflow/python/test/ops/test_object_bbox_scale.py
caishenghang/oneflow
db239cc9f98e551823bf6ce2d4395bd5c339b1c5
[ "Apache-2.0" ]
2
2021-09-10T00:19:49.000Z
2021-11-16T11:27:20.000Z
oneflow/python/test/ops/test_object_bbox_scale.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
null
null
null
oneflow/python/test/ops/test_object_bbox_scale.py
duijiudanggecl/oneflow
d2096ae14cf847509394a3b717021e2bd1d72f62
[ "Apache-2.0" ]
1
2021-11-10T07:57:01.000Z
2021-11-10T07:57:01.000Z
""" Copyright 2020 The OneFlow Authors. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agr...
32.287293
88
0.688912
829
5,844
4.494572
0.241255
0.05153
0.040258
0.020397
0.283682
0.165325
0.085883
0.052067
0.052067
0.028986
0
0.012059
0.219541
5,844
180
89
32.466667
0.804867
0.099418
0
0.080882
0
0
0.038059
0.015794
0
0
0
0
0.029412
1
0.058824
false
0
0.058824
0
0.169118
0.007353
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71ae6ca7d57af38b1b86f8540325942204357879
1,767
py
Python
vagrant/kafka/bin/init.py
BertRaeymaekers/scrapbook
3c8483d4594356fbc84deb8d6496db3d856492c1
[ "MIT" ]
null
null
null
vagrant/kafka/bin/init.py
BertRaeymaekers/scrapbook
3c8483d4594356fbc84deb8d6496db3d856492c1
[ "MIT" ]
null
null
null
vagrant/kafka/bin/init.py
BertRaeymaekers/scrapbook
3c8483d4594356fbc84deb8d6496db3d856492c1
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 import json import os.path import jinja2 DEFAULT_PARAMS = { "ansible_user": "vagrant" } if __name__ == "__main__": # Reading configuration here = os.path.dirname(os.path.realpath(__file__ + "/../")) with open(here + "/config.json", "r") as rf: config = json.load(rf...
35.34
107
0.589134
217
1,767
4.705069
0.400922
0.041136
0.03526
0.031342
0.168462
0.105779
0.105779
0.105779
0.105779
0.105779
0
0.004428
0.233164
1,767
49
108
36.061224
0.749077
0.13073
0
0.125
0
0
0.206671
0.035971
0
0
0
0
0
1
0
false
0
0.09375
0
0.09375
0.03125
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71aed94e4374b265d7146087fcd15cb6a8415441
883
py
Python
harvest/models/beastsimulator.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
1
2016-10-23T13:24:44.000Z
2016-10-23T13:24:44.000Z
harvest/models/beastsimulator.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
null
null
null
harvest/models/beastsimulator.py
lmaurits/harvest
df6b549096da8ae2f4ed38aa2be19c7e82fa60e3
[ "BSD-2-Clause" ]
null
null
null
import os import harvest.dataframe from harvest.models.simulator import Simulator class BeastSimulator(Simulator): def __init__(self, tree, n_features): Simulator.__init__(self, tree, n_features) def generate_beast_xml(self): # Subclasses should implement this return None def ge...
30.448276
73
0.673839
108
883
5.287037
0.425926
0.070053
0.084063
0.045534
0.073555
0
0
0
0
0
0
0
0.251416
883
28
74
31.535714
0.863843
0.178935
0
0
0
0
0.027855
0
0
0
0
0
0
1
0.176471
false
0
0.176471
0.058824
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71af526fe8ec36b7ab5df62ce53a7484137b158f
770
py
Python
assimilator.py
DutChen18/slime-clusters-cuda
186d198665a017cf0eacde33765b6cb3cb4aecb5
[ "MIT" ]
null
null
null
assimilator.py
DutChen18/slime-clusters-cuda
186d198665a017cf0eacde33765b6cb3cb4aecb5
[ "MIT" ]
null
null
null
assimilator.py
DutChen18/slime-clusters-cuda
186d198665a017cf0eacde33765b6cb3cb4aecb5
[ "MIT" ]
null
null
null
# pylint: skip-file import os from assimilator import * from Boinc import boinc_project_path class SlimeClustersAssimilator(Assimilator): def __init__(self): Assimilator.__init__(self) def assimilate_handler(self, wu, results, canonical_result): if canonical_result == None: return...
29.615385
68
0.661039
95
770
4.989474
0.473684
0.050633
0.067511
0
0
0
0
0
0
0
0
0
0.237662
770
26
69
29.615385
0.807496
0.022078
0
0
0
0
0.046543
0
0
0
0
0
0
1
0.111111
false
0
0.166667
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71af9d8ca1143528cfcbc75651debdacf07e53c4
12,343
py
Python
modin/core/execution/ray/implementations/cudf_on_ray/dataframe/dataframe.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/execution/ray/implementations/cudf_on_ray/dataframe/dataframe.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
modin/core/execution/ray/implementations/cudf_on_ray/dataframe/dataframe.py
Rubtsowa/modin
6550939753c76e896ef2bfd65bb9468d6ad161d7
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# Licensed to Modin Development Team under one or more contributor license agreements. # See the NOTICE file distributed with this work for additional information regarding # copyright ownership. The Modin Development Team licenses this file to you under the # Apache License, Version 2.0 (the "License"); you may not u...
41.006645
101
0.573767
1,480
12,343
4.564865
0.184459
0.075488
0.051954
0.009769
0.367969
0.272647
0.181172
0.164002
0.103908
0.103908
0
0.004014
0.354047
12,343
300
102
41.143333
0.843346
0.291663
0
0.145729
0
0
0.002498
0
0
0
0
0
0.005025
1
0.015075
false
0
0.030151
0
0.085427
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71afcdef0e0e86f29155c36a2d10beb1ffdab1ce
1,527
py
Python
Exoplanet_Population.py
mw5868/University
076c9b001dbfe3765607877be4f89ccf86a88331
[ "MIT" ]
null
null
null
Exoplanet_Population.py
mw5868/University
076c9b001dbfe3765607877be4f89ccf86a88331
[ "MIT" ]
null
null
null
Exoplanet_Population.py
mw5868/University
076c9b001dbfe3765607877be4f89ccf86a88331
[ "MIT" ]
null
null
null
from astropy.table import Table, Column import matplotlib.pyplot as plt #url = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=exoplanets&select=pl_hostname,ra,dec&order=dec&format=csv" url = "https://exoplanetarchive.ipac.caltech.edu/cgi-bin/nstedAPI/nph-nstedAPI?table=exoplanets" # This...
42.416667
144
0.668631
287
1,527
3.407666
0.33101
0.01636
0.03272
0.0818
0.241309
0.241309
0.241309
0.241309
0.241309
0.241309
0
0.022302
0.089718
1,527
36
145
42.416667
0.681295
0.118533
0
0
0
0.033333
0.286245
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b199d12891c79153389fe28f6188e598ac7c21
792
py
Python
src/pe_problem74.py
henrimitte/Project-Euler
77fd9f5b076d1ca2e5ed4ef94bf8d32d9ed611eb
[ "MIT" ]
null
null
null
src/pe_problem74.py
henrimitte/Project-Euler
77fd9f5b076d1ca2e5ed4ef94bf8d32d9ed611eb
[ "MIT" ]
null
null
null
src/pe_problem74.py
henrimitte/Project-Euler
77fd9f5b076d1ca2e5ed4ef94bf8d32d9ed611eb
[ "MIT" ]
null
null
null
from tools import factorial def solve(): fa = tuple(factorial(x) for x in range(10)) def _sum_factorial_of_digits(n: int) -> int: s = 0 while n > 0: s += fa[n % 10] n //= 10 return s limit = 1000000 loops = [0 for x in range(limit)] for i in range(...
22.628571
55
0.474747
103
792
3.436893
0.427184
0.059322
0.101695
0.062147
0.118644
0
0
0
0
0
0
0.043956
0.425505
792
34
56
23.294118
0.734066
0
0
0
0
0
0.010101
0
0
0
0
0
0
1
0.074074
false
0
0.037037
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b28ef18b75d4bcb886bea855f0ba76dd2bc9f2
27,966
py
Python
thingsboard_gateway/connectors/modbus/modbus_connector.py
ferguscan/thingsboard-gateway
bc20fdb8e46f840b8538a010db2714ec6071fa5b
[ "Apache-2.0" ]
null
null
null
thingsboard_gateway/connectors/modbus/modbus_connector.py
ferguscan/thingsboard-gateway
bc20fdb8e46f840b8538a010db2714ec6071fa5b
[ "Apache-2.0" ]
null
null
null
thingsboard_gateway/connectors/modbus/modbus_connector.py
ferguscan/thingsboard-gateway
bc20fdb8e46f840b8538a010db2714ec6071fa5b
[ "Apache-2.0" ]
null
null
null
# Copyright 2022. ThingsBoard # # 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 ...
50.389189
121
0.567582
2,584
27,966
5.833978
0.140867
0.052537
0.021227
0.01539
0.381957
0.307927
0.2601
0.213665
0.164113
0.129486
0
0.005671
0.350569
27,966
554
122
50.480144
0.824359
0.025567
0
0.210989
0
0
0.084616
0.005803
0
0
0
0.001805
0
1
0.043956
false
0
0.065934
0.006593
0.125275
0.002198
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b2acdd2d92ff5dd5a3e30aa5f776064be270a0
966
py
Python
specs/test_gru_on_flat_babyai.py
xwu20/wmg_agent
25378c8fc54eb6e0e8c9d969760a72e843572f09
[ "MIT" ]
23
2020-07-08T15:58:51.000Z
2022-01-13T04:22:03.000Z
specs/test_gru_on_flat_babyai.py
xwu20/wmg_agent
25378c8fc54eb6e0e8c9d969760a72e843572f09
[ "MIT" ]
3
2021-06-08T21:58:37.000Z
2022-01-13T03:00:32.000Z
specs/test_gru_on_flat_babyai.py
xwu20/wmg_agent
25378c8fc54eb6e0e8c9d969760a72e843572f09
[ "MIT" ]
11
2020-07-31T11:13:29.000Z
2021-11-10T08:37:12.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. ### CONTROLS (non-tunable) ### # general TYPE_OF_RUN = test_episodes # train, test, test_episodes, render NUM_EPISODES_TO_TEST = 1000 MIN_FINAL_REWARD_FOR_SUCCESS = 1.0 LOAD_MODEL_FROM = models/gru_flat_babyai.pth SAVE_MODELS_TO = None # wo...
19.714286
65
0.774327
153
966
4.522876
0.69281
0.052023
0.034682
0
0
0
0
0
0
0
0
0.060606
0.145963
966
48
66
20.125
0.778182
0.219462
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b31d76fcd9783bbf00ab94b135126e5908e931
3,474
bzl
Python
haskell/private/actions/runghc.bzl
meisterT/rules_haskell
7c0a867fc23da104ea8cbff26864894abcf137bc
[ "Apache-2.0" ]
null
null
null
haskell/private/actions/runghc.bzl
meisterT/rules_haskell
7c0a867fc23da104ea8cbff26864894abcf137bc
[ "Apache-2.0" ]
null
null
null
haskell/private/actions/runghc.bzl
meisterT/rules_haskell
7c0a867fc23da104ea8cbff26864894abcf137bc
[ "Apache-2.0" ]
null
null
null
"""runghc support""" load(":private/context.bzl", "render_env") load(":private/packages.bzl", "expose_packages", "pkg_info_to_compile_flags") load( ":private/path_utils.bzl", "link_libraries", "ln", "target_unique_name", ) load( ":private/set.bzl", "set", ) load(":providers.bzl", "get_ghci_extr...
31.017857
90
0.627231
445
3,474
4.685393
0.379775
0.016787
0.031175
0.015348
0.020144
0
0
0
0
0
0
0.000396
0.272309
3,474
111
91
31.297297
0.824367
0.335636
0
0.128571
0
0
0.137885
0.053994
0
0
0
0
0
1
0.014286
false
0
0.014286
0
0.028571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b4b6265ccad83e3c8c7743ef9150f9f16b46b0
8,456
py
Python
tests/dicom/test_header_tweaks.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
1
2020-12-20T14:13:56.000Z
2020-12-20T14:13:56.000Z
tests/dicom/test_header_tweaks.py
pymedphys/pymedphys-archive-2019
6bb7c8d0da2e93ff56469bb47e65b15ece2ea25e
[ "Apache-2.0" ]
6
2020-10-06T15:36:46.000Z
2022-02-27T05:15:17.000Z
tests/dicom/test_header_tweaks.py
cpbhatt/pymedphys
177b3db8e2a6e83c44835d0007d1d5c7a420fd99
[ "Apache-2.0" ]
1
2020-12-20T14:14:00.000Z
2020-12-20T14:14:00.000Z
# Copyright (C) 2019 Cancer Care Associates # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to ...
30.637681
87
0.534532
743
8,456
5.746972
0.23284
0.057845
0.023185
0.032787
0.534192
0.464403
0.404918
0.322717
0.259016
0.211007
0
0.015106
0.373699
8,456
275
88
30.749091
0.791163
0.06658
0
0.327273
0
0
0.2068
0.068891
0
0
0
0
0.045455
1
0.022727
false
0
0.036364
0
0.059091
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b4b95cd8eac603e64cc2b55ede32f9146ce21d
1,929
py
Python
tests/components/http/test_data_validator.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
23
2017-11-15T21:03:53.000Z
2021-03-29T21:33:48.000Z
tests/components/http/test_data_validator.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
tests/components/http/test_data_validator.py
itewk/home-assistant
769cf19052f8c9ef374d8ba8ae7705ccc7bf4cf4
[ "Apache-2.0" ]
10
2018-01-01T00:12:51.000Z
2021-12-21T23:08:05.000Z
"""Test data validator decorator.""" from unittest.mock import Mock from aiohttp import web import voluptuous as vol from homeassistant.components.http import HomeAssistantView from homeassistant.components.http.data_validator import RequestDataValidator async def get_client(aiohttp_client, validator): """Gener...
27.169014
85
0.610679
216
1,929
5.375
0.356481
0.067183
0.077519
0.098191
0.385874
0.335917
0.335917
0.335917
0.335917
0.229113
0
0.017094
0.272162
1,929
70
86
27.557143
0.809829
0.059616
0
0.347826
0
0
0.027158
0
0
0
0
0
0.130435
1
0
false
0
0.108696
0
0.23913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b4ce87227b2fcaa01e098fed2fec676e7173d5
7,410
py
Python
Conversely_Frontend/app/Server/ukjp/templates.py
sam-aldis/Conversley
1fc30d6b768cc03f727229a52e0879fac3af1e3a
[ "MIT" ]
null
null
null
Conversely_Frontend/app/Server/ukjp/templates.py
sam-aldis/Conversley
1fc30d6b768cc03f727229a52e0879fac3af1e3a
[ "MIT" ]
null
null
null
Conversely_Frontend/app/Server/ukjp/templates.py
sam-aldis/Conversley
1fc30d6b768cc03f727229a52e0879fac3af1e3a
[ "MIT" ]
null
null
null
import days STAGE_INIT = 0 STAGE_CHALLENGE_INIT = 1 STAGE_BOOKED = 2 def createJSONTemplate(data): pass messages = [ "Hey {{first_name}}, thankyou for your enquiry to be one of our Transformation Challengers", "We have 2 Challenges available for you:\n\nThe 8 Week Bikini Challenge which h...
47.197452
276
0.523752
786
7,410
4.85369
0.272265
0.108519
0.075491
0.052425
0.701704
0.638008
0.572739
0.504849
0.456619
0.418349
0
0.029539
0.374089
7,410
157
277
47.197452
0.793014
0.15668
0
0.294118
0
0.058824
0.237927
0.017969
0
0
0
0
0
1
0.014706
false
0.007353
0.007353
0
0.029412
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b54a23f9d4b30c276bd6f326098f146a43547e
1,349
py
Python
var/spack/repos/builtin/packages/pagmo2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/pagmo2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/pagmo2/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack.package import * class Pagmo2(CMakePackage): """Parallel Global Multiobjective Optimizer (and its Python ...
33.725
96
0.679021
164
1,349
5.506098
0.682927
0.039867
0.031008
0.037652
0.050941
0
0
0
0
0
0
0.063477
0.194218
1,349
39
97
34.589744
0.767249
0.30467
0
0
0
0.047619
0.402399
0.153762
0
0
0
0
0
1
0.047619
false
0
0.047619
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
71b725d9d3a609a2e8415f6bcdfe99ef3f2dd580
4,984
py
Python
interferogram/sentinel/fetchCalES.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
4
2019-11-19T03:35:35.000Z
2020-12-07T18:43:11.000Z
interferogram/sentinel/fetchCalES.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
3
2019-06-05T03:35:55.000Z
2020-04-09T14:16:08.000Z
interferogram/sentinel/fetchCalES.py
earthobservatory/ariamh-pub
f33731e127f38ff33b02e02c07b16793c07651a6
[ "Apache-2.0" ]
6
2019-08-23T22:53:11.000Z
2021-11-06T15:15:30.000Z
#!/usr/bin/env python3 import os, sys, re, json, requests, datetime, tarfile, argparse from pprint import pprint import numpy as np from utils.UrlUtils import UrlUtils server = 'https://qc.sentinel1.eo.esa.int/' cal_re = re.compile(r'S1\w_AUX_CAL') def cmdLineParse(): ''' Command line parser. ''' ...
29.491124
105
0.573234
649
4,984
4.229584
0.268105
0.023679
0.028415
0.016029
0.358106
0.314026
0.283424
0.259381
0.259381
0.259381
0
0.007515
0.279093
4,984
168
106
29.666667
0.756471
0.06561
0
0.353448
0
0
0.178058
0.01589
0
0
0
0
0
1
0.051724
false
0
0.034483
0
0.12069
0.12931
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b74d81702689c7914ede59827af8b7196bc18b
2,590
py
Python
www/conservancy/urls.py
stain/conservancy-website
9e41ddff766fe517a99198d60701193e8b68415e
[ "0BSD" ]
null
null
null
www/conservancy/urls.py
stain/conservancy-website
9e41ddff766fe517a99198d60701193e8b68415e
[ "0BSD" ]
null
null
null
www/conservancy/urls.py
stain/conservancy-website
9e41ddff766fe517a99198d60701193e8b68415e
[ "0BSD" ]
null
null
null
# Copyright 2005-2008, James Garrison # Copyright 2010, 2012 Bradley M. Kuhn # This software's license gives you freedom; you can copy, convey, # propagate, redistribute, modify and/or redistribute modified versions of # this program under the terms of the GNU Affero General Public License # (AGPL) as published by the...
44.655172
75
0.699614
356
2,590
5.047753
0.418539
0.053422
0.07123
0.063439
0.185865
0.055648
0.037841
0
0
0
0
0.012318
0.153668
2,590
57
76
45.438596
0.807482
0.362162
0
0
0
0
0.30496
0.127373
0
0
0
0
0
1
0
false
0
0.147059
0
0.147059
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b901299fb22334462ebfb480d8b6d820375ea4
1,430
py
Python
graphene_spike_tests/acceptances/test_query.py
FabienArcellier/spike-graphene-flask
bc7bce571a21826c3da852eb1c2e1904bbab99b4
[ "MIT" ]
1
2021-03-18T00:19:53.000Z
2021-03-18T00:19:53.000Z
graphene_spike_tests/acceptances/test_query.py
FabienArcellier/spike-graphene-flask
bc7bce571a21826c3da852eb1c2e1904bbab99b4
[ "MIT" ]
null
null
null
graphene_spike_tests/acceptances/test_query.py
FabienArcellier/spike-graphene-flask
bc7bce571a21826c3da852eb1c2e1904bbab99b4
[ "MIT" ]
null
null
null
import unittest from unittest.mock import Mock from graphene import Schema from graphene.test import Client from graphene_spike.query import Query class MainTest(unittest.TestCase): def setUp(self): self.schema = Schema(query=Query) self.client = client = Client(self.schema) def test_hello_...
26.481481
86
0.630769
163
1,430
5.343558
0.276074
0.101033
0.068886
0.096441
0.579793
0.490241
0.490241
0.490241
0.490241
0.490241
0
0.007533
0.257343
1,430
53
87
26.981132
0.812618
0.052448
0
0.16
0
0
0.143815
0
0
0
0
0
0.16
1
0.2
false
0
0.2
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
71b9373dfb805ca37a8bda9472585bd77a94fc2f
10,028
py
Python
clikan.py
davidventasmarin/clikan
401fe4053a14873872bb246739d55c55f8f6dcfa
[ "MIT" ]
null
null
null
clikan.py
davidventasmarin/clikan
401fe4053a14873872bb246739d55c55f8f6dcfa
[ "MIT" ]
null
null
null
clikan.py
davidventasmarin/clikan
401fe4053a14873872bb246739d55c55f8f6dcfa
[ "MIT" ]
null
null
null
from rich import print from rich.console import Console from rich.table import Table import click from click_default_group import DefaultGroup import yaml import os ##from terminaltables import SingleTable import sys from textwrap import wrap import collections import datetime import configparser import pkg_resources ...
33.315615
102
0.603311
1,331
10,028
4.455297
0.220135
0.021248
0.020236
0.017201
0.298482
0.244519
0.203879
0.156492
0.14688
0.141821
0
0.004947
0.254188
10,028
300
103
33.426667
0.78794
0.183785
0
0.300493
0
0
0.145805
0.002859
0
0
0
0.003333
0
1
0.083744
false
0.009852
0.064039
0.004926
0.216749
0.029557
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71b9f7585fb3ca8d7750b533bdb679556becb780
853
py
Python
trial/src/sender.py
siddharthumakarthikeyan/Cable-Driven-Parallel-Robots-CDPR-Modelling
4e8d991d55ae7da91b3c90773c679f3369a4dafa
[ "MIT" ]
9
2021-06-01T12:19:58.000Z
2022-02-28T12:30:09.000Z
trial/src/sender.py
siddharthumakarthikeyan/Cable-Driven-Parallel-Robots-CDPR-Modelling
4e8d991d55ae7da91b3c90773c679f3369a4dafa
[ "MIT" ]
1
2021-09-27T12:24:50.000Z
2021-09-27T12:24:50.000Z
trial/src/sender.py
siddharthumakarthikeyan/Cable-Driven-Parallel-Robots-CDPR-Modelling
4e8d991d55ae7da91b3c90773c679f3369a4dafa
[ "MIT" ]
1
2021-08-02T00:48:11.000Z
2021-08-02T00:48:11.000Z
#!/usr/bin/env python # license removed for brevity import rospy from std_msgs.msg import String from gazebo_msgs.msg import LinkState def talker(): pub = rospy.Publisher('/gazebo/set_link_state', LinkState, queue_size=10) ppp = LinkState() rospy.init_node('talker', anonymous=True) rate = rospy.R...
24.371429
77
0.614302
116
853
4.37931
0.517241
0.096457
0.141732
0.112205
0.066929
0
0
0
0
0
0
0.028986
0.271981
853
34
78
25.088235
0.78905
0.062134
0
0
0
0
0.055207
0.027604
0
0
0
0
0
1
0.037037
false
0.037037
0.111111
0
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71bb038e552d16449011833ef1582532136fc5b7
1,073
py
Python
discriminator_dataset.py
kimmokal/CC-Art-Critics
af83762a5f22043f279c167cbd58e16737e3ec87
[ "MIT" ]
null
null
null
discriminator_dataset.py
kimmokal/CC-Art-Critics
af83762a5f22043f279c167cbd58e16737e3ec87
[ "MIT" ]
null
null
null
discriminator_dataset.py
kimmokal/CC-Art-Critics
af83762a5f22043f279c167cbd58e16737e3ec87
[ "MIT" ]
null
null
null
import torch from os import listdir, path from PIL import Image import torchvision class DiscriminatorDataset(torch.utils.data.Dataset): def __init__(self): super(DiscriminatorDataset, self).__init__() currentDir = path.dirname(__file__) abstractDir = path.join(currentDir, 'image_data/abs...
38.321429
103
0.692451
119
1,073
6.058824
0.411765
0.066574
0.049931
0.0638
0.169209
0
0
0
0
0
0
0.002347
0.205965
1,073
27
104
39.740741
0.843897
0
0
0
0
0
0.039143
0
0
0
0
0
0
1
0.136364
false
0
0.181818
0.045455
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71bcf0be9208fd0fbb5c709b03c8fca5ba790724
951
py
Python
emailmeld/sender.py
ionata/django-emailmeld
28326933d22957f8737ab8a9564daa9cbfca6d06
[ "BSD-2-Clause" ]
null
null
null
emailmeld/sender.py
ionata/django-emailmeld
28326933d22957f8737ab8a9564daa9cbfca6d06
[ "BSD-2-Clause" ]
1
2017-11-21T22:11:04.000Z
2017-11-22T00:37:49.000Z
emailmeld/sender.py
ionata/django-emailmeld
28326933d22957f8737ab8a9564daa9cbfca6d06
[ "BSD-2-Clause" ]
null
null
null
from django.core.mail.message import EmailMessage, EmailMultiAlternatives from django.utils.translation import ugettext_lazy as _ from django.template.loader import render_to_string from django.utils.safestring import mark_safe def send_mail_task(subject, message, from_email, recipient_list): message = EmailMessa...
47.55
126
0.785489
124
951
5.782258
0.379032
0.076709
0.089261
0.13947
0.306834
0.306834
0.119944
0
0
0
0
0.002398
0.123028
951
19
127
50.052632
0.857314
0.035752
0
0.142857
0
0
0.107104
0.022951
0
0
0
0
0
1
0.142857
false
0
0.285714
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
71be4424294b2ee2dc156eab695f7198203426e0
1,506
py
Python
tests/test_hap_server.py
sander-vd/HAP-python
991761ceadfd7796d454d61c87be7f5d4b75d432
[ "Apache-2.0" ]
3
2019-12-07T22:42:38.000Z
2022-01-20T08:44:46.000Z
tests/test_hap_server.py
sander-vd/HAP-python
991761ceadfd7796d454d61c87be7f5d4b75d432
[ "Apache-2.0" ]
null
null
null
tests/test_hap_server.py
sander-vd/HAP-python
991761ceadfd7796d454d61c87be7f5d4b75d432
[ "Apache-2.0" ]
1
2021-05-15T22:34:52.000Z
2021-05-15T22:34:52.000Z
"""Tests for the HAPServer.""" from socket import timeout from unittest.mock import Mock, MagicMock, patch import pytest from pyhap import hap_server @patch('pyhap.hap_server.HAPServer.server_bind', new=MagicMock()) @patch('pyhap.hap_server.HAPServer.server_activate', new=MagicMock()) def test_finish_request_pops_s...
32.73913
84
0.677955
183
1,506
5.415301
0.31694
0.070636
0.090817
0.12109
0.566095
0.533804
0.465187
0.465187
0.465187
0.414733
0
0.019658
0.223108
1,506
45
85
33.466667
0.82735
0.160027
0
0.428571
0
0
0.072684
0.063898
0
0
0
0
0.107143
1
0.071429
false
0
0.142857
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71bf1e11839857da419f894d58ec4b485c55ada9
1,604
py
Python
app/views/main.py
charlesashby/marketvault-front-end
758cf8ba1d8486f45eac093ded78a15fc82df3dc
[ "MIT" ]
null
null
null
app/views/main.py
charlesashby/marketvault-front-end
758cf8ba1d8486f45eac093ded78a15fc82df3dc
[ "MIT" ]
null
null
null
app/views/main.py
charlesashby/marketvault-front-end
758cf8ba1d8486f45eac093ded78a15fc82df3dc
[ "MIT" ]
null
null
null
from flask import render_template, Blueprint, request from app.utils.search import MySQLClient from app.utils.preprocessor import TextPreprocessor mainbp = Blueprint("main", __name__) @mainbp.route("/search", methods=["GET"]) @mainbp.route("/", methods=["GET"]) def home(): stores_by_page = 10 topic = reque...
31.45098
126
0.663342
190
1,604
5.4
0.321053
0.064327
0.081871
0.062378
0.060429
0.054581
0.054581
0
0
0
0
0.002383
0.215087
1,604
50
127
32.08
0.81255
0
0
0
0
0
0.106117
0.013109
0
0
0
0
0
1
0.052632
false
0
0.078947
0
0.184211
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71bf83bddad54a592ea34fa0a46b33394f925a8d
31,770
py
Python
bag_testbenches/ckt_dsn/analog/amplifier/opamp_two_stage.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
null
null
null
bag_testbenches/ckt_dsn/analog/amplifier/opamp_two_stage.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
null
null
null
bag_testbenches/ckt_dsn/analog/amplifier/opamp_two_stage.py
tinapiao/Software-IC-Automation
74b23cd94aa6e4658b110e93b5deb635e014f3a6
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains design algorithm for a traditional two stage operational amplifier.""" from typing import TYPE_CHECKING, List, Optional, Dict, Any, Tuple, Sequence from copy import deepcopy import numpy as np import scipy.optimize as sciopt from bag.math import gcd from bag.data.lti...
42.53012
100
0.549292
4,193
31,770
3.833055
0.110422
0.019039
0.0112
0.009706
0.393168
0.337295
0.274204
0.254293
0.227352
0.208624
0
0.019908
0.343846
31,770
746
101
42.587131
0.751079
0.091911
0
0.22807
0
0
0.052781
0
0
0
0
0
0
1
0.036842
false
0.001754
0.019298
0.001754
0.096491
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
71c07edf7c5c3864d451ebab890ced63f246e9c3
3,303
py
Python
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
alipay/aop/api/domain/AlipayMerchantAuthDeleteModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipayMerchantAuthDeleteModel(object): def __init__(self): self._channel_code = None self._operator_id = None self._role = None self._scene_code = None sel...
30.302752
75
0.578868
418
3,303
4.255981
0.126794
0.067454
0.112423
0.094435
0.322653
0.251827
0.082069
0.060708
0
0
0
0.000894
0.32304
3,303
108
76
30.583333
0.794723
0.012716
0
0.10989
0
0
0.085969
0
0
0
0
0
0
1
0.142857
false
0
0.021978
0.054945
0.263736
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71c15aae1f82d17826550ce3299615cff978924d
2,206
py
Python
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
null
null
null
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
null
null
null
src/nba_analysis/pipelines/data_processing/pipeline.py
stanton119/nba-analysis
79343150edaaa97472939c47b3ce521e038871b0
[ "MIT" ]
1
2021-12-16T01:04:09.000Z
2021-12-16T01:04:09.000Z
""" Two pipelines: * full history * update latest season * Only updates latest season year """ from functools import partial import itertools from kedro.pipeline import Pipeline, node from nba_analysis.pipelines.data_processing import basketball_reference from . import nodes def create_pipeline(**kwargs): ...
30.219178
131
0.602901
242
2,206
5.132231
0.252066
0.084541
0.070853
0.109501
0.415459
0.296296
0.23913
0.098229
0.069243
0.069243
0
0.005145
0.295104
2,206
72
132
30.638889
0.793569
0.2466
0
0.22449
0
0
0.156839
0.120973
0
0
0
0
0
1
0.020408
false
0
0.102041
0
0.142857
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71c7397a9aa9b39fdf9e024d5ca5dfdc737b974f
1,820
py
Python
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
1
2021-11-19T21:37:01.000Z
2021-11-19T21:37:01.000Z
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
0673.GCBA-HOTEL_STAFF.py
alphacastio/connectors-gcba
d1b97fb851463694ea844b3b81402c3ea747863b
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[9]: import requests import pandas as pd from lxml import etree from bs4 import BeautifulSoup import datetime import io import numpy as np from alphacast import Alphacast from dotenv import dotenv_values API_KEY = dotenv_values(".env").get("API_KEY") alphacast = Alphacast(A...
27.575758
95
0.686813
303
1,820
4.066007
0.326733
0.058442
0.032468
0.036526
0.230519
0.178571
0.13961
0.13961
0.13961
0.060065
0
0.089944
0.12033
1,820
65
96
28
0.679575
0.153297
0
0
0
0.051282
0.171354
0
0
0
0
0
0
1
0
false
0
0.230769
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
71c798c6020de830cf23434ebeb38ea555cc0bd8
5,572
py
Python
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
simpleGmatch4py.py
aravi11/approxGed
6c0a2ed4fd1bcc86c22169e3c96fcf4de717bf8c
[ "MIT" ]
null
null
null
# import the GED using the munkres algorithm import gmatch4py as gm import networkx as nx import collections import csv import pickle from collections import OrderedDict import json import concurrent.futures as cf import time iter = 0 def getFinishedStatus(): iter +=1 print('*******\t' + str(iter)+ "\t*****...
32.395349
130
0.644113
716
5,572
4.863128
0.26676
0.005169
0.005169
0.003446
0.246123
0.208214
0.158817
0.14618
0.097932
0.097932
0
0.02982
0.223618
5,572
171
131
32.584795
0.775081
0.203877
0
0.021505
0
0
0.076005
0.005707
0
0
0
0
0
1
0.075269
false
0.021505
0.096774
0.010753
0.193548
0.075269
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71c80c035280e16e1aaf199b5f9834181e50b2ad
1,940
py
Python
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
src/blockdiag/utils/rst/nodes.py
Dridi/blockdiag
bbb16f8a731cdf79a675a63c1ff847e70fdc4a5b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2011 Takeshi KOMIYA # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
35.272727
78
0.640206
233
1,940
5.296137
0.493562
0.048622
0.02107
0.025932
0.055105
0.055105
0
0
0
0
0
0.00831
0.25567
1,940
54
79
35.925926
0.84626
0.31134
0
0
0
0
0.052273
0
0
0
0
0
0
1
0.096774
false
0
0.193548
0
0.483871
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71c81073e9fc83a90c2d12dc9cb29a2d00b1831d
1,355
py
Python
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
2
2019-12-11T20:55:46.000Z
2020-06-17T14:01:07.000Z
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
null
null
null
python-advanced/chp1/main.py
emiliachojak/bio-projects
d2e5290b48613ef6721e303b3490a98cf4cbf6c0
[ "MIT" ]
1
2019-12-11T20:58:45.000Z
2019-12-11T20:58:45.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 19 20:00:00 2019 @author: Emilia Chojak @e-mail: emilia.chojak@gmail.com """ tax_dict = { 'Pan troglodytes' : 'Hominoidea', 'Pongo abelii' : 'Hominoidea', 'Hominoidea' : 'Simiiformes', 'Simiiformes' : 'Haplorrhini', 'Tarsius tarsier' : 'Tarsiiformes', 'Haplorrhini' : 'Pr...
30.111111
88
0.677491
153
1,355
5.803922
0.424837
0.074324
0.036036
0.045045
0
0
0
0
0
0
0
0.012821
0.194096
1,355
45
88
30.111111
0.800366
0.084871
0
0.060606
0
0
0.318735
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.212121
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
71c859d9d13c7c86199e6c92e91a1441fbf8c1ae
334
py
Python
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
Python/csv/1.py
LeishenKOBE/good-good-study
ac6b859f53b8b95f0746f35c5278009a5cad40a8
[ "MIT" ]
null
null
null
import csv # with open('./1.csv', newline='', encoding='utf-8') as f: # reader = csv.reader(f) # for row in reader: # print(row) with open('./1.csv', 'a', encoding='utf-8') as f: writer = csv.writer(f) writer.writerow(['4', '猫砂', '25', '1022', '886']) writer.writerow(['5', '猫罐头', '18', '22...
27.833333
58
0.535928
50
334
3.58
0.58
0.089385
0.100559
0.134078
0.167598
0
0
0
0
0
0
0.09434
0.206587
334
11
59
30.363636
0.581132
0.374252
0
0
0
0
0.191176
0
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71c9afc9f2fd7d8896cef3ef910e93c309b9fb9f
1,845
py
Python
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
1
2017-11-05T20:59:04.000Z
2017-11-05T20:59:04.000Z
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
5
2017-12-15T01:37:47.000Z
2018-02-20T22:51:29.000Z
python/data_structures/binheap.py
adriennekarnoski/data-structures
86ccf988ac02884749226236ad4ac37762873efa
[ "MIT" ]
null
null
null
"""Build a binary min heap object.""" from math import floor class BinaryHeap(object): """Create a Binary Heap object as a Min Heap.""" def __init__(self): """Initialize the heap list to be used by Binary Heap.""" self._heap_list = [] def push(self, val): """Add new value to heap...
30.245902
67
0.505149
241
1,845
3.721992
0.319502
0.098105
0.120401
0.071349
0.287625
0.098105
0.098105
0.098105
0.098105
0.098105
0
0.016507
0.376152
1,845
60
68
30.75
0.762815
0.189702
0
0.355556
0
0
0.016461
0
0
0
0
0
0
1
0.133333
false
0.022222
0.022222
0
0.244444
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
71ca38941354160e243965319c30a6e676cdeb33
1,547
py
Python
vesper/archive_settings.py
RichardLitt/Vesper
5360844f42a06942e7684121c650b08cf8616285
[ "MIT" ]
29
2017-07-10T14:49:15.000Z
2022-02-02T23:14:38.000Z
vesper/archive_settings.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
167
2015-03-17T14:45:22.000Z
2022-03-30T21:00:05.000Z
vesper/archive_settings.py
Tubbz-alt/Vesper
76e5931ca0c7fbe070c53b1362ec246ec9007beb
[ "MIT" ]
4
2015-02-06T03:30:27.000Z
2020-12-27T08:38:52.000Z
""" Vesper archive settings. The Vesper server serves the Vesper archive that is in the directory in which the server starts. The archive settings are the composition of a set of default settings (hard-coded in this module) and settings (optionally) specified in the file "Archive Settings.yaml" in the archive director...
24.555556
75
0.701357
195
1,547
5.302564
0.358974
0.081238
0.067698
0.042553
0.058027
0.058027
0
0
0
0
0
0.00084
0.230123
1,547
62
76
24.951613
0.867338
0.238526
0
0
0
0
0.106074
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.366667
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71ca8311a73312ae9b4e292ad1989e57d088b408
9,841
py
Python
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
8
2018-03-07T06:58:16.000Z
2019-01-30T07:49:44.000Z
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
null
null
null
autotf/model/vgg16.py
DAIM-ML/autotf
3f82d858f49c27d5ecb624cee555fb8fd47bf067
[ "BSD-3-Clause" ]
1
2018-03-31T09:06:12.000Z
2018-03-31T09:06:12.000Z
#-*- coding=utf-8 -*- from __future__ import division, print_function, absolute_import from base_model import BaseModel from helper import * import tensorflow as tf import pickle import numpy as np import time class Vgg16(BaseModel): default_param = { "loss" : "square_loss", "metrics" : ["loss"], ...
39.681452
156
0.580124
1,291
9,841
4.226956
0.173509
0.034634
0.025655
0.027854
0.314825
0.268279
0.219168
0.201942
0.201942
0.189481
0
0.045919
0.294076
9,841
247
157
39.842105
0.7396
0.018088
0
0.225131
0
0
0.050062
0
0
0
0
0
0
1
0.089005
false
0
0.036649
0
0.198953
0.010471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71cad3858a3b017c8adbe9bb0a7f32ee389c518f
3,226
py
Python
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
2
2021-03-01T03:50:22.000Z
2021-03-05T07:13:19.000Z
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
null
null
null
LEGEND/modules/_exec.py
RAJESHSAINI2113/LEGENDX
82c3c61062e804c3bf8b6e4ee31d1e603ab8bfd0
[ "MIT" ]
5
2021-03-01T08:40:31.000Z
2021-10-01T16:32:04.000Z
import subprocess from LEGEND import tbot as bot from LEGEND import tbot as borg from LEGEND.events import register from LEGEND import OWNER_ID, SUDO_USERS import asyncio import traceback import io import os import sys import time from telethon.tl import functions from telethon.tl import types from telethon.tl.types im...
27.810345
127
0.623993
433
3,226
4.454965
0.30485
0.036288
0.023328
0.029031
0.12649
0.103681
0.103681
0.103681
0.07154
0.07154
0
0.0042
0.261934
3,226
115
128
28.052174
0.805964
0
0
0.176471
0
0.019608
0.116243
0.030998
0
0
0
0
0
1
0.009804
false
0.029412
0.147059
0.009804
0.196078
0.019608
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71cd65bd2b7c6ec78dfa4527145f67145398f409
14,872
py
Python
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
src/python/pants/base/specs.py
mcguigan/pants
e085d45669b72d0c51ab8a54602306fc76e07256
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). import os import re from abc import ABC, ABCMeta, abstractmethod from dataclasses import dataclass from typing import ( TYPE_CHECKING, Dict, Iterable, Iterator, List, Optional,...
35.158392
109
0.739981
1,893
14,872
5.627575
0.184363
0.053506
0.021966
0.024406
0.334084
0.312963
0.283488
0.266967
0.236178
0.226509
0
0.002014
0.165344
14,872
422
110
35.241706
0.856199
0.2617
0
0.330798
0
0
0.086969
0.009415
0
0
0
0
0.011407
1
0.171103
false
0.015209
0.057034
0.091255
0.48289
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d0e460dfc97542581b94a812752a1bad4c2629
709
py
Python
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
null
null
null
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
4
2021-04-14T19:18:46.000Z
2021-11-02T16:11:36.000Z
Scripts/nominatintest.py
carlosdenner/business_atlas
8f95bbd07384baa6c5e51776690103e418b3875e
[ "MIT" ]
3
2021-09-01T03:05:21.000Z
2021-11-01T16:54:26.000Z
from geopy.geocoders import Nominatim from requests.models import LocationParseError geolocator = Nominatim(user_agent="geoapiExercises") Latitude = 25.594095 Longitude = 85.137566 def location(Latitude, Longitude): lat = str(Latitude) long = str(Longitude) print(lat + long) local = lat + "," + long...
22.870968
52
0.61354
72
709
6.027778
0.527778
0.073733
0.115207
0
0
0
0
0
0
0
0
0.03352
0.242595
709
30
53
23.633333
0.774674
0.009873
0
0
0
0
0.0701
0.04578
0
0
0
0
0
1
0.043478
false
0
0.086957
0
0.217391
0.217391
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d178c96b191f21134b0e3351ee139671d87fc0
4,710
py
Python
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
train/filelocks.py
mister-bailey/MagNET
4f75a6e2fe34eabf455d13338f318e3dc4bf0295
[ "Apache-2.0" ]
null
null
null
from filelock import FileLock, Timeout import os import time class ProcessFileLock(FileLock): """ FileLock that is unique per path in each process (for, eg., reentrance) """ locks = {} def __new__(cls, path, *args, **kwargs): if path in ProcessFileLock.locks: return P...
34.888889
174
0.56603
513
4,710
4.951267
0.222222
0.077953
0.076772
0.031496
0.301969
0.233071
0.213386
0.188189
0.153543
0.124409
0
0.005049
0.327176
4,710
134
175
35.149254
0.796466
0.125478
0
0.273684
0
0
0.041709
0
0
0
0
0
0
1
0.157895
false
0.010526
0.042105
0
0.378947
0.021053
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d4b733728e3fe154331308ec40f232a937aaa6
1,637
py
Python
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
todo/management/serializers/tasks.py
Sanguet/todo-challenge
8eabc02081e7ce6b33408558d4a4a39edee3944c
[ "MIT" ]
null
null
null
# Django REST Framework from rest_framework import serializers # Model from todo.management.models import Task # Utils from todo.utils.tasks import TaskMetrics from todo.utils.serializer_fields import CompleteNameUser class TaskModelSerializer(serializers.ModelSerializer): """Modelo serializer del circulo""" ...
25.578125
80
0.607819
175
1,637
5.582857
0.451429
0.092119
0.039918
0.045036
0.110542
0
0
0
0
0
0
0
0.29383
1,637
63
81
25.984127
0.845156
0.180208
0
0.058824
0
0
0.097412
0
0
0
0
0
0
1
0.058824
false
0
0.117647
0
0.323529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d5ac8fe8a1e3e087c79c30be252f654bc0722c
1,895
py
Python
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
outlier_detector.py
Sean-Ker/data_homework
5f289c692690724ee5973683c53e83299958b270
[ "Apache-2.0" ]
null
null
null
import numpy as np import pandas as pd from sklearn.decomposition import PCA ''' A function that detects outliers, where k is a tandard deviation threshold hyperparameter preferablly (2, 2.5, 3). The algo could handle multivariable data frames with any number of features d. For that manner, it first reduces the dimens...
35.754717
180
0.713456
286
1,895
4.629371
0.472028
0.02719
0.02719
0.036254
0.083082
0.048338
0
0
0
0
0
0.006519
0.190501
1,895
52
181
36.442308
0.856584
0.21372
0
0.068966
0
0
0.003752
0
0
0
0
0
0.034483
1
0.103448
false
0
0.103448
0
0.37931
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d79b9492d4549b986121f837ee137051811f29
1,631
py
Python
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
1
2021-03-09T04:28:13.000Z
2021-03-09T04:28:13.000Z
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
arc113/b.py
nishio/atcoder
8db36537b5d8580745d5f98312162506ad7d7ab4
[ "MIT" ]
null
null
null
# included from snippets/main.py def debug(*x, msg=""): import sys print(msg, *x, file=sys.stderr) def solve(SOLVE_PARAMS): pass def main(): A, B, C = map(int, input().split()) doubling = [B % 20] for i in range(32): doubling.append( (doubling[-1] ** 2) % 20 ) ...
14.963303
59
0.498467
232
1,631
3.396552
0.37069
0.062183
0.035533
0.027919
0.032995
0
0
0
0
0
0
0.071492
0.305334
1,631
108
60
15.101852
0.624007
0.064378
0
0.258427
0
0
0.18762
0
0
0
0
0
0
1
0.05618
false
0.011236
0.044944
0
0.101124
0.044944
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
71d7b6b5d8927503c0de7b2300ecece8268c9b0c
892
py
Python
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
pythonG/objects.py
ezan2000/Cssi_2018
2385e9f4557c1a2aa642e21d42dcc935e24c88c3
[ "Apache-2.0" ]
null
null
null
ezan = { 'name': 'ezan', 'age': 18, 'hair': 'brown', 'cool': True , } print(ezan) class Person(object): #use class to make object def __init__( self, name, age ,hair, color, hungry) : #initialize #first object inside of a class is self self.name = 'ezan' self.age = 18 ...
25.485714
94
0.56278
121
892
4.115702
0.355372
0.050201
0.072289
0.052209
0.068273
0
0
0
0
0
0
0.01548
0.275785
892
34
95
26.235294
0.755418
0.080717
0
0
0
0
0.113831
0
0
0
0
0
0
1
0.153846
false
0
0
0
0.192308
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
71d7fc5500dfa419709498ae6eaa8bc5f3fa5a27
400
py
Python
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
62/main.py
pauvrepetit/leetcode
6ad093cf543addc4dfa52d72a8e3c0d05a23b771
[ "MIT" ]
null
null
null
# 62. 不同路径 # 组合数,杨辉三角 yanghui = [[0 for i in range(202)] for j in range(202)] def comb(n, k): if yanghui[n][k] == 0: yanghui[n][k] = (comb(n-1, k-1) + comb(n-1, k)) return yanghui[n][k] class Solution: def uniquePaths(self, m: int, n: int) -> int: for i in range(202): yanghui...
23.529412
55
0.51
73
400
2.794521
0.369863
0.039216
0.147059
0.107843
0.137255
0
0
0
0
0
0
0.074733
0.2975
400
17
56
23.529412
0.651246
0.0425
0
0
0
0
0
0
0
0
0
0
0
1
0.181818
false
0
0
0
0.454545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0