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
46f529ee223628b6a5b01d5ac087af9e7d7bb5b3
7,863
py
Python
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
baseline_models/slowvae/train.py
slachapelle/anon_disentanglement_via_mechanism_sparsity
677f7e160f3532e1357a3c7f35f9f8f8529b389a
[ "Apache-2.0" ]
null
null
null
import argparse import shutil import os, json, sys, traceback, time import pathlib try: from comet_ml import Experiment COMET_AVAIL = True except: COMET_AVAIL = False import numpy as np import torch import datetime sys.path.insert(0, str(pathlib.Path(__file__).parent)) from scripts.solver import Solver s...
46.526627
127
0.6336
1,031
7,863
4.652764
0.267701
0.060038
0.113404
0.011674
0.212216
0.160934
0.115072
0.104232
0.091307
0.062956
0
0.01154
0.239603
7,863
168
128
46.803571
0.790768
0.038789
0
0.036765
0
0
0.215444
0.00412
0
0
0
0
0
1
0.029412
false
0
0.088235
0.022059
0.139706
0.036765
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
46f57addab66e45928b367affb186d84c36a11cb
854
py
Python
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
Lottery/loterry.py
camicasii/Casino
0534092c1b2746d5561761b65bad1a97982a54f6
[ "MIT" ]
null
null
null
from TicketGenerator import TicketGenerator as Tickes import random class Lottery: def __init__(self,seed=18,size=6,maxTickes=10,all=False): self.maxTickes=maxTickes self.tickes =Tickes(seed=seed,size=size,maxTickes=maxTickes,all=all).tickes self.seller=[] self.sell() ...
23.081081
89
0.571429
95
854
5
0.463158
0.063158
0
0
0
0
0
0
0
0
0
0.012027
0.318501
854
36
90
23.722222
0.804124
0
0
0
0
0
0.033958
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0
0.307692
0.115385
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
46f79c6995e3596cb2225c315e33d1b7fa73ac8b
291
py
Python
FacialRecognition/Media Manipulation/open_camera.py
markgacoka/micro-projects
e8115c8270a115282e7dfda6e24620b3333f8c6b
[ "MIT" ]
1
2021-03-19T10:42:07.000Z
2021-03-19T10:42:07.000Z
Media Manipulation/open_camera.py
markgacoka/FacialRecognition
af3e4e37f40f7995f2e276c35283bbe3b73a2a27
[ "MIT" ]
null
null
null
Media Manipulation/open_camera.py
markgacoka/FacialRecognition
af3e4e37f40f7995f2e276c35283bbe3b73a2a27
[ "MIT" ]
null
null
null
import numpy as np import cv2 video = cv2.VideoCapture(0) while(True): ret, frame = video.read() resized_video = cv2.resize(frame, (1000, 700)) cv2.imshow('Video Capture', resized_video) if cv2.waitKey(10) == ord('q'): break video.release() cv2.destroyAllWindows()
20.785714
50
0.666667
40
291
4.8
0.675
0.083333
0
0
0
0
0
0
0
0
0
0.067797
0.189003
291
14
51
20.785714
0.745763
0
0
0
0
0
0.047945
0
0
0
0
0
0
1
0
false
0
0.181818
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
46fbd511834efaa0b005f2300675fbcff5d8801c
4,193
py
Python
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
robot.py
3299/2018
b886b1409d3240ad1e2dad7ecee963e401c7bfec
[ "MIT" ]
null
null
null
""" Main logic code """ import wpilib from inits import Component import helpers from components.chassis import Chassis from autonomous import Autonomous from components.lights import Lights from components.metabox import MetaBox from components.winch import Winch from components.pdb import Power from networktables...
35.235294
126
0.589554
446
4,193
5.524664
0.320628
0.042614
0.059659
0.046266
0.173701
0.152597
0.141234
0.141234
0.111201
0.111201
0
0.013596
0.298354
4,193
118
127
35.533898
0.823929
0.147865
0
0.140845
0
0
0.036941
0
0
0
0
0.008475
0
1
0.084507
false
0
0.140845
0
0.239437
0.014085
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
46fc0e73c34a3b1f86eeecfd31ad3ce03445be4e
6,496
py
Python
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
2
2022-02-28T15:07:53.000Z
2022-03-01T06:57:20.000Z
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
null
null
null
iotFlaskPro/apis/aep_device_management.py
ChrisLeff/IOT-BUAA_2021
e8220350a156daba93e6baf91c793a81629aa956
[ "MIT" ]
null
null
null
#!/usr/bin/python # encoding=utf-8 import sys if sys.version_info[0] == 2: # Python2 import core.AepSdkRequestSend as AepSdkRequestSend else: # Python3 from apis.core import AepSdkRequestSend #参数MasterKey: 类型String, 参数不可以为空 # 描述:MasterKey在该设备所属产品的概况中可以查看 #参数productId: 类型long, 参数不可以为空 # 描述: #参数sear...
31.533981
120
0.704895
671
6,496
6.789866
0.177347
0.04741
0.052239
0.055531
0.664618
0.658253
0.658253
0.641352
0.570018
0.523266
0
0.040867
0.190117
6,496
205
121
31.687805
0.825128
0.227371
0
0.666667
0
0
0.133428
0.077311
0
0
0
0
0
1
0.087302
false
0
0.02381
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
46fd902b540497f93d018433534679e3a97042d2
8,933
py
Python
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
examples/Random/Random.py
aniknarayan/ioticiser_new
9886f1ba5c249ebbcebfb0e1f4434fecdf8c0680
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2017 Iotic Labs Ltd. 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 # # https://github.com/Iotic-Labs/py-IoticBulkData/blob/master/LICENSE # # Unless...
38.175214
113
0.629912
1,102
8,933
4.669691
0.188748
0.027983
0.034979
0.044306
0.403031
0.330159
0.255733
0.2089
0.163039
0.127283
0
0.012009
0.282212
8,933
233
114
38.339056
0.790549
0.084182
0
0.177143
0
0.005714
0.097672
0.002819
0
0
0
0
0
1
0.085714
false
0
0.051429
0
0.148571
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
46fda291ce75700d6c941a1210e9051ba1026be6
400
py
Python
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
183
2020-06-03T22:43:14.000Z
2022-03-17T22:39:07.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
31
2020-06-03T22:55:18.000Z
2022-03-27T20:06:17.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/api/myrequests.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
43
2020-06-03T22:45:03.000Z
2021-12-29T19:43:54.000Z
import requests import json url = 'http://localhost:5000/invocations' data = { 'Pclass':[3,3,3], 'Sex': ['male', 'female', 'male'], 'Age':[4, 22, 28] } j_data = json.dumps(data) headers = {'Content-Type': 'application/json'} print("Sending request for model...") print(f"Data: {j_data}") r...
23.529412
52
0.6175
56
400
4.357143
0.607143
0.061475
0
0
0
0
0
0
0
0
0
0.036254
0.1725
400
17
53
23.529412
0.700906
0
0
0
0
0
0.366584
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
0.214286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200010fc68a811414b58910a066945d5e6e9b2e8
2,027
py
Python
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
onlinejudge/_implementation/command/split_input.py
btk15049/online-judge-tools
22505e98359c50df06e7cc1d53a7d253cb096b14
[ "MIT" ]
null
null
null
# Python Version: 3.x import subprocess import sys import time from typing import * from typing.io import * import onlinejudge._implementation.format_utils as format_utils import onlinejudge._implementation.logging as log if TYPE_CHECKING: import argparse def non_block_read(fh: IO[Any]) -> str: # workaround...
31.671875
126
0.556487
248
2,027
4.439516
0.435484
0.027248
0.032698
0.030881
0.072661
0
0
0
0
0
0
0.003726
0.337938
2,027
63
127
32.174603
0.816692
0.048347
0
0.037736
0
0
0.032761
0
0
0
0
0
0
1
0.037736
false
0.018868
0.188679
0
0.264151
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200358a6a93b6e371ca0faec84207e445afd7915
24,656
py
Python
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
18
2019-01-18T07:00:26.000Z
2021-09-22T00:12:40.000Z
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
43
2019-04-28T01:31:17.000Z
2022-03-08T02:17:55.000Z
linkwarner/linkwarner.py
jack1142/JackCogs
ad3b5c43e4597f92816db8f0974f8f61d511abc3
[ "Apache-2.0" ]
20
2020-01-21T10:49:37.000Z
2022-03-21T02:16:45.000Z
# Copyright 2018-2021 Jakub Kuczys (https://github.com/jack1142) # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
39.4496
88
0.624108
2,959
24,656
5.061507
0.124704
0.036656
0.031248
0.025639
0.576417
0.533618
0.482006
0.407959
0.379782
0.327435
0
0.003042
0.293316
24,656
624
89
39.512821
0.85652
0.046317
0
0.356627
0
0
0.154506
0.003873
0
0
0
0
0.016867
1
0.00241
false
0.009639
0.026506
0
0.06747
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20037c2305209c3714382f992c3dbf0aa31b9950
384
py
Python
app/commands/base.py
AndersonSMed/DiscordBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
2
2021-02-05T18:43:10.000Z
2021-02-09T01:23:27.000Z
app/commands/base.py
AndersonSMed/DiscordBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
5
2021-02-05T17:15:21.000Z
2021-06-23T00:39:51.000Z
app/commands/base.py
AndersonSMed/EducaBot
f42bae852b72d486d347416c7594d1631158631a
[ "MIT" ]
null
null
null
import abc class Base(abc.ABC): command_name = None def __init__(self, client, message, payload=None): self.client = client self.message = message self.payload = payload if not self.command_name: raise ValueError('Should have a command name!') @abc.abstractme...
21.333333
59
0.638021
45
384
5.311111
0.533333
0.138075
0
0
0
0
0
0
0
0
0
0
0.283854
384
17
60
22.588235
0.869091
0
0
0
0
0
0.070313
0
0
0
0
0
0
1
0.083333
false
0
0.083333
0
0.333333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2003a339006e0e413215fedb71b8a6d01e840444
2,375
py
Python
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
null
null
null
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
1
2022-02-10T04:38:11.000Z
2022-02-10T04:38:11.000Z
src/spaceone/inventory/connector/aws_sqs_connector/connector.py
spaceone-dev/plugin-aws-cloud-service-inven-collector
aa252a41940e0941d4b0f7be7fc05d152da654dd
[ "Apache-2.0" ]
1
2021-11-15T05:19:44.000Z
2021-11-15T05:19:44.000Z
import time import logging from typing import List import json from spaceone.core.utils import * from spaceone.inventory.connector.aws_sqs_connector.schema.data import QueData, RedrivePolicy from spaceone.inventory.connector.aws_sqs_connector.schema.resource import SQSResponse, QueResource from spaceone.inventory.conn...
35.984848
110
0.634526
252
2,375
5.746032
0.349206
0.048343
0.058011
0.062155
0.105663
0.105663
0.105663
0.105663
0
0
0
0.002342
0.280842
2,375
65
111
36.538462
0.845433
0.014316
0
0
0
0
0.088965
0
0
0
0
0
0
1
0.04
false
0
0.18
0
0.32
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20059b820157bb2d0ee1f766dc27bdd85fb8b399
936
py
Python
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
Code in Place/Assignment2/nimm.py
LuisAdolfoAlves/Stanford
8358d315a4c475359742a70eb862a3ac71abd042
[ "MIT" ]
null
null
null
""" File: nimm.py ------------------------- Add your comments here. """ def main(): stones = 20 while stones > -1: for player in range(1, 3): if stones == 0: print(f'Player {player} wins!') stones -= 1 break print(f'There are {sto...
24.631579
91
0.470085
113
936
3.823009
0.477876
0.064815
0.12963
0.087963
0.194444
0.194444
0.106481
0
0
0
0
0.033569
0.395299
936
37
92
25.297297
0.729682
0.162393
0
0.181818
0
0
0.211613
0
0
0
0
0
0
1
0.045455
false
0
0
0
0.045455
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200887615ac67e1a7a3968d230b1ee9b68acdafe
1,371
py
Python
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
ssidstat/ssidstatd/monitor.py
putrasattvika/ssidstat
90bc4a52702ec314a0385f669d68446fa46fe153
[ "Apache-2.0" ]
null
null
null
import time import daemon from ssidstat.common import db from ssidstat.common import sysutils class MonitorDaemon(daemon.Daemon): def __init__(self, dbfile, pidfile, interval=10, stdin='/dev/null', stdout='/dev/null', stderr='/dev/null'): daemon.Daemon.__init__(self, pidfile, stdin=stdin, stdout=stdout, stderr=st...
26.882353
109
0.726477
188
1,371
5.015957
0.271277
0.038176
0.106045
0.054083
0.129374
0.074231
0.074231
0
0
0
0
0.003445
0.153173
1,371
50
110
27.42
0.808786
0
0
0
0
0
0.041575
0
0
0
0
0
0
1
0.081081
false
0
0.108108
0
0.216216
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200c3ab143b719e01a8471eeab8c7b2a5fb55afb
1,322
py
Python
operating_system/first_in_first_out/Python/FCFS.py
CarbonDDR/al-go-rithms
8e65affbe812931b7dde0e2933eb06c0f44b4130
[ "CC0-1.0" ]
1,253
2017-06-06T07:19:25.000Z
2022-03-30T17:07:58.000Z
operating_system/first_in_first_out/Python/FCFS.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
554
2017-09-29T18:56:01.000Z
2022-02-21T15:48:13.000Z
operating_system/first_in_first_out/Python/FCFS.py
rishabh99-rc/al-go-rithms
4df20d7ef7598fda4bc89101f9a99aac94cdd794
[ "CC0-1.0" ]
2,226
2017-09-29T19:59:59.000Z
2022-03-25T08:59:55.000Z
''' Author - Ronak Vadhaiya FCFS ''' import math def FCFS(n_process, data): ttr, ttw = 0, 0 print("="*20 + "FCFS" + "="*20) tr = data[0][1] wt = 0 ttr += tr prev = data[0][0] + data[0][1] print("P1", "Start Time: ", data[0][0], "End Time: ", data[0][0]+data[0][1], "TR : ", tr, "...
26.44
63
0.516641
187
1,322
3.486631
0.256684
0.08589
0.046012
0.06135
0.214724
0.03681
0
0
0
0
0
0.031798
0.310136
1,322
49
64
26.979592
0.683114
0.037821
0
0.055556
0
0
0.120348
0
0.027778
0
0
0
0
1
0.027778
false
0
0.027778
0
0.055556
0.138889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200c3d5ac5bbf2a6efa0995f9b7a1d5bf57885ff
2,418
py
Python
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
ps1/src/linearclass/gda.py
Ziggareto/cs229
10b03b68b24d252dad3e3437561976d9509ebdd0
[ "MIT" ]
null
null
null
import numpy as np import linearclass.util def main(train_path, valid_path, save_path): """Problem: Gaussian discriminant analysis (GDA) Args: train_path: Path to CSV file containing dataset for training. valid_path: Path to CSV file containing dataset for validation. save_path: Path ...
30.225
75
0.597601
317
2,418
4.375394
0.391167
0.034607
0.040375
0.018745
0.125451
0.125451
0.053353
0.053353
0
0
0
0.012522
0.306452
2,418
79
76
30.607595
0.81455
0.551696
0
0
0
0
0.101734
0
0
0
0
0
0
1
0.190476
false
0
0.095238
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
200f1d4b82c58a0465fa2637a27c721e431a980f
2,532
py
Python
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/process_engine/action/v1/flow/property_exists/plugin.py
DawidekZagajnik/tracardi
979015b7b14cb87fb639efb1eee6537932319b61
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from tracardi.process_engine.action.v1.flow.property_exists.model.configuration import Configuration from tracardi.service.plugin.domain.register import Plugin, Spec, MetaData, Documentation, PortDoc, Form, FormGroup, \ FormField, FormComponent from tracardi.service.plugin.domain.result import Result from tracardi....
35.661972
119
0.525276
226
2,532
5.827434
0.446903
0.036446
0.04328
0.056948
0.138193
0.091116
0.091116
0.091116
0.091116
0.091116
0
0.003157
0.374408
2,532
70
120
36.171429
0.828283
0
0
0.04918
0
0
0.188784
0.008689
0
0
0
0
0
1
0.04918
false
0
0.065574
0.032787
0.196721
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
200fe5bb13aa8a362c4acb4df1a5ad2b2c8c36a2
8,178
py
Python
experiments/s3dis/train.py
corochann/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
37
2018-06-01T21:10:58.000Z
2021-11-14T15:42:33.000Z
experiments/s3dis/train.py
KosukeArase/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
3
2018-07-20T10:16:07.000Z
2019-10-01T01:36:52.000Z
experiments/s3dis/train.py
KosukeArase/chainer-pointnet
4b0350122c6a704ebea9bf206896a6f18e1ab4d7
[ "MIT" ]
11
2018-08-01T07:05:41.000Z
2022-03-23T06:07:00.000Z
#!/usr/bin/env python from __future__ import print_function import argparse from distutils.util import strtobool import os import chainer from chainer import serializers from chainer import iterators from chainer import optimizers from chainer import training from chainer.dataset import to_device, concat_examples fro...
39.892683
94
0.663732
1,004
8,178
5.210159
0.22012
0.018161
0.048748
0.016249
0.214491
0.201491
0.144523
0.116613
0.093672
0.093672
0
0.015576
0.222793
8,178
204
95
40.088235
0.807426
0.066642
0
0.08642
0
0
0.118319
0.003152
0
0
0
0
0
1
0.012346
false
0.006173
0.141975
0
0.160494
0.067901
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20105ad6c1b6144c00a1af858c386181e3dcb971
4,617
py
Python
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
111
2015-02-05T15:24:15.000Z
2022-03-31T03:31:22.000Z
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
355
2015-01-01T16:18:46.000Z
2022-03-18T15:41:10.000Z
tests/image/test_init.py
PyExplorer/shub
dc38191e6593f3c012cb89ed1551f8b0dd2981d8
[ "BSD-3-Clause" ]
79
2015-02-23T17:07:32.000Z
2022-01-03T09:15:39.000Z
import os import pytest from click.testing import CliRunner from shub.exceptions import BadConfigException from shub.image.init import cli from shub.image.init import _format_system_deps from shub.image.init import _format_system_env from shub.image.init import _format_requirements from shub.image.init import _wrap ...
35.515385
100
0.675114
631
4,617
4.757528
0.234548
0.063291
0.026649
0.045303
0.551299
0.474017
0.383078
0.274151
0.274151
0.208195
0
0.001621
0.198397
4,617
129
101
35.790698
0.809511
0.037903
0
0.262626
0
0.010101
0.264726
0.030467
0
0
0
0
0.272727
1
0.10101
false
0
0.10101
0
0.212121
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2014bfd95f78901caeb13c9daf7444041662fd7c
6,195
py
Python
ufo2otf/compilers.py
debian-janitor/ufo2otf-debian
1203d95f454d918ab74ffef0f7f00addbd410ded
[ "BSD-3-Clause" ]
21
2015-05-04T14:15:01.000Z
2021-11-15T03:17:58.000Z
ufo2otf/compilers.py
debian-janitor/ufo2otf-debian
1203d95f454d918ab74ffef0f7f00addbd410ded
[ "BSD-3-Clause" ]
4
2018-07-31T10:07:29.000Z
2020-09-10T11:13:45.000Z
ufo2otf/compilers.py
fonts/ufo2otf
9025ba292c2a17e7dc8010c4fed79ab1a036403a
[ "BSD-3-Clause" ]
3
2016-01-26T04:01:13.000Z
2017-12-08T13:16:37.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from os import mkdir from os.path import splitext, dirname, sep, join, exists, basename from subprocess import Popen from diagnostics import diagnostics, known_compilers, FontError import codecs import re diagnostics = diagnostics() class Compiler: def __init__(self,...
36.875
96
0.504762
656
6,195
4.6875
0.355183
0.039024
0.017886
0.023415
0.17561
0.138537
0.138537
0.101463
0.078699
0.078699
0
0.004516
0.392413
6,195
167
97
37.095808
0.812434
0.201453
0
0.294118
0
0
0.124464
0.005998
0
0
0
0
0
1
0.029412
false
0
0.088235
0
0.127451
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2014e723afe7cd6d380a497e7707c33b3a2406d2
1,999
py
Python
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
model_converter.py
dylancrockett/classical-music-generator-ai
8f8416c022cecd238be80473acbf497d052516c5
[ "MIT" ]
null
null
null
from midi_converter import char_to_note, note_to_char import random def load_data(filename): data = [] # load the file with open(filename, "r") as f: file = f.readlines() for line in file: line = line.replace("\n", "") line = line.replace(",", "") data...
18.682243
66
0.511756
266
1,999
3.744361
0.281955
0.042169
0.03012
0.055221
0.186747
0.136546
0.120482
0.082329
0.082329
0.056225
0
0.02282
0.386193
1,999
106
67
18.858491
0.788916
0.068534
0
0.352941
0
0
0.003229
0
0
0
0
0
0
1
0.102941
false
0
0.029412
0
0.25
0.014706
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2015cd2bc695dff119d87cd94a61638c234d79af
2,978
py
Python
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
src/baseline_main.py
NaiboWang/HFL-CS6203-NaiboShiqi
4bab35a20f1ec1229b0011c952d93c341579c402
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Python version: 3.8 """ This script is used to run the baseline experiments by arguments from commandline. Please see readme.md to see the supported arguments. """ import pickle import time from tqdm import tqdm import matplotlib.pyplot as plt from utils import * from o...
36.765432
178
0.659167
389
2,978
4.81491
0.344473
0.052856
0.032034
0.014949
0.124933
0.067272
0.033102
0
0
0
0
0.009374
0.211887
2,978
80
179
37.225
0.788666
0.10779
0
0.036364
0
0
0.12571
0.021961
0
0
0
0
0
1
0
false
0
0.145455
0
0.145455
0.145455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
201664b688293c2f210424f82b9dea760c6421c4
2,160
py
Python
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
openmdao/test_suite/groups/parametric_group.py
ryanfarr01/blue
a9aac98c09cce0f7cadf26cf592e3d978bf4e3ff
[ "Apache-2.0" ]
null
null
null
"""Define the test group classes.""" from __future__ import division, print_function from openmdao.core.group import Group class ParametericTestGroup(Group): """ Test Group expected by `ParametricInstance`. Groups inheriting from this should extend `default_params` to include valid parametric options for...
40.754717
99
0.598611
223
2,160
5.650224
0.430493
0.025397
0.045238
0.031746
0.119048
0.042857
0
0
0
0
0
0
0.310185
2,160
52
100
41.538462
0.845638
0.3375
0
0.074074
0
0
0.231959
0
0
0
0
0
0
1
0.037037
false
0
0.074074
0
0.148148
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2016f524e2a1b9db4f8a8bef592b86cb754e2948
2,577
py
Python
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
CSE4309/assignment 6/knn_classify.py
theoneineed/MLandVision
b9bbef887ed63829e958daee660dd7a900e55f8f
[ "MIT" ]
null
null
null
#Nabin Chapagain #1001551151 #knn_classify(<training_file>, <test_file>, <k>) # Importing all needed libraries import numpy as np import math import sys import random from scipy import stats from scipy.spatial import distance import statistics as s from statistics import mean, median, mode, stdev fname = sys.argv[1]...
25.019417
112
0.683741
419
2,577
3.947494
0.279236
0.053204
0.048368
0.047158
0.169891
0.112455
0.112455
0.112455
0.099154
0.066505
0
0.023614
0.1948
2,577
102
113
25.264706
0.773494
0.168413
0
0.071429
0
0
0.03681
0
0
0
0
0
0
1
0
false
0
0.142857
0
0.142857
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
201aafc09a27272df9e65b3abf61a1c4c43849ac
3,218
py
Python
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
11
2018-12-16T10:59:19.000Z
2019-04-13T09:35:25.000Z
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen-core
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
6
2019-07-08T09:21:50.000Z
2019-11-08T08:21:54.000Z
aileen/box/management/commands/monitor_tmux.py
aileenproject/aileen-core
ea3cee33658e8f0a32edc806b4aad22a75227f26
[ "MIT" ]
3
2019-01-17T23:18:27.000Z
2019-04-13T09:55:05.000Z
import logging import os import time from datetime import datetime import pytz from django.conf import settings from django.core.management.base import BaseCommand import libtmux from box.management.commands.run_box import start_sensor_in_tmux from box.models import BoxSettings from box.utils.dir_handling import buil...
33.175258
115
0.686451
416
3,218
5.074519
0.387019
0.046897
0.024159
0.016106
0.126954
0.072951
0.034107
0
0
0
0
0.002023
0.232132
3,218
96
116
33.520833
0.852287
0.058421
0
0.1
0
0
0.130769
0.008425
0
0
0
0
0
1
0.042857
false
0
0.185714
0
0.242857
0.014286
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
201ab30fb25e805b4259dacde1a4af4992404af1
8,244
py
Python
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
39
2016-08-23T19:12:29.000Z
2022-02-11T11:36:33.000Z
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
24
2018-04-26T12:05:00.000Z
2022-02-27T12:36:51.000Z
pySPM/nanoscan.py
BBarbara-fr/pySPM
6dfd59b0e873173c455b1085e091495cf775f852
[ "Apache-2.0" ]
40
2018-01-23T07:11:14.000Z
2022-03-11T12:41:49.000Z
# -- coding: utf-8 -- # Copyright 2018 Olivier Scholder <o.scholder@gmail.com> import os import base64 import xml.etree.ElementTree as ET import struct import numpy as np import pySPM.SPM from pySPM.SPM import SPM_image, funit from .utils.misc import aliased, alias, deprecated @deprecated("getCurve") def get_curve(f...
49.071429
198
0.563925
1,058
8,244
4.305293
0.189036
0.065203
0.079912
0.065862
0.402854
0.380461
0.333041
0.263886
0.238639
0.227223
0
0.008031
0.259947
8,244
167
199
49.365269
0.737584
0.032872
0
0.097222
0
0.076389
0.339639
0.229663
0
0
0
0
0
1
0.055556
false
0
0.069444
0
0.166667
0.034722
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
201c3ff46ed39f9d31b9bd6af4988cd2d18f6c06
1,342
py
Python
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
2
2021-05-29T06:57:24.000Z
2021-06-15T09:13:38.000Z
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
setup/util/logging.py
JackInTaiwan/ViDB
d658fd4f6a1ad2d7d36bb270fde2a373d3cc965d
[ "MIT" ]
null
null
null
import os import logging import logging.config def logging_config(log_dir=None, log_file_path=None): config = { "version": 1, "disable_existing_loggers": False, "formatters": { "standard": { "format": "[%(asctime)s][%(name)s][%(funcName)s][%(levelname)s] %(mess...
26.313725
92
0.469449
123
1,342
4.95935
0.390244
0.080328
0.12623
0.081967
0.257377
0.257377
0
0
0
0
0
0.001182
0.369598
1,342
50
93
26.84
0.719858
0
0
0.119048
0
0.02381
0.269948
0.072334
0
0
0
0
0
1
0.02381
false
0
0.071429
0
0.095238
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2020ae402acc11537dc961ac7e378c574b23fb5e
6,794
py
Python
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
7
2019-04-05T10:33:28.000Z
2021-06-07T17:14:55.000Z
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
null
null
null
chess_net_v2.py
michaelwolz/ChessML
72d82804cac0554440ef39caf0f25eb399f4a34f
[ "MIT" ]
2
2019-03-29T18:57:48.000Z
2020-09-13T10:11:26.000Z
import torch import torch.optim as optim import torch.nn as nn import torchvision import time import progressbar import os from torchvision import transforms, models # Implementation based on resnet18 # Accuracy of 99% after 12 Epochs of training with 31.200 training images and 7.800 validation images # Where to sto...
34.140704
118
0.611422
861
6,794
4.727062
0.315912
0.013759
0.010811
0.012776
0.196806
0.126781
0.109828
0.10172
0.060934
0.060934
0
0.023986
0.263615
6,794
198
119
34.313131
0.789526
0.182661
0
0.120301
0
0.007519
0.140993
0.032621
0
0
0
0
0
1
0.030075
false
0
0.06015
0
0.097744
0.120301
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2020c4305fe293aa2a86925dccc2971f9a3880bb
961
py
Python
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
11
2019-08-05T11:49:11.000Z
2022-01-28T15:36:12.000Z
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
10
2019-07-11T11:26:28.000Z
2022-02-27T13:47:26.000Z
Patent2Net/app/events/to_be_found_change.py
Patent2net/P2N-v3
19f5e7ebd993183bc3c1c6a9676302a71dc9277b
[ "CECILL-B" ]
4
2019-04-02T07:11:04.000Z
2022-02-21T12:26:14.000Z
class ToBeFoundChange: """Event used when the number of resources available for a request has been retrieved and recorded""" NAME = "TO_BE_FOUND_CHANGE" def __init__(self, directory, need_spliter, amount): self.directory = directory self.need_spliter = need_spliter self.amount = a...
32.033333
105
0.608741
103
961
5.524272
0.38835
0.173989
0.105448
0.073814
0
0
0
0
0
0
0
0
0.30281
961
30
106
32.033333
0.849254
0.098855
0
0
0
0
0.12907
0
0
0
0
0
0
1
0.136364
false
0
0
0.045455
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
202123a817addffe802bc7038a57cc62474ba2d3
1,187
py
Python
code/ch06-data-structs/friend_map.py
tamnguyenchi93/python-memory-management-course
e858b1a5e4f423fae5b431a7727a9eb953e8b6a0
[ "MIT" ]
30
2020-08-24T14:01:26.000Z
2022-03-26T18:55:55.000Z
code/ch06-data-structs/friend_map.py
danielhao5/python-memory-management-course
89015877d858488e018e07fad52eec7bf3acd394
[ "MIT" ]
null
null
null
code/ch06-data-structs/friend_map.py
danielhao5/python-memory-management-course
89015877d858488e018e07fad52eec7bf3acd394
[ "MIT" ]
17
2020-08-21T01:52:21.000Z
2021-11-28T13:11:11.000Z
import weakref from collections import defaultdict from typing import List, Dict from person import Person __map: Dict[int, List] = defaultdict(list) def add_friend(person: Person, friend: Person): if not person or not friend: return if person.id == friend.id: return if is_friend(person...
22.396226
61
0.628475
165
1,187
4.381818
0.242424
0.08852
0.060858
0.06639
0.340249
0.224066
0.077455
0
0
0
0
0
0.272957
1,187
52
62
22.826923
0.837775
0
0
0.361111
0
0
0
0
0
0
0
0
0
1
0.111111
false
0
0.111111
0
0.444444
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2021a506098259e1c1e707ac8752765f8b357bc4
3,450
py
Python
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
4
2020-05-06T06:18:15.000Z
2021-11-24T09:27:03.000Z
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
null
null
null
buildScripts/Android_build.py
Zhanghuahua/50KEngine
843bb1fbeebaa42029793a28336bac4870554984
[ "Apache-2.0" ]
null
null
null
import os import sys import shutil ANDROID_NDK = os.getenv("NDK_HOME") if(ANDROID_NDK == None): print("no ndk found") else: print("foud ndk in " + ANDROID_NDK) BUILD_TYPE="Release" BUILD_SHARED_LIBS="OFF" BUILD_HIDDEN_SYMBOL="ON" BUILD_RTTI="ON" BUILD_EXCEPTIONS="ON" ANDROID_STL_32BIT="c++_shared" ANDROID_ST...
31.081081
101
0.713333
426
3,450
5.382629
0.223005
0.057567
0.041867
0.038378
0.268208
0.136066
0.099433
0.063672
0.032272
0
0
0.010327
0.157971
3,450
110
102
31.363636
0.779002
0.041159
0
0.050633
0
0
0.212534
0.060248
0
0
0
0
0
1
0
false
0
0.037975
0
0.037975
0.037975
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20250ba40775118058acfaa6b23f44f28eae0339
5,143
py
Python
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
run_project.py
bleotiu/Mosaics
3ef0fcd9ea37de03c15bc8eac4dd02e80f0cb4f4
[ "MIT" ]
null
null
null
""" PROIECT MOZAIC """ # Parametrii algoritmului sunt definiti in clasa Parameters. from parameters import * from build_mosaic import * import timeit import numpy as np import os import cv2 as cv dir_path = './..data/imaginiTest/' filenames = [('./../data/imaginiTest/ferrari.jpeg', 'ferrari'), ...
32.967949
102
0.637177
611
5,143
5.134206
0.220949
0.063118
0.02869
0.045904
0.577941
0.566465
0.551164
0.551164
0.551164
0.551164
0
0.009396
0.234299
5,143
155
103
33.180645
0.787202
0.087498
0
0.637931
0
0
0.181818
0.114634
0
0
0
0
0
1
0
false
0
0.051724
0
0.051724
0.008621
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20255a880a1144e9646a6cba9442f38fbfcf88ba
28,776
py
Python
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
tests/test_customer.py
psantori/contacthub-sdk-python
03b6dba72ac0a5c34775b409f28b501894cae080
[ "Apache-2.0" ]
null
null
null
import json import unittest from datetime import datetime import mock from contacthub.lib.paginated_list import PaginatedList from contacthub.lib.read_only_list import ReadOnlyList from contacthub.models.customer import Customer from contacthub.models.education import Education from contacthub.models.properties impor...
53.387755
120
0.654678
3,334
28,776
5.485303
0.077684
0.065398
0.062008
0.03248
0.631616
0.595363
0.575678
0.556102
0.532098
0.502187
0
0.011136
0.213581
28,776
539
120
53.387755
0.796995
0.037427
0
0.334076
0
0
0.114294
0.027707
0
0
0
0
0.309577
1
0.144766
false
0.004454
0.037862
0
0.184855
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2027748f2846da6b6c70c5892c0dc16fc59d2b8e
461
py
Python
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
yi/core/dtypes.py
soloist-v/yi
d7c04fe6266441d2629ba35f69c9fc659a52b370
[ "MIT" ]
null
null
null
import numpy as np import ctypes as ct char = ct.c_char ubyte = ct.c_ubyte bool = np.bool float = np.float float16 = np.float16 float32 = np.float32 float64 = np.float64 uint8 = np.uint8 byte = np.byte uint = np.uint uint16 = np.uint16 uint32 = np.uint32 uint64 = np.uint64 int = np.int int16 = np.int16 short = np.shor...
17.074074
26
0.73102
82
461
4.04878
0.365854
0.045181
0
0
0
0
0
0
0
0
0
0.099217
0.169197
461
26
27
17.730769
0.767624
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.08
0
0.08
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2029145c9d4ea9c9155795f998247b31586f13e7
3,769
py
Python
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
5
2019-01-19T23:53:35.000Z
2022-01-29T14:04:31.000Z
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
6
2020-01-28T23:08:49.000Z
2022-02-10T00:27:19.000Z
reinforcement_learning/rl_tic_tac_toe_coach_customEnv/tic_tac_toe_game.py
jpmarques19/tensorflwo-test
0ff8b06e0415075c7269820d080284a42595bb2e
[ "Apache-2.0" ]
8
2020-12-14T15:49:24.000Z
2022-03-23T18:38:36.000Z
from ipywidgets import widgets, HBox, VBox, Layout from IPython.display import display from functools import partial import numpy as np class TicTacToeGame(object): ''' Tic-tac-toe game within a Jupyter Notebook Opponent is Xs and starts the game. This is assumed to be a predictor object from a ...
30.893443
98
0.477846
468
3,769
3.777778
0.260684
0.073529
0.049774
0.054299
0.288462
0.229638
0.20362
0.159502
0.130091
0.109729
0
0.030396
0.397718
3,769
121
99
31.14876
0.748458
0.061024
0
0.295455
0
0
0.024751
0
0
0
0
0
0
1
0.079545
false
0
0.045455
0
0.215909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
202a5da8266f29b01ac5f81206b1cb497b57c352
2,714
py
Python
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
null
null
null
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
null
null
null
src/evaluate.py
buswinka/DetectStereocillia
7205680d9861cb50a447fe730696d2631f8256ba
[ "MIT" ]
1
2022-03-20T03:05:20.000Z
2022-03-20T03:05:20.000Z
from src.model import faster_rcnn_bundle, faster_rcnn_cilia, mask_rcnn, keypoint_rcnn import torch import src.utils import torch.optim import torchvision.ops as ops import src.transforms as t import torchvision.transforms.functional as TF import numpy as np import PIL from typing import Dict, List, Tuple import os.p...
36.675676
161
0.648858
367
2,714
4.618529
0.27248
0.047198
0.061947
0.063717
0.246018
0.221829
0.221829
0.188791
0.188791
0.188791
0
0.009268
0.204864
2,714
73
162
37.178082
0.776182
0.069639
0
0.083333
0
0
0.108195
0.037545
0
0
0
0
0
1
0.041667
false
0
0.229167
0
0.3125
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
202b86ff46d75ae6771b1867dc89ef0af73924b6
4,763
py
Python
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
src/solver.py
nataboll/ellipsoids
efd6b5d4bf221aa08a657f6265cb8a175289f979
[ "MIT" ]
null
null
null
from src.data import Data import numpy as np from scipy.optimize import minimize import matplotlib.pyplot as plt # area of ellipse # def f(x): # return np.pi * (x[0] * x[3] - x[1] * x[2]) ** 2 def f(x): return np.pi * (1 / float(x[0] ** 2 * x[1] ** 2)) class Solver: def __init__(self, data): ...
35.281481
117
0.503674
720
4,763
3.266667
0.226389
0.054422
0.029762
0.035714
0.26148
0.204507
0.175595
0.103316
0.065901
0.019558
0
0.042949
0.344951
4,763
134
118
35.544776
0.710897
0.39324
0
0.108108
0
0
0.004574
0
0
0
0
0
0
1
0.108108
false
0
0.054054
0.027027
0.378378
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20319180ed84fbe3b13d01be4d5e3308273c3a54
1,218
py
Python
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
tests/conftest.py
mzaglia/bdc-db
bce8ba164a336dd8f7638ed4c0a5c1a4ad80e3a5
[ "MIT" ]
null
null
null
# # This file is part of Brazil Data Cube Database module. # Copyright (C) 2019-2020 INPE. # # Brazil Data Cube Database moduleis free software; you can redistribute it and/or modify it # under the terms of the MIT License; see LICENSE file for more details. # """Config test fixtures.""" from typing import List impo...
22.981132
92
0.702791
172
1,218
4.866279
0.412791
0.062127
0.076464
0.052569
0.133811
0.133811
0.133811
0.133811
0.133811
0
0
0.008138
0.192939
1,218
52
93
23.423077
0.843337
0.383415
0
0.32
0
0
0
0
0
0
0
0
0
1
0.16
false
0
0.24
0
0.48
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
203206409e2548bf6472b00d0f31ff2df6928c52
2,805
py
Python
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
null
null
null
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
null
null
null
code/ner/evaluate.py
miquelcanalesteve/mtextos2122
e400090575b9f23469cf5a071523b8dafec1c0cf
[ "CC-BY-4.0" ]
5
2022-02-09T15:13:31.000Z
2022-03-07T20:07:24.000Z
import argparse import logging import os import numpy as np import torch import utils import model.net as net from model.data_loader import DataLoader parser = argparse.ArgumentParser() parser.add_argument('--data_dir', default='data/small', help="Directory containing the dataset") parser.add_argument('--model_dir', ...
33
109
0.685918
387
2,805
4.736434
0.281654
0.026187
0.034915
0.030551
0.08838
0.08838
0.028369
0
0
0
0
0.004844
0.190374
2,805
84
110
33.392857
0.80229
0.00713
0
0
0
0
0.118218
0.007905
0
0
0
0
0.018182
1
0.018182
false
0
0.145455
0
0.181818
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20331abdaf8bf7d676a5d3d8fb00324bcc3c7cde
1,124
py
Python
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
12
2017-12-14T02:02:25.000Z
2019-07-31T10:42:23.000Z
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
1
2019-09-10T07:11:27.000Z
2019-10-22T20:18:19.000Z
cynergy/errors/ContainerException.py
LALAYANG/IOCynergy
1821423680f741d8ca06bcc6a02c8b21156f9ba0
[ "MIT" ]
2
2021-08-15T08:56:13.000Z
2021-11-05T17:06:15.000Z
from typing import Type class ContainerException(Exception): def __init__(self, cls: Type, message): self.cls = cls super(ContainerException, self).__init__(message) class ClassNotFoundException(ContainerException): def __init__(self, cls: Type): super(ClassNotFoundException, self)._...
44.96
120
0.509786
84
1,124
6.404762
0.392857
0.065056
0.061338
0.078067
0.167286
0.133829
0
0
0
0
0
0
0.419039
1,124
24
121
46.833333
0.82389
0
0
0.222222
0
0
0.127224
0
0
0
0
0
0
1
0.166667
false
0
0.055556
0
0.388889
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2034a75a259e4f6a84df0a1bdb6f0f7a485dcf5a
841
py
Python
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
1
2019-05-12T23:41:00.000Z
2019-05-12T23:41:00.000Z
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
scripts/testcase_parser/kattis.py
metaflow/contests
5e9ffcb72c3e7da54b5e0818b1afa59f5778ffa2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from bs4 import BeautifulSoup from urllib.parse import urlsplit import json import sys import utils url = sys.argv[1] path = sys.argv[2] url = urlsplit(url) host = url.netloc if not host.endswith('kattis.com'): exit(1) name = url.path.rstrip('/').split('/')[-1] # /problems/skiresort with op...
23.361111
64
0.655172
129
841
4.193798
0.511628
0.05915
0.033272
0.05915
0.107209
0.107209
0.107209
0
0
0
0
0.01
0.167658
841
35
65
24.028571
0.762857
0.047562
0
0.068966
0
0
0.061327
0
0
0
0
0
0
1
0
false
0
0.172414
0
0.172414
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
203526c026fed195000636faf1d1dd48a896aced
18,756
py
Python
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
1
2020-06-23T10:03:18.000Z
2020-06-23T10:03:18.000Z
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
null
null
null
src/libs/loss.py
dylanturpin/6-PACK
a8d94cea97ed0f459431f409792038abb14f02d4
[ "MIT" ]
null
null
null
import pdb from torch.nn.modules.loss import _Loss from torch.autograd import Variable import math import torch import time import numpy as np import torch.nn as nn import random import torch.backends.cudnn as cudnn import torch.nn.functional as F import torch.distributions as tdist import copy import pymesh import pyv...
44.870813
139
0.61447
2,871
18,756
3.698363
0.079763
0.026747
0.023357
0.035035
0.653701
0.556508
0.492748
0.4466
0.418911
0.407139
0
0.027354
0.241789
18,756
417
140
44.978417
0.719288
0.074163
0
0.320144
0
0
0.021326
0.001217
0
0
0
0
0
1
0.032374
false
0
0.057554
0
0.122302
0.003597
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2035bc483e311f9599f980f47de2dacaa8317d2b
1,789
py
Python
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
setup.py
galaddirie/django-cassiopeia
e3e75e6c815cfc96e3b7ef5991aa1265221a2122
[ "MIT" ]
null
null
null
#!/usr/bin/env python import sys from setuptools import setup, find_packages from os import path this_directory = path.abspath(path.dirname(__file__)) with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f: long_description = f.read() install_requires = [ "datapipelines>=1.0.7", "mera...
30.844828
90
0.648966
206
1,789
5.524272
0.592233
0.052724
0.02109
0.052724
0
0
0
0
0
0
0
0.016819
0.202348
1,789
57
91
31.385965
0.780659
0.0218
0
0
0
0
0.463959
0.012586
0
0
0
0
0
1
0
false
0
0.0625
0
0.0625
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2036a59a849efccd1eebf5b74851410e2d9a4249
710
py
Python
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
Solver/Solver.py
MapleNSteel/mpcGenerationToolkit
e0b43e34247447cb8c591bb2f7d69834e4b7d982
[ "MIT" ]
null
null
null
import time import numpy as np from cvxopt import matrix, solvers from sympy import pprint solvers.options['show_progress'] = False solvers.options['maxiters'] = 1 def getSolution(code_gen, x_0, u_0, x_ref, u_ref, params): A = code_gen.A_mat(x_0[:,0:1], x_0, u_0, params) b = code_gen.b_mat(x_0[:,0:1], x_0, u_0, para...
32.272727
85
0.690141
146
710
3.116438
0.273973
0.03956
0.046154
0.061538
0.347253
0.340659
0.254945
0.127473
0.074725
0.074725
0
0.034483
0.142254
710
21
86
33.809524
0.712644
0.025352
0
0
0
0
0.030435
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.411765
0.058824
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2037a567b77e305e0d1ccdea12da25c068d7248b
3,460
py
Python
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
144
2019-05-08T14:24:43.000Z
2022-03-30T02:37:11.000Z
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
82
2019-05-13T17:43:13.000Z
2022-03-30T16:45:17.000Z
fhir/resources/DSTU2/enrollmentrequest.py
cstoltze/fhir.resources
52f99738935b7313089d89daf94d73ce7d167c9d
[ "BSD-3-Clause" ]
48
2019-04-04T14:14:53.000Z
2022-03-30T06:07:31.000Z
# -*- coding: utf-8 -*- """ Profile: https://www.hl7.org/fhir/DSTU2/enrollmentrequest.html Release: DSTU2 Version: 1.0.2 Revision: 7202 """ from typing import List as ListType from pydantic import Field from . import domainresource, fhirtypes class EnrollmentRequest(domainresource.DomainResource): """Enroll in ...
30.350877
93
0.629191
342
3,460
6.333333
0.330409
0.051708
0.045245
0.050785
0.289474
0.209141
0.209141
0.209141
0.209141
0.209141
0
0.004393
0.276301
3,460
113
94
30.619469
0.860623
0.162717
0
0.243902
0
0
0.345778
0
0
0
0
0
0
1
0
false
0
0.036585
0
0.182927
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
203badb19861f80a63c8028ac6ffdd250300130d
799
py
Python
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
1
2021-03-15T17:26:32.000Z
2021-03-15T17:26:32.000Z
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
null
null
null
software/feature_space.py
aM3z/primality-testing
b9e8395ab346ffd46f5b014996da2207c50dcc0a
[ "MIT" ]
null
null
null
from base_b import convert from random import randint DATA_DIR = "../data/" def get_prime(partition): primes = list() #filename = glob.glob(DATA_DIR + "primes" + str(partition)) filename = DATA_DIR + "primes" + str(partition) with open(filename, "r") as f: content = f.readlines() line...
21.594595
63
0.605757
101
799
4.683168
0.445545
0.031712
0.054968
0.067653
0.105708
0
0
0
0
0
0
0.003448
0.274093
799
36
64
22.194444
0.812069
0.20025
0
0
0
0
0.023734
0
0
0
0
0
0
1
0.1
false
0
0.1
0
0.25
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
203de3b0e97c73fd699b6af21861e33253964a9d
6,947
py
Python
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
40
2020-06-26T10:56:39.000Z
2022-01-26T10:43:34.000Z
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
7
2020-07-01T07:10:11.000Z
2022-03-07T00:07:41.000Z
dataLoader.py
stephen-w-bailey/fast-n-deep-faces
53173c6367dfa3a20d3193ad7a0e77ac1e898f02
[ "BSD-3-Clause" ]
13
2020-06-30T11:57:41.000Z
2022-02-20T17:24:00.000Z
import matplotlib.pyplot as plt import numpy as np import pickle import tensorflow as tf import UVGenerator class DataLoader(): def __init__(self,pg,sampleFile=None): self.pg = pg self.numV = np.sum(self.pg.active) pg.setPose(pg.defaultPose) self.neutral = pg.getVertices()[pg.acti...
38.594444
122
0.554196
849
6,947
4.489988
0.208481
0.025184
0.018363
0.013641
0.290923
0.248951
0.229014
0.200682
0.151889
0.131165
0
0.014709
0.305168
6,947
179
123
38.810056
0.775016
0.015978
0
0.215686
0
0
0.056052
0
0
0
0
0
0
1
0.071895
false
0
0.03268
0
0.163399
0.045752
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
203e0415618b04f5477d288195f92e0ca902d4e2
2,105
py
Python
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
cop/email_smaple/mail.py
maksim-urbanovich/Python_Task3
d0842c2caa39030ced55a342a709c9d0a2c8acce
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import smtplib from smtplib import SMTPException from email.mime.text import MIMEText import csv import codecs import logging from logging import StreamHandler from logging.handlers import RotatingFileHandler import sys import time LOGGER = 'logger' user = "robot.artsiom.mishuta" password = "r...
29.236111
172
0.636105
262
2,105
5.076336
0.396947
0.02406
0.045113
0.033835
0.137594
0.058647
0.043609
0.043609
0.043609
0
0
0.016968
0.160095
2,105
71
173
29.647887
0.735294
0.050831
0
0
0
0.019608
0.207831
0.074799
0
0
0
0
0
1
0
false
0.039216
0.196078
0
0.196078
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20453193afb607d368c958b88cbf1cdb70f61f43
717
py
Python
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-10-04T13:26:32.000Z
2021-10-04T13:26:32.000Z
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
3
2020-03-24T19:34:42.000Z
2022-01-21T20:15:39.000Z
python/leetcode/280_wiggle_sort.py
yxun/Notebook
680ae89a32d3f7d4fdcd541e66cea97e29efbd26
[ "Apache-2.0" ]
1
2021-04-01T20:56:50.000Z
2021-04-01T20:56:50.000Z
#%% """ - Wiggle Sort - https://leetcode.com/problems/wiggle-sort/ - Medium Given an unsorted array nums, reorder it in-place such that nums[0] <= nums[1] >= nums[2] <= nums[3].... Example: Input: nums = [3,5,2,1,6,4] Output: One possible answer is [3,5,1,6,2,4] """ #%% ## class S1: def wiggleSort(self, nums): ...
19.916667
104
0.474198
101
717
3.366337
0.544554
0.058824
0.058824
0
0
0
0
0
0
0
0
0.057018
0.364017
717
35
105
20.485714
0.688596
0.444909
0
0
0
0
0
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.230769
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2046a9865a03989fbda1a01607042dce01486fd9
4,843
py
Python
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
11
2020-06-05T15:38:21.000Z
2021-08-31T21:33:11.000Z
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
7
2019-10-23T15:30:51.000Z
2019-12-09T22:49:42.000Z
code/old/pyTorch_baxter_feed_forward_simple2.py
NLesniak/DeepLearning
c1e18a5c0fdab9c6bf4412c142c7db9c15baeef3
[ "MIT" ]
10
2020-06-18T05:43:37.000Z
2021-10-31T14:30:24.000Z
## Add modules that are necessary import numpy as np # linear algebra import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv) from sympy import * import matplotlib.pyplot as plt import operator from IPython.core.display import display import torch from torch.autograd import Variable import torch.utils.da...
32.072848
92
0.694817
726
4,843
4.495868
0.287879
0.027574
0.034314
0.026961
0.27114
0.174632
0.110907
0.066789
0.066789
0.066789
0
0.016418
0.182531
4,843
150
93
32.286667
0.808032
0.137312
0
0.208696
0
0
0.04028
0.007959
0
0
0
0
0
1
0.034783
false
0
0.243478
0
0.295652
0.069565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2046beee5b0531f6aba2f13452eaf086c8cff9b9
890
py
Python
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
17
2019-08-22T15:55:50.000Z
2022-02-02T20:52:00.000Z
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
1
2020-09-29T00:43:38.000Z
2020-10-27T07:15:01.000Z
tests/layout/test_waveguide.py
joamatab/zeropdk
feed134fc3243655f93cfd5b3bd5b65ea928bf48
[ "MIT" ]
3
2019-09-04T07:48:35.000Z
2021-06-16T09:39:42.000Z
import numpy as np import pytest from ..context import zeropdk # noqa from zeropdk.layout.waveguides import waveguide_dpolygon from zeropdk.layout import insert_shape import klayout.db as kdb @pytest.fixture def top_cell(): def _top_cell(): layout = kdb.Layout() layout.dbu = 0.001 TOP = ...
23.421053
65
0.65618
134
890
4.231343
0.410448
0.061728
0.059965
0
0
0
0
0
0
0
0
0.039941
0.240449
890
37
66
24.054054
0.798817
0.106742
0
0
0
0
0.042984
0.035398
0
0
0
0
0
1
0.115385
false
0
0.230769
0
0.423077
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2048324c1071d236d03d6f7a8c261d1007dcdeaf
9,072
py
Python
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
55
2016-11-20T17:08:19.000Z
2022-03-11T22:19:43.000Z
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
17
2017-09-20T07:52:17.000Z
2021-12-03T10:03:00.000Z
bin/Utils/CraftCache.py
C-EO/craft
a52ead76ce400cc745876bd679eba6f62da70ee5
[ "BSD-2-Clause" ]
29
2016-12-10T15:00:11.000Z
2021-12-02T12:54:05.000Z
import atexit import json import os import pickle import re import shutil import subprocess import tempfile import time import urllib.error import urllib.request import sys from pathlib import Path from CraftCore import CraftCore, AutoImport from Blueprints.CraftVersion import CraftVersion from CraftOS.osutils import...
40.681614
128
0.585097
932
9,072
5.611588
0.262876
0.034417
0.035755
0.027533
0.07782
0.045698
0.03652
0.029446
0
0
0
0.003548
0.316578
9,072
222
129
40.864865
0.84
0.054343
0
0.183784
0
0
0.094304
0.006107
0
0
0
0.004505
0
1
0.075676
false
0
0.102703
0.005405
0.335135
0.010811
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
204c706394af50cdc13dca585672f3febe695893
8,425
py
Python
prune/visualize.py
PaulLerner/Plumcot
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
1
2021-06-18T13:42:20.000Z
2021-06-18T13:42:20.000Z
prune/visualize.py
PaulLerner/Plumcot
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
2
2020-09-01T09:45:17.000Z
2020-09-22T14:32:01.000Z
prune/visualize.py
PaulLerner/Prune
7e5a6fed1bc3d099a0644f8baba77304b952ca57
[ "MIT" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 """Usage: visualize.py gecko (<hypotheses_path>|<database.task.protocol>) <uri> [--map --tag_na --database.task.protocol=<database.task.protocol> --embeddings=<embeddings>] visualize.py speakers (<hypotheses_path>|<database.task.protocol>) <uri> visualize.py update_distanc...
36.158798
165
0.651395
998
8,425
5.349699
0.217435
0.044578
0.041206
0.013486
0.275332
0.233752
0.208841
0.189923
0.189923
0.15059
0
0.001717
0.239644
8,425
232
166
36.314655
0.83172
0.227418
0
0.271605
0
0
0.104685
0.024277
0
0
0
0
0
1
0.04321
false
0
0.12963
0
0.203704
0.037037
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
204d1e3c250e8ba9939e2ae7da3513ab0b097992
16,003
py
Python
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
36
2018-12-19T18:03:08.000Z
2022-02-21T16:20:12.000Z
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
null
null
null
hopper_controller/src/ros_abstraction/leg_controller.py
CreedyNZ/Hopper_ROS
1e6354109f034a7d1d41a5b39ddcb632cfee64b2
[ "MIT" ]
7
2019-08-11T20:31:27.000Z
2021-09-19T04:34:18.000Z
from __future__ import division import rospy import tf2_ros from threading import Event from Queue import Queue, Empty from hopper_controller.srv import MoveLegsToPosition, MoveCoreToPosition, MoveLegsUntilCollision, MoveLegsToRelativePosition, MoveBodyRelative, ReadCurrentLegPositions, ReadCurrentLegPositionsRespons...
57.981884
200
0.727551
1,992
16,003
5.421687
0.093876
0.045741
0.033056
0.019444
0.758241
0.68713
0.633611
0.616667
0.574259
0.556204
0
0.010118
0.203274
16,003
275
201
58.192727
0.836941
0.020121
0
0.512295
0
0
0.021573
0.015637
0
0
0
0
0
1
0.065574
false
0
0.045082
0.004098
0.163934
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
204fbf91dd0345c4f0a3d33b337de07d901d56be
1,004
py
Python
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
10
2018-06-11T05:57:39.000Z
2021-10-04T15:11:25.000Z
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
1
2020-12-06T13:05:35.000Z
2021-02-10T08:01:13.000Z
featureExtractor/graph_features.py
MatrixBlake/AuthorProfilingAbuseDetection
0abd109a23a52cfe4b8cfc65aac08eb9762705f6
[ "MIT" ]
7
2019-05-22T04:09:55.000Z
2021-10-30T11:50:37.000Z
import numpy import os class GraphFeatures: def __init__(self, CONFIG): self.BASE = CONFIG['BASE'] self.EMBED_DIM = 200 self.authors = {} with open(os.path.join(self.BASE, 'resources', 'authors.txt')) as authors: for line in authors.readlines(): text_i...
31.375
82
0.581673
127
1,004
4.456693
0.362205
0.09894
0.063604
0.074205
0.289753
0.14841
0.14841
0.14841
0.14841
0
0
0.007102
0.298805
1,004
31
83
32.387097
0.796875
0
0
0
0
0
0.043825
0
0
0
0
0
0
1
0.086957
false
0
0.086957
0
0.304348
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2050c46574beaa8d6730b8207eba67b732239e3d
4,314
py
Python
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
9
2020-03-25T07:51:47.000Z
2022-02-07T00:07:28.000Z
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
1,164
2021-01-28T23:16:11.000Z
2022-03-28T07:23:10.000Z
oase-root/libs/backyardlibs/monitoring_adapter/Grafana/Grafana_formatting.py
Masa-Yasuno/oase
90f3cee73c0d9b3153808a4a72bd19984a4873f9
[ "Apache-2.0" ]
25
2020-03-17T06:48:30.000Z
2022-02-15T15:13:44.000Z
# Copyright 2019 NEC 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 to in wri...
28.95302
157
0.607557
473
4,314
5.348837
0.401691
0.031621
0.035573
0.026087
0.075099
0.054545
0.054545
0.054545
0.038735
0.038735
0
0.019988
0.257765
4,314
148
158
29.148649
0.770144
0.241076
0
0.05
0
0
0.108208
0
0
0
0
0
0
1
0.033333
false
0
0.15
0
0.233333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
205195453564dfb12dd43dd630b3ac86bfdd8b65
6,077
py
Python
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
2
2020-04-25T12:40:39.000Z
2021-06-03T08:21:17.000Z
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
5
2019-10-25T04:40:32.000Z
2021-05-26T15:07:40.000Z
flask_occam/mixins.py
bprinty/Flask-Occam
4ceae0d810656c187c37eaf78ef323b7d06c6b51
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # Database mixins # # ------------------------------------------------ # imports # ------- from flask import current_app # helpers # ------- def current_db(): return current_app.extensions['sqlalchemy'].db # mixins # ------ class ModelMixin(object): """ Example database mixin...
27.008889
89
0.53974
684
6,077
4.73538
0.302632
0.030256
0.016981
0.016054
0.092004
0.016054
0.016054
0
0
0
0
0.005093
0.353793
6,077
224
90
27.129464
0.81971
0.363666
0
0.244444
0
0
0.009397
0
0
0
0
0
0
1
0.144444
false
0
0.033333
0.011111
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
2053a68db0bd72f652dee47d009977bcd39210e3
2,577
py
Python
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
ephios/core/signals.py
garinm90/ephios
7d04d3287ae16ee332e31add1f25829b199f29a5
[ "MIT" ]
null
null
null
from django.db.models.signals import post_save from django.dispatch import receiver from ephios.core import mail from ephios.core.models import LocalParticipation from ephios.core.plugins import PluginSignal # PluginSignals are only send out to enabled plugins. register_consequence_handlers = PluginSignal() """ This...
35.30137
108
0.788902
344
2,577
5.81686
0.357558
0.03998
0.065967
0.071964
0.306347
0.245377
0.231384
0.166917
0.130935
0.093953
0
0
0.141638
2,577
72
109
35.791667
0.904611
0.01979
0
0.071429
0
0
0.100181
0.100181
0
0
0
0
0
1
0.071429
false
0
0.214286
0
0.321429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
20556093e3cbd97c50d9535880c7159834951ef0
2,116
py
Python
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
byceps/services/shop/order/actions/create_ticket_bundles.py
GyBraLAN/byceps
b53087849c10a531b66d08999116fa1bef312a7f
[ "BSD-3-Clause" ]
null
null
null
""" byceps.services.shop.order.actions.create_ticket_bundles ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Copyright: 2006-2021 Jochen Kupperschmidt :License: Revised BSD (see `LICENSE` file for details) """ from .....typing import UserID from ....ticketing.dbmodels.ticket_bundle import TicketBundle from...
29.388889
75
0.71172
252
2,116
5.579365
0.257937
0.110953
0.068279
0.036273
0.175676
0.122333
0
0
0
0
0
0.004611
0.180057
2,116
71
76
29.802817
0.805764
0.111059
0
0.041667
0
0
0.074411
0.051927
0
0
0
0
0
1
0.041667
false
0
0.166667
0
0.208333
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
205660960327a896bf31bd564783248e520146a9
1,108
py
Python
dexter/admin/widgets.py
CodeForAfrica/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
12
2015-06-14T05:50:39.000Z
2021-09-12T17:03:47.000Z
dexter/admin/widgets.py
CodeForAfrica/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
32
2019-07-25T06:17:31.000Z
2019-08-05T02:41:42.000Z
dexter/admin/widgets.py
CodeForAfricaLabs/mma-dexter
10d7f0c51bb935399c708a432699e06418049a33
[ "Apache-2.0" ]
9
2016-04-04T03:08:22.000Z
2020-02-19T09:55:45.000Z
from cgi import escape from wtforms import widgets from wtforms.compat import text_type from wtforms.widgets.core import html_params, HTMLString class CheckboxSelectWidget(widgets.Select): """ Select widget that is a list of checkboxes """ def __call__(self, field, **kwargs): if 'id' in kwargs: ...
33.575758
138
0.620036
130
1,108
5.184615
0.453846
0.048961
0.047478
0
0
0
0
0
0
0
0
0
0.231047
1,108
32
139
34.625
0.79108
0.037906
0
0
0
0
0.133776
0.028463
0
0
0
0
0
1
0.086957
false
0
0.173913
0
0.391304
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2059823110054469bda0c1cbc025a00aa2057e4b
6,702
py
Python
openspeech/lm/transformer_lm.py
CanYouImagine/openspeech
095d78828a9caed0151727897f35534231947846
[ "Apache-2.0", "MIT" ]
207
2021-07-22T02:04:47.000Z
2022-03-31T07:24:12.000Z
openspeech/lm/transformer_lm.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
81
2021-07-21T16:52:22.000Z
2022-03-31T14:56:54.000Z
openspeech/lm/transformer_lm.py
tqslj2/openspeech
10307587f08615224df5a868fb5249c68c70b12d
[ "Apache-2.0", "MIT" ]
43
2021-07-21T16:33:27.000Z
2022-03-23T09:43:49.000Z
# MIT License # # Copyright (c) 2021 Soohwan Kim and Sangchun Ha and Soyoung Cho # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights...
38.965116
119
0.661594
837
6,702
5.130227
0.286738
0.025151
0.023754
0.011178
0.205636
0.162785
0.119236
0.119236
0.108989
0.108989
0
0.01087
0.258729
6,702
171
120
39.192982
0.853462
0.402716
0
0.132653
0
0
0
0
0
0
0
0
0
1
0.05102
false
0
0.05102
0
0.153061
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
2059a11952c6bb57e1ddde4398fa3d4afdd9f065
4,540
py
Python
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
null
null
null
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
1
2017-07-21T14:41:51.000Z
2017-07-21T16:19:55.000Z
app.py
Mohitsharma44/uodashboard
9654511817b06c6ce73f7cbcdd1415ba0a78004f
[ "MIT" ]
null
null
null
import os import json import time import base64 from io import StringIO from tornado import websocket, web, ioloop, gen, escape # list of clients to push the data to clients = [] class BaseHandler(web.RequestHandler): def get_current_user(self): return self.get_secure_cookie("user") class AudubonHandler...
27.515152
73
0.581278
501
4,540
5.141717
0.347305
0.024457
0.03028
0.024845
0.172748
0.110637
0.110637
0.070652
0.070652
0.070652
0
0.008964
0.287445
4,540
164
74
27.682927
0.787326
0.094053
0
0.166667
0
0
0.124937
0.016775
0
0
0
0.006098
0
1
0.122807
false
0.017544
0.052632
0.008772
0.280702
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
6443f914d5d0b5b31f9340a5022b1d6bb4a641d5
11,233
py
Python
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
2
2015-06-13T16:14:26.000Z
2015-10-27T17:19:12.000Z
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
43
2015-02-16T17:06:14.000Z
2018-09-07T15:33:14.000Z
orcoursetrion/tests/base.py
kboots-mit/orcoursetrion
06f62a903077a1ddfe662e2b7214ba1f97933eb0
[ "BSD-2-Clause" ]
4
2015-05-27T19:43:59.000Z
2022-03-17T19:01:11.000Z
# -*- coding: utf-8 -*- """ Test base class with commonly used methods and variables """ import json import re import unittest import httpretty class TestGithubBase(unittest.TestCase): """Test Github actions and backing library.""" OAUTH2_TOKEN = '12345' ORG = 'NOT_REAL' URL = 'http://localhost/' ...
30.691257
78
0.517404
1,171
11,233
4.823228
0.176772
0.037181
0.025496
0.061615
0.554533
0.489731
0.434667
0.38403
0.350921
0.304178
0
0.014266
0.363483
11,233
365
79
30.775342
0.775664
0.129796
0
0.411765
0
0
0.100477
0.044032
0
0
0
0
0.047794
1
0.066176
false
0
0.014706
0
0.172794
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6444fc949f84882592e7af529a265c5ac81da84e
4,799
py
Python
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
21
2018-12-10T18:46:12.000Z
2021-11-22T04:42:49.000Z
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
94
2018-12-11T22:52:12.000Z
2021-02-02T23:07:25.000Z
evm/scripts/bench_evm384.py
jnordberg/benchmarking
f212eeda06210e64a71e6180091a279342f6f215
[ "Apache-2.0" ]
7
2018-12-11T22:45:58.000Z
2021-11-22T04:42:03.000Z
#!/usr/bin/env python3 import re import subprocess import nanodurationpy as durationpy import csv import time import datetime import os import shutil import shlex import json # output paths should be mounted docker volumes RESULT_CSV_OUTPUT_PATH = "/evmraceresults" RESULT_CSV_FILENAME = "evm_benchmarks_evmone384.csv...
43.234234
339
0.709731
571
4,799
5.698774
0.313485
0.050707
0.022127
0.029195
0.34327
0.333436
0.333436
0.333436
0.305163
0.305163
0
0.134238
0.140029
4,799
110
340
43.627273
0.654228
0.039175
0
0
0
0.043478
0.36495
0.249932
0
0
0
0
0
1
0.043478
false
0
0.144928
0
0.202899
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
64482cc0c9d8191912e52468d78f9daed36c3761
17,755
py
Python
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
null
null
null
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
9
2017-11-11T10:35:41.000Z
2021-01-21T10:58:50.000Z
etsin_finder_search/catalog_record_converter.py
CSCfi/etsin-finder-search
c76888de65a3c32d98f78f863850a374606420c1
[ "MIT" ]
2
2018-03-06T08:19:48.000Z
2019-03-20T06:55:16.000Z
# This file is part of the Etsin service # # Copyright 2017-2018 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland <servicedesk@csc.fi> # :license: MIT from etsin_finder_search.reindexing_log import get_logger from etsin_finder_search.utils import \ catalog_rec...
45.293367
148
0.610926
2,242
17,755
4.351026
0.077163
0.060892
0.025833
0.026653
0.667863
0.609534
0.470425
0.405843
0.318811
0.286212
0
0.000724
0.299859
17,755
391
149
45.409207
0.784008
0.050239
0
0.171004
0
0
0.143527
0.016903
0
0
0
0
0
1
0.037175
false
0
0.007435
0
0.092937
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6448339d56590e86a2c7d522cbb83b6740c5c6f1
3,350
py
Python
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
ndb/src/google/cloud/ndb/exceptions.py
juan-rael/google-cloud-python
1d762a11ec8d76a7413aecdc4748699e662c4976
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
31.603774
79
0.707164
449
3,350
5.184855
0.461025
0.025773
0.014175
0.013746
0.024055
0.024055
0
0
0
0
0
0.003377
0.204478
3,350
105
80
31.904762
0.870169
0.668657
0
0.074074
0
0
0.224554
0.033578
0
0
0
0
0
1
0.111111
false
0
0
0
0.407407
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6448a7050ade05bceafdf46782f6495e4df28414
5,074
py
Python
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
3
2021-12-08T22:46:39.000Z
2022-02-22T02:51:00.000Z
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
null
null
null
sourcecode.py
hansalemaos/PDFImage2TXT
cb85c8d3496595128c2985f028dc001c525611c1
[ "Apache-2.0", "MIT" ]
1
2021-12-18T02:38:43.000Z
2021-12-18T02:38:43.000Z
# coding: utf-8 -*- import pathlib from tkinter.filedialog import askopenfilename from tkinter import Tk import os import re import textwrap import easyocr import string reader = easyocr.Reader(['de','en', 'pt']) erlaubtezeichen = string.ascii_letters+string.digits from pdf2jpg import pdf2jpg wrapper = textwrap.TextWra...
40.269841
163
0.631257
542
5,074
5.878229
0.309963
0.014124
0.013183
0.005022
0.263026
0.216573
0.216573
0.216573
0.216573
0.216573
0
0.008644
0.20201
5,074
125
164
40.592
0.777229
0.006307
0
0.27027
0
0.009009
0.15522
0.042477
0
0
0
0
0
1
0.045045
false
0
0.081081
0
0.153153
0.045045
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64495a18dcefc4b3378d128ce25affb7b2d24c94
8,371
py
Python
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
arspb/policies.py
jadenvc/ARS
f4082b3a71b1f8255e8d74ebfe4aa4bda668145f
[ "BSD-2-Clause" ]
null
null
null
# Lint as: python3 ''' Policy class for computing action from weights and observation vector. Horia Mania --- hmania@berkeley.edu Aurelia Guy Benjamin Recht ''' """Policy class for computing action from weights and observation vector. It is a modified policy class from third_party/py/ARS/code/policies.py. """ i...
35.470339
87
0.699797
1,142
8,371
4.867776
0.155867
0.07987
0.027523
0.025184
0.604425
0.56467
0.554056
0.540205
0.530131
0.506206
0
0.006237
0.195556
8,371
235
88
35.621277
0.819275
0.196392
0
0.482014
0
0
0.071596
0.029481
0
0
0
0
0
1
0.100719
false
0.007194
0.028777
0.014388
0.208633
0.007194
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
644c0eea66543b024562d743d76998786e9627ec
1,657
py
Python
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
2
2020-08-12T20:01:35.000Z
2020-08-12T20:01:38.000Z
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
1
2021-04-22T23:52:00.000Z
2021-04-22T23:52:00.000Z
tests/operators/test_dbt_operator.py
jennybrown8/airflow-dbt
bd63ae8317770dfb490ae32548ce0e96834c7b3c
[ "MIT" ]
1
2021-03-12T20:51:54.000Z
2021-03-12T20:51:54.000Z
import datetime from unittest import TestCase, mock from airflow import DAG, configuration from airflow_dbt.hooks.dbt_hook import DbtCliHook from airflow_dbt.operators.dbt_operator import ( DbtSeedOperator, DbtSnapshotOperator, DbtRunOperator, DbtTestOperator ) class TestDbtOperator(TestCase): def...
29.070175
56
0.640314
193
1,657
5.217617
0.259067
0.0715
0.079444
0.099305
0.484608
0.397219
0.397219
0.397219
0.397219
0.234359
0
0.005724
0.261919
1,657
56
57
29.589286
0.817661
0
0
0.24
0
0
0.059747
0
0
0
0
0
0.08
1
0.1
false
0
0.1
0
0.22
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
644d64204bad398a95c41f4ac02a80097e324fcd
2,966
py
Python
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
1
2021-01-19T00:45:36.000Z
2021-01-19T00:45:36.000Z
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
null
null
null
tasks/NamedEntityRecognition.py
cmathx/transformers-tutorial
1d27100eda528c58952ff96935effa5fbf784422
[ "MIT" ]
null
null
null
from transformers import pipeline nlp = pipeline("ner") sequence = """Hugging Face Inc. is a company based in New York City. Its headquarters are in DUMBO, therefore very close to the Manhattan Bridge which is visible from the window.""" print(nlp(sequence)) #[ # {'word': 'Hu', 'score': 0.999563276767730...
57.038462
541
0.608227
379
2,966
4.746702
0.313984
0.037799
0.044469
0.054475
0.125625
0.125625
0.125625
0.125625
0.125625
0.125625
0
0.082137
0.154417
2,966
52
541
57.038462
0.635167
0.589346
0
0
0
0.074074
0.35399
0.040747
0
0
0
0
0
1
0
false
0
0.111111
0
0.111111
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
644f0bed868677fe86feb9405b9bdbfa79b1d42d
2,723
py
Python
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
poet_distributed/niches/minigrid/minigrid.py
gdicker1/poet
388a239d957e719eff1e774f5a8587496ca15474
[ "Apache-2.0" ]
null
null
null
from ..core import Niche from .model import Model, simulate from .env import minigridhard_custom, Env_config from collections import OrderedDict DEFAULT_ENV = Env_config( name='default_env', lava_prob=[0., 0.1], obstacle_lvl=[0., 1.], box_to_ball_prob=[0., 0.3], door_prob=[0., 0...
35.363636
106
0.614763
340
2,723
4.685294
0.258824
0.119272
0.11425
0.013183
0.24231
0.140615
0.081607
0.042687
0
0
0
0.013238
0.278737
2,723
76
107
35.828947
0.797862
0.022402
0
0.060606
0
0
0.045847
0
0
0
0
0
0.030303
1
0.106061
false
0
0.075758
0.015152
0.257576
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6451a5afeb68d14a7e51707380bfe62ee1b2d8cf
697
py
Python
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
data/addresses.py
katwyp/python_training
0dc4b8ed146ff6322864039a9e77fbd5cd62ef85
[ "Apache-2.0" ]
null
null
null
from model.address import Address testdata = [ Address(firstname="", lastname="", address="", homephone="", mobile="", workphone="", secondaryphone="", email="", email2="", email3=""), Address(firstname="address1", lastname="address1", address="address1", homephone="address1", mobile="...
49.785714
108
0.652798
59
697
7.711864
0.271186
0.105495
0
0
0
0
0
0
0
0
0
0.044444
0.160689
697
13
109
53.615385
0.733333
0
0
0
0
0
0.229555
0
0
0
0
0
0
1
0
false
0
0.090909
0
0.090909
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6454be3091761768943878624a7f7adabf1b301c
7,176
py
Python
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
1
2020-11-25T04:07:37.000Z
2020-11-25T04:07:37.000Z
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
52
2018-10-25T05:49:30.000Z
2022-03-16T22:31:57.000Z
converters/usfm2html_converter.py
unfoldingWord-dev/tx-job-handler
5364ed079bbd5b6528eeb6d12f2ca5c696e84f4f
[ "MIT" ]
null
null
null
import os import tempfile import string from bs4 import BeautifulSoup from shutil import copyfile from rq_settings import prefix, debug_mode_flag from app_settings.app_settings import AppSettings from general_tools.file_utils import write_file, remove_tree, get_files from converters.converter import Converter from tx_...
61.862069
226
0.636148
845
7,176
5.20355
0.246154
0.073914
0.045031
0.047078
0.264499
0.178758
0.178758
0.140096
0.075051
0.051399
0
0.008312
0.279125
7,176
115
227
62.4
0.839358
0.206522
0
0.02381
0
0.011905
0.187456
0.046466
0
0
0
0
0
1
0.011905
false
0.011905
0.119048
0
0.154762
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6456d6157ce3260e6b735493caaee1a68c6e74f6
11,764
py
Python
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/VMI-as-a-Service
5828a9c73815ad7e043428e7e56dc0715aaa60a1
[ "MIT" ]
3
2019-08-31T19:58:24.000Z
2020-10-02T06:50:22.000Z
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/VMI-as-a-Service
5828a9c73815ad7e043428e7e56dc0715aaa60a1
[ "MIT" ]
1
2020-10-16T19:13:49.000Z
2020-10-16T19:13:49.000Z
xen-4.6.0/tools/python/xen/migration/legacy.py
StanPlatinum/ROP-detection-inside-VMs
7b39298dd0791711cbd78fd0730b819b755cc995
[ "MIT" ]
1
2021-06-06T21:10:21.000Z
2021-06-06T21:10:21.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Legacy migration stream information. Documentation and record structures for legacy migration, for both libxc and libxl. """ """ Libxc: SAVE/RESTORE/MIGRATE PROTOCOL ============================= The general form of a stream of chunks is a header followed by a body...
37.227848
82
0.650714
1,638
11,764
4.518926
0.250916
0.023777
0.015131
0.020535
0.235612
0.1709
0.148744
0.148744
0.144285
0.144285
0
0.025101
0.302363
11,764
315
83
37.346032
0.876812
0.021081
0
0
0
0
0.151338
0.035037
0
0
0
0
0
1
0
false
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
645788a314377b0b95dd2d2eb4ba83dae9fbf763
2,102
py
Python
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
aoc2018/dec10/solve.py
robfalck/AoC2018
9cc6a94d11d70ea11df4999df2fdf955cc5c155a
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function, division, absolute_import import re import numpy as np re_posvel = re.compile(r'position=<(.+),(.+)> velocity=<(.+),(.+)>') np.set_printoptions(linewidth=1024, edgeitems=1000) def parse(s): """ Parse out the positions and velocities. """ match = (re_posvel.sear...
26.275
91
0.5647
335
2,102
3.432836
0.391045
0.005217
0.01913
0.013913
0.144348
0.132174
0.132174
0.092174
0.092174
0.092174
0
0.020722
0.288297
2,102
79
92
26.607595
0.747995
0.198382
0
0.122449
0
0
0.053528
0
0
0
0
0
0
1
0.061224
false
0
0.061224
0
0.142857
0.163265
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
645a955508585ae81c1238e16367225f63eb2ee3
9,638
py
Python
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
1
2019-05-06T12:43:33.000Z
2019-05-06T12:43:33.000Z
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
null
null
null
fun/regexp.py
jburgy/blog
60ecb19069916fe7718f0f90c946d2d6af836d3e
[ "Apache-2.0" ]
1
2021-03-14T16:50:51.000Z
2021-03-14T16:50:51.000Z
# -*-coding:utf8;-*- """ `Regular Expression Search Algorithm`_ After playing with `Thompson's construction`_ in `C`_ and `x86`_, I decided to take another look in python many years later. Tokenization and conversion to postfix are lifted almost verbatim from the C implementation apart for the fact they rely on pytho...
34.92029
103
0.534862
1,201
9,638
4.234804
0.270608
0.009438
0.007078
0.006292
0.145301
0.082776
0.053873
0.033425
0.033425
0.033425
0
0.015469
0.315833
9,638
275
104
35.047273
0.755839
0.462855
0
0.318182
0
0
0.018347
0
0
0
0
0
0
1
0.051948
false
0.012987
0.012987
0
0.123377
0.006494
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
645ad370c4b50b933af7d6c182f859d5bc0ad82b
2,785
py
Python
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
null
null
null
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
null
null
null
python/v1/buyers/publisher_profiles/get_publisher_profiles.py
googleads/authorized-buyers-marketplace-api-samples
73ae731785a19aa418fe5561831605b7c209c651
[ "Apache-2.0" ]
1
2022-01-09T18:06:59.000Z
2022-01-09T18:06:59.000Z
#!/usr/bin/python # # Copyright 2021 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
34.382716
80
0.694434
370
2,785
5.07027
0.389189
0.076759
0.057569
0.031983
0.228145
0.147122
0.147122
0.147122
0.147122
0.10661
0
0.00551
0.217953
2,785
80
81
34.8125
0.855831
0.254937
0
0.133333
0
0
0.376522
0.099367
0
0
0
0
0
1
0.022222
false
0
0.133333
0
0.155556
0.133333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
645d11df00b3707ac1991bf8fa1726c7105c09fb
152
py
Python
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
3
2020-07-09T16:15:42.000Z
2020-07-17T13:19:42.000Z
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
null
null
null
codeforces/anirudhak47/616/E.py
anirudhakulkarni/codes
d7a907951033b57314dfc0b837123aaa5c25a39a
[ "MIT" ]
1
2020-07-17T13:19:48.000Z
2020-07-17T13:19:48.000Z
n,m=map(int,input().split()) mod=10**9+7 sum=(n%mod)*(m%mod) i=1 j=1 res=0 while j<=n: res+=(n//j)*j i+=1 j=i print((sum-res)%mod)
13.818182
29
0.493421
36
152
2.083333
0.5
0.053333
0.08
0
0
0
0
0
0
0
0
0.067227
0.217105
152
11
30
13.818182
0.563025
0
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0
0
0
0.090909
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
646093a875532db734c0ea4b2ff24388f33c4f32
2,633
py
Python
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
Paper_Specific_Versions/2019_DTI/Code/subjects_lists/lists_stats_dMRI.py
adamwild/AD-ML
e4ac0b7d312ab482b9b52bb3f5c6745cc06431e9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- __author__ = ["Junhao Wen", "Simona Bottani", "Jorge Samper-Gonzalez"] __copyright__ = "Copyright 2016-2018 The Aramis Lab Team" __credits__ = ["Junhao Wen"] __license__ = "See LICENSE.txt file" __version__ = "0.1.0" __status__ = "Development" import numpy as np import pandas as pd import os d...
46.192982
126
0.567793
372
2,633
3.846774
0.360215
0.050314
0.033543
0.031447
0.262055
0.194969
0.194969
0.106219
0.086653
0.086653
0
0.015144
0.247626
2,633
56
127
47.017857
0.707219
0.159134
0
0
0
0
0.152015
0
0
0
0
0
0
1
0.02439
false
0
0.073171
0
0.097561
0.146341
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6462624a7ae5dc8c88954bd7349a57466f638697
2,102
py
Python
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
tests/diffraction/test_diffraction_r_vortex.py
VasilyevEvgeny/self-focusing_3D
c90b4d78d2d72365566f8a49b325bd48127b1e44
[ "MIT" ]
null
null
null
from numpy.random import randint from core import BeamR, Propagator, SweepDiffractionExecutorR, BeamVisualizer, xlsx_to_df from tests.diffraction.test_diffraction import TestDiffraction NAME = 'diffraction_r_vortex' class TestDiffractionRVortex(TestDiffraction): def __init__(self, *args, **kwargs): supe...
33.365079
103
0.540913
232
2,102
4.487069
0.353448
0.024015
0.017291
0.009606
0.073007
0.036503
0
0
0
0
0
0.017557
0.376784
2,102
62
104
33.903226
0.777099
0
0
0
0
0
0.025214
0
0
0
0
0
0
1
0.066667
false
0
0.066667
0
0.177778
0.022222
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6465d405858eb834ed1583ad68a1aa90c937d20f
506
py
Python
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
NGASpider/nga_topic_wordcloud.py
liamcraft118/PythonLearning
65949b7972afb13231f4f8d842a1b561a02072fb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from DB import DB from wordcloud import WordCloud import jieba # class WordCloud(object): if __name__ == '__main__': db = DB() db.connect() result = db.readAllTitle() titles = '' for title in result: titles += title[0] words = " ".join(jieba.cut(titles)) ...
20.24
65
0.63834
62
506
5.064516
0.629032
0.095541
0
0
0
0
0
0
0
0
0
0.005076
0.221344
506
24
66
21.083333
0.791878
0.090909
0
0
0
0
0.065646
0
0
0
0
0
0
1
0
false
0
0.25
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6465e979caebd8c2c3c49bbbfea16b8f79b275ca
6,611
py
Python
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
3
2022-02-13T02:38:28.000Z
2022-03-22T16:59:15.000Z
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
27
2022-02-13T18:22:48.000Z
2022-03-31T18:18:41.000Z
granola/main.py
metergroup/GRANOLA
24abcf9e6429d81047cda24a4343af5563d4e353
[ "Apache-2.0" ]
null
null
null
""" This module is deprecated and will be removed in version 1.0. Please use :mod:`~granola.breakfast_cereal` instead """ from granola.breakfast_cereal import Cereal from granola.utils import deprecation class MockSerial(Cereal): """ Deprecated version of :class:`~granola.breakfast_cereal.Cereal`. Will be re...
48.255474
114
0.638179
766
6,611
5.219321
0.185379
0.030015
0.063782
0.022511
0.433467
0.311906
0.224862
0.148074
0.148074
0.117559
0
0.003958
0.273786
6,611
136
115
48.610294
0.828786
0.101951
0
0.19802
0
0.019802
0.314586
0.040657
0
0
0
0
0
1
0.059406
false
0
0.019802
0
0.118812
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
646d72d43695b19e055ac78f71a7b68738a02570
6,314
py
Python
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
train.py
yhgon/cmtf
7a3ffc3a59a7c546a00d3b73be58f7d1c2f1f0cf
[ "MIT" ]
null
null
null
from cmtf import CompressiveTransformer from cmtf_ar_wrapper import AutoregressiveWrapper import argparse import random import tqdm import gzip import numpy as np import torch import torch.optim as optim from torch.nn import functional as F from torch.utils.data import DataLoader, Dataset # constants def parse_args(...
34.883978
127
0.63478
792
6,314
4.830808
0.243687
0.066127
0.062206
0.04391
0.168845
0.109775
0.068479
0.05541
0.05541
0.023523
0
0.016062
0.240735
6,314
180
128
35.077778
0.782019
0.03611
0
0.017094
0
0.008547
0.104507
0.006934
0
0
0
0
0
1
0.076923
false
0
0.094017
0.025641
0.230769
0.068376
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
646eb195f8628e5692003244f139891bc4d4d41e
1,094
py
Python
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
scripts/template_file.py
Aracthor/cpp-maker
6e5f2fb553ecfb849704629f37c57f801fdd072f
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ## template_file.py for cpp-maker in /home/aracthor/programs/projects/cpp-maker ## ## Made by Aracthor ## ## Started on Mon Sep 7 12:03:26 2015 Aracthor ## Last Update Wed Sep 9 10:27:36 2015 Aracthor ## from files import File class TemplateFile(File): def __init__(self, path, project): ...
34.1875
95
0.617916
124
1,094
5.33871
0.524194
0.117825
0.077039
0.057402
0.087613
0
0
0
0
0
0
0.02934
0.252285
1,094
31
96
35.290323
0.779951
0.187386
0
0
0
0
0.046911
0
0
0
0
0
0
1
0.111111
false
0
0.055556
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64709e39f1c3abfd144073c9040d15f4940e15fc
592
py
Python
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
2
2020-08-20T15:46:55.000Z
2022-02-16T13:45:59.000Z
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
null
null
null
tests/test_gym_registers.py
domingoesteban/robolearn_envs
1e10f315abcbb034e613b3b5a7a48662a839c81b
[ "BSD-3-Clause" ]
1
2020-10-03T11:28:15.000Z
2020-10-03T11:28:15.000Z
import gym import numpy as np from context import robolearn_envs all_envs = gym.envs.registry.all() robolearn_env_ids = [env_spec.id for env_spec in all_envs if env_spec.id.startswith('RoboLearn-')] for env_id in robolearn_env_ids: print('-'*15) print("Environment: %s" % env_id) env ...
23.68
63
0.613176
92
592
3.793478
0.445652
0.060172
0.08596
0
0
0
0
0
0
0
0
0.009009
0.25
592
24
64
24.666667
0.777027
0
0
0
0
0
0.108108
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.277778
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6470d5944c522fadb85e8b00e6d96b7ccc8e434e
7,468
py
Python
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
xor_nn/genetic_algorithm.py
sgalella/GeneticAlgorithm-XOR
2e7de2e2fc6dfd8bb27d9e09c7be86f75c6db87c
[ "MIT" ]
null
null
null
import numpy as np from tqdm import tqdm from . import mutation, recombination, selection class GeneticAlgorithm: """ Genetic algorithm for TSP. """ def __init__(self, lower_bound=-5, upper_bound=5, alpha=0.5, num_iterations=1000, population_size=100, offspring_size=20, mutation_rate=0.2, ...
40.150538
144
0.635913
819
7,468
5.616606
0.223443
0.028696
0.021304
0.017609
0.239565
0.14913
0.128261
0.128261
0.115652
0.115652
0
0.016024
0.281334
7,468
185
145
40.367568
0.841066
0.21639
0
0.067416
0
0
0.04038
0.016444
0
0
0
0
0.011236
1
0.089888
false
0.022472
0.033708
0
0.213483
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647564ba63394f150f2633cb8c189e18207d6ab2
2,185
py
Python
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
null
null
null
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
12
2015-06-15T11:50:48.000Z
2015-07-07T09:03:37.000Z
ps_tree/views.py
ITCase/ps_tree
a2152feb53d5f041b43203ee8ccaae65cb9d13e4
[ "MIT" ]
null
null
null
import transaction from pyramid.httpexceptions import HTTPInternalServerError from pyramid.view import view_config from pyramid_sacrud.security import (PYRAMID_SACRUD_DELETE, PYRAMID_SACRUD_UPDATE) from sacrud.common import pk_to_list from . import CONFIG_MODELS, PS_TREE_GET_TREE,...
29.931507
77
0.667277
262
2,185
5.221374
0.248092
0.040936
0.023392
0.028509
0.187135
0.135965
0.046784
0.046784
0
0
0
0
0.240275
2,185
72
78
30.347222
0.824096
0
0
0.129032
0
0
0.053089
0
0
0
0
0
0.016129
1
0.064516
false
0
0.096774
0
0.241935
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647674bcd02180e2d4d59bf2cb132ab346717ae5
1,068
py
Python
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
PK-100/Competitive_Programming
d0863feaaa99462b2999e85dcf115f7a6c08bb8d
[ "MIT" ]
70
2018-06-25T21:20:15.000Z
2022-03-24T03:55:17.000Z
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
4
2018-09-04T13:12:20.000Z
2021-06-20T08:29:12.000Z
Contests/Facebook Hacker Cup 2018/Qualification/Tourist/tourist.py
An3sha/Competitive_Programming
ee7eadf51939a360d0b004d787ebabda583e92f0
[ "MIT" ]
24
2018-12-26T05:15:32.000Z
2022-01-23T23:04:54.000Z
''' Author: Amitrajit Bose Problem: Facebook HackerCup Qualification Round ''' with open("Output.txt", "w") as text_file: testcase=int(input()) for _ in range(testcase): #entire program will be contained here now n,k,v=[int(x) for x in input().strip().split()] citynames=[] #citydict={} out=[] for i in ra...
22.723404
61
0.647004
165
1,068
4.157576
0.381818
0.061224
0.043732
0.080175
0.155977
0.120991
0.069971
0
0
0
0
0.012514
0.176966
1,068
47
62
22.723404
0.767918
0.273408
0
0.172414
0
0
0.028909
0
0
0
0
0
0
1
0
false
0
0
0
0
0.068966
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647716fe60d32877837b9b44ced048b662a0498e
1,635
py
Python
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
src/cli.py
jconradhanson/BEAT
47a828c486e674323782c11b78be63aae003c45d
[ "MIT" ]
null
null
null
import logging import argparse from beat import beat from definitions import path_log # LOGGING CONFIGURATION logging.basicConfig( level=logging.INFO, format='%(asctime)s %(message)s', datefmt='%m/%d/%Y %I:%M:%S %p' ) logging.root.addHandler(logging.FileHandler(path_log, mode='w', encoding='UTF-8')) loggin...
35.543478
105
0.687462
227
1,635
4.876652
0.405286
0.097561
0.046974
0.054201
0.186992
0.186992
0.180668
0.137308
0
0
0
0.001511
0.190214
1,635
45
106
36.333333
0.834592
0.06789
0
0.081081
0
0
0.277339
0
0
0
0
0
0
1
0
false
0
0.108108
0
0.108108
0.027027
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6477ef9e1d25e92daab6a18794994b24710c4290
5,678
py
Python
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
tests/payments/four/request_apm_payments_four_integration_test.py
riaz-bordie-cko/checkout-sdk-python
d9bc073306c1a98544c326be693ed722576ea895
[ "MIT" ]
null
null
null
from __future__ import absolute_import import os import pytest import checkout_sdk from checkout_sdk.common.common import Address, CustomerRequest, Phone from checkout_sdk.common.common_four import Product from checkout_sdk.common.enums import Currency, Country from checkout_sdk.payments.payment_apm_four import Requ...
36.397436
104
0.646178
555
5,678
6.29009
0.248649
0.140361
0.030077
0.026353
0.449728
0.386709
0.34546
0.34546
0.321398
0.321398
0
0.021453
0.277563
5,678
155
105
36.632258
0.829595
0
0
0.443609
0
0
0.119232
0.022543
0
0
0
0
0.045113
1
0.022556
false
0
0.090226
0
0.112782
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6479a772a0aa85678bea2bbb58a2808af7469318
4,524
py
Python
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
sandbox/lib/jumpscale/Jumpscale/clients/ssh/SSHClientFactory.py
threefoldtech/threebot_prebuilt
1f0e1c65c14cef079cd80f73927d7c8318755c48
[ "Apache-2.0" ]
null
null
null
from Jumpscale import j from .SSHClient import SSHClient from .SSHClientParamiko import SSHClientParamiko from .SSHClientBase import SSHClientBase class SSHClientFactory(j.baseclasses.object_config_collection_testtools): __jslocation__ = "j.clients.ssh" _CHILDCLASS = SSHClientBase _SCHEMATEXT = _CHILDCLA...
31.2
122
0.556366
585
4,524
4.205128
0.309402
0.058537
0.02439
0.021951
0.268293
0.17561
0.127642
0.127642
0.106504
0.106504
0
0.044739
0.283599
4,524
144
123
31.416667
0.714286
0.20336
0
0.156627
0
0
0.136016
0
0
0
0
0.006944
0.349398
1
0.036145
false
0
0.048193
0
0.168675
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647c690b82071beffb86046caafc6c207204c7e0
4,316
py
Python
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-10-01T14:22:32.000Z
2021-10-01T14:22:32.000Z
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:57:36.000Z
2021-03-16T13:57:36.000Z
taxcalc_arp/taxcalc/validation/taxsim27/prepare_taxcalc_input.py
hdoupe/Tax-Cruncher-ARP
c8c960c085d0883915f99ac2ea4630c928af4c16
[ "MIT" ]
1
2021-03-16T13:44:38.000Z
2021-03-16T13:44:38.000Z
""" Translates TAXSIM-27 input file to Tax-Calculator tc input file. """ # CODING-STYLE CHECKS: # pycodestyle prepare_tc_input.py # pylint --disable=locally-disabled prepare_tc_input.py import argparse import os import sys import numpy as np import pandas as pd def main(): """ High-level logic. """ #...
37.530435
78
0.599398
567
4,316
4.492063
0.356261
0.06596
0.02552
0.020024
0.180605
0.153514
0.080879
0.040832
0.040832
0.040832
0
0.060888
0.254171
4,316
114
79
37.859649
0.730351
0.181186
0
0.060241
0
0
0.220178
0
0
0
0
0
0.036145
1
0.024096
false
0
0.060241
0
0.144578
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647cfe0af9da296040c33beb3819d628a1608217
1,510
py
Python
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
124
2015-01-22T22:28:37.000Z
2022-02-26T23:12:06.000Z
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
345
2015-01-08T15:49:40.000Z
2022-03-29T08:33:00.000Z
tests/integration_tests/resources/plugins/mock-rest-plugin/setup.py
TS-at-WS/cloudify-manager
3e062e8dec16c89d2ab180d0b761cbf76d3f7ddc
[ "Apache-2.0" ]
77
2015-01-07T14:04:35.000Z
2022-03-07T22:46:00.000Z
# *************************************************************************** # * Copyright (c) 2013 GigaSpaces Technologies Ltd. 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 ...
33.555556
79
0.619868
181
1,510
5.093923
0.574586
0.065076
0.039046
0.034707
0
0
0
0
0
0
0
0.00821
0.193377
1,510
44
80
34.318182
0.748768
0.515894
0
0
0
0
0.156643
0
0
0
0
0
0
1
0.095238
false
0
0.095238
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
647d10de27c79bcb57ed12505d2e4cdc3b96770f
914
py
Python
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
null
null
null
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
null
null
null
python/privatelink-rds/stacks/vpc_stack.py
aarondodd/aws-cdk-examples
7ac382fe99656df19a4f96159c11e0aa546acaf4
[ "Apache-2.0" ]
1
2022-01-31T03:13:37.000Z
2022-01-31T03:13:37.000Z
from aws_cdk import ( core, aws_ec2 as ec2 ) class VpcStack(core.Stack): def __init__(self, scope: core.Construct, id: str, vpc_cidr, **kwargs ) -> None: super().__init__(scope, id, **kwargs) # SubnetType.ISOLATED used as we don't want Internet traffic possible for t...
29.483871
91
0.503282
91
914
4.846154
0.549451
0.122449
0.126984
0.145125
0.258503
0.258503
0.258503
0.258503
0
0
0
0.022018
0.40372
914
31
92
29.483871
0.787156
0.088621
0
0.148148
0
0
0.030048
0
0
0
0
0
0
1
0.037037
false
0
0.037037
0
0.111111
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
647ed57ed963f5240abc63291aaba067a117c593
2,266
py
Python
lifesaver/bot/config.py
slice/discord.py-lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
12
2017-12-21T03:44:52.000Z
2021-02-05T02:09:13.000Z
lifesaver/bot/config.py
slice/lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
9
2017-12-21T01:56:07.000Z
2020-12-31T00:01:20.000Z
lifesaver/bot/config.py
slice/lifesaver
00c38112a512efd964cbbf0533096eff0a29f79f
[ "MIT" ]
2
2017-12-21T01:52:07.000Z
2019-12-17T01:51:50.000Z
# encoding: utf-8 __all__ = ["BotConfig", "BotLoggingConfig"] from typing import Any, Dict, List, Optional, Union from lifesaver.config import Config YES_EMOJI = "\N{WHITE HEAVY CHECK MARK}" NO_EMOJI = "\N{CROSS MARK}" OK_EMOJI = "\N{OK HAND SIGN}" DEFAULT_EMOJIS = { "generic": {"yes": YES_EMOJI, "no": NO_EMOJ...
27.634146
83
0.660194
309
2,266
4.757282
0.443366
0.013605
0.02449
0.030612
0.058503
0.027211
0
0
0
0
0
0.00057
0.225508
2,266
81
84
27.975309
0.837037
0.440424
0
0
0
0
0.162641
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.766667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64808ef89b84bb0c8f0cd239793909c476cae64b
1,162
py
Python
function_zoo.py
RamiroFuentes/Procesos-de-separacion-II
d68873f8ee3e9eb081f1040f9510335746b1a0b4
[ "MIT" ]
null
null
null
function_zoo.py
RamiroFuentes/Procesos-de-separacion-II
d68873f8ee3e9eb081f1040f9510335746b1a0b4
[ "MIT" ]
null
null
null
function_zoo.py
RamiroFuentes/Procesos-de-separacion-II
d68873f8ee3e9eb081f1040f9510335746b1a0b4
[ "MIT" ]
null
null
null
# Librerias import numpy as np from numpy import poly1d,polyfit import matplotlib.pyplot as plt from sympy import Symbol import pandas as pd # Para imprimir en formato LaTex from sympy.interactive import printing printing.init_printing(use_latex=True) def Rachford_Rice_4(z,k,Li,Ls,p): psi = np.arange(Li,Ls+p,...
24.208333
168
0.557659
252
1,162
2.337302
0.238095
0.020374
0.025467
0.027165
0.120543
0.101868
0.039049
0.027165
0
0
0
0.067285
0.258176
1,162
48
169
24.208333
0.616009
0.035284
0
0.162162
0
0
0
0
0
0
0
0
0
1
0.135135
false
0
0.162162
0
0.432432
0.054054
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6480abc07da7997c5213c7de64b16b108725ed90
840
py
Python
Python/lc_523_continuous_subarray_sum.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
6
2019-07-01T22:03:25.000Z
2020-04-06T15:17:46.000Z
Python/lc_523_continuous_subarray_sum.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
null
null
null
Python/lc_523_continuous_subarray_sum.py
cmattey/leetcode_problems
fe57e668db23f7c480835c0a10f363d718fbaefd
[ "MIT" ]
1
2020-04-01T22:31:41.000Z
2020-04-01T22:31:41.000Z
# Time: O(n) # Space: O(n) , min(n,k) since only storing num%k element in map. class Solution: def checkSubarraySum(self, nums: List[int], k: int) -> bool: """ Lots of edge cases to take care of with 0. if a%k == b%k, then b-a%k==0 eg: if a%k==3, b%k==3, then (a+3)%k==0, (b+3)%k==0,...
30
122
0.492857
137
840
2.963504
0.437956
0.118227
0.022167
0.029557
0.036946
0
0
0
0
0
0
0.032075
0.369048
840
27
123
31.111111
0.733962
0.39881
0
0
0
0
0
0
0
0
0
0
0
1
0.066667
false
0
0
0
0.266667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
648156a0f59f1f2c08d7464a8925a30d4b6a2f12
1,180
py
Python
api/routers/gifs.py
janaSunrise/AIO-API-discord-bots
e280959f7023bb9d745c843e823b980ccf627438
[ "Apache-2.0" ]
2
2021-02-13T08:08:23.000Z
2021-05-09T13:10:54.000Z
api/routers/gifs.py
janaSunrise/AIO-API-discord-bots
e280959f7023bb9d745c843e823b980ccf627438
[ "Apache-2.0" ]
null
null
null
api/routers/gifs.py
janaSunrise/AIO-API-discord-bots
e280959f7023bb9d745c843e823b980ccf627438
[ "Apache-2.0" ]
1
2021-04-17T19:44:52.000Z
2021-04-17T19:44:52.000Z
from fastapi import APIRouter, Request from api.core import log_error router = APIRouter( prefix="/gifs", tags=["GIF generation endpoints"], responses={ 404: {"description": "Not found"}, }, ) # -- Router paths -- @router.get("/wink") @log_error() async def wink(request: Request) -> dict: ...
24.081633
88
0.64322
164
1,180
4.54878
0.292683
0.120643
0.052279
0.064343
0.66756
0.66756
0.55496
0.55496
0.55496
0.55496
0
0.003132
0.188136
1,180
48
89
24.583333
0.775574
0.015254
0
0.4
0
0
0.178108
0
0
0
0
0
0
1
0
false
0
0.066667
0
0.166667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6483fef3d85844e7f3c1dc2eb3bf6958fc1d4faa
565
py
Python
feature_extract_pc/demo.py
zzc-1998/NR-3DQA
4773b598a92f707892fabafd7061b758dfb37508
[ "MIT" ]
5
2021-08-04T08:24:28.000Z
2022-02-16T15:30:18.000Z
feature_extract_pc/demo.py
zzc-1998/NR-QA-for-point-cloud
4773b598a92f707892fabafd7061b758dfb37508
[ "MIT" ]
null
null
null
feature_extract_pc/demo.py
zzc-1998/NR-QA-for-point-cloud
4773b598a92f707892fabafd7061b758dfb37508
[ "MIT" ]
null
null
null
from feature_extract import get_feature_vector import time #demo objpath = "models/hhi_5.ply" start = time.time() features = get_feature_vector(objpath) end = time.time() time_cost = end-start #show the features cnt = 0 for feature_domain in ['l','a','b','curvature','anisotropy','linearity','planarity','sphericity']...
29.736842
106
0.661947
77
565
4.714286
0.623377
0.066116
0.088154
0
0
0
0
0
0
0
0
0.022727
0.143363
565
18
107
31.388889
0.727273
0.037168
0
0
0
0
0.245387
0
0
0
0
0
0
1
0
false
0
0.153846
0
0.153846
0.153846
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64850fc8936473f12079768631779f5e9426371c
784
py
Python
docs/pyxamples/glyphs.py
JuliaPackageMirrors/Bokeh.jl
47ec974a2759f81069e5143d74c22876e60f8ec2
[ "MIT", "BSD-3-Clause" ]
31
2015-02-23T03:21:48.000Z
2017-05-13T13:10:22.000Z
docs/pyxamples/glyphs.py
JuliaPackageMirrors/Bokeh.jl
47ec974a2759f81069e5143d74c22876e60f8ec2
[ "MIT", "BSD-3-Clause" ]
35
2015-01-03T16:38:01.000Z
2017-05-19T19:55:14.000Z
docs/pyxamples/glyphs.py
JuliaPackageMirrors/Bokeh.jl
47ec974a2759f81069e5143d74c22876e60f8ec2
[ "MIT", "BSD-3-Clause" ]
13
2015-01-06T12:38:32.000Z
2017-05-16T05:54:38.000Z
import numpy as np from bokeh.plotting import * N = 100 x = np.linspace(0, 4*np.pi, N) y = np.sin(x) output_file("glyphs.html", title="glyphs.py example") TOOLS = "pan,wheel_zoom,box_zoom,reset,save,box_select" p2 = figure(title="Another Legend Example", tools=TOOLS) p2.circle(x, y, legend="sin(x)") p2.line(x, y...
23.757576
56
0.690051
142
784
3.71831
0.415493
0.045455
0.039773
0.041667
0.225379
0.225379
0.225379
0.225379
0.155303
0.155303
0
0.033333
0.119898
784
33
57
23.757576
0.731884
0
0
0.086957
0
0
0.202548
0.057325
0
0
0
0
0
1
0
false
0
0.173913
0
0.173913
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
64855ec485719a4209443f6e47f00e7cc576af85
2,103
py
Python
unit_tests/test_main.py
cloverleaf/npm
4845bc7e483291f2a2a847c242613bae2c6a11d2
[ "MIT" ]
null
null
null
unit_tests/test_main.py
cloverleaf/npm
4845bc7e483291f2a2a847c242613bae2c6a11d2
[ "MIT" ]
4
2021-01-29T11:17:53.000Z
2021-09-04T16:01:28.000Z
unit_tests/test_main.py
cloverleaf/npm
4845bc7e483291f2a2a847c242613bae2c6a11d2
[ "MIT" ]
1
2021-11-23T09:59:36.000Z
2021-11-23T09:59:36.000Z
import pytest import json import subprocess defaultMinLength = 4 defaultMaxLength = 512 sites = {} with open("../data/sites.json", 'r') as json_file: sites = json.load(json_file) def test_lengths(): for length in range(defaultMinLength, defaultMaxLength): batcmd = "node -e \"consol...
31.38806
136
0.555873
225
2,103
5.128889
0.32
0.055459
0.034662
0.028596
0.214038
0.175043
0.175043
0.175043
0.105719
0.105719
0
0.006689
0.289111
2,103
66
137
31.863636
0.765217
0.018069
0
0.1
0
0
0.127191
0
0
0
0
0
0.075
1
0.075
false
0.05
0.075
0
0.15
0.05
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0