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
6a8b93de9ef615a88be0dad5abda769599f3cf01
2,886
py
Python
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
neptune/internal/client_library/job_development_api/image.py
jiji-online/neptune-cli
50cf680a80d141497f9331ab7cdaee49fcb90b0c
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright (c) 2016, deepsense.io # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
26.722222
93
0.647263
359
2,886
5.111421
0.389972
0.038147
0.035967
0.027793
0.124251
0.091553
0.091553
0.059946
0.059946
0.059946
0
0.007597
0.27027
2,886
107
94
26.971963
0.863723
0.469508
0
0.081081
0
0
0.006329
0
0
0
0
0
0
1
0.135135
false
0
0.189189
0
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8e67d20152ca7acb56c8c6199b1999e7f99406
500
py
Python
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
4
2020-01-26T17:22:05.000Z
2020-08-15T12:23:31.000Z
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
3
2020-01-27T18:10:06.000Z
2020-03-31T10:56:03.000Z
pybyte/session.py
ms7m/py-byte
c5872ff5b8536160d8cbd7f88406ed593113e77d
[ "MIT" ]
2
2020-01-27T17:59:45.000Z
2020-02-01T16:43:53.000Z
import requests class ByteSession(object): def __init__(self, token, providedSession=False): self._userToken = token if providedSession == False: self._session = requests.session() else: self._session = providedSession self._session.headers = { ...
26.315789
91
0.594
54
500
5.333333
0.62963
0.152778
0.166667
0
0
0
0
0
0
0
0
0.034091
0.296
500
19
92
26.315789
0.784091
0
0
0
0
0.071429
0.172
0
0
0
0
0
0
1
0.142857
false
0
0.071429
0.071429
0.357143
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8f6efd4560f4b302cef1f8c07a3c86f509c35d
642
py
Python
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
debugging/code/multiprocess_main.py
awesome-archive/python-debugging-skills
69af455302a805d6f198a06ea934f79d5913cb3e
[ "MIT" ]
null
null
null
# -*- encoding: utf-8 -*- import multiprocessing as mp import time from pudb.remote import set_trace def worker(worker_id): """ Simple worker process""" i = 0 while i < 10: if worker_id == 1: # debug process with id 1 set_trace(term_size=(80, 24)) time.sleep(1) # represents ...
22.928571
57
0.573209
91
642
3.868132
0.538462
0.068182
0
0
0
0
0
0
0
0
0
0.030973
0.29595
642
27
58
23.777778
0.747788
0.17134
0
0
0
0
0.051724
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0
0.210526
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a8fb5db5439c528b72c62e081f71f595115b9ad
1,317
py
Python
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
lldb/packages/Python/lldbsuite/test/expression_command/anonymous-struct/TestCallUserAnonTypedef.py
bytesnake/Enzyme
247606c279920d476645d2e319e574bf8be10fc9
[ "Apache-2.0" ]
null
null
null
""" Test calling user defined functions using expression evaluation. This test checks that typesystem lookup works correctly for typedefs of untagged structures. Ticket: https://llvm.org/bugs/show_bug.cgi?id=26790 """ from __future__ import print_function import lldb from lldbsuite.test.decorators import * from lld...
28.021277
85
0.658314
148
1,317
5.695946
0.648649
0.046263
0.060498
0.054567
0
0
0
0
0
0
0
0.01291
0.235383
1,317
46
86
28.630435
0.82423
0.230068
0
0
0
0
0.105894
0
0
0
0
0
0
1
0.071429
false
0
0.178571
0
0.321429
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
6a920dacf31156e85a0fcebb52765a1d1ca683fe
2,255
py
Python
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
2
2018-08-17T15:47:36.000Z
2018-09-13T13:58:34.000Z
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
35
2018-07-24T11:42:53.000Z
2021-06-10T20:34:41.000Z
authors/apps/notifications/views.py
andela/ah-backend-spaces-
58e031a96a6b9555f1a4133cf8cb688c236d3f3b
[ "BSD-3-Clause" ]
3
2018-07-17T13:05:35.000Z
2018-09-06T16:03:52.000Z
from rest_framework import status from rest_framework.generics import ( RetrieveUpdateAPIView, CreateAPIView, RetrieveUpdateDestroyAPIView ) from rest_framework.permissions import AllowAny, IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from ..authenticatio...
34.692308
93
0.73082
228
2,255
7.083333
0.407895
0.024768
0.052632
0.04582
0.054489
0
0
0
0
0
0
0.004442
0.20133
2,255
64
94
35.234375
0.892282
0.180044
0
0.054054
0
0
0.067334
0
0
0
0
0
0
1
0.054054
false
0
0.27027
0
0.459459
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a95707999c6dd8d718ea3549fc898fb5e496ed8
965
py
Python
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
455
2018-12-09T01:57:46.000Z
2022-03-22T01:56:47.000Z
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
136
2019-04-19T08:24:27.000Z
2022-03-28T01:39:19.000Z
python/flexflow/keras/datasets/cifar.py
zmxdream/FlexFlow
7ea50d71a02e853af7ae573d88c911511b3e82e0
[ "Apache-2.0" ]
102
2018-12-22T07:38:05.000Z
2022-03-30T06:04:39.000Z
# -*- coding: utf-8 -*- """Utilities common to CIFAR10 and CIFAR100 datasets. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import sys from six.moves import cPickle def load_batch(fpath, label_key='labels'): """Internal utility for parsing CIFAR ...
26.081081
53
0.586528
126
965
4.31746
0.547619
0.055147
0.088235
0.047794
0
0
0
0
0
0
0
0.022355
0.304663
965
37
54
26.081081
0.788376
0.295337
0
0
0
0
0.032864
0
0
0
0
0
0
1
0.052632
false
0
0.263158
0
0.368421
0.052632
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a96000d55f22510def511958af1f99b01dba806
523
py
Python
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
1
2020-12-18T16:06:25.000Z
2020-12-18T16:06:25.000Z
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
null
null
null
day7/p2.py
Seralpa/Advent-of-code
9633624e4ff48c50d8be3deac54c83059e9c3b04
[ "MIT" ]
null
null
null
def getNumBags(color): if color=='': return 0 numBags=1 for bag in rules[color]: numBags+=bag[1]*getNumBags(bag[0]) return numBags with open('day7/input.txt') as f: rules=dict([l.split(' contain') for l in f.read().replace(' bags', '').replace(' bag', '').replace('.', '').replace(' ...
40.230769
153
0.596558
79
523
3.949367
0.506329
0.067308
0.044872
0
0
0
0
0
0
0
0
0.02331
0.179732
523
13
154
40.230769
0.703963
0.059273
0
0
0
0
0.111789
0
0
0
0
0
0
1
0.083333
false
0
0
0
0.25
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9611abd97c536f926ca250cbefadb44ebcbbc2
471
py
Python
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
adv/luther.py
6tennis/dl
69eb7e71da9fabe9e7ec40c461b525b4f967f345
[ "Apache-2.0" ]
null
null
null
from core.advbase import * from slot.d import * def module(): return Luther class Luther(Adv): a1 = ('cc',0.10,'hit15') conf = {} conf ['slots.d'] = Leviathan() conf['acl'] = """ `dragon `s1 `s2, seq=5 and cancel `s3, seq=5 and cancel or fsc `fs, seq=5 ...
20.478261
44
0.552017
64
471
3.875
0.703125
0.048387
0.056452
0.104839
0
0
0
0
0
0
0
0.035821
0.288747
471
23
45
20.478261
0.704478
0
0
0
0
0
0.336864
0
0
0
0
0
0
1
0.052632
false
0
0.157895
0.052632
0.473684
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9615693970b5561756763d7533ebc0f325ce0c
21,646
py
Python
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
wandb/sdk/data_types/image.py
macio232/client
295380c99b1a0946470672d40348b17a674ad17f
[ "MIT" ]
null
null
null
import hashlib from io import BytesIO import logging import os from typing import Any, cast, Dict, List, Optional, Sequence, Type, TYPE_CHECKING, Union from pkg_resources import parse_version import wandb from wandb import util from ._private import MEDIA_TMP from .base_types.media import BatchableMedia, Media from ....
36.688136
119
0.572438
2,602
21,646
4.567256
0.154112
0.01969
0.013632
0.007152
0.241669
0.186974
0.171491
0.153315
0.146415
0.141535
0
0.007541
0.326111
21,646
589
120
36.750424
0.807157
0.130832
0
0.205357
0
0
0.09162
0.002533
0
0
0
0.003396
0
1
0.049107
false
0.002232
0.044643
0.006696
0.169643
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a961a7708b268c3d81ea73ab8b93515bd578d6c
669
py
Python
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
1
2021-07-29T05:29:06.000Z
2021-07-29T05:29:06.000Z
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
null
null
null
src/ACC_Backend_Utils.py
skostic14/isda-racing-backend
41b5f9760dc17a29aa8ab5e4cc1894a27496a72c
[ "Apache-2.0" ]
null
null
null
import datetime # Gets time from milliseconds # Returns string formatted as HH:MM:SS:mmm, MM:SS:mmm or S:mmm, depending on the time. def get_time_from_milliseconds(milli): milliseconds = milli % 1000 seconds= (milli//1000)%60 minutes= (milli//(1000*60))%60 hours= (milli//(1000*60*60))%24 if hours...
35.210526
87
0.651719
95
669
4.536842
0.442105
0.083527
0.076566
0.060325
0.143852
0
0
0
0
0
0
0.085343
0.19432
669
19
88
35.210526
0.714286
0.230194
0
0
0
0
0.09375
0
0
0
0
0
0
1
0.153846
false
0
0.076923
0.076923
0.538462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a961b6b72524b941aa7777c8c1e4c9ea87f76f0
2,721
py
Python
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
3
2015-01-17T23:15:04.000Z
2015-05-26T14:11:44.000Z
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
7
2015-03-23T23:33:02.000Z
2019-02-09T00:19:41.000Z
examples/advanced/pidigits.py
ovolve/sympy
0a15782f20505673466b940454b33b8014a25c13
[ "BSD-3-Clause" ]
1
2019-10-18T12:39:41.000Z
2019-10-18T12:39:41.000Z
#!/usr/bin/env python """Pi digits example Example shows arbitrary precision using mpmath with the computation of the digits of pi. """ from mpmath import libmp, pi from mpmath import functions as mpf_funs import math from time import clock import sys def display_fraction(digits, skip=0, colwidth=10, columns=5): ...
30.233333
119
0.602352
374
2,721
4.323529
0.347594
0.024737
0.018553
0.022263
0.092764
0
0
0
0
0
0
0.024863
0.260933
2,721
89
120
30.573034
0.779214
0.108416
0
0.134328
0
0.014925
0.170905
0
0
0
0
0
0
1
0.059701
false
0
0.074627
0
0.134328
0.208955
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a97a004a7c418b0d32aaf5764a1c6b24a50f26a
10,580
py
Python
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
2
2015-08-13T00:07:49.000Z
2020-08-07T06:38:44.000Z
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
null
null
null
tempest/hacking/checks.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
3
2016-08-30T06:53:54.000Z
2021-03-22T16:54:39.000Z
# Copyright 2013 IBM Corp. # # 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...
31.963746
79
0.636578
1,338
10,580
4.85426
0.189088
0.047421
0.036952
0.015242
0.36736
0.288068
0.182448
0.162125
0.105158
0.091917
0
0.017672
0.261909
10,580
330
80
32.060606
0.814061
0.180246
0
0.356757
0
0
0.226009
0.061295
0
0
0
0
0
1
0.086486
false
0
0.064865
0
0.302703
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a98547230e4cc83fa248137ca0fde09ebb67dcf
1,018
py
Python
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/6a98547230e4cc83fa248137ca0fde09ebb67dcfController.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
import SimpleXMLRPCServer import sys import logging from K8055Controller import K8055Controller logging.basicConfig() controller_log = logging.getLogger("Controller") class Controller: def __init__(self): self.k8055 = K8055Controller() controller_log.debug("initialized") def reset(s...
24.829268
77
0.634578
118
1,018
5.322034
0.364407
0.085987
0.11465
0.044586
0.175159
0
0
0
0
0
0
0.067639
0.259332
1,018
41
78
24.829268
0.765252
0
0
0.125
0
0
0.068695
0
0
0
0
0
0
1
0.15625
false
0
0.125
0
0.4375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9a4141ccd8a77a2a296371f9b8eb6510494db4
1,487
py
Python
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
40
2019-07-31T03:21:03.000Z
2022-03-29T23:57:19.000Z
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
27
2019-08-07T06:40:15.000Z
2022-03-21T18:46:49.000Z
tokendito/tool.py
pcmxgti/tokendito
c1672917b1b95e463c5bdf8e9c3c039189da8e42
[ "Apache-2.0" ]
16
2019-07-31T14:22:04.000Z
2022-02-16T12:55:27.000Z
# vim: set filetype=python ts=4 sw=4 # -*- coding: utf-8 -*- """This module retrieves AWS credentials after authenticating with Okta.""" from __future__ import absolute_import, division, print_function, unicode_literals import logging from future import standard_library from tokendito import aws_helpers from tokendit...
31.638298
88
0.774042
190
1,487
5.784211
0.442105
0.029117
0.069154
0.076433
0.263876
0.216561
0.216561
0.10737
0
0
0
0.002414
0.164089
1,487
46
89
32.326087
0.881738
0.228648
0
0
0
0
0.090989
0
0
0
0
0
0
1
0.038462
false
0.038462
0.269231
0
0.307692
0.038462
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9c07074d315021100d6322a18c6bc3087be1db
15,833
py
Python
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
ir_datasets/formats/trec.py
cakiki/ir_datasets
7f9f8e9ff62e49d40383220ecc2daa250695d267
[ "Apache-2.0" ]
null
null
null
import io import codecs import tarfile import re import gzip import xml.etree.ElementTree as ET from fnmatch import fnmatch from pathlib import Path from typing import NamedTuple import ir_datasets from ir_datasets.indices import PickleLz4FullStore from .base import GenericDoc, GenericQuery, GenericScoredDoc, BaseDocs,...
38.429612
284
0.55978
1,860
15,833
4.52043
0.130108
0.02676
0.028306
0.022479
0.489653
0.442793
0.410442
0.393911
0.373335
0.354781
0
0.002943
0.334681
15,833
411
285
38.523114
0.795234
0.0108
0
0.439437
0
0.005634
0.077095
0.010731
0
0
0
0
0.005634
1
0.112676
false
0
0.033803
0.061972
0.312676
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9c552700ad0a75cac33278ee8dc5a5139c2432
844
py
Python
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
3
2021-12-10T21:13:47.000Z
2021-12-10T23:36:18.000Z
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
1
2022-01-06T20:59:07.000Z
2022-01-06T20:59:07.000Z
textpand/download.py
caufieldjh/textpand-for-kgs
42853c53c5a4cc06fbd745c147d02fe7916690fa
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from .utils import download_from_yaml def download(output_dir: str, snippet_only: bool, ignore_cache: bool = False) -> None: """Downloads data files from list of URLs (default: download.yaml) into data directory (default: data/). Args: output_dir: A str...
31.259259
108
0.625592
107
844
4.775701
0.523364
0.107632
0.062622
0.086106
0
0
0
0
0
0
0
0.003367
0.296209
844
26
109
32.461538
0.856902
0.491706
0
0
0
0
0.033079
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.375
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9cb003c79f63e5985173912dffc928314248d4
6,770
py
Python
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
1
2020-01-22T13:11:23.000Z
2020-01-22T13:11:23.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
12
2020-02-21T07:24:52.000Z
2020-04-14T09:54:32.000Z
venv/lib/python3.6/site-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_autosupport_invoke.py
usegalaxy-no/usegalaxy
75dad095769fe918eb39677f2c887e681a747f3a
[ "MIT" ]
null
null
null
#!/usr/bin/python # (c) 2020, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) ''' na_ontap_autosupport_invoke ''' from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { 'metadata_version': '1.1', 's...
34.365482
109
0.644018
816
6,770
5.121324
0.264706
0.034219
0.021536
0.022733
0.24001
0.152668
0.135918
0.116774
0.104092
0.056234
0
0.005343
0.253619
6,770
196
110
34.540816
0.82169
0.042393
0
0.167742
0
0
0.275793
0.030317
0
0
0
0
0
1
0.045161
false
0.012903
0.045161
0
0.109677
0.006452
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9cd0c545ed5aa451bbc0bc26a2e800d471ecd0
304
py
Python
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
562
2015-02-20T08:25:24.000Z
2021-11-12T19:58:44.000Z
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
129
2015-02-20T07:41:14.000Z
2022-02-17T21:14:40.000Z
tests/api/serializer/test_user.py
armandomeeuwenoord/freight
31ae2fa9252ab0b25385abd04742475e6671e3b1
[ "Apache-2.0" ]
54
2015-02-28T01:12:23.000Z
2021-03-02T11:14:52.000Z
from freight.api.serializer import serialize from freight.testutils import TestCase class UserSerializerTest(TestCase): def test_simple(self): user = self.create_user() result = serialize(user) assert result["id"] == str(user.id) assert result["name"] == user.name
25.333333
44
0.680921
36
304
5.694444
0.583333
0.107317
0
0
0
0
0
0
0
0
0
0
0.213816
304
11
45
27.636364
0.857741
0
0
0
0
0
0.019737
0
0
0
0
0
0.25
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9cdc6c74a18d65dd44c9480dd5e3953a78dd18
1,639
py
Python
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
2
2020-10-12T11:33:00.000Z
2021-12-20T06:33:54.000Z
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
null
null
null
binning/pozo_5m_class_dem.py
UP-RS-ESP/GEW-DAP04-WS201819
18341620d9168e1eec476af1d8f568cf0017bf56
[ "MIT" ]
null
null
null
import sys import numpy as np from matplotlib import pyplot as pl from rw import WriteGTiff fn = '../pozo-steep-vegetated-pcl.npy' pts = np.load(fn) x, y, z, c = pts[:, 0], pts[:, 1], pts[:, 2], pts[:, 5] ix = (0.2 * (x - x.min())).astype('int') iy = (0.2 * (y - y.min())).astype('int') shape = (100, 100) xb = np.aran...
30.351852
59
0.52349
287
1,639
2.916376
0.344948
0.021505
0.019116
0.021505
0.203106
0.160096
0.121864
0.076464
0
0
0
0.040765
0.266626
1,639
53
60
30.924528
0.655574
0
0
0
0
0
0.110433
0.064674
0
0
0
0
0
1
0
false
0
0.086957
0
0.086957
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
6a9cfc593e93acc1f1c0f3afda04be08e714940c
2,228
py
Python
comtypes/_meta.py
phuslu/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
23
2015-05-28T15:31:35.000Z
2022-02-16T07:51:34.000Z
comtypes/_meta.py
kar98kar/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
3
2020-05-19T03:00:52.000Z
2020-11-03T09:22:51.000Z
comtypes/_meta.py
kar98kar/pyMSAA
611bc4c31e0d6ba36f0f0bebdc6e6be14b994eb0
[ "MIT" ]
13
2016-08-26T23:00:40.000Z
2022-03-03T09:58:36.000Z
# comtypes._meta helper module from ctypes import POINTER, c_void_p, cast import comtypes ################################################################ # metaclass for CoClass (in comtypes/__init__.py) def _wrap_coclass(self): # We are an IUnknown pointer, represented as a c_void_p instance, # but...
35.935484
85
0.601436
267
2,228
4.64794
0.389513
0.024174
0.029009
0.037067
0.038678
0
0
0
0
0
0
0.001266
0.290844
2,228
61
86
36.52459
0.784177
0.342908
0
0.066667
0
0
0.056274
0.018251
0
0
0
0
0
1
0.1
false
0.033333
0.1
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9da9d2fe8534cba2998ec7d3c2190abe55abec
5,190
py
Python
deep_sdf/workspace.py
huajian1069/non-convex_optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
2
2020-10-12T19:22:50.000Z
2021-08-21T21:48:27.000Z
deep_sdf/workspace.py
huajian1069/non-convex_optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
13
2020-04-17T09:07:06.000Z
2020-07-25T19:43:44.000Z
deep_sdf/workspace.py
huajian1069/non-convex-optimisation
cf4cd5070524c3f7e6b814fe9b85a15a06e7b8db
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import json import os import torch model_params_subdir = "ModelParameters" optimizer_params_subdir = "OptimizerParameters" latent_codes_subdir = "LatentCodes" logs_filename = "Logs.pth" reconstructions_subdir = "Reconstructions" reconstruc...
25.566502
82
0.7158
608
5,190
5.807566
0.205592
0.030586
0.031153
0.050977
0.464741
0.435004
0.337581
0.306429
0.29595
0.29595
0
0.001431
0.1921
5,190
202
83
25.693069
0.840687
0.014451
0
0.315385
0
0
0.110307
0.004498
0
0
0
0
0
1
0.1
false
0
0.030769
0.030769
0.238462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9e779e59feb114fa5c597307d0f0ba536c3a82
1,571
py
Python
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
9
2020-09-26T01:09:35.000Z
2022-02-10T01:32:30.000Z
EmoPy/EmoPy/examples/convolutional_dropout_model.py
Rahmatullina/FinalYearProject
326f521b9f600dbbc7ace2223bd5aafc79b2267c
[ "Apache-2.0" ]
null
null
null
from EmoPy.src.fermodel import FERModel from EmoPy.src.directory_data_loader import DirectoryDataLoader from EmoPy.src.csv_data_loader import CSVDataLoader from EmoPy.src.data_generator import DataGenerator from EmoPy.src.neuralnets import ConvolutionalNNDropout from sklearn.model_selection import train_test_split impo...
38.317073
121
0.789306
200
1,571
5.915
0.385
0.038039
0.050719
0.037194
0.062553
0.062553
0.062553
0
0
0
0
0.011315
0.099936
1,571
40
122
39.275
0.825318
0.091661
0
0
0
0
0.122191
0.023174
0
0
0
0
0
1
0
false
0
0.275862
0
0.275862
0.172414
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9f71d63576d36e576c5ed1a561ba09b6a33e88
45,622
py
Python
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
18
2021-02-09T11:07:57.000Z
2022-03-16T12:35:34.000Z
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
null
null
null
deepstream_ignition_usb_yolo.py
valdivj/Deepstream-IGN-Maker-YOLO
f38ece731e9797a525da932c3da2de77e48f45af
[ "Unlicense" ]
3
2021-02-11T00:23:56.000Z
2021-11-16T02:15:37.000Z
#!/usr/bin/env python3 ################################################################################ # Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"),...
46.410987
849
0.645829
5,676
45,622
5.037703
0.141473
0.039903
0.062321
0.033154
0.495524
0.41827
0.38585
0.351193
0.345632
0.326467
0
0.026393
0.242602
45,622
982
850
46.458248
0.801123
0.260883
0
0.109855
0
0
0.134868
0.002756
0
0
0
0.001018
0
1
0.012924
false
0.004847
0.021002
0
0.090469
0.051696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6a9fcd8ecc089595a2ffc3a48b4ee67000ac218d
799
py
Python
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
src/pyams_i18n/tests/__init__.py
Py-AMS/pyams-i18n
dbb3953302311977653145385af02e4d1ae41431
[ "ZPL-2.1" ]
null
null
null
# # Copyright (c) 2015-2019 Thierry Florac <tflorac AT ulthar.net> # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # WARRAN...
26.633333
75
0.740926
116
799
5.008621
0.681034
0.086059
0.048193
0
0
0
0
0
0
0
0
0.019817
0.178974
799
29
76
27.551724
0.865854
0.664581
0
0
0
0
0.065306
0
0
0
0
0
0
1
0.125
false
0
0.25
0
0.5
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa02482ee4345f8d62c98b8785e029ed85945dd
1,639
py
Python
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
null
null
null
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
null
null
null
tqsdk/demo/example/momentum.py
boyscout2008/tqsdk-python
79496a938a44f79ea9164569637509d0cc7db70a
[ "Apache-2.0" ]
1
2020-11-20T01:19:11.000Z
2020-11-20T01:19:11.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- __author__ = "Ringo" ''' 价格动量 策略 (难度:初级) 参考: https://www.shinnytech.com/blog/momentum-strategy/ 注: 该示例策略仅用于功能示范, 实盘时请根据自己的策略/经验进行修改 ''' from tqsdk import TqAccount, TqApi, TargetPosTask # 设置指定合约,获取N条K线计算价格动量 SYMBOL = "SHFE.au1912" N = 15 api = TqApi() klines = api.get_...
26.015873
90
0.621721
216
1,639
4.560185
0.523148
0.040609
0.036548
0.054822
0.117767
0.054822
0
0
0
0
0
0.064673
0.245272
1,639
62
91
26.435484
0.731609
0.145821
0
0.058824
0
0
0.065882
0
0
0
0
0
0
1
0.029412
false
0
0.029412
0
0.088235
0.147059
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa1d7c9f54267d6e42717a153600f7e111a7f9f
10,323
py
Python
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
null
null
null
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
null
null
null
color_transfer/__init__.py
AdamSpannbauer/color_transfer
155e0134615f35bf19bf32f4cacf056603604914
[ "MIT" ]
1
2020-11-05T17:35:14.000Z
2020-11-05T17:35:14.000Z
# import the necessary packages import numpy as np import cv2 import imutils def color_transfer(source, target, clip=True, preserve_paper=True): """ Transfers the color distribution from the source to the target image using the mean and standard deviations of the L*a*b* color space. This implemen...
36.477032
105
0.657173
1,447
10,323
4.569454
0.213545
0.040835
0.048699
0.025408
0.277374
0.202511
0.161978
0.161978
0.156534
0.148367
0
0.032266
0.252446
10,323
282
106
36.606383
0.824543
0.473215
0
0.163462
0
0
0.013559
0
0
0
0
0
0
1
0.067308
false
0
0.028846
0.009615
0.163462
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa21222a53d441e6c157bad6965004f0771b6e4
250
py
Python
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
Python/Tree/TestCreateTreeLibraryImport.py
zseen/hackerrank-challenges
c154f039f58073ee3d94d012462c7055e68784b2
[ "MIT" ]
null
null
null
from Library.CreateATree import CreateATree tree = CreateATree.BinarySearchTree() nodesList = list((4, 5, 1, 3, 2)) for i in range(0, len(nodesList)): tree.insert(nodesList[i]) #tree.printInorder() tree.printPreorder() #tree.printPostorder()
19.230769
43
0.732
32
250
5.71875
0.71875
0
0
0
0
0
0
0
0
0
0
0.027397
0.124
250
12
44
20.833333
0.808219
0.16
0
0
0
0
0
0
0
0
0
0
0
1
0
false
0
0.166667
0
0.166667
0.166667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa25f7e4d64679c81ca1e60dffb6ddf922f9c4c
522
py
Python
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
application/siteApp/urls.py
Marcelotsvaz/vaz-projects
8ccc0bf8d25f9276714e1e5ecb0a4e80f07442b4
[ "Unlicense" ]
null
null
null
# # VAZ Projects # # # Author: Marcelo Tellier Sartori Vaz <marcelotsvaz@gmail.com> from django.urls import path from . import views app_name = 'siteApp' urlpatterns = [ path( '', views.Home.as_view(), name = 'home' ), path( 'about-me', views.About_me.as_view(), name = 'about_me' ), path( 'searc...
23.727273
77
0.628352
68
522
4.705882
0.426471
0.09375
0.15625
0.10625
0.19375
0.19375
0.19375
0
0
0
0
0
0.189655
522
22
78
23.727273
0.756501
0.143678
0
0
0
0
0.192744
0.049887
0
0
0
0
0
1
0
false
0
0.2
0
0.2
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa2cafc9ca0f9283336142e3b81fea44a3587b3
1,286
py
Python
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
Classes/ServiceBase.py
tkeske/SMS-Fetcher
7b3ec0ea4517ad11164b8e2d7ee2c60d2a9f0ed2
[ "BSD-3-Clause" ]
null
null
null
''' @author Tomáš Keske @since 10.8.2019 ''' import sys from jnius import autoclass from Conf.Conf import * class ServiceBase(): def __init__(self): PythonServiceClass = autoclass('org.kivy.android.PythonService') self.Context = autoclass('android.content.Context') self.Service = Python...
32.15
98
0.667963
159
1,286
5.377358
0.603774
0.009357
0.011696
0.016374
0
0
0
0
0
0
0
0.008197
0.241058
1,286
40
99
32.15
0.867828
0.301711
0
0
0
0
0.171558
0.059819
0
0
0
0
0
1
0.1
false
0
0.15
0
0.3
0.2
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa359b860399eb8f9859835f9d9ac0f53b4de56
723
py
Python
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
api/queue/__init__.py
sofia008/api-redis-queue
8d65665c8a9f44990565baa8c7ba43d7f01425d3
[ "Apache-2.0" ]
null
null
null
# api/queue/__init__.py import os from flask import Flask from flask_bootstrap import Bootstrap # instantiate the extensions bootstrap = Bootstrap() def create_app(script_info=None): # instantiate the app app = Flask( __name__, template_folder="../client/templates", static_folder=...
19.026316
51
0.697095
89
723
5.404494
0.47191
0.037422
0
0
0
0
0
0
0
0
0
0
0.214385
723
37
52
19.540541
0.846831
0.200553
0
0
0
0
0.087719
0
0
0
0
0
0
1
0.058824
false
0
0.235294
0
0.352941
0.117647
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa447f55a379751c7664d4eb5818450b99462c4
2,183
py
Python
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
35
2020-06-26T21:06:13.000Z
2022-03-19T10:50:35.000Z
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
34
2020-04-27T02:59:40.000Z
2022-03-06T20:55:00.000Z
tests/test_engine.py
Foxboron/python-adblock
50b2ddba9f7b237b38c848c7d4a1637917444924
[ "Apache-2.0", "MIT" ]
6
2020-12-22T21:56:02.000Z
2022-02-16T02:13:21.000Z
import adblock import pytest SMALL_FILTER_LIST = """ ||wikipedia.org^ ||old.reddit.com^ ||lobste.rs^ """ def empty_engine(): return adblock.Engine(adblock.FilterSet()) def test_engine_creation_and_blocking(): filter_set = adblock.FilterSet(debug=True) filter_set.add_filter_list(SMALL_FILTER_LIST) e...
29.106667
78
0.724233
259
2,183
5.864865
0.366795
0.050691
0.04345
0.045425
0.267281
0.154049
0.154049
0
0
0
0
0.005008
0.176821
2,183
74
79
29.5
0.840289
0.045809
0
0.148148
0
0
0.101442
0
0
0
0
0
0.148148
1
0.092593
false
0
0.037037
0.018519
0.148148
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa55947380a65f7c24093ff3b3feee2ac3b5948
1,048
py
Python
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
1,723
2019-07-30T07:06:22.000Z
2022-03-31T15:22:22.000Z
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
213
2019-10-06T08:07:47.000Z
2021-10-04T15:38:36.000Z
data_structures/stack/largest_rectangle_area_in_histogram.py
ruler30cm/python-ds
f84605c5b746ea1d46de3d00b86f5fba399445c7
[ "MIT" ]
628
2019-10-06T10:26:25.000Z
2022-03-31T01:41:00.000Z
''' Largest rectangle area in a histogram:: Find the largest rectangular area possible in a given histogram where the largest rectangle can be made of a number of contiguous bars. For simplicity, assume that all bars have same width and the width is 1 unit. ''' def max_area_histogram(histogram): stack = list()...
28.324324
136
0.603053
147
1,048
4.176871
0.380952
0.102606
0.065147
0.04886
0.29316
0.29316
0.29316
0.29316
0.29316
0.29316
0
0.021651
0.294847
1,048
36
137
29.111111
0.809202
0.262405
0
0.3
0
0
0.019634
0
0
0
0
0
0
1
0.05
false
0
0
0
0.1
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
6aa72ed7ab8eb40be3928ae652b97a0368992b42
2,389
py
Python
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
null
null
null
auth_backend/src/key_op.py
cispa/bitahoy
ffc2004930a033cfb94d13671bc6068b473ce226
[ "MIT" ]
2
2021-12-30T16:48:15.000Z
2022-01-14T14:21:15.000Z
import sys import os import psycopg2 import base64 from cryptography.hazmat.primitives import serialization, hashes from cryptography.hazmat.primitives.asymmetric import padding, rsa from cryptography.hazmat.backends import default_backend import time if len(sys.argv) < 2: print("Please enter either create or rem...
45.942308
184
0.637505
286
2,389
5.251748
0.363636
0.051931
0.043941
0.04261
0.573901
0.573901
0.573901
0.573901
0.573901
0.573901
0
0.022124
0.243198
2,389
52
185
45.942308
0.808628
0.029301
0
0.342105
0
0
0.249784
0.009922
0
0
0
0
0
1
0
false
0
0.210526
0
0.210526
0.157895
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aa93bd0cfbc5bae7eaa0365dd95b7de863c0e17
653
py
Python
scripts/issue_param_value.py
Jhsmit/awesome-panel-extensions
41eba7cf84caa911be4ed0df2a96e16fc1e70263
[ "CC-BY-4.0" ]
3
2020-07-16T07:28:45.000Z
2020-07-17T12:53:56.000Z
scripts/issue_param_value.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
scripts/issue_param_value.py
MarcSkovMadsen/panel-extensions-template
f41ad8d8fb8502f87de3a4992917cbffb6299012
[ "CC-BY-4.0" ]
null
null
null
import panel as pn import param from awesome_panel_extensions.frameworks.fast import FastTemplate, FastTextInput WIDGETS = { "some_text": {"type": FastTextInput, "readonly": True, "sizing_mode": "fixed", "width": 400} } class ParameterizedApp(param.Parameterized): some_text = param.String(default="This is s...
27.208333
96
0.735069
73
653
6.328767
0.589041
0.069264
0
0
0
0
0
0
0
0
0
0.005338
0.139357
653
23
97
28.391304
0.816726
0
0
0
0
0
0.104135
0
0
0
0
0
0
1
0.066667
false
0
0.2
0
0.466667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aab6b3ba732d64220b4fb1bf6b4cc739254d1fe
1,019
py
Python
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
tests/pm/update_sla.py
supsi-dacd-isaac/parity-sidechain-interface
b64a5fb724955332afb4998344081d1b93ac216a
[ "MIT" ]
null
null
null
# Importing section import json import requests import argparse import hashlib import time from http import HTTPStatus # Main if __name__ == "__main__": arg_parser = argparse.ArgumentParser() args = arg_parser.parse_args() set_cmd = 'updateSla' params = { 'idx': 'sla04', ...
24.261905
80
0.617272
132
1,019
4.590909
0.5
0.046205
0.049505
0.066007
0.122112
0.122112
0.122112
0.122112
0.122112
0.122112
0
0.02474
0.24632
1,019
41
81
24.853659
0.764323
0.088322
0
0.142857
0
0
0.223784
0
0
0
0
0
0
1
0
false
0
0.214286
0
0.214286
0.178571
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aac1f4d092634d65b03e7c6699787370a84bac7
498
py
Python
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
null
null
null
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T19:09:01.000Z
2020-12-12T19:09:01.000Z
array/python3/5_move_all_negative_elements.py
jitendragangwar123/cp
8d9da1abd841784da8304e7ebb64a6b94cb804bb
[ "MIT" ]
1
2020-12-12T18:36:24.000Z
2020-12-12T18:36:24.000Z
def sort(arr): # Start index 0. start = 0 # End index end = len(arr)-1 while start <= end: # Swap all positive value with last index end & decrease end by 1. if arr[start] >= 0: arr[start], arr[end] = arr[end], arr[start] end -= 1 else: # ...
23.714286
74
0.5
74
498
3.256757
0.472973
0.165975
0.082988
0
0
0
0
0
0
0
0
0.05414
0.369478
498
20
75
24.9
0.713376
0.291165
0
0
0
0
0.022989
0
0
0
0
0
0
1
0.076923
false
0
0
0
0.076923
0.076923
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aac551e77cffa8d22df81867eace49a7797fd1d
1,199
py
Python
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
misc.py
hldai/wikiprocesspy
788ccb6f0e0e54a7322863d5a13332635afc240d
[ "MIT" ]
null
null
null
import json def __text_from_anchor_sents_file(anchor_sents_file, output_file): f = open(anchor_sents_file, encoding='utf-8') fout = open(output_file, 'w', encoding='utf-8', newline='\n') for i, line in enumerate(f): sent = json.loads(line) fout.write('{}\n'.format(sent['tokens'])) ...
35.264706
118
0.686405
186
1,199
4.188172
0.27957
0.141207
0.115533
0.061617
0.441592
0.382542
0.382542
0.382542
0.382542
0.382542
0
0.042
0.165972
1,199
33
119
36.333333
0.737
0.120934
0
0.272727
0
0.136364
0.287893
0.253575
0
0
0
0
0
1
0.090909
false
0
0.045455
0
0.136364
0.045455
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aad4ce5dfa92a930b5b7dfb6e85c80cb8498743
2,833
py
Python
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
neural_toolbox/inception.py
ibrahimSouleiman/GuessWhat
60d140de1aae5ccda27e7d3eef2b9fb9548f0854
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import tensorflow.contrib.slim as slim import tensorflow.contrib.slim.python.slim.nets.resnet_v1 as resnet_v1 import tensorflow.contrib.slim.python.slim.nets.inception_v1 as inception_v1 import tensorflow.contrib.slim.python.slim.nets.resnet_utils as slim_utils from tensorflow.contrib import l...
36.320513
143
0.676668
378
2,833
4.857143
0.330688
0.034858
0.050109
0.058824
0.123094
0.123094
0.075708
0.075708
0
0
0
0.027953
0.217084
2,833
77
144
36.792208
0.79982
0.487116
0
0
0
0
0.035793
0
0
0
0
0
0
1
0.074074
false
0
0.296296
0
0.444444
0.111111
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aad74ee52655f68220f799efaffcbccdd0748ad
6,133
py
Python
timm/utils/checkpoint_saver.py
Robert-JunWang/pytorch-image-models
7c67d6aca992f039eece0af5f7c29a43d48c00e4
[ "Apache-2.0" ]
17,769
2019-05-02T08:08:25.000Z
2022-03-31T22:14:44.000Z
timm/utils/checkpoint_saver.py
jonychoi/pytorch-image-models
e4360e6125bb0bb4279785810c8eb33b40af3ebd
[ "Apache-2.0" ]
556
2019-05-26T16:31:37.000Z
2022-03-30T04:21:07.000Z
timm/utils/checkpoint_saver.py
jonychoi/pytorch-image-models
e4360e6125bb0bb4279785810c8eb33b40af3ebd
[ "Apache-2.0" ]
3,029
2019-05-14T01:18:28.000Z
2022-03-31T20:09:50.000Z
""" Checkpoint Saver Track top-n training checkpoints and maintain recovery checkpoints on specified intervals. Hacked together by / Copyright 2020 Ross Wightman """ import glob import operator import os import logging import torch from .model import unwrap_model, get_state_dict _logger = logging.getLogger(__nam...
40.615894
104
0.626121
767
6,133
4.762712
0.191656
0.04599
0.072817
0.03285
0.261429
0.164796
0.121544
0.095812
0
0
0
0.004531
0.280287
6,133
150
105
40.886667
0.823063
0.073863
0
0.04878
0
0
0.044492
0
0
0
0
0
0.02439
1
0.04878
false
0
0.04878
0
0.130081
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aad9dd74183fdbafeb45c7c06a4bb4ab92534aa
292
py
Python
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
AGC004/AGC004a.py
VolgaKurvar/AtCoder
21acb489f1594bbb1cdc64fbf8421d876b5b476d
[ "Unlicense" ]
null
null
null
# AGC004a def main(): import sys input = sys.stdin.readline sys.setrecursionlimit(10**6) a, b, c = map(int, input().split()) if a % 2 == 0 or b % 2 == 0 or c % 2 == 0: print(0) exit(0) print(min(a*b, b*c, c*a)) if __name__ == '__main__': main()
18.25
46
0.506849
48
292
2.916667
0.520833
0.042857
0.057143
0
0
0
0
0
0
0
0
0.069652
0.311644
292
15
47
19.466667
0.626866
0.023973
0
0
0
0
0.028269
0
0
0
0
0
0
1
0.090909
false
0
0.090909
0
0.181818
0.181818
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab135f81cd0354b89240b44a37bacfa732bfab3
13,664
py
Python
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
1
2022-01-31T23:15:48.000Z
2022-01-31T23:15:48.000Z
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
null
null
null
qcore/asserts.py
corey-sobel/qcore
719a44617789e3cc384ce860031d9479ee0877e4
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 Quora, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, so...
34.592405
100
0.640222
1,733
13,664
4.875361
0.171379
0.039768
0.040241
0.056811
0.464079
0.420168
0.405018
0.378861
0.352823
0.347852
0
0.00286
0.257904
13,664
394
101
34.680203
0.830375
0.259368
0
0.233333
0
0.004167
0.116202
0.010372
0
0
0
0
0.3625
1
0.1
false
0.004167
0.008333
0.004167
0.15
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab21446cecd0d46b1a47275470353f326cec4d7
6,318
py
Python
src/python/pants/core/goals/check_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/core/goals/check_test.py
yoav-orca/pants
995448e9add343975844c7a43d5d64618fc4e4d9
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/core/goals/check_test.py
riisi/pants
b33327389fab67c47b919710ea32f20ca284b1a6
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2020 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from abc import ABCMeta, abstractmethod from pathlib import Path from textwrap import dedent from typing import ClassVar, Iterable, List, Optional, Tuple, Type from pants.core.goals.check...
28.459459
99
0.650681
615
6,318
6.495935
0.273171
0.030038
0.016521
0.028786
0.198999
0.182728
0.138924
0.126909
0.094118
0.052065
0
0.007407
0.252137
6,318
221
100
28.588235
0.83746
0.019943
0
0.212329
0
0
0.04019
0.004914
0
0
0
0
0.089041
1
0.109589
false
0.013699
0.089041
0.034247
0.410959
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab219191a7ea6ce5d831e0b7655a8775e4ac26e
9,851
py
Python
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
null
null
null
data-processing/entities/definitions/model/utils.py
alexkreidler/scholarphi
86d26d0bfa5ded00760fba1a9c6891a94a3dd6d2
[ "Apache-2.0" ]
1
2020-10-23T12:36:11.000Z
2020-10-23T12:36:11.000Z
import os import random from typing import Any, Dict, List, Union import numpy as np import torch from colorama import Fore, Style from sklearn.metrics import f1_score from sklearn.metrics import precision_recall_fscore_support as score from sklearn.metrics import precision_score, recall_score def highlight(input_: ...
35.952555
376
0.66308
1,418
9,851
4.35402
0.158674
0.024943
0.017817
0.028345
0.360382
0.298996
0.241173
0.232588
0.168772
0.167315
0
0.004346
0.229114
9,851
273
377
36.084249
0.808665
0.132575
0
0.230392
0
0
0.072094
0.023953
0
0
0
0
0.029412
1
0.063725
false
0
0.044118
0.019608
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
6ab2ef53d9a0815c477ae2435981a3a0029d019b
11,463
py
Python
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
null
null
null
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
null
null
null
fire/trace.py
nvhoang55/python-fire
b78287f6d68208732ca4d91e57f4678e6c4747c7
[ "Apache-2.0" ]
1
2022-01-17T08:35:09.000Z
2022-01-17T08:35:09.000Z
# Copyright (C) 2018 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
36.275316
84
0.640932
1,400
11,463
5.19
0.22
0.009634
0.008258
0.011698
0.21346
0.164327
0.139004
0.127168
0.113955
0.106524
0
0.002093
0.291547
11,463
315
85
36.390476
0.892624
0.449795
0
0.186667
0
0
0.034761
0
0
0
0
0
0
1
0.146667
false
0
0.033333
0.026667
0.3
0.006667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab36187809db9e1ba202abbdfa4e21a0d5b6dfb
33,549
py
Python
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
test/unit/__init__.py
thiagodasilva/swift
0553d9333ed0045c4d209065b315533a33e5d7d7
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2010-2012 OpenStack Foundation # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
32.104306
79
0.592924
4,079
33,549
4.703849
0.177004
0.013759
0.007505
0.007818
0.147965
0.092458
0.068171
0.04232
0.026372
0.016782
0
0.011366
0.307669
33,549
1,044
80
32.135057
0.814698
0.1561
0
0.182442
0
0
0.063651
0.005997
0
0
0
0
0.001372
1
0.128944
false
0.013717
0.049383
0.021948
0.29904
0.004115
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab3a62e50f821717cc617bcae69096621bae1d3
10,138
py
Python
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
172
2019-08-22T14:20:25.000Z
2022-02-16T07:38:12.000Z
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
3
2019-08-30T11:56:15.000Z
2020-10-02T13:57:49.000Z
fairseq/models/bart/model.py
samsontmr/fairseq
1d50b6dcd961faaa74ee32e9d7a02ff76f16ab87
[ "MIT" ]
8
2019-10-15T04:36:43.000Z
2020-10-21T01:50:09.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension """ import torch.nn as n...
41.044534
111
0.641251
1,187
10,138
5.192923
0.20219
0.053537
0.044776
0.015412
0.232966
0.15623
0.115509
0.072356
0.034718
0.034718
0
0.00666
0.25942
10,138
246
112
41.211382
0.814331
0.054843
0
0.154229
0
0.004975
0.169195
0.046981
0
0
0
0
0
1
0.054726
false
0
0.034826
0.00995
0.124378
0.024876
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab4adb92969b15eb2c974889f086f66aef842c0
3,351
py
Python
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
null
null
null
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
null
null
null
tb_plugin/torch_tb_profiler/profiler/trace.py
azhou-determined/kineto
46ed0ce917c1515db29c39cd87b0c5430f5be94e
[ "BSD-3-Clause" ]
2
2021-08-12T08:00:41.000Z
2021-08-20T03:41:03.000Z
# ------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # -------------------------------------------------------------------------- from enum import IntEnum from .. import utils __all__ = ["EventTypes", "create_event"] logger = utils.ge...
27.925
122
0.578036
386
3,351
4.873057
0.297927
0.042531
0.052632
0.038278
0.164274
0.109516
0.082935
0.0521
0.0521
0.0521
0
0.001608
0.257535
3,351
119
123
28.159664
0.754421
0.087437
0
0.217391
0
0
0.098296
0
0
0
0
0
0
1
0.141304
false
0
0.021739
0.043478
0.478261
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab57006541d451df413f174cce8e16652508bf7
1,399
py
Python
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
2
2020-02-19T15:52:13.000Z
2021-10-30T12:06:22.000Z
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
20
2017-11-30T18:15:53.000Z
2021-08-20T16:14:17.000Z
indexclient/parsers/info.py
uc-cdis/indexclient
5d61bdb2cb9c0104f173d7bba43d92449a093c6d
[ "Apache-2.0" ]
1
2019-01-31T21:07:50.000Z
2019-01-31T21:07:50.000Z
import sys import json import logging import argparse import warnings import requests from indexclient import errors # DEPRECATED 11/2019 -- interacts with old `/alias/` endpoint. # For creating aliases for indexd records, prefer using # the `add_alias` function, which interacts with the new # `/index/{GUID}/aliase...
25.436364
76
0.653324
170
1,399
5.317647
0.482353
0.043142
0.039823
0.04646
0.331858
0.331858
0.247788
0.247788
0.247788
0.247788
0
0.005613
0.235883
1,399
54
77
25.907407
0.840037
0.182273
0
0.060606
0
0
0.253153
0.020721
0
0
0
0
0
1
0.060606
false
0
0.212121
0
0.272727
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab5f637fa16cf262bdd8660fa9b73c3bc7980b2
1,151
py
Python
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
1
2019-08-31T11:03:33.000Z
2019-08-31T11:03:33.000Z
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
6
2020-09-07T03:12:42.000Z
2022-03-02T05:25:57.000Z
email-worker-compose/app/sender.py
guilhermebc/docker-playground
e614c314ed2f5ab54835a8c45b4b3eec1ac4c57b
[ "MIT" ]
null
null
null
import psycopg2 import redis import json from bottle import Bottle, request class Sender(Bottle): def __init__(self): super().__init__() self.route('/', method='POST', callback=self.send) self.fila = redis.StrictRedis(host='queue', port=6379, db=0) DSN = 'dbname=email_sender user=p...
30.289474
70
0.617724
135
1,151
5.125926
0.488889
0.151734
0.043353
0
0
0
0
0
0
0
0
0.017162
0.24066
1,151
38
71
30.289474
0.7746
0
0
0
0
0
0.186632
0
0
0
0
0
0
1
0.1
false
0
0.133333
0
0.3
0.033333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab5f90a0a47ff5a1e41ea47789a04eed55d4b77
8,949
py
Python
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
tests/ximpl.py
zsimic/sandbox
3d1571ca723d1a5e80ddecae0ad912160334fee9
[ "MIT" ]
null
null
null
import click import poyo import ruamel.yaml import runez import strictyaml import yaml as pyyaml from zyaml import load_path, load_string, tokens_from_path, tokens_from_string from zyaml.marshal import decode, default_marshal, represented_scalar from . import TestSettings class ImplementationCollection(object): ...
30.233108
124
0.598391
1,018
8,949
5.094303
0.193517
0.030852
0.026996
0.038565
0.251253
0.183186
0.110875
0.055534
0.02931
0.02931
0
0.003341
0.297575
8,949
295
125
30.335593
0.821667
0.026707
0
0.18932
0
0
0.044473
0
0
0
0
0
0.009709
1
0.160194
false
0.024272
0.043689
0.063107
0.436893
0.014563
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab6c4226f6262d47cafb69a5403744916d50994
17,464
py
Python
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
4
2021-11-16T07:16:36.000Z
2022-02-16T23:33:46.000Z
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
1
2021-11-23T20:23:28.000Z
2021-12-03T09:08:34.000Z
mummi_ras/online/aa/aa_get_tiltrot_z_state.py
mummi-framework/mummi-ras
7f4522aad36661e4530e39c830ab8c2a6f134060
[ "MIT" ]
2
2021-11-23T19:54:59.000Z
2022-02-16T23:32:17.000Z
############################################################################### # @todo add Pilot2-splash-app disclaimer ############################################################################### """ Get's KRAS states """ import MDAnalysis as mda from MDAnalysis.analysis import align from MDAnalysis.lib.mdamath ...
47.072776
173
0.57129
2,476
17,464
3.874394
0.173667
0.026269
0.030022
0.03784
0.450328
0.377254
0.333472
0.303346
0.279266
0.237048
0
0.030961
0.243587
17,464
370
174
47.2
0.695231
0.398477
0
0.183333
0
0
0.061358
0.003379
0
0
0
0.008108
0
1
0.022222
false
0
0.055556
0
0.1
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab82df482a2f9c96080ef85619210a77bdeb9a0
3,676
py
Python
homeassistant/components/switch/hikvisioncam.py
maddox/home-assistant
6624cfefd6ea81b559085779173b91a3dc6bd349
[ "MIT" ]
1
2015-09-13T21:10:09.000Z
2015-09-13T21:10:09.000Z
homeassistant/components/switch/hikvisioncam.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
null
null
null
homeassistant/components/switch/hikvisioncam.py
michaelarnauts/home-assistant
7d905e6c0c99a4454de26d63af0581b454f01ca1
[ "MIT" ]
1
2020-05-07T08:48:36.000Z
2020-05-07T08:48:36.000Z
""" homeassistant.components.switch.hikvision ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Support turning on/off motion detection on Hikvision cameras. Note: Currently works using default https port only. CGI API Guide: http://bit.ly/1RuyUuF Configuration: To use the Hikvision motion detection switch you will need to...
27.029412
76
0.681991
447
3,676
5.454139
0.317673
0.067678
0.026251
0.016407
0.108285
0.021329
0.021329
0
0
0
0
0.010094
0.218444
3,676
135
77
27.22963
0.838496
0.322905
0
0.145161
0
0
0.108409
0
0
0
0
0
0
1
0.145161
false
0.048387
0.129032
0
0.403226
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab942559c3b1955ee240520738d5bee4d16cc10
5,689
py
Python
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
src/richie/apps/search/filter_definitions/mixins.py
leduong/richie
bf7ed379b7e2528cd790dadcec10ac2656efd189
[ "MIT" ]
null
null
null
"""Define mixins to easily compose custom FilterDefinition classes.""" class TermsQueryMixin: """A mixin for filter definitions that need to apply term queries.""" def get_query_fragment(self, data): """Build the query fragments as term queries for each selected value.""" value_list = data.ge...
41.830882
97
0.4746
542
5,689
4.904059
0.289668
0.024078
0.013544
0.022573
0.434537
0.415726
0.36757
0.341986
0.341986
0.295711
0
0.005041
0.442081
5,689
135
98
42.140741
0.832388
0.51749
0
0.296296
0
0
0.039132
0
0
0
0
0
0
1
0.074074
false
0
0
0
0.222222
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab9a4f6d4ca5cd5f443cec5fb87c6e2f96318a3
12,830
py
Python
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
1
2019-07-04T03:35:32.000Z
2019-07-04T03:35:32.000Z
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
electrumsv/gui/qt/receive_view.py
AustEcon/electrumsv
db924efc69f091f39e7d02e7f2d7a71350f4e6af
[ "MIT" ]
null
null
null
from typing import List, Optional, TYPE_CHECKING import weakref from PyQt5.QtCore import QEvent, Qt from PyQt5.QtWidgets import (QComboBox, QGridLayout, QGroupBox, QHBoxLayout, QLabel, QLineEdit, QVBoxLayout, QWidget) from electrumsv.app_state import app_state from electrumsv.bitcoin import script_template_to_str...
41.928105
98
0.676695
1,584
12,830
5.128157
0.183712
0.063646
0.025114
0.025606
0.236366
0.14342
0.117075
0.093808
0.054167
0.042103
0
0.006231
0.237023
12,830
305
99
42.065574
0.823577
0.028995
0
0.122449
0
0
0.078394
0.00257
0
0
0
0
0
1
0.089796
false
0
0.077551
0.008163
0.212245
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ab9d713b15cf7e2722180a91c20d945c012ee0e
514
py
Python
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
test/crossrunner/compat.py
BluechipSystems/thrift
c595aa18cba0032e074f9585aa2d6ca548f07197
[ "Apache-2.0" ]
null
null
null
import os import sys if sys.version_info[0] == 2: _ENCODE = sys.getfilesystemencoding() def path_join(*args): bin_args = map(lambda a: a.decode(_ENCODE), args) return os.path.join(*bin_args).encode(_ENCODE) def str_join(s, l): bin_args = map(lambda a: a.decode(_ENCODE), l) b = s.decode(_ENCODE)...
20.56
53
0.678988
81
514
4.098765
0.358025
0.096386
0.060241
0.096386
0.319277
0.180723
0.180723
0.180723
0
0
0
0.004773
0.184825
514
24
54
21.416667
0.78759
0
0
0
0
0
0.013619
0
0
0
0
0
0
1
0.176471
false
0
0.117647
0.058824
0.470588
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6aba555a9c95d6e5cd6afe857fa51108b432e61a
1,518
py
Python
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
test/test_vom.py
usamaahmadkhan/vpp
cece3e682f6dba68ba86b66b295f99a33496d9ee
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ VAPI test """ import unittest import os import signal from framework import VppTestCase, running_extended_tests, \ VppTestRunner, Worker @unittest.skipUnless(running_extended_tests(), "part of extended tests") class VOMTestCase(VppTestCase): """ VPP Object Model Test """ def te...
33
75
0.590909
171
1,518
5.116959
0.502924
0.054857
0.045714
0.043429
0.082286
0.082286
0.082286
0.082286
0
0
0
0.003788
0.304348
1,518
45
76
33.733333
0.824811
0.04809
0
0.057143
0
0
0.187237
0.018233
0
0
0
0
0.057143
1
0.028571
false
0
0.114286
0
0.171429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abaa4631fe046cd2892f35a91bca62bc7f0f887
3,096
py
Python
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
locations/spiders/tesco.py
bealbrown/allhours
f750ee7644246a97bd16879f14115d7845f76b89
[ "MIT" ]
null
null
null
import json import re import scrapy from locations.hourstudy import inputoutput DAYS = { 'mo': 'Mo', 'tu': 'Tu', 'we': 'We', 'fr': 'Fr', 'th': 'Th', 'sa': 'Sa', 'su': 'Su', } class TescoSpider(scrapy.Spider): name = "tesco" allowed_domains = ["tescolocation.api.tesco.com"] def st...
38.222222
257
0.549096
323
3,096
5.188854
0.473684
0.077566
0.047733
0.048329
0.084726
0.029833
0
0
0
0
0
0.031929
0.271641
3,096
80
258
38.7
0.711308
0.010013
0
0
0
0.015152
0.33998
0.026806
0
0
0
0
0
1
0.045455
false
0
0.060606
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
6abb4495b3d52a4655573442ecead7d8db0e2301
12,883
py
Python
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
1
2019-10-05T18:20:27.000Z
2019-10-05T18:20:27.000Z
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
astropy/table/serialize.py
tacaswell/astropy
75046e61916da36dffe87ddf59a7c6bfb00de81c
[ "BSD-3-Clause" ]
null
null
null
from importlib import import_module import re from copy import deepcopy from collections import OrderedDict from astropy.utils.data_info import MixinInfo from .column import Column from .table import Table, QTable, has_info_class from astropy.units.quantity import QuantityInfo __construct_mixin_classes = ('astropy.t...
41.028662
87
0.645579
1,735
12,883
4.637464
0.214409
0.02784
0.007954
0.006214
0.111733
0.072458
0.070346
0.049963
0.0348
0.024111
0
0.00855
0.264612
12,883
313
88
41.159744
0.840722
0.468292
0
0.080882
0
0
0.090362
0.066924
0
0
0
0
0
1
0.058824
false
0.007353
0.066176
0.014706
0.198529
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abe0f56148406c214bae2a7180acf428b205f37
1,914
py
Python
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2020-11-24T03:17:21.000Z
2020-11-24T03:17:21.000Z
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
null
null
null
UVa 573 - The Snail/sample/main.py
tadvi/uva
0ac0cbdf593879b4fb02a3efc09adbb031cb47d5
[ "MIT" ]
1
2021-04-11T16:22:31.000Z
2021-04-11T16:22:31.000Z
''' Created on Jun 18, 2013 @author: Yubin Bai All rights reserved. ''' import time from multiprocessing.pool import Pool parallelSolve = False infinity = 1 << 30 def solve(par): H, U, D, F = par day = 0 amountRise = U currH = 0 while True: amountRise = U * (1 - 0.01 * F * day) ...
24.538462
78
0.527168
236
1,914
4.224576
0.355932
0.032096
0.048144
0.064193
0.238716
0.218656
0.164493
0.164493
0.164493
0.164493
0
0.037618
0.333333
1,914
77
79
24.857143
0.74373
0.03396
0
0.20339
0
0
0.068441
0
0
0
0
0
0
1
0.101695
false
0
0.033898
0
0.186441
0.033898
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abe9ac6695fe5a1d34b503ad56c8e41374a9ea6
5,074
py
Python
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
1,143
2019-03-27T01:49:11.000Z
2022-03-24T10:43:47.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
91
2019-03-27T17:20:27.000Z
2022-03-29T09:29:58.000Z
scibert/models/text_classifier.py
tomhoper/scibert
3cc65f433808f7879c973dc4fc41bd25e465dc15
[ "Apache-2.0" ]
206
2019-03-28T02:22:30.000Z
2022-03-30T07:07:05.000Z
from typing import Dict, Optional, List, Any import torch import torch.nn.functional as F from allennlp.data import Vocabulary from allennlp.models.model import Model from allennlp.modules import FeedForward, TextFieldEmbedder, Seq2SeqEncoder from allennlp.nn import InitializerApplicator, RegularizerApplicator from al...
40.919355
120
0.653331
579
5,074
5.518135
0.278066
0.022535
0.026604
0.028169
0.162128
0.080125
0.080125
0.064476
0.064476
0.037559
0
0.008225
0.257194
5,074
123
121
41.252033
0.83948
0.204769
0
0.078947
0
0
0.022135
0
0
0
0
0
0
1
0.052632
false
0
0.131579
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abec40d890d6b8f05f738693cce2c79127a8924
4,716
py
Python
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
469
2016-02-16T16:18:48.000Z
2022-03-31T15:24:40.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
1,076
2016-02-19T02:50:47.000Z
2022-03-22T03:08:06.000Z
plugins/template/tasks.py
crotwell/cmd2
5ce3a64e41258b6a694ad45bb1c604be53a1e974
[ "MIT" ]
138
2016-02-19T02:46:23.000Z
2022-03-30T13:13:01.000Z
# # -*- coding: utf-8 -*- """Development related tasks to be run with 'invoke'""" import os import pathlib import shutil import invoke TASK_ROOT = pathlib.Path(__file__).resolve().parent TASK_ROOT_STR = str(TASK_ROOT) # shared function def rmrf(items, verbose=True): """Silently remove a list of directories or ...
23.231527
87
0.671968
617
4,716
4.993517
0.249595
0.04544
0.033755
0.05258
0.253489
0.185654
0.04544
0.022071
0
0
0
0.00105
0.192112
4,716
202
88
23.346535
0.807612
0.293681
0
0.195652
0
0
0.133831
0.027078
0
0
0
0
0
1
0.130435
false
0.021739
0.043478
0
0.173913
0.021739
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6abf04d8aaa93e623f487cf9322ec9b114c31f92
2,590
py
Python
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2019-12-30T14:12:33.000Z
2021-07-05T10:33:08.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
2
2022-01-13T04:00:03.000Z
2022-03-12T01:02:40.000Z
homeassistant/components/epsonworkforce/sensor.py
maexono/home-assistant
c174b83f5408124fc7834e8282969a1e8f9cca16
[ "Apache-2.0" ]
3
2019-04-28T16:35:45.000Z
2020-05-28T15:21:59.000Z
"""Support for Epson Workforce Printer.""" from datetime import timedelta import logging import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import CONF_HOST, CONF_MONITORED_CONDITIONS from homeassistant.exceptions import PlatformNotReady import homeassistant....
30.116279
71
0.679151
302
2,590
5.655629
0.384106
0.088993
0.040398
0.043911
0
0
0
0
0
0
0
0.003872
0.202317
2,590
85
72
30.470588
0.822846
0.146332
0
0.089286
0
0
0.079167
0
0
0
0
0
0
1
0.142857
false
0
0.160714
0
0.410714
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
6abf99810278b3e6bb4dfbe19a2991c6db839dec
19,661
py
Python
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
bot/exts/help_channels/_cog.py
bast0006/bot
dec9a9dba77aa4322f9dc37b6493a8410e7482ec
[ "MIT", "BSD-3-Clause" ]
null
null
null
import asyncio import logging import random import typing as t from datetime import datetime, timezone from operator import attrgetter import discord import discord.abc from discord.ext import commands from bot import constants from bot.bot import Bot from bot.exts.help_channels import _caches, _channel, _cooldown, _...
42.010684
120
0.670363
2,540
19,661
5.055118
0.159843
0.017523
0.013707
0.00662
0.195016
0.125389
0.08053
0.047196
0.039252
0.039252
0
0.000743
0.247088
19,661
467
121
42.100642
0.866649
0.15869
0
0.123552
0
0.007722
0.181683
0.008811
0
0
0
0
0
1
0.011583
false
0.003861
0.050193
0
0.111969
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac05bd39a70de6163a586a9ee9a2b3649ee2eef
16,516
py
Python
code/menu/screens/shopmenu.py
LordZagreus/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2017-10-31T22:26:22.000Z
2017-10-31T22:26:22.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
2
2019-07-05T03:17:18.000Z
2019-07-08T16:15:29.000Z
code/menu/screens/shopmenu.py
team-sparrow/LodeRunner
68aab36be47cabe31e52f3ee43520bdafcdf3c95
[ "MIT" ]
1
2020-10-15T09:03:20.000Z
2020-10-15T09:03:20.000Z
import os import math import random import time from code.menu.menu import Menu from code.tools.eventqueue import EventQueue from code.tools.xml import XMLParser from code.utils.common import coalesce, intersect, offset_rect, log, log2, xml_encode, xml_decode, translate_rgb_to_string from code.constants.common i...
31.339658
233
0.60069
1,928
16,516
4.946058
0.194502
0.039534
0.039639
0.035445
0.356544
0.27716
0.256292
0.221791
0.205852
0.171456
0
0.001921
0.306491
16,516
526
234
31.39924
0.830627
0.273311
0
0.261062
0
0
0.075
0.010101
0
0
0
0
0
1
0.039823
false
0
0.048673
0
0.128319
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac069f3cef035db6da504010b64c5c2110dea99
3,665
py
Python
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
lib/bridgedb/runner.py
liudonghua123/bridgedb
94dd10673f9e6650e8a00e162f348e64f7a1ecab
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 ; test-case-name: bridgedb.test.test_runner -*- # # This file is part of BridgeDB, a Tor bridge distribution system. # # :authors: Isis Lovecruft 0xA3ADB67A2CDB8B35 <isis@torproject.org> # please also see AUTHORS file # :copyright: (c) 2007-2015, The Tor Project, Inc. # (c) 200...
33.318182
79
0.661937
452
3,665
5.34292
0.477876
0.016149
0.007453
0
0
0
0
0
0
0
0
0.013965
0.257572
3,665
109
80
33.623853
0.873576
0.53397
0
0
0
0
0.110261
0
0
0
0
0
0
1
0.066667
false
0
0.177778
0
0.311111
0.066667
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac297a5895de04303f5fe688063a599cff885d4
4,053
py
Python
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
1
2019-04-03T17:47:04.000Z
2019-04-03T17:47:04.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
2
2020-08-10T10:52:57.000Z
2022-01-22T04:18:42.000Z
batch_processing_dataflow/play_store_flow.py
KeeplerIO/meetup-hands-on-gcp-2019
3674922d89d2be8984eb5719f0faaae127823ab4
[ "MIT" ]
null
null
null
import argparse import logging import apache_beam as beam from apache_beam.io import WriteToBigQuery from apache_beam.io import ReadFromText, WriteToText from apache_beam.options.pipeline_options import PipelineOptions class ProcessCSV(beam.DoFn): def process(self, element, *args, **kwargs): import csv ...
42.663158
116
0.593881
406
4,053
5.729064
0.334975
0.068788
0.018057
0.013758
0.104041
0.059329
0.033534
0.033534
0
0
0
0.008895
0.278806
4,053
94
117
43.117021
0.786863
0.012583
0
0.054054
0
0
0.174718
0.043805
0
0
0
0
0
1
0.054054
false
0
0.121622
0
0.27027
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac30849631c3b7df115a92dba1c94f0bb05ed26
4,259
py
Python
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
20
2021-03-15T20:30:35.000Z
2021-06-02T19:16:55.000Z
backend/main/server/resources/Message.py
Manotomo-Alliance-Support-Squad/WWS
3df21a3f715eeb3b57314bf08c38f2239b2ba399
[ "MIT" ]
null
null
null
from flask import request from flask_jwt import jwt_required from flask_restful import Resource from main.server import app, cache, db from main.server.models import Message, MessageSchema messages_schema = MessageSchema(many=True) message_schema = MessageSchema() @app.after_request def add_header(response): r...
35.789916
182
0.621273
487
4,259
5.373717
0.250513
0.073366
0.048911
0.047765
0.42415
0.281238
0.265189
0.235384
0.205579
0.172717
0
0.01885
0.240197
4,259
118
183
36.09322
0.789864
0.061047
0
0.333333
0
0.012821
0.214322
0.051437
0
0
0
0
0
1
0.089744
false
0
0.064103
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
6ac35d88701fa7c3171d4b1e9eb134859f289cd2
5,380
py
Python
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
volttron/platform/vip/agent/subsystems/heartbeat.py
rmay-intwine/volttron
a449f70e32f73ff0136a838d0feddb928ede6298
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- {{{ # vim: set fenc=utf-8 ft=python sw=4 ts=4 sts=4 et: # # Copyright 2017, Battelle Memorial Institute. # # 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...
34.487179
86
0.666729
669
5,380
5.301943
0.38864
0.019735
0.025374
0.028193
0.113617
0.081195
0.0468
0.024246
0
0
0
0.005987
0.254833
5,380
155
87
34.709677
0.878773
0.429368
0
0.242857
0
0
0.046647
0.00984
0
0
0
0
0
1
0.142857
false
0.014286
0.114286
0
0.271429
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac367d8d5ec9f368f230df751f19e5799e20bdd
18,984
py
Python
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
datasets/experimental/ni_superalloys/Ni_superalloy.py
kyawlin/smlb
79c757d7fc040fb30ad44410be158b3ce3bdf30d
[ "Apache-2.0" ]
null
null
null
"""Ni-Superalloy dataset. Scientific Machine Learning Benchmark A benchmark of regression models in chem- and materials informatics. 2019, Brendan Folie, Citrine Informatics. See class NiSuperalloyDataset for details. """ import os import json import zipfile from typing import List, Optional, Tuple, Union import nu...
40.650964
99
0.629794
2,284
18,984
5.073555
0.171629
0.04263
0.014498
0.021747
0.346911
0.313687
0.292458
0.253193
0.189506
0.177339
0
0.011178
0.29783
18,984
466
100
40.738197
0.85814
0.372314
0
0.178862
0
0
0.115858
0.006523
0
0
0
0
0.020325
1
0.056911
false
0
0.03252
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
6ac43cedb06c0b3488172628809f67d3f8c8275d
2,520
py
Python
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
pytorch_lightning/accelerators/cpu_backend.py
ozen/pytorch-lightning
3b0b402d30fa19e0fef7d150c30ff4bb14a64230
[ "Apache-2.0" ]
null
null
null
# Copyright The PyTorch Lightning team. # # 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 i...
34.520548
99
0.681746
317
2,520
5.305994
0.413249
0.098098
0.0761
0.078478
0.300238
0.268728
0.268728
0.167658
0.167658
0.167658
0
0.00209
0.240476
2,520
72
100
35
0.876698
0.284524
0
0.461538
0
0
0.029164
0
0
0
0
0
0
1
0.153846
false
0
0.102564
0
0.384615
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac4e4fc48c67f3dafab5b728a225aa95eec15e2
7,668
py
Python
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
15
2021-02-11T22:58:54.000Z
2021-08-06T18:03:47.000Z
st2common/st2common/util/pack.py
timgates42/st2
0e8ae756f30ffe2e017c64bff67830abdee7f7c9
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The StackStorm Authors. # Copyright 2019 Extreme Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
36.514286
100
0.666275
1,013
7,668
4.860809
0.27542
0.022746
0.019903
0.025589
0.139115
0.095857
0.075955
0.075955
0.045085
0.045085
0
0.008607
0.257564
7,668
209
101
36.688995
0.856315
0.276865
0
0.056075
0
0
0.221292
0.028476
0
0
0
0
0
1
0.065421
false
0
0.121495
0
0.261682
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac65f8d4a911234497385069b667c9dd2f68934
21,364
py
Python
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
pixelproject/grid.py
MickaelRigault/pixelproject
d98db99a8e69eafa7a979c02a099e4c07f5fd568
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # import warnings import numpy as np UNIT_SQUARE = np.asarray([[0,0],[0,1],[1,1],[1,0]])-0.5 from propobject import BaseObject from shapely import geometry import pandas import geopandas # ======================= # # # # Functions # # ...
35.08046
145
0.550178
2,326
21,364
4.94196
0.155632
0.031057
0.014876
0.009134
0.165811
0.114485
0.10274
0.071596
0.063941
0.063941
0
0.005833
0.325969
21,364
608
146
35.138158
0.792431
0.252294
0
0.181818
0
0.006993
0.100605
0.002789
0
0
0
0
0.006993
1
0.13986
false
0
0.041958
0.006993
0.335664
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac66c22ad3d5b81a13742eecef45d93fd664ee6
31,445
py
Python
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
5
2021-08-23T06:23:15.000Z
2022-02-05T07:27:30.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
75
2021-07-12T01:28:50.000Z
2022-03-28T20:09:00.000Z
numpy/lib/format.py
AnirudhDagar/numpy
77bc3225e6f4badf83190ec300a0e10e56949644
[ "BSD-3-Clause" ]
1
2019-11-05T15:23:08.000Z
2019-11-05T15:23:08.000Z
""" Binary serialization NPY format ========== A simple format for saving numpy arrays to disk with the full information about them. The ``.npy`` format is the standard binary file format in NumPy for persisting a *single* arbitrary NumPy array on disk. The format stores all of the shape and dtype information necess...
34.21654
87
0.641437
4,430
31,445
4.488713
0.16298
0.008549
0.006336
0.006688
0.224793
0.186724
0.16173
0.151974
0.147448
0.135479
0
0.011151
0.272794
31,445
918
88
34.253813
0.858442
0.558181
0
0.215873
0
0.003175
0.118329
0
0
0
0
0
0.003175
1
0.063492
false
0.012698
0.028571
0
0.165079
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac8631a21e5b850ca9b81ac1543a63108f70e71
6,090
py
Python
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
3
2019-11-15T23:17:23.000Z
2019-11-27T17:19:33.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
4
2019-12-12T03:37:32.000Z
2020-01-28T21:29:51.000Z
bin/focus_scan.py
desihub/desicmx
6f7c9a3cff25c970af57de20e3a12001382deb23
[ "BSD-3-Clause" ]
2
2019-12-20T08:21:52.000Z
2020-06-30T15:21:53.000Z
#!/usr/bin/env python import astropy.io.fits as fits import numpy as np import os import matplotlib.pyplot as plt import argparse def _fname(expid, night, basedir='/n/home/datasystems/users/ameisner/reduced/focus', ccds=False): fname = basedir + '/' + night + '/' + str(expid).zfill(...
35.614035
129
0.612315
836
6,090
4.327751
0.276316
0.021559
0.023494
0.024323
0.326423
0.30293
0.220011
0.208679
0.195412
0.158928
0
0.02575
0.228407
6,090
170
130
35.823529
0.744201
0.027915
0
0.104348
0
0
0.186475
0.069992
0
0
0
0
0.008696
1
0.043478
false
0
0.043478
0
0.104348
0.078261
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ac951af97aa3d1a0ef9e931276c0e45ff2d14cc
4,344
py
Python
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
2
2019-05-23T02:07:03.000Z
2019-06-08T18:56:05.000Z
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
pythia/utils/logger.py
abhiskk/pythia
c33fb45d74353c25b6269b44551bcafefecb5c7e
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. import base64 import logging import os import sys from tensorboardX import SummaryWriter from pythia.utils.distributed_utils import is_main_process from pythia.utils.general import (ckpt_name_from_core_args, foldername_from_config_ov...
34.204724
81
0.63628
540
4,344
4.874074
0.246296
0.042553
0.06459
0.027356
0.282295
0.220745
0.147036
0.072948
0.032675
0
0
0.000625
0.263352
4,344
126
82
34.47619
0.821875
0.037523
0
0.206522
0
0
0.057738
0
0
0
0
0
0
1
0.076087
false
0
0.086957
0
0.23913
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
6acd5e71b7f337a2cb3ca947d7cf6d05f0a0b474
851
py
Python
setup.py
chearon/macpack
1cf6ce453dd33a811343e4bb6ee5575bc9fe919d
[ "MIT" ]
24
2016-11-14T14:09:57.000Z
2022-01-26T02:22:45.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
5
2016-11-14T14:09:53.000Z
2019-04-18T15:49:14.000Z
setup.py
najiji/macpack
20b518e9bc0f4e58d47c5416a686a4b246a3764d
[ "MIT" ]
3
2018-01-27T15:38:46.000Z
2019-04-09T16:21:23.000Z
import setuptools import os try: import pypandoc description = pypandoc.convert('README.md', 'rst') if os.path.exists('README.md') else '' except ImportError: description = '' setuptools.setup( name = 'macpack', packages = setuptools.find_packages(), version = '1.0.3', description = 'Makes a macOS binar...
32.730769
131
0.706228
100
851
5.93
0.7
0.026981
0.047218
0.057336
0.104553
0.104553
0
0
0
0
0
0.008208
0.141011
851
25
132
34.04
0.80301
0
0
0
0
0
0.435958
0.032902
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
6acdf3a0dc36f1ce88eb6431d38ef46ea81f633b
1,371
py
Python
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
WEEK2/day5/scripts/06_NB_Challenges_Isolines.py
tizon9804/SS2017
7cb374ad21cdfeeef223ac4a65cbbf40dab22e06
[ "MIT" ]
null
null
null
import vtk # Read the file (to test that it was written correctly) reader = vtk.vtkXMLImageDataReader() reader.SetFileName("../data/wind_image.vti") reader.Update() print(reader.GetOutput()) # Convert the image to a polydata imageDataGeometryFilter = vtk.vtkImageDataGeometryFilter() imageDataGeometryFilter.SetInputCon...
30.466667
74
0.835157
117
1,371
9.777778
0.538462
0.026224
0
0
0
0
0
0
0
0
0
0.004677
0.064187
1,371
44
75
31.159091
0.886984
0.073669
0
0
0
0
0.024506
0.017391
0
0
0
0
0
1
0
false
0
0.032258
0
0.032258
0.032258
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ace6e18f6860e091c836de50634b3a607e70811
11,303
py
Python
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
9
2022-01-16T11:27:00.000Z
2022-03-13T14:04:48.000Z
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
mbbl_envs/mbbl/env/gym_env/invertedPendulum.py
hbutsuak95/iv_rl
0f72a8f077a238237027ea96b7d1160c35ac9959
[ "MIT" ]
null
null
null
""" # ----------------------------------------------------------------------------- # @brief: # Tingwu: reset the reward function so that it's more similar to the one # defined in GYM # ----------------------------------------------------------------------------- """ import numpy as np from mbbl.config i...
35.656151
79
0.529594
1,356
11,303
4.106195
0.168879
0.055316
0.025682
0.022629
0.363865
0.244971
0.181394
0.122665
0.11153
0.104346
0
0.018529
0.345837
11,303
316
80
35.768987
0.734514
0.178714
0
0.175141
0
0
0.074819
0
0
0
0
0.003165
0.016949
1
0.073446
false
0
0.039548
0.00565
0.169492
0.00565
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad0bc72be93fcbf7c2b0d3f4185b26d3bfb3b1c
1,426
py
Python
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
web/pingpongpiweb.py
andrewdyersmith/pingpongpi
63e969468da24b2d00e86033dfcb22de75f264bc
[ "MIT" ]
null
null
null
# Ping Pong Pi web UI running on flask. # Uses zmq to speak to daemon controlling screen. from flask import Flask, render_template, appcontext_tearing_down, request from multiprocessing import Process, Queue from multiprocessing.connection import Client import atexit import time import zmq app = Flask(__name__) @ap...
22.634921
74
0.704067
191
1,426
5.062827
0.486911
0.086867
0.024819
0.057911
0
0
0
0
0
0
0
0.007608
0.170407
1,426
62
75
23
0.809806
0.059607
0
0.043478
0
0
0.096413
0
0
0
0
0
0
1
0.108696
false
0
0.130435
0.021739
0.282609
0.108696
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad190f41233de2c7f9d3aa69edc83f906187598
5,171
py
Python
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
64
2015-10-18T02:57:24.000Z
2022-01-13T11:27:51.000Z
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
null
null
null
watcher/tests/decision_engine/strategy/strategies/test_base.py
ajaytikoo/watcher
6dbac1f6ae7f3e10dfdcef5721fa4af7af54e159
[ "Apache-2.0" ]
35
2015-12-25T13:53:21.000Z
2021-07-19T15:50:16.000Z
# -*- encoding: utf-8 -*- # Copyright (c) 2019 European Organization for Nuclear Research (CERN) # # 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...
36.673759
76
0.705473
623
5,171
5.675762
0.272873
0.027998
0.046663
0.056561
0.554299
0.465215
0.413744
0.386029
0.353224
0.353224
0
0.002446
0.209244
5,171
140
77
36.935714
0.862314
0.245794
0
0.460526
0
0
0.046126
0
0
0
0
0.007143
0.065789
1
0.105263
false
0
0.092105
0
0.236842
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad243bce2bf880a6b70228da5819c87e92c557b
776
py
Python
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
83
2019-04-01T05:45:37.000Z
2021-04-13T02:33:04.000Z
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
null
null
null
test/test_sampler.py
pfnet-research/autogbt-alt
57f7ae1bce2923d11f73c3631e34be49c7dd25da
[ "MIT" ]
10
2019-04-15T03:15:42.000Z
2020-03-30T11:52:12.000Z
import numpy as np import pandas as pd from autogbt.sampler import MajorityUnderSampler def _test_sample(y): sampler = MajorityUnderSampler() idx = sampler.sample(y, 40000, 3.0) assert len(idx) == 40000 assert y[idx].sum() == 10000 def test_sample_with_series(): y = pd.Series(np.concatenate([np....
23.515152
73
0.640464
111
776
4.342342
0.315315
0.124481
0.114108
0.153527
0.493776
0.435685
0.153527
0.153527
0
0
0
0.108065
0.201031
776
32
74
24.25
0.669355
0
0
0.166667
0
0
0
0
0
0
0
0
0.125
1
0.166667
false
0
0.125
0
0.291667
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad3e60ef95d7e5c040fd394c92201b95875defd
1,155
py
Python
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
main.py
thewhiteninja/twitch-recorder
815b571e22917daa906d054a8ab2fe794e99bb8a
[ "MIT" ]
null
null
null
import glob import os import sys import utils from recorder import StreamRec OUTDIR = "" def parse_args(a): global OUTDIR i = 1 while i < len(a): if a[i] in ["-h", "--help", "/?"]: usage() if a[i] in ["-d", "--dir"]: OUTDIR = a[i + 1] i += 1 i ...
20.625
91
0.565368
158
1,155
4
0.411392
0.012658
0.012658
0.018987
0.063291
0.063291
0
0
0
0
0
0.007282
0.28658
1,155
55
92
21
0.759709
0
0
0.139535
0
0
0.204329
0
0
0
0
0
0
1
0.093023
false
0
0.116279
0
0.209302
0.186047
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad40da9c9320f7c8df4a83d064f6172f24c03ec
2,268
py
Python
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
null
null
null
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
5
2019-08-14T06:46:03.000Z
2021-12-13T20:01:25.000Z
karbor-1.3.0/karbor/policies/protectables.py
scottwedge/OpenStack-Stein
7077d1f602031dace92916f14e36b124f474de15
[ "Apache-2.0" ]
2
2020-03-15T01:24:15.000Z
2020-07-22T20:34:26.000Z
# Copyright (c) 2017 Huawei Technologies Co., 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # ...
31.068493
78
0.619489
238
2,268
5.718487
0.42437
0.044085
0.035268
0.052902
0.398971
0.314475
0.314475
0.277737
0.191036
0.191036
0
0.004963
0.289242
2,268
72
79
31.5
0.83933
0.272928
0
0.392157
0
0
0.234394
0.111383
0
0
0
0
0
1
0.019608
false
0
0.039216
0.019608
0.078431
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad467fa9905c0ca84ad3c1dc298047956f35818
252
py
Python
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
notebooks/2018.11.09 Meeting.py
costrouc/uarray
c3c42147181a88265942ad5f9cf439467f746782
[ "BSD-3-Clause" ]
null
null
null
#%% from uarray.core import * #%% s = Scalar(Int(10)) #%% @operation def Always(a: T) -> CCallableUnary[T, CContent]: ... #%% register(Call(Always(w("a")), w("idx")), lambda a, idx: a) #%% a_ten = Always(s) #%% s = Sequence(Int(10), a_ten)
10.956522
58
0.559524
37
252
3.756757
0.594595
0.071942
0
0
0
0
0
0
0
0
0
0.019417
0.18254
252
22
59
11.454545
0.65534
0.047619
0
0
0
0
0.017094
0
0
0
0
0
0
1
0.125
false
0
0.125
0
0.25
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad4fd638f3c8440ee1f4046774d447aac8466fb
2,540
py
Python
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/py-black/package.py
dwstreetNNL/spack
8f929707147c49606d00386a10161529dad4ec56
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class PyBlack(PythonPackage): """Black is the uncompromising Python code formatter. By using it,...
47.924528
96
0.663386
354
2,540
4.70904
0.446328
0.086383
0.09898
0.14817
0.25135
0.238152
0.210558
0.188362
0.154769
0
0
0.115509
0.144488
2,540
52
97
48.846154
0.651634
0.250394
0
0
0
0.033333
0.446695
0.141258
0
0
0
0
0
1
0.033333
false
0
0.066667
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
6ad54c23aea43b34f6b32a39f371e9919e5e2f64
3,772
py
Python
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
store/adminshop/templatetags/admin_extras.py
vallemrv/my_store_test
2da624fd02c5f1784464f15b751b488f3dd2bae6
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 27-Aug-2017 # @Email: valle.mrv@gmail.com # @Filename: admin_extras.py # @Last modified by: valle # @Last modified time: 02-Feb-2018 # @License: Apache license vesion 2.0 from django import template from django.db.models import Q try: from ...
24.980132
72
0.656946
535
3,772
4.48972
0.271028
0.110741
0.112406
0.034971
0.202748
0.162365
0.147377
0.124896
0.105745
0.046628
0
0.009539
0.194062
3,772
150
73
25.146667
0.779934
0.060445
0
0.214286
0
0
0.091655
0
0
0
0
0
0
1
0.178571
false
0
0.071429
0.089286
0.491071
0.008929
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad59b00bcc766f57088e62e448110d102b95431
17,165
py
Python
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
doc/tutorial/using_gpu_solution_1.py
abdalazizrashid/Theano-PyMC
90fa750461e91fb6281d494ae86404e2153fd7eb
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # Aesara tutorial # Solution to Exercise in section 'Using the GPU' # 1. Raw results import numpy as np import aesara import aesara.tensor as tt aesara.config.floatX = "float32" rng = np.random N = 400 feats = 784 D = ( rng.randn(N, feats).astype(aesara.config.floatX), rng.randint...
62.192029
374
0.579435
2,707
17,165
3.629479
0.16956
0.015878
0.017812
0.029415
0.567226
0.45028
0.381069
0.344733
0.27888
0.250483
0
0.197341
0.268162
17,165
275
375
62.418182
0.584779
0.024061
0
0.075472
0
0
0.111111
0
0
0
0
0
0
1
0
false
0
0.056604
0
0.056604
0.150943
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad5dcf7e9f96dc2d1c33142dc858481b208540e
1,242
py
Python
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
1
2018-08-24T02:28:31.000Z
2018-08-24T02:28:31.000Z
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
null
null
null
chainercv/transforms/bbox/translate_bbox.py
souravsingh/chainercv
8f76510472bc95018c183e72f37bc6c34a89969c
[ "MIT" ]
2
2019-12-16T02:20:26.000Z
2022-01-17T02:00:49.000Z
def translate_bbox(bbox, y_offset=0, x_offset=0): """Translate bounding boxes. This method is mainly used together with image transforms, such as padding and cropping, which translates the left top point of the image from coordinate :math:`(0, 0)` to coordinate :math:`(y, x) = (y_{offset}, x_{offse...
37.636364
78
0.65942
190
1,242
4.210526
0.415789
0.0975
0.03
0.0525
0.2075
0.2075
0.2075
0.0775
0
0
0
0.008439
0.236715
1,242
32
79
38.8125
0.835443
0.777778
0
0
0
0
0
0
0
0
0
0
0
1
0.2
false
0
0
0
0.4
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ad9fa52c59620d080c895b1dcbcc37ef6f3e407
504
py
Python
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
1
2022-02-09T13:12:57.000Z
2022-02-09T13:12:57.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
3
2021-09-16T12:24:44.000Z
2022-03-08T10:21:26.000Z
behave/features/environment.py
ministryofjustice/cla-end-to-end-tests
3d7e525c17f38403a91087c2b1af460ca1109a9b
[ "MIT" ]
null
null
null
import os from configparser import ConfigParser from helper.helper_web import get_browser def before_all(context): config = ConfigParser() print((os.path.join(os.getcwd(), 'setup.cfg'))) my_file = (os.path.join(os.getcwd(), 'setup.cfg')) config.read(my_file) # Reading the browser type from the c...
28
67
0.71627
67
504
5.253731
0.462687
0.056818
0.056818
0.068182
0.147727
0.147727
0.147727
0
0
0
0
0
0.164683
504
18
68
28
0.836105
0.103175
0
0
0
0
0.079823
0
0
0
0
0
0
1
0.166667
false
0
0.25
0
0.416667
0.083333
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ada8f8c31036f868e794a58c29dd691ac89f964
2,422
py
Python
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
recipe_organizer/gui/recipe_list/recipe_source.py
j-sommer/recipe-organizer
91d39e12c453ecf3d3254645b565bbceacaecde9
[ "MIT" ]
null
null
null
from pathlib import Path from tkinter import Frame, Label from recipe_organizer.events.event import Event, EventType from recipe_organizer.events.event_observer import EventObserver from recipe_organizer.events.event_publisher import EventPublisher from recipe_organizer.gui.interfaces.widget_container import WidgetCon...
34.112676
111
0.671346
284
2,422
5.366197
0.320423
0.052493
0.074803
0.049213
0.170604
0.081365
0.03937
0
0
0
0
0.006547
0.243187
2,422
70
112
34.6
0.824877
0
0
0.038462
0
0
0.006606
0
0
0
0
0
0
1
0.134615
false
0.019231
0.153846
0
0.403846
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ada8fe0ced127e4eb158cbef0bc674aa2bd2da2
917
py
Python
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2020-05-24T15:23:12.000Z
2020-05-24T15:23:12.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
6
2022-02-26T11:44:34.000Z
2022-03-12T12:14:50.000Z
var/spack/repos/builtin/packages/spot/package.py
xiki-tempula/spack
9d66c05e93ab8a933fc59915040c0e0c86a4aac4
[ "ECL-2.0", "Apache-2.0", "MIT" ]
1
2021-01-06T18:58:26.000Z
2021-01-06T18:58:26.000Z
# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) from spack import * class Spot(AutotoolsPackage): """Spot is a C++11 library for omega-automata manipulation and mod...
38.208333
96
0.707743
120
917
5.375
0.616667
0.018605
0.069767
0.049612
0
0
0
0
0
0
0
0.15443
0.138495
917
23
97
39.869565
0.662025
0.288986
0
0
0
0.090909
0.507862
0.201258
0
0
0
0
0
1
0
false
0
0.090909
0
0.363636
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6adce2d4edcce50b7803e777bec26f0e2dbe1ef5
8,165
py
Python
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
141
2020-04-23T03:30:16.000Z
2022-03-19T08:36:31.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
15
2020-04-26T07:12:30.000Z
2021-06-10T16:40:35.000Z
GPT-distributed.py
wenhuchen/LogicNLG
e986516e5b6d310219215510b3fe1603d03215cd
[ "MIT" ]
20
2020-04-27T03:07:10.000Z
2022-01-22T22:13:15.000Z
import argparse import logging import torch import torch.nn.functional as F import numpy as np from torch import nn from torch.autograd import Variable from transformers import GPT2Config from transformers import GPT2LMHeadModel, GPT2Tokenizer, BertTokenizer from DataLoader import * from Model import BERTGen from utils...
47.196532
145
0.643846
1,068
8,165
4.779026
0.23221
0.04761
0.089929
0.049961
0.380486
0.330525
0.3029
0.27116
0.248824
0.239616
0
0.012314
0.23417
8,165
173
146
47.196532
0.803934
0.017759
0
0.135714
0
0
0.180095
0.012721
0
0
0
0
0
1
0.007143
false
0
0.185714
0
0.192857
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
6addc56efc2458ffaaa37a8a1a9d3060123eac26
9,901
py
Python
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
3,451
2019-04-02T01:47:42.000Z
2022-03-31T16:20:49.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
1,925
2019-04-03T00:19:05.000Z
2022-03-31T22:41:54.000Z
bentoml/saved_bundle/loader.py
niits/BentoML
3954f36762e10f5df15af7e0ae6dd71f5f214261
[ "Apache-2.0" ]
451
2019-04-02T01:53:41.000Z
2022-03-29T08:49:06.000Z
# Copyright 2019 Atalaya Tech, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, ...
35.487455
86
0.692051
1,287
9,901
5.094017
0.24087
0.089994
0.032032
0.024405
0.269372
0.202257
0.155583
0.109213
0.087401
0.087401
0
0.005518
0.23129
9,901
278
87
35.615108
0.855867
0.248965
0
0.174419
0
0
0.089266
0.009036
0
0
0
0
0
1
0.069767
false
0
0.180233
0.011628
0.319767
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6adecc40e2158fa98b341e37dfb8d034335bed2b
1,267
py
Python
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
gen-post.py
younghk/younghk.netlify.com
605ab089252127c0b768d31afb027e8896ae33b4
[ "MIT" ]
null
null
null
import os import errno from datetime import datetime print("Generating A New Post\n") post_name = input('Input Post Name: ') date_time = datetime.now() date_time_dir = date_time.strftime("%Y-%m-%d") date_time_post = date_time.strftime("%Y-%m-%d %H:%M:%S") p_name = post_name.replace(" ","-") p_name = p_name.replace(...
23.462963
56
0.561168
194
1,267
3.515464
0.314433
0.175953
0.102639
0.105572
0.35044
0.23607
0.080645
0.080645
0.080645
0.080645
0
0
0.195738
1,267
54
57
23.462963
0.669284
0
0
0.266667
0
0
0.235804
0.016562
0
0
0
0
0
1
0
false
0
0.066667
0
0.066667
0.088889
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae0041ec06abb5f41acc8d9e0ad54c9727be449
39,758
py
Python
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
null
null
null
rmgpy/reactionTest.py
Lyle-zhang/RMG-Py
273eb51fa3c175562056c85d7d61814d5fa2986d
[ "MIT" ]
1
2021-08-14T13:47:18.000Z
2021-08-14T13:47:18.000Z
#!/usr/bin/env python # encoding: utf-8 -*- """ This module contains unit tests of the rmgpy.reaction module. """ import numpy import unittest from external.wip import work_in_progress from rmgpy.species import Species, TransitionState from rmgpy.reaction import Reaction from rmgpy.statmech.translation import Transl...
42.567452
208
0.566452
4,000
39,758
5.6075
0.14475
0.049844
0.018457
0.030762
0.702185
0.672893
0.657289
0.61975
0.600713
0.566295
0
0.069843
0.303159
39,758
933
209
42.613076
0.739758
0.082575
0
0.626591
0
0
0.046929
0
0
0
0
0
0.154173
1
0.048091
false
0
0.029703
0.004243
0.087694
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae09675e3f04c208d0aada0fe5dc7452f3a90fa
9,402
py
Python
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
2
2021-12-22T03:07:08.000Z
2022-03-19T09:41:29.000Z
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
null
null
null
python/video_ADG.py
alexberndt/mobile-AGV-optimization
76b97fd5aa3898fd6cb6f74f8d87140555c92af5
[ "MIT" ]
1
2021-11-22T10:58:38.000Z
2021-11-22T10:58:38.000Z
""" closed-loop MILP solved to determine optimal ordering defined by ADG """ import sys import yaml import time import matplotlib.colors as mcolors import matplotlib import matplotlib.pyplot as plt import random import logging import time import networkx as nx import csv import statistics as stat import os import ...
40.008511
251
0.623591
1,199
9,402
4.654712
0.251043
0.057875
0.018635
0.017201
0.086364
0.0611
0.049812
0.035119
0
0
0
0.009113
0.241332
9,402
234
252
40.179487
0.773307
0.153903
0
0.073171
0
0
0.147679
0.008695
0
0
0
0
0
1
0.006098
false
0.006098
0.134146
0
0.140244
0.012195
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae26b063b0fbd07c2ce06161f218674d84af1d4
1,119
py
Python
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
578
2015-01-02T12:43:52.000Z
2022-03-27T23:45:32.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
271
2015-01-05T01:56:38.000Z
2021-08-14T02:51:24.000Z
ice/consoles.py
reavessm/Ice
e78d046abfd6006b1a81d1cbdb516b7c3e141ac9
[ "MIT" ]
156
2015-01-07T15:43:20.000Z
2021-12-11T19:10:44.000Z
# encoding: utf-8 import os import roms def console_roms_directory(configuration, console): """ If the user has specified a custom ROMs directory in consoles.txt then return that. Otherwise, append the shortname of the console to the default ROMs directory given by config.txt. """ if console.custom_ro...
31.971429
98
0.747096
162
1,119
5.092593
0.475309
0.094545
0.069091
0.08
0.077576
0
0
0
0
0
0
0.001081
0.173369
1,119
34
99
32.911765
0.890811
0.49151
0
0
0
0
0.003745
0
0
0
0
0
0
1
0.153846
false
0
0.153846
0
0.615385
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae285af81cb46f32301f55fbf5e2dcaee2e26e6
5,527
py
Python
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
44
2022-03-17T02:58:27.000Z
2022-03-31T13:08:29.000Z
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
null
null
null
clue/c3.py
dumpmemory/roformer-v2
95b71ae03b8bb910998285e194d7752b1e4104c0
[ "Apache-2.0" ]
2
2022-03-17T05:47:06.000Z
2022-03-22T10:33:54.000Z
#! -*- coding:utf-8 -*- # CLUE评测 # c3多项选择阅读理解 # 思路:每个选项分别与问题、篇章拼接后打分排序 import json import numpy as np from snippets import * from bert4keras.backend import keras from bert4keras.snippets import sequence_padding, DataGenerator from bert4keras.snippets import open from bert4keras.snippets import truncate_sequences from ...
29.089474
79
0.599602
749
5,527
4.162884
0.256342
0.028865
0.029185
0.032072
0.257858
0.220334
0.173509
0.154907
0.076972
0.039128
0
0.01716
0.272481
5,527
189
80
29.243386
0.758269
0.041071
0
0.134328
0
0
0.059115
0.009535
0
0
0
0
0
1
0.059701
false
0
0.059701
0
0.164179
0.007463
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae4d12e5b6c5a2ce81f0095493d76c6afcfb99b
3,481
py
Python
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
1
2016-09-20T16:05:12.000Z
2016-09-20T16:05:12.000Z
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
logpy/util.py
mrocklin/logpy
7e32f4da10a0ab5b86fb23947cfce9a4d49c6b3f
[ "BSD-3-Clause" ]
null
null
null
import itertools as it from toolz.compatibility import range, map, iteritems def hashable(x): try: hash(x) return True except TypeError: return False def transitive_get(key, d): """ Transitive dict.get >>> from logpy.util import transitive_get >>> d = {1: 2, 2: 3, 3: 4} ...
24.687943
67
0.545246
482
3,481
3.879668
0.278008
0.076471
0.027807
0.040642
0.110695
0.059893
0
0
0
0
0
0.02292
0.323183
3,481
140
68
24.864286
0.770798
0.214019
0
0.215909
0
0
0.020046
0
0
0
0
0
0
1
0.159091
false
0.045455
0.022727
0.022727
0.420455
0.022727
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
null
0
0
0
0
0
0
0
0
0
0
0
0
1
0
6ae561e06496768e94110f91362d5a5eeb524bdb
545
py
Python
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
index.py
rinocloud/rinobot-plugin-shift
4f7f16a5e610b91b64377733d24b6ab4b63daa67
[ "MIT" ]
null
null
null
import rinobot_plugin as bot import numpy as np def main(): # lets get our parameters and data filepath = bot.filepath() data = bot.loadfile(filepath) # now comes the custom plugin logic shift = bot.get_arg('shift', type=float, required=True) index = bot.index_from_args(data) data[index] =...
25.952381
59
0.669725
77
545
4.558442
0.584416
0.051282
0
0
0
0
0
0
0
0
0
0
0.218349
545
20
60
27.25
0.823944
0.168807
0
0
0
0
0.057906
0
0
0
0
0
0
1
0.076923
false
0
0.153846
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