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
84db537f5dfccd0dd8727dd1268abb3d016e064b
2,105
py
Python
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
5
2018-01-15T08:18:12.000Z
2021-05-27T02:53:28.000Z
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
1
2019-02-20T09:26:22.000Z
2019-04-02T01:00:21.000Z
examples/client-temp.py
keiichishima/echonetlite
b8f1cfcf57bae75b76262a7a13b9bb27f36fc1dc
[ "BSD-2-Clause" ]
2
2017-04-05T04:04:27.000Z
2018-01-22T14:22:22.000Z
import argparse import struct from echonetlite.interfaces import monitor from echonetlite import middleware from echonetlite.protocol import * class Temperature(middleware.RemoteDevice): def __init__(self, eoj, node_id): super(Temperature, self).__init__(eoj=eoj) self._node_id = node_id mo...
35.677966
77
0.619952
243
2,105
5.00823
0.353909
0.059162
0.026294
0.027116
0.021364
0
0
0
0
0
0
0.003296
0.279335
2,105
58
78
36.293103
0.798945
0.044656
0
0
0
0
0.044323
0
0
0
0
0
0
1
0.108696
false
0
0.108696
0
0.326087
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84df22e953bad2bfd61c9c777a6347a614ce9c26
6,167
py
Python
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
3
2020-09-29T14:13:54.000Z
2020-10-23T04:55:35.000Z
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
1
2020-10-01T16:30:50.000Z
2020-10-01T16:30:50.000Z
bot.py
LFRusso/QCircuit-Bot
b392036b061342beddcb4338fc64e4b8aba0fb8e
[ "MIT" ]
1
2020-10-22T01:55:29.000Z
2020-10-22T01:55:29.000Z
from telegram.ext import Updater, CommandHandler from telegram import InlineKeyboardButton, InlineKeyboardMarkup import logging from interpreter import * import os import numpy as np def parse_result(count): message=[] for state in count.keys(): message.append(f"P(|{state}〉)={round(count[state]/100,2)...
33.335135
374
0.630128
847
6,167
4.486423
0.288076
0.044211
0.075
0.082895
0.305789
0.292105
0.277368
0.262632
0.262632
0.262632
0
0.009436
0.22669
6,167
185
375
33.335135
0.786957
0.020756
0
0.176056
0
0.028169
0.380676
0.006629
0
0
0
0
0
1
0.056338
false
0
0.042254
0
0.126761
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84e32a3f56750d951d976dd05b43bd476893aedc
1,487
py
Python
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
src/torso.py
kneave/MacFeeglePrime-ROS
d73081190155bb20119f4b9a7216d730c0a1e8b2
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy import time import sys sys.path.append('/home/ubuntu/RedBoard') import redboard from std_msgs.msg import Int16MultiArray # Servo values, 0 is centre pan_value = 0 tilt_value = 0 def callback(data): rospy.loginfo(rospy.get_caller_id() + 'RCVD: %s', data.data) setservos...
26.087719
72
0.694015
213
1,487
4.652582
0.497653
0.040363
0.030272
0
0
0
0
0
0
0
0
0.018739
0.210491
1,487
56
73
26.553571
0.825383
0.305313
0
0.0625
0
0
0.08317
0.020548
0
0
0
0
0
1
0.09375
false
0
0.15625
0
0.25
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
84e3985260d9d57b8161b7b1a75f1fd40cce4250
10,943
py
Python
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
1
2021-05-20T19:33:37.000Z
2021-05-20T19:33:37.000Z
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
S4/S4 Library/simulation/broadcasters/environment_score/environment_score_mixin.py
NeonOcean/Environment
ca658cf66e8fd6866c22a4a0136d415705b36d26
[ "CC-BY-4.0" ]
null
null
null
from collections import Counter import operator import weakref from broadcasters.environment_score.environment_score_tuning import EnvironmentScoreTuning import alarms import clock import gsi_handlers import services import sims4.log import sims4.reload logger = sims4.log.Logger('Environment Score') with sims4.reload.p...
55.831633
359
0.72704
1,214
10,943
6.092257
0.11285
0.153597
0.081125
0.050974
0.553678
0.420903
0.346809
0.275284
0.227961
0.196187
0
0.002802
0.217216
10,943
195
360
56.117949
0.860612
0
0
0.284091
0
0
0.015444
0
0
0
0
0
0
1
0.090909
false
0
0.056818
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
84e4a5de1b248ed60460b4bced5480be4b151dcc
3,781
py
Python
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
tests/conftest.py
daitakahashi/tinydb-query
2090bc57eb368bce435a737979c6bb35476807bf
[ "MIT" ]
null
null
null
import contextlib import pytest import tinydb import tinydb_ql as QL @contextlib.contextmanager def _db_instance(*args, **kwargs): with tinydb.TinyDB(*args, **kwargs) as db: db.insert_multiple([ {'name': 'bob', 'age': 12, 'blob': 1, 'status': { 'gam...
33.460177
67
0.446972
364
3,781
4.505495
0.258242
0.060976
0.043902
0.054878
0.454878
0.409756
0.367073
0.321951
0.278049
0.278049
0
0.032244
0.384819
3,781
112
68
33.758929
0.672829
0
0
0.336735
0
0
0.191534
0
0
0
0
0
0.030612
1
0.091837
false
0
0.040816
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
84e8531b2f78d8767380447a8eab9577039dac81
3,324
py
Python
project/settings/development.py
ellmetha/machina-vanilla
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
1
2020-06-04T08:13:06.000Z
2020-06-04T08:13:06.000Z
project/settings/development.py
ellmetha/machina-demo
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
null
null
null
project/settings/development.py
ellmetha/machina-demo
a64317141f274097c269f18053d80f48dae86dff
[ "MIT" ]
1
2018-09-22T07:05:33.000Z
2018-09-22T07:05:33.000Z
""" Development Django settings for machina-vanilla demo project ============================================================ This files imports the `base` settings and can add or modify previously defined settings to alter the configuration of the application for development purposes. For more in...
31.065421
97
0.556258
321
3,324
5.598131
0.470405
0.040067
0.080134
0.044519
0.129104
0.095715
0.095715
0.04118
0
0
0
0.016229
0.128761
3,324
106
98
31.358491
0.604282
0.528881
0
0.04878
0
0
0.318637
0.215097
0
0
0
0
0
1
0
false
0.02439
0.097561
0
0.097561
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84eb634735ed60c5bacfdd3f05d4b74a3ee4a389
5,998
py
Python
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
84
2016-03-14T17:00:29.000Z
2022-01-26T11:59:46.000Z
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
2
2017-08-20T21:06:56.000Z
2019-07-19T06:21:27.000Z
info.py
marcan/deresuteme
2d77d04ba0127af57b1880fc764de2650b317d87
[ "Apache-2.0" ]
12
2017-03-13T11:59:43.000Z
2021-12-24T17:20:25.000Z
#!/usr/bin/python # -!- coding: utf-8 -!- # # Copyright 2016 Hector Martin <marcan@marcan.st> # # 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....
36.351515
94
0.578526
784
5,998
4.186224
0.28699
0.042657
0.067032
0.068556
0.273309
0.225472
0.189519
0.120049
0.041438
0
0
0.019706
0.263921
5,998
164
95
36.573171
0.723669
0.135378
0
0.075
0
0
0.236149
0.004843
0
0
0
0
0.008333
1
0.058333
false
0.008333
0.016667
0.008333
0.141667
0.041667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ec76065cd8fd886f8b8693283d91becf11271b
1,562
py
Python
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
1,526
2017-09-15T18:49:40.000Z
2021-01-17T16:04:12.000Z
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
682
2017-09-11T17:43:12.000Z
2021-01-17T05:26:26.000Z
tests/ansible/lib/action/assert_equal.py
msaladna/mitogen
c6824b68181729cb16c090e72f4d35d6c4d95523
[ "BSD-3-Clause" ]
111
2017-09-15T23:21:37.000Z
2021-01-01T14:45:35.000Z
# # Print data structure diff on assertion failure. # # assert_equal: left=some.result right={1:2} # __metaclass__ = type import inspect import unittest2 import ansible.template from ansible.errors import AnsibleError from ansible.plugins.action import ActionBase from ansible.module_utils.six import string_types ...
22
68
0.621639
178
1,562
5.297753
0.488764
0.034995
0.033934
0.042418
0.050901
0
0
0
0
0
0
0.003534
0.275288
1,562
70
69
22.314286
0.829505
0.075544
0
0.043478
0
0
0.065597
0.01605
0
0
0
0
0.043478
1
0.086957
false
0.021739
0.130435
0.021739
0.413043
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ec94c6c196a5afef15f2ef72d96dcc3f618ad6
18,572
py
Python
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
dataDisplay.py
andreasbayer/AEGUIFit
6a1e31091b74d648d007c75c9fef6efae4086860
[ "BSD-3-Clause" ]
null
null
null
import matplotlib matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from PyQt5.QtCore import pyqtSignal, Qt import fitDataInfo as fdi import AEFitDataInfo as adi import polyFitDataInfo as pdi import numpy as np import traceback c...
33.463063
120
0.54846
2,165
18,572
4.362587
0.152425
0.029857
0.014293
0.006988
0.279619
0.191742
0.149497
0.130969
0.103335
0.103335
0
0.010793
0.351443
18,572
554
121
33.523466
0.77335
0.108658
0
0.29558
0
0
0.014915
0
0
0
0
0
0
1
0.143646
false
0.008287
0.024862
0.024862
0.254144
0.024862
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84ed9cd7c89c3cf96e8fc4e58db01358212f8b36
1,723
py
Python
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
simple_lab/network.py
adam-phelps/simple_lab
4a8acccfd6bf713742fe2ac0bd988f811218eb3b
[ "MIT" ]
null
null
null
def create_vpc(ec2_r, cidr_block, lab_tag): """ Create VPC using EC2 resource. """ vpc = ec2_r.create_vpc(CidrBlock=cidr_block) vpc.wait_until_available() vpc.create_tags(Tags=[{ "Key": "Name", "Value": lab_tag }]) return vpc def create_internet_gateway(ec2_r, vpc): """ Cre...
28.716667
68
0.625073
234
1,723
4.367521
0.354701
0.015656
0.017613
0.015656
0.072407
0
0
0
0
0
0
0.018053
0.260592
1,723
59
69
29.20339
0.784144
0.145676
0
0
0
0
0.049512
0
0
0
0
0
0
1
0.139535
false
0
0
0
0.27907
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
84f16eceef3846efad926ffc7294baff132ede53
7,829
py
Python
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
63
2018-06-21T14:11:59.000Z
2022-03-30T11:24:36.000Z
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
5
2018-09-22T14:01:53.000Z
2021-12-27T16:11:05.000Z
src/foreign_if/python/main/python/frovedis/exrpc/server.py
XpressAI/frovedis
bda0f2c688fb832671c5b542dd8df1c9657642ff
[ "BSD-2-Clause" ]
12
2018-08-23T15:59:44.000Z
2022-02-20T06:47:22.000Z
""" server.py """ import warnings from . import node, rpclib class ServerID(object): """A python container for generating IDs for frovedis server""" __initial = 0 __id = __initial # A threshold value, assuming it is safe to re-iterate # server ID after reaching this value __max_id = (1 << 31) ...
35.107623
97
0.609912
873
7,829
5.271478
0.261168
0.071708
0.026076
0.028249
0.185789
0.119296
0.119296
0.101043
0.101043
0.101043
0
0.003458
0.298122
7,829
222
98
35.265766
0.834031
0.188274
0
0.269737
0
0
0.126414
0.014757
0
0
0
0
0
1
0.131579
false
0
0.052632
0
0.348684
0.019737
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f241e899fdd0756dc158f8d65dba55d53f1060
2,015
py
Python
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
3
2021-10-16T11:49:40.000Z
2021-11-28T01:35:25.000Z
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
50
2021-07-31T03:23:27.000Z
2022-03-28T18:55:48.000Z
tests/conftest.py
Preocts/secretbox
81638bc4ca5defe1f594a249d9806a622bc686fe
[ "MIT" ]
1
2021-12-09T21:15:19.000Z
2021-12-09T21:15:19.000Z
"""Global fixtures""" import os import tempfile from typing import Generator from unittest.mock import patch import pytest AWS_ENV_KEYS = [ "AWS_ACCESS_KEY", "AWS_SECRET_ACCESS_KEY", "AWS_SECURITY_TOKEN", "AWS_SESSION_TOKEN", ] ENV_FILE_CONTENTS = [ "SECRETBOX_TEST_PROJECT_ENVIRONMENT=sandbox", ...
27.60274
71
0.642184
253
2,015
4.920949
0.422925
0.028112
0.051406
0.049799
0.504418
0.393574
0.346988
0.346988
0.281125
0.281125
0
0.00706
0.226799
2,015
72
72
27.986111
0.792041
0.07196
0
0.157895
0
0
0.392645
0.063818
0
0
0
0
0
1
0.052632
false
0.035088
0.087719
0
0.140351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f47bb45348683e51a33cad06f7af340e359008
2,806
py
Python
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
ooobuild/lo/util/date.py
Amourspirit/ooo_uno_tmpl
64e0c86fd68f24794acc22d63d8d32ae05dd12b8
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2022 :Barry-Thomas-Paul: Moss # # Licensed under the Apache License, Version 2.0 (the "License") # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http: // www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
25.981481
127
0.59052
369
2,806
4.352304
0.390244
0.03736
0.031133
0.043587
0.118929
0.070361
0.031133
0.031133
0
0
0
0.015167
0.295082
2,806
107
128
26.224299
0.796764
0.408411
0
0.068182
0
0
0.066341
0.030726
0
0
0
0
0
1
0.181818
false
0
0.045455
0
0.431818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f7f0583f87ce8d8fa213091c414701dd8af42c
9,694
py
Python
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
conda_lock/conda_lock.py
noahp/conda-lock
cd519f62aead1c4eb40a7ac4ba002fca25ef6e3a
[ "MIT" ]
null
null
null
""" Somewhat hacky solution to create conda lock files. """ import atexit import json import logging import os import pathlib import platform import shutil import stat import subprocess import sys import tempfile from typing import Dict, List, MutableSequence, Optional, Set, Tuple, Union import requests import yaml ...
30.484277
87
0.598205
1,187
9,694
4.700927
0.251896
0.021505
0.016308
0.013441
0.160573
0.086559
0.04552
0.02509
0
0
0
0.00588
0.280689
9,694
317
88
30.580442
0.79435
0.057768
0
0.132
0
0
0.197626
0.041328
0
0
0
0.006309
0.004
1
0.044
false
0
0.064
0
0.152
0.04
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f83345d1f3fb087e99dcd107ecadefc33a7378
2,447
py
Python
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/minmax.py
EvenOldridge/NVTabular
85333ae754c0512f7b213a4e98117a1501500dda
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, NVIDIA CORPORATION. # # 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 ...
33.520548
93
0.644871
329
2,447
4.653495
0.367781
0.052907
0.028739
0.047028
0.194644
0.169824
0
0
0
0
0
0.004322
0.243564
2,447
72
94
33.986111
0.822798
0.331835
0
0
0
0
0.082435
0
0
0
0
0
0
1
0.162162
false
0
0.054054
0.027027
0.351351
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f88b05010a0d7cf4cbf357ee3a42b3fba0850b
4,915
py
Python
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
2
2022-02-19T14:22:47.000Z
2022-02-22T17:19:33.000Z
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
null
null
null
cli_command_execution.py
IBM-Cloud/Ray-Commands
9078af9fb367d451ee86f1200507f96b6f01d539
[ "Apache-2.0" ]
null
null
null
import os import subprocess import ray import time import sys import humanfriendly import pandas as pd url_file = open('final_commands.txt','r') lines = url_file.readlines() from subprocess import PIPE, Popen @ray.remote(num_cpus=0.2) def do_it(filen, input_endpoint, output_endpoint, input_access_key, input_secret_...
49.15
247
0.6706
685
4,915
4.576642
0.224818
0.009569
0.010526
0.010207
0.376396
0.289952
0.239872
0.171611
0.072727
0.045933
0
0.033848
0.182503
4,915
99
248
49.646465
0.746391
0.165005
0
0.078947
0
0.026316
0.124389
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.184211
0.092105
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84f939c67c0b1fb6b0b4b98b5ce191bb5f2e9777
3,673
py
Python
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
22
2021-05-19T13:45:55.000Z
2022-02-17T22:40:28.000Z
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
35
2021-06-28T17:36:21.000Z
2022-03-08T19:54:35.000Z
src/satproc/console/generalize.py
dymaxionlabs/satproc
002c945eb378619659e85dddb73477b253899630
[ "Apache-2.0" ]
6
2021-05-20T22:49:37.000Z
2022-03-31T14:30:32.000Z
# -*- coding: utf-8 -*- import argparse import logging import os import sys from glob import glob from satproc import __version__ from satproc.postprocess.generalize import generalize __author__ = "Damián Silvani" __copyright__ = "Dymaxion Labs" _logger = logging.getLogger(__name__) def parse_args(args): """Pa...
24.817568
87
0.613395
399
3,673
5.468672
0.390977
0.045371
0.085701
0.016499
0.078827
0.032997
0.032997
0
0
0
0
0.001848
0.263545
3,673
147
88
24.986395
0.804806
0.108631
0
0.132075
0
0
0.235496
0.017155
0
0
0
0
0
1
0.037736
false
0.009434
0.066038
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
84f95fb1a9783e21e2199ef7dbdb747eb20c4617
4,932
py
Python
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
23
2020-08-25T13:24:22.000Z
2022-03-09T14:15:23.000Z
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
85
2020-08-25T12:04:16.000Z
2021-10-04T08:08:14.000Z
piri/mapper.py
ryanzhoucoupa/piri
de8ed240492d836305c94decbede3933ea982db0
[ "MIT" ]
16
2020-10-06T10:26:37.000Z
2021-11-18T00:07:39.000Z
import decimal from typing import Any, Dict, List, Optional, Union from returns.curry import partial from returns.maybe import maybe from returns.pipeline import is_successful from returns.result import safe from piri.collection_handlers import iterable_data_handler from piri.constants import ( ARRAY, ATTRIBU...
25.035533
79
0.672749
609
4,932
5.284072
0.229885
0.053139
0.068365
0.031075
0.251398
0.175886
0.088254
0.059664
0.059664
0.059664
0
0.002693
0.247161
4,932
196
80
25.163265
0.863991
0.302311
0
0.254902
0
0
0
0
0
0
0
0
0
1
0.068627
false
0
0.088235
0
0.245098
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84fa6491306c7f4088496f353dbf7cbc5ef44491
2,955
py
Python
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
digby/motors.py
gilbertmike/digby
cb0f762fb703cf0e8b0f0ac7387e8b89f67eaf8e
[ "MIT" ]
null
null
null
from gpiozero import OutputDevice, PWMOutputDevice class MotorController: def __init__(self, front_left_pwm, front_left_dir, front_right_pwm, front_right_dir, back_left_pwm, back_left_dir, back_right_pwm, back_right_dir, max_speed=0.5, reverse_fl=False, reverse_b...
35.60241
79
0.535702
370
2,955
4.010811
0.164865
0.06469
0.091644
0.099057
0.239218
0.076819
0
0
0
0
0
0.006997
0.371235
2,955
82
80
36.036585
0.791712
0.091709
0
0.109375
0
0
0.019787
0
0
0
0
0
0
1
0.0625
false
0
0.015625
0.015625
0.109375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84fb8930b6c5b3170e2aacdf327ea9bfa1e892aa
828
py
Python
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
13
2021-09-17T07:41:00.000Z
2022-02-10T10:00:48.000Z
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
167
2021-07-17T09:41:38.000Z
2021-08-31T06:03:34.000Z
jcasts/episodes/emails.py
danjac/jcasts
04f5ef1f536d51962c0433d092817c0153acb6af
[ "MIT" ]
null
null
null
from __future__ import annotations from datetime import timedelta from django_rq import job from jcasts.episodes.models import Episode from jcasts.shared.typedefs import User from jcasts.users.emails import send_user_notification_email @job("mail") def send_new_episodes_email(user: User, since: timedelta) -> None:...
25.875
88
0.683575
102
828
5.372549
0.519608
0.100365
0.072993
0.091241
0
0
0
0
0
0
0
0.003082
0.216184
828
31
89
26.709677
0.841294
0.068841
0
0
0
0
0.2
0.084967
0
0
0
0
0
1
0.045455
false
0
0.272727
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84fcf8179ffbbe188cded099879ea1fb89a61d64
1,439
py
Python
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
4
2021-09-15T03:23:10.000Z
2022-02-08T23:31:10.000Z
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
src/pricehist/outputs/ledger.py
chrisberkhout/pricehist
a54da85a6fae15e2f771e8612aed089407ec5c22
[ "MIT" ]
null
null
null
""" Ledger output Supports both `Ledger <https://www.ledger-cli.org/>`_ and `hledger <https://hledger.org/>`_ plain text accounting formats. By default the output should be valid for Ledger, but can be customized for hledger or other variants via formatting options. Invalid variants are possible, so the user should b...
31.282609
88
0.707436
192
1,439
5.244792
0.427083
0.023833
0.041708
0.050645
0.160874
0.141013
0.0715
0.0715
0.0715
0.0715
0
0.005102
0.182766
1,439
45
89
31.977778
0.85119
0.599027
0
0
0
0
0.091549
0.044014
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
84fcfab32088c0c654dbeb7d0fe1fb3a7f8528f9
450
py
Python
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
services/bill_service.py
Priyeshpandey/splitwise
db1af921a1ebf3f4034a6672cd3a2515aaeeecd5
[ "MIT" ]
null
null
null
from services.bill_service_interface import BillServiceInterface from models.bill import Bill class BillService(BillServiceInterface): billDetails = {} def addBill(self, id, groupId, amount, contri, paid): bill = Bill() bill.setId(id) bill.setGroupId(groupId) bill.setAmount(amou...
28.125
64
0.673333
48
450
6.1875
0.520833
0.053872
0
0
0
0
0
0
0
0
0
0
0.24
450
15
65
30
0.868421
0
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0.153846
0
0.461538
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1701456722d2f336d3cdea0f8c3d767de89aa227
1,943
py
Python
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
18
2017-05-20T08:08:33.000Z
2022-03-09T17:22:34.000Z
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
30
2017-05-27T11:07:11.000Z
2022-03-23T22:38:20.000Z
setup.py
pyecore/pyecoregen
01988422afb7e534eff66d6ba3472a97e087ad4a
[ "BSD-3-Clause" ]
5
2017-09-17T12:33:53.000Z
2019-09-26T12:21:46.000Z
#!/usr/bin/env python import sys from setuptools import setup, find_packages from setuptools.command.test import test as TestCommand if sys.version_info < (3, 5): sys.exit('Sorry, Python < 3.5 is not supported') class PyTest(TestCommand): user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")...
31.852459
95
0.646423
221
1,943
5.574661
0.547511
0.048701
0.045455
0
0
0
0
0
0
0
0
0.007874
0.215646
1,943
60
96
32.383333
0.800525
0.010293
0
0
0
0
0.363684
0
0
0
0
0
0
1
0.0625
false
0.020833
0.083333
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
17036a282cb2f46b504f52189d2bf26ddabdebf9
2,230
py
Python
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
67
2019-12-02T17:18:07.000Z
2022-03-03T08:32:19.000Z
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
27
2019-12-11T07:53:41.000Z
2021-03-30T00:58:32.000Z
tests/conftest.py
emaballarin/stockroom
e2e098c4731a4ad0d4952a99c972cb4816bb1abe
[ "Apache-2.0" ]
8
2019-12-02T15:22:49.000Z
2022-03-03T08:32:20.000Z
import inspect import shutil from pathlib import Path import hangar import numpy as np import pytest import torchvision_mocks as torchvision from stockroom import StockRoom, keeper from torchvision import datasets @pytest.fixture() def managed_tmpdir(monkeypatch, tmp_path): monkeypatch.setitem(hangar.constants.L...
28.227848
78
0.727354
295
2,230
5.298305
0.338983
0.080614
0.06142
0.102367
0.357006
0.357006
0.357006
0.207933
0.140115
0.082534
0
0.024987
0.156502
2,230
78
79
28.589744
0.805954
0
0
0.253968
0
0
0.0713
0
0
0
0
0
0
1
0.111111
false
0
0.142857
0.015873
0.269841
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17042212e5fa71f184651ff1dc382b9b9ed9f1a9
1,278
py
Python
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/MaskedFaceRecognition/config.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies 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 applicable law or agreed to...
31.170732
78
0.643975
177
1,278
4.525424
0.700565
0.074906
0.032459
0.03995
0
0
0
0
0
0
0
0.056731
0.186228
1,278
40
79
31.95
0.713462
0.547731
0
0
0
0
0.414722
0.037702
0
0
0
0
0
1
0
false
0
0.045455
0
0.045455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
17061bab51406bbd5e3c868633cb54d4c996d97c
321
py
Python
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
backend/source/similaridade.py
AlissonSantos17/Sistema-de-Recomendacao
d276d14bea65bcf721a39f774fd9038ec775a063
[ "Apache-2.0" ]
null
null
null
# !/usr/bin/env python3 # -*- coding: utf-8 -*- from recomendacao import distanciaEuclidiana def getSimilares(base, usuario): similaridade = [ (distanciaEuclidiana(base, usuario, outro), outro) for outro in base if outro != usuario ] similaridade.sort() similaridade.reverse() return similaridade[0:26...
26.75
54
0.713396
36
321
6.361111
0.694444
0.09607
0
0
0
0
0
0
0
0
0
0.018657
0.165109
321
12
55
26.75
0.835821
0.133956
0
0
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1708b50e51dd839f95011d63cd587ab6817e6ebc
12,540
py
Python
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
program/compare.py
rabo452/python-gui
ab0be8626d148c746c29cd362d342485c14c09ae
[ "MIT" ]
null
null
null
import requests import pytube import os from bs4 import BeautifulSoup as bs from moviepy.video.io.VideoFileClip import VideoFileClip from youtube_transcript_api import YouTubeTranscriptApi this_module = __import__(__name__) #compare two or more different videos to find the same parts and download it #for 1 ma...
54.051724
222
0.58134
1,443
12,540
4.740818
0.128898
0.038883
0.035083
0.027628
0.44818
0.385031
0.333577
0.265166
0.255226
0.218974
0
0.007373
0.318581
12,540
231
223
54.285714
0.793212
0.09697
0
0.238372
0
0
0.054572
0.006596
0
0
0
0
0
1
0.046512
false
0
0.040698
0
0.116279
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca02d3451b5a0539ec40cd600dd5837fcf09dd42
35,162
py
Python
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
tracker/tracker.py
matthewmckenna/tvst
0c673a118c09231839d0960c59e566cb7963e0d6
[ "MIT" ]
null
null
null
#!/usr/env/bin python3 """ Utility to keep track of TV shows """ import argparse import collections # import datetime import json import logging import os # import re from Queue import Queue # Python 3 only! module is queue in Python 2 import sys import threading import requests from .exceptions import ( APIRequ...
32.082117
94
0.615608
4,253
35,162
4.887374
0.112626
0.021697
0.005388
0.004618
0.339892
0.266044
0.222265
0.164534
0.140142
0.125132
0
0.002925
0.290257
35,162
1,095
95
32.111416
0.829981
0.211649
0
0.301028
0
0.001468
0.108376
0.006801
0
0
0
0.006393
0
1
0.088106
false
0.004405
0.016153
0.020558
0.15859
0.004405
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca02dcd616277e3b385bdfc3b02db8570bac7008
3,573
py
Python
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
38
2016-04-18T08:39:23.000Z
2021-12-23T01:49:09.000Z
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
8
2016-04-05T14:28:43.000Z
2021-01-21T02:15:19.000Z
pycsp/common/toolkit.py
Erhannis/pycsp
7b06b4d90a73ed84f60d4321ae66fbbf4ebab039
[ "MIT" ]
10
2015-12-11T14:43:11.000Z
2022-01-04T08:48:35.000Z
""" Toolkit module Copyright (c) 2009 John Markus Bjoerndalen <jmb@cs.uit.no>, Brian Vinter <vinter@nbi.dk>, Rune M. Friborg <rune.m.friborg@gmail.com>. See LICENSE.txt for licensing details (MIT License). """ from pycsp.common.six import string_types import pycsp.current as pycsp if pycsp.trace: from py...
25.161972
94
0.52365
365
3,573
5.065753
0.309589
0.029746
0.03245
0.021633
0.094105
0.042185
0.042185
0.042185
0
0
0
0.00852
0.375875
3,573
141
95
25.340426
0.820628
0.065211
0
0.346939
0
0
0.002702
0
0
0
0
0
0
1
0.071429
false
0.010204
0.05102
0
0.132653
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca04ff4c503789e9653ebd021754a4374c36aaf9
22,428
py
Python
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
2
2022-02-28T01:56:03.000Z
2022-03-02T21:06:35.000Z
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
null
null
null
api/backend.py
DataCloud-project/DIS-PIPE-Discovery---Visualization
60fce163da330f09f90ca031f153ed07bb80f87a
[ "Apache-2.0" ]
1
2022-02-22T10:30:21.000Z
2022-02-22T10:30:21.000Z
import flask from flask import request, jsonify, render_template import os import requests IMAGE_FOLDER = os.path.join('static', 'images') app = flask.Flask(__name__) app.config["DEBUG"] = True app.config['UPLOAD_FOLDER'] = IMAGE_FOLDER from graphviz import Digraph #import file xes from pm4py.object...
39.41652
148
0.598716
2,373
22,428
5.474926
0.093552
0.10899
0.038793
0.020936
0.716749
0.691579
0.668334
0.640009
0.601216
0.56835
0
0.006501
0.273007
22,428
569
149
39.41652
0.79031
0.081996
0
0.458874
0
0
0.069677
0.004074
0
0
0
0
0
1
0.04329
false
0
0.121212
0
0.207792
0.004329
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca05057b6f48797cfc259e18cdcc1c4ca53c5260
19,898
py
Python
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
1
2022-03-28T09:56:53.000Z
2022-03-28T09:56:53.000Z
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
null
null
null
veroviz/_params.py
INFORMSJoC/2020.0340
9536a35b9607266ad95799cbb7e59c9451aaa6ea
[ "MIT" ]
1
2021-10-30T05:01:49.000Z
2021-10-30T05:01:49.000Z
# Copyright (c) 2021 Lan Peng and Chase Murray # Licensed under the MIT License. See LICENSING for details. # Const for distance unit changing VRV_CONST_METERS_PER_KILOMETER = 1000.0 VRV_CONST_METERS_PER_MILE = 1609.34 VRV_CONST_METERS_PER_YARD = 0.9144 VRV_CONST_METERS_PER_FEET = 0.3048 VRV_CONST_METERS_PER_NAUTICAL_...
23.299766
87
0.626746
1,882
19,898
6.502657
0.383103
0.132129
0.016669
0.011767
0.266955
0.261236
0.245138
0.240235
0.240235
0.240235
0
0.039571
0.194793
19,898
854
88
23.299766
0.724254
0.128807
0
0.125
0
0
0.566114
0.204659
0
0
0
0
0
1
0
false
0.001389
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
ca08a41e4121d749dc35922571ea21c079fb53a8
6,229
py
Python
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
adaptation.py
yxtj/VideoServing
52d1c1c97021f11cc4d77c181ac1144fe3a789ce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from common import Configuration import numpy as np import torch import torch.nn as nn #Configuration = namedtuple('Configuration', ['fps', 'rsl']) def acc2index(accuracies, thresholds): return np.digitize(accuracies, thresholds) class Adapter(): def __init__(self, dim_feat=None, di...
34.225275
81
0.587735
830
6,229
4.193976
0.208434
0.036197
0.0316
0.017236
0.211146
0.091928
0.091928
0.064924
0.064924
0.064924
0
0.003692
0.304222
6,229
182
82
34.225275
0.799492
0.11607
0
0.090226
0
0
0.024476
0
0
0
0
0.005495
0.037594
1
0.12782
false
0
0.030075
0.030075
0.270677
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca097708767493554637834ada6bf578f67bee1f
6,538
py
Python
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
1
2021-11-01T11:38:52.000Z
2021-11-01T11:38:52.000Z
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
null
null
null
teslamateMqttToTelegram.py
carloscuezva/Teslamate-Telegram
f33843735011a94221b279028af66a7f09c92176
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import paho.mqtt.client as mqtt import requests import sys from time import sleep import config as conf import logging import logging.handlers data = { "sent_resumen": 0, "display_name": "", "state": "", "software_current_version": "", "software_new_version": "", "batte...
29.1875
191
0.563475
715
6,538
5.029371
0.272727
0.036707
0.044494
0.03782
0.146552
0.068409
0.035595
0
0
0
0
0.011871
0.291374
6,538
223
192
29.318386
0.759983
0.003212
0
0.198864
0
0.017045
0.255871
0.029777
0
0
0
0
0
1
0.051136
false
0
0.039773
0
0.096591
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca099560fca77e06dcd73b0fa036c9138dea0681
9,323
py
Python
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
26
2020-07-24T14:49:24.000Z
2021-10-13T10:04:52.000Z
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
128
2020-07-27T08:48:27.000Z
2021-09-25T11:35:22.000Z
examples/utils.py
CarbonEdge2021/SBTi-finance-tool
a5dbf1c200a9e80913c34251a918363a054dcb61
[ "MIT" ]
15
2020-07-31T14:47:07.000Z
2021-07-26T19:33:07.000Z
import pandas as pd import numpy as np import copy as copy import random def print_aggregations(aggregations): aggregations = aggregations.dict() print("{:<10s} {:<10s} {}".format('Timeframe', 'Scope', 'Temp score')) for time_frame, time_frame_values in aggregations.items(): if time_frame_values: ...
49.590426
159
0.696342
1,127
9,323
5.517303
0.171251
0.060148
0.07816
0.049534
0.483274
0.436314
0.394661
0.380187
0.334674
0.31441
0
0.020173
0.170546
9,323
188
160
49.590426
0.783913
0
0
0.25641
0
0
0.13417
0
0
0
0
0
0
1
0.057692
false
0
0.044872
0
0.121795
0.108974
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca0c63dc19f3b2e160b70ca4788264e5f2ce3527
3,635
py
Python
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
powerapi/database/socket_db.py
EmileCadorel/powerapi
588413fe8f8369d02084bd7adff1d610273a4b9f
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2018, INRIA # Copyright (c) 2018, University of Lille # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the above copyright notice, t...
34.292453
110
0.680605
469
3,635
5.144989
0.41791
0.037298
0.024865
0.034811
0.137588
0.081227
0.056361
0.056361
0.056361
0.056361
0
0.007656
0.245392
3,635
105
111
34.619048
0.872038
0.485832
0
0
0
0
0.005022
0
0
0
0
0
0
1
0.111111
false
0
0.133333
0.022222
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca0fe4b6afa0274c9433d3fa01c0567fab4f5a2c
5,896
py
Python
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
null
null
null
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
4
2021-06-08T22:07:31.000Z
2022-03-12T00:43:11.000Z
src/data/collect_follow_list.py
puevigreven/made_with_ml_incubator_project
f726e6506428774d8bf1c2cd3d31f2f94386b5e5
[ "MIT" ]
null
null
null
import json import logging import os import subprocess import time from concurrent.futures import ProcessPoolExecutor, ThreadPoolExecutor from functools import partial from os import listdir from os.path import isfile, join import nest_asyncio import pandas as pd import src.log_config as log_config import twint nest...
34.682353
105
0.58192
694
5,896
4.723343
0.230548
0.076266
0.042709
0.038438
0.408786
0.344722
0.283405
0.283405
0.274558
0.274558
0
0.006173
0.313094
5,896
169
106
34.887574
0.80321
0.057836
0
0.279412
0
0
0.117085
0.043659
0
0
0
0
0
1
0.051471
false
0
0.095588
0
0.161765
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca112008ab3c6828677b5ed0441a31de80ccd33e
3,434
py
Python
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
app/blueprints/orders/schemas.py
CalebM1987/orders-sqlalchemy-example
5a2210c0fce19cafa4267ae463841b3b057abac8
[ "Apache-2.0" ]
null
null
null
from marshmallow import Schema, EXCLUDE, fields, post_load import datetime from .models import * class SerializableDateTime(fields.DateTime): def _deserialize(self, value, attr, data, **kwargs): if isinstance(value, datetime.datetime): return value return super()._deserialize(value, att...
41.373494
119
0.721899
388
3,434
6.342784
0.293814
0.096709
0.093458
0.063389
0.320601
0.266558
0.194636
0.194636
0.142219
0.088582
0
0.001755
0.170355
3,434
83
120
41.373494
0.862057
0.010483
0
0.233333
0
0
0.176678
0
0
0
0
0
0
1
0.066667
false
0
0.05
0.016667
0.8
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca11278032193161ac55c232cf25a8b385456e2f
2,196
py
Python
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
tests/unit/test_raspberry_pi_monitor.py
Kami/scalyr-agent-2-monitors
367c57cd5489a4661ca6922c1c5ffa4c3b0969d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Tomaz Muraus # # 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.784615
84
0.702186
295
2,196
5.010169
0.447458
0.040595
0.037889
0.051421
0.128552
0.108254
0.108254
0.108254
0.050068
0
0
0.024636
0.186703
2,196
64
85
34.3125
0.802912
0.25
0
0
0
0
0.162278
0.031231
0
0
0
0
0.105263
1
0.026316
false
0
0.105263
0
0.157895
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca122ad15974c3c8846065ba5622e84a28e0998f
5,271
py
Python
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/nova/server_groups.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# Copyright 2017: Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
39.931818
78
0.642003
596
5,271
5.558725
0.251678
0.12617
0.038032
0.02626
0.648053
0.597344
0.597344
0.575913
0.559915
0.559915
0
0.005175
0.266743
5,271
131
79
40.236641
0.852005
0.293682
0
0.623188
0
0
0.245132
0.039233
0
0
0
0
0.072464
1
0.043478
false
0
0.072464
0
0.15942
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca12dc98ed1d3df8ddbdad5e413c00b24eb6f56d
2,696
py
Python
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
16
2019-10-28T01:17:09.000Z
2022-01-20T08:26:06.000Z
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
null
null
null
1_open3d/20_colored_point_cloud_registration.py
lyffly/Python-3DPointCloud-and-RGBD
b3b973ec96045a34d3540522a115c5a77f4de136
[ "Apache-2.0" ]
3
2020-04-07T08:48:28.000Z
2021-09-22T14:47:42.000Z
# coding = utf-8 # coding by liuyunfei # origin code from open3d samples(github) import numpy as np import open3d as op3 import matplotlib.pyplot as plt import copy import time def draw_registration_result_origin_color(source,target,transformation): source_temp = copy.deepcopy(source) source_temp.transform(t...
28.989247
82
0.673961
305
2,696
5.714754
0.347541
0.084337
0.050488
0.064257
0.414228
0.276535
0.276535
0.2249
0.177854
0.177854
0
0.030852
0.242582
2,696
92
83
29.304348
0.822723
0.116469
0
0.196429
0
0
0.07481
0.02705
0
0
0
0
0
1
0.017857
false
0
0.089286
0
0.107143
0.107143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca14df6be2f407c519068e98b8fe3403b1f317be
3,189
py
Python
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
1
2020-09-05T00:47:50.000Z
2020-09-05T00:47:50.000Z
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
schevo/test/test_valid_values_resolve.py
Schevo/schevo
d57a41f8b7b514ed48dc0164dcd3412a89e9873b
[ "MIT" ]
null
null
null
"""Tests for using tuples in valid_values""" # Copyright (c) 2001-2009 ElevenCraft Inc. # See LICENSE for details. from schevo.error import EntityDoesNotExist from schevo.test import CreatesSchema, raises class BaseValidValuesResolve(CreatesSchema): body = ''' class Foo(E.Entity): name = f.string...
27.491379
73
0.555033
405
3,189
4.214815
0.182716
0.063269
0.064441
0.126538
0.482132
0.422964
0.422964
0.422964
0.379613
0.379613
0
0.046147
0.320477
3,189
115
74
27.730435
0.741578
0.090624
0
0.4
0
0
0.317394
0.022523
0
0
0
0
0.2
1
0.026667
false
0
0.026667
0
0.12
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca15c2826574dbb584e7daadacf5cc2051a092bd
512
py
Python
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
src/sentry/web/frontend/organization_home.py
jaysoffian/sentry
80b4d3d89b8a51a0573d1aca9243255b34f0a852
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from sentry.models import Team from sentry.web.frontend.base import OrganizationView class OrganizationHomeView(OrganizationView): def get(self, request, organization): team_list = Team.objects.get_for_user( organization=organization, user=re...
25.6
69
0.666016
53
512
6.226415
0.566038
0.072727
0.072727
0
0
0
0
0
0
0
0
0
0.255859
512
19
70
26.947368
0.866142
0
0
0
0
0
0.074219
0.056641
0
0
0
0
0
1
0.071429
false
0
0.214286
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
ca1a2d87e331ba4796b185ef1dd36eee4f8da2b8
28,671
py
Python
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
1
2016-02-09T10:04:29.000Z
2016-02-09T10:04:29.000Z
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
null
null
null
girc/client.py
ekimekim/girc
505ec0eb3c0a46adfad62383d9634fe971a430d5
[ "MIT" ]
null
null
null
import errno import json import logging import random import string import time import weakref from base64 import b64encode, b64decode import gevent.queue import gevent.pool import gevent.event import gevent.lock from gevent import socket from gevent import ssl from girc import message from girc import replycodes fr...
39.061308
123
0.725193
4,326
28,671
4.690014
0.169209
0.014983
0.009759
0.007393
0.112869
0.079403
0.05328
0.043028
0.032037
0.021933
0
0.003269
0.178403
28,671
733
124
39.114598
0.85804
0.379303
0
0.186335
0
0
0.107287
0.001538
0
0
0
0
0
1
0.109731
false
0.016563
0.043478
0.008282
0.256729
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca1ce780c2537fe4570a13d85a070b4f4bf60790
2,108
py
Python
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
brightway2_conda_installer/__main__.py
haasad/brightway2-conda-installer
48f82b7c594a6a873cead22fb1e92a4441c75125
[ "BSD-3-Clause" ]
null
null
null
import sys import subprocess import tempfile if not ('continuum' in sys.version.lower() or 'conda' in sys.version.lower()): raise RuntimeError('This script needs to be executed with the anaconda python distribution.') def create_new_brightway2_env(): name_str = 'name: {}\n' channels_str = "channels:\n\t- default...
30.114286
96
0.509013
231
2,108
4.428571
0.4329
0.01955
0.035191
0.033236
0.01564
0.01564
0.01564
0.01564
0
0
0
0.019795
0.352941
2,108
69
97
30.550725
0.730205
0
0
0
0
0.037037
0.276565
0
0.037037
0
0
0
0
1
0.018519
false
0
0.055556
0
0.074074
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca210c8b8bd1e28df8213ce6fb3cae882fc18129
2,593
py
Python
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
evd_ros_backend/evd_ros_core/src/evd_sim/pose_interpolator.py
Wisc-HCI/CoFrame
7a54344248d80cb316d36aabd40bbd3cdbbc07eb
[ "MIT" ]
null
null
null
from geometry_msgs.msg import Pose from scipy.interpolate import interp1d from pyquaternion import Quaternion class PoseInterpolator: def __init__(self, poseStart, poseEnd, velocity, minTime=1): ''' param: poseStart is starting pose (that robot should already be at) param: poseEnd is tar...
31.621951
142
0.615889
330
2,593
4.742424
0.3
0.038339
0.035783
0.042173
0.105431
0.105431
0.105431
0.105431
0.105431
0.105431
0
0.023467
0.276899
2,593
82
143
31.621951
0.8112
0.119938
0
0.109091
0
0
0.008043
0
0
0
0
0
0
1
0.127273
false
0
0.054545
0.072727
0.345455
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca26de3069527458469525481c191fce42234a13
454
py
Python
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
2
2021-09-05T22:29:33.000Z
2021-09-09T00:13:16.000Z
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
Lista07/ex009.py
Guilherme-Schwann/Listas-de-Exercicios-UFV-CCF-110
f306c8dc6385ee8c9580e687afa16a49ace68f95
[ "MIT" ]
null
null
null
v = [int(input()) for x in range(121)] menor, maior = v[0], v[0] soma = 0 for i in range(121): soma += v[i] media = soma / 121 diasmen = 0 for i in range(121): if v[i] < menor: menor = v[i] elif v[i] > maior: maior = v[i] if v[i] < media: diasmen += 1 print(f'Menor temp.: {menor}...
25.222222
67
0.57489
80
454
3.2625
0.3625
0.045977
0.114943
0.05364
0.114943
0.114943
0
0
0
0
0
0.050296
0.255507
454
17
68
26.705882
0.721893
0
0
0.117647
0
0
0.284141
0
0
0
0
0
0
1
0
false
0
0
0
0
0.176471
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca2994cdce6a918a52358bb0350464c0936acaaf
3,979
py
Python
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
applications/common/helper.py
wangyuan02605/webcloud
e57a2713125b751ee8bb8da29b789e2044e789aa
[ "MIT" ]
null
null
null
from sqlalchemy import and_ from applications.extensions import db class ModelFilter: """ orm多参数构造器 """ filter_field = {} filter_list = [] type_exact = "exact" type_neq = "neq" type_greater = "greater" type_less = "less" type_vague = "vague" type_contains = "contains" ...
31.330709
102
0.535059
470
3,979
4.357447
0.121277
0.118652
0.09375
0.087891
0.67334
0.663086
0.62793
0.57959
0.563477
0.538086
0
0.003689
0.318673
3,979
126
103
31.579365
0.751752
0.120885
0
0.135593
0
0
0.056452
0
0
0
0
0
0
1
0.186441
false
0
0.033898
0
0.40678
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca2fa87d6cf4a73a4b45887ceb3513ea71760058
1,843
py
Python
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
1
2021-03-06T19:51:07.000Z
2021-03-06T19:51:07.000Z
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
auxil/broker/tests/benchmark/broker-benchmark.py
hugolin615/zeek-4.0.0-ele420520-spring2021
258e9b2ee1f2a4bd45c6332a75304793b7d44d40
[ "Apache-2.0" ]
null
null
null
# ping.py import sys import time import broker event = int(sys.argv[1]) total_sent_ev1 = 0 total_recv_ev1 = 0 first_t = float(time.time()) last_t = first_t last_sent_ev1 = 0 def printStats(stats): t = stats[0] dt = stats[1] ev1 = stats[1 + event].value global total_recv_ev1 total_recv_ev1 += ...
23.329114
145
0.606077
290
1,843
3.67931
0.324138
0.072165
0.078725
0.026242
0.133083
0.09747
0.09747
0.09747
0.09747
0.09747
0
0.04416
0.238199
1,843
78
146
23.628205
0.715812
0.097124
0
0.037037
0
0
0.100602
0
0
0
0
0
0
1
0.055556
false
0
0.055556
0
0.111111
0.092593
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca32bda0e8473b1b0757239f57fdc6efaa9ba516
39,222
py
Python
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
1,307
2015-01-06T15:52:21.000Z
2022-03-25T16:04:53.000Z
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
765
2015-01-11T10:17:57.000Z
2022-01-29T13:04:30.000Z
aiopg/connection.py
arssher/aiopg
ed69a066608ac4788b2bc8a0cdd03690f22adb3a
[ "BSD-2-Clause" ]
194
2015-02-20T09:29:30.000Z
2022-03-03T19:49:19.000Z
import abc import asyncio import contextlib import datetime import enum import errno import platform import select import sys import traceback import uuid import warnings import weakref from collections.abc import Mapping from types import TracebackType from typing import ( Any, Callable, Generator, Lis...
31.277512
79
0.597828
4,367
39,222
5.199908
0.127777
0.019024
0.024265
0.023252
0.380307
0.331161
0.278448
0.242426
0.214066
0.1791
0
0.002972
0.313676
39,222
1,253
80
31.302474
0.840596
0.144205
0
0.381688
0
0
0.084657
0.007598
0
0
0
0
0.008323
1
0.095125
false
0
0.02497
0.026159
0.237812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca332f4e3962c40a19b554a8ccd714164ef6dac0
4,545
py
Python
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
20
2016-11-14T19:49:55.000Z
2021-01-19T00:46:47.000Z
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
3
2016-11-14T20:28:21.000Z
2018-01-08T16:44:36.000Z
meme_scraper/meme_scraper/spiders/memes_spider.py
wyndwarrior/DankMemes
d807e7d7e5b619eb98e7398534ea389a98fe9500
[ "MIT" ]
2
2017-02-03T04:15:10.000Z
2018-01-08T17:04:47.000Z
import scrapy def is_gif(url): return url[-4:] == '.gif' or url[-5:] == '.gifv' def is_image(url): return url[-4:] == '.jpg' or url[-5:] == '.jpeg' or url[-4:] == '.png' class MemesSpider(scrapy.Spider): name = "memes" def __init__(self): self.NUM_PAGES = 1 self.resolution = "500x500...
37.875
94
0.540374
526
4,545
4.477186
0.212928
0.053503
0.02293
0.040764
0.464968
0.357113
0.259023
0.162208
0.162208
0.131635
0
0.006205
0.326293
4,545
120
95
37.875
0.7629
0.005061
0
0.22549
0
0
0.145133
0.014823
0
0
0
0
0
1
0.078431
false
0.009804
0.009804
0.019608
0.137255
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca33e7b95795b18f73106c41b3e69597ae402a94
9,706
py
Python
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
5
2019-09-27T20:10:33.000Z
2020-11-15T13:03:47.000Z
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
2
2021-01-27T12:32:24.000Z
2021-02-02T18:02:27.000Z
src/phase/utils.py
PacificBiosciences/pbampliconclustering
cc0efd2a88a56852ffff5dd04e90cb394ff46671
[ "BSD-3-Clause-Clear" ]
3
2020-12-28T10:12:49.000Z
2020-12-28T10:13:13.000Z
import pysam import pandas as pd import mappy as mp from itertools import chain from statistics import median from collections import Counter from scipy.stats import entropy MINLEN=50 MAXLEN=50000 def summary(splitter,caller): try: minsig = splitter.minSignal minfrac = splitter._minFrac ...
33.239726
110
0.562127
1,159
9,706
4.653149
0.25453
0.024476
0.007417
0.002225
0.145744
0.106434
0.081216
0.066753
0.054144
0.054144
0
0.010027
0.301257
9,706
291
111
33.353952
0.785167
0.016073
0
0.149606
0
0.003937
0.162683
0.056604
0
0
0.002096
0.003436
0
1
0.110236
false
0.027559
0.027559
0.015748
0.271654
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca34d060f848bab1e475f4337bc0cb9c7625f083
7,472
py
Python
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
bioptim/optimization/optimization_variable.py
Naassila/bioptim
511e7ba315de5ca8c3bdcc85decd43bac30676b9
[ "MIT" ]
null
null
null
from typing import Union import numpy as np from casadi import MX, SX, vertcat, horzcat from ..misc.mapping import BiMapping class OptimizationVariable: """ An optimization variable and the indices to find this variable in its state or control vector Attributes ---------- name: str The ...
26.877698
109
0.55795
918
7,472
4.429194
0.149237
0.024594
0.013773
0.014757
0.504181
0.473684
0.416134
0.361043
0.336203
0.303246
0
0.003511
0.351981
7,472
277
110
26.974729
0.836225
0.369781
0
0.305263
0
0
0.085128
0.018687
0
0
0
0
0
1
0.178947
false
0
0.042105
0
0.421053
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca356ce5b01f12eac1c48272cd08a7d0cde42c26
519
py
Python
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
1
2019-12-05T14:55:24.000Z
2019-12-05T14:55:24.000Z
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
null
null
null
AdventCode2017_Python/test.py
yomodev/AdventOfCode
79c4dd1d129a4ef78631f70564041ed2e9b499eb
[ "MIT" ]
null
null
null
firewall = {} with open('day13.txt') as file: for line in file.readlines(): depth, layer_range = map(int, line.strip().split(':')) firewall[depth] = layer_range delay = 0 while True: caught = False scanner = delay for position in range(max(firewall.keys())+1): if position in fir...
24.714286
80
0.55684
64
519
4.484375
0.546875
0.069686
0.10453
0
0
0
0
0
0
0
0
0.025641
0.323699
519
21
81
24.714286
0.792023
0
0
0.105263
0
0
0.019231
0
0
0
0
0
0
1
0
false
0
0
0
0
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
ca389eab535ecdfd9adf226e5f2e3a90095ea7c7
1,330
py
Python
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
12
2017-07-22T02:29:56.000Z
2019-11-25T14:20:37.000Z
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
3
2019-12-26T16:40:03.000Z
2022-03-21T22:16:50.000Z
edwiges/__init__.py
loggi/maildog
1439365b86015f10c8057d0bb32c3aa6810390b5
[ "Apache-2.0" ]
null
null
null
"""Main entry point """ import os import logging import logmatic from pyramid.config import Configurator, ConfigurationError REQUIRED_SETTINGS = [ 'edwiges.provider_host', 'edwiges.provider_port', ] ENV_SETTINGS = [ 'edwiges.provider_host', 'edwiges.provider_port', 'edwiges.provider_username', ...
23.333333
71
0.701504
152
1,330
5.993421
0.401316
0.131723
0.100988
0.088913
0.100988
0.100988
0.100988
0
0
0
0
0
0.178195
1,330
56
72
23.75
0.833486
0.01203
0
0.105263
0
0
0.201224
0.13466
0
0
0
0
0
1
0.052632
false
0.026316
0.105263
0
0.210526
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca38c798ccfaff9e029635bf136f595aa05ba85c
1,817
py
Python
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
16
2017-08-01T03:11:17.000Z
2021-03-04T13:11:43.000Z
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
14
2017-08-08T12:26:47.000Z
2021-04-08T14:27:39.000Z
test/test_ofc.py
mbdevpl/open-fortran-parser-xml
127f4ec2ba7cd06eb010794560eb8e4b9494fdfe
[ "Apache-2.0" ]
9
2018-04-04T08:08:15.000Z
2022-02-01T13:23:59.000Z
"""Tests for ofc_wrapper module.""" import logging import pathlib import platform import tempfile import unittest from open_fortran_parser.ofc_wrapper import CodeForm, execute_compiler, transpile _LOG = logging.getLogger(__name__) _HERE = pathlib.Path(__file__).resolve().parent INPUT_PATHS = [_HERE.joinpath('examp...
38.659574
92
0.617501
205
1,817
5.253659
0.370732
0.066852
0.038997
0.051996
0.336119
0.295265
0.295265
0.233983
0.233983
0.233983
0
0.003897
0.293891
1,817
46
93
39.5
0.835542
0.01596
0
0.228571
0
0
0.047699
0
0
0
0
0
0.114286
1
0.057143
false
0
0.171429
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
ca395e36cbe0de5a7289dd4b7706b1a242253411
4,892
py
Python
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
2
2019-02-24T10:01:39.000Z
2019-02-24T10:01:41.000Z
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
null
null
null
topological_sort.py
Fieldhunter/Data-Structures-and-Algorithms
8e5ea4313bf27bbfd9dd16cfaf3e7c56cf42a88a
[ "Apache-2.0" ]
null
null
null
""" @version: python3.6 @author: Fieldhunter @contact: 1677532160yuan@gmail.com @time: 2020-05-03 """ import functools class Node(): def __init__(self,element): self.data = element self.in_degree = 0 self.out_degree = 0 class Adjacency_list(): """ Self.__node_mapping is used to record the correspondence b...
26.301075
79
0.684791
752
4,892
4.219415
0.208777
0.052001
0.052001
0.012606
0.239836
0.168925
0.141822
0.124803
0.124803
0.065553
0
0.012741
0.213818
4,892
185
80
26.443243
0.812272
0.147997
0
0.258621
0
0
0.030546
0.009565
0
0
0
0
0
1
0.086207
false
0.008621
0.008621
0.017241
0.163793
0.051724
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca3c1444dbdd47210fdc594c38dc6c7fc4b597b3
3,247
py
Python
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
5.3c_matrix_multiplication.py
bayu-wilson/phys218_example
f6d624d0747c42b29e9855c34a2ab1af28d97654
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Program to multiply 2 matrices together. (nxm)*(mxl)""" import numpy as np import timeit speed_test = True def check_shape(A,B): """Checking if it's possible to multiply these matrices together""" shape_A = np.shape(A) shape_B = np.shape(B) if shape_A[1] != shape_B[0]: raise ValueErr...
30.92381
108
0.706498
573
3,247
3.809773
0.228621
0.046725
0.032982
0.038479
0.460834
0.293175
0.21301
0.21301
0.067797
0.037563
0
0.025469
0.12935
3,247
104
109
31.221154
0.746728
0.36988
0
0.152542
0
0
0.169262
0
0
0
0
0
0
1
0.135593
false
0
0.084746
0.050847
0.338983
0.20339
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca3ce730517d85d71f6c4ae8b988f12d3ee052be
2,349
py
Python
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
2
2020-08-04T09:00:55.000Z
2021-11-09T22:43:39.000Z
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
8
2020-05-25T09:53:36.000Z
2020-05-25T10:10:50.000Z
examples/3-shared-resources/new2.py
sietse/simpy-fsm
a62eb6feeb238147626f20530cfc700f45136f12
[ "MIT" ]
2
2020-08-04T09:01:03.000Z
2020-12-02T20:27:58.000Z
# Behaviour is identical to simpy_3_resource.py. The difference in # implementation: Awaiting a charging station + using it is not one # state that starts with a context manager, but it is two separate # states. awaiting_battery() awaits the slot; charging() takes the slot, # charges, and releases the slot. import sim...
31.743243
74
0.631758
298
2,349
4.818792
0.372483
0.104457
0.039694
0.031337
0.041783
0.029248
0.029248
0
0
0
0
0.004154
0.282673
2,349
73
75
32.178082
0.848071
0.338868
0
0.044444
0
0
0.054319
0
0
0
0
0
0
1
0.088889
false
0
0.044444
0
0.2
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca3d4fe9e2876f20e4c3eaac920e8250524628b2
2,299
py
Python
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
2
2020-03-11T13:14:33.000Z
2021-07-17T22:45:15.000Z
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
null
null
null
scripts/summarize-rewards.py
jhostetler/jmcplan
489994fa60a084d4c361a6c62b22d1a5f713c117
[ "BSD-2-Clause" ]
null
null
null
# LICENSE # Copyright (c) 2013-2016, Jesse Hostetler (jessehostetler@gmail.com) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyri...
42.574074
91
0.739887
330
2,299
5.121212
0.524242
0.018935
0.020118
0.027219
0.108876
0.080473
0.080473
0.080473
0.080473
0.080473
0
0.008896
0.168769
2,299
53
92
43.377358
0.875458
0.578947
0
0
0
0
0.150424
0
0
0
0
0
0
1
0
false
0
0.12
0
0.12
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca3d5f2a23ca8a36c8a715d7a40fab8cb03b8764
18,411
py
Python
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
4
2018-06-26T13:40:31.000Z
2021-11-16T11:31:33.000Z
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
null
null
null
hs_fetcher.py
JCMarques15/tor-hs-fetcher
3d63f5acd3e7d8c51c6682c15e1e2db37d3df18d
[ "MIT" ]
5
2020-02-06T01:08:50.000Z
2021-05-03T17:38:59.000Z
#!/usr/bin/env python3 import subprocess import subprocess import sys import threading import sqlite3 import re import datetime from pathlib import Path import base64 import binascii class myThread (threading.Thread): def __init__(self, threadID, name, pid, db, lock): threading.Thread.__init__(self) # Init...
56.302752
463
0.689696
2,464
18,411
4.998377
0.133523
0.054076
0.032153
0.013397
0.514615
0.455586
0.412796
0.375447
0.338097
0.29888
0
0.008649
0.183586
18,411
327
464
56.302752
0.810725
0.170713
0
0.371308
0
0.033755
0.32247
0.097438
0
0
0
0.003058
0
1
0.054852
false
0
0.042194
0
0.118143
0.139241
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca40058a64a570aca77aabf42d24d5a31d357fe2
4,691
py
Python
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
16
2020-02-12T20:10:58.000Z
2022-03-24T05:06:44.000Z
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
1
2021-03-05T06:39:23.000Z
2021-03-05T07:23:43.000Z
data_prep/bert_data_prep/gen_bert_data.py
internetarchive/pdf_trio
682b1dcd8a07edcbfe89380a4a83477b8c71a980
[ "Apache-2.0" ]
3
2020-02-12T19:44:51.000Z
2021-01-02T19:11:14.000Z
#!/usr/bin/env python3 """ Copyright 2019 Internet Archive Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
35.80916
122
0.673204
669
4,691
4.599402
0.394619
0.077998
0.054599
0.062398
0.143971
0.115697
0.115697
0.115697
0.115697
0.089698
0
0.008415
0.214666
4,691
130
123
36.084615
0.826819
0.291409
0
0.058824
0
0
0.127997
0
0
0
0
0.007692
0
1
0.058824
false
0
0.058824
0
0.191176
0.044118
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca41adf512489971642b9250b9391a54e0238eab
23,451
py
Python
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
2
2015-03-13T22:43:33.000Z
2015-06-26T19:10:25.000Z
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
null
null
null
fitbit/api.py
benhoyle/python-ihealth
32173d35d368d4adb615f8c9c61aa2c1fb22ca63
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- import oauth2 as oauth import requests import urlparse import json import datetime import urllib from fitbit.exceptions import (BadResponse, DeleteError, HTTPBadRequest, HTTPUnauthorized, HTTPForbidden, HTTPServerError, HTTPConflict,...
34.38563
171
0.569102
2,736
23,451
4.720029
0.13633
0.028341
0.03833
0.045997
0.511073
0.45563
0.410872
0.356899
0.323138
0.2663
0
0.004028
0.32246
23,451
681
172
34.436123
0.808736
0.264125
0
0.326531
0
0.002551
0.101103
0.056738
0
0
0
0.001468
0
1
0.09949
false
0.002551
0.020408
0
0.260204
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca433cfdc583b5417c142f3e27cbbc19fc20126f
636
py
Python
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
python_first_step/sortalgoArrayOperation/sort2.py
cartellefo/projet
23c67e847b415fb47f71e830b89a227fffed109b
[ "MIT" ]
null
null
null
import time import numpy as np import numpy.linalg as nl import random import matplotlib.pyplot as plt def sortInt(n_max) : # summe des carre listInt=[] for i in range(1, n_max) : s = random.randint(1,10) listInt.append(s) return(listInt) intRand= sortInt(5) print(intRand) d...
16.307692
34
0.542453
102
636
3.343137
0.45098
0.02346
0.046921
0
0
0
0
0
0
0
0
0.0311
0.342767
636
38
35
16.736842
0.784689
0.023585
0
0
0
0
0
0
0
0
0
0
0
1
0.074074
false
0
0.185185
0
0.296296
0.074074
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca436d41c043f791ff6f753cb4ff5c619518a094
2,844
py
Python
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
null
null
null
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
null
null
null
plot_p.py
alexfmsu/pyquantum
78b09987cbfecf549e67b919bb5cb2046b21ad44
[ "MIT" ]
2
2020-07-28T08:40:06.000Z
2022-02-16T23:04:58.000Z
from PyQuantum.Tools.PlotBuilder2D import * from PyQuantum.Tools.CSV import * import numpy as np x = [] y = [] # path = 'oout' path = 'out_2' def df(x, y): f_xn = y[-1] xn = x[-1] DF = [] for i in range(len(y)-2, -1, -1): f_xn_1 = y[i] xn_1 = x[i] df = (f_xn-f_xn_1) / (xn...
18.588235
77
0.457806
475
2,844
2.566316
0.166316
0.127153
0.054143
0.028712
0.241181
0.19032
0.146842
0.091879
0.091879
0
0
0.049918
0.359001
2,844
152
78
18.710526
0.61876
0.343179
0
0.044776
0
0
0.050745
0
0
0
0
0
0
1
0.014925
false
0
0.044776
0
0.074627
0.119403
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4406d690ff4c796afb3625d7199843d05e7652
7,644
py
Python
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
1
2020-06-12T16:58:19.000Z
2020-06-12T16:58:19.000Z
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
2
2018-07-04T11:19:13.000Z
2018-07-12T11:46:16.000Z
omdbapi-python-tool/Old/dont_use_experimental_multi_processor.py
know-airl/Vote-Goat-Data
d523d45107b5994b9135577db5e0269eb6d4c613
[ "MIT" ]
null
null
null
import omdb # For scraping omdbapi.com import ujson # For outputting to disk from time import sleep # For sleeping between scrape attempts import numpy as np # Not utilised past the failure text file function import os # For checking the existing data files import math # For rounding float up to nearest integer # mult...
47.185185
155
0.675693
1,086
7,644
4.578269
0.310313
0.01609
0.012068
0.018504
0.080048
0.057522
0.055109
0.055109
0.055109
0.037409
0
0.009604
0.237179
7,644
161
156
47.478261
0.84308
0.55887
0
0.153846
0
0
0.028032
0
0
0
0
0
0
1
0.064103
false
0
0.115385
0
0.179487
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca441024b2e763c4af65aa1f10420402eb5cf8f7
22,324
py
Python
tests/hetr_tests/test_hetr_integration.py
NervanaSystems/ngraph-python
ac032c83c7152b615a9ad129d54d350f9d6a2986
[ "Apache-2.0" ]
18
2018-03-19T04:16:49.000Z
2021-02-08T14:44:58.000Z
tests/hetr_tests/test_hetr_integration.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
2
2019-04-16T06:41:49.000Z
2019-05-06T14:08:13.000Z
tests/hetr_tests/test_hetr_integration.py
rsumner31/ngraph
5e5c9bb9f24d95aee190b914dd2d44122fc3be53
[ "Apache-2.0" ]
11
2018-06-16T15:59:08.000Z
2021-03-06T00:45:30.000Z
# ****************************************************************************** # Copyright 2017-2018 Intel Corporation # # 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.apa...
35.775641
99
0.61781
3,220
22,324
4.072981
0.130124
0.044224
0.025162
0.039649
0.579642
0.55509
0.506367
0.47236
0.438506
0.40732
0
0.020702
0.244849
22,324
623
100
35.833066
0.757267
0.091785
0
0.437895
0
0
0.064125
0.003593
0
0
0
0.001605
0.065263
1
0.044211
false
0
0.035789
0
0.084211
0.002105
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca45b500d25fab159b618f1a88b1a991fcd45ebe
17,159
py
Python
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
28
2017-02-07T07:46:42.000Z
2021-06-30T08:11:06.000Z
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
6
2018-01-18T08:00:54.000Z
2019-04-11T04:51:41.000Z
yardstick/network_services/traffic_profile/ixia_rfc2544.py
upfront710/yardstick
2c3898f2ca061962cedbfc7435f78b59aa39b097
[ "Apache-2.0" ]
46
2016-12-13T10:05:47.000Z
2021-02-18T07:33:06.000Z
# Copyright (c) 2016-2019 Intel Corporation # # 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...
40.279343
83
0.594615
1,962
17,159
4.926096
0.153925
0.034144
0.014485
0.024625
0.558717
0.503983
0.484739
0.444697
0.435385
0.415106
0
0.012064
0.309225
17,159
425
84
40.374118
0.803341
0.0623
0
0.476331
0
0
0.078451
0.00274
0
0
0
0
0
1
0.050296
false
0
0.014793
0
0.115385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca478284b5ab15449bbe9ae4cf72cb8e3dd5e8d8
1,201
py
Python
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
notes/2020/2020-02-23-python-aiohttp-crud-demo-app/app.py
freininghaus/notes
1db927afaa70eb6e3af4fd4fcdf868275da7131c
[ "MIT" ]
null
null
null
import json import os from aiohttp import web DATA = {} async def list_keys(request): return web.json_response(sorted(DATA)) async def add_document(request): key = request.match_info["key"] try: document = await request.json() except json.decoder.JSONDecodeError as error: raise web....
22.240741
104
0.653622
162
1,201
4.746914
0.37037
0.041612
0.070221
0.097529
0.343303
0.343303
0.343303
0.156047
0
0
0
0.004211
0.208993
1,201
53
105
22.660377
0.805263
0
0
0.315789
0
0.026316
0.13572
0
0
0
0
0
0
1
0
false
0
0.078947
0
0.184211
0.026316
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca48cfdcb7622dc5e3da4e6a96f90e5e3237d589
6,356
py
Python
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
1
2021-12-22T03:35:18.000Z
2021-12-22T03:35:18.000Z
flow/flow-master/glow.py
neumason/zi2zi
e8ce521ebd260eae569cd5b3e7923f9450b0cca2
[ "Apache-2.0" ]
null
null
null
#! -*- coding: utf-8 -*- # Keras implement of Glow # Glow模型的Keras版 # https://blog.openai.com/glow/ from keras.layers import * from keras.models import Model from keras.datasets import cifar10 from keras.callbacks import Callback from keras.optimizers import Adam from flow_layers import * import imageio import numpy as...
28.630631
118
0.595028
895
6,356
4.064804
0.281564
0.026938
0.006597
0.012095
0.059373
0.041781
0.031886
0.031886
0.031886
0.031886
0
0.030956
0.263059
6,356
221
119
28.760181
0.74573
0.071901
0
0.125749
0
0
0.03674
0.012663
0
0
0
0
0
1
0.035928
false
0
0.077844
0
0.131737
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4a501860d545885c7a68c5914cd3f72741cdda
488
py
Python
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
Py exercises/Palindrome.py
arvindkarir/python-pandas-code
fb3b68f07f0438cd0ef6d7ad669ce78650d884a8
[ "MIT" ]
null
null
null
#Palindrome check for string s s = ['d','o','g','G','o','d'] #need to define a string s = [element.lower() for element in s] #convert each element to lowercase def isPal(s): print(' isPal called with', s ) #printing the string if len(s) <= 1: #zero or one letter case print('Base case is always true...
32.533333
84
0.608607
80
488
3.7125
0.5625
0.020202
0
0
0
0
0
0
0
0
0
0.013477
0.239754
488
14
85
34.857143
0.787062
0.340164
0
0
0
0
0.188742
0
0
0
0
0
0
1
0.090909
false
0
0
0
0.272727
0.272727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4bf45e859d235d8665ccec531d457472e1d9c8
4,653
py
Python
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
05ctc/my_dataset.py
sadahry/python_asr
a9e69867cd4d2e5f21ffa8266e288dd1a0720ea0
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*- # # Pytorchで用いるDatasetの定義 # from numpy.lib.arraypad import pad import tensorflow as tf # 数値演算用モジュール(numpy)をインポート import numpy as np # sysモジュールをインポート import sys import math def build_dataset(feat_scp, label_scp, feat_mean, ...
25.565934
76
0.563507
486
4,653
5.106996
0.358025
0.042305
0.024174
0.012087
0.029009
0
0
0
0
0
0
0.013536
0.349022
4,653
181
77
25.707182
0.805877
0.271223
0
0
0
0
0.022503
0
0
0
0
0
0
1
0.034483
false
0
0.057471
0
0.126437
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4e977a8bbc9ad8ddd91fa8ba9e6bd2a4340a7e
1,410
py
Python
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
161
2017-10-04T08:58:27.000Z
2022-01-03T13:01:04.000Z
aztk/internal/configuration_base.py
Geims83/aztk
8f8e7b268bdbf82c3ae4ecdcd907077bd6fe69b6
[ "MIT" ]
400
2017-09-29T21:52:08.000Z
2021-01-08T02:48:56.000Z
aztk/internal/configuration_base.py
isabella232/aztk
6e04372d19661ead6744387edab7beda16e3d928
[ "MIT" ]
74
2017-10-13T04:41:26.000Z
2021-12-20T15:56:42.000Z
import yaml from aztk.error import AztkError, InvalidModelError class ConfigurationBase: """ Base class for any configuration. Include methods to help with validation """ @classmethod def from_dict(cls, args: dict): """ Create a new model from a dict values The dict is...
29.375
97
0.598582
171
1,410
4.789474
0.479532
0.029304
0.043956
0.053724
0.126984
0.080586
0.080586
0
0
0
0
0.005139
0.309929
1,410
47
98
30
0.836588
0.132624
0
0.193548
0
0
0.044369
0
0
0
0
0
0
1
0.193548
false
0
0.064516
0
0.419355
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca4fb8eba7e86423c3e317fa09aefd90269c7fd8
3,836
py
Python
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
scripts/RSS_Reader/rss_reader.py
phoexer/Kelly
2cccb8bc5197120754714b08226cd4ec1f63fb73
[ "MIT" ]
null
null
null
#!/usr/bin/python3 #this is a comment .!/usr/bin/env python3 import feedparser import pandas as pd import time import numpy as np import sys import logging import csv logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s') #from subprocess import check_output #import sys with...
30.444444
112
0.637643
525
3,836
4.584762
0.329524
0.020357
0.03199
0.035314
0.174907
0.16452
0.099709
0
0
0
0
0.077102
0.215589
3,836
126
113
30.444444
0.722832
0.395464
0
0.09375
0
0
0.113182
0
0
0
0
0.007937
0
1
0.0625
false
0
0.109375
0.015625
0.234375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca52ac0d4f6eff14369de57d20140633d902fe4f
2,269
py
Python
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
models/Update.py
C3atUofU/Hierarchical-SGD
ecc0f25065f78e70ed8deff7dfc9809331e19f21
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.6 import torch from torch import nn, autograd from torch.utils.data import DataLoader, Dataset import numpy as np import random from sklearn import metrics class DatasetSplit(Dataset): def __init__(self, dataset, idxs): self.dataset = data...
33.865672
139
0.585721
278
2,269
4.629496
0.363309
0.055944
0.037296
0.049728
0.28749
0.28749
0.28749
0.28749
0.28749
0.28749
0
0.004502
0.314676
2,269
66
140
34.378788
0.823151
0.070075
0
0.285714
0
0
0
0
0
0
0
0
0
1
0.102041
false
0
0.122449
0.020408
0.326531
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca5b47ff066ef55e1d1779346f934318a0c7cf47
1,996
py
Python
2 - Code/210924 - DQN Extensions #1/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
31
2021-04-08T15:21:56.000Z
2022-03-15T08:18:33.000Z
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
2 - Code/210929 - DQN Extensions #2/01 - DQN Basic.py
utilForever/2021-HYU-HAI-RLBootCamp
6ec1c405a32b03903c6d73d7b882ef07610eafe4
[ "MIT" ]
null
null
null
import argparse import gym import ptan import random import torch import torch.optim as optim from ignite.engine import Engine from lib import dqn_model, epsilon_tracker, hyper_params, utils if __name__ == "__main__": random.seed(hyper_params.SEED) torch.manual_seed(hyper_params.SEED) params = hyper_pa...
32.721311
108
0.725952
257
1,996
5.400778
0.392996
0.04755
0.032421
0.041066
0.040346
0
0
0
0
0
0
0.001806
0.167836
1,996
60
109
33.266667
0.833835
0
0
0
0
0
0.036072
0
0
0
0
0
0
1
0.02381
false
0
0.190476
0
0.238095
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca60b53e49cf1b6bb9d51a2399b1a6d7c2de70cd
1,487
py
Python
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
exercicio-05.py
gabrilu/Atividade
3c71113099e827913e4a560ecfd029706ba90a00
[ "Apache-2.0" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd import numpy as np # Os dados utilizados referem-se à granulometria (tamanho de partícula) de um testemunho marinho; # Valores negativos em y indicam a profundidade da coluna estratigráfica em metros, sendo y = 0 o topo do testemunho (início do assoalho oceânico); # ...
61.958333
147
0.741762
244
1,487
4.504098
0.491803
0.007279
0.024568
0.027298
0.146497
0.146497
0.146497
0.072793
0
0
0
0.014196
0.147276
1,487
23
148
64.652174
0.852524
0.635508
0
0
0
0
0.316981
0.218868
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca6399fda024ff3ca6fb6ffc6995041a2c15a6d0
1,644
py
Python
2021/04/day_04.py
mfep/advent-of-code-2020
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
2
2020-12-05T18:21:14.000Z
2020-12-08T19:37:51.000Z
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
2021/04/day_04.py
mfep/advent-of-code
99ba3d68383f5a5e15ec876a9915082f479b8ee4
[ "MIT" ]
null
null
null
class Board(object): def __init__(self, lines): assert(len(lines) == 5) self.data = [] for line in lines: self.data += [int(x) for x in line.split()] assert(len(self.data) == 25) self.drawn = [False for _ in self.data] def score(self, drawn): return sum([0 if self.drawn[idx] else self...
24.537313
87
0.583333
254
1,644
3.692913
0.255906
0.051173
0.051173
0.017058
0.319829
0.298507
0.298507
0.240938
0.240938
0.240938
0
0.03172
0.27129
1,644
66
88
24.909091
0.751252
0
0
0.357143
0
0
0.006691
0
0
0
0
0
0.035714
1
0.089286
false
0
0
0.017857
0.214286
0.035714
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca63c85b7dd719215770c89a01e560ca42f2a093
2,944
py
Python
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
test/test_database_variable.py
sensiblecodeio/csv-to-cantabular-metadata-2021
32bad86f5acaec76af6538bdeff89fc78575c8dd
[ "Apache-2.0" ]
null
null
null
import unittest.mock import unittest import os import pathlib from ons_csv_to_ctb_json_load import Loader from helper_funcs import conditional_mock_open, build_test_file HEADERS = ['Id', 'Database_Mnemonic', 'Variable_Mnemonic', 'Version', 'Lowest_Geog_Variable_Flag'] REQUIRED_FIELDS = {'Variable_Mnemonic': 'VAR1', ...
42.666667
115
0.638247
354
2,944
5.002825
0.271186
0.062112
0.08131
0.099379
0.330322
0.293619
0.293619
0.241671
0.206663
0.17956
0
0.012102
0.242188
2,944
68
116
43.294118
0.781712
0
0
0.2
0
0
0.324049
0.094429
0
0
0
0
0.018182
1
0.127273
false
0
0.109091
0
0.254545
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca651fc6921278187b2a3bb6efc946859def4b2c
705
py
Python
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
reefbot/test/TestStillCaptureModule.py
MRSD2018/reefbot-1
a595ca718d0cda277726894a3105815cef000475
[ "MIT" ]
null
null
null
#!/usr/bin/python """Sends a message that is read by the StillCaptureModule.""" import roslib; roslib.load_manifest('reefbot') import rospy from reefbot_msgs.msg import ImageCaptured if __name__ == "__main__": rospy.init_node('TestStillCaptureModule') publisher = rospy.Publisher( rospy.get_param('still_image...
25.178571
61
0.723404
93
705
5.290323
0.645161
0.146341
0.056911
0
0
0
0
0
0
0
0
0.026846
0.15461
705
27
62
26.111111
0.798658
0.102128
0
0
0
0
0.110048
0.035088
0
0
0
0
0
1
0
false
0
0.15
0
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca653894731570c9c358faadfe28ba24fca6a793
4,924
py
Python
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
20
2020-08-19T23:27:01.000Z
2022-02-03T12:02:17.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
1
2021-04-10T18:06:05.000Z
2021-04-10T18:06:05.000Z
Python Tkinter All List III Save and Open ToDo Lists/SaveandOpe ToD Lists.py
BrianMarquez3/Python-Course
2622b4ddfd687505becfd246e82a2ed0cb9b76f3
[ "MIT" ]
2
2020-12-03T19:35:36.000Z
2021-11-10T14:58:39.000Z
############################################################################ # Python Tkinter All List III Save and Open ToDo Lists # Python Tkinter All List III Guardar y abrir listas de tareas pendientes ############################################################################ from tkinter import * from tkinter.f...
27.355556
91
0.647035
689
4,924
4.467344
0.256894
0.048733
0.031189
0.038986
0.402859
0.305718
0.27128
0.27128
0.27128
0.221897
0
0.015951
0.210601
4,924
180
92
27.355556
0.77592
0.140536
0
0.321739
0
0
0.143175
0.005184
0
0
0
0.005556
0
1
0.069565
false
0.008696
0.034783
0
0.104348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca664f99426c4233bb183526150ff77bb24145d7
848
py
Python
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
1
2022-02-20T14:35:42.000Z
2022-02-20T14:35:42.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
4
2022-03-02T07:18:01.000Z
2022-03-31T07:09:30.000Z
homeassistant/components/sleepiq/coordinator.py
d4rk1/core
52ca1a3d475fdd96e6998d8c8b0be9a423b4dd06
[ "Apache-2.0" ]
null
null
null
"""Coordinator for SleepIQ.""" from datetime import timedelta import logging from asyncsleepiq import AsyncSleepIQ from homeassistant.core import HomeAssistant from homeassistant.helpers.update_coordinator import DataUpdateCoordinator _LOGGER = logging.getLogger(__name__) UPDATE_INTERVAL = timedelta(seconds=60) c...
25.69697
75
0.676887
77
848
7.181818
0.506494
0.075949
0
0
0
0
0
0
0
0
0
0.003091
0.237028
848
32
76
26.5
0.851623
0.095519
0
0
0
0
0.023968
0
0
0
0
0
0
1
0.045455
false
0
0.227273
0
0.318182
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca6e3b8ba437468f1d2e6ebc7b338d1c4822e773
311
py
Python
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
launcher.py
Bolinooo/Algorithms
08b1e94eaa483845eb7611eef6192a047e04711f
[ "MIT" ]
null
null
null
#!/usr/bin/env python __author__ = "Bolinooo" def main(): L1 = [i for i in range(1, 10)] L2 = [i * 2 for i in range(1, 10)] print("Step 1: Import the correct algorithm") print("Step 2: Try out the correct algorithm using the above lists or your own") if __name__ == "__main__": main()
19.4375
84
0.623794
51
311
3.568627
0.647059
0.043956
0.065934
0.120879
0.153846
0.153846
0
0
0
0
0
0.046809
0.244373
311
15
85
20.733333
0.72766
0.064309
0
0
0
0
0.424138
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0.25
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca73356a167a495ef7f15554e401d4c020b25f47
822
py
Python
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
1
2021-12-07T10:54:48.000Z
2021-12-07T10:54:48.000Z
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
codes/day9_task1.py
tayyrov/AdventOfCode
69003407fd345ea76f8125b4b132e5b5d5ea33ab
[ "MIT" ]
null
null
null
""" Advent Of Code 2021 Day 9 Date: 09-12-2021 Site: https://adventofcode.com/2021/day/9 Author: Tayyrov """ def isValid(r, c): return 0 <= c < cols and 0 <= r < rows input_file = open('../input_files/day9_input', 'r') matrix = input_file.readlines() rows = len(matrix) cols = len(matrix[0].s...
22.216216
64
0.519465
125
822
3.36
0.488
0.014286
0.038095
0
0
0
0
0
0
0
0
0.058608
0.335766
822
36
65
22.833333
0.710623
0.121655
0
0
0
0
0.116519
0.036873
0
0
0
0
0
1
0.047619
false
0
0
0.047619
0.095238
0.047619
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca73616e330f62bf07e4bc8f69070d118dc75955
6,532
py
Python
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
56
2020-01-12T05:45:59.000Z
2022-03-17T15:04:15.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
7
2020-01-28T23:14:45.000Z
2022-02-10T01:56:48.000Z
scripts/demo_taskonomy.py
jozhang97/Side-tuning
dea345691fb7ee0230150fe56ddd644efdffa6ac
[ "MIT" ]
2
2020-02-29T14:51:23.000Z
2020-03-07T03:23:27.000Z
import time from tqdm import tqdm import torch import torch.nn.functional as F from evkit.utils.losses import weighted_l1_loss, weighted_l2_loss, softmax_cross_entropy, dense_cross_entropy from tlkit.models.lifelong_framework import LifelongSidetuneNetwork from tlkit.data.datasets.taskonomy_dataset import get_lifelon...
39.829268
161
0.686467
903
6,532
4.739756
0.262458
0.029439
0.033645
0.043692
0.389019
0.361449
0.346028
0.31215
0.247196
0.230841
0
0.014517
0.177434
6,532
164
162
39.829268
0.782058
0.098132
0
0.219512
0
0
0.242916
0.068283
0
0
0
0
0
1
0
false
0
0.065041
0
0.065041
0.056911
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca74d344cab07cbfd869efaea460c4c5bc949315
316
py
Python
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
2
2020-07-07T01:46:37.000Z
2021-04-20T03:19:43.000Z
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
exercises/de/exc_02_05_02.py
tuanducdesign/spacy-course
f8d092c5fa2997fccb3f367d174dce8667932b3d
[ "MIT" ]
null
null
null
import spacy nlp = spacy.blank("de") # Importiere die Klasse Doc from ____ import ____ # Erwarteter Text: "Na, alles klar?" words = ["Na", ",", "alles", "klar", "?"] spaces = [____, ____, ____, ____, ____] # Erstelle ein Doc mit den Wörtern und Leerzeichen doc = ____(____, ____=____, ____=____) print(doc.text)
21.066667
50
0.674051
34
316
4.735294
0.735294
0.086957
0.136646
0
0
0
0
0
0
0
0
0
0.167722
316
14
51
22.571429
0.612167
0.344937
0
0
0
0
0.073892
0
0
0
0
0
0
1
0
false
0
0.285714
0
0.285714
0.142857
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca74e85f36d8815a258660b91b00fe2163b98715
2,602
py
Python
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
1
2021-11-26T10:08:39.000Z
2021-11-26T10:08:39.000Z
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
null
null
null
un_contre_un.py
ForrayGabriel/polychess
6555d32d2526d79c1de1c264d8c42c48bee5d412
[ "MIT" ]
2
2020-12-10T08:07:05.000Z
2021-01-07T15:26:04.000Z
# -*- coding: utf-8 -*- """ Created on Thu Dec 10 11:00:53 2020 @author: Gabriel """ import chess import chess.svg import random #Fonction qui demander un mouvement dans la console et le retourn sous la forme d'un chess move def recup_move(): case_dep = input("Case départ :") case_arr = input("Case arrivée ...
27.680851
152
0.609147
345
2,602
4.495652
0.373913
0.034816
0.042553
0.03675
0.411348
0.3804
0.3804
0.3804
0.3804
0.3804
0
0.01454
0.286318
2,602
94
153
27.680851
0.820679
0.197156
0
0.623188
0
0.014493
0.184096
0
0
0
0
0
0
1
0.072464
false
0
0.043478
0
0.144928
0.202899
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca77263261ea32fe43d682889ede3057c2714eb1
953
py
Python
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
1
2021-11-25T09:33:30.000Z
2021-11-25T09:33:30.000Z
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
pyretrommo/player.py
snwhd/pyretrommo
fabb523d9b4385ed8a1ff0b2ac787cc5d88a23b7
[ "blessing" ]
null
null
null
#!/usr/bin/env python3 from typing import ( Tuple, ) from .character import Character from .gen.player_class import PlayerClass from .gen.player_stats import STATS_BY_PLAYER_CLASS from .gen.equipment import GearType from .stats import Stats class Player(Character): def __init__( self, userna...
25.078947
76
0.645331
112
953
5.276786
0.303571
0.1489
0.076142
0.060914
0
0
0
0
0
0
0
0.001437
0.269675
953
37
77
25.756757
0.847701
0.022036
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0.2
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
ca77ed517dcb7e292e04556306984fb49fef89ce
8,361
py
Python
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2015-11-08T11:31:20.000Z
2015-11-08T11:31:20.000Z
m2wsgi/io/gevent.py
ged/m2wsgi
669ad356ee69ab1dffb28fb35dd7bde415999209
[ "MIT" ]
3
2018-02-25T02:16:32.000Z
2018-02-25T02:16:41.000Z
m2wsgi/io/gevent.py
rfk/m2wsgi
ae3d054ba8594dd286c82351325d88a0af0245aa
[ "MIT" ]
1
2021-11-29T00:01:00.000Z
2021-11-29T00:01:00.000Z
""" m2wsgi.io.gevent: gevent-based I/O module for m2wsgi ===================================================== This module provides subclasses of m2wsgi.WSGIHandler and related classes that are specifically tuned for running under gevent. You can import and use the classes directory from here, or you can select th...
32.917323
78
0.672527
1,093
8,361
4.945105
0.26441
0.011656
0.015541
0.023312
0.207956
0.20074
0.20074
0.171878
0.158187
0.142091
0
0.005972
0.238967
8,361
253
79
33.047431
0.84347
0.257266
0
0.240741
0
0
0.170185
0
0
0
0
0
0
1
0.104938
false
0
0.080247
0
0.382716
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca783de6ff83c65ac31c3c3f5577a1372db396ed
8,584
py
Python
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
examples/text_buffer.py
DT-was-an-ET/explorer-hat
9dd8624a094b9a7663fbcbb95be72fdb946eecc7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # for use with Python 3 # text_buffer # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at ...
37.484716
174
0.681034
1,279
8,584
4.241595
0.218921
0.04424
0.028387
0.040553
0.299908
0.21788
0.180277
0.114101
0.067834
0.052719
0
0.007333
0.189772
8,584
228
175
37.649123
0.772682
0.339585
0
0.139535
0
0
0.093145
0.008197
0
0
0
0
0
1
0.054264
false
0
0.046512
0.007752
0.124031
0.046512
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca783e77d01b6a65f34fba8804bdd660d6dfe9a6
886
py
Python
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
repos/build_pipeline/lambdas/extract_metrics/extract_metrics.py
roshansthomas/amazon-sagemaker-mlops-with-featurestore-and-datawrangler
0159df4e04fb6848c2e34b8597f7601630f9bdc1
[ "MIT-0" ]
null
null
null
""" This Lambda parses the output of ModelQualityStep to extract the value of a specific metric """ import json import boto3 sm_client = boto3.client("sagemaker") s3 = boto3.resource('s3') def lambda_handler(event, context): # model quality report URI model_quality_report_uri = event['model_quality_report_u...
26.058824
98
0.673815
119
886
4.789916
0.453782
0.084211
0.126316
0.147368
0.05614
0
0
0
0
0
0
0.02069
0.181716
886
33
99
26.848485
0.765517
0.132054
0
0
0
0
0.189474
0.069737
0
0
0
0
0
1
0.1
false
0
0.1
0
0.3
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7aaf0d27786d0d1b6110d5b7821183f0fa08f7
2,383
py
Python
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
3
2020-02-18T20:40:11.000Z
2020-03-16T15:05:13.000Z
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
main.py
Plouffi/Feh-Pass-Reviews
0e4722da7f752a1b82ef7a65f43f7a76389f22b3
[ "MIT" ]
null
null
null
from data_manager import DataManager, plot_fehpass_mention, plot_score_distribution from scraper import Scraper from datetime import date as dt from cloud import Cloud import sys import json def load_config(): with open("./ressources/config.json") as f: config = json.load(f) return config def save_last_import()...
25.351064
97
0.738984
332
2,383
5.057229
0.328313
0.035736
0.0405
0.032162
0.324598
0.280524
0.259678
0.259678
0.223943
0.126266
0
0.002946
0.145195
2,383
93
98
25.623656
0.821306
0.120436
0
0.196721
0
0
0.170708
0.046072
0
0
0
0
0
1
0.098361
false
0.04918
0.114754
0
0.229508
0.04918
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7bcebe8a789ca0d1b9184a805dc93a7fdf5be0
4,679
py
Python
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
19
2017-06-29T07:41:26.000Z
2021-11-03T18:48:48.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
175
2017-06-29T09:37:43.000Z
2021-07-09T12:55:28.000Z
simulation-ros/src/turtlebot2i/turtlebot2i_safety/src/two_robots.py
EricssonResearch/scott-eu
aad7fd2f767a3c5e7d89223a593fd979ad596db3
[ "Apache-2.0" ]
8
2017-10-31T08:53:12.000Z
2021-07-21T06:14:43.000Z
#!/usr/bin/env python """ Edited from navigation.py in turtlebot2i_navigation module """ import rospy import actionlib from nav_msgs.msg import Odometry from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal import geometry_msgs.msg from sensor_msgs.msg import LaserScan from tf.transformations import quatern...
36.554688
112
0.70421
632
4,679
5.023734
0.259494
0.069291
0.07937
0.069291
0.450709
0.360945
0.333228
0.171969
0.171969
0.115906
0
0.040936
0.195982
4,679
127
113
36.84252
0.80303
0.06775
0
0.190476
0
0
0.087598
0.025357
0
0
0
0
0
1
0.057143
false
0
0.114286
0.009524
0.180952
0.057143
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca7e72ac8eca8a96798ab1b879172ea0ca0060fa
7,333
py
Python
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
null
null
null
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
8
2021-06-14T18:10:53.000Z
2022-03-23T18:30:10.000Z
python-flask-server/openapi_server/models/operation_filter_kgraph_top_n_parameters.py
broadinstitute/genetics-kp-dev
902a153a33942ba5d224c129db0ae58562927085
[ "MIT" ]
1
2022-02-22T21:24:58.000Z
2022-02-22T21:24:58.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class OperationFilterKgraphTopNParameters(Model): """NOTE: This class is auto ...
38.798942
269
0.684167
909
7,333
5.290429
0.141914
0.028072
0.061759
0.077979
0.691204
0.585985
0.534415
0.514244
0.495737
0.33271
0
0.013821
0.250102
7,333
188
270
39.005319
0.860702
0.539343
0
0.217391
0
0
0.149154
0.012341
0
0
0
0
0
1
0.173913
false
0
0.072464
0
0.347826
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca810acaf114d27759397ca02efb21720c0a1ece
14,285
py
Python
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
1
2015-02-05T13:15:00.000Z
2015-02-05T13:15:00.000Z
bauble/model/propagation.py
Bauble/bauble.api
183c97fda076ea870e21e70ecf89a2a94a7f5722
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # propagation module # import datetime import os from random import random import re import sys import weakref import traceback import xml.sax.saxutils as saxutils import dateutil.parser as date_parser from sqlalchemy import * from sqlalchemy.orm import * from sqlalchemy.orm.session import o...
34.756691
94
0.566398
1,546
14,285
5.05304
0.158473
0.038402
0.016897
0.021505
0.171915
0.077829
0.065796
0.05658
0.045315
0.021505
0
0.002138
0.312566
14,285
410
95
34.841463
0.793381
0.100805
0
0.191638
0
0
0.114972
0.006383
0
0
0
0.007317
0
1
0.031359
false
0
0.066202
0.003484
0.334495
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca81d00c9b08ea72e49aff7d13fb4cf046744724
517
py
Python
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
imdbTask5.py
Anjalipatil18/IMDB_SCRAPER
2ec79b91198e2f458d1099ee8ad27acde71b09b6
[ "MIT" ]
null
null
null
from imdbTask1 import* from imdbTask4 import* def get_movie_list_details(api): movieListDetails=[] for i in api[:10]: link=i["movieLink"] movieUrl=Scrap_Movie_Detail(link) new=movieUrl.copy() #They copy() method returns a shallow copy of the dictionary. movieUrl.clear() #...
34.466667
91
0.717602
63
517
5.761905
0.619048
0.044077
0.066116
0.104683
0
0
0
0
0
0
0
0.009639
0.197292
517
14
92
36.928571
0.86506
0.270793
0
0
0
0
0.024064
0
0
0
0
0
0
1
0.083333
false
0
0.166667
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca890cc0c4b716f777412a40314e358dfa561905
1,365
py
Python
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2019-03-05T22:35:47.000Z
2019-03-05T22:35:55.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
2
2020-07-16T21:55:43.000Z
2021-05-08T12:14:05.000Z
problems/risk/solutions/risk.py
lucidsoftware/lucid-programming-competition-2018
be22bff0f0d1b008f5729c0b6e5e2adb08925c96
[ "Apache-2.0" ]
4
2019-03-08T01:42:00.000Z
2021-01-28T03:01:34.000Z
from collections import defaultdict from itertools import product from functools import lru_cache from sys import setrecursionlimit setrecursionlimit(10000) @lru_cache(maxsize=6) def p_outcomes(a_dice, d_dice): total = 0 results = defaultdict(int) for a_rolls in product(range(1,7), repeat=a_dice): ...
29.673913
84
0.612454
190
1,365
4.205263
0.289474
0.031289
0.06383
0.035044
0.12766
0.12766
0.12766
0
0
0
0
0.027551
0.282051
1,365
45
85
30.333333
0.787755
0
0
0.052632
0
0
0.005128
0
0
0
0
0
0
1
0.052632
false
0
0.105263
0
0.263158
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
ca8a90e5ceb797a2b9672b05c74b49ae1602ffc4
1,240
py
Python
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
solutions/2021/day_06.py
mokytis/advent-of-code
7bddbc87411388bb0da8284c3daa5252f9d5007d
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Puzzle Title: AoC 2021 Day 6: Lanternfish Puzzle Link: https://adventofcode.com/2021/day/6 Solution Author: Luke Spademan <info@lukespademan.com> Solution License: MIT """ import fileinput from collections import Counter import copy def parse_input(): for line in fileinput.in...
22.545455
79
0.642742
174
1,240
4.431034
0.442529
0.042802
0.058366
0.054475
0.132296
0.132296
0
0
0
0
0
0.034884
0.237097
1,240
54
80
22.962963
0.780127
0.219355
0
0
0
0
0.049009
0
0
0
0
0
0
1
0.178571
false
0
0.107143
0.071429
0.428571
0.071429
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8bb0a6b5e76ac3dc813001f4574315eedd8360
2,082
py
Python
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
Day 20: Particle Swarm/Day 20: Particle Swarm.py
djvanhelmond/AdventofCode2017
a41879e172b8f2db23ac6a5f71433ce6b484b909
[ "BSD-3-Clause" ]
null
null
null
#!/usr/local/bin/python3 import math class Particle(): def __init__(self, position, velocity, acceleration): self.position = position self.velocity = velocity self.acceleration = acceleration self.absA = self.__absoluteAccelleration() def __absoluteAccelleration(self): ...
34.131148
104
0.597502
251
2,082
4.85259
0.298805
0.128079
0.039409
0.039409
0.098522
0.064039
0.064039
0.064039
0.064039
0
0
0.005711
0.243036
2,082
60
105
34.7
0.767132
0.011047
0
0.043478
0
0
0.023324
0
0
0
0
0
0
1
0.173913
false
0
0.021739
0.021739
0.304348
0.043478
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8e74bdcdf56ae9a145fc5960607020ba877bc3
25,083
py
Python
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
2
2021-11-16T10:00:33.000Z
2021-12-13T02:57:40.000Z
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
null
null
null
QualityControl/QC_aggregate_FC.py
tsmonteiro/fmri_proc
ee740cfa3c3a7ef8e1ee1ebd3b286a66712e0ec1
[ "MIT" ]
1
2021-12-13T02:57:27.000Z
2021-12-13T02:57:27.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Fri Jan 17 09:39:23 2020 @author: u0101486 """ #!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Dec 5 12:26:49 2019 @author: u0101486 """ # Aggregate QC measures import os import sys import numpy as np import matplotlib.pyplot as plt ...
33.134742
175
0.521429
3,101
25,083
4.158659
0.164141
0.021169
0.025589
0.023883
0.486275
0.437035
0.369262
0.322581
0.277916
0.262019
0
0.070862
0.325998
25,083
757
176
33.134742
0.691944
0.0543
0
0.20603
0
0
0.112283
0.051799
0
0
0
0.001321
0
1
0.020101
false
0
0.080402
0
0.105528
0.030151
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
ca8f100cbcd38d31bcc26bca290e0a38cd1a6502
5,987
py
Python
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
4,025
2021-01-05T23:52:33.000Z
2022-03-31T11:17:44.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
318
2021-01-06T08:14:36.000Z
2022-03-15T07:23:39.000Z
dalle_pytorch/distributed_backends/deepspeed_backend.py
Gitsamshi/DALLE-pytorch
6cfc43158a4615865e97c839133290afcf289824
[ "MIT" ]
449
2021-01-06T17:30:17.000Z
2022-03-30T03:42:17.000Z
import json import os import torch from .distributed_backend import DistributedBackend class DeepSpeedBackend(DistributedBackend): """Distributed backend using the DeepSpeed engine.""" BACKEND_MODULE_NAME = 'deepspeed' BACKEND_NAME = 'DeepSpeed' def wrap_arg_parser(self, parser): if not se...
34.80814
78
0.601637
629
5,987
5.524642
0.27186
0.050647
0.057554
0.046619
0.24777
0.168058
0.127482
0.127482
0.084029
0.084029
0
0.000248
0.325372
5,987
171
79
35.011696
0.860114
0.152664
0
0.175
0
0
0.162371
0.005886
0
0
0
0
0.008333
1
0.1
false
0.008333
0.033333
0
0.233333
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